@arcgis/core 5.1.0-next.53 → 5.1.0-next.55

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 (477) hide show
  1. package/analysis/VolumeMeasurement/volumeMeasurementConfiguration.js +1 -1
  2. package/applications/Components/SketchTooltipControls.d.ts +3 -2
  3. package/applications/Components/SketchTooltipControls.js +1 -1
  4. package/applications/Components/navigationDuration.d.ts +15 -0
  5. package/applications/Components/navigationDuration.js +2 -0
  6. package/assets/esri/core/workers/RemoteClient.js +1 -1
  7. package/assets/esri/core/workers/chunks/05bc675c029ed311427f.js +1 -0
  8. package/assets/esri/core/workers/chunks/05d25a98c54679233902.js +1 -0
  9. package/assets/esri/core/workers/chunks/0b4a2361b9f9a6c0b8a7.js +1 -0
  10. package/assets/esri/core/workers/chunks/0e88e61d89f89994c4bf.js +1 -0
  11. package/assets/esri/core/workers/chunks/0f2ab57e4eb722b3b0c0.js +1 -0
  12. package/assets/esri/core/workers/chunks/{f4d31d96681b649ddc95.js → 0ff12fe9e358100668d9.js} +1 -1
  13. package/assets/esri/core/workers/chunks/1613123918e9b0f7cfdb.js +1 -0
  14. package/assets/esri/core/workers/chunks/1a198c9e17f7a058669e.js +1 -0
  15. package/assets/esri/core/workers/chunks/1f91280032aa42b1585b.js +1 -0
  16. package/assets/esri/core/workers/chunks/2327b368673a974dee8b.js +1 -0
  17. package/assets/esri/core/workers/chunks/23eb204d3cb818adea32.js +1 -0
  18. package/assets/esri/core/workers/chunks/254898b41cabe313b6ce.js +1 -0
  19. package/assets/esri/core/workers/chunks/26cafd20c8d03c274389.js +1 -0
  20. package/assets/esri/core/workers/chunks/{a69f1879735a031f62e9.js → 2a2d5f9ea42cb2eee9c6.js} +1 -1
  21. package/assets/esri/core/workers/chunks/2bc6edeb3156d241677b.js +1 -0
  22. package/assets/esri/core/workers/chunks/{d587b7842091affdaac3.js → 3158a3487d3e8a61b680.js} +1 -1
  23. package/assets/esri/core/workers/chunks/34acecd7a314fed12335.js +1 -0
  24. package/assets/esri/core/workers/chunks/{07e791530677f7e70f32.js → 3a2ecb883fdb5c598544.js} +2 -2
  25. package/assets/esri/core/workers/chunks/{cdeb6aec578a1c07d663.js → 3cb0f020f9bfc6653c5d.js} +1 -1
  26. package/assets/esri/core/workers/chunks/3e0752a81a7247c567ab.js +1 -0
  27. package/assets/esri/core/workers/chunks/3ef740d25dc17bef11b2.js +1 -0
  28. package/assets/esri/core/workers/chunks/42e084704dea6e4135b6.js +1 -0
  29. package/assets/esri/core/workers/chunks/{5b3bb636e3bec625e515.js → 4301cb9670fa7c907460.js} +1 -1
  30. package/assets/esri/core/workers/chunks/457bbf27e9bc18132464.js +1 -0
  31. package/assets/esri/core/workers/chunks/45eddf3918973fa8d751.js +1 -0
  32. package/assets/esri/core/workers/chunks/48eca6f51112ba80bd3b.js +1 -0
  33. package/assets/esri/core/workers/chunks/4a6186001323b47c23a4.js +1 -0
  34. package/assets/esri/core/workers/chunks/4b3622fc355fd2fd8678.js +1 -0
  35. package/assets/esri/core/workers/chunks/4e7bb224bde9e5039263.js +1 -0
  36. package/assets/esri/core/workers/chunks/4f847a426973bd350c11.js +1 -0
  37. package/assets/esri/core/workers/chunks/{193775b3b7de8f5dc578.js → 4fb718174c6e07d752e0.js} +1 -1
  38. package/assets/esri/core/workers/chunks/5143f74f1fe7533a6069.js +1 -0
  39. package/assets/esri/core/workers/chunks/{36425d29aaa5852cb41d.js → 522bc1d79dbe957301e4.js} +1 -1
  40. package/assets/esri/core/workers/chunks/52dbfd7519555028a8af.js +1 -0
  41. package/assets/esri/core/workers/chunks/55214e1d9f3d98fa7ed9.js +1 -0
  42. package/assets/esri/core/workers/chunks/56bce3a6701f8549606b.js +1 -0
  43. package/assets/esri/core/workers/chunks/572fcd33ae3648ed4f9c.js +1 -0
  44. package/assets/esri/core/workers/chunks/576a1784e93c5406e657.js +1 -0
  45. package/assets/esri/core/workers/chunks/59289867cce97da74e39.js +1 -0
  46. package/assets/esri/core/workers/chunks/{fdf8fe0f50a9ae548c16.js → 5a1d975b3e9e6b7eff67.js} +1 -1
  47. package/assets/esri/core/workers/chunks/5a83ea967ecde01d5622.js +1 -0
  48. package/assets/esri/core/workers/chunks/5a9620cb66c8e64e4668.js +1 -0
  49. package/assets/esri/core/workers/chunks/5aff2d6ae0d2a2d92ecc.js +1 -0
  50. package/assets/esri/core/workers/chunks/5eb9fdb076488de9cd83.js +1 -0
  51. package/assets/esri/core/workers/chunks/66fc3c4d6c54eee231b9.js +1 -0
  52. package/assets/esri/core/workers/chunks/{de359f89e03da18999fc.js → 691d0a60354b6458b9de.js} +1 -1
  53. package/assets/esri/core/workers/chunks/69644b8a6ce340ca1159.js +1 -0
  54. package/assets/esri/core/workers/chunks/6ab8ed12d162d79a8c55.js +1 -0
  55. package/assets/esri/core/workers/chunks/{d44217de4c73475f9c66.js → 73a045061e69a22b6869.js} +1 -1
  56. package/assets/esri/core/workers/chunks/76064c2c801da55cd844.js +1 -0
  57. package/assets/esri/core/workers/chunks/770880ad43f252962017.js +1 -0
  58. package/assets/esri/core/workers/chunks/78cb6b9ab32abdd1d530.js +1 -0
  59. package/assets/esri/core/workers/chunks/7b6e3cc086d13da770fa.js +1 -0
  60. package/assets/esri/core/workers/chunks/7ed2aa1092c0a2c839c0.js +1 -0
  61. package/assets/esri/core/workers/chunks/83113a9e284701d053b5.js +1 -0
  62. package/assets/esri/core/workers/chunks/8418ad9ad7b6481ebe82.js +1 -0
  63. package/assets/esri/core/workers/chunks/85c72d9fa533552a6e8a.js +1 -0
  64. package/assets/esri/core/workers/chunks/861a7d0e665add901e11.js +1 -0
  65. package/assets/esri/core/workers/chunks/87077f4cbca13e030411.js +1 -0
  66. package/assets/esri/core/workers/chunks/{199f70c0373f6008a545.js → 8df0c154bb0d79a905c0.js} +1 -1
  67. package/assets/esri/core/workers/chunks/9066f095f16448c0a04e.js +1 -0
  68. package/assets/esri/core/workers/chunks/91718795fc4ca6516ac7.js +1 -0
  69. package/assets/esri/core/workers/chunks/929b26999321519824b9.js +1 -0
  70. package/assets/esri/core/workers/chunks/9321f5ec514805307219.js +1 -0
  71. package/assets/esri/core/workers/chunks/932a0b39d85a76377d52.js +1 -0
  72. package/assets/esri/core/workers/chunks/93d1118f7a909d123b40.js +1 -0
  73. package/assets/esri/core/workers/chunks/94f80c46ccf5e19038b8.js +1 -0
  74. package/assets/esri/core/workers/chunks/979c2f52b6d6e1e8241b.js +1 -0
  75. package/assets/esri/core/workers/chunks/{617328964d480d4a3a45.js → 9806cc96414065ae0afe.js} +1 -1
  76. package/assets/esri/core/workers/chunks/{e6220c1fa887e21ffbbd.js → 9a235c92f21df2c17aa8.js} +1 -1
  77. package/assets/esri/core/workers/chunks/{f7fb121169b7e5a5adbc.js → 9d11e7972bc298cb94ce.js} +1 -1
  78. package/assets/esri/core/workers/chunks/a11f05ddd8314b648f76.js +1 -0
  79. package/assets/esri/core/workers/chunks/{15a45e26964c2eb381a6.js → a256edc8337e462f80f0.js} +1 -1
  80. package/assets/esri/core/workers/chunks/a41fabf8b2cf15b7d0c9.js +1 -0
  81. package/assets/esri/core/workers/chunks/{987dc23fdc0a8c7150b9.js → a5bf2718c02a0e645013.js} +1 -1
  82. package/assets/esri/core/workers/chunks/a7a553e245ba011d259f.js +1 -0
  83. package/assets/esri/core/workers/chunks/a8e111a5cfd6151d5dbb.js +1 -0
  84. package/assets/esri/core/workers/chunks/a9eb90b901e64e67b7a3.js +1 -0
  85. package/assets/esri/core/workers/chunks/{21decfc1e477fb769204.js → aa7aaeae31ddb259e55e.js} +1 -1
  86. package/assets/esri/core/workers/chunks/ad1946c084219bb678a0.js +1 -0
  87. package/assets/esri/core/workers/chunks/aed45f7e7eee154a21b8.js +1 -0
  88. package/assets/esri/core/workers/chunks/b056b4c79bcd542dd1d2.js +1 -0
  89. package/assets/esri/core/workers/chunks/b1a0a7cdaf50f98adb3e.js +1 -0
  90. package/assets/esri/core/workers/chunks/b20f4c82d0b44fdb4670.js +1 -0
  91. package/assets/esri/core/workers/chunks/b39b4db86a1049f0b901.js +1 -0
  92. package/assets/esri/core/workers/chunks/{1a1e57267306c07e5bdb.js → b3f0600729227b458a75.js} +1 -1
  93. package/assets/esri/core/workers/chunks/bacc343a79828e456de7.js +1 -0
  94. package/assets/esri/core/workers/chunks/bb047157f09471ecea53.js +1 -0
  95. package/assets/esri/core/workers/chunks/bc3b22dc08c147b8d425.js +1 -0
  96. package/assets/esri/core/workers/chunks/{29c91b5c9ddcea85f39a.js → c250799c131aa4ed2c35.js} +1 -1
  97. package/assets/esri/core/workers/chunks/{a495e60996a36ce19a32.js → c4da2ca1dee0c44051d0.js} +1 -1
  98. package/assets/esri/core/workers/chunks/c6149e0ac1c103e03baf.js +1 -0
  99. package/assets/esri/core/workers/chunks/c69fefe9d51ac7c2b0a6.js +1 -0
  100. package/assets/esri/core/workers/chunks/c86b15f6a18880f921cd.js +1 -0
  101. package/assets/esri/core/workers/chunks/c91d39e8e14be3d8bdf5.js +1 -0
  102. package/assets/esri/core/workers/chunks/c9c5e6996f36ec4b1558.js +1 -0
  103. package/assets/esri/core/workers/chunks/cd391415b8b8320e12e4.js +1 -0
  104. package/assets/esri/core/workers/chunks/d3b3e8c6d7096bc59489.js +1 -0
  105. package/assets/esri/core/workers/chunks/{81b830f0d620587966ca.js → d53c6fc10425adc2c0cf.js} +1 -1
  106. package/assets/esri/core/workers/chunks/d9444dd0d40aa8332b28.js +1 -0
  107. package/assets/esri/core/workers/chunks/da0a61f73d45ea9e71fc.js +1 -0
  108. package/assets/esri/core/workers/chunks/da2a10e72a315c3c1f82.js +1 -0
  109. package/assets/esri/core/workers/chunks/{9ae90a4b281d4103e8bb.js → dc07dc1cd30edc0c4193.js} +1 -1
  110. package/assets/esri/core/workers/chunks/de79645e559a2d1ffa67.js +1 -0
  111. package/assets/esri/core/workers/chunks/e2e3c39876bbe019c57a.js +1 -0
  112. package/assets/esri/core/workers/chunks/e543bb228f3f9d937d43.js +1 -0
  113. package/assets/esri/core/workers/chunks/e7e565e7c0ce1464c6b0.js +1 -0
  114. package/assets/esri/core/workers/chunks/e8a23ae30d586e3a973c.js +1 -0
  115. package/assets/esri/core/workers/chunks/{3c9e1ec94bbcbf494916.js → ea068f75397c3b3337ec.js} +3 -3
  116. package/assets/esri/core/workers/chunks/ec21311584e4fb13e510.js +1 -0
  117. package/assets/esri/core/workers/chunks/{c09bc36347e8eb9fff00.js → f09446b9ff937a84d6d3.js} +1 -1
  118. package/assets/esri/core/workers/chunks/{354b309c8225336bc1e5.js → f6d047358d14328f3622.js} +1 -1
  119. package/assets/esri/core/workers/chunks/f8ee1a99580a7da42cde.js +1 -0
  120. package/assets/esri/core/workers/chunks/{c6a0e770c1a89d3b5913.js → fb9a889ec9fd23739a14.js} +1 -1
  121. package/assets/esri/core/workers/chunks/{b2a67fe89f6505498bc3.js → fe1b67ab7748a3aef231.js} +1 -1
  122. package/assets/esri/core/workers/chunks/fe92f54e45fd21ccd75f.js +1 -0
  123. package/assets/esri/core/workers/chunks/ff0cb1eec14d34214f12.js +1 -0
  124. package/assets/esri/rest/knowledgeGraph/wasmInterface/arcgis-knowledge-client-core-simd.wasm +0 -0
  125. package/assets/esri/rest/knowledgeGraph/wasmInterface/arcgis-knowledge-client-core.wasm +0 -0
  126. package/assets/esri/themes/base/_Ui.scss +3 -3
  127. package/assets/esri/themes/base/_mixins.scss +2 -2
  128. package/assets/esri/themes/base/widgets/_Attachments.scss +3 -3
  129. package/assets/esri/themes/base/widgets/_BasemapGallery.scss +8 -8
  130. package/assets/esri/themes/base/widgets/_BasemapToggle.scss +1 -1
  131. package/assets/esri/themes/base/widgets/_BuildingExplorer.scss +1 -1
  132. package/assets/esri/themes/base/widgets/_BuildingLevelPicker.scss +4 -4
  133. package/assets/esri/themes/base/widgets/_BuildingPhasePicker.scss +1 -1
  134. package/assets/esri/themes/base/widgets/_CoordinateConversion.scss +2 -2
  135. package/assets/esri/themes/base/widgets/_DatePicker.scss +4 -4
  136. package/assets/esri/themes/base/widgets/_Daylight.scss +1 -1
  137. package/assets/esri/themes/base/widgets/_Editor.scss +2 -2
  138. package/assets/esri/themes/base/widgets/_ElevationProfile.scss +2 -2
  139. package/assets/esri/themes/base/widgets/_FeatureMedia.scss +1 -1
  140. package/assets/esri/themes/base/widgets/_FeatureTable.scss +1 -1
  141. package/assets/esri/themes/base/widgets/_FloorFilter.scss +2 -2
  142. package/assets/esri/themes/base/widgets/_Grid.scss +1 -1
  143. package/assets/esri/themes/base/widgets/_GridControls.scss +1 -1
  144. package/assets/esri/themes/base/widgets/_ItemList.scss +1 -1
  145. package/assets/esri/themes/base/widgets/_Legend.scss +1 -1
  146. package/assets/esri/themes/base/widgets/_LineOfSight.scss +1 -1
  147. package/assets/esri/themes/base/widgets/_OrientedImageryViewer.scss +1 -1
  148. package/assets/esri/themes/base/widgets/_OrientedImageryViewerNavigationUI.scss +3 -3
  149. package/assets/esri/themes/base/widgets/_Popup.scss +1 -1
  150. package/assets/esri/themes/base/widgets/_Print.scss +3 -3
  151. package/assets/esri/themes/base/widgets/_Sketch.scss +1 -1
  152. package/assets/esri/themes/base/widgets/_Slice.scss +1 -1
  153. package/assets/esri/themes/base/widgets/_Slider.scss +3 -3
  154. package/assets/esri/themes/base/widgets/_SnappingControls.scss +2 -2
  155. package/assets/esri/themes/base/widgets/_Spinner.scss +2 -2
  156. package/assets/esri/themes/base/widgets/_Swipe.scss +2 -2
  157. package/assets/esri/themes/base/widgets/_Tooltip.scss +2 -2
  158. package/assets/esri/themes/base/widgets/_UtilityNetworkTrace.scss +1 -1
  159. package/assets/esri/themes/base/widgets/_VideoPlayer.scss +2 -2
  160. package/assets/esri/themes/base/widgets/_Widget.scss +8 -8
  161. package/assets/esri/themes/dark/main.css +1 -1
  162. package/assets/esri/themes/light/main.css +1 -1
  163. package/assets/esri/themes/light/view.css +1 -1
  164. package/chunks/CutFillComposition.glsl.js +10 -4
  165. package/chunks/OITBlend.glsl.js +2 -2
  166. package/chunks/RibbonLine.glsl.js +75 -63
  167. package/chunks/ShadowHighlight.glsl.js +1 -1
  168. package/chunks/Viewshed.glsl.js +2 -2
  169. package/chunks/Water.glsl.js +24 -16
  170. package/chunks/arcgis-knowledge-client-core-simd.js +1 -1
  171. package/chunks/arcgis-knowledge-client-core.js +1 -1
  172. package/config.js +1 -1
  173. package/core/libs/gl-matrix-2/math/vec3.js +1 -1
  174. package/geometry/SpatialReference.js +1 -1
  175. package/geometry/operators/offsetOperator.d.ts +1 -1
  176. package/geometry/operators/proximityOperator.d.ts +1 -1
  177. package/geometry/operators/support/apiConverter.js +1 -1
  178. package/geometry/support/aaBoundingBox.js +1 -1
  179. package/geometry/support/curves/bezierCurveUtils.js +1 -1
  180. package/geometry/support/curves/circularArcUtils.js +1 -1
  181. package/geometry/support/curves/ellipticArc4Utils.js +1 -1
  182. package/geometry/support/curves/ellipticArc7Utils.js +1 -1
  183. package/geometry/support/geometryUtils.js +1 -1
  184. package/geometry/support/zscale.js +1 -1
  185. package/interfaces.d.ts +7 -0
  186. package/kernel.js +1 -1
  187. package/layers/LinkChartLayer.js +1 -1
  188. package/layers/OrientedImageryLayer.d.ts +0 -152
  189. package/layers/OrientedImageryLayer.js +1 -1
  190. package/layers/support/layerUtils.js +1 -1
  191. package/package.json +1 -1
  192. package/portal/schemas/definitions.js +1 -1
  193. package/rest/knowledgeGraph/wasmInterface/knowledgeWasmAccess.js +1 -1
  194. package/support/revision.js +1 -1
  195. package/support/tests/serviceMockDependencies.js +1 -1
  196. package/views/2d/engine/flow/FlowContainer.js +1 -1
  197. package/views/2d/engine/flow/FlowStrategy.js +1 -1
  198. package/views/2d/engine/flow/FlowView2D.js +1 -1
  199. package/views/2d/engine/flow/dataUtils.js +1 -1
  200. package/views/2d/engine/flow/particleConstants.js +2 -0
  201. package/views/2d/engine/flow/styles/Imagery.js +1 -1
  202. package/views/2d/engine/flow/styles/Particles.js +1 -1
  203. package/views/2d/engine/flow/styles/Stack.js +1 -1
  204. package/views/2d/engine/flow/styles/Streamlines.js +1 -1
  205. package/views/2d/engine/flow/utils.js +1 -1
  206. package/views/2d/engine/imagery/RasterVFContainer.js +1 -1
  207. package/views/2d/engine/webgl/Painter.js +1 -1
  208. package/views/2d/engine/webgl/Profiler.js +1 -1
  209. package/views/2d/engine/webgl/WGLContainer.js +1 -1
  210. package/views/2d/engine/webgl/mesh/templates/shapingUtils.js +1 -1
  211. package/views/2d/engine/webgl/shaderGraph/techniques/TechniqueRegistry.js +1 -1
  212. package/views/2d/engine/webgl/shaderGraph/techniques/TestTechnique.js +1 -1
  213. package/views/2d/engine/webgl/shaderGraph/techniques/TextureStatisticsTechnique.js +1 -1
  214. package/views/2d/engine/webgl/shaderGraph/techniques/fill/FillTechnique.js +1 -1
  215. package/views/2d/engine/webgl/shaderGraph/techniques/fill/GradientFillTechnique.js +1 -1
  216. package/views/2d/engine/webgl/shaderGraph/techniques/fill/OutlineFillTechnique.js +1 -1
  217. package/views/2d/engine/webgl/shaderGraph/techniques/fill/PatternFillTechnique.js +1 -1
  218. package/views/2d/engine/webgl/shaderGraph/techniques/fill/PatternOutlineFillTechnique.js +1 -1
  219. package/views/2d/engine/webgl/shaderGraph/techniques/flow/FlowTechnique.js +2 -0
  220. package/views/2d/engine/webgl/shaderGraph/techniques/grid/GridTechnique.js +1 -1
  221. package/views/2d/engine/webgl/shaderGraph/techniques/heatmap/HeatmapTechnique.js +1 -1
  222. package/views/2d/engine/webgl/shaderGraph/techniques/labels/LabelMeshWriter.js +1 -1
  223. package/views/2d/engine/webgl/shaderGraph/techniques/labels/LabelTechnique.js +1 -1
  224. package/views/2d/engine/webgl/shaderGraph/techniques/line/GradientStrokeTechnique.js +1 -1
  225. package/views/2d/engine/webgl/shaderGraph/techniques/line/LineTechnique.js +1 -1
  226. package/views/2d/engine/webgl/shaderGraph/techniques/line/TexturedLineTechnique.js +1 -1
  227. package/views/2d/engine/webgl/shaderGraph/techniques/magnifier/MagnifierTechnique.js +1 -1
  228. package/views/2d/engine/webgl/shaderGraph/techniques/markers/MarkerTechnique.js +1 -1
  229. package/views/2d/engine/webgl/shaderGraph/techniques/mesh/MeshWriterRegistry.js +1 -1
  230. package/views/2d/engine/webgl/shaderGraph/techniques/opacity/OpacityTechnique.js +1 -1
  231. package/views/2d/engine/webgl/shaderGraph/techniques/overlay/OverlayTechnique.js +1 -1
  232. package/views/2d/engine/webgl/shaderGraph/techniques/pieChart/PieChartTechnique.js +1 -1
  233. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/flow/FlowImageryShader.js +2 -0
  234. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/flow/FlowParticlesShader.js +2 -0
  235. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/flow/FlowStreamlinesShader.js +2 -0
  236. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/flow/FlowUtils.js +2 -0
  237. package/views/2d/engine/webgl/shaderGraph/techniques/text/TextTechnique.js +1 -1
  238. package/views/2d/engine/webgl/shaderGraph/techniques/tile/TileDebugInfoTechnique.js +1 -1
  239. package/views/2d/engine/webgl/shaderGraph/techniques/tile/TileStencilTechnique.js +1 -1
  240. package/views/2d/engine/webgl/shaderGraph/techniques/vectorTiles/VTLTechniqueBackground.js +1 -1
  241. package/views/2d/engine/webgl/shaderGraph/techniques/vectorTiles/VTLTechniqueCircle.js +1 -1
  242. package/views/2d/engine/webgl/shaderGraph/techniques/vectorTiles/VTLTechniqueFill.js +1 -1
  243. package/views/2d/engine/webgl/shaderGraph/techniques/vectorTiles/VTLTechniqueLine.js +1 -1
  244. package/views/2d/engine/webgl/shaderGraph/techniques/vectorTiles/VTLTechniqueSymbol.js +1 -1
  245. package/views/2d/engine/webgl/shaderGraph/techniques/videoScreenRenderer/VideoScreenTechnique.js +1 -1
  246. package/views/2d/engine/webgl/shaderGraph/typed/TypedShaderProgram.js +1 -1
  247. package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
  248. package/views/2d/interactive/editingTools/draw/DrawGraphicTool2D.js +1 -1
  249. package/views/2d/layers/features/FeatureContainer.js +1 -1
  250. package/views/2d/layers/features/RenderState.js +1 -1
  251. package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementCutFillVisualization.js +1 -1
  252. package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementShiftTool.js +1 -1
  253. package/views/3d/interactive/manipulators/ShiftManipulator.js +1 -1
  254. package/views/3d/layers/GaussianSplatLayerView3D.js +1 -1
  255. package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
  256. package/views/3d/layers/PointCloudLayerView3D.js +1 -1
  257. package/views/3d/layers/graphics/Graphics3DLineSymbolLayer.js +1 -1
  258. package/views/3d/layers/graphics/Graphics3DPolygonFillSymbolLayer.js +1 -1
  259. package/views/3d/layers/graphics/lineUtils.js +1 -1
  260. package/views/3d/layers/i3s/PointCloudRenderer.js +1 -1
  261. package/views/3d/layers/support/Tiles3DBVH.js +1 -1
  262. package/views/3d/layers/support/Tiles3DMeshIntersectionHandler.js +1 -1
  263. package/views/3d/support/gaussianSplatting/GaussianSplatDataStore.js +1 -1
  264. package/views/3d/support/gaussianSplatting/GaussianSplatFadeHelper.js +1 -1
  265. package/views/3d/support/gaussianSplatting/GaussianSplatIntersectionHandler.js +1 -1
  266. package/views/3d/support/gaussianSplatting/GaussianTile.js +1 -1
  267. package/views/3d/support/orientedBoundingBox.js +1 -1
  268. package/views/3d/terrain/TerrainRenderer.js +1 -1
  269. package/views/3d/webgl-engine/collections/Component/ComponentObjectElevationAgnosticBVH.js +1 -1
  270. package/views/3d/webgl-engine/collections/Component/ComponentObjectFixedBVH.js +1 -1
  271. package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterial.js +1 -1
  272. package/views/3d/webgl-engine/collections/Component/Material/ComponentTechnique.js +1 -1
  273. package/views/3d/webgl-engine/core/shaderLibrary/ShaderOutput.js +1 -1
  274. package/views/3d/webgl-engine/core/shaderLibrary/shading/ScreenSpaceReflections.glsl.js +1 -1
  275. package/views/3d/webgl-engine/core/shaderLibrary/shading/WaterColor.glsl.js +1 -1
  276. package/views/3d/webgl-engine/core/shaderTechnique/ShaderTechniqueRepository.js +1 -1
  277. package/views/3d/webgl-engine/effects/highlight/ShadowHighlight.js +1 -1
  278. package/views/3d/webgl-engine/lib/BindParameters.js +1 -1
  279. package/views/3d/webgl-engine/lib/CutFillComputationRenderNode.js +1 -1
  280. package/views/3d/webgl-engine/lib/CutFillVisualizationRenderNode.js +1 -1
  281. package/views/3d/webgl-engine/lib/GLMaterial.js +1 -1
  282. package/views/3d/webgl-engine/lib/GLMaterialLoader.js +2 -0
  283. package/views/3d/webgl-engine/lib/GLMaterialParameters.js +1 -1
  284. package/views/3d/webgl-engine/lib/GLMaterialRepository.js +1 -1
  285. package/views/3d/webgl-engine/lib/PathGeometryData.js +1 -1
  286. package/views/3d/webgl-engine/lib/RayIntersections.js +1 -1
  287. package/views/3d/webgl-engine/lib/RenderContext.js +1 -1
  288. package/views/3d/webgl-engine/lib/Renderer.js +1 -1
  289. package/views/3d/webgl-engine/lib/ReprojectionUniforms.js +2 -0
  290. package/views/3d/webgl-engine/lib/ScreenSpaceReflectionsUniforms.js +2 -0
  291. package/views/3d/webgl-engine/lib/TriangleIntersectionData.js +1 -1
  292. package/views/3d/webgl-engine/lib/Viewshed.js +1 -1
  293. package/views/3d/webgl-engine/lib/lodRendering/LodComponentData.js +1 -1
  294. package/views/3d/webgl-engine/lib/lodRendering/LodRenderer.js +1 -1
  295. package/views/3d/webgl-engine/materials/DefaultMaterial.js +1 -1
  296. package/views/3d/webgl-engine/materials/PathMaterial.js +1 -1
  297. package/views/3d/webgl-engine/materials/PathTechnique.js +1 -1
  298. package/views/3d/webgl-engine/materials/PolygonOffset.js +1 -1
  299. package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
  300. package/views/3d/webgl-engine/materials/ShadedColorMaterial.js +1 -1
  301. package/views/3d/webgl-engine/materials/TriangleMaterial.js +1 -1
  302. package/views/3d/webgl-engine/materials/Water.glsl.js +1 -1
  303. package/views/3d/webgl-engine/materials/WaterMaterial.js +1 -1
  304. package/views/3d/webgl-engine/materials/WaterTechnique.js +1 -1
  305. package/views/3d/webgl-engine/materials/renderers/VaoRenderer.js +1 -1
  306. package/views/3d/webgl-engine/shaders/CheckerBoardTechnique.js +1 -1
  307. package/views/3d/webgl-engine/shaders/ColorMaterialTechnique.js +1 -1
  308. package/views/3d/webgl-engine/shaders/DefaultMaterialTechnique.js +1 -1
  309. package/views/3d/webgl-engine/shaders/ImageMaterialTechnique.js +1 -1
  310. package/views/3d/webgl-engine/shaders/PatternTechnique.js +1 -1
  311. package/views/3d/webgl-engine/shaders/RibbonLineTechnique.js +1 -1
  312. package/views/3d/webgl-engine/shaders/RibbonLineTechniqueConfiguration.js +1 -1
  313. package/views/3d/webgl-engine/shaders/ShadedColorMaterialTechnique.js +1 -1
  314. package/views/3d/webgl-engine/shaders/Viewshed.glsl.js +1 -1
  315. package/views/3d/webgl.js +1 -1
  316. package/views/draw/DrawTool.js +1 -1
  317. package/views/draw/plugins/ShapePlugin.js +1 -1
  318. package/views/draw/plugins/TangentArcSegmentPlugin.js +2 -0
  319. package/views/draw/support/managers/GlobalStateManager.js +1 -1
  320. package/views/draw/support/types.d.ts +9 -0
  321. package/views/interactive/SegmentLabels.js +1 -1
  322. package/views/webgl/AllocationTracer.js +1 -1
  323. package/views/webgl/RenderingContext.js +1 -1
  324. package/views/webgl/checkWebGLError.js +1 -1
  325. package/widgets/Editor/components/Settings.js +1 -1
  326. package/widgets/Features/FeaturesViewModel.js +1 -1
  327. package/widgets/Features.js +1 -1
  328. package/widgets/Search/SearchViewModel.js +1 -1
  329. package/widgets/Search/support/layerSearchUtils.js +1 -1
  330. package/widgets/Search/support/locatorUtils.js +1 -1
  331. package/widgets/Sketch/support/PluginManager.js +1 -1
  332. package/widgets/Sketch.js +1 -1
  333. package/widgets/support/SketchTooltipControls.js +1 -1
  334. package/assets/esri/core/workers/chunks/001492854799c35b53bb.js +0 -1
  335. package/assets/esri/core/workers/chunks/004f991251f09b36fb09.js +0 -1
  336. package/assets/esri/core/workers/chunks/01dd849a2d335e9f3e16.js +0 -1
  337. package/assets/esri/core/workers/chunks/027d733a99f50cadcf22.js +0 -1
  338. package/assets/esri/core/workers/chunks/03d85a706669aaf24d49.js +0 -1
  339. package/assets/esri/core/workers/chunks/0450133e81bce4b48b84.js +0 -1
  340. package/assets/esri/core/workers/chunks/085778ecd39f46324a6b.js +0 -1
  341. package/assets/esri/core/workers/chunks/08dce0019b52042b01fa.js +0 -1
  342. package/assets/esri/core/workers/chunks/0d8294982853308225da.js +0 -1
  343. package/assets/esri/core/workers/chunks/156aecac067213642aae.js +0 -1
  344. package/assets/esri/core/workers/chunks/184e9147f7a2f0ae5915.js +0 -1
  345. package/assets/esri/core/workers/chunks/19f59a2a97c33ff92650.js +0 -1
  346. package/assets/esri/core/workers/chunks/1cce2f8837ad765acf44.js +0 -1
  347. package/assets/esri/core/workers/chunks/20f9f3470cad47d01803.js +0 -1
  348. package/assets/esri/core/workers/chunks/23a9070e9362b8439770.js +0 -1
  349. package/assets/esri/core/workers/chunks/28ac3a75130fe2b57ac7.js +0 -1
  350. package/assets/esri/core/workers/chunks/2b7d020367cb4ebb3c3d.js +0 -1
  351. package/assets/esri/core/workers/chunks/3104b10770903c265626.js +0 -1
  352. package/assets/esri/core/workers/chunks/33f00633131581e06328.js +0 -1
  353. package/assets/esri/core/workers/chunks/365ad1ffd496ed86637b.js +0 -1
  354. package/assets/esri/core/workers/chunks/36a0e48113ab59a4f21d.js +0 -1
  355. package/assets/esri/core/workers/chunks/3874362bf7d43adc41bb.js +0 -1
  356. package/assets/esri/core/workers/chunks/38dc1c4b8721efd4a165.js +0 -1
  357. package/assets/esri/core/workers/chunks/3e9700445518b8f9ae1b.js +0 -1
  358. package/assets/esri/core/workers/chunks/42f3fdad1728433b3510.js +0 -1
  359. package/assets/esri/core/workers/chunks/436941ec88439667022e.js +0 -1
  360. package/assets/esri/core/workers/chunks/440a650ed0867a16f559.js +0 -1
  361. package/assets/esri/core/workers/chunks/440f76c397a813b0dcf9.js +0 -1
  362. package/assets/esri/core/workers/chunks/4812482f28f7205b0938.js +0 -1
  363. package/assets/esri/core/workers/chunks/5317cbef0aac29761575.js +0 -1
  364. package/assets/esri/core/workers/chunks/5344919fc6e8050450f1.js +0 -1
  365. package/assets/esri/core/workers/chunks/54a9e17d6c0fef6a9146.js +0 -1
  366. package/assets/esri/core/workers/chunks/55985c9c48b8e1d1c634.js +0 -1
  367. package/assets/esri/core/workers/chunks/5e5b358e603b13b4d7d7.js +0 -1
  368. package/assets/esri/core/workers/chunks/5e9bd5ed6ecee5b15127.js +0 -1
  369. package/assets/esri/core/workers/chunks/63b9e4a7dad358605c38.js +0 -1
  370. package/assets/esri/core/workers/chunks/64845b1f53eca9db1229.js +0 -1
  371. package/assets/esri/core/workers/chunks/662932d2effd2b384b9e.js +0 -1
  372. package/assets/esri/core/workers/chunks/66d4cbb35d0c290150bf.js +0 -1
  373. package/assets/esri/core/workers/chunks/677d3674cb2c0c05fb7e.js +0 -1
  374. package/assets/esri/core/workers/chunks/6f58ec80abebb7bfbbb0.js +0 -1
  375. package/assets/esri/core/workers/chunks/7100c9038739121c2c4b.js +0 -1
  376. package/assets/esri/core/workers/chunks/7278cc37e85f0242f19b.js +0 -1
  377. package/assets/esri/core/workers/chunks/794f604d4267e374f7dd.js +0 -1
  378. package/assets/esri/core/workers/chunks/7ae8f73c8e2afae98ecb.js +0 -1
  379. package/assets/esri/core/workers/chunks/7d4af7e2cb2f234e12eb.js +0 -1
  380. package/assets/esri/core/workers/chunks/7d56b2ac5030dd8b748e.js +0 -1
  381. package/assets/esri/core/workers/chunks/807b12ace0099300b9b9.js +0 -1
  382. package/assets/esri/core/workers/chunks/816a4b03f2ea49238a6c.js +0 -1
  383. package/assets/esri/core/workers/chunks/842b442cc012d0797333.js +0 -1
  384. package/assets/esri/core/workers/chunks/8903ff28896bd6f34b0d.js +0 -1
  385. package/assets/esri/core/workers/chunks/89e9bc8789b100316136.js +0 -1
  386. package/assets/esri/core/workers/chunks/8afe32d3db9669f972bc.js +0 -1
  387. package/assets/esri/core/workers/chunks/91fd28f50477d16e294e.js +0 -1
  388. package/assets/esri/core/workers/chunks/953f671bdeb2ca9b9f37.js +0 -1
  389. package/assets/esri/core/workers/chunks/96e799ca97989a6ed448.js +0 -1
  390. package/assets/esri/core/workers/chunks/98011b93acf3d5f0b5a2.js +0 -1
  391. package/assets/esri/core/workers/chunks/9c7fd5db0813bdc38582.js +0 -1
  392. package/assets/esri/core/workers/chunks/9db2ff1d4cbb5d1b623e.js +0 -1
  393. package/assets/esri/core/workers/chunks/a2fee1611319665e6aed.js +0 -1
  394. package/assets/esri/core/workers/chunks/a644e30f65347ce846ed.js +0 -1
  395. package/assets/esri/core/workers/chunks/a64daa4945923a178fe5.js +0 -1
  396. package/assets/esri/core/workers/chunks/a84d67c1a1008bca2075.js +0 -1
  397. package/assets/esri/core/workers/chunks/a85575a8d1da09280cd7.js +0 -1
  398. package/assets/esri/core/workers/chunks/ab414a60808ea05a63e6.js +0 -1
  399. package/assets/esri/core/workers/chunks/ac4f7309a249132c22da.js +0 -1
  400. package/assets/esri/core/workers/chunks/aeb1900cfdd0e51cc5f8.js +0 -1
  401. package/assets/esri/core/workers/chunks/ba62f3aa811430787863.js +0 -1
  402. package/assets/esri/core/workers/chunks/c03d0091a6f385b9ce8d.js +0 -1
  403. package/assets/esri/core/workers/chunks/c20aaca8085ce897bd12.js +0 -1
  404. package/assets/esri/core/workers/chunks/c3e711dc608eedda2d14.js +0 -1
  405. package/assets/esri/core/workers/chunks/c4a9006cc6d2938570e0.js +0 -1
  406. package/assets/esri/core/workers/chunks/c692ea68509bddbf7b42.js +0 -1
  407. package/assets/esri/core/workers/chunks/cb8c17daec7055bf99cc.js +0 -1
  408. package/assets/esri/core/workers/chunks/d7439d357f68160844cb.js +0 -1
  409. package/assets/esri/core/workers/chunks/dd319d5fe89b275e93cf.js +0 -1
  410. package/assets/esri/core/workers/chunks/df3e79b56c37156e7895.js +0 -1
  411. package/assets/esri/core/workers/chunks/df8b80b17e371c9be4e6.js +0 -1
  412. package/assets/esri/core/workers/chunks/e77198f8ab47441423c5.js +0 -1
  413. package/assets/esri/core/workers/chunks/e786da40a1c87bed64ca.js +0 -1
  414. package/assets/esri/core/workers/chunks/e8aafef6342c50340a27.js +0 -1
  415. package/assets/esri/core/workers/chunks/ec00348d74e29f48613a.js +0 -1
  416. package/assets/esri/core/workers/chunks/ec65c9c72507ef9a9cf9.js +0 -1
  417. package/assets/esri/core/workers/chunks/eedeff8b344ff699b0b9.js +0 -1
  418. package/assets/esri/core/workers/chunks/f1767b8ba82fdd9bd947.js +0 -1
  419. package/assets/esri/core/workers/chunks/f4201e7dcae224d0caf0.js +0 -1
  420. package/assets/esri/core/workers/chunks/f7cc05fbfc97b4d36eba.js +0 -1
  421. package/assets/esri/core/workers/chunks/f9d369a4683f88ee9d76.js +0 -1
  422. package/assets/esri/core/workers/chunks/fc534c94d55331578195.js +0 -1
  423. package/assets/esri/themes/base/colors/css/brand_colors.css +0 -76
  424. package/assets/esri/themes/base/colors/css/calcite_core_colors.css +0 -169
  425. package/assets/esri/themes/base/colors/css/calcite_core_colors_dark.css +0 -169
  426. package/assets/esri/themes/base/colors/css/calcite_gray_colors.css +0 -43
  427. package/assets/esri/themes/base/colors/css/calcite_gray_colors_dark.css +0 -43
  428. package/assets/esri/themes/base/colors/css/calcite_highlight_colors.css +0 -43
  429. package/assets/esri/themes/base/colors/css/calcite_highlight_colors_dark.css +0 -43
  430. package/assets/esri/themes/base/colors/css/calcite_vibrant_colors.css +0 -67
  431. package/assets/esri/themes/base/colors/css/calcite_vibrant_colors_dark.css +0 -67
  432. package/assets/esri/themes/base/colors/css/complete.css +0 -610
  433. package/assets/esri/themes/base/colors/css/scss/brand_colors.scss +0 -128
  434. package/assets/esri/themes/base/colors/css/scss/calcite_core_colors.scss +0 -289
  435. package/assets/esri/themes/base/colors/css/scss/calcite_core_colors_dark.scss +0 -285
  436. package/assets/esri/themes/base/colors/css/scss/calcite_gray_colors.scss +0 -96
  437. package/assets/esri/themes/base/colors/css/scss/calcite_gray_colors_dark.scss +0 -91
  438. package/assets/esri/themes/base/colors/css/scss/calcite_highlight_colors.scss +0 -69
  439. package/assets/esri/themes/base/colors/css/scss/calcite_highlight_colors_dark.scss +0 -65
  440. package/assets/esri/themes/base/colors/css/scss/calcite_vibrant_colors.scss +0 -128
  441. package/assets/esri/themes/base/colors/css/scss/calcite_vibrant_colors_dark.scss +0 -124
  442. package/assets/esri/themes/base/colors/css/scss/complete.scss +0 -11
  443. package/assets/esri/themes/base/colors/patterns_json/brand_colors.css +0 -366
  444. package/assets/esri/themes/base/colors/patterns_json/calcite_core_colors.css +0 -687
  445. package/assets/esri/themes/base/colors/patterns_json/calcite_core_colors_dark.css +0 -673
  446. package/assets/esri/themes/base/colors/patterns_json/calcite_gray_colors.css +0 -177
  447. package/assets/esri/themes/base/colors/patterns_json/calcite_gray_colors_dark.css +0 -169
  448. package/assets/esri/themes/base/colors/patterns_json/calcite_highlight_colors.css +0 -178
  449. package/assets/esri/themes/base/colors/patterns_json/calcite_highlight_colors_dark.css +0 -169
  450. package/assets/esri/themes/base/colors/patterns_json/calcite_vibrant_colors.css +0 -273
  451. package/assets/esri/themes/base/colors/patterns_json/calcite_vibrant_colors_dark.css +0 -265
  452. package/assets/esri/themes/base/colors/patterns_json/complete.css +0 -2847
  453. package/assets/esri/themes/base/colors/patterns_json/scss/brand_colors.scss +0 -464
  454. package/assets/esri/themes/base/colors/patterns_json/scss/calcite_core_colors.scss +0 -967
  455. package/assets/esri/themes/base/colors/patterns_json/scss/calcite_core_colors_dark.scss +0 -964
  456. package/assets/esri/themes/base/colors/patterns_json/scss/calcite_gray_colors.scss +0 -265
  457. package/assets/esri/themes/base/colors/patterns_json/scss/calcite_gray_colors_dark.scss +0 -263
  458. package/assets/esri/themes/base/colors/patterns_json/scss/calcite_highlight_colors.scss +0 -237
  459. package/assets/esri/themes/base/colors/patterns_json/scss/calcite_highlight_colors_dark.scss +0 -235
  460. package/assets/esri/themes/base/colors/patterns_json/scss/calcite_vibrant_colors.scss +0 -376
  461. package/assets/esri/themes/base/colors/patterns_json/scss/calcite_vibrant_colors_dark.scss +0 -347
  462. package/assets/esri/themes/base/colors/patterns_json/scss/complete.scss +0 -12
  463. package/assets/esri/themes/base/icons/readme/download.png +0 -0
  464. package/assets/esri/themes/base/icons/readme/import-icons.png +0 -0
  465. package/assets/esri/themes/base/icons/readme/import.png +0 -0
  466. package/assets/esri/themes/base/icons/readme/load.png +0 -0
  467. package/assets/esri/themes/base/icons/selection.json +0 -1
  468. package/assets/esri/themes/base/icons/style.css +0 -774
  469. package/views/2d/engine/brushes.js +0 -2
  470. package/views/2d/engine/flow/BrushFlow.js +0 -2
  471. package/views/2d/engine/rasterBrushes.js +0 -2
  472. package/views/2d/engine/webgl/brushes/BrushClip.js +0 -2
  473. package/views/2d/engine/webgl/brushes/WGLBrush.js +0 -2
  474. package/views/2d/engine/webgl/painter/RenderPass.js +0 -2
  475. package/views/2d/engine/webgl/shaders/BackgroundPrograms.js +0 -2
  476. package/views/2d/engine/webgl/shaders/TileInfoPrograms.js +0 -2
  477. package/views/3d/webgl-engine/lib/GLMaterials.js +0 -2
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[648],{69052(e,t,r){r.d(t,{hr:()=>n,ie:()=>l,uC:()=>a});var i=r(34727);class n{constructor(e,t){this.min=e,this.max=t,this.range=t-e}normalize(e,t=0,r=!1){return o(this.range,this.min,this.max,e,t,r)}clamp(e,t=0){return(0,i.qE)(e-t,this.min,this.max)+t}monotonic(e,t,r){return e<t?t:t+s(this.range,e-t,r)}minimalMonotonic(e,t,r){return o(this.range,e,e+this.range,t,r)}center(e,t,r){return t=this.monotonic(e,t,r),this.normalize((e+t)/2,r)}diff(e,t,r){return this.monotonic(e,t,r)-e}shortestSignedDiff(e,t){e=this.normalize(e);const r=(t=this.normalize(t))-e,i=t<e?this.minimalMonotonic(e,t)-e:t-this.minimalMonotonic(t,e);return Math.abs(r)<Math.abs(i)?r:i}contains(e,t,r){return t=this.minimalMonotonic(e,t),(r=this.minimalMonotonic(e,r))>e&&r<t}}function o(e,t,r,i,n=0,o=!1){return(i-=n)<t?i+=s(e,t-i):i>r&&(i-=s(e,i-r)),o&&i===r&&(i=t),i+n}function s(e,t,r=0){return Math.ceil((t-r)/e)*e+r}const a=new n(0,2*Math.PI),l=(new n(-Math.PI,Math.PI),new n(0,360))},46140(e,t,r){r.d(t,{A:()=>n});var i=r(49186);class n{constructor(e,t,r=""){this.major=e,this.minor=t,this._context=r}lessThan(e,t){return this.major<e||e===this.major&&this.minor<t}greaterEqual(e,t){return!this.lessThan(e,t)}toString(){return`${this.major}.${this.minor}`}validate(e){if(this.major!==e.major){const t=this._context&&this._context+":",r=this._context&&this._context+" ";throw new i.A(t+"unsupported-version",`Required major ${r}version is '${this.major}', but got '\${version.major}.\${version.minor}'`,{version:e})}}clone(){return new n(this.major,this.minor,this._context)}static parse(e,t=""){const[r,o]=e.split("."),s=/^\s*\d+\s*$/;if(!r?.match||!s.test(r))throw new i.A((t&&t+":")+"invalid-version","Expected major version to be a number, but got '${version}'",{version:e});if(!o?.match||!s.test(o))throw new i.A((t&&t+":")+"invalid-version","Expected minor version to be a number, but got '${version}'",{version:e});const a=parseInt(r,10),l=parseInt(o,10);return new n(a,l,t)}}},6797(e,t,r){r.d(t,{Ui:()=>d});var i=r(69622),n=r(7762),o=r(88620);const s=new Set(["esri.Color","esri.portal.Portal","esri.symbols.support.Symbol3DAnchorPosition2D","esri.symbols.support.Symbol3DAnchorPosition3D"]);function a(e){return e instanceof i.A}function l(e){return e instanceof n.A?Object.keys(e.items):a(e)?(0,o.oY)(e).keys():e?Object.keys(e):[]}function u(e,t){return e instanceof n.A?e.items[t]:e[t]}function p(e){return e?e.declaredClass:null}function c(e,t){const r=e.diff;if(r&&"function"==typeof r)return r(e,t);const i=l(e),n=l(t);if(0===i.length&&0===n.length)return;if(!i.length||!n.length||function(e,t){return!(!Array.isArray(e)||!Array.isArray(t))&&e.length!==t.length}(e,t))return{type:"complete",oldValue:e,newValue:t};const o=n.filter(e=>!i.includes(e)),d=i.filter(e=>!n.includes(e)),y=i.filter(r=>n.includes(r)&&u(e,r)!==u(t,r)).concat(o,d).sort(),m=p(e);if(m&&s.has(m)&&y.length)return{type:"complete",oldValue:e,newValue:t};let f;const h=a(e)&&a(t);for(const i of y){const n=u(e,i),o=u(t,i);let s;if((h||"function"!=typeof n&&"function"!=typeof o)&&n!==o&&(null!=n||null!=o)){if(r&&r[i]&&"function"==typeof r[i])s=r[i]?.(n,o);else if(n instanceof Date&&o instanceof Date){if(n.getTime()===o.getTime())continue;s={type:"complete",oldValue:n,newValue:o}}else s="object"==typeof n&&"object"==typeof o&&p(n)===p(o)?c(n,o):{type:"complete",oldValue:n,newValue:o};null!=s&&(null!=f?f.diff[i]=s:f={type:"partial",diff:{[i]:s}})}}return f}function d(e,t){if("function"!=typeof e&&"function"!=typeof t&&(null!=e||null!=t))return null==e||null==t||"object"==typeof e&&"object"==typeof t&&p(e)!==p(t)?{type:"complete",oldValue:e,newValue:t}:c(e,t)}},46130(e,t,r){r.d(t,{v:()=>n});var i=r(76553);function n(e){e?.writtenProperties&&e.writtenProperties.forEach(({target:e,propName:t,newOrigin:r})=>{(0,i.H)(e)&&r&&e.originOf(t)!==r&&e.updateOrigin(t,r)})}},9093(e,t,r){function i(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function n(e){return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15]]}r.d(t,{o8:()=>n,vt:()=>i,zK:()=>o});const o=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:o,clone:n,create:i,fromValues:function(e,t,r,i,n,o,s,a,l,u,p,c,d,y,m,f){return[e,t,r,i,n,o,s,a,l,u,p,c,d,y,m,f]}},Symbol.toStringTag,{value:"Module"}))},35522(e,t,r){r.d(t,{$A:()=>A,Bw:()=>o,C:()=>s,Cc:()=>I,DI:()=>T,Il:()=>U,Io:()=>b,Ln:()=>g,Om:()=>S,Qr:()=>c,Re:()=>u,S8:()=>M,T9:()=>f,WQ:()=>l,Z0:()=>O,_S:()=>y,aI:()=>F,ei:()=>N,fw:()=>Z,gL:()=>j,hG:()=>v,hZ:()=>a,hs:()=>h,jb:()=>P,jk:()=>m,lo:()=>J,lw:()=>p,m3:()=>w,oW:()=>B,t2:()=>R,tn:()=>d,uE:()=>k,xg:()=>L,ze:()=>C});var i=r(51850),n=r(34304);function o(e){const t=e[0],r=e[1],i=e[2];return Math.sqrt(t*t+r*r+i*i)}function s(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function a(e,t,r,i){return e[0]=t,e[1]=r,e[2]=i,e}function l(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e[2]=t[2]+r[2],e}function u(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e[2]=t[2]-r[2],e}function p(e,t,r){return e[0]=t[0]*r[0],e[1]=t[1]*r[1],e[2]=t[2]*r[2],e}function c(e,t,r){return e[0]=t[0]/r[0],e[1]=t[1]/r[1],e[2]=t[2]/r[2],e}function d(e,t){return e[0]=Math.abs(t[0]),e[1]=Math.abs(t[1]),e[2]=Math.abs(t[2]),e}function y(e,t){return e[0]=Math.sign(t[0]),e[1]=Math.sign(t[1]),e[2]=Math.sign(t[2]),e}function m(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e[2]=Math.min(t[2],r[2]),e}function f(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e[2]=Math.max(t[2],r[2]),e}function h(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e}function g(e,t,r,i){return e[0]=t[0]+r[0]*i,e[1]=t[1]+r[1]*i,e[2]=t[2]+r[2]*i,e}function b(e,t){const r=t[0]-e[0],i=t[1]-e[1],n=t[2]-e[2];return Math.sqrt(r*r+i*i+n*n)}function v(e,t){const r=t[0]-e[0],i=t[1]-e[1],n=t[2]-e[2];return r*r+i*i+n*n}function w(e){const t=e[0],r=e[1],i=e[2];return t*t+r*r+i*i}function C(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e}function T(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e}function M(e,t){const r=t[0],i=t[1],n=t[2];let o=r*r+i*i+n*n;return o>0&&(o=1/Math.sqrt(o),e[0]=t[0]*o,e[1]=t[1]*o,e[2]=t[2]*o),e}function S(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function A(e,t,r){const i=t[0],n=t[1],o=t[2],s=r[0],a=r[1],l=r[2];return e[0]=n*l-o*a,e[1]=o*s-i*l,e[2]=i*a-n*s,e}function I(e,t,r,i){const n=t[0],o=t[1],s=t[2];return e[0]=n+i*(r[0]-n),e[1]=o+i*(r[1]-o),e[2]=s+i*(r[2]-s),e}function O(e,t,r){const i=t[0],n=t[1],o=t[2];return e[0]=r[0]*i+r[4]*n+r[8]*o+r[12],e[1]=r[1]*i+r[5]*n+r[9]*o+r[13],e[2]=r[2]*i+r[6]*n+r[10]*o+r[14],e}function N(e,t,r){const i=t[0],n=t[1],o=t[2];return e[0]=i*r[0]+n*r[3]+o*r[6],e[1]=i*r[1]+n*r[4]+o*r[7],e[2]=i*r[2]+n*r[5]+o*r[8],e}function j(e,t,r){return Z(e,t,r[0],r[1],r[2],r[3])}function Z(e,t,r,i,n,o){const s=t[0],a=t[1],l=t[2],u=i*l-n*a,p=n*s-r*l,c=r*a-i*s,d=i*c-n*p,y=n*u-r*c,m=r*p-i*u,f=2*o;return e[0]=s+u*f+2*d,e[1]=a+p*f+2*y,e[2]=l+c*f+2*m,e}const D=(0,i.vt)(),x=(0,i.vt)();function R(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]}function F(e,t){if(e===t)return!0;const r=e[0],i=e[1],o=e[2],s=t[0],a=t[1],l=t[2],u=(0,n.FD)();return Math.abs(r-s)<=u*Math.max(1,Math.abs(r),Math.abs(s))&&Math.abs(i-a)<=u*Math.max(1,Math.abs(i),Math.abs(a))&&Math.abs(o-l)<=u*Math.max(1,Math.abs(o),Math.abs(l))}function B(e,t,r){const i=r[0]-t[0],n=r[1]-t[1],o=r[2]-t[2];let s=i*i+n*n+o*o;return s>0?(s=1/Math.sqrt(s),e[0]=i*s,e[1]=n*s,e[2]=o*s,e):(e[0]=0,e[1]=0,e[2]=0,e)}const P=u,E=p,_=c,L=b,J=v,U=o,k=w;Object.freeze(Object.defineProperty({__proto__:null,abs:d,add:l,angle:function(e,t){M(D,e),M(x,t);const r=S(D,x);return r>1?0:r<-1?Math.PI:Math.acos(r)},bezier:function(e,t,r,i,n,o){const s=1-o,a=s*s,l=o*o,u=a*s,p=3*o*a,c=3*l*s,d=l*o;return e[0]=t[0]*u+r[0]*p+i[0]*c+n[0]*d,e[1]=t[1]*u+r[1]*p+i[1]*c+n[1]*d,e[2]=t[2]*u+r[2]*p+i[2]*c+n[2]*d,e},ceil:function(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e[2]=Math.ceil(t[2]),e},clamp:function(e,t=0,r=1){return e[0]=Math.min(Math.max(e[0],t),r),e[1]=Math.min(Math.max(e[1],t),r),e[2]=Math.min(Math.max(e[2],t),r),e},copy:s,cross:A,crossAndNormalize:function(e,t,r){const i=t[0],n=t[1],o=t[2],s=r[0],a=r[1],l=r[2],u=n*l-o*a,p=o*s-i*l,c=i*a-n*s,d=Math.sqrt(u*u+p*p+c*c);return e[0]=u/d,e[1]=p/d,e[2]=c/d,e},direction:B,dist:L,distance:b,div:_,divide:c,dot:S,equals:F,exactEquals:R,floor:function(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e[2]=Math.floor(t[2]),e},hermite:function(e,t,r,i,n,o){const s=o*o,a=s*(2*o-3)+1,l=s*(o-2)+o,u=s*(o-1),p=s*(3-2*o);return e[0]=t[0]*a+r[0]*l+i[0]*u+n[0]*p,e[1]=t[1]*a+r[1]*l+i[1]*u+n[1]*p,e[2]=t[2]*a+r[2]*l+i[2]*u+n[2]*p,e},inverse:T,len:U,length:o,lerp:I,max:f,min:m,mul:E,multiply:p,negate:C,normalize:M,random:function(e,t=1){const r=n.Ov,i=2*r()*Math.PI,o=2*r()-1,s=Math.sqrt(1-o*o)*t;return e[0]=Math.cos(i)*s,e[1]=Math.sin(i)*s,e[2]=o*t,e},rotateX:function(e,t,r,i){const n=[],o=[];return n[0]=t[0]-r[0],n[1]=t[1]-r[1],n[2]=t[2]-r[2],o[0]=n[0],o[1]=n[1]*Math.cos(i)-n[2]*Math.sin(i),o[2]=n[1]*Math.sin(i)+n[2]*Math.cos(i),e[0]=o[0]+r[0],e[1]=o[1]+r[1],e[2]=o[2]+r[2],e},rotateY:function(e,t,r,i){const n=[],o=[];return n[0]=t[0]-r[0],n[1]=t[1]-r[1],n[2]=t[2]-r[2],o[0]=n[2]*Math.sin(i)+n[0]*Math.cos(i),o[1]=n[1],o[2]=n[2]*Math.cos(i)-n[0]*Math.sin(i),e[0]=o[0]+r[0],e[1]=o[1]+r[1],e[2]=o[2]+r[2],e},rotateZ:function(e,t,r,i){const n=[],o=[];return n[0]=t[0]-r[0],n[1]=t[1]-r[1],n[2]=t[2]-r[2],o[0]=n[0]*Math.cos(i)-n[1]*Math.sin(i),o[1]=n[0]*Math.sin(i)+n[1]*Math.cos(i),o[2]=n[2],e[0]=o[0]+r[0],e[1]=o[1]+r[1],e[2]=o[2]+r[2],e},round:function(e,t){return e[0]=Math.round(t[0]),e[1]=Math.round(t[1]),e[2]=Math.round(t[2]),e},scale:h,scaleAndAdd:g,set:a,sign:y,sqrDist:J,sqrLen:k,squaredDistance:v,squaredLength:w,str:function(e){return"vec3("+e[0]+", "+e[1]+", "+e[2]+")"},sub:P,subtract:u,transformMat3:N,transformMat4:O,transformQuat:j,transformQuatValues:Z},Symbol.toStringTag,{value:"Module"}))},76553(e,t,r){function i(e){return e&&"getAtOrigin"in e&&"originOf"in e}r.d(t,{H:()=>i})},159(e,t,r){r.d(t,{A:()=>u});var i,n=r(5482),o=r(69540),s=r(25482),a=r(91429),l=r(99157);let u=i=class extends((0,o.OU)(s.o)){constructor(e){super(e),this.steps=[]}getInverse(){const e=new i;for(let t=this.steps.length-1;t>=0;t--){const r=this.steps[t];e.steps.push(r.getInverse())}return e}};(0,n.Cg)([(0,a.MZ)({type:[l.A],nonNullable:!0,json:{name:"geoTransforms"}})],u.prototype,"steps",void 0),u=i=(0,n.Cg)([(0,a.$K)("esri.geometry.operators.support.GeographicTransformation")],u)},99157(e,t,r){r.d(t,{A:()=>l});var i,n=r(5482),o=r(69540),s=r(25482),a=r(91429);let l=i=class extends((0,o.OU)(s.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,n.Cg)([(0,a.MZ)({json:{name:"transformForward",read:e=>!e,write:(e,t,r)=>{t[r]=!e}}})],l.prototype,"isInverse",void 0),(0,n.Cg)([(0,a.MZ)({json:{write:!0}})],l.prototype,"wkt",void 0),(0,n.Cg)([(0,a.MZ)({json:{write:!0}})],l.prototype,"wkid",void 0),l=i=(0,n.Cg)([(0,a.$K)("esri.geometry.operators.support.GeographicTransformationStep")],l)},9762(e,t,r){r.r(t),r.d(t,{projectBuffer:()=>n});var i=r(49208);function n(e,t,r,n,o,s,a=Math.floor(e.length/3)){const l=(0,i.jd)(t,o);if(null==l)return!1;if(l===i.pO){if(e===n&&r===s)return!0;const t=r+3*a;for(let i=r,o=s;i<t;i++,o++)n[o]=e[i]??0;return!0}const u=r+3*a;for(let t=r,i=s;t<u;t+=3,i+=3)l(e,t,n,i);return!0}},49208(e,t,r){r.d(t,{Tp:()=>c,jd:()=>p,pO:()=>y,w5:()=>u});var i=r(34727),n=r(86211),o=r(73941),s=r(79258),a=r(34403),l=r(21325);const u={2:{5:y,7:null,9:null,10:y,1:C,6:null,8:null,0:null,3:f,11:h,2:y,4:I},5:{5:y,7:null,9:null,10:y,1:C,6:null,8:null,0:null,3:f,11:h,2:y,4:I},7:{5:null,7:y,9:null,10:y,1:null,6:w,8:null,0:null,3:null,11:null,2:null,4:null},9:{5:null,7:null,9:y,10:y,1:null,6:null,8:v,0:null,3:null,11:null,2:null,4:null},3:{5:m,7:null,9:null,10:m,1:function(e,t,r,i){const n=e[t]/x,o=D-2*Math.atan(Math.exp(-e[t+1]/x)),s=x+(e[t+2]??0),a=Math.cos(o)*s;r[i]=Math.cos(n)*a,r[i+1]=Math.sin(n)*a,r[i+2]=Math.sin(o)*s},6:null,8:null,0:null,3:y,11:function(e,t,r,i){m(e,t,r,i),h(r,i,r,i)},2:m,4:function(e,t,r,i){m(e,t,r,i),I(r,i,r,i)}},4:{5:O,7:null,9:null,10:O,1:function(e,t,r,i){O(e,t,r,i),C(r,i,r,i)},6:null,8:null,0:null,3:function(e,t,r,i){O(e,t,r,i),f(r,i,r,i)},11:function(e,t,r,i){O(e,t,r,i),h(r,i,r,i)},2:O,4:y},1:{5:A,7:null,9:null,10:A,1:y,6:null,8:null,0:null,3:function(e,t,r,i){A(e,t,r,i),f(r,i,r,i)},11:function(e,t,r,i){A(e,t,r,i),h(r,i,r,i)},2:A,4:function(e,t,r,i){A(e,t,r,i),I(r,i,r,i)}},6:{5:null,7:S,9:null,10:S,1:null,6:y,8:null,0:null,3:null,11:null,2:null,4:null},8:{5:null,7:null,9:M,10:M,1:null,6:null,8:y,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:y,3:null,11:null,2:null,4:null},10:{5:y,7:y,9:y,10:y,1:C,6:w,8:v,0:null,3:f,11:h,2:y,4:I},11:{5:g,7:null,9:null,10:g,1:function(e,t,r,i){g(e,t,r,i),C(r,i,r,i)},6:null,8:null,0:null,3:function(e,t,r,i){g(e,t,r,i),f(r,i,r,i)},11:y,2:g,4:function(e,t,r,i){g(e,t,r,i),I(r,i,r,i)}}};function p(e,t){return c(e,t)?.projector}function c(e,t){if(null==e||null==t)return null;if(N.source.spatialReference===e&&N.dest.spatialReference===t)return N;const r=d(e,N.source),i=d(t,N.dest);return 0===r&&0===i?(0,l.aI)(e,t)?N.projector=y:N.projector=null:N.projector=u[r][i],N}function d(e,t){return e?t.spatialReference===e?t.spatialReferenceId:(t.spatialReference=e,"metersPerUnit"in t&&(t.metersPerUnit=(0,n.GA)(e,1)),(0,o.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===o.Ro.wkt?t.spatialReferenceId=4:4490===e.wkid?t.spatialReferenceId=5:e.wkt===o.FY.wkt?t.spatialReferenceId=6:e.wkt===o.LJ.wkt?t.spatialReferenceId=8:(0,o.q8)(e)?t.spatialReferenceId=7:(0,o.KQ)(e)?t.spatialReferenceId=9:t.spatialReferenceId=0):0}function y(e,t,r,i){e!==r&&(r[i++]=e[t++],r[i++]=e[t++],r[i]=e[t]??0)}function m(e,t,r,i){r[i]=Z*(e[t]/x),r[i+1]=Z*(D-2*Math.atan(Math.exp(-e[t+1]/x))),r[i+2]=e[t+2]??0}function f(e,t,r,n){!function(e,t,r,n,o){const s=.4999999*Math.PI,a=(0,i.qE)(j*e[t+1],-s,s),l=Math.sin(a);r[n++]=j*e[t]*o.radius,r[n++]=o.halfSemiMajorAxis*Math.log((1+l)/(1-l)),r[n]=e[t+2]??0}(e,t,r,n,s.$O)}function h(e,t,r,i){r[i]=e[t]*R,r[i+1]=e[t+1]*R,r[i+2]=e[t+2]??0}function g(e,t,r,i){r[i]=e[t]*F,r[i+1]=e[t+1]*F,r[i+2]=e[t+2]??0}function b(e,t,r,i,n){const o=n+(e[t+2]??0),s=j*e[t],a=j*e[t+1],l=Math.cos(a)*o;r[i]=Math.cos(s)*l,r[i+1]=Math.sin(s)*l,r[i+2]=Math.sin(a)*o}function v(e,t,r,i){b(e,t,r,i,s.Sw.radius)}function w(e,t,r,i){b(e,t,r,i,s.sH.radius)}function C(e,t,r,i){b(e,t,r,i,s.$O.radius)}function T(e,t,r,n,o){const s=e[t],a=e[t+1],l=e[t+2]??0,u=Math.sqrt(s*s+a*a+l*l),p=(0,i.YN)(l/(0===u?1:u)),c=Math.atan2(a,s);r[n++]=Z*c,r[n++]=Z*p,r[n]=u-o}function M(e,t,r,i){T(e,t,r,i,s.Sw.radius)}function S(e,t,r,i){T(e,t,r,i,s.sH.radius)}function A(e,t,r,i){T(e,t,r,i,s.$O.radius)}function I(e,t,r,i){!function(e,t,r,i,n){const o=j*e[t],s=j*e[t+1],a=e[t+2]??0,l=Math.sin(s),u=Math.cos(s),p=n.radius/Math.sqrt(1-n.eccentricitySquared*l*l);r[i++]=(p+a)*u*Math.cos(o),r[i++]=(p+a)*u*Math.sin(o),r[i++]=(p*(1-n.eccentricitySquared)+a)*l}(e,t,r,i,s.$O)}function O(e,t,r,i){const n=a.TP,o=e[t],l=e[t+1],u=e[t+2]??0;let p,c,d,y,m,f,h,g,b,v,w,C,T,M,S,A,I,O,N,j,D;p=Math.abs(u),c=o*o+l*l,d=Math.sqrt(c),y=c+u*u,m=Math.sqrt(y),j=Math.atan2(l,o),f=u*u/y,h=c/y,M=n.a2/m,S=n.a3-n.a4/m,h>.3?(g=p/m*(1+h*(n.a1+M+f*S)/m),N=Math.asin(g),v=g*g,b=Math.sqrt(1-v)):(b=d/m*(1-f*(n.a5-M-h*S)/m),N=Math.acos(b),v=1-b*b,g=Math.sqrt(v)),w=1-s.$O.eccentricitySquared*v,C=s.$O.radius/Math.sqrt(w),T=n.a6*C,M=d-C*b,S=p-T*g,I=b*M+g*S,A=b*S-g*M,O=A/(T/w+I),N+=O,D=I+A*O/2,u<0&&(N=-N),r[i++]=Z*j,r[i++]=Z*N,r[i]=D}const N={source:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},projector:y},j=(0,i.kU)(1),Z=(0,i.KJ)(1),D=.5*Math.PI,x=s.$O.radius,R=x*Math.PI/180,F=180/(x*Math.PI)},91218(e,t,r){r.r(t),r.d(t,{canProjectWithoutEngine:()=>q,initializeProjection:()=>K,isEqualBaseGCS:()=>G,isLoaded:()=>x,isLoadedOrLoad:()=>R,isLoadedOrLoadFor:()=>F,load:()=>P,project:()=>E,projectAsync:()=>V,projectExtent:()=>ne,projectMany:()=>_,projectMultipoint:()=>X,projectOrLoad:()=>J,projectOrLoadMany:()=>U,projectPoint:()=>Y,projectPolygon:()=>re,projectPolyline:()=>ee,projectWithoutEngine:()=>z,requiresLoad:()=>B,test:()=>W,tryProject:()=>L,unload:()=>$});var i=r(49186),n=r(17676),o=r(62788),s=r(95488),a=r(51850),l=r(21276),u=r(73941),p=r(5443),c=r(91075),d=r(48526),y=r(86738),m=r(39829),f=r(82799),h=r(16930),g=r(98764),b=r(159),v=r(9762),w=r(49208);function C(e,t,r,i,n,o){return T[0]=e,T[1]=t,T[2]=r,(0,v.projectBuffer)(T,i,0,n,o,0)}const T=(0,a.vt)();var M=r(60408),S=r(21325),A=r(52006);let I=null,O=null,N=null,j=null,Z={};const D=new s.I;function x(){return!!(O?.isLoaded()&&N?.isLoaded()&&j?.isLoaded())}function R(){return!!x()||((0,o.gc)(D),P(),!1)}function F(e,t){return!e||!t||q(e,t)||R()}function B(e,t){return!q(e,t)&&!x()}async function P(e){null==I&&(I=Promise.all([r.e(3276).then(r.bind(r,83276)).then(e=>(O=e,O.load())),r.e(8377).then(r.bind(r,8377)).then(e=>(N=e,N.load())),r.e(2158).then(r.bind(r,12158)).then(e=>(j=e,j.load()))])),await I,(0,n.Te)(e),D.notify()}function E(e,t,r){return Array.isArray(e)?0===e.length?[]:((0,l.H)(e),_(e,e[0].spatialReference,t,r)):((0,l.f)(e),_([e],e.spatialReference,t,r)[0])}function _(e,t,r,i){if(null==t||null==r)return e;if(q(t,r,i))return e.map(e=>z(e,t,r));if(null==i?.geographicTransformation&&(0,u.jA)(t))return _(e.map(e=>z(e,t,h.A.WGS84)),h.A.WGS84,r,{zConversionDisabled:i?.zConversionDisabled});if(null==i?.geographicTransformation&&(0,u.jA)(r))return _(e,t,h.A.WGS84).map(e=>z(e,h.A.WGS84,r));if(!x())throw new k;if(!i?.geographicTransformation)if(i?.extendedParams)i={...i,geographicTransformation:j.getTransformation(t,r,i.areaOfInterestExtent)||new b.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,r);let n=Z[e];n||(n=j.getTransformation(t,r)||new b.A,Z[e]=n),i={geographicTransformation:n,zConversionDisabled:i?.zConversionDisabled}}return e[0].spatialReference||(e[0].spatialReference=t),e[0]instanceof c.A?O.executeMany(e,r,i):N.executeMany(e,r,i)}function L(e,t,r){try{return E(e,t,r)}catch(e){return null}}function J(e,t){const r=U([e],t);return null!=r.pending?{pending:r.pending,geometry:null}:null!=r.geometries?{pending:null,geometry:r.geometries[0]}:{pending:null,geometry:null}}function U(e,t,r){if(!x())for(const r of e)if(null!=r&&!(0,S.aI)(r.spatialReference,t)&&(0,S.fn)(r.spatialReference)&&(0,S.fn)(t)&&!q(r.spatialReference,t))return(0,o.gc)(D),{pending:P(),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,r):null)}}class k extends i.A{constructor(){super("projection:not-loaded","projection engine not fully loaded yet, please call load()")}}function $(){I=null,O=null,N=null,j=null,Z={}}const W={get loadPromise(){return I}};async function V(e,t,r){if((0,n.Te)(r),!e)return e;const i=U(Array.isArray(e)?e:[e],t,r);if(i.pending)return await i.pending,(0,n.Te)(r),V(e,t,r);const o=i.geometries??[];return Array.isArray(e)?o:o[0]}function q(e,t,r){return!(r?.areaOfInterestExtent||r?.extendedParams||r?.geographicTransformation)&&(!!(0,S.aI)(e,t)||(0,S.fn)(e)&&(0,S.fn)(t)&&!!(0,w.jd)(e,t))}function G(e,t){if((0,S.aI)(e,t))return!0;if(!(0,S.fn)(e)||!(0,S.fn)(t))return!1;const r=(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 r&&i}async function K(e,t,r,i){if(x())return(0,n.NO)(i);if(Array.isArray(e)){for(const{source:t,dest:r,options:n}of e)if(t&&r&&!q(t,r,n))return P(i)}else if(e&&t&&!q(e,t,r))return P(i);return(0,n.NO)(i)}function z(e,t,r){return e?(0,M.fT)(e)?H(e,t,new y.A,r,0):(0,M.ZC)(e)?oe(e,t,new p.A,r,0):(0,M.Bi)(e)?ie(e,t,new m.A,r,0):(0,M.Rg)(e)?te(e,t,new f.A,r,0):(0,M.U9)(e)?Q(e,t,new d.A,r,0):null:null}function Y(e,t,r=t.spatialReference,i=0){return null!=r&&null!=e.spatialReference&&null!=H(e,e.spatialReference,t,r,i)}function H(e,t,r,i,n){ue[0]=e.x,ue[1]=e.y;const o=e.z;return ue[2]=void 0!==o?o:n,(0,v.projectBuffer)(ue,t,0,ue,i,0)?(r.x=ue[0],r.y=ue[1],r.spatialReference=i,void 0!==o||(0,u.xP)(i)?(r.z=ue[2],r.hasZ=!0):(r.z=void 0,r.hasZ=!1),void 0===e.m?(r.m=void 0,r.hasM=!1):(r.m=e.m,r.hasM=!0),r):null}function X(e,t,r=t.spatialReference,i=0){return null!=e.spatialReference&&null!=r&&null!=Q(e,e.spatialReference,t,r,i)}function Q(e,t,r,i,n){const{points:o,hasZ:s,hasM:a}=e,l=[],u=o.length,p=[];for(const e of o)p.push(e[0],e[1],s?e[2]:n);if(!(0,v.projectBuffer)(p,t,0,p,i,0,u))return null;const c=le(s,i);for(let e=0;e<u;++e){const t=3*e,r=p[t],i=p[t+1];c&&a?l.push([r,i,p[t+2],o[e][3]]):c?l.push([r,i,p[t+2]]):a?l.push([r,i,o[e][2]]):l.push([r,i])}return r.points=l,r.spatialReference=i,r.hasZ=s,r.hasM=a,r}function ee(e,t,r=t.spatialReference,i=0){return null!=e.spatialReference&&null!=r&&null!=te(e,e.spatialReference,t,r,i)}function te(e,t,r,i,n){const{curvePaths:o,paths:s,hasZ:a,hasM:l}=e;if(!(o?ae(o,a??!1,l??!1,t,r.curvePaths=[],i,n):se(s,a??!1,l??!1,t,r.paths,i,n)))return null;const u=le(a,i);return r.spatialReference=i,r.hasZ=u,r.hasM=l,r}function re(e,t,r=t.spatialReference,i=0){return null!=e.spatialReference&&null!=r&&null!=ie(e,e.spatialReference,t,r,i)}function ie(e,t,r,i,n){const{curveRings:o,rings:s,hasZ:a,hasM:l}=e;return(o?ae(o,a??!1,l??!1,t,r.curveRings=[],i,n):se(s,a??!1,l??!1,t,r.rings,i,n))?(r.spatialReference=i,r.hasZ=le(a,i),r.hasM=l,r):null}function ne(e,t,r=t.spatialReference,i=0){return null!=e.spatialReference&&null!=r&&null!=oe(e,e.spatialReference,t,r,i)}function oe(e,t,r,i,n){const{xmin:o,ymin:s,xmax:a,ymax:l,hasZ:u,hasM:p}=e;if(!C(o,s,u?e.zmin:n,t,ue,i))return null;const c=le(u,i);return r.xmin=ue[0],r.ymin=ue[1],c&&(r.zmin=ue[2]),C(a,l,u?e.zmax:n,t,ue,i)?(r.xmax=ue[0],r.ymax=ue[1],c&&(r.zmax=ue[2]),p&&(r.mmin=e.mmin,r.mmax=e.mmax),r.spatialReference=i,r):null}function se(e,t,r,i,n,o,s=0){const a=new Array;for(const r of e)for(const e of r)a.push(e[0],e[1],t?e[2]:s);if(!(0,v.projectBuffer)(a,i,0,a,o,0))return!1;let l=0;n.length=0;const u=t?3:2,p=le(t,o);for(const t of e){const e=new Array;for(const i of t){const t=a.slice(l,l+=3);p||t.pop(),r&&t.push(i[u]),e.push(t)}n.push(e)}return!0}function ae(e,t,r,i,n,o,s=0){const a=new Array;for(const r of e)for(const e of r){if((0,A.FG)(e))return!1;if((0,A.aO)(e)){const[r,i]=e.c;a.push(r[0],r[1],t?r[2]:s,i[0],i[1],s);continue}if((0,A.n1)(e)){const[r,i,n]=e.b;a.push(r[0],r[1],t?r[2]:s,i[0],i[1],s,n[0],n[1],s);continue}const r=e;a.push(r[0],r[1],t?r[2]:s)}if(!(0,v.projectBuffer)(a,i,0,a,o,0))return!1;let l=0;n.length=0;const u=t?3:2,p=le(t,o);for(const t of e){const e=new Array;for(const i of t){const t=a.slice(l,l+=3);if(p||t.pop(),r&&t.push((0,A.yP)(i)[u]),(0,A.FG)(i))return!1;if((0,A.aO)(i)){const r=a[l++],i=a[l++];++l,e.push({c:[t,[r,i]]});continue}if((0,A.n1)(i)){const r=a[l++],i=a[l++];++l;const n=a[l++],o=a[l++];++l,e.push({b:[t,[r,i],[n,o]]});continue}e.push(t)}n.push(e)}return!0}function le(e,t){return e||(0,u.xP)(t)||(0,S.aI)(t,g.Y0)}const ue=(0,a.vt)()},98764(e,t,r){r.d(t,{GD:()=>s,Y0:()=>u,lO:()=>p});var i=r(73941),n=r(16930),o=r(21325);const s=new n.A(i.fv),a=new n.A(i.FY),l=new n.A(i.LJ),u=new n.A(i.Ro);function p(e){const t=c.get(e);if(t)return t;let r=s;if(e)if(e===a)r=a;else if(e===l)r=l;else{const t=e.wkid,i=e.latestWkid;if(null!=t||null!=i)(0,o.tl)(t)||(0,o.tl)(i)?r=a:((0,o.ZL)(t)||(0,o.ZL)(i))&&(r=l);else{const t=e.wkt2??e.wkt;if(t){const e=t.toUpperCase();e===d?r=a:e===y&&(r=l)}}}return c.set(e,r),r}const c=new Map,d=a.wkt.toUpperCase(),y=l.wkt.toUpperCase()},4197(e,t,r){r.d(t,{Vj:()=>u,cj:()=>l,jh:()=>o,l5:()=>a,xm:()=>s});var i=r(34275),n=r(9093);function o(e){return e<=i.y9?new Array(e).fill(0):new Float64Array(e)}function s(e){return((0,i.iu)(e)?e.byteLength/8:e.length)<=i.y9?Array.from(e):new Float64Array(e)}function a(e,t,r){return Array.isArray(e)?e.slice(t,t+r):e.subarray(t,t+r)}function l(e){return[...e]}function u(e){const t=(0,n.vt)();for(let r=0;r<16;++r)t[r]=e[r];return t}},70328(e,t,r){r.d(t,{BI:()=>v,DC:()=>c,Ej:()=>y,Ie:()=>g,Jt:()=>b,Ne:()=>m,RF:()=>p,aI:()=>C,fA:()=>s,gE:()=>l,hZ:()=>h,iT:()=>d,is:()=>w,qv:()=>T,vI:()=>f,vY:()=>a,v_:()=>M,vt:()=>o,w1:()=>u}),r(35522);var i=r(5443),n=(r(19419),r(4197));function o(e=M){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function s(e,t,r,i,n,s,a=o()){return a[0]=e,a[1]=t,a[2]=r,a[3]=i,a[4]=n,a[5]=s,a}function a(e,t=o()){return function(e,t,r,i=o()){return h(i,T),function(e,t,r=0,i=t.length/3){let n=e[0],o=e[1],s=e[2],a=e[3],l=e[4],u=e[5];for(let e=0;e<i;e++)n=Math.min(n,t[r+3*e]),o=Math.min(o,t[r+3*e+1]),s=Math.min(s,t[r+3*e+2]),a=Math.max(a,t[r+3*e]),l=Math.max(l,t[r+3*e+1]),u=Math.max(u,t[r+3*e+2]);e[0]=n,e[1]=o,e[2]=s,e[3]=a,e[4]=l,e[5]=u}(i,e,t,r),i}(e,0,e.length/3,t)}function l(e,t=(0,n.jh)(24)){const[r,i,o,s,a,l]=e;return t[0]=r,t[1]=i,t[2]=o,t[3]=r,t[4]=i,t[5]=l,t[6]=r,t[7]=a,t[8]=o,t[9]=r,t[10]=a,t[11]=l,t[12]=s,t[13]=i,t[14]=o,t[15]=s,t[16]=i,t[17]=l,t[18]=s,t[19]=a,t[20]=o,t[21]=s,t[22]=a,t[23]=l,t}function u(e,t){const r=isFinite(e[2])||isFinite(e[5]);return new i.A(r?{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],zmin:e[2],zmax:e[5],spatialReference:t}:{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],spatialReference:t})}function p(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[3]),e[4]=Math.max(e[4],t[4]),e[5]=Math.max(e[5],t[5])}function c(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[3]=Math.max(e[3],t[2]),e[4]=Math.max(e[4],t[3])}function d(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[0]),e[4]=Math.max(e[4],t[1]),e[5]=Math.max(e[5],t[2])}function y(e,t=[0,0,0]){return t[0]=function(e){return e[0]>=e[3]?0:e[3]-e[0]}(e),t[1]=function(e){return e[1]>=e[4]?0:e[4]-e[1]}(e),t[2]=function(e){return e[2]>=e[5]?0:e[5]-e[2]}(e),t}function m(e,t,r=e){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r!==e&&(r[3]=e[3],r[4]=e[4],r[5]=e[5]),r}function f(e,t,r=e){return r[3]=t[0],r[4]=t[1],r[5]=t[2],r!==e&&(r[0]=e[0],r[1]=e[1],r[2]=e[2]),e}function h(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function g(e){return e?h(e,T):o(T)}function b(e,t){return e[0]=t[0],e[1]=t[1],e[2]=Number.NEGATIVE_INFINITY,e[3]=t[2],e[4]=t[3],e[5]=Number.POSITIVE_INFINITY,e}function v(e,t,r,i,n){return e[0]=t,e[1]=r,e[2]=Number.NEGATIVE_INFINITY,e[3]=i,e[4]=n,e[5]=Number.POSITIVE_INFINITY,e}function w(e){return 6===e.length}function C(e,t,r){if(null==e||null==t)return e===t;if(!w(e)||!w(t))return!1;if(r){for(let i=0;i<e.length;i++)if(!r(e[i],t[i]))return!1}else for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}const T=[1/0,1/0,1/0,-1/0,-1/0,-1/0],M=[0,0,0,0,0,0];o()},34403(e,t,r){r.d(t,{TP:()=>s});var i=r(79258);Math.PI;const n=i.$O.radius,o=i.$O.eccentricitySquared,s={a1:n*o,a2:n*o*n*o,a3:n*o*o/2,a4:n*o*n*o*2.5,a5:n*o+n*o*o/2,a6:1-o};i.$O.radius,i.$O.flattening,i.Sw.radius,i.Sw.flattening,i.sH.radius,i.sH.flattening,i.sH.radius},17136(e,t,r){r.d(t,{Y_:()=>N,O7:()=>I,el:()=>A});var i=r(92602),n=r(69052),o=r(49186),s=r(53966),a=r(39829),l=r(82799),u=r(16930),p=r(80754),c=r(21325),d=r(28735),y=r(11254),m=r(60408),f=r(65864),h=r(2272),g=r(84952),b=r(92300);const v=()=>s.A.getLogger("esri.geometry.support.normalizeUtils");function w(e){return"polygon"===e[0].type}function C(e){return"polyline"===e[0].type}function T(e,t,r){if(t){const t=function(e,t){if(!(e instanceof l.A||e instanceof a.A)){const e="straightLineDensify: the input geometry is neither polyline nor polygon";throw v().error(e),new o.A("internal:geometry",e)}const r=(0,p.r8)(e),i=[];for(const e of r){const r=[];i.push(r),r.push([e[0][0],e[0][1]]);for(let i=0;i<e.length-1;i++){const n=e[i][0],o=e[i][1],s=e[i+1][0],a=e[i+1][1],l=Math.sqrt((s-n)*(s-n)+(a-o)*(a-o)),u=(a-o)/l,p=(s-n)/l,c=l/t;if(c>1){for(let e=1;e<=c-1;e++){const i=e*t,s=p*i+n,a=u*i+o;r.push([s,a])}const e=(l+Math.floor(c-1)*t)/2,i=p*e+n,s=u*e+o;r.push([i,s])}r.push([s,a])}}return function(e){return"polygon"===e.type}(e)?new a.A({rings:i,spatialReference:e.spatialReference}):new l.A({paths:i,spatialReference:e.spatialReference})}(e,1e6);e=(0,d.ci)(t,!0)}return r&&(e=(0,p.kS)(e,r)),e}function M(e,t,r){if(Array.isArray(e)){const i=e[0];if(i>t){const r=(0,p.kd)(i,t);e[0]=i+r*(-2*t)}else if(i<r){const t=(0,p.kd)(i,r);e[0]=i+t*(-2*r)}}else{const i=e.x;if(i>t){const r=(0,p.kd)(i,t);e=e.clone().offset(r*(-2*t),0)}else if(i<r){const t=(0,p.kd)(i,r);e=e.clone().offset(t*(-2*r),0)}}return e}function S(e,t){let r=-1;for(let i=0;i<t.cutIndexes.length;i++){const n=t.cutIndexes[i],o=t.geometries[i],s=(0,p.r8)(o);for(let e=0;e<s.length;e++){const t=s[e];t.some(r=>{if(r[0]<180)return!0;{let r=0;for(let e=0;e<t.length;e++){const i=t[e][0];r=i>r?i:r}r=Number(r.toFixed(9));const i=-360*(0,p.kd)(r,180);for(let r=0;r<t.length;r++){const t=o.getPoint(e,r);o.setPoint(e,r,t.clone().offset(i,0))}return!0}})}if(n===r){if(w(e))for(const t of(0,p.r8)(o))e[n]=e[n].addRing(t);else if(C(e))for(const t of(0,p.r8)(o))e[n]=e[n].addPath(t)}else r=n,e[n]=o}return e}async function A(e,t,r){if(!Array.isArray(e))return A([e],t);t&&"string"!=typeof t&&v().warn("normalizeCentralMeridian()","The url object is deprecated, use the url string instead");const n="string"==typeof t?t:t?.url??i.A.geometryServiceUrl;let o,s,u,w,C,I,O,N,j=0;const Z=[],D=[];for(const t of e)if(null!=t)if(o||(o=t.spatialReference,s=(0,c.Vp)(o),u=o.isWebMercator,I=u?102100:4326,w=p.j7[I].maxX,C=p.j7[I].minX,O=p.j7[I].plus180Line,N=p.j7[I].minus180Line),s)if("mesh"===t.type)D.push(t);else if("point"===t.type)D.push(M(t.clone(),w,C));else if("multipoint"===t.type){const e=t.clone();e.points=e.points.map(e=>M(e,w,C)),D.push(e)}else if("extent"===t.type){const e=t.clone()._normalize(!1,!1,s);D.push(e.rings?new a.A(e):e)}else if(t.extent){const e=t.extent,r=(0,p.kd)(e.xmin,C)*(2*w);let i=0===r?t.clone():(0,p.kS)(t.clone(),r);e.offset(r,0);let{xmin:n,xmax:o}=e;n=Number(n.toFixed(9)),o=Number(o.toFixed(9)),e.intersects(O)&&o!==w?(j=o>j?o:j,i=T(i,u),Z.push(i),D.push("cut")):e.intersects(N)&&n!==C?(j=o*(2*w)>j?o*(2*w):j,i=T(i,u,360),Z.push(i),D.push("cut")):D.push(i)}else D.push(t.clone());else D.push(t);else D.push(t);let x=(0,p.kd)(j,w),R=-90;const F=x,B=new l.A;for(;x>0;){const e=360*x-180;B.addPath([[e,R],[e,-1*R]]),R*=-1,x--}if(Z.length>0&&F>0){const t=S(Z,await async function(e,t,r,i){const n=(0,h.Dl)(e),o=t[0].spatialReference,s={...i,responseType:"json",query:{...n.query,f:"json",sr:(0,c.YX)(o),target:JSON.stringify({geometryType:(0,m.$B)(t[0]),geometries:t}),cutter:JSON.stringify(r)}},a=await(0,y.A)(n.path+"/cut",s),{cutIndexes:l,geometries:u=[]}=a.data;return{cutIndexes:l,geometries:u.map(e=>{const t=(0,f.rS)(e);return t.spatialReference=o,t})}}(n,Z,B,r)),i=[],o=[];for(let r=0;r<D.length;r++){const n=D[r];if("cut"!==n)o.push(n);else{const n=t.shift(),s=e[r];null!=s&&"polygon"===s.type&&s.rings&&s.rings.length>1&&n.rings.length>=s.rings.length?(i.push(n),o.push("simplify")):o.push(u?(0,d.Gh)(n):n)}}if(!i.length)return o;const s=await async function(e,t,r){const i="string"==typeof e?(0,g.An)(e):e,n=t[0].spatialReference,o=(0,m.$B)(t[0]),s={...r,query:{...i.query,f:"json",sr:(0,c.YX)(n),geometries:JSON.stringify((0,b.X)(t))}},{data:a}=await(0,y.A)(i.path+"/simplify",s);return(0,b.V)(a.geometries,o,n)}(n,i,r),a=[];for(let e=0;e<o.length;e++){const t=o[e];"simplify"!==t?a.push(t):a.push(u?(0,d.Gh)(s.shift()):s.shift())}return a}const P=[];for(let e=0;e<D.length;e++){const t=D[e];if("cut"!==t)P.push(t);else{const e=Z.shift();P.push(!0===u?(0,d.Gh)(e):e)}}return P}function I(e,t,r){const i=(0,c.Vp)(r);if(null==i)return e;const[n,o]=i.valid,s=2*o;let a=0,l=0;t>o?a=Math.ceil(Math.abs(t-o)/s):t<n&&(a=-Math.ceil(Math.abs(t-n)/s)),e>o?l=Math.ceil(Math.abs(e-o)/s):e<n&&(l=-Math.ceil(Math.abs(e-n)/s));let u=e+(a-l)*s;const p=u-t;return p>o?u-=s:p<n&&(u+=s),u}function O(e){const t=(0,c.Vp)(e);if(null==t)return null;const[r,i]=t.valid;return new n.hr(r,i)}const N=O(u.A.WGS84);O(u.A.WebMercator)},80754(e,t,r){r.d(t,{j7:()=>s,kS:()=>l,kd:()=>a,r8:()=>u});var i=r(82799),n=r(16930),o=r(60408);const s={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new i.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:n.A.WebMercator}),minus180Line:new i.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:n.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new i.A({paths:[[[180,-180],[180,180]]],spatialReference:n.A.WGS84}),minus180Line:new i.A({paths:[[[-180,-180],[-180,180]]],spatialReference:n.A.WGS84})}};function a(e,t){return Math.ceil((e-t)/(2*t))}function l(e,t){const r=u(e);for(const e of r)for(const r of e)r[0]+=t;return e}function u(e){return(0,o.Bi)(e)?e.rings:e.paths}},34507(e,t,r){r.r(t),r.d(t,{default:()=>Bt});var i=r(5482),n=r(92602),o=r(52106),s=r(37838),a=r(4576),l=r(7762),u=r(49186),p=r(53966),c=r(25728),d=r(93637),y=r(17676),m=r(36708),f=r(86211),h=r(84952),g=r(91429),b=r(46130),v=r(5443),w=r(48526),C=r(91218),T=r(16930),M=r(21325),S=r(4146),A=r(63074),I=r(16131),O=r(8303),N=r(25036),j=r(60694),Z=r(25482),D=r(53930),x=r(33910);let R=class extends Z.o{constructor(e){super(e),this.break=new D.A({color:[255,255,255],size:12,outline:{color:[0,122,194],width:3}}),this.first=new D.A({color:[0,255,0],size:20,outline:{color:[255,255,255],width:4}}),this.unlocated=new D.A({color:[255,0,0],size:12,outline:{color:[255,255,255],width:3}}),this.last=new D.A({color:[255,0,0],size:20,outline:{color:[255,255,255],width:4}}),this.middle=new D.A({color:[51,51,51],size:12,outline:{color:[0,122,194],width:3}}),this.waypoint=new D.A({color:[255,255,255],size:12,outline:{color:[0,122,194],width:3}})}};(0,i.Cg)([(0,g.MZ)({types:x.wC})],R.prototype,"break",void 0),(0,i.Cg)([(0,g.MZ)({types:x.wC})],R.prototype,"first",void 0),(0,i.Cg)([(0,g.MZ)({types:x.wC})],R.prototype,"unlocated",void 0),(0,i.Cg)([(0,g.MZ)({types:x.wC})],R.prototype,"last",void 0),(0,i.Cg)([(0,g.MZ)({types:x.wC})],R.prototype,"middle",void 0),(0,i.Cg)([(0,g.MZ)({types:x.wC})],R.prototype,"waypoint",void 0),R=(0,i.Cg)([(0,g.$K)("esri.layers.support.RouteStopSymbols")],R);var F=r(94985),B=r(31593);let P=class extends Z.o{constructor(e){super(e),this.directionLines=new B.A({color:[0,122,194],width:6}),this.directionPoints=new D.A({color:[255,255,255],size:6,outline:{color:[0,122,194],width:2}}),this.pointBarriers=new D.A({style:"x",size:10,outline:{color:[255,0,0],width:3}}),this.polygonBarriers=new F.A({color:[255,170,0,.6],outline:{width:7.5,color:[255,0,0,.6]}}),this.polylineBarriers=new B.A({width:7.5,color:[255,85,0,.7]}),this.routeInfo=new B.A({width:8,color:[20,89,127]}),this.stops=new R}};(0,i.Cg)([(0,g.MZ)({types:x.Y7})],P.prototype,"directionLines",void 0),(0,i.Cg)([(0,g.MZ)({types:x.wC})],P.prototype,"directionPoints",void 0),(0,i.Cg)([(0,g.MZ)({types:x.wC})],P.prototype,"pointBarriers",void 0),(0,i.Cg)([(0,g.MZ)({types:x.Ac})],P.prototype,"polygonBarriers",void 0),(0,i.Cg)([(0,g.MZ)({types:x.Y7})],P.prototype,"polylineBarriers",void 0),(0,i.Cg)([(0,g.MZ)({types:x.Y7})],P.prototype,"routeInfo",void 0),(0,i.Cg)([(0,g.MZ)({type:R})],P.prototype,"stops",void 0),P=(0,i.Cg)([(0,g.$K)("esri.layers.support.RouteSymbols")],P);var E=r(20655),_=r(80812),L=r(10407),J=r(65494),U=r(11254),k=r(2272),$=r(2073),W=r(93223);let V=class extends Z.o{constructor(e){super(e),this.dataType=null,this.name=null,this.parameterNames=null,this.restrictionUsageParameterName=null,this.timeNeutralAttributeName=null,this.trafficSupport=null,this.units=null,this.usageType=null}};(0,i.Cg)([(0,g.MZ)({type:String})],V.prototype,"dataType",void 0),(0,i.Cg)([(0,W.e)($.et,{ignoreUnknown:!1})],V.prototype,"name",void 0),(0,i.Cg)([(0,g.MZ)({type:[String]})],V.prototype,"parameterNames",void 0),(0,i.Cg)([(0,g.MZ)({type:String})],V.prototype,"restrictionUsageParameterName",void 0),(0,i.Cg)([(0,W.e)($.Mm,{ignoreUnknown:!1})],V.prototype,"timeNeutralAttributeName",void 0),(0,i.Cg)([(0,g.MZ)({type:String})],V.prototype,"trafficSupport",void 0),(0,i.Cg)([(0,W.e)($.dn)],V.prototype,"units",void 0),(0,i.Cg)([(0,W.e)($.WU)],V.prototype,"usageType",void 0),V=(0,i.Cg)([(0,g.$K)("esri.rest.support.NetworkAttribute")],V);const q=V;let G=class extends Z.o{constructor(e){super(e),this.buildTime=null,this.name=null,this.networkAttributes=null,this.networkSources=null,this.state=null}};(0,i.Cg)([(0,g.MZ)({type:Number})],G.prototype,"buildTime",void 0),(0,i.Cg)([(0,g.MZ)({type:String})],G.prototype,"name",void 0),(0,i.Cg)([(0,g.MZ)({type:[q]})],G.prototype,"networkAttributes",void 0),(0,i.Cg)([(0,g.MZ)()],G.prototype,"networkSources",void 0),(0,i.Cg)([(0,g.MZ)({type:String})],G.prototype,"state",void 0),G=(0,i.Cg)([(0,g.$K)("esri.rest.support.NetworkDataset")],G);const K=G;var z=r(69540),Y=r(36005),H=r(43937);let X=class extends((0,z.OU)(Z.o)){constructor(e){super(e),this.attributeParameterValues=null,this.description=null,this.distanceAttributeName=null,this.id=null,this.impedanceAttributeName=null,this.name=null,this.restrictionAttributeNames=null,this.simplificationTolerance=null,this.simplificationToleranceUnits=null,this.timeAttributeName=null,this.type=null,this.useHierarchy=null,this.uturnAtJunctions=null}readId(e,t){return t.id??t.itemId??null}readRestrictionAttributes(e,t){const{restrictionAttributeNames:r}=t;return null==r?null:r.map(e=>$.OC.fromJSON(e))}writeRestrictionAttributes(e,t,r){null!=e&&(t[r]=e.map(e=>$.OC.toJSON(e)))}};(0,i.Cg)([(0,g.MZ)({type:[Object],json:{write:!0}})],X.prototype,"attributeParameterValues",void 0),(0,i.Cg)([(0,g.MZ)({type:String,json:{write:!0}})],X.prototype,"description",void 0),(0,i.Cg)([(0,W.e)($.dd,{ignoreUnknown:!1})],X.prototype,"distanceAttributeName",void 0),(0,i.Cg)([(0,g.MZ)({type:String,json:{write:!0}})],X.prototype,"id",void 0),(0,i.Cg)([(0,Y.w)("id",["id","itemId"])],X.prototype,"readId",null),(0,i.Cg)([(0,W.e)($.et,{ignoreUnknown:!1})],X.prototype,"impedanceAttributeName",void 0),(0,i.Cg)([(0,g.MZ)({type:String,json:{write:!0}})],X.prototype,"name",void 0),(0,i.Cg)([(0,g.MZ)({type:[String],json:{write:!0}})],X.prototype,"restrictionAttributeNames",void 0),(0,i.Cg)([(0,Y.w)("restrictionAttributeNames")],X.prototype,"readRestrictionAttributes",null),(0,i.Cg)([(0,H.K)("restrictionAttributeNames")],X.prototype,"writeRestrictionAttributes",null),(0,i.Cg)([(0,g.MZ)({type:Number,json:{write:{allowNull:!0}}})],X.prototype,"simplificationTolerance",void 0),(0,i.Cg)([(0,W.e)($.hY)],X.prototype,"simplificationToleranceUnits",void 0),(0,i.Cg)([(0,W.e)($.Mm,{ignoreUnknown:!1})],X.prototype,"timeAttributeName",void 0),(0,i.Cg)([(0,W.e)($.ow)],X.prototype,"type",void 0),(0,i.Cg)([(0,g.MZ)({type:Boolean,json:{write:!0}})],X.prototype,"useHierarchy",void 0),(0,i.Cg)([(0,W.e)($.hE)],X.prototype,"uturnAtJunctions",void 0),X=(0,i.Cg)([(0,g.$K)("esri.rest.support.TravelMode")],X);let Q=class extends Z.o{constructor(e){super(e),this.accumulateAttributeNames=null,this.attributeParameterValues=null,this.currentVersion=null,this.defaultTravelMode=null,this.directionsLanguage=null,this.directionsLengthUnits=null,this.directionsSupportedLanguages=null,this.directionsTimeAttribute=null,this.hasZ=null,this.impedance=null,this.networkDataset=null,this.supportedTravelModes=null}readAccumulateAttributes(e){return null==e?null:e.map(e=>$.et.fromJSON(e))}writeAccumulateAttributes(e,t,r){e?.length&&(t[r]=e.map(e=>$.et.toJSON(e)))}get capabilities(){return{supportsNow:(this.currentVersion??10)>=10.81}}readDefaultTravelMode(e,t){const r=t.supportedTravelModes?.find(({id:e})=>e===t.defaultTravelMode)??t.supportedTravelModes?.find(({itemId:e})=>e===t.defaultTravelMode);return r?X.fromJSON(r):null}};function ee(e,t,r,i){i[r]=[t.length,t.length+e.length],e.forEach(e=>{t.push(e.geometry)})}async function te(e,t,r){if(!e)throw new u.A("network-service:missing-url","Url to Network service is missing");const i=(0,k.jV)({f:"json",token:t},r),{data:n}=await(0,U.A)(e,i),o=n.currentVersion>=10.4?async function(e,t,r){try{const i=(0,k.jV)({f:"json",token:t},r),n=(0,h.UC)(e)+"/retrieveTravelModes",{data:{supportedTravelModes:o,defaultTravelMode:s}}=await(0,U.A)(n,i);return{supportedTravelModes:o,defaultTravelMode:s}}catch(e){throw new u.A("network-service:retrieveTravelModes","Could not get to the NAServer's retrieveTravelModes.",{error:e})}}(e,t,r):async function(e,t){const r=(0,k.jV)({f:"json"},t),{data:i}=await(0,U.A)(e.replace(/\/rest\/.*$/i,"/info"),r);if(!i?.owningSystemUrl)return{supportedTravelModes:[],defaultTravelMode:null};const{owningSystemUrl:n}=i,o=(0,h.UC)(n)+"/sharing/rest/portals/self",{data:s}=await(0,U.A)(o,r),a=(0,d.wc)("helperServices.routingUtilities.url",s);if(!a)return{supportedTravelModes:[],defaultTravelMode:null};const l=(0,k.Dl)(n),u=/\/solve$/i.test(l.path)?"Route":/\/solveclosestfacility$/i.test(l.path)?"ClosestFacility":"ServiceAreas",p=(0,k.jV)({f:"json",serviceName:u},t),c=(0,h.UC)(a)+"/GetTravelModes/execute",y=await(0,U.A)(c,p),m=[];let f=null;if(y?.data?.results?.length){const e=y.data.results;for(const t of e)if("supportedTravelModes"===t.paramName){if(t.value?.features)for(const{attributes:e}of t.value.features)if(e){const t=JSON.parse(e.TravelMode);m.push(t)}}else"defaultTravelMode"===t.paramName&&(f=t.value)}return{supportedTravelModes:m,defaultTravelMode:f}}(e,r),{defaultTravelMode:s,supportedTravelModes:a}=await o;return n.defaultTravelMode=s,n.supportedTravelModes=a,Q.fromJSON(n)}(0,i.Cg)([(0,g.MZ)()],Q.prototype,"accumulateAttributeNames",void 0),(0,i.Cg)([(0,Y.w)("accumulateAttributeNames")],Q.prototype,"readAccumulateAttributes",null),(0,i.Cg)([(0,H.K)("accumulateAttributeNames")],Q.prototype,"writeAccumulateAttributes",null),(0,i.Cg)([(0,g.MZ)()],Q.prototype,"attributeParameterValues",void 0),(0,i.Cg)([(0,g.MZ)()],Q.prototype,"capabilities",null),(0,i.Cg)([(0,g.MZ)()],Q.prototype,"currentVersion",void 0),(0,i.Cg)([(0,g.MZ)()],Q.prototype,"defaultTravelMode",void 0),(0,i.Cg)([(0,Y.w)("defaultTravelMode",["defaultTravelMode","supportedTravelModes"])],Q.prototype,"readDefaultTravelMode",null),(0,i.Cg)([(0,g.MZ)()],Q.prototype,"directionsLanguage",void 0),(0,i.Cg)([(0,W.e)($.Z7)],Q.prototype,"directionsLengthUnits",void 0),(0,i.Cg)([(0,g.MZ)()],Q.prototype,"directionsSupportedLanguages",void 0),(0,i.Cg)([(0,W.e)($.Mm,{ignoreUnknown:!1})],Q.prototype,"directionsTimeAttribute",void 0),(0,i.Cg)([(0,g.MZ)()],Q.prototype,"hasZ",void 0),(0,i.Cg)([(0,W.e)($.et,{ignoreUnknown:!1})],Q.prototype,"impedance",void 0),(0,i.Cg)([(0,g.MZ)({type:K})],Q.prototype,"networkDataset",void 0),(0,i.Cg)([(0,g.MZ)({type:[X]})],Q.prototype,"supportedTravelModes",void 0),Q=(0,i.Cg)([(0,g.$K)("esri.rest.support.NetworkServiceDescription")],Q);var re=r(16649),ie=r(17136);function ne(e,t){if(null==e)return null;const r={},i=new RegExp(`^${t}`,"i");for(const n of Object.keys(e))if(i.test(n)){const i=n.slice(t.length);r[$.et.fromJSON(i)]=e[n]}return r}function oe(e,t,r){if(null!=e){t.attributes||(t.attributes={});for(const i in e){const n=$.et.toJSON(i);t.attributes[`${r}${n}`]=e[i]}}}function se(e){const t={};for(const r of Object.keys(e)){const i=r;t[$.et.fromJSON(i)]=e[r]}return t}function ae(e){const t={};for(const r of Object.keys(e)){const i=r;t[$.et.toJSON(i)]=e[r]}return t}function le(e,t){return null==e||null==t?null:Math.round((e-t)/6e4)}function ue(e){const t=e.toJSON(),r=t;return r.accumulateAttributeNames&&=t.accumulateAttributeNames?.join(),r.attributeParameterValues&&=JSON.stringify(t.attributeParameterValues),r.barriers&&=JSON.stringify(t.barriers),r.locateSettings&&=JSON.stringify(t.locateSettings),r.outSR&&=t.outSR?.wkid,r.overrides&&=JSON.stringify(t.overrides),r.polygonBarriers&&=JSON.stringify(t.polygonBarriers),r.polylineBarriers&&=JSON.stringify(t.polylineBarriers),r.restrictionAttributeNames&&=t.restrictionAttributeNames?.join(),r.stops&&=JSON.stringify(t.stops),r.travelMode&&=JSON.stringify(t.travelMode),r}var pe=r(22671),ce=r(66552),de=r(37807);const ye=new ce.J({0:"informative",1:"process-definition",2:"process-start",3:"process-stop",50:"warning",100:"error",101:"empty",200:"abort"});let me=class extends de.A{constructor(e){super(e),this.type=null}};(0,i.Cg)([(0,g.MZ)({type:String,json:{read:ye.read,write:ye.write}})],me.prototype,"type",void 0),me=(0,i.Cg)([(0,g.$K)("esri.rest.support.NAMessage")],me);const fe=me;var he=r(82799),ge=r(86738);let be=class extends Z.o{constructor(e){super(e)}};(0,i.Cg)([(0,g.MZ)({json:{read:{source:"string"}}})],be.prototype,"text",void 0),(0,i.Cg)([(0,W.e)($.Ec,{name:"stringType"})],be.prototype,"type",void 0),be=(0,i.Cg)([(0,g.$K)("esri.rest.support.DirectionsString")],be);const ve=be;let we=class extends Z.o{constructor(e){super(e),this.arriveTime=null,this.arriveTimeOffset=null,this.geometry=null,this.strings=null}readArriveTimeOffset(e,t){return le(t.ETA,t.arriveTimeUTC)}readGeometry(e,t){return ge.A.fromJSON(t.point)}};(0,i.Cg)([(0,g.MZ)({type:Date,json:{read:{source:"arriveTimeUTC"}}})],we.prototype,"arriveTime",void 0),(0,i.Cg)([(0,g.MZ)()],we.prototype,"arriveTimeOffset",void 0),(0,i.Cg)([(0,Y.w)("arriveTimeOffset",["arriveTimeUTC","ETA"])],we.prototype,"readArriveTimeOffset",null),(0,i.Cg)([(0,g.MZ)({type:ge.A})],we.prototype,"geometry",void 0),(0,i.Cg)([(0,Y.w)("geometry",["point"])],we.prototype,"readGeometry",null),(0,i.Cg)([(0,g.MZ)({type:[ve]})],we.prototype,"strings",void 0),we=(0,i.Cg)([(0,g.$K)("esri.rest.support.DirectionsEvent")],we);const Ce=we;let Te=class extends o.A{constructor(e){super(e),this.events=null,this.geometry=null,this.strings=null}set attributes(e){super.attributes=e}readGeometry(e,t){const r=function(e){if(null==e||""===e)return null;let t=0,r=0,i=0,n=0;const o=[];let s,a,l,u,p,c,d,y,m=0,f=0,h=0;if(p=e.match(/((\+|-)[^+\-|]+|\|)/g),p||(p=[]),0===parseInt(p[m],32)){m=2;const e=parseInt(p[m],32);m++,c=parseInt(p[m],32),m++,1&e&&(f=p.indexOf("|")+1,d=parseInt(p[f],32),f++),2&e&&(h=p.indexOf("|",f)+1,y=parseInt(p[h],32),h++)}else c=parseInt(p[m],32),m++;for(;m<p.length&&"|"!==p[m];){s=parseInt(p[m],32)+t,m++,t=s,a=parseInt(p[m],32)+r,m++,r=a;const e=[s/c,a/c];f&&(u=parseInt(p[f],32)+i,f++,i=u,e.push(u/d)),h&&(l=parseInt(p[h],32)+n,h++,n=l,e.push(l/y)),o.push(e)}return{paths:[o],hasZ:f>0,hasM:h>0}}(t.compressedGeometry);return null!=r?he.A.fromJSON(r):null}};(0,i.Cg)([(0,g.MZ)({type:[Ce]})],Te.prototype,"events",void 0),(0,i.Cg)([(0,g.MZ)({types:{base:null,key:"type",typeMap:{polygon:he.A},defaultKeyValue:"polygon"}})],Te.prototype,"geometry",void 0),(0,i.Cg)([(0,Y.w)("geometry",["compressedGeometry"])],Te.prototype,"readGeometry",null),(0,i.Cg)([(0,g.MZ)({type:[ve]})],Te.prototype,"strings",void 0),Te=(0,i.Cg)([(0,g.$K)("esri.rest.support.DirectionsFeature")],Te);const Me=Te;let Se=class extends pe.A{constructor(e){super(e),this.extent=null,this.features=[],this.geometryType="polyline",this.routeId=null,this.routeName=null,this.totalDriveTime=null,this.totalLength=null,this.totalTime=null}readFeatures(e,t){if(!e)return[];const r=t.summary.envelope.spatialReference??t.spatialReference,i=r&&T.A.fromJSON(r);return e.map(e=>{const t=Me.fromJSON(e);if(null!=t.geometry&&(t.geometry.spatialReference=i),null!=t.events)for(const e of t.events)null!=e.geometry&&(e.geometry.spatialReference=i);return t})}get mergedGeometry(){return this.features?function(e,t){if(0===e.length)return new he.A({spatialReference:t});const r=[];for(const t of e)for(const e of t.paths)r.push(...e);const i=[];r.forEach((e,t)=>{0!==t&&e[0]===r[t-1][0]&&e[1]===r[t-1][1]||i.push(e)});const{hasM:n,hasZ:o}=e[0];return new he.A({hasM:n,hasZ:o,paths:[i],spatialReference:t})}(this.features.map(({geometry:e})=>e),this.extent.spatialReference):null}get strings(){return this.features.flatMap(({strings:e})=>e).filter(a.Ru)}};(0,i.Cg)([(0,g.MZ)({type:v.A,json:{read:{source:"summary.envelope"}}})],Se.prototype,"extent",void 0),(0,i.Cg)([(0,g.MZ)({nonNullable:!0})],Se.prototype,"features",void 0),(0,i.Cg)([(0,Y.w)("features")],Se.prototype,"readFeatures",null),(0,i.Cg)([(0,g.MZ)()],Se.prototype,"geometryType",void 0),(0,i.Cg)([(0,g.MZ)({readOnly:!0})],Se.prototype,"mergedGeometry",null),(0,i.Cg)([(0,g.MZ)()],Se.prototype,"routeId",void 0),(0,i.Cg)([(0,g.MZ)()],Se.prototype,"routeName",void 0),(0,i.Cg)([(0,g.MZ)({value:null,readOnly:!0})],Se.prototype,"strings",null),(0,i.Cg)([(0,g.MZ)({json:{read:{source:"summary.totalDriveTime"}}})],Se.prototype,"totalDriveTime",void 0),(0,i.Cg)([(0,g.MZ)({json:{read:{source:"summary.totalLength"}}})],Se.prototype,"totalLength",void 0),(0,i.Cg)([(0,g.MZ)({json:{read:{source:"summary.totalTime"}}})],Se.prototype,"totalTime",void 0),Se=(0,i.Cg)([(0,g.$K)("esri.rest.support.DirectionsFeatureSet")],Se);const Ae=Se;let Ie=class extends Z.o{constructor(e){super(e),this.directionLines=null,this.directionPoints=null,this.directions=null,this.route=null,this.routeName=null,this.stops=null,this.traversedEdges=null,this.traversedJunctions=null,this.traversedTurns=null}};(0,i.Cg)([(0,g.MZ)({type:pe.A,json:{write:!0}})],Ie.prototype,"directionLines",void 0),(0,i.Cg)([(0,g.MZ)({type:pe.A,json:{write:!0}})],Ie.prototype,"directionPoints",void 0),(0,i.Cg)([(0,g.MZ)({type:Ae,json:{write:!0}})],Ie.prototype,"directions",void 0),(0,i.Cg)([(0,g.MZ)({type:o.A,json:{write:!0}})],Ie.prototype,"route",void 0),(0,i.Cg)([(0,g.MZ)({type:String,json:{write:!0}})],Ie.prototype,"routeName",void 0),(0,i.Cg)([(0,g.MZ)({type:[o.A],json:{write:!0}})],Ie.prototype,"stops",void 0),(0,i.Cg)([(0,g.MZ)({type:pe.A,json:{write:!0}})],Ie.prototype,"traversedEdges",void 0),(0,i.Cg)([(0,g.MZ)({type:pe.A,json:{write:!0}})],Ie.prototype,"traversedJunctions",void 0),(0,i.Cg)([(0,g.MZ)({type:pe.A,json:{write:!0}})],Ie.prototype,"traversedTurns",void 0),Ie=(0,i.Cg)([(0,g.$K)("esri.rest.support.RouteResult")],Ie);const Oe=Ie;function Ne(e){return e?pe.A.fromJSON(e).features.filter(a.Ru):[]}let je=class extends Z.o{constructor(e){super(e),this.checksum=null,this.messages=null,this.pointBarriers=null,this.polylineBarriers=null,this.polygonBarriers=null,this.routeResults=null}readPointBarriers(e,t){return Ne(t.barriers)}readPolylineBarriers(e){return Ne(e)}readPolygonBarriers(e){return Ne(e)}};function Ze(e){return e instanceof pe.A}async function De(e,t,r){const i=[],n=[],o={},s={},a=(0,k.Dl)(e),{path:l}=a;Ze(t.stops)&&ee(t.stops.features,n,"stops.features",o),Ze(t.pointBarriers)&&ee(t.pointBarriers.features,n,"pointBarriers.features",o),Ze(t.polylineBarriers)&&ee(t.polylineBarriers.features,n,"polylineBarriers.features",o),Ze(t.polygonBarriers)&&ee(t.polygonBarriers.features,n,"polygonBarriers.features",o);const u=await(0,ie.el)(n);for(const e in o){const t=o[e];i.push(e),s[e]=u.slice(t[0],t[1])}if(function(e,t){for(let r=0;r<t.length;r++){const i=e[t[r]];if(i&&i.length)for(const e of i)if(null!=e&&e.hasZ)return!0}return!1}(s,i)){let e=null;try{e=await te(l,t.apiKey,r)}catch{}e&&!e.hasZ&&function(e,t){for(let r=0;r<t.length;r++){const i=e[t[r]];if(i&&i.length)for(const e of i)e.z=void 0}p.A.getLogger("esri.rest.networkService").warnOnce("The remote Network Analysis service is powered by a network dataset which is not Z-aware.\nZ-coordinates of the input geometry are ignored.")}(s,i)}for(const e in s)s[e].forEach((r,i)=>{(0,re.Jt)(t,e)[i].geometry=r});const c={...r,query:{...a.query,...ue(t),f:"json"}},d=l.endsWith("/solve")?l:`${l}/solve`,{data:y}=await(0,U.A)(d,c);return function(e){const{barriers:t,checksum:r,directionLines:i,directionPoints:n,directions:o,messages:s,polygonBarriers:a,polylineBarriers:l,routes:u,stops:p,traversedEdges:c,traversedJunctions:d,traversedTurns:y}=e,m=e=>{const t=h.find(t=>t.routeName===e);if(null!=t)return t;const r={routeId:h.length+1,routeName:e};return h.push(r),r},f=e=>{const t=h.find(t=>t.routeId===e);if(null!=t)return t;const r={routeId:e,routeName:null};return h.push(r),r},h=[];u?.features.forEach((e,t)=>{e.geometry.spatialReference=u.spatialReference??void 0;const r=e.attributes.Name,i=t+1;h.push({routeId:i,routeName:r,route:e})}),o?.forEach(e=>{const{routeName:t}=e;m(t).directions=e});const g=p?.features.every(e=>null==e.attributes.RouteName)&&h.length>0?h[0].routeName:null;return p?.features.forEach(e=>{e.geometry&&(e.geometry.spatialReference??=p.spatialReference??void 0);const t=g??e.attributes.RouteName,r=m(t);r.stops??=[],r.stops.push(e)}),i?.features.forEach(e=>{const t=e.attributes.RouteID,r=f(t),{geometryType:n,spatialReference:o}=i;r.directionLines??={features:[],geometryType:n,spatialReference:o},r.directionLines.features.push(e)}),n?.features.forEach(e=>{const t=e.attributes.RouteID,r=f(t),{geometryType:i,spatialReference:o}=n;r.directionPoints??={features:[],geometryType:i,spatialReference:o},r.directionPoints.features.push(e)}),c?.features.forEach(e=>{const t=e.attributes.RouteID,r=f(t),{geometryType:i,spatialReference:n}=c;r.traversedEdges??={features:[],geometryType:i,spatialReference:n},r.traversedEdges.features.push(e)}),d?.features.forEach(e=>{const t=e.attributes.RouteID,r=f(t),{geometryType:i,spatialReference:n}=d;r.traversedJunctions??={features:[],geometryType:i,spatialReference:n},r.traversedJunctions.features.push(e)}),y?.features.forEach(e=>{const t=e.attributes.RouteID,r=f(t);r.traversedTurns??={features:[]},r.traversedTurns.features.push(e)}),je.fromJSON({barriers:t,checksum:r,messages:s,polygonBarriers:a,polylineBarriers:l,routeResults:h})}(y)}var xe;(0,i.Cg)([(0,g.MZ)({type:String})],je.prototype,"checksum",void 0),(0,i.Cg)([(0,g.MZ)({type:[fe]})],je.prototype,"messages",void 0),(0,i.Cg)([(0,g.MZ)({type:[o.A]})],je.prototype,"pointBarriers",void 0),(0,i.Cg)([(0,Y.w)("pointBarriers",["barriers"])],je.prototype,"readPointBarriers",null),(0,i.Cg)([(0,g.MZ)({type:[o.A]})],je.prototype,"polylineBarriers",void 0),(0,i.Cg)([(0,Y.w)("polylineBarriers")],je.prototype,"readPolylineBarriers",null),(0,i.Cg)([(0,g.MZ)({type:[o.A]})],je.prototype,"polygonBarriers",void 0),(0,i.Cg)([(0,Y.w)("polygonBarriers")],je.prototype,"readPolygonBarriers",null),(0,i.Cg)([(0,g.MZ)({type:[Oe]})],je.prototype,"routeResults",void 0),je=(0,i.Cg)([(0,g.$K)("esri.rest.support.RouteSolveResult")],je);let Re=class extends((0,z.OU)(Z.o)){static{xe=this}constructor(e){super(e),this.directionLineType=null,this.directionPointId=null,this.distance=null,this.duration=null,this.fromLevel=null,this.geometry=null,this.objectId=null,this.popupTemplate=null,this.symbol=null,this.toLevel=null,this.type="direction-line"}static{this.fields=[{name:"ObjectID",alias:"ObjectID",type:"esriFieldTypeOID",editable:!1,nullable:!1},{name:"DirectionLineType",alias:"Line Type",type:"esriFieldTypeInteger",editable:!0,nullable:!0},{name:"DirectionPointID",alias:"Direction Point ID",type:"esriFieldTypeInteger",editable:!0,nullable:!0},{name:"FromLevel",alias:"From Level",type:"esriFieldTypeInteger",editable:!0,nullable:!0},{name:"Meters",alias:"Meters",type:"esriFieldTypeDouble",editable:!0,nullable:!0},{name:"Minutes",alias:"Minutes",type:"esriFieldTypeDouble",editable:!0,nullable:!0},{name:"ToLevel",alias:"To Level",type:"esriFieldTypeInteger",editable:!0,nullable:!0}]}static fromGraphic(e){return new xe({directionLineType:$.gD.fromJSON(e.attributes.DirectionLineType),directionPointId:e.attributes.DirectionPointID,distance:e.attributes.Meters,duration:e.attributes.Minutes,fromLevel:e.attributes.FromLevel??null,geometry:e.geometry,objectId:e.attributes.ObjectID??e.attributes.__OBJECTID,popupTemplate:e.popupTemplate,symbol:e.symbol,toLevel:e.attributes.ToLevel??null})}toGraphic(){const e={ObjectID:this.objectId,DirectionLineType:this.directionLineType?$.gD.toJSON(this.directionLineType):null,DirectionPointID:this.directionPointId,Meters:this.distance,Minutes:this.duration};return null!=this.fromLevel&&(e.FromLevel=this.fromLevel),null!=this.toLevel&&(e.ToLevel=this.toLevel),new o.A({geometry:this.geometry,attributes:e,symbol:this.symbol,popupTemplate:this.popupTemplate})}};var Fe;(0,i.Cg)([(0,g.MZ)({type:$.gD.apiValues,json:{read:{source:"attributes.DirectionLineType",reader:$.gD.read}}})],Re.prototype,"directionLineType",void 0),(0,i.Cg)([(0,g.MZ)({json:{read:{source:"attributes.DirectionPointID"}}})],Re.prototype,"directionPointId",void 0),(0,i.Cg)([(0,g.MZ)({json:{read:{source:"attributes.Meters"}}})],Re.prototype,"distance",void 0),(0,i.Cg)([(0,g.MZ)({json:{read:{source:"attributes.Minutes"}}})],Re.prototype,"duration",void 0),(0,i.Cg)([(0,g.MZ)({json:{read:{source:"attributes.FromLevel"}}})],Re.prototype,"fromLevel",void 0),(0,i.Cg)([(0,g.MZ)({type:he.A})],Re.prototype,"geometry",void 0),(0,i.Cg)([(0,g.MZ)({json:{read:{source:"attributes.ObjectID"}}})],Re.prototype,"objectId",void 0),(0,i.Cg)([(0,g.MZ)({type:s.A})],Re.prototype,"popupTemplate",void 0),(0,i.Cg)([(0,g.MZ)({types:x.Es})],Re.prototype,"symbol",void 0),(0,i.Cg)([(0,g.MZ)({json:{read:{source:"attributes.ToLevel"}}})],Re.prototype,"toLevel",void 0),(0,i.Cg)([(0,g.MZ)({readOnly:!0,json:{read:!1}})],Re.prototype,"type",void 0),Re=xe=(0,i.Cg)([(0,g.$K)("esri.rest.support.DirectionLine")],Re);let Be=class extends((0,z.OU)(Z.o)){static{Fe=this}constructor(e){super(e),this.alternateName=null,this.arrivalTime=null,this.arrivalTimeOffset=null,this.azimuth=null,this.branchName=null,this.directionPointType=null,this.displayText=null,this.exitName=null,this.geometry=null,this.intersectingName=null,this.level=null,this.name=null,this.objectId=null,this.popupTemplate=null,this.sequence=null,this.shortVoiceInstruction=null,this.stopId=null,this.symbol=null,this.towardName=null,this.type="direction-point",this.voiceInstruction=null}readArrivalTime(e,t){return null!=t.attributes.ArrivalTime?new Date(t.attributes.ArrivalTime):null}static{this.fields=[{name:"ObjectID",alias:"ObjectID",type:"esriFieldTypeOID",editable:!1,nullable:!1},{name:"AlternateName",alias:"Alternate Name",type:"esriFieldTypeString",editable:!0,nullable:!0,length:2048},{name:"ArrivalTime",alias:"Arrival Time",type:"esriFieldTypeDate",editable:!0,nullable:!0,length:36},{name:"ArrivalUTCOffset",alias:"Arrival Time Offset",type:"esriFieldTypeInteger",editable:!0,nullable:!0},{name:"Azimuth",alias:"Azimuth",type:"esriFieldTypeDouble",editable:!0,nullable:!0},{name:"BranchName",alias:"Branch Name",type:"esriFieldTypeString",editable:!0,nullable:!0,length:2048},{name:"DirectionPointType",alias:"Directions Point Type",type:"esriFieldTypeInteger",editable:!0,nullable:!0},{name:"DisplayText",alias:"Display Text",type:"esriFieldTypeString",editable:!0,nullable:!0,length:2048},{name:"ExitName",alias:"Exit Name",type:"esriFieldTypeString",editable:!0,nullable:!0,length:2048},{name:"IntersectingName",alias:"Intersecting Name",type:"esriFieldTypeString",editable:!0,nullable:!0,length:2048},{name:"Level",alias:"Level",type:"esriFieldTypeInteger",editable:!0,nullable:!0},{name:"Name",alias:"Name",type:"esriFieldTypeString",editable:!0,nullable:!0,length:2048},{name:"Sequence",alias:"Sequence",type:"esriFieldTypeInteger",editable:!0,nullable:!0},{name:"ShortVoiceInstruction",alias:"Short Voice Instruction",type:"esriFieldTypeString",editable:!0,nullable:!0,length:2048},{name:"StopID",alias:"Stop ID",type:"esriFieldTypeInteger",editable:!0,nullable:!0},{name:"TowardName",alias:"Toward Name",type:"esriFieldTypeString",editable:!0,nullable:!0,length:2048},{name:"VoiceInstruction",alias:"Voice Instruction",type:"esriFieldTypeString",editable:!0,nullable:!0,length:2048}]}static fromGraphic(e){return new Fe({alternateName:e.attributes.AlternateName??null,arrivalTime:null!=e.attributes.ArrivalTime?new Date(e.attributes.ArrivalTime):null,arrivalTimeOffset:e.attributes.ArrivalUTCOffset??null,azimuth:e.attributes.Azimuth??null,branchName:e.attributes.BranchName??null,directionPointType:$._6.fromJSON(e.attributes.DirectionPointType),displayText:e.attributes.DisplayText??null,exitName:e.attributes.ExitName??null,geometry:e.geometry,intersectingName:e.attributes.IntersectingName??null,level:e.attributes.Level??null,name:e.attributes.Name??null,objectId:e.attributes.ObjectID??e.attributes.__OBJECTID,popupTemplate:e.popupTemplate,sequence:e.attributes.Sequence,shortVoiceInstruction:e.attributes.ShortVoiceInstruction??null,stopId:e.attributes.StopID??null,symbol:e.symbol,towardName:e.attributes.TowardName??null,voiceInstruction:e.attributes.VoiceInstruction??null})}toGraphic(){const e={ObjectID:this.objectId,DirectionPointType:this.directionPointType?$._6.toJSON(this.directionPointType):null,Sequence:this.sequence,StopID:this.stopId};return null!=this.alternateName&&(e.AlternateName=this.alternateName),null!=this.arrivalTime&&(e.ArrivalTime=this.arrivalTime.getTime()),null!=this.arrivalTimeOffset&&(e.ArrivalUTCOffset=this.arrivalTimeOffset),null!=this.azimuth&&(e.Azimuth=this.azimuth),null!=this.branchName&&(e.BranchName=this.branchName),null!=this.displayText&&(e.DisplayText=this.displayText),null!=this.exitName&&(e.ExitName=this.exitName),null!=this.intersectingName&&(e.IntersectingName=this.intersectingName),null!=this.level&&(e.Level=this.level),null!=this.name&&(e.Name=this.name),null!=this.shortVoiceInstruction&&(e.ShortVoiceInstruction=this.shortVoiceInstruction),null!=this.towardName&&(e.TowardName=this.towardName),null!=this.voiceInstruction&&(e.VoiceInstruction=this.voiceInstruction),new o.A({geometry:this.geometry,attributes:e,symbol:this.symbol,popupTemplate:this.popupTemplate})}};var Pe;(0,i.Cg)([(0,g.MZ)({json:{read:{source:"attributes.AlternateName"}}})],Be.prototype,"alternateName",void 0),(0,i.Cg)([(0,g.MZ)({type:Date})],Be.prototype,"arrivalTime",void 0),(0,i.Cg)([(0,Y.w)("arrivalTime",["attributes.ArrivalTime"])],Be.prototype,"readArrivalTime",null),(0,i.Cg)([(0,g.MZ)({json:{read:{source:"attributes.ArrivalUTCOffset"}}})],Be.prototype,"arrivalTimeOffset",void 0),(0,i.Cg)([(0,g.MZ)({json:{read:{source:"attributes.Azimuth"}}})],Be.prototype,"azimuth",void 0),(0,i.Cg)([(0,g.MZ)({json:{read:{source:"attributes.BranchName"}}})],Be.prototype,"branchName",void 0),(0,i.Cg)([(0,g.MZ)({type:$._6.apiValues,json:{read:{source:"attributes.DirectionPointType",reader:$._6.read}}})],Be.prototype,"directionPointType",void 0),(0,i.Cg)([(0,g.MZ)({json:{read:{source:"attributes.DisplayText"}}})],Be.prototype,"displayText",void 0),(0,i.Cg)([(0,g.MZ)({json:{read:{source:"attributes.ExitName"}}})],Be.prototype,"exitName",void 0),(0,i.Cg)([(0,g.MZ)({type:ge.A})],Be.prototype,"geometry",void 0),(0,i.Cg)([(0,g.MZ)({json:{read:{source:"attributes.IntersectingName"}}})],Be.prototype,"intersectingName",void 0),(0,i.Cg)([(0,g.MZ)({json:{read:{source:"attributes.Level"}}})],Be.prototype,"level",void 0),(0,i.Cg)([(0,g.MZ)({json:{read:{source:"attributes.Name"}}})],Be.prototype,"name",void 0),(0,i.Cg)([(0,g.MZ)({json:{read:{source:"attributes.ObjectID"}}})],Be.prototype,"objectId",void 0),(0,i.Cg)([(0,g.MZ)({type:s.A})],Be.prototype,"popupTemplate",void 0),(0,i.Cg)([(0,g.MZ)({json:{read:{source:"attributes.Sequence"}}})],Be.prototype,"sequence",void 0),(0,i.Cg)([(0,g.MZ)({json:{read:{source:"attributes.ShortVoiceInstruction"}}})],Be.prototype,"shortVoiceInstruction",void 0),(0,i.Cg)([(0,g.MZ)({json:{read:{source:"attributes.StopID"}}})],Be.prototype,"stopId",void 0),(0,i.Cg)([(0,g.MZ)({types:x.Es})],Be.prototype,"symbol",void 0),(0,i.Cg)([(0,g.MZ)({json:{read:{source:"attributes.TowardName"}}})],Be.prototype,"towardName",void 0),(0,i.Cg)([(0,g.MZ)({readOnly:!0,json:{read:!1}})],Be.prototype,"type",void 0),(0,i.Cg)([(0,g.MZ)({json:{read:{source:"attributes.VoiceInstruction"}}})],Be.prototype,"voiceInstruction",void 0),Be=Fe=(0,i.Cg)([(0,g.$K)("esri.rest.support.DirectionPoint")],Be);let Ee=class extends((0,z.OU)(Z.o)){static{Pe=this}constructor(e){super(e),this.addedCost=null,this.barrierType=null,this.costs=null,this.curbApproach=null,this.fullEdge=null,this.name=null,this.objectId=null,this.popupTemplate=null,this.positionAlong=null,this.sideOfEdge=null,this.sourceId=null,this.sourceOid=null,this.status=null,this.symbol=null,this.type="point-barrier"}readCosts(e,t){return ne(t.attributes,"Attr_")}writeCosts(e,t){oe(e,t,"Attr_")}set geometry(e){this._get("geometry")&&(this._set("positionAlong",null),this._set("sideOfEdge",null),this._set("sourceId",null),this._set("sourceOid",null),this._set("status",null)),this._set("geometry",e)}static{this.fields=[{name:"ObjectID",alias:"ObjectID",type:"esriFieldTypeOID",editable:!1,nullable:!1},{name:"AddedCost",alias:"Added Cost",type:"esriFieldTypeDouble",editable:!0,nullable:!0},{name:"BarrierType",alias:"Barrier Type",type:"esriFieldTypeInteger",editable:!0,nullable:!0},{name:"Costs",alias:"Costs",type:"esriFieldTypeString",editable:!0,nullable:!0,length:1048576},{name:"CurbApproach",alias:"Curb Approach",type:"esriFieldTypeInteger",editable:!0,nullable:!0},{name:"FullEdge",alias:"Full Edge",type:"esriFieldTypeInteger",editable:!0,nullable:!0},{name:"Name",alias:"Name",type:"esriFieldTypeString",editable:!0,nullable:!0,length:255},{name:"Status",alias:"Status",type:"esriFieldTypeInteger",editable:!0,nullable:!0}]}static fromGraphic(e){return new Pe({addedCost:e.attributes.AddedCost??null,barrierType:null!=e.attributes.BarrierType?$.iM.fromJSON(e.attributes.BarrierType):null,costs:null!=e.attributes.Costs?se(JSON.parse(e.attributes.Costs)):null,curbApproach:null!=e.attributes.CurbApproach?$.JJ.fromJSON(e.attributes.CurbApproach):null,fullEdge:null!=e.attributes.FullEdge?$.fe.fromJSON(e.attributes.FullEdge):null,geometry:e.geometry,name:e.attributes.Name??null,objectId:e.attributes.ObjectID??e.attributes.__OBJECTID,popupTemplate:e.popupTemplate,status:null!=e.attributes.Status?$.$r.fromJSON(e.attributes.Status):null,symbol:e.symbol})}toGraphic(){const e={ObjectID:this.objectId,AddedCost:this.addedCost,BarrierType:this.barrierType?$.iM.toJSON(this.barrierType):null,Costs:this.costs?JSON.stringify(ae(this.costs)):null,CurbApproach:this.curbApproach?$.JJ.toJSON(this.curbApproach):null,FullEdge:this.fullEdge?$.fe.toJSON(this.fullEdge):null,Name:this.name,Status:this.status?$.$r.toJSON(this.status):null};return new o.A({geometry:this.geometry,attributes:e,symbol:this.symbol,popupTemplate:this.popupTemplate})}};(0,i.Cg)([(0,g.MZ)()],Ee.prototype,"addedCost",void 0),(0,i.Cg)([(0,g.MZ)({type:$.iM.apiValues,json:{name:"attributes.BarrierType",read:{reader:$.iM.read},write:{writer:$.iM.write}}})],Ee.prototype,"barrierType",void 0),(0,i.Cg)([(0,g.MZ)()],Ee.prototype,"costs",void 0),(0,i.Cg)([(0,Y.w)("costs",["attributes"])],Ee.prototype,"readCosts",null),(0,i.Cg)([(0,H.K)("costs")],Ee.prototype,"writeCosts",null),(0,i.Cg)([(0,g.MZ)({type:$.JJ.apiValues,json:{read:{source:"attributes.CurbApproach",reader:$.JJ.read}}})],Ee.prototype,"curbApproach",void 0),(0,i.Cg)([(0,g.MZ)({type:$.fe.apiValues,json:{name:"attributes.FullEdge",read:{reader:$.fe.read},write:{writer:$.fe.write}}})],Ee.prototype,"fullEdge",void 0),(0,i.Cg)([(0,g.MZ)({type:ge.A,json:{write:!0},value:null})],Ee.prototype,"geometry",null),(0,i.Cg)([(0,g.MZ)({json:{name:"attributes.Name"}})],Ee.prototype,"name",void 0),(0,i.Cg)([(0,g.MZ)({json:{name:"attributes.ObjectID"}})],Ee.prototype,"objectId",void 0),(0,i.Cg)([(0,g.MZ)({type:s.A})],Ee.prototype,"popupTemplate",void 0),(0,i.Cg)([(0,g.MZ)({json:{name:"attributes.PosAlong"}})],Ee.prototype,"positionAlong",void 0),(0,i.Cg)([(0,g.MZ)({type:$.mt.apiValues,json:{name:"attributes.SideOfEdge",read:{reader:$.mt.read},write:{writer:$.mt.write}}})],Ee.prototype,"sideOfEdge",void 0),(0,i.Cg)([(0,g.MZ)({json:{name:"attributes.SourceID"}})],Ee.prototype,"sourceId",void 0),(0,i.Cg)([(0,g.MZ)({json:{name:"attributes.SourceOID"}})],Ee.prototype,"sourceOid",void 0),(0,i.Cg)([(0,g.MZ)({type:$.$r.apiValues,json:{read:{source:"attributes.Status",reader:$.$r.read}}})],Ee.prototype,"status",void 0),(0,i.Cg)([(0,g.MZ)({types:x.Es})],Ee.prototype,"symbol",void 0),(0,i.Cg)([(0,g.MZ)({readOnly:!0,json:{read:!1}})],Ee.prototype,"type",void 0),Ee=Pe=(0,i.Cg)([(0,g.$K)("esri.rest.support.PointBarrier")],Ee);var _e,Le=r(39829);let Je=class extends((0,z.OU)(Z.o)){static{_e=this}constructor(e){super(e),this.barrierType=null,this.costs=null,this.geometry=null,this.name=null,this.objectId=null,this.popupTemplate=null,this.scaleFactor=null,this.symbol=null,this.type="polygon-barrier"}readCosts(e,t){return ne(t.attributes,"Attr_")}writeCosts(e,t){oe(e,t,"Attr_")}static{this.fields=[{name:"ObjectID",alias:"ObjectID",type:"esriFieldTypeOID",editable:!1,nullable:!1},{name:"BarrierType",alias:"Barrier Type",type:"esriFieldTypeInteger",editable:!0,nullable:!0},{name:"Costs",alias:"Costs",type:"esriFieldTypeString",editable:!0,nullable:!0,length:1048576},{name:"Name",alias:"Name",type:"esriFieldTypeString",editable:!0,nullable:!0,length:255},{name:"ScaleFactor",alias:"Scale Factor",type:"esriFieldTypeDouble",editable:!0,nullable:!0}]}static fromGraphic(e){return new _e({barrierType:null!=e.attributes.BarrierType?$.iM.fromJSON(e.attributes.BarrierType):null,costs:null!=e.attributes.Costs?se(JSON.parse(e.attributes.Costs)):null,geometry:e.geometry,name:e.attributes.Name??null,objectId:e.attributes.ObjectID??e.attributes.__OBJECTID,popupTemplate:e.popupTemplate,scaleFactor:e.attributes.ScaleFactor??null,symbol:e.symbol})}toGraphic(){const e={ObjectID:this.objectId,BarrierType:this.barrierType?$.iM.toJSON(this.barrierType):null,Costs:this.costs?JSON.stringify(ae(this.costs)):null,Name:this.name??null,ScaleFactor:this.scaleFactor??null};return new o.A({geometry:this.geometry,attributes:e,symbol:this.symbol,popupTemplate:this.popupTemplate})}};var Ue;(0,i.Cg)([(0,g.MZ)({type:$.iM.apiValues,json:{name:"attributes.BarrierType",read:{reader:$.iM.read},write:{writer:$.iM.write}}})],Je.prototype,"barrierType",void 0),(0,i.Cg)([(0,g.MZ)()],Je.prototype,"costs",void 0),(0,i.Cg)([(0,Y.w)("costs",["attributes"])],Je.prototype,"readCosts",null),(0,i.Cg)([(0,H.K)("costs")],Je.prototype,"writeCosts",null),(0,i.Cg)([(0,g.MZ)({type:Le.A,json:{write:!0}})],Je.prototype,"geometry",void 0),(0,i.Cg)([(0,g.MZ)({json:{name:"attributes.Name"}})],Je.prototype,"name",void 0),(0,i.Cg)([(0,g.MZ)({json:{name:"attributes.ObjectID"}})],Je.prototype,"objectId",void 0),(0,i.Cg)([(0,g.MZ)({type:s.A})],Je.prototype,"popupTemplate",void 0),(0,i.Cg)([(0,g.MZ)()],Je.prototype,"scaleFactor",void 0),(0,i.Cg)([(0,g.MZ)({types:x.Es})],Je.prototype,"symbol",void 0),(0,i.Cg)([(0,g.MZ)({readOnly:!0,json:{read:!1}})],Je.prototype,"type",void 0),Je=_e=(0,i.Cg)([(0,g.$K)("esri.rest.support.PolygonBarrier")],Je);let ke=class extends((0,z.OU)(Z.o)){static{Ue=this}constructor(e){super(e),this.barrierType=null,this.costs=null,this.geometry=null,this.name=null,this.objectId=null,this.popupTemplate=null,this.scaleFactor=null,this.symbol=null,this.type="polyline-barrier"}readCosts(e,t){return ne(t.attributes,"Attr_")}static{this.fields=[{name:"ObjectID",alias:"ObjectID",type:"esriFieldTypeOID",editable:!1,nullable:!1},{name:"BarrierType",alias:"Barrier Type",type:"esriFieldTypeInteger",editable:!0,nullable:!0},{name:"Costs",alias:"Costs",type:"esriFieldTypeString",editable:!0,nullable:!0,length:1048576},{name:"Name",alias:"Name",type:"esriFieldTypeString",editable:!0,nullable:!0,length:255},{name:"ScaleFactor",alias:"Scale Factor",type:"esriFieldTypeDouble",editable:!0,nullable:!0}]}static fromGraphic(e){return new Ue({barrierType:null!=e.attributes.BarrierType?$.iM.fromJSON(e.attributes.BarrierType):null,costs:null!=e.attributes.Costs?se(JSON.parse(e.attributes.Costs)):null,geometry:e.geometry,name:e.attributes.Name??null,objectId:e.attributes.ObjectID??e.attributes.__OBJECTID,popupTemplate:e.popupTemplate,scaleFactor:e.attributes.ScaleFactor??null,symbol:e.symbol})}toGraphic(){const e={ObjectID:this.objectId,BarrierType:this.barrierType?$.iM.toJSON(this.barrierType):null,Costs:this.costs?JSON.stringify(ae(this.costs)):null,Name:this.name,ScaleFactor:this.scaleFactor};return new o.A({geometry:this.geometry,attributes:e,symbol:this.symbol,popupTemplate:this.popupTemplate})}};(0,i.Cg)([(0,g.MZ)({type:$.iM.apiValues,json:{read:{source:"attributes.BarrierType",reader:$.iM.read}}})],ke.prototype,"barrierType",void 0),(0,i.Cg)([(0,g.MZ)()],ke.prototype,"costs",void 0),(0,i.Cg)([(0,Y.w)("costs",["attributes"])],ke.prototype,"readCosts",null),(0,i.Cg)([(0,g.MZ)({type:he.A,json:{write:!0}})],ke.prototype,"geometry",void 0),(0,i.Cg)([(0,g.MZ)({json:{name:"attributes.Name"}})],ke.prototype,"name",void 0),(0,i.Cg)([(0,g.MZ)({json:{name:"attributes.ObjectID"}})],ke.prototype,"objectId",void 0),(0,i.Cg)([(0,g.MZ)({type:s.A})],ke.prototype,"popupTemplate",void 0),(0,i.Cg)([(0,g.MZ)()],ke.prototype,"scaleFactor",void 0),(0,i.Cg)([(0,g.MZ)({types:x.Es})],ke.prototype,"symbol",void 0),(0,i.Cg)([(0,g.MZ)({readOnly:!0,json:{read:!1}})],ke.prototype,"type",void 0),ke=Ue=(0,i.Cg)([(0,g.$K)("esri.rest.support.PolylineBarrier")],ke);let $e=class extends Z.o{constructor(e){super(e),this.accumulateAttributes=null,this.directionsLanguage=null,this.findBestSequence=null,this.preserveFirstStop=null,this.preserveLastStop=null,this.startTimeIsUTC=null,this.timeWindowsAreUTC=null,this.travelMode=null}readAccumulateAttributes(e){return null==e?null:e.map(e=>$.et.fromJSON(e))}writeAccumulateAttributes(e,t,r){e?.length&&(t[r]=e.map(e=>$.et.toJSON(e)))}};var We;(0,i.Cg)([(0,g.MZ)({type:[String],json:{name:"accumulateAttributeNames",write:!0}})],$e.prototype,"accumulateAttributes",void 0),(0,i.Cg)([(0,Y.w)("accumulateAttributes")],$e.prototype,"readAccumulateAttributes",null),(0,i.Cg)([(0,H.K)("accumulateAttributes")],$e.prototype,"writeAccumulateAttributes",null),(0,i.Cg)([(0,g.MZ)({type:String,json:{write:!0}})],$e.prototype,"directionsLanguage",void 0),(0,i.Cg)([(0,g.MZ)({type:Boolean,json:{write:!0}})],$e.prototype,"findBestSequence",void 0),(0,i.Cg)([(0,g.MZ)({type:Boolean,json:{write:!0}})],$e.prototype,"preserveFirstStop",void 0),(0,i.Cg)([(0,g.MZ)({type:Boolean,json:{write:!0}})],$e.prototype,"preserveLastStop",void 0),(0,i.Cg)([(0,g.MZ)({type:Boolean,json:{write:!0}})],$e.prototype,"startTimeIsUTC",void 0),(0,i.Cg)([(0,g.MZ)({type:Boolean,json:{write:!0}})],$e.prototype,"timeWindowsAreUTC",void 0),(0,i.Cg)([(0,g.MZ)({type:X,json:{write:!0}})],$e.prototype,"travelMode",void 0),$e=(0,i.Cg)([(0,g.$K)("esri.rest.support.RouteSettings")],$e);let Ve=class extends((0,z.OU)(Z.o)){static{We=this}constructor(e){super(e),this.analysisSettings=null,this.endTime=null,this.endTimeOffset=null,this.firstStopId=null,this.geometry=null,this.lastStopId=null,this.messages=null,this.name=null,this.objectId=null,this.popupTemplate=null,this.startTime=null,this.startTimeOffset=null,this.stopCount=null,this.symbol=null,this.totalCosts=null,this.totalDistance=null,this.totalDuration=null,this.totalLateDuration=null,this.totalViolations=null,this.totalWait=null,this.totalWaitDuration=null,this.type="route-info",this.version="1.0.0"}readEndTime(e,t){return null!=t.attributes.EndTimeUTC?new Date(t.attributes.EndTimeUTC):null}readEndTimeOffset(e,t){return le(t.attributes.EndTime,t.attributes.EndTimeUTC)}readStartTime(e,t){return null!=t.attributes.StartTimeUTC?new Date(t.attributes.StartTimeUTC):null}readStartTimeOffset(e,t){return le(t.attributes.StartTime,t.attributes.StartTimeUTC)}readTotalCosts(e,t){return ne(t.attributes,"Total_")}readTotalViolations(e,t){return ne(t.attributes,"TotalViolation_")}readTotalWait(e,t){return ne(t.attributes,"TotalWait_")}static{this.fields=[{name:"ObjectID",alias:"ObjectID",type:"esriFieldTypeOID",editable:!1,nullable:!1},{name:"AnalysisSettings",alias:"Analysis Settings",type:"esriFieldTypeString",editable:!0,nullable:!0,length:1048576},{name:"EndTime",alias:"End Time",type:"esriFieldTypeDate",editable:!0,nullable:!0,length:36},{name:"EndUTCOffset",alias:"End Time Offset",type:"esriFieldTypeInteger",editable:!0,nullable:!0},{name:"Messages",alias:"Messages",type:"esriFieldTypeString",editable:!0,nullable:!0,length:1048576},{name:"RouteName",alias:"Route Name",type:"esriFieldTypeString",editable:!0,nullable:!0,length:1024},{name:"StartTime",alias:"Start Time",type:"esriFieldTypeDate",editable:!0,nullable:!0,length:36},{name:"StartUTCOffset",alias:"Start Time Offset",type:"esriFieldTypeInteger",editable:!0,nullable:!0},{name:"TotalCosts",alias:"Total Costs",type:"esriFieldTypeString",editable:!0,nullable:!0,length:1048576},{name:"TotalLateMinutes",alias:"Total Late Minutes",type:"esriFieldTypeDouble",editable:!0,nullable:!0},{name:"TotalMeters",alias:"Total Meters",type:"esriFieldTypeDouble",editable:!0,nullable:!0},{name:"TotalMinutes",alias:"Total Minutes",type:"esriFieldTypeDouble",editable:!0,nullable:!0},{name:"TotalWaitMinutes",alias:"Total Wait Minutes",type:"esriFieldTypeDouble",editable:!0,nullable:!0},{name:"Version",alias:"Version",type:"esriFieldTypeString",editable:!0,nullable:!0,length:16}]}static fromGraphic(e){return new We({analysisSettings:null!=e.attributes.AnalysisSettings?$e.fromJSON(JSON.parse(e.attributes.AnalysisSettings)):null,endTime:null!=e.attributes.EndTime?new Date(e.attributes.EndTime):null,endTimeOffset:e.attributes.EndUTCOffset??null,geometry:e.geometry,messages:null!=e.attributes.Messages?JSON.parse(e.attributes.Messages):null,name:e.attributes.RouteName,objectId:e.attributes.ObjectID??e.attributes.__OBJECTID,popupTemplate:e.popupTemplate,startTime:null!=e.attributes.StartTime?new Date(e.attributes.StartTime):null,startTimeOffset:e.attributes.StartUTCOffset??null,symbol:e.symbol,totalCosts:null!=e.attributes.TotalCosts?se(JSON.parse(e.attributes.TotalCosts)):null,totalDistance:e.attributes.TotalMeters??null,totalDuration:e.attributes.TotalMinutes??null,totalLateDuration:e.attributes.TotalLateMinutes??null,totalWaitDuration:e.attributes.TotalWaitMinutes??null,version:e.attributes.Version})}toGraphic(){const e={ObjectID:this.objectId,AnalysisSettings:this.analysisSettings?JSON.stringify(this.analysisSettings.toJSON()):null,EndTime:this.endTime?.getTime()??null,EndUTCOffset:this.endTimeOffset,Messages:this.messages?JSON.stringify(this.messages):null,RouteName:this.name,StartTime:this.startTime?.getTime()??null,StartUTCOffset:this.startTimeOffset,TotalCosts:this.totalCosts?JSON.stringify(ae(this.totalCosts)):null,TotalLateMinutes:this.totalLateDuration,TotalMeters:this.totalDistance,TotalMinutes:this.totalDuration,TotalWaitMinutes:this.totalWaitDuration,Version:this.version};return new o.A({geometry:this.geometry,attributes:e,symbol:this.symbol,popupTemplate:this.popupTemplate})}};(0,i.Cg)([(0,g.MZ)()],Ve.prototype,"analysisSettings",void 0),(0,i.Cg)([(0,g.MZ)({type:Date})],Ve.prototype,"endTime",void 0),(0,i.Cg)([(0,Y.w)("endTime",["attributes.EndTimeUTC"])],Ve.prototype,"readEndTime",null),(0,i.Cg)([(0,g.MZ)()],Ve.prototype,"endTimeOffset",void 0),(0,i.Cg)([(0,Y.w)("endTimeOffset",["attributes.EndTime","attributes.EndTimeUTC"])],Ve.prototype,"readEndTimeOffset",null),(0,i.Cg)([(0,g.MZ)({json:{read:{source:"attributes.FirstStopID"}}})],Ve.prototype,"firstStopId",void 0),(0,i.Cg)([(0,g.MZ)({type:he.A})],Ve.prototype,"geometry",void 0),(0,i.Cg)([(0,g.MZ)({json:{read:{source:"attributes.LastStopID"}}})],Ve.prototype,"lastStopId",void 0),(0,i.Cg)([(0,g.MZ)()],Ve.prototype,"messages",void 0),(0,i.Cg)([(0,g.MZ)({json:{read:{source:"attributes.Name"}}})],Ve.prototype,"name",void 0),(0,i.Cg)([(0,g.MZ)({json:{read:{source:"attributes.ObjectID"}}})],Ve.prototype,"objectId",void 0),(0,i.Cg)([(0,g.MZ)({type:s.A})],Ve.prototype,"popupTemplate",void 0),(0,i.Cg)([(0,g.MZ)({type:Date})],Ve.prototype,"startTime",void 0),(0,i.Cg)([(0,Y.w)("startTime",["attributes.StartTimeUTC"])],Ve.prototype,"readStartTime",null),(0,i.Cg)([(0,g.MZ)()],Ve.prototype,"startTimeOffset",void 0),(0,i.Cg)([(0,Y.w)("startTimeOffset",["attributes.StartTime","attributes.StartTimeUTC"])],Ve.prototype,"readStartTimeOffset",null),(0,i.Cg)([(0,g.MZ)({json:{read:{source:"attributes.StopCount"}}})],Ve.prototype,"stopCount",void 0),(0,i.Cg)([(0,g.MZ)({types:x.Es})],Ve.prototype,"symbol",void 0),(0,i.Cg)([(0,g.MZ)()],Ve.prototype,"totalCosts",void 0),(0,i.Cg)([(0,Y.w)("totalCosts",["attributes"])],Ve.prototype,"readTotalCosts",null),(0,i.Cg)([(0,g.MZ)()],Ve.prototype,"totalDistance",void 0),(0,i.Cg)([(0,g.MZ)()],Ve.prototype,"totalDuration",void 0),(0,i.Cg)([(0,g.MZ)()],Ve.prototype,"totalLateDuration",void 0),(0,i.Cg)([(0,g.MZ)()],Ve.prototype,"totalViolations",void 0),(0,i.Cg)([(0,Y.w)("totalViolations",["attributes"])],Ve.prototype,"readTotalViolations",null),(0,i.Cg)([(0,g.MZ)()],Ve.prototype,"totalWait",void 0),(0,i.Cg)([(0,Y.w)("totalWait",["attributes"])],Ve.prototype,"readTotalWait",null),(0,i.Cg)([(0,g.MZ)()],Ve.prototype,"totalWaitDuration",void 0),(0,i.Cg)([(0,g.MZ)({readOnly:!0,json:{read:!1}})],Ve.prototype,"type",void 0),(0,i.Cg)([(0,g.MZ)()],Ve.prototype,"version",void 0),Ve=We=(0,i.Cg)([(0,g.$K)("esri.rest.support.RouteInfo")],Ve);var qe=r(56507),Ge=r(24097),Ke=r(65864),ze=r(50498);let Ye=class extends((0,z.OU)(Z.o)){constructor(e){super(e),this.doNotLocateOnRestrictedElements=null,this.geometry=null,this.geometryType=null,this.name=null,this.spatialRelationship=null,this.type="layer",this.where=null}};(0,i.Cg)([(0,g.MZ)({type:Boolean,json:{write:!0}})],Ye.prototype,"doNotLocateOnRestrictedElements",void 0),(0,i.Cg)([(0,g.MZ)({types:ze.yR,json:{read:Ke.rS,write:!0}})],Ye.prototype,"geometry",void 0),(0,i.Cg)([(0,W.e)($.Vj)],Ye.prototype,"geometryType",void 0),(0,i.Cg)([(0,g.MZ)({type:String,json:{name:"layerName",write:!0}})],Ye.prototype,"name",void 0),(0,i.Cg)([(0,W.e)($.vS,{name:"spatialRel"})],Ye.prototype,"spatialRelationship",void 0),(0,i.Cg)([(0,g.MZ)({type:String,json:{write:!0}})],Ye.prototype,"type",void 0),(0,i.Cg)([(0,g.MZ)({type:String,json:{write:!0}})],Ye.prototype,"where",void 0),Ye=(0,i.Cg)([(0,g.$K)("esri.rest.support.DataLayer")],Ye);var He=r(10107),Xe=r(64108);let Qe=class extends((0,z.OU)(Z.o)){constructor(e){super(e),this.name=null,this.where=null}};(0,i.Cg)([(0,He.MZ)({json:{write:!0}})],Qe.prototype,"name",void 0),(0,i.Cg)([(0,He.MZ)({json:{write:!0}})],Qe.prototype,"where",void 0),Qe=(0,i.Cg)([(0,Xe.$)("esri.rest.support.LocateSettingSource")],Qe);const et=Qe;let tt=class extends((0,z.OU)(Z.o)){constructor(e){super(e),this.allowAutoRelocate=null,this.sources=null}};(0,i.Cg)([(0,He.MZ)({type:Boolean,json:{write:!0}})],tt.prototype,"allowAutoRelocate",void 0),(0,i.Cg)([(0,He.MZ)({type:[et],json:{write:!0}})],tt.prototype,"sources",void 0),tt=(0,i.Cg)([(0,Xe.$)("esri.rest.support.LocateSettingBase")],tt);const rt=tt;let it=class extends rt{constructor(e){super(e),this.tolerance=null,this.toleranceUnits=null}};(0,i.Cg)([(0,He.MZ)({type:Number,json:{write:!0}})],it.prototype,"tolerance",void 0),(0,i.Cg)([(0,W.e)($.Y8)],it.prototype,"toleranceUnits",void 0),it=(0,i.Cg)([(0,Xe.$)("esri.rest.support.LocateSetting")],it);const nt=it;let ot=class extends((0,z.OU)(Z.o)){constructor(e){super(e),this.stops=null,this.pointBarriers=null,this.polylineBarriers=null,this.polygonBarriers=null}};(0,i.Cg)([(0,He.MZ)({type:nt,json:{write:!0}})],ot.prototype,"stops",void 0),(0,i.Cg)([(0,He.MZ)({type:nt,json:{name:"barriers",write:!0}})],ot.prototype,"pointBarriers",void 0),(0,i.Cg)([(0,He.MZ)({type:rt,json:{write:!0}})],ot.prototype,"polylineBarriers",void 0),(0,i.Cg)([(0,He.MZ)({type:rt,json:{write:!0}})],ot.prototype,"polygonBarriers",void 0),ot=(0,i.Cg)([(0,Xe.$)("esri.rest.support.LocateSettingsOverrides")],ot);const st=ot;let at=class extends((0,z.OU)(Z.o)){constructor(e){super(e),this.default=null,this.overrides=null}};(0,i.Cg)([(0,He.MZ)({type:nt,json:{write:!0}})],at.prototype,"default",void 0),(0,i.Cg)([(0,He.MZ)({type:st,json:{write:!0}})],at.prototype,"overrides",void 0),at=(0,i.Cg)([(0,Xe.$)("esri.rest.support.LocateSettings")],at);const lt=at;var ut;let pt=class extends pe.A{static{ut=this}constructor(e){super(e),this.doNotLocateOnRestrictedElements=null}clone(){return new ut({doNotLocateOnRestrictedElements:this.doNotLocateOnRestrictedElements,...this.cloneProperties()})}};(0,i.Cg)([(0,g.MZ)({type:Boolean,json:{write:!0}})],pt.prototype,"doNotLocateOnRestrictedElements",void 0),pt=ut=(0,i.Cg)([(0,g.$K)("esri.rest.support.NetworkFeatureSet")],pt);let ct=class extends((0,z.OU)(Z.o)){constructor(e){super(e),this.doNotLocateOnRestrictedElements=null,this.url=null}};var dt;(0,i.Cg)([(0,g.MZ)({type:Boolean,json:{write:!0}})],ct.prototype,"doNotLocateOnRestrictedElements",void 0),(0,i.Cg)([(0,g.MZ)({type:String,json:{write:!0}})],ct.prototype,"url",void 0),ct=(0,i.Cg)([(0,g.$K)("esri.rest.support.NetworkUrl")],ct);let yt=class extends((0,z.OU)(Z.o)){static{dt=this}constructor(e){super(e),this.accumulateAttributes=null,this.apiKey=null,this.attributeParameterValues=null,this.checksum=null,this.directionsLanguage=null,this.directionsLengthUnits=null,this.directionsOutputType=null,this.directionsStyleName=null,this.directionsTimeAttribute=null,this.findBestSequence=null,this.geometryPrecision=null,this.geometryPrecisionM=null,this.geometryPrecisionZ=null,this.ignoreInvalidLocations=null,this.impedanceAttribute=null,this.locateSettings=null,this.outputGeometryPrecision=null,this.outputGeometryPrecisionUnits=null,this.outputLines="true-shape",this.outSpatialReference=null,this.overrides=null,this.pointBarriers=null,this.polygonBarriers=null,this.polylineBarriers=null,this.preserveFirstStop=null,this.preserveLastStop=null,this.preserveObjectID=null,this.restrictionAttributes=null,this.restrictUTurns=null,this.returnBarriers=!1,this.returnDirections=!1,this.returnEmptyResults=null,this.returnPolygonBarriers=!1,this.returnPolylineBarriers=!1,this.returnRoutes=!0,this.returnStops=!1,this.returnTraversedEdges=null,this.returnTraversedJunctions=null,this.returnTraversedTurns=null,this.returnZ=!0,this.startTime=null,this.startTimeIsUTC=!0,this.stops=null,this.timeWindowsAreUTC=null,this.travelMode=null,this.useHierarchy=null,this.useTimeWindows=null}static from(e){return(0,qe.PZ)(dt,e)}readAccumulateAttributes(e){return null==e?null:e.map(e=>$.et.fromJSON(e))}writeAccumulateAttributes(e,t,r){e?.length&&(t[r]=e.map(e=>$.et.toJSON(e)))}writePointBarriers(e,t,r){mt(e,t,r)}writePolygonBarrier(e,t,r){mt(e,t,r)}writePolylineBarrier(e,t,r){mt(e,t,r)}readRestrictionAttributes(e){return null==e?null:e.map(e=>$.OC.fromJSON(e))}writeRestrictionAttributes(e,t,r){e?.length&&(t[r]=e.map(e=>$.OC.toJSON(e)))}readStartTime(e,t){const{startTime:r}=t;return null==r?null:"now"===r?"now":new Date(r)}writeStartTime(e,t){null!=e&&(t.startTime="now"===e?"now":e.getTime())}readStops(e,t){return function(e){return function(e){return e&&"type"in e}(e)?Ye.fromJSON(e):function(e){return e&&"url"in e}(e)?ct.fromJSON(e):function(e){return e&&"features"in e&&"doNotLocateOnRestrictedElements"in e}(e)?pt.fromJSON(e):function(e){return e&&"features"in e}(e)?pe.A.fromJSON(e):null}(t.stops)}writeStops(e,t,r){mt(e,t,r)}};function mt(e,t,r){null!=e&&(t[r]=l.A.isCollection(e)?{features:e.toArray().map(e=>e.toJSON())}:e.toJSON())}var ft;(0,i.Cg)([(0,g.MZ)({type:[String],json:{name:"accumulateAttributeNames",write:!0}})],yt.prototype,"accumulateAttributes",void 0),(0,i.Cg)([(0,Y.w)("accumulateAttributes")],yt.prototype,"readAccumulateAttributes",null),(0,i.Cg)([(0,H.K)("accumulateAttributes")],yt.prototype,"writeAccumulateAttributes",null),(0,i.Cg)([(0,g.MZ)(Ge.K)],yt.prototype,"apiKey",void 0),(0,i.Cg)([(0,g.MZ)({json:{write:!0}})],yt.prototype,"attributeParameterValues",void 0),(0,i.Cg)([(0,g.MZ)({type:String,json:{write:!0}})],yt.prototype,"checksum",void 0),(0,i.Cg)([(0,g.MZ)({type:String,json:{write:!0}})],yt.prototype,"directionsLanguage",void 0),(0,i.Cg)([(0,W.e)($.Z7)],yt.prototype,"directionsLengthUnits",void 0),(0,i.Cg)([(0,W.e)($.aJ)],yt.prototype,"directionsOutputType",void 0),(0,i.Cg)([(0,W.e)($.$n)],yt.prototype,"directionsStyleName",void 0),(0,i.Cg)([(0,W.e)($.Mm,{name:"directionsTimeAttributeName",ignoreUnknown:!1})],yt.prototype,"directionsTimeAttribute",void 0),(0,i.Cg)([(0,g.MZ)({type:Boolean,json:{write:!0}})],yt.prototype,"findBestSequence",void 0),(0,i.Cg)([(0,g.MZ)({type:Number,json:{write:!0}})],yt.prototype,"geometryPrecision",void 0),(0,i.Cg)([(0,g.MZ)({type:Number,json:{write:!0}})],yt.prototype,"geometryPrecisionM",void 0),(0,i.Cg)([(0,g.MZ)({type:Number,json:{write:!0}})],yt.prototype,"geometryPrecisionZ",void 0),(0,i.Cg)([(0,g.MZ)({type:Boolean,json:{write:!0}})],yt.prototype,"ignoreInvalidLocations",void 0),(0,i.Cg)([(0,W.e)($.et,{name:"impedanceAttributeName",ignoreUnknown:!1})],yt.prototype,"impedanceAttribute",void 0),(0,i.Cg)([(0,g.MZ)({type:lt,json:{write:!0}})],yt.prototype,"locateSettings",void 0),(0,i.Cg)([(0,g.MZ)({type:Number,json:{write:!0}})],yt.prototype,"outputGeometryPrecision",void 0),(0,i.Cg)([(0,W.e)($.hY)],yt.prototype,"outputGeometryPrecisionUnits",void 0),(0,i.Cg)([(0,W.e)($.Sr)],yt.prototype,"outputLines",void 0),(0,i.Cg)([(0,g.MZ)({type:T.A,json:{name:"outSR",write:!0}})],yt.prototype,"outSpatialReference",void 0),(0,i.Cg)([(0,g.MZ)({json:{write:!0}})],yt.prototype,"overrides",void 0),(0,i.Cg)([(0,g.MZ)({json:{name:"barriers",write:!0}})],yt.prototype,"pointBarriers",void 0),(0,i.Cg)([(0,H.K)("pointBarriers")],yt.prototype,"writePointBarriers",null),(0,i.Cg)([(0,g.MZ)({json:{write:!0}})],yt.prototype,"polygonBarriers",void 0),(0,i.Cg)([(0,H.K)("polygonBarriers")],yt.prototype,"writePolygonBarrier",null),(0,i.Cg)([(0,g.MZ)({json:{write:!0}})],yt.prototype,"polylineBarriers",void 0),(0,i.Cg)([(0,H.K)("polylineBarriers")],yt.prototype,"writePolylineBarrier",null),(0,i.Cg)([(0,g.MZ)({type:Boolean,json:{write:!0}})],yt.prototype,"preserveFirstStop",void 0),(0,i.Cg)([(0,g.MZ)({type:Boolean,json:{write:!0}})],yt.prototype,"preserveLastStop",void 0),(0,i.Cg)([(0,g.MZ)({type:Boolean,json:{write:!0}})],yt.prototype,"preserveObjectID",void 0),(0,i.Cg)([(0,g.MZ)({type:[String],json:{name:"restrictionAttributeNames",write:!0}})],yt.prototype,"restrictionAttributes",void 0),(0,i.Cg)([(0,Y.w)("restrictionAttributes")],yt.prototype,"readRestrictionAttributes",null),(0,i.Cg)([(0,H.K)("restrictionAttributes")],yt.prototype,"writeRestrictionAttributes",null),(0,i.Cg)([(0,W.e)($.hE)],yt.prototype,"restrictUTurns",void 0),(0,i.Cg)([(0,g.MZ)({type:Boolean,json:{write:!0}})],yt.prototype,"returnBarriers",void 0),(0,i.Cg)([(0,g.MZ)({type:Boolean,json:{write:!0}})],yt.prototype,"returnDirections",void 0),(0,i.Cg)([(0,g.MZ)({type:Boolean,json:{write:!0}})],yt.prototype,"returnEmptyResults",void 0),(0,i.Cg)([(0,g.MZ)({type:Boolean,json:{write:!0}})],yt.prototype,"returnPolygonBarriers",void 0),(0,i.Cg)([(0,g.MZ)({type:Boolean,json:{write:!0}})],yt.prototype,"returnPolylineBarriers",void 0),(0,i.Cg)([(0,g.MZ)({type:Boolean,json:{write:!0}})],yt.prototype,"returnRoutes",void 0),(0,i.Cg)([(0,g.MZ)({type:Boolean,json:{write:!0}})],yt.prototype,"returnStops",void 0),(0,i.Cg)([(0,g.MZ)({type:Boolean,json:{write:!0}})],yt.prototype,"returnTraversedEdges",void 0),(0,i.Cg)([(0,g.MZ)({type:Boolean,json:{write:!0}})],yt.prototype,"returnTraversedJunctions",void 0),(0,i.Cg)([(0,g.MZ)({type:Boolean,json:{write:!0}})],yt.prototype,"returnTraversedTurns",void 0),(0,i.Cg)([(0,g.MZ)({type:Boolean,json:{write:!0}})],yt.prototype,"returnZ",void 0),(0,i.Cg)([(0,g.MZ)({json:{write:!0}})],yt.prototype,"startTime",void 0),(0,i.Cg)([(0,Y.w)("startTime")],yt.prototype,"readStartTime",null),(0,i.Cg)([(0,H.K)("startTime")],yt.prototype,"writeStartTime",null),(0,i.Cg)([(0,g.MZ)({type:Boolean,json:{write:!0}})],yt.prototype,"startTimeIsUTC",void 0),(0,i.Cg)([(0,g.MZ)({json:{write:!0}})],yt.prototype,"stops",void 0),(0,i.Cg)([(0,Y.w)("stops")],yt.prototype,"readStops",null),(0,i.Cg)([(0,H.K)("stops")],yt.prototype,"writeStops",null),(0,i.Cg)([(0,g.MZ)({type:Boolean,json:{write:!0}})],yt.prototype,"timeWindowsAreUTC",void 0),(0,i.Cg)([(0,g.MZ)({type:X,json:{write:!0}})],yt.prototype,"travelMode",void 0),(0,i.Cg)([(0,g.MZ)({type:Boolean,json:{write:!0}})],yt.prototype,"useHierarchy",void 0),(0,i.Cg)([(0,g.MZ)({type:Boolean,json:{write:!0}})],yt.prototype,"useTimeWindows",void 0),yt=dt=(0,i.Cg)([(0,g.$K)("esri.rest.support.RouteParameters")],yt);let ht=class extends((0,z.OU)(Z.o)){static{ft=this}constructor(e){super(e),this.arriveCurbApproach=null,this.arriveTime=null,this.arriveTimeOffset=null,this.bearing=null,this.bearingTol=null,this.cumulativeCosts=null,this.cumulativeDistance=null,this.cumulativeDuration=null,this.curbApproach=null,this.departCurbApproach=null,this.departTime=null,this.departTimeOffset=null,this.distanceToNetworkInMeters=null,this.lateDuration=null,this.locationType=null,this.name=null,this.navLatency=null,this.objectId=null,this.popupTemplate=null,this.positionAlong=null,this.routeName=null,this.serviceCosts=null,this.serviceDistance=null,this.serviceDuration=null,this.sequence=null,this.sideOfEdge=null,this.snapX=null,this.snapY=null,this.snapZ=null,this.sourceId=null,this.sourceOid=null,this.status=null,this.symbol=null,this.timeWindowEnd=null,this.timeWindowEndOffset=null,this.timeWindowStart=null,this.timeWindowStartOffset=null,this.type="stop",this.violations=null,this.waitDuration=null,this.wait=null}readArriveTimeOffset(e,t){return le(t.attributes.ArriveTime,t.attributes.ArriveTimeUTC)}readCumulativeCosts(e,t){return ne(t.attributes,"Cumul_")}readDepartTimeOffset(e,t){return le(t.attributes.DepartTime,t.attributes.DepartTimeUTC)}set geometry(e){this._get("geometry")&&(this._set("positionAlong",null),this._set("sideOfEdge",null),this._set("sourceId",null),this._set("sourceOid",null),this._set("status",null)),this._set("geometry",e)}readServiceCosts(e,t){return ne(t.attributes,"Attr_")}writeServiceCosts(e,t){oe(e,t,"Attr_")}writeTimeWindowEnd(e,t){null!=e&&(t.attributes||(t.attributes={}),t.attributes.TimeWindowEnd=e.getTime())}writeTimeWindowStart(e,t){null!=e&&(t.attributes||(t.attributes={}),t.attributes.TimeWindowStart=e.getTime())}readViolations(e,t){return ne(t.attributes,"Violation_")}readWait(e,t){return ne(t.attributes,"Wait_")}static{this.fields=[{name:"ObjectID",alias:"ObjectID",type:"esriFieldTypeOID",editable:!1,nullable:!1},{name:"ArrivalCurbApproach",alias:"Arrival Curb Approach",type:"esriFieldTypeInteger",editable:!0,nullable:!0},{name:"ArrivalTime",alias:"Arrival Time",type:"esriFieldTypeDate",editable:!0,nullable:!0,length:36},{name:"ArrivalUTCOffset",alias:"Arrival Time Offset",type:"esriFieldTypeInteger",editable:!0,nullable:!0},{name:"CumulativeCosts",alias:"Cumulative Costs",type:"esriFieldTypeString",editable:!0,nullable:!0,length:1048576},{name:"CumulativeMeters",alias:"Cumulative Meters",type:"esriFieldTypeDouble",editable:!0,nullable:!0},{name:"CumulativeMinutes",alias:"Cumulative Minutes",type:"esriFieldTypeDouble",editable:!0,nullable:!0},{name:"CurbApproach",alias:"Curb Approach",type:"esriFieldTypeInteger",editable:!0,nullable:!0},{name:"DepartureCurbApproach",alias:"Departure Curb Approach",type:"esriFieldTypeInteger",editable:!0,nullable:!0},{name:"DepartureTime",alias:"Departure Time",type:"esriFieldTypeDate",editable:!0,nullable:!0,length:36},{name:"DepartureUTCOffset",alias:"Departure Time Offset",type:"esriFieldTypeInteger",editable:!0,nullable:!0},{name:"LateMinutes",alias:"Minutes Late",type:"esriFieldTypeDouble",editable:!0,nullable:!0},{name:"LocationType",alias:"Location Type",type:"esriFieldTypeInteger",editable:!0,nullable:!0},{name:"Name",alias:"Name",type:"esriFieldTypeString",editable:!0,nullable:!0,length:255},{name:"RouteName",alias:"Route Name",type:"esriFieldTypeString",editable:!0,nullable:!0,length:255},{name:"Sequence",alias:"Sequence",type:"esriFieldTypeInteger",editable:!0,nullable:!0},{name:"ServiceCosts",alias:"Service Costs",type:"esriFieldTypeString",editable:!0,nullable:!0,length:1048576},{name:"ServiceMeters",alias:"Service Meters",type:"esriFieldTypeDouble",editable:!0,nullable:!0},{name:"ServiceMinutes",alias:"Service Minutes",type:"esriFieldTypeDouble",editable:!0,nullable:!0},{name:"Status",alias:"Status",type:"esriFieldTypeInteger",editable:!0,nullable:!0},{name:"TimeWindowEnd",alias:"Time Window End",type:"esriFieldTypeDate",editable:!0,nullable:!0,length:36},{name:"TimeWindowEndUTCOffset",alias:"Time Window End Offset",type:"esriFieldTypeInteger",editable:!0,nullable:!0},{name:"TimeWindowStart",alias:"Time Window Start",type:"esriFieldTypeDate",editable:!0,nullable:!0,length:36},{name:"TimeWindowStartUTCOffset",alias:"Time Window Start Offset",type:"esriFieldTypeInteger",editable:!0,nullable:!0},{name:"WaitMinutes",alias:"Minutes Wait",type:"esriFieldTypeDouble",editable:!0,nullable:!0}]}static fromGraphic(e){return new ft({arriveCurbApproach:null!=e.attributes.ArrivalCurbApproach?$.JJ.fromJSON(e.attributes.ArrivalCurbApproach):null,arriveTime:null!=e.attributes.ArrivalTime?new Date(e.attributes.ArrivalTime):null,arriveTimeOffset:e.attributes.ArrivalUTCOffset,cumulativeCosts:null!=e.attributes.CumulativeCosts?se(JSON.parse(e.attributes.CumulativeCosts)):null,cumulativeDistance:e.attributes.CumulativeMeters??null,cumulativeDuration:e.attributes.CumulativeMinutes??null,curbApproach:null!=e.attributes.CurbApproach?$.JJ.fromJSON(e.attributes.CurbApproach):null,departCurbApproach:null!=e.attributes.DepartureCurbApproach?$.JJ.fromJSON(e.attributes.DepartureCurbApproach):null,departTime:null!=e.attributes.DepartureTime?new Date(e.attributes.DepartureTime):null,departTimeOffset:e.attributes.DepartureUTCOffset??null,geometry:e.geometry,lateDuration:e.attributes.LateMinutes??null,locationType:null!=e.attributes.LocationType?$.EM.fromJSON(e.attributes.LocationType):null,name:e.attributes.Name,objectId:e.attributes.ObjectID??e.attributes.__OBJECTID,popupTemplate:e.popupTemplate,routeName:e.attributes.RouteName,sequence:e.attributes.Sequence??null,serviceCosts:null!=e.attributes.ServiceCosts?se(JSON.parse(e.attributes.ServiceCosts)):null,serviceDistance:e.attributes.ServiceMeters??null,serviceDuration:e.attributes.ServiceMinutes??null,status:null!=e.attributes.Status?$.$r.fromJSON(e.attributes.Status):null,symbol:e.symbol,timeWindowEnd:null!=e.attributes.TimeWindowEnd?new Date(e.attributes.TimeWindowEnd):null,timeWindowEndOffset:e.attributes.TimeWindowEndUTCOffset??null,timeWindowStart:null!=e.attributes.TimeWindowStart?new Date(e.attributes.TimeWindowStart):null,timeWindowStartOffset:e.attributes.TimeWindowStartUTCOffset??null,waitDuration:e.attributes.WaitMinutes??null})}toGraphic(){const e={ObjectID:this.objectId,ArrivalCurbApproach:this.arriveCurbApproach?$.JJ.toJSON(this.arriveCurbApproach):null,ArrivalTime:this.arriveTime?.getTime()??null,ArrivalUTCOffset:this.arriveTimeOffset,CumulativeCosts:this.cumulativeCosts?JSON.stringify(ae(this.cumulativeCosts)):null,CumulativeMeters:this.cumulativeDistance,CumulativeMinutes:this.cumulativeDuration,CurbApproach:this.curbApproach?$.JJ.toJSON(this.curbApproach):null,DepartureCurbApproach:this.departCurbApproach?$.JJ.toJSON(this.departCurbApproach):null,DepartureTime:this.departTime?.getTime()??null,DepartureUTCOffset:this.departTimeOffset,LateMinutes:this.lateDuration,LocationType:this.locationType?$.EM.toJSON(this.locationType):null,Name:this.name,RouteName:this.routeName,Sequence:this.sequence,ServiceCosts:this.serviceCosts?JSON.stringify(ae(this.serviceCosts)):null,ServiceMeters:this.serviceDistance,ServiceMinutes:this.serviceDuration,Status:this.status?$.$r.toJSON(this.status):null,TimeWindowEnd:this.timeWindowEnd?.getTime()??null,TimeWindowEndUTCOffset:this.timeWindowEndOffset??this.arriveTimeOffset,TimeWindowStart:this.timeWindowStart?.getTime()??null,TimeWindowStartUTCOffset:this.timeWindowStartOffset??this.arriveTimeOffset,WaitMinutes:this.waitDuration};return new o.A({geometry:this.geometry,attributes:e,symbol:this.symbol,popupTemplate:this.popupTemplate})}};function gt(e){if(!e.length)return;const t=e.toArray(),r=t.map(({objectId:e})=>e).filter(e=>null!=e);let i=Math.max(...r,0);for(const e of t)e.objectId??=++i}function bt(e,t){return e.length===t.length&&vt(e)&&vt(t)}function vt(e){return e.every(({objectId:e})=>null!=e)}function wt(e,t){return!!e.length||!!t.length}function Ct(e){return e.length?e:null}function Tt(e){switch(e){case"esriGeometryPoint":return{type:"esriSMS",style:"esriSMSCircle",size:12,color:[0,0,0,0],outline:Tt("esriGeometryPolyline")};case"esriGeometryPolyline":return{type:"esriSLS",style:"esriSLSSolid",width:1,color:[0,0,0,0]};case"esriGeometryPolygon":return{type:"esriSFS",style:"esriSFSNull",outline:Tt("esriGeometryPolyline")}}}function Mt(e){return"layers"in e}async function St(e){const t=T.A.WGS84;return await(0,C.initializeProjection)(e.spatialReference,t),(0,C.project)(e,t)}function At(e,t){if(t&&e?.length&&!e.every(({symbol:e})=>!!e))for(const r of e)r.symbol=t}function It(e,t){switch(t){case"seconds":return e/60;case"hours":return 60*e;case"days":return 60*e*24;default:return e}}function Ot(e,t){return"decimal-degrees"===t||"points"===t||"unknown"===t?e:(0,f.oU)(e,t,"meters")}(0,i.Cg)([(0,g.MZ)({type:$.JJ.apiValues,json:{read:{source:"attributes.ArrivalCurbApproach",reader:$.JJ.read}}})],ht.prototype,"arriveCurbApproach",void 0),(0,i.Cg)([(0,g.MZ)({type:Date,json:{read:{source:"attributes.ArriveTimeUTC"}}})],ht.prototype,"arriveTime",void 0),(0,i.Cg)([(0,g.MZ)()],ht.prototype,"arriveTimeOffset",void 0),(0,i.Cg)([(0,Y.w)("arriveTimeOffset",["attributes.ArriveTime","attributes.ArriveTimeUTC"])],ht.prototype,"readArriveTimeOffset",null),(0,i.Cg)([(0,g.MZ)({json:{name:"attributes.Bearing",read:!1,write:!0}})],ht.prototype,"bearing",void 0),(0,i.Cg)([(0,g.MZ)({json:{name:"attributes.BearingTol",read:!1,write:!0}})],ht.prototype,"bearingTol",void 0),(0,i.Cg)([(0,g.MZ)()],ht.prototype,"cumulativeCosts",void 0),(0,i.Cg)([(0,Y.w)("cumulativeCosts",["attributes"])],ht.prototype,"readCumulativeCosts",null),(0,i.Cg)([(0,g.MZ)()],ht.prototype,"cumulativeDistance",void 0),(0,i.Cg)([(0,g.MZ)()],ht.prototype,"cumulativeDuration",void 0),(0,i.Cg)([(0,g.MZ)({type:$.JJ.apiValues,json:{name:"attributes.CurbApproach",read:{reader:$.JJ.read},write:{writer:$.JJ.write}}})],ht.prototype,"curbApproach",void 0),(0,i.Cg)([(0,g.MZ)({type:$.JJ.apiValues,json:{read:{source:"attributes.DepartCurbApproach",reader:$.JJ.read}}})],ht.prototype,"departCurbApproach",void 0),(0,i.Cg)([(0,g.MZ)({type:Date,json:{read:{source:"attributes.DepartTimeUTC"}}})],ht.prototype,"departTime",void 0),(0,i.Cg)([(0,g.MZ)()],ht.prototype,"departTimeOffset",void 0),(0,i.Cg)([(0,Y.w)("departTimeOffset",["attributes.DepartTime","attributes.DepartTimeUTC"])],ht.prototype,"readDepartTimeOffset",null),(0,i.Cg)([(0,g.MZ)({json:{read:{source:"attributes.DistanceToNetworkInMeters"}}})],ht.prototype,"distanceToNetworkInMeters",void 0),(0,i.Cg)([(0,g.MZ)({type:ge.A,json:{write:!0},value:null})],ht.prototype,"geometry",null),(0,i.Cg)([(0,g.MZ)()],ht.prototype,"lateDuration",void 0),(0,i.Cg)([(0,g.MZ)({type:$.EM.apiValues,json:{name:"attributes.LocationType",read:{reader:$.EM.read},write:{writer:$.EM.write}}})],ht.prototype,"locationType",void 0),(0,i.Cg)([(0,g.MZ)({json:{name:"attributes.Name"}})],ht.prototype,"name",void 0),(0,i.Cg)([(0,g.MZ)({json:{name:"attributes.NavLatency",read:!1,write:!0}})],ht.prototype,"navLatency",void 0),(0,i.Cg)([(0,g.MZ)({json:{name:"attributes.ObjectID"}})],ht.prototype,"objectId",void 0),(0,i.Cg)([(0,g.MZ)({type:s.A})],ht.prototype,"popupTemplate",void 0),(0,i.Cg)([(0,g.MZ)({json:{name:"attributes.PosAlong"}})],ht.prototype,"positionAlong",void 0),(0,i.Cg)([(0,g.MZ)({json:{name:"attributes.RouteName"}})],ht.prototype,"routeName",void 0),(0,i.Cg)([(0,g.MZ)()],ht.prototype,"serviceCosts",void 0),(0,i.Cg)([(0,Y.w)("serviceCosts",["attributes"])],ht.prototype,"readServiceCosts",null),(0,i.Cg)([(0,H.K)("serviceCosts")],ht.prototype,"writeServiceCosts",null),(0,i.Cg)([(0,g.MZ)()],ht.prototype,"serviceDistance",void 0),(0,i.Cg)([(0,g.MZ)()],ht.prototype,"serviceDuration",void 0),(0,i.Cg)([(0,g.MZ)({json:{name:"attributes.Sequence"}})],ht.prototype,"sequence",void 0),(0,i.Cg)([(0,g.MZ)({type:$.mt.apiValues,json:{name:"attributes.SideOfEdge",read:{reader:$.mt.read},write:{writer:$.mt.write}}})],ht.prototype,"sideOfEdge",void 0),(0,i.Cg)([(0,g.MZ)({json:{read:{source:"attributes.SnapX"}}})],ht.prototype,"snapX",void 0),(0,i.Cg)([(0,g.MZ)({json:{read:{source:"attributes.SnapY"}}})],ht.prototype,"snapY",void 0),(0,i.Cg)([(0,g.MZ)({json:{read:{source:"attributes.SnapZ"}}})],ht.prototype,"snapZ",void 0),(0,i.Cg)([(0,g.MZ)({json:{name:"attributes.SourceID"}})],ht.prototype,"sourceId",void 0),(0,i.Cg)([(0,g.MZ)({json:{name:"attributes.SourceOID"}})],ht.prototype,"sourceOid",void 0),(0,i.Cg)([(0,g.MZ)({type:$.$r.apiValues,json:{name:"attributes.Status",read:{reader:$.$r.read},write:{writer:$.$r.write}}})],ht.prototype,"status",void 0),(0,i.Cg)([(0,g.MZ)({types:x.Es})],ht.prototype,"symbol",void 0),(0,i.Cg)([(0,g.MZ)({type:Date,json:{name:"attributes.TimeWindowEnd"}})],ht.prototype,"timeWindowEnd",void 0),(0,i.Cg)([(0,H.K)("timeWindowEnd")],ht.prototype,"writeTimeWindowEnd",null),(0,i.Cg)([(0,g.MZ)()],ht.prototype,"timeWindowEndOffset",void 0),(0,i.Cg)([(0,g.MZ)({type:Date,json:{name:"attributes.TimeWindowStart"}})],ht.prototype,"timeWindowStart",void 0),(0,i.Cg)([(0,H.K)("timeWindowStart")],ht.prototype,"writeTimeWindowStart",null),(0,i.Cg)([(0,g.MZ)()],ht.prototype,"timeWindowStartOffset",void 0),(0,i.Cg)([(0,g.MZ)({readOnly:!0,json:{read:!1}})],ht.prototype,"type",void 0),(0,i.Cg)([(0,g.MZ)()],ht.prototype,"violations",void 0),(0,i.Cg)([(0,Y.w)("violations",["attributes"])],ht.prototype,"readViolations",null),(0,i.Cg)([(0,g.MZ)()],ht.prototype,"waitDuration",void 0),(0,i.Cg)([(0,g.MZ)()],ht.prototype,"wait",void 0),(0,i.Cg)([(0,Y.w)("wait",["attributes"])],ht.prototype,"readWait",null),ht=ft=(0,i.Cg)([(0,g.$K)("esri.rest.support.Stop")],ht);const Nt=l.A.ofType(Re),jt=l.A.ofType(Be),Zt=l.A.ofType(Ee),Dt=l.A.ofType(Je),xt=l.A.ofType(ke),Rt=l.A.ofType(ht);let Ft=class extends((0,A.dM)((0,N.j)((0,I.q)((0,O.A)((0,c.M)(S.A)))))){constructor(e){super(e),this._cachedServiceDescription=null,this._featureCollection=null,this._type="Feature Collection",this.checksum=null,this.defaultSymbols=new P,this.directionLines=null,this.directionPoints=null,this.featureCollectionType="route",this.legendEnabled=!1,this.maxScale=0,this.minScale=0,this.pointBarriers=new Zt,this.polygonBarriers=new Dt,this.polylineBarriers=new xt,this.routeInfo=null,this.spatialReference=T.A.WGS84,this.stops=new Rt,this.type="route"}initialize(){const e=()=>{this._setStopSymbol(this.stops)},t=()=>{At(this.pointBarriers,this.defaultSymbols.pointBarriers)},r=()=>{At(this.polylineBarriers,this.defaultSymbols.polylineBarriers)},i=()=>{At(this.polygonBarriers,this.defaultSymbols.polygonBarriers)};this.addHandles([(0,m.on)(()=>this.stops,"change",e,{sync:!0,onListenerAdd:e}),(0,m.on)(()=>this.pointBarriers,"change",t,{sync:!0,onListenerAdd:t}),(0,m.on)(()=>this.polylineBarriers,"change",r,{sync:!0,onListenerAdd:r}),(0,m.on)(()=>this.polygonBarriers,"change",i,{sync:!0,onListenerAdd:i})])}writeFeatureCollectionWebmap(e,t,r,i){const n=[this._writePolygonBarriers(),this._writePolylineBarriers(),this._writePointBarriers(),this._writeRouteInfo(),this._writeDirectionLines(),this._writeDirectionPoints(),this._writeStops()].filter(e=>!!e),o=n.map((e,t)=>t),s="web-map"===i.origin?"featureCollection.layers":"layers";(0,d.sM)(s,n,t),t.opacity=this.opacity,t.visibility=this.visible,t.visibleLayers=o}readDirectionLines(e,t){return this._getNetworkFeatures(t,"DirectionLines",e=>Re.fromGraphic(e))}readDirectionPoints(e,t){return this._getNetworkFeatures(t,"DirectionPoints",e=>Be.fromGraphic(e))}get fullExtent(){const e=new v.A({xmin:-180,ymin:-90,xmax:180,ymax:90,spatialReference:T.A.WGS84});if(null!=this.routeInfo?.geometry)return this.routeInfo.geometry.extent??e;if(null==this.stops)return e;const t=this.stops.filter(e=>null!=e.geometry);if(t.length<2)return e;const{spatialReference:r}=t.at(0).geometry;if(null==r)return e;const i=t.toArray().map(e=>{const t=e.geometry;return[t.x,t.y]});return new w.A({points:i,spatialReference:r}).extent}readMaxScale(e,t){const r=Mt(t)?t.layers:t.featureCollection?.layers,i=r?.find(e=>null!=e.layerDefinition.maxScale);return i?.layerDefinition.maxScale??0}readMinScale(e,t){const r=Mt(t)?t.layers:t.featureCollection?.layers,i=r?.find(e=>null!=e.layerDefinition.minScale);return i?.layerDefinition.minScale??0}readPointBarriers(e,t){return this._getNetworkFeatures(t,"Barriers",e=>Ee.fromGraphic(e))}readPolygonBarriers(e,t){return this._getNetworkFeatures(t,"PolygonBarriers",e=>Je.fromGraphic(e))}readPolylineBarriers(e,t){return this._getNetworkFeatures(t,"PolylineBarriers",e=>ke.fromGraphic(e))}readRouteInfo(e,t){return this._getNetworkFeatures(t,"RouteInfo",e=>Ve.fromGraphic(e)).at(0)??null}readSpatialReference(e,t){const r=Mt(t)?t.layers:t.featureCollection?.layers;if(!r?.length)return T.A.WGS84;const{layerDefinition:i,featureSet:n}=r[0],o=n.features[0],s=o?.geometry?.spatialReference??n.spatialReference??i.spatialReference??i.extent.spatialReference??M.KK;return T.A.fromJSON(s)}readStops(e,t){return this._getNetworkFeatures(t,"Stops",e=>ht.fromGraphic(e),e=>this._setStopSymbol(e))}get title(){return this.routeInfo?.name??"Route"}set title(e){this._overrideIfSome("title",e)}get url(){return n.A.routeServiceUrl}set url(e){null!=e?this._set("url",(0,j.Jf)(e,p.A.getLogger(this))):this._set("url",n.A.routeServiceUrl)}load(e){return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Feature Collection"]},e)),Promise.resolve(this)}removeAll(){this.removeResult(),this.pointBarriers.removeAll(),this.polygonBarriers.removeAll(),this.polylineBarriers.removeAll(),this.stops.removeAll()}removeResult(){null!=this.directionLines&&(this.directionLines.removeAll(),this._set("directionLines",null)),null!=this.directionPoints&&(this.directionPoints.removeAll(),this._set("directionPoints",null)),null!=this.routeInfo&&this._set("routeInfo",null)}async save(){await this.load();const{fullExtent:e,portalItem:t}=this;if(!t)throw new u.A("routelayer:portal-item-not-set","save() requires to the layer to have a portal item");if(!t.id)throw new u.A("routelayer:portal-item-not-saved","Please use saveAs() first to save the routelayer");if("Feature Collection"!==t.type)throw new u.A("routelayer:portal-item-wrong-type",'Portal item needs to have type "Feature Collection"');if(!this.routeInfo)throw new u.A("routelayer:route-unsolved","save() requires a solved route");const{portal:r}=t;await r.signIn(),r.user||await t.reload();const{itemUrl:i,itemControl:n}=t;if("admin"!==n&&"update"!==n)throw new u.A("routelayer:insufficient-permissions","To save this layer, you need to be the owner or an administrator of your organization");const o={messages:[],origin:"portal-item",portal:r,url:i?(0,h.An)(i):void 0,writtenProperties:[]},s=this.write(void 0,o);return t.extent=await St(e),t.title=this.title,await t.update({data:s}),t}async saveAs(e,t={}){if(await this.load(),null==this.routeInfo)throw new u.A("routelayer:route-unsolved","saveAs() requires a solved route");const r=_.default.from(e).clone();r.extent??=await St(this.fullExtent),r.id=null,r.portal??=E.A.getDefault(),r.title??=this.title,r.type="Feature Collection",r.typeKeywords=["Data","Feature Collection",L.mm.MULTI_LAYER,"Route Layer"];const{portal:i}=r,n={messages:[],origin:"portal-item",portal:i,url:null,writtenProperties:[]};await i.signIn();const o=t?.folder,s=this.write(void 0,n);return await i.user.addItem({item:r,folder:o,data:s}),this.portalItem=r,(0,b.v)(n),n.portalItem=r,r}async solve(e,t){gt(this.stops),gt(this.pointBarriers),gt(this.polylineBarriers),gt(this.polygonBarriers);const r=e?.stops??this.stops,i=e?.pointBarriers??Ct(this.pointBarriers),n=e?.polylineBarriers??Ct(this.polylineBarriers),o=e?.polygonBarriers??Ct(this.polygonBarriers);if(null==r)throw new u.A("routelayer:undefined-stops","the route layer must have stops defined in the route parameters.");if((function(e){return"esri.rest.support.FeatureSet"===e.declaredClass}(r)||function(e){return"esri.rest.support.NetworkFeatureSet"===e.declaredClass}(r))&&r.features.length<2||l.A.isCollection(r)&&r.length<2)throw new u.A("routelayer:insufficent-stops","the route layer must have two or more stops to solve a route.");if(l.A.isCollection(r))for(const e of r)e.routeName=null;const s=e?.apiKey,{checksum:a,url:p}=this,c=await this._getServiceDescription(p,s,t),d=e?.travelMode??c.defaultTravelMode,m=e?.accumulateAttributes??[];d&&(m.push(d.distanceAttributeName),d.timeAttributeName&&m.push(d.timeAttributeName));const f={accumulateAttributes:m,checksum:a,directionsOutputType:"featuresets",ignoreInvalidLocations:!0,pointBarriers:i,polylineBarriers:n,polygonBarriers:o,preserveObjectID:!0,returnBarriers:!!i,returnDirections:!0,returnPolygonBarriers:!!o,returnPolylineBarriers:!!n,returnRoutes:!0,returnStops:!0,stops:r},h=yt.from(e??{});let g;h.set(f);try{g=await De(p,h,t)}catch(e){throw(0,y.zf)(e)?e:new u.A("routelayer:failed-route-request","the routing request failed",{error:e})}const b=this._toRouteLayerSolution(g);return this._isOverridden("title")||(this.title=b.routeInfo.name??"Route"),this._populatePortalFields(b,c,h),b}update(e){const{checksum:t,directionLines:r,directionPoints:i,pointBarriers:n,polygonBarriers:o,polylineBarriers:s,routeInfo:a,stops:l}=e;bt(l,this.stops)?function(e,t){for(const r of e){const e=t.find(e=>e.objectId===r.objectId);e&&(e.arriveCurbApproach=r.arriveCurbApproach,e.arriveTime=r.arriveTime,e.arriveTimeOffset=r.arriveTimeOffset,e.cumulativeCosts=r.cumulativeCosts,e.cumulativeDistance=r.cumulativeDistance,e.cumulativeDuration=r.cumulativeDuration,e.curbApproach=r.curbApproach,e.departCurbApproach=r.departCurbApproach,e.departTime=r.departTime,e.departTimeOffset=r.departTimeOffset,e.distanceToNetworkInMeters=r.distanceToNetworkInMeters,e.geometry=r.geometry,e.lateDuration=r.lateDuration,e.name=r.name,e.navLatency=r.navLatency,e.positionAlong=r.positionAlong,e.routeName=r.routeName,e.serviceCosts=r.serviceCosts,e.serviceDistance=r.serviceDistance,e.serviceDuration=r.serviceDuration,e.sequence=r.sequence,e.sideOfEdge=r.sideOfEdge,e.snapX=r.snapX,e.snapY=r.snapY,e.snapZ=r.snapZ,e.sourceId=r.sourceId,e.sourceOid=r.sourceOid,e.status=r.status,e.symbol=r.symbol,e.timeWindowEnd=r.timeWindowEnd,e.timeWindowStart=r.timeWindowStart,e.violations=r.violations,e.waitDuration=r.waitDuration,e.wait=r.wait)}}(l,this.stops):this.set({stops:l}),wt(n,this.pointBarriers)&&(bt(n,this.pointBarriers)?function(e,t){for(const r of e){const e=t.find(e=>e.objectId===r.objectId);e&&(e.addedCost=r.addedCost,e.barrierType=r.barrierType,e.costs=r.costs,e.curbApproach=r.curbApproach,e.fullEdge=r.fullEdge,e.geometry=r.geometry,e.name=r.name,e.sideOfEdge=r.sideOfEdge,e.sourceId=r.sourceId,e.sourceOid=r.sourceOid,e.status=r.status,e.symbol=r.symbol)}}(n,this.pointBarriers):this.set({pointBarriers:n})),wt(s,this.polylineBarriers)&&(bt(s,this.polylineBarriers)?function(e,t){for(const r of e){const e=t.find(e=>e.objectId===r.objectId);e&&(e.barrierType=r.barrierType,e.costs=r.costs,e.geometry=r.geometry,e.name=r.name,e.scaleFactor=r.scaleFactor,e.symbol=r.symbol)}}(s,this.polylineBarriers):this.set({polylineBarriers:s})),wt(o,this.polygonBarriers)&&(bt(o,this.polygonBarriers)?function(e,t){for(const r of e){const e=t.find(e=>e.objectId===r.objectId);e&&(e.barrierType=r.barrierType,e.costs=r.costs,e.geometry=r.geometry,e.name=r.name,e.scaleFactor=r.scaleFactor,e.symbol=r.symbol)}}(o,this.polygonBarriers):this.set({polygonBarriers:o})),this.set({checksum:t}),this._set("directionLines",r),this._set("directionPoints",i),this._set("routeInfo",a),a.geometry&&(this.spatialReference=a.geometry.spatialReference)}_getNetworkFeatures(e,t,r,i){const n=Mt(e)?e.layers:e.featureCollection?.layers,a=n?.find(e=>e.layerDefinition.name===t);if(null==a)return new l.A;const{layerDefinition:u,popupInfo:p,featureSet:c}=a,d=u.drawingInfo.renderer,{features:y}=c,m=c.spatialReference??u.spatialReference??u.extent.spatialReference??M.KK,f=d&&(0,J.L)(d),h=T.A.fromJSON(m),g=y.map(e=>{const i=o.A.fromJSON(e);i.geometry&&e.geometry&&null==e.geometry.spatialReference&&(i.geometry.spatialReference=h);const n=r(i);return n.symbol??=f?.getSymbol(i)??this._getNetworkSymbol(t),n.popupTemplate??=p&&s.A.fromJSON(p),n});return i&&g.some(({symbol:e})=>!e)&&i(g),new l.A(g)}_getNetworkSymbol(e){switch(e){case"Barriers":return this.defaultSymbols.pointBarriers;case"DirectionPoints":return this.defaultSymbols.directionPoints;case"DirectionLines":return this.defaultSymbols.directionLines;case"PolylineBarriers":return this.defaultSymbols.polylineBarriers;case"PolygonBarriers":return this.defaultSymbols.polygonBarriers;case"RouteInfo":return this.defaultSymbols.routeInfo;case"Stops":return null}}async _getServiceDescription(e,t,r){if(null!=this._cachedServiceDescription&&this._cachedServiceDescription.url===e)return this._cachedServiceDescription.serviceDescription;const i=await te(e,t,r);return this._cachedServiceDescription={serviceDescription:i,url:e},i}_setStopSymbol(e){const t=l.A.isCollection(e)?e.toArray():e;if(!t||!t.length||!this.defaultSymbols.stops||t.every(({symbol:e})=>!!e))return;const{first:r,last:i,middle:n,unlocated:o,waypoint:s,break:u}=this.defaultSymbols.stops,p=t.map(({sequence:e})=>e).filter(a.Ru),c=t.length===p.length;if(!this.routeInfo&&!c||1===t.length)return void t.forEach((e,o)=>{switch(o){case 0:e.symbol=r;break;case t.length-1:e.symbol=i;break;default:e.symbol=n}});const d=Math.min(...p),y=Math.max(...p);for(const e of t)e.sequence!==d?e.sequence!==y?this.routeInfo&&"ok"!==e.status&&"not-located-on-closest"!==e.status?e.symbol=o:"waypoint"!==e.locationType?"break"!==e.locationType?e.symbol=n:e.symbol=u:e.symbol=s:e.symbol=i:e.symbol=r}_toRouteLayerSolution(e){const{checksum:t,routeResults:r}=e,i=r[0].stops?.map(e=>ht.fromJSON(e.toJSON()));this._setStopSymbol(i);const n=new Rt(i),o=new Dt(e.polygonBarriers?.map(e=>Je.fromJSON(e.toJSON())));At(o,this.defaultSymbols.polygonBarriers);const s=new xt(e.polylineBarriers?.map(e=>ke.fromJSON(e.toJSON())));At(s,this.defaultSymbols.polylineBarriers);const a=new Zt(e.pointBarriers?.map(e=>Ee.fromJSON(e.toJSON())));At(a,this.defaultSymbols.pointBarriers);const l=r[0].route?.toJSON(),u=Ve.fromJSON(l);u.symbol=this.defaultSymbols.routeInfo;const p=new jt(r[0].directionPoints?.features.map(e=>Be.fromJSON(e.toJSON())));At(p,this.defaultSymbols.directionPoints);const c=new Nt(r[0].directionLines?.features.map(e=>Re.fromJSON(e.toJSON())));return At(c,this.defaultSymbols.directionLines),{checksum:t,directionLines:c,directionPoints:p,pointBarriers:a,polygonBarriers:o,polylineBarriers:s,routeInfo:u,stops:n}}_writeDirectionLines(){return this._writeNetworkFeatures(this.directionLines,this.defaultSymbols.directionLines,"esriGeometryPolyline",Re.fields,"DirectionLines","Direction Lines")}_writeDirectionPoints(){return this._writeNetworkFeatures(this.directionPoints,this.defaultSymbols.directionPoints,"esriGeometryPoint",Be.fields,"DirectionPoints","Direction Points")}_writeNetworkFeatures(e,t,r,i,n,o){if(!e?.length)return null;const s=this.spatialReference.toJSON(),{fullExtent:a,maxScale:l,minScale:u}=this;return{featureSet:{features:e.toArray().map(e=>function(e){const{attributes:t,geometry:r,popupTemplate:i,symbol:n}=e.toGraphic().toJSON();return{attributes:t,geometry:r,popupInfo:i,symbol:n}}(e)),geometryType:r,spatialReference:s},layerDefinition:{capabilities:"Query,Update,Editing",drawingInfo:{renderer:{type:"simple",symbol:t?.toJSON()??Tt(r)}},extent:a.toJSON(),fields:i,geometryType:r,hasM:!1,hasZ:!1,maxScale:l,minScale:u,name:n,objectIdField:"ObjectID",spatialReference:s,title:o,type:"Feature Layer",typeIdField:""}}}_writePointBarriers(){return this._writeNetworkFeatures(this.pointBarriers,this.defaultSymbols.pointBarriers,"esriGeometryPoint",Ee.fields,"Barriers","Point Barriers")}_writePolygonBarriers(){return this._writeNetworkFeatures(this.polygonBarriers,this.defaultSymbols.polygonBarriers,"esriGeometryPolygon",Je.fields,"PolygonBarriers","Polygon Barriers")}_writePolylineBarriers(){return this._writeNetworkFeatures(this.polylineBarriers,this.defaultSymbols.polylineBarriers,"esriGeometryPolyline",ke.fields,"PolylineBarriers","Line Barriers")}_writeRouteInfo(){return this._writeNetworkFeatures(null!=this.routeInfo?new l.A([this.routeInfo]):null,this.defaultSymbols.routeInfo,"esriGeometryPolyline",Ve.fields,"RouteInfo","Route Details")}_writeStops(){const e=this._writeNetworkFeatures(this.stops,null,"esriGeometryPoint",ht.fields,"Stops","Stops");if(null==e)return null;const{stops:t}=this.defaultSymbols,r=t?.first?.toJSON(),i=t?.middle?.toJSON(),n=t?.last?.toJSON();return e.layerDefinition.drawingInfo.renderer={type:"uniqueValue",field1:"Sequence",defaultSymbol:i,uniqueValueInfos:[{value:"1",symbol:r,label:"First Stop"},{value:`${this.stops.length}`,symbol:n,label:"Last Stop"}]},e}_populatePortalFields(e,t,r){const i=t.networkDataset?.networkAttributes,n=i?.filter(({usageType:e})=>"cost"===e)??[],o=r.travelMode??t.defaultTravelMode;if(null==o)return void p.A.getLogger(this).warn("route-layer:missing-travel-mode","The routing service must have a default travel mode or one must be specified in the route parameter.");const{timeAttributeName:s,distanceAttributeName:a}=o,l=n.find(({name:e})=>e===s),c=n.find(({name:e})=>e===a),d=r.travelMode?.impedanceAttributeName??r.impedanceAttribute??t.impedance,y=l?.units,m=c?.units;if(!y||!m)throw new u.A("routelayer:unknown-impedance-units","the units of either the distance or time impedance are unknown");const f=r.directionsLanguage??t.directionsLanguage,h=r.accumulateAttributes??t.accumulateAttributeNames??[],g=new Set(n.filter(({name:e})=>e===s||e===a||e===d||null!=e&&h.includes(e)).map(({name:e})=>e)),b=e=>{for(const t in e)g.has(t)||delete e[t]};for(const t of e.pointBarriers)null!=t.costs&&(t.addedCost=t.costs[d]??0,b(t.costs));for(const t of e.polygonBarriers)null!=t.costs&&(t.scaleFactor=t.costs[d]??1,b(t.costs));for(const t of e.polylineBarriers)null!=t.costs&&(t.scaleFactor=t.costs[d]??1,b(t.costs));const{routeInfo:v}=e,{findBestSequence:w,preserveFirstStop:C,preserveLastStop:T,startTimeIsUTC:M,timeWindowsAreUTC:S}=r;v.analysisSettings=new $e({accumulateAttributes:h,directionsLanguage:f,findBestSequence:w,preserveFirstStop:C,preserveLastStop:T,startTimeIsUTC:M,timeWindowsAreUTC:S,travelMode:o}),v.totalDuration=It(v.totalCosts?.[s]??0,y),v.totalDistance=Ot(v.totalCosts?.[a]??0,m),v.totalLateDuration=It(v.totalViolations?.[s]??0,y),v.totalWaitDuration=It(v.totalWait?.[s]??0,y),null!=v.totalCosts&&b(v.totalCosts),null!=v.totalViolations&&b(v.totalViolations),null!=v.totalWait&&b(v.totalWait);for(const t of e.stops)null!=t.serviceCosts&&(t.serviceDuration=It(t.serviceCosts[s]??0,y),t.serviceDistance=Ot(t.serviceCosts[a]??0,m),b(t.serviceCosts)),null!=t.cumulativeCosts&&(t.cumulativeDuration=It(t.cumulativeCosts[s]??0,y),t.cumulativeDistance=Ot(t.cumulativeCosts[a]??0,m),b(t.cumulativeCosts)),null!=t.violations&&(t.lateDuration=It(t.violations[s]??0,y),b(t.violations)),null!=t.wait&&(t.waitDuration=It(t.wait[s]??0,y),b(t.wait))}};(0,i.Cg)([(0,g.MZ)({readOnly:!0,json:{read:!1,origins:{"portal-item":{write:{allowNull:!0,ignoreOrigin:!0}},"web-map":{write:{overridePolicy(){return{allowNull:!0,ignoreOrigin:null==this.portalItem}}}}}}})],Ft.prototype,"_featureCollection",void 0),(0,i.Cg)([(0,H.K)(["web-map","portal-item"],"_featureCollection")],Ft.prototype,"writeFeatureCollectionWebmap",null),(0,i.Cg)([(0,g.MZ)({readOnly:!0,json:{read:!1,origins:{"web-map":{write:{target:"type",overridePolicy(){return{ignoreOrigin:null!=this.portalItem}}}}}}})],Ft.prototype,"_type",void 0),(0,i.Cg)([(0,g.MZ)({type:String})],Ft.prototype,"checksum",void 0),(0,i.Cg)([(0,g.MZ)({nonNullable:!0,type:P})],Ft.prototype,"defaultSymbols",void 0),(0,i.Cg)([(0,g.MZ)({readOnly:!0})],Ft.prototype,"directionLines",void 0),(0,i.Cg)([(0,Y.w)(["web-map","portal-item"],"directionLines",["layers","featureCollection.layers"])],Ft.prototype,"readDirectionLines",null),(0,i.Cg)([(0,g.MZ)({readOnly:!0})],Ft.prototype,"directionPoints",void 0),(0,i.Cg)([(0,Y.w)(["web-map","portal-item"],"directionPoints",["layers","featureCollection.layers"])],Ft.prototype,"readDirectionPoints",null),(0,i.Cg)([(0,g.MZ)({readOnly:!0,json:{read:!1,origins:{"web-map":{write:{ignoreOrigin:!0}}}}})],Ft.prototype,"featureCollectionType",void 0),(0,i.Cg)([(0,g.MZ)({readOnly:!0})],Ft.prototype,"fullExtent",null),(0,i.Cg)([(0,g.MZ)({json:{origins:{"web-map":{name:"featureCollection.showLegend"}},write:!0}})],Ft.prototype,"legendEnabled",void 0),(0,i.Cg)([(0,g.MZ)({type:["show","hide"]})],Ft.prototype,"listMode",void 0),(0,i.Cg)([(0,g.MZ)({type:Number,nonNullable:!0,json:{write:!1}})],Ft.prototype,"maxScale",void 0),(0,i.Cg)([(0,Y.w)(["web-map","portal-item"],"maxScale",["layers","featureCollection.layers"])],Ft.prototype,"readMaxScale",null),(0,i.Cg)([(0,g.MZ)({type:Number,nonNullable:!0,json:{write:!1}})],Ft.prototype,"minScale",void 0),(0,i.Cg)([(0,Y.w)(["web-map","portal-item"],"minScale",["layers","featureCollection.layers"])],Ft.prototype,"readMinScale",null),(0,i.Cg)([(0,g.MZ)({type:["ArcGISFeatureLayer"],value:"ArcGISFeatureLayer"})],Ft.prototype,"operationalLayerType",void 0),(0,i.Cg)([(0,g.MZ)({nonNullable:!0,type:l.A.ofType(Ee)})],Ft.prototype,"pointBarriers",void 0),(0,i.Cg)([(0,Y.w)(["web-map","portal-item"],"pointBarriers",["layers","featureCollection.layers"])],Ft.prototype,"readPointBarriers",null),(0,i.Cg)([(0,g.MZ)({nonNullable:!0,type:l.A.ofType(Je)})],Ft.prototype,"polygonBarriers",void 0),(0,i.Cg)([(0,Y.w)(["web-map","portal-item"],"polygonBarriers",["layers","featureCollection.layers"])],Ft.prototype,"readPolygonBarriers",null),(0,i.Cg)([(0,g.MZ)({nonNullable:!0,type:l.A.ofType(ke)})],Ft.prototype,"polylineBarriers",void 0),(0,i.Cg)([(0,Y.w)(["web-map","portal-item"],"polylineBarriers",["layers","featureCollection.layers"])],Ft.prototype,"readPolylineBarriers",null),(0,i.Cg)([(0,g.MZ)({readOnly:!0})],Ft.prototype,"routeInfo",void 0),(0,i.Cg)([(0,Y.w)(["web-map","portal-item"],"routeInfo",["layers","featureCollection.layers"])],Ft.prototype,"readRouteInfo",null),(0,i.Cg)([(0,g.MZ)({type:T.A})],Ft.prototype,"spatialReference",void 0),(0,i.Cg)([(0,Y.w)(["web-map","portal-item"],"spatialReference",["layers","featureCollection.layers"])],Ft.prototype,"readSpatialReference",null),(0,i.Cg)([(0,g.MZ)({nonNullable:!0,type:l.A.ofType(ht)})],Ft.prototype,"stops",void 0),(0,i.Cg)([(0,Y.w)(["web-map","portal-item"],"stops",["layers","featureCollection.layers"])],Ft.prototype,"readStops",null),(0,i.Cg)([(0,g.MZ)()],Ft.prototype,"title",null),(0,i.Cg)([(0,g.MZ)({readOnly:!0,json:{read:!1}})],Ft.prototype,"type",void 0),(0,i.Cg)([(0,g.MZ)()],Ft.prototype,"url",null),Ft=(0,i.Cg)([(0,g.$K)("esri.layers.RouteLayer")],Ft);const Bt=Ft},76369(e,t,r){r.d(t,{LF:()=>T,M9:()=>M});var i=r(49186),n=r(93637),o=r(40876),s=r(59247),a=r(27865);class l extends SyntaxError{constructor(e,t,r,i){super(e),this.expected=t,this.found=r,this.location=i,this.name="SyntaxError"}format(e){let t="Error: "+this.message;if(this.location){let r=null;const i=e.find(e=>e.source===this.location.source);i&&(r=i.text.split(/\r\n|\n|\r/g));const n=this.location.start,o=this.location.source&&"function"==typeof this.location.source.offset?this.location.source.offset(n):n,s=this.location.source+":"+o.line+":"+o.column;if(r){const e=this.location.end,i="".padEnd(o.line.toString().length," "),a=r[n.line-1],l=(n.line===e.line?e.column:a.length+1)-n.column||1;t+="\n --\x3e "+s+"\n"+i+" |\n"+o.line+" | "+a+"\n"+i+" | "+"".padEnd(n.column-1," ")+"".padEnd(l,"^")}else t+="\n at "+s}return t}static buildMessage(e,t){function r(e){return e.codePointAt(0).toString(16).toUpperCase()}const i=Object.prototype.hasOwnProperty.call(RegExp.prototype,"unicode")?new RegExp("[\\p{C}\\p{Mn}\\p{Mc}]","gu"):null;function n(e){return i?e.replace(i,e=>"\\u{"+r(e)+"}"):e}function o(e){return n(e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,e=>"\\x0"+r(e)).replace(/[\x10-\x1F\x7F-\x9F]/g,e=>"\\x"+r(e)))}function s(e){return n(e.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,e=>"\\x0"+r(e)).replace(/[\x10-\x1F\x7F-\x9F]/g,e=>"\\x"+r(e)))}const a={literal:e=>'"'+o(e.text)+'"',class(e){const t=e.parts.map(e=>Array.isArray(e)?s(e[0])+"-"+s(e[1]):s(e));return"["+(e.inverted?"^":"")+t.join("")+"]"+(e.unicode?"u":"")},any:()=>"any character",end:()=>"end of input",other:e=>e.description};function l(e){return a[e.type](e)}return"Expected "+function(e){const t=e.map(l);if(t.sort(),t.length>0){let e=1;for(let r=1;r<t.length;r++)t[r-1]!==t[r]&&(t[e]=t[r],e++);t.length=e}switch(t.length){case 1:return t[0];case 2:return t[0]+" or "+t[1];default:return t.slice(0,-1).join(", ")+", or "+t[t.length-1]}}(e)+" but "+function(e){return e?'"'+o(e)+'"':"end of input"}(t)+" found."}}function u(e){if(!e||0===e.length)return null;if("string"==typeof e){const t=p(e);return t&&0!==t.length?t:null}const t=e.map(e=>{if(!Number.isFinite(e.scale)||e.scale<=0)throw new i.A("effect:invalid-scale","scale must be finite and greater than 0",{stop:e});return{scale:e.scale,effects:p(e.value)}});t.sort((e,t)=>t.effects.length-e.effects.length);for(let e=0;e<t.length-1;e++){if(!(0,a.mj)(t[e].effects,t[e+1].effects))throw new i.A("effect:interpolation-impossible","Cannot interpolate by scale between 2 lists of mixed effects",{a:t[e].effects,b:t[e+1].effects});(0,a.O9)(t[e].effects,t[e+1].effects)}return t.sort((e,t)=>t.scale-e.scale),t}function p(e){let t;if(!e)return[];try{t=function(e,t){const r={},i=(t=void 0!==t?t:{}).grammarSource,n={start:Ce};let o=Ce;const s="none",a=")",u=",",p="(",c="%",d="px",y="cm",m="mm",f="in",h="pt",g="pc",b="deg",v="rad",w="grad",C="turn",T="#",M=".",S="e",A=/^[ \t\n\r]/,I=/^[a-z\-]/,O=/^[0-9a-fA-F]/,N=/^[+\-]/,j=/^[0-9]/,Z=ge("none"),D=fe("none",!1),x=fe(")",!1),R=fe(",",!1),F=he([" ","\t","\n","\r"],!1,!1,!1),B=ge("function"),P=fe("(",!1),E=ge("identifier"),_=he([["a","z"],"-"],!1,!1,!1),L=ge("percentage"),J=fe("%",!1),U=ge("length"),k=fe("px",!1),$=fe("cm",!1),W=fe("mm",!1),V=fe("in",!1),q=fe("pt",!1),G=fe("pc",!1),K=ge("angle"),z=fe("deg",!1),Y=fe("rad",!1),H=fe("grad",!1),X=fe("turn",!1),Q=ge("number"),ee=ge("color"),te=fe("#",!1),re=he([["0","9"],["a","f"],["A","F"]],!1,!1,!1),ie=he(["+","-"],!1,!1,!1),ne=he([["0","9"]],!1,!1,!1),oe=fe(".",!1),se=fe("e",!1);let ae=0|t.peg$currPos,le=ae;const ue=[{line:1,column:1}];let pe,ce=ae,de=t.peg$maxFailExpected||[],ye=0|t.peg$silentFails;if(t.startRule){if(!(t.startRule in n))throw new Error("Can't start parsing from rule \""+t.startRule+'".');o=n[t.startRule]}function me(){return e.substring(le,ae)}function fe(e,t){return{type:"literal",text:e,ignoreCase:t}}function he(e,t,r,i){return{type:"class",parts:e,inverted:t,ignoreCase:r,unicode:i}}function ge(e){return{type:"other",description:e}}function be(t){let r,i=ue[t];if(i)return i;if(t>=ue.length)r=ue.length-1;else for(r=t;!ue[--r];);for(i=ue[r],i={line:i.line,column:i.column};r<t;)10===e.charCodeAt(r)?(i.line++,i.column=1):i.column++,r++;return ue[t]=i,i}function ve(e,t,r){const n=be(e),o=be(t);return{source:i,start:{offset:e,line:n.line,column:n.column},end:{offset:t,line:o.line,column:o.column}}}function we(e){ae<ce||(ae>ce&&(ce=ae,de=[]),de.push(e))}function Ce(){let e;return e=Te(),e===r&&(e=function(){let e,t;if(e=[],t=Me(),t!==r)for(;t!==r;)e.push(t),t=Me();else e=r;return e}()),e}function Te(){let t,i;return ye++,t=ae,Ae(),e.substr(ae,4)===s?(i=s,ae+=4):(i=r,0===ye&&we(D)),i!==r?(Ae(),le=t,t=[]):(ae=t,t=r),ye--,t===r&&0===ye&&we(Z),t}function Me(){let t,i,n,o;return t=ae,Ae(),i=function(){let t,i,n;return ye++,t=ae,i=Ie(),i!==r?(40===e.charCodeAt(ae)?(n=p,ae++):(n=r,0===ye&&we(P)),n!==r?(le=t,t=i):(ae=t,t=r)):(ae=t,t=r),ye--,t===r&&(i=r,0===ye&&we(B)),t}(),i!==r?(Ae(),n=function(){let t,i,n,o,s,a,l,p;if(t=ae,i=Se(),i!==r){for(n=[],o=ae,s=Ae(),44===e.charCodeAt(ae)?(a=u,ae++):(a=r,0===ye&&we(R)),a===r&&(a=null),l=Ae(),p=Se(),p!==r?(s=[s,a,l,p],o=s):(ae=o,o=r);o!==r;)n.push(o),o=ae,s=Ae(),44===e.charCodeAt(ae)?(a=u,ae++):(a=r,0===ye&&we(R)),a===r&&(a=null),l=Ae(),p=Se(),p!==r?(s=[s,a,l,p],o=s):(ae=o,o=r);le=t,t=function(e,t){return t.length>0?function(e,t){return[e].concat(function(e){return e.map(function(e){return e[3]})}(t))}(e,t):[e]}(i,n)}else ae=t,t=r;return t}(),n===r&&(n=null),Ae(),41===e.charCodeAt(ae)?(o=a,ae++):(o=r,0===ye&&we(x)),o!==r?(Ae(),le=t,t=function(e,t){return{type:"function",name:e,parameters:t||[]}}(i,n)):(ae=t,t=r)):(ae=t,t=r),t}function Se(){let e,t;return e=ae,t=Oe(),t===r&&(t=Ne(),t===r&&(t=je(),t===r&&(t=function(){let e,t;return ye++,e=ae,Ae(),t=De(),t!==r?(le=e,e=function(e){return{value:e,unit:null}}(t)):(ae=e,e=r),ye--,e===r&&0===ye&&we(Q),e}()))),t!==r&&(le=e,t=function(e){return{type:"quantity",value:e.value,unit:e.unit}}(t)),e=t,e===r&&(e=ae,t=Ze(),t!==r&&(le=e,t=function(e){return{type:"color",colorType:e.type,value:e.value}}(t)),e=t),e}function Ae(){let t,i;for(ye++,t=[],i=e.charAt(ae),A.test(i)?ae++:(i=r,0===ye&&we(F));i!==r;)t.push(i),i=e.charAt(ae),A.test(i)?ae++:(i=r,0===ye&&we(F));return ye--,t}function Ie(){let t,i,n;if(ye++,t=ae,i=[],n=e.charAt(ae),I.test(n)?ae++:(n=r,0===ye&&we(_)),n!==r)for(;n!==r;)i.push(n),n=e.charAt(ae),I.test(n)?ae++:(n=r,0===ye&&we(_));else i=r;return i!==r&&(le=t,i=me()),t=i,ye--,t===r&&(i=r,0===ye&&we(E)),t}function Oe(){let t,i,n;return ye++,t=ae,Ae(),i=De(),i!==r?(37===e.charCodeAt(ae)?(n=c,ae++):(n=r,0===ye&&we(J)),n!==r?(le=t,t=function(e){return{value:e,unit:"%"}}(i)):(ae=t,t=r)):(ae=t,t=r),ye--,t===r&&0===ye&&we(L),t}function Ne(){let t,i,n;return ye++,t=ae,Ae(),i=De(),i!==r?(e.substr(ae,2)===d?(n=d,ae+=2):(n=r,0===ye&&we(k)),n!==r?(le=t,t=function(e){return{value:e,unit:"px"}}(i)):(ae=t,t=r)):(ae=t,t=r),t===r&&(t=ae,Ae(),i=De(),i!==r?(e.substr(ae,2)===y?(n=y,ae+=2):(n=r,0===ye&&we($)),n!==r?(le=t,t=function(e){return{value:e,unit:"cm"}}(i)):(ae=t,t=r)):(ae=t,t=r),t===r&&(t=ae,Ae(),i=De(),i!==r?(e.substr(ae,2)===m?(n=m,ae+=2):(n=r,0===ye&&we(W)),n!==r?(le=t,t=function(e){return{value:e,unit:"mm"}}(i)):(ae=t,t=r)):(ae=t,t=r),t===r&&(t=ae,Ae(),i=De(),i!==r?(e.substr(ae,2)===f?(n=f,ae+=2):(n=r,0===ye&&we(V)),n!==r?(le=t,t=function(e){return{value:e,unit:"in"}}(i)):(ae=t,t=r)):(ae=t,t=r),t===r&&(t=ae,Ae(),i=De(),i!==r?(e.substr(ae,2)===h?(n=h,ae+=2):(n=r,0===ye&&we(q)),n!==r?(le=t,t=function(e){return{value:e,unit:"pt"}}(i)):(ae=t,t=r)):(ae=t,t=r),t===r&&(t=ae,Ae(),i=De(),i!==r?(e.substr(ae,2)===g?(n=g,ae+=2):(n=r,0===ye&&we(G)),n!==r?(le=t,t=function(e){return{value:e,unit:"pc"}}(i)):(ae=t,t=r)):(ae=t,t=r)))))),ye--,t===r&&0===ye&&we(U),t}function je(){let t,i,n;return ye++,t=ae,i=De(),i!==r?(e.substr(ae,3)===b?(n=b,ae+=3):(n=r,0===ye&&we(z)),n!==r?(le=t,t=function(e){return{value:e,unit:"deg"}}(i)):(ae=t,t=r)):(ae=t,t=r),t===r&&(t=ae,i=De(),i!==r?(e.substr(ae,3)===v?(n=v,ae+=3):(n=r,0===ye&&we(Y)),n!==r?(le=t,t=function(e){return{value:e,unit:"rad"}}(i)):(ae=t,t=r)):(ae=t,t=r),t===r&&(t=ae,i=De(),i!==r?(e.substr(ae,4)===w?(n=w,ae+=4):(n=r,0===ye&&we(H)),n!==r?(le=t,t=function(e){return{value:e,unit:"grad"}}(i)):(ae=t,t=r)):(ae=t,t=r),t===r&&(t=ae,i=De(),i!==r?(e.substr(ae,4)===C?(n=C,ae+=4):(n=r,0===ye&&we(X)),n!==r?(le=t,t=function(e){return{value:e,unit:"turn"}}(i)):(ae=t,t=r)):(ae=t,t=r)))),ye--,t===r&&(i=r,0===ye&&we(K)),t}function Ze(){let t,i,n,o;if(ye++,t=ae,35===e.charCodeAt(ae)?(i=T,ae++):(i=r,0===ye&&we(te)),i!==r){if(n=[],o=e.charAt(ae),O.test(o)?ae++:(o=r,0===ye&&we(re)),o!==r)for(;o!==r;)n.push(o),o=e.charAt(ae),O.test(o)?ae++:(o=r,0===ye&&we(re));else n=r;n!==r?(le=t,t={type:"hex",value:me()}):(ae=t,t=r)}else ae=t,t=r;return t===r&&(t=ae,i=Me(),i!==r&&(le=t,i=function(e){return{type:"function",value:e}}(i)),t=i,t===r&&(t=ae,i=Ie(),i!==r&&(le=t,i={type:"named",value:me()}),t=i)),ye--,t===r&&(i=r,0===ye&&we(ee)),t}function De(){let t,i,n,o,s,a,l,u;for(t=ae,i=e.charAt(ae),N.test(i)?ae++:(i=r,0===ye&&we(ie)),i===r&&(i=null),n=ae,o=[],s=e.charAt(ae),j.test(s)?ae++:(s=r,0===ye&&we(ne));s!==r;)o.push(s),s=e.charAt(ae),j.test(s)?ae++:(s=r,0===ye&&we(ne));if(46===e.charCodeAt(ae)?(s=M,ae++):(s=r,0===ye&&we(oe)),s!==r){if(a=[],l=e.charAt(ae),j.test(l)?ae++:(l=r,0===ye&&we(ne)),l!==r)for(;l!==r;)a.push(l),l=e.charAt(ae),j.test(l)?ae++:(l=r,0===ye&&we(ne));else a=r;a!==r?(o=[o,s,a],n=o):(ae=n,n=r)}else ae=n,n=r;if(n===r)if(n=[],o=e.charAt(ae),j.test(o)?ae++:(o=r,0===ye&&we(ne)),o!==r)for(;o!==r;)n.push(o),o=e.charAt(ae),j.test(o)?ae++:(o=r,0===ye&&we(ne));else n=r;if(n!==r){if(o=ae,101===e.charCodeAt(ae)?(s=S,ae++):(s=r,0===ye&&we(se)),s!==r){if(a=e.charAt(ae),N.test(a)?ae++:(a=r,0===ye&&we(ie)),a===r&&(a=null),l=[],u=e.charAt(ae),j.test(u)?ae++:(u=r,0===ye&&we(ne)),u!==r)for(;u!==r;)l.push(u),u=e.charAt(ae),j.test(u)?ae++:(u=r,0===ye&&we(ne));else l=r;l!==r?(s=[s,a,l],o=s):(ae=o,o=r)}else ae=o,o=r;o===r&&(o=null),le=t,t=parseFloat(me())}else ae=t,t=r;return t}pe=o();const xe=pe!==r&&ae===e.length;function Re(){throw pe!==r&&ae<e.length&&we({type:"end"}),function(e,t,r){return new l(l.buildMessage(e,t),e,t,r)}(de,ce<e.length?function(t=ae){const r=e.codePointAt(t);return void 0===r?"":String.fromCodePoint(r)}(ce):null,ce<e.length?ve(ce,ce+1):ve(ce,ce))}return t.peg$library?{peg$result:pe,peg$currPos:ae,peg$FAILED:r,peg$maxFailExpected:de,peg$maxFailPos:ce,peg$success:xe,peg$throw:xe?void 0:Re}:xe?pe:void Re()}(e)}catch(t){throw new i.A("effect:invalid-syntax","Invalid effect syntax",{value:e,error:t})}return t.map(e=>function(e){try{switch(e.name){case"grayscale":case"sepia":case"saturate":case"invert":case"brightness":case"contrast":return function(e){let t=1;return c(e.parameters,1),1===e.parameters.length&&(t=h(e.parameters[0])),new s.yG(e.name,t)}(e);case"opacity":return function(e){let t=1;return c(e.parameters,1),1===e.parameters.length&&(t=h(e.parameters[0])),new s.jm(t)}(e);case"hue-rotate":return function(e){let t=0;return c(e.parameters,1),1===e.parameters.length&&(t=function(e){return function(e){if("quantity"!==e.type||!(0===e.value&&null===e.unit||e.unit&&null!=m[e.unit]))throw new i.A("effect:type-error",`Expected <angle>, Actual: ${d(e)}`,{term:e})}(e),e.value*m[e.unit]||0}(e.parameters[0])),new s.Nd(t)}(e);case"blur":return function(e){let t=0;return c(e.parameters,1),1===e.parameters.length&&(t=g(e.parameters[0]),y(t,e.parameters[0])),new s.Fk(t)}(e);case"drop-shadow":return function(e){const t=[];let r=null;for(const n of e.parameters)if("color"===n.type){if(t.length&&Object.freeze(t),r)throw new i.A("effect:type-error","Accepts only one color",{});r=b(n)}else{const e=g(n);if(Object.isFrozen(t))throw new i.A("effect:type-error","<length> parameters not consecutive",{lengths:t});t.push(e),3===t.length&&y(e,n)}if(t.length<2||t.length>3)throw new i.A("effect:type-error",`Expected <length>{2,3}, Actual: <length>{${t.length}}`,{lengths:t});return new s.$b(t[0],t[1],t[2]||0,r||v("black"))}(e);case"bloom":return function(e){let t=1,r=0,i=0;return c(e.parameters,3),e.parameters[0]&&(t=h(e.parameters[0])),e.parameters[1]&&(r=g(e.parameters[1]),y(r,e.parameters[1])),e.parameters[2]&&(i=h(e.parameters[2])),new s.bv(t,r,i)}(e)}}catch(t){throw t.details.filter=e,t}throw new i.A("effect:unknown-effect",`Effect '${e.name}' is not supported`,{effect:e})}(e))}function c(e,t){if(e.length>t)throw new i.A("effect:type-error",`Function supports up to ${t} parameters, Actual: ${e.length}`,{parameters:e})}function d(e){if("color"===e.type)return"<color>";if(e.unit){if(e.unit in f)return"<length>";if(e.unit in m)return"<angle>";if("%"===e.unit)return"<percentage>"}return"<double>"}function y(e,t){if(e<0)throw new i.A("effect:type-error",`Negative values are not allowed, Actual: ${e}`,{term:t})}const m={deg:1,grad:.9,rad:180/Math.PI,turn:360},f={px:1,cm:96/2.54,mm:96/2.54/10,in:96,pc:16,pt:96/72};function h(e){!function(e){if("quantity"!==e.type||null!==e.unit&&"%"!==e.unit)throw new i.A("effect:type-error",`Expected <double> or <percentage>, Actual: ${d(e)}`,{term:e})}(e);const t=e.value;return y(t,e),"%"===e.unit?.01*t:t}function g(e){return function(e){if("quantity"!==e.type||!(0===e.value&&null===e.unit||e.unit&&null!=f[e.unit]))throw new i.A("effect:type-error",`Expected <length>, Actual: ${d(e)}`,{term:e})}(e),e.value*f[e.unit]||0}function b(e){switch(e.colorType){case"hex":return(0,o.j5)(e.value);case"named":return v(e.value);case"function":return function(e){if(c(e.parameters,4),w.test(e.name))return[h(e.parameters[0]),h(e.parameters[1]),h(e.parameters[2]),e.parameters[3]?h(e.parameters[3]):1];if(C.test(e.name))return(0,o.ay)(function(e){return function(e){if("quantity"!==e.type||null!==e.unit)throw new i.A("effect:type-error",`Expected <double>, Actual: ${d(e)}`,{term:e})}(e),y(e.value,e),e.value}(e.parameters[0]),h(e.parameters[1]),h(e.parameters[2]),e.parameters[3]?h(e.parameters[3]):1);throw new i.A("effect:syntax-error",`Invalid color function '${e.name}'`,{colorFunction:e})}(e.value)}}function v(e){if(!(0,o.V6)(e))throw new i.A("effect:unknown-color",`color '${e}' isn't valid`,{namedColor:e});return(0,o.c4)(e)}const w=/^rgba?/i,C=/^hsla?/i;function T(e,t,r){try{return function(e){if(!e||0===e.length)return null;if(function(e){const t=e[0];return!!t&&"scale"in t}(e)){const t=[];for(const r of e)t.push({scale:r.scale,value:S(r.value)});return t}return S(e)}(e)}catch(e){r?.messages?.push(e)}return null}function M(e,t,r,i){try{const i=function(e){const t=u(e);return t?(0,a.dw)(t)?t.map(e=>e.toJSON()):t.map(({scale:e,effects:t})=>({scale:e,value:t.map(e=>e.toJSON())})):null}(e);(0,n.sM)(r,i,t)}catch(e){i.messages&&i.messages.push(e)}}function S(e){if(!e?.length)return"";const t=[];for(const r of e){let e=[];switch(r.type){case"grayscale":case"sepia":case"saturate":case"invert":case"brightness":case"contrast":case"opacity":e=[A(r,"amount")];break;case"blur":e=[A(r,"radius","pt")];break;case"hue-rotate":e=[A(r,"angle","deg")];break;case"drop-shadow":e=[A(r,"xoffset","pt"),A(r,"yoffset","pt"),A(r,"blurRadius","pt"),I(r,"color")];break;case"bloom":e=[A(r,"strength"),A(r,"radius","pt"),A(r,"threshold")]}const i=`${r.type}(${e.filter(Boolean).join(" ")})`;u(i),t.push(i)}return t.join(" ")}function A(e,t,r){if(null==e[t])throw new i.A("effect:missing-parameter",`Missing parameter '${t}' in ${e.type} effect`,{effect:e});return r?e[t]+r:""+e[t]}function I(e,t){if(null==e[t])throw new i.A("effect:missing-parameter",`Missing parameter '${t}' in ${e.type} effect`,{effect:e});const r=e[t];return`rgba(${r[0]||0}, ${r[1]||0}, ${r[2]||0}, ${r[3]/255||0})`}},54339(e,t,r){function i(e,t){switch(t.type){case"object-id":case"unique-id-simple":return e.attributes[t.fieldName];case"unique-id-composite":{const r=[];for(const i of t.fieldNames)r.push(e.attributes[i]??null);return JSON.stringify(r)}}}function n(e,t){if("uniqueIdFields"in t&&t.uniqueIdFields?.length){if(1===t.uniqueIdFields.length)return e.attributes?.[t.uniqueIdFields[0]];const r=t.uniqueIdFields.map(t=>e.attributes?.[t]);return JSON.stringify(r)}return"objectIdField"in t&&t.objectIdField?e.attributes?.[t.objectIdField]:null}r.d(t,{W:()=>i,r:()=>n})},63074(e,t,r){r.d(t,{LF:()=>u,dM:()=>p,sU:()=>a});var i=r(5482),n=r(91429),o=r(89317),s=r(76369);const a={type:["average","color-burn","color-dodge","color","darken","destination-atop","destination-in","destination-out","destination-over","difference","exclusion","hard-light","hue","invert","lighten","lighter","luminosity","minus","multiply","normal","overlay","plus","reflect","saturation","screen","soft-light","source-atop","source-in","source-out","vivid-light","xor"],nonNullable:!0,json:{read:!1,write:!1,origins:{"web-map":{read:!0,write:{layerContainerTypes:o.K}},"portal-item":{read:!0,write:{layerContainerTypes:o.K}}}}},l={read:{reader:s.LF},write:{allowNull:!0,writer:s.M9,layerContainerTypes:o.K}},u={json:{read:!1,write:!1,origins:{"web-map":l,"portal-item":l}}},p=e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.blendMode="normal",this.effect=null}};return(0,i.Cg)([(0,n.MZ)(a)],r.prototype,"blendMode",void 0),(0,i.Cg)([(0,n.MZ)(u)],r.prototype,"effect",void 0),r=(0,i.Cg)([(0,n.$K)("esri.layers.mixins.BlendLayer")],r),r}},8303(e,t,r){r.d(t,{A:()=>C});var i=r(5482),n=r(92602),o=r(70333),s=r(11254),a=r(60999),l=r(49186),u=r(53966),p=r(97768),c=r(17676),d=r(84952),y=r(91429),m=r(77548),f=r(20655),h=r(80812),g=r(41318),b=r(10407),v=r(36005),w=r(43937);const C=e=>{const t=e;let C=class extends t{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){this.portalItem=(0,p.pR)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}get portalItem(){return this._get("portalItem")}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,r){if(t.itemId)return new h.default({id:t.itemId,portal:r?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem?.id)try{const{load:i}=await r.e(1204).then(r.bind(r,41204));return(0,c.Te)(t),await i({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},t)}catch(e){throw(0,c.zf)(e)||u.A.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch(e=>((0,c.QP)(e),!0)))}async setUserPrivileges(e,t){if(!n.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:r,fullEdit:i},content:{updateItem:n}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",r),this._set("userHasFullEditingPrivileges",i),this._set("userHasUpdateItemPrivileges",n)}catch(e){(0,c.QP)(e)}}async _fetchUserPrivileges(e,t){let r=this.portalItem;if(!e||!r||!r.loaded||r.sourceUrl)return this._fetchFallbackUserPrivileges(t);const i=!o.id?.findCredential(this.url),n=e===r.id;if(n&&r.portal.user)return this._getUserPrivileges(r,i);let s,a;if(n)s=r.portal.url;else try{s=await(0,m.wI)(this.url,t)}catch(e){(0,c.QP)(e)}if(!s||!(0,d.b8)(s,r.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;a=await(o.id?.getCredential(`${s}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,c.QP)(e)}const l=!0,u=!1,p=!1;if(!a)return{features:{edit:l,fullEdit:u},content:{updateItem:p}};try{if(n?await r.reload():(r=new h.default({id:e,portal:{url:s}}),await r.load(t)),r.portal.user)return this._getUserPrivileges(r,i)}catch(e){(0,c.QP)(e)}return{features:{edit:l,fullEdit:u},content:{updateItem:p}}}_getUserPrivileges(e,t){const r=(0,b.It)(e);return t&&(r.features.edit=!0),r}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,c.QP)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){const t=this.url?o.id?.findCredential(this.url):null;if(!t)return!0;const r=T.credential===t?T.user:await this._fetchEditingUser(e);return T.credential=t,T.user=r,null==r?.privileges||r.privileges.includes("features:user:edit")}async _fetchEditingUser(e){const t=this.portalItem?.portal?.user;if(t)return t;const r=o.id?.findServerInfo(this.url??"");if(!r?.owningSystemUrl)return null;const i=`${r.owningSystemUrl}/sharing/rest`,n=f.A.getDefault();if(n&&n.loaded&&(0,d.S8)(n.restUrl)===(0,d.S8)(i))return n.user;const l=`${i}/community/self`,u=null!=e?e.signal:null,p=await(0,a.Ke)((0,s.A)(l,{authMode:"no-prompt",query:{f:"json"},signal:u}));return p.ok?g.A.fromJSON(p.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const r=t?.portal,i=this.portalItem?.id&&(this.portalItem.portal||f.A.getDefault());return r&&i&&!(0,d.ut)(i.restUrl,r.restUrl)?(t.messages&&t.messages.push(new l.A("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,i.Cg)([(0,y.MZ)({type:h.default})],C.prototype,"portalItem",null),(0,i.Cg)([(0,v.w)("web-document","portalItem",["itemId"])],C.prototype,"readPortalItem",null),(0,i.Cg)([(0,w.K)("web-document","portalItem",{itemId:{type:String}})],C.prototype,"writePortalItem",null),(0,i.Cg)([(0,y.MZ)({clonable:!1})],C.prototype,"resourceReferences",void 0),(0,i.Cg)([(0,y.MZ)({type:Boolean,readOnly:!0})],C.prototype,"userHasEditingPrivileges",void 0),(0,i.Cg)([(0,y.MZ)({type:Boolean,readOnly:!0})],C.prototype,"userHasFullEditingPrivileges",void 0),(0,i.Cg)([(0,y.MZ)({type:Boolean,readOnly:!0})],C.prototype,"userHasUpdateItemPrivileges",void 0),C=(0,i.Cg)([(0,y.$K)("esri.layers.mixins.PortalLayer")],C),C},T={credential:null,user:null}},25036(e,t,r){r.d(t,{j:()=>o});var i=r(5482),n=r(91429);const o=e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.minScale=0,this.maxScale=0}get effectiveScaleRange(){const e={minScale:this.minScale,maxScale:this.maxScale},t=this.parent;void 0!==t?.effectiveScaleRange&&function(e,t){e.minScale=e.minScale>0?t.minScale>0?Math.min(e.minScale,t.minScale):e.minScale:t.minScale,e.maxScale=e.maxScale>0?t.maxScale>0?Math.max(e.maxScale,t.maxScale):e.maxScale:t.maxScale}(e,t.effectiveScaleRange);const r=this._get("effectiveScaleRange");return r&&r.minScale===e.minScale&&r.maxScale===e.maxScale?r:e}};return(0,i.Cg)([(0,n.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],r.prototype,"minScale",void 0),(0,i.Cg)([(0,n.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],r.prototype,"maxScale",void 0),(0,i.Cg)([(0,n.MZ)({readOnly:!0})],r.prototype,"effectiveScaleRange",null),r=(0,i.Cg)([(0,n.$K)("esri.layers.mixins.ScaleRangeLayer")],r),r}},10407(e,t,r){r.d(t,{It:()=>y,LG:()=>s,OM:()=>u,Sm:()=>p,Y:()=>a,bK:()=>l,mm:()=>d,sQ:()=>c});var i=r(91218),n=r(16930),o=r(28735);function s(e,t){if(!a(e,t)){const r=e.typeKeywords;r?r.push(t):e.typeKeywords=[t]}}function a(e,t){return!!e.typeKeywords?.includes(t)}function l(e){return a(e,d.HOSTED_SERVICE)}function u(e,t){const r=e.typeKeywords;if(r){const e=r.indexOf(t);e>-1&&r.splice(e,1)}}function p(e,t,r){r?s(e,t):u(e,t)}async function c(e){const t=e.clone().normalize();let r;if(t.length>1)for(const e of t)r?e.width>r.width&&(r=e):r=e;else r=t[0];return async function(e){const t=e.spatialReference;if(t.isWGS84)return e.clone();if(t.isWebMercator)return(0,o.ci)(e);const r=n.A.WGS84;return await(0,i.initializeProjection)(t,r),(0,i.project)(e,r)}(r)}const d={CHARTS:"Charts",DYNAMIC:"Dynamic",DEVELOPER_BASEMAP:"DeveloperBasemap",GROUP_LAYER_MAP:"Map",HOSTED_SERVICE:"Hosted Service",JSAPI:"ArcGIS API for JavaScript",LOCAL_SCENE:"ViewingMode-Local",METADATA:"Metadata",MULTI_LAYER:"Multilayer",ORIENTED_IMAGERY_LAYER:"OrientedImageryLayer",SINGLE_LAYER:"Singlelayer",SUBTYPE_GROUP_LAYER:"SubtypeGroupLayer",SUBTYPE_GROUP_TABLE:"SubtypeGroupTable",TABLE:"Table",TILED_IMAGERY:"Tiled Imagery"};function y(e){const{portal:t,isOrgItem:r,itemControl:i}=e,n=t.user?.privileges;let o=!n||n.includes("features:user:edit"),s=!!r&&!!n?.includes("features:user:fullEdit");const a="update"===i||"admin"===i;return a?s=o=!0:s&&(o=!0),{features:{edit:o,fullEdit:s},content:{updateItem:a}}}},96576(e,t,r){r.d(t,{A:()=>c});var i,n=r(5482),o=r(4718),s=r(91429),a=r(92438),l=r(63988),u=r(49849),p=r(93223);let c=i=class extends((0,l.h)(a.A)){constructor(e){super(e),this.description=null,this.label=null,this.symbol=null,this.type="simple"}async collectRequiredFields(e,t){await Promise.all([this.collectSymbolFields(e,t),this.collectVVRequiredFields(e,t)])}async collectSymbolFields(e,t){await Promise.all(this.symbols.map(r=>r.collectRequiredFields(e,t)))}getSymbol(e,t){return this.symbol}async getSymbolAsync(e,t){return this.symbol}get symbols(){return this.symbol?[this.symbol]:[]}getAttributeHash(){return this.visualVariables?.reduce((e,t)=>e+t.getAttributeHash(),"")??""}getMeshHash(){return this.symbols.reduce((e,t)=>e+JSON.stringify(t),"")}get arcadeRequired(){return this.arcadeRequiredForVisualVariables}clone(){return new i({description:this.description,label:this.label,symbol:(0,o.o8)(this.symbol),visualVariables:(0,o.o8)(this.visualVariables),authoringInfo:(0,o.o8)(this.authoringInfo)})}};(0,n.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],c.prototype,"description",void 0),(0,n.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],c.prototype,"label",void 0),(0,n.Cg)([(0,s.MZ)(u.Wp)],c.prototype,"symbol",void 0),(0,n.Cg)([(0,p.e)({simple:"simple"})],c.prototype,"type",void 0),c=i=(0,n.Cg)([(0,s.$K)("esri.renderers.SimpleRenderer")],c)},73681(e,t,r){r.d(t,{n:()=>l});var i=r(49186),n=r(53966),o=r(46140),s=r(95466),a=r(55674);class l{static async from(e,t,r){const s=e.dictionary_version?o.A.parse(e.dictionary_version):null,p=new Set(e.itemsNames),c={};if(t)for(const e in t)c[e]=t[e];if(e.authoringInfo.configuration)for(const t of e.authoringInfo.configuration)c.hasOwnProperty(t.name)||(c[t.name]=t.value);const d=new Set(e.authoringInfo.symbol);for(const e of Object.keys(r))d.delete(e);d.size&&n.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("missing-fields: fieldMap entries for the following symbol fields are missing",{symbolFields:d});const y=await(0,a.xR)(e.expression,null,c);if(!y)throw new i.A("dictionary-renderer:expression-error","Unable to create dictionary renderer expression");const m=!s||!s.greaterEqual(4,0);m&&n.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("Dictionary script does not support native field types. Applying fallback",{version:s});const f=new u(r,m);return new l(m,p,y,f)}constructor(e,t,r,i){this._requiresFieldCoercionToString=e,this._itemNames=t,this._compiled=r,this._reader=i}get itemNames(){return this._itemNames}evaluate(e,t,r,i){try{return this._reader.bind(e,r,i),this._compiled.evaluate(this._reader,{$view:{scale:t}})}catch(e){n.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("arcade: dictionary script evaluation failed",{error:e})}return null}createDictionaryFieldsIndex(e){if(!this._requiresFieldCoercionToString)return new s.A(e);const t=e.map(e=>({...e,type:"esriFieldTypeString"}));return new s.A(t)}}class u extends a.Gj{constructor(e,t){super(),this._fieldMap=e,this._requiresFieldCoercionToString=t}_getField(e){const t=this._fieldMap[e]??e;return this._boundSchema.fieldsIndex.get(t)}field(e){if(!this._requiresFieldCoercionToString)return super.field(e,!1);const t=this._getField(e);return null==t||null==this._boundTarget.attributes[t.name]?"":""+this._boundTarget.attributes[t.name]}}},61760(e,t,r){r.d(t,{PU:()=>s,YW:()=>l,ex:()=>n,hv:()=>a,zp:()=>o}),r(34727);var i=r(90629);r(78955),r(91829);const n=2.4;function o(e){return(0,i.PN)(e*n)}function s(e){return(0,i.Lz)(e)/n}function a(e,t,r){const i=Math.sqrt(e**2+t**2)/r;return i>1?0:3/(Math.PI*r**2)*(1-i**2)**2}function l(e){return"function"==typeof e?e:e?t=>+t[e]:()=>1}},65494(e,t,r){r.d(t,{L:()=>l,r:()=>s});var i=r(90360),n=r(41214),o=r(59923);function s(e,t){return l(e,null,t)}const a=(0,i.C)({types:n.Hg});function l(e,t,r){return e?e&&(e.styleName||e.styleUrl)&&"uniqueValue"!==e.type?((0,o.Yc)(r,"warning","renderer",`Only UniqueValueRenderer can be referenced from a web style, but found '${e.type}'`,{definition:e}),null):a(e,t,r):null}},92300(e,t,r){r.d(t,{V:()=>s,X:()=>o});var i=r(60408),n=r(65864);function o(e){return{geometryType:(0,i.$B)(e[0]),geometries:e.map(e=>e.toJSON())}}function s(e,t,r){const i=(0,n.xD)(t);return e.map(e=>{const t=i.fromJSON(e);return t.spatialReference=r,t})}},24097(e,t,r){r.d(t,{K:()=>i});const i={type:String,json:{read:{source:"token"},write:{target:"token"}}}},55674(e,t,r){r.d(t,{Ad:()=>y,Gj:()=>h,QY:()=>d,lL:()=>g,xR:()=>m});var i=r(66131),n=r(49186),o=(r(44208),r(44729)),s=r(15032),a=r(65864),l=r(95466),u=r(43668),p=r(98623);const c=["geometry","scale","timeProperties"];function d(e,t){if(null!=t)for(const r of c)t.hasArcadeDependency(r)&&e.add(r);return e}function y(e,t){return f.create(e,t,null,["$feature","$view"])}function m(e,t,r){return f.create(e,t,r,["$feature","$view","$config"])}class f{static async create(e,t,r,i){const{arcade:o,Dictionary:s}=await(0,u.l)();let a;try{a=o.parseScript(e)}catch(t){throw new n.A("arcade-bad-expression","Failed to parse arcade script",{script:e,error:t})}const l=o.scriptUsesGeometryEngine(a);l&&await o.enableGeometrySupport(),await o.loadDependentModules(new Set,a,null,!1,l);const p={vars:i.reduce((e,t)=>({...e,[t]:null}),{}),spatialReference:t,useAsync:!1},c=o.compileScript(a,p);let d=null;null!=r&&(d=new s(r),d.immutable=!0);const y=new s;return y.immutable=!1,y.setField("scale",0),new f(e,o,a,c,t,y,d,s)}constructor(e,t,r,i,n,o,s,a){this.script=e,this._arcade=t,this._syntaxTree=r,this._compiled=i,this._spatialReference=n,this._viewDict=o,this._configDict=s,this._dictionaryCtor=a,this._dependencies=new Map,this._featureReader=new h,this._dependencies.set("geometry",t.scriptTouchesGeometry(this._syntaxTree)),this._dependencies.set("scale",this._arcade.referencesMember(this._syntaxTree,"scale")),this._dependencies.set("timeProperties",this._arcade.scriptUsesViewProperties(this._syntaxTree,["timeProperties"]))}evaluate(e,t){const r=t.$view?.timeZone;if(t.$view){let e;if(this._viewDict.setField("scale",t.$view.scale),null!=t.$view.timeProperties){const{currentStart:n,currentEnd:o}=t.$view.timeProperties;e=new this._dictionaryCtor({currentStart:null!=n?null!=r?i.lY.epochToArcadeDate(n,r):i.lY.unknownEpochToArcadeDate(n):void 0,currentEnd:null!=o?null!=r?i.lY.epochToArcadeDate(o,r):i.lY.unknownEpochToArcadeDate(o):void 0,startIncluded:!0,endIncluded:!0})}this._viewDict.setField("timeProperties",e)}return this._compiled({vars:{$view:this._viewDict,$config:this._configDict,$feature:e},spatialReference:this._spatialReference,timeZone:r})}repurposeFeature(e,t){return this._featureReader.bind(e,t,this._spatialReference),this._featureReader}references(e){return this._dependencies.get(e)??!1}}class h{constructor(){this._boundTarget=null,this._boundSchema={fields:null,fieldsIndex:null,spatialReference:null,get geometryType(){return null},get objectIdField(){return null}},this.arcadeDeclaredClass="esri.arcade.Feature",this._contextTimeZone=null}bind(e,t,r){const i=t??new l.A(g(e.attributes));this._boundTarget=e,this._boundSchema.fields=i.fields,this._boundSchema.fieldsIndex=i,this._boundSchema.spatialReference=r}_getField(e){return this._boundSchema.fieldsIndex.get(e)}get contextTimeZone(){return this._contextTimeZone}set contextTimeZone(e){this._contextTimeZone=e}readArcadeFeature(){return this}hasField(e){return this._boundSchema.fieldsIndex.has(e)}geometry(){if("fromJSON"in this._boundTarget)return this._boundTarget.geometry;const e=(0,a.rS)(this._boundTarget.geometry);if(e){if(!this._boundSchema.spatialReference)throw new Error("InternalError: Expected spatial reference to be defined");e.spatialReference=this._boundSchema.spatialReference}return e}_hasGeometry(){return null!=this._boundTarget.geometry}isUnknownDateTimeField(e){return this._boundSchema.fieldsIndex.getTimeZone(e)===p.L5}field(e,t=!0){const r=this._getField(e);if(r){const t=this._boundTarget.attributes[r.name];if(null==t)return null;switch(r.type){case"date-only":case"esriFieldTypeDateOnly":return o.n.fromReader(t);case"time-only":case"esriFieldTypeTimeOnly":return s.k.fromReader(t);case"esriFieldTypeTimestampOffset":case"timestamp-offset":return i.lY.fromReaderAsTimeStampOffset(t);case"date":case"esriFieldTypeDate":return this.isUnknownDateTimeField(e)?i.lY.unknownEpochToArcadeDate(t):i.lY.epochToArcadeDate(t,this.contextTimeZone??p.qU);default:return t}}if(t)throw new Error(`Field ${e} does not exist`);return null}setField(e,t){throw new Error("Unable to update feature attribute values, feature is readonly")}keys(){return this._boundSchema.fieldsIndex.fields.map(e=>e.name)}isEmpty(){return this._boundSchema.fields.length<=0&&!this._hasGeometry()}castToText(e=!1){return JSON.stringify(this._boundTarget)}gdbVersion(){return null}fullSchema(){return this._boundSchema}castAsJson(e=null){return{attributes:this._boundTarget.attributes,geometry:!0===e?.keepGeometryType?this.geometry():this.geometry()?.toJSON()??null}}castAsJsonAsync(e=null,t=null){return Promise.resolve(this.castAsJson(t))}}function g(e){const t=[];for(const r in e)t.push({name:r,alias:r,type:"string"==typeof e[r]?"esriFieldTypeString":"esriFieldTypeDouble"});return t}}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6061,6960],{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.i)(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},7978(t,e,r){r.r(e),r.d(e,{execute:()=>a});var s=r(15756),n=r(83299);const i=new s.k;function a(t,e){const r=(0,n.fromGeometry)(t);return i.execute(r.getGeometry(),(0,n.fromGeometryToGXGeometry)(e),r.getSpatialReference())}}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6061,6960],{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},7978(t,e,r){r.r(e),r.d(e,{execute:()=>a});var s=r(15756),n=r(83299);const i=new s.k;function a(t,e){const r=(0,n.fromGeometry)(t);return i.execute(r.getGeometry(),(0,n.fromGeometryToGXGeometry)(e),r.getSpatialReference())}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5611,9397],{9093(t,e,r){function n(){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]]}r.d(e,{o8:()=>s,vt:()=>n,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:n,fromValues:function(t,e,r,n,s,i,a,o,u,h,c,f,l,g,m,x){return[t,e,r,n,s,i,a,o,u,h,c,f,l,g,m,x]}},Symbol.toStringTag,{value:"Module"}))},35522(t,e,r){r.d(e,{$A:()=>A,Bw:()=>i,C:()=>a,Cc:()=>O,DI:()=>E,Il:()=>k,Io:()=>p,Ln:()=>M,Om:()=>I,Qr:()=>f,Re:()=>h,S8:()=>b,T9:()=>x,WQ:()=>u,Z0:()=>P,_S:()=>g,aI:()=>R,ei:()=>_,fw:()=>w,gL:()=>S,hG:()=>v,hZ:()=>o,hs:()=>d,jb:()=>N,jk:()=>m,lo:()=>L,lw:()=>c,m3:()=>y,oW:()=>V,t2:()=>Y,tn:()=>l,uE:()=>B,xg:()=>X,ze:()=>C});var n=r(51850),s=r(34304);function i(t){const e=t[0],r=t[1],n=t[2];return Math.sqrt(e*e+r*r+n*n)}function a(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function o(t,e,r,n){return t[0]=e,t[1]=r,t[2]=n,t}function u(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t}function h(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2],t}function c(t,e,r){return t[0]=e[0]*r[0],t[1]=e[1]*r[1],t[2]=e[2]*r[2],t}function f(t,e,r){return t[0]=e[0]/r[0],t[1]=e[1]/r[1],t[2]=e[2]/r[2],t}function l(t,e){return t[0]=Math.abs(e[0]),t[1]=Math.abs(e[1]),t[2]=Math.abs(e[2]),t}function g(t,e){return t[0]=Math.sign(e[0]),t[1]=Math.sign(e[1]),t[2]=Math.sign(e[2]),t}function m(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t[2]=Math.min(e[2],r[2]),t}function x(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t[2]=Math.max(e[2],r[2]),t}function d(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t}function M(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t[2]=e[2]+r[2]*n,t}function p(t,e){const r=e[0]-t[0],n=e[1]-t[1],s=e[2]-t[2];return Math.sqrt(r*r+n*n+s*s)}function v(t,e){const r=e[0]-t[0],n=e[1]-t[1],s=e[2]-t[2];return r*r+n*n+s*s}function y(t){const e=t[0],r=t[1],n=t[2];return e*e+r*r+n*n}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 b(t,e){const r=e[0],n=e[1],s=e[2];let i=r*r+n*n+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 I(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function A(t,e,r){const n=e[0],s=e[1],i=e[2],a=r[0],o=r[1],u=r[2];return t[0]=s*u-i*o,t[1]=i*a-n*u,t[2]=n*o-s*a,t}function O(t,e,r,n){const s=e[0],i=e[1],a=e[2];return t[0]=s+n*(r[0]-s),t[1]=i+n*(r[1]-i),t[2]=a+n*(r[2]-a),t}function P(t,e,r){const n=e[0],s=e[1],i=e[2];return t[0]=r[0]*n+r[4]*s+r[8]*i+r[12],t[1]=r[1]*n+r[5]*s+r[9]*i+r[13],t[2]=r[2]*n+r[6]*s+r[10]*i+r[14],t}function _(t,e,r){const n=e[0],s=e[1],i=e[2];return t[0]=n*r[0]+s*r[3]+i*r[6],t[1]=n*r[1]+s*r[4]+i*r[7],t[2]=n*r[2]+s*r[5]+i*r[8],t}function S(t,e,r){return w(t,e,r[0],r[1],r[2],r[3])}function w(t,e,r,n,s,i){const a=e[0],o=e[1],u=e[2],h=n*u-s*o,c=s*a-r*u,f=r*o-n*a,l=n*f-s*c,g=s*h-r*f,m=r*c-n*h,x=2*i;return t[0]=a+h*x+2*l,t[1]=o+c*x+2*g,t[2]=u+f*x+2*m,t}const F=(0,n.vt)(),Z=(0,n.vt)();function Y(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function R(t,e){if(t===e)return!0;const r=t[0],n=t[1],i=t[2],a=e[0],o=e[1],u=e[2],h=(0,s.FD)();return Math.abs(r-a)<=h*Math.max(1,Math.abs(r),Math.abs(a))&&Math.abs(n-o)<=h*Math.max(1,Math.abs(n),Math.abs(o))&&Math.abs(i-u)<=h*Math.max(1,Math.abs(i),Math.abs(u))}function V(t,e,r){const n=r[0]-e[0],s=r[1]-e[1],i=r[2]-e[2];let a=n*n+s*s+i*i;return a>0?(a=1/Math.sqrt(a),t[0]=n*a,t[1]=s*a,t[2]=i*a,t):(t[0]=0,t[1]=0,t[2]=0,t)}const N=h,T=c,z=f,X=p,L=v,k=i,B=y;Object.freeze(Object.defineProperty({__proto__:null,abs:l,add:u,angle:function(t,e){b(F,t),b(Z,e);const r=I(F,Z);return r>1?0:r<-1?Math.PI:Math.acos(r)},bezier:function(t,e,r,n,s,i){const a=1-i,o=a*a,u=i*i,h=o*a,c=3*i*o,f=3*u*a,l=u*i;return t[0]=e[0]*h+r[0]*c+n[0]*f+s[0]*l,t[1]=e[1]*h+r[1]*c+n[1]*f+s[1]*l,t[2]=e[2]*h+r[2]*c+n[2]*f+s[2]*l,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,r=1){return t[0]=Math.min(Math.max(t[0],e),r),t[1]=Math.min(Math.max(t[1],e),r),t[2]=Math.min(Math.max(t[2],e),r),t},copy:a,cross:A,crossAndNormalize:function(t,e,r){const n=e[0],s=e[1],i=e[2],a=r[0],o=r[1],u=r[2],h=s*u-i*o,c=i*a-n*u,f=n*o-s*a,l=Math.sqrt(h*h+c*c+f*f);return t[0]=h/l,t[1]=c/l,t[2]=f/l,t},direction:V,dist:X,distance:p,div:z,divide:f,dot:I,equals:R,exactEquals:Y,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,r,n,s,i){const a=i*i,o=a*(2*i-3)+1,u=a*(i-2)+i,h=a*(i-1),c=a*(3-2*i);return t[0]=e[0]*o+r[0]*u+n[0]*h+s[0]*c,t[1]=e[1]*o+r[1]*u+n[1]*h+s[1]*c,t[2]=e[2]*o+r[2]*u+n[2]*h+s[2]*c,t},inverse:E,len:k,length:i,lerp:O,max:x,min:m,mul:T,multiply:c,negate:C,normalize:b,random:function(t,e=1){const r=s.Ov,n=2*r()*Math.PI,i=2*r()-1,a=Math.sqrt(1-i*i)*e;return t[0]=Math.cos(n)*a,t[1]=Math.sin(n)*a,t[2]=i*e,t},rotateX:function(t,e,r,n){const s=[],i=[];return s[0]=e[0]-r[0],s[1]=e[1]-r[1],s[2]=e[2]-r[2],i[0]=s[0],i[1]=s[1]*Math.cos(n)-s[2]*Math.sin(n),i[2]=s[1]*Math.sin(n)+s[2]*Math.cos(n),t[0]=i[0]+r[0],t[1]=i[1]+r[1],t[2]=i[2]+r[2],t},rotateY:function(t,e,r,n){const s=[],i=[];return s[0]=e[0]-r[0],s[1]=e[1]-r[1],s[2]=e[2]-r[2],i[0]=s[2]*Math.sin(n)+s[0]*Math.cos(n),i[1]=s[1],i[2]=s[2]*Math.cos(n)-s[0]*Math.sin(n),t[0]=i[0]+r[0],t[1]=i[1]+r[1],t[2]=i[2]+r[2],t},rotateZ:function(t,e,r,n){const s=[],i=[];return s[0]=e[0]-r[0],s[1]=e[1]-r[1],s[2]=e[2]-r[2],i[0]=s[0]*Math.cos(n)-s[1]*Math.sin(n),i[1]=s[0]*Math.sin(n)+s[1]*Math.cos(n),i[2]=s[2],t[0]=i[0]+r[0],t[1]=i[1]+r[1],t[2]=i[2]+r[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:M,set:o,sign:g,sqrDist:L,sqrLen:B,squaredDistance:v,squaredLength:y,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:N,subtract:h,transformMat3:_,transformMat4:P,transformQuat:S,transformQuatValues:w},Symbol.toStringTag,{value:"Module"}))},69397(t,e,r){r.d(e,{Qf:()=>u,Qh:()=>a,RS:()=>s,Ul:()=>g,i5:()=>l,lM:()=>i,qK:()=>c});var n=r(34275);const s=16;function i(t){if(!t)return 0;let e=c;for(const r in t)t.hasOwnProperty(r)&&(e+=o(t[r],!1));return e}function a(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 h(t,8);let r=f;for(let n=0;n<e;n++)r+=o(t[n]);return r}(t);let e=c;for(const r in t)t.hasOwnProperty(r)&&(e+=o(t[r]));return e}function o(t,e=!0){switch(typeof t){case"object":return e?a(t):c;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,n.iu)(e)?e.byteLength+l:Array.isArray(e)?h(e,s):0:0),0)}function h(t,e){return f+t.length*e}const c=32,f=16,l=145,g=64},87992(t,e,r){r.d(e,{JR:()=>A,ME:()=>E,MY:()=>O,NO:()=>C,Nh:()=>I,V2:()=>F,_s:()=>Z,e6:()=>R,gh:()=>b,tr:()=>N,uX:()=>d});var n=r(5482),s=r(69397),i=r(16930),a=(r(70328),r(19419)),o=r(60408),u=r(21325),h=r(513),c=r(50954),f=r(79567),l=r(52006),g=r(49663),m=r(46068),x=r(92722);class d{constructor({type:t,spatialReference:e,vertexCount:r,vertexXY:n,vertexZ:s,vertexM:i,partCount:a,partOffsets:o,partFlags:u,segmentFlags:h,segmentIndices:c,segmentParams:f,segmentCountArc:l,segmentCountBezier:g}){this.segmentCountArc=0,this.segmentCountBezier=0,this.type=t,this.spatialReference=e,this.vertexCount=r,this.vertexXY=n,this.vertexZ=s,this.vertexM=i,this.partCount=a,this.partOffsets=o,this.partFlags=u,this.segmentFlags=h,this.segmentIndices=c,this.segmentParams=f,this.segmentCountArc=l,this.segmentCountBezier=g}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?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:r,hasZ:n,hasM:s,segmentCountArc:i,segmentCountBezier:a}=this,o=F(t,e,r,n,s,this.hasCurves(),i,a);o.spatialReference=this.spatialReference;const{vertexXY:u,vertexZ:h,vertexM:c}=this;if(o.vertexXY.set(u.subarray(0,2*e),0),o.vertexZ?.set(h.subarray(0,e),0),o.vertexM?.set(c.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:n,segmentParamCount:s}=this;o.segmentFlags.set(t.subarray(0,e),0),o.segmentIndices.set(r.subarray(0,e),0),o.segmentParams.set(n.subarray(0,s),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,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 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 M(this):[][Symbol.iterator]()}}class M{constructor(t){this.geometry=t,this.value=new p(t)}get done(){return this.value.index>=this.geometry.partCount}next(){return++this.value.index,this}[Symbol.iterator](){return this}}class p{constructor(t){this.geometry=t,this.index=-1,this._readVertex=S(t),this._segments=new v(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 v{constructor(t){this._part=t,this._partStart=0,this._partEnd=0,this._isPolygon="polygon"===t.geometry.type,this.value=new y(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 y{constructor(t){this.geometry=t,this.indexOfStartVertex=-1,this.indexOfEndVertex=-1,this._readVertex=S(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++],n=e[r++],s=e[r++],i=e[r++];return{b:[this.end,[t,n],[s,i]]}}const n=e[r++],s=e[r++],i=e[r++],a=e[r++],o=e[r++],u=e[r++];r++,r++;const h=e[r++],c=e[r++];if(!Boolean(4&n)&&1===i)return{c:[this.end,[h,c]]};const f=2&n?0:1,l=1&n?0:1;return{a:[this.end,[o,u],f,l,a,s,i]}}}function C(t,e){const r={stack:[],error:void 0,hasError:!1};try{return e??=(0,a.Ie)(),(0,n.mS)(r,new P(t,["vertexZ","vertexM","spatialReference"]),!1),(0,a.bx)(e,function(t){let e;const{vertexCount:r,vertexXY:s,vertexZ:i,vertexM:o}=t,u=_(t);if(t.hasCurves()){const r={stack:[],error:void 0,hasError:!1};try{(0,n.mS)(r,new P(t,["vertexZ","vertexM"]),!1);const s=(0,a.Ie)();for(const e of t.parts){let t=e.startVertex;for(const{curve:r}of e.segments)(0,f.e)(s,t,r),t=(0,l.yP)(r)}const[i,o,h,c]=s;e={xmin:i,ymin:o,xmax:h,ymax:c,spatialReference:u}}catch(t){r.error=t,r.hasError=!0}finally{(0,n.hk)(r)}}else{let t,n,i,a;t=n=1/0,i=a=-1/0;for(let e=0;e<r;++e){const r=s[2*e],o=s[2*e+1];t=Math.min(t,r),i=Math.max(i,r),n=Math.min(n,o),a=Math.max(a,o)}e={xmin:t,ymin:n,xmax:i,ymax:a,spatialReference:u}}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,n.hk)(r)}}function E(t){let e,r,n;if((0,o.fT)(t)){n="point";const{x:s,y:i,z:a,m:o}=t,u=[s,i];null!=a&&u.push(a),null!=o&&u.push(o),r=[[u]],e=1}else(0,o.U9)(t)?(n="multipoint",r=[t.points],e=t.points.length):(0,o.Rg)(t)?(n="polyline",r=t.curvePaths??t.paths,e=r.reduce((t,e)=>t+e.length,0)):(n="polygon",r=t.curveRings??t.rings,e=r.reduce((t,e)=>(0===e.length||(t+=e.length,w(e[0],(0,l.yP)(e.at(-1)))&&--t),t),0));const s=F(n,e,n.includes("point")?0:r.length,(0,o.Pv)(t),(0,o.W0)(t),(0,l.Ed)(t)),{hasZ:i,hasM:a,vertexXY:u,vertexZ:h,vertexM:c}=s;function f(t){u[2*m]=t[0],u[2*m+1]=t[1],i&&(h[m]=t[2]),a&&(c[m]=t[g]),++m}s.spatialReference=t.spatialReference??void 0;const g=s.hasZ?3:2;let m=0;if(!s.isMultipart()){if(!i&&!a){for(const[t,e]of r[0])u[2*m]=t,u[2*m+1]=e,++m;return s}for(const t of r[0])f(t);return s}const x="polygon"===n,{partOffsets:d}=s;let M=0;if(!s.hasCurves()){for(const t of r){if(d[M++]=m,0===t.length)continue;let e=t.length;if(x&&w(t[0],t.at(-1))&&--e,i||a)for(let r=0;r<e;++r)f(t[r]);else for(let r=0;r<e;++r){const[e,n]=t[r];u[2*m]=e,u[2*m+1]=n,++m}}return d[M]=m,s}function p(t){const e=v+t;if(e<=(s.segmentParams?.length??0))return;let r=e*T;r=20*Math.ceil(r/20);const n=s.segmentParams;s.segmentParams=new Float64Array(r),null!=n&&s.segmentParams.set(n)}let v=0;for(const t of r){if(s.partOffsets[M++]=m,0===t.length)continue;const e=t[0];let r=e;for(let e=1;e<t.length;++e){const n=t[e];f(r);const i=m-1;(0,l.wY)(n)?(p(10),++s.segmentCountArc,v=Z(r,n,s,i,v),r=n.a[0]):(0,l.DA)(n)?(p(10),++s.segmentCountArc,v=Y(r,n,s,i,v),r=n.a[0]):(0,l.aO)(n)?(p(10),++s.segmentCountArc,v=R(r,n,s,i,v),r=n.c[0]):(0,l.n1)(n)?(p(4),++s.segmentCountBezier,v=N(0,n,s,i,v),r=n.b[0]):r=n}x&&w(e,r)||f(r)}return s.partOffsets[M]=m,s}function b(t){const e=S(t),{vertexCount:r,partCount:n,hasZ:s,hasM:i}=t,a=_(t);if("point"===t.type){const[e,r]=t.vertexXY,n=t.vertexZ?.[0],s=t.vertexM?.[0];return{x:e,y:r,z:n,m:s,spatialReference:a}}let o=0;if("multipoint"===t.type){const t=[];for(;o<r;)t.push(e(o++));return{points:t,spatialReference:a,hasZ:s,hasM:i}}const u="polygon"===t.type;if(!t.hasCurves()){const r=new Array;for(let s=0;s<n;++s){const n=t.partOffsets[s+1],i=new Array;for(;o<n;)i.push(e(o++));u&&i.length>0&&i.push(i[0]),r.push(i)}return u?{rings:r,hasZ:s,hasM:i,spatialReference:a}:{paths:r,hasZ:s,hasM:i,spatialReference:a}}const h=new Array;for(const{segments:e,startVertex:r}of t.parts){const t=[r];for(const{curve:r}of e)t.push(r);h.push(t)}return u?{rings:[],curveRings:h,hasZ:s,hasM:i,spatialReference:a}:{paths:[],curvePaths:h,hasZ:s,hasM:i,spatialReference:a}}function I(t,{lengths:e,coords:r,hasZ:n,hasM:s},i){const a=t.includes("point")?0:e.length,o="polygon"===t,u="point"===t?1:e.reduce((t,e)=>t+e,0)-(o?a:0);n??=!1,s??=!1;const h=F(t,u,a,n,s,!1,0,0);if(h.spatialReference=i??void 0,!h.isMultipart()){for(let t=0,e=0;t<u;++t)h.vertexXY[2*t]=r[e++],h.vertexXY[2*t+1]=r[e++],n&&(h.vertexZ[t]=r[e++]),s&&(h.vertexM[t]=r[e++]);return h}const c=2+Number(n)+Number(s);let f=0,l=0;h.partOffsets[0]=0;for(const t of e){const e=h.partOffsets[l],i=e+t-Number(o);h.partOffsets[++l]=i;for(let t=e;t<i;++t)h.vertexXY[2*t]=r[f++],h.vertexXY[2*t+1]=r[f++],n&&(h.vertexZ[t]=r[f++]),s&&(h.vertexM[t]=r[f++]);o&&(f+=c)}return h}function A({type:t,vertexCount:e,vertexXY:r,vertexZ:n,vertexM:s,partCount:i,partOffsets:a,hasZ:o,hasM:u}){const h=new x.A([],[],o,u);i=Math.max(i,1);const c="polygon"===t;let f=0;for(let t=0;t<i;++t){const i=a?.[t+1]??e,l=h.coords.length;for(let t=f;t<i;++t)h.coords.push(r[2*t],r[2*t+1]),o&&h.coords.push(n[t]),u&&h.coords.push(s[t]);if(c){const t=f;h.coords.push(r[2*t],r[2*t+1]),o&&h.coords.push(n[t]),u&&h.coords.push(s[t])}h.lengths.push((h.coords.length-l)/h.stride),f=i}return"point"===t&&(h.lengths.length=0),h}function O(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 n=t.getLatestID();(n<=0||n===r)&&(n=void 0);const s=t.getVCS();if(null==s)return{wkid:r,latestWkid:n,wkt:e};const i=s.isCustomWkid()?0:s.getOldID();if(i<=0)return{wkt:e};let a=t.getLatestVerticalID();return(a<=0||a===i)&&(a=void 0),{wkid:r,wkt:e,latestWkid:n,vcsWkid:i,latestVcsWkid:a}}(t.getSpatialReference()),t=t.getGeometry()),new d({...t.toFlatGeometry(),spatialReference:e})}class P{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 _({spatialReference:t}){return t instanceof i.A?t.toJSON():t}function S({vertexXY:t,vertexZ:e,vertexM:r}){return e?r?n=>[t[2*n],t[2*n+1],e[n],r[n]]: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 w(t,e){return t.every((t,r)=>t===e[r])}function F(t,e,r,n,s,i,a,o){a??=0,o??=0;const u=new d({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 h=2*Float64Array.BYTES_PER_ELEMENT*e;n&&(h+=Float64Array.BYTES_PER_ELEMENT*e),s&&(h+=Float64Array.BYTES_PER_ELEMENT*e),u.isMultipart()&&(h+=(r+1)*Int32Array.BYTES_PER_ELEMENT,h+=(r+1)*Int8Array.BYTES_PER_ELEMENT),i&&(h+=e*Int8Array.BYTES_PER_ELEMENT,h+=e*Int32Array.BYTES_PER_ELEMENT,h+=u.segmentParamCount*Float64Array.BYTES_PER_ELEMENT);const c=new ArrayBuffer(h);let f=0;return u.vertexXY=new Float64Array(c,f,2*e),f+=u.vertexXY.byteLength,n&&(u.vertexZ=new Float64Array(c,f,e),f+=u.vertexZ.byteLength),s&&(u.vertexM=new Float64Array(c,f,e),f+=u.vertexM.byteLength),i&&(u.segmentParams=new Float64Array(c,f,u.segmentParamCount),f+=u.segmentParams.byteLength,u.segmentIndices=new Int32Array(c,f,e),u.segmentIndices.fill(z),f+=u.segmentIndices.byteLength),u.isMultipart()&&(u.partOffsets=new Int32Array(c,f,r+1),f+=u.partOffsets.byteLength,u.partFlags=new Int8Array(c,f,r+1),f+=u.partFlags.byteLength,"polygon"===u.type&&u.partFlags.subarray(0,r).fill(1)),i&&(u.segmentFlags=new Int8Array(c,f,e),u.segmentFlags.fill(1),f+=u.segmentFlags.byteLength),u}function Z(t,e,{segmentFlags:r,segmentIndices:n,segmentParams:s},i,a){r[i]=4,n[i]=a;const[o,[u,h],c,f,l,g,x]=e.a;let d=4;f||(d|=1),c||(d|=2);const M=(0,m.SW)(t,e),[p,v]=(0,m.Uk)(M,.5);return s[a++]=d,s[a++]=g,s[a++]=x,s[a++]=l,s[a++]=u,s[a++]=h,s[a++]=M.u2-M.u1,s[a++]=M.u1,s[a++]=p,s[a++]=v,a}function Y(t,e,{segmentFlags:r,segmentIndices:n,segmentParams:s},i,a){r[i]=4,n[i]=a;const o=(0,g.io)(t,e);return V(o,4,...(0,h.mq)(o,.5),s,a)}function R(t,e,{segmentFlags:r,segmentIndices:n,segmentParams:s},i,a){return r[i]=4,n[i]=a,V((0,c.pM)(t,e),0,...e.c[1],s,a)}function V(t,e,r,n,s,i){const{cx:a,cy:o,thetaStart:u,thetaEnd:h,radius:c}=t;return u>h||(e|=1),Math.abs(h-u)<=Math.PI||(e|=2),s[i++]=e,s[i++]=c,s[i++]=1,s[i++]=0,s[i++]=a,s[i++]=o,s[i++]=h-u,s[i++]=u,s[i++]=r,s[i++]=n,i}function N(t,{b:[e,[r,n],[s,i]]},{segmentFlags:a,segmentIndices:o,segmentParams:u},h,c){return a[h]=2,o[h]=c,u[c++]=r,u[c++]=n,u[c++]=s,u[c++]=i,c}const T=1.61803,z=-1},4197(t,e,r){r.d(e,{Vj:()=>h,cj:()=>u,jh:()=>i,l5:()=>o,xm:()=>a});var n=r(34275),s=r(9093);function i(t){return t<=n.y9?new Array(t).fill(0):new Float64Array(t)}function a(t){return((0,n.iu)(t)?t.byteLength/8:t.length)<=n.y9?Array.from(t):new Float64Array(t)}function o(t,e,r){return Array.isArray(t)?t.slice(e,e+r):t.subarray(e,e+r)}function u(t){return[...t]}function h(t){const e=(0,s.vt)();for(let r=0;r<16;++r)e[r]=t[r];return e}},70328(t,e,r){r.d(e,{BI:()=>v,DC:()=>f,Ej:()=>g,Ie:()=>M,Jt:()=>p,Ne:()=>m,RF:()=>c,aI:()=>C,fA:()=>a,gE:()=>u,hZ:()=>d,iT:()=>l,is:()=>y,qv:()=>E,vI:()=>x,vY:()=>o,v_:()=>b,vt:()=>i,w1:()=>h}),r(35522);var n=r(5443),s=(r(19419),r(4197));function i(t=b){return[t[0],t[1],t[2],t[3],t[4],t[5]]}function a(t,e,r,n,s,a,o=i()){return o[0]=t,o[1]=e,o[2]=r,o[3]=n,o[4]=s,o[5]=a,o}function o(t,e=i()){return function(t,e,r,n=i()){return d(n,E),function(t,e,r=0,n=e.length/3){let s=t[0],i=t[1],a=t[2],o=t[3],u=t[4],h=t[5];for(let t=0;t<n;t++)s=Math.min(s,e[r+3*t]),i=Math.min(i,e[r+3*t+1]),a=Math.min(a,e[r+3*t+2]),o=Math.max(o,e[r+3*t]),u=Math.max(u,e[r+3*t+1]),h=Math.max(h,e[r+3*t+2]);t[0]=s,t[1]=i,t[2]=a,t[3]=o,t[4]=u,t[5]=h}(n,t,e,r),n}(t,0,t.length/3,e)}function u(t,e=(0,s.jh)(24)){const[r,n,i,a,o,u]=t;return e[0]=r,e[1]=n,e[2]=i,e[3]=r,e[4]=n,e[5]=u,e[6]=r,e[7]=o,e[8]=i,e[9]=r,e[10]=o,e[11]=u,e[12]=a,e[13]=n,e[14]=i,e[15]=a,e[16]=n,e[17]=u,e[18]=a,e[19]=o,e[20]=i,e[21]=a,e[22]=o,e[23]=u,e}function h(t,e){const r=isFinite(t[2])||isFinite(t[5]);return new n.A(r?{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 c(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 f(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 l(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 g(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 m(t,e,r=t){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r!==t&&(r[3]=t[3],r[4]=t[4],r[5]=t[5]),r}function x(t,e,r=t){return r[3]=e[0],r[4]=e[1],r[5]=e[2],r!==t&&(r[0]=t[0],r[1]=t[1],r[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 M(t){return t?d(t,E):i(E)}function p(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 v(t,e,r,n,s){return t[0]=e,t[1]=r,t[2]=Number.NEGATIVE_INFINITY,t[3]=n,t[4]=s,t[5]=Number.POSITIVE_INFINITY,t}function y(t){return 6===t.length}function C(t,e,r){if(null==t||null==e)return t===e;if(!y(t)||!y(e))return!1;if(r){for(let n=0;n<t.length;n++)if(!r(t[n],e[n]))return!1}else for(let r=0;r<t.length;r++)if(t[r]!==e[r])return!1;return!0}const E=[1/0,1/0,1/0,-1/0,-1/0,-1/0],b=[0,0,0,0,0,0];i()},92722(t,e,r){r.d(e,{A:()=>s});var n=r(69397);class s{constructor(t=[],e=[],r=!1,n=!1){this.lengths=t??[],this.coords=e??[],this.hasZ=r,this.hasM=n}static fromJSON({lengths:t,coords:e,hasZ:r,hasM:n}){return new s(t,e,r||!1,n||!1)}static fromRect([t,e,r,n]){const i=r-t,a=n-e;return new s([5],[t,e,i,0,0,a,-i,0,0,-a])}get isPoint(){return 0===this.lengths.length&&this.coords.length>=2}get maxLength(){return Math.max(...this.lengths)}get size(){return this.isPoint?1:this.lengths.reduce((t,e)=>t+e,0)}get usedMemory(){return 64+(0,n.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 r of this.lengths){if(r<3)continue;const{stride:n}=this;let s=this.coords[n*e],i=this.coords[n*e+1];for(let a=1;a<r;a+=1){const r=n*(e+a),o=this.coords[r],u=this.coords[r+1];t+=-.5*(o-s)*(u+i),s=o,i=u}e+=r}return t}forEachVertex(t){let e=0;if(this.isPoint)return t(this.coords[0],this.coords[1]);const{stride:r}=this;for(const n of this.lengths){for(let s=0;s<n;s++){const n=r*(e+s);t(this.coords[n],this.coords[n+1])}e+=n}}deltaDecode(){const t=this.clone(),{coords:e,lengths:r}=t;let n=0;const{stride:s}=this;for(const t of r){for(let r=1;r<t;r++){const t=s*(n+r);e[t]+=e[t-s],e[t+1]+=e[t+1-s]}n+=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:r,size:n}=this,i=this.coords.slice(0,n*r);return t?(t.set(i),new s(e,t)):new s(e,Array.from(i),this.hasZ,this.hasM)}justXY(){const{stride:t,size:e}=this;if(2===t)return this;const r=new Array(e*t);for(let e=0,n=0;e<r.length;e+=t)r[n++]=this.coords[e],r[n++]=this.coords[e+1];return new s(this.lengths,r,!1,!1)}}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3514,9397],{59260(t,n,r){r.d(n,{g:()=>a,p:()=>h});var e=r(36633),o=r(86211),i=r(78125),s=r(79533);const u=new e.O;function a(t,n,r={}){const{calculateLeftRightSide:e=!1,testPolygonInterior:a=!0,unit:c}=r,h=u.getNearestCoordinate((0,i.fromGeometry)(t),(0,i.fromPoint)(n).getXY(),a,e);if(c&&h.m_distance){const n=(0,i.getSpatialReference)(t);h.m_distance=(0,o.PQ)(h.m_distance,n,c)}return(0,s.C)(h,t,e)}const c=u.supportsCurves(),h=Object.freeze(Object.defineProperty({__proto__:null,getNearestCoordinate:a,getNearestVertex:function(t,n,r={}){const{unit:e}=r,a=u.getNearestVertex((0,i.fromGeometry)(t),(0,i.fromPoint)(n).getXY());if(e&&a.m_distance){const n=(0,i.getSpatialReference)(t);a.m_distance=(0,o.PQ)(a.m_distance,n,e)}return(0,s.C)(a,t)},getNearestVertices:function(t,n,r,e,a={}){const{unit:c}=a,h=(0,i.getSpatialReference)(t);return c&&r&&(r=(0,o.UW)(r,c,h)),u.getNearestVertices((0,i.fromGeometry)(t),(0,i.fromPoint)(n).getXY(),r,e).map(n=>(c&&n.m_distance&&(n.m_distance=(0,o.PQ)(n.m_distance,h,c)),(0,s.C)(n,t)))},supportsCurves:c},Symbol.toStringTag,{value:"Module"}))},9093(t,n,r){function e(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function o(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]]}r.d(n,{o8:()=>o,vt:()=>e,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:o,create:e,fromValues:function(t,n,r,e,o,i,s,u,a,c,h,f,l,m,M,d){return[t,n,r,e,o,i,s,u,a,c,h,f,l,m,M,d]}},Symbol.toStringTag,{value:"Module"}))},51850(t,n,r){function e(){return[0,0,0]}function o(t){return[t[0],t[1],t[2]]}function i(t,n,r){return[t,n,r]}function s(t,n,r){return[t,n,r]}function u(t,n=[0,0,0]){const r=Math.min(3,t.length);for(let e=0;e<r;++e)n[e]=t[e];return n}function a(){return i(1,1,1)}function c(){return i(1,0,0)}function h(){return i(0,1,0)}function f(){return i(0,0,1)}r.d(n,{CN:()=>s,Cb:()=>g,Cw:()=>M,JP:()=>d,Un:()=>m,ci:()=>u,fA:()=>i,o8:()=>o,uY:()=>l,vt:()=>e});const l=[0,0,0],m=a(),M=c(),d=h(),g=f();Object.freeze(Object.defineProperty({__proto__:null,ONES:m,UNIT_X:M,UNIT_Y:d,UNIT_Z:g,ZEROS:l,clone:o,create:e,freeze:s,fromArray:u,fromValues:i,ones:a,unitX:c,unitY:h,unitZ:f,zeros:function(){return[0,0,0]}},Symbol.toStringTag,{value:"Module"}))},35522(t,n,r){r.d(n,{$A:()=>A,Bw:()=>i,C:()=>s,Cc:()=>P,DI:()=>p,Il:()=>Q,Io:()=>b,Ln:()=>y,Om:()=>N,Qr:()=>f,Re:()=>c,S8:()=>v,T9:()=>d,WQ:()=>a,Z0:()=>S,_S:()=>m,aI:()=>E,ei:()=>w,fw:()=>T,gL:()=>C,hG:()=>x,hZ:()=>u,hs:()=>g,jb:()=>q,jk:()=>M,lo:()=>F,lw:()=>h,m3:()=>_,oW:()=>R,t2:()=>z,tn:()=>l,uE:()=>L,xg:()=>Z,ze:()=>I});var e=r(51850),o=r(34304);function i(t){const n=t[0],r=t[1],e=t[2];return Math.sqrt(n*n+r*r+e*e)}function s(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t}function u(t,n,r,e){return t[0]=n,t[1]=r,t[2]=e,t}function a(t,n,r){return t[0]=n[0]+r[0],t[1]=n[1]+r[1],t[2]=n[2]+r[2],t}function c(t,n,r){return t[0]=n[0]-r[0],t[1]=n[1]-r[1],t[2]=n[2]-r[2],t}function h(t,n,r){return t[0]=n[0]*r[0],t[1]=n[1]*r[1],t[2]=n[2]*r[2],t}function f(t,n,r){return t[0]=n[0]/r[0],t[1]=n[1]/r[1],t[2]=n[2]/r[2],t}function l(t,n){return t[0]=Math.abs(n[0]),t[1]=Math.abs(n[1]),t[2]=Math.abs(n[2]),t}function m(t,n){return t[0]=Math.sign(n[0]),t[1]=Math.sign(n[1]),t[2]=Math.sign(n[2]),t}function M(t,n,r){return t[0]=Math.min(n[0],r[0]),t[1]=Math.min(n[1],r[1]),t[2]=Math.min(n[2],r[2]),t}function d(t,n,r){return t[0]=Math.max(n[0],r[0]),t[1]=Math.max(n[1],r[1]),t[2]=Math.max(n[2],r[2]),t}function g(t,n,r){return t[0]=n[0]*r,t[1]=n[1]*r,t[2]=n[2]*r,t}function y(t,n,r,e){return t[0]=n[0]+r[0]*e,t[1]=n[1]+r[1]*e,t[2]=n[2]+r[2]*e,t}function b(t,n){const r=n[0]-t[0],e=n[1]-t[1],o=n[2]-t[2];return Math.sqrt(r*r+e*e+o*o)}function x(t,n){const r=n[0]-t[0],e=n[1]-t[1],o=n[2]-t[2];return r*r+e*e+o*o}function _(t){const n=t[0],r=t[1],e=t[2];return n*n+r*r+e*e}function I(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t}function p(t,n){return t[0]=1/n[0],t[1]=1/n[1],t[2]=1/n[2],t}function v(t,n){const r=n[0],e=n[1],o=n[2];let i=r*r+e*e+o*o;return i>0&&(i=1/Math.sqrt(i),t[0]=n[0]*i,t[1]=n[1]*i,t[2]=n[2]*i),t}function N(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}function A(t,n,r){const e=n[0],o=n[1],i=n[2],s=r[0],u=r[1],a=r[2];return t[0]=o*a-i*u,t[1]=i*s-e*a,t[2]=e*u-o*s,t}function P(t,n,r,e){const o=n[0],i=n[1],s=n[2];return t[0]=o+e*(r[0]-o),t[1]=i+e*(r[1]-i),t[2]=s+e*(r[2]-s),t}function S(t,n,r){const e=n[0],o=n[1],i=n[2];return t[0]=r[0]*e+r[4]*o+r[8]*i+r[12],t[1]=r[1]*e+r[5]*o+r[9]*i+r[13],t[2]=r[2]*e+r[6]*o+r[10]*i+r[14],t}function w(t,n,r){const e=n[0],o=n[1],i=n[2];return t[0]=e*r[0]+o*r[3]+i*r[6],t[1]=e*r[1]+o*r[4]+i*r[7],t[2]=e*r[2]+o*r[5]+i*r[8],t}function C(t,n,r){return T(t,n,r[0],r[1],r[2],r[3])}function T(t,n,r,e,o,i){const s=n[0],u=n[1],a=n[2],c=e*a-o*u,h=o*s-r*a,f=r*u-e*s,l=e*f-o*h,m=o*c-r*f,M=r*h-e*c,d=2*i;return t[0]=s+c*d+2*l,t[1]=u+h*d+2*m,t[2]=a+f*d+2*M,t}const O=(0,e.vt)(),j=(0,e.vt)();function z(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]}function E(t,n){if(t===n)return!0;const r=t[0],e=t[1],i=t[2],s=n[0],u=n[1],a=n[2],c=(0,o.FD)();return Math.abs(r-s)<=c*Math.max(1,Math.abs(r),Math.abs(s))&&Math.abs(e-u)<=c*Math.max(1,Math.abs(e),Math.abs(u))&&Math.abs(i-a)<=c*Math.max(1,Math.abs(i),Math.abs(a))}function R(t,n,r){const e=r[0]-n[0],o=r[1]-n[1],i=r[2]-n[2];let s=e*e+o*o+i*i;return s>0?(s=1/Math.sqrt(s),t[0]=e*s,t[1]=o*s,t[2]=i*s,t):(t[0]=0,t[1]=0,t[2]=0,t)}const q=c,Y=h,V=f,Z=b,F=x,Q=i,L=_;Object.freeze(Object.defineProperty({__proto__:null,abs:l,add:a,angle:function(t,n){v(O,t),v(j,n);const r=N(O,j);return r>1?0:r<-1?Math.PI:Math.acos(r)},bezier:function(t,n,r,e,o,i){const s=1-i,u=s*s,a=i*i,c=u*s,h=3*i*u,f=3*a*s,l=a*i;return t[0]=n[0]*c+r[0]*h+e[0]*f+o[0]*l,t[1]=n[1]*c+r[1]*h+e[1]*f+o[1]*l,t[2]=n[2]*c+r[2]*h+e[2]*f+o[2]*l,t},ceil:function(t,n){return t[0]=Math.ceil(n[0]),t[1]=Math.ceil(n[1]),t[2]=Math.ceil(n[2]),t},clamp:function(t,n=0,r=1){return t[0]=Math.min(Math.max(t[0],n),r),t[1]=Math.min(Math.max(t[1],n),r),t[2]=Math.min(Math.max(t[2],n),r),t},copy:s,cross:A,crossAndNormalize:function(t,n,r){const e=n[0],o=n[1],i=n[2],s=r[0],u=r[1],a=r[2],c=o*a-i*u,h=i*s-e*a,f=e*u-o*s,l=Math.sqrt(c*c+h*h+f*f);return t[0]=c/l,t[1]=h/l,t[2]=f/l,t},direction:R,dist:Z,distance:b,div:V,divide:f,dot:N,equals:E,exactEquals:z,floor:function(t,n){return t[0]=Math.floor(n[0]),t[1]=Math.floor(n[1]),t[2]=Math.floor(n[2]),t},hermite:function(t,n,r,e,o,i){const s=i*i,u=s*(2*i-3)+1,a=s*(i-2)+i,c=s*(i-1),h=s*(3-2*i);return t[0]=n[0]*u+r[0]*a+e[0]*c+o[0]*h,t[1]=n[1]*u+r[1]*a+e[1]*c+o[1]*h,t[2]=n[2]*u+r[2]*a+e[2]*c+o[2]*h,t},inverse:p,len:Q,length:i,lerp:P,max:d,min:M,mul:Y,multiply:h,negate:I,normalize:v,random:function(t,n=1){const r=o.Ov,e=2*r()*Math.PI,i=2*r()-1,s=Math.sqrt(1-i*i)*n;return t[0]=Math.cos(e)*s,t[1]=Math.sin(e)*s,t[2]=i*n,t},rotateX:function(t,n,r,e){const o=[],i=[];return o[0]=n[0]-r[0],o[1]=n[1]-r[1],o[2]=n[2]-r[2],i[0]=o[0],i[1]=o[1]*Math.cos(e)-o[2]*Math.sin(e),i[2]=o[1]*Math.sin(e)+o[2]*Math.cos(e),t[0]=i[0]+r[0],t[1]=i[1]+r[1],t[2]=i[2]+r[2],t},rotateY:function(t,n,r,e){const o=[],i=[];return o[0]=n[0]-r[0],o[1]=n[1]-r[1],o[2]=n[2]-r[2],i[0]=o[2]*Math.sin(e)+o[0]*Math.cos(e),i[1]=o[1],i[2]=o[2]*Math.cos(e)-o[0]*Math.sin(e),t[0]=i[0]+r[0],t[1]=i[1]+r[1],t[2]=i[2]+r[2],t},rotateZ:function(t,n,r,e){const o=[],i=[];return o[0]=n[0]-r[0],o[1]=n[1]-r[1],o[2]=n[2]-r[2],i[0]=o[0]*Math.cos(e)-o[1]*Math.sin(e),i[1]=o[0]*Math.sin(e)+o[1]*Math.cos(e),i[2]=o[2],t[0]=i[0]+r[0],t[1]=i[1]+r[1],t[2]=i[2]+r[2],t},round:function(t,n){return t[0]=Math.round(n[0]),t[1]=Math.round(n[1]),t[2]=Math.round(n[2]),t},scale:g,scaleAndAdd:y,set:u,sign:m,sqrDist:F,sqrLen:L,squaredDistance:x,squaredLength:_,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:q,subtract:c,transformMat3:w,transformMat4:S,transformQuat:C,transformQuatValues:T},Symbol.toStringTag,{value:"Module"}))},69397(t,n,r){r.d(n,{Qf:()=>a,Qh:()=>s,RS:()=>o,Ul:()=>m,i5:()=>l,lM:()=>i,qK:()=>h});var e=r(34275);const o=16;function i(t){if(!t)return 0;let n=h;for(const r in t)t.hasOwnProperty(r)&&(n+=u(t[r],!1));return n}function s(t){if(!t)return 0;if("number"==typeof t[0])return a(t);if(Array.isArray(t))return function(t){const n=t.length;if(0===n||"number"==typeof t[0])return c(t,8);let r=f;for(let e=0;e<n;e++)r+=u(t[e]);return r}(t);let n=h;for(const r in t)t.hasOwnProperty(r)&&(n+=u(t[r]));return n}function u(t,n=!0){switch(typeof t){case"object":return n?s(t):h;case"string":return function(t){return 32+t.length}(t);case"number":return o;case"boolean":return 4;default:return 8}}function a(...t){return t.reduce((t,n)=>t+(n?(0,e.iu)(n)?n.byteLength+l:Array.isArray(n)?c(n,o):0:0),0)}function c(t,n){return f+t.length*n}const h=32,f=16,l=145,m=64},48032(t,n,r){r.d(n,{getNearestCoordinate:()=>e.g}),r(36633),r(86211),r(78125),r(79533);var e=r(59260)},79533(t,n,r){r.d(n,{C:()=>o});var e=r(78125);function o(t,n,r=!1){const o=(0,e.toPoint)(t.m_coordinate,(0,e.getSpatialReference)(n)),i=t.m_distance,s=t.isEmpty(),u=t.m_bRightSide;return{coordinate:o,distance:i,isEmpty:s,...r&&{isRightSide:u},vertexIndex:t.m_vertexIndex}}},4197(t,n,r){r.d(n,{Vj:()=>c,cj:()=>a,jh:()=>i,l5:()=>u,xm:()=>s});var e=r(34275),o=r(9093);function i(t){return t<=e.y9?new Array(t).fill(0):new Float64Array(t)}function s(t){return((0,e.iu)(t)?t.byteLength/8:t.length)<=e.y9?Array.from(t):new Float64Array(t)}function u(t,n,r){return Array.isArray(t)?t.slice(n,n+r):t.subarray(n,n+r)}function a(t){return[...t]}function c(t){const n=(0,o.vt)();for(let r=0;r<16;++r)n[r]=t[r];return n}},70328(t,n,r){r.d(n,{BI:()=>x,DC:()=>f,Ej:()=>m,Ie:()=>y,Jt:()=>b,Ne:()=>M,RF:()=>h,aI:()=>I,fA:()=>s,gE:()=>a,hZ:()=>g,iT:()=>l,is:()=>_,qv:()=>p,vI:()=>d,vY:()=>u,v_:()=>v,vt:()=>i,w1:()=>c}),r(35522);var e=r(5443),o=(r(19419),r(4197));function i(t=v){return[t[0],t[1],t[2],t[3],t[4],t[5]]}function s(t,n,r,e,o,s,u=i()){return u[0]=t,u[1]=n,u[2]=r,u[3]=e,u[4]=o,u[5]=s,u}function u(t,n=i()){return function(t,n,r,e=i()){return g(e,p),function(t,n,r=0,e=n.length/3){let o=t[0],i=t[1],s=t[2],u=t[3],a=t[4],c=t[5];for(let t=0;t<e;t++)o=Math.min(o,n[r+3*t]),i=Math.min(i,n[r+3*t+1]),s=Math.min(s,n[r+3*t+2]),u=Math.max(u,n[r+3*t]),a=Math.max(a,n[r+3*t+1]),c=Math.max(c,n[r+3*t+2]);t[0]=o,t[1]=i,t[2]=s,t[3]=u,t[4]=a,t[5]=c}(e,t,n,r),e}(t,0,t.length/3,n)}function a(t,n=(0,o.jh)(24)){const[r,e,i,s,u,a]=t;return n[0]=r,n[1]=e,n[2]=i,n[3]=r,n[4]=e,n[5]=a,n[6]=r,n[7]=u,n[8]=i,n[9]=r,n[10]=u,n[11]=a,n[12]=s,n[13]=e,n[14]=i,n[15]=s,n[16]=e,n[17]=a,n[18]=s,n[19]=u,n[20]=i,n[21]=s,n[22]=u,n[23]=a,n}function c(t,n){const r=isFinite(t[2])||isFinite(t[5]);return new e.A(r?{xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],zmin:t[2],zmax:t[5],spatialReference:n}:{xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],spatialReference:n})}function h(t,n){t[0]=Math.min(t[0],n[0]),t[1]=Math.min(t[1],n[1]),t[2]=Math.min(t[2],n[2]),t[3]=Math.max(t[3],n[3]),t[4]=Math.max(t[4],n[4]),t[5]=Math.max(t[5],n[5])}function f(t,n){t[0]=Math.min(t[0],n[0]),t[1]=Math.min(t[1],n[1]),t[3]=Math.max(t[3],n[2]),t[4]=Math.max(t[4],n[3])}function l(t,n){t[0]=Math.min(t[0],n[0]),t[1]=Math.min(t[1],n[1]),t[2]=Math.min(t[2],n[2]),t[3]=Math.max(t[3],n[0]),t[4]=Math.max(t[4],n[1]),t[5]=Math.max(t[5],n[2])}function m(t,n=[0,0,0]){return n[0]=function(t){return t[0]>=t[3]?0:t[3]-t[0]}(t),n[1]=function(t){return t[1]>=t[4]?0:t[4]-t[1]}(t),n[2]=function(t){return t[2]>=t[5]?0:t[5]-t[2]}(t),n}function M(t,n,r=t){return r[0]=n[0],r[1]=n[1],r[2]=n[2],r!==t&&(r[3]=t[3],r[4]=t[4],r[5]=t[5]),r}function d(t,n,r=t){return r[3]=n[0],r[4]=n[1],r[5]=n[2],r!==t&&(r[0]=t[0],r[1]=t[1],r[2]=t[2]),t}function g(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t}function y(t){return t?g(t,p):i(p)}function b(t,n){return t[0]=n[0],t[1]=n[1],t[2]=Number.NEGATIVE_INFINITY,t[3]=n[2],t[4]=n[3],t[5]=Number.POSITIVE_INFINITY,t}function x(t,n,r,e,o){return t[0]=n,t[1]=r,t[2]=Number.NEGATIVE_INFINITY,t[3]=e,t[4]=o,t[5]=Number.POSITIVE_INFINITY,t}function _(t){return 6===t.length}function I(t,n,r){if(null==t||null==n)return t===n;if(!_(t)||!_(n))return!1;if(r){for(let e=0;e<t.length;e++)if(!r(t[e],n[e]))return!1}else for(let r=0;r<t.length;r++)if(t[r]!==n[r])return!1;return!0}const p=[1/0,1/0,1/0,-1/0,-1/0,-1/0],v=[0,0,0,0,0,0];i()},92722(t,n,r){r.d(n,{A:()=>o});var e=r(69397);class o{constructor(t=[],n=[],r=!1,e=!1){this.lengths=t??[],this.coords=n??[],this.hasZ=r,this.hasM=e}static fromJSON({lengths:t,coords:n,hasZ:r,hasM:e}){return new o(t,n,r||!1,e||!1)}static fromRect([t,n,r,e]){const i=r-t,s=e-n;return new o([5],[t,n,i,0,0,s,-i,0,0,-s])}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,n)=>t+n,0)}get usedMemory(){return 64+(0,e.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,n=0;for(const r of this.lengths){if(r<3)continue;const{stride:e}=this;let o=this.coords[e*n],i=this.coords[e*n+1];for(let s=1;s<r;s+=1){const r=e*(n+s),u=this.coords[r],a=this.coords[r+1];t+=-.5*(u-o)*(a+i),o=u,i=a}n+=r}return t}forEachVertex(t){let n=0;if(this.isPoint)return t(this.coords[0],this.coords[1]);const{stride:r}=this;for(const e of this.lengths){for(let o=0;o<e;o++){const e=r*(n+o);t(this.coords[e],this.coords[e+1])}n+=e}}deltaDecode(){const t=this.clone(),{coords:n,lengths:r}=t;let e=0;const{stride:o}=this;for(const t of r){for(let r=1;r<t;r++){const t=o*(e+r);n[t]+=n[t-o],n[t+1]+=n[t+1-o]}e+=t}return t}clone(t){if(this.isPoint)return new o([],Array.from(this.coords.slice(0,this.stride)),this.hasZ,this.hasM);const n=Array.from(this.lengths),{stride:r,size:e}=this,i=this.coords.slice(0,e*r);return t?(t.set(i),new o(n,t)):new o(n,Array.from(i),this.hasZ,this.hasM)}justXY(){const{stride:t,size:n}=this;if(2===t)return this;const r=new Array(n*t);for(let n=0,e=0;n<r.length;n+=t)r[e++]=this.coords[n],r[e++]=this.coords[n+1];return new o(this.lengths,r,!1,!1)}}}}]);