@arcgis/core 5.1.0-next.74 → 5.1.0-next.76

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 (254) hide show
  1. package/arcade/ArcadePortal.js +1 -1
  2. package/arcade/functions/aiServices.js +1 -1
  3. package/arcade/functions/featuresetbase.js +1 -1
  4. package/arcade/functions/geomasync.js +1 -1
  5. package/arcade/functions/knowledgegraph.js +1 -1
  6. package/arcade/functions/string.js +1 -1
  7. package/arcade/languageUtils.js +1 -1
  8. package/arcade/portalUtils.js +1 -1
  9. package/assets/esri/core/workers/RemoteClient.js +1 -1
  10. package/assets/esri/core/workers/chunks/07aca5ecad659d55e795.js +2 -0
  11. package/assets/esri/core/workers/chunks/09630888267cde87654f.js +1 -0
  12. package/assets/esri/core/workers/chunks/0fa207c68dfd7ddee160.js +1 -0
  13. package/assets/esri/core/workers/chunks/146424b5717d0a645ee1.js +1 -0
  14. package/assets/esri/core/workers/chunks/{d00dafad202450e6ee2e.js → 14eb2cc8e2ad6d8d03fd.js} +1 -1
  15. package/assets/esri/core/workers/chunks/1765dfeac20e34ce25b7.js +1 -0
  16. package/assets/esri/core/workers/chunks/176dd195f77b98cb0b0f.js +1 -0
  17. package/assets/esri/core/workers/chunks/1906416c84bab369bbd6.js +1 -0
  18. package/assets/esri/core/workers/chunks/{b98c24229463029504e8.js → 1f6b7626f333809837ef.js} +1 -1
  19. package/assets/esri/core/workers/chunks/1ff3c15a51c4dc991806.js +1 -0
  20. package/assets/esri/core/workers/chunks/2a2e97918524e0f436d7.js +1 -0
  21. package/assets/esri/core/workers/chunks/2b0b398180ed98c2c84c.js +1 -0
  22. package/assets/esri/core/workers/chunks/{bab23b905678e42815e5.js → 312036c89a6a09bb06c2.js} +1 -1
  23. package/assets/esri/core/workers/chunks/{37091cf498a16ccad7ff.js → 330b47ac0759c3c35cc5.js} +1 -1
  24. package/assets/esri/core/workers/chunks/34b6b5dd415c68f0b0d1.js +1 -0
  25. package/assets/esri/core/workers/chunks/{a270960d80d8344dd75f.js → 34ea3ed78041437a8fc8.js} +1 -1
  26. package/assets/esri/core/workers/chunks/384c235d36f32769e32b.js +1 -0
  27. package/assets/esri/core/workers/chunks/3a183259805638c25363.js +1 -0
  28. package/assets/esri/core/workers/chunks/{deaca3cd202851ecf9c2.js → 3cce9dad8ee0e4971d50.js} +1 -1
  29. package/assets/esri/core/workers/chunks/3efbb684c0409955186d.js +1 -0
  30. package/assets/esri/core/workers/chunks/40d251b6b42a41d68bd2.js +1 -0
  31. package/assets/esri/core/workers/chunks/42336e0d1ef88737b078.js +1 -0
  32. package/assets/esri/core/workers/chunks/47b3a5213539548ff3a6.js +1 -0
  33. package/assets/esri/core/workers/chunks/4a23b27bfbcfa08fd9a7.js +1 -0
  34. package/assets/esri/core/workers/chunks/52b3a11c962810bc6dbe.js +1 -0
  35. package/assets/esri/core/workers/chunks/53750e85f3128993a43a.js +1 -0
  36. package/assets/esri/core/workers/chunks/{4bbe684050b3b04681d0.js → 537fe2522dff1e6ce03b.js} +1 -1
  37. package/assets/esri/core/workers/chunks/55fd201ca5e10c6e4761.js +1 -0
  38. package/assets/esri/core/workers/chunks/56941e8bbd2d49bf2656.js +1 -0
  39. package/assets/esri/core/workers/chunks/5d8e944b192aad4cf986.js +1 -0
  40. package/assets/esri/core/workers/chunks/{5476c2f7b83f4ccd0335.js → 5e1b847b116d21908a54.js} +1 -1
  41. package/assets/esri/core/workers/chunks/5ed8d8b5336c81fbcda3.js +1 -0
  42. package/assets/esri/core/workers/chunks/60915a3708a34da1977e.js +1 -0
  43. package/assets/esri/core/workers/chunks/61c523dd9d8027922465.js +1 -0
  44. package/assets/esri/core/workers/chunks/65c61171e6c6be5c5c2f.js +1 -0
  45. package/assets/esri/core/workers/chunks/6a3d207308b29651f397.js +1 -0
  46. package/assets/esri/core/workers/chunks/6c35583707f5c339ee99.js +1 -0
  47. package/assets/esri/core/workers/chunks/702e8468836863abd81b.js +1 -0
  48. package/assets/esri/core/workers/chunks/7540f7df86620f067b5a.js +1 -0
  49. package/assets/esri/core/workers/chunks/76e34f81bb4a7b0e694c.js +1 -0
  50. package/assets/esri/core/workers/chunks/7b6c8be59ed87e386aa4.js +1 -0
  51. package/assets/esri/core/workers/chunks/7c820c5f6f05480d5050.js +1 -0
  52. package/assets/esri/core/workers/chunks/80f4f686ce403cb2693f.js +1 -0
  53. package/assets/esri/core/workers/chunks/852f4cd514008fee5a55.js +1 -0
  54. package/assets/esri/core/workers/chunks/8a3bff0f58483c1665f9.js +1 -0
  55. package/assets/esri/core/workers/chunks/8b046e28f879079caada.js +1 -0
  56. package/assets/esri/core/workers/chunks/8d738e9acc2f222235ea.js +1 -0
  57. package/assets/esri/core/workers/chunks/9103eb0b9078019d3a26.js +1 -0
  58. package/assets/esri/core/workers/chunks/915e2711d3a2cfa402b2.js +1 -0
  59. package/assets/esri/core/workers/chunks/91f9e0e3662d4bf9f163.js +1 -0
  60. package/assets/esri/core/workers/chunks/99c161fecae710b53b40.js +1 -0
  61. package/assets/esri/core/workers/chunks/99d298d0039c536fcf3e.js +1 -0
  62. package/assets/esri/core/workers/chunks/9a5ef33d99a8f89956ff.js +1 -0
  63. package/assets/esri/core/workers/chunks/9d10db72e342fe63c981.js +1 -0
  64. package/assets/esri/core/workers/chunks/{a36761e3122f70fbb3c9.js → 9d6491f996eeb0c646ed.js} +1 -1
  65. package/assets/esri/core/workers/chunks/a015c2f54eb91e43a1f4.js +1 -0
  66. package/assets/esri/core/workers/chunks/a242ec19a7508de436da.js +1 -0
  67. package/assets/esri/core/workers/chunks/a320998f18922a35899f.js +1 -0
  68. package/assets/esri/core/workers/chunks/a7f9f478bd1493fc3c76.js +1 -0
  69. package/assets/esri/core/workers/chunks/aac6a57edd7494125204.js +1 -0
  70. package/assets/esri/core/workers/chunks/b73c146d3e550eaf07eb.js +1 -0
  71. package/assets/esri/core/workers/chunks/b7af0e6b9aadbcaf6a0b.js +1 -0
  72. package/assets/esri/core/workers/chunks/b803e7b0d489bb628d72.js +1 -0
  73. package/assets/esri/core/workers/chunks/baeb96aef03d4c566af7.js +1 -0
  74. package/assets/esri/core/workers/chunks/bc75ab48f4c7609ef09d.js +1 -0
  75. package/assets/esri/core/workers/chunks/bc78937986854e500b8e.js +1 -0
  76. package/assets/esri/core/workers/chunks/bd10d21545bca9a49de0.js +1 -0
  77. package/assets/esri/core/workers/chunks/{b905e637a67fbb7af4ae.js → bf8f603848bad4a7deb4.js} +1 -1
  78. package/assets/esri/core/workers/chunks/bfe575da727ce7c8d331.js +2 -0
  79. package/assets/esri/core/workers/chunks/c31ee5617c61a933cb0e.js +1 -0
  80. package/assets/esri/core/workers/chunks/cb45e5d4a4ef82cda583.js +1 -0
  81. package/assets/esri/core/workers/chunks/ce7ef7c4ca14d66d96f6.js +1 -0
  82. package/assets/esri/core/workers/chunks/{5b324e572737a308500d.js → cf14b3a44705dacefac4.js} +1 -1
  83. package/assets/esri/core/workers/chunks/d3b086eb9aa8c7d09048.js +1 -0
  84. package/assets/esri/core/workers/chunks/d55cef8199b8246fea3f.js +1 -0
  85. package/assets/esri/core/workers/chunks/d8decaee2c780e1b5e35.js +1 -0
  86. package/assets/esri/core/workers/chunks/{41809c16544ec25120fa.js → d95ffd990b3a7df69e1e.js} +1 -1
  87. package/assets/esri/core/workers/chunks/dc54d4a9fe1691862356.js +1 -0
  88. package/assets/esri/core/workers/chunks/dda2cb5c073d1e65f14f.js +1 -0
  89. package/assets/esri/core/workers/chunks/e18badd11f360cc2912b.js +1 -0
  90. package/assets/esri/core/workers/chunks/{ad064583f8a836005098.js → e262c4864dc06c43b380.js} +1 -1
  91. package/assets/esri/core/workers/chunks/e610d24539a675fb054b.js +1 -0
  92. package/assets/esri/core/workers/chunks/e9c5c295b6bf10e942a4.js +1 -0
  93. package/assets/esri/core/workers/chunks/ea59b81299acaf0d85ee.js +1 -0
  94. package/assets/esri/core/workers/chunks/{873c1b705ac3d4e6c384.js → ea97619a4470f1540b99.js} +1 -1
  95. package/assets/esri/core/workers/chunks/eaab5ac049622986e3bc.js +1 -0
  96. package/assets/esri/core/workers/chunks/edee616b6f1b5be8fd39.js +1 -0
  97. package/assets/esri/core/workers/chunks/ef0085aa743b33cb549f.js +1 -0
  98. package/assets/esri/core/workers/chunks/f0250cecb243b32cdba7.js +1 -0
  99. package/assets/esri/core/workers/chunks/f518835b2dc89a48cfb1.js +1 -0
  100. package/assets/esri/core/workers/chunks/f6c8e93ca2987e83f925.js +1 -0
  101. package/assets/esri/themes/base/widgets/_Sketch.scss +32 -0
  102. package/assets/esri/themes/dark/main.css +1 -1
  103. package/assets/esri/themes/light/main.css +1 -1
  104. package/assets/esri/themes/light/view.css +1 -1
  105. package/assets/esri/widgets/Sketch/t9n/Sketch.json +1 -1
  106. package/assets/esri/widgets/Sketch/t9n/Sketch_en.json +1 -1
  107. package/chunks/MultiPathImpl.js +1 -1
  108. package/chunks/Point2D.js +1 -1
  109. package/chunks/SpatialReference.js +1 -1
  110. package/chunks/aiServices.js +1 -1
  111. package/chunks/languageUtils.js +1 -1
  112. package/config.js +1 -1
  113. package/core/workers/registry.js +1 -1
  114. package/form/elements/AttachmentElement.d.ts +15 -16
  115. package/form/elements/GroupElement.d.ts +3 -2
  116. package/form/elements/inputs/attachments/AttachmentInput.d.ts +7 -9
  117. package/form/elements/inputs/attachments/AudioInput.d.ts +6 -8
  118. package/form/elements/inputs/attachments/DocumentInput.d.ts +5 -7
  119. package/form/elements/inputs/attachments/ImageInput.d.ts +6 -8
  120. package/form/elements/inputs/attachments/Input.d.ts +2 -6
  121. package/form/elements/inputs/attachments/SignatureInput.d.ts +5 -7
  122. package/form/elements/inputs/attachments/VideoInput.d.ts +6 -8
  123. package/form/elements/inputs/attachments/types.d.ts +3 -3
  124. package/geometry/FlatGeometry.js +1 -1
  125. package/geometry/operators/projectOperator.js +1 -1
  126. package/graphic/ImageryGraphicOrigin.js +1 -1
  127. package/graphic/ImageryTileGraphicOrigin.js +1 -1
  128. package/graphic/WCSGraphicOrigin.js +1 -1
  129. package/kernel.js +1 -1
  130. package/layers/mixins/ArcGISImageService.js +1 -1
  131. package/package.json +4 -4
  132. package/popup/Features.js +1 -1
  133. package/support/revision.js +1 -1
  134. package/symbols/cim/CIMSymbolHelper.js +1 -1
  135. package/symbols/cim/CIMSymbolRasterizer.js +1 -1
  136. package/symbols/support/previewCIMSymbol.js +1 -1
  137. package/views/2d/analysis/AreaMeasurement/AreaMeasurementController.js +1 -1
  138. package/views/2d/engine/webgl/TextureManager.js +1 -1
  139. package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
  140. package/views/2d/layers/MediaLayerView2D.js +1 -1
  141. package/views/2d/layers/TileLayerView2D.js +1 -1
  142. package/views/2d/layers/features/schema/processor/symbols/ComplexSymbolSchema.js +1 -1
  143. package/views/2d/layers/graphics/GraphicsView2D.js +1 -1
  144. package/views/3d/analysis/AreaMeasurement/support/MeasurementData.js +1 -1
  145. package/views/3d/analysis/Dimension/DimensionController.js +1 -1
  146. package/views/3d/analysis/DirectLineMeasurement/DirectLineMeasurementController.js +1 -1
  147. package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementCutFillController.js +1 -1
  148. package/views/3d/interactive/editingTools/move/MoveTool3D.js +1 -1
  149. package/views/3d/interactive/editingTools/reshape/ReshapeOperation.js +1 -1
  150. package/views/3d/interactive/editingTools/transform/extentTransform/ExtentMove.js +1 -1
  151. package/views/3d/interactive/editingTools/transform/extentTransform/ExtentScale.js +1 -1
  152. package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
  153. package/views/3d/layers/graphics/Graphics3DIconSymbolLayer.js +1 -1
  154. package/views/VideoView.js +1 -1
  155. package/views/draw/DrawGraphicTool.js +1 -1
  156. package/views/draw/DrawTool.js +1 -1
  157. package/views/draw/support/Box.js +1 -1
  158. package/views/draw/support/Reshape.js +1 -1
  159. package/views/draw/support/managers/MeasurementManager.js +1 -1
  160. package/views/interactive/SegmentLabels.js +1 -1
  161. package/views/interactive/snapping/SelfSnappingEngine.js +1 -1
  162. package/views/support/GeometryWorker.js +2 -0
  163. package/views/support/GeometryWorkerHandle.js +2 -0
  164. package/widgets/FeatureTable/FeatureTableViewModel.d.ts +1 -3
  165. package/widgets/FeatureTable/Grid/GridViewModel.d.ts +2 -11
  166. package/widgets/FeatureTable/support/types.d.ts +2 -1
  167. package/widgets/OrientedImageryViewer/OrientedImageryViewerVisibleElements.d.ts +28 -0
  168. package/widgets/OrientedImageryViewer/OrientedImageryViewerVisibleElements.js +1 -1
  169. package/widgets/OrientedImageryViewer.d.ts +27 -0
  170. package/widgets/Sketch/SketchViewModel.d.ts +10 -2
  171. package/widgets/Sketch/SketchViewModel.js +1 -1
  172. package/widgets/Sketch/support/ResponsiveToolbar/MeasuredContentGroup.js +1 -1
  173. package/widgets/Sketch/support/ResponsiveToolbar/ResponsiveToolbar.js +1 -1
  174. package/widgets/Sketch.js +1 -1
  175. package/assets/esri/core/workers/chunks/00bae4b7e179336e0362.js +0 -1
  176. package/assets/esri/core/workers/chunks/041c372e98a6fba90b36.js +0 -1
  177. package/assets/esri/core/workers/chunks/0783890816bac45277b9.js +0 -1
  178. package/assets/esri/core/workers/chunks/07aac6245a0d1adbb2d4.js +0 -1
  179. package/assets/esri/core/workers/chunks/1286f41f245ef22b3a26.js +0 -1
  180. package/assets/esri/core/workers/chunks/12e575a6d2b008b8fc2b.js +0 -1
  181. package/assets/esri/core/workers/chunks/161d60fdac2013c15543.js +0 -1
  182. package/assets/esri/core/workers/chunks/168de44a789d1cecc1f8.js +0 -1
  183. package/assets/esri/core/workers/chunks/1d9d7915cf7449e5d468.js +0 -1
  184. package/assets/esri/core/workers/chunks/1db1656a033f3992f0d6.js +0 -1
  185. package/assets/esri/core/workers/chunks/235cb82952a18ff8d206.js +0 -1
  186. package/assets/esri/core/workers/chunks/27b80c386cebadcaca3c.js +0 -1
  187. package/assets/esri/core/workers/chunks/29d3890a5a43d934067a.js +0 -1
  188. package/assets/esri/core/workers/chunks/2f17438d215bea3ce70f.js +0 -1
  189. package/assets/esri/core/workers/chunks/356cb86606b8c674f947.js +0 -1
  190. package/assets/esri/core/workers/chunks/398e0dd2bc7e1ab84831.js +0 -1
  191. package/assets/esri/core/workers/chunks/3b1052aa30af3f6186cc.js +0 -1
  192. package/assets/esri/core/workers/chunks/3e87e3ad857d72f6ecbb.js +0 -1
  193. package/assets/esri/core/workers/chunks/42e483fde18f12da32a6.js +0 -1
  194. package/assets/esri/core/workers/chunks/43ab44d37bc0ea97ef98.js +0 -1
  195. package/assets/esri/core/workers/chunks/488ed9584b527ec47be3.js +0 -1
  196. package/assets/esri/core/workers/chunks/4ad32580e0c0699fde1f.js +0 -1
  197. package/assets/esri/core/workers/chunks/4c13869d260a902d3014.js +0 -1
  198. package/assets/esri/core/workers/chunks/54ed37ec9682ea739deb.js +0 -1
  199. package/assets/esri/core/workers/chunks/5511e640e171c294f52a.js +0 -2
  200. package/assets/esri/core/workers/chunks/55369c5bd65bcaf78da1.js +0 -1
  201. package/assets/esri/core/workers/chunks/56fd3da911c2c4511e5d.js +0 -1
  202. package/assets/esri/core/workers/chunks/59592bb25f226865e88a.js +0 -1
  203. package/assets/esri/core/workers/chunks/5d55b4449bcb24cd72b6.js +0 -1
  204. package/assets/esri/core/workers/chunks/5d8fe41a3c06ddb4094b.js +0 -1
  205. package/assets/esri/core/workers/chunks/608d707fd9d9f9088473.js +0 -1
  206. package/assets/esri/core/workers/chunks/6a21c9a4aeebe806ea39.js +0 -1
  207. package/assets/esri/core/workers/chunks/6c7ff968bd4fc816442d.js +0 -1
  208. package/assets/esri/core/workers/chunks/6d11ec355e5474b2968b.js +0 -1
  209. package/assets/esri/core/workers/chunks/6d25230dd85a4ba54c4f.js +0 -1
  210. package/assets/esri/core/workers/chunks/7027d93dc5a4595d70c6.js +0 -1
  211. package/assets/esri/core/workers/chunks/70b35b2446558d5280e3.js +0 -1
  212. package/assets/esri/core/workers/chunks/7349cb45a93e6916f115.js +0 -1
  213. package/assets/esri/core/workers/chunks/76edaeaf8fe344bb77a8.js +0 -1
  214. package/assets/esri/core/workers/chunks/76fe5b821d6b54db5721.js +0 -1
  215. package/assets/esri/core/workers/chunks/7951d93f5f15aa76f49c.js +0 -1
  216. package/assets/esri/core/workers/chunks/7a56c836c89a8b978800.js +0 -1
  217. package/assets/esri/core/workers/chunks/81d30c9062ad0120a863.js +0 -1
  218. package/assets/esri/core/workers/chunks/88c5f7c712c6b89b5109.js +0 -1
  219. package/assets/esri/core/workers/chunks/88e469b82d2594f23649.js +0 -1
  220. package/assets/esri/core/workers/chunks/8a8242e7cc7e6a9e7876.js +0 -1
  221. package/assets/esri/core/workers/chunks/9444ed8ea117861ae89b.js +0 -1
  222. package/assets/esri/core/workers/chunks/9a38fd68b02b617c45d3.js +0 -1
  223. package/assets/esri/core/workers/chunks/9be9ccce6369f67202bc.js +0 -1
  224. package/assets/esri/core/workers/chunks/a37c28e3c4a2be9fd1d5.js +0 -1
  225. package/assets/esri/core/workers/chunks/a8d7f59927bdad564141.js +0 -1
  226. package/assets/esri/core/workers/chunks/a94bd20551c1179c7ec5.js +0 -1
  227. package/assets/esri/core/workers/chunks/a9d2c83bb10b5ade0ca0.js +0 -1
  228. package/assets/esri/core/workers/chunks/abe22ae8ee0dcc9efbb7.js +0 -1
  229. package/assets/esri/core/workers/chunks/b702279c48f3009f6dd8.js +0 -1
  230. package/assets/esri/core/workers/chunks/bc887bd62579dba81e2b.js +0 -1
  231. package/assets/esri/core/workers/chunks/be0341567bb19e101a4f.js +0 -1
  232. package/assets/esri/core/workers/chunks/be1d6a571f76933dfbb0.js +0 -1
  233. package/assets/esri/core/workers/chunks/bfcdc5c315131aae34d8.js +0 -1
  234. package/assets/esri/core/workers/chunks/c0f624a2ca0d07ef8f8c.js +0 -1
  235. package/assets/esri/core/workers/chunks/c327fe276238af60fda4.js +0 -1
  236. package/assets/esri/core/workers/chunks/c5f155fe114a2a05aaf2.js +0 -2
  237. package/assets/esri/core/workers/chunks/c61002a117dc2218d6af.js +0 -1
  238. package/assets/esri/core/workers/chunks/c804a66ef7615aa8de89.js +0 -1
  239. package/assets/esri/core/workers/chunks/cb5e4b9b4a59c2622eb5.js +0 -1
  240. package/assets/esri/core/workers/chunks/d201a5dff18a5bb467ab.js +0 -1
  241. package/assets/esri/core/workers/chunks/d21fdd67477800101f3b.js +0 -1
  242. package/assets/esri/core/workers/chunks/db588bf3256e95c977b7.js +0 -1
  243. package/assets/esri/core/workers/chunks/dfdd474fddcd1d6091ce.js +0 -1
  244. package/assets/esri/core/workers/chunks/e235ea4293d5d463acfb.js +0 -1
  245. package/assets/esri/core/workers/chunks/e43486113aaf72ac4dc1.js +0 -1
  246. package/assets/esri/core/workers/chunks/ea4c3393c5757e309a71.js +0 -1
  247. package/assets/esri/core/workers/chunks/ed216ddeb7f59f510bd0.js +0 -1
  248. package/assets/esri/core/workers/chunks/ef8886dff54063928bcb.js +0 -1
  249. package/assets/esri/core/workers/chunks/f43a63094190d2074cd0.js +0 -1
  250. package/assets/esri/core/workers/chunks/f5223ffb3be548c9b0a1.js +0 -1
  251. package/views/support/MeasurementWorker.js +0 -2
  252. package/views/support/MeasurementWorkerHandle.js +0 -2
  253. /package/assets/esri/core/workers/chunks/{5511e640e171c294f52a.js.LICENSE.txt → 07aca5ecad659d55e795.js.LICENSE.txt} +0 -0
  254. /package/assets/esri/core/workers/chunks/{c5f155fe114a2a05aaf2.js.LICENSE.txt → bfe575da727ce7c8d331.js.LICENSE.txt} +0 -0
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3661],{56512(e,t,n){function i(e){let t,n,i=[],s=!1;return function(...r){return s&&t===this&&function(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;++n)if(e[n]!==t[n])return!1;return!0}(r,i)||(n=e.apply(this,r),t=this,i=r,s=!0),n}}n.d(t,{B:()=>i})},159(e,t,n){n.d(t,{A:()=>u});var i,s=n(5482),r=n(69540),o=n(25482),a=n(91429),l=n(99157);let u=i=class extends((0,r.OU)(o.o)){constructor(e){super(e),this.steps=[]}getInverse(){const e=new i;for(let t=this.steps.length-1;t>=0;t--){const n=this.steps[t];e.steps.push(n.getInverse())}return e}};(0,s.Cg)([(0,a.MZ)({type:[l.A],nonNullable:!0,json:{name:"geoTransforms"}})],u.prototype,"steps",void 0),u=i=(0,s.Cg)([(0,a.$K)("esri.geometry.operators.support.GeographicTransformation")],u)},99157(e,t,n){n.d(t,{A:()=>l});var i,s=n(5482),r=n(69540),o=n(25482),a=n(91429);let l=i=class extends((0,r.OU)(o.o)){constructor(e){super(e),this.isInverse=!1,this.wkt=null,this.wkid=null}getInverse(){return new i({isInverse:!this.isInverse,wkid:this.wkid,wkt:this.wkt})}};(0,s.Cg)([(0,a.MZ)({json:{name:"transformForward",read:e=>!e,write:(e,t,n)=>{t[n]=!e}}})],l.prototype,"isInverse",void 0),(0,s.Cg)([(0,a.MZ)({json:{write:!0}})],l.prototype,"wkt",void 0),(0,s.Cg)([(0,a.MZ)({json:{write:!0}})],l.prototype,"wkid",void 0),l=i=(0,s.Cg)([(0,a.$K)("esri.geometry.operators.support.GeographicTransformationStep")],l)},9762(e,t,n){n.r(t),n.d(t,{projectBuffer:()=>s});var i=n(49208);function s(e,t,n,s,r,o,a=Math.floor(e.length/3)){const l=(0,i.jd)(t,r);if(null==l)return!1;if(l===i.pO){if(e===s&&n===o)return!0;const t=n+3*a;for(let i=n,r=o;i<t;i++,r++)s[r]=e[i]??0;return!0}const u=n+3*a;for(let t=n,i=o;t<u;t+=3,i+=3)l(e,t,s,i);return!0}},49208(e,t,n){n.d(t,{Tp:()=>p,jd:()=>c,pO:()=>f,w5:()=>u});var i=n(34727),s=n(86211),r=n(73941),o=n(79258),a=n(34403),l=n(21325);const u={2:{5:f,7:null,9:null,10:f,1:b,6:null,8:null,0:null,3:m,11:g,2:f,4:M},5:{5:f,7:null,9:null,10:f,1:b,6:null,8:null,0:null,3:m,11:g,2:f,4:M},7:{5:null,7:f,9:null,10:f,1:null,6:x,8:null,0:null,3:null,11:null,2:null,4:null},9:{5:null,7:null,9:f,10:f,1:null,6:null,8:w,0:null,3:null,11:null,2:null,4:null},3:{5:h,7:null,9:null,10:h,1:function(e,t,n,i){const s=e[t]/O,r=P-2*Math.atan(Math.exp(-e[t+1]/O)),o=O+(e[t+2]??0),a=Math.cos(r)*o;n[i]=Math.cos(s)*a,n[i+1]=Math.sin(s)*a,n[i+2]=Math.sin(r)*o},6:null,8:null,0:null,3:f,11:function(e,t,n,i){h(e,t,n,i),g(n,i,n,i)},2:h,4:function(e,t,n,i){h(e,t,n,i),M(n,i,n,i)}},4:{5:R,7:null,9:null,10:R,1:function(e,t,n,i){R(e,t,n,i),b(n,i,n,i)},6:null,8:null,0:null,3:function(e,t,n,i){R(e,t,n,i),m(n,i,n,i)},11:function(e,t,n,i){R(e,t,n,i),g(n,i,n,i)},2:R,4:f},1:{5:A,7:null,9:null,10:A,1:f,6:null,8:null,0:null,3:function(e,t,n,i){A(e,t,n,i),m(n,i,n,i)},11:function(e,t,n,i){A(e,t,n,i),g(n,i,n,i)},2:A,4:function(e,t,n,i){A(e,t,n,i),M(n,i,n,i)}},6:{5:null,7:S,9:null,10:S,1:null,6:f,8:null,0:null,3:null,11:null,2:null,4:null},8:{5:null,7:null,9:I,10:I,1:null,6:null,8:f,0:null,3:null,11:null,2:null,4:null},0:{5:null,7:null,9:null,10:null,1:null,6:null,8:null,0:f,3:null,11:null,2:null,4:null},10:{5:f,7:f,9:f,10:f,1:b,6:x,8:w,0:null,3:m,11:g,2:f,4:M},11:{5:v,7:null,9:null,10:v,1:function(e,t,n,i){v(e,t,n,i),b(n,i,n,i)},6:null,8:null,0:null,3:function(e,t,n,i){v(e,t,n,i),m(n,i,n,i)},11:f,2:v,4:function(e,t,n,i){v(e,t,n,i),M(n,i,n,i)}}};function c(e,t){return p(e,t)?.projector}function p(e,t){if(null==e||null==t)return null;if(T.source.spatialReference===e&&T.dest.spatialReference===t)return T;const n=d(e,T.source),i=d(t,T.dest);return 0===n&&0===i?(0,l.aI)(e,t)?T.projector=f:T.projector=null:T.projector=u[n][i],T}function d(e,t){return e?t.spatialReference===e?t.spatialReferenceId:(t.spatialReference=e,"metersPerUnit"in t&&(t.metersPerUnit=(0,s.GA)(e,1)),(0,r.jA)(e)?t.spatialReferenceId=1:(0,l.oT)(e)?t.spatialReferenceId=2:(0,l.K8)(e)?t.spatialReferenceId=3:(0,l.r1)(e)?t.spatialReferenceId=11:e.wkt===r.Ro.wkt?t.spatialReferenceId=4:4490===e.wkid?t.spatialReferenceId=5:e.wkt===r.FY.wkt?t.spatialReferenceId=6:e.wkt===r.LJ.wkt?t.spatialReferenceId=8:(0,r.q8)(e)?t.spatialReferenceId=7:(0,r.KQ)(e)?t.spatialReferenceId=9:t.spatialReferenceId=0):0}function f(e,t,n,i){e!==n&&(n[i++]=e[t++],n[i++]=e[t++],n[i]=e[t]??0)}function h(e,t,n,i){n[i]=L*(e[t]/O),n[i+1]=L*(P-2*Math.atan(Math.exp(-e[t+1]/O))),n[i+2]=e[t+2]??0}function m(e,t,n,s){!function(e,t,n,s,r){const o=.4999999*Math.PI,a=(0,i.qE)(D*e[t+1],-o,o),l=Math.sin(a);n[s++]=D*e[t]*r.radius,n[s++]=r.halfSemiMajorAxis*Math.log((1+l)/(1-l)),n[s]=e[t+2]??0}(e,t,n,s,o.$O)}function g(e,t,n,i){n[i]=e[t]*N,n[i+1]=e[t+1]*N,n[i+2]=e[t+2]??0}function v(e,t,n,i){n[i]=e[t]*V,n[i+1]=e[t+1]*V,n[i+2]=e[t+2]??0}function y(e,t,n,i,s){const r=s+(e[t+2]??0),o=D*e[t],a=D*e[t+1],l=Math.cos(a)*r;n[i]=Math.cos(o)*l,n[i+1]=Math.sin(o)*l,n[i+2]=Math.sin(a)*r}function w(e,t,n,i){y(e,t,n,i,o.Sw.radius)}function x(e,t,n,i){y(e,t,n,i,o.sH.radius)}function b(e,t,n,i){y(e,t,n,i,o.$O.radius)}function C(e,t,n,s,r){const o=e[t],a=e[t+1],l=e[t+2]??0,u=Math.sqrt(o*o+a*a+l*l),c=(0,i.YN)(l/(0===u?1:u)),p=Math.atan2(a,o);n[s++]=L*p,n[s++]=L*c,n[s]=u-r}function I(e,t,n,i){C(e,t,n,i,o.Sw.radius)}function S(e,t,n,i){C(e,t,n,i,o.sH.radius)}function A(e,t,n,i){C(e,t,n,i,o.$O.radius)}function M(e,t,n,i){!function(e,t,n,i,s){const r=D*e[t],o=D*e[t+1],a=e[t+2]??0,l=Math.sin(o),u=Math.cos(o),c=s.radius/Math.sqrt(1-s.eccentricitySquared*l*l);n[i++]=(c+a)*u*Math.cos(r),n[i++]=(c+a)*u*Math.sin(r),n[i++]=(c*(1-s.eccentricitySquared)+a)*l}(e,t,n,i,o.$O)}function R(e,t,n,i){const s=a.TP,r=e[t],l=e[t+1],u=e[t+2]??0;let c,p,d,f,h,m,g,v,y,w,x,b,C,I,S,A,M,R,T,D,P;c=Math.abs(u),p=r*r+l*l,d=Math.sqrt(p),f=p+u*u,h=Math.sqrt(f),D=Math.atan2(l,r),m=u*u/f,g=p/f,I=s.a2/h,S=s.a3-s.a4/h,g>.3?(v=c/h*(1+g*(s.a1+I+m*S)/h),T=Math.asin(v),w=v*v,y=Math.sqrt(1-w)):(y=d/h*(1-m*(s.a5-I-g*S)/h),T=Math.acos(y),w=1-y*y,v=Math.sqrt(w)),x=1-o.$O.eccentricitySquared*w,b=o.$O.radius/Math.sqrt(x),C=s.a6*b,I=d-b*y,S=c-C*v,M=y*I+v*S,A=y*S-v*I,R=A/(C/x+M),T+=R,P=M+A*R/2,u<0&&(T=-T),n[i++]=L*D,n[i++]=L*T,n[i]=P}const T={source:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},projector:f},D=(0,i.kU)(1),L=(0,i.KJ)(1),P=.5*Math.PI,O=o.$O.radius,N=O*Math.PI/180,V=180/(O*Math.PI)},91218(e,t,n){n.r(t),n.d(t,{canProjectWithoutEngine:()=>B,initializeProjection:()=>U,isEqualBaseGCS:()=>q,isLoaded:()=>O,isLoadedOrLoad:()=>N,isLoadedOrLoadFor:()=>V,load:()=>$,project:()=>E,projectAsync:()=>W,projectExtent:()=>se,projectMany:()=>k,projectMultipoint:()=>Y,projectOrLoad:()=>Z,projectOrLoadMany:()=>F,projectPoint:()=>K,projectPolygon:()=>ne,projectPolyline:()=>ee,projectWithoutEngine:()=>H,requiresLoad:()=>j,test:()=>z,tryProject:()=>G,unload:()=>X});var i=n(49186),s=n(17676),r=n(62788),o=n(95488),a=n(51850),l=n(21276),u=n(73941),c=n(5443),p=n(91075),d=n(48526),f=n(86738),h=n(39829),m=n(82799),g=n(16930),v=n(98764),y=n(159),w=n(9762),x=n(49208);function b(e,t,n,i,s,r){return C[0]=e,C[1]=t,C[2]=n,(0,w.projectBuffer)(C,i,0,s,r,0)}const C=(0,a.vt)();var I=n(60408),S=n(21325),A=n(52006);let M=null,R=null,T=null,D=null,L={};const P=new o.I;function O(){return!!(R?.isLoaded()&&T?.isLoaded()&&D?.isLoaded())}function N(){return!!O()||((0,r.gc)(P),$(),!1)}function V(e,t){return!e||!t||B(e,t)||N()}function j(e,t){return!B(e,t)&&!O()}async function $(e){null==M&&(M=Promise.all([n.e(3276).then(n.bind(n,83276)).then(e=>(R=e,R.load())),n.e(8377).then(n.bind(n,8377)).then(e=>(T=e,T.load())),n.e(2158).then(n.bind(n,12158)).then(e=>(D=e,D.load()))])),await M,(0,s.Te)(e),P.notify()}function E(e,t,n){return Array.isArray(e)?0===e.length?[]:((0,l.H)(e),k(e,e[0].spatialReference,t,n)):((0,l.f)(e),k([e],e.spatialReference,t,n)[0])}function k(e,t,n,i){if(null==t||null==n)return e;if(B(t,n,i))return e.map(e=>H(e,t,n));if(null==i?.geographicTransformation&&(0,u.jA)(t))return k(e.map(e=>H(e,t,g.A.WGS84)),g.A.WGS84,n,{zConversionDisabled:i?.zConversionDisabled});if(null==i?.geographicTransformation&&(0,u.jA)(n))return k(e,t,g.A.WGS84).map(e=>H(e,g.A.WGS84,n));if(!O())throw new _;if(!i?.geographicTransformation)if(i?.extendedParams)i={...i,geographicTransformation:D.getTransformation(t,n,i.areaOfInterestExtent)||new y.A};else if(!i?.areaOfInterestExtent){const e=function(e,t){return[e.wkid?.toString()??"-1",e.wkt?.toString()??"",e.wkt2?.toString()??"",t.wkid?.toString()??"-1",t.wkt?.toString()??"",t.wkt2?.toString()??""].join()}(t,n);let s=L[e];s||(s=D.getTransformation(t,n)||new y.A,L[e]=s),i={geographicTransformation:s,zConversionDisabled:i?.zConversionDisabled}}return e[0].spatialReference||(e[0].spatialReference=t),e[0]instanceof p.A?R.executeMany(e,n,i):T.executeMany(e,n,i)}function G(e,t,n){try{return E(e,t,n)}catch(e){return null}}function Z(e,t){const n=F([e],t);return null!=n.pending?{pending:n.pending,geometry:null}:null!=n.geometries?{pending:null,geometry:n.geometries[0]}:{pending:null,geometry:null}}function F(e,t,n){if(!O())for(const n of e)if(null!=n&&!(0,S.aI)(n.spatialReference,t)&&(0,S.fn)(n.spatialReference)&&(0,S.fn)(t)&&!B(n.spatialReference,t))return(0,r.gc)(P),{pending:$(),geometries:null};return{pending:null,geometries:e.map(e=>null==e?null:(0,S.aI)(e.spatialReference,t)?e:(0,S.fn)(e.spatialReference)&&(0,S.fn)(t)?E(e,t,n):null)}}class _ extends i.A{constructor(){super("projection:not-loaded","projection engine not fully loaded yet, please call load()")}}function X(){M=null,R=null,T=null,D=null,L={}}const z={get loadPromise(){return M}};async function W(e,t,n){if((0,s.Te)(n),!e)return e;const i=F(Array.isArray(e)?e:[e],t,n);if(i.pending)return await i.pending,(0,s.Te)(n),W(e,t,n);const r=i.geometries??[];return Array.isArray(e)?r:r[0]}function B(e,t,n){return!(n?.areaOfInterestExtent||n?.extendedParams||n?.geographicTransformation)&&(!!(0,S.aI)(e,t)||(0,S.fn)(e)&&(0,S.fn)(t)&&!!(0,x.jd)(e,t))}function q(e,t){if((0,S.aI)(e,t))return!0;if(!(0,S.fn)(e)||!(0,S.fn)(t))return!1;const n=(0,S.oT)(e)||(0,S.K8)(e)||(0,S.x1)(e),i=(0,S.oT)(t)||(0,S.K8)(t)||(0,S.x1)(t);return n&&i}async function U(e,t,n,i){if(O())return(0,s.NO)(i);if(Array.isArray(e)){for(const{source:t,dest:n,options:s}of e)if(t&&n&&!B(t,n,s))return $(i)}else if(e&&t&&!B(e,t,n))return $(i);return(0,s.NO)(i)}function H(e,t,n){return e?(0,I.fT)(e)?J(e,t,new f.A,n,0):(0,I.ZC)(e)?re(e,t,new c.A,n,0):(0,I.Bi)(e)?ie(e,t,new h.A,n,0):(0,I.Rg)(e)?te(e,t,new m.A,n,0):(0,I.U9)(e)?Q(e,t,new d.A,n,0):null:null}function K(e,t,n=t.spatialReference,i=0){return null!=n&&null!=e.spatialReference&&null!=J(e,e.spatialReference,t,n,i)}function J(e,t,n,i,s){ue[0]=e.x,ue[1]=e.y;const r=e.z;return ue[2]=void 0!==r?r:s,(0,w.projectBuffer)(ue,t,0,ue,i,0)?(n.x=ue[0],n.y=ue[1],n.spatialReference=i,void 0!==r||(0,u.xP)(i)?(n.z=ue[2],n.hasZ=!0):(n.z=void 0,n.hasZ=!1),void 0===e.m?(n.m=void 0,n.hasM=!1):(n.m=e.m,n.hasM=!0),n):null}function Y(e,t,n=t.spatialReference,i=0){return null!=e.spatialReference&&null!=n&&null!=Q(e,e.spatialReference,t,n,i)}function Q(e,t,n,i,s){const{points:r,hasZ:o,hasM:a}=e,l=[],u=r.length,c=[];for(const e of r)c.push(e[0],e[1],o?e[2]:s);if(!(0,w.projectBuffer)(c,t,0,c,i,0,u))return null;const p=le(o,i);for(let e=0;e<u;++e){const t=3*e,n=c[t],i=c[t+1];p&&a?l.push([n,i,c[t+2],r[e][3]]):p?l.push([n,i,c[t+2]]):a?l.push([n,i,r[e][2]]):l.push([n,i])}return n.points=l,n.spatialReference=i,n.hasZ=o,n.hasM=a,n}function ee(e,t,n=t.spatialReference,i=0){return null!=e.spatialReference&&null!=n&&null!=te(e,e.spatialReference,t,n,i)}function te(e,t,n,i,s){const{curvePaths:r,paths:o,hasZ:a,hasM:l}=e;if(!(r?ae(r,a??!1,l??!1,t,n.curvePaths=[],i,s):oe(o,a??!1,l??!1,t,n.paths,i,s)))return null;const u=le(a,i);return n.spatialReference=i,n.hasZ=u,n.hasM=l,n}function ne(e,t,n=t.spatialReference,i=0){return null!=e.spatialReference&&null!=n&&null!=ie(e,e.spatialReference,t,n,i)}function ie(e,t,n,i,s){const{curveRings:r,rings:o,hasZ:a,hasM:l}=e;return(r?ae(r,a??!1,l??!1,t,n.curveRings=[],i,s):oe(o,a??!1,l??!1,t,n.rings,i,s))?(n.spatialReference=i,n.hasZ=le(a,i),n.hasM=l,n):null}function se(e,t,n=t.spatialReference,i=0){return null!=e.spatialReference&&null!=n&&null!=re(e,e.spatialReference,t,n,i)}function re(e,t,n,i,s){const{xmin:r,ymin:o,xmax:a,ymax:l,hasZ:u,hasM:c}=e;if(!b(r,o,u?e.zmin:s,t,ue,i))return null;const p=le(u,i);return n.xmin=ue[0],n.ymin=ue[1],p&&(n.zmin=ue[2]),b(a,l,u?e.zmax:s,t,ue,i)?(n.xmax=ue[0],n.ymax=ue[1],p&&(n.zmax=ue[2]),c&&(n.mmin=e.mmin,n.mmax=e.mmax),n.spatialReference=i,n):null}function oe(e,t,n,i,s,r,o=0){const a=new Array;for(const n of e)for(const e of n)a.push(e[0],e[1],t?e[2]:o);if(!(0,w.projectBuffer)(a,i,0,a,r,0))return!1;let l=0;s.length=0;const u=t?3:2,c=le(t,r);for(const t of e){const e=new Array;for(const i of t){const t=a.slice(l,l+=3);c||t.pop(),n&&t.push(i[u]),e.push(t)}s.push(e)}return!0}function ae(e,t,n,i,s,r,o=0){const a=new Array;for(const n of e)for(const e of n){if((0,A.FG)(e))return!1;if((0,A.aO)(e)){const[n,i]=e.c;a.push(n[0],n[1],t?n[2]:o,i[0],i[1],o);continue}if((0,A.n1)(e)){const[n,i,s]=e.b;a.push(n[0],n[1],t?n[2]:o,i[0],i[1],o,s[0],s[1],o);continue}const n=e;a.push(n[0],n[1],t?n[2]:o)}if(!(0,w.projectBuffer)(a,i,0,a,r,0))return!1;let l=0;s.length=0;const u=t?3:2,c=le(t,r);for(const t of e){const e=new Array;for(const i of t){const t=a.slice(l,l+=3);if(c||t.pop(),n&&t.push((0,A.yP)(i)[u]),(0,A.FG)(i))return!1;if((0,A.aO)(i)){const n=a[l++],i=a[l++];++l,e.push({c:[t,[n,i]]});continue}if((0,A.n1)(i)){const n=a[l++],i=a[l++];++l;const s=a[l++],r=a[l++];++l,e.push({b:[t,[n,i],[s,r]]});continue}e.push(t)}s.push(e)}return!0}function le(e,t){return e||(0,u.xP)(t)||(0,S.aI)(t,v.Y0)}const ue=(0,a.vt)()},98764(e,t,n){n.d(t,{GD:()=>o,Y0:()=>u,lO:()=>c});var i=n(73941),s=n(16930),r=n(21325);const o=new s.A(i.fv),a=new s.A(i.FY),l=new s.A(i.LJ),u=new s.A(i.Ro);function c(e){const t=p.get(e);if(t)return t;let n=o;if(e)if(e===a)n=a;else if(e===l)n=l;else{const t=e.wkid,i=e.latestWkid;if(null!=t||null!=i)(0,r.tl)(t)||(0,r.tl)(i)?n=a:((0,r.ZL)(t)||(0,r.ZL)(i))&&(n=l);else{const t=e.wkt2??e.wkt;if(t){const e=t.toUpperCase();e===d?n=a:e===f&&(n=l)}}}return p.set(e,n),n}const p=new Map,d=a.wkt.toUpperCase(),f=l.wkt.toUpperCase()},34403(e,t,n){n.d(t,{TP:()=>o});var i=n(79258);Math.PI;const s=i.$O.radius,r=i.$O.eccentricitySquared,o={a1:s*r,a2:s*r*s*r,a3:s*r*r/2,a4:s*r*s*r*2.5,a5:s*r+s*r*r/2,a6:1-r};i.$O.radius,i.$O.flattening,i.Sw.radius,i.Sw.flattening,i.sH.radius,i.sH.flattening,i.sH.radius},20521(e,t,n){n.r(t),n.d(t,{default:()=>Se});var i=n(5482),s=n(37838),r=n(69540),o=n(49186),a=n(25728),l=n(17676),u=n(36708),c=n(91429),p=n(89808),d=n(99959);const f=Symbol("isWCSGraphicOrigin");var h;class m extends d.A{get[(h=f,p.Q)](){return this.layer}constructor(e){super(),this[h]=!0,this.type="wcs",this.layer=e}get id(){return this.layer.id}}var g=n(4146),v=n(63074),y=n(69208),w=n(34287),x=n(8303),b=n(72545),C=n(54310),I=n(25036),S=n(82935),A=n(82806),M=n(53966),R=n(5443),T=n(38458),D=n(11254),L=n(330);function P(e){return e.endsWith("?")?e.slice(0,-1):e}function O(e){return e.filter(({coverageSubType:e})=>null==e||""===e||/^rectified(grid|dataset)/i.test(e))}function N(e){const t={};for(let n=0;n<e.childNodes.length;n++){const i=e.childNodes[n];if(1!==i.nodeType)continue;const s=(0,L.vv)(i).toLowerCase();switch(s){case"title":case"abstract":t[s]=(0,L.mX)(i);break;case"identifier":t.id=(0,L.mX)(i);break;case"wgs84boundingbox":{const e=(0,L.pN)(i,"LowerCorner"),n=(0,L.pN)(i,"UpperCorner");t.lonLatEnvelope=new R.A({xmin:e[0],ymin:e[1],xmax:n[0],ymax:n[1],spatialReference:{wkid:4326}})}break;case"coveragesummary":t.coverageSummaries=t.coverageSummaries||[],t.coverageSummaries.push(N(i))}}return t}function V(e,t){if(e.coverageSummaries)for(let n=0;n<e.coverageSummaries.length;n++)e.coverageSummaries[n].abstract=e.coverageSummaries[n].abstract||e.abstract,e.coverageSummaries[n].lonLatEnvelope=e.coverageSummaries[n].lonLatEnvelope||e.lonLatEnvelope,e.coverageSummaries[n].title=e.coverageSummaries[n].title||e.title,V(e.coverageSummaries[n],t);null!=e.id&&t.push(e)}function j(e){const t=(0,L.V6)(e.querySelector("Operation[name=GetCapabilities]"),"Get")?.getAttribute("xlink:href")||"",n=(0,L.V6)(e.querySelector("Operation[name=DescribeCoverage]"),"Get")?.getAttribute("xlink:href")||"",i=(0,L.V6)(e.querySelector("Operation[name=GetCoverage]"),"Get")?.getAttribute("xlink:href")||"";return{getCapabilities:P(t),describeCoverage:P(n),getCoverage:P(i)}}function $(e,t=null){let n=null;n="string"==typeof e?(new DOMParser).parseFromString(e,"text/xml"):e;let i=n.documentElement.getAttribute("version");"1.0"===i?i="1.0.0":"1.1"===i&&(i="1.1.0");const s=i||t||"1.0.0",r=s.slice(0,3);let a;if("2.0"===r)a=function(e){const t=(0,L.V6)(e,"ServiceIdentification"),n=(0,L.mX)(t,"Title"),i=(0,L.Dy)(t,"ServiceTypeVersion"),s=(0,L.Dy)(t,"Profile"),r=j((0,L.V6)(e,"OperationsMetadata")),o=(0,L.IC)(e,"Contents/CoverageSummary"),a=[];for(let e=0;e<o.length;e++){const t=o[e],n=(0,L.mX)(t,"CoverageId"),i=(0,L.V6)(t,"WGS84BoundingBox");let s;if(i){const e=(0,L.pN)(i,"LowerCorner"),t=(0,L.pN)(i,"UpperCorner");s=new R.A({xmin:e[0],ymin:e[1],xmax:t[0],ymax:t[1],spatialReference:{wkid:4326}})}const r=(0,L.mX)(t,"CoverageSubtype")||"RectifiedGridCoverage";a.push({id:n,lonLatEnvelope:s,coverageSubType:r})}const l=(0,L.V6)(e,"ServiceMetadata");return{name:n,supportedVersions:i,supportedFormats:(0,L.Dy)(l,"formatSupported"),supportedInterpolations:(0,L.Dy)(l,"interpolationSupported").concat((0,L.Dy)(l,"InterpolationSupported")),onlineResources:r,profiles:s,coverages:a,gridCoverages:O(a),version:"2.0.1"}}(n);else if("1.1"===r)a=function(e){const t=(0,L.mX)(e,"ServiceIdentification/Title"),n=(0,L.Dy)(e,"ServiceIdentification/ServiceTypeVersion"),i=j((0,L.V6)(e,"OperationsMetadata")),s=[],r=(0,L.V6)(e,"Contents");for(let e=0;e<r.childNodes.length;e++){const t=r.childNodes[e];1===t.nodeType&&(0,L.g7)(t,"CoverageSummary")&&V(N(t),s)}const o=(0,L.Dy)(r,"SupportedFormat");return{name:t,onlineResources:i,coverages:s,gridCoverages:O(s),supportedVersions:n,supportedFormats:o,version:"1.1.0"}}(n);else{if("1.0"!==r)throw new o.A("wcsraster:parsecapabilities","the capabilities version is not supported");a=function(e){const t=(0,L.mX)(e,"Service/name"),n=(0,L.V6)(e,"Capability"),i=(0,L.V6)(n,"GetCapabilities/Get/OnlineResource")?.getAttribute("xlink:href")??"",s=(0,L.V6)(n,"DescribeCoverage/Get/OnlineResource")?.getAttribute("xlink:href")??"",r=(0,L.V6)(n,"GetCoverage/Get/OnlineResource")?.getAttribute("xlink:href")??"",o={getCapabilities:P(i),describeCoverage:P(s),getCoverage:P(r)},a=(0,L.IC)(e,"CoverageOfferingBrief"),l=[];for(let e=0;e<a.length;e++){const t=a[e],n=(0,L.mX)(t,"name"),i=(0,L.IC)(t,"pos"),s=(0,L.pN)(i[0]),r=(0,L.pN)(i[1]),o=new R.A({xmin:s[0],ymin:s[1],xmax:r[0],ymax:r[1],spatialReference:{wkid:4326}});l.push({id:n,lonLatEnvelope:o})}return{name:t,onlineResources:o,coverages:l,gridCoverages:O(l),supportedVersions:["1.0.0"],version:"1.0.0"}}(n)}return a.version=s,a}var E=n(39829),k=n(4366),G=n(87186);function Z(e){e.variables.forEach(e=>e.dimensions.forEach(e=>e.values??=(0,k.Xg)(e)))}function F(e){return{requestResponseCRSs:(0,L.Dy)(e,"requestResponseCRSs").map(e=>e.split(":")[1]),nativeCRSs:(0,L.Dy)(e,"nativeCRSs").map(e=>e.split(":")[1])}}function _(e,t){const n=(0,L.Dy)(e,"1.0.0"===t?"interpolationMethod":"InterpolationMethod"),i="1.0.0"===t?e.getAttribute("default"):(0,L.mX)(e,"InterpolationMethods/Default");return null!=i?[i].concat(n.filter(e=>e.toLowerCase()!==i.toLowerCase())):n}function X(e){return null==e?["nearest"]:e.map(e=>{const t=e.toLowerCase();return t.includes("nearest")?"nearest":t.includes("linear")?"bilinear":t.includes("cubic")?"cubic":null}).filter(e=>!!e)}function z(e){const t=(0,L.IC)(e,"pos"),n=(0,L.pN)(t[0]),i=(0,L.pN)(t[1]);return new R.A({xmin:n[0],ymin:n[1],xmax:i[0],ymax:i[1],spatialReference:{wkid:4326}})}function W(e,t){const n=(0,L.Dy)(e,t);return n?.length&&""!==n[0]&&!isNaN(Number(n[0]))?n.map(e=>Number(e)):null}function B(e){const t=(0,L.pN)(e,"MinimumValue"),n=(0,L.pN)(e,"MaximumValue");return t.length&&n.length?t.map((e,t)=>({min:e,max:n[t],avg:-1,stddev:-1})):null}function q(e){return null==e?null:e.every(t=>t===e[0])?e[0]:e}function U(e){const t=[],n=(0,L.IC)(e,"RangeSet");let i=[];for(let e=0;e<n.length;e++){const s=(0,L.mX)(n[e],"name"),r=(0,L.mX)(n[e],"label"),o=[],a=W(n[e],"nullValues/singleValue"),l=(0,L.IC)(n[e],"AxisDescription");for(let e=0;e<l.length;e++){const t=(0,L.mX)(l[e],"name"),n=(0,L.mX)(l[e],"label"),s=(0,L.Dy)(l[e],"singleValue");if(0===s.length){const t=(0,L.mX)(l[e],"min"),n=(0,L.mX)(l[e],"max"),i=Number((0,L.mX)(l[e],"res"))||1;if(null!==t&&null!==n)for(let e=parseInt(t,10);e<=parseInt(n,10);e+=i)s.push(e.toString())}"band"===t.toLowerCase()&&(i=s),o.push({name:t,label:n,values:s})}t.push({name:s,label:r,nullValues:a,axis:o})}return{rangeSet:t,bandNames:i}}function H(e=null){if(!e)return{resolution:null,units:null};let t=e.toUpperCase();const n=["Years","Months","Days","Hours","Minutes","Seconds"];let i,s,r;return t.includes("PT")?(t=t.slice(2),r=["H","M","S"].findIndex(e=>t.includes(e)),i=n[3+r],s=parseFloat(t.slice(0,-1))):(t=t.slice(1),r=["Y","M","D"].findIndex(e=>t.includes(e)),r>-1&&(i=n[r]),s=parseFloat(t.slice(0,-1))),{resolution:s,units:i}}function K(e){const t=(0,L.IC)(e,"timeposition");if(t.length>0){const e=[];for(let n=0;n<t.length;n++)e.push(new Date((0,L.mX)(t[n])));return{begin:e[0],end:e[e.length-1],values:e}}const n=(0,L.V6)(e,"timePeriod")||(0,L.V6)(e,"TimePeriod");return n?{begin:new Date((0,L.mX)(n,"beginPosition")||(0,L.mX)(n,"BeginPosition")),end:new Date((0,L.mX)(n,"endPosition")||(0,L.mX)(n,"EndPosition")),...H((0,L.mX)(n,"timeResolution")||(0,L.mX)(n,"TimeResolution"))}:null}function J(e){const t=(0,L.V6)(e,"spatialDomain"),n=(0,L.V6)(t,"Envelope")||(0,L.V6)(t,"EnvelopeWithTimePeriod"),i=n.getAttribute("srsName").split(":"),s=i[i.length-1],r=(0,L.IC)(n,"pos"),o=(0,L.pN)(r[0]),a=(0,L.pN)(r[1]),l=parseInt(s,10),u=isNaN(l)?null:{wkid:l},c=new R.A({xmin:o[0],ymin:o[1],xmax:a[0],ymax:a[1],spatialReference:u}),p=(0,L.V6)(t,"RectifiedGrid"),d=(0,L.mX)(p,"low").split(" "),f=(0,L.mX)(p,"high").split(" "),h=parseInt(f[0],10)-parseInt(d[0],10)+1,m=parseInt(f[1],10)-parseInt(d[1],10)+1,g=(0,L.pN)(t,"origin/pos"),v=(0,L.IC)(t,"offsetVector"),y={envelope:c,columns:h,rows:m,offset:{x:parseFloat((0,L.mX)(v[0]).split(" ")[0]),y:parseFloat((0,L.mX)(v[1]).split(" ")[1])},origin:{x:g[0],y:g[1]}},w=(0,L.V6)(e,"temporalDomain")||(0,L.V6)(e,"TemporalDomain");return{spatialDomain:y,temporalDomain:w?K(w):null}}function Y(e,t){const n=[],i=(0,L.IC)(e,"Field");let s,r=[];for(let e=0;e<i.length;e++){const o=(0,L.mX)(i[e],"Identifier"),a=(0,L.mX)(i[e],"Description"),l=(0,L.mX)(i[e],"Definition"),u=(0,L.mX)(i[e],"Abstract"),c=(0,L.mX)(i[e],"Title"),p=W(i[e],"NullValue"),d=(0,L.V6)(i[e],"AllowedValues"),f=d?B(d):null,h=_(i[e],"1.1.0"),m=[],g=(0,L.IC)(i[e],"Axis");for(let e=0;e<g.length;e++){const n=g[e].getAttribute("identifier"),i=(0,L.mX)(g[e],"UOM"),o=(0,L.mX)(g[e],"DataType"),a=(0,L.Dy)(g[e],"Key");t&&!n.toLowerCase().includes("band")||(r=a,s=p),m.push({identifier:n,uom:i,dataType:o,values:a,bandNoDataValues:s})}n.push({identifier:o,description:a,definition:l,abstract:u,title:c,supportedInterpolations:h,axis:m,nullValues:p,statistics:f})}return{rangeSet:n,bandNames:r,bandNoDataValues:s,statistics:n[0].statistics}}function Q(e){const t=(0,L.V6)(e,"SpatialDomain"),n=(0,L.V6)(t,"GridCRS"),i=(0,L.mX)(n,"GridBaseCRS"),s=(0,L.mX)(n,"GridOrigin"),r=s?.split(" ").map(e=>parseFloat(e))??[0,0],o=(0,L.pN)(n,"GridOffsets"),a=(0,L.IC)(t,"BoundingBox");let l,u,c,p;for(let e=0;e<a.length;e++){const t=a[e].getAttribute("crs")?.toLowerCase();if(null!=t)if(t.includes("imagecrs")){const t=(0,L.pN)(a[e],"LowerCorner"),n=(0,L.pN)(a[e],"UpperCorner");l=n[0]-t[0]+1,u=n[1]-t[1]+1}else if(t.indexOf("epsg")>0){const n=t.split(":");c=parseInt(n[n.length-1],10);const i=(0,L.pN)(a[e],"LowerCorner"),s=(0,L.pN)(a[e],"UpperCorner");p=new R.A({xmin:i[0],ymin:i[1],xmax:s[0],ymax:s[1],spatialReference:{wkid:c}})}}const d=l>u,f=p.xmax-p.xmin>p.ymax-p.ymin;let h=!1;(0,T.m)(c)&&(d===f?h=!1:(h=!0,p=new R.A({xmin:p.ymin,ymin:p.xmin,xmax:p.ymax,ymax:p.xmax,spatialReference:{wkid:c}})));const m={columns:l,rows:u,origin:{x:r[0],y:r[1]},offset:{x:o[0],y:o[o.length-1]},gridBaseCRS:i,envelope:p,useEPSGAxis:h},g=(0,L.V6)(e,"temporalDomain")||(0,L.V6)(e,"TemporalDomain");return{spatialDomain:m,temporalDomain:g?K(g):null}}function ee(e){const t=(0,L.V6)(e,"Envelope")||(0,L.V6)(e,"EnvelopeWithTimePeriod"),n=t.getAttribute("srsName"),i=n.slice(n.lastIndexOf("/")+1),s=t.getAttribute("axisLabels").split(" ").map(e=>e.trim()).filter(e=>""!==e.trim()),r=(0,L.pN)(t,"lowerCorner"),o=(0,L.pN)(t,"upperCorner"),a=!["y","lat","latitude","north","nor","n","b"].includes(s[0].toLowerCase());let l;const u=parseInt(i,10),c=isNaN(u)?null:{wkid:u};l=new R.A(a?{xmin:r[0],ymin:r[1],xmax:o[0],ymax:o[1],spatialReference:c}:{xmin:r[1],ymin:r[0],xmax:o[1],ymax:o[0],spatialReference:c});const p={mins:r,maxs:o},d=t.getAttribute("uomLabels").trim().split(" ");let f,h;if((0,L.g7)(t,"EnvelopeWithTimePeriod")){f=new Date((0,L.mX)(e,"beginPosition")||(0,L.mX)(e,"BeginPosition")),h=new Date((0,L.mX)(e,"endPosition")||(0,L.mX)(e,"EndPosition"));const t=d?.findIndex(e=>"oledatetime"===e?.toLowerCase());t>-1&&(d[t]="ISO8601")}return{envelope:l,axisLabels:s,uomLabels:d.length?d:null,envelopeAllDims:p,beginPosition:f,endPosition:h,isEastFirst:a}}function te(e,t){const n=[],i=(0,L.IC)(e,"DataRecord"),s=[];let r,o=[];for(let e=0;e<i.length;e++){const a=(0,L.IC)(i[e],"field"),l=[];for(let e=0;e<a.length;e++){const n=a[e].getAttribute("name"),i=(0,L.mX)(a[e],"description")||"",u=(0,L.V6)(a[e],"uom")?.getAttribute("code")||"",c=(0,L.pN)(a[e],"interval"),p=W(a[e],"nilValue")?.[0];t&&!n.toLowerCase().includes("band")||(s.push(n),c?.length&&(r=r||[],r.push({min:c[0],max:c[1],avg:-1,stddev:-1})),o.push(p)),l.push({name:n,description:i,uom:u,allowedValues:c,nilValue:p})}n.push(l)}return o.some(e=>null!=e)||(o=null),{rangeType:n,bandNames:s,bandStats:r,bandNoDataValues:o}}function ne(e){let t=1,n="";const i=.01;return Math.abs(e-1/24)<1/24*i?n="Hours":Math.abs(e-1)<1*i?n="Days":e<1?(t=Math.round(24*e),n="Hours"):e>28-i&&e<31+i||Math.round(e/30)<12?n="Months":e>365-i&&e<366+i&&(n="Years"),{interval:t,intervalUnit:n}}function ie(e,t){const n=(0,L.V6)(e,"RectifiedGrid"),i=(0,L.pN)(n,"low"),s=(0,L.pN)(n,"high"),r=[];for(let e=0;e<i.length;e++)r.push(s[e]-i[e]+1);const o=(0,L.mX)(n,"axisLabels").split(" "),a=(0,L.pN)(n,"origin/pos"),l=(0,L.IC)(n,"offsetVector"),u=[];for(let e=0;e<l.length;e++){const t=(0,L.pN)(l[e]),n=t.findIndex(e=>0!==e);u[n]=t[n]}let c,p,d,f=!1;return t?.length&&o?.length&&(f=[...t].sort((e,t)=>e<t?-1:1).join(",")===[...o].sort((e,t)=>e<t?-1:1).join(",")),["y","lat","latitude","north","nor","n","b"].includes((f?o:t)[0].toLowerCase())?(c=r[1],p=r[0],d={y:Math.abs(u[0]),x:Math.abs(u[1])}):(c=r[0],p=r[1],d={x:Math.abs(u[0]),y:Math.abs(u[1])}),{columns:c,rows:p,origin:a,offset:u,resolution:d,gridSamples:r,axisLabels:o,hasSameAxisLabelsAsBoundedBy:f}}function se(e){const t=(0,L.V6)(e,"EarthObservation");if(!t)return null;const n=(0,L.V6)(t,"phenomenonTime"),i=n?K(n):null,s=(0,L.V6)(t,"phenomenonTime"),r=s?K(s):null,o=(0,L.mX)(t,"featureOfInterest/Footprint/multiExtentOf/MultiSurface/surfaceMembers/Polygon/exterior/LinearRing/posList");let a=null;if(o){const e=o.split(" ").map(e=>e.trim()).filter(e=>null!=e&&""!==e).map(Number);if(e.length){const t=[];for(let n=0;n<e.length/2;n+=2)t.push(e[n],e[n+1]);a=new E.A({rings:[[t]]})}}return{observation:{phenomenonTime:i,resultTime:r,footprint:a,identifier:(0,L.mX)(e,"metaDataProperty/EarthObservationMetaData/identifier"),acquisitionType:(0,L.mX)(e,"metaDataProperty/EarthObservationMetaData/acquisitionType"),status:(0,L.mX)(e,"metaDataProperty/EarthObservationMetaData/status")}}}async function re(e,t){const{coverageIds:n,version:i,customParameters:s,signal:r}=t,a=i.slice(0,3),u="1.0"===a?"coverage":"1.1"===a?"identifiers":"coverageId",c={service:"WCS",request:"DescribeCoverage",version:i,[u]:n.join(","),...s};try{const{data:t}=await(0,D.A)(e,{query:c,responseType:"xml",signal:r});return function(e,t){let n=null;if(n="string"==typeof e?(new DOMParser).parseFromString(e,"text/xml"):e,"1.0.0"===t)return(0,L.IC)(n,"CoverageOffering").map(e=>function(e){const t={version:"1.0"};let n,i=[];for(let s=0;s<e.childNodes.length;s++){const r=e.childNodes[s];if(1===r.nodeType)if((0,L.g7)(r,"description"))t.description=(0,L.mX)(r);else if((0,L.g7)(r,"name"))t.name=(0,L.mX)(r);else if((0,L.g7)(r,"label"))t.label=(0,L.mX)(r);else if((0,L.g7)(r,"supportedFormats"))t.supportedFormats=(0,L.Dy)(r,"formats");else if((0,L.g7)(r,"supportedCRSs"))t.supportedCRSs=F(r);else if((0,L.g7)(r,"supportedInterpolations"))t.supportedInterpolations=_(r,"1.0.0");else if((0,L.g7)(r,"lonLatEnvelope"))t.lonLatEnvelope=z(r);else if((0,L.g7)(r,"rangeSet")){const e=U(r);t.rangeSet=e.rangeSet,i=e.bandNames;const s=e.rangeSet[0].nullValues;s?.length&&(n=q(s))}else(0,L.g7)(r,"domainSet")&&(t.domainSet=J(r))}const s=X(t.supportedInterpolations),{name:r,description:o,label:a,lonLatEnvelope:l,supportedFormats:u}=t,{spatialDomain:c}=t.domainSet,p={x:Math.abs(c.offset.x),y:Math.abs(c.offset.y)},d=function(e){if(!e.temporalDomain)return null;const{begin:t,end:n,values:i,units:s,resolution:r}=e.temporalDomain,o={variables:[{name:"default",description:"",dimensions:[{name:"StdTime",description:"",unit:"ISO8601",values:i?.map(e=>e.getTime()),hasRegularIntervals:!i,interval:r,intervalUnit:s,extent:[t.getTime(),n.getTime()]}]}]};return Z(o),o}(t.domainSet),f=new G.A({width:c.columns,height:c.rows,pixelSize:p,pixelType:"unknown",extent:c.envelope,spatialReference:c.envelope.spatialReference,bandCount:i.length||1,noDataValue:n,multidimensionalInfo:d});return{id:r,title:t.name,description:o||a,lonLatEnvelope:l,rasterInfo:f,bandNames:i,supportedFormats:u,supportedInterpolations:s,coverageDescription:t,version:"1.0.0",useEPSGAxis:!1}}(e));const i=(0,L.IC)(n,"CoverageDescription");return"1.1.0"===t||"1.1.1"===t||"1.1.2"===t?i.map(e=>function(e,t){const n=[],i=[],s={supportedFormats:n,supportedCRSs:i,version:"1.1"};let r,o,a=[];for(let t=0;t<e.childNodes.length;t++){const l=e.childNodes[t];if(1!==l.nodeType)continue;const u=(0,L.vv)(l).toLowerCase();switch(u){case"title":case"abstract":case"identifier":s[u]=(0,L.mX)(l);break;case"supportedformat":{const e=(0,L.mX)(l);n.includes(e)||n.push(e)}break;case"supportedcrs":{const e=(0,L.mX)(l);i.includes(e)||i.push(e)}break;case"range":{const e=Y(l,!!s.domain?.temporalDomain);s.range=e.rangeSet,a=e.bandNames;const{bandNoDataValues:t}=e;t?.length&&(r=q(t)),o=e.statistics}break;case"domain":s.domain=Q(l)}}const l=X(s.range[0].supportedInterpolations),{identifier:u,abstract:c,title:p,domain:d,range:f}=s,h={x:Math.abs(d.spatialDomain.offset.x),y:Math.abs(d.spatialDomain.offset.y)},m=function(e,t){if(!t.temporalDomain)return null;const n=e.filter(e=>!e.identifier.toLowerCase().includes("field_1")&&!e.axis.some(e=>e.identifier.includes("band"))),i=[];if(n.length&&n.forEach(e=>{const t=e.axis.map(e=>{const t=e.values.map(t=>"ISO8601"===e.uom?(t=t.trim()).toLowerCase().includes("z")?new Date(t).getTime():new Date(t+"Z").getTime():parseFloat(t.trim())),n=[Math.min.apply(null,t),Math.max.apply(null,t)];return{name:e.identifier.trim(),description:"",field:e.identifier.trim(),unit:e.uom?e.uom.trim():"",hasRegularIntervals:!1,values:t,extent:n}});i.push({name:e.identifier.trim(),description:e.description?.trim()??"",unit:"",dimensions:t,statistics:e.statistics})}),t.temporalDomain){const{begin:e,end:n,values:s,units:r,resolution:o}=t.temporalDomain;i.some(e=>e.dimensions.some(e=>"stdtime"===e.name.toLowerCase()))||i.forEach(t=>{t.dimensions.push({name:"StdTime",description:"",unit:"ISO8601",values:s?.map(e=>e.getTime()),hasRegularIntervals:!s,interval:o,intervalUnit:r,extent:[e.getTime(),n.getTime()]})})}if(i.length){const e={variables:i};return Z(e),e}return null}(f,d);m&&(r=f[0].nullValues,1===r?.length&&(r=r[0]));const g=new G.A({width:d.spatialDomain.columns,height:d.spatialDomain.rows,pixelSize:h,pixelType:"unknown",extent:d.spatialDomain.envelope,spatialReference:d.spatialDomain.envelope.spatialReference,bandCount:a.length||1,noDataValue:r,statistics:o,multidimensionalInfo:m});return{id:u,title:s.title,description:c||p,bandNames:a,rasterInfo:g,supportedFormats:n,supportedInterpolations:l,coverageDescription:s,version:t,useEPSGAxis:d.spatialDomain.useEPSGAxis}}(e,t)):i.map(e=>function(e){const t={version:"2.0"};let n,i,s=[];for(let r=0;r<e.childNodes.length;r++){const o=e.childNodes[r];if(1===o.nodeType)if((0,L.g7)(o,"coverageId"))t.coverageId=(0,L.mX)(o);else if((0,L.g7)(o,"ServiceParameters"))t.serviceParameters={supportedFormats:(0,L.Dy)(o,"nativeFormat")};else if((0,L.g7)(o,"boundedBy"))t.boundedBy=ee(o);else if((0,L.g7)(o,"rangeType")){const e=te(o,t.boundedBy?.axisLabels.length>2||t.domainSet?.axisLabels.length>2);t.rangeType=e.rangeType,s=e.bandNames,n=e.bandStats;const{bandNoDataValues:r}=e;r?.length&&(i=q(r))}else if((0,L.g7)(o,"domainSet"))t.domainSet=ie(o,t.boundedBy?.axisLabels);else if((0,L.g7)(o,"metadata")){const e=(0,L.V6)(o,"EOMetadata");t.eoMetadata=e?se(e):null}}const{coverageId:r,boundedBy:o,domainSet:a,rangeType:l,serviceParameters:u}=t,c=function(e,t,n){if(n.axisLabels.length<=2)return null;const i=[];for(let t=0;t<e.length;t++){const n=e[t];for(let e=0;e<n.length;e++)n[e].name.toLowerCase().includes("band")||i.push(n[e])}const s=[];if(i.length){const e=[];for(let i=2;i<n.axisLabels.length;i++){const s=t.uomLabels?.[i]?.trim()??"",r=n.axisLabels[i].toLowerCase().includes("time")||"iso8601"===s.toLowerCase()||"oledatetime"===s.toLowerCase();let o,a;if(r){const e=ne(n.offset[i]);o=e.interval,a=e.intervalUnit}else o=n.offset[i],a=s;const l=[];r?(l.push((0,k.$E)(t.envelopeAllDims.mins[i])),l.push((0,k.$E)(t.envelopeAllDims.maxs[i]))):(l.push(t.envelopeAllDims.mins[i]),l.push(t.envelopeAllDims.maxs[i])),e.push({name:n.axisLabels[i].trim(),description:n.axisLabels[i].trim(),unit:r?"ISO8601":s,hasRegularIntervals:!0,extent:l,interval:o,intervalUnit:a})}if(i.forEach(t=>{const{allowedValues:n}=t,i=2===n?.length?[{min:n[0],max:n[1],avg:-1,stddev:-1}]:null;s.push({name:t.name.trim(),description:t.description?.trim()??"",unit:t.uom.trim(),statistics:i,dimensions:[...e]})}),s.length){const e={variables:s};return Z(e),e}}return null}(l,o,a);return!n&&c&&(n=c?.variables[0].statistics),null!=c&&(i=l[0][0].nilValue),{id:r,title:r,description:r,bandNames:s,rasterInfo:new G.A({width:a.columns,height:a.rows,pixelSize:a.resolution,pixelType:"unknown",extent:o.envelope,spatialReference:o.envelope.spatialReference,bandCount:s.length||1,statistics:n,noDataValue:i,multidimensionalInfo:c}),supportedFormats:u.supportedFormats,coverageDescription:t,version:"2.0.1",useEPSGAxis:!1}}(e))}(t,i)}catch(e){if(!(0,l.zf)(e))throw new o.A("wcslayer:open","wcs coverage description is not valid or supported");throw e}}var oe=n(49859);function ae(e,t,n=0){const i="--"+t.boundary,s=[];for(let e=0;e<i.length;e++)s.push(i.charCodeAt(e));const r=[],o="\n--"+t.boundary+"--";for(let e=0;e<o.length;e++)r.push(o.charCodeAt(e));const a=[10],l=[13,10],u=[],c=s.length,p=new Uint8Array(e,n),d=p.length-c;let f=0,h=0;for(let e=0;e<d;e++){for(h=0;h<c&&p[e+h]===s[h];h++);if(h!==c)continue;let n=!1;if(f){const i=le(p.subarray(f,e),t);u.push(i),n=!!i.isValidImage}if(e+=c-1,p[e+1]===a[0]?e+=1:p[e+1]===l[0]&&p[e+2]===l[1]&&(e+=2),f=e+1,n)break}const m=r.length;for(let e=p.length-m-10;e<p.length-m;e++){for(h=0;h<m&&p[e+h]===r[h];h++);if(h===m){u.push(le(p.subarray(f,e),t));break}}return u}function le(e,t){const n=String.fromCharCode.apply(null,e.subarray(0,Math.min(300,e.length))).split("\n"),i=Math.min(n.length,7),s={contentDisposition:"inline"};let r=0;for(let o=0;o<i;o++)if(n[o].length<4)r=r+n[o].length+1;else if("content"===n[o].slice(0,7).toLowerCase()){r=r+n[o].length+1;const e=n[o].indexOf(":");if(-1===e)continue;const t=n[o].slice(0,e).trim(),i=n[o].slice(e+1).trim();switch(t.toLowerCase()){case"content-type":s.contentType=i;break;case"content-description":s.contentDescription=i;break;case"content-transfer-encoding":s.contentTransferEncoding=i;break;case"content-id":s.contentID=i;break;case"content-disposition":s.contentDisposition=i;break;case"content-location":s.contentLocation=i}}else{if(s.contentDisposition.toLowerCase().includes("inline")&&n[o].length>=4&&s.contentType?.toLowerCase().includes("image")){let t=!0,n=e.subarray(r,e.length);if(s.contentType.toLowerCase().indexOf("tif")>0){if("base64"===s.contentTransferEncoding){let e="";const t=n;for(let n=0;n<t.length;n+=65535){const i=t.subarray(n,n+65535>t.length-1?t.length-1:n+65535);e+=String.fromCharCode.apply(null,i)}const i=atob(e);n=new Uint8Array(i.length);for(let e=0;e<n.length;e++)n[e]=i.charCodeAt(e)}t=73===n[0]&&73===n[1]||77===n[0]&&77===n[1]}if(t){let t=n.buffer;"base64"!==s.contentTransferEncoding&&(t=new ArrayBuffer(e.length-r),n=new Uint8Array(t),n.set(e.subarray(r,e.length))),s.contentData=t,s.isValidImage=!0}break}if((""===t.start||s.contentID===t.start)&&s.contentType){if(s.contentType.includes("text")||s.contentType.includes("xml")){s.contentData=String.fromCharCode.apply(null,e.subarray(r,e.length));break}s.contentData=e.subarray(r,e.length)}}return s}var ue=n(20758),ce=n(47520),pe=n(45617);const de=["nearest neighbor","bilinear","bicubic"],fe=["nearest","linear","cubic"],he="response is not a supported multipart/related mediaType with inline tiff, switching to compatibility mode",me=new Set(["1.0.0","1.1.0","1.1.1","1.1.2","2.0.1"]);let ge=class extends oe.A{constructor(){super(...arguments),this.datasetFormat="WCSServer",this.tileType="Raster"}get rasterId(){return`${this.url}-${this.coverageId}-${this.version}`}async fetchRawTile(e,t,n,i={}){if(this.isBlockOutside(e,t,n))return null;const{nativePixelSize:s,spatialReference:r}=this.rasterInfo,a=2**e,l=s.x*a,u=s.y*a,{blockWidth:c,blockHeight:p}=this.getBlockWidthHeight(e),{origin:d}=this.rasterInfo.storageInfo.tileInfo,f=this.getTileExtent({x:l,y:u},t,n,d,r,[c,p]),h=this.rasterInfo.extent,m=f.xmax>h.xmax,g=f.ymin<h.ymin,v=m||g;let y=f,w=c,x=p;if(v&&(y=f.clone().intersection(h),null!=y&&(m&&(w=Math.floor((y.xmax-y.xmin)/l),y.xmax=y.xmin+l*w),g&&(x=Math.floor((y.ymax-y.ymin)/u),y.ymin=y.ymax-u*x))),null==y||w<=1||x<=1)return null;const b=await this._getCoverage(y,w,x,a,i);if(!b)return null;const{coverageDescription:C}=this.coverageInfo,{noDataValue:I,multidimensionalInfo:S}=this.rasterInfo,{multidimensionalDefinition:A}=i;let M;if(null!=S&&null!=A&&A.length){const e=A[0].variableName;if("2.0"===C.version){const t=C.rangeType[0].find(t=>t.name===e);M=t?.nilValue}else if("1.1"===C.version){const t=C.range.find(t=>t.identifier===e);M=t?.nullValues}}const R=M??I,T=await this.decodePixelBlock(b,{width:w,height:x,planes:null,pixelType:null,tiffNoDataValue:Array.isArray(R)?R[0]:R,matchAllNoData:!0});if(null==T)return null;if(T&&(T.width!==w||T.height!==x))throw new o.A("wcsraster-fetch",`the response has unexpected dimension width: ${T.width}, height: {pixelBlock.height}`);return v?(0,ce.$Q)(T,{x:0,y:0},{width:p,height:p}):T}async _open(e){const{customFetchParameters:t}=this.ioConfig,n=e?.signal,i=await async function(e,t){const{version:n,customParameters:i,signal:s}=t??{},r=n?.startsWith("1.0")?"version":"acceptVersions",a={service:"WCS",request:"GetCapabilities",[r]:n,...i};try{let{data:n}=await(0,D.A)(e,{query:a,responseType:"xml",signal:s});return t?.version||function(e){let t=null;t="string"==typeof e?(new DOMParser).parseFromString(e,"text/xml"):e;const n=t.documentElement.getAttribute("version"),i=n?.slice(0,3);return null!=i&&i<"2.1"}(n)||(a[r]="2.0.1",({data:n}=await(0,D.A)(e,{query:a,responseType:"xml",signal:s}))),$(n)}catch(e){if(!(0,l.zf)(e))throw new o.A("wcslayer:open","wcs capabilities is not valid or supported");throw e}}(this.url,{version:t?.version??this.version,customParameters:t,signal:n});if(this.capabilities=i,!this.version){let e=i.version.slice(0,3);"2.0"===e||"1.1"===e||"1.0"===e?this.version=i.version:(e=i.supportedVersions.find(e=>"2.0.1"===e)||i.supportedVersions.find(e=>e.startsWith("2.0"))||i.supportedVersions.find(e=>e.startsWith("1.1"))||i.supportedVersions.find(e=>e.startsWith("1.0"))||"1.0.0",this.version=e)}const{version:s}=this;if(!me.has(s))throw new o.A("wcsraster-open",`unsupported WCS version ${s}`);const{gridCoverages:r}=i;if(!r.length)throw new o.A("wcsraster-open","cannot find rectified grid coverages");this.coverageId??=r[0].id;const{coverageId:a}=this,u=r.find(e=>e.id===a);if(null==u)throw new o.A("wcsraster-open",`the coverageId ${a} does not exist in capabilities`);const c=await re(this.url,{coverageIds:[a],version:s,customParameters:t,signal:n});if(this.coverageInfo=c[0],s.startsWith("2.0")){const{coverageInfo:e}=this;e.lonLatEnvelope=u.lonLatEnvelope,e.supportedInterpolations=X(i.supportedInterpolations),this._patchDimensionValues201(a,n)}this.datasetName=this.coverageInfo.title;const{rasterInfo:p}=this.coverageInfo;if(this.createRemoteDatasetStorageInfo(p,512,512),this._set("rasterInfo",p),null==p.spatialReference)throw new o.A("wcsraster-open",`coverage without spatial reference is not supported: ${a}`);const{pixelType:d,bandCount:f}=await this._getPixelTypeAndBandCount(n);p.pixelType=d,1===p.bandCount&&f>1&&(p.bandCount=f),this.updateTileInfo()}async _patchDimensionValues201(e,t){const{coverageInfo:n}=this,i=n.rasterInfo.multidimensionalInfo?.variables,s=me.has("1.1.2")?"1.1.2":me.has("1.1.1")?"1.1.1":me.has("1.1.0")?"1.1.0":null,{customFetchParameters:r}=this.ioConfig;if(i&&s)try{const n=this.url.includes("/ImageServer/"),o=e.length>8&&e.startsWith("Coverage")&&n?e.slice(8):e,a=await re(this.url,{coverageIds:[o??e],version:s,customParameters:r,signal:t}).catch(()=>{if(o)return re(this.url,{coverageIds:[e],version:s,customParameters:r,signal:t})}),l=a?.[0].rasterInfo.multidimensionalInfo?.variables;if(l)for(const e of i){const t=l.find(({name:t})=>t===e.name);if(t?.dimensions?.length)for(let i=e.dimensions.length-1;i>=0;i--){const s=e.dimensions[i],r=t.dimensions.find(({name:e})=>e===s.name);r?r.values&&r.extent?.join(",")===s.extent?.join(",")&&(e.dimensions[i]={...s,values:r.values}):n&&e.dimensions.splice(i,1)}}}catch{}}async _getPixelTypeAndBandCount(e){const{pixelSize:t,extent:n,multidimensionalInfo:i}=this.rasterInfo,s=n.center,r=new R.A({xmin:s.x-t.x,xmax:s.x+t.x,ymin:s.y-t.y,ymax:s.y+t.y,spatialReference:n.spatialReference});let a=[];if(null!=i){const e=i.variables[0];a=[],e.dimensions.forEach(t=>{a.push(new pe.A({variableName:e.name,dimensionName:t.name,values:t.hasRegularIntervals?t.extent?.[0]:t.values?.[0],isSlice:!0}))})}const{coverageDescription:l}=this.coverageInfo,u={interpolation:"nearest",multidimensionalDefinition:a,signal:e},{version:c}=l,{ioConfig:p}=this,d="2.0"===c&&null==p.allowAnyMediaType||"1.1"===c&&null==p.use2GridOffsets;let f;try{f=await this._getCoverage(r,2,2,1,u,!0)}catch(e){if(!d)throw e;if("1.1"===c){if(!e.details?.isResolutionMismatch)throw e;p.use2GridOffsets=!0}}if(!f&&d&&("2.0"===c&&(p.allowAnyMediaType=!0),f=await this._getCoverage(r,2,2,1,u),f&&M.A.getLogger(this).warn("wcsraster:getcoverage",he)),!f)throw new o.A("wcsraster-open","unable to determine pixel type");const h=await this.decodePixelBlock(f,{width:2,height:2,planes:null,pixelType:null});if(null==h)throw new o.A("wcsraster-open","unable to determine pixel type");return{pixelType:h.pixelType,bandCount:h.getPlaneCount()??0}}async _getCoverage(e,t,n,i,s,r=!1){const{coverageDescription:a}=this.coverageInfo,{version:l}=a,u="2.0"===l?this._getCoverage201Parameters(e,t,n,i,s,a):"1.1"===l?this._getCoverage110Parameters(e,t,n,s,a):this._getCoverage100Parameters(e,t,n,s),c="2.0"===l?await this.request(this._constructWCS201Url(u),{signal:s.signal,responseType:"array-buffer"}):await this.request(this.url,{query:u,signal:s.signal,responseType:"array-buffer"});if("1.0"===l)return c.data;if("2.0"===l&&!1!==this.ioConfig.allowAnyMediaType&&"tiff"===(0,ue.g)(c.data))return r&&(this.ioConfig.allowAnyMediaType=!0,M.A.getLogger(this).warn("wcsraster:getcoverage",he)),c.data;const p=function(e){const t=function(e){const t=e.getHeader?.("Content-Type")?.split(";");if(!t)return null;if(!(t[0].trim()??"").startsWith("multipart/"))return null;const n={boundary:"",start:"",type:""};for(let e=1;e<t.length;e++){const i=t[e].indexOf("=");if(i>0){const s=t[e].slice(0,i).trim(),r=t[e].slice(i+1).trim();n[s]=r.startsWith('"')?r.slice(1,-1):r}}return n}(e);return t?{isMultipart:!0,data:t.boundary?ae(e.data,t,0):null}:{isMultipart:!1,data:null}}(c);if(p.isMultipart&&p.data){const e=p.data.find(e=>e.isValidImage);return r&&"base64"===e?.contentTransferEncoding&&M.A.getLogger(this).warn("wcsraster:getcoverage","response is base64 encoded which may impact layer display performance"),e?.contentData}const d=new Uint8Array(c.data,0,Math.min(c.data.byteLength,2e3)),f=String.fromCharCode.apply(null,d).toLowerCase().includes("exception"),h=f&&String.fromCharCode.apply(null,d).includes("A non-zero RESX/RESY or WIDTH/HEIGHT is required but neither was provided");if(f)throw new o.A("wcsraster:getcoverage","server returns an exception",{isResolutionMismatch:h});throw new o.A("wcsraster:getcoverage","response is not a supported multipart mediaType with inline tiff")}_getInterpolationIndex(e){return e&&this.coverageInfo.supportedInterpolations?.includes(e)?"nearest"===e?0:"bilinear"===e?1:"cubic"===e?2:0:0}_getCoverage100Parameters(e,t,n,i){const s=`${e.xmin},${e.ymin},${e.xmax},${e.ymax}`,r=e.spatialReference.wkid,o=(this.coverageInfo.supportedFormats||[]).find(e=>e.toLowerCase().includes("tiff"))||"GEOTIFF",{bandIds:a,interpolation:l}=i,u=this._getInterpolationIndex(l),c=a?a.map(e=>this.coverageInfo.bandNames[e]):null,p=de[u],{multidimensionalDefinition:d}=i;let f;if(null!=d&&null!=this.rasterInfo.multidimensionalInfo){const e=d.find(e=>"StdTime"===e.dimensionName);let t=e?.values;t&&t.length>0&&(Array.isArray(t[0])&&(t=t[0]),f=t.map(e=>ve(e)).join(","))}return{service:"WCS",request:"GetCoverage",version:this.version,coverage:this.coverageId,format:o,crs:`EPSG:${r}`,bbox:s,width:t,height:n,time:f,interpolation:p,band:c?.join(",")}}_getCoverage110Parameters(e,t,n,i,s){const{multidimensionalDefinition:r,bandIds:o,interpolation:a}=i,l=e.spatialReference.wkid,u=`urn:ogc:def:crs:EPSG::${l}`,c=(this.coverageInfo.supportedFormats||[]).find(e=>e.toLowerCase().includes("tiff"))||"image/tiff",p=this._getInterpolationIndex(a),d=fe[p],f=null==a||0===this.coverageInfo.supportedInterpolations?.indexOf(a),h=s.domain.spatialDomain,m=h.origin.x<=h.envelope.xmin&&h.origin.y<=h.envelope.ymin,g=e.width/t,v=e.height/n*(m?1:-1),y=m?[e.xmin,e.ymin]:[e.xmin,e.ymax],w=h.useEPSGAxis&&(0,T.m)(l),x=w?`${y[1]},${y[0]}`:`${y[0]},${y[1]}`,b=this.ioConfig.use2GridOffsets,C=w?b?`${v},${g}`:`${v},0,0,${g}`:b?`${g},${v}`:`${g},0,0,${v}`,I=g/2,S=e.xmin+I,A=e.xmax-I,M=Math.abs(v)/2,R=e.ymin+M,D=e.ymax-M,L=w?`${R},${S},${D},${A},${u}`:`${S},${R},${A},${D},${u}`,P=s.range.find(e=>e.axis.some(e=>e.identifier.toLowerCase().includes("band")));let O,N=P&&d&&o?f?`${P.identifier}[${P.axis[0].identifier}[${o.join(",")}]]`:`${P.identifier}:${d}[${P.axis[0].identifier}[${o.join(",")}]]`:null;if(null!=r&&r.length)for(let e=0;e<r.length;e++){let t=r[e].values;const n=r[e].dimensionName?.toLowerCase(),i=r[e].variableName?.toLowerCase(),o=s.range.find(e=>e.identifier.toLowerCase()===i);if(t.length>0)if(Array.isArray(t[0])&&(t=t[0]),"stdtime"===n)O=t.map(e=>ve(e)).join(",");else if(o){const e=o.axis.find(e=>e.identifier.toLowerCase()===n);e&&(N=f?o.identifier+"["+e.identifier+"["+t.join(",")+"]]":o.identifier+":"+d+"["+e.identifier+"["+t.join(",")+"]]")}e===r.length-1&&o&&!N&&(N=f?o.identifier:o.identifier+":"+d)}return{service:"WCS",request:"GetCoverage",version:this.version,identifier:this.coverageId,format:c,crs:`EPSG:${l}`,boundingbox:L,gridCS:"urn:ogc:def:cs:OGC:0.0:Grid2dSquareCS",gridType:"urn:ogc:def:method:WCS:1.1:2dGridIn2dCrs",gridOrigin:x,gridOffsets:C,gridBaseCRS:u,timeSequence:O,rangeSubset:N}}_getCoverage201Parameters(e,t,n,i,s,r){const{multidimensionalDefinition:o,interpolation:a}=s,l=this._getInterpolationIndex(a);let u=null;const{supportedInterpolations:c}=this.capabilities;if(c?.length)switch(l){case 0:u=c.find(e=>e.toLowerCase().includes("nearest"));break;case 1:u=c.find(e=>e.toLowerCase().includes("linear"));break;case 2:u=c.find(e=>e.toLowerCase().includes("cubic")||e.toLowerCase().includes("quadratic"))}const p=(this.coverageInfo.supportedFormats||[]).find(e=>e.toLowerCase().includes("tiff"))||"image/tiff",{bandNames:d}=this.coverageInfo,{boundedBy:f,domainSet:h,rangeType:m}=r,g=f.isEastFirst?0:1,v=1-g,{axisLabels:y}=f,w=y[g],x=y[v],b=`http://www.opengis.net/def/crs/EPSG/0/${e.spatialReference.wkid}`,C=b,I=[];I.push(`${w}(${e.xmin},${e.xmax})`),I.push(`${x}(${e.ymin},${e.ymax})`);const S=[];if(y.length>2)for(let e=2;e<y.length;e++){const t=h.origin[e];if(y[e].toLowerCase().includes("time")){let n=t.toString();f.uomLabels?.[e].toLowerCase().includes("ole")&&(S.push(y[e]),n=ve(t,!0)),I.push(y[e]+",http://www.opengis.net("+n+")")}else I.push(y[e]+",http://www.opengis.net("+t+")")}let A=null;if(null!=o&&o.length){const e=[];m.forEach(t=>t.forEach(t=>e.push(t.name)));const t=[];for(let n=0;n<o.length;n++){const i=y.find(e=>e===o[n].dimensionName),s=e.find(e=>e===o[n].variableName);if(t.includes(s)||t.push(s),i){let e=o[n].values;if(e.length>0){Array.isArray(e[0])&&(e=e[0]);let t="";t=i.toLowerCase().includes("time")?e.map(e=>ve(e)).join(","):e.join(",");const n=I.findIndex(e=>e.startsWith(i+",http://www.opengis.net"));-1===n&&I.push(i+",http://www.opengis.net("+t+")"),-1===n||I[n].includes("("+t+")")||I.splice(n,1,i+",http://www.opengis.net("+t+")")}}}t.length&&(A=t.join(","))}else d?.length>=2&&(A=(s.bandIds?s.bandIds.map(e=>d[e]):d).join(","));const M=I.join("&subset="),R=!r.domainSet.hasSameAxisLabelsAsBoundedBy&&!1!==this.ioConfig.allowScaleFactor,T=R?null:`${w}(${t}),${x}(${n})`,D=R?1/i:null;return{service:"WCS",request:"GetCoverage",version:this.version,coverageId:this.coverageId,rangesubset:A,interpolation:u,scaleSize:T,scaleFactor:D,subset:M,format:p,mediaType:this.ioConfig.allowAnyMediaType?null:"multipart/related",outputcrs:b,subsettingcrs:C}}_constructWCS201Url(e){const t={...this.ioConfig.customFetchParameters,...e},n=[];return Object.keys(t).forEach(e=>{const i=t[e];null!=i&&("subset"===e?"string"==typeof i&&i.split("&subset=").forEach(e=>{e&&n.push(`subset=${encodeURIComponent(e)}`)}):n.push(`${e}=${encodeURIComponent(i)}`))}),`${encodeURI(this.url)}?${n.join("&")}`}};function ve(e,t=!1){return(t?new Date((0,k.$E)(e)):new Date(e)).toISOString()}(0,i.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],ge.prototype,"datasetFormat",void 0),(0,i.Cg)([(0,c.MZ)({readOnly:!0})],ge.prototype,"tileType",void 0),(0,i.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],ge.prototype,"version",void 0),(0,i.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],ge.prototype,"coverageId",void 0),(0,i.Cg)([(0,c.MZ)({readOnly:!0})],ge.prototype,"rasterId",null),ge=(0,i.Cg)([(0,c.$K)("esri.layers.raster.datasets.WCSRaster")],ge);var ye=n(10873),we=n(20437),xe=n(74797),be=n(30291);const Ce=new Set(["milliseconds","seconds","minutes","hours","days","weeks","months","years","decades","centuries"]);let Ie=class extends((0,v.dM)((0,I.j)((0,w.q)((0,x.A)((0,y.d)((0,A.b)((0,b.G)((0,S.e)((0,C.J)((0,a.M)((0,r.OU)(g.A)))))))))))){constructor(...e){super(...e),this.coverageId=null,this.version=null,this.isReference=null,this.graphicOrigin=new m(this),this.legendEnabled=!0,this.noData=0,this.operationalLayerType="WCS",this.type="wcs",this.popupEnabled=!0,this.popupTemplate=null,this.fields=null,this._debouncedSaveOperations=(0,l.sg)(async(e,t,i)=>{const{save:s,saveAs:r}=await n.e(9838).then(n.bind(n,59838));switch(e){case 0:return s(this,t);case 1:return r(this,i,t)}})}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}load(e){const t=null!=e?e.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["WCS"]},e).catch(l.QP).then(()=>this._openRaster(t))),Promise.resolve(this)}get renderer(){return super.renderer}set renderer(e){super.renderer=e}get coverageInfo(){return this.raster.coverageInfo}get defaultPopupTemplate(){return this.createPopupTemplate()}get rasterFields(){const e=[(0,xe.rZ)("Pixel Value")],t=this.raster?.rasterInfo??this.serviceRasterInfo,n=t?.multidimensionalInfo;if(n){const t=(0,xe.AL)(n);e.push(...t)}return e}createPopupTemplate(e){return(0,be.tn)({fields:this.rasterFields,title:this.title},e)}async save(e){return this._debouncedSaveOperations(0,e)}async saveAs(e,t){return this._debouncedSaveOperations(1,t,e)}async _openRaster(e){const t=new ge({url:this.url,version:this.version,coverageId:this.coverageId,ioConfig:{sampling:"closest",...this.ioConfig,customFetchParameters:this.customParameters}});if(await t.open({signal:e}),!t.rasterInfo)throw t.destroy(),new o.A("wcs-layer:load","cannot load resources on "+this.url);const{rasterInfo:n}=t;null==n.noDataValue&&(n.noDataValue=this.noData),this._set("serviceRasterInfo",n),this._set("spatialReference",n.spatialReference),null==this.title&&this.setAtOrigin("title",t.datasetName,"service"),null==this.coverageId&&this.setAtOrigin("coverageId",t.coverageInfo.id,"service"),null==this.version&&t.version&&this.setAtOrigin("version",t.version,"service"),this.setAtOrigin("tileInfo",t.rasterInfo.storageInfo.tileInfo,"service");const{multidimensionalInfo:i}=n;if(null!=i){const e=i.variables[0].dimensions.find(({name:e})=>"StdTime"===e);if(e){let t=e.extent?.[0]??e.values[0];Array.isArray(t)&&(t=t[0]);let n=e.extent?.[1]??e.values[e.values.length-1];Array.isArray(n)&&(n=n[1]);const i=Ce.has(e.intervalUnit?.toLowerCase())?e.intervalUnit?.toLowerCase():null;this.set("timeInfo",{startField:"StdTime",fullTimeExtent:{start:t,end:n},timeZone:null,interval:i?{value:e.interval,unit:i}:null})}}this.raster=t,this._configDefaultSettings(),this.addHandles((0,u.wB)(()=>this.customParameters,e=>this.raster.ioConfig.customFetchParameters=e))}};(0,i.Cg)([(0,c.MZ)({type:String,nonNullable:!0,json:{name:"wcsInfo.coverageId",write:{isRequired:!0,ignoreOrigin:!0}}})],Ie.prototype,"coverageId",void 0),(0,i.Cg)([(0,c.MZ)()],Ie.prototype,"coverageInfo",null),(0,i.Cg)([(0,c.MZ)({type:["1.0.0","1.1.0","1.1.1","1.1.2","2.0.1"],nonNullable:!0,json:{name:"wcsInfo.version",write:{isRequired:!0,ignoreOrigin:!0}}})],Ie.prototype,"version",void 0),(0,i.Cg)([(0,c.MZ)({type:Boolean,json:{read:!1,write:{enabled:!0,overridePolicy:()=>({enabled:!1})}}})],Ie.prototype,"isReference",void 0),(0,i.Cg)([(0,c.MZ)({json:{read:!0,write:!0}})],Ie.prototype,"blendMode",void 0),(0,i.Cg)([(0,c.MZ)({readOnly:!0,clonable:!1})],Ie.prototype,"graphicOrigin",void 0),(0,i.Cg)([(0,c.MZ)(ye.fV)],Ie.prototype,"legendEnabled",void 0),(0,i.Cg)([(0,c.MZ)({type:["show","hide"]})],Ie.prototype,"listMode",void 0),(0,i.Cg)([(0,c.MZ)()],Ie.prototype,"noData",void 0),(0,i.Cg)([(0,c.MZ)({type:["WCS"]})],Ie.prototype,"operationalLayerType",void 0),(0,i.Cg)([(0,c.MZ)()],Ie.prototype,"raster",void 0),(0,i.Cg)([(0,c.MZ)({readOnly:!0})],Ie.prototype,"type",void 0),(0,i.Cg)([(0,c.MZ)(ye.M6)],Ie.prototype,"popupEnabled",void 0),(0,i.Cg)([(0,c.MZ)({type:s.A,json:{name:"popupInfo",write:!0}})],Ie.prototype,"popupTemplate",void 0),(0,i.Cg)([(0,c.MZ)({readOnly:!0})],Ie.prototype,"defaultPopupTemplate",null),(0,i.Cg)([(0,c.MZ)({readOnly:!0,type:[we.A]})],Ie.prototype,"fields",void 0),(0,i.Cg)([(0,c.MZ)({readOnly:!0,type:[we.A]})],Ie.prototype,"rasterFields",null),Ie=(0,i.Cg)([(0,c.$K)("esri.layers.WCSLayer")],Ie);const Se=Ie},38458(e,t,n){n.d(t,{m:()=>s});const i=[[3819,3819],[3821,3824],[3889,3889],[3906,3906],[4001,4025],[4027,4036],[4039,4047],[4052,4055],[4074,4075],[4080,4081],[4120,4176],[4178,4185],[4188,4216],[4218,4289],[4291,4304],[4306,4319],[4322,4326],[4463,4463],[4470,4470],[4475,4475],[4483,4483],[4490,4490],[4555,4558],[4600,4646],[4657,4765],[4801,4811],[4813,4821],[4823,4824],[4901,4904],[5013,5013],[5132,5132],[5228,5229],[5233,5233],[5246,5246],[5252,5252],[5264,5264],[5324,5340],[5354,5354],[5360,5360],[5365,5365],[5370,5373],[5381,5381],[5393,5393],[5451,5451],[5464,5464],[5467,5467],[5489,5489],[5524,5524],[5527,5527],[5546,5546],[2044,2045],[2081,2083],[2085,2086],[2093,2093],[2096,2098],[2105,2132],[2169,2170],[2176,2180],[2193,2193],[2200,2200],[2206,2212],[2319,2319],[2320,2462],[2523,2549],[2551,2735],[2738,2758],[2935,2941],[2953,2953],[3006,3030],[3034,3035],[3038,3051],[3058,3059],[3068,3068],[3114,3118],[3126,3138],[3150,3151],[3300,3301],[3328,3335],[3346,3346],[3350,3352],[3366,3366],[3389,3390],[3416,3417],[3833,3841],[3844,3850],[3854,3854],[3873,3885],[3907,3910],[4026,4026],[4037,4038],[4417,4417],[4434,4434],[4491,4554],[4839,4839],[5048,5048],[5105,5130],[5253,5259],[5269,5275],[5343,5349],[5479,5482],[5518,5519],[5520,5520],[20004,20032],[20064,20092],[21413,21423],[21473,21483],[21896,21899],[22171,22177],[22181,22187],[22191,22197],[25884,25884],[27205,27232],[27391,27398],[27492,27492],[28402,28432],[28462,28492],[30161,30179],[30800,30800],[31251,31259],[31275,31279],[31281,31290],[31466,31700]];function s(e){return null!=e&&i.some(([t,n])=>e>=t&&e<=n)}},91806(e,t,n){n.d(t,{A:()=>l});var i,s=n(5482),r=n(25482),o=n(91429),a=n(56507);let l=class extends r.o{static{i=this}constructor(e){super(e),this.cols=null,this.level=0,this.levelValue=null,this.origin=null,this.resolution=0,this.rows=null,this.scale=0}clone(){return new i({cols:this.cols,level:this.level,levelValue:this.levelValue,resolution:this.resolution,rows:this.rows,scale:this.scale})}};(0,s.Cg)([(0,o.MZ)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],l.prototype,"cols",void 0),(0,s.Cg)([(0,o.MZ)({type:a.jz,json:{write:!0}})],l.prototype,"level",void 0),(0,s.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],l.prototype,"levelValue",void 0),(0,s.Cg)([(0,o.MZ)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],l.prototype,"origin",void 0),(0,s.Cg)([(0,o.MZ)({type:Number,json:{write:!0}})],l.prototype,"resolution",void 0),(0,s.Cg)([(0,o.MZ)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],l.prototype,"rows",void 0),(0,s.Cg)([(0,o.MZ)({type:Number,json:{write:!0}})],l.prototype,"scale",void 0),l=i=(0,s.Cg)([(0,o.$K)("esri.layers.support.LOD")],l)},87045(e,t,n){n.d(t,{A:()=>w});var i,s=n(5482),r=n(66552),o=n(25482),a=n(86211),l=n(91429),u=n(56507),c=n(86738),p=n(16930),d=n(21325),f=n(28735),h=n(91806),m=n(72802),g=n(36005),v=n(43937);const y=new r.J({PNG:"png",PNG8:"png8",PNG24:"png24",PNG32:"png32",JPEG:"jpg",JPG:"jpg",DIB:"dib",TIFF:"tiff",EMF:"emf",PS:"ps",PDF:"pdf",GIF:"gif",SVG:"svg",SVGZ:"svgz",Mixed:"mixed",MIXED:"mixed",LERC:"lerc",LERC2D:"lerc2d",RAW:"raw",pbf:"pbf"});let w=class extends o.o{static{i=this}static create(e={}){const{resolutionFactor:t=1,scales:n,size:s=256,spatialReference:r=p.A.WebMercator,numLODs:o=24}=e;if(!(0,d.fn)(r)){const e=[];if(n)for(let t=0;t<n.length;t++){const i=n[t];e.push(new h.A({level:t,scale:i,resolution:i}))}else{let t=5e-4;for(let n=o-1;n>=0;n--)e.unshift(new h.A({level:n,scale:t,resolution:t})),t*=2}return new i({dpi:96,lods:e,origin:new c.A(0,0,r),size:[s,s],spatialReference:r})}const l=(0,d.Vp)(r),u=e.origin?new c.A({x:e.origin.x,y:e.origin.y,spatialReference:r}):new c.A(l?{x:l.origin[0],y:l.origin[1],spatialReference:r}:{x:0,y:0,spatialReference:r}),f=1/(39.37*(0,a.GA)(r)*96),m=[];if(n)for(let e=0;e<n.length;e++){const t=n[e],i=t*f;m.push(new h.A({level:e,scale:t,resolution:i}))}else{let e=(0,d.EA)(r)?512/s*591657527.5917094:256/s*591657527.591555;const n=Math.ceil(o/t);m.push(new h.A({level:0,scale:e,resolution:e*f}));for(let i=1;i<n;i++){const n=e/2**t,s=n*f;m.push(new h.A({level:i,scale:n,resolution:s})),e=n}}return new i({dpi:96,lods:m,origin:u,size:[s,s],spatialReference:r})}constructor(e){super(e),this.dpi=96,this.format=null,this.origin=null,this.size=null,this.spatialReference=null}get isWrappable(){const{spatialReference:e,origin:t}=this;if(e&&t){const n=(0,d.Vp)(e);return e.isWrappable&&!!n&&Math.abs(n.origin[0]-t.x)<=n.dx}return!1}readOrigin(e,t){return c.A.fromJSON({spatialReference:t.spatialReference,...e})}set lods(e){let t=0,n=0;const i=[],s=this._levelToLOD={};e&&(t=-1/0,n=1/0,e.forEach(e=>{i.push(e.scale),t=e.scale>t?e.scale:t,n=e.scale<n?e.scale:n,s[e.level]=e})),this._set("scales",i),this._set("lods",e),this._initializeUpsampleLevels()}readSize(e,t){return[t.cols,t.rows]}writeSize(e,t){t.cols=e[0],t.rows=e[1]}zoomToScale(e){const t=this.scales;if(e<=0)return t[0];if(e>=t.length-1)return t[t.length-1];const n=Math.floor(e),i=n+1;return t[n]/(t[n]/t[i])**(e-n)}scaleToZoom(e){const t=this.scales,n=t.length-1;let i=0;for(;i<n;i++){const n=t[i],s=t[i+1];if(n<=e)return i;if(s===e)return i+1;if(n>e&&s<e)return i+Math.log(n/e)/Math.log(n/s)}return i}tileAt(e,t,n,i){const s=this.lodAt(e);if(!s)return null;let r,o;if("number"==typeof t)r=t,o=n;else if((0,d.aI)(t.spatialReference,this.spatialReference))r=t.x,o=t.y,i=n;else{const e=(0,f.Cv)(t,this.spatialReference);if(null==e)return null;r=e.x,o=e.y,i=n}const a=s.resolution*this.size[0],l=s.resolution*this.size[1];return i??=new m.U(0,0,0),i.level=e,i.row=Math.floor((this.origin.y-o)/l+.001),i.col=Math.floor((r-this.origin.x)/a+.001),this.updateTileInfo(i),i}updateTileInfo(e,t=0){if(!("extent"in e))return!1;let n=this.lodAt(e.level);if(!n&&1===t){const t=this.lods[this.lods.length-1];t.level<e.level&&(n=t)}if(!n)return!1;const i=e.level-n.level,s=n.resolution*this.size[0]/2**i,r=n.resolution*this.size[1]/2**i;return e.extent[0]=this.origin.x+e.col*s,e.extent[1]=this.origin.y-(e.row+1)*r,e.extent[2]=e.extent[0]+s,e.extent[3]=e.extent[1]+r,!0}upsampleTile(e){const t=this._upsampleLevels[e.level];return!(!t||-1===t.parentLevel||(e.level=t.parentLevel,e.row=Math.floor(e.row/t.factor+.001),e.col=Math.floor(e.col/t.factor+.001),this.updateTileInfo(e),0))}getTileBounds(e,t){const n=this.lodAt(t.level);if(null==n)return null;const{resolution:i}=n,s=i*this.size[0],r=i*this.size[1];return e[0]=this.origin.x+t.col*s,e[1]=this.origin.y-(t.row+1)*r,e[2]=e[0]+s,e[3]=e[1]+r,e}lodAt(e){return this._levelToLOD?.[e]??null}clone(){return i.fromJSON(this.write({}))}getCompatibleForVTL(e){if(this.size[0]!==this.size[1]||256===this.size[0]&&512===e)return null;const t=(512===this.size[0]&&256===e?-1:0)+(this.spatialReference.isGeographic?1:0);if(this.size[0]===e&&0===t)return this;const n=[],s=this.lods.length-t;for(let e=0;e<s;e++){const i=e+t,{scale:s,resolution:r}=i>=0?this.lods[i]:{scale:2*this.lods[0].scale,resolution:2*this.lods[0].resolution};n.push(new h.A({level:e,scale:s,resolution:r}))}return new i({size:[e,e],dpi:this.dpi,format:this.format,compressionQuality:this.compressionQuality,origin:this.origin,spatialReference:this.spatialReference,lods:n})}_initializeUpsampleLevels(){const e=this.lods;this._upsampleLevels=[];let t=null;for(let n=0;n<e.length;n++){const i=e[n];this._upsampleLevels[i.level]={parentLevel:t?t.level:-1,factor:t?t.resolution/i.resolution:0},t=i}}};(0,s.Cg)([(0,l.MZ)({type:Number,json:{write:!0}})],w.prototype,"compressionQuality",void 0),(0,s.Cg)([(0,l.MZ)({type:Number,json:{write:!0}})],w.prototype,"dpi",void 0),(0,s.Cg)([(0,l.MZ)({type:String,json:{read:y.read,write:y.write,origins:{"web-scene":{read:!1,write:!1}}}})],w.prototype,"format",void 0),(0,s.Cg)([(0,l.MZ)({readOnly:!0})],w.prototype,"isWrappable",null),(0,s.Cg)([(0,l.MZ)({type:c.A,json:{write:!0}})],w.prototype,"origin",void 0),(0,s.Cg)([(0,g.w)("origin")],w.prototype,"readOrigin",null),(0,s.Cg)([(0,l.MZ)({type:[h.A],value:null,json:{write:!0}})],w.prototype,"lods",null),(0,s.Cg)([(0,l.MZ)({readOnly:!0})],w.prototype,"scales",void 0),(0,s.Cg)([(0,l.MZ)({cast:e=>Array.isArray(e)?e:"number"==typeof e?[e,e]:[256,256]})],w.prototype,"size",void 0),(0,s.Cg)([(0,g.w)("size",["rows","cols"])],w.prototype,"readSize",null),(0,s.Cg)([(0,v.K)("size",{cols:{type:u.jz},rows:{type:u.jz}})],w.prototype,"writeSize",null),(0,s.Cg)([(0,l.MZ)({type:p.A,json:{write:!0}})],w.prototype,"spatialReference",void 0),w=i=(0,s.Cg)([(0,l.$K)("esri.layers.support.TileInfo")],w)},72802(e,t,n){n.d(t,{U:()=>s});var i=n(19419);class s{constructor(e,t,n,s=(0,i.vt)()){this._level=e,this._row=t,this._col=n,this.extent=s}get id(){return this._id??=`${this.level}/${this.row}/${this.col}`,this._id}get level(){return this._level}set level(e){this._level=e,this._id=null}get row(){return this._row}set row(e){this._row=e,this._id=null}get col(){return this._col}set col(e){this._col=e,this._id=null}toJSON(){return{level:this._level,row:this._row,col:this._col,extent:this.extent}}static fromJSON(e){return new s(e.level,e.row,e.col,e.extent)}}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1550,1666,1948,2722,3931,5611,6061,6312,6765,7992,8125,9169,9285],{61691(t,e,n){n.d(e,{G:()=>r});class r{*[Symbol.iterator](){let t=this.next();for(;t;)yield t,t=this.next()}}},36633(t,e,n){n.d(e,{O:()=>f});var r=n(55537),s=n(79187),i=n(83661),o=n(15756);function a(){return u(new i.P,-1,Number.NaN)}function u(t,e,n){return{m_coordinate:t.clone(),m_vertexIndex:e,m_geometryIndex:0,m_distance:n,m_bRightSide:!1,isEmpty:c}}function c(){return Number.isNaN(this.m_distance)}function h(t,e,n=-1,a=-1){if(t.isEmpty())return 3;const u=t.getGeometryType();if((0,r.f)(u))return function(t,e,n,s){if(n>=0||s>=0)return(0,r.a)("");if(t.isDegenerate(0))return t.getStartXY().equals(e)?2:3;if(!t.isCurve()){const n=i.P.orientationRobust(e,t.getStartXY(),t.getEndXY());return n<0?1:n>0?0:2}const o=t.getClosestCoordinate(e,!1),a=t.getTangent(o),u=t.getCoord2D(o),c=i.P.orientationRobust(e,u,u.add(a));return c<0?1:c>0?0:2}(t,e,n,a);if(u===r.G.enumPolygon)return function(t,e,n,i){(n>=0||i>=0)&&(0,r.a)("");const a=new s.Envelope2D;t.queryEnvelope(a);const u=(0,o.l)(t,e,0);return 0===u?0:1===u?1:2}(t,e,n,a);if(u===r.G.enumPolyline)return function(t,e,n,s){(n<0&&s>=0||n>=0&&s<0)&&(0,r.a)("");const o=t.querySegmentIterator();if(n<0){let t=Number.MAX_VALUE,r=0;for(;o.nextPath();)for(;o.hasNextSegment();){const a=o.nextSegment(),u=a.getClosestCoordinate(e,!1),c=a.getCoord2D(u),h=i.P.sqrDistance(c,e);h<t?(r=1,n=o.getStartPointIndex(),s=o.getPathIndex(),t=h):h===t&&r++}if(0===r)return 3;if(1===r)return o.resetToVertex(n,s),h(o.nextSegment(),e)}const a=function(t,e,n,r){const s={i1:-1,i2:-1,bRight1:!1,bRight2:!1};if(s.i1=function(t,e,n){for(t.resetToVertex(e,n);t.hasNextSegment();)if(!t.nextSegment().isDegenerate(0))return t.getStartPointIndex();for(t.resetToVertex(e,n);t.hasPreviousSegment();)if(!t.previousSegment().isDegenerate(0))return t.getStartPointIndex();return-1}(e,n,r),-1!==s.i1){e.resetToVertex(s.i1,-1);const n=e.nextSegment(),r=n.getClosestCoordinate(t,!1),o=n.getCoord2D(r),a=i.P.sqrDistance(o,t);{const e=o.clone();e.subThis(n.getStartXY());const r=t.clone();r.subThis(n.getStartXY()),s.bRight1=e.crossProduct(r)<0}if(s.i2=function(t,e){for(t.resetToVertex(e,-1),t.nextSegment();t.hasNextSegment();)if(!t.nextSegment().isDegenerate(0))return t.getStartPointIndex();return-1}(e,s.i1),-1!==s.i2){e.resetToVertex(s.i2,-1);const n=e.nextSegment(),r=n.getClosestCoordinate(t,!1),o=n.getCoord2D(r);if(i.P.sqrDistance(o,t)>a)s.i2=-1;else{const e=o.clone();e.subThis(n.getStartXY());const r=t.clone();r.subThis(n.getStartXY()),s.bRight2=e.crossProduct(r)<0}}if(-1===s.i2&&(s.i2=function(t,e){for(t.resetToVertex(e,-1);t.hasPreviousSegment();)if(!t.previousSegment().isDegenerate(0))return t.getStartPointIndex();return-1}(e,s.i1),-1!==s.i2)){e.resetToVertex(s.i2,-1);const n=e.nextSegment(),r=n.getClosestCoordinate(t,!1),o=n.getCoord2D(r);if(i.P.sqrDistance(o,t)>a)s.i2=-1;else{const e=o.clone();e.subThis(n.getStartXY());const r=t.clone();r.subThis(n.getStartXY()),s.bRight2=e.crossProduct(r)<0;const i=s.i1;s.i1=s.i2,s.i2=i;const a=s.bRight1;s.bRight1=s.bRight2,s.bRight2=a}}}return s}(e,o,n,s);if(-1!==a.i1&&-1===a.i2)return a.bRight1?1:0;if(-1!==a.i1&&-1!==a.i2){if(a.bRight1===a.bRight2)return a.bRight1?1:0;{o.resetToVertex(a.i1,-1);const t=o.nextSegment().getTangent(1);o.resetToVertex(a.i2,-1);const e=o.nextSegment().getTangent(0);return t.crossProduct(e)>=0?1:0}}return o.resetToVertex(n,s),h(o.nextSegment(),e)}(t,e,n,a);if(u===r.G.enumEnvelope){const n=new s.Envelope2D;return t.queryEnvelope(n),n.contains(e)?n.containsExclusive(e)?1:2:0}return 3}var l=n(95213);class f{getOperatorType(){return 10500}accelerateGeometry(t,e,n){return!1}canAccelerateGeometry(t){return!1}supportsCurves(){return!0}getNearestCoordinate(t,e,n,s){if(e.isNAN()&&(0,r.a)("NAN xy coordinates are not allowed"),t.isEmpty())return a();switch(t.getGeometryType()){case r.G.enumPoint:return this.pointGetNearestVertex(t,e);case r.G.enumMultiPoint:return this.multiVertexGetNearestVertex(t,e);case r.G.enumPolyline:case r.G.enumPolygon:return this.multiPathGetNearestCoordinate(t,e,n,s);default:(0,r.t)("")}}getNearestVertex(t,e){if(e.isNAN()&&(0,r.a)("NAN xy coordinates are not allowed"),t.isEmpty())return a();switch(t.getGeometryType()){case r.G.enumPoint:return this.pointGetNearestVertex(t,e);case r.G.enumMultiPoint:case r.G.enumPolyline:case r.G.enumPolygon:return this.multiVertexGetNearestVertex(t,e);default:(0,r.t)("")}}getNearestVertices(t,e,n,s){if(0===s&&(0,r.a)(""),e.isNAN()&&(0,r.a)("NAN xy coordinates are not allowed"),t.isEmpty())return[];switch(t.getGeometryType()){case r.G.enumPoint:return this.pointGetNearestVertices(t,e,n,s);case r.G.enumMultiPoint:case r.G.enumPolyline:case r.G.enumPolygon:return this.multiVertexGetNearestVertices(t,e,n,s);default:(0,r.t)("")}}multiPathGetNearestCoordinate(t,e,n,a){if(t.getGeometryType()===r.G.enumPolygon&&n){const n=new s.Envelope2D;t.queryEnvelope(n);const r=(0,l.d)(null,n,!1);let i;if(i=(0,o.l)(t,e,a?0:r),0!==i){const t=u(e,-1,0);return a&&(t.m_bRightSide=!0),t}}const c=t.querySegmentIterator(),f=new i.P;let m=-1,g=-1,x=Number.MAX_VALUE,d=0;for(;c.nextPath();)for(;c.hasNextSegment();){const t=c.nextSegment(),n=t.getClosestCoordinate(e,!1),r=t.getCoord2D(n),s=i.P.sqrDistance(r,e);s<x?(d=1,f.assign(r),m=c.getStartPointIndex(),g=c.getPathIndex(),x=s):s===x&&d++}-1===m&&(0,r.a)("");const p=u(f,m,Math.sqrt(x));if(a)if(t.getGeometryType()!==r.G.enumPolygon){let n=!1;if(d>1){const r=h(t,e,m,g);n=0!==r&&3!==r}else c.resetToVertex(m,g),n=0!==h(c.nextSegment(),e);p.m_bRightSide=n}else n||0!==(0,o.l)(t,e,0)&&(p.m_bRightSide=!0);return p}pointGetNearestVertex(t,e){const n=t.getXY();return u(n,0,i.P.distance(n,e))}multiVertexGetNearestVertex(t,e){const n=t.getAttributeStreamRef(0),r=t.getPointCount();let s=-1;const o=new i.P;let a=Number.MAX_VALUE;const c=new i.P;for(let t=0;t<r;t++){n.queryPoint2D(2*t,c);const r=i.P.sqrDistance(c,e);r<a&&(o.assign(c),s=t,a=r)}return u(o,s,Math.sqrt(a))}pointGetNearestVertices(t,e,n,r){const s=[];if(0!==r){const r=n*n,o=t.getXY(),a=i.P.sqrDistance(o,e);a<=r&&s.push(u(o,0,Math.sqrt(a)))}return s}multiVertexGetNearestVertices(t,e,n,r){const s=[];if(0!==r){const o=t.getAttributeStreamRef(0),a=t.getPointCount();s.length=r+1;const c=n*n;for(let t=0;t<a;t++){const n=o.read(2*t),r=o.read(2*t+1),a=e.x-n,h=e.y-r,l=a*a+h*h;l<=c&&s.push(u(i.P.construct(n,r),t,Math.sqrt(l)))}s.sort((t,e)=>t.m_distance-e.m_distance)}return s.slice(0,r)}}},76061(t,e,n){n.d(e,{S:()=>s});var r=n(61691);class s extends r.G{constructor(t){super(),this.m_iGeom=-1,this.m_aGeoms=t?t.slice():[]}next(){if(this.m_iGeom<this.m_aGeoms.length-1){const t=this.m_aGeoms[++this.m_iGeom];return this.m_aGeoms[this.m_iGeom]=null,t}return null}tock(){return!1}getGeometryID(){return this.m_iGeom}getRank(){return 1}}},59260(t,e,n){n.d(e,{g:()=>u,p:()=>h});var r=n(36633),s=n(86211),i=n(78125),o=n(79533);const a=new r.O;function u(t,e,n={}){const{calculateLeftRightSide:r=!1,testPolygonInterior:u=!0,unit:c}=n,h=a.getNearestCoordinate((0,i.fromGeometry)(t),(0,i.fromPoint)(e).getXY(),u,r);if(c&&h.m_distance){const e=(0,i.getSpatialReference)(t);h.m_distance=(0,s.PQ)(h.m_distance,e,c)}return(0,o.C)(h,t,r)}const c=a.supportsCurves(),h=Object.freeze(Object.defineProperty({__proto__:null,getNearestCoordinate:u,getNearestVertex:function(t,e,n={}){const{unit:r}=n,u=a.getNearestVertex((0,i.fromGeometry)(t),(0,i.fromPoint)(e).getXY());if(r&&u.m_distance){const e=(0,i.getSpatialReference)(t);u.m_distance=(0,s.PQ)(u.m_distance,e,r)}return(0,o.C)(u,t)},getNearestVertices:function(t,e,n,r,u={}){const{unit:c}=u,h=(0,i.getSpatialReference)(t);return c&&n&&(n=(0,s.UW)(n,c,h)),a.getNearestVertices((0,i.fromGeometry)(t),(0,i.fromPoint)(e).getXY(),n,r).map(e=>(c&&e.m_distance&&(e.m_distance=(0,s.PQ)(e.m_distance,h,c)),(0,o.C)(e,t)))},supportsCurves:c},Symbol.toStringTag,{value:"Module"}))},9093(t,e,n){function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function s(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]]}n.d(e,{o8:()=>s,vt:()=>r,zK:()=>i});const i=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:i,clone:s,create:r,fromValues:function(t,e,n,r,s,i,o,a,u,c,h,l,f,m,g,x){return[t,e,n,r,s,i,o,a,u,c,h,l,f,m,g,x]}},Symbol.toStringTag,{value:"Module"}))},51850(t,e,n){function r(){return[0,0,0]}function s(t){return[t[0],t[1],t[2]]}function i(t,e,n){return[t,e,n]}function o(t,e,n){return[t,e,n]}function a(t,e=[0,0,0]){const n=Math.min(3,t.length);for(let r=0;r<n;++r)e[r]=t[r];return e}function u(){return[0,0,0]}function c(){return i(1,1,1)}function h(){return i(1,0,0)}function l(){return i(0,1,0)}function f(){return i(0,0,1)}n.d(e,{CN:()=>o,Cb:()=>p,Cw:()=>x,JP:()=>d,S:()=>c,Ul:()=>u,Un:()=>g,ci:()=>a,fA:()=>i,o8:()=>s,uY:()=>m,vt:()=>r});const m=[0,0,0],g=c(),x=h(),d=l(),p=f();Object.freeze(Object.defineProperty({__proto__:null,ONES:g,UNIT_X:x,UNIT_Y:d,UNIT_Z:p,ZEROS:m,clone:s,create:r,freeze:o,fromArray:a,fromValues:i,ones:c,unitX:h,unitY:l,unitZ:f,zeros:u},Symbol.toStringTag,{value:"Module"}))},35522(t,e,n){n.d(e,{$A:()=>E,Bw:()=>i,C:()=>o,Cc:()=>V,DI:()=>P,Il:()=>D,Io:()=>y,Ln:()=>p,Om:()=>b,Qr:()=>l,Re:()=>c,S8:()=>S,T9:()=>x,WQ:()=>u,Z0:()=>_,_S:()=>m,aI:()=>O,ei:()=>N,fw:()=>R,g7:()=>A,gL:()=>I,hG:()=>M,hZ:()=>a,hs:()=>d,jb:()=>Y,jk:()=>g,lo:()=>z,lw:()=>h,m3:()=>v,oW:()=>Z,t2:()=>T,tn:()=>f,uE:()=>L,xg:()=>q,ze:()=>C});var r=n(51850),s=n(34304);function i(t){const e=t[0],n=t[1],r=t[2];return Math.sqrt(e*e+n*n+r*r)}function o(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function a(t,e,n,r){return t[0]=e,t[1]=n,t[2]=r,t}function u(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t}function c(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function h(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t}function l(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t}function f(t,e){return t[0]=Math.abs(e[0]),t[1]=Math.abs(e[1]),t[2]=Math.abs(e[2]),t}function m(t,e){return t[0]=Math.sign(e[0]),t[1]=Math.sign(e[1]),t[2]=Math.sign(e[2]),t}function g(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t}function x(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t}function d(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t}function p(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t}function y(t,e){const n=e[0]-t[0],r=e[1]-t[1],s=e[2]-t[2];return Math.sqrt(n*n+r*r+s*s)}function M(t,e){const n=e[0]-t[0],r=e[1]-t[1],s=e[2]-t[2];return n*n+r*r+s*s}function v(t){const e=t[0],n=t[1],r=t[2];return e*e+n*n+r*r}function C(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}function P(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}function S(t,e){const n=e[0],r=e[1],s=e[2];let i=n*n+r*r+s*s;return i>0&&(i=1/Math.sqrt(i),t[0]=e[0]*i,t[1]=e[1]*i,t[2]=e[2]*i),t}function b(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function E(t,e,n){const r=e[0],s=e[1],i=e[2],o=n[0],a=n[1],u=n[2];return t[0]=s*u-i*a,t[1]=i*o-r*u,t[2]=r*a-s*o,t}function V(t,e,n,r){const s=e[0],i=e[1],o=e[2];return t[0]=s+r*(n[0]-s),t[1]=i+r*(n[1]-i),t[2]=o+r*(n[2]-o),t}function _(t,e,n){const r=e[0],s=e[1],i=e[2];return t[0]=n[0]*r+n[4]*s+n[8]*i+n[12],t[1]=n[1]*r+n[5]*s+n[9]*i+n[13],t[2]=n[2]*r+n[6]*s+n[10]*i+n[14],t}function N(t,e,n){const r=e[0],s=e[1],i=e[2];return t[0]=r*n[0]+s*n[3]+i*n[6],t[1]=r*n[1]+s*n[4]+i*n[7],t[2]=r*n[2]+s*n[5]+i*n[8],t}function I(t,e,n){return R(t,e,n[0],n[1],n[2],n[3])}function R(t,e,n,r,s,i){const o=e[0],a=e[1],u=e[2],c=r*u-s*a,h=s*o-n*u,l=n*a-r*o,f=r*l-s*h,m=s*c-n*l,g=n*h-r*c,x=2*i;return t[0]=o+c*x+2*f,t[1]=a+h*x+2*m,t[2]=u+l*x+2*g,t}function A(t,e){S(w,t),S(G,e);const n=b(w,G);return n>1?0:n<-1?Math.PI:Math.acos(n)}const w=(0,r.vt)(),G=(0,r.vt)();function T(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function O(t,e){if(t===e)return!0;const n=t[0],r=t[1],i=t[2],o=e[0],a=e[1],u=e[2],c=(0,s.FD)();return Math.abs(n-o)<=c*Math.max(1,Math.abs(n),Math.abs(o))&&Math.abs(r-a)<=c*Math.max(1,Math.abs(r),Math.abs(a))&&Math.abs(i-u)<=c*Math.max(1,Math.abs(i),Math.abs(u))}function Z(t,e,n){const r=n[0]-e[0],s=n[1]-e[1],i=n[2]-e[2];let o=r*r+s*s+i*i;return o>0?(o=1/Math.sqrt(o),t[0]=r*o,t[1]=s*o,t[2]=i*o,t):(t[0]=0,t[1]=0,t[2]=0,t)}const Y=c,X=h,F=l,q=y,z=M,D=i,L=v;Object.freeze(Object.defineProperty({__proto__:null,abs:f,add:u,angle:A,bezier:function(t,e,n,r,s,i){const o=1-i,a=o*o,u=i*i,c=a*o,h=3*i*a,l=3*u*o,f=u*i;return t[0]=e[0]*c+n[0]*h+r[0]*l+s[0]*f,t[1]=e[1]*c+n[1]*h+r[1]*l+s[1]*f,t[2]=e[2]*c+n[2]*h+r[2]*l+s[2]*f,t},ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t},clamp:function(t,e=0,n=1){return t[0]=Math.min(Math.max(t[0],e),n),t[1]=Math.min(Math.max(t[1],e),n),t[2]=Math.min(Math.max(t[2],e),n),t},copy:o,cross:E,crossAndNormalize:function(t,e,n){const r=e[0],s=e[1],i=e[2],o=n[0],a=n[1],u=n[2],c=s*u-i*a,h=i*o-r*u,l=r*a-s*o,f=Math.sqrt(c*c+h*h+l*l);return t[0]=c/f,t[1]=h/f,t[2]=l/f,t},direction:Z,dist:q,distance:y,div:F,divide:l,dot:b,equals:O,exactEquals:T,floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t},hermite:function(t,e,n,r,s,i){const o=i*i,a=o*(2*i-3)+1,u=o*(i-2)+i,c=o*(i-1),h=o*(3-2*i);return t[0]=e[0]*a+n[0]*u+r[0]*c+s[0]*h,t[1]=e[1]*a+n[1]*u+r[1]*c+s[1]*h,t[2]=e[2]*a+n[2]*u+r[2]*c+s[2]*h,t},inverse:P,len:D,length:i,lerp:V,max:x,min:g,mul:X,multiply:h,negate:C,normalize:S,random:function(t,e=1){const n=s.Ov,r=2*n()*Math.PI,i=2*n()-1,o=Math.sqrt(1-i*i)*e;return t[0]=Math.cos(r)*o,t[1]=Math.sin(r)*o,t[2]=i*e,t},rotateX:function(t,e,n,r){const s=[],i=[];return s[0]=e[0]-n[0],s[1]=e[1]-n[1],s[2]=e[2]-n[2],i[0]=s[0],i[1]=s[1]*Math.cos(r)-s[2]*Math.sin(r),i[2]=s[1]*Math.sin(r)+s[2]*Math.cos(r),t[0]=i[0]+n[0],t[1]=i[1]+n[1],t[2]=i[2]+n[2],t},rotateY:function(t,e,n,r){const s=[],i=[];return s[0]=e[0]-n[0],s[1]=e[1]-n[1],s[2]=e[2]-n[2],i[0]=s[2]*Math.sin(r)+s[0]*Math.cos(r),i[1]=s[1],i[2]=s[2]*Math.cos(r)-s[0]*Math.sin(r),t[0]=i[0]+n[0],t[1]=i[1]+n[1],t[2]=i[2]+n[2],t},rotateZ:function(t,e,n,r){const s=[],i=[];return s[0]=e[0]-n[0],s[1]=e[1]-n[1],s[2]=e[2]-n[2],i[0]=s[0]*Math.cos(r)-s[1]*Math.sin(r),i[1]=s[0]*Math.sin(r)+s[1]*Math.cos(r),i[2]=s[2],t[0]=i[0]+n[0],t[1]=i[1]+n[1],t[2]=i[2]+n[2],t},round:function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t},scale:d,scaleAndAdd:p,set:a,sign:m,sqrDist:z,sqrLen:L,squaredDistance:M,squaredLength:v,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:Y,subtract:c,transformMat3:N,transformMat4:_,transformQuat:I,transformQuatValues:R},Symbol.toStringTag,{value:"Module"}))},69397(t,e,n){n.d(e,{Qf:()=>u,Qh:()=>o,RS:()=>s,Ul:()=>m,i5:()=>f,lM:()=>i,qK:()=>h});var r=n(34275);const s=16;function i(t){if(!t)return 0;let e=h;for(const n in t)t.hasOwnProperty(n)&&(e+=a(t[n],!1));return e}function o(t){if(!t)return 0;if("number"==typeof t[0])return u(t);if(Array.isArray(t))return function(t){const e=t.length;if(0===e||"number"==typeof t[0])return c(t,8);let n=l;for(let r=0;r<e;r++)n+=a(t[r]);return n}(t);let e=h;for(const n in t)t.hasOwnProperty(n)&&(e+=a(t[n]));return e}function a(t,e=!0){switch(typeof t){case"object":return e?o(t):h;case"string":return function(t){return 32+t.length}(t);case"number":return s;case"boolean":return 4;default:return 8}}function u(...t){return t.reduce((t,e)=>t+(e?(0,r.iu)(e)?e.byteLength+f:Array.isArray(e)?c(e,s):0:0),0)}function c(t,e){return l+t.length*e}const h=32,l=16,f=145,m=64},87992(t,e,n){n.d(e,{JR:()=>E,ME:()=>P,MY:()=>V,NO:()=>C,Nh:()=>b,V2:()=>A,_s:()=>w,e6:()=>T,gh:()=>S,tr:()=>Z,uX:()=>d});var r=n(5482),s=n(69397),i=n(16930),o=(n(70328),n(19419)),a=n(60408),u=n(21325),c=n(513),h=n(50954),l=n(79567),f=n(52006),m=n(49663),g=n(46068),x=n(92722);class d{constructor({type:t,spatialReference:e,vertexCount:n,vertexXY:r,vertexZ:s,vertexM:i,partCount:o,partOffsets:a,partFlags:u,segmentFlags:c,segmentIndices:h,segmentParams:l,segmentCountArc:f,segmentCountBezier:m}){this.segmentCountArc=0,this.segmentCountBezier=0,this.type=t,this.spatialReference=e,this.vertexCount=n,this.vertexXY=r,this.vertexZ=s,this.vertexM=i,this.partCount=o,this.partOffsets=a,this.partFlags=u,this.segmentFlags=c,this.segmentIndices=h,this.segmentParams=l,this.segmentCountArc=f,this.segmentCountBezier=m}get segmentParamCount(){return 10*this.segmentCountArc+4*this.segmentCountBezier}get segmentCountLine(){const{segmentCount:t,segmentCountArc:e,segmentCountBezier:n}=this;return t&&t-e-n}get segmentCount(){return"polyline"===this.type?this.vertexCount-this.partCount:"polygon"===this.type?this.vertexCount:0}get hasZ(){return null!=this.vertexZ}get hasM(){return null!=this.vertexM}hasCurves(){return null!=this.segmentFlags}isMultipart(){return"polyline"===this.type||"polygon"===this.type}get usedMemory(){function t(t){return t?s.Ul+t.byteLength:0}return t(this.vertexXY)+t(this.vertexZ)+t(this.vertexM)+t(this.partOffsets)+t(this.partFlags)+t(this.segmentFlags)+t(this.segmentIndices)+t(this.segmentParams)}clone(){const{type:t,vertexCount:e,partCount:n,hasZ:r,hasM:s,segmentCountArc:i,segmentCountBezier:o}=this,a=A(t,e,n,r,s,this.hasCurves(),i,o);a.spatialReference=this.spatialReference;const{vertexXY:u,vertexZ:c,vertexM:h}=this;if(a.vertexXY.set(u.subarray(0,2*e),0),a.vertexZ?.set(c.subarray(0,e),0),a.vertexM?.set(h.subarray(0,e),0),this.isMultipart()){const{partOffsets:t,partFlags:e}=this;a.partFlags.set(e.subarray(0,n+1)),a.partOffsets.set(t.subarray(0,n+1))}if(this.hasCurves()){const{segmentFlags:t,segmentIndices:n,segmentParams:r,segmentParamCount:s}=this;a.segmentFlags.set(t.subarray(0,e),0),a.segmentIndices.set(n.subarray(0,e),0),a.segmentParams.set(r.subarray(0,s),0)}return a}equals(t){return this.equalsWithinTolerance(t,0)}equalsWithinTolerance(t,e){if(null==t)return!1;if(this===t)return!0;if(!(0,u.aI)(this.spatialReference,t.spatialReference))return!1;if(this.vertexCount!==t.vertexCount||this.partCount!==t.partCount)return!1;if(this.hasZ!==t.hasZ||this.hasM!==t.hasM)return!1;if(this.hasCurves()!==t.hasCurves()||this.segmentCountArc!==t.segmentCountArc||this.segmentCountBezier!==t.segmentCountBezier)return!1;const n=0===e?(t,e)=>t!==e||isNaN(t)!==isNaN(e):(t,n)=>Math.abs(t-n)>e||isNaN(t)!==isNaN(n);for(let e=0;e<this.vertexCount;++e)if(n(this.vertexXY[2*e],t.vertexXY[2*e])||n(this.vertexXY[2*e+1],t.vertexXY[2*e+1]))return!1;if(this.hasZ)for(let e=0;e<this.vertexCount;++e)if(n(this.vertexZ[e],t.vertexZ[e]))return!1;if(this.hasM)for(let e=0;e<this.vertexCount;++e)if(n(this.vertexM[e],t.vertexM[e]))return!1;for(let e=0;e<this.partCount;++e)if(this.partFlags[e]!==t.partFlags[e]||this.partOffsets[e]!==t.partOffsets[e])return!1;if(this.hasCurves()){for(let e=0;e<this.vertexCount;++e)if(this.segmentFlags[e]!==t.segmentFlags[e]||this.segmentIndices[e]!==t.segmentIndices[e])return!1;for(let e=0;e<this.segmentParamCount;++e)if(n(this.segmentParams[e],t.segmentParams[e]))return!1}return!0}get parts(){return this.isMultipart()?new p(this):[][Symbol.iterator]()}}class p{constructor(t){this.geometry=t,this.value=new y(t)}get done(){return this.value.index>=this.geometry.partCount}next(){return++this.value.index,this}[Symbol.iterator](){return this}}class y{constructor(t){this.geometry=t,this.index=-1,this._readVertex=I(t),this._segments=new M(this)}get segments(){return this._segments.reset(),this._segments}get startVertex(){return this._readVertex(this.geometry.partOffsets[this.index])}get vertexCount(){const t=this.geometry.partOffsets;return t[this.index+1]-t[this.index]}}class M{constructor(t){this._part=t,this._partStart=0,this._partEnd=0,this._isPolygon="polygon"===t.geometry.type,this.value=new v(t.geometry)}get done(){return this.value.indexOfStartVertex>this._partEnd}next(){++this.value.indexOfStartVertex;const t=this.value.indexOfStartVertex>=this._partEnd;return this.value.indexOfEndVertex=t&&this._isPolygon?this._partStart:this.value.indexOfStartVertex+1,this}[Symbol.iterator](){return this}reset(){const{index:t}=this._part,e=this._part.geometry.partOffsets;this._partStart=e[t],this._partEnd=e[t+1]-(this._isPolygon?1:2),this.value.indexOfStartVertex=this._partStart-1}}class v{constructor(t){this.geometry=t,this.indexOfStartVertex=-1,this.indexOfEndVertex=-1,this._readVertex=I(t)}get xStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex]}get yStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex+1]}get zStart(){return this.geometry.vertexZ[this.indexOfStartVertex]}get mStart(){return this.geometry.vertexM[this.indexOfStartVertex]}get xEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex]}get yEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex+1]}get zEnd(){return this.geometry.vertexZ[this.indexOfEndVertex]}get mEnd(){return this.geometry.vertexM[this.indexOfEndVertex]}get start(){return this._readVertex(this.indexOfStartVertex)}get end(){return this._readVertex(this.indexOfEndVertex)}get curve(){const t=this.geometry.segmentFlags?.[this.indexOfStartVertex]??1;if(1===t)return this.end;const e=this.geometry.segmentParams;let n=this.geometry.segmentIndices[this.indexOfStartVertex];if(2===t){const t=e[n++],r=e[n++],s=e[n++],i=e[n++];return{b:[this.end,[t,r],[s,i]]}}const r=e[n++],s=e[n++],i=e[n++],o=e[n++],a=e[n++],u=e[n++];n++,n++;const c=e[n++],h=e[n++];if(!Boolean(4&r)&&1===i)return{c:[this.end,[c,h]]};const l=2&r?0:1,f=1&r?0:1;return{a:[this.end,[a,u],l,f,o,s,i]}}}function C(t,e){const n={stack:[],error:void 0,hasError:!1};try{return e??=(0,o.Ie)(),(0,r.mS)(n,new _(t,["vertexZ","vertexM","spatialReference"]),!1),(0,o.bx)(e,function(t){let e;const{vertexCount:n,vertexXY:s,vertexZ:i,vertexM:a}=t,u=N(t);if(t.hasCurves()){const n={stack:[],error:void 0,hasError:!1};try{(0,r.mS)(n,new _(t,["vertexZ","vertexM"]),!1);const s=(0,o.Ie)();for(const e of t.parts){let t=e.startVertex;for(const{curve:n}of e.segments)(0,l.e)(s,t,n),t=(0,f.yP)(n)}const[i,a,c,h]=s;e={xmin:i,ymin:a,xmax:c,ymax:h,spatialReference:u}}catch(t){n.error=t,n.hasError=!0}finally{(0,r.hk)(n)}}else{let t,r,i,o;t=r=1/0,i=o=-1/0;for(let e=0;e<n;++e){const n=s[2*e],a=s[2*e+1];t=Math.min(t,n),i=Math.max(i,n),r=Math.min(r,a),o=Math.max(o,a)}e={xmin:t,ymin:r,xmax:i,ymax:o,spatialReference:u}}if(i){let t=1/0,n=-1/0;for(const e of i)t=Math.min(t,e),n=Math.max(n,e);e.zmin=t,e.zmax=n}if(a){let t=1/0,n=-1/0;for(const e of a)t=Math.min(t,e),n=Math.max(n,e);e.mmin=t,e.mmax=n}return e}(t)),e}catch(t){n.error=t,n.hasError=!0}finally{(0,r.hk)(n)}}function P(t){let e,n,r;if((0,a.fT)(t)){r="point";const{x:s,y:i,z:o,m:a}=t,u=[s,i];null!=o&&u.push(o),null!=a&&u.push(a),n=[[u]],e=1}else(0,a.U9)(t)?(r="multipoint",n=[t.points],e=t.points.length):(0,a.Rg)(t)?(r="polyline",n=t.curvePaths??t.paths,e=n.reduce((t,e)=>t+e.length,0)):(r="polygon",n=t.curveRings??t.rings,e=n.reduce((t,e)=>(0===e.length||(t+=e.length,R(e[0],(0,f.yP)(e.at(-1)))&&--t),t),0));const s=A(r,e,r.includes("point")?0:n.length,(0,a.Pv)(t),(0,a.W0)(t),(0,f.Ed)(t)),{hasZ:i,hasM:o,vertexXY:u,vertexZ:c,vertexM:h}=s;function l(t){u[2*g]=t[0],u[2*g+1]=t[1],i&&(c[g]=t[2]),o&&(h[g]=t[m]),++g}s.spatialReference=t.spatialReference??void 0;const m=s.hasZ?3:2;let g=0;if(!s.isMultipart()){if(!i&&!o){for(const[t,e]of n[0])u[2*g]=t,u[2*g+1]=e,++g;return s}for(const t of n[0])l(t);return s}const x="polygon"===r,{partOffsets:d}=s;let p=0;if(!s.hasCurves()){for(const t of n){if(d[p++]=g,0===t.length)continue;let e=t.length;if(x&&R(t[0],t.at(-1))&&--e,i||o)for(let n=0;n<e;++n)l(t[n]);else for(let n=0;n<e;++n){const[e,r]=t[n];u[2*g]=e,u[2*g+1]=r,++g}}return d[p]=g,s}function y(t){const e=M+t;if(e<=(s.segmentParams?.length??0))return;let n=e*Y;n=20*Math.ceil(n/20);const r=s.segmentParams;s.segmentParams=new Float64Array(n),null!=r&&s.segmentParams.set(r)}let M=0;for(const t of n){if(s.partOffsets[p++]=g,0===t.length)continue;const e=t[0];let n=e;for(let e=1;e<t.length;++e){const r=t[e];l(n);const i=g-1;(0,f.wY)(r)?(y(10),++s.segmentCountArc,M=w(n,r,s,i,M),n=r.a[0]):(0,f.DA)(r)?(y(10),++s.segmentCountArc,M=G(n,r,s,i,M),n=r.a[0]):(0,f.aO)(r)?(y(10),++s.segmentCountArc,M=T(n,r,s,i,M),n=r.c[0]):(0,f.n1)(r)?(y(4),++s.segmentCountBezier,M=Z(0,r,s,i,M),n=r.b[0]):n=r}x&&R(e,n)||l(n)}return s.partOffsets[p]=g,s}function S(t){const e=I(t),{vertexCount:n,partCount:r,hasZ:s,hasM:i}=t,o=N(t);if("point"===t.type){const[e,n]=t.vertexXY,r=t.vertexZ?.[0],s=t.vertexM?.[0];return{x:e,y:n,z:r,m:s,spatialReference:o}}let a=0;if("multipoint"===t.type){const t=[];for(;a<n;)t.push(e(a++));return{points:t,spatialReference:o,hasZ:s,hasM:i}}const u="polygon"===t.type;if(!t.hasCurves()){const n=new Array;for(let s=0;s<r;++s){const r=t.partOffsets[s+1],i=new Array;for(;a<r;)i.push(e(a++));u&&i.length>0&&i.push(i[0]),n.push(i)}return u?{rings:n,hasZ:s,hasM:i,spatialReference:o}:{paths:n,hasZ:s,hasM:i,spatialReference:o}}const c=new Array;for(const{segments:e,startVertex:n}of t.parts){const t=[n];for(const{curve:n}of e)t.push(n);c.push(t)}return u?{rings:[],curveRings:c,hasZ:s,hasM:i,spatialReference:o}:{paths:[],curvePaths:c,hasZ:s,hasM:i,spatialReference:o}}function b(t,{lengths:e,coords:n,hasZ:r,hasM:s},i){const o=t.includes("point")?0:e.length,a="polygon"===t,u="point"===t?1:e.reduce((t,e)=>t+e,0)-(a?o:0);r??=!1,s??=!1;const c=A(t,u,o,r,s,!1,0,0);if(c.spatialReference=i??void 0,!c.isMultipart()){for(let t=0,e=0;t<u;++t)c.vertexXY[2*t]=n[e++],c.vertexXY[2*t+1]=n[e++],r&&(c.vertexZ[t]=n[e++]),s&&(c.vertexM[t]=n[e++]);return c}const h=2+Number(r)+Number(s);let l=0,f=0;c.partOffsets[0]=0;for(const t of e){const e=c.partOffsets[f],i=e+t-Number(a);c.partOffsets[++f]=i;for(let t=e;t<i;++t)c.vertexXY[2*t]=n[l++],c.vertexXY[2*t+1]=n[l++],r&&(c.vertexZ[t]=n[l++]),s&&(c.vertexM[t]=n[l++]);a&&(l+=h)}return c}function E({type:t,vertexCount:e,vertexXY:n,vertexZ:r,vertexM:s,partCount:i,partOffsets:o,hasZ:a,hasM:u}){const c=new x.A([],[],a,u);i=Math.max(i,1);const h="polygon"===t;let l=0;for(let t=0;t<i;++t){const i=o?.[t+1]??e,f=c.coords.length;for(let t=l;t<i;++t)c.coords.push(n[2*t],n[2*t+1]),a&&c.coords.push(r[t]),u&&c.coords.push(s[t]);if(h){const t=l;c.coords.push(n[2*t],n[2*t+1]),a&&c.coords.push(r[t]),u&&c.coords.push(s[t])}c.lengths.push((c.coords.length-f)/c.stride),l=i}return"point"===t&&(c.lengths.length=0),c}function V(t,e){return"getSpatialReference"in t&&(e=function(t){if(null==t)return;const e=t.getText()||void 0,n=t.isCustomWkid()?0:t.getOldID();if(n<=0)return{wkt:e};let r=t.getLatestID();(r<=0||r===n)&&(r=void 0);const s=t.getVCS();if(null==s)return{wkid:n,latestWkid:r,wkt:e};const i=s.isCustomWkid()?0:s.getOldID();if(i<=0)return{wkt:e};let o=t.getLatestVerticalID();return(o<=0||o===i)&&(o=void 0),{wkid:n,wkt:e,latestWkid:r,vcsWkid:i,latestVcsWkid:o}}(t.getSpatialReference()),t=t.getGeometry()),new d({...t.toFlatGeometry(),spatialReference:e})}class _{constructor(t,e){this.target=t,this.keys=e,this.oldValues=e.map(e=>t[e]);for(const n of e)t[n]=void 0}[Symbol.dispose](){this.keys.map((t,e)=>{this.target[t]=this.oldValues[e]})}}function N({spatialReference:t}){return t instanceof i.A?t.toJSON():t}function I({vertexXY:t,vertexZ:e,vertexM:n}){return e?n?r=>[t[2*r],t[2*r+1],e[r],n[r]]:n=>[t[2*n],t[2*n+1],e[n]]:n?e=>[t[2*e],t[2*e+1],n[e]]:e=>[t[2*e],t[2*e+1]]}function R(t,e){return t.every((t,n)=>t===e[n])}function A(t,e,n,r,s,i,o,a){o??=0,a??=0;const u=new d({type:t,vertexCount:e,vertexXY:null,vertexZ:void 0,vertexM:void 0,partCount:n,partOffsets:void 0,partFlags:void 0,segmentFlags:void 0,segmentIndices:void 0,segmentParams:void 0,segmentCountArc:o,segmentCountBezier:a});let c=2*Float64Array.BYTES_PER_ELEMENT*e;r&&(c+=Float64Array.BYTES_PER_ELEMENT*e),s&&(c+=Float64Array.BYTES_PER_ELEMENT*e),u.isMultipart()&&(c+=(n+1)*Int32Array.BYTES_PER_ELEMENT,c+=(n+1)*Int8Array.BYTES_PER_ELEMENT),i&&(c+=e*Int8Array.BYTES_PER_ELEMENT,c+=e*Int32Array.BYTES_PER_ELEMENT,c+=u.segmentParamCount*Float64Array.BYTES_PER_ELEMENT);const h=new ArrayBuffer(c);let l=0;return u.vertexXY=new Float64Array(h,l,2*e),l+=u.vertexXY.byteLength,r&&(u.vertexZ=new Float64Array(h,l,e),l+=u.vertexZ.byteLength),s&&(u.vertexM=new Float64Array(h,l,e),l+=u.vertexM.byteLength),i&&(u.segmentParams=new Float64Array(h,l,u.segmentParamCount),l+=u.segmentParams.byteLength,u.segmentIndices=new Int32Array(h,l,e),u.segmentIndices.fill(X),l+=u.segmentIndices.byteLength),u.isMultipart()&&(u.partOffsets=new Int32Array(h,l,n+1),l+=u.partOffsets.byteLength,u.partFlags=new Int8Array(h,l,n+1),l+=u.partFlags.byteLength,"polygon"===u.type&&u.partFlags.subarray(0,n).fill(1)),i&&(u.segmentFlags=new Int8Array(h,l,e),u.segmentFlags.fill(1),l+=u.segmentFlags.byteLength),u}function w(t,e,{segmentFlags:n,segmentIndices:r,segmentParams:s},i,o){n[i]=4,r[i]=o;const[a,[u,c],h,l,f,m,x]=e.a;let d=4;l||(d|=1),h||(d|=2);const p=(0,g.SW)(t,e),[y,M]=(0,g.Uk)(p,.5);return s[o++]=d,s[o++]=m,s[o++]=x,s[o++]=f,s[o++]=u,s[o++]=c,s[o++]=p.u2-p.u1,s[o++]=p.u1,s[o++]=y,s[o++]=M,o}function G(t,e,{segmentFlags:n,segmentIndices:r,segmentParams:s},i,o){n[i]=4,r[i]=o;const a=(0,m.io)(t,e);return O(a,4,...(0,c.mq)(a,.5),s,o)}function T(t,e,{segmentFlags:n,segmentIndices:r,segmentParams:s},i,o){return n[i]=4,r[i]=o,O((0,h.pM)(t,e),0,...e.c[1],s,o)}function O(t,e,n,r,s,i){const{cx:o,cy:a,thetaStart:u,thetaEnd:c,radius:h}=t;return u>c||(e|=1),Math.abs(c-u)<=Math.PI||(e|=2),s[i++]=e,s[i++]=h,s[i++]=1,s[i++]=0,s[i++]=o,s[i++]=a,s[i++]=c-u,s[i++]=u,s[i++]=n,s[i++]=r,i}function Z(t,{b:[e,[n,r],[s,i]]},{segmentFlags:o,segmentIndices:a,segmentParams:u},c,h){return o[c]=2,a[c]=h,u[h++]=n,u[h++]=r,u[h++]=s,u[h++]=i,h}const Y=1.61803,X=-1},48032(t,e,n){n.d(e,{getNearestCoordinate:()=>r.g}),n(36633),n(86211),n(78125),n(79533);var r=n(59260)},78125(t,e,n){n.r(e),n.d(e,{fromExtent:()=>d,fromGeometry:()=>x,fromMultipoint:()=>p,fromPoint:()=>y,fromPolygon:()=>M,fromPolyline:()=>v,fromPolylineUsingImportOperator:()=>C,fromSpatialReference:()=>P,getSpatialReference:()=>g,toExtent:()=>b,toGeometry:()=>S,toMultipoint:()=>E,toPoint:()=>V,toPolygon:()=>_,toPolyline:()=>N});var r=n(83661),s=(n(79187),n(55537)),i=n(95213),o=n(88885),a=n(5443),u=n(48526),c=n(86738),h=n(39829),l=n(82799),f=(n(90293),n(83299));const m="_gxVersion";function g(t){return Array.isArray(t)?t[0].spatialReference:t.spatialReference}function x(t){switch(t.type){case"point":return y(t);case"multipoint":return p(t);case"polyline":return v(t);case"polygon":return M(t);case"extent":return d(t);default:throw new Error(`Unsupported geometry type: ${t.type}`)}}function d(t){if(!t.getCacheValue(m)){const e=new i.E;e.setCoords(t.xmin,t.ymin,t.xmax,t.ymax),t.hasM&&e.setInterval(2,0,t.mmin,t.mmax),t.hasZ&&e.setInterval(1,0,t.zmin,t.zmax),t.setCacheValue(m,e)}return t.getCacheValue(m)}function p(t){if(!t.getCacheValue(m)){const e=new o.M,n=new i.P,r=t.points,s=t.hasM,a=t.hasZ,u=a?3:2;for(let t=0,i=r.length;t<i;t++){const i=r[t];n.setXYCoords(i[0],i[1]),a&&n.setZ(i[2]??0),s&&n.setM(i[u]??NaN),e.add(n)}t.setCacheValue(m,e)}return t.getCacheValue(m)}function y(t){if(!t.getCacheValue(m)){const e=new i.P;e.setXYCoords(t.x,t.y),t.hasM&&e.setM(t.m),t.hasZ&&e.setZ(t.z),t.setCacheValue(m,e)}return t.getCacheValue(m)}function M(t){if(!t.getCacheValue(m)){const{curveRings:e,hasM:n,hasZ:r,rings:s}=t,i=(0,f.fromGeometryToGXGeometry)({curveRings:e,hasM:n,hasZ:r,rings:s});t.setCacheValue(m,i)}return t.getCacheValue(m)}function v(t){if(!t.getCacheValue(m)){const{curvePaths:e,hasM:n,hasZ:r,paths:s}=t,i=(0,f.fromGeometryToGXGeometry)({curvePaths:e,hasM:n,hasZ:r,paths:s});t.setCacheValue(m,i)}return t.getCacheValue(m)}function C(t){if(!t.getCacheValue(m)){const{curvePaths:e,hasM:n,hasZ:r,paths:s}=t,i=(0,f.fromGeometryToGXGeometryUsingImportOperator)({curvePaths:e,hasM:n,hasZ:r,paths:s});t.setCacheValue(m,i)}return t.getCacheValue(m)}function P(t){return t.cache?(t.cache[m]??=(0,f.fromSpatialReference)(t),t.cache[m]):(0,f.fromSpatialReference)(t)}function S(t,e){if(t)switch(t.getGeometryType()){case s.G.enumPoint:return V(t,e);case s.G.enumEnvelope:return b(t,e);case s.G.enumMultiPoint:return E(t,e);case s.G.enumPolyline:return N(t,e);case s.G.enumPolygon:return _(t,e)}return null}function b(t,e){if(t.isEmpty())return null;const n=new a.A({xmin:t.getXMin(),ymin:t.getYMin(),xmax:t.getXMax(),ymax:t.getYMax(),spatialReference:e}),r=t.getDescription();if(r.hasM()){const e=t.queryInterval(2,0);n.mmin=e.vmin,n.mmax=e.vmax}if(r.hasZ()){const e=t.queryInterval(1,0);n.zmin=e.vmin,n.zmax=e.vmax}return n.setCacheValue(m,t),n}function E(t,e){if(t.isEmpty())return null;const n=t.getDescription(),r=n.hasM(),s=n.hasZ(),o=[],a=new i.P;for(let e=0,n=t.getPointCount();e<n;e++){t.getPointByVal(e,a);const n=[a.getX(),a.getY()];s&&n.push(a.getZ()),r&&n.push(a.getM()),o.push(n)}const c=new u.A({hasM:r,hasZ:s,points:o,spatialReference:e});return c.setCacheValue(m,t),c}function V(t,e){if(t instanceof r.P)return new c.A({x:t.x,y:t.y,spatialReference:e});if(t.isEmpty())return null;const n=new c.A({x:t.getX(),y:t.getY(),spatialReference:e}),s=t.getDescription();return s.hasM()&&(n.m=t.getM()),s.hasZ()&&(n.z=t.getZ()),n.setCacheValue(m,t),n}function _(t,e){if(t.isEmpty())return null;const n=h.A.fromJSON({...(0,f.toGeometry)(t,null),spatialReference:e});return n.setCacheValue(m,t),n}function N(t,e){if(t.isEmpty())return null;const n=l.A.fromJSON({...(0,f.toGeometry)(t,null),spatialReference:e});return n.setCacheValue(m,t),n}},79533(t,e,n){n.d(e,{C:()=>s});var r=n(78125);function s(t,e,n=!1){const s=(0,r.toPoint)(t.m_coordinate,(0,r.getSpatialReference)(e)),i=t.m_distance,o=t.isEmpty(),a=t.m_bRightSide;return{coordinate:s,distance:i,isEmpty:o,...n&&{isRightSide:a},vertexIndex:t.m_vertexIndex}}},4197(t,e,n){n.d(e,{Vj:()=>u,cj:()=>a,jh:()=>i,l5:()=>o});var r=n(34275),s=n(9093);function i(t){return t<=r.y9?new Array(t).fill(0):new Float64Array(t)}function o(t,e,n){return Array.isArray(t)?t.slice(e,e+n):t.subarray(e,e+n)}function a(t){return[...t]}function u(t){const e=(0,s.vt)();for(let n=0;n<16;++n)e[n]=t[n];return e}},70328(t,e,n){n.d(e,{BI:()=>M,DC:()=>l,Ej:()=>m,Ie:()=>p,Jt:()=>y,Ne:()=>g,RF:()=>h,aI:()=>C,fA:()=>o,gE:()=>u,hZ:()=>d,iT:()=>f,is:()=>v,qv:()=>P,vI:()=>x,vY:()=>a,v_:()=>S,vt:()=>i,w1:()=>c}),n(35522);var r=n(5443),s=(n(19419),n(4197));function i(t=S){return[t[0],t[1],t[2],t[3],t[4],t[5]]}function o(t,e,n,r,s,o,a=i()){return a[0]=t,a[1]=e,a[2]=n,a[3]=r,a[4]=s,a[5]=o,a}function a(t,e=i()){return function(t,e,n,r=i()){return d(r,P),function(t,e,n=0,r=e.length/3){let s=t[0],i=t[1],o=t[2],a=t[3],u=t[4],c=t[5];for(let t=0;t<r;t++)s=Math.min(s,e[n+3*t]),i=Math.min(i,e[n+3*t+1]),o=Math.min(o,e[n+3*t+2]),a=Math.max(a,e[n+3*t]),u=Math.max(u,e[n+3*t+1]),c=Math.max(c,e[n+3*t+2]);t[0]=s,t[1]=i,t[2]=o,t[3]=a,t[4]=u,t[5]=c}(r,t,e,n),r}(t,0,t.length/3,e)}function u(t,e=(0,s.jh)(24)){const[n,r,i,o,a,u]=t;return e[0]=n,e[1]=r,e[2]=i,e[3]=n,e[4]=r,e[5]=u,e[6]=n,e[7]=a,e[8]=i,e[9]=n,e[10]=a,e[11]=u,e[12]=o,e[13]=r,e[14]=i,e[15]=o,e[16]=r,e[17]=u,e[18]=o,e[19]=a,e[20]=i,e[21]=o,e[22]=a,e[23]=u,e}function c(t,e){const n=isFinite(t[2])||isFinite(t[5]);return new r.A(n?{xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],zmin:t[2],zmax:t[5],spatialReference:e}:{xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],spatialReference:e})}function h(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.min(t[2],e[2]),t[3]=Math.max(t[3],e[3]),t[4]=Math.max(t[4],e[4]),t[5]=Math.max(t[5],e[5])}function l(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[3]=Math.max(t[3],e[2]),t[4]=Math.max(t[4],e[3])}function f(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.min(t[2],e[2]),t[3]=Math.max(t[3],e[0]),t[4]=Math.max(t[4],e[1]),t[5]=Math.max(t[5],e[2])}function m(t,e=[0,0,0]){return e[0]=function(t){return t[0]>=t[3]?0:t[3]-t[0]}(t),e[1]=function(t){return t[1]>=t[4]?0:t[4]-t[1]}(t),e[2]=function(t){return t[2]>=t[5]?0:t[5]-t[2]}(t),e}function g(t,e,n=t){return n[0]=e[0],n[1]=e[1],n[2]=e[2],n!==t&&(n[3]=t[3],n[4]=t[4],n[5]=t[5]),n}function x(t,e,n=t){return n[3]=e[0],n[4]=e[1],n[5]=e[2],n!==t&&(n[0]=t[0],n[1]=t[1],n[2]=t[2]),t}function d(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function p(t){return t?d(t,P):i(P)}function y(t,e){return t[0]=e[0],t[1]=e[1],t[2]=Number.NEGATIVE_INFINITY,t[3]=e[2],t[4]=e[3],t[5]=Number.POSITIVE_INFINITY,t}function M(t,e,n,r,s){return t[0]=e,t[1]=n,t[2]=Number.NEGATIVE_INFINITY,t[3]=r,t[4]=s,t[5]=Number.POSITIVE_INFINITY,t}function v(t){return 6===t.length}function C(t,e,n){if(null==t||null==e)return t===e;if(!v(t)||!v(e))return!1;if(n){for(let r=0;r<t.length;r++)if(!n(t[r],e[r]))return!1}else for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}const P=[1/0,1/0,1/0,-1/0,-1/0,-1/0],S=[0,0,0,0,0,0];i()},92722(t,e,n){n.d(e,{A:()=>s});var r=n(69397);class s{constructor(t=[],e=[],n=!1,r=!1){this.lengths=t??[],this.coords=e??[],this.hasZ=n,this.hasM=r}static fromJSON({lengths:t,coords:e,hasZ:n,hasM:r}){return new s(t,e,n||!1,r||!1)}static fromRect([t,e,n,r]){const i=n-t,o=r-e;return new s([5],[t,e,i,0,0,o,-i,0,0,-o])}get isPoint(){return 0===this.lengths.length&&this.coords.length>=2}get maxLength(){return Math.max(...this.lengths)}get size(){return this.isPoint?1:this.lengths.reduce((t,e)=>t+e,0)}get usedMemory(){return 64+(0,r.Qf)(this.lengths,this.coords)}get stride(){return 2+(this.hasZ?1:0)+(this.hasM?1:0)}area(){if(this.isPoint)return 0;let t=0,e=0;for(const n of this.lengths){if(n<3)continue;const{stride:r}=this;let s=this.coords[r*e],i=this.coords[r*e+1];for(let o=1;o<n;o+=1){const n=r*(e+o),a=this.coords[n],u=this.coords[n+1];t+=-.5*(a-s)*(u+i),s=a,i=u}e+=n}return t}forEachVertex(t){let e=0;if(this.isPoint)return t(this.coords[0],this.coords[1]);const{stride:n}=this;for(const r of this.lengths){for(let s=0;s<r;s++){const r=n*(e+s);t(this.coords[r],this.coords[r+1])}e+=r}}deltaDecode(){const t=this.clone(),{coords:e,lengths:n}=t;let r=0;const{stride:s}=this;for(const t of n){for(let n=1;n<t;n++){const t=s*(r+n);e[t]+=e[t-s],e[t+1]+=e[t+1-s]}r+=t}return t}clone(t){if(this.isPoint)return new s([],Array.from(this.coords.slice(0,this.stride)),this.hasZ,this.hasM);const e=Array.from(this.lengths),{stride:n,size:r}=this,i=this.coords.slice(0,r*n);return t?(t.set(i),new s(e,t,this.hasZ,this.hasM)):new s(e,Array.from(i),this.hasZ,this.hasM)}justXY(){const{stride:t,size:e}=this;if(2===t)return this;const n=new Array(e*t);for(let e=0,r=0;e<n.length;e+=t)n[r++]=this.coords[e],n[r++]=this.coords[e+1];return new s(this.lengths,n,!1,!1)}}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[609,1948,6061],{61691(t,e,r){r.d(e,{G:()=>s});class s{*[Symbol.iterator](){let t=this.next();for(;t;)yield t,t=this.next()}}},76061(t,e,r){r.d(e,{S:()=>n});var s=r(61691);class n extends s.G{constructor(t){super(),this.m_iGeom=-1,this.m_aGeoms=t?t.slice():[]}next(){if(this.m_iGeom<this.m_aGeoms.length-1){const t=this.m_aGeoms[++this.m_iGeom];return this.m_aGeoms[this.m_iGeom]=null,t}return null}tock(){return!1}getGeometryID(){return this.m_iGeom}getRank(){return 1}}},87992(t,e,r){r.d(e,{JR:()=>S,ME:()=>E,MY:()=>P,NO:()=>M,Nh:()=>O,V2:()=>Y,_s:()=>b,e6:()=>I,gh:()=>_,tr:()=>X,uX:()=>p});var s=r(5482),n=r(69397),i=r(16930),a=(r(70328),r(19419)),o=r(60408),h=r(21325),u=r(513),l=r(50954),g=r(79567),c=r(52006),m=r(49663),f=r(46068),x=r(92722);class p{constructor({type:t,spatialReference:e,vertexCount:r,vertexXY:s,vertexZ:n,vertexM:i,partCount:a,partOffsets:o,partFlags:h,segmentFlags:u,segmentIndices:l,segmentParams:g,segmentCountArc:c,segmentCountBezier:m}){this.segmentCountArc=0,this.segmentCountBezier=0,this.type=t,this.spatialReference=e,this.vertexCount=r,this.vertexXY=s,this.vertexZ=n,this.vertexM=i,this.partCount=a,this.partOffsets=o,this.partFlags=h,this.segmentFlags=u,this.segmentIndices=l,this.segmentParams=g,this.segmentCountArc=c,this.segmentCountBezier=m}get segmentParamCount(){return 10*this.segmentCountArc+4*this.segmentCountBezier}get segmentCountLine(){const{segmentCount:t,segmentCountArc:e,segmentCountBezier:r}=this;return t&&t-e-r}get segmentCount(){return"polyline"===this.type?this.vertexCount-this.partCount:"polygon"===this.type?this.vertexCount:0}get hasZ(){return null!=this.vertexZ}get hasM(){return null!=this.vertexM}hasCurves(){return null!=this.segmentFlags}isMultipart(){return"polyline"===this.type||"polygon"===this.type}get usedMemory(){function t(t){return t?n.Ul+t.byteLength:0}return t(this.vertexXY)+t(this.vertexZ)+t(this.vertexM)+t(this.partOffsets)+t(this.partFlags)+t(this.segmentFlags)+t(this.segmentIndices)+t(this.segmentParams)}clone(){const{type:t,vertexCount:e,partCount:r,hasZ:s,hasM:n,segmentCountArc:i,segmentCountBezier:a}=this,o=Y(t,e,r,s,n,this.hasCurves(),i,a);o.spatialReference=this.spatialReference;const{vertexXY:h,vertexZ:u,vertexM:l}=this;if(o.vertexXY.set(h.subarray(0,2*e),0),o.vertexZ?.set(u.subarray(0,e),0),o.vertexM?.set(l.subarray(0,e),0),this.isMultipart()){const{partOffsets:t,partFlags:e}=this;o.partFlags.set(e.subarray(0,r+1)),o.partOffsets.set(t.subarray(0,r+1))}if(this.hasCurves()){const{segmentFlags:t,segmentIndices:r,segmentParams:s,segmentParamCount:n}=this;o.segmentFlags.set(t.subarray(0,e),0),o.segmentIndices.set(r.subarray(0,e),0),o.segmentParams.set(s.subarray(0,n),0)}return o}equals(t){return this.equalsWithinTolerance(t,0)}equalsWithinTolerance(t,e){if(null==t)return!1;if(this===t)return!0;if(!(0,h.aI)(this.spatialReference,t.spatialReference))return!1;if(this.vertexCount!==t.vertexCount||this.partCount!==t.partCount)return!1;if(this.hasZ!==t.hasZ||this.hasM!==t.hasM)return!1;if(this.hasCurves()!==t.hasCurves()||this.segmentCountArc!==t.segmentCountArc||this.segmentCountBezier!==t.segmentCountBezier)return!1;const r=0===e?(t,e)=>t!==e||isNaN(t)!==isNaN(e):(t,r)=>Math.abs(t-r)>e||isNaN(t)!==isNaN(r);for(let e=0;e<this.vertexCount;++e)if(r(this.vertexXY[2*e],t.vertexXY[2*e])||r(this.vertexXY[2*e+1],t.vertexXY[2*e+1]))return!1;if(this.hasZ)for(let e=0;e<this.vertexCount;++e)if(r(this.vertexZ[e],t.vertexZ[e]))return!1;if(this.hasM)for(let e=0;e<this.vertexCount;++e)if(r(this.vertexM[e],t.vertexM[e]))return!1;for(let e=0;e<this.partCount;++e)if(this.partFlags[e]!==t.partFlags[e]||this.partOffsets[e]!==t.partOffsets[e])return!1;if(this.hasCurves()){for(let e=0;e<this.vertexCount;++e)if(this.segmentFlags[e]!==t.segmentFlags[e]||this.segmentIndices[e]!==t.segmentIndices[e])return!1;for(let e=0;e<this.segmentParamCount;++e)if(r(this.segmentParams[e],t.segmentParams[e]))return!1}return!0}get parts(){return this.isMultipart()?new v(this):[][Symbol.iterator]()}}class v{constructor(t){this.geometry=t,this.value=new d(t)}get done(){return this.value.index>=this.geometry.partCount}next(){return++this.value.index,this}[Symbol.iterator](){return this}}class d{constructor(t){this.geometry=t,this.index=-1,this._readVertex=Z(t),this._segments=new y(this)}get segments(){return this._segments.reset(),this._segments}get startVertex(){return this._readVertex(this.geometry.partOffsets[this.index])}get vertexCount(){const t=this.geometry.partOffsets;return t[this.index+1]-t[this.index]}}class y{constructor(t){this._part=t,this._partStart=0,this._partEnd=0,this._isPolygon="polygon"===t.geometry.type,this.value=new C(t.geometry)}get done(){return this.value.indexOfStartVertex>this._partEnd}next(){++this.value.indexOfStartVertex;const t=this.value.indexOfStartVertex>=this._partEnd;return this.value.indexOfEndVertex=t&&this._isPolygon?this._partStart:this.value.indexOfStartVertex+1,this}[Symbol.iterator](){return this}reset(){const{index:t}=this._part,e=this._part.geometry.partOffsets;this._partStart=e[t],this._partEnd=e[t+1]-(this._isPolygon?1:2),this.value.indexOfStartVertex=this._partStart-1}}class C{constructor(t){this.geometry=t,this.indexOfStartVertex=-1,this.indexOfEndVertex=-1,this._readVertex=Z(t)}get xStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex]}get yStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex+1]}get zStart(){return this.geometry.vertexZ[this.indexOfStartVertex]}get mStart(){return this.geometry.vertexM[this.indexOfStartVertex]}get xEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex]}get yEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex+1]}get zEnd(){return this.geometry.vertexZ[this.indexOfEndVertex]}get mEnd(){return this.geometry.vertexM[this.indexOfEndVertex]}get start(){return this._readVertex(this.indexOfStartVertex)}get end(){return this._readVertex(this.indexOfEndVertex)}get curve(){const t=this.geometry.segmentFlags?.[this.indexOfStartVertex]??1;if(1===t)return this.end;const e=this.geometry.segmentParams;let r=this.geometry.segmentIndices[this.indexOfStartVertex];if(2===t){const t=e[r++],s=e[r++],n=e[r++],i=e[r++];return{b:[this.end,[t,s],[n,i]]}}const s=e[r++],n=e[r++],i=e[r++],a=e[r++],o=e[r++],h=e[r++];r++,r++;const u=e[r++],l=e[r++];if(!Boolean(4&s)&&1===i)return{c:[this.end,[u,l]]};const g=2&s?0:1,c=1&s?0:1;return{a:[this.end,[o,h],g,c,a,n,i]}}}function M(t,e){const r={stack:[],error:void 0,hasError:!1};try{return e??=(0,a.Ie)(),(0,s.mS)(r,new F(t,["vertexZ","vertexM","spatialReference"]),!1),(0,a.bx)(e,function(t){let e;const{vertexCount:r,vertexXY:n,vertexZ:i,vertexM:o}=t,h=R(t);if(t.hasCurves()){const r={stack:[],error:void 0,hasError:!1};try{(0,s.mS)(r,new F(t,["vertexZ","vertexM"]),!1);const n=(0,a.Ie)();for(const e of t.parts){let t=e.startVertex;for(const{curve:r}of e.segments)(0,g.e)(n,t,r),t=(0,c.yP)(r)}const[i,o,u,l]=n;e={xmin:i,ymin:o,xmax:u,ymax:l,spatialReference:h}}catch(t){r.error=t,r.hasError=!0}finally{(0,s.hk)(r)}}else{let t,s,i,a;t=s=1/0,i=a=-1/0;for(let e=0;e<r;++e){const r=n[2*e],o=n[2*e+1];t=Math.min(t,r),i=Math.max(i,r),s=Math.min(s,o),a=Math.max(a,o)}e={xmin:t,ymin:s,xmax:i,ymax:a,spatialReference:h}}if(i){let t=1/0,r=-1/0;for(const e of i)t=Math.min(t,e),r=Math.max(r,e);e.zmin=t,e.zmax=r}if(o){let t=1/0,r=-1/0;for(const e of o)t=Math.min(t,e),r=Math.max(r,e);e.mmin=t,e.mmax=r}return e}(t)),e}catch(t){r.error=t,r.hasError=!0}finally{(0,s.hk)(r)}}function E(t){let e,r,s;if((0,o.fT)(t)){s="point";const{x:n,y:i,z:a,m:o}=t,h=[n,i];null!=a&&h.push(a),null!=o&&h.push(o),r=[[h]],e=1}else(0,o.U9)(t)?(s="multipoint",r=[t.points],e=t.points.length):(0,o.Rg)(t)?(s="polyline",r=t.curvePaths??t.paths,e=r.reduce((t,e)=>t+e.length,0)):(s="polygon",r=t.curveRings??t.rings,e=r.reduce((t,e)=>(0===e.length||(t+=e.length,A(e[0],(0,c.yP)(e.at(-1)))&&--t),t),0));const n=Y(s,e,s.includes("point")?0:r.length,(0,o.Pv)(t),(0,o.W0)(t),(0,c.Ed)(t)),{hasZ:i,hasM:a,vertexXY:h,vertexZ:u,vertexM:l}=n;function g(t){h[2*f]=t[0],h[2*f+1]=t[1],i&&(u[f]=t[2]),a&&(l[f]=t[m]),++f}n.spatialReference=t.spatialReference??void 0;const m=n.hasZ?3:2;let f=0;if(!n.isMultipart()){if(!i&&!a){for(const[t,e]of r[0])h[2*f]=t,h[2*f+1]=e,++f;return n}for(const t of r[0])g(t);return n}const x="polygon"===s,{partOffsets:p}=n;let v=0;if(!n.hasCurves()){for(const t of r){if(p[v++]=f,0===t.length)continue;let e=t.length;if(x&&A(t[0],t.at(-1))&&--e,i||a)for(let r=0;r<e;++r)g(t[r]);else for(let r=0;r<e;++r){const[e,s]=t[r];h[2*f]=e,h[2*f+1]=s,++f}}return p[v]=f,n}function d(t){const e=y+t;if(e<=(n.segmentParams?.length??0))return;let r=e*k;r=20*Math.ceil(r/20);const s=n.segmentParams;n.segmentParams=new Float64Array(r),null!=s&&n.segmentParams.set(s)}let y=0;for(const t of r){if(n.partOffsets[v++]=f,0===t.length)continue;const e=t[0];let r=e;for(let e=1;e<t.length;++e){const s=t[e];g(r);const i=f-1;(0,c.wY)(s)?(d(10),++n.segmentCountArc,y=b(r,s,n,i,y),r=s.a[0]):(0,c.DA)(s)?(d(10),++n.segmentCountArc,y=V(r,s,n,i,y),r=s.a[0]):(0,c.aO)(s)?(d(10),++n.segmentCountArc,y=I(r,s,n,i,y),r=s.c[0]):(0,c.n1)(s)?(d(4),++n.segmentCountBezier,y=X(0,s,n,i,y),r=s.b[0]):r=s}x&&A(e,r)||g(r)}return n.partOffsets[v]=f,n}function _(t){const e=Z(t),{vertexCount:r,partCount:s,hasZ:n,hasM:i}=t,a=R(t);if("point"===t.type){const[e,r]=t.vertexXY,s=t.vertexZ?.[0],n=t.vertexM?.[0];return{x:e,y:r,z:s,m:n,spatialReference:a}}let o=0;if("multipoint"===t.type){const t=[];for(;o<r;)t.push(e(o++));return{points:t,spatialReference:a,hasZ:n,hasM:i}}const h="polygon"===t.type;if(!t.hasCurves()){const r=new Array;for(let n=0;n<s;++n){const s=t.partOffsets[n+1],i=new Array;for(;o<s;)i.push(e(o++));h&&i.length>0&&i.push(i[0]),r.push(i)}return h?{rings:r,hasZ:n,hasM:i,spatialReference:a}:{paths:r,hasZ:n,hasM:i,spatialReference:a}}const u=new Array;for(const{segments:e,startVertex:r}of t.parts){const t=[r];for(const{curve:r}of e)t.push(r);u.push(t)}return h?{rings:[],curveRings:u,hasZ:n,hasM:i,spatialReference:a}:{paths:[],curvePaths:u,hasZ:n,hasM:i,spatialReference:a}}function O(t,{lengths:e,coords:r,hasZ:s,hasM:n},i){const a=t.includes("point")?0:e.length,o="polygon"===t,h="point"===t?1:e.reduce((t,e)=>t+e,0)-(o?a:0);s??=!1,n??=!1;const u=Y(t,h,a,s,n,!1,0,0);if(u.spatialReference=i??void 0,!u.isMultipart()){for(let t=0,e=0;t<h;++t)u.vertexXY[2*t]=r[e++],u.vertexXY[2*t+1]=r[e++],s&&(u.vertexZ[t]=r[e++]),n&&(u.vertexM[t]=r[e++]);return u}const l=2+Number(s)+Number(n);let g=0,c=0;u.partOffsets[0]=0;for(const t of e){const e=u.partOffsets[c],i=e+t-Number(o);u.partOffsets[++c]=i;for(let t=e;t<i;++t)u.vertexXY[2*t]=r[g++],u.vertexXY[2*t+1]=r[g++],s&&(u.vertexZ[t]=r[g++]),n&&(u.vertexM[t]=r[g++]);o&&(g+=l)}return u}function S({type:t,vertexCount:e,vertexXY:r,vertexZ:s,vertexM:n,partCount:i,partOffsets:a,hasZ:o,hasM:h}){const u=new x.A([],[],o,h);i=Math.max(i,1);const l="polygon"===t;let g=0;for(let t=0;t<i;++t){const i=a?.[t+1]??e,c=u.coords.length;for(let t=g;t<i;++t)u.coords.push(r[2*t],r[2*t+1]),o&&u.coords.push(s[t]),h&&u.coords.push(n[t]);if(l){const t=g;u.coords.push(r[2*t],r[2*t+1]),o&&u.coords.push(s[t]),h&&u.coords.push(n[t])}u.lengths.push((u.coords.length-c)/u.stride),g=i}return"point"===t&&(u.lengths.length=0),u}function P(t,e){return"getSpatialReference"in t&&(e=function(t){if(null==t)return;const e=t.getText()||void 0,r=t.isCustomWkid()?0:t.getOldID();if(r<=0)return{wkt:e};let s=t.getLatestID();(s<=0||s===r)&&(s=void 0);const n=t.getVCS();if(null==n)return{wkid:r,latestWkid:s,wkt:e};const i=n.isCustomWkid()?0:n.getOldID();if(i<=0)return{wkt:e};let a=t.getLatestVerticalID();return(a<=0||a===i)&&(a=void 0),{wkid:r,wkt:e,latestWkid:s,vcsWkid:i,latestVcsWkid:a}}(t.getSpatialReference()),t=t.getGeometry()),new p({...t.toFlatGeometry(),spatialReference:e})}class F{constructor(t,e){this.target=t,this.keys=e,this.oldValues=e.map(e=>t[e]);for(const r of e)t[r]=void 0}[Symbol.dispose](){this.keys.map((t,e)=>{this.target[t]=this.oldValues[e]})}}function R({spatialReference:t}){return t instanceof i.A?t.toJSON():t}function Z({vertexXY:t,vertexZ:e,vertexM:r}){return e?r?s=>[t[2*s],t[2*s+1],e[s],r[s]]:r=>[t[2*r],t[2*r+1],e[r]]:r?e=>[t[2*e],t[2*e+1],r[e]]:e=>[t[2*e],t[2*e+1]]}function A(t,e){return t.every((t,r)=>t===e[r])}function Y(t,e,r,s,n,i,a,o){a??=0,o??=0;const h=new p({type:t,vertexCount:e,vertexXY:null,vertexZ:void 0,vertexM:void 0,partCount:r,partOffsets:void 0,partFlags:void 0,segmentFlags:void 0,segmentIndices:void 0,segmentParams:void 0,segmentCountArc:a,segmentCountBezier:o});let u=2*Float64Array.BYTES_PER_ELEMENT*e;s&&(u+=Float64Array.BYTES_PER_ELEMENT*e),n&&(u+=Float64Array.BYTES_PER_ELEMENT*e),h.isMultipart()&&(u+=(r+1)*Int32Array.BYTES_PER_ELEMENT,u+=(r+1)*Int8Array.BYTES_PER_ELEMENT),i&&(u+=e*Int8Array.BYTES_PER_ELEMENT,u+=e*Int32Array.BYTES_PER_ELEMENT,u+=h.segmentParamCount*Float64Array.BYTES_PER_ELEMENT);const l=new ArrayBuffer(u);let g=0;return h.vertexXY=new Float64Array(l,g,2*e),g+=h.vertexXY.byteLength,s&&(h.vertexZ=new Float64Array(l,g,e),g+=h.vertexZ.byteLength),n&&(h.vertexM=new Float64Array(l,g,e),g+=h.vertexM.byteLength),i&&(h.segmentParams=new Float64Array(l,g,h.segmentParamCount),g+=h.segmentParams.byteLength,h.segmentIndices=new Int32Array(l,g,e),h.segmentIndices.fill(N),g+=h.segmentIndices.byteLength),h.isMultipart()&&(h.partOffsets=new Int32Array(l,g,r+1),g+=h.partOffsets.byteLength,h.partFlags=new Int8Array(l,g,r+1),g+=h.partFlags.byteLength,"polygon"===h.type&&h.partFlags.subarray(0,r).fill(1)),i&&(h.segmentFlags=new Int8Array(l,g,e),h.segmentFlags.fill(1),g+=h.segmentFlags.byteLength),h}function b(t,e,{segmentFlags:r,segmentIndices:s,segmentParams:n},i,a){r[i]=4,s[i]=a;const[o,[h,u],l,g,c,m,x]=e.a;let p=4;g||(p|=1),l||(p|=2);const v=(0,f.SW)(t,e),[d,y]=(0,f.Uk)(v,.5);return n[a++]=p,n[a++]=m,n[a++]=x,n[a++]=c,n[a++]=h,n[a++]=u,n[a++]=v.u2-v.u1,n[a++]=v.u1,n[a++]=d,n[a++]=y,a}function V(t,e,{segmentFlags:r,segmentIndices:s,segmentParams:n},i,a){r[i]=4,s[i]=a;const o=(0,m.io)(t,e);return w(o,4,...(0,u.mq)(o,.5),n,a)}function I(t,e,{segmentFlags:r,segmentIndices:s,segmentParams:n},i,a){return r[i]=4,s[i]=a,w((0,l.pM)(t,e),0,...e.c[1],n,a)}function w(t,e,r,s,n,i){const{cx:a,cy:o,thetaStart:h,thetaEnd:u,radius:l}=t;return h>u||(e|=1),Math.abs(u-h)<=Math.PI||(e|=2),n[i++]=e,n[i++]=l,n[i++]=1,n[i++]=0,n[i++]=a,n[i++]=o,n[i++]=u-h,n[i++]=h,n[i++]=r,n[i++]=s,i}function X(t,{b:[e,[r,s],[n,i]]},{segmentFlags:a,segmentIndices:o,segmentParams:h},u,l){return a[u]=2,o[u]=l,h[l++]=r,h[l++]=s,h[l++]=n,h[l++]=i,l}const k=1.61803,N=-1},51508(t,e,r){r.r(e),r.d(e,{execute:()=>a});var s=r(15756),n=r(83299);const i=new s.j;function a(t,e){const r=(0,n.fromGeometry)(t);return i.execute(r.getGeometry(),(0,n.fromGeometryToGXGeometry)(e),r.getSpatialReference(),null)}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1550,1666,1812,1948,2722,3931,5611,6061,6312,7992,8125,9169,9285],{61691(t,e,n){n.d(e,{G:()=>r});class r{*[Symbol.iterator](){let t=this.next();for(;t;)yield t,t=this.next()}}},76061(t,e,n){n.d(e,{S:()=>s});var r=n(61691);class s extends r.G{constructor(t){super(),this.m_iGeom=-1,this.m_aGeoms=t?t.slice():[]}next(){if(this.m_iGeom<this.m_aGeoms.length-1){const t=this.m_aGeoms[++this.m_iGeom];return this.m_aGeoms[this.m_iGeom]=null,t}return null}tock(){return!1}getGeometryID(){return this.m_iGeom}getRank(){return 1}}},96957(t,e,n){n.d(e,{e:()=>o,s:()=>u});var r=n(4576),s=n(68613),i=n(78125);function o(t,e){const n=(0,i.getSpatialReference)(t);return(0,i.toGeometry)((0,s.g7)((0,i.fromGeometry)(t),(0,i.fromGeometry)(e),(0,i.fromSpatialReference)(n)),n)}const a=(0,s.fz)(),u=Object.freeze(Object.defineProperty({__proto__:null,execute:o,executeMany:function(t,e){const n=t.map(i.fromGeometry),o=(0,i.getSpatialReference)(t);return(0,s.zo)(n,(0,i.fromGeometry)(e),(0,i.fromSpatialReference)(o)).map(t=>(0,i.toGeometry)(t,o)).filter(r.Ru)},supportsCurves:a},Symbol.toStringTag,{value:"Module"}))},9093(t,e,n){function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function s(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]]}n.d(e,{o8:()=>s,vt:()=>r,zK:()=>i});const i=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:i,clone:s,create:r,fromValues:function(t,e,n,r,s,i,o,a,u,c,h,l,f,m,g,p){return[t,e,n,r,s,i,o,a,u,c,h,l,f,m,g,p]}},Symbol.toStringTag,{value:"Module"}))},51850(t,e,n){function r(){return[0,0,0]}function s(t){return[t[0],t[1],t[2]]}function i(t,e,n){return[t,e,n]}function o(t,e,n){return[t,e,n]}function a(t,e=[0,0,0]){const n=Math.min(3,t.length);for(let r=0;r<n;++r)e[r]=t[r];return e}function u(){return[0,0,0]}function c(){return i(1,1,1)}function h(){return i(1,0,0)}function l(){return i(0,1,0)}function f(){return i(0,0,1)}n.d(e,{CN:()=>o,Cb:()=>d,Cw:()=>p,JP:()=>x,S:()=>c,Ul:()=>u,Un:()=>g,ci:()=>a,fA:()=>i,o8:()=>s,uY:()=>m,vt:()=>r});const m=[0,0,0],g=c(),p=h(),x=l(),d=f();Object.freeze(Object.defineProperty({__proto__:null,ONES:g,UNIT_X:p,UNIT_Y:x,UNIT_Z:d,ZEROS:m,clone:s,create:r,freeze:o,fromArray:a,fromValues:i,ones:c,unitX:h,unitY:l,unitZ:f,zeros:u},Symbol.toStringTag,{value:"Module"}))},35522(t,e,n){n.d(e,{$A:()=>b,Bw:()=>i,C:()=>o,Cc:()=>I,DI:()=>E,Il:()=>D,Io:()=>y,Ln:()=>d,Om:()=>P,Qr:()=>l,Re:()=>c,S8:()=>_,T9:()=>p,WQ:()=>u,Z0:()=>S,_S:()=>m,aI:()=>Y,ei:()=>w,fw:()=>O,g7:()=>V,gL:()=>A,hG:()=>M,hZ:()=>a,hs:()=>x,jb:()=>T,jk:()=>g,lo:()=>k,lw:()=>h,m3:()=>v,oW:()=>N,t2:()=>G,tn:()=>f,uE:()=>L,xg:()=>X,ze:()=>C});var r=n(51850),s=n(34304);function i(t){const e=t[0],n=t[1],r=t[2];return Math.sqrt(e*e+n*n+r*r)}function o(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function a(t,e,n,r){return t[0]=e,t[1]=n,t[2]=r,t}function u(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t}function c(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function h(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t}function l(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t}function f(t,e){return t[0]=Math.abs(e[0]),t[1]=Math.abs(e[1]),t[2]=Math.abs(e[2]),t}function m(t,e){return t[0]=Math.sign(e[0]),t[1]=Math.sign(e[1]),t[2]=Math.sign(e[2]),t}function g(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t}function p(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t}function x(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t}function d(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t}function y(t,e){const n=e[0]-t[0],r=e[1]-t[1],s=e[2]-t[2];return Math.sqrt(n*n+r*r+s*s)}function M(t,e){const n=e[0]-t[0],r=e[1]-t[1],s=e[2]-t[2];return n*n+r*r+s*s}function v(t){const e=t[0],n=t[1],r=t[2];return e*e+n*n+r*r}function C(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}function E(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}function _(t,e){const n=e[0],r=e[1],s=e[2];let i=n*n+r*r+s*s;return i>0&&(i=1/Math.sqrt(i),t[0]=e[0]*i,t[1]=e[1]*i,t[2]=e[2]*i),t}function P(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function b(t,e,n){const r=e[0],s=e[1],i=e[2],o=n[0],a=n[1],u=n[2];return t[0]=s*u-i*a,t[1]=i*o-r*u,t[2]=r*a-s*o,t}function I(t,e,n,r){const s=e[0],i=e[1],o=e[2];return t[0]=s+r*(n[0]-s),t[1]=i+r*(n[1]-i),t[2]=o+r*(n[2]-o),t}function S(t,e,n){const r=e[0],s=e[1],i=e[2];return t[0]=n[0]*r+n[4]*s+n[8]*i+n[12],t[1]=n[1]*r+n[5]*s+n[9]*i+n[13],t[2]=n[2]*r+n[6]*s+n[10]*i+n[14],t}function w(t,e,n){const r=e[0],s=e[1],i=e[2];return t[0]=r*n[0]+s*n[3]+i*n[6],t[1]=r*n[1]+s*n[4]+i*n[7],t[2]=r*n[2]+s*n[5]+i*n[8],t}function A(t,e,n){return O(t,e,n[0],n[1],n[2],n[3])}function O(t,e,n,r,s,i){const o=e[0],a=e[1],u=e[2],c=r*u-s*a,h=s*o-n*u,l=n*a-r*o,f=r*l-s*h,m=s*c-n*l,g=n*h-r*c,p=2*i;return t[0]=o+c*p+2*f,t[1]=a+h*p+2*m,t[2]=u+l*p+2*g,t}function V(t,e){_(R,t),_(Z,e);const n=P(R,Z);return n>1?0:n<-1?Math.PI:Math.acos(n)}const R=(0,r.vt)(),Z=(0,r.vt)();function G(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function Y(t,e){if(t===e)return!0;const n=t[0],r=t[1],i=t[2],o=e[0],a=e[1],u=e[2],c=(0,s.FD)();return Math.abs(n-o)<=c*Math.max(1,Math.abs(n),Math.abs(o))&&Math.abs(r-a)<=c*Math.max(1,Math.abs(r),Math.abs(a))&&Math.abs(i-u)<=c*Math.max(1,Math.abs(i),Math.abs(u))}function N(t,e,n){const r=n[0]-e[0],s=n[1]-e[1],i=n[2]-e[2];let o=r*r+s*s+i*i;return o>0?(o=1/Math.sqrt(o),t[0]=r*o,t[1]=s*o,t[2]=i*o,t):(t[0]=0,t[1]=0,t[2]=0,t)}const T=c,F=h,z=l,X=y,k=M,D=i,L=v;Object.freeze(Object.defineProperty({__proto__:null,abs:f,add:u,angle:V,bezier:function(t,e,n,r,s,i){const o=1-i,a=o*o,u=i*i,c=a*o,h=3*i*a,l=3*u*o,f=u*i;return t[0]=e[0]*c+n[0]*h+r[0]*l+s[0]*f,t[1]=e[1]*c+n[1]*h+r[1]*l+s[1]*f,t[2]=e[2]*c+n[2]*h+r[2]*l+s[2]*f,t},ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t},clamp:function(t,e=0,n=1){return t[0]=Math.min(Math.max(t[0],e),n),t[1]=Math.min(Math.max(t[1],e),n),t[2]=Math.min(Math.max(t[2],e),n),t},copy:o,cross:b,crossAndNormalize:function(t,e,n){const r=e[0],s=e[1],i=e[2],o=n[0],a=n[1],u=n[2],c=s*u-i*a,h=i*o-r*u,l=r*a-s*o,f=Math.sqrt(c*c+h*h+l*l);return t[0]=c/f,t[1]=h/f,t[2]=l/f,t},direction:N,dist:X,distance:y,div:z,divide:l,dot:P,equals:Y,exactEquals:G,floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t},hermite:function(t,e,n,r,s,i){const o=i*i,a=o*(2*i-3)+1,u=o*(i-2)+i,c=o*(i-1),h=o*(3-2*i);return t[0]=e[0]*a+n[0]*u+r[0]*c+s[0]*h,t[1]=e[1]*a+n[1]*u+r[1]*c+s[1]*h,t[2]=e[2]*a+n[2]*u+r[2]*c+s[2]*h,t},inverse:E,len:D,length:i,lerp:I,max:p,min:g,mul:F,multiply:h,negate:C,normalize:_,random:function(t,e=1){const n=s.Ov,r=2*n()*Math.PI,i=2*n()-1,o=Math.sqrt(1-i*i)*e;return t[0]=Math.cos(r)*o,t[1]=Math.sin(r)*o,t[2]=i*e,t},rotateX:function(t,e,n,r){const s=[],i=[];return s[0]=e[0]-n[0],s[1]=e[1]-n[1],s[2]=e[2]-n[2],i[0]=s[0],i[1]=s[1]*Math.cos(r)-s[2]*Math.sin(r),i[2]=s[1]*Math.sin(r)+s[2]*Math.cos(r),t[0]=i[0]+n[0],t[1]=i[1]+n[1],t[2]=i[2]+n[2],t},rotateY:function(t,e,n,r){const s=[],i=[];return s[0]=e[0]-n[0],s[1]=e[1]-n[1],s[2]=e[2]-n[2],i[0]=s[2]*Math.sin(r)+s[0]*Math.cos(r),i[1]=s[1],i[2]=s[2]*Math.cos(r)-s[0]*Math.sin(r),t[0]=i[0]+n[0],t[1]=i[1]+n[1],t[2]=i[2]+n[2],t},rotateZ:function(t,e,n,r){const s=[],i=[];return s[0]=e[0]-n[0],s[1]=e[1]-n[1],s[2]=e[2]-n[2],i[0]=s[0]*Math.cos(r)-s[1]*Math.sin(r),i[1]=s[0]*Math.sin(r)+s[1]*Math.cos(r),i[2]=s[2],t[0]=i[0]+n[0],t[1]=i[1]+n[1],t[2]=i[2]+n[2],t},round:function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t},scale:x,scaleAndAdd:d,set:a,sign:m,sqrDist:k,sqrLen:L,squaredDistance:M,squaredLength:v,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:T,subtract:c,transformMat3:w,transformMat4:S,transformQuat:A,transformQuatValues:O},Symbol.toStringTag,{value:"Module"}))},69397(t,e,n){n.d(e,{Qf:()=>u,Qh:()=>o,RS:()=>s,Ul:()=>m,i5:()=>f,lM:()=>i,qK:()=>h});var r=n(34275);const s=16;function i(t){if(!t)return 0;let e=h;for(const n in t)t.hasOwnProperty(n)&&(e+=a(t[n],!1));return e}function o(t){if(!t)return 0;if("number"==typeof t[0])return u(t);if(Array.isArray(t))return function(t){const e=t.length;if(0===e||"number"==typeof t[0])return c(t,8);let n=l;for(let r=0;r<e;r++)n+=a(t[r]);return n}(t);let e=h;for(const n in t)t.hasOwnProperty(n)&&(e+=a(t[n]));return e}function a(t,e=!0){switch(typeof t){case"object":return e?o(t):h;case"string":return function(t){return 32+t.length}(t);case"number":return s;case"boolean":return 4;default:return 8}}function u(...t){return t.reduce((t,e)=>t+(e?(0,r.iu)(e)?e.byteLength+f:Array.isArray(e)?c(e,s):0:0),0)}function c(t,e){return l+t.length*e}const h=32,l=16,f=145,m=64},87992(t,e,n){n.d(e,{JR:()=>b,ME:()=>E,MY:()=>I,NO:()=>C,Nh:()=>P,V2:()=>V,_s:()=>R,e6:()=>G,gh:()=>_,tr:()=>N,uX:()=>x});var r=n(5482),s=n(69397),i=n(16930),o=(n(70328),n(19419)),a=n(60408),u=n(21325),c=n(513),h=n(50954),l=n(79567),f=n(52006),m=n(49663),g=n(46068),p=n(92722);class x{constructor({type:t,spatialReference:e,vertexCount:n,vertexXY:r,vertexZ:s,vertexM:i,partCount:o,partOffsets:a,partFlags:u,segmentFlags:c,segmentIndices:h,segmentParams:l,segmentCountArc:f,segmentCountBezier:m}){this.segmentCountArc=0,this.segmentCountBezier=0,this.type=t,this.spatialReference=e,this.vertexCount=n,this.vertexXY=r,this.vertexZ=s,this.vertexM=i,this.partCount=o,this.partOffsets=a,this.partFlags=u,this.segmentFlags=c,this.segmentIndices=h,this.segmentParams=l,this.segmentCountArc=f,this.segmentCountBezier=m}get segmentParamCount(){return 10*this.segmentCountArc+4*this.segmentCountBezier}get segmentCountLine(){const{segmentCount:t,segmentCountArc:e,segmentCountBezier:n}=this;return t&&t-e-n}get segmentCount(){return"polyline"===this.type?this.vertexCount-this.partCount:"polygon"===this.type?this.vertexCount:0}get hasZ(){return null!=this.vertexZ}get hasM(){return null!=this.vertexM}hasCurves(){return null!=this.segmentFlags}isMultipart(){return"polyline"===this.type||"polygon"===this.type}get usedMemory(){function t(t){return t?s.Ul+t.byteLength:0}return t(this.vertexXY)+t(this.vertexZ)+t(this.vertexM)+t(this.partOffsets)+t(this.partFlags)+t(this.segmentFlags)+t(this.segmentIndices)+t(this.segmentParams)}clone(){const{type:t,vertexCount:e,partCount:n,hasZ:r,hasM:s,segmentCountArc:i,segmentCountBezier:o}=this,a=V(t,e,n,r,s,this.hasCurves(),i,o);a.spatialReference=this.spatialReference;const{vertexXY:u,vertexZ:c,vertexM:h}=this;if(a.vertexXY.set(u.subarray(0,2*e),0),a.vertexZ?.set(c.subarray(0,e),0),a.vertexM?.set(h.subarray(0,e),0),this.isMultipart()){const{partOffsets:t,partFlags:e}=this;a.partFlags.set(e.subarray(0,n+1)),a.partOffsets.set(t.subarray(0,n+1))}if(this.hasCurves()){const{segmentFlags:t,segmentIndices:n,segmentParams:r,segmentParamCount:s}=this;a.segmentFlags.set(t.subarray(0,e),0),a.segmentIndices.set(n.subarray(0,e),0),a.segmentParams.set(r.subarray(0,s),0)}return a}equals(t){return this.equalsWithinTolerance(t,0)}equalsWithinTolerance(t,e){if(null==t)return!1;if(this===t)return!0;if(!(0,u.aI)(this.spatialReference,t.spatialReference))return!1;if(this.vertexCount!==t.vertexCount||this.partCount!==t.partCount)return!1;if(this.hasZ!==t.hasZ||this.hasM!==t.hasM)return!1;if(this.hasCurves()!==t.hasCurves()||this.segmentCountArc!==t.segmentCountArc||this.segmentCountBezier!==t.segmentCountBezier)return!1;const n=0===e?(t,e)=>t!==e||isNaN(t)!==isNaN(e):(t,n)=>Math.abs(t-n)>e||isNaN(t)!==isNaN(n);for(let e=0;e<this.vertexCount;++e)if(n(this.vertexXY[2*e],t.vertexXY[2*e])||n(this.vertexXY[2*e+1],t.vertexXY[2*e+1]))return!1;if(this.hasZ)for(let e=0;e<this.vertexCount;++e)if(n(this.vertexZ[e],t.vertexZ[e]))return!1;if(this.hasM)for(let e=0;e<this.vertexCount;++e)if(n(this.vertexM[e],t.vertexM[e]))return!1;for(let e=0;e<this.partCount;++e)if(this.partFlags[e]!==t.partFlags[e]||this.partOffsets[e]!==t.partOffsets[e])return!1;if(this.hasCurves()){for(let e=0;e<this.vertexCount;++e)if(this.segmentFlags[e]!==t.segmentFlags[e]||this.segmentIndices[e]!==t.segmentIndices[e])return!1;for(let e=0;e<this.segmentParamCount;++e)if(n(this.segmentParams[e],t.segmentParams[e]))return!1}return!0}get parts(){return this.isMultipart()?new d(this):[][Symbol.iterator]()}}class d{constructor(t){this.geometry=t,this.value=new y(t)}get done(){return this.value.index>=this.geometry.partCount}next(){return++this.value.index,this}[Symbol.iterator](){return this}}class y{constructor(t){this.geometry=t,this.index=-1,this._readVertex=A(t),this._segments=new M(this)}get segments(){return this._segments.reset(),this._segments}get startVertex(){return this._readVertex(this.geometry.partOffsets[this.index])}get vertexCount(){const t=this.geometry.partOffsets;return t[this.index+1]-t[this.index]}}class M{constructor(t){this._part=t,this._partStart=0,this._partEnd=0,this._isPolygon="polygon"===t.geometry.type,this.value=new v(t.geometry)}get done(){return this.value.indexOfStartVertex>this._partEnd}next(){++this.value.indexOfStartVertex;const t=this.value.indexOfStartVertex>=this._partEnd;return this.value.indexOfEndVertex=t&&this._isPolygon?this._partStart:this.value.indexOfStartVertex+1,this}[Symbol.iterator](){return this}reset(){const{index:t}=this._part,e=this._part.geometry.partOffsets;this._partStart=e[t],this._partEnd=e[t+1]-(this._isPolygon?1:2),this.value.indexOfStartVertex=this._partStart-1}}class v{constructor(t){this.geometry=t,this.indexOfStartVertex=-1,this.indexOfEndVertex=-1,this._readVertex=A(t)}get xStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex]}get yStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex+1]}get zStart(){return this.geometry.vertexZ[this.indexOfStartVertex]}get mStart(){return this.geometry.vertexM[this.indexOfStartVertex]}get xEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex]}get yEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex+1]}get zEnd(){return this.geometry.vertexZ[this.indexOfEndVertex]}get mEnd(){return this.geometry.vertexM[this.indexOfEndVertex]}get start(){return this._readVertex(this.indexOfStartVertex)}get end(){return this._readVertex(this.indexOfEndVertex)}get curve(){const t=this.geometry.segmentFlags?.[this.indexOfStartVertex]??1;if(1===t)return this.end;const e=this.geometry.segmentParams;let n=this.geometry.segmentIndices[this.indexOfStartVertex];if(2===t){const t=e[n++],r=e[n++],s=e[n++],i=e[n++];return{b:[this.end,[t,r],[s,i]]}}const r=e[n++],s=e[n++],i=e[n++],o=e[n++],a=e[n++],u=e[n++];n++,n++;const c=e[n++],h=e[n++];if(!Boolean(4&r)&&1===i)return{c:[this.end,[c,h]]};const l=2&r?0:1,f=1&r?0:1;return{a:[this.end,[a,u],l,f,o,s,i]}}}function C(t,e){const n={stack:[],error:void 0,hasError:!1};try{return e??=(0,o.Ie)(),(0,r.mS)(n,new S(t,["vertexZ","vertexM","spatialReference"]),!1),(0,o.bx)(e,function(t){let e;const{vertexCount:n,vertexXY:s,vertexZ:i,vertexM:a}=t,u=w(t);if(t.hasCurves()){const n={stack:[],error:void 0,hasError:!1};try{(0,r.mS)(n,new S(t,["vertexZ","vertexM"]),!1);const s=(0,o.Ie)();for(const e of t.parts){let t=e.startVertex;for(const{curve:n}of e.segments)(0,l.e)(s,t,n),t=(0,f.yP)(n)}const[i,a,c,h]=s;e={xmin:i,ymin:a,xmax:c,ymax:h,spatialReference:u}}catch(t){n.error=t,n.hasError=!0}finally{(0,r.hk)(n)}}else{let t,r,i,o;t=r=1/0,i=o=-1/0;for(let e=0;e<n;++e){const n=s[2*e],a=s[2*e+1];t=Math.min(t,n),i=Math.max(i,n),r=Math.min(r,a),o=Math.max(o,a)}e={xmin:t,ymin:r,xmax:i,ymax:o,spatialReference:u}}if(i){let t=1/0,n=-1/0;for(const e of i)t=Math.min(t,e),n=Math.max(n,e);e.zmin=t,e.zmax=n}if(a){let t=1/0,n=-1/0;for(const e of a)t=Math.min(t,e),n=Math.max(n,e);e.mmin=t,e.mmax=n}return e}(t)),e}catch(t){n.error=t,n.hasError=!0}finally{(0,r.hk)(n)}}function E(t){let e,n,r;if((0,a.fT)(t)){r="point";const{x:s,y:i,z:o,m:a}=t,u=[s,i];null!=o&&u.push(o),null!=a&&u.push(a),n=[[u]],e=1}else(0,a.U9)(t)?(r="multipoint",n=[t.points],e=t.points.length):(0,a.Rg)(t)?(r="polyline",n=t.curvePaths??t.paths,e=n.reduce((t,e)=>t+e.length,0)):(r="polygon",n=t.curveRings??t.rings,e=n.reduce((t,e)=>(0===e.length||(t+=e.length,O(e[0],(0,f.yP)(e.at(-1)))&&--t),t),0));const s=V(r,e,r.includes("point")?0:n.length,(0,a.Pv)(t),(0,a.W0)(t),(0,f.Ed)(t)),{hasZ:i,hasM:o,vertexXY:u,vertexZ:c,vertexM:h}=s;function l(t){u[2*g]=t[0],u[2*g+1]=t[1],i&&(c[g]=t[2]),o&&(h[g]=t[m]),++g}s.spatialReference=t.spatialReference??void 0;const m=s.hasZ?3:2;let g=0;if(!s.isMultipart()){if(!i&&!o){for(const[t,e]of n[0])u[2*g]=t,u[2*g+1]=e,++g;return s}for(const t of n[0])l(t);return s}const p="polygon"===r,{partOffsets:x}=s;let d=0;if(!s.hasCurves()){for(const t of n){if(x[d++]=g,0===t.length)continue;let e=t.length;if(p&&O(t[0],t.at(-1))&&--e,i||o)for(let n=0;n<e;++n)l(t[n]);else for(let n=0;n<e;++n){const[e,r]=t[n];u[2*g]=e,u[2*g+1]=r,++g}}return x[d]=g,s}function y(t){const e=M+t;if(e<=(s.segmentParams?.length??0))return;let n=e*T;n=20*Math.ceil(n/20);const r=s.segmentParams;s.segmentParams=new Float64Array(n),null!=r&&s.segmentParams.set(r)}let M=0;for(const t of n){if(s.partOffsets[d++]=g,0===t.length)continue;const e=t[0];let n=e;for(let e=1;e<t.length;++e){const r=t[e];l(n);const i=g-1;(0,f.wY)(r)?(y(10),++s.segmentCountArc,M=R(n,r,s,i,M),n=r.a[0]):(0,f.DA)(r)?(y(10),++s.segmentCountArc,M=Z(n,r,s,i,M),n=r.a[0]):(0,f.aO)(r)?(y(10),++s.segmentCountArc,M=G(n,r,s,i,M),n=r.c[0]):(0,f.n1)(r)?(y(4),++s.segmentCountBezier,M=N(0,r,s,i,M),n=r.b[0]):n=r}p&&O(e,n)||l(n)}return s.partOffsets[d]=g,s}function _(t){const e=A(t),{vertexCount:n,partCount:r,hasZ:s,hasM:i}=t,o=w(t);if("point"===t.type){const[e,n]=t.vertexXY,r=t.vertexZ?.[0],s=t.vertexM?.[0];return{x:e,y:n,z:r,m:s,spatialReference:o}}let a=0;if("multipoint"===t.type){const t=[];for(;a<n;)t.push(e(a++));return{points:t,spatialReference:o,hasZ:s,hasM:i}}const u="polygon"===t.type;if(!t.hasCurves()){const n=new Array;for(let s=0;s<r;++s){const r=t.partOffsets[s+1],i=new Array;for(;a<r;)i.push(e(a++));u&&i.length>0&&i.push(i[0]),n.push(i)}return u?{rings:n,hasZ:s,hasM:i,spatialReference:o}:{paths:n,hasZ:s,hasM:i,spatialReference:o}}const c=new Array;for(const{segments:e,startVertex:n}of t.parts){const t=[n];for(const{curve:n}of e)t.push(n);c.push(t)}return u?{rings:[],curveRings:c,hasZ:s,hasM:i,spatialReference:o}:{paths:[],curvePaths:c,hasZ:s,hasM:i,spatialReference:o}}function P(t,{lengths:e,coords:n,hasZ:r,hasM:s},i){const o=t.includes("point")?0:e.length,a="polygon"===t,u="point"===t?1:e.reduce((t,e)=>t+e,0)-(a?o:0);r??=!1,s??=!1;const c=V(t,u,o,r,s,!1,0,0);if(c.spatialReference=i??void 0,!c.isMultipart()){for(let t=0,e=0;t<u;++t)c.vertexXY[2*t]=n[e++],c.vertexXY[2*t+1]=n[e++],r&&(c.vertexZ[t]=n[e++]),s&&(c.vertexM[t]=n[e++]);return c}const h=2+Number(r)+Number(s);let l=0,f=0;c.partOffsets[0]=0;for(const t of e){const e=c.partOffsets[f],i=e+t-Number(a);c.partOffsets[++f]=i;for(let t=e;t<i;++t)c.vertexXY[2*t]=n[l++],c.vertexXY[2*t+1]=n[l++],r&&(c.vertexZ[t]=n[l++]),s&&(c.vertexM[t]=n[l++]);a&&(l+=h)}return c}function b({type:t,vertexCount:e,vertexXY:n,vertexZ:r,vertexM:s,partCount:i,partOffsets:o,hasZ:a,hasM:u}){const c=new p.A([],[],a,u);i=Math.max(i,1);const h="polygon"===t;let l=0;for(let t=0;t<i;++t){const i=o?.[t+1]??e,f=c.coords.length;for(let t=l;t<i;++t)c.coords.push(n[2*t],n[2*t+1]),a&&c.coords.push(r[t]),u&&c.coords.push(s[t]);if(h){const t=l;c.coords.push(n[2*t],n[2*t+1]),a&&c.coords.push(r[t]),u&&c.coords.push(s[t])}c.lengths.push((c.coords.length-f)/c.stride),l=i}return"point"===t&&(c.lengths.length=0),c}function I(t,e){return"getSpatialReference"in t&&(e=function(t){if(null==t)return;const e=t.getText()||void 0,n=t.isCustomWkid()?0:t.getOldID();if(n<=0)return{wkt:e};let r=t.getLatestID();(r<=0||r===n)&&(r=void 0);const s=t.getVCS();if(null==s)return{wkid:n,latestWkid:r,wkt:e};const i=s.isCustomWkid()?0:s.getOldID();if(i<=0)return{wkt:e};let o=t.getLatestVerticalID();return(o<=0||o===i)&&(o=void 0),{wkid:n,wkt:e,latestWkid:r,vcsWkid:i,latestVcsWkid:o}}(t.getSpatialReference()),t=t.getGeometry()),new x({...t.toFlatGeometry(),spatialReference:e})}class S{constructor(t,e){this.target=t,this.keys=e,this.oldValues=e.map(e=>t[e]);for(const n of e)t[n]=void 0}[Symbol.dispose](){this.keys.map((t,e)=>{this.target[t]=this.oldValues[e]})}}function w({spatialReference:t}){return t instanceof i.A?t.toJSON():t}function A({vertexXY:t,vertexZ:e,vertexM:n}){return e?n?r=>[t[2*r],t[2*r+1],e[r],n[r]]:n=>[t[2*n],t[2*n+1],e[n]]:n?e=>[t[2*e],t[2*e+1],n[e]]:e=>[t[2*e],t[2*e+1]]}function O(t,e){return t.every((t,n)=>t===e[n])}function V(t,e,n,r,s,i,o,a){o??=0,a??=0;const u=new x({type:t,vertexCount:e,vertexXY:null,vertexZ:void 0,vertexM:void 0,partCount:n,partOffsets:void 0,partFlags:void 0,segmentFlags:void 0,segmentIndices:void 0,segmentParams:void 0,segmentCountArc:o,segmentCountBezier:a});let c=2*Float64Array.BYTES_PER_ELEMENT*e;r&&(c+=Float64Array.BYTES_PER_ELEMENT*e),s&&(c+=Float64Array.BYTES_PER_ELEMENT*e),u.isMultipart()&&(c+=(n+1)*Int32Array.BYTES_PER_ELEMENT,c+=(n+1)*Int8Array.BYTES_PER_ELEMENT),i&&(c+=e*Int8Array.BYTES_PER_ELEMENT,c+=e*Int32Array.BYTES_PER_ELEMENT,c+=u.segmentParamCount*Float64Array.BYTES_PER_ELEMENT);const h=new ArrayBuffer(c);let l=0;return u.vertexXY=new Float64Array(h,l,2*e),l+=u.vertexXY.byteLength,r&&(u.vertexZ=new Float64Array(h,l,e),l+=u.vertexZ.byteLength),s&&(u.vertexM=new Float64Array(h,l,e),l+=u.vertexM.byteLength),i&&(u.segmentParams=new Float64Array(h,l,u.segmentParamCount),l+=u.segmentParams.byteLength,u.segmentIndices=new Int32Array(h,l,e),u.segmentIndices.fill(F),l+=u.segmentIndices.byteLength),u.isMultipart()&&(u.partOffsets=new Int32Array(h,l,n+1),l+=u.partOffsets.byteLength,u.partFlags=new Int8Array(h,l,n+1),l+=u.partFlags.byteLength,"polygon"===u.type&&u.partFlags.subarray(0,n).fill(1)),i&&(u.segmentFlags=new Int8Array(h,l,e),u.segmentFlags.fill(1),l+=u.segmentFlags.byteLength),u}function R(t,e,{segmentFlags:n,segmentIndices:r,segmentParams:s},i,o){n[i]=4,r[i]=o;const[a,[u,c],h,l,f,m,p]=e.a;let x=4;l||(x|=1),h||(x|=2);const d=(0,g.SW)(t,e),[y,M]=(0,g.Uk)(d,.5);return s[o++]=x,s[o++]=m,s[o++]=p,s[o++]=f,s[o++]=u,s[o++]=c,s[o++]=d.u2-d.u1,s[o++]=d.u1,s[o++]=y,s[o++]=M,o}function Z(t,e,{segmentFlags:n,segmentIndices:r,segmentParams:s},i,o){n[i]=4,r[i]=o;const a=(0,m.io)(t,e);return Y(a,4,...(0,c.mq)(a,.5),s,o)}function G(t,e,{segmentFlags:n,segmentIndices:r,segmentParams:s},i,o){return n[i]=4,r[i]=o,Y((0,h.pM)(t,e),0,...e.c[1],s,o)}function Y(t,e,n,r,s,i){const{cx:o,cy:a,thetaStart:u,thetaEnd:c,radius:h}=t;return u>c||(e|=1),Math.abs(c-u)<=Math.PI||(e|=2),s[i++]=e,s[i++]=h,s[i++]=1,s[i++]=0,s[i++]=o,s[i++]=a,s[i++]=c-u,s[i++]=u,s[i++]=n,s[i++]=r,i}function N(t,{b:[e,[n,r],[s,i]]},{segmentFlags:o,segmentIndices:a,segmentParams:u},c,h){return o[c]=2,a[c]=h,u[h++]=n,u[h++]=r,u[h++]=s,u[h++]=i,h}const T=1.61803,F=-1},68613(t,e,n){n.d(e,{fz:()=>x,g7:()=>g,zo:()=>p});var r=n(76061),s=n(61691),i=n(55537),o=n(83661),a=n(88885),u=n(79187),c=n(95213),h=n(15756);function l(t,e,n,r){const s=t.getImpl().getAttributeStreamRef(0),i=t.getPointCount(),a=e.getXY(),h=t.createInstance(),l=(0,c.h)(n),f=new u.Envelope2D;if(t.queryEnvelope(f),f.inflateCoords(l,l),f.contains(a)){const n=l*l;let r=!1;const u=(0,o.d)(i,!1);for(let t=0;t<i;t++){const e=s.read(2*t),i=s.read(2*t+1),o=e-a.x,c=i-a.y;o*o+c*c<=n&&(r=!0,u[t]=!0)}if(r)for(let e=0;e<i;e++)u[e]||h.addPoints(t,e,e+1);else h.addPoints(t,0,i),h.add(e)}else h.addPoints(t,0,i),h.add(e);return h}class f extends s.G{constructor(t,e,n,r){super(),this.m_progressTracker=r,this.m_index=-1,this.m_inputGeoms=t,this.m_spatialReference=n,this.m_rightGeom=e.next(),this.m_bEmpty=!this.m_rightGeom,(0,i.c)(this.m_rightGeom)}tock(){return!0}getRank(){return 1}next(){if(this.m_bEmpty)return null;const t=this.m_inputGeoms.next();return t?((0,i.c)(t),this.m_index=this.m_inputGeoms.getGeometryID(),function(t,e,n,r){const s=t.getDimension(),f=e.getDimension();if(s!==f)return s>f?t:e;if(t.isEmpty())return e;if(e.isEmpty())return t;const m=new u.Envelope2D,g=new u.Envelope2D,p=new u.Envelope2D;t.queryEnvelope(m),e.queryEnvelope(g),p.setCoords({env2D:m}),p.mergeEnvelope2D(g);const x=(0,c.c)(n,p,!0),d=t.getGeometryType(),y=e.getGeometryType();return d===i.G.enumPoint&&y===i.G.enumPoint?function(t,e,n){const r=(0,c.h)(n),s=r*r,i=t.getXY(),u=e.getXY(),h=new a.M({vd:t.getDescription()});return o.P.sqrDistance(i,u)>s&&(h.add(t),h.add(e)),h}(t,e,x):d===i.G.enumPoint&&y===i.G.enumMultiPoint?l(e,t,x):d===i.G.enumMultiPoint&&y===i.G.enumPoint?l(t,e,x):(0,h.ax)(t,e,n,r)}(t,this.m_rightGeom,this.m_spatialReference,this.m_progressTracker)):null}getGeometryID(){return this.m_index}}const m=new class{getOperatorType(){return 10003}supportsCurves(){return!0}accelerateGeometry(t,e,n){return!1}canAccelerateGeometry(t){return!1}executeMany(t,e,n,r){return new f(t,e,n,r)}execute(t,e,n,s){const o=new r.S([t]),a=new r.S([e]),u=this.executeMany(o,a,n,s).next();return u||(0,i.d)("null output"),u}};function g(t,e,n){return m.execute(t,e,n,null)}function p(t,e,n){const s=m.executeMany(new r.S(t),new r.S([e]),n,null);return Array.from(s)}function x(){return m.supportsCurves()}},78125(t,e,n){n.r(e),n.d(e,{fromExtent:()=>x,fromGeometry:()=>p,fromMultipoint:()=>d,fromPoint:()=>y,fromPolygon:()=>M,fromPolyline:()=>v,fromPolylineUsingImportOperator:()=>C,fromSpatialReference:()=>E,getSpatialReference:()=>g,toExtent:()=>P,toGeometry:()=>_,toMultipoint:()=>b,toPoint:()=>I,toPolygon:()=>S,toPolyline:()=>w});var r=n(83661),s=(n(79187),n(55537)),i=n(95213),o=n(88885),a=n(5443),u=n(48526),c=n(86738),h=n(39829),l=n(82799),f=(n(90293),n(83299));const m="_gxVersion";function g(t){return Array.isArray(t)?t[0].spatialReference:t.spatialReference}function p(t){switch(t.type){case"point":return y(t);case"multipoint":return d(t);case"polyline":return v(t);case"polygon":return M(t);case"extent":return x(t);default:throw new Error(`Unsupported geometry type: ${t.type}`)}}function x(t){if(!t.getCacheValue(m)){const e=new i.E;e.setCoords(t.xmin,t.ymin,t.xmax,t.ymax),t.hasM&&e.setInterval(2,0,t.mmin,t.mmax),t.hasZ&&e.setInterval(1,0,t.zmin,t.zmax),t.setCacheValue(m,e)}return t.getCacheValue(m)}function d(t){if(!t.getCacheValue(m)){const e=new o.M,n=new i.P,r=t.points,s=t.hasM,a=t.hasZ,u=a?3:2;for(let t=0,i=r.length;t<i;t++){const i=r[t];n.setXYCoords(i[0],i[1]),a&&n.setZ(i[2]??0),s&&n.setM(i[u]??NaN),e.add(n)}t.setCacheValue(m,e)}return t.getCacheValue(m)}function y(t){if(!t.getCacheValue(m)){const e=new i.P;e.setXYCoords(t.x,t.y),t.hasM&&e.setM(t.m),t.hasZ&&e.setZ(t.z),t.setCacheValue(m,e)}return t.getCacheValue(m)}function M(t){if(!t.getCacheValue(m)){const{curveRings:e,hasM:n,hasZ:r,rings:s}=t,i=(0,f.fromGeometryToGXGeometry)({curveRings:e,hasM:n,hasZ:r,rings:s});t.setCacheValue(m,i)}return t.getCacheValue(m)}function v(t){if(!t.getCacheValue(m)){const{curvePaths:e,hasM:n,hasZ:r,paths:s}=t,i=(0,f.fromGeometryToGXGeometry)({curvePaths:e,hasM:n,hasZ:r,paths:s});t.setCacheValue(m,i)}return t.getCacheValue(m)}function C(t){if(!t.getCacheValue(m)){const{curvePaths:e,hasM:n,hasZ:r,paths:s}=t,i=(0,f.fromGeometryToGXGeometryUsingImportOperator)({curvePaths:e,hasM:n,hasZ:r,paths:s});t.setCacheValue(m,i)}return t.getCacheValue(m)}function E(t){return t.cache?(t.cache[m]??=(0,f.fromSpatialReference)(t),t.cache[m]):(0,f.fromSpatialReference)(t)}function _(t,e){if(t)switch(t.getGeometryType()){case s.G.enumPoint:return I(t,e);case s.G.enumEnvelope:return P(t,e);case s.G.enumMultiPoint:return b(t,e);case s.G.enumPolyline:return w(t,e);case s.G.enumPolygon:return S(t,e)}return null}function P(t,e){if(t.isEmpty())return null;const n=new a.A({xmin:t.getXMin(),ymin:t.getYMin(),xmax:t.getXMax(),ymax:t.getYMax(),spatialReference:e}),r=t.getDescription();if(r.hasM()){const e=t.queryInterval(2,0);n.mmin=e.vmin,n.mmax=e.vmax}if(r.hasZ()){const e=t.queryInterval(1,0);n.zmin=e.vmin,n.zmax=e.vmax}return n.setCacheValue(m,t),n}function b(t,e){if(t.isEmpty())return null;const n=t.getDescription(),r=n.hasM(),s=n.hasZ(),o=[],a=new i.P;for(let e=0,n=t.getPointCount();e<n;e++){t.getPointByVal(e,a);const n=[a.getX(),a.getY()];s&&n.push(a.getZ()),r&&n.push(a.getM()),o.push(n)}const c=new u.A({hasM:r,hasZ:s,points:o,spatialReference:e});return c.setCacheValue(m,t),c}function I(t,e){if(t instanceof r.P)return new c.A({x:t.x,y:t.y,spatialReference:e});if(t.isEmpty())return null;const n=new c.A({x:t.getX(),y:t.getY(),spatialReference:e}),s=t.getDescription();return s.hasM()&&(n.m=t.getM()),s.hasZ()&&(n.z=t.getZ()),n.setCacheValue(m,t),n}function S(t,e){if(t.isEmpty())return null;const n=h.A.fromJSON({...(0,f.toGeometry)(t,null),spatialReference:e});return n.setCacheValue(m,t),n}function w(t,e){if(t.isEmpty())return null;const n=l.A.fromJSON({...(0,f.toGeometry)(t,null),spatialReference:e});return n.setCacheValue(m,t),n}},89041(t,e,n){n.d(e,{execute:()=>r.e}),n(4576),n(68613),n(78125);var r=n(96957)},4197(t,e,n){n.d(e,{Vj:()=>u,cj:()=>a,jh:()=>i,l5:()=>o});var r=n(34275),s=n(9093);function i(t){return t<=r.y9?new Array(t).fill(0):new Float64Array(t)}function o(t,e,n){return Array.isArray(t)?t.slice(e,e+n):t.subarray(e,e+n)}function a(t){return[...t]}function u(t){const e=(0,s.vt)();for(let n=0;n<16;++n)e[n]=t[n];return e}},70328(t,e,n){n.d(e,{BI:()=>M,DC:()=>l,Ej:()=>m,Ie:()=>d,Jt:()=>y,Ne:()=>g,RF:()=>h,aI:()=>C,fA:()=>o,gE:()=>u,hZ:()=>x,iT:()=>f,is:()=>v,qv:()=>E,vI:()=>p,vY:()=>a,v_:()=>_,vt:()=>i,w1:()=>c}),n(35522);var r=n(5443),s=(n(19419),n(4197));function i(t=_){return[t[0],t[1],t[2],t[3],t[4],t[5]]}function o(t,e,n,r,s,o,a=i()){return a[0]=t,a[1]=e,a[2]=n,a[3]=r,a[4]=s,a[5]=o,a}function a(t,e=i()){return function(t,e,n,r=i()){return x(r,E),function(t,e,n=0,r=e.length/3){let s=t[0],i=t[1],o=t[2],a=t[3],u=t[4],c=t[5];for(let t=0;t<r;t++)s=Math.min(s,e[n+3*t]),i=Math.min(i,e[n+3*t+1]),o=Math.min(o,e[n+3*t+2]),a=Math.max(a,e[n+3*t]),u=Math.max(u,e[n+3*t+1]),c=Math.max(c,e[n+3*t+2]);t[0]=s,t[1]=i,t[2]=o,t[3]=a,t[4]=u,t[5]=c}(r,t,e,n),r}(t,0,t.length/3,e)}function u(t,e=(0,s.jh)(24)){const[n,r,i,o,a,u]=t;return e[0]=n,e[1]=r,e[2]=i,e[3]=n,e[4]=r,e[5]=u,e[6]=n,e[7]=a,e[8]=i,e[9]=n,e[10]=a,e[11]=u,e[12]=o,e[13]=r,e[14]=i,e[15]=o,e[16]=r,e[17]=u,e[18]=o,e[19]=a,e[20]=i,e[21]=o,e[22]=a,e[23]=u,e}function c(t,e){const n=isFinite(t[2])||isFinite(t[5]);return new r.A(n?{xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],zmin:t[2],zmax:t[5],spatialReference:e}:{xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],spatialReference:e})}function h(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.min(t[2],e[2]),t[3]=Math.max(t[3],e[3]),t[4]=Math.max(t[4],e[4]),t[5]=Math.max(t[5],e[5])}function l(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[3]=Math.max(t[3],e[2]),t[4]=Math.max(t[4],e[3])}function f(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.min(t[2],e[2]),t[3]=Math.max(t[3],e[0]),t[4]=Math.max(t[4],e[1]),t[5]=Math.max(t[5],e[2])}function m(t,e=[0,0,0]){return e[0]=function(t){return t[0]>=t[3]?0:t[3]-t[0]}(t),e[1]=function(t){return t[1]>=t[4]?0:t[4]-t[1]}(t),e[2]=function(t){return t[2]>=t[5]?0:t[5]-t[2]}(t),e}function g(t,e,n=t){return n[0]=e[0],n[1]=e[1],n[2]=e[2],n!==t&&(n[3]=t[3],n[4]=t[4],n[5]=t[5]),n}function p(t,e,n=t){return n[3]=e[0],n[4]=e[1],n[5]=e[2],n!==t&&(n[0]=t[0],n[1]=t[1],n[2]=t[2]),t}function x(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function d(t){return t?x(t,E):i(E)}function y(t,e){return t[0]=e[0],t[1]=e[1],t[2]=Number.NEGATIVE_INFINITY,t[3]=e[2],t[4]=e[3],t[5]=Number.POSITIVE_INFINITY,t}function M(t,e,n,r,s){return t[0]=e,t[1]=n,t[2]=Number.NEGATIVE_INFINITY,t[3]=r,t[4]=s,t[5]=Number.POSITIVE_INFINITY,t}function v(t){return 6===t.length}function C(t,e,n){if(null==t||null==e)return t===e;if(!v(t)||!v(e))return!1;if(n){for(let r=0;r<t.length;r++)if(!n(t[r],e[r]))return!1}else for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}const E=[1/0,1/0,1/0,-1/0,-1/0,-1/0],_=[0,0,0,0,0,0];i()},92722(t,e,n){n.d(e,{A:()=>s});var r=n(69397);class s{constructor(t=[],e=[],n=!1,r=!1){this.lengths=t??[],this.coords=e??[],this.hasZ=n,this.hasM=r}static fromJSON({lengths:t,coords:e,hasZ:n,hasM:r}){return new s(t,e,n||!1,r||!1)}static fromRect([t,e,n,r]){const i=n-t,o=r-e;return new s([5],[t,e,i,0,0,o,-i,0,0,-o])}get isPoint(){return 0===this.lengths.length&&this.coords.length>=2}get maxLength(){return Math.max(...this.lengths)}get size(){return this.isPoint?1:this.lengths.reduce((t,e)=>t+e,0)}get usedMemory(){return 64+(0,r.Qf)(this.lengths,this.coords)}get stride(){return 2+(this.hasZ?1:0)+(this.hasM?1:0)}area(){if(this.isPoint)return 0;let t=0,e=0;for(const n of this.lengths){if(n<3)continue;const{stride:r}=this;let s=this.coords[r*e],i=this.coords[r*e+1];for(let o=1;o<n;o+=1){const n=r*(e+o),a=this.coords[n],u=this.coords[n+1];t+=-.5*(a-s)*(u+i),s=a,i=u}e+=n}return t}forEachVertex(t){let e=0;if(this.isPoint)return t(this.coords[0],this.coords[1]);const{stride:n}=this;for(const r of this.lengths){for(let s=0;s<r;s++){const r=n*(e+s);t(this.coords[r],this.coords[r+1])}e+=r}}deltaDecode(){const t=this.clone(),{coords:e,lengths:n}=t;let r=0;const{stride:s}=this;for(const t of n){for(let n=1;n<t;n++){const t=s*(r+n);e[t]+=e[t-s],e[t+1]+=e[t+1-s]}r+=t}return t}clone(t){if(this.isPoint)return new s([],Array.from(this.coords.slice(0,this.stride)),this.hasZ,this.hasM);const e=Array.from(this.lengths),{stride:n,size:r}=this,i=this.coords.slice(0,r*n);return t?(t.set(i),new s(e,t,this.hasZ,this.hasM)):new s(e,Array.from(i),this.hasZ,this.hasM)}justXY(){const{stride:t,size:e}=this;if(2===t)return this;const n=new Array(e*t);for(let e=0,r=0;e<n.length;e+=t)n[r++]=this.coords[e],n[r++]=this.coords[e+1];return new s(this.lengths,n,!1,!1)}}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7367],{87367(n,t,e){e.r(t),e.d(t,{registerFunctions:()=>J});var r=e(47609),a=e(66395),i=e(85935),o=e(78502),s=e(78878),c=e(80672),u=e(98919),l=e(71163),f=e(4576),d=e(5443),w=e(91075),y=e(48526),h=e(86738),A=e(39829),S=e(82799),m=e(65864),C=e(20655),N=e(70333),g=e(11254);async function O(n,t,e){const r=N.id?.findCredential(n.restUrl);if(!r)return null;if("loaded"===n.loadStatus&&""===t&&n.user?.sourceJSON&&!1===e)return n.user.sourceJSON;const a={responseType:"json",query:{f:"json"}};if(e&&(a.query.returnUserLicenseTypeExtensions=!0),""===t){const t=await(0,g.A)(n.restUrl+"/community/self",a);if(t.data){const n=t.data;if(n?.username)return n}return null}const i=await(0,g.A)(n.restUrl+"/community/users/"+t,a);if(i.data){const n=i.data;return n.error?null:n}return null}var p=e(54218);function v(n){if(null==n)return n;switch(typeof n){case"string":case"number":return n;default:throw new i.D$(null,"InvalidParameter",null)}}function J(n){"async"===n.mode&&(n.functions.disjoint=function(t,e){return n.standardFunctionAsync(t,e,(n,r,a)=>(a=(0,s.C)(a),(0,u.ZL)(a,t,e),null===a[0]||null===a[1]||(0,l.C)("disjoint",[a[0].toJSON(),a[1].toJSON()])))},n.functions.intersects=function(t,e){return n.standardFunctionAsync(t,e,(n,r,a)=>(a=(0,s.C)(a),(0,u.ZL)(a,t,e),null!==a[0]&&null!==a[1]&&(0,l.C)("intersects",[a[0].toJSON(),a[1].toJSON()])))},n.functions.touches=function(t,e){return n.standardFunctionAsync(t,e,(n,r,a)=>(a=(0,s.C)(a),(0,u.ZL)(a,t,e),null!==a[0]&&null!==a[1]&&(0,l.C)("touches",[a[0].toJSON(),a[1].toJSON()])))},n.functions.crosses=function(t,e){return n.standardFunctionAsync(t,e,(n,r,a)=>(a=(0,s.C)(a),(0,u.ZL)(a,t,e),null!==a[0]&&null!==a[1]&&(0,l.C)("crosses",[a[0].toJSON(),a[1].toJSON()])))},n.functions.within=function(t,e){return n.standardFunctionAsync(t,e,(n,r,a)=>(a=(0,s.C)(a),(0,u.ZL)(a,t,e),null!==a[0]&&null!==a[1]&&(0,l.C)("within",[a[0].toJSON(),a[1].toJSON()])))},n.functions.contains=function(t,e){return n.standardFunctionAsync(t,e,(n,r,a)=>(a=(0,s.C)(a),(0,u.ZL)(a,t,e),null!==a[0]&&null!==a[1]&&(0,l.C)("contains",[a[0].toJSON(),a[1].toJSON()])))},n.functions.overlaps=function(t,e){return n.standardFunctionAsync(t,e,(n,r,a)=>(a=(0,s.C)(a),(0,u.ZL)(a,t,e),null!==a[0]&&null!==a[1]&&(0,l.C)("overlaps",[a[0].toJSON(),a[1].toJSON()])))},n.functions.equals=function(t,e){return n.standardFunctionAsync(t,e,(n,r,a)=>((0,s.B)(a,2,2,t,e),a[0]===a[1]||(a[0]instanceof w.A&&a[1]instanceof w.A?(0,l.C)("equals",[a[0].toJSON(),a[1].toJSON()]):((0,s.e)(a[0])&&(0,s.e)(a[1])||!!((0,s.g)(a[0])&&(0,s.g)(a[1])||(0,s.f)(a[0])&&(0,s.f)(a[1])))&&a[0].equals(a[1]))))},n.functions.relate=function(t,e){return n.standardFunctionAsync(t,e,(n,r,a)=>{if(a=(0,s.C)(a),(0,s.B)(a,3,3,t,e),a[0]instanceof w.A&&a[1]instanceof w.A)return(0,l.C)("relate",[a[0].toJSON(),a[1].toJSON(),(0,s.s)(a[2])]);if(a[0]instanceof w.A&&null===a[1])return!1;if(a[1]instanceof w.A&&null===a[0])return!1;if(null===a[0]&&null===a[1])return!1;throw new i.D$(t,"InvalidParameter",e)})},n.functions.intersection=function(t,e){return n.standardFunctionAsync(t,e,async(n,r,a)=>(a=(0,s.C)(a),(0,u.ZL)(a,t,e),null===a[0]||null===a[1]?null:(0,m.rS)(await(0,l.C)("intersection",[a[0].toJSON(),a[1].toJSON()]))))},n.functions.union=function(t,e){return n.standardFunctionAsync(t,e,async(n,r,a)=>{if(0===(a=(0,s.C)(a)).length)throw new i.D$(t,"WrongNumberOfParameters",e);const c=[];if(1===a.length)if((0,p.cy)(a[0])){for(const n of(0,s.C)(a[0]))if(null!==n){if(!(n instanceof w.A))throw new i.D$(t,"InvalidParameter",e);c.push(n.toJSON())}}else{if(!(0,s.j)(a[0])){if(a[0]instanceof w.A)return(0,s.D)((0,o.Yq)(a[0]),t.spatialReference);if(null===a[0])return null;throw new i.D$(t,"InvalidParameter",e)}for(const n of(0,s.C)(a[0].toArray()))if(null!==n){if(!(n instanceof w.A))throw new i.D$(t,"InvalidParameter",e);c.push(n.toJSON())}}else for(const n of a)if(null!==n){if(!(n instanceof w.A))throw new i.D$(t,"InvalidParameter",e);c.push(n.toJSON())}return 0===c.length?null:(0,m.rS)(await(0,l.C)("union",[c]))})},n.functions.difference=function(t,e){return n.standardFunctionAsync(t,e,async(n,r,a)=>(a=(0,s.C)(a),(0,u.ZL)(a,t,e),null===a[0]?null:null===a[1]?(0,o.Yq)(a[0]):(0,m.rS)(await(0,l.C)("difference",[a[0].toJSON(),a[1].toJSON()]))))},n.functions.symmetricdifference=function(t,e){return n.standardFunctionAsync(t,e,async(n,r,a)=>(a=(0,s.C)(a),(0,u.ZL)(a,t,e),null===a[0]&&null===a[1]?null:null===a[0]?(0,o.Yq)(a[1]):null===a[1]?(0,o.Yq)(a[0]):(0,m.rS)(await(0,l.C)("symmetricDifference",[a[0].toJSON(),a[1].toJSON()]))))},n.functions.clip=function(t,e){return n.standardFunctionAsync(t,e,async(n,r,a)=>{if(a=(0,s.C)(a),(0,s.B)(a,2,2,t,e),!(a[1]instanceof d.A)&&null!==a[1])throw new i.D$(t,"InvalidParameter",e);if(null===a[0])return null;if(!(a[0]instanceof w.A))throw new i.D$(t,"InvalidParameter",e);return null===a[1]?null:(0,m.rS)(await(0,l.C)("clip",[a[0].toJSON(),a[1].toJSON()]))})},n.functions.cut=function(t,e){return n.standardFunctionAsync(t,e,async(n,r,a)=>{if(a=(0,s.C)(a),(0,s.B)(a,2,2,t,e),!(a[1]instanceof S.A)&&null!==a[1])throw new i.D$(t,"InvalidParameter",e);if(null===a[0])return[];if(!(a[0]instanceof w.A))throw new i.D$(t,"InvalidParameter",e);return null===a[1]?[(0,o.Yq)(a[0])]:(await(0,l.C)("cut",[a[0].toJSON(),a[1].toJSON()])).map(n=>(0,m.rS)(n))})},n.functions.area=function(t,e){return n.standardFunctionAsync(t,e,async(n,r,a)=>{if((0,s.B)(a,1,2,t,e),a=(0,s.C)(a),(0,s.m)(a[0])){const n=await a[0].sumArea(v(a[1]),null,t.abortSignal);if(t.abortSignal.aborted)throw new i.D$(t,"Cancelled",e);return n}let o=a[0];if(((0,p.cy)(o)||(0,s.j)(o))&&(o=(0,s.E)(a[0],t.spatialReference)),null===o)return 0;if(!(o instanceof w.A))throw new i.D$(t,"InvalidParameter",e);return(0,l.C)("area",[o.toJSON(),v(a[1])])})},n.functions.areageodetic=function(t,e){return n.standardFunctionAsync(t,e,async(n,r,a)=>{(0,s.B)(a,1,3,t,e);let o=(a=(0,s.C)(a))[0];((0,p.cy)(o)||(0,s.j)(o))&&(o=(0,s.E)(o,t.spatialReference));const c=v(a[1]),f=(0,u.rE)(a[2]);if((0,s.m)(o)){const n=await o.sumArea(c,f,t.abortSignal);if(t.abortSignal.aborted)throw new i.D$(t,"Cancelled",e);return n}if(null==o)return 0;if(!(0,s.h)(o))throw new i.D$(t,"InvalidParameter",e);return(0,l.C)("geodeticArea",[o.toJSON(),c,f])})},n.functions.length=function(t,e){return n.standardFunctionAsync(t,e,async(n,r,a)=>{if((0,s.B)(a,1,2,t,e),a=(0,s.C)(a),(0,s.m)(a[0])){const n=await a[0].sumLength(v(a[1]),null,t.abortSignal);if(t.abortSignal.aborted)throw new i.D$(t,"Cancelled",e);return n}let o=a[0];if(((0,p.cy)(a[0])||(0,s.j)(a[0]))&&(o=(0,s.F)(a[0],t.spatialReference)),null===o)return 0;if(!(o instanceof w.A))throw new i.D$(t,"InvalidParameter",e);return(0,l.C)("length",[o.toJSON(),v(a[1])])})},n.functions.length3d=function(t,r){return n.standardFunctionAsync(t,r,async(n,a,o)=>{if((0,s.B)(o,1,2,t,r),null===(o=(0,s.C)(o))[0])return 0;let c=o[0];if(((0,p.cy)(o[0])||(0,s.j)(o[0]))&&(c=(0,s.F)(o[0],t.spatialReference)),null===c)return 0;if(!(c instanceof w.A))throw new i.D$(t,"InvalidParameter",r);if(!0===c.hasZ){const{convertFromSpatialReferenceUnit:n,toLengthUnit:t}=await Promise.resolve().then(e.bind(e,40547)),r=(0,u.UI)(c);return n(c.spatialReference,t(o[1]),r)}return(0,l.C)("length",[c.toJSON(),v(o[1])])})},n.functions.lengthgeodetic=function(t,e){return n.standardFunctionAsync(t,e,async(n,r,a)=>{(0,s.B)(a,1,3,t,e);let o=(a=(0,s.C)(a))[0];((0,p.cy)(a[0])||(0,s.j)(a[0]))&&(o=(0,s.F)(a[0],t.spatialReference));const c=v(a[1]),f=(0,u.rE)(a[2]);if((0,s.m)(o)){const n=await o.sumLength(c,f,t.abortSignal);if(t.abortSignal.aborted)throw new i.D$(t,"Cancelled",e);return n}if(null===o)return 0;if(!(0,s.h)(o))throw new i.D$(t,"InvalidParameter",e);return(0,l.C)("geodeticLength",[o.toJSON(),c,f])})},n.functions.distance=function(t,e){return n.standardFunctionAsync(t,e,async(n,r,a)=>{a=(0,s.C)(a),(0,s.B)(a,2,3,t,e);let o=a[0];if(((0,p.cy)(a[0])||(0,s.j)(a[0]))&&(o=(0,s.G)(a[0],t.spatialReference)),!(o instanceof w.A))throw new i.D$(t,"InvalidParameter",e);let c=a[1];if(((0,p.cy)(a[1])||(0,s.j)(a[1]))&&(c=(0,s.G)(a[1],t.spatialReference)),!(c instanceof w.A))throw new i.D$(t,"InvalidParameter",e);return(0,l.C)("distance",[o.toJSON(),c.toJSON(),v(a[2])])})},n.functions.distancegeodetic=function(t,e){return n.standardFunctionAsync(t,e,async(n,r,a)=>{a=(0,s.C)(a),(0,s.B)(a,2,4,t,e);const o=a[0];if(!(o instanceof h.A))throw new i.D$(t,"InvalidParameter",e);const c=a[1];if(!(c instanceof h.A))throw new i.D$(t,"InvalidParameter",e);const f=new S.A({paths:[],spatialReference:o.spatialReference});return f.addPath([o,c]),(0,l.C)("geodeticLength",[f.toJSON(),v(a[2]),(0,u.rE)(a[3])])})},n.functions.densify=function(t,e){return n.standardFunctionAsync(t,e,async(n,r,a)=>{if(a=(0,s.C)(a),(0,s.B)(a,2,3,t,e),null===a[0])return null;if(!(a[0]instanceof w.A))throw new i.D$(t,"InvalidParameter",e);const o=(0,s.r)(a[1]);if(isNaN(o))throw new i.D$(t,"InvalidParameter",e);if(o<=0)throw new i.D$(t,"InvalidParameter",e);switch(a[0].type){case"polygon":case"polyline":case"extent":return(0,m.rS)(await(0,l.C)("densify",[a[0].toJSON(),o,v(a[2])]));default:return a[0]}})},n.functions.densifygeodetic=function(t,e){return n.standardFunctionAsync(t,e,async(n,r,a)=>{a=(0,s.C)(a),(0,s.B)(a,2,4,t,e);const o=a[0];if(null==o)return null;if(!(0,s.h)(o))throw new i.D$(t,"InvalidParameter",e);const c=(0,s.r)(a[1]);if(isNaN(c))throw new i.D$(t,"InvalidParameter",e);if(c<=0)throw new i.D$(t,"InvalidParameter",e);const f=v(a[2]),d=(0,u.rE)(a[3]);switch(o.type){case"polygon":case"polyline":case"extent":return(0,m.rS)(await(0,l.C)("geodeticDensify",[o.toJSON(),c,f,d]));default:return o}})},n.functions.generalize=function(t,e){return n.standardFunctionAsync(t,e,async(n,r,a)=>{if(a=(0,s.C)(a),(0,s.B)(a,2,4,t,e),null===a[0])return null;if(!(a[0]instanceof w.A))throw new i.D$(t,"InvalidParameter",e);const o=(0,s.r)(a[1]);if(isNaN(o))throw new i.D$(t,"InvalidParameter",e);const c=(0,s.H)((0,s.J)(a[2],!0));return(0,m.rS)(await(0,l.C)("generalize",[a[0].toJSON(),o,v(a[3]),{removeDegenerateParts:c}]))})},n.functions.buffer=function(t,e){return n.standardFunctionAsync(t,e,async(n,r,a)=>{if(a=(0,s.C)(a),(0,s.B)(a,2,3,t,e),null===a[0])return null;if(!(a[0]instanceof w.A))throw new i.D$(t,"InvalidParameter",e);const c=(0,s.r)(a[1]);if(isNaN(c))throw new i.D$(t,"InvalidParameter",e);return 0===c?(0,o.Yq)(a[0]):(0,m.rS)(await(0,l.C)("buffer",[a[0].toJSON(),c,v(a[2])]))})},n.functions.buffergeodetic=function(t,e){return n.standardFunctionAsync(t,e,async(n,r,a)=>{a=(0,s.C)(a),(0,s.B)(a,2,4,t,e);const c=a[0];if(null==c)return null;if(!(0,s.h)(c))throw new i.D$(t,"InvalidParameter",e);const f=(0,s.r)(a[1]);if(isNaN(f))throw new i.D$(t,"InvalidParameter",e);if(0===f)return(0,o.Yq)(c);const d=v(a[2]),w=(0,u.rE)(a[3]);return(0,m.rS)(await(0,l.C)("geodesicBuffer",[c.toJSON(),f,d,w]))})},n.functions.offset=function(t,e){return n.standardFunctionAsync(t,e,async(n,r,a)=>{a=(0,s.C)(a),(0,s.B)(a,2,6,t,e);const o=a[0];if(null===o)return null;if(!(o instanceof A.A||o instanceof S.A))throw new i.D$(t,"InvalidParameter",e);const c=(0,s.r)(a[1]);if(isNaN(c))throw new i.D$(t,"InvalidParameter",e);const f=a[2],d=(0,u.R$)(a[3]),w=(0,s.r)((0,s.J)(a[4],10));if(isNaN(w))throw new i.D$(t,"InvalidParameter",e);const y=(0,s.r)((0,s.J)(a[5],0));if(isNaN(y))throw new i.D$(t,"InvalidParameter",e);return(0,m.rS)(await(0,l.C)("offset",[o.toJSON(),c,v(f),d,w,y]))})},n.functions.rotate=function(t,e){return n.standardFunctionAsync(t,e,async(n,r,a)=>{if(a=(0,s.C)(a),(0,s.B)(a,2,3,t,e),null===a[0])return null;if(!(a[0]instanceof w.A))throw new i.D$(t,"InvalidParameter",e);const o=a[0]instanceof d.A?A.A.fromExtent(a[0]):a[0],c=(0,s.r)(a[1]);if(isNaN(c))throw new i.D$(t,"InvalidParameter",e);const u=(0,s.J)(a[2],null);if(null===u){const n="point"===o.type?o:o.extent?.center;return(0,m.rS)(await(0,l.C)("rotate",[o.toJSON(),c,n?.x,n?.y]))}if(u instanceof h.A)return(0,m.rS)(await(0,l.C)("rotate",[o.toJSON(),c,u.x,u.y]));throw new i.D$(t,"InvalidParameter",e)})},n.functions.centroid=function(t,e){return n.standardFunctionAsync(t,e,async(n,r,a)=>{if(a=(0,s.C)(a),(0,s.B)(a,1,2,t,e),null===a[0])return null;const o=(0,u.Hz)(a[1]);let c=a[0];if(((0,p.cy)(a[0])||(0,s.j)(a[0]))&&(c="geometric"===o?(0,s.G)(a[0],t.spatialReference):(0,s.E)(a[0],t.spatialReference),null===c))return null;if(!(c instanceof w.A))throw new i.D$(t,"InvalidParameter",e);return(0,m.rS)("geometric"===o?await(0,l.C)("centroid",[c.toJSON()]):await(0,l.C)("labelPoint",[c.toJSON()]))})},n.functions.measuretocoordinate=function(t,e){return n.standardFunctionAsync(t,e,u.Cd)},n.functions.pointtocoordinate=function(t,e){return n.standardFunctionAsync(t,e,u.kr)},n.functions.distancetocoordinate=function(t,e){return n.standardFunctionAsync(t,e,u.Bn)},n.functions.multiparttosinglepart=function(t,e){return n.standardFunctionAsync(t,e,async(n,r,a)=>{if(a=(0,s.C)(a),(0,s.B)(a,1,1,t,e),null===a[0])return null;if(!(a[0]instanceof w.A))throw new i.D$(t,"InvalidParameter",e);if(a[0]instanceof h.A)return[(0,s.D)((0,o.Yq)(a[0]),t.spatialReference)];if(a[0]instanceof d.A)return[(0,s.D)((0,o.Yq)(a[0]),t.spatialReference)];const c=(0,m.rS)(await(0,l.C)("simplify",[a[0].toJSON()]));if(c instanceof A.A){const n=[],t=[];for(let e=0;e<c.rings.length;e++)if(c.isClockwise(c.rings[e])){const t=(0,m.rS)({rings:[c.rings[e]],hasZ:!0===c.hasZ,hasM:!0===c.hasM,spatialReference:c.spatialReference.toJSON()});n.push(t)}else t.push({ring:c.rings[e],pt:c.getPoint(e,0)});for(let e=0;e<t.length;e++)for(let r=0;r<n.length;r++)if(n[r].contains(t[e].pt)){n[r].addRing(t[e].ring);break}return n}if(c instanceof S.A){const n=[];for(let t=0;t<c.paths.length;t++){const e=(0,m.rS)({paths:[c.paths[t]],hasZ:!0===c.hasZ,hasM:!0===c.hasM,spatialReference:c.spatialReference.toJSON()});n.push(e)}return n}if(a[0]instanceof y.A){const n=[],e=(0,s.D)((0,o.Yq)(a[0]),t.spatialReference);for(let t=0;t<e.points.length;t++)n.push(e.getPoint(t));return n}return null})},n.functions.isselfintersecting=function(t,e){return n.standardFunctionAsync(t,e,async(n,t,e)=>{(0,s.B)(e,1,1,n,t);let r=(e=(0,s.C)(e))[0];if(((0,p.cy)(e[0])||(0,s.j)(e[0]))&&(r=(0,s.F)(e[0],n.spatialReference)),r instanceof y.A){const n=r.points;for(let t=0;t<n.length;t++)for(let e=t+1;e<n.length;e++)if((0,f.aI)(n[t],n[e]))return!0;return!1}return(r instanceof S.A||r instanceof A.A)&&await(0,l.C)("isSelfIntersecting",[r.toJSON()])})},n.functions.issimple=function(t,e){return n.standardFunctionAsync(t,e,(n,r,a)=>{if(a=(0,s.C)(a),(0,s.B)(a,1,1,t,e),null===a[0])return!0;if(!(a[0]instanceof w.A))throw new i.D$(t,"InvalidParameter",e);return(0,l.C)("isSimple",[a[0].toJSON()])})},n.functions.simplify=function(t,e){return n.standardFunctionAsync(t,e,async(n,r,a)=>{if(a=(0,s.C)(a),(0,s.B)(a,1,1,t,e),null===a[0])return null;if(!(a[0]instanceof w.A))throw new i.D$(t,"InvalidParameter",e);return(0,m.rS)(await(0,l.C)("simplify",[a[0].toJSON()]))})},n.functions.convexhull=function(t,e){return n.standardFunctionAsync(t,e,async(n,r,a)=>{if(a=(0,s.C)(a),(0,s.B)(a,1,1,t,e),null===a[0])return null;if(!(a[0]instanceof w.A))throw new i.D$(t,"InvalidParameter",e);return(0,m.rS)(await(0,l.C)("convexHull",[a[0].toJSON()]))})},n.functions.getuser=function(t,e){return n.standardFunctionAsync(t,e,async(n,o,u)=>{(0,s.B)(u,0,2,t,e);let l=(0,s.J)(u[1],""),f=!0===l;if(l=!0===l||!1===l?"":(0,s.s)(l),0===u.length||u[0]instanceof r.A){let n;n=t.services?.portal?t.services.portal:C.A.getDefault(),u.length>0&&(n=(0,c.R)(u[0],n));const e=await O(n,l,f);if(e){const n=JSON.parse(JSON.stringify(e));for(const t of["lastLogin","created","modified"])void 0!==n[t]&&null!==n[t]&&(n[t]=new Date(n[t]));return a.A.convertObjectToArcadeDictionary(n,(0,s.K)(t))}return null}let d=null;if((0,s.m)(u[0])&&(d=u[0]),d){if(f=!1,l)return null;await d.load();const n=await d.getOwningSystemUrl();if(!n){if(!l){const n=await d.getIdentityUser();return n?a.A.convertObjectToArcadeDictionary({username:n},(0,s.K)(t)):null}return null}let e;e=t.services?.portal?t.services.portal:C.A.getDefault(),e=(0,c.R)(new r.A(n),e);const i=await O(e,l,f);if(i){const n=JSON.parse(JSON.stringify(i));for(const t of["lastLogin","created","modified"])void 0!==n[t]&&null!==n[t]&&(n[t]=new Date(n[t]));return a.A.convertObjectToArcadeDictionary(n,(0,s.K)(t))}return null}throw new i.D$(t,"InvalidParameter",e)})},n.functions.nearestcoordinate=function(t,e){return n.standardFunctionAsync(t,e,async(n,r,o)=>{if(o=(0,s.C)(o),(0,s.B)(o,2,2,t,e),!(o[0]instanceof w.A||null===o[0]))throw new i.D$(t,"InvalidParameter",e);if(!(o[1]instanceof h.A||null===o[1]))throw new i.D$(t,"InvalidParameter",e);if(null===o[0]||null===o[1])return null;const c=o[0]instanceof d.A?A.A.fromExtent(o[0]):o[0],u=await(0,l.C)("getNearestCoordinate",[c.toJSON(),o[1].toJSON(),{calculateLeftRightSide:!0}]);return null===u?null:a.A.convertObjectToArcadeDictionary({coordinate:(0,m.rS)(u.coordinate),distance:u.distance,sideOfLine:0===u.distance?"straddle":u.isRightSide?"right":"left"},(0,s.K)(t),!1,!0)})},n.functions.nearestvertex=function(t,e){return n.standardFunctionAsync(t,e,async(n,r,o)=>{if(o=(0,s.C)(o),(0,s.B)(o,2,2,t,e),!(o[0]instanceof w.A||null===o[0]))throw new i.D$(t,"InvalidParameter",e);if(!(o[1]instanceof h.A||null===o[1]))throw new i.D$(t,"InvalidParameter",e);if(null===o[0]||null===o[1])return null;const c=o[0]instanceof d.A?A.A.fromExtent(o[0]):o[0],u=await(0,l.C)("getNearestVertex",[c.toJSON(),o[1].toJSON()]);return null==u?null:a.A.convertObjectToArcadeDictionary({coordinate:(0,m.rS)(u.coordinate),distance:u.distance,sideOfLine:u.sideOfLine},(0,s.K)(t),!1,!0)})})}},71163(n,t,e){e.d(t,{C:()=>c});var r=e(29953);let a,i,o=!1;function s(){return a??=(0,r.ho)("arcadeGeometryOperatorsWorker").then(n=>{i=n,o=!0,a=void 0})}async function c(n,t){return o?i.apply("invokeGeometryOp",[n,t]):(await s(),c(n,t))}},80672(n,t,e){e.d(t,{R:()=>a});var r=e(20655);function a(n,t){return null===n?t:new r.A({url:n.field("url")})}}}]);
@@ -1,2 +0,0 @@
1
- /*! For license information please see c5f155fe114a2a05aaf2.js.LICENSE.txt */
2
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6745],{62928(e,t,i){function n(e){return"Enter"===e||" "===e}i.d(t,{i:()=>n,n:()=>a});const a=["0","1","2","3","4","5","6","7","8","9"]},67773(e,t,i){i.d(t,{a:()=>x,b:()=>s,c:()=>h,d:()=>m,g:()=>v,l:()=>r});var n=i(84439);const a="calciteInternalLabelClick",r="calciteInternalLabelConnected",s="calciteInternalLabelDisconnected",l="calcite-label",o=new WeakMap,c=new WeakMap,u=new WeakMap,d=new WeakMap,p=new Set;function h(e){if(!e)return;const t=(e=>{const{id:t}=e,i=t&&(0,n.q)(e,{selector:`${l}[for="${t}"]`});if(i)return i;const a=(0,n.c)(e,l);return!a||function(e,t){let i;const n="custom-element-ancestor-check",a=n=>{n.stopImmediatePropagation();const a=n.composedPath();i=a.slice(a.indexOf(t),a.indexOf(e))};return e.addEventListener(n,a,{once:!0}),t.dispatchEvent(new CustomEvent(n,{composed:!0,bubbles:!0})),e.removeEventListener(n,a),i.filter(i=>i!==t&&i!==e).filter(e=>e.tagName?.includes("-")).length>0}(a,e)?null:a})(e.el);if(c.has(t)&&t===e.labelEl||!t&&p.has(e))return;const i=y.bind(e);if(t){e.labelEl=t;const n=o.get(t)||[];n.push(e),o.set(t,n.sort(b)),c.has(e.labelEl)||(c.set(e.labelEl,g),e.labelEl.addEventListener(a,g)),p.delete(e),document.removeEventListener(r,u.get(e)),d.set(e,i),document.addEventListener(s,i)}else p.has(e)||(i(),document.removeEventListener(s,d.get(e)))}function m(e){if(!e)return;if(p.delete(e),document.removeEventListener(r,u.get(e)),document.removeEventListener(s,d.get(e)),u.delete(e),d.delete(e),!e.labelEl)return;const t=o.get(e.labelEl);1===t.length&&(e.labelEl.removeEventListener(a,c.get(e.labelEl)),c.delete(e.labelEl)),o.set(e.labelEl,t.filter(t=>t!==e).sort(b)),e.labelEl=null}function b(e,t){return(0,n.p)(e.el,t.el)?-1:1}function v(e){return e.label||e.labelEl?.textContent?.trim()||""}function g(e){const t=e.detail.sourceEvent.target,i=o.get(this),n=i.find(e=>e.el===t);if(i.includes(n))return;const a=i[0];a.disabled||a.onLabelClick(e)}function f(){p.has(this)&&h(this)}function y(){p.add(this);const e=u.get(this)||f.bind(this);u.set(this,e),document.addEventListener(r,e)}async function x(e){if(await e.componentOnReady(),o.has(e))return;const t=e.ownerDocument?.getElementById(e.for);t&&requestAnimationFrame(()=>{for(const e of p)if(e.el===t){h(e);break}})}},76745(e,t,i){i.r(t),i.d(t,{Input:()=>ye}),i(6501);var n=i(51391),a=i(41276),r=i(98824),s=i(84439);const l={valid:"check-circle",invalid:"exclamation-mark-triangle",idle:"information"},o=a.AH`:host{box-sizing:border-box;display:flex;block-size:auto;inline-size:100%;align-items:center;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-color-text-1);opacity:1;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;margin-block-start:var(--calcite-input-message-spacing, var(--calcite-input-message-spacing-value, var(--calcite-spacing-xxs)))}.calcite-input-message-icon{pointer-events:none;display:inline-flex;flex-shrink:0;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;margin-inline-end:var(--calcite-spacing-sm)}:host([status=invalid]) .calcite-input-message-icon{color:var(--calcite-input-message-icon-color, var(--calcite-icon-color, var(--calcite-ui-icon-color, var(--calcite-color-status-danger))))}:host([status=valid]) .calcite-input-message-icon{color:var(--calcite-input-message-icon-color, var(--calcite-icon-color, var(--calcite-ui-icon-color, var(--calcite-color-status-success))))}:host([status=idle]) .calcite-input-message-icon{color:var(--calcite-input-message-icon-color, var(--calcite-icon-color, var(--calcite-ui-icon-color, var(--calcite-color-brand))))}:host([scale=s]){font-size:var(--calcite-font-size-relative-xs);line-height:var(--calcite-font-line-height-xs)}:host([scale=m]){font-size:var(--calcite-font-size-relative-sm);line-height:var(--calcite-font-line-height-sm)}:host([scale=l]){font-size:var(--calcite-font-size-relative-base);line-height:var(--calcite-font-line-height-base)}:host([hidden]){display:none}[hidden]{display:none}`;class c extends r.WF{constructor(){super(...arguments),this.iconFlipRtl=!1,this.scale="m",this.status="idle"}static{this.properties={icon:[3,{converter:r.pf,type:String},{reflect:!0}],iconFlipRtl:[7,{},{reflect:!0,type:Boolean}],scale:[3,{},{reflect:!0}],status:[3,{},{reflect:!0}]}}static{this.styles=o}connectedCallback(){super.connectedCallback(),this.requestedIcon=(0,s.b)(l,this.icon,this.status)}willUpdate(e){(e.has("status")&&(this.hasUpdated||"idle"!==this.status)||e.has("icon"))&&(this.requestedIcon=(0,s.b)(l,this.icon,this.status))}render(){const e=this.el.hidden;return(0,r.Bq)(this.el,"calcite-hydrated-hidden",e),a.qy`${this.renderIcon(this.requestedIcon)}<slot></slot>`}renderIcon(e){if(e)return a.qy`<calcite-icon class=${(0,r.CP)("calcite-input-message-icon")} .flipRtl=${this.iconFlipRtl} .icon=${e} scale=s></calcite-icon>`}}(0,n.c)("calcite-input-message",c);var u=i(63196);const d=a.AH`:host{position:relative;display:block;inline-size:100%}.track,.bar{position:absolute;inset-block-start:0px;block-size:2px}.track{z-index:var(--calcite-z-index);inline-size:100%;overflow:hidden;background-color:var(--calcite-progress-background-color, var(--calcite-color-border-3))}.bar{z-index:var(--calcite-z-index);background-color:var(--calcite-progress-fill-color, var(--calcite-color-brand))}@media(forced-colors:active){.track{background-color:highlightText}.bar{background-color:linkText}}.indeterminate{inline-size:20%;animation:looping-progress-bar-ani calc(var(--calcite-internal-animation-timing-medium) / var(--calcite-internal-duration-factor) * 11 / var(--calcite-internal-duration-factor)) linear infinite}.indeterminate.calcite--rtl{animation-name:looping-progress-bar-ani-rtl}.reversed{animation-direction:reverse}.text{padding-inline:0px;padding-block:1rem 0px;text-align:center;font-size:var(--calcite-font-size-relative-sm);line-height:var(--calcite-font-line-height-sm);font-weight:var(--calcite-font-weight-medium);color:var(--calcite-progress-text-color, var(--calcite-color-text-2))}@keyframes looping-progress-bar-ani{0%{transform:translate3d(-100%,0,0)}50%{inline-size:40%}to{transform:translate3d(600%,0,0)}}@keyframes looping-progress-bar-ani-rtl{0%{transform:translate3d(100%,0,0)}50%{inline-size:40%}to{transform:translate3d(-600%,0,0)}}:host([hidden]){display:none}[hidden]{display:none}`,p="bar";class h extends r.WF{constructor(){super(...arguments),this.direction=(0,u.jH)(),this.reversed=!1,this.type="determinate",this.value=0}static{this.properties={label:1,reversed:[7,{},{reflect:!0,type:Boolean}],text:1,type:[3,{},{reflect:!0}],value:[9,{},{type:Number}]}}static{this.styles=d}render(){const e="determinate"===this.type,t=e?{width:`${this.value}%`}:{},i=this.direction;return a.qy`<div .ariaLabel=${this.label||this.text} .ariaValueMax=${e?"100":void 0} .ariaValueMin=${e?"0":void 0} .ariaValueNow=${e?this.value:void 0} role=progressbar><div class=${(0,r.CP)("track")}><div class=${(0,r.CP)({[p]:!0,indeterminate:"indeterminate"===this.type,[n.C.rtl]:"rtl"===i,reversed:this.reversed})} style=${(0,r.zl)(t)}></div></div>${this.text?a.qy`<div class=${(0,r.CP)("text")}>${this.text}</div>`:null}</div>`}}(0,n.c)("calcite-progress",h);var m=i(22804),b=i(25633),v=i(80966),g=i(11433),f=i(62928),y=i(67773),x=i(88959);const k=new RegExp("\\.(0+)?$"),$=new RegExp("0+$");class w{static{this.DECIMALS=100}static{this.ROUNDED=!0}static{this.SHIFT=BigInt("1"+"0".repeat(this.DECIMALS))}constructor(e){if(e instanceof w)return e;const[t,i]=function(e){const t=e.split(/[eE]/);if(1===t.length)return e;const i=+e;if(Number.isSafeInteger(i))return`${i}`;const n="-"===e.charAt(0),a=+t[1],r=t[0].split("."),s=(n?r[0].substring(1):r[0])||"",l=r[1]||"",o=a>0?`${s}${((e,t)=>{const i=t>e.length?`${e}${"0".repeat(t-e.length)}`:e;return`${i.slice(0,t)}.${i.slice(t)}`})(l,a)}`:`${((e,t)=>{const i=Math.abs(t)-e.length,n=i>0?`${"0".repeat(i)}${e}`:e;return`${n.slice(0,t)}.${n.slice(t)}`})(s,a)}${l}`;return`${n?"-":""}${"."===o.charAt(0)?"0":""}${o.replace(k,"").replace(I,"")}`}(e).split(".").concat("");this.value=BigInt(t+i.padEnd(w.DECIMALS,"0").slice(0,w.DECIMALS))+BigInt(w.ROUNDED&&i[w.DECIMALS]>="5"),this.isNegative="-"===e.charAt(0)}static{this._divRound=(e,t)=>w.fromBigInt(e/t+(w.ROUNDED?e*BigInt(2)/t%BigInt(2):BigInt(0)))}static{this.fromBigInt=e=>Object.assign(Object.create(w.prototype),{value:e,isNegative:e<BigInt(0)})}getIntegersAndDecimals(){const e=this.value.toString().replace("-","").padStart(w.DECIMALS+1,"0");return{integers:e.slice(0,-w.DECIMALS),decimals:e.slice(-w.DECIMALS).replace($,"")}}toString(){const{integers:e,decimals:t}=this.getIntegersAndDecimals();return`${this.isNegative?"-":""}${e}${t.length?"."+t:""}`}formatToParts(e){const{integers:t,decimals:i}=this.getIntegersAndDecimals(),n=e.numberFormatter.formatToParts(BigInt(t));return this.isNegative&&n.unshift({type:"minusSign",value:e.minusSign}),i.length&&(n.push({type:"decimal",value:e.decimal}),i.split("").forEach(e=>n.push({type:"fraction",value:e}))),n}format(e){const{integers:t,decimals:i}=this.getIntegersAndDecimals();return`${this.isNegative?e.minusSign:""}${e.numberFormatter.format(BigInt(t))}${i.length?`${e.decimal}${i.split("").map(t=>e.numberFormatter.format(Number(t))).join("")}`:""}`}add(e){return w.fromBigInt(this.value+new w(e).value)}subtract(e){return w.fromBigInt(this.value-new w(e).value)}multiply(e){return w._divRound(this.value*new w(e).value,w.SHIFT)}divide(e){return w._divRound(this.value*w.SHIFT,new w(e).value)}}function z(e){return!(!e||isNaN(Number(e)))}const I=/^([-0])0+(?=\d)/,E=/(?!^\.)\.$/,S=/(?!^-)-/g,V=/^-\b0\b\.?0*$/,C=/0*$/,N=new Set(["e","E","-",",",".",...f.n]);function O(e,t){if(!e)return e;const i=e.toLowerCase().indexOf("e")+1;return i?e.replace(/[eE]*$/g,"").substring(0,i).concat(e.slice(i).replace(/[eE]/g,"")).split(/[eE]/).map((e,i)=>t(1===i?e.replace(/\./g,""):e)).join("e").replace(/^e/,"1e"):t(e)}new Map(Object.entries({bg:{am:"пр.об.",pm:"сл.об."},bs:{am:"prijepodne",pm:"popodne"},ca:{am:"a. m.",pm:"p. m."},cs:{am:"dop.",pm:"odp."},es:{am:"a. m.",pm:"p. m."},"es-mx":{am:"a.m.",pm:"p.m."},"es-MX":{am:"a.m.",pm:"p.m."},fi:{am:"ap.",pm:"ip."},he:{am:"לפנה״צ",pm:"אחה״צ"},hu:{am:"de. ",pm:"du."},lt:{am:"priešpiet",pm:"popiet"},lv:{am:"priekšpusdienā",pm:"pēcpusdienā"},mk:{am:"претпл.",pm:"попл."},no:{am:"a.m.",pm:"p.m."},nl:{am:"a.m.",pm:"p.m."},"pt-pt":{am:"da manhã",pm:"da tarde"},"pt-PT":{am:"da manhã",pm:"da tarde"},ro:{am:"a.m.",pm:"p.m."},sl:{am:"dop.",pm:"pop."},sv:{am:"fm",pm:"em"},th:{am:"ก่อนเที่ยง",pm:"หลังเที่ยง"},tr:{am:"ÖÖ",pm:"ÖS"},uk:{am:"дп",pm:"пп"},vi:{am:"SA",pm:"CH"}}));const F=["arab","arabext","latn"],D=e=>F.includes(e),_=(new Intl.NumberFormat).resolvedOptions().numberingSystem,R="arab"!==_&&D(_)?_:"latn",q=new class{constructor(){this.delocalize=e=>this._numberFormatOptions?O(e,e=>this.#e(this.#t(e))):e,this.localize=e=>this._numberFormatOptions?O(e,e=>z(e.trim())?new w(e.trim()).format(this).replace(new RegExp(`[${this._actualGroup}]`,"g"),this._group):e):e}get group(){return this._group}get decimal(){return this._decimal}get minusSign(){return this._minusSign}get digits(){return this._digits}get numberFormatter(){return this._numberFormatter}get numberFormatOptions(){return this._numberFormatOptions}set numberFormatOptions(e){var t;if(e.numberingSystem=(t=e?.numberingSystem,D(t)?t:R),e.locale=e?.locale||x.q,!this._numberFormatOptions&&e.locale===x.q&&e.numberingSystem===R&&2===Object.keys(e).length||JSON.stringify(this._numberFormatOptions)===JSON.stringify(e))return;this._numberFormatOptions=e,this._numberFormatter=new Intl.NumberFormat(this._numberFormatOptions.locale,this._numberFormatOptions),this._digits=[...new Intl.NumberFormat(this._numberFormatOptions.locale,{useGrouping:!1,numberingSystem:this._numberFormatOptions.numberingSystem}).format(9876543210)].reverse();const i=new Map(this._digits.map((e,t)=>[e,t])),n=new Intl.NumberFormat(this._numberFormatOptions.locale,{numberingSystem:this._numberFormatOptions.numberingSystem}).formatToParts(-12345678.9);this._actualGroup=n.find(e=>"group"===e.type).value,this._group=0===this._actualGroup.trim().length||" "==this._actualGroup?" ":this._actualGroup,this._decimal="bs"===e.locale||"mk"===e.locale?",":n.find(e=>"decimal"===e.type).value,this._minusSign=n.find(e=>"minusSign"===e.type).value,this._getDigitIndex=e=>i.get(e)}#e(e){return e.replace(new RegExp(`[${this._minusSign}]`,"g"),"-").replace(new RegExp(`[${this._digits.join("")}]`,"g"),this._getDigitIndex)}#t(e){if(this._group!==this._decimal)return e.replace(new RegExp(`[${this._group}]`,"g"),"").replace(new RegExp(`[${this._decimal}]`,"g"),".");const t=e.lastIndexOf(this._decimal);return-1===t?e:`${e.slice(0,t).replace(new RegExp(`[${this._group}]`,"g"),"")}.${e.slice(t+1)}`}};var A=i(72080);const B="internal-label-alignment--center",M="internal-label-alignment--end",L="internal-label--container",P="internal-label-spacing--bottom",T="internal-label-spacing-inline--end",H="internal-label-spacing-inline--start",j=({alignmentCenter:e,bottomSpacingDisabled:t,labelText:i,onClick:n,required:s,spacingInlineEnd:l,spacingInlineStart:o,tooltipText:c})=>a.qy`<div class=${(0,r.CP)({[B]:e,[M]:!e,[L]:!0,[P]:!t,[T]:l,[H]:o})} @click=${n}><div class=${(0,r.CP)("internal-label--text")}>${i}${s&&a.qy`<span aria-hidden=true class=${(0,r.CP)("internal-label-required--indicator")} title=${c??a.s6}>*</span>`||""}</div><slot name=label-content></slot></div>`,U=()=>{},K=({scale:e,status:t,id:i,icon:n,message:s,ref:l})=>a.qy`<div class=${(0,r.CP)("validation-container")} ${(0,v.K)(l||U)}><calcite-input-message aria-live=polite .icon=${n} id=${i??a.s6} .scale=${e} .status=${t}>${s}</calcite-input-message></div>`;var W=i(21037),G=i(80595),J=i(298),Y=i(32352),X=i(30341);const Q=["date","datetime-local","month","number","range","time","week"],Z=["email","password","search","tel","text","url"],ee=["email","password","search","tel","text","textarea","url"];function te(e,t,i,n){const a=i.toLowerCase(),r=e[i];n&&null!=r?t.setAttribute(a,`${r}`):t.removeAttribute(a)}const ie=["text","email","search","hidden","tel","url"],ne=Object.freeze({validity:{},validationMessage:""});function ae(e,t){return e.value="file"===e.type||null==t?"":String(t),e.validity.valid}function re(e){const t={};for(const i in e)"valid"!==i&&e[i]&&(t[i]=!0);return t}const se=["calcite-input","calcite-input-number","calcite-input-text","calcite-text-area"];function le(e){return"checked"in e}const oe=e=>(0,u.aK)((t,i)=>{let n,a="",r=null,l=e.inputType;function o(e){e.defaultPrevented||(e.preventDefault(),function(e){const t=Array.from(e.elements);requestAnimationFrame(()=>{const e=t.filter(e=>e.matches("[status=invalid]")&&function(e){return"form"in e&&"name"in e&&(0,s.r)(e)}(e));for(const t of e)if(t.validationMessage){t.setFocus();break}})}(e.currentTarget))}function c(){const e=a||n?.validationMessage||"";t.el.dispatchEvent(new CustomEvent("calciteInvalid",{bubbles:!0,composed:!0})),function(e,{status:t,message:i,icon:n}){"status"in e&&(e.status=t),"validationIcon"in e&&"string"!=typeof e.validationIcon&&(e.validationIcon=n),"validationMessage"in e&&!e.validationMessage&&(e.validationMessage=i)}(t,{message:e,icon:!0,status:"invalid"});const i=(r=t.el.tagName.toLowerCase(),`${(0,X.YF)((0,X.TK)(r))}${se.includes(r)?"Input":"Change"}`);var r;t.listen(i,()=>{"status"in t&&(t.status="idle"),!("validationIcon"in t)||t.validationIcon&&!0!==t.validationIcon||(t.validationIcon=!1),"validationMessage"in t&&t.validationMessage===e&&(t.validationMessage="")},{once:!0})}function u(){const{elementInternals:e}=t;let i={},r="";n&&(n.type=l,function(e,t){const{disabled:i,required:n}=e;t.disabled=i,t.required=!!n,le(e)?t.checked=e.checked:function(e,t){return e&&function(e){const t="textarea"===e?"text":e;return Q.includes(t)||Z.includes(t)||ee.includes(t)}(t.type)}(e,t)&&function(e,t,i){i.type=e;const n=Q.includes(e),a=t;te(a,i,"min",n),te(a,i,"max",n),te(a,i,"step",n);const r=ee.includes(e),s=t;te(s,i,"minLength",r),te(s,i,"maxLength",r),te(s,i,"pattern",Z.includes(e))}(t.type,e,t)}(t,n),({validity:i,validationMessage:r}=function(e,t){if(!Array.isArray(t))return ae(e,t)?ne:{validity:re(e.validity),validationMessage:e.validationMessage};if(ie.includes(e.type))return ae(e,t.join(","))?ne:{validity:re(e.validity),validationMessage:e.validationMessage};const i={},n=[];for(const a of t)ae(e,a)||(Object.assign(i,re(e.validity)),e.validationMessage&&n.push(e.validationMessage));return{validity:i,validationMessage:n.join("; ")}}(n,d()))),a&&(i={...i,customError:!0},r=a),e.setValidity(i,r),"validity"in t&&(0,Y.e)(()=>{t.validity=e.validity})}function d(){return e.getValue?e.getValue():t.value}return l&&(n=document.createElement("input")),t.listen("luminaFormResetCallback",()=>{"status"in t&&(t.status="idle"),"validationIcon"in t&&(t.validationIcon=!1),"validationMessage"in t&&(t.validationMessage=""),le(t)&&(t.checked=t.defaultChecked),t.value=t.defaultValue}),t.listen("luminaFormAssociatedCallback",({detail:[e]})=>{e?e.addEventListener("invalid",o,{capture:!0}):r?.removeEventListener("invalid",o,{capture:!0}),r=e}),i.onConnected(()=>{t.el.addEventListener("invalid",c)}),i.onDisconnected(()=>{t.el.removeEventListener("invalid",c)}),i.onUpdate(e=>{t.hasUpdated||(t.defaultValue=t.value,le(t)&&(t.defaultChecked=t.checked)),(e.has("name")||e.has("value")||le(t)&&e.has("checked"))&&t.elementInternals.setFormValue(function(){const e=d();if(Array.isArray(e)){const i=new FormData;return e.forEach(e=>i.append(t.name,e)),i}return le(t)?t.checked?e||"on":null:e}()),u()}),{get active(){return!!t.elementInternals.form},overrideDefaultValue:e=>{t.defaultValue=e},overrideInputType:e=>{l=e,u()},requestSubmit:()=>{t.elementInternals.form?.requestSubmit()},setCustomValidity:e=>{a=e,u()}}}),ce="editing-enabled",ue="inline-child",de="number-button-item--horizontal",pe="wrapper",he="number-button-item",me="has-suffix",be="has-prefix",ve="inputValidationMessage",ge={tel:"phone",password:"lock",email:"email-address",date:"calendar",time:"clock",search:"search"},fe=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:block}:host([scale=s]) input,:host([scale=s]) .prefix,:host([scale=s]) .suffix{block-size:1.5rem;font-size:var(--calcite-font-size-relative-sm);line-height:var(--calcite-font-line-height-sm)}:host([scale=s]) input{padding-inline:var(--calcite-spacing-sm)}:host([scale=s]) .has-prefix input{padding-inline-start:var(--calcite-spacing-xxs)}:host([scale=s]) .prefix{padding-inline:var(--calcite-spacing-sm) var(--calcite-spacing-xxs)}:host([scale=s]) .has-suffix input{padding-inline-end:var(--calcite-spacing-xxs)}:host([scale=s]) .suffix{padding-inline:var(--calcite-spacing-xxs) var(--calcite-spacing-sm)}:host([scale=s]) input[type=file]{min-block-size:1.5rem}:host([scale=s]) .number-button-wrapper,:host([scale=s]) .action-wrapper{block-size:1.5rem}:host([scale=s]) .clear-button{min-block-size:1.5rem;min-inline-size:1.5rem}:host([scale=m]) input,:host([scale=m]) .prefix,:host([scale=m]) .suffix{block-size:2rem;font-size:var(--calcite-font-size-relative-base);line-height:var(--calcite-font-line-height-base)}:host([scale=m]) input{padding-inline:var(--calcite-spacing-md)}:host([scale=m]) .has-prefix input{padding-inline-start:var(--calcite-spacing-xs)}:host([scale=m]) .prefix{padding-inline:var(--calcite-spacing-md) var(--calcite-spacing-xs)}:host([scale=m]) .has-suffix input{padding-inline-end:var(--calcite-spacing-xs)}:host([scale=m]) .suffix{padding-inline:var(--calcite-spacing-xs) var(--calcite-spacing-md)}:host([scale=m]) input[type=file]{min-block-size:2rem}:host([scale=m]) .number-button-wrapper,:host([scale=m]) .action-wrapper{block-size:2rem}:host([scale=m]) .clear-button{min-block-size:2rem;min-inline-size:2rem}:host([scale=l]) input,:host([scale=l]) .prefix,:host([scale=l]) .suffix{block-size:2.75rem;font-size:var(--calcite-font-size-relative-md);line-height:var(--calcite-font-line-height-md)}:host([scale=l]) input{padding-inline:var(--calcite-spacing-lg)}:host([scale=l]) .has-prefix input{padding-inline-start:var(--calcite-spacing-sm)}:host([scale=l]) .prefix{padding-inline:var(--calcite-spacing-lg) var(--calcite-spacing-sm)}:host([scale=l]) .has-suffix input{padding-inline-end:var(--calcite-spacing-sm)}:host([scale=l]) .suffix{padding-inline:var(--calcite-spacing-sm) var(--calcite-spacing-lg)}:host([scale=l]) input[type=file]{min-block-size:2.75rem}:host([scale=l]) .number-button-wrapper,:host([scale=l]) .action-wrapper{block-size:2.75rem}:host([scale=l]) .clear-button{min-block-size:2.75rem;min-inline-size:2.75rem}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}input{position:relative;margin:0;box-sizing:border-box;display:flex;max-block-size:100%;inline-size:100%;max-inline-size:100%;flex:1 1 0%;text-overflow:ellipsis;border-width:1px;border-style:solid;font-family:inherit;font-weight:var(--calcite-font-weight-normal);border-color:var(--calcite-input-border-color, var(--calcite-color-border-input));background-color:var(--calcite-input-background-color, var(--calcite-color-foreground-1));color:var(--calcite-input-text-color, var(--calcite-color-text-1));transition:var(--calcite-animation-timing),block-size 0,outline-offset 0s;-webkit-appearance:none}input:placeholder-shown{text-overflow:ellipsis}input{border-start-start-radius:var(--calcite-input-corner-radius, var(--calcite-corner-radius-sharp));border-start-end-radius:var(--calcite-input-corner-radius, var(--calcite-corner-radius-sharp));border-end-start-radius:var(--calcite-input-corner-radius, var(--calcite-corner-radius-sharp));border-end-end-radius:var(--calcite-input-corner-radius, var(--calcite-corner-radius-sharp))}.has-prefix input{border-start-start-radius:0;border-end-start-radius:0}:host(:not([status=invalid])) .has-prefix input{border-inline-start-width:0}:host(:not([status=invalid])) .has-suffix input{border-inline-end-width:0}.has-suffix input,.element-wrapper:has(.clear-button) input,:host([number-button-type=vertical][type=number]) input,:host([number-button-type=horizontal]) .has-suffix .suffix,:host([number-button-type=vertical][type=number]) .has-suffix .suffix,:host([number-button-type=vertical][type=number]) .clear-button,:host([number-button-type=horizontal][type=number]) .clear-button{border-start-end-radius:0;border-end-end-radius:0}:host([number-button-type=horizontal]) input{border-start-start-radius:0;border-start-end-radius:0;border-end-start-radius:0;border-end-end-radius:0}.has-prefix .prefix:first-child,:host([number-button-type=horizontal]) .number-button-item[data-adjustment=down]{border-start-start-radius:var(--calcite-input-corner-radius, var(--calcite-corner-radius-sharp));border-end-start-radius:var(--calcite-input-corner-radius, var(--calcite-corner-radius-sharp))}.has-suffix .suffix,:host([number-button-type=vertical][type=number][read-only]) .has-suffix .suffix,:host([clearable]) .clear-button,:host([number-button-type=horizontal]) .number-button-item[data-adjustment=up]{border-end-end-radius:var(--calcite-input-corner-radius, var(--calcite-corner-radius-sharp));border-start-end-radius:var(--calcite-input-corner-radius, var(--calcite-corner-radius-sharp))}:host([clearable]) .has-suffix .clear-button{border-end-end-radius:0;border-start-end-radius:0}:host([number-button-type=vertical]) .number-button-item[data-adjustment=down]{border-block-start-width:0px;border-end-end-radius:var(--calcite-input-corner-radius, var(--calcite-corner-radius-sharp))}:host([number-button-type=vertical]) .number-button-item[data-adjustment=up]{border-start-end-radius:var(--calcite-input-corner-radius, var(--calcite-corner-radius-sharp))}input[type=search]::-webkit-search-decoration{-webkit-appearance:none}input:focus{border-color:var(--calcite-color-brand);color:var(--calcite-input-text-color, var(--calcite-color-text-1))}input[readonly]{font-weight:var(--calcite-font-weight-medium);background-color:var(--calcite-input-background-color, var(--calcite-color-background))}input[readonly]:focus{color:var(--calcite-input-text-color, var(--calcite-color-text-1))}:host([read-only]) .prefix,:host([read-only]) .suffix{background-color:var(--calcite-input-background-color, var(--calcite-color-background))}input{outline-color:transparent}input:focus{outline:var(--calcite-border-width-md) solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(calc(-1 * var(--calcite-spacing-base)) * calc(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}:host([status=invalid]) input{border-color:var(--calcite-color-status-danger)}:host([status=invalid]) input:focus{outline:var(--calcite-border-width-md) solid var(--calcite-color-status-danger);outline-offset:calc(calc(-1 * var(--calcite-spacing-base)) * calc(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}:host([scale=s]) .icon{inset-inline-start:.5rem}:host([scale=m]) .icon{inset-inline-start:.75rem}:host([scale=l]) .icon{inset-inline-start:1rem}:host([icon][scale=s]) input{padding-inline-start:2rem}:host([icon][scale=m]) input{padding-inline-start:2.5rem}:host([icon][scale=l]) input{padding-inline-start:3.5rem}.element-wrapper{position:relative;order:3;display:inline-flex;flex:1 1 0%;align-items:center;isolation:isolate}.icon{pointer-events:none;position:absolute;display:block;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;color:var(--calcite-input-icon-color, var(--calcite-color-text-3));z-index:var(--calcite-z-index)}input[type=text]::-ms-clear,input[type=text]::-ms-reveal{display:none;block-size:0px;inline-size:0px}input[type=search]::-webkit-search-decoration,input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-results-button,input[type=search]::-webkit-search-results-decoration,input[type=date]::-webkit-clear-button,input[type=time]::-webkit-clear-button{display:none}.clear-button{pointer-events:initial;order:4;margin:0;box-sizing:border-box;display:flex;min-block-size:100%;cursor:pointer;align-items:center;justify-content:center;align-self:stretch;border-width:1px;border-style:solid;outline-color:transparent;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;border-color:var(--calcite-input-border-color, var(--calcite-color-border-input));background-color:var(--calcite-input-actions-background-color, var(--calcite-color-foreground-1));border-inline-start-width:0px}.clear-button calcite-icon{transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;color:var(--calcite-input-actions-icon-color, var(--calcite-color-text-3))}.clear-button:hover{background-color:var(--calcite-input-actions-background-color-hover, var(--calcite-color-foreground-2))}.clear-button:hover calcite-icon{color:var(--calcite-input-actions-icon-color-hover, var(--calcite-color-text-1))}.clear-button:active{background-color:var(--calcite-input-actions-background-color-press, var(--calcite-color-foreground-3))}.clear-button:active calcite-icon{color:var(--calcite-input-actions-icon-color-press, var(--calcite-color-text-1))}.clear-button:focus{outline:var(--calcite-border-width-md) solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(calc(-1 * var(--calcite-spacing-base)) * calc(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}.clear-button:disabled{opacity:var(--calcite-opacity-disabled)}.has-suffix .clear-button{border-inline-end-width:0}.loader{inset-block-start:1px;inset-inline:1px;pointer-events:none;position:absolute;display:block;--calcite-progress-background-color: var(--calcite-input-loading-background-color);--calcite-progress-fill-color: var(--calcite-input-loading-fill-color)}.action-wrapper{order:7;display:flex}.prefix,.suffix{box-sizing:border-box;display:flex;block-size:auto;min-block-size:100%;-webkit-user-select:none;user-select:none;align-content:center;align-items:center;overflow-wrap:break-word;border-width:1px;border-style:solid;line-height:1;font-weight:var(--calcite-font-weight-regular);border-color:var(--calcite-input-border-color, var(--calcite-color-border-input))}.prefix{order:2;border-inline-end-width:0px;inline-size:var(--calcite-input-prefix-size, auto);background-color:var(--calcite-input-background-color, var(--calcite-color-foreground-1));color:var(--calcite-input-prefix-text-color, var(--calcite-color-text-2))}.suffix{order:5;border-inline-start-width:0px;inline-size:var(--calcite-input-suffix-size, auto);background-color:var(--calcite-input-background-color, var(--calcite-color-foreground-1));color:var(--calcite-input-suffix-text-color, var(--calcite-color-text-2))}:host([alignment=start]) input{text-align:start}:host([alignment=end]) input{text-align:end}input[type=number]{-moz-appearance:textfield}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;-moz-appearance:textfield;margin:0}.number-button-wrapper{pointer-events:none;order:6;box-sizing:border-box;display:flex;flex-direction:column;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out}:host([number-button-type=vertical]) .wrapper{flex-direction:row;display:flex}:host([number-button-type=vertical]) input{order:2}:host([number-button-type=horizontal]) .calcite--rtl .number-button-item[data-adjustment=down] calcite-icon{transform:rotate(-90deg)}:host([number-button-type=horizontal]) .calcite--rtl .number-button-item[data-adjustment=up] calcite-icon{transform:rotate(-90deg)}.number-button-item.number-button-item--horizontal{border-color:var(--calcite-input-border-color, var(--calcite-color-border-input));order:1;max-block-size:100%;min-block-size:100%;align-self:stretch;border-width:1px;border-style:solid}.number-button-item.number-button-item--horizontal[data-adjustment=down] calcite-icon,.number-button-item.number-button-item--horizontal[data-adjustment=up] calcite-icon{transform:rotate(90deg)}.number-button-item.number-button-item--horizontal[data-adjustment=down]{border-inline-end-width:0px}.number-button-item.number-button-item--horizontal[data-adjustment=up]{border-inline-start-width:0px;order:5}.number-button-item{max-block-size:50%;min-block-size:50%;pointer-events:initial;margin:0;box-sizing:border-box;display:flex;cursor:pointer;align-items:center;align-self:center;border-width:1px;border-style:solid;background-color:var(--calcite-color-foreground-1);padding-block:0px;padding-inline:.5rem;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;border-color:var(--calcite-input-border-color, var(--calcite-color-border-input));background-color:var(--calcite-input-actions-background-color, var(--calcite-color-foreground-1));border-inline-start-width:0px}.number-button-item calcite-icon{pointer-events:none;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;color:var(--calcite-input-actions-icon-color, var(--calcite-color-text-3))}.number-button-item:hover{background-color:var(--calcite-input-actions-background-color-hover, var(--calcite-color-foreground-2))}.number-button-item:hover calcite-icon{color:var(--calcite-input-actions-icon-color-hover, var(--calcite-color-text-1))}.number-button-item:active{background-color:var(--calcite-input-actions-background-color-press, var(--calcite-color-foreground-3))}.number-button-item:active calcite-icon{color:var(--calcite-input-actions-icon-color-press, var(--calcite-color-text-1))}.number-button-item:disabled{pointer-events:none}.wrapper{position:relative;display:flex;flex-direction:row;align-items:center;border-radius:var(--calcite-input-corner-radius, var(--calcite-corner-radius-sharp));box-shadow:var(--calcite-input-shadow, var(--calcite-shadow-none))}input[type=date]::-webkit-input-placeholder{visibility:hidden!important}:host([type=color]) input{padding:.25rem}:host([type=file]) input{cursor:pointer;border-width:1px;border-style:dashed;background-color:var(--calcite-color-foreground-1);text-align:center;border-color:var(--calcite-input-border-color, var(--calcite-color-border-input));block-size:initial}:host([type=file][scale=s]) input{padding-block:1px;padding-inline:.5rem}:host([type=file][scale=m]) input{padding-block:.25rem;padding-inline:.75rem}:host([type=file][scale=l]) input{padding-block:.5rem;padding-inline:1rem}:host(.no-bottom-border) input{border-block-end-width:0px}:host(.border-top-color-one) input{border-block-start-color:var(--calcite-color-border-1)}input.inline-child{background-color:transparent;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out}input.inline-child .editing-enabled{background-color:inherit}input.inline-child:not(.editing-enabled){display:flex;cursor:pointer;text-overflow:ellipsis;border-color:transparent;padding-inline-start:0}:host([type=datetime-local]) .element-wrapper{inline-size:100%}:host([type=datetime-local]) .element-wrapper input{display:inline-block;min-inline-size:0}.internal-label-alignment--center{align-items:center}.internal-label-alignment--end{align-items:end}.internal-label--container{display:flex;justify-content:space-between;color:var(--calcite-color-text-1)}.internal-label-required--indicator{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-color-status-danger);padding-inline:var(--calcite-spacing-base)}.internal-label-required--indicator:hover{cursor:help}.internal-label--text{line-height:1}:host([scale=s]) .internal-label-spacing--bottom{margin-block-end:var(--calcite-spacing-xxs)}:host([scale=s]) .internal-label-spacing-inline--end{margin-inline-end:var(--calcite-spacing-sm)}:host([scale=s]) .internal-label-spacing-inline--start{margin-inline-start:var(--calcite-spacing-sm)}:host([scale=s]) .internal-label--text{font-size:var(--calcite-font-size--2)}:host([scale=m]) .internal-label-spacing--bottom{margin-block-end:var(--calcite-spacing-sm)}:host([scale=m]) .internal-label-spacing-inline--end{margin-inline-end:var(--calcite-spacing-sm)}:host([scale=m]) .internal-label-spacing-inline--start{margin-inline-start:var(--calcite-spacing-sm)}:host([scale=m]) .internal-label--text{font-size:var(--calcite-font-size--1)}:host([scale=l]) .internal-label-spacing--bottom{margin-block-end:var(--calcite-spacing-sm)}:host([scale=l]) .internal-label-spacing-inline--end{margin-inline-end:var(--calcite-spacing-md)}:host([scale=l]) .internal-label-spacing-inline--start{margin-inline-start:var(--calcite-spacing-md)}:host([scale=l]) .internal-label--text{font-size:var(--calcite-font-size-0)}.validation-container{display:flex;flex-direction:column;align-items:flex-start;align-self:stretch}:host([scale=m]) .validation-container,:host([scale=l]) .validation-container{padding-block-start:.5rem}:host([scale=s]) .validation-container{padding-block-start:.25rem}::slotted(input[slot=hidden-form-input]){margin:0!important;opacity:0!important;outline:none!important;padding:0!important;position:absolute!important;inset:0!important;transform:none!important;-webkit-appearance:none!important;z-index:-1!important}:host([hidden]){display:none}[hidden]{display:none}::placeholder{font-weight:var(--calcite-font-weight-normal);color:var(--calcite-input-placeholder-text-color, var(--calcite-color-text-3))}`;class ye extends r.WF{constructor(){super(),this.actionWrapperRef=(0,v._)(),this.attributeWatch=(0,u.oW)(["autofocus","enterkeyhint","inputmode","spellcheck"],this.handleGlobalAttributesChanged),this.childRef=(0,v._)(),this.childNumberRef=(0,v._)(),this.direction=(0,u.jH)(),this.formSupport=oe({inputType:"text"})(this),this.inputWrapperRef=(0,v._)(),this.previousValueOrigin="initial",this.userChangedValue=!1,this._value="",this.messages=(0,W.u)({blocking:!0}),this.focusSetter=(0,G.u)()(this),this.interactiveContainer=(0,J.u)(this),this.slottedActionElDisabledInternally=!1,this.alignment="start",this.clearable=!1,this.disabled=!1,this.editingEnabled=!1,this.groupSeparator=!1,this.iconFlipRtl=!1,this.loading=!1,this.localeFormat=!1,this.multiple=!1,this.numberButtonType="vertical",this.readOnly=!1,this.required=!1,this.scale="m",this.status="idle",this.type="text",this.calciteInputChange=(0,g.c)({cancelable:!1}),this.calciteInputInput=(0,g.c)(),this.calciteInternalInputBlur=(0,g.c)({cancelable:!1}),this.calciteInternalInputFocus=(0,g.c)({cancelable:!1}),this.listen("click",this.clickHandler),this.listen("keydown",this.keyDownHandler)}static{this.properties={displayedValue:[16,{},{state:!0}],slottedActionElDisabledInternally:[16,{},{state:!0}],accept:1,alignment:[3,{},{reflect:!0}],autocomplete:1,clearable:[7,{},{reflect:!0,type:Boolean}],disabled:[7,{},{reflect:!0,type:Boolean}],editingEnabled:[7,{},{reflect:!0,type:Boolean}],files:[0,{},{attribute:!1}],form:[3,{},{reflect:!0}],groupSeparator:[7,{},{reflect:!0,type:Boolean}],icon:[3,{converter:r.pf,type:String},{reflect:!0}],iconFlipRtl:[7,{},{reflect:!0,type:Boolean}],label:1,labelText:1,loading:[7,{},{reflect:!0,type:Boolean}],localeFormat:[5,{},{type:Boolean}],max:[11,{},{reflect:!0,type:Number}],maxLength:[11,{},{reflect:!0,type:Number}],messageOverrides:[0,{},{attribute:!1}],min:[11,{},{reflect:!0,type:Number}],minLength:[11,{},{reflect:!0,type:Number}],multiple:[5,{},{type:Boolean}],name:[3,{},{reflect:!0}],numberButtonType:[3,{},{reflect:!0}],numberingSystem:[3,{},{reflect:!0}],pattern:1,placeholder:1,prefixText:1,readOnly:[7,{},{reflect:!0,type:Boolean}],required:[7,{},{reflect:!0,type:Boolean}],scale:[3,{},{reflect:!0}],status:[3,{},{reflect:!0}],step:[3,{},{reflect:!0}],suffixText:1,type:[3,{},{reflect:!0}],validationIcon:[3,{converter:r.pf,type:String},{reflect:!0}],validationMessage:1,validity:[32,{},{readOnly:!0,attribute:!1}],value:1}}static{this.formAssociated=!0}static{this.styles=fe}get isClearable(){return(this.clearable||"search"===this.type)&&this.value?.length>0}get value(){return this._value}set value(e){const t=this._value;e!==t&&(this._value=e,this.valueWatcher(e,t),e&&""===this._value&&this.setValue({origin:"reset",value:t}))}async selectText(){const e="number"===this.type?this.childNumberRef:this.childRef;e.value?.select()}async setFocus(e){return this.focusSetter(()=>"number"===this.type?this.childNumberRef.value:this.childRef.value,e)}connectedCallback(){super.connectedCallback(),this.inlineEditableEl=this.el.closest("calcite-inline-editable"),this.inlineEditableEl&&(this.editingEnabled=this.inlineEditableEl.editingEnabled||!1),(0,y.c)(this)}async load(){this.maxString=this.max?.toString(),this.minString=this.min?.toString(),this.requestedIcon=(0,s.b)(ge,this.icon,this.type),this.setPreviousEmittedValue(this.value),this.setPreviousValue(this.value),"number"===this.type&&("Infinity"===this.value||"-Infinity"===this.value?(this.displayedValue=this.value,this.previousEmittedValue=this.value):(this.warnAboutInvalidNumberValue(this.value),this.setValue({origin:"connected",value:z(this.value)?this.value:""})))}willUpdate(e){e.has("max")&&(this.maxString=this.max?.toString()||null),e.has("min")&&(this.minString=this.min?.toString()||null),(e.has("icon")||e.has("type")&&(this.hasUpdated||"text"!==this.type))&&(this.requestedIcon=(0,s.b)(ge,this.icon,this.type)),e.has("readOnly")&&this.stopNudging(),e.has("type")&&(this.hasUpdated||"text"!==this.type)&&this.formSupport.overrideInputType(this.type)}disconnectedCallback(){super.disconnectedCallback(),(0,y.d)(this),this.stopNudging()}stopNudging(){window.clearInterval(this.nudgeNumberValueIntervalId)}handleGlobalAttributesChanged(){this.requestUpdate()}valueWatcher(e,t){if(!this.userChangedValue){if("number"===this.type&&("Infinity"===e||"-Infinity"===e))return this.displayedValue=e,void(this.previousEmittedValue=e);this.setValue({origin:"direct",previousValue:t,value:null==e||""==e?"":"number"===this.type?z(e)?e:this.previousValue||"":e}),this.warnAboutInvalidNumberValue(e)}this.userChangedValue=!1}keyDownHandler(e){this.readOnly||this.disabled||e.defaultPrevented||(this.isClearable&&"Escape"===e.key&&(this.clearInputValue(e),e.preventDefault()),"Enter"===e.key&&this.formSupport.active&&(e.preventDefault(),this.formSupport.requestSubmit()))}onLabelClick(){this.setFocus()}incrementOrDecrementNumberValue(e,t,i,n){const{value:a}=this;if("Infinity"===a||"-Infinity"===a)return;const r="up"===e?1:-1,s="any"===this.step?1:Math.abs(this.step||1),l=new w(""!==a?a:"0").add(""+s*r),o="number"==typeof i&&!isNaN(i)&&l.subtract(`${i}`).isNegative?`${i}`:"number"!=typeof t||isNaN(t)||l.subtract(`${t}`).isNegative?l.toString():`${t}`;this.setValue({committing:!0,nativeEvent:n,origin:"user",value:o})}clearInputValue(e){this.setValue({committing:!0,nativeEvent:e,origin:"user",value:""})}emitChangeIfUserModified(){"user"===this.previousValueOrigin&&this.value!==this.previousEmittedValue&&(this.calciteInputChange.emit(),this.setPreviousEmittedValue(this.value))}inputBlurHandler(){this.stopNudging(),this.calciteInternalInputBlur.emit(),this.emitChangeIfUserModified()}clickHandler(e){if(this.disabled)return;const t=e.composedPath();t.includes(this.inputWrapperRef.value)&&!t.includes(this.actionWrapperRef.value)&&this.setFocus()}inputFocusHandler(){this.calciteInternalInputFocus.emit()}inputInputHandler(e){this.disabled||this.readOnly||("file"===this.type&&(this.files=this.childRef.value.files),this.setValue({nativeEvent:e,origin:"user",value:e.target.value}))}inputKeyDownHandler(e){this.disabled||this.readOnly||"Enter"===e.key&&this.emitChangeIfUserModified()}inputNumberInputHandler(e){if(this.disabled||this.readOnly)return;if("Infinity"===this.value||"-Infinity"===this.value)return;const t=e.target.value;q.numberFormatOptions={locale:this.messages._lang,numberingSystem:this.numberingSystem,useGrouping:this.groupSeparator};const i=q.delocalize(t);var n;"insertFromPaste"===e.inputType?(z(i)||e.preventDefault(),this.setValue({nativeEvent:e,origin:"user",value:(n=i,n&&function(e){return f.n.some(t=>e.includes(t))}(n)?O(n,e=>{let t=!1;const i=e.split("").filter((e,i)=>e.match(/\./g)&&!t?(t=!0,!0):!(!e.match(/-/g)||0!==i)||f.n.includes(e)).join("");return z(i)?new w(i).toString():""}):"")}),this.childNumberRef.value.value=this.displayedValue):this.setValue({nativeEvent:e,origin:"user",value:i})}inputNumberKeyDownHandler(e){if("number"!==this.type||this.disabled||this.readOnly)return;if("Infinity"===this.value||"-Infinity"===this.value)return e.preventDefault(),void("Backspace"!==e.key&&"Delete"!==e.key||this.clearInputValue(e));if("ArrowUp"===e.key)return e.preventDefault(),void this.nudgeNumberValue("up",e);if("ArrowDown"===e.key)return void this.nudgeNumberValue("down",e);const t=[...f.n,"ArrowLeft","ArrowRight","Backspace","Delete","Enter","Escape","Tab"];if(e.altKey||e.ctrlKey||e.metaKey)return;const i=e.shiftKey&&"Tab"===e.key;if(t.includes(e.key)||i)"Enter"===e.key&&this.emitChangeIfUserModified();else{if(q.numberFormatOptions={locale:this.messages._lang,numberingSystem:this.numberingSystem,useGrouping:this.groupSeparator},e.key===q.decimal){if(!this.value&&!this.childNumberRef.value.value)return;if(this.value&&-1===this.childNumberRef.value.value.indexOf(q.decimal))return}if(/[eE]/.test(e.key)){if(!this.value&&!this.childNumberRef.value.value)return;if(this.value&&!/[eE]/.test(this.childNumberRef.value.value))return}if("-"===e.key){if(!this.value&&!this.childNumberRef.value.value)return;if(this.value&&this.childNumberRef.value.value.split("-").length<=2)return}e.preventDefault()}}nudgeNumberValue(e,t){if(t instanceof KeyboardEvent&&t.repeat||"number"!==this.type)return;const i=this.maxString?parseFloat(this.maxString):null,n=this.minString?parseFloat(this.minString):null;this.incrementOrDecrementNumberValue(e,i,n,t),this.nudgeNumberValueIntervalId&&this.stopNudging();let a=!0;this.nudgeNumberValueIntervalId=window.setInterval(()=>{a?a=!1:this.incrementOrDecrementNumberValue(e,i,n,t)},150)}numberButtonPointerUpAndOutHandler(){this.stopNudging()}numberButtonPointerDownHandler(e){if(!(0,s.j)(e))return;e.preventDefault();const t=e.target.dataset.adjustment;this.disabled||this.nudgeNumberValue(t,e)}setInputValue(e){const t="number"===this.type?this.childNumberRef:this.childRef;t.value&&(t.value.value=e)}setPreviousEmittedValue(e){this.previousEmittedValue=this.normalizeValue(e)}normalizeValue(e){return"number"===this.type?z(e)?e:"":e}setPreviousValue(e){this.previousValue=this.normalizeValue(e)}setValue({committing:e=!1,nativeEvent:t,origin:i,previousValue:n,value:a}){if(this.setPreviousValue(n??this.value),this.previousValueOrigin=i,"number"===this.type){q.numberFormatOptions={locale:this.messages._lang,numberingSystem:this.numberingSystem,useGrouping:this.groupSeparator,signDisplay:"never"};const e=this.previousValue?.length>a.length||this.value?.length>a.length,t="."===a.charAt(a.length-1),n=t&&e?a:(r=a,O(Array.from(r).filter(e=>N.has(e)).join(""),e=>{const t=e.replace(S,"").replace(E,"").replace(I,"$1");return z(t)?V.test(t)?t:function(e){const t=e.split(".")[1],i=new w(e).toString(),[n,a]=i.split(".");return t&&a!==t?`${n}.${t}`:i}(t):e})),s=a&&!n?z(this.previousValue)?this.previousValue:"":n;let l=q.localize(s);"connected"===i||t||(l=function(e,t,i){const n=t.split(".")[1];if(n){const a=n.match(C)[0];if(a&&i.delocalize(e).length!==t.length&&-1===n.indexOf("e")){const t=i.decimal;return(e=e.includes(t)?e:`${e}${t}`).padEnd(e.length+a.length,i.localize("0"))}}return e}(l,s,q)),this.displayedValue=t&&e?`${l}${q.decimal}`:l,this.userChangedValue="user"===i&&this.value!==s,this.value=["-","."].includes(s)?"":s}else this.userChangedValue="user"===i&&this.value!==a,this.value=a;var r;"direct"===i&&(this.setInputValue(a),this.previousEmittedValue=a),t&&(this.calciteInputInput.emit().defaultPrevented?(this.value=this.previousValue,this.displayedValue="number"===this.type?q.localize(this.previousValue):this.previousValue):e&&this.emitChangeIfUserModified())}inputKeyUpHandler(){this.stopNudging()}warnAboutInvalidNumberValue(e){"number"===this.type&&e&&!z(e)&&console.warn(`The specified value "${e}" cannot be parsed, or is out of range.`)}render(){const e=this.direction,t=a.qy`<div class=${(0,r.CP)("loader")}><calcite-progress .label=${this.messages.loading} type=indeterminate></calcite-progress></div>`,i=a.qy`<button .ariaLabel=${this.messages.clear} class=${(0,r.CP)("clear-button")} .disabled=${this.disabled||this.readOnly} @click=${this.clearInputValue} tabindex=-1 title=${this.messages.clear??a.s6} type=button><calcite-icon .icon=${"x"} .scale=${(0,A.g)(this.scale)}></calcite-icon></button>`,s=a.qy`<calcite-icon class=${(0,r.CP)("icon")} .flipRtl=${this.iconFlipRtl} .icon=${this.requestedIcon} .scale=${(0,A.g)(this.scale)}></calcite-icon>`,l="horizontal"===this.numberButtonType,o=a.qy`<button aria-hidden=true class=${(0,r.CP)({[he]:!0,[de]:l})} data-adjustment=${"up"} data-testid=number-button-up .disabled=${this.disabled||this.readOnly} @pointerdown=${this.numberButtonPointerDownHandler} @pointerout=${this.numberButtonPointerUpAndOutHandler} @pointerup=${this.numberButtonPointerUpAndOutHandler} tabindex=-1 type=button><calcite-icon .icon=${"chevron-up"} .scale=${(0,A.g)(this.scale)}></calcite-icon></button>`,c=a.qy`<button aria-hidden=true class=${(0,r.CP)({[he]:!0,[de]:l})} data-adjustment=${"down"} data-testid=number-button-down .disabled=${this.disabled||this.readOnly} @pointerdown=${this.numberButtonPointerDownHandler} @pointerout=${this.numberButtonPointerUpAndOutHandler} @pointerup=${this.numberButtonPointerUpAndOutHandler} tabindex=-1 type=button><calcite-icon .icon=${"chevron-down"} .scale=${(0,A.g)(this.scale)}></calcite-icon></button>`,u=a.qy`<div class=${(0,r.CP)("number-button-wrapper")}>${o}${c}</div>`,d=a.qy`<div class=${(0,r.CP)("prefix")}>${this.prefixText}</div>`,p=a.qy`<div class=${(0,r.CP)("suffix")}>${this.suffixText}</div>`,h=this.el.autofocus,g=this.el.enterKeyHint,f=this.el.inputMode,x="number"===this.type?(0,b.D)("localized-input",a.qy`<input accept=${this.accept??a.s6} aria-errormessage=${ve} .ariaInvalid=${"invalid"===this.status} .ariaLabel=${(0,y.g)(this)} autocomplete=${this.autocomplete??a.s6} .autofocus=${h} value=${this.defaultValue??a.s6} .disabled=${!!this.disabled||null} enterkeyhint=${g??a.s6} inputmode=${f??a.s6} maxlength=${this.maxLength??a.s6} minlength=${this.minLength??a.s6} .multiple=${this.multiple} name=${a.s6} @blur=${this.inputBlurHandler} @focus=${this.inputFocusHandler} @input=${this.inputNumberInputHandler} @keydown=${this.inputNumberKeyDownHandler} @keyup=${this.inputKeyUpHandler} pattern=${this.pattern??a.s6} placeholder=${(this.placeholder||"")??a.s6} .readOnly=${this.readOnly} .required=${this.required} type=text .value=${(0,m.V)(this.displayedValue??"")} ${(0,v.K)(this.childNumberRef)}>`):null,k="number"!==this.type?a.qy`<input accept=${this.accept??a.s6} aria-errormessage=${ve} .ariaInvalid=${"invalid"===this.status} .ariaLabel=${(0,y.g)(this)} autocomplete=${this.autocomplete??a.s6} .autofocus=${h} class=${(0,r.CP)({[ce]:this.editingEnabled,[ue]:!!this.inlineEditableEl})} value=${this.defaultValue??a.s6} .disabled=${!!this.disabled||null} enterkeyhint=${g??a.s6} inputmode=${f??a.s6} max=${this.maxString??a.s6} maxlength=${this.maxLength??a.s6} min=${this.minString??a.s6} minlength=${this.minLength??a.s6} .multiple=${this.multiple} name=${this.name??a.s6} @blur=${this.inputBlurHandler} @focus=${this.inputFocusHandler} @input=${this.inputInputHandler} @keydown=${this.inputKeyDownHandler} @keyup=${this.inputKeyUpHandler} pattern=${this.pattern??a.s6} placeholder=${(this.placeholder||"")??a.s6} .readOnly=${this.readOnly} .required=${!!this.required||null} spellcheck=${this.el.spellcheck??a.s6} step=${this.step??a.s6} tabindex=${(this.disabled||this.inlineEditableEl&&!this.editingEnabled?-1:null)??a.s6} type=${this.type??a.s6} .value=${(0,m.V)(this.value??"")} ${(0,v.K)(this.childRef)}>`:null;return this.interactiveContainer({disabled:this.disabled,children:a.qy`${this.labelText&&j({labelText:this.labelText,onClick:this.onLabelClick,required:this.required,tooltipText:this.messages.required})||""}<div class=${(0,r.CP)({[pe]:!0,[n.C.rtl]:"rtl"===e,[me]:this.suffixText,[be]:this.prefixText})} ${(0,v.K)(this.inputWrapperRef)}>${"number"!==this.type||"horizontal"!==this.numberButtonType||this.readOnly?null:c}${this.prefixText?d:null}<div class=${(0,r.CP)("element-wrapper")}>${x}${k}${this.isClearable?i:null}${this.requestedIcon?s:null}${this.loading?t:null}</div><div class=${(0,r.CP)("action-wrapper")} ${(0,v.K)(this.actionWrapperRef)}><slot name=${"action"}></slot></div>${"number"!==this.type||"vertical"!==this.numberButtonType||this.readOnly?null:u}${this.suffixText?p:null}${"number"!==this.type||"horizontal"!==this.numberButtonType||this.readOnly?null:o}</div>${this.validationMessage&&"invalid"===this.status?K({icon:this.validationIcon,id:ve,message:this.validationMessage,scale:this.scale,status:this.status}):null}`})}}(0,n.c)("calcite-input",ye)},25633(e,t,i){i.d(t,{D:()=>s});var n=i(33377),a=i(63179),r=i(40171);const s=(0,a.u$)(class extends a.WL{constructor(){super(...arguments),this.key=n.s6}render(e,t){return this.key=e,t}update(e,[t,i]){return t!==this.key&&((0,r.mY)(e),this.key=t),i}})}}]);