@arcgis/core 4.23.0-next.20220126 → 4.23.0-next.20220130

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 (523) hide show
  1. package/arcade/featureset/sources/FeatureLayerDynamic.js +1 -1
  2. package/assets/esri/core/workers/RemoteClient.js +1 -1
  3. package/assets/esri/core/workers/chunks/02fbc76dfdc20e628c61.js +1 -0
  4. package/assets/esri/core/workers/chunks/0453fad5cb819797b4f6.js +1 -0
  5. package/assets/esri/core/workers/chunks/0463ba46df855a92b9c0.js +1 -0
  6. package/assets/esri/core/workers/chunks/0cd0a6eef51fc5b9ea61.js +1 -0
  7. package/assets/esri/core/workers/chunks/{97ec9eef0048760fa260.js → 0d02c6ad1f4688bfa374.js} +1 -1
  8. package/assets/esri/core/workers/chunks/0d684f16f37d5dc385dd.js +1 -0
  9. package/assets/esri/core/workers/chunks/0e17691520d890d34efb.js +1 -0
  10. package/assets/esri/core/workers/chunks/16b6d0f8378582c051c3.js +1 -0
  11. package/assets/esri/core/workers/chunks/{0ce1dc14280d6f188468.js → 17de7a324dfa7f57ad5d.js} +1 -1
  12. package/assets/esri/core/workers/chunks/{b313ab14a643273e7d09.js → 1877ab1b6a115dbba1c5.js} +1 -1
  13. package/assets/esri/core/workers/chunks/{c36f84daa7736878418d.js → 197ec52641aed20029c6.js} +1 -1
  14. package/assets/esri/core/workers/chunks/1b2a961f776a0b57e57a.js +1 -0
  15. package/assets/esri/core/workers/chunks/1b3fd66577b19aa5f2b6.js +1 -0
  16. package/assets/esri/core/workers/chunks/1c733b7db092a2a88ef3.js +1 -0
  17. package/assets/esri/core/workers/chunks/1f8c6a179e39fd4c5e6f.js +1 -0
  18. package/assets/esri/core/workers/chunks/2076fcbae63f1bfb7143.js +1 -0
  19. package/assets/esri/core/workers/chunks/{9387db408f496e7dd003.js → 214910032945dd2d86b0.js} +1 -1
  20. package/assets/esri/core/workers/chunks/27474b007988855bea9d.js +1 -0
  21. package/assets/esri/core/workers/chunks/281b89dbf5574fc642ae.js +1 -0
  22. package/assets/esri/core/workers/chunks/2c8fe9bc988c3c5760a5.js +1 -0
  23. package/assets/esri/core/workers/chunks/34b59d7099904dcb28b5.js +1 -0
  24. package/assets/esri/core/workers/chunks/357033117dfe61eb81ea.js +1 -0
  25. package/assets/esri/core/workers/chunks/{b2ebe4f6d100e15b512d.js → 37c03cfc19086ce631c6.js} +1 -1
  26. package/assets/esri/core/workers/chunks/386f86f961146f530aa7.js +1 -0
  27. package/assets/esri/core/workers/chunks/{e6165e17fbb07bfc40a1.js → 391e96192d1ec4e55ce2.js} +1 -1
  28. package/assets/esri/core/workers/chunks/44f0c3663b293afbd172.js +1 -0
  29. package/assets/esri/core/workers/chunks/483d5d8593d96d0f0b15.js +1 -0
  30. package/assets/esri/core/workers/chunks/{c959e0d1cf7dce0421b9.js → 48fa8aed6c24877b44c4.js} +1 -1
  31. package/assets/esri/core/workers/chunks/{438f0b5ae5c53ae4f06a.js → 4954fd86b48cc68b737c.js} +1 -1
  32. package/assets/esri/core/workers/chunks/49a1a633bb0d93764aae.js +1 -0
  33. package/assets/esri/core/workers/chunks/4ba6de8aa7e2960bad49.js +1 -0
  34. package/assets/esri/core/workers/chunks/4be35af7d6babbfe9d84.js +1 -0
  35. package/assets/esri/core/workers/chunks/5457962a70bd3c557a75.js +1 -0
  36. package/assets/esri/core/workers/chunks/57856b4a9b8784a69844.js +1 -0
  37. package/assets/esri/core/workers/chunks/{b9c177524b3e7de1ffd1.js → 5790d171072b3c7d108f.js} +1 -1
  38. package/assets/esri/core/workers/chunks/{5dfe1f8d520025e2118b.js → 57b349d1dbc0bed75b79.js} +1 -1
  39. package/assets/esri/core/workers/chunks/{97a28641b3b2fd31bea2.js → 5bcb3240b3c005e5fe72.js} +1 -1
  40. package/assets/esri/core/workers/chunks/5d11b97b667921d67ae7.js +1 -0
  41. package/assets/esri/core/workers/chunks/5dbe555a5a662ff3d9ce.js +1 -0
  42. package/assets/esri/core/workers/chunks/5ec98f4ddac707d0fbd1.js +1 -0
  43. package/assets/esri/core/workers/chunks/64b7e8d812ea8fcf269e.js +1 -0
  44. package/assets/esri/core/workers/chunks/{ba5eb394f098968c22d2.js → 655b55ac0cd533d7e9d7.js} +1 -1
  45. package/assets/esri/core/workers/chunks/{b0b036ad3ad3cd956747.js → 69fd99b7c76e9992ccf3.js} +1 -1
  46. package/assets/esri/core/workers/chunks/75d812955a473d0e8960.js +1 -0
  47. package/assets/esri/core/workers/chunks/7903a3e2e0faff0f86c0.js +1 -0
  48. package/assets/esri/core/workers/chunks/{cc146c57bbdac8029fd8.js → 7a5f5acfbd4ca1a5c1f3.js} +1 -1
  49. package/assets/esri/core/workers/chunks/83d00afae4406ec78bc9.js +1 -0
  50. package/assets/esri/core/workers/chunks/{434b16731c6a81f868ef.js → 85b1f36790df95b17659.js} +1 -1
  51. package/assets/esri/core/workers/chunks/89820b200ee44e678af5.js +1 -0
  52. package/assets/esri/core/workers/chunks/918bb7a7d901544a7367.js +1 -0
  53. package/assets/esri/core/workers/chunks/{94b8dbf859df71858d1c.js → 929c9b7cdab7c4ca3d87.js} +1 -1
  54. package/assets/esri/core/workers/chunks/949b2269457302ffc64b.js +1 -0
  55. package/assets/esri/core/workers/chunks/{601e697dc7414bda128a.js → 952980635afc7ec81804.js} +1 -1
  56. package/assets/esri/core/workers/chunks/9876a1bae350795fab36.js +1 -0
  57. package/assets/esri/core/workers/chunks/99619fcb772807c74f3b.js +1 -0
  58. package/assets/esri/core/workers/chunks/{010a71c2aa1b7681e191.js → 9d11f84e6c893b9d0019.js} +1 -1
  59. package/assets/esri/core/workers/chunks/a1930e4f035bc9aa1ae5.js +1 -0
  60. package/assets/esri/core/workers/chunks/a8692bffb76444c34760.js +1 -0
  61. package/assets/esri/core/workers/chunks/{f760a3e030b0f358a92a.js → aeaa1667c2d9f1b3366b.js} +1 -1
  62. package/assets/esri/core/workers/chunks/{3f343f792fd9f44d6f25.js → b3f5e91116112b0b612a.js} +1 -1
  63. package/assets/esri/core/workers/chunks/b97953694f42bfec1b3c.js +1 -0
  64. package/assets/esri/core/workers/chunks/b9e9cb354822c6d995a4.js +1 -0
  65. package/assets/esri/core/workers/chunks/ba762bcfd74af0bb8218.js +1 -0
  66. package/assets/esri/core/workers/chunks/{e4b84ca8ddfd48dd79b1.js → bac9fc90e6756e211160.js} +1 -1
  67. package/assets/esri/core/workers/chunks/{4c76146014dc15143ba3.js → be588873c16770ceb9ef.js} +1 -1
  68. package/assets/esri/core/workers/chunks/bf97a933ea3b220115e1.js +1 -0
  69. package/assets/esri/core/workers/chunks/bfedd6ebff817c9b31c0.js +1 -0
  70. package/assets/esri/core/workers/chunks/c093dff4592832ac0973.js +1 -0
  71. package/assets/esri/core/workers/chunks/c1135cb02ec46c491459.js +1 -0
  72. package/assets/esri/core/workers/chunks/{e4e2036373166c1d5cf5.js → c2253a9f29c1aabb2b75.js} +1 -1
  73. package/assets/esri/core/workers/chunks/d04fca5d46cca02500b7.js +1 -0
  74. package/assets/esri/core/workers/chunks/d08efbc349dd9f999497.js +1 -0
  75. package/assets/esri/core/workers/chunks/d1fe53b597351dc58305.js +1 -0
  76. package/assets/esri/core/workers/chunks/{a8b13fb804bb775e4967.js → db3c729ce0c0b2690dc9.js} +1 -1
  77. package/assets/esri/core/workers/chunks/dd13772a5e2eccc6a2bc.js +1 -0
  78. package/assets/esri/core/workers/chunks/dedc333a61081772ca7b.js +1 -0
  79. package/assets/esri/core/workers/chunks/{6f50a9647f026a8d4729.js → e0c8d61c7a85ce15499a.js} +1 -1
  80. package/assets/esri/core/workers/chunks/{199670a3a564ebe3bd79.js → e218bde41ffbcc5194f5.js} +1 -1
  81. package/assets/esri/core/workers/chunks/e21b211913aefde47e30.js +1 -0
  82. package/assets/esri/core/workers/chunks/e287f49184d076af17e2.js +1 -0
  83. package/assets/esri/core/workers/chunks/{bde1d5b0a7717350986e.js → e4019b63a1fe74e2c842.js} +1 -1
  84. package/assets/esri/core/workers/chunks/e8e775758b79c5a084c8.js +1 -0
  85. package/assets/esri/core/workers/chunks/e93dfdede0532a89ffa5.js +1 -0
  86. package/assets/esri/core/workers/chunks/ea595b0df5050eda2a13.js +1 -0
  87. package/assets/esri/core/workers/chunks/eb82ff10cef2bde6e57f.js +1 -0
  88. package/assets/esri/core/workers/chunks/ebc6f4764b82d4104c65.js +1 -0
  89. package/assets/esri/core/workers/chunks/{1305ef8717da6e902a55.js → ec10151a2a95e95a0bb5.js} +1 -1
  90. package/assets/esri/core/workers/chunks/eccba071ced2d922bb85.js +1 -0
  91. package/assets/esri/core/workers/chunks/ee6e0db58dc64410e687.js +1 -0
  92. package/assets/esri/core/workers/chunks/f0a9f161805fc7a30fc5.js +1 -0
  93. package/assets/esri/core/workers/chunks/f2124f4d0f2b8a91f0ea.js +1 -0
  94. package/assets/esri/core/workers/chunks/ff6abdc72076f3994659.js +981 -0
  95. package/assets/esri/libs/vxl/vxlLayer.wasm +0 -0
  96. package/assets/esri/themes/base/widgets/_Weather.scss +1 -1
  97. package/assets/esri/themes/dark/main.css +1 -1
  98. package/assets/esri/themes/dark-blue/main.css +1 -1
  99. package/assets/esri/themes/dark-green/main.css +1 -1
  100. package/assets/esri/themes/dark-purple/main.css +1 -1
  101. package/assets/esri/themes/dark-red/main.css +1 -1
  102. package/assets/esri/themes/light/main.css +1 -1
  103. package/assets/esri/themes/light/view.css +1 -1
  104. package/assets/esri/themes/light-blue/main.css +1 -1
  105. package/assets/esri/themes/light-green/main.css +1 -1
  106. package/assets/esri/themes/light-purple/main.css +1 -1
  107. package/assets/esri/themes/light-red/main.css +1 -1
  108. package/assets/esri/widgets/Weather/t9n/Weather.json +1 -1
  109. package/assets/esri/widgets/Weather/t9n/Weather_ar.json +1 -1
  110. package/assets/esri/widgets/Weather/t9n/Weather_bg.json +1 -1
  111. package/assets/esri/widgets/Weather/t9n/Weather_bs.json +1 -1
  112. package/assets/esri/widgets/Weather/t9n/Weather_ca.json +1 -1
  113. package/assets/esri/widgets/Weather/t9n/Weather_cs.json +1 -1
  114. package/assets/esri/widgets/Weather/t9n/Weather_da.json +1 -1
  115. package/assets/esri/widgets/Weather/t9n/Weather_de.json +1 -1
  116. package/assets/esri/widgets/Weather/t9n/Weather_el.json +1 -1
  117. package/assets/esri/widgets/Weather/t9n/Weather_en.json +1 -1
  118. package/assets/esri/widgets/Weather/t9n/Weather_es.json +1 -1
  119. package/assets/esri/widgets/Weather/t9n/Weather_et.json +1 -1
  120. package/assets/esri/widgets/Weather/t9n/Weather_fi.json +1 -1
  121. package/assets/esri/widgets/Weather/t9n/Weather_fr.json +1 -1
  122. package/assets/esri/widgets/Weather/t9n/Weather_he.json +1 -1
  123. package/assets/esri/widgets/Weather/t9n/Weather_hr.json +1 -1
  124. package/assets/esri/widgets/Weather/t9n/Weather_hu.json +1 -1
  125. package/assets/esri/widgets/Weather/t9n/Weather_id.json +1 -1
  126. package/assets/esri/widgets/Weather/t9n/Weather_it.json +1 -1
  127. package/assets/esri/widgets/Weather/t9n/Weather_ja.json +1 -1
  128. package/assets/esri/widgets/Weather/t9n/Weather_ko.json +1 -1
  129. package/assets/esri/widgets/Weather/t9n/Weather_lt.json +1 -1
  130. package/assets/esri/widgets/Weather/t9n/Weather_lv.json +1 -1
  131. package/assets/esri/widgets/Weather/t9n/Weather_nb.json +1 -1
  132. package/assets/esri/widgets/Weather/t9n/Weather_nl.json +1 -1
  133. package/assets/esri/widgets/Weather/t9n/Weather_pl.json +1 -1
  134. package/assets/esri/widgets/Weather/t9n/Weather_pt-BR.json +1 -1
  135. package/assets/esri/widgets/Weather/t9n/Weather_pt-PT.json +1 -1
  136. package/assets/esri/widgets/Weather/t9n/Weather_ro.json +1 -1
  137. package/assets/esri/widgets/Weather/t9n/Weather_ru.json +1 -1
  138. package/assets/esri/widgets/Weather/t9n/Weather_sk.json +1 -1
  139. package/assets/esri/widgets/Weather/t9n/Weather_sl.json +1 -1
  140. package/assets/esri/widgets/Weather/t9n/Weather_sr.json +1 -1
  141. package/assets/esri/widgets/Weather/t9n/Weather_sv.json +1 -1
  142. package/assets/esri/widgets/Weather/t9n/Weather_th.json +1 -1
  143. package/assets/esri/widgets/Weather/t9n/Weather_tr.json +1 -1
  144. package/assets/esri/widgets/Weather/t9n/Weather_uk.json +1 -1
  145. package/assets/esri/widgets/Weather/t9n/Weather_vi.json +1 -1
  146. package/assets/esri/widgets/Weather/t9n/Weather_zh-CN.json +1 -1
  147. package/assets/esri/widgets/Weather/t9n/Weather_zh-HK.json +1 -1
  148. package/assets/esri/widgets/Weather/t9n/Weather_zh-TW.json +1 -1
  149. package/chunks/BlendLayers.glsl.js +2 -2
  150. package/chunks/ChapmanAtmosphere.glsl.js +17 -17
  151. package/chunks/CheckerBoard.glsl.js +3 -3
  152. package/chunks/Clouds.glsl.js +2 -2
  153. package/chunks/CloudsComposition.glsl.js +1 -1
  154. package/chunks/ColorMaterial.glsl.js +12 -12
  155. package/chunks/ComponentShader.glsl.js +3 -3
  156. package/chunks/Compositing.glsl.js +1 -1
  157. package/chunks/DefaultMaterial.glsl.js +33 -33
  158. package/chunks/EdgeShaderProgram.glsl.js +7 -7
  159. package/chunks/Fog.glsl.js +10 -12
  160. package/chunks/HUDMaterial.glsl.js +2 -2
  161. package/chunks/HighlightComposition.glsl.js +5 -5
  162. package/chunks/ImageMaterial.glsl.js +6 -6
  163. package/chunks/LaserlinePath.glsl.js +8 -8
  164. package/chunks/LineCallout.glsl.js +6 -6
  165. package/chunks/MeasurementArrow.glsl.js +1 -1
  166. package/chunks/NativeLine.glsl.js +1 -1
  167. package/chunks/Path.glsl.js +5 -5
  168. package/chunks/Pattern.glsl.js +9 -9
  169. package/chunks/PointRenderer.glsl.js +14 -14
  170. package/chunks/Precipitation.glsl.js +91 -0
  171. package/chunks/RealisticTree.glsl.js +21 -21
  172. package/chunks/RibbonLine.glsl.js +11 -11
  173. package/chunks/SMAA.glsl.js +40 -40
  174. package/chunks/ShadedColorMaterial.glsl.js +12 -12
  175. package/chunks/ShadowCast.glsl.js +6 -6
  176. package/chunks/ShadowHighlight.glsl.js +4 -4
  177. package/chunks/SimpleAtmosphere.glsl.js +3 -3
  178. package/chunks/SlicePlaneMaterial.glsl.js +3 -3
  179. package/chunks/Stars.glsl.js +3 -3
  180. package/chunks/Terrain.glsl.js +11 -11
  181. package/chunks/TextureOnly.glsl.js +2 -2
  182. package/chunks/WaterSurface.glsl.js +5 -5
  183. package/chunks/boundedPlane.js +1 -1
  184. package/chunks/vxlLayer.js +1 -1
  185. package/core/accessorSupport/watch.js +1 -1
  186. package/core/clock.js +1 -1
  187. package/core/jsonMap.js +1 -1
  188. package/core/loadAll.js +1 -1
  189. package/core/promiseUtils.js +1 -1
  190. package/core/reactiveUtils.js +1 -1
  191. package/form/ExpressionInfo.js +1 -1
  192. package/geometry/support/frustum.js +1 -1
  193. package/geometry/support/plane.js +1 -1
  194. package/interfaces.d.ts +232 -38
  195. package/layers/VectorTileLayer.js +1 -1
  196. package/layers/graphics/controllers/I3SOnDemandController.js +1 -1
  197. package/layers/graphics/featureConversionUtils.js +1 -1
  198. package/layers/support/LayerContingentValuesCache.js +1 -1
  199. package/layers/support/TileInfo.js +1 -1
  200. package/package.json +1 -1
  201. package/rest/print.js +1 -1
  202. package/smartMapping/statistics/support/predominanceUtils.d.ts +4 -0
  203. package/support/arcadeOnDemand.js +1 -1
  204. package/support/featureFlags.js +1 -1
  205. package/support/revision.js +1 -1
  206. package/symbols/FillSymbol3DLayer.js +1 -1
  207. package/symbols/IconSymbol3DLayer.js +1 -1
  208. package/symbols/ObjectSymbol3DLayer.js +1 -1
  209. package/symbols/Symbol3D.js +1 -1
  210. package/symbols/WebStyleSymbol.js +1 -1
  211. package/symbols/cim/CIMSymbolRasterizer.js +1 -1
  212. package/symbols/support/IconSymbol3DLayerResource.js +1 -1
  213. package/symbols/support/ObjectSymbol3DLayerResource.js +1 -1
  214. package/symbols/support/Symbol3DAnchorPosition2D.js +1 -1
  215. package/symbols/support/Symbol3DAnchorPosition3D.js +1 -1
  216. package/symbols/support/Symbol3DFillMaterial.js +1 -1
  217. package/symbols/support/Symbol3DIconOutline.js +1 -1
  218. package/symbols/support/Symbol3DOutline.js +1 -1
  219. package/symbols/support/Thumbnail.js +1 -1
  220. package/symbols/support/webStyleSymbolUtils.js +1 -1
  221. package/views/2d/MapViewConstraints.js +1 -1
  222. package/views/2d/engine/vectorTiles/SchemaHelper.js +1 -1
  223. package/views/2d/viewpointUtils.js +1 -1
  224. package/views/3d/environment/ChapmanAtmosphere.glsl.js +1 -1
  225. package/views/3d/environment/ChapmanAtmosphere.js +1 -1
  226. package/views/3d/environment/CloudsComposition.glsl.js +1 -1
  227. package/views/3d/environment/CloudsGenerator.js +1 -1
  228. package/views/3d/environment/CloudsPresets.js +1 -1
  229. package/views/3d/environment/EnvironmentRenderer.js +1 -1
  230. package/views/3d/environment/Fog.glsl.js +1 -1
  231. package/views/3d/environment/Fog.js +1 -1
  232. package/views/3d/environment/PanoramicAtmosphere.js +1 -1
  233. package/views/3d/environment/Precipitation.glsl.js +5 -0
  234. package/views/3d/environment/Precipitation.js +5 -0
  235. package/views/3d/environment/PrecipitationTechnique.js +5 -0
  236. package/views/3d/environment/RainyWeather.js +1 -1
  237. package/views/3d/environment/SimpleAtmosphere.glsl.js +1 -1
  238. package/views/3d/environment/SimpleAtmosphere.js +1 -1
  239. package/views/3d/environment/SnowyWeather.js +5 -0
  240. package/views/3d/environment/Stars.glsl.js +1 -1
  241. package/views/3d/environment/Stars.js +1 -1
  242. package/views/3d/environment/weather.js +1 -1
  243. package/views/3d/interactive/analysisTools/slice/SliceTool.js +1 -1
  244. package/views/3d/interactive/analysisTools/slice/sliceToolUtils.js +1 -1
  245. package/views/3d/interactive/visualElements/ExtendedLineVisualElement.js +1 -1
  246. package/views/3d/interactive/visualElements/MeasurementAreaVisualElement.js +1 -1
  247. package/views/3d/interactive/visualElements/OutlineVisualElement.js +1 -1
  248. package/views/3d/interactive/visualElements/ParallelLineVisualElement.js +1 -1
  249. package/views/3d/interactive/visualElements/PointVisualElement.js +1 -1
  250. package/views/3d/interactive/visualElements/RightAngleQuadVisualElement.js +1 -1
  251. package/views/3d/layers/FeatureLayerViewBase3D.js +1 -1
  252. package/views/3d/layers/FeatureLikeLayerView3D.js +1 -1
  253. package/views/3d/layers/GraphicsLayerView3D.js +1 -1
  254. package/views/3d/layers/GraphicsView3D.js +1 -1
  255. package/views/3d/layers/I3SMeshView3D.js +1 -1
  256. package/views/3d/layers/VectorTileLayerView3D.js +1 -1
  257. package/views/3d/layers/graphics/Deconflictor.js +1 -1
  258. package/views/3d/layers/graphics/ElevationAligners.js +1 -1
  259. package/views/3d/layers/graphics/Graphics3DExtrudeSymbolLayer.js +1 -1
  260. package/views/3d/layers/graphics/Graphics3DFeatureProcessor.js +1 -1
  261. package/views/3d/layers/graphics/Graphics3DLineCalloutSymbolLayer.js +1 -1
  262. package/views/3d/layers/graphics/Graphics3DMeshFillSymbolLayer.js +1 -1
  263. package/views/3d/layers/graphics/Graphics3DObjectSymbolLayer.js +1 -1
  264. package/views/3d/layers/graphics/Graphics3DPolygonFillSymbolLayer.js +1 -1
  265. package/views/3d/layers/graphics/GraphicsProcessor.js +1 -1
  266. package/views/3d/layers/graphics/graphicUtils.js +1 -1
  267. package/views/3d/layers/graphics/lineUtils.js +1 -1
  268. package/views/3d/layers/graphics/objectResourceUtils.js +1 -1
  269. package/views/3d/layers/graphics/polygonUtils.js +1 -1
  270. package/views/3d/layers/graphics/symbolComplexity.js +1 -1
  271. package/views/3d/layers/i3s/I3SBinaryReader.js +1 -1
  272. package/views/3d/layers/i3s/PointRenderer.js +1 -1
  273. package/views/3d/layers/support/HeatmapFeatureProcessor.js +5 -0
  274. package/views/3d/layers/support/overlayImageUtils.js +1 -1
  275. package/views/3d/layers/support/patternUtils.js +1 -1
  276. package/views/3d/state/controllers/local/PinchAndPanController.js +1 -1
  277. package/views/3d/support/FrustumExtentIntersection.js +1 -1
  278. package/views/3d/support/LaserLineRenderer.js +1 -1
  279. package/views/3d/support/LaserlinePathData.js +1 -1
  280. package/views/3d/support/sunUtils.js +1 -1
  281. package/views/3d/terrain/OverlayRenderer.js +1 -1
  282. package/views/3d/terrain/PatchGeometryFactory.js +1 -1
  283. package/views/3d/terrain/TerrainRenderer.js +1 -1
  284. package/views/3d/terrain/TerrainSurface.js +1 -1
  285. package/views/3d/terrain/Tile.js +1 -1
  286. package/views/3d/terrain/terrainUtils.js +1 -1
  287. package/views/3d/terrain/tileUtils.js +1 -1
  288. package/views/3d/webgl-engine/collections/Component/ComponentObjectCollection.js +1 -1
  289. package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterial.js +1 -1
  290. package/views/3d/webgl-engine/collections/Component/Material/ComponentTechnique.js +1 -1
  291. package/views/3d/webgl-engine/collections/Component/Material/shader/ComponentData.glsl.js +10 -10
  292. package/views/3d/webgl-engine/collections/Component/Material/shader/ComponentShader.glsl.js +1 -1
  293. package/views/3d/webgl-engine/collections/Component/SourceGeometry.js +1 -1
  294. package/views/3d/webgl-engine/core/renderPasses/AllRenderPasses.js +1 -1
  295. package/views/3d/webgl-engine/core/renderPasses/RenderPassManager.js +1 -1
  296. package/views/3d/webgl-engine/core/shaderLibrary/ForwardLinearDepth.glsl.js +2 -2
  297. package/views/3d/webgl-engine/core/shaderLibrary/ScreenSizeScaling.glsl.js +2 -2
  298. package/views/3d/webgl-engine/core/shaderLibrary/ScreenSpacePass.js +2 -2
  299. package/views/3d/webgl-engine/core/shaderLibrary/attributes/InstancedDoublePrecision.glsl.js +2 -2
  300. package/views/3d/webgl-engine/core/shaderLibrary/attributes/NormalAttribute.glsl.js +4 -4
  301. package/views/3d/webgl-engine/core/shaderLibrary/attributes/PathVertexPosition.glsl.js +1 -1
  302. package/views/3d/webgl-engine/core/shaderLibrary/attributes/PositionAttribute.glsl.js +1 -1
  303. package/views/3d/webgl-engine/core/shaderLibrary/attributes/RibbonVertexPosition.glsl.js +1 -1
  304. package/views/3d/webgl-engine/core/shaderLibrary/attributes/SymbolColor.glsl.js +1 -1
  305. package/views/3d/webgl-engine/core/shaderLibrary/attributes/TextureCoordinateAttribute.glsl.js +3 -3
  306. package/views/3d/webgl-engine/core/shaderLibrary/attributes/VertexColor.glsl.js +1 -1
  307. package/views/3d/webgl-engine/core/shaderLibrary/attributes/VertexNormal.glsl.js +6 -6
  308. package/views/3d/webgl-engine/core/shaderLibrary/attributes/VertexPosition.glsl.js +12 -12
  309. package/views/3d/webgl-engine/core/shaderLibrary/attributes/VertexTextureCoordinates.glsl.js +4 -4
  310. package/views/3d/webgl-engine/core/shaderLibrary/attributes/VerticalOffset.glsl.js +1 -1
  311. package/views/3d/webgl-engine/core/shaderLibrary/default/DefaultMaterialAuxiliaryPasses.glsl.js +16 -16
  312. package/views/3d/webgl-engine/core/shaderLibrary/default/RealisticTree.glsl.js +1 -1
  313. package/views/3d/webgl-engine/core/shaderLibrary/hud/HUD.glsl.js +5 -5
  314. package/views/3d/webgl-engine/core/shaderLibrary/hud/HUDOcclusionPass.glsl.js +3 -3
  315. package/views/3d/webgl-engine/core/shaderLibrary/raster/BasicGrid.glsl.js +2 -2
  316. package/views/3d/webgl-engine/core/shaderLibrary/shading/ComputeMaterialColor.glsl.js +6 -6
  317. package/views/3d/webgl-engine/core/shaderLibrary/shading/ComputeNormalTexture.glsl.js +2 -2
  318. package/views/3d/webgl-engine/core/shaderLibrary/shading/ComputeShadingNormal.glsl.js +10 -11
  319. package/views/3d/webgl-engine/core/shaderLibrary/shading/LineStipple.glsl.js +2 -2
  320. package/views/3d/webgl-engine/core/shaderLibrary/shading/MultipassGeometryTest.glsl.js +2 -2
  321. package/views/3d/webgl-engine/core/shaderLibrary/shading/MultipassTerrainTest.glsl.js +2 -2
  322. package/views/3d/webgl-engine/core/shaderLibrary/shading/Normals.glsl.js +6 -6
  323. package/views/3d/webgl-engine/core/shaderLibrary/shading/ReadBaseColorTexture.glsl.js +4 -4
  324. package/views/3d/webgl-engine/core/shaderLibrary/shading/ReadShadowMap.glsl.js +6 -6
  325. package/views/3d/webgl-engine/core/shaderLibrary/shading/Reprojection.glsl.js +4 -4
  326. package/views/3d/webgl-engine/core/shaderLibrary/shading/ScreenSpaceReflections.glsl.js +5 -5
  327. package/views/3d/webgl-engine/core/shaderLibrary/shading/VisualVariables.glsl.js +1 -1
  328. package/views/3d/webgl-engine/core/shaderLibrary/shading/Water.glsl.js +10 -10
  329. package/views/3d/webgl-engine/core/shaderLibrary/terrain/Terrain.glsl.js +1 -1
  330. package/views/3d/webgl-engine/core/shaderLibrary/util/BlendLayers.glsl.js +1 -1
  331. package/views/3d/webgl-engine/core/shaderLibrary/util/CloudsParallaxShading.glsl.js +4 -4
  332. package/views/3d/webgl-engine/core/shaderLibrary/util/View.glsl.js +1 -1
  333. package/views/3d/webgl-engine/lib/Camera.js +1 -1
  334. package/views/3d/webgl-engine/lib/DefaultVertexAttributeLocations.js +1 -1
  335. package/views/3d/webgl-engine/lib/DefaultVertexBufferLayouts.js +1 -1
  336. package/views/3d/webgl-engine/lib/Geometry.js +1 -1
  337. package/views/3d/webgl-engine/lib/GeometryUtil.js +1 -1
  338. package/views/3d/webgl-engine/lib/GridLocalOriginFactory.js +1 -1
  339. package/views/3d/webgl-engine/lib/MagnifierHelper.js +1 -1
  340. package/views/3d/webgl-engine/lib/Material.js +1 -1
  341. package/views/3d/webgl-engine/lib/RenderGeometry.js +1 -1
  342. package/views/3d/webgl-engine/lib/RenderPluginManager.js +1 -1
  343. package/views/3d/webgl-engine/lib/Renderer.js +1 -1
  344. package/views/3d/webgl-engine/lib/SSAOHelper.js +1 -1
  345. package/views/3d/webgl-engine/lib/ShadowAccumulator.js +1 -1
  346. package/views/3d/webgl-engine/lib/ShadowMap.js +1 -1
  347. package/views/3d/webgl-engine/lib/SmaaRenderPass.js +1 -1
  348. package/views/3d/webgl-engine/lib/TextTextureAtlas.js +1 -1
  349. package/views/3d/webgl-engine/lib/Texture.js +1 -1
  350. package/views/3d/webgl-engine/lib/TextureUniformName.js +4 -0
  351. package/views/3d/webgl-engine/lib/UniformName.js +4 -0
  352. package/views/3d/webgl-engine/lib/VertexAttribute.js +5 -0
  353. package/views/3d/webgl-engine/lib/basicInterfaces.js +1 -1
  354. package/views/3d/webgl-engine/lib/depthRangeUtils.js +1 -1
  355. package/views/3d/webgl-engine/lib/edgeRendering/EdgeRenderer.js +1 -1
  356. package/views/3d/webgl-engine/lib/edgeRendering/EdgeShaderTechnique.js +1 -1
  357. package/views/3d/webgl-engine/lib/edgeRendering/EdgeView.js +1 -1
  358. package/views/3d/webgl-engine/lib/edgeRendering/bufferLayouts.js +1 -1
  359. package/views/3d/webgl-engine/lib/lodRendering/InstanceData.js +1 -1
  360. package/views/3d/webgl-engine/lib/lodRendering/RenderInstanceData.js +1 -1
  361. package/views/3d/webgl-engine/lib/pathGeometryUtils.js +1 -1
  362. package/views/3d/webgl-engine/materials/CheckerBoardMaterial.js +1 -1
  363. package/views/3d/webgl-engine/materials/ColorMaterial.js +1 -1
  364. package/views/3d/webgl-engine/materials/DefaultMaterial.js +1 -1
  365. package/views/3d/webgl-engine/materials/HUDMaterial.js +1 -1
  366. package/views/3d/webgl-engine/materials/ImageMaterial.js +1 -1
  367. package/views/3d/webgl-engine/materials/LineCalloutMaterial.js +1 -1
  368. package/views/3d/webgl-engine/materials/MeasurementArrowMaterial.js +1 -1
  369. package/views/3d/webgl-engine/materials/NativeLineMaterial.js +1 -1
  370. package/views/3d/webgl-engine/materials/PathMaterial.js +1 -1
  371. package/views/3d/webgl-engine/materials/PathTechnique.js +1 -1
  372. package/views/3d/webgl-engine/materials/PatternMaterial.js +1 -1
  373. package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
  374. package/views/3d/webgl-engine/materials/ShadedColorMaterial.js +1 -1
  375. package/views/3d/webgl-engine/materials/SlicePlaneMaterial.js +1 -1
  376. package/views/3d/webgl-engine/materials/VisualVariableMaterialParameters.js +1 -1
  377. package/views/3d/webgl-engine/materials/WaterTechnique.js +1 -1
  378. package/views/3d/webgl-engine/materials/internal/DefaultBufferWriter.js +1 -1
  379. package/views/3d/webgl-engine/materials/internal/MaterialUtil.js +1 -1
  380. package/views/3d/webgl-engine/materials/internal/bufferWriterUtils.js +1 -1
  381. package/views/3d/webgl-engine/materials/internal/waterMaterialUtils.js +1 -1
  382. package/views/3d/webgl-engine/shaders/CheckerBoard.glsl.js +1 -1
  383. package/views/3d/webgl-engine/shaders/CheckerBoardTechnique.js +1 -1
  384. package/views/3d/webgl-engine/shaders/ColorMaterial.glsl.js +1 -1
  385. package/views/3d/webgl-engine/shaders/ColorMaterialTechnique.js +1 -1
  386. package/views/3d/webgl-engine/shaders/DefaultMaterial.glsl.js +1 -1
  387. package/views/3d/webgl-engine/shaders/DefaultMaterialTechnique.js +1 -1
  388. package/views/3d/webgl-engine/shaders/HUDMaterial.glsl.js +1 -1
  389. package/views/3d/webgl-engine/shaders/HUDMaterialTechnique.js +1 -1
  390. package/views/3d/webgl-engine/shaders/HighlightComposition.glsl.js +1 -1
  391. package/views/3d/webgl-engine/shaders/HighlightTechnique.js +1 -1
  392. package/views/3d/webgl-engine/shaders/ImageMaterial.glsl.js +1 -1
  393. package/views/3d/webgl-engine/shaders/ImageMaterialTechnique.js +1 -1
  394. package/views/3d/webgl-engine/shaders/LaserlinePath.glsl.js +1 -1
  395. package/views/3d/webgl-engine/shaders/LaserlinePathTechnique.js +1 -1
  396. package/views/3d/webgl-engine/shaders/LineCallout.glsl.js +1 -1
  397. package/views/3d/webgl-engine/shaders/LineCalloutTechnique.js +1 -1
  398. package/views/3d/webgl-engine/shaders/Magnifier.glsl.js +1 -1
  399. package/views/3d/webgl-engine/shaders/MeasurementArrow.glsl.js +1 -1
  400. package/views/3d/webgl-engine/shaders/NativeLine.glsl.js +1 -1
  401. package/views/3d/webgl-engine/shaders/Pattern.glsl.js +1 -1
  402. package/views/3d/webgl-engine/shaders/PatternTechnique.js +1 -1
  403. package/views/3d/webgl-engine/shaders/PointRenderer.glsl.js +1 -1
  404. package/views/3d/webgl-engine/shaders/RealisticTreeTechnique.js +1 -1
  405. package/views/3d/webgl-engine/shaders/RibbonLine.glsl.js +1 -1
  406. package/views/3d/webgl-engine/shaders/RibbonLineTechnique.js +1 -1
  407. package/views/3d/webgl-engine/shaders/SMAA.glsl.js +1 -1
  408. package/views/3d/webgl-engine/shaders/ShadedColorMaterial.glsl.js +1 -1
  409. package/views/3d/webgl-engine/shaders/ShadedColorMaterialTechnique.js +1 -1
  410. package/views/3d/webgl-engine/shaders/ShadowCastTechnique.js +1 -1
  411. package/views/3d/webgl-engine/shaders/ShadowHighlightTechnique.js +1 -1
  412. package/views/3d/webgl-engine/shaders/SlicePlaneMaterial.glsl.js +1 -1
  413. package/views/3d/webgl-engine/shaders/WaterSurface.glsl.js +1 -1
  414. package/views/3d/webgl-engine/shaders/sources/edgeRenderer/AdjustProjectedPosition.glsl.js +10 -10
  415. package/views/3d/webgl-engine/shaders/sources/edgeRenderer/DiscardShortEdges.glsl.js +1 -1
  416. package/views/3d/webgl-engine/shaders/sources/edgeRenderer/EdgeShaderProgram.glsl.js +1 -1
  417. package/views/3d/webgl-engine/shaders/sources/edgeRenderer/EdgeUtil.glsl.js +21 -21
  418. package/views/3d/webgl-engine/shaders/sources/edgeRenderer/LineAmplitude.glsl.js +6 -6
  419. package/views/3d/webgl-engine/shaders/sources/edgeRenderer/LineOffset.glsl.js +13 -13
  420. package/views/3d/webgl-engine/shaders/sources/edgeRenderer/UnpackAttributes.glsl.js +6 -6
  421. package/views/MapView.js +1 -1
  422. package/views/SceneView.js +1 -1
  423. package/views/View.js +1 -1
  424. package/views/input/recognizers/DoubleTapDrag.js +1 -1
  425. package/views/input/recognizers/ImmediateDoubleClick.js +1 -1
  426. package/views/input/recognizers/PointerClickHoldAndDrag.js +1 -1
  427. package/views/input/recognizers/SingleAndDoubleClick.js +1 -1
  428. package/views/interactive/editGeometry/operations/OffsetEdgeVertex.js +1 -1
  429. package/views/support/DefaultsFromMap.js +1 -1
  430. package/views/support/WatchUpdatingTracking.js +1 -1
  431. package/views/support/projectionUtils.js +5 -0
  432. package/views/webgl/BufferObject.js +1 -1
  433. package/views/webgl/InstanceCounter.js +1 -1
  434. package/views/webgl/Program.js +1 -1
  435. package/webdoc/support/{Thumbnail.js → SlideThumbnail.js} +1 -1
  436. package/webmap/Bookmark.js +1 -1
  437. package/webmap/Version.js +1 -1
  438. package/webscene/Slide.js +1 -1
  439. package/webscene/Version.js +1 -1
  440. package/webscene/support/SlideVisibleLayer.js +1 -1
  441. package/widgets/AreaMeasurement3D/AreaMeasurement3DViewModel.js +1 -1
  442. package/widgets/BasemapGallery/BasemapGalleryViewModel.js +1 -1
  443. package/widgets/BasemapGallery/support/BasemapGalleryItem.js +1 -1
  444. package/widgets/BasemapGallery/support/basemapCompatibilityUtils.js +1 -1
  445. package/widgets/BasemapGallery.js +1 -1
  446. package/widgets/Bookmarks/BookmarksViewModel.js +1 -1
  447. package/widgets/Bookmarks.js +1 -1
  448. package/widgets/DirectLineMeasurement3D/DirectLineMeasurement3DViewModel.js +1 -1
  449. package/widgets/FeatureTemplates/FeatureTemplatesViewModel.js +1 -1
  450. package/widgets/LineOfSight/LineOfSightViewModel.js +1 -1
  451. package/widgets/Search/support/locatorUtils.js +1 -1
  452. package/widgets/Search.js +1 -1
  453. package/widgets/Slice/SliceViewModel.js +1 -1
  454. package/widgets/TimeSlider.js +1 -1
  455. package/widgets/Weather/WeatherViewModel.js +1 -1
  456. package/widgets/Weather/css.js +1 -1
  457. package/widgets/Weather/enums.js +5 -0
  458. package/widgets/Weather.js +1 -1
  459. package/widgets/support/InteractiveToolViewModel.js +1 -1
  460. package/assets/esri/core/workers/chunks/00c5bb5eecb0e89266df.js +0 -1
  461. package/assets/esri/core/workers/chunks/021a37e2b191298e80b7.js +0 -1
  462. package/assets/esri/core/workers/chunks/1370c92c40fd6271553c.js +0 -1
  463. package/assets/esri/core/workers/chunks/14bef72154b3a19561a7.js +0 -1
  464. package/assets/esri/core/workers/chunks/18668dc45eb9e35530df.js +0 -1
  465. package/assets/esri/core/workers/chunks/1e4d37c2b9dc83d20a11.js +0 -1
  466. package/assets/esri/core/workers/chunks/1fbcc8424452d0256bd6.js +0 -1
  467. package/assets/esri/core/workers/chunks/208a7e24e19fc5633dd7.js +0 -1
  468. package/assets/esri/core/workers/chunks/22b09e276c9b9f22f0f8.js +0 -1
  469. package/assets/esri/core/workers/chunks/23b15e7c2f96d260e16c.js +0 -1
  470. package/assets/esri/core/workers/chunks/25a3e9bc0b4c7e0d3165.js +0 -1
  471. package/assets/esri/core/workers/chunks/2792ca40f1e92849247c.js +0 -1
  472. package/assets/esri/core/workers/chunks/2a96f1bba9ce6883e5e0.js +0 -1
  473. package/assets/esri/core/workers/chunks/3231ee3e090bb4cac3fc.js +0 -1
  474. package/assets/esri/core/workers/chunks/36a3f6fb4d1d18fcb642.js +0 -1
  475. package/assets/esri/core/workers/chunks/36e250278b5622ccf068.js +0 -1
  476. package/assets/esri/core/workers/chunks/395ba088d4864588ff66.js +0 -1
  477. package/assets/esri/core/workers/chunks/3aa4194dc5497c57647f.js +0 -1
  478. package/assets/esri/core/workers/chunks/3cc77692b2eee27b9c9e.js +0 -1
  479. package/assets/esri/core/workers/chunks/40a1e713f63ec77110c0.js +0 -1
  480. package/assets/esri/core/workers/chunks/4385a268c2a64281d1c1.js +0 -1
  481. package/assets/esri/core/workers/chunks/46b4bb66a54bbd8e2e57.js +0 -1
  482. package/assets/esri/core/workers/chunks/4bfbf5a34c9207fdcf44.js +0 -1
  483. package/assets/esri/core/workers/chunks/5a4a5585ec8027079f32.js +0 -1
  484. package/assets/esri/core/workers/chunks/5d4863a92b03bebc1b54.js +0 -1
  485. package/assets/esri/core/workers/chunks/5d991b74d958005c26c4.js +0 -1
  486. package/assets/esri/core/workers/chunks/634b5ccd7a3ac67f855d.js +0 -1
  487. package/assets/esri/core/workers/chunks/662d13f68cf3ec92439b.js +0 -1
  488. package/assets/esri/core/workers/chunks/663ad15b86936eb06b69.js +0 -1
  489. package/assets/esri/core/workers/chunks/7bc5cc5dbf1b7b70ddac.js +0 -1
  490. package/assets/esri/core/workers/chunks/7d661129a0d8c466eeec.js +0 -1
  491. package/assets/esri/core/workers/chunks/8070972c0efb78523b68.js +0 -1
  492. package/assets/esri/core/workers/chunks/85e27fd949475f9a6bbc.js +0 -1
  493. package/assets/esri/core/workers/chunks/8b6ab6202a40fe622833.js +0 -1
  494. package/assets/esri/core/workers/chunks/96ab518eb6ba11333dee.js +0 -1
  495. package/assets/esri/core/workers/chunks/9796d54ff12b6429164a.js +0 -1
  496. package/assets/esri/core/workers/chunks/98986e6601b0366376b4.js +0 -1
  497. package/assets/esri/core/workers/chunks/9cdcf9309d6feda70185.js +0 -1
  498. package/assets/esri/core/workers/chunks/aa861b8eae6c85f3dad4.js +0 -1
  499. package/assets/esri/core/workers/chunks/aace7e1fef256bb961c9.js +0 -1
  500. package/assets/esri/core/workers/chunks/ad081d8e49e7f90c3c26.js +0 -1
  501. package/assets/esri/core/workers/chunks/af5694b4d278cf1db2d9.js +0 -1
  502. package/assets/esri/core/workers/chunks/afbb4f802ca5774f0326.js +0 -1
  503. package/assets/esri/core/workers/chunks/b2c5f92e3d7606297ca9.js +0 -1
  504. package/assets/esri/core/workers/chunks/b8316c6469a543029bc6.js +0 -1
  505. package/assets/esri/core/workers/chunks/ba615f118a3a8970ef25.js +0 -1
  506. package/assets/esri/core/workers/chunks/ba6654a885be4b7a43f0.js +0 -1
  507. package/assets/esri/core/workers/chunks/bf0a65b4be31959f921d.js +0 -1
  508. package/assets/esri/core/workers/chunks/c11474b702dfb94e8e87.js +0 -1
  509. package/assets/esri/core/workers/chunks/c890c7fca27170e3341f.js +0 -1
  510. package/assets/esri/core/workers/chunks/c976785f2391c77d8a30.js +0 -1
  511. package/assets/esri/core/workers/chunks/ca2f5faa01d99c21ec14.js +0 -1
  512. package/assets/esri/core/workers/chunks/cef4af64860ebbfc1c47.js +0 -1
  513. package/assets/esri/core/workers/chunks/cfbffa429d88e7709c3f.js +0 -1
  514. package/assets/esri/core/workers/chunks/d24c4fbc567486b1188f.js +0 -1
  515. package/assets/esri/core/workers/chunks/de6cff7b6cbbf99b20d1.js +0 -981
  516. package/assets/esri/core/workers/chunks/e4f93c55eaefab4192b5.js +0 -1
  517. package/assets/esri/core/workers/chunks/e59764ee8cf25d4f74e2.js +0 -1
  518. package/assets/esri/core/workers/chunks/ec89466f76d0ba22525e.js +0 -1
  519. package/assets/esri/core/workers/chunks/ee45618c45806ab654cb.js +0 -1
  520. package/assets/esri/core/workers/chunks/f467c8f1fce22f6f599c.js +0 -1
  521. package/assets/esri/core/workers/chunks/f4baa5ea2e42b1317941.js +0 -1
  522. package/assets/esri/core/workers/chunks/face43cf5abcd2f5bd9d.js +0 -1
  523. package/assets/esri/core/workers/chunks/ffaf091c6023225cf5aa.js +0 -1
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4889,3172],{80539:(e,t,i)=>{i.d(t,{Z:()=>F});var r,s=i(43697),o=i(3894),n=i(32448),a=i(22974),l=i(70586),u=i(71143);!function(e){e[e.ADD=1]="ADD",e[e.REMOVE=2]="REMOVE",e[e.MOVE=4]="MOVE"}(r||(r={}));var p,d=i(1654),c=i(5600),m=i(75215),h=i(52421),b=i(52011),y=i(58971),f=i(39020);class v{constructor(){this._observers=[]}observe(e){return this._observers.includes(e)||this._observers.push(e),new f.X(this._observers,e)}notify(){const e=this._observers.slice();for(let t=0;t<e.length;++t){const i=e[t];i.onInvalidated(),i.onCommitted()}}}const g=new u.Z(class{constructor(){this.target=null,this.cancellable=!1,this.defaultPrevented=!1,this.item=void 0,this.type=void 0}preventDefault(){this.cancellable&&(this.defaultPrevented=!0)}reset(e){this.defaultPrevented=!1,this.item=e}},void 0,(e=>{e.item=null,e.target=null,e.defaultPrevented=!1,e.cancellable=!1})),C=()=>{};function T(e){return e?e instanceof D?e.toArray():e.length?Array.prototype.slice.apply(e):[]:[]}function S(e){if(e&&e.length)return e[0]}function _(e,t,i,r){const s=Math.min(e.length-i,t.length-r);let o=0;for(;o<s&&e[i+o]===t[r+o];)o++;return o}function w(e,t,i,r){t&&t.forEach(((t,s,o)=>{e.push(t),w(e,i.call(r,t,s,o),i,r)}))}const O=new Set,N=new Set,I=new Set,x=new Map;let E=0,D=p=class extends n.Z.EventedAccessor{constructor(e){super(e),this._chgListeners=[],this._notifications=null,this._timer=null,this._observable=new v,this.length=0,this._items=[],Object.defineProperty(this,"uid",{value:E++})}static isCollection(e){return null!=e&&e instanceof p}normalizeCtorArgs(e){return e?Array.isArray(e)||e instanceof p?{items:e}:e:{}}destroy(){this.removeAll()}*[Symbol.iterator](){yield*this.items}get items(){return(0,y.it)(this._observable),this._items}set items(e){this._emitBeforeChanges(r.ADD)||(this._splice(0,this.length,T(e)),this._emitAfterChanges(r.ADD))}hasEventListener(e){return"change"===e?this._chgListeners.length>0:this._emitter.hasEventListener(e)}on(e,t){if("change"===e){const e=this._chgListeners,i={removed:!1,callback:t};return e.push(i),this._notifications&&this._notifications.push({listeners:e.slice(),items:this._items.slice(),changes:[]}),{remove(){this.remove=C,i.removed=!0,e.splice(e.indexOf(i),1)}}}return this._emitter.on(e,t)}once(e,t){const i=this.on(e,t);return{remove(){i.remove()}}}add(e,t){if((0,y.it)(this._observable),this._emitBeforeChanges(r.ADD))return this;const i=this.getNextIndex(null!=t?t:null);return this._splice(i,0,[e]),this._emitAfterChanges(r.ADD),this}addMany(e,t=this._items.length){if((0,y.it)(this._observable),!e||!e.length)return this;if(this._emitBeforeChanges(r.ADD))return this;const i=this.getNextIndex(t);return this._splice(i,0,T(e)),this._emitAfterChanges(r.ADD),this}removeAll(){if((0,y.it)(this._observable),!this.length||this._emitBeforeChanges(r.REMOVE))return[];const e=this._splice(0,this.length)||[];return this._emitAfterChanges(r.REMOVE),e}clone(){return(0,y.it)(this._observable),this._createNewInstance({items:this._items.map(a.d9)})}concat(...e){(0,y.it)(this._observable);const t=e.map(T);return this._createNewInstance({items:this._items.concat(...t)})}drain(e,t){if((0,y.it)(this._observable),!this.length||this._emitBeforeChanges(r.REMOVE))return;const i=(0,l.j0)(this._splice(0,this.length)),s=i.length;for(let r=0;r<s;r++)e.call(t,i[r],r,i);this._emitAfterChanges(r.REMOVE)}every(e,t){return(0,y.it)(this._observable),this._items.every(e,t)}filter(e,t){let i;return(0,y.it)(this._observable),i=2===arguments.length?this._items.filter(e,t):this._items.filter(e),this._createNewInstance({items:i})}find(e,t){return(0,y.it)(this._observable),this._items.find(e,t)}findIndex(e,t){return(0,y.it)(this._observable),this._items.findIndex(e,t)}flatten(e,t){(0,y.it)(this._observable);const i=[];return w(i,this,e,t),new p(i)}forEach(e,t){return(0,y.it)(this._observable),this._items.forEach(e,t)}getItemAt(e){return(0,y.it)(this._observable),this._items[e]}getNextIndex(e){(0,y.it)(this._observable);const t=this.length;return(e=null==e?t:e)<0?e=0:e>t&&(e=t),e}includes(e,t=0){return(0,y.it)(this._observable),this._items.includes(e,t)}indexOf(e,t=0){return(0,y.it)(this._observable),this._items.indexOf(e,t)}join(e=","){return(0,y.it)(this._observable),this._items.join(e)}lastIndexOf(e,t=this.length-1){return(0,y.it)(this._observable),this._items.lastIndexOf(e,t)}map(e,t){(0,y.it)(this._observable);const i=this._items.map(e,t);return new p({items:i})}reorder(e,t=this.length-1){(0,y.it)(this._observable);const i=this.indexOf(e);if(-1!==i){if(t<0?t=0:t>=this.length&&(t=this.length-1),i!==t){if(this._emitBeforeChanges(r.MOVE))return e;this._splice(i,1),this._splice(t,0,[e]),this._emitAfterChanges(r.MOVE)}return e}}pop(){if((0,y.it)(this._observable),!this.length||this._emitBeforeChanges(r.REMOVE))return;const e=S(this._splice(this.length-1,1));return this._emitAfterChanges(r.REMOVE),e}push(...e){return(0,y.it)(this._observable),this._emitBeforeChanges(r.ADD)||(this._splice(this.length,0,e),this._emitAfterChanges(r.ADD)),this.length}reduce(e,t){(0,y.it)(this._observable);const i=this._items;return 2===arguments.length?i.reduce(e,t):i.reduce(e)}reduceRight(e,t){(0,y.it)(this._observable);const i=this._items;return 2===arguments.length?i.reduceRight(e,t):i.reduceRight(e)}remove(e){return(0,y.it)(this._observable),this.removeAt(this.indexOf(e))}removeAt(e){if((0,y.it)(this._observable),e<0||e>=this.length||this._emitBeforeChanges(r.REMOVE))return;const t=S(this._splice(e,1));return this._emitAfterChanges(r.REMOVE),t}removeMany(e){if((0,y.it)(this._observable),!e||!e.length||this._emitBeforeChanges(r.REMOVE))return[];const t=e instanceof p?e.toArray():e,i=this._items,s=[],o=t.length;for(let e=0;e<o;e++){const r=t[e],o=i.indexOf(r);if(o>-1){const r=1+_(t,i,e+1,o+1),n=this._splice(o,r);n&&n.length>0&&s.push.apply(s,n),e+=r-1}}return this._emitAfterChanges(r.REMOVE),s}reverse(){if((0,y.it)(this._observable),this._emitBeforeChanges(r.MOVE))return this;const e=this._splice(0,this.length);return e&&(e.reverse(),this._splice(0,0,e)),this._emitAfterChanges(r.MOVE),this}shift(){if((0,y.it)(this._observable),!this.length||this._emitBeforeChanges(r.REMOVE))return;const e=S(this._splice(0,1));return this._emitAfterChanges(r.REMOVE),e}slice(e=0,t=this.length){return(0,y.it)(this._observable),this._createNewInstance({items:this._items.slice(e,t)})}some(e,t){return(0,y.it)(this._observable),this._items.some(e,t)}sort(e){if((0,y.it)(this._observable),!this.length||this._emitBeforeChanges(r.MOVE))return this;const t=(0,l.j0)(this._splice(0,this.length));return arguments.length?t.sort(e):t.sort(),this._splice(0,0,t),this._emitAfterChanges(r.MOVE),this}splice(e,t,...i){(0,y.it)(this._observable);const s=(t?r.REMOVE:0)|(i.length?r.ADD:0);if(this._emitBeforeChanges(s))return[];const o=this._splice(e,t,i)||[];return this._emitAfterChanges(s),o}toArray(){return(0,y.it)(this._observable),this._items.slice()}toJSON(){return(0,y.it)(this._observable),this.toArray()}toLocaleString(){return(0,y.it)(this._observable),this._items.toLocaleString()}toString(){return(0,y.it)(this._observable),this._items.toString()}unshift(...e){return(0,y.it)(this._observable),!e.length||this._emitBeforeChanges(r.ADD)||(this._splice(0,0,e),this._emitAfterChanges(r.ADD)),this.length}_createNewInstance(e){return new this.constructor(e)}_splice(e,t,i){const r=this._items,s=this.itemType;let o,n;if(!this._notifications&&this.hasEventListener("change")&&(this._notifications=[{listeners:this._chgListeners.slice(),items:this._items.slice(),changes:[]}],this._timer&&this._timer.remove(),this._timer=(0,d.Os)((()=>this._dispatchChange()))),t){if(n=r.splice(e,t),this.hasEventListener("before-remove")){const t=g.acquire();t.target=this,t.cancellable=!0;for(let i=0,s=n.length;i<s;i++)o=n[i],t.reset(o),this.emit("before-remove",t),t.defaultPrevented&&(n.splice(i,1),r.splice(e,0,o),e+=1,i-=1,s-=1);g.release(t)}if(this.length=this._items.length,this.hasEventListener("after-remove")){const e=g.acquire();e.target=this,e.cancellable=!1;const t=n.length;for(let i=0;i<t;i++)e.reset(n[i]),this.emit("after-remove",e);g.release(e)}}if(i&&i.length){if(s){const e=[];for(const t of i){const i=s.ensureType(t);null==i&&null!=t||e.push(i)}i=e}const t=this.hasEventListener("before-add"),o=this.hasEventListener("after-add"),n=e===this.length;if(t||o){const s=g.acquire();s.target=this,s.cancellable=!0;const a=g.acquire();a.target=this,a.cancellable=!1;for(const l of i)t?(s.reset(l),this.emit("before-add",s),s.defaultPrevented||(n?r.push(l):r.splice(e++,0,l),this._set("length",r.length),o&&(a.reset(l),this.emit("after-add",a)))):(n?r.push(l):r.splice(e++,0,l),this._set("length",r.length),a.reset(l),this.emit("after-add",a));g.release(a),g.release(s)}else{if(n)for(const e of i)r.push(e);else r.splice(e,0,...i);this._set("length",r.length)}}return(i&&i.length||n&&n.length)&&this._notifyChangeEvent(i,n),n}_emitBeforeChanges(e){let t=!1;if(this.hasEventListener("before-changes")){const i=g.acquire();i.target=this,i.cancellable=!0,i.type=e,this.emit("before-changes",i),t=i.defaultPrevented,g.release(i)}return t}_emitAfterChanges(e){if(this.hasEventListener("after-changes")){const t=g.acquire();t.target=this,t.cancellable=!1,t.type=e,this.emit("after-changes",t),g.release(t)}this._observable.notify()}_notifyChangeEvent(e,t){this.hasEventListener("change")&&this._notifications&&this._notifications[this._notifications.length-1].changes.push({added:e,removed:t})}_dispatchChange(){if(this._timer&&(this._timer.remove(),this._timer=null),!this._notifications)return;const e=this._notifications;this._notifications=null;for(const t of e){const e=t.changes;O.clear(),N.clear(),I.clear();for(const{added:t,removed:i}of e){if(t)if(0===I.size&&0===N.size)for(const e of t)O.add(e);else for(const e of t)N.has(e)?(I.add(e),N.delete(e)):I.has(e)||O.add(e);if(i)if(0===I.size&&0===O.size)for(const e of i)N.add(e);else for(const e of i)O.has(e)?O.delete(e):(I.delete(e),N.add(e))}const i=o.Z.acquire();O.forEach((e=>{i.push(e)}));const r=o.Z.acquire();N.forEach((e=>{r.push(e)}));const s=this._items,n=t.items,a=o.Z.acquire();if(I.forEach((e=>{n.indexOf(e)!==s.indexOf(e)&&a.push(e)})),t.listeners&&(i.length||r.length||a.length)){const e={target:this,added:i,removed:r,moved:a},s=t.listeners.length;for(let i=0;i<s;i++){const r=t.listeners[i];r.removed||r.callback.call(this,e)}}o.Z.release(i),o.Z.release(r),o.Z.release(a)}O.clear(),N.clear(),I.clear()}};D.ofType=e=>{if(!e)return p;if(x.has(e))return x.get(e);let t=null;if("function"==typeof e)t=e.prototype.declaredClass;else if(e.base)t=e.base.prototype.declaredClass;else for(const i in e.typeMap){const r=e.typeMap[i].prototype.declaredClass;t?t+=` | ${r}`:t=r}let i=class extends p{};return(0,s._)([(0,h.c)({Type:e,ensureType:"function"==typeof e?(0,m.se)(e):(0,m.N7)(e)})],i.prototype,"itemType",void 0),i=(0,s._)([(0,b.j)(`esri.core.Collection<${t}>`)],i),x.set(e,i),i},(0,s._)([(0,c.Cb)()],D.prototype,"length",void 0),(0,s._)([(0,c.Cb)()],D.prototype,"items",null),D=p=(0,s._)([(0,b.j)("esri.core.Collection")],D);const F=D},32448:(e,t,i)=>{i.d(t,{Z:()=>l});var r=i(43697),s=i(15923),o=i(50758),n=i(52011);class a{constructor(){this._emitter=new a.EventEmitter(this)}emit(e,t){return this._emitter.emit(e,t)}on(e,t){return this._emitter.on(e,t)}once(e,t){return this._emitter.once(e,t)}hasEventListener(e){return this._emitter.hasEventListener(e)}}!function(e){class t{constructor(e=null){this.target=e,this._listenersMap=null}clear(){this._listenersMap&&this._listenersMap.clear(),this._listenersMap=null}emit(e,t){const i=this._listenersMap&&this._listenersMap.get(e);if(!i)return!1;const r=this.target||this;return[...i].forEach((e=>{e.call(r,t)})),i.length>0}on(e,t){if(Array.isArray(e)){const i=e.map((e=>this.on(e,t)));return(0,o.AL)(i)}if(e.indexOf(",")>-1)throw new TypeError("Evented.on() with a comma delimited string of event types is not supported");this._listenersMap||(this._listenersMap=new Map);const i=this._listenersMap.get(e)||[];return i.push(t),this._listenersMap.set(e,i),{remove:()=>{const i=this._listenersMap&&this._listenersMap.get(e)||[],r=i.indexOf(t);r>=0&&i.splice(r,1)}}}once(e,t){const i=this.on(e,(e=>{i.remove(),t.call(null,e)}));return i}hasEventListener(e){const t=this._listenersMap&&this._listenersMap.get(e);return null!=t&&t.length>0}}e.EventEmitter=t,e.EventedMixin=e=>{let i=class extends e{constructor(){super(...arguments),this._emitter=new t}destroy(){this._emitter.clear()}emit(e,t){return this._emitter.emit(e,t)}on(e,t){return this._emitter.on(e,t)}once(e,t){return this._emitter.once(e,t)}hasEventListener(e){return this._emitter.hasEventListener(e)}};return i=(0,r._)([(0,n.j)("esri.core.Evented")],i),i};let i=class extends s.Z{constructor(){super(...arguments),this._emitter=new a.EventEmitter(this)}destroy(){this._emitter.clear()}emit(e,t){return this._emitter.emit(e,t)}on(e,t){return this._emitter.on(e,t)}once(e,t){return this._emitter.once(e,t)}hasEventListener(e){return this._emitter.hasEventListener(e)}};i=(0,r._)([(0,n.j)("esri.core.Evented")],i),e.EventedAccessor=i}(a||(a={}));const l=a},16453:(e,t,i)=>{i.d(t,{R:()=>g,w:()=>C});var r=i(43697),s=i(15923),o=i(70586),n=i(41103),a=i(22974),l=i(31263);class u{constructor(){this._propertyOriginMap=new Map,this._originStores=new Array(l.kk),this._values=new Map,this.multipleOriginsSupported=!0}clone(e){const t=new u,i=this._originStores[l.s3.DEFAULTS];i&&i.forEach(((e,i)=>{t.set(i,(0,a.d9)(e),l.s3.DEFAULTS)}));for(let i=l.s3.SERVICE;i<l.kk;i++){const r=this._originStores[i];r&&r.forEach(((r,s)=>{e&&e.has(s)||t.set(s,(0,a.d9)(r),i)}))}return t}get(e,t){const i=void 0===t?this._values:this._originStores[t];return i?i.get(e):void 0}keys(e){const t=null==e?this._values:this._originStores[e];return t?[...t.keys()]:[]}set(e,t,i=l.s3.USER){let r=this._originStores[i];if(r||(r=new Map,this._originStores[i]=r),r.set(e,t),!this._values.has(e)||(0,o.j0)(this._propertyOriginMap.get(e))<=i){const r=this._values.get(e);return this._values.set(e,t),this._propertyOriginMap.set(e,i),r!==t}return!1}delete(e,t=l.s3.USER){const i=this._originStores[t];if(!i)return;const r=i.get(e);if(i.delete(e),this._values.has(e)&&this._propertyOriginMap.get(e)===t){this._values.delete(e);for(let i=t-1;i>=0;i--){const t=this._originStores[i];if(t&&t.has(e)){this._values.set(e,t.get(e)),this._propertyOriginMap.set(e,i);break}}}return r}has(e,t){const i=void 0===t?this._values:this._originStores[t];return!!i&&i.has(e)}revert(e,t){for(;t>0&&!this.has(e,t);)--t;const i=this._originStores[t],r=i&&i.get(e),s=this._values.get(e);return this._values.set(e,r),this._propertyOriginMap.set(e,t),s!==r}originOf(e){return this._propertyOriginMap.get(e)||l.s3.DEFAULTS}forEach(e){this._values.forEach(e)}}var p=i(50549),d=i(1153),c=i(52011);const m=e=>{let t=class extends e{constructor(...e){super(...e);const t=(0,o.j0)((0,d.vw)(this)),i=t.store,r=new u;t.store=r,(0,n.M)(t,i,r)}read(e,t){(0,p.i)(this,e,t)}getAtOrigin(e,t){const i=h(this),r=(0,l.M9)(t);if("string"==typeof e)return i.get(e,r);const s={};return e.forEach((e=>{s[e]=i.get(e,r)})),s}originOf(e){return(0,l.x3)(this.originIdOf(e))}originIdOf(e){return h(this).originOf(e)}revert(e,t){const i=h(this),r=(0,l.M9)(t),s=(0,d.vw)(this);let o;o="string"==typeof e?"*"===e?i.keys(r):[e]:e,o.forEach((e=>{s.invalidate(e),i.revert(e,r),s.commit(e)}))}};return t=(0,r._)([(0,c.j)("esri.core.ReadOnlyMultiOriginJSONSupport")],t),t};function h(e){return(0,d.vw)(e).store}let b=class extends(m(s.Z)){};b=(0,r._)([(0,c.j)("esri.core.ReadOnlyMultiOriginJSONSupport")],b);var y=i(76169);const f=e=>{let t=class extends e{constructor(...e){super(...e)}clear(e,t="user"){return v(this).delete(e,(0,l.M9)(t))}write(e={},t){return(0,y.c)(this,e=e||{},t),e}setAtOrigin(e,t,i){(0,d.vw)(this).setAtOrigin(e,t,(0,l.M9)(i))}removeOrigin(e){const t=v(this),i=(0,l.M9)(e),r=t.keys(i);for(const e of r)t.originOf(e)===i&&t.set(e,t.get(e,i),l.s3.USER)}updateOrigin(e,t){const i=v(this),r=(0,l.M9)(t),s=this.get(e);for(let t=r+1;t<l.kk;++t)i.delete(e,t);i.set(e,s,r)}toJSON(e){return this.write({},e)}};return t=(0,r._)([(0,c.j)("esri.core.WriteableMultiOriginJSONSupport")],t),t.prototype.toJSON.isDefaultToJSON=!0,t};function v(e){return(0,d.vw)(e).store}const g=e=>{let t=class extends(f(m(e))){constructor(...e){super(...e)}};return t=(0,r._)([(0,c.j)("esri.core.MultiOriginJSONSupport")],t),t};let C=class extends(g(s.Z)){};C=(0,r._)([(0,c.j)("esri.core.MultiOriginJSONSupport")],C)},52421:(e,t,i)=>{function r(e){return(t,i)=>{t[i]=e}}i.d(t,{c:()=>r})},74085:(e,t,i)=>{function r(e){}i.d(t,{Bg:()=>r}),i(80442)},67900:(e,t,i)=>{i.d(t,{gV:()=>P,En:()=>_,Z7:()=>E,c9:()=>x,_R:()=>N,qE:()=>B,cM:()=>I,hd:()=>p,ty:()=>w,Jo:()=>U,$C:()=>O}),i(80442);var r=i(35454),s=i(70586),o=i(24678),n=i(82971),a=i(68441),l=i(8744),u=i(58116);const p=39.37,d=a.sv.radius*Math.PI/200,c=/UNIT\[([^\]]+)\]\]$/i,m=u.Z,h=/UNIT\[([^\]]+)\]/i,b=new Set([4261,4305,4807,4810,4811,4812,4816,4819,4821,4901,4902,37225,104139,104140]),y=(0,r.w)()({meter:"meters",foot:"feet",foot_us:"us-feet",foot_clarke:"clarke-feet",yard_clarke:"clarke-yards",link_clarke:"clarke-links",yard_sears:"sears-yards",foot_sears:"sears-feet",chain_sears:"sears-chains",chain_benoit_1895_b:"benoit-1895-b-chains",yard_indian:"indian-yards",yard_indian_1937:"indian-1937-yards",foot_gold_coast:"gold-coast-feet",chain_sears_1922_truncated:"sears-1922-truncated-chains","50_kilometers":"50-kilometers","150_kilometers":"150-kilometers"}),f=e=>e*e,v=e=>e*e*e,g={length:{baseUnit:"meters",units:{millimeters:{inBaseUnits:.001},centimeters:{inBaseUnits:.01},decimeters:{inBaseUnits:.1},meters:{inBaseUnits:1},kilometers:{inBaseUnits:1e3},inches:{inBaseUnits:.0254},feet:{inBaseUnits:.3048},yards:{inBaseUnits:.9144},miles:{inBaseUnits:1609.344},"nautical-miles":{inBaseUnits:1852},"us-feet":{inBaseUnits:1200/3937}}},area:{baseUnit:"square-meters",units:{"square-millimeters":{inBaseUnits:f(.001)},"square-centimeters":{inBaseUnits:f(.01)},"square-decimeters":{inBaseUnits:f(.1)},"square-meters":{inBaseUnits:1},"square-kilometers":{inBaseUnits:f(1e3)},"square-inches":{inBaseUnits:f(.0254)},"square-feet":{inBaseUnits:f(.3048)},"square-yards":{inBaseUnits:f(.9144)},"square-miles":{inBaseUnits:f(1609.344)},"square-us-feet":{inBaseUnits:f(1200/3937)},acres:{inBaseUnits:.0015625*f(1609.344)},ares:{inBaseUnits:100},hectares:{inBaseUnits:1e4}}},volume:{baseUnit:"liters",units:{liters:{inBaseUnits:1},"cubic-millimeters":{inBaseUnits:1e3*v(.001)},"cubic-centimeters":{inBaseUnits:1e3*v(.01)},"cubic-decimeters":{inBaseUnits:1e3*v(.1)},"cubic-meters":{inBaseUnits:1e3},"cubic-kilometers":{inBaseUnits:1e3*v(1e3)},"cubic-inches":{inBaseUnits:1e3*v(.0254)},"cubic-feet":{inBaseUnits:1e3*v(.3048)},"cubic-yards":{inBaseUnits:1e3*v(.9144)},"cubic-miles":{inBaseUnits:1e3*v(1609.344)}}},angle:{baseUnit:"radians",units:{radians:{inBaseUnits:1},degrees:{inBaseUnits:Math.PI/180}}}},C=function(){const e={};for(const t in g)for(const i in g[t].units)e[i]=t;return e}();function T(e){const t=C[e];if(t)return t;throw new Error("unknown measure")}function S(e,t=null){return t=t||T(e),g[t].baseUnit===e}function _(e,t,i){if(t===i)return e;const r=T(t);if(r!==T(i))throw new Error("incompatible units");const s=S(t,r)?e:function(e,t,i){return e*g[i].units[t].inBaseUnits}(e,t,r);return S(i,r)?s:function(e,t,i){return e/g[i].units[t].inBaseUnits}(s,i,r)}function w(e,t,i){return _(e,t,"meters")/(i*Math.PI/180)}function O(e){return y.fromJSON(e.toLowerCase())||null}function N(e){if(e&&"object"==typeof e&&!(0,l.N$)(e))return 1;const t=x(e);return t>1e5?1:t}function I(e){return x(e)>=(e instanceof n.Z?(0,o.Iu)(e).metersPerDegree:1e5)?"meters":B(e)}function x(e,t=a.sv.metersPerDegree){return E(e,!0)||t}function E(e,t=!1){let i,r,s=null;if(null!=e&&("object"==typeof e?(i=e.wkid,r=e.wkt):"number"==typeof e?i=e:"string"==typeof e&&(r=e)),i){if((0,l.o$)(i))return a.yr.metersPerDegree;if((0,l.ME)(i))return a.Z1.metersPerDegree;s=m.values[m[i]],!s&&t&&b.has(i)&&(s=d)}else r&&(j(r)?s=D(c.exec(r),s):A(r)&&(s=D(h.exec(r),s)));return s}function D(e,t){return e&&e[1]?F(e[1]):t}function F(e){return parseFloat(e.split(",")[1])}function B(e){let t,i,r=null;if(null!=e&&("object"==typeof e?(t=e.wkid,i=e.wkt):"number"==typeof e?t=e:"string"==typeof e&&(i=e)),t)r=m.units[m[t]];else if(i){const e=j(i)?c:A(i)?h:null;if(e){const t=e.exec(i);t&&t[1]&&(r=function(e){const t=/[\\"\\']{1}([^\\"\\']+)/.exec(e);let i=t&&t[1];if(!i||-1===m.units.indexOf(i)){const t=F(e);i=null;const r=m.values;for(let e=0;e<r.length;++e)if(Math.abs(t-r[e])<1e-7){i=m.units[e];break}}return i}(t[1]))}}return(0,s.pC)(r)?O(r):null}function A(e){return/^GEOCCS/i.test(e)}function j(e){return/^PROJCS/i.test(e)}const M={esriAcres:"acres",esriAres:"ares",esriHectares:"hectares",esriSquareCentimeters:"square-centimeters",esriSquareDecimeters:"square-decimeters",esriSquareFeet:"square-feet",esriSquareInches:"square-inches",esriSquareKilometers:"square-kilometers",esriSquareMeters:"square-meters",esriSquareMiles:"square-miles",esriSquareMillimeters:"square-millimeters",esriSquareUsFeet:"square-us-feet",esriSquareYards:"square-yards"},L={esriCentimeters:"centimeters",esriDecimeters:"decimeters",esriFeet:"feet",esriInches:"inches",esriKilometers:"kilometers",esriMeters:"meters",esriMiles:"miles",esriMillimeters:"millimeters",esriNauticalMiles:"nautical-miles",esriYards:"yards"},P=(0,r.w)()(M),U=(0,r.w)()(L);(0,r.w)()({...M,...L})},24678:(e,t,i)=>{i.d(t,{GG:()=>a,HQ:()=>l,VY:()=>u,wY:()=>p,Iu:()=>c,e8:()=>m,rS:()=>d});var r=i(82971),s=i(68441),o=i(8744);function n(e){return new r.Z({wkt:`GEOCCS["Spherical geocentric",\n DATUM["Not specified",\n SPHEROID["Sphere",${e.radius},0]],\n PRIMEM["Greenwich",0.0,\n AUTHORITY["EPSG","8901"]],\n UNIT["m",1.0],\n AXIS["Geocentric X",OTHER],\n AXIS["Geocentric Y",EAST],\n AXIS["Geocentric Z",NORTH]\n ]`})}const a=n(s.sv),l=n(s.yr),u=n(s.Z1),p=new r.Z({wkt:`GEOCCS["WGS 84",\n DATUM["WGS_1984",\n SPHEROID["WGS 84",${s.sv.radius},298.257223563,\n AUTHORITY["EPSG","7030"]],\n AUTHORITY["EPSG","6326"]],\n PRIMEM["Greenwich",0,\n AUTHORITY["EPSG","8901"]],\n UNIT["m",1.0,\n AUTHORITY["EPSG","9001"]],\n AXIS["Geocentric X",OTHER],\n AXIS["Geocentric Y",OTHER],\n AXIS["Geocentric Z",NORTH],\n AUTHORITY["EPSG","4978"]\n]`});function d(e){return e&&((0,o.BZ)(e)||e===l)?l:e&&((0,o.V2)(e)||e===u)?u:a}function c(e){return e&&((0,o.BZ)(e)||e===l)?s.yr:e&&((0,o.V2)(e)||e===u)?s.Z1:s.sv}function m(e){return(0,o.o$)(e)?s.yr:(0,o.ME)(e)?s.Z1:s.sv}},38581:(e,t,i)=>{i.d(t,{aX:()=>T});var r=i(68773),s=i(20102),o=i(92604),n=i(70586),a=i(17332),l=i(58901),u=i(73913),p=i(8744),d=i(40488),c=(i(66577),i(3172)),m=i(17452),h=i(33955);const b=o.Z.getLogger("esri.geometry.support.normalizeUtils");function y(e){return"polygon"===e[0].type}function f(e){return"polyline"===e[0].type}function v(e,t,i){if(t){const t=function(e,t){if(!(e instanceof l.Z||e instanceof a.Z)){const e="straightLineDensify: the input geometry is neither polyline nor polygon";throw b.error(e),new s.Z(e)}const i=(0,u.x3)(e),r=[];for(const e of i){const i=[];r.push(i),i.push([e[0][0],e[0][1]]);for(let r=0;r<e.length-1;r++){const s=e[r][0],o=e[r][1],n=e[r+1][0],a=e[r+1][1],l=Math.sqrt((n-s)*(n-s)+(a-o)*(a-o)),u=(a-o)/l,p=(n-s)/l,d=l/t;if(d>1){for(let e=1;e<=d-1;e++){const r=e*t,n=p*r+s,a=u*r+o;i.push([n,a])}const e=(l+Math.floor(d-1)*t)/2,r=p*e+s,n=u*e+o;i.push([r,n])}i.push([n,a])}}return function(e){return"polygon"===e.type}(e)?new a.Z({rings:r,spatialReference:e.spatialReference}):new l.Z({paths:r,spatialReference:e.spatialReference})}(e,1e6);e=(0,d.Sx)(t,!0)}return i&&(e=(0,u.Sy)(e,i)),e}function g(e,t,i){if(Array.isArray(e)){const r=e[0];if(r>t){const i=(0,u.XZ)(r,t);e[0]=r+i*(-2*t)}else if(r<i){const t=(0,u.XZ)(r,i);e[0]=r+t*(-2*i)}}else{const r=e.x;if(r>t){const i=(0,u.XZ)(r,t);e=e.clone().offset(i*(-2*t),0)}else if(r<i){const t=(0,u.XZ)(r,i);e=e.clone().offset(t*(-2*i),0)}}return e}function C(e,t){let i=-1;for(let r=0;r<t.cutIndexes.length;r++){const s=t.cutIndexes[r],o=t.geometries[r],n=(0,u.x3)(o);for(let e=0;e<n.length;e++){const t=n[e];t.some((i=>{if(i[0]<180)return!0;{let i=0;for(let e=0;e<t.length;e++){const r=t[e][0];i=r>i?r:i}i=Number(i.toFixed(9));const r=-360*(0,u.XZ)(i,180);for(let i=0;i<t.length;i++){const t=o.getPoint(e,i);o.setPoint(e,i,t.clone().offset(r,0))}return!0}}))}if(s===i){if(y(e))for(const t of(0,u.x3)(o))e[s]=e[s].addRing(t);else if(f(e))for(const t of(0,u.x3)(o))e[s]=e[s].addPath(t)}else i=s,e[s]=o}return e}async function T(e,t,i){var s;if(!Array.isArray(e))return T([e],t);const o=null!=(s=null==t?void 0:t.url)?s:r.Z.geometryServiceUrl;let b,y,f,S,_,w,O,N,I=0;const x=[],E=[];for(const t of e)if((0,n.Wi)(t))E.push(t);else if(b||(b=t.spatialReference,y=(0,p.C5)(b),f=b.isWebMercator,w=f?102100:4326,S=u.UZ[w].maxX,_=u.UZ[w].minX,O=u.UZ[w].plus180Line,N=u.UZ[w].minus180Line),y)if("mesh"===t.type)E.push(t);else if("point"===t.type)E.push(g(t.clone(),S,_));else if("multipoint"===t.type){const e=t.clone();e.points=e.points.map((e=>g(e,S,_))),E.push(e)}else if("extent"===t.type){const e=t.clone()._normalize(!1,!1,y);E.push(e.rings?new a.Z(e):e)}else if(t.extent){const e=t.extent,i=(0,u.XZ)(e.xmin,_)*(2*S);let r=0===i?t.clone():(0,u.Sy)(t.clone(),i);e.offset(i,0),e.intersects(O)&&e.xmax!==S?(I=e.xmax>I?e.xmax:I,r=v(r,f),x.push(r),E.push("cut")):e.intersects(N)&&e.xmin!==_?(I=e.xmax*(2*S)>I?e.xmax*(2*S):I,r=v(r,f,360),x.push(r),E.push("cut")):E.push(r)}else E.push(t.clone());else E.push(t);let D=(0,u.XZ)(I,S),F=-90;const B=D,A=new l.Z;for(;D>0;){const e=360*D-180;A.addPath([[e,F],[e,-1*F]]),F*=-1,D--}if(x.length>0&&B>0){const t=C(x,await async function(e,t,i,r){const s="string"==typeof e?(0,m.mN)(e):e,o=t[0].spatialReference,n={...r,query:{...s.query,f:"json",sr:JSON.stringify(o),target:JSON.stringify({geometryType:(0,h.Ji)(t[0]),geometries:t}),cutter:JSON.stringify(i)}},a=await(0,c.default)(s.path+"/cut",n),{cutIndexes:l,geometries:u=[]}=a.data;return{cutIndexes:l,geometries:u.map((e=>{const t=(0,h.im)(e);return t.spatialReference=o,t}))}}(o,x,A,i)),r=[],s=[];for(let i=0;i<E.length;i++){const o=E[i];if("cut"!==o)s.push(o);else{const o=t.shift(),a=e[i];(0,n.pC)(a)&&"polygon"===a.type&&a.rings&&a.rings.length>1&&o.rings.length>=a.rings.length?(r.push(o),s.push("simplify")):s.push(f?(0,d.$)(o):o)}}if(!r.length)return s;const a=await async function(e,t,i){const r="string"==typeof e?(0,m.mN)(e):e,s=t[0].spatialReference,o=(0,h.Ji)(t[0]),n={...i,query:{...r.query,f:"json",sr:s.wkid?s.wkid:JSON.stringify(s),geometries:JSON.stringify((a=t,{geometryType:(0,h.Ji)(a[0]),geometries:a.map((e=>e.toJSON()))}))}};var a;return function(e,t,i){const r=(0,h.q9)(t);return e.map((e=>{const t=r.fromJSON(e);return t.spatialReference=i,t}))}((await(0,c.default)(r.path+"/simplify",n)).data,o,s)}(o,r,i),l=[];for(let e=0;e<s.length;e++){const t=s[e];"simplify"!==t?l.push(t):l.push(f?(0,d.$)(a.shift()):a.shift())}return l}const j=[];for(let e=0;e<E.length;e++){const t=E[e];if("cut"!==t)j.push(t);else{const e=x.shift();j.push(!0===f?(0,d.$)(e):e)}}return Promise.resolve(j)}},73913:(e,t,i)=>{i.d(t,{UZ:()=>n,x3:()=>u,XZ:()=>a,Sy:()=>l});var r=i(58901),s=i(82971),o=i(33955);const n={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new r.Z({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:s.Z.WebMercator}),minus180Line:new r.Z({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:s.Z.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new r.Z({paths:[[[180,-180],[180,180]]],spatialReference:s.Z.WGS84}),minus180Line:new r.Z({paths:[[[-180,-180],[-180,180]]],spatialReference:s.Z.WGS84})}};function a(e,t){return Math.ceil((e-t)/(2*t))}function l(e,t){const i=u(e);for(const e of i)for(const i of e)i[0]+=t;return e}function u(e){return(0,o.oU)(e)?e.rings:e.paths}},40330:(e,t,i)=>{i.d(t,{Dp:()=>u,id:()=>a,qh:()=>l,i8:()=>o,Nv:()=>n});var r=i(80442),s=i(17452);const o="4.23",n={async request(e,t){var r;const{default:o}=await i.e(3172).then(i.bind(i,3172)),n=e.options,a=n.responseType;n.signal=null==t?void 0:t.signal,n.responseType="native"===a||"native-request-init"===a?"native-request-init":["blob","json","text"].includes(a)&&null!=(r=(0,s.oh)(e.url))&&r.after?a:"array-buffer";const l=await o(e.url,n),u={data:l.data,ssl:l.ssl};switch(l.requestOptions.responseType){case"native-request-init":return delete u.data.signal,u;case"blob":u.data=await u.data.arrayBuffer();break;case"json":u.data=(new TextEncoder).encode(JSON.stringify(u.data)).buffer;break;case"text":u.data=(new TextEncoder).encode(u.data).buffer}return{result:u,transferList:[u.data]}}};let a;function l(e){a=e}function u(e){const t=a&&a.findCredential(e);return t&&t.token?(0,s.ZN)(e,"token",t.token):e}(0,r.Z)("host-webworker")||((0,r.Z)("edge")||(0,r.Z)("trident"))&&console.warn("Deprecated browser - see http://esriurl.com/oldbrowser")},29600:(e,t,i)=>{i.d(t,{Z:()=>C});var r=i(43697),s=i(68773),o=(i(66577),i(3172)),n=i(20102),a=i(32448),l=i(10699),u=i(83379),p=i(92604),d=i(95330),c=i(17452),m=i(5600),h=(i(67676),i(80442),i(75215),i(52011)),b=i(6570),y=i(82971);let f=0;const v=p.Z.getLogger("esri.layers.Layer");let g=class extends(a.Z.EventedMixin((0,l.I)(u.Z))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new b.Z(-180,-90,180,90,y.Z.WGS84),this.id=Date.now().toString(16)+"-layer-"+f++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=y.Z.WGS84,this.title=null,this.type=null,this.url=null,this.visible=!0}static async fromArcGISServerUrl(e){const t="string"==typeof e?{url:e}:e,r=await i.e(3529).then(i.bind(i,63529));try{return await r.fromUrl(t)}catch(e){throw v.error("#fromArcGISServerUrl({ url: '"+t.url+"'})","Failed to create layer from arcgis server url",e),e}}static async fromPortalItem(e){const t="portalItem"in e?e:{portalItem:e},r=await i.e(4579).then(i.bind(i,44579));try{return await r.fromItem(t)}catch(e){const i=t&&t.portalItem,r=i&&i.id||"unset",o=i&&i.portal&&i.portal.url||s.Z.portalUrl;throw v.error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+o+"', id: '"+r+"')",e),e}}initialize(){this.when().catch((e=>{var t,i;(0,d.D_)(e)||p.Z.getLogger(this.declaredClass).error("#load()",`Failed to load layer (title: '${null!=(t=this.title)?t:"no title"}', id: '${null!=(i=this.id)?i:"no id"}')`,{error:e})}))}destroy(){if(this.parent){const e=this,t=this.parent;"layers"in t&&t.layers.includes(e)?t.layers.remove(e):"tables"in t&&t.tables.includes(e)?t.tables.remove(e):"baseLayers"in t&&t.baseLayers.includes(e)?t.baseLayers.remove(e):"baseLayers"in t&&t.referenceLayers.includes(e)&&t.referenceLayers.remove(e)}}get hasAttributionData(){return null!=this.attributionDataUrl}get parsedUrl(){const e=this.url;return e?(0,c.mN)(e):null}async fetchAttributionData(){const e=this.attributionDataUrl;if(this.hasAttributionData&&e)return(await(0,o.default)(e,{query:{f:"json"},responseType:"json"})).data;throw new n.Z("layer:no-attribution-data","Layer does not have attribution data")}};(0,r._)([(0,m.Cb)({type:String})],g.prototype,"attributionDataUrl",void 0),(0,r._)([(0,m.Cb)({type:b.Z})],g.prototype,"fullExtent",void 0),(0,r._)([(0,m.Cb)({readOnly:!0})],g.prototype,"hasAttributionData",null),(0,r._)([(0,m.Cb)({type:String})],g.prototype,"id",void 0),(0,r._)([(0,m.Cb)({type:Boolean,nonNullable:!0})],g.prototype,"legendEnabled",void 0),(0,r._)([(0,m.Cb)({type:["show","hide","hide-children"]})],g.prototype,"listMode",void 0),(0,r._)([(0,m.Cb)({type:Number,range:{min:0,max:1},nonNullable:!0})],g.prototype,"opacity",void 0),(0,r._)([(0,m.Cb)()],g.prototype,"parent",void 0),(0,r._)([(0,m.Cb)({readOnly:!0})],g.prototype,"parsedUrl",null),(0,r._)([(0,m.Cb)({type:Boolean})],g.prototype,"popupEnabled",void 0),(0,r._)([(0,m.Cb)({type:Boolean})],g.prototype,"attributionVisible",void 0),(0,r._)([(0,m.Cb)({type:y.Z})],g.prototype,"spatialReference",void 0),(0,r._)([(0,m.Cb)({type:String})],g.prototype,"title",void 0),(0,r._)([(0,m.Cb)({type:String,readOnly:!0,json:{read:!1}})],g.prototype,"type",void 0),(0,r._)([(0,m.Cb)()],g.prototype,"url",void 0),(0,r._)([(0,m.Cb)({type:Boolean,nonNullable:!0})],g.prototype,"visible",void 0),g=(0,r._)([(0,h.j)("esri.layers.Layer")],g);const C=g},66277:(e,t,i)=>{i.r(t),i.d(t,{default:()=>Be});var r=i(43697),s=i(68773),o=(i(66577),i(1692)),n=i(51773),a=(i(16050),i(12501),i(95088),i(79056),i(5499),i(84382),i(30687),i(91423)),l=i(80539),u=i(20102),p=i(70586),d=i(16453),c=i(78286),m=i(67900),h=i(5600),b=(i(67676),i(80442),i(75215)),y=i(71715),f=i(52011),v=i(30556),g=i(6570),C=i(8744),T=i(29600),S=i(71612),_=i(38009),w=i(16859),O=i(72965),N=i(78223),I=i(96674),x=i(4095),E=i(77987),D=i(20256),F=i(37898);let B=class extends I.wq{constructor(){super(...arguments),this.directionLines=new x.Z({color:[0,122,194],width:6}),this.directionPoints=new E.Z({color:[255,255,255],size:6,outline:{color:[0,122,194],width:2}}),this.pointBarriers=new E.Z({style:"x",size:10,outline:{color:[255,0,0],width:3}}),this.polygonBarriers=new D.Z({color:[255,170,0,.6],outline:{width:7.5,color:[255,0,0,.6]}}),this.polylineBarriers=new x.Z({width:7.5,color:[255,85,0,.7]}),this.routeInfo=new x.Z({width:8,color:[20,89,127]}),this.firstStop=new F.Z({width:23,height:23,url:`data:image/svg+xml;base64,${btoa('<svg width="30" height="30" viewBox="0 0 30 30" xmlns="http://www.w3.org/2000/svg"><g fill-rule="nonzero" fill="none"><path d="M15.15.3C6.9.3.3 6.9.3 15.15S6.9 29.7 15.15 29.7 29.7 23.1 29.7 15.15C29.7 6.9 23.25.3 15.15.3z" fill="#FFFFFF"/><path d="M15 4.8C9.3 4.8 4.8 9.45 4.8 15c0 5.55 4.65 10.2 10.2 10.2 5.55 0 10.2-4.5 10.2-10.2 0-5.55-4.5-10.2-10.2-10.2z" fill="#00FF00"/></g></svg>')}`}),this.middleStop=new E.Z({color:[51,51,51,1],size:12,outline:{color:[0,122,194],width:3}}),this.lastStop=new F.Z({width:23,height:23,url:`data:image/svg+xml;base64,${btoa('<svg width="30" height="30" viewBox="0 0 30 30" xmlns="http://www.w3.org/2000/svg"><g fill-rule="nonzero" fill="none"><path d="M15.15.3C6.9.3.3 6.9.3 15.15S6.9 29.7 15.15 29.7 29.7 23.1 29.7 15.15C29.7 6.9 23.25.3 15.15.3z" fill="#FFFFFF"/><path d="M15 4.8C9.3 4.8 4.8 9.45 4.8 15c0 5.55 4.65 10.2 10.2 10.2 5.55 0 10.2-4.5 10.2-10.2 0-5.55-4.5-10.2-10.2-10.2z" fill="#FF0000"/><path fill="#FFFFFF" d="M10.5 10.5h9v9h-9z"/></g></svg>')}`}),this.invalidStop=new F.Z({height:18,width:18,url:`data:image/svg+xml;base64,${btoa('<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><path d="M10.1.2C4.6.2.2 4.6.2 10.1s4.4 9.7 9.9 9.7 9.7-4.4 9.7-9.7c0-5.5-4.3-9.9-9.7-9.9z" fill="#FFFFFF" fill-rule="nonzero"/><path d="M10 2.7c-4.08 0-7.3 3.328-7.3 7.3s3.328 7.3 7.3 7.3 7.3-3.22 7.3-7.3c0-3.972-3.22-7.3-7.3-7.3z" fill="#FF0000" fill-rule="nonzero"/><path d="M11.414 10l5.304-5.303-1.415-1.415L10 8.586 4.697 3.282 3.282 4.697 8.586 10l-5.304 5.303 1.415 1.415L10 11.414l5.303 5.304 1.415-1.415L11.414 10z" fill="#FFFFFF"/></g></svg>')}`}),this.waypointStop=new E.Z({color:[255,255,255],size:12,outline:{color:[0,122,194],width:3}}),this.breakStop=new E.Z({color:[255,255,255],size:12,outline:{color:[0,122,194],width:3}})}};(0,r._)([(0,h.Cb)({nonNullable:!0,types:N.LB})],B.prototype,"directionLines",void 0),(0,r._)([(0,h.Cb)({nonNullable:!0,types:N.LB})],B.prototype,"directionPoints",void 0),(0,r._)([(0,h.Cb)({nonNullable:!0,types:N.LB})],B.prototype,"pointBarriers",void 0),(0,r._)([(0,h.Cb)({nonNullable:!0,types:N.LB})],B.prototype,"polygonBarriers",void 0),(0,r._)([(0,h.Cb)({nonNullable:!0,types:N.LB})],B.prototype,"polylineBarriers",void 0),(0,r._)([(0,h.Cb)({nonNullable:!0,types:N.LB})],B.prototype,"routeInfo",void 0),(0,r._)([(0,h.Cb)({nonNullable:!0,types:N.LB})],B.prototype,"firstStop",void 0),(0,r._)([(0,h.Cb)({nonNullable:!0,types:N.LB})],B.prototype,"middleStop",void 0),(0,r._)([(0,h.Cb)({nonNullable:!0,types:N.LB})],B.prototype,"lastStop",void 0),(0,r._)([(0,h.Cb)({nonNullable:!0,types:N.LB})],B.prototype,"invalidStop",void 0),(0,r._)([(0,h.Cb)({nonNullable:!0,types:N.LB})],B.prototype,"waypointStop",void 0),(0,r._)([(0,h.Cb)({nonNullable:!0,types:N.LB})],B.prototype,"breakStop",void 0),B=(0,r._)([(0,f.j)("esri.layers.support.DefaultSymbols")],B);const A=B;var j,M=i(93924),L=i(23334),P=i(58901),U=i(49352),V=i(21878);let R=j=class extends I.wq{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.routeId=null,this.symbol=null,this.toLevel=null}static fromPortalJSON(e){var t,i,r;return new j({directionLineType:U.td.fromJSON(e.attributes.DirectionLineType),directionPointId:e.attributes.DirectionPointID,distance:e.attributes.Meters,duration:e.attributes.Minutes,fromLevel:null!=(t=e.attributes.FromLevel)?t:null,geometry:P.Z.fromJSON(e.geometry),objectId:e.attributes.__OBJECTID,popupTemplate:(0,p.pC)(e.popupInfo)?n.Z.fromJSON(e.popupInfo):null,routeId:null!=(i=e.attributes.RouteID)?i:null,symbol:(0,p.pC)(e.symbol)?(0,V.i)(e.symbol):null,toLevel:null!=(r=e.attributes.ToLevel)?r:null})}toPortalJSON(){const e={geometry:(0,p.pC)(this.geometry)?this.geometry.toJSON():null,attributes:{__OBJECTID:(0,p.Wg)(this.objectId),DirectionLineType:(0,p.pC)(this.directionLineType)?U.td.toJSON(this.directionLineType):null,DirectionPointID:(0,p.Wg)(this.directionPointId),Meters:(0,p.Wg)(this.distance),Minutes:(0,p.Wg)(this.duration)},symbol:(0,p.pC)(this.symbol)?this.symbol.toJSON():null,popupInfo:(0,p.pC)(this.popupTemplate)?this.popupTemplate.toJSON():null};return(0,p.pC)(this.routeId)&&(e.attributes.RouteID=this.routeId),(0,p.pC)(this.fromLevel)&&(e.attributes.FromLevel=this.fromLevel),(0,p.pC)(this.toLevel)&&(e.attributes.ToLevel=this.toLevel),e}};R.fields=[{name:"__OBJECTID",alias:"OBJECTID",type:"esriFieldTypeOID",editable:!1,nullable:!1,domain:null},{name:"DirectionPointID",alias:"Direction Point ID",type:"esriFieldTypeInteger",editable:!0,nullable:!0,visible:!1},{name:"DirectionLineType",alias:"Line Type",type:"esriFieldTypeInteger",editable:!0,nullable:!0,visible:!0,domain:{type:"codedValue",name:"esriDirectionsLineType",codedValues:[{name:"Unknown",code:0},{name:"Segment",code:1},{name:"Maneuver Segment",code:2},{name:"Restriction violation",code:3},{name:"Scale cost barrier crossing",code:4},{name:"Heavy Traffic",code:5},{name:"Slow Traffic",code:6},{name:"Moderate Traffic",code:7}]}},{name:"Meters",alias:"Length in Meters",type:"esriFieldTypeDouble",editable:!0,nullable:!0,visible:!0},{name:"Minutes",alias:"Duration in Minutes",type:"esriFieldTypeDouble",editable:!0,nullable:!0,visible:!0},{name:"FromLevel",alias:"Start from 3D Level",type:"esriFieldTypeInteger",editable:!0,nullable:!0,visible:!1},{name:"ToLevel",alias:"End at 3D Level",type:"esriFieldTypeInteger",editable:!0,nullable:!0,visible:!1}],R.popupInfo={title:"Direction Lines",fieldInfos:[{fieldName:"DirectionLineType",label:"Line Type",isEditable:!1,tooltip:"",visible:!0,stringFieldOption:"textbox"},{fieldName:"Meters",label:"Length in Meters",isEditable:!1,tooltip:"",visible:!0,format:{places:2,digitSeparator:!0},stringFieldOption:"textbox"},{fieldName:"Minutes",label:"Duration in Minutes",isEditable:!1,tooltip:"",visible:!0,format:{places:2,digitSeparator:!0},stringFieldOption:"textbox"},{fieldName:"DirectionPointID",label:"Direction Point ID",isEditable:!1,tooltip:"",visible:!0,format:{places:0,digitSeparator:!0},stringFieldOption:"textbox"},{fieldName:"FromLevel",label:"Start from 3D Level",isEditable:!1,tooltip:"",visible:!1,format:{places:0,digitSeparator:!0},stringFieldOption:"textbox"},{fieldName:"ToLevel",label:"End at 3D Level",isEditable:!1,tooltip:"",visible:!1,format:{places:0,digitSeparator:!0},stringFieldOption:"textbox"}],description:null,showAttachments:!1,mediaInfos:[]},(0,r._)([(0,h.Cb)({type:U.td.apiValues,json:{read:{source:"attributes.DirectionLineType",reader:U.td.read}}})],R.prototype,"directionLineType",void 0),(0,r._)([(0,h.Cb)({json:{read:{source:"attributes.DirectionPointID"}}})],R.prototype,"directionPointId",void 0),(0,r._)([(0,h.Cb)({json:{read:{source:"attributes.Meters"}}})],R.prototype,"distance",void 0),(0,r._)([(0,h.Cb)({json:{read:{source:"attributes.Minutes"}}})],R.prototype,"duration",void 0),(0,r._)([(0,h.Cb)({json:{read:{source:"attributes.FromLevel"}}})],R.prototype,"fromLevel",void 0),(0,r._)([(0,h.Cb)({type:P.Z})],R.prototype,"geometry",void 0),(0,r._)([(0,h.Cb)({json:{read:{source:"attributes.ObjectID"}}})],R.prototype,"objectId",void 0),(0,r._)([(0,h.Cb)({type:n.Z,json:{read:!1}})],R.prototype,"popupTemplate",void 0),(0,r._)([(0,h.Cb)({json:{read:{source:"attributes.RouteID"}}})],R.prototype,"routeId",void 0),(0,r._)([(0,h.Cb)({types:N.LB,json:{read:!1}})],R.prototype,"symbol",void 0),(0,r._)([(0,h.Cb)({json:{read:{source:"attributes.ToLevel"}}})],R.prototype,"toLevel",void 0),R=j=(0,r._)([(0,f.j)("esri.layers.support.DirectionLine")],R);const J=R;var Z,q=i(13473);let W=Z=class extends I.wq{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.routeId=null,this.sequence=null,this.shortVoiceInstruction=null,this.stopId=null,this.symbol=null,this.towardName=null,this.voiceInstruction=null}readArrivalTime(e,t){return(0,p.pC)(t.attributes.ArrivalTime)?new Date(t.attributes.ArrivalTime):null}static fromPortalJSON(e){var t,i,r,s,o,a,l,u,d,c,m,h,b,y;return new Z({alternateName:null!=(t=e.attributes.AlternateName)?t:null,arrivalTime:(0,p.pC)(e.attributes.ArrivalTime)?new Date(e.attributes.ArrivalTime):null,arrivalTimeOffset:null!=(i=e.attributes.ArrivalUTCOffset)?i:null,azimuth:null!=(r=e.attributes.Azimuth)?r:null,branchName:null!=(s=e.attributes.BranchName)?s:null,directionPointType:U.cW.fromJSON(e.attributes.DirectionPointType),displayText:null!=(o=e.attributes.DisplayText)?o:null,exitName:null!=(a=e.attributes.ExitName)?a:null,geometry:q.Z.fromJSON(e.geometry),intersectingName:null!=(l=e.attributes.IntersectingName)?l:null,level:null!=(u=e.attributes.Level)?u:null,name:null!=(d=e.attributes.Name)?d:null,objectId:e.attributes.__OBJECTID,popupTemplate:(0,p.pC)(e.popupInfo)?n.Z.fromJSON(e.popupInfo):null,routeId:null!=(c=e.attributes.RouteID)?c:null,sequence:e.attributes.Sequence,shortVoiceInstruction:null!=(m=e.attributes.ShortVoiceInstruction)?m:null,stopId:null!=(h=e.attributes.StopID)?h:null,symbol:(0,p.pC)(e.symbol)?(0,V.i)(e.symbol):null,towardName:null!=(b=e.attributes.TowardName)?b:null,voiceInstruction:null!=(y=e.attributes.VoiceInstruction)?y:null})}toPortalJSON(){const e={geometry:(0,p.pC)(this.geometry)?this.geometry.toJSON():null,attributes:{__OBJECTID:(0,p.Wg)(this.objectId),DirectionPointType:(0,p.pC)(this.directionPointType)?U.cW.toJSON(this.directionPointType):null,Sequence:(0,p.Wg)(this.sequence),StopID:this.stopId},symbol:(0,p.pC)(this.symbol)?this.symbol.toJSON():null,popupInfo:(0,p.pC)(this.popupTemplate)?this.popupTemplate.toJSON():null};return(0,p.pC)(this.alternateName)&&(e.attributes.AlternateName=this.alternateName),(0,p.pC)(this.arrivalTime)&&(e.attributes.ArrivalTime=this.arrivalTime.getTime()),(0,p.pC)(this.arrivalTimeOffset)&&(e.attributes.ArrivalUTCOffset=this.arrivalTimeOffset),(0,p.pC)(this.azimuth)&&(e.attributes.Azimuth=this.azimuth),(0,p.pC)(this.branchName)&&(e.attributes.BranchName=this.branchName),(0,p.pC)(this.displayText)&&(e.attributes.DisplayText=this.displayText),(0,p.pC)(this.exitName)&&(e.attributes.ExitName=this.exitName),(0,p.pC)(this.intersectingName)&&(e.attributes.IntersectingName=this.intersectingName),(0,p.pC)(this.level)&&(e.attributes.Level=this.level),(0,p.pC)(this.name)&&(e.attributes.Name=this.name),(0,p.pC)(this.shortVoiceInstruction)&&(e.attributes.ShortVoiceInstruction=this.shortVoiceInstruction),(0,p.pC)(this.towardName)&&(e.attributes.TowardName=this.towardName),(0,p.pC)(this.voiceInstruction)&&(e.attributes.VoiceInstruction=this.voiceInstruction),e}};W.fields=[{name:"__OBJECTID",alias:"OBJECTID",type:"esriFieldTypeOID",editable:!1,nullable:!1,domain:null},{name:"Sequence",alias:"Sequence",type:"esriFieldTypeInteger",editable:!0,nullable:!0,visible:!0},{name:"StopID",alias:"Stop ID",type:"esriFieldTypeInteger",editable:!0,nullable:!0,visible:!0},{name:"DirectionPointType",alias:"Directions Item Type",type:"esriFieldTypeInteger",editable:!0,nullable:!0,visible:!0,domain:{type:"codedValue",name:"esriDirectionPointType",codedValues:[{name:"Unknown",code:0},{name:"",code:1},{name:"Arrive at stop",code:50},{name:"Depart at stop",code:51},{name:"Go straight",code:52},{name:"Take ferry",code:100},{name:"Take off ferry",code:101},{name:"Keep center at fork",code:102},{name:"Take roundabout",code:103},{name:"Make U-Turn",code:104},{name:"Pass the door",code:150},{name:"Take stairs",code:151},{name:"",code:152},{name:"Take escalator",code:153},{name:"Take pedestrian ramp",code:154},{name:"Keep left at fork",code:200},{name:"Ramp left",code:201},{name:"Take left-handed roundabout",code:202},{name:"Make left-handed U-Turn",code:203},{name:"Bear left",code:204},{name:"Turn left",code:205},{name:"Make sharp left",code:206},{name:"Turn left, followed by turn left",code:207},{name:"Turn left, followed by turn right",code:208},{name:"Keep right at fork",code:300},{name:"Ramp right",code:301},{name:"Take right-handed roundabout",code:302},{name:"Make right-handed U-Turn",code:303},{name:"Bear right",code:304},{name:"Turn right",code:305},{name:"Make sharp right",code:306},{name:"Turn right, followed by turn left",code:307},{name:"Turn right, followed by turn right",code:308},{name:"Indicates up direction of elevator",code:400},{name:"Indicates up direction of escalator",code:401},{name:"Take up-stairs",code:402},{name:"Indicates down direction of elevator",code:500},{name:"Indicates down direction of escalator",code:501},{name:"Take down-stairs",code:502},{name:"General event",code:1e3},{name:"Landmark",code:1001},{name:"Time zone change",code:1002},{name:"Heavy traffic segment",code:1003},{name:"Scale cost barrier crossing",code:1004},{name:"Administrative Border crossing",code:1005},{name:"Restriction violation",code:1006}]}},{name:"DisplayText",alias:"Text to Display",type:"esriFieldTypeString",length:2048,editable:!0,nullable:!0,visible:!0,domain:null},{name:"ArrivalTime",alias:"Maneuver Starts at",type:"esriFieldTypeDate",length:36,editable:!0,nullable:!0,visible:!0},{name:"ArrivalUTCOffset",alias:"Offset from UTC in Minutes",type:"esriFieldTypeInteger",editable:!0,nullable:!0,visible:!0},{name:"Azimuth",alias:"Azimuth",type:"esriFieldTypeDouble",editable:!0,nullable:!0,visible:!0},{name:"Name",alias:"Primary Feature Name",type:"esriFieldTypeString",length:2048,editable:!0,nullable:!0,visible:!0,domain:null},{name:"AlternateName",alias:"Alternative Feature Name",type:"esriFieldTypeString",length:2048,editable:!0,nullable:!0,visible:!0,domain:null},{name:"ExitName",alias:"Highway Exit Name",type:"esriFieldTypeString",length:2048,editable:!0,nullable:!0,visible:!0,domain:null},{name:"IntersectingName",alias:"Intersecting Feature Name",type:"esriFieldTypeString",length:2048,editable:!0,nullable:!0,visible:!0,domain:null},{name:"BranchName",alias:"Signpost Branch Name",type:"esriFieldTypeString",length:2048,editable:!0,nullable:!0,visible:!0,domain:null},{name:"TowardName",alias:"Signpost Toward Name",type:"esriFieldTypeString",length:2048,editable:!0,nullable:!0,visible:!0,domain:null},{name:"ShortVoiceInstruction",alias:"Voice Instruction",type:"esriFieldTypeString",length:2048,editable:!0,nullable:!0,visible:!0,domain:null},{name:"VoiceInstruction",alias:"Voice Full Instruction",type:"esriFieldTypeString",length:2048,editable:!0,nullable:!0,visible:!0,domain:null},{name:"Level",alias:"3D Logical Level",type:"esriFieldTypeInteger",editable:!0,nullable:!0,visible:!0}],W.popupInfo={title:"{Name}",fieldInfos:[{fieldName:"Name",label:"Name",isEditable:!0,tooltip:"",visible:!0,stringFieldOption:"textbox"},{fieldName:"RouteName",label:"Route Name",isEditable:!0,tooltip:"",visible:!0,stringFieldOption:"textbox"},{fieldName:"Sequence",label:"Sequence",isEditable:!1,tooltip:"",visible:!0,format:{places:0,digitSeparator:!0},stringFieldOption:"textbox"},{fieldName:"ArrivalTime",label:"Arrival Time",isEditable:!0,tooltip:"",visible:!0,format:{dateFormat:"shortDateShortTime24"},stringFieldOption:"textbox"},{fieldName:"ArrivalUTCOffset",label:"Arrival Time: Offset from UTC in Minutes",isEditable:!1,tooltip:"",visible:!0,format:{places:0,digitSeparator:!0},stringFieldOption:"textbox"},{fieldName:"DepartureTime",label:"Departure Time",isEditable:!0,tooltip:"",visible:!0,format:{dateFormat:"shortDateShortTime24"},stringFieldOption:"textbox"},{fieldName:"DepartureUTCOffset",label:"Departure Time: Offset from UTC in Minutes",isEditable:!1,tooltip:"",visible:!0,format:{places:0,digitSeparator:!0},stringFieldOption:"textbox"},{fieldName:"CurbApproach",label:"Curb Approach",isEditable:!0,tooltip:"",visible:!1,format:{places:0,digitSeparator:!0},stringFieldOption:"textbox"},{fieldName:"ArrivalCurbApproach",label:"Arrival Curb Approach",isEditable:!1,tooltip:"",visible:!0,format:{places:0,digitSeparator:!0},stringFieldOption:"textbox"},{fieldName:"DepartureCurbApproach",label:"Departure Curb Approach",isEditable:!1,tooltip:"",visible:!0,format:{places:0,digitSeparator:!0},stringFieldOption:"textbox"},{fieldName:"Status",label:"Status",isEditable:!1,tooltip:"",visible:!0,format:{places:0,digitSeparator:!0},stringFieldOption:"textbox"},{fieldName:"LocationType",label:"Location Type",isEditable:!1,tooltip:"",visible:!0,format:{places:0,digitSeparator:!0},stringFieldOption:"textbox"},{fieldName:"TimeWindowStart",label:"Time Window Start",isEditable:!0,tooltip:"",visible:!1,format:{dateFormat:"shortDateShortTime24"},stringFieldOption:"textbox"},{fieldName:"TimeWindowStartUTCOffset",label:"Time Window Start: Offset from UTC in Minutes",isEditable:!1,tooltip:"",visible:!1,format:{places:0,digitSeparator:!0},stringFieldOption:"textbox"},{fieldName:"TimeWindowEnd",label:"Time Window End",isEditable:!0,tooltip:"",visible:!1,format:{dateFormat:"shortDateShortTime24"},stringFieldOption:"textbox"},{fieldName:"TimeWindowEndUTCOffset",label:"Time Window End: Offset from UTC in Minutes",isEditable:!1,tooltip:"",visible:!1,format:{places:0,digitSeparator:!0},stringFieldOption:"textbox"},{fieldName:"ServiceMinutes",label:"Service Minutes",isEditable:!0,tooltip:"",visible:!1,format:{places:2,digitSeparator:!0},stringFieldOption:"textbox"},{fieldName:"ServiceMeters",label:"Service Meters",isEditable:!0,tooltip:"",visible:!1,format:{places:2,digitSeparator:!0},stringFieldOption:"textbox"},{fieldName:"ServiceCosts",label:"Service Costs",isEditable:!0,tooltip:"",visible:!1,stringFieldOption:"textbox"},{fieldName:"CumulativeMinutes",label:"Cumulative Minutes",isEditable:!1,tooltip:"",visible:!0,format:{places:2,digitSeparator:!0},stringFieldOption:"textbox"},{fieldName:"CumulativeMeters",label:"Cumulative Meters",isEditable:!1,tooltip:"",visible:!0,format:{places:2,digitSeparator:!0},stringFieldOption:"textbox"},{fieldName:"CumulativeCosts",label:"Cumulative Costs",isEditable:!0,tooltip:"",visible:!1,stringFieldOption:"textbox"},{fieldName:"LateMinutes",label:"Minutes Late",isEditable:!1,tooltip:"",visible:!1,format:{places:2,digitSeparator:!0},stringFieldOption:"textbox"},{fieldName:"WaitMinutes",label:"Minutes Early",isEditable:!1,tooltip:"",visible:!1,format:{places:2,digitSeparator:!0},stringFieldOption:"textbox"}],description:null,showAttachments:!1,mediaInfos:[]},(0,r._)([(0,h.Cb)({json:{read:!1}})],W.prototype,"alternateName",void 0),(0,r._)([(0,h.Cb)()],W.prototype,"arrivalTime",void 0),(0,r._)([(0,y.r)("arrivalTime",["attributes.ArrivalTime"])],W.prototype,"readArrivalTime",null),(0,r._)([(0,h.Cb)({json:{read:{source:"attributes.ArrivalUTCOffset"}}})],W.prototype,"arrivalTimeOffset",void 0),(0,r._)([(0,h.Cb)({json:{read:{source:"attributes.Azimuth"}}})],W.prototype,"azimuth",void 0),(0,r._)([(0,h.Cb)({json:{read:{source:"attributes.BranchName"}}})],W.prototype,"branchName",void 0),(0,r._)([(0,h.Cb)({type:U.cW.apiValues,json:{read:{source:"attributes.DirectionPointType",reader:U.cW.read}}})],W.prototype,"directionPointType",void 0),(0,r._)([(0,h.Cb)({json:{read:{source:"attributes.DisplayText"}}})],W.prototype,"displayText",void 0),(0,r._)([(0,h.Cb)({json:{read:{source:"attributes.ExitName"}}})],W.prototype,"exitName",void 0),(0,r._)([(0,h.Cb)({type:q.Z})],W.prototype,"geometry",void 0),(0,r._)([(0,h.Cb)({json:{read:!1}})],W.prototype,"intersectingName",void 0),(0,r._)([(0,h.Cb)({json:{read:!1}})],W.prototype,"level",void 0),(0,r._)([(0,h.Cb)({json:{read:{source:"attributes.Name"}}})],W.prototype,"name",void 0),(0,r._)([(0,h.Cb)({json:{read:{source:"attributes.ObjectID"}}})],W.prototype,"objectId",void 0),(0,r._)([(0,h.Cb)({type:n.Z,json:{read:!1}})],W.prototype,"popupTemplate",void 0),(0,r._)([(0,h.Cb)({json:{read:{source:"attributes.RouteID"}}})],W.prototype,"routeId",void 0),(0,r._)([(0,h.Cb)({json:{read:{source:"attributes.Sequence"}}})],W.prototype,"sequence",void 0),(0,r._)([(0,h.Cb)({json:{read:!1}})],W.prototype,"shortVoiceInstruction",void 0),(0,r._)([(0,h.Cb)({json:{read:{source:"attributes.StopID"}}})],W.prototype,"stopId",void 0),(0,r._)([(0,h.Cb)({types:N.LB,json:{read:!1}})],W.prototype,"symbol",void 0),(0,r._)([(0,h.Cb)({json:{read:{source:"attributes.TowardName"}}})],W.prototype,"towardName",void 0),(0,r._)([(0,h.Cb)({json:{read:!1}})],W.prototype,"voiceInstruction",void 0),W=Z=(0,r._)([(0,f.j)("esri.layers.support.DirectionPoint")],W);const k=W;var z,G=i(22974);function $(e,t){if((0,p.Wi)(e))return null;const i={},r=new RegExp(`^${t}`,"i");for(const s in e)e.hasOwnProperty(s)&&r.test(s)&&(i[s.substring(t.length)]=e[s]);return i}function H(e,t){return(0,p.Wi)(e)||(0,p.Wi)(t)?null:Math.round((e-t)/6e4)}let X=z=class extends I.wq{constructor(e){super(e),this.addedCost=null,this.barrierType=null,this.costs=null,this.curbApproach=null,this.fullEdge=null,this.geometry=null,this.name=null,this.objectId=null,this.popupTemplate=null,this.sideOfEdge=null,this.sourceId=null,this.sourceOid=null,this.status=null,this.symbol=null}readCosts(e,t){return $(t.attributes,"Attr_")}writeCosts(e,t){if(!(0,p.Wi)(e)){t.attributes||(t.attributes={});for(const i in e)t.attributes[`Attr_${i}`]=e[i]}}static fromPortalJSON(e){var t,i;return new z({addedCost:null!=(t=e.attributes.AddedCost)?t:null,barrierType:(0,p.pC)(e.attributes.BarrierType)?U.oi.fromJSON(e.attributes.BarrierType):null,costs:(0,p.pC)(e.attributes.Costs)?JSON.parse(e.attributes.Costs):null,curbApproach:(0,p.pC)(e.attributes.CurbApproach)?U.W7.fromJSON(e.attributes.CurbApproach):null,fullEdge:(0,p.pC)(e.attributes.FullEdge)?U.Dd.fromJSON(e.attributes.FullEdge):null,geometry:q.Z.fromJSON(e.geometry),name:null!=(i=e.attributes.Name)?i:null,objectId:e.attributes.__OBJECTID,popupTemplate:(0,p.pC)(e.popupInfo)?n.Z.fromJSON(e.popupInfo):null,status:(0,p.pC)(e.attributes.Status)?U.SS.fromJSON(e.attributes.Status):null,symbol:(0,p.pC)(e.symbol)?(0,V.i)(e.symbol):null})}clone(){return new z((0,G.d9)({addedCost:this.addedCost,barrierType:this.barrierType,costs:this.costs,curbApproach:this.curbApproach,fullEdge:this.fullEdge,geometry:this.geometry,name:this.name,objectId:this.objectId,popupTemplate:this.popupTemplate,sideOfEdge:this.sideOfEdge,sourceId:this.sourceId,sourceOid:this.sourceOid,status:this.status,symbol:this.symbol}))}toPortalJSON(){return{geometry:(0,p.pC)(this.geometry)?this.geometry.toJSON():null,attributes:{__OBJECTID:(0,p.Wg)(this.objectId),AddedCost:this.addedCost,BarrierType:(0,p.pC)(this.barrierType)?U.oi.toJSON(this.barrierType):null,Costs:(0,p.pC)(this.costs)?JSON.stringify(this.costs):null,CurbApproach:(0,p.pC)(this.curbApproach)?U.W7.toJSON(this.curbApproach):null,FullEdge:(0,p.pC)(this.fullEdge)?U.Dd.toJSON(this.fullEdge):null,Name:this.name,Status:(0,p.pC)(this.status)?U.SS.toJSON(this.status):null},symbol:(0,p.pC)(this.symbol)?this.symbol.toJSON():null,popupInfo:(0,p.pC)(this.popupTemplate)?this.popupTemplate.toJSON():null}}};X.fields=[{name:"__OBJECTID",alias:"OBJECTID",type:"esriFieldTypeOID",editable:!1,nullable:!1,domain:null},{name:"BarrierType",alias:"Barrier Type",type:"esriFieldTypeInteger",editable:!0,nullable:!0,visible:!0,domain:{type:"codedValue",name:"esriNABarrierType",codedValues:[{name:"Restriction",code:0},{name:"Scaled Cost",code:1},{name:"Added Cost",code:2}]}},{name:"Costs",alias:"Costs",type:"esriFieldTypeString",length:1048576,editable:!0,nullable:!0,visible:!1,domain:null},{name:"CurbApproach",alias:"Curb Approach",type:"esriFieldTypeInteger",editable:!0,nullable:!0,visible:!1,domain:{type:"codedValue",name:"esriNACurbApproachType",codedValues:[{name:"Either side",code:0},{name:"From the right",code:1},{name:"From the left",code:2},{name:"Depart in the same direction",code:3}]}},{name:"FullEdge",alias:"Full Edge",type:"esriFieldTypeInteger",editable:!0,nullable:!0,visible:!0,domain:{type:"codedValue",name:"esriNAIntYesNo",codedValues:[{name:"No",code:0},{name:"Yes",code:1}]}},{name:"Name",alias:"Name",type:"esriFieldTypeString",length:255,editable:!0,nullable:!0,visible:!0},{name:"Status",alias:"Status",type:"esriFieldTypeInteger",editable:!0,nullable:!0,visible:!0,domain:{type:"codedValue",name:"esriNAObjectStatus",codedValues:[{name:"OK",code:0},{name:"Not Located on Network",code:1},{name:"Network Unbuilt",code:2},{name:"Prohibited Street",code:3},{name:"Invalid Field Values",code:4},{name:"Cannot Reach",code:5},{name:"Time Window Violation",code:6}]}}],X.popupInfo={title:"Point Barriers",fieldInfos:[{fieldName:"Name",label:"Name",isEditable:!0,tooltip:"",visible:!0,stringFieldOption:"textbox"},{fieldName:"BarrierType",label:"Barrier Type",isEditable:!0,tooltip:"",visible:!0,stringFieldOption:"textbox"},{fieldName:"Costs",label:"Costs",isEditable:!0,tooltip:"",visible:!1,stringFieldOption:"textbox"}],description:null,showAttachments:!1,mediaInfos:[]},(0,r._)([(0,h.Cb)({json:{read:!1}})],X.prototype,"addedCost",void 0),(0,r._)([(0,h.Cb)({type:U.oi.apiValues,json:{name:"attributes.BarrierType",read:{reader:U.oi.read},write:{writer:U.oi.write}}})],X.prototype,"barrierType",void 0),(0,r._)([(0,h.Cb)()],X.prototype,"costs",void 0),(0,r._)([(0,y.r)("costs",["attributes"])],X.prototype,"readCosts",null),(0,r._)([(0,v.c)("costs")],X.prototype,"writeCosts",null),(0,r._)([(0,h.Cb)({type:U.W7.apiValues,json:{read:{source:"attributes.CurbApproach",reader:U.W7.read}}})],X.prototype,"curbApproach",void 0),(0,r._)([(0,h.Cb)({type:U.Dd.apiValues,json:{name:"attributes.FullEdge",read:{reader:U.Dd.read},write:{writer:U.Dd.write}}})],X.prototype,"fullEdge",void 0),(0,r._)([(0,h.Cb)({type:q.Z,json:{write:!0}})],X.prototype,"geometry",void 0),(0,r._)([(0,h.Cb)({json:{name:"attributes.Name",write:!0}})],X.prototype,"name",void 0),(0,r._)([(0,h.Cb)({json:{name:"attributes.ObjectID",write:!0}})],X.prototype,"objectId",void 0),(0,r._)([(0,h.Cb)({type:n.Z,json:{read:!1}})],X.prototype,"popupTemplate",void 0),(0,r._)([(0,h.Cb)({type:U.BW.apiValues,json:{read:{source:"attributes.SideOfEdge",reader:U.BW.read}}})],X.prototype,"sideOfEdge",void 0),(0,r._)([(0,h.Cb)({json:{read:{source:"attributes.SourceID"}}})],X.prototype,"sourceId",void 0),(0,r._)([(0,h.Cb)({json:{read:{source:"attributes.SourceOID"}}})],X.prototype,"sourceOid",void 0),(0,r._)([(0,h.Cb)({type:U.SS.apiValues,json:{read:{source:"attributes.Status",reader:U.SS.read}}})],X.prototype,"status",void 0),(0,r._)([(0,h.Cb)({types:N.LB,json:{read:!1}})],X.prototype,"symbol",void 0),X=z=(0,r._)([(0,f.j)("esri.layers.support.PointBarrier")],X);const Y=X;var K,Q=i(17332);let ee=K=class extends I.wq{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}readCosts(e,t){return $(t.attributes,"Attr_")}writeCosts(e,t){if(!(0,p.Wi)(e)){t.attributes||(t.attributes={});for(const i in e)t.attributes[`Attr_${i}`]=e[i]}}static fromPortalJSON(e){var t,i;return new K({barrierType:(0,p.pC)(e.attributes.BarrierType)?U.oi.fromJSON(e.attributes.BarrierType):null,costs:(0,p.pC)(e.attributes.Costs)?JSON.parse(e.attributes.Costs):null,geometry:Q.Z.fromJSON(e.geometry),name:null!=(t=e.attributes.Name)?t:null,objectId:e.attributes.__OBJECTID,popupTemplate:(0,p.pC)(e.popupInfo)?n.Z.fromJSON(e.popupInfo):null,scaleFactor:null!=(i=e.attributes.ScaleFactor)?i:null,symbol:(0,p.pC)(e.symbol)?(0,V.i)(e.symbol):null})}clone(){return new K((0,G.d9)({barrierType:this.barrierType,costs:this.costs,geometry:this.geometry,name:this.name,objectId:this.objectId,popupTemplate:this.popupTemplate,scaleFactor:this.scaleFactor,symbol:this.symbol}))}toPortalJSON(){var e,t;return{geometry:(0,p.pC)(this.geometry)?this.geometry.toJSON():null,attributes:{__OBJECTID:(0,p.Wg)(this.objectId),BarrierType:(0,p.pC)(this.barrierType)?U.oi.toJSON(this.barrierType):null,Costs:(0,p.pC)(this.costs)?JSON.stringify(this.costs):null,Name:null!=(e=this.name)?e:null,ScaleFactor:null!=(t=this.scaleFactor)?t:null},symbol:(0,p.pC)(this.symbol)?this.symbol.toJSON():null,popupInfo:(0,p.pC)(this.popupTemplate)?this.popupTemplate.toJSON():null}}};ee.fields=[{name:"__OBJECTID",alias:"OBJECTID",type:"esriFieldTypeOID",editable:!1,nullable:!1,domain:null},{name:"BarrierType",alias:"Barrier Type",type:"esriFieldTypeInteger",editable:!0,nullable:!0,visible:!0,domain:{type:"codedValue",name:"esriNABarrierType",codedValues:[{name:"Restriction",code:0},{name:"Scaled Cost",code:1},{name:"Added Cost",code:2}]}},{name:"Costs",alias:"Costs",type:"esriFieldTypeString",length:1048576,editable:!0,nullable:!0,visible:!1,domain:null},{name:"Name",alias:"Name",type:"esriFieldTypeString",length:255,editable:!0,nullable:!0,visible:!0},{name:"ScaleFactor",alias:"Scale Factor",type:"esriFieldTypeDouble",editable:!0,nullable:!0,visible:!0}],ee.popupInfo={title:"Line Barriers",fieldInfos:[{fieldName:"Name",label:"Name",isEditable:!0,tooltip:"",visible:!0,stringFieldOption:"textbox"},{fieldName:"BarrierType",label:"Barrier Type",isEditable:!0,tooltip:"",visible:!0,stringFieldOption:"textbox"},{fieldName:"ScaleFactor",isEditable:!0,tooltip:"",visible:!0,format:{places:3,digitSeparator:!0},stringFieldOption:"textbox"},{fieldName:"Costs",label:"Costs",isEditable:!0,tooltip:"",visible:!1,stringFieldOption:"textbox"}],description:null,showAttachments:!1,mediaInfos:[]},(0,r._)([(0,h.Cb)({type:U.oi.apiValues,json:{name:"attributes.BarrierType",read:{reader:U.oi.read},write:{writer:U.oi.write}}})],ee.prototype,"barrierType",void 0),(0,r._)([(0,h.Cb)()],ee.prototype,"costs",void 0),(0,r._)([(0,y.r)("costs",["attributes"])],ee.prototype,"readCosts",null),(0,r._)([(0,v.c)("costs")],ee.prototype,"writeCosts",null),(0,r._)([(0,h.Cb)({type:Q.Z,json:{write:!0}})],ee.prototype,"geometry",void 0),(0,r._)([(0,h.Cb)({json:{name:"attributes.Name",write:!0}})],ee.prototype,"name",void 0),(0,r._)([(0,h.Cb)({json:{name:"attributes.ObjectID",write:!0}})],ee.prototype,"objectId",void 0),(0,r._)([(0,h.Cb)({type:n.Z,json:{read:!1}})],ee.prototype,"popupTemplate",void 0),(0,r._)([(0,h.Cb)({json:{read:!1}})],ee.prototype,"scaleFactor",void 0),(0,r._)([(0,h.Cb)({types:N.LB,json:{read:!1}})],ee.prototype,"symbol",void 0),ee=K=(0,r._)([(0,f.j)("esri.layers.support.PolygonBarrier")],ee);const te=ee;var ie;let re=ie=class extends I.wq{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}readCosts(e,t){return $(t.attributes,"Attr_")}static fromPortalJSON(e){var t,i;return new ie({barrierType:(0,p.pC)(e.attributes.BarrierType)?U.oi.fromJSON(e.attributes.BarrierType):null,costs:(0,p.pC)(e.attributes.Costs)?JSON.parse(e.attributes.Costs):null,geometry:P.Z.fromJSON(e.geometry),name:null!=(t=e.attributes.Name)?t:null,objectId:e.attributes.__OBJECTID,popupTemplate:(0,p.pC)(e.popupInfo)?n.Z.fromJSON(e.popupInfo):null,scaleFactor:null!=(i=e.attributes.ScaleFactor)?i:null,symbol:(0,p.pC)(e.symbol)?(0,V.i)(e.symbol):null})}clone(){return new ie((0,G.d9)({barrierType:this.barrierType,costs:this.costs,geometry:this.geometry,name:this.name,objectId:this.objectId,popupTemplate:this.popupTemplate,scaleFactor:this.scaleFactor,symbol:this.symbol}))}toPortalJSON(){return{geometry:(0,p.pC)(this.geometry)?this.geometry.toJSON():null,attributes:{__OBJECTID:(0,p.Wg)(this.objectId),BarrierType:(0,p.pC)(this.barrierType)?U.oi.toJSON(this.barrierType):null,Costs:(0,p.pC)(this.costs)?JSON.stringify(this.costs):null,Name:this.name,ScaleFactor:this.scaleFactor},symbol:(0,p.pC)(this.symbol)?this.symbol.toJSON():null,popupInfo:(0,p.pC)(this.popupTemplate)?this.popupTemplate.toJSON():null}}};re.fields=[{name:"__OBJECTID",alias:"OBJECTID",type:"esriFieldTypeOID",editable:!1,nullable:!1,domain:null},{name:"Name",alias:"Name",type:"esriFieldTypeString",length:255,editable:!0,nullable:!0,visible:!0},{name:"BarrierType",alias:"Barrier Type",type:"esriFieldTypeInteger",editable:!0,nullable:!0,visible:!0,domain:{type:"codedValue",name:"esriNABarrierType",codedValues:[{name:"Restriction",code:0},{name:"Scaled Cost",code:1},{name:"Added Cost",code:2}]}},{name:"ScaleFactor",alias:"Scale Factor",type:"esriFieldTypeDouble",editable:!0,nullable:!0,visible:!0},{name:"Costs",alias:"Costs",type:"esriFieldTypeString",length:1048576,editable:!0,nullable:!0,visible:!1,domain:null}],re.popupInfo={title:"Line Barriers",fieldInfos:[{fieldName:"Name",label:"Name",isEditable:!0,tooltip:"",visible:!0,stringFieldOption:"textbox"},{fieldName:"BarrierType",label:"Barrier Type",isEditable:!0,tooltip:"",visible:!0,stringFieldOption:"textbox"},{fieldName:"ScaleFactor",isEditable:!0,tooltip:"",visible:!0,format:{places:3,digitSeparator:!0},stringFieldOption:"textbox"},{fieldName:"Costs",label:"Costs",isEditable:!0,tooltip:"",visible:!1,stringFieldOption:"textbox"}],description:null,showAttachments:!1,mediaInfos:[]},(0,r._)([(0,h.Cb)({type:U.oi.apiValues,json:{read:{source:"attributes.BarrierType",reader:U.oi.read}}})],re.prototype,"barrierType",void 0),(0,r._)([(0,h.Cb)()],re.prototype,"costs",void 0),(0,r._)([(0,y.r)("costs",["attributes"])],re.prototype,"readCosts",null),(0,r._)([(0,h.Cb)({type:P.Z,json:{write:!0}})],re.prototype,"geometry",void 0),(0,r._)([(0,h.Cb)({json:{name:"attributes.Name",write:!0}})],re.prototype,"name",void 0),(0,r._)([(0,h.Cb)({json:{name:"attributes.ObjectID",write:!0}})],re.prototype,"objectId",void 0),(0,r._)([(0,h.Cb)({type:n.Z,json:{read:!1}})],re.prototype,"popupTemplate",void 0),(0,r._)([(0,h.Cb)({json:{read:!1}})],re.prototype,"scaleFactor",void 0),(0,r._)([(0,h.Cb)({types:N.LB,json:{read:!1}})],re.prototype,"symbol",void 0),re=ie=(0,r._)([(0,f.j)("esri.layers.support.PolylineBarrier")],re);const se=re;var oe=i(49827);let ne=class extends I.wq{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}};(0,r._)([(0,h.Cb)({type:[String],json:{read:{source:"accumulateAttributeNames"},write:{target:"accumulateAttributeNames"}}})],ne.prototype,"accumulateAttributes",void 0),(0,r._)([(0,h.Cb)({type:String,json:{write:!0}})],ne.prototype,"directionsLanguage",void 0),(0,r._)([(0,h.Cb)({type:Boolean,json:{write:!0}})],ne.prototype,"findBestSequence",void 0),(0,r._)([(0,h.Cb)({type:Boolean,json:{write:!0}})],ne.prototype,"preserveFirstStop",void 0),(0,r._)([(0,h.Cb)({type:Boolean,json:{write:!0}})],ne.prototype,"preserveLastStop",void 0),(0,r._)([(0,h.Cb)({type:Boolean,json:{write:!0}})],ne.prototype,"startTimeIsUTC",void 0),(0,r._)([(0,h.Cb)({type:Boolean,json:{write:!0}})],ne.prototype,"timeWindowsAreUTC",void 0),(0,r._)([(0,h.Cb)({type:oe.Z,json:{write:!0}})],ne.prototype,"travelMode",void 0),ne=(0,r._)([(0,f.j)("esri.layers.support.RouteSettings")],ne);const ae=ne;var le;let ue=le=class extends I.wq{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.version="1.0.0"}readEndTime(e,t){return(0,p.pC)(t.attributes.EndTimeUTC)?new Date(t.attributes.EndTimeUTC):null}readEndTimeOffset(e,t){return H(t.attributes.EndTime,t.attributes.EndTimeUTC)}readStartTime(e,t){return(0,p.pC)(t.attributes.StartTimeUTC)?new Date(t.attributes.StartTimeUTC):null}readStartTimeOffset(e,t){return H(t.attributes.StartTime,t.attributes.StartTimeUTC)}readTotalCosts(e,t){return $(t.attributes,"Total_")}readTotalViolations(e,t){return $(t.attributes,"TotalViolation_")}readTotalWait(e,t){return $(t.attributes,"TotalWait_")}static fromPortalJSON(e){var t,i,r,s,o,a;return new le({analysisSettings:(0,p.pC)(e.attributes.AnalysisSettings)?ae.fromJSON(JSON.parse(e.attributes.AnalysisSettings)):null,endTime:(0,p.pC)(e.attributes.EndTime)?new Date(e.attributes.EndTime):null,endTimeOffset:null!=(t=e.attributes.EndUTCOffset)?t:null,geometry:P.Z.fromJSON(e.geometry),messages:(0,p.pC)(e.attributes.Messages)?JSON.parse(e.attributes.Messages):null,name:e.attributes.RouteName,objectId:e.attributes.__OBJECTID,popupTemplate:(0,p.pC)(e.popupInfo)?n.Z.fromJSON(e.popupInfo):null,startTime:(0,p.pC)(e.attributes.StartTime)?new Date(e.attributes.StartTime):null,startTimeOffset:null!=(i=e.attributes.StartUTCOffset)?i:null,symbol:(0,p.pC)(e.symbol)?(0,V.i)(e.symbol):null,totalCosts:(0,p.pC)(e.attributes.TotalCosts)?JSON.parse(e.attributes.TotalCosts):null,totalDistance:null!=(r=e.attributes.TotalMeters)?r:null,totalDuration:null!=(s=e.attributes.TotalMinutes)?s:null,totalLateDuration:null!=(o=e.attributes.TotalLateMinutes)?o:null,totalWaitDuration:null!=(a=e.attributes.TotalWaitMinutes)?a:null,version:e.attributes.Version})}toPortalJSON(){return{geometry:(0,p.pC)(this.geometry)?this.geometry.toJSON():null,attributes:{__OBJECTID:(0,p.Wg)(this.objectId),AnalysisSettings:(0,p.pC)(this.analysisSettings)?JSON.stringify(this.analysisSettings.toJSON()):null,EndTime:(0,p.pC)(this.endTime)?this.endTime.getTime():null,EndUTCOffset:this.endTimeOffset,Messages:(0,p.pC)(this.messages)?JSON.stringify(this.messages):null,RouteName:(0,p.Wg)(this.name),StartTime:(0,p.pC)(this.startTime)?this.startTime.getTime():null,StartUTCOffset:this.startTimeOffset,TotalCosts:(0,p.pC)(this.totalCosts)?JSON.stringify(this.totalCosts):null,TotalLateMinutes:this.totalLateDuration,TotalMeters:this.totalDistance,TotalMinutes:this.totalDuration,TotalWaitMinutes:this.totalWaitDuration,Version:(0,p.Wg)(this.version)},symbol:(0,p.pC)(this.symbol)?this.symbol.toJSON():null,popupInfo:(0,p.pC)(this.popupTemplate)?this.popupTemplate.toJSON():null}}};ue.fields=[{name:"__OBJECTID",alias:"OBJECTID",type:"esriFieldTypeOID",editable:!1,nullable:!1,domain:null},{name:"RouteName",alias:"Route Name",type:"esriFieldTypeString",length:1024,editable:!0,nullable:!0,visible:!0,domain:null},{name:"TotalMinutes",alias:"Total Minutes",type:"esriFieldTypeDouble",editable:!0,nullable:!0,visible:!0},{name:"TotalMeters",alias:"Total Meters",type:"esriFieldTypeDouble",editable:!0,nullable:!0,visible:!0},{name:"TotalLateMinutes",alias:"Total Late Minutes",type:"esriFieldTypeDouble",editable:!0,nullable:!0,visible:!1},{name:"TotalWaitMinutes",alias:"Total Wait Minutes",type:"esriFieldTypeDouble",editable:!0,nullable:!0,visible:!1},{name:"TotalCosts",alias:"Total Costs",type:"esriFieldTypeString",length:1048576,editable:!0,nullable:!0,visible:!1,domain:null},{name:"StartTime",alias:"Start Time",type:"esriFieldTypeDate",length:36,editable:!0,nullable:!0,visible:!0},{name:"StartUTCOffset",alias:"Start Time: Offset from UTC in Minutes",type:"esriFieldTypeInteger",editable:!0,nullable:!0,visible:!0},{name:"EndTime",alias:"End Time",type:"esriFieldTypeDate",length:36,editable:!0,nullable:!0,visible:!0},{name:"EndUTCOffset",alias:"End Time: Offset from UTC in Minutes",type:"esriFieldTypeInteger",editable:!0,nullable:!0,visible:!0},{name:"Messages",alias:"Analysis Messages",type:"esriFieldTypeString",length:1048576,editable:!0,nullable:!0,visible:!1,domain:null},{name:"AnalysisSettings",alias:"Analysis Settings",type:"esriFieldTypeString",length:1048576,editable:!0,nullable:!0,visible:!1,domain:null},{name:"Version",alias:"Version",type:"esriFieldTypeString",length:16,editable:!0,nullable:!0,visible:!0,domain:null}],ue.popupInfo={title:"Route Details",fieldInfos:[{fieldName:"RouteName",label:"Route Name",isEditable:!1,tooltip:"",visible:!0,stringFieldOption:"textbox"},{fieldName:"TotalMinutes",label:"Total Minutes",isEditable:!1,tooltip:"",visible:!0,format:{places:2,digitSeparator:!0},stringFieldOption:"textbox"},{fieldName:"TotalMeters",label:"Total Meters",isEditable:!1,tooltip:"",visible:!0,format:{places:2,digitSeparator:!0},stringFieldOption:"textbox"},{fieldName:"TotalLateMinutes",label:"Total Late Minutes",isEditable:!1,tooltip:"",visible:!1,format:{places:2,digitSeparator:!0},stringFieldOption:"textbox"},{fieldName:"TotalWaitMinutes",label:"Total Wait Minutes",isEditable:!1,tooltip:"",visible:!1,format:{places:2,digitSeparator:!0},stringFieldOption:"textbox"},{fieldName:"TotalCosts",label:"Total Costs",isEditable:!1,tooltip:"",visible:!1,stringFieldOption:"textbox"},{fieldName:"StartTime",label:"Start Time",isEditable:!1,tooltip:"",visible:!0,format:{dateFormat:"shortDateShortTime24"},stringFieldOption:"textbox"},{fieldName:"StartUTCOffset",label:"Start Time: Offset from UTC in Minutes",isEditable:!1,tooltip:"",visible:!0,format:{places:0,digitSeparator:!0},stringFieldOption:"textbox"},{fieldName:"EndTime",label:"End Time",isEditable:!1,tooltip:"",visible:!0,format:{dateFormat:"shortDateShortTime24"},stringFieldOption:"textbox"},{fieldName:"EndUTCOffset",label:"End Time: Offset from UTC in Minutes",isEditable:!1,tooltip:"",visible:!0,format:{places:0,digitSeparator:!0},stringFieldOption:"textbox"},{fieldName:"Messages",label:"Analysis Messages",isEditable:!1,tooltip:"",visible:!1,stringFieldOption:"textbox"},{fieldName:"SolverSettings",isEditable:!1,tooltip:"",visible:!1,stringFieldOption:"textbox"},{fieldName:"Version",label:"Version",isEditable:!1,tooltip:"",visible:!0,stringFieldOption:"textbox"}],description:null,showAttachments:!1,mediaInfos:[]},(0,r._)([(0,h.Cb)({json:{read:!1}})],ue.prototype,"analysisSettings",void 0),(0,r._)([(0,h.Cb)()],ue.prototype,"endTime",void 0),(0,r._)([(0,y.r)("endTime",["attributes.EndTimeUTC"])],ue.prototype,"readEndTime",null),(0,r._)([(0,h.Cb)()],ue.prototype,"endTimeOffset",void 0),(0,r._)([(0,y.r)("endTimeOffset",["attributes.EndTime","attributes.EndTimeUTC"])],ue.prototype,"readEndTimeOffset",null),(0,r._)([(0,h.Cb)({json:{read:{source:"attributes.FirstStopID"}}})],ue.prototype,"firstStopId",void 0),(0,r._)([(0,h.Cb)({type:P.Z})],ue.prototype,"geometry",void 0),(0,r._)([(0,h.Cb)({json:{read:{source:"attributes.LastStopID"}}})],ue.prototype,"lastStopId",void 0),(0,r._)([(0,h.Cb)({json:{read:!1}})],ue.prototype,"messages",void 0),(0,r._)([(0,h.Cb)({json:{read:{source:"attributes.Name"}}})],ue.prototype,"name",void 0),(0,r._)([(0,h.Cb)({json:{read:{source:"attributes.ObjectID"}}})],ue.prototype,"objectId",void 0),(0,r._)([(0,h.Cb)({type:n.Z,json:{read:!1}})],ue.prototype,"popupTemplate",void 0),(0,r._)([(0,h.Cb)()],ue.prototype,"startTime",void 0),(0,r._)([(0,y.r)("startTime",["attributes.StartTimeUTC"])],ue.prototype,"readStartTime",null),(0,r._)([(0,h.Cb)()],ue.prototype,"startTimeOffset",void 0),(0,r._)([(0,y.r)("startTimeOffset",["attributes.StartTime","attributes.StartTimeUTC"])],ue.prototype,"readStartTimeOffset",null),(0,r._)([(0,h.Cb)({json:{read:{source:"attributes.StopCount"}}})],ue.prototype,"stopCount",void 0),(0,r._)([(0,h.Cb)({types:N.LB,json:{read:!1}})],ue.prototype,"symbol",void 0),(0,r._)([(0,h.Cb)()],ue.prototype,"totalCosts",void 0),(0,r._)([(0,y.r)("totalCosts",["attributes"])],ue.prototype,"readTotalCosts",null),(0,r._)([(0,h.Cb)({json:{read:!1}})],ue.prototype,"totalDistance",void 0),(0,r._)([(0,h.Cb)({json:{read:!1}})],ue.prototype,"totalDuration",void 0),(0,r._)([(0,h.Cb)({json:{read:!1}})],ue.prototype,"totalLateDuration",void 0),(0,r._)([(0,h.Cb)()],ue.prototype,"totalViolations",void 0),(0,r._)([(0,y.r)("totalViolations",["attributes"])],ue.prototype,"readTotalViolations",null),(0,r._)([(0,h.Cb)()],ue.prototype,"totalWait",void 0),(0,r._)([(0,y.r)("totalWait",["attributes"])],ue.prototype,"readTotalWait",null),(0,r._)([(0,h.Cb)({json:{read:!1}})],ue.prototype,"totalWaitDuration",void 0),(0,r._)([(0,h.Cb)({json:{read:!1}})],ue.prototype,"version",void 0),ue=le=(0,r._)([(0,f.j)("esri.layers.support.RouteInfo")],ue);const pe=ue;var de=i(36030);const ce={type:String,json:{read:{source:"token"},write:{target:"token"}}};var me,he=i(82971);let be=me=class extends I.wq{constructor(e){super(e),this.accumulateAttributes=null,this.apiKey=null,this.attributeParameterValues=null,this.directionsLanguage=null,this.directionsLengthUnits=null,this.directionsOutputType=null,this.directionsStyleName=null,this.directionsTimeAttribute=null,this.findBestSequence=null,this.ignoreInvalidLocations=null,this.impedanceAttribute=null,this.outputGeometryPrecision=null,this.outputGeometryPrecisionUnits=null,this.outputLines="true-shape",this.outSpatialReference=null,this.pointBarriers=null,this.polygonBarriers=null,this.polylineBarriers=null,this.preserveFirstStop=null,this.preserveLastStop=null,this.restrictionAttributes=null,this.restrictUTurns=null,this.returnBarriers=!1,this.returnDirections=!1,this.returnPolygonBarriers=!1,this.returnPolylineBarriers=!1,this.returnRoutes=!0,this.returnStops=!1,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,b.TJ)(me,e)}writePointBarriers(e,t,i){this._writeNetworkFeatures(e,t,i)}writePolygonBarrier(e,t,i){this._writeNetworkFeatures(e,t,i)}writePolylineBarrier(e,t,i){this._writeNetworkFeatures(e,t,i)}readStartTime(e,t){return null!=t.startTime?new Date(t.startTime):null}writeStartTime(e,t){t.startTime=e?e.getTime():null}writeStops(e,t,i){this._writeNetworkFeatures(e,t,i)}clone(){return new me((0,G.d9)({accumulateAttributes:this.accumulateAttributes,apiKey:this.apiKey,attributeParameterValues:this.attributeParameterValues,directionsLanguage:this.directionsLanguage,directionsLengthUnits:this.directionsLengthUnits,directionsOutputType:this.directionsOutputType,directionsStyleName:this.directionsStyleName,directionsTimeAttribute:this.directionsTimeAttribute,findBestSequence:this.findBestSequence,ignoreInvalidLocations:this.ignoreInvalidLocations,impedanceAttribute:this.impedanceAttribute,outputGeometryPrecision:this.outputGeometryPrecision,outputGeometryPrecisionUnits:this.outputGeometryPrecisionUnits,outputLines:this.outputLines,outSpatialReference:this.outSpatialReference,pointBarriers:this.pointBarriers,polygonBarriers:this.polygonBarriers,polylineBarriers:this.polylineBarriers,preserveFirstStop:this.preserveFirstStop,preserveLastStop:this.preserveLastStop,restrictionAttributes:this.restrictionAttributes,restrictUTurns:this.restrictUTurns,returnBarriers:this.returnBarriers,returnDirections:this.returnDirections,returnPolygonBarriers:this.returnPolygonBarriers,returnPolylineBarriers:this.returnPolylineBarriers,returnRoutes:this.returnRoutes,returnStops:this.returnStops,returnZ:this.returnZ,startTime:this.startTime,startTimeIsUTC:this.startTimeIsUTC,stops:this.stops,timeWindowsAreUTC:this.timeWindowsAreUTC,travelMode:this.travelMode,useHierarchy:this.useHierarchy,useTimeWindows:this.useTimeWindows}))}_writeNetworkFeatures(e,t,i){t[i]=l.Z.isCollection(e)?{features:e.toArray().map((e=>e.toJSON()))}:e.toJSON()}};(0,r._)([(0,h.Cb)({type:[String],json:{name:"accumulateAttributeNames",write:!0}})],be.prototype,"accumulateAttributes",void 0),(0,r._)([(0,h.Cb)(ce)],be.prototype,"apiKey",void 0),(0,r._)([(0,h.Cb)({json:{write:!0}})],be.prototype,"attributeParameterValues",void 0),(0,r._)([(0,h.Cb)({type:String,json:{write:!0}})],be.prototype,"directionsLanguage",void 0),(0,r._)([(0,de.J)(U.GX)],be.prototype,"directionsLengthUnits",void 0),(0,r._)([(0,de.J)(U.$7)],be.prototype,"directionsOutputType",void 0),(0,r._)([(0,h.Cb)({type:String,json:{write:!0}})],be.prototype,"directionsStyleName",void 0),(0,r._)([(0,h.Cb)({type:String,json:{write:!0}})],be.prototype,"directionsTimeAttribute",void 0),(0,r._)([(0,h.Cb)({json:{write:!0}})],be.prototype,"findBestSequence",void 0),(0,r._)([(0,h.Cb)({json:{write:!0}})],be.prototype,"ignoreInvalidLocations",void 0),(0,r._)([(0,h.Cb)({type:String,json:{read:{source:"impedanceAttributeName"},write:{target:"impedanceAttributeName"}}})],be.prototype,"impedanceAttribute",void 0),(0,r._)([(0,h.Cb)({type:Number,json:{write:!0}})],be.prototype,"outputGeometryPrecision",void 0),(0,r._)([(0,de.J)(U.q$)],be.prototype,"outputGeometryPrecisionUnits",void 0),(0,r._)([(0,de.J)(U.no)],be.prototype,"outputLines",void 0),(0,r._)([(0,h.Cb)({type:he.Z,json:{write:!0}})],be.prototype,"outSpatialReference",void 0),(0,r._)([(0,h.Cb)({json:{write:!0}})],be.prototype,"pointBarriers",void 0),(0,r._)([(0,v.c)("pointBarriers")],be.prototype,"writePointBarriers",null),(0,r._)([(0,h.Cb)({json:{write:!0}})],be.prototype,"polygonBarriers",void 0),(0,r._)([(0,v.c)("polygonBarriers")],be.prototype,"writePolygonBarrier",null),(0,r._)([(0,h.Cb)({json:{write:!0}})],be.prototype,"polylineBarriers",void 0),(0,r._)([(0,v.c)("polylineBarriers")],be.prototype,"writePolylineBarrier",null),(0,r._)([(0,h.Cb)({json:{write:!0}})],be.prototype,"preserveFirstStop",void 0),(0,r._)([(0,h.Cb)({json:{write:!0}})],be.prototype,"preserveLastStop",void 0),(0,r._)([(0,h.Cb)({type:[String],json:{write:!0}})],be.prototype,"restrictionAttributes",void 0),(0,r._)([(0,de.J)(U.ip)],be.prototype,"restrictUTurns",void 0),(0,r._)([(0,h.Cb)({type:Boolean,json:{write:!0}})],be.prototype,"returnBarriers",void 0),(0,r._)([(0,h.Cb)({type:Boolean,json:{write:!0}})],be.prototype,"returnDirections",void 0),(0,r._)([(0,h.Cb)({type:Boolean,json:{write:!0}})],be.prototype,"returnPolygonBarriers",void 0),(0,r._)([(0,h.Cb)({type:Boolean,json:{write:!0}})],be.prototype,"returnPolylineBarriers",void 0),(0,r._)([(0,h.Cb)({type:Boolean,json:{write:!0}})],be.prototype,"returnRoutes",void 0),(0,r._)([(0,h.Cb)({type:Boolean,json:{write:!0}})],be.prototype,"returnStops",void 0),(0,r._)([(0,h.Cb)({type:Boolean,json:{write:!0}})],be.prototype,"returnZ",void 0),(0,r._)([(0,h.Cb)({type:Date,json:{type:Number,write:!0}})],be.prototype,"startTime",void 0),(0,r._)([(0,y.r)("startTime")],be.prototype,"readStartTime",null),(0,r._)([(0,v.c)("startTime")],be.prototype,"writeStartTime",null),(0,r._)([(0,h.Cb)({type:Boolean,json:{write:!0}})],be.prototype,"startTimeIsUTC",void 0),(0,r._)([(0,h.Cb)({json:{write:!0}})],be.prototype,"stops",void 0),(0,r._)([(0,v.c)("stops")],be.prototype,"writeStops",null),(0,r._)([(0,h.Cb)({json:{write:!0}})],be.prototype,"timeWindowsAreUTC",void 0),(0,r._)([(0,h.Cb)({type:oe.Z,json:{write:!0}})],be.prototype,"travelMode",void 0),(0,r._)([(0,h.Cb)({type:Boolean,json:{write:!0}})],be.prototype,"useHierarchy",void 0),(0,r._)([(0,h.Cb)({type:Boolean,json:{write:!0}})],be.prototype,"useTimeWindows",void 0),be=me=(0,r._)([(0,f.j)("esri.rest.support.RouteParameters")],be);const ye=be;var fe;let ve=fe=class extends I.wq{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.geometry=null,this.lateDuration=null,this.locationType=null,this.name=null,this.navLatency=null,this.objectId=null,this.popupTemplate=null,this.posAlong=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.violations=null,this.waitDuration=null,this.wait=null}readArriveTimeOffset(e,t){return H(t.attributes.ArriveTime,t.attributes.ArriveTimeUTC)}readCumulativeCosts(e,t){return $(t.attributes,"Cumul_")}readDepartTimeOffset(e,t){return H(t.attributes.DepartTime,t.attributes.DepartTimeUTC)}readServiceCosts(e,t){return $(t.attributes,"Attr_")}writeServiceCosts(e,t){if(!(0,p.Wi)(e)){t.attributes||(t.attributes={});for(const i in e)t.attributes[`Attr_${i}`]=e[i]}}writeTimeWindowEnd(e,t){(0,p.Wi)(e)||(t.attributes||(t.attributes={}),t.attributes.TimeWindowEnd=e.getTime())}writeTimeWindowStart(e,t){(0,p.Wi)(e)||(t.attributes||(t.attributes={}),t.attributes.TimeWindowStart=e.getTime())}readViolations(e,t){return $(t.attributes,"Violation_")}readWait(e,t){return $(t.attributes,"Wait_")}static fromPortalJSON(e){var t,i,r,s,o,a,l,u,d,c;return new fe({arriveCurbApproach:(0,p.pC)(e.attributes.ArrivalCurbApproach)?U.W7.fromJSON(e.attributes.ArrivalCurbApproach):null,arriveTime:(0,p.pC)(e.attributes.ArrivalTime)?new Date(e.attributes.ArrivalTime):null,arriveTimeOffset:e.attributes.ArrivalUTCOffset,cumulativeCosts:(0,p.pC)(e.attributes.CumulativeCosts)?JSON.parse(e.attributes.CumulativeCosts):null,cumulativeDistance:null!=(t=e.attributes.CumulativeMeters)?t:null,cumulativeDuration:null!=(i=e.attributes.CumulativeMinutes)?i:null,curbApproach:(0,p.pC)(e.attributes.CurbApproach)?U.W7.fromJSON(e.attributes.CurbApproach):null,departCurbApproach:(0,p.pC)(e.attributes.DepartureCurbApproach)?U.W7.fromJSON(e.attributes.DepartureCurbApproach):null,departTime:(0,p.pC)(e.attributes.DepartureTime)?new Date(e.attributes.DepartureTime):null,departTimeOffset:null!=(r=e.attributes.DepartureUTCOffset)?r:null,geometry:q.Z.fromJSON(e.geometry),lateDuration:null!=(s=e.attributes.LateMinutes)?s:null,locationType:(0,p.pC)(e.attributes.LocationType)?U.yP.fromJSON(e.attributes.LocationType):null,name:e.attributes.Name,objectId:e.attributes.__OBJECTID,popupTemplate:(0,p.pC)(e.popupInfo)?n.Z.fromJSON(e.popupInfo):null,routeName:e.attributes.RouteName,sequence:null!=(o=e.attributes.Sequence)?o:null,serviceCosts:(0,p.pC)(e.attributes.ServiceCosts)?JSON.parse(e.attributes.ServiceCosts):null,serviceDistance:null!=(a=e.attributes.ServiceMeters)?a:null,serviceDuration:null!=(l=e.attributes.ServiceMinutes)?l:null,status:(0,p.pC)(e.attributes.Status)?U.SS.fromJSON(e.attributes.Status):null,symbol:(0,p.pC)(e.symbol)?(0,V.i)(e.symbol):null,timeWindowEnd:(0,p.pC)(e.attributes.TimeWindowEnd)?new Date(e.attributes.TimeWindowEnd):null,timeWindowEndOffset:null!=(u=e.attributes.TimeWindowEndUTCOffset)?u:null,timeWindowStart:(0,p.pC)(e.attributes.TimeWindowStart)?new Date(e.attributes.TimeWindowStart):null,timeWindowStartOffset:null!=(d=e.attributes.TimeWindowStartUTCOffset)?d:null,waitDuration:null!=(c=e.attributes.WaitMinutes)?c:null})}clone(){return new fe((0,G.d9)({arriveCurbApproach:this.arriveCurbApproach,arriveTime:this.arriveTime,arriveTimeOffset:this.arriveTimeOffset,bearing:this.bearing,bearingTol:this.bearingTol,cumulativeCosts:this.cumulativeCosts,cumulativeDistance:this.cumulativeDistance,cumulativeTime:this.cumulativeDuration,curbApproach:this.curbApproach,departCurbApproach:this.departCurbApproach,departTime:this.departTime,departTimeOffset:this.departTimeOffset,distanceToNetworkInMeters:this.distanceToNetworkInMeters,geometry:this.geometry,lateDuration:this.lateDuration,locationType:this.locationType,name:this.name,navLatency:this.navLatency,objectId:this.objectId,popupTemplate:this.popupTemplate,posAlong:this.posAlong,routeName:this.routeName,serviceCosts:this.serviceCosts,serviceDistance:this.serviceDistance,serviceDuration:this.serviceDuration,sequence:this.sequence,sideOfEdge:this.sideOfEdge,snapX:this.snapX,snapY:this.snapY,snapZ:this.snapZ,sourceId:this.sourceId,sourceOid:this.sourceOid,status:this.status,symbol:this.symbol,timeWindowEnd:this.timeWindowEnd,timeWindowEndOffset:this.timeWindowEndOffset,timeWindowStart:this.timeWindowStart,timeWindowStartOffset:this.timeWindowStartOffset,waitDuration:this.waitDuration}))}toPortalJSON(){var e,t;return{geometry:(0,p.pC)(this.geometry)?this.geometry.toJSON():null,attributes:{__OBJECTID:(0,p.Wg)(this.objectId),ArrivalCurbApproach:(0,p.pC)(this.arriveCurbApproach)?U.W7.toJSON(this.arriveCurbApproach):null,ArrivalTime:(0,p.pC)(this.arriveTime)?this.arriveTime.getTime():null,ArrivalUTCOffset:this.arriveTimeOffset,CumulativeCosts:(0,p.pC)(this.cumulativeCosts)?JSON.stringify(this.cumulativeCosts):null,CumulativeMeters:this.cumulativeDistance,CumulativeMinutes:this.cumulativeDuration,CurbApproach:(0,p.pC)(this.curbApproach)?U.W7.toJSON(this.curbApproach):null,DepartureCurbApproach:(0,p.pC)(this.departCurbApproach)?U.W7.toJSON(this.departCurbApproach):null,DepartureTime:(0,p.pC)(this.departTime)?this.departTime.getTime():null,DepartureUTCOffset:this.departTimeOffset,LateMinutes:this.lateDuration,LocationType:(0,p.pC)(this.locationType)?U.yP.toJSON(this.locationType):null,Name:(0,p.Wg)(this.name),RouteName:(0,p.Wg)(this.routeName),Sequence:this.sequence,ServiceCosts:(0,p.pC)(this.serviceCosts)?JSON.stringify(this.serviceCosts):null,ServiceMeters:this.serviceDistance,ServiceMinutes:this.serviceDuration,Status:(0,p.pC)(this.status)?U.SS.toJSON(this.status):null,TimeWindowEnd:(0,p.pC)(this.timeWindowEnd)?this.timeWindowEnd.getTime():null,TimeWindowEndUTCOffset:null!=(e=this.timeWindowEndOffset)?e:this.arriveTimeOffset,TimeWindowStart:(0,p.pC)(this.timeWindowStart)?this.timeWindowStart.getTime():null,TimeWindowStartUTCOffset:null!=(t=this.timeWindowEndOffset)?t:this.arriveTimeOffset,WaitMinutes:this.waitDuration},symbol:(0,p.pC)(this.symbol)?this.symbol.toJSON():null,popupInfo:(0,p.pC)(this.popupTemplate)?this.popupTemplate.toJSON():null}}};ve.fields=[{name:"__OBJECTID",alias:"OBJECTID",type:"esriFieldTypeOID",editable:!1,nullable:!1,domain:null},{name:"ArrivalCurbApproach",alias:"Arrival Curb Approach",type:"esriFieldTypeInteger",editable:!0,nullable:!0,visible:!0,domain:{type:"codedValue",name:"esriNACurbApproachType",codedValues:[{name:"Either side",code:0},{name:"From the right",code:1},{name:"From the left",code:2},{name:"Depart in the same direction",code:3}]}},{name:"ArrivalTime",alias:"Arrival Time",type:"esriFieldTypeDate",length:36,editable:!0,nullable:!0,visible:!0},{name:"ArrivalUTCOffset",alias:"Arrival Time: Offset from UTC in Minutes",type:"esriFieldTypeInteger",editable:!0,nullable:!0,visible:!0},{name:"CumulativeCosts",alias:"Cumulative Costs",type:"esriFieldTypeString",length:1048576,editable:!0,nullable:!0,visible:!1,domain:null},{name:"CumulativeMeters",alias:"Cumulative Meters",type:"esriFieldTypeDouble",editable:!0,nullable:!0,visible:!0},{name:"CumulativeMinutes",alias:"Cumulative Minutes",type:"esriFieldTypeDouble",editable:!0,nullable:!0,visible:!0},{name:"CurbApproach",alias:"Curb Approach",type:"esriFieldTypeInteger",editable:!0,nullable:!0,visible:!1,domain:{type:"codedValue",name:"esriNACurbApproachType",codedValues:[{name:"Either side",code:0},{name:"From the right",code:1},{name:"From the left",code:2},{name:"Depart in the same direction",code:3}]}},{name:"DepartureCurbApproach",alias:"Departure Curb Approach",type:"esriFieldTypeInteger",editable:!0,nullable:!0,visible:!0,domain:{type:"codedValue",name:"esriNACurbApproachType",codedValues:[{name:"Either side",code:0},{name:"From the right",code:1},{name:"From the left",code:2},{name:"Depart in the same direction",code:3}]}},{name:"DepartureTime",alias:"Departure Time",type:"esriFieldTypeDate",length:36,editable:!0,nullable:!0,visible:!0},{name:"DepartureUTCOffset",alias:"Departure Time: Offset from UTC in Minutes",type:"esriFieldTypeInteger",editable:!0,nullable:!0,visible:!0},{name:"LateMinutes",alias:"Minutes Late",type:"esriFieldTypeDouble",editable:!0,nullable:!0,visible:!1},{name:"LocationType",alias:"Location Type",type:"esriFieldTypeInteger",editable:!0,nullable:!0,visible:!0,domain:{type:"codedValue",name:"esriNALocationType",codedValues:[{name:"Stop",code:0},{name:"Waypoint",code:1}]}},{name:"Name",alias:"Name",type:"esriFieldTypeString",length:255,editable:!0,nullable:!0,visible:!0},{name:"RouteName",alias:"Route Name",type:"esriFieldTypeString",length:255,editable:!0,nullable:!0,visible:!0},{name:"Sequence",alias:"Sequence",type:"esriFieldTypeInteger",editable:!0,nullable:!0,visible:!0},{name:"ServiceCosts",alias:"Service Costs",type:"esriFieldTypeString",length:1048576,editable:!0,nullable:!0,visible:!1,domain:null},{name:"ServiceMeters",alias:"Service Meters",type:"esriFieldTypeDouble",editable:!0,nullable:!0,visible:!1},{name:"ServiceMinutes",alias:"Service Minutes",type:"esriFieldTypeDouble",editable:!0,nullable:!0,visible:!1},{name:"Status",alias:"Status",type:"esriFieldTypeInteger",editable:!0,nullable:!0,visible:!0,domain:{type:"codedValue",name:"esriNAObjectStatus",codedValues:[{name:"OK",code:0},{name:"Not Located on Network",code:1},{name:"Network Unbuilt",code:2},{name:"Prohibited Street",code:3},{name:"Invalid Field Values",code:4},{name:"Cannot Reach",code:5},{name:"Time Window Violation",code:6}]}},{name:"TimeWindowEnd",alias:"Time Window End",type:"esriFieldTypeDate",length:36,editable:!0,nullable:!0,visible:!1},{name:"TimeWindowEndUTCOffset",alias:"Time Window End: Offset from UTC in Minutes",type:"esriFieldTypeInteger",editable:!0,nullable:!0,visible:!0},{name:"TimeWindowStart",alias:"Time Window Start",type:"esriFieldTypeDate",length:36,editable:!0,nullable:!0,visible:!1},{name:"TimeWindowStartUTCOffset",alias:"Time Window Start: Offset from UTC in Minutes",type:"esriFieldTypeInteger",editable:!0,nullable:!0,visible:!0},{name:"WaitMinutes",alias:"Minutes Early",type:"esriFieldTypeDouble",editable:!0,nullable:!0,visible:!1}],ve.popupInfo={title:"{Name}",fieldInfos:[{fieldName:"Name",label:"Name",isEditable:!0,tooltip:"",visible:!0,stringFieldOption:"textbox"},{fieldName:"RouteName",label:"Route Name",isEditable:!0,tooltip:"",visible:!0,stringFieldOption:"textbox"},{fieldName:"Sequence",label:"Sequence",isEditable:!1,tooltip:"",visible:!0,format:{places:0,digitSeparator:!0},stringFieldOption:"textbox"},{fieldName:"ArrivalTime",label:"Arrival Time",isEditable:!0,tooltip:"",visible:!0,format:{dateFormat:"shortDateShortTime24"},stringFieldOption:"textbox"},{fieldName:"ArrivalUTCOffset",label:"Arrival Time: Offset from UTC in Minutes",isEditable:!1,tooltip:"",visible:!0,format:{places:0,digitSeparator:!0},stringFieldOption:"textbox"},{fieldName:"DepartureTime",label:"Departure Time",isEditable:!0,tooltip:"",visible:!0,format:{dateFormat:"shortDateShortTime24"},stringFieldOption:"textbox"},{fieldName:"DepartureUTCOffset",label:"Departure Time: Offset from UTC in Minutes",isEditable:!1,tooltip:"",visible:!0,format:{places:0,digitSeparator:!0},stringFieldOption:"textbox"},{fieldName:"CurbApproach",label:"Curb Approach",isEditable:!0,tooltip:"",visible:!1,format:{places:0,digitSeparator:!0},stringFieldOption:"textbox"},{fieldName:"ArrivalCurbApproach",label:"Arrival Curb Approach",isEditable:!1,tooltip:"",visible:!0,format:{places:0,digitSeparator:!0},stringFieldOption:"textbox"},{fieldName:"DepartureCurbApproach",label:"Departure Curb Approach",isEditable:!1,tooltip:"",visible:!0,format:{places:0,digitSeparator:!0},stringFieldOption:"textbox"},{fieldName:"Status",label:"Status",isEditable:!1,tooltip:"",visible:!0,format:{places:0,digitSeparator:!0},stringFieldOption:"textbox"},{fieldName:"LocationType",label:"Location Type",isEditable:!1,tooltip:"",visible:!0,format:{places:0,digitSeparator:!0},stringFieldOption:"textbox"},{fieldName:"TimeWindowStart",label:"Time Window Start",isEditable:!0,tooltip:"",visible:!1,format:{dateFormat:"shortDateShortTime24"},stringFieldOption:"textbox"},{fieldName:"TimeWindowStartUTCOffset",label:"Time Window Start: Offset from UTC in Minutes",isEditable:!1,tooltip:"",visible:!1,format:{places:0,digitSeparator:!0},stringFieldOption:"textbox"},{fieldName:"TimeWindowEnd",label:"Time Window End",isEditable:!0,tooltip:"",visible:!1,format:{dateFormat:"shortDateShortTime24"},stringFieldOption:"textbox"},{fieldName:"TimeWindowEndUTCOffset",label:"Time Window End: Offset from UTC in Minutes",isEditable:!1,tooltip:"",visible:!1,format:{places:0,digitSeparator:!0},stringFieldOption:"textbox"},{fieldName:"ServiceMinutes",label:"Service Minutes",isEditable:!0,tooltip:"",visible:!1,format:{places:2,digitSeparator:!0},stringFieldOption:"textbox"},{fieldName:"ServiceMeters",label:"Service Meters",isEditable:!0,tooltip:"",visible:!1,format:{places:2,digitSeparator:!0},stringFieldOption:"textbox"},{fieldName:"ServiceCosts",label:"Service Costs",isEditable:!0,tooltip:"",visible:!1,stringFieldOption:"textbox"},{fieldName:"CumulativeMinutes",label:"Cumulative Minutes",isEditable:!1,tooltip:"",visible:!0,format:{places:2,digitSeparator:!0},stringFieldOption:"textbox"},{fieldName:"CumulativeMeters",label:"Cumulative Meters",isEditable:!1,tooltip:"",visible:!0,format:{places:2,digitSeparator:!0},stringFieldOption:"textbox"},{fieldName:"CumulativeCosts",label:"Cumulative Costs",isEditable:!0,tooltip:"",visible:!1,stringFieldOption:"textbox"},{fieldName:"LateMinutes",label:"Minutes Late",isEditable:!1,tooltip:"",visible:!1,format:{places:2,digitSeparator:!0},stringFieldOption:"textbox"},{fieldName:"WaitMinutes",label:"Minutes Early",isEditable:!1,tooltip:"",visible:!1,format:{places:2,digitSeparator:!0},stringFieldOption:"textbox"}],description:null,showAttachments:!1,mediaInfos:[]},(0,r._)([(0,h.Cb)({type:U.W7.apiValues,json:{read:{source:"attributes.ArrivalCurbApproach",reader:U.W7.read}}})],ve.prototype,"arriveCurbApproach",void 0),(0,r._)([(0,h.Cb)({type:Date,json:{read:{source:"attributes.ArriveTimeUTC"}}})],ve.prototype,"arriveTime",void 0),(0,r._)([(0,h.Cb)()],ve.prototype,"arriveTimeOffset",void 0),(0,r._)([(0,y.r)("arriveTimeOffset",["attributes.ArriveTime","attributes.ArriveTimeUTC"])],ve.prototype,"readArriveTimeOffset",null),(0,r._)([(0,h.Cb)({json:{name:"attributes.Bearing",read:!1,write:!0}})],ve.prototype,"bearing",void 0),(0,r._)([(0,h.Cb)({json:{name:"attributes.BearingTol",read:!1,write:!0}})],ve.prototype,"bearingTol",void 0),(0,r._)([(0,h.Cb)()],ve.prototype,"cumulativeCosts",void 0),(0,r._)([(0,y.r)("cumulativeCosts",["attributes"])],ve.prototype,"readCumulativeCosts",null),(0,r._)([(0,h.Cb)({json:{read:!1}})],ve.prototype,"cumulativeDistance",void 0),(0,r._)([(0,h.Cb)({json:{read:!1}})],ve.prototype,"cumulativeDuration",void 0),(0,r._)([(0,h.Cb)({type:U.W7.apiValues,json:{name:"attributes.CurbApproach",read:{reader:U.W7.read},write:{writer:U.W7.write}}})],ve.prototype,"curbApproach",void 0),(0,r._)([(0,h.Cb)({type:U.W7.apiValues,json:{read:{source:"attributes.DepartCurbApproach",reader:U.W7.read}}})],ve.prototype,"departCurbApproach",void 0),(0,r._)([(0,h.Cb)({type:Date,json:{read:{source:"attributes.DepartTimeUTC"}}})],ve.prototype,"departTime",void 0),(0,r._)([(0,h.Cb)()],ve.prototype,"departTimeOffset",void 0),(0,r._)([(0,y.r)("departTimeOffset",["attributes.DepartTime","attributes.DepartTimeUTC"])],ve.prototype,"readDepartTimeOffset",null),(0,r._)([(0,h.Cb)({json:{read:{source:"attributes.DistanceToNetworkInMeters"}}})],ve.prototype,"distanceToNetworkInMeters",void 0),(0,r._)([(0,h.Cb)({type:q.Z,json:{write:!0}})],ve.prototype,"geometry",void 0),(0,r._)([(0,h.Cb)({json:{name:"attributes.LateMinutes",read:!1}})],ve.prototype,"lateDuration",void 0),(0,r._)([(0,h.Cb)({type:U.yP.apiValues,json:{name:"attributes.LocationType",read:{reader:U.yP.read},write:{writer:U.yP.write}}})],ve.prototype,"locationType",void 0),(0,r._)([(0,h.Cb)({json:{name:"attributes.Name",write:!0}})],ve.prototype,"name",void 0),(0,r._)([(0,h.Cb)({json:{read:{source:"attributes.NavLatency"}}})],ve.prototype,"navLatency",void 0),(0,r._)([(0,h.Cb)({json:{name:"attributes.ObjectID",write:!0}})],ve.prototype,"objectId",void 0),(0,r._)([(0,h.Cb)({type:n.Z,json:{read:!1}})],ve.prototype,"popupTemplate",void 0),(0,r._)([(0,h.Cb)({json:{read:{source:"attributes.PosAlong"}}})],ve.prototype,"posAlong",void 0),(0,r._)([(0,h.Cb)({json:{name:"attributes.RouteName",write:!0}})],ve.prototype,"routeName",void 0),(0,r._)([(0,h.Cb)()],ve.prototype,"serviceCosts",void 0),(0,r._)([(0,y.r)("serviceCosts",["attributes"])],ve.prototype,"readServiceCosts",null),(0,r._)([(0,v.c)("serviceCosts")],ve.prototype,"writeServiceCosts",null),(0,r._)([(0,h.Cb)({json:{read:!1}})],ve.prototype,"serviceDistance",void 0),(0,r._)([(0,h.Cb)({json:{read:!1}})],ve.prototype,"serviceDuration",void 0),(0,r._)([(0,h.Cb)({json:{name:"attributes.Sequence",write:!0}})],ve.prototype,"sequence",void 0),(0,r._)([(0,h.Cb)({type:U.BW.apiValues,json:{read:{source:"attributes.SideOfEdge",reader:U.BW.read}}})],ve.prototype,"sideOfEdge",void 0),(0,r._)([(0,h.Cb)({json:{read:{source:"attributes.SnapX"}}})],ve.prototype,"snapX",void 0),(0,r._)([(0,h.Cb)({json:{read:{source:"attributes.SnapY"}}})],ve.prototype,"snapY",void 0),(0,r._)([(0,h.Cb)({json:{read:{source:"attributes.SnapZ"}}})],ve.prototype,"snapZ",void 0),(0,r._)([(0,h.Cb)({json:{read:{source:"attributes.SourceID"}}})],ve.prototype,"sourceId",void 0),(0,r._)([(0,h.Cb)({json:{read:{source:"attributes.SourceOID"}}})],ve.prototype,"sourceOid",void 0),(0,r._)([(0,h.Cb)({type:U.SS.apiValues,json:{read:{source:"attributes.Status",reader:U.SS.read}}})],ve.prototype,"status",void 0),(0,r._)([(0,h.Cb)({types:N.LB,json:{read:!1}})],ve.prototype,"symbol",void 0),(0,r._)([(0,h.Cb)({type:Date,json:{name:"attributes.TimeWindowEnd"}})],ve.prototype,"timeWindowEnd",void 0),(0,r._)([(0,v.c)("timeWindowEnd")],ve.prototype,"writeTimeWindowEnd",null),(0,r._)([(0,h.Cb)({json:{read:!1}})],ve.prototype,"timeWindowEndOffset",void 0),(0,r._)([(0,h.Cb)({type:Date,json:{name:"attributes.TimeWindowStart"}})],ve.prototype,"timeWindowStart",void 0),(0,r._)([(0,v.c)("timeWindowStart")],ve.prototype,"writeTimeWindowStart",null),(0,r._)([(0,h.Cb)({json:{read:!1}})],ve.prototype,"timeWindowStartOffset",void 0),(0,r._)([(0,h.Cb)()],ve.prototype,"violations",void 0),(0,r._)([(0,y.r)("violations",["attributes"])],ve.prototype,"readViolations",null),(0,r._)([(0,h.Cb)({json:{read:!1}})],ve.prototype,"waitDuration",void 0),(0,r._)([(0,h.Cb)()],ve.prototype,"wait",void 0),(0,r._)([(0,y.r)("wait",["attributes"])],ve.prototype,"readWait",null),ve=fe=(0,r._)([(0,f.j)("esri.layers.support.Stop")],ve);const ge=ve;var Ce=i(65091);function Te(e){return e.length?e:null}function Se(e){return"layers"in e}function _e(e,t){switch(t){case"seconds":return e/60;case"hours":return 60*e;case"days":return 60*e*24;default:return e}}function we(e,t){return"decimal-degrees"===t||"points"===t?e:(0,m.En)(e,t,"meters")}const Oe=l.Z.ofType(J),Ne=l.Z.ofType(k),Ie=l.Z.ofType(Y),xe=l.Z.ofType(te),Ee=l.Z.ofType(se),De=l.Z.ofType(ge);let Fe=class extends((0,S.h)((0,O.M)((0,_.q)((0,w.I)((0,d.R)(T.Z)))))){constructor(...e){super(...e),this._featureCollection=null,this._type="Feature Collection",this.defaultSymbols=new A,this.directionLines=null,this.directionPoints=null,this.featureCollectionType="route",this.legendEnabled=!1,this.maxScale=0,this.minScale=0,this.pointBarriers=new Ie,this.polygonBarriers=new xe,this.polylineBarriers=new Ee,this.routeInfo=null,this.spatialReference=he.Z.WGS84,this.stops=new De,this.title="Route",this.type="route"}writeFeatureCollectionWebmap(e,t){const i=[this._writePolygonBarriers(),this._writePolylineBarriers(),this._writePointBarriers(),this._writeRouteInfo(),this._writeDirectionLines(),this._writeDirectionPoints(),this._writeStops()].filter((e=>!!e)),r=i.map(((e,t)=>t));(0,c.RB)("featureCollection.layers",i,t),t.opacity=this.opacity,t.visibility=this.visible,t.visibleLayers=r}readDirectionLines(e,t){return this._getNetworkFeatures(t,"DirectionLines",(e=>J.fromPortalJSON(e)))}readDirectionPoints(e,t){return this._getNetworkFeatures(t,"DirectionPoints",(e=>k.fromPortalJSON(e)))}get fullExtent(){if((0,p.pC)(this.routeInfo)&&(0,p.pC)(this.routeInfo.geometry))return this.routeInfo.geometry.extent;if(this.stops.length>1){const{spatialReference:e}=this.stops[0],t=new Ce.Z({spatialReference:e}),i=this.stops.toArray().map((e=>e.geometry));for(const e of i)(0,p.pC)(e)&&t.addPoint(e);return t.extent}return new g.Z({xmin:-180,ymin:-90,xmax:180,ymax:90,spatialReference:he.Z.WGS84})}readMaxScale(e,t){var i;const r=(Se(t)?t.layers:t.featureCollection.layers).find((e=>(0,p.pC)(e.layerDefinition.maxScale)));return null!=(i=null==r?void 0:r.layerDefinition.maxScale)?i:0}readMinScale(e,t){var i;const r=(Se(t)?t.layers:t.featureCollection.layers).find((e=>(0,p.pC)(e.layerDefinition.minScale)));return null!=(i=null==r?void 0:r.layerDefinition.minScale)?i:0}readPointBarriers(e,t){return this._getNetworkFeatures(t,"Barriers",(e=>Y.fromPortalJSON(e)))}readPolygonBarriers(e,t){return this._getNetworkFeatures(t,"PolygonBarriers",(e=>te.fromPortalJSON(e)))}readPolylineBarriers(e,t){return this._getNetworkFeatures(t,"PolylineBarriers",(e=>se.fromPortalJSON(e)))}readRouteInfo(e,t){const i=this._getNetworkFeatures(t,"RouteInfo",(e=>pe.fromPortalJSON(e)));return i.length>0?i.getItemAt(0):null}get routeServiceUrl(){var e,t,i,r;return null!=(e=this.portalItem)&&e.id&&null!=(t=null==(i=this.portalItem.portal.helperServices)||null==(r=i.route)?void 0:r.url)?t:s.Z.routeServiceUrl}readSpatialReference(e,t){var i,r;const s=Se(t)?t.layers:t.featureCollection.layers;if(!s.length)return he.Z.WGS84;const{layerDefinition:o}=s[0],n=null!=(i=null!=(r=o.spatialReference)?r:o.extent.spatialReference)?i:C.Zn;return he.Z.fromJSON(n)}readStops(e,t){return this._getNetworkFeatures(t,"Stops",(e=>ge.fromPortalJSON(e)),(e=>this._setStopSymbol(e)))}load(e){return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Feature Collection"]},e)),Promise.resolve(this)}async solve(e,t){var i,r,s,o;const n=null!=(i=null==e?void 0:e.stops)?i:this.stops,a=null!=(r=null==e?void 0:e.pointBarriers)?r:Te(this.pointBarriers),d=null!=(s=null==e?void 0:e.polylineBarriers)?s:Te(this.polylineBarriers),c=null!=(o=null==e?void 0:e.polygonBarriers)?o:Te(this.polygonBarriers);if((0,p.Wi)(n))throw new u.Z("routelayer:undefined-stops","the route layer must have stops defined in the route parameters.");if((function(e){return"esri.rest.support.FeatureSet"===e.declaredClass}(n)||function(e){return"esri.rest.support.NetworkFeatureSet"===e.declaredClass}(n))&&n.features.length<2||l.Z.isCollection(n)&&n.length<2)throw new u.Z("routelayer:insufficent-stops","the route layer must have two or more stops to solve a route.");const m=await(0,M.bI)(this.routeServiceUrl,null==e?void 0:e.apiKey,t),h={startTime:new Date},b={directionsOutputType:"featuresets",ignoreInvalidLocations:!0,pointBarriers:a,polylineBarriers:d,polygonBarriers:c,preserveFirstStop:!0,preserveLastStop:!0,returnBarriers:!!a,returnDirections:!0,returnPolygonBarriers:!!c,returnPolylineBarriers:!!d,returnRoutes:!0,returnStops:!0,stops:n},y=e?ye.from(e):new ye;for(const e in h)null==y[e]&&(y[e]=h[e]);y.set(b);const f=await(0,L.F)(this.routeServiceUrl,y,t),v=this._toRouteLayerSolution(f);return function(e,t,i){var r,s,o,n,a,l,d,c,m,h,b;const y=t.networkDataset.networkAttributes.filter((e=>"esriNAUTCost"===e.usageType)),f=t.supportedTravelModes.find((e=>e.id===t.defaultTravelMode)),v=null!=(r=i.travelMode)?r:f,{timeAttributeName:g,distanceAttributeName:C}=v,T=y.find((e=>e.name===g)),S=y.find((e=>e.name===C)),_=null!=(s=null!=(o=null==(n=i.travelMode)?void 0:n.impedanceAttributeName)?o:i.impedanceAttribute)?s:t.impedance,w=U.hB.fromJSON(null==T?void 0:T.units),O=U.GX.fromJSON(null==S?void 0:S.units);if(!w||!O)throw new u.Z("routelayer:unknown-impedance-units","the units of either the distance or time impedance are unknown");const N=null!=(a=i.directionsLanguage)?a:t.directionsLanguage,I=null!=(l=null!=(d=i.accumulateAttributes)?d:t.accumulateAttributeNames)?l:[],x=new Set(y.filter((({name:e})=>e===g||e===C||e===_||I.includes(e))).map((({name:e})=>e))),E=e=>{for(const t in e)x.has(t)||delete e[t]};for(const t of e.pointBarriers){var D;(0,p.pC)(t.costs)&&(t.addedCost=null!=(D=t.costs[_])?D:0,E(t.costs))}for(const t of e.polygonBarriers){var F;(0,p.pC)(t.costs)&&(t.scaleFactor=null!=(F=t.costs[_])?F:1,E(t.costs))}for(const t of e.polylineBarriers){var B;(0,p.pC)(t.costs)&&(t.scaleFactor=null!=(B=t.costs[_])?B:1,E(t.costs))}const{routeInfo:A}=e,{findBestSequence:j,preserveFirstStop:M,preserveLastStop:L,startTimeIsUTC:P,timeWindowsAreUTC:V}=i;A.analysisSettings=new ae({accumulateAttributes:I,directionsLanguage:N,findBestSequence:j,preserveFirstStop:M,preserveLastStop:L,startTimeIsUTC:P,timeWindowsAreUTC:V,travelMode:v}),A.totalDuration=_e(null!=(c=A.totalCosts[g])?c:0,w),A.totalDistance=we(null!=(m=A.totalCosts[C])?m:0,O),A.totalLateDuration=_e(null!=(h=A.totalViolations[g])?h:0,w),A.totalWaitDuration=_e(null!=(b=A.totalWait[g])?b:0,w),(0,p.pC)(A.totalCosts)&&E(A.totalCosts),(0,p.pC)(A.totalViolations)&&E(A.totalViolations),(0,p.pC)(A.totalWait)&&E(A.totalWait);for(const t of e.stops){var R,J,Z,q,W,k;(0,p.pC)(t.serviceCosts)&&(t.serviceDuration=_e(null!=(R=t.serviceCosts[g])?R:0,w),t.serviceDistance=we(null!=(J=t.serviceCosts[C])?J:0,O),E(t.serviceCosts)),(0,p.pC)(t.cumulativeCosts)&&(t.cumulativeDuration=_e(null!=(Z=t.cumulativeCosts[g])?Z:0,w),t.cumulativeDistance=we(null!=(q=t.cumulativeCosts[C])?q:0,O),E(t.cumulativeCosts)),(0,p.pC)(t.violations)&&(t.lateDuration=_e(null!=(W=t.violations[g])?W:0,w),E(t.violations)),(0,p.pC)(t.wait)&&(t.waitDuration=_e(null!=(k=t.wait[g])?k:0,w),E(t.wait))}}(v,m,y),v}update(e){const{stops:t,directionLines:i,directionPoints:r,pointBarriers:s,polylineBarriers:o,polygonBarriers:n,routeInfo:a}=e;this.set({stops:t,pointBarriers:s,polylineBarriers:o,polygonBarriers:n}),this._set("directionLines",i),this._set("directionPoints",r),this._set("routeInfo",a)}_getLayerDefinition(){return{capabilities:"Query,Update,Editing",extent:this.fullExtent.toJSON(),hasM:!1,hasZ:!1,maxScale:this.maxScale,minScale:this.minScale,objectIdField:"__OBJECTID",spatialReference:this.spatialReference.toJSON(),type:"Feature Layer",typeIdField:""}}_getNetworkFeatures(e,t,i,r){const s=(Se(e)?e.layers:e.featureCollection.layers).find((e=>e.layerDefinition.name===t));if((0,p.Wi)(s))return new l.Z;const{layerDefinition:u,popupInfo:d,featureSet:c}=s,m=u.drawingInfo.renderer,{features:h}=c,b=m&&(0,a.a)(m),y=h.map((e=>{var r;const s=i(e),{attributes:a}=e,l=new o.Z({attributes:a});return null!=s.symbol||(s.symbol=null!=(r=null==b?void 0:b.getSymbol(l))?r:this._getNetworkSymbol(t)),null!=s.popupTemplate||(s.popupTemplate=d&&n.Z.fromJSON(d)),s}));return r&&y.some((e=>!e.symbol))&&r(y),new l.Z(y)}_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}}_setStopSymbol(e){if(!e)return;if(e.length<2){for(const t of e)t.symbol=this.defaultSymbols.invalidStop;return}const t=e.map((e=>e.sequence)).filter((e=>(0,p.pC)(e))),i=Math.min(...t),r=Math.max(...t);for(const t of e)t.sequence!==i?t.sequence!==r?"ok"===t.status||"not-located-on-closest"===t.status?"waypoint"!==t.locationType?"break"!==t.locationType?t.symbol=this.defaultSymbols.middleStop:t.symbol=this.defaultSymbols.breakStop:t.symbol=this.defaultSymbols.waypointStop:t.symbol=this.defaultSymbols.invalidStop:t.symbol=this.defaultSymbols.lastStop:t.symbol=this.defaultSymbols.firstStop}_toRouteLayerSolution(e){var t,i,r;const s=e.routeResults[0].stops.map((e=>ge.fromJSON(e.toJSON())));this._setStopSymbol(s);const o=new De(s),n=new xe(null==(t=e.polygonBarriers)?void 0:t.map((e=>{const t=te.fromJSON(e.toJSON());return t.symbol=this.defaultSymbols.polygonBarriers,t}))),a=new Ee(null==(i=e.polylineBarriers)?void 0:i.map((e=>{const t=se.fromJSON(e.toJSON());return t.symbol=this.defaultSymbols.polylineBarriers,t}))),l=new Ie(null==(r=e.pointBarriers)?void 0:r.map((e=>{const t=Y.fromJSON(e.toJSON());return t.symbol=this.defaultSymbols.pointBarriers,t}))),u=pe.fromJSON(e.routeResults[0].route.toJSON());u.symbol=this.defaultSymbols.routeInfo;const p=new Ne(e.routeResults[0].directionPoints.features.map((e=>{const t=k.fromJSON(e.toJSON());return t.symbol=this.defaultSymbols.directionPoints,t})));return{directionLines:new Oe(e.routeResults[0].directionLines.features.map((e=>{const t=J.fromJSON(e.toJSON());return t.symbol=this.defaultSymbols.directionLines,t}))),directionPoints:p,pointBarriers:l,polygonBarriers:n,polylineBarriers:a,routeInfo:u,stops:o}}_writeDirectionLines(){return(0,p.Wi)(this.directionLines)||!this.directionLines.length?null:{featureSet:{features:this.directionLines.toArray().map((e=>e.toPortalJSON())),geometryType:"esriGeometryPolyline"},layerDefinition:{...this._getLayerDefinition(),drawingInfo:{renderer:{type:"simple",symbol:this.defaultSymbols.directionLines.toJSON()}},fields:J.fields,geometryType:"esriGeometryPolyline",name:"DirectionLines",title:"Direction Lines"},popupInfo:J.popupInfo}}_writeDirectionPoints(){return(0,p.Wi)(this.directionPoints)||!this.directionPoints.length?null:{featureSet:{features:this.directionPoints.toArray().map((e=>e.toPortalJSON())),geometryType:"esriGeometryPoint"},layerDefinition:{...this._getLayerDefinition(),drawingInfo:{renderer:{type:"simple",symbol:this.defaultSymbols.directionPoints.toJSON()}},fields:k.fields,geometryType:"esriGeometryPoint",name:"DirectionPoints",title:"Direction Points"},popupInfo:k.popupInfo}}_writePointBarriers(){return(0,p.Wi)(this.pointBarriers)||!this.pointBarriers.length?null:{featureSet:{features:this.pointBarriers.toArray().map((e=>e.toPortalJSON())),geometryType:"esriGeometryPoint"},layerDefinition:{...this._getLayerDefinition(),drawingInfo:{renderer:{type:"simple",symbol:this.defaultSymbols.pointBarriers.toJSON()}},fields:Y.fields,geometryType:"esriGeometryPoint",name:"Barrier",title:"Point Barrier"},popupInfo:Y.popupInfo}}_writePolygonBarriers(){return(0,p.Wi)(this.polygonBarriers)||!this.polygonBarriers.length?null:{featureSet:{features:this.polygonBarriers.toArray().map((e=>e.toPortalJSON())),geometryType:"esriGeometryPolygon"},layerDefinition:{...this._getLayerDefinition(),drawingInfo:{renderer:{type:"simple",symbol:this.defaultSymbols.polygonBarriers.toJSON()}},fields:te.fields,geometryType:"esriGeometryPolygon",name:"PolygonBarriers",title:"Polygon Barriers"},popupInfo:te.popupInfo}}_writePolylineBarriers(){return(0,p.Wi)(this.polylineBarriers)||!this.polylineBarriers.length?null:{featureSet:{features:this.polylineBarriers.toArray().map((e=>e.toPortalJSON())),geometryType:"esriGeometryPolyline"},layerDefinition:{...this._getLayerDefinition(),drawingInfo:{renderer:{type:"simple",symbol:this.defaultSymbols.polylineBarriers.toJSON()}},fields:se.fields,geometryType:"esriGeometryPolyline",name:"PolylineBarriers",title:"Line Barriers"},popupInfo:se.popupInfo}}_writeRouteInfo(){return(0,p.Wi)(this.routeInfo)?null:{featureSet:{features:[this.routeInfo.toPortalJSON()],geometryType:"esriGeometryPolyline"},layerDefinition:{...this._getLayerDefinition(),drawingInfo:{renderer:{type:"simple",symbol:this.defaultSymbols.routeInfo.toJSON()}},fields:pe.fields,geometryType:"esriGeometryPolyline",name:"RouteInfo",title:"Route Details"},popupInfo:pe.popupInfo}}_writeStops(){return(0,p.Wi)(this.stops)||!this.stops.length?null:{featureSet:{features:this.stops.toArray().map((e=>e.toPortalJSON())),geometryType:"esriGeometryPoint"},layerDefinition:{...this._getLayerDefinition(),drawingInfo:{renderer:{type:"uniqueValue",field1:"Sequence",defaultSymbol:this.defaultSymbols.middleStop.toJSON(),uniqueValueInfos:[{value:"1",symbol:this.defaultSymbols.firstStop.toJSON(),label:"First Stop"},{value:`${this.stops.length}`,symbol:this.defaultSymbols.lastStop.toJSON(),label:"Last Stop"}]}},fields:ge.fields,geometryType:"esriGeometryPoint",name:"Stops",title:"Stops"},popupInfo:ge.popupInfo}}};(0,r._)([(0,h.Cb)({readOnly:!0,json:{read:!1,origins:{"web-map":{write:{overridePolicy(){return{allowNull:!0,ignoreOrigin:null==this.portalItem}}}}}}})],Fe.prototype,"_featureCollection",void 0),(0,r._)([(0,v.c)("web-map","_featureCollection")],Fe.prototype,"writeFeatureCollectionWebmap",null),(0,r._)([(0,h.Cb)({readOnly:!0,json:{read:!1,origins:{"web-map":{write:{target:"type",overridePolicy(){return{ignoreOrigin:null!=this.portalItem}}}}}}})],Fe.prototype,"_type",void 0),(0,r._)([(0,h.Cb)({nonNullable:!0,type:A})],Fe.prototype,"defaultSymbols",void 0),(0,r._)([(0,h.Cb)({readOnly:!0})],Fe.prototype,"directionLines",void 0),(0,r._)([(0,y.r)(["web-map","portal-item"],"directionLines",["layers","featureCollection.layers"])],Fe.prototype,"readDirectionLines",null),(0,r._)([(0,h.Cb)({readOnly:!0})],Fe.prototype,"directionPoints",void 0),(0,r._)([(0,y.r)(["web-map","portal-item"],"directionPoints",["layers","featureCollection.layers"])],Fe.prototype,"readDirectionPoints",null),(0,r._)([(0,h.Cb)({readOnly:!0,json:{read:!1,origins:{"web-map":{write:{ignoreOrigin:!0}}}}})],Fe.prototype,"featureCollectionType",void 0),(0,r._)([(0,h.Cb)({readOnly:!0})],Fe.prototype,"fullExtent",null),(0,r._)([(0,h.Cb)({json:{origins:{"web-map":{name:"featureCollection.showLegend"}},write:!0}})],Fe.prototype,"legendEnabled",void 0),(0,r._)([(0,h.Cb)({type:["show","hide"]})],Fe.prototype,"listMode",void 0),(0,r._)([(0,h.Cb)({type:Number,nonNullable:!0,json:{write:!1}})],Fe.prototype,"maxScale",void 0),(0,r._)([(0,y.r)(["web-map","portal-item"],"maxScale",["layers","featureCollection.layers"])],Fe.prototype,"readMaxScale",null),(0,r._)([(0,h.Cb)({type:Number,nonNullable:!0,json:{write:!1}})],Fe.prototype,"minScale",void 0),(0,r._)([(0,y.r)(["web-map","portal-item"],"minScale",["layers","featureCollection.layers"])],Fe.prototype,"readMinScale",null),(0,r._)([(0,h.Cb)({type:["ArcGISFeatureLayer"],value:"ArcGISFeatureLayer"})],Fe.prototype,"operationalLayerType",void 0),(0,r._)([(0,h.Cb)({nonNullable:!0,type:l.Z.ofType(Y)})],Fe.prototype,"pointBarriers",void 0),(0,r._)([(0,y.r)(["web-map","portal-item"],"pointBarriers",["layers","featureCollection.layers"])],Fe.prototype,"readPointBarriers",null),(0,r._)([(0,h.Cb)({nonNullable:!0,type:l.Z.ofType(te)})],Fe.prototype,"polygonBarriers",void 0),(0,r._)([(0,y.r)(["web-map","portal-item"],"polygonBarriers",["layers","featureCollection.layers"])],Fe.prototype,"readPolygonBarriers",null),(0,r._)([(0,h.Cb)({nonNullable:!0,type:l.Z.ofType(se)})],Fe.prototype,"polylineBarriers",void 0),(0,r._)([(0,y.r)(["web-map","portal-item"],"polylineBarriers",["layers","featureCollection.layers"])],Fe.prototype,"readPolylineBarriers",null),(0,r._)([(0,h.Cb)({readOnly:!0})],Fe.prototype,"routeInfo",void 0),(0,r._)([(0,y.r)(["web-map","portal-item"],"routeInfo",["layers","featureCollection.layers"])],Fe.prototype,"readRouteInfo",null),(0,r._)([(0,h.Cb)({nonNullable:!0})],Fe.prototype,"routeServiceUrl",null),(0,r._)([(0,h.Cb)({type:he.Z})],Fe.prototype,"spatialReference",void 0),(0,r._)([(0,y.r)(["web-map","portal-item"],"spatialReference",["layers","featureCollection.layers"])],Fe.prototype,"readSpatialReference",null),(0,r._)([(0,h.Cb)({nonNullable:!0,type:l.Z.ofType(ge)})],Fe.prototype,"stops",void 0),(0,r._)([(0,y.r)(["web-map","portal-item"],"stops",["layers","featureCollection.layers"])],Fe.prototype,"readStops",null),(0,r._)([(0,h.Cb)()],Fe.prototype,"title",void 0),(0,r._)([(0,h.Cb)({readOnly:!0,json:{read:!1}})],Fe.prototype,"type",void 0),Fe=(0,r._)([(0,f.j)("esri.layers.RouteLayer")],Fe);const Be=Fe},16859:(e,t,i)=>{i.d(t,{I:()=>C});var r=i(43697),s=i(40330),o=i(3172),n=i(66643),a=i(20102),l=i(92604),u=i(70586),p=i(95330),d=i(17452),c=i(5600),m=(i(67676),i(80442),i(75215),i(71715)),h=i(52011),b=i(30556),y=i(65587),f=i(15235),v=i(86082);const g=l.Z.getLogger("esri.layers.mixins.PortalLayer"),C=e=>{let t=class extends e{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0}destroy(){var e;null==(e=this.portalItem)||e.destroy(),this.portalItem=null}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,i){if(t.itemId)return new f.default({id:t.itemId,portal:i&&i.portal})}writePortalItem(e,t){e&&e.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem&&this.portalItem.id)try{const r=await i.e(8062).then(i.bind(i,18062));return(0,p.k_)(t),await r.load({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData},t)}catch(e){throw(0,p.D_)(e)||g.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,p.r9)(e),!0))))}async _fetchUserHasEditingPrivileges(e){const t=this.url?null==s.id?void 0:s.id.findCredential(this.url):null;if(!t)return!0;const i=T.credential===t?T.user:await this._fetchEditingUser(e);return T.credential=t,T.user=i,(0,u.Wi)(i)||null==i.privileges||i.privileges.includes("features:user:edit")}async _fetchEditingUser(e){var t,i;const r=null==(t=this.portalItem)||null==(i=t.portal)?void 0:i.user;if(r)return r;const a=s.id.findServerInfo(this.url);if(null==a||!a.owningSystemUrl)return null;const l=`${a.owningSystemUrl}/sharing/rest`,p=y.Z.getDefault();if(p&&p.loaded&&(0,d.Fv)(p.restUrl)===(0,d.Fv)(l))return p.user;const c=`${l}/community/self`,m=(0,u.pC)(e)?e.signal:null,h=await(0,n.q6)((0,o.default)(c,{authMode:"no-prompt",query:{f:"json"},signal:m}));return h.ok?v.default.fromJSON(h.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const i=t&&t.portal,r=this.portalItem&&this.portalItem.id&&(this.portalItem.portal||y.Z.getDefault());return i&&r&&!(0,d.tm)(r.restUrl,i.restUrl)?(t.messages&&t.messages.push(new a.Z("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save the scene, set the layer.portalItem to null or save the scene to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,r._)([(0,c.Cb)({type:f.default})],t.prototype,"portalItem",null),(0,r._)([(0,m.r)("web-document","portalItem",["itemId"])],t.prototype,"readPortalItem",null),(0,r._)([(0,b.c)("web-document","portalItem",{itemId:{type:String}})],t.prototype,"writePortalItem",null),(0,r._)([(0,c.Cb)()],t.prototype,"resourceReferences",void 0),(0,r._)([(0,c.Cb)({readOnly:!0})],t.prototype,"userHasEditingPrivileges",void 0),t=(0,r._)([(0,h.j)("esri.layers.mixins.PortalLayer")],t),t},T={credential:null,user:null}},1231:(e,t,i)=>{i.d(t,{Z:()=>y});var r,s=i(43697),o=i(35454),n=i(96674),a=i(5600),l=(i(67676),i(80442),i(75215)),u=i(36030),p=i(71715),d=i(52011),c=i(72729),m=i(86719);const h=new o.X({binary:"binary",coordinate:"coordinate",countOrAmount:"count-or-amount",dateAndTime:"date-and-time",description:"description",locationOrPlaceName:"location-or-place-name",measurement:"measurement",nameOrTitle:"name-or-title",none:"none",orderedOrRanked:"ordered-or-ranked",percentageOrRatio:"percentage-or-ratio",typeOrCategory:"type-or-category",uniqueIdentifier:"unique-identifier"});let b=r=class extends n.wq{constructor(e){super(e),this.alias=null,this.defaultValue=void 0,this.description=null,this.domain=null,this.editable=!0,this.length=-1,this.name=null,this.nullable=!0,this.type=null,this.valueType=null}readDescription(e,{description:t}){let i;try{i=JSON.parse(t)}catch(e){}return i?i.value:null}readValueType(e,{description:t}){let i;try{i=JSON.parse(t)}catch(e){}return i?h.fromJSON(i.fieldValueType):null}clone(){return new r({alias:this.alias,defaultValue:this.defaultValue,description:this.description,domain:this.domain&&this.domain.clone()||null,editable:this.editable,length:this.length,name:this.name,nullable:this.nullable,type:this.type,valueType:this.valueType})}};(0,s._)([(0,a.Cb)({type:String,json:{write:!0}})],b.prototype,"alias",void 0),(0,s._)([(0,a.Cb)({type:[String,Number],json:{write:{allowNull:!0}}})],b.prototype,"defaultValue",void 0),(0,s._)([(0,a.Cb)()],b.prototype,"description",void 0),(0,s._)([(0,p.r)("description")],b.prototype,"readDescription",null),(0,s._)([(0,a.Cb)({types:c.V5,json:{read:{reader:c.im},write:!0}})],b.prototype,"domain",void 0),(0,s._)([(0,a.Cb)({type:Boolean,json:{write:!0}})],b.prototype,"editable",void 0),(0,s._)([(0,a.Cb)({type:l.z8,json:{write:!0}})],b.prototype,"length",void 0),(0,s._)([(0,a.Cb)({type:String,json:{write:!0}})],b.prototype,"name",void 0),(0,s._)([(0,a.Cb)({type:Boolean,json:{write:!0}})],b.prototype,"nullable",void 0),(0,s._)([(0,u.J)(m.v)],b.prototype,"type",void 0),(0,s._)([(0,a.Cb)()],b.prototype,"valueType",void 0),(0,s._)([(0,p.r)("valueType",["description"])],b.prototype,"readValueType",null),b=r=(0,s._)([(0,d.j)("esri.layers.support.Field")],b);const y=b},72729:(e,t,i)=>{i.d(t,{im:()=>O,V5:()=>w}),i(80442);var r,s=i(43697),o=i(22974),n=i(5600),a=(i(75215),i(36030)),l=i(52011),u=i(96674);i(67676);let p=r=class extends u.wq{constructor(e){super(e),this.name=null,this.code=null}clone(){return new r({name:this.name,code:this.code})}};(0,s._)([(0,n.Cb)({type:String,json:{write:!0}})],p.prototype,"name",void 0),(0,s._)([(0,n.Cb)({type:[String,Number],json:{write:!0}})],p.prototype,"code",void 0),p=r=(0,s._)([(0,l.j)("esri.layers.support.CodedValue")],p);const d=p,c=new(i(35454).X)({inherited:"inherited",codedValue:"coded-value",range:"range"});let m=class extends u.wq{constructor(e){super(e),this.name=null,this.type=null}};(0,s._)([(0,n.Cb)({type:String,json:{write:!0}})],m.prototype,"name",void 0),(0,s._)([(0,a.J)(c)],m.prototype,"type",void 0),m=(0,s._)([(0,l.j)("esri.layers.support.Domain")],m);const h=m;var b;let y=b=class extends h{constructor(e){super(e),this.codedValues=null,this.type="coded-value"}getName(e){let t=null;if(this.codedValues){const i=String(e);this.codedValues.some((e=>(String(e.code)===i&&(t=e.name),!!t)))}return t}clone(){return new b({codedValues:(0,o.d9)(this.codedValues),name:this.name})}};(0,s._)([(0,n.Cb)({type:[d],json:{write:!0}})],y.prototype,"codedValues",void 0),(0,s._)([(0,a.J)({codedValue:"coded-value"})],y.prototype,"type",void 0),y=b=(0,s._)([(0,l.j)("esri.layers.support.CodedValueDomain")],y);const f=y;var v;i(92604),i(37697);let g=v=class extends h{constructor(e){super(e),this.type="inherited"}clone(){return new v}};(0,s._)([(0,a.J)({inherited:"inherited"})],g.prototype,"type",void 0),g=v=(0,s._)([(0,l.j)("esri.layers.support.InheritedDomain")],g);const C=g;var T;let S=T=class extends h{constructor(e){super(e),this.maxValue=null,this.minValue=null,this.type="range"}clone(){return new T({maxValue:this.maxValue,minValue:this.minValue,name:this.name})}};(0,s._)([(0,n.Cb)({type:Number,json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range&&t.range[1]},write:{enabled:!1,overridePolicy(){return{enabled:null!=this.maxValue&&null==this.minValue}},target:"range",writer(e,t,i){t[i]=[this.minValue||0,e]}}}})],S.prototype,"maxValue",void 0),(0,s._)([(0,n.Cb)({type:Number,json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range&&t.range[0]},write:{target:"range",writer(e,t,i){t[i]=[e,this.maxValue||0]}}}})],S.prototype,"minValue",void 0),(0,s._)([(0,a.J)({range:"range"})],S.prototype,"type",void 0),S=T=(0,s._)([(0,l.j)("esri.layers.support.RangeDomain")],S);const _=S,w={key:"type",base:h,typeMap:{range:S,"coded-value":f,inherited:C}};function O(e){if(!e||!e.type)return null;switch(e.type){case"range":return _.fromJSON(e);case"codedValue":return f.fromJSON(e);case"inherited":return C.fromJSON(e)}return null}},86719:(e,t,i)=>{i.d(t,{v:()=>r});const r=new(i(35454).X)({esriFieldTypeSmallInteger:"small-integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"single",esriFieldTypeDouble:"double",esriFieldTypeLong:"long",esriFieldTypeString:"string",esriFieldTypeDate:"date",esriFieldTypeOID:"oid",esriFieldTypeGeometry:"geometry",esriFieldTypeBlob:"blob",esriFieldTypeRaster:"raster",esriFieldTypeGUID:"guid",esriFieldTypeGlobalID:"global-id",esriFieldTypeXML:"xml"})},12501:(e,t,i)=>{i.r(t),i.d(t,{default:()=>O});var r,s=i(43697),o=i(22303),n=i(3172),a=i(20102),l=i(22974),u=i(92604),p=i(13867),d=i(70586),c=i(95330),m=i(19153),h=i(5600),b=(i(75215),i(52011)),y=i(30556),f=i(35671),v=i(5499),g=i(12571),C=i(59266),T=i(17386);const S=u.Z.getLogger("esri.renderers.DictionaryRenderer"),_={type:"CIMSimpleLineCallout",lineSymbol:{type:"CIMLineSymbol",symbolLayers:[{type:"CIMSolidStroke",width:.5,color:[0,0,0,255]}]}};let w=r=class extends((0,g.W)(v.Z)){constructor(e){super(e),this._ongoingRequests=new Map,this._symbolCache=new p.Z(100),this.config=null,this.fieldMap=null,this.scaleExpression=null,this.scaleExpressionTitle=null,this.url=null,this.type="dictionary"}writeData(e,t){e&&(t.scalingExpressionInfo={expression:e,returnType:"number"})}writeVisualVariables(e,t,i,r){null!=r&&r.origin||super.writeVisualVariables(e,t,i,r)}clone(){return new r({config:(0,l.d9)(this.config),scaleExpression:this.scaleExpression,scaleExpressionTitle:this.scaleExpressionTitle,fieldMap:(0,l.d9)(this.fieldMap),url:(0,l.d9)(this.url),visualVariables:(0,l.d9)(this.visualVariables)})}async getSymbolAsync(e,t){let i;this._dictionaryPromise||(this._dictionaryPromise=this.fetchResources(t));try{i=await this._dictionaryPromise}catch(e){if((0,c.D_)(e))return this._dictionaryPromise=null,null}const r={};if(this.fieldMap)for(const t of this._symbolFields){const i=this.fieldMap[t];if(i&&null!==e.attributes[i]&&void 0!==e.attributes[i]){const s=""+e.attributes[i];r[t]=s}else r[t]=""}const s=i(r,t);if(!s||"string"!=typeof s)return null;const n=(0,m.hP)(s).toString(),a=this._symbolCache.get(n);if(a)return a.catch((()=>{this._symbolCache.pop(n)})),a;const l=s.split(";"),u=[],p=[];for(const e of l)if(e&&0!==e.length)if(-1===e.indexOf("po:"))if(-1!==e.indexOf("|")){for(const t of e.split("|"))if(this._itemNames.has(t)){u.push(t);break}}else this._itemNames.has(e)&&u.push(e);else{const t=e.substr(3).split("|");if(3===t.length){const e=t[0],i=t[1];let r=t[2];if("DashTemplate"===i)r=r.split(" ").map((e=>Number(e)));else if("Color"===i){const e=new o.Z(r).toRgba();r=[e[0],e[1],e[2],255*e[3]]}else r=Number(r);p.push({primitiveName:e,propertyName:i,value:r})}}const h=!(0,d.pC)(e.geometry)||!e.geometry.hasZ&&"point"===e.geometry.type,b=this._cimPartsToCIMSymbol(u,p,h,t);return this._symbolCache.put(n,b,1),b}async collectRequiredFields(e,t){await this.collectVVRequiredFields(e,t),this.scaleExpression&&await(0,f.io)(e,t,this.scaleExpression);for(const i in this.fieldMap){const r=this.fieldMap[i];t.has(r)&&e.add(r)}}get arcadeRequired(){return!0}async fetchResources(e){if(this._dictionaryPromise)return this._dictionaryPromise;if(!this.url)return void S.error("no valid URL!");const t=(0,d.pC)(e)?e.abortOptions:null,i=(0,n.default)(this.url+"/resources/styles/dictionary-info.json",{responseType:"json",query:{f:"json"},...t}),[{data:r}]=await Promise.all([i,(0,C.LC)()]);if(!r)throw this._dictionaryPromise=null,new a.Z("esri.renderers.DictionaryRenderer","Bad dictionary data!");const s=r.expression,o=r.authoringInfo;this._refSymbolUrlTemplate=this.url+"/"+r.cimRefTemplateUrl,this._itemNames=new Set(r.itemsNames),this._symbolFields=o.symbol;const l={};if(this.config){const e=this.config;for(const t in e)l[t]=e[t]}if(o.configuration)for(const e of o.configuration)l.hasOwnProperty(e.name)||(l[e.name]=e.value);const u=[];if((0,d.pC)(e)&&e.fields&&this.fieldMap)for(const t of this._symbolFields){const i=this.fieldMap[t],r=e.fields.filter((e=>e.name===i));r.length>0&&u.push({...r[0],name:t})}return this._dictionaryPromise=(0,C.pp)(s,(0,d.pC)(e)?e.spatialReference:null,u,l).then((e=>{const t={scale:0};return(i,r)=>{const s=e.repurposeFeature({geometry:null,attributes:i});return t.scale=(0,d.pC)(r)?r.scale:void 0,e.evaluate({$feature:s,$view:t})}})).catch((e=>(S.error("Creating dictinoary expression failed:",e),null))),this._dictionaryPromise}getSymbol(){return null}getSymbols(){return[]}getAttributeHash(){return this.visualVariables&&this.visualVariables.reduce(((e,t)=>e+t.getAttributeHash()),"")}getMeshHash(){return`${this.url}-${JSON.stringify(this.fieldMap)}`}getSymbolFields(){return this._symbolFields}async _getSymbolPart(e,t){if(this._ongoingRequests.has(e))return this._ongoingRequests.get(e).then((e=>e.data));const i=this._refSymbolUrlTemplate.replace(/\{itemName\}/gi,e),r=(0,n.default)(i,{responseType:"json",query:{f:"json"},...t});this._ongoingRequests.set(e,r);try{return(await r).data}catch(t){return this._ongoingRequests.delete(e),Promise.reject(t)}}_combineSymbolParts(e,t,i){if(!e||0===e.length)return null;const r={...e[0]};if(e.length>1){r.symbolLayers=[];for(const t of e){const e=t;r.symbolLayers.unshift(...e.symbolLayers)}}return i&&(r.callout=_),{type:"CIMSymbolReference",symbol:r,primitiveOverrides:t}}async _cimPartsToCIMSymbol(e,t,i,r){const s=new Array(e.length);for(let t=0;t<e.length;t++)s[t]=this._getSymbolPart(e[t],r);const o=await Promise.all(s);return new T.Z({data:this._combineSymbolParts(o,t,i)})}};(0,s._)([(0,h.Cb)({type:Object,json:{read:{source:"configuration"},write:{target:"configuration"}}})],w.prototype,"config",void 0),(0,s._)([(0,h.Cb)({type:Object,json:{write:!0}})],w.prototype,"fieldMap",void 0),(0,s._)([(0,h.Cb)({type:String,json:{read:{source:"scalingExpressionInfo.expression"},write:!0}})],w.prototype,"scaleExpression",void 0),(0,s._)([(0,y.c)("scaleExpression")],w.prototype,"writeData",null),(0,s._)([(0,h.Cb)({type:String,json:{read:{source:"scalingExpressionInfo.title"},write:{target:"scalingExpressionInfo.title",overridePolicy(e){return{enabled:!!e&&!!this.scaleExpression}}}}})],w.prototype,"scaleExpressionTitle",void 0),(0,s._)([(0,h.Cb)({type:String,json:{write:!0}})],w.prototype,"url",void 0),(0,s._)([(0,y.c)("visualVariables")],w.prototype,"writeVisualVariables",null),w=r=(0,s._)([(0,b.j)("esri.renderers.DictionaryRenderer")],w);const O=w},95088:(e,t,i)=>{i.d(t,{Z:()=>x});var r,s=i(43697),o=i(22303),n=i(22974),a=i(44422),l=i(75215),u=i(36030),p=i(5600),d=i(52011),c=i(35671),m=i(5499),h=i(12571),b=i(96674),y=i(92604),f=(i(67676),i(80442),i(90578));const v=y.Z.getLogger("esri.renderers.support.AttributeColorInfo");let g=r=class extends b.wq{constructor(e){super(e),this.color=null,this.field=null,this.label=null,this.valueExpression=null,this.valueExpressionTitle=null}castField(e){return null==e?e:"function"==typeof e?(v.error(".field: field must be a string value"),null):(0,l.Zs)(e)}getAttributeHash(){return`${this.field}-${this.valueExpression}`}clone(){return new r({color:this.color&&this.color.clone(),field:this.field,label:this.label,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle})}};(0,s._)([(0,p.Cb)({type:o.Z,json:{type:[Number],write:!0}})],g.prototype,"color",void 0),(0,s._)([(0,p.Cb)({type:String,json:{write:!0}})],g.prototype,"field",void 0),(0,s._)([(0,f.p)("field")],g.prototype,"castField",null),(0,s._)([(0,p.Cb)({type:String,json:{write:!0}})],g.prototype,"label",void 0),(0,s._)([(0,p.Cb)({type:String,json:{write:!0}})],g.prototype,"valueExpression",void 0),(0,s._)([(0,p.Cb)({type:String,json:{write:!0}})],g.prototype,"valueExpressionTitle",void 0),g=r=(0,s._)([(0,d.j)("esri.renderers.support.AttributeColorInfo")],g);const C=g;var T;let S=T=class extends b.wq{constructor(){super(...arguments),this.unit=null}clone(){return new T({unit:this.unit})}};(0,s._)([(0,p.Cb)({type:String,json:{write:!0}})],S.prototype,"unit",void 0),S=T=(0,s._)([(0,d.j)("esri.renderers.support.DotDensityLegendOptions")],S);const _=S;var w,O=i(20256),N=i(4095);let I=w=class extends((0,h.W)(m.Z)){constructor(e){super(e),this.attributes=null,this.backgroundColor=new o.Z([0,0,0,0]),this.blendDots=!0,this.dotBlendingEnabled=!0,this.dotShape="square",this.dotSize=1,this.legendOptions=null,this.outline=new N.Z,this.dotValue=null,this.referenceDotValue=null,this.referenceScale=null,this.seed=1,this.type="dot-density"}calculateDotValue(e){if(null==this.referenceScale)return this.dotValue;const t=e/this.referenceScale*this.dotValue;return t<1?1:t}getSymbol(){return new O.Z({outline:this.outline})}async getSymbolAsync(){return this.getSymbol()}getSymbols(){return[this.getSymbol()]}getAttributeHash(){return this.attributes&&this.attributes.reduce(((e,t)=>e+t.getAttributeHash()),"")}getMeshHash(){return JSON.stringify(this.outline)}clone(){return new w({attributes:(0,n.d9)(this.attributes),backgroundColor:(0,n.d9)(this.backgroundColor),dotBlendingEnabled:(0,n.d9)(this.dotBlendingEnabled),dotShape:(0,n.d9)(this.dotShape),dotSize:(0,n.d9)(this.dotSize),dotValue:(0,n.d9)(this.dotValue),legendOptions:(0,n.d9)(this.legendOptions),outline:(0,n.d9)(this.outline),referenceScale:(0,n.d9)(this.referenceScale),visualVariables:(0,n.d9)(this.visualVariables),authoringInfo:this.authoringInfo&&this.authoringInfo.clone()})}getControllerHash(){return`${this.attributes.map((e=>e.field||e.valueExpression||""))}-${this.outline&&JSON.stringify(this.outline.toJSON())||""}`}async collectRequiredFields(e,t){await this.collectVVRequiredFields(e,t);for(const i of this.attributes)i.valueExpression&&await(0,c.io)(e,t,i.valueExpression),i.field&&e.add(i.field)}};(0,s._)([(0,p.Cb)({type:[C],json:{write:!0}})],I.prototype,"attributes",void 0),(0,s._)([(0,p.Cb)({type:o.Z,json:{write:!0}})],I.prototype,"backgroundColor",void 0),(0,s._)([(0,p.Cb)({type:Boolean}),(0,a.B)("dotBlendingEnabled")],I.prototype,"blendDots",void 0),(0,s._)([(0,p.Cb)({type:Boolean,json:{write:!0}})],I.prototype,"dotBlendingEnabled",void 0),(0,s._)([(0,p.Cb)({type:String,json:{write:!1}})],I.prototype,"dotShape",void 0),(0,s._)([(0,p.Cb)({type:Number,json:{write:!1}})],I.prototype,"dotSize",void 0),(0,s._)([(0,p.Cb)({type:_,json:{write:!0}})],I.prototype,"legendOptions",void 0),(0,s._)([(0,p.Cb)({type:N.Z,json:{default:null,write:!0}})],I.prototype,"outline",void 0),(0,s._)([(0,p.Cb)({type:Number,json:{write:!0}})],I.prototype,"dotValue",void 0),(0,s._)([(0,p.Cb)({type:Number}),(0,a.B)("dotValue")],I.prototype,"referenceDotValue",void 0),(0,s._)([(0,p.Cb)({type:Number,json:{write:!0}})],I.prototype,"referenceScale",void 0),(0,s._)([(0,p.Cb)({type:Number,json:{write:!0}})],I.prototype,"seed",void 0),(0,s._)([(0,u.J)({dotDensity:"dot-density"})],I.prototype,"type",void 0),I=w=(0,s._)([(0,d.j)("esri.renderers.DotDensityRenderer")],I);const x=I},79056:(e,t,i)=>{i.d(t,{Z:()=>f});var r,s=i(43697),o=i(22303),n=i(22974),a=i(5600),l=(i(75215),i(36030)),u=i(52011),p=i(35671),d=i(5499),c=i(96674);i(67676),i(80442);let m=r=class extends c.wq{constructor(e){super(e),this.color=null,this.ratio=null}clone(){return new r({color:this.color,ratio:this.ratio})}};(0,s._)([(0,a.Cb)({type:o.Z,json:{write:!0}})],m.prototype,"color",void 0),(0,s._)([(0,a.Cb)({type:Number,json:{write:!0}})],m.prototype,"ratio",void 0),m=r=(0,s._)([(0,u.j)("esri.renderers.support.HeatmapColorStop")],m);const h=m;var b;let y=b=class extends d.Z{constructor(e){super(e),this.blurRadius=10,this.colorStops=[new h({ratio:0,color:new o.Z("rgba(255, 140, 0, 0)")}),new h({ratio:.75,color:new o.Z("rgba(255, 140, 0, 1)")}),new h({ratio:.9,color:new o.Z("rgba(255, 0, 0, 1)")})],this.field=null,this.fieldOffset=0,this.maxPixelIntensity=100,this.minPixelIntensity=0,this.type="heatmap"}async collectRequiredFields(e,t){const i=this.field;i&&"string"==typeof i&&(0,p.AB)(e,t,i)}getAttributeHash(){return null}getMeshHash(){return`${JSON.stringify(this.colorStops)}.${this.blurRadius}.${this.field}`}clone(){return new b({blurRadius:this.blurRadius,colorStops:(0,n.d9)(this.colorStops),field:this.field,maxPixelIntensity:this.maxPixelIntensity,minPixelIntensity:this.minPixelIntensity})}};(0,s._)([(0,a.Cb)({type:Number,json:{write:!0}})],y.prototype,"blurRadius",void 0),(0,s._)([(0,a.Cb)({type:[h],json:{write:!0}})],y.prototype,"colorStops",void 0),(0,s._)([(0,a.Cb)({type:String,json:{write:!0}})],y.prototype,"field",void 0),(0,s._)([(0,a.Cb)({type:Number,json:{write:{overridePolicy:(e,t,i)=>({enabled:null==i})}}})],y.prototype,"fieldOffset",void 0),(0,s._)([(0,a.Cb)({type:Number,json:{write:!0}})],y.prototype,"maxPixelIntensity",void 0),(0,s._)([(0,a.Cb)({type:Number,json:{write:!0}})],y.prototype,"minPixelIntensity",void 0),(0,s._)([(0,l.J)({heatmap:"heatmap"})],y.prototype,"type",void 0),y=b=(0,s._)([(0,u.j)("esri.renderers.HeatmapRenderer")],y);const f=y},84382:(e,t,i)=>{i.d(t,{Z:()=>m});var r,s=i(43697),o=i(22974),n=i(5600),a=(i(75215),i(36030)),l=i(52011),u=i(5499),p=i(12571),d=i(9833);let c=r=class extends((0,p.W)(u.Z)){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.getSymbols().map((i=>i.collectRequiredFields(e,t))))}getSymbol(e,t){return this.symbol}async getSymbolAsync(e,t){return this.symbol}getSymbols(){return this.symbol?[this.symbol]:[]}getAttributeHash(){return this.visualVariables&&this.visualVariables.reduce(((e,t)=>e+t.getAttributeHash()),"")}getMeshHash(){return this.getSymbols().reduce(((e,t)=>e+JSON.stringify(t)),"")}get arcadeRequired(){return this.arcadeRequiredForVisualVariables}clone(){return new r({description:this.description,label:this.label,symbol:this.symbol&&this.symbol.clone(),visualVariables:(0,o.d9)(this.visualVariables),authoringInfo:this.authoringInfo&&this.authoringInfo.clone()})}};(0,s._)([(0,n.Cb)({type:String,json:{write:!0}})],c.prototype,"description",void 0),(0,s._)([(0,n.Cb)({type:String,json:{write:!0}})],c.prototype,"label",void 0),(0,s._)([(0,n.Cb)(d.G)],c.prototype,"symbol",void 0),(0,s._)([(0,a.J)({simple:"simple"})],c.prototype,"type",void 0),c=r=(0,s._)([(0,l.j)("esri.renderers.SimpleRenderer")],c);const m=c},91423:(e,t,i)=>{i.d(t,{a:()=>a});var r=i(20941),s=i(63213),o=i(32400);const n=(0,s.d)({types:o.A});function a(e,t,i){return e?e&&(e.styleName||e.styleUrl)&&"uniqueValue"!==e.type?(i&&i.messages&&i.messages.push(new r.Z("renderer:unsupported","Only UniqueValueRenderer can be referenced from a web style, but found '"+e.type+"'",{definition:e,context:i})),null):n(e,t,i):null}},99282:(e,t,i)=>{i.d(t,{a:()=>o});var r=i(67900),s=i(68441);const o={inches:(0,r.En)(1,"meters","inches"),feet:(0,r.En)(1,"meters","feet"),"us-feet":(0,r.En)(1,"meters","us-feet"),yards:(0,r.En)(1,"meters","yards"),miles:(0,r.En)(1,"meters","miles"),"nautical-miles":(0,r.En)(1,"meters","nautical-miles"),millimeters:(0,r.En)(1,"meters","millimeters"),centimeters:(0,r.En)(1,"meters","centimeters"),decimeters:(0,r.En)(1,"meters","decimeters"),meters:(0,r.En)(1,"meters","meters"),kilometers:(0,r.En)(1,"meters","kilometers"),"decimal-degrees":1/(0,r.ty)(1,"meters",s.sv.radius)}},32400:(e,t,i)=>{i.d(t,{A:()=>p,o:()=>d});var r=i(16050),s=i(12501),o=i(95088),n=i(79056),a=i(5499),l=i(84382),u=i(30687);const p={key:"type",base:a.Z,typeMap:{heatmap:n.Z,simple:l.Z,"unique-value":u.Z,"class-breaks":r.Z,"dot-density":o.Z,dictionary:s.default},errorContext:"renderer"},d={key:"type",base:a.Z,typeMap:{simple:l.Z,"unique-value":u.Z,"class-breaks":r.Z},errorContext:"renderer"}},51706:(e,t,i)=>{var r,s;function o(e){return e&&"esri.renderers.visualVariables.SizeVariable"===e.declaredClass}function n(e){return null!=e&&!isNaN(e)&&isFinite(e)}function a(e){return e.valueExpression?r.Expression:e.field&&"string"==typeof e.field?r.Field:r.Unknown}function l(e,t){const i=t||a(e),o=e.valueUnit||"unknown";return i===r.Unknown?s.Constant:e.stops?s.Stops:null!=e.minSize&&null!=e.maxSize&&null!=e.minDataValue&&null!=e.maxDataValue?s.ClampedLinear:"unknown"===o?null!=e.minSize&&null!=e.minDataValue?e.minSize&&e.minDataValue?s.Proportional:s.Additive:s.Identity:s.RealWorldSize}i.d(t,{RY:()=>r,hL:()=>s,PS:()=>a,QW:()=>l,iY:()=>o,qh:()=>n}),function(e){e.Unknown="unknown",e.Expression="expression",e.Field="field"}(r||(r={})),function(e){e.Unknown="unknown",e.Stops="stops",e.ClampedLinear="clamped-linear",e.Proportional="proportional",e.Additive="additive",e.Constant="constant",e.Identity="identity",e.RealWorldSize="real-world-size"}(s||(s={}))},28101:(e,t,i)=>{i.d(t,{PR:()=>S,Lq:()=>h,Km:()=>b,cM:()=>y,ap:()=>f,V3:()=>C,B3:()=>m});var r=i(22303),s=i(1692),o=i(74085),n=i(92604),a=i(70586),l=i(99282),u=i(51706);const p=n.Z.getLogger("esri.renderers.visualVariables.support.visualVariableUtils"),d=new s.Z,c=Math.PI,m=/^\s*(return\s+)?\$view\.scale\s*(;)?\s*$/i;function h(e,t,i){const s="visualVariables"in e&&e.visualVariables?e.visualVariables.filter((e=>"color"===e.type))[0]:e;if(!s)return;if("esri.renderers.visualVariables.ColorVariable"!==s.declaredClass)return void p.warn("The visualVariable should be an instance of esri.renderers.visualVariables.ColorVariable");const o="number"==typeof t,n=o?null:t,l=n&&n.attributes;let u=o?t:null;const d=s.field,{ipData:c,hasExpression:m}=s.cache;let h=s.cache.compiledFunc;if(!d&&!m){const e=s.stops;return e&&e[0]&&e[0].color}if("number"!=typeof u)if(m){if(!(0,a.pC)(i)||!(0,a.pC)(i.arcade))return void p.error("Use of arcade expressions requires an arcade context");const e={viewingMode:i.viewingMode,scale:i.scale,spatialReference:i.spatialReference},t=i.arcade.arcadeUtils,r=t.getViewInfo(e),o=t.createExecContext(n,r);if(!h){const e=t.createSyntaxTree(s.valueExpression);h=t.createFunction(e),s.cache.compiledFunc=h}u=t.executeFunction(h,o)}else l&&(u=l[d]);const b=s.normalizationField,y=l?parseFloat(l[b]):void 0;if(null!=u&&(!b||o||!isNaN(y)&&0!==y)){isNaN(y)||o||(u/=y);const e=T(u,c);if(e){const t=e[0],o=e[1],n=t===o?s.stops[t].color:r.Z.blendColors(s.stops[t].color,s.stops[o].color,e[2],(0,a.pC)(i)?i.color:void 0);return new r.Z(n)}}}function b(e,t,i){const r="visualVariables"in e&&e.visualVariables?e.visualVariables.filter((e=>"opacity"===e.type))[0]:e;if(!r)return;if("esri.renderers.visualVariables.OpacityVariable"!==r.declaredClass)return void p.warn("The visualVariable should be an instance of esri.renderers.visualVariables.OpacityVariable");const s="number"==typeof t,o=s?null:t,n=o&&o.attributes;let l=s?t:null;const u=r.field,{ipData:d,hasExpression:c}=r.cache;let m=r.cache.compiledFunc;if(!u&&!c){const e=r.stops;return e&&e[0]&&e[0].opacity}if("number"!=typeof l)if(c){if((0,a.Wi)(i)||(0,a.Wi)(i.arcade))return void p.error("Use of arcade expressions requires an arcade context");const e={viewingMode:i.viewingMode,scale:i.scale,spatialReference:i.spatialReference},t=i.arcade.arcadeUtils,s=t.getViewInfo(e),n=t.createExecContext(o,s);if(!m){const e=t.createSyntaxTree(r.valueExpression);m=t.createFunction(e),r.cache.compiledFunc=m}l=t.executeFunction(m,n)}else n&&(l=n[u]);const h=r.normalizationField,b=n?parseFloat(n[h]):void 0;if(null!=l&&(!h||s||!isNaN(b)&&0!==b)){isNaN(b)||s||(l/=b);const e=T(l,d);if(e){const t=e[0],i=e[1];if(t===i)return r.stops[t].opacity;{const s=r.stops[t].opacity;return s+(r.stops[i].opacity-s)*e[2]}}}}function y(e,t,i){const r="visualVariables"in e&&e.visualVariables?e.visualVariables.filter((e=>"rotation"===e.type))[0]:e;if(!r)return;if("esri.renderers.visualVariables.RotationVariable"!==r.declaredClass)return void p.warn("The visualVariable should be an instance of esri.renderers.visualVariables.RotationVariable");const s=r.axis||"heading",o="heading"===s&&"arithmetic"===r.rotationType?90:0,n="heading"===s&&"arithmetic"===r.rotationType?-1:1,l="number"==typeof t?null:t,u=l&&l.attributes,d=r.field,{hasExpression:c}=r.cache;let m=r.cache.compiledFunc,h=0;if(!d&&!c)return h;if(c){if((0,a.Wi)(i)||(0,a.Wi)(i.arcade))return void p.error("Use of arcade expressions requires an arcade context");const e={viewingMode:i.viewingMode,scale:i.scale,spatialReference:i.spatialReference},t=i.arcade.arcadeUtils,s=t.getViewInfo(e),o=t.createExecContext(l,s);if(!m){const e=t.createSyntaxTree(r.valueExpression);m=t.createFunction(e),r.cache.compiledFunc=m}h=t.executeFunction(m,o)}else u&&(h=u[d]||0);return h="number"!=typeof h||isNaN(h)?null:o+n*h,h}function f(e,t,i){const r="visualVariables"in e&&e.visualVariables?e.visualVariables.filter((e=>"size"===e.type))[0]:e;if(!r)return;if("esri.renderers.visualVariables.SizeVariable"!==r.declaredClass)return void p.warn("The visualVariable should be an instance of esri.renderers.visualVariables.SizeVariable");const s=function(e,t,i,r,s){switch(t.transformationType){case u.hL.Additive:return function(e,t,i,r){return e+(v(t.minSize,i,r)||t.minDataValue)}(e,t,i,r);case u.hL.Constant:return function(e,t,i){const r=e.stops;let s=r&&r.length&&r[0].size;return null==s&&(s=e.minSize),v(s,t,i)}(t,i,r);case u.hL.ClampedLinear:return function(e,t,i,r){const s=(e-t.minDataValue)/(t.maxDataValue-t.minDataValue),o=v(t.minSize,i,r),n=v(t.maxSize,i,r),l=(0,a.pC)(r)?r.shape:void 0;if(e<=t.minDataValue)return o;if(e>=t.maxDataValue)return n;if("area"===t.scaleBy&&l){const e="circle"===l,t=e?c*(o/2)**2:o*o,i=t+s*((e?c*(n/2)**2:n*n)-t);return e?2*Math.sqrt(i/c):Math.sqrt(i)}return o+s*(n-o)}(e,t,i,r);case u.hL.Proportional:return function(e,t,i,r){const s=(0,a.pC)(r)?r.shape:void 0,o=e/t.minDataValue,n=v(t.minSize,i,r),l=v(t.maxSize,i,r);let u=null;return u="circle"===s?2*Math.sqrt(o*(n/2)**2):"square"===s||"diamond"===s||"image"===s?Math.sqrt(o*n**2):o*n,g(u,n,l)}(e,t,i,r);case u.hL.Stops:return function(e,t,i,r,s){const[o,n,a]=T(e,s);if(o===n)return v(t.stops[o].size,i,r);{const e=v(t.stops[o].size,i,r);return e+(v(t.stops[n].size,i,r)-e)*a}}(e,t,i,r,s);case u.hL.RealWorldSize:return function(e,t,i,r){const s=((0,a.pC)(r)&&r.resolution?r.resolution:1)*l.a[t.valueUnit],o=v(t.minSize,i,r),n=v(t.maxSize,i,r),{valueRepresentation:u}=t;let p=null;return p="area"===u?2*Math.sqrt(e/c)/s:"radius"===u||"distance"===u?2*e/s:e/s,g(p,o,n)}(e,t,i,r);case u.hL.Identity:return e;case u.hL.Unknown:return null}}(function(e,t,i){const r="number"==typeof t,s=r?null:t,o=s&&s.attributes;let n=r?t:null;const{isScaleDriven:l}=e.cache;let d=e.cache.compiledFunc;if(l){const t=(0,a.pC)(i)?i.scale:void 0,r=(0,a.pC)(i)?i.view:void 0;n=null==t||"3d"===r?function(e){let t=null,i=null;const r=e.stops;return r?(t=r[0].value,i=r[r.length-1].value):(t=e.minDataValue||0,i=e.maxDataValue||0),(t+i)/2}(e):t}else if(!r)switch(e.inputValueType){case u.RY.Expression:{if((0,a.Wi)(i)||(0,a.Wi)(i.arcade))return void p.error("Use of arcade expressions requires an arcade context");const t={viewingMode:i.viewingMode,scale:i.scale,spatialReference:i.spatialReference},r=i.arcade.arcadeUtils,o=r.getViewInfo(t),l=r.createExecContext(s,o);if(!d){const t=r.createSyntaxTree(e.valueExpression);d=r.createFunction(t),e.cache.compiledFunc=d}n=r.executeFunction(d,l);break}case u.RY.Field:o&&(n=o[e.field]);break;case u.RY.Unknown:n=null}if(!(0,u.qh)(n))return null;if(r||!e.normalizationField)return n;const c=o?parseFloat(o[e.normalizationField]):null;return(0,u.qh)(c)&&0!==c?n/c:null}(r,t,i),r,t,i,r.cache.ipData);return null==s||isNaN(s)?0:s}function v(e,t,i){return null==e?null:(0,u.iY)(e)?f(e,t,i):(0,u.qh)(e)?e:null}function g(e,t,i){return(0,u.qh)(i)&&e>i?i:(0,u.qh)(t)&&e<t?t:e}function C(e,t,i){const{isScaleDriven:r}=e.cache;if(!(r&&"3d"===i||t))return null;const s={scale:t,view:i};let o=v(e.minSize,d,s),n=v(e.maxSize,d,s);if(null!=o||null!=n){if(o>n){const e=n;n=o,o=e}return{minSize:o,maxSize:n}}}function T(e,t){if(!t)return;let i=0,r=t.length-1;return t.some(((t,s)=>e<t?(r=s,!0):(i=s,!1))),[i,r,(e-t[i])/(t[r]-t[i])]}function S(e,t,i){const r=["proportional","proportional","proportional"];for(const s of e){const e=s.useSymbolValue?"symbol-value":f(s,t,i);switch(s.axis){case"width":r[0]=e;break;case"depth":r[1]=e;break;case"height":r[2]=e;break;case"width-and-depth":r[0]=e,r[1]=e;break;case"all":case void 0:case null:r[0]=e,r[1]=e,r[2]=e;break;default:(0,o.Bg)(s.axis)}}return r}},3172:(e,t,i)=>{i.r(t),i.d(t,{default:()=>m});var r=i(68773),s=i(40330),o=i(20102),n=i(80442),a=i(22974),l=i(70586),u=i(95330),p=i(17452),d=i(71058),c=i(85958);async function m(e,t){var a;const c=(0,p.HK)(e),f=(0,p.jc)(e);f||c||(e=(0,p.Fv)(e));const v={url:e,requestOptions:{...(0,l.Wg)(t)}};let g=(0,p.oh)(e);if(g){const e=await async function(e,t){if(null!=e.responseData)return e.responseData;if(e.headers&&(t.requestOptions.headers={...t.requestOptions.headers,...e.headers}),e.query&&(t.requestOptions.query={...t.requestOptions.query,...e.query}),e.before){let i,r;try{r=await e.before(t)}catch(e){i=_("request:interceptor",e,t)}if((r instanceof Error||r instanceof o.Z)&&(i=_("request:interceptor",r,t)),i)throw e.error&&e.error(i),i;return r}}(g,v);if(null!=e)return{data:e,getHeader:C,requestOptions:v.requestOptions,url:v.url};g.after||g.error||(g=null)}if(e=v.url,"image"===(t=v.requestOptions).responseType){if((0,n.Z)("host-webworker")||(0,n.Z)("host-node"))throw _("request:invalid-parameters",new Error("responseType 'image' is not supported in Web Workers or Node environment"),v)}else if(c)throw _("request:invalid-parameters",new Error("Data URLs are not supported for responseType = "+t.responseType),v);if("head"===t.method){if(t.body)throw _("request:invalid-parameters",new Error("body parameter cannot be set when method is 'head'"),v);if(c||f)throw _("request:invalid-parameters",new Error("data and blob URLs are not supported for method 'head'"),v)}if(await async function(){(0,n.Z)("host-webworker")?h||(h=await Promise.all([i.e(102),i.e(9884)]).then(i.bind(i,29884))):m._abortableFetch||(m._abortableFetch=globalThis.fetch.bind(globalThis))}(),h)return h.execute(e,t);const T=new AbortController;(0,u.fu)(t,(()=>T.abort()));const S={controller:T,credential:null,credentialToken:null,fetchOptions:null,hasToken:!1,interceptor:g,params:v,redoRequest:!1,useIdentity:b.useIdentity,useProxy:!1,useSSL:!1,withCredentials:!1},I=await async function(e){var t,i;let o,n;await async function(e){const t=e.params.url,i=e.params.requestOptions,o=e.controller.signal,n=i.body;let a=null,l=null,p=null;if(y&&"HTMLFormElement"in globalThis&&(n instanceof FormData?a=n:n instanceof HTMLFormElement&&(l=n,a=new FormData(l))),"string"==typeof n&&(p=n),e.fetchOptions={cache:i.cacheBust&&!m._abortableFetch.polyfill?"no-cache":"default",credentials:"same-origin",headers:i.headers||{},method:"head"===i.method?"HEAD":"GET",mode:"cors",redirect:"follow",signal:o},(a||p)&&(e.fetchOptions.body=a||p),"anonymous"===i.authMode&&(e.useIdentity=!1),e.hasToken=!!(/token=/i.test(t)||i.query&&i.query.token||a&&a.get&&a.get("token")||l&&l.elements.token),!e.hasToken&&r.Z.apiKey&&(0,d.r)(t)&&(i.query||(i.query={}),i.query.token=r.Z.apiKey,e.hasToken=!0),e.useIdentity&&!e.hasToken&&!e.credentialToken&&!O(t)&&!(0,u.Hc)(o)){let r;"immediate"===i.authMode?(await w(),r=await s.id.getCredential(t,{signal:o}),e.credential=r):"no-prompt"===i.authMode?(await w(),r=await s.id.getCredential(t,{prompt:!1,signal:o}).catch((()=>{})),e.credential=r):s.id&&(r=s.id.findCredential(t)),r&&(e.credentialToken=r.token,e.useSSL=!!r.ssl)}}(e);try{do{[o,n]=await N(e)}while(!await x(e,o,n))}catch(t){const i=_("request:server",t,e.params,o);throw i.details.ssl=e.useSSL,e.interceptor&&e.interceptor.error&&e.interceptor.error(i),i}const a=e.params.url;if(/\/sharing\/rest\/(accounts|portals)\/self/i.test(a)&&!e.hasToken&&!e.credentialToken&&null!=(t=n)&&null!=(i=t.user)&&i.username&&!(0,p.kl)(a)){const e=(0,p.P$)(a,!0);e&&b.trustedServers.push(e)}const l=e.credential;if(l&&s.id){const e=s.id.findServerInfo(l.server);let t=e&&e.owningSystemUrl;if(t){t=t.replace(/\/?$/,"/sharing");const e=s.id.findCredential(t,l.userId);e&&-1===s.id._getIdenticalSvcIdx(t,e)&&e.resources.unshift(t)}}return{data:n,getHeader:o?e=>o.headers.get(e):C,requestOptions:e.params.requestOptions,ssl:e.useSSL,url:e.params.url}}(S);return null==(a=g)||null==a.after||a.after(I),I}let h;const b=r.Z.request,y="FormData"in globalThis,f=[499,498,403,401],v=["COM_0056","COM_0057","SB_0008"],g=[/\/arcgis\/tokens/i,/\/sharing(\/rest)?\/generatetoken/i,/\/rest\/info/i],C=()=>null,T=Symbol();function S(e){const t=(0,p.P$)(e);return!t||t.endsWith(".arcgis.com")||m._corsServers.includes(t)||(0,p.kl)(t)}function _(e,t,i,r){let s="Error";const n={url:i.url,requestOptions:i.requestOptions,getHeader:C,ssl:!1};if(t instanceof o.Z)return t.details?(t.details=(0,a.d9)(t.details),t.details.url=i.url,t.details.requestOptions=i.requestOptions):t.details=n,t;if(t){const e=r&&(e=>r.headers.get(e)),i=r&&r.status,o=t.message;o&&(s=o),e&&(n.getHeader=e),n.httpStatus=(null!=t.httpCode?t.httpCode:t.code)||i||0,n.subCode=t.subcode,n.messageCode=t.messageCode,"string"==typeof t.details?n.messages=[t.details]:n.messages=t.details,n.raw=T in t?t[T]:t}return(0,u.D_)(t)?(0,u.zE)():new o.Z(e,s,n)}async function w(){s.id||await Promise.all([i.e(280),i.e(2785),i.e(102),i.e(8536)]).then(i.bind(i,85976))}function O(e){return g.some((t=>t.test(e)))}async function N(e){let t=e.params.url;const i=e.params.requestOptions,r=e.fetchOptions,o=(0,p.jc)(t)||(0,p.HK)(t),a=i.responseType||"json",l=o?0:null!=i.timeout?i.timeout:b.timeout;let d=!1;if(!o){e.useSSL&&(t=(0,p.hO)(t)),i.cacheBust&&"default"===r.cache&&(t=(0,p.ZN)(t,"request.preventCache",Date.now()));let o={...i.query};e.credentialToken&&(o.token=e.credentialToken);let a=(0,p.B7)(o);(0,n.Z)("esri-url-encodes-apostrophe")&&(a=a.replace(/'/g,"%27"));const l=t.length+1+a.length;let u;d="delete"===i.method||"post"===i.method||"put"===i.method||!!i.body||l>b.maxUrlLength;const c=i.useProxy||!!(0,p.ed)(t);if(c){const e=(0,p.b7)(t);u=e.path,!d&&u.length+1+l>b.maxUrlLength&&(d=!0),e.query&&(o={...e.query,...o})}if("HEAD"===r.method&&(d||c)){if(d){if(l>b.maxUrlLength)throw _("request:invalid-parameters",new Error("URL exceeds maximum length"),e.params);throw _("request:invalid-parameters",new Error("cannot use POST request when method is 'head'"),e.params)}if(c)throw _("request:invalid-parameters",new Error("cannot use proxy when method is 'head'"),e.params)}if(d?(r.method="delete"===i.method?"DELETE":"put"===i.method?"PUT":"POST",i.body?t=(0,p.fl)(t,o):(r.body=(0,p.B7)(o),r.headers["Content-Type"]="application/x-www-form-urlencoded")):t=(0,p.fl)(t,o),c&&(e.useProxy=!0,t=`${u}?${t}`),o.token&&y&&r.body instanceof FormData){const e=r.body;e.set?e.set("token",o.token):e.append("token",o.token)}if(i.hasOwnProperty("withCredentials"))e.withCredentials=i.withCredentials;else if(!(0,p.D6)(t,(0,p.TI)()))if((0,p.kl)(t))e.withCredentials=!0;else if(s.id){const i=s.id.findServerInfo(t);i&&i.webTierAuth&&(e.withCredentials=!0)}e.withCredentials&&(r.credentials="include")}let c,h,f=0,v=!1;l>0&&(f=setTimeout((()=>{v=!0,e.controller.abort()}),l));try{if("native-request-init"===i.responseType)h=r,h.url=t;else if("image"!==i.responseType||"default"!==r.cache||"GET"!==r.method||d||function(e){if(e)for(const t of Object.getOwnPropertyNames(e))if(e[t])return!0;return!1}(i.headers)||!o&&!e.useProxy&&b.proxyUrl&&!S(t)){if(c=await m._abortableFetch(t,r),e.useProxy||function(e){const t=(0,p.P$)(e);t&&!m._corsServers.includes(t)&&m._corsServers.push(t)}(t),"native"===i.responseType)h=c;else if("HEAD"!==r.method)if(c.ok){switch(a){case"array-buffer":h=await c.arrayBuffer();break;case"blob":case"image":h=await c.blob();break;default:h=await c.text()}if(f&&(clearTimeout(f),f=0),"json"===a||"xml"===a||"document"===a)if(h)switch(a){case"json":h=JSON.parse(h);break;case"xml":h=I(h,"application/xml");break;case"document":h=I(h,"text/html")}else h=null;if(h){if("array-buffer"===a||"blob"===a){const e=c.headers.get("Content-Type");if(/application\/json|text\/plain/i.test(e)&&h["blob"===a?"size":"byteLength"]<=750)try{const e=await new Response(h).json();e.error&&(h=e)}catch{}}"image"===a&&h instanceof Blob&&(h=await E(URL.createObjectURL(h),e,!0))}}else h=await c.text()}else h=await E(t,e)}catch(r){if("AbortError"===r.name){if(v)throw new Error("Timeout exceeded");throw(0,u.zE)("Request canceled")}if(!(!c&&r instanceof TypeError&&b.proxyUrl)||i.body||"delete"===i.method||"head"===i.method||"post"===i.method||"put"===i.method||e.useProxy||S(t))throw r;e.redoRequest=!0,(0,p.tD)({proxyUrl:b.proxyUrl,urlPrefix:(0,p.P$)(t)})}finally{f&&clearTimeout(f)}return[c,h]}function I(e,t){let i;try{i=(new DOMParser).parseFromString(e,t)}catch{}if(!i||i.getElementsByTagName("parsererror").length)throw new SyntaxError("XML Parse error");return i}async function x(e,t,i){if(e.redoRequest)return e.redoRequest=!1,!1;const r=e.params.requestOptions;if(!t||"native"===r.responseType||"native-request-init"===r.responseType)return!0;let o,n,a,l;if(!t.ok)throw o=new Error(`Unable to load ${t.url} status: ${t.status}`),o[T]=i,o;null!=i&&i.error&&(o=i.error),o&&(n=Number(o.code),a=o.hasOwnProperty("subcode")?Number(o.subcode):null,l=o.messageCode,l=l&&l.toUpperCase());const u=r.authMode;if(403===n&&(4===a||o.message&&o.message.toLowerCase().indexOf("ssl")>-1&&-1===o.message.toLowerCase().indexOf("permission"))){if(!e.useSSL)return e.useSSL=!0,!1}else if(!e.hasToken&&e.useIdentity&&("no-prompt"!==u||498===n)&&-1!==f.indexOf(n)&&!O(e.params.url)&&(403!==n||-1===v.indexOf(l)&&(null==a||2===a&&e.credentialToken))){await w();try{const t=await s.id.getCredential(e.params.url,{error:_("request:server",o,e.params),prompt:"no-prompt"!==u,signal:e.controller.signal,token:e.credentialToken});return e.credential=t,e.credentialToken=t.token,e.useSSL=e.useSSL||t.ssl,!1}catch(t){if("no-prompt"===u)return e.credential=null,e.credentialToken=null,!1;o=t}}if(o)throw o;return!0}function E(e,t,i=!1){const r=t.controller.signal,s=new Image;return t.withCredentials?s.crossOrigin="use-credentials":s.crossOrigin="anonymous",s.alt="",s.src=e,(0,c.f)(s,e,i,r)}m._abortableFetch=null,m._corsServers=["https://server.arcgisonline.com","https://services.arcgisonline.com"]},23334:(e,t,i)=>{i.d(t,{F:()=>O});var r=i(3172),s=i(70586),o=i(28263),n=i(38581),a=i(93924),l=i(11282),u=i(43697),p=i(1692),d=i(96674),c=i(5600),m=(i(67676),i(80442),i(75215),i(71715)),h=i(52011),b=i(74889),y=i(79166),f=i(95642);let v=class extends d.wq{constructor(e){super(e),this.directionLines=null,this.directionPoints=null,this.directions=null,this.route=null,this.routeName=null,this.stops=null}};(0,u._)([(0,c.Cb)({type:b.default,json:{write:!0}})],v.prototype,"directionLines",void 0),(0,u._)([(0,c.Cb)({type:b.default,json:{write:!0}})],v.prototype,"directionPoints",void 0),(0,u._)([(0,c.Cb)({type:f.Z,json:{write:!0}})],v.prototype,"directions",void 0),(0,u._)([(0,c.Cb)({type:p.Z,json:{write:!0}})],v.prototype,"route",void 0),(0,u._)([(0,c.Cb)({type:String,json:{write:!0}})],v.prototype,"routeName",void 0),(0,u._)([(0,c.Cb)({type:[p.Z],json:{write:!0}})],v.prototype,"stops",void 0),v=(0,u._)([(0,h.j)("esri.rest.support.RouteResult")],v);const g=v;function C(e){return e&&b.default.fromJSON(e).features.map((e=>e))}let T=class extends d.wq{constructor(e){super(e),this.messages=null,this.pointBarriers=null,this.polylineBarriers=null,this.polygonBarriers=null,this.routeResults=null}readPointBarriers(e,t){return C(t.barriers)}readPolylineBarriers(e){return C(e)}readPolygonBarriers(e){return C(e)}};(0,u._)([(0,c.Cb)({type:[y.Z]})],T.prototype,"messages",void 0),(0,u._)([(0,c.Cb)({type:[p.Z]})],T.prototype,"pointBarriers",void 0),(0,u._)([(0,m.r)("pointBarriers",["barriers"])],T.prototype,"readPointBarriers",null),(0,u._)([(0,c.Cb)({type:[p.Z]})],T.prototype,"polylineBarriers",void 0),(0,u._)([(0,m.r)("polylineBarriers")],T.prototype,"readPolylineBarriers",null),(0,u._)([(0,c.Cb)({type:[p.Z]})],T.prototype,"polygonBarriers",void 0),(0,u._)([(0,m.r)("polygonBarriers")],T.prototype,"readPolygonBarriers",null),(0,u._)([(0,c.Cb)({type:[g]})],T.prototype,"routeResults",void 0),T=(0,u._)([(0,h.j)("esri.rest.support.RouteSolveResult")],T);const S=T,_=(0,o.E)({accumulateAttributes:{name:"accumulateAttributeNames"},attributeParameterValues:!0,directionsTimeAttribute:{name:"directionsTimeAttributeName"},impedanceAttribute:{name:"impedanceAttributeName"},outSpatialReference:{name:"outSR",getter:e=>e.outSpatialReference.wkid},pointBarriers:{name:"barriers"},polylineBarriers:!0,polygonBarriers:!0,restrictionAttributes:{name:"restrictionAttributeNames"},stops:!0,travelMode:!0});function w(e){return"esri.rest.support.FeatureSet"===(null==e?void 0:e.declaredClass)}async function O(e,t,i){const o=[],u=[],p={},d={},c=(0,l.en)(e),{path:m}=c;w(t.stops)&&(0,a.et)(t.stops.features,u,"stops.features",p),w(t.pointBarriers)&&(0,a.et)(t.pointBarriers.features,u,"pointBarriers.features",p),w(t.polylineBarriers)&&(0,a.et)(t.polylineBarriers.features,u,"polylineBarriers.features",p),w(t.polygonBarriers)&&(0,a.et)(t.polygonBarriers.features,u,"polygonBarriers.features",p);const h=await(0,n.aX)(u);for(const e in p){const t=p[e];o.push(e),d[e]=h.slice(t[0],t[1])}if((0,a.Wf)(d,o)){let e=null;try{e=await(0,a.bI)(m,t.apiKey,i)}catch{}e&&!e.hasZ&&(0,a.ef)(d,o)}for(const e in d)d[e].forEach(((i,r)=>{t.get(e)[r].geometry=i}));const b={...i,query:{...c.query,..._.toQueryParams(t),f:"json"}},y=m.endsWith("/solve")?m:`${m}/solve`,{data:f}=await(0,r.default)(y,b);return function(e){var t,i,r,o,n;const a=new Map,{directionLines:l,directionPoints:u,directions:p,routes:d,stops:c,barriers:m,polygonBarriers:h,polylineBarriers:b,messages:y}=e,f=null!=(t=null!=(i=null!=(r=null!=(o=null==d?void 0:d.spatialReference)?o:null==c?void 0:c.spatialReference)?r:null==m?void 0:m.spatialReference)?i:null==h?void 0:h.spatialReference)?t:null==b?void 0:b.spatialReference;null==d||d.features.forEach((e=>{const t=e.attributes.Name,i=e.attributes.ObjectID;a.has(t)?(a.get(t).route=e,a.get(t).routeId=i):a.set(t,{route:e,routeId:i,routeName:t}),(0,s.pC)(e.geometry)&&(e.geometry.spatialReference=f)})),null==p||p.forEach((e=>{const t=e.routeName;a.has(t)?a.get(t).directions=e:a.set(t,{routeName:t,directions:e})})),null==c||c.features.forEach((e=>{var t;const i=null!=(t=e.attributes.RouteName)?t:null;a.has(i)?a.get(i).stops?a.get(i).stops.push(e):a.get(i).stops=[e]:a.set(i,{stops:[e],routeName:i}),(0,s.pC)(e.geometry)&&(e.geometry.spatialReference=f)}));const v=null==(n=null==c?void 0:c.features.every((e=>null==e.attributes.RouteName)))||n;if((null==c?void 0:c.features.length)>0&&v){const e=Array.from(a.keys())[0];a.get(e).stops=a.get(null).stops,a.delete(null)}null==l||l.features.forEach((e=>{var t;const i=e.attributes.RouteID,r=null==(t=Array.from(a.values()).find((e=>e.routeId===i)))?void 0:t.routeName;if(r)if(a.has(r))if(a.get(r).directionLines)a.get(r).directionLines.features.push(e);else{const{fieldAliases:t,geometryType:i,spatialReference:s}=l;a.get(r).directionLines={features:[e],fieldAliases:t,geometryType:i,spatialReference:s}}else{const{fieldAliases:t,geometryType:i,spatialReference:s}=l;a.set(r,{routeName:r,directionLines:{features:[e],fieldAliases:t,geometryType:i,spatialReference:s}})}})),null==u||u.features.forEach((e=>{var t;const i=e.attributes.RouteID,r=null==(t=Array.from(a.values()).find((e=>e.routeId===i)))?void 0:t.routeName;if(r)if(a.has(r))if(a.get(r).directionPoints)a.get(r).directionPoints.features.push(e);else{const{fieldAliases:t,geometryType:i,spatialReference:s}=u;a.get(r).directionPoints={features:[e],fieldAliases:t,geometryType:i,spatialReference:s}}else{const{fieldAliases:t,geometryType:i,spatialReference:s}=u;a.set(r,{routeName:r,directionPoints:{features:[e],fieldAliases:t,geometryType:i,spatialReference:s}})}}));const g=Array.from(a.values());return S.fromJSON({routeResults:g,barriers:m,polygonBarriers:h,polylineBarriers:b,messages:y})}(f)}},71058:(e,t,i)=>{i.d(t,{r:()=>o});var r=i(17452);const s=["elevation3d.arcgis.com","js.arcgis.com","jsdev.arcgis.com","jsqa.arcgis.com","static.arcgis.com"];function o(e){const t=(0,r.P$)(e,!0);return t&&t.endsWith(".arcgis.com")&&!s.includes(t)&&!e.endsWith("/sharing/rest/generateToken")}},85958:(e,t,i)=>{i.d(t,{f:()=>n});var r=i(80442),s=i(70586),o=i(95330);function n(e,t,i=!1,n){return new Promise(((l,u)=>{if((0,o.Hc)(n))return void u(a());let p=()=>{m(),u(new Error(`Unable to load ${t}`))},d=()=>{const t=e;m(),l(t)},c=()=>{if(!e)return;const t=e;m(),t.src="",u(a())};const m=()=>{(0,r.Z)("esri-image-decode")||(e.removeEventListener("error",p),e.removeEventListener("load",d)),p=null,d=null,e=null,(0,s.pC)(n)&&n.removeEventListener("abort",c),c=null,i&&URL.revokeObjectURL(t)};(0,s.pC)(n)&&n.addEventListener("abort",c),(0,r.Z)("esri-image-decode")?e.decode().then(d,p):(e.addEventListener("error",p),e.addEventListener("load",d))}))}function a(){try{return new DOMException("Aborted","AbortError")}catch{const e=new Error;return e.name="AbortError",e}}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4273],{1692:(e,t,n)=>{n.d(t,{Z:()=>_});var r=n(43697),i=n(66577),o=n(51773),s=n(78223),l=n(15923),u=(n(80442),n(22974)),a=n(92604),c=n(70586),f=n(31263),p=n(1153),d=n(52011);a.Z.getLogger("esri.core.Clonable");const y=e=>{let t=class extends e{clone(){const e=(0,c.s3)((0,p.vw)(this),"unable to clone instance of non-accessor class"),t=e.metadatas,n=e.store,r={},i=new Map;for(const e in t){const o=t[e],s=null==n?void 0:n.originOf(e);if(o.readOnly||!1===o.clonable||s!==f.s3.USER&&s!==f.s3.DEFAULTS)continue;const l=this[e];let a=null;const c=o.clonable;a="function"==typeof c?c(l):"reference"===c?l:(0,u.Vo)(l),null!=l&&null==a||(s===f.s3.DEFAULTS?i.set(e,a):r[e]=a)}const o=new(0,Object.getPrototypeOf(this).constructor)(r);if(i.size){var s;const e=null==(s=(0,p.vw)(o))?void 0:s.store;if(e)for(const[t,n]of i)e.set(t,n,f.s3.DEFAULTS)}return o}};return t=(0,r._)([(0,d.j)("esri.core.Clonable")],t),t};let h=class extends(y(l.Z)){};h=(0,r._)([(0,d.j)("esri.core.Clonable")],h);var m=n(96674),g=n(99001),b=n(5600),v=(n(67676),n(75215),n(33955));let w=class extends(y(m.wq)){constructor(...e){super(...e),this.isAggregate=!1,this.layer=null,this.popupTemplate=null,this.sourceLayer=null,Object.defineProperty(this,"uid",{value:(0,g.D)(),configurable:!0})}normalizeCtorArgs(e,t,n,r){return e&&!e.declaredClass?e:{geometry:e,symbol:t,attributes:n,popupTemplate:r}}set attributes(e){const t=this._get("attributes");t!==e&&(this._set("attributes",e),this._notifyLayer("attributes",t,e))}set geometry(e){const t=this._get("geometry");t!==e&&(this._set("geometry",e),this._notifyLayer("geometry",t,e))}set symbol(e){const t=this._get("symbol");t!==e&&(this._set("symbol",e),this._notifyLayer("symbol",t,e))}set visible(e){const t=this._get("visible");t!==e&&(this._set("visible",e),this._notifyLayer("visible",t,e))}getEffectivePopupTemplate(e=!1){if(this.popupTemplate)return this.popupTemplate;for(const t of[this.sourceLayer,this.layer])if(t){if("popupTemplate"in t&&t.popupTemplate)return t.popupTemplate;if(e&&"defaultPopupTemplate"in t&&(0,c.pC)(t.defaultPopupTemplate))return t.defaultPopupTemplate}return null}getAttribute(e){return this.attributes&&this.attributes[e]}setAttribute(e,t){if(this.attributes){const n=this.getAttribute(e);this.attributes[e]=t,this._notifyLayer("attributes",n,t,e)}else this.attributes={[e]:t},this._notifyLayer("attributes",void 0,t,e)}getObjectId(){return this.sourceLayer&&"objectIdField"in this.sourceLayer&&this.sourceLayer.objectIdField?this.getAttribute(this.sourceLayer.objectIdField):null}toJSON(){return{geometry:(0,c.pC)(this.geometry)?this.geometry.toJSON():null,symbol:(0,c.pC)(this.symbol)?this.symbol.toJSON():null,attributes:{...this.attributes},popupTemplate:this.popupTemplate&&this.popupTemplate.toJSON()}}notifyGeometryChanged(){this._notifyLayer("geometry",this.geometry,this.geometry)}notifyMeshTransformChanged(){(0,c.pC)(this.geometry)&&"mesh"===this.geometry.type&&this._notifyLayer("transform",this.geometry.transform,this.geometry.transform)}_notifyLayer(e,t,n,r){if(!this.layer||!("graphicChanged"in this.layer))return;const i={graphic:this,property:e,oldValue:t,newValue:n};"attributes"===e&&(i.attributeName=r),this.layer.graphicChanged(i)}};(0,r._)([(0,b.Cb)({value:null})],w.prototype,"attributes",null),(0,r._)([(0,b.Cb)({value:null,types:i.qM,json:{read:v.im}})],w.prototype,"geometry",null),(0,r._)([(0,b.Cb)({type:Boolean})],w.prototype,"isAggregate",void 0),(0,r._)([(0,b.Cb)({clonable:"reference"})],w.prototype,"layer",void 0),(0,r._)([(0,b.Cb)({type:o.Z})],w.prototype,"popupTemplate",void 0),(0,r._)([(0,b.Cb)({clonable:"reference"})],w.prototype,"sourceLayer",void 0),(0,r._)([(0,b.Cb)({value:null,types:s.LB})],w.prototype,"symbol",null),(0,r._)([(0,b.Cb)({type:Boolean,value:!0})],w.prototype,"visible",null),w=(0,r._)([(0,d.j)("esri.Graphic")],w),(w||(w={})).generateUID=g.D;const _=w},36030:(e,t,n)=>{n.d(t,{J:()=>o});var r=n(35454),i=n(5600);function o(e,t={}){var n;const o=e instanceof r.X?e:new r.X(e,t),s={type:null==(n=null==t?void 0:t.ignoreUnknown)||n?o.apiValues:String,json:{type:o.jsonValues,read:(null==t||!t.readOnly)&&{reader:o.read},write:{writer:o.write}}};return void 0!==(null==t?void 0:t.readOnly)&&(s.readOnly=!!t.readOnly),void 0!==(null==t?void 0:t.default)&&(s.json.default=t.default),void 0!==(null==t?void 0:t.name)&&(s.json.name=t.name),(0,i.Cb)(s)}},91460:(e,t,n)=>{function r(e){return e&&("function"==typeof e.on||"function"==typeof e.addEventListener)}function i(e,t,n){if(!r(e))throw new TypeError("target is not a Evented or EventTarget object");if("on"in e)return e.on(t,n);if(Array.isArray(t)){const r=t.slice();for(const t of r)e.addEventListener(t,n);return{remove(){for(const t of r)e.removeEventListener(t,n)}}}return e.addEventListener(t,n),{remove(){e.removeEventListener(t,n)}}}function o(e,t,n){if(!r(e))throw new TypeError("target is not a Evented or EventTarget object");if("once"in e)return e.once(t,n);const o=i(e,t,(t=>{o.remove(),n.call(e,t)}));return{remove(){o.remove()}}}n.d(t,{vT:()=>r,on:()=>i,IH:()=>o})},95330:(e,t,n)=>{n.d(t,{e4:()=>F,$6:()=>u,Ue:()=>a,zE:()=>c,dD:()=>_,hh:()=>I,vr:()=>S,Ds:()=>L,as:()=>O,WW:()=>T,R8:()=>w,D_:()=>v,Hc:()=>d,y8:()=>C,fu:()=>m,$F:()=>g,d1:()=>x,DB:()=>$,r9:()=>y,k_:()=>f,H9:()=>h,Yn:()=>E,gx:()=>A,Hl:()=>b});const r=(i=globalThis,{setTimeout:(e,t)=>{const n=i.setTimeout(e,t);return{remove:()=>i.clearTimeout(n)}}});var i,o=n(20102),s=n(91460),l=(n(92604),n(70586));function u(e){return Promise.all(e)}function a(e){return new Promise(((t,n)=>{try{e(t,n)}catch(e){Promise.resolve().then((()=>n(e)))}}))}function c(e="Aborted"){return new o.Z("AbortError",e)}function f(e,t="Aborted"){if(d(e))throw c(t)}function p(e){return(0,l.pC)(e)?"aborted"in e?e:e.signal:e}function d(e){const t=p(e);return(0,l.pC)(t)&&t.aborted}function y(e){if(v(e))throw e}function h(e){if(!v(e))throw e}function m(e,t){const n=p(e);if(!(0,l.Wi)(n)){if(!n.aborted)return(0,s.IH)(n,"abort",(()=>t()));t()}}function g(e,t){const n=p(e);if(!(0,l.Wi)(n))return f(n),(0,s.IH)(n,"abort",(()=>t(c())))}function b(e,t){const n=p(t);return(0,l.Wi)(n)?e:new Promise(((n,r)=>{let i=m(t,(()=>r(c())));const o=()=>i=(0,l.hw)(i);e.then(o,o),e.then(n,r)}))}function v(e){return e&&"AbortError"===e.name}function w(e){return e.catch((e=>{if(!v(e))throw e}))}function _(){let e=null;const t=new Promise(((t,n)=>{e={promise:void 0,resolve:t,reject:n}}));return e.promise=t,e}function O(e){if(!e)return;if("function"!=typeof e.forEach){const t=Object.keys(e);return O(t.map((t=>e[t]))).then((e=>{const n={};return t.forEach(((t,r)=>n[t]=e[r])),n}))}const t=e;return a((e=>{const n=[];let r=t.length;0===r&&e(n),t.forEach((t=>{const i={promise:t||Promise.resolve(t)};n.push(i),i.promise.then((e=>{i.value=e})).catch((e=>{i.error=e})).then((()=>{--r,0===r&&e(n)}))}))}))}function T(e){return O(e).then((e=>e.filter((e=>!!e.value)).map((e=>e.value))))}function x(e){return Promise.reject(e)}function $(e){return Promise.resolve(e)}function F(e,t,n){const r=new AbortController;return m(n,(()=>r.abort())),new Promise(((n,i)=>{let o=setTimeout((()=>{o=0,n(t)}),e);m(r,(()=>{o&&(clearTimeout(o),i(c()))}))}))}function C(e){return e&&"function"==typeof e.then}function A(e){return C(e)?e:Promise.resolve(e)}function L(e,t=-1){let n,r,i,o,s=null;const u=(...a)=>{if(n){r=a,o&&o.reject(c()),o=_();const e=(0,l.j0)(o.promise);if(s){const e=s;s=null,e.abort()}return e}if(i=o||_(),o=null,t>0){const r=new AbortController;n=A(e(...a,r.signal));const i=n;F(t).then((()=>{n===i&&(o?r.abort():s=r)}))}else n=1,n=A(e(...a));const f=()=>{const e=r;r=i=n=s=null,null!=e&&u(...e)},p=n,d=i;return p.then(f,f),p.then(d.resolve,d.reject),(0,l.j0)(d.promise)};return u}function I(){let e,t;const n=new Promise(((n,r)=>{e=n,t=r})),i=t=>{e(t)};return i.resolve=t=>e(t),i.reject=e=>t(e),i.timeout=(e,t)=>r.setTimeout((()=>i.reject(t)),e),i.promise=n,i}function S(e,t){let n,r=new AbortController;const i=e(r.signal);let o={promise:i,finished:!1,abort:()=>{r&&(r.abort(),r=null)}};const s=()=>{o&&(o.finished=!0,o=null),(0,l.pC)(n)&&(n.remove(),n=null),r=null};return i.then(s,s),n=m(t,(()=>{(0,l.pC)(o)&&o.abort()})),o}function E(e){return Promise.resolve().then((()=>{f(e)}))}},17452:(e,t,n)=>{n.d(t,{R9:()=>b,qg:()=>L,tD:()=>P,ZN:()=>pe,fl:()=>de,Ie:()=>ae,sJ:()=>X,AH:()=>H,io:()=>K,L:()=>T,TI:()=>O,vt:()=>le,oh:()=>R,P$:()=>k,Ml:()=>ye,ed:()=>U,b7:()=>A,D6:()=>D,tm:()=>N,YP:()=>W,jc:()=>z,HK:()=>B,$U:()=>ne,oC:()=>ee,kl:()=>G,v_:()=>M,hF:()=>V,_l:()=>Q,PF:()=>J,Fv:()=>Z,B7:()=>C,u0:()=>$,Yd:()=>se,Hu:()=>fe,Qj:()=>ue,hO:()=>re,mN:()=>x});var r=n(68773),i=n(20102),o=n(92604),s=n(70586);const l=o.Z.getLogger("esri.core.urlUtils"),u=r.Z.request,a="esri/config: esriConfig.request.proxyUrl is not set.",c=/^\s*[a-z][a-z0-9-+.]*:(?![0-9])/i,f=/^\s*http:/i,p=/^\s*https:/i,d=/^\s*file:/i,y=/:\d+$/,h=/^https?:\/\/[^/]+\.arcgis.com\/sharing(\/|$)/i,m=new RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$"),g=new RegExp("^((([^\\[:]+):)?([^@]+)@)?(\\[([^\\]]+)\\]|([^\\[:]*))(:([0-9]+))?$");class b{constructor(e=""){this.uri=e,this.scheme=null,this.authority=null,this.path=null,this.query=null,this.fragment=null,this.user=null,this.password=null,this.host=null,this.port=null;let t=(0,s.j0)(this.uri.match(m));this.scheme=t[2]||(t[1]?"":null),this.authority=t[4]||(t[3]?"":null),this.path=t[5],this.query=t[7]||(t[6]?"":null),this.fragment=t[9]||(t[8]?"":null),null!=this.authority&&(t=(0,s.j0)(this.authority.match(g)),this.user=t[3]||null,this.password=t[4]||null,this.host=t[6]||t[7],this.port=t[9]||null)}toString(){return this.uri}}const v={};let w=new b(r.Z.applicationUrl);let _=function(){const e=(0,s.j0)(w.path),t=e.substring(0,e.lastIndexOf(e.split("/")[e.split("/").length-1]));return`${w.scheme}://${w.host}${null!=w.port?`:${w.port}`:""}${t}`}();const O=()=>w,T=()=>_;function x(e){const t={path:null,query:null},n=new b(e),r=e.indexOf("?");return null===n.query?t.path=e:(t.path=e.substring(0,r),t.query=$(n.query)),n.fragment&&(t.hash=n.fragment,null===n.query&&(t.path=t.path.substring(0,t.path.length-(n.fragment.length+1)))),t}function $(e){const t=e.split("&"),n={};for(const e of t){if(!e)continue;const t=e.indexOf("=");let r,i;t<0?(r=decodeURIComponent(e),i=""):(r=decodeURIComponent(e.slice(0,t)),i=decodeURIComponent(e.slice(t+1)));let o=n[r];"string"==typeof o&&(o=n[r]=[o]),Array.isArray(o)?o.push(i):n[r]=i}return n}function F(e){return e&&"object"==typeof e&&"toJSON"in e&&"function"==typeof e.toJSON}function C(e,t){return e?t&&"function"==typeof t?Object.keys(e).map((n=>encodeURIComponent(n)+"="+encodeURIComponent(t(n,e[n])))).join("&"):Object.keys(e).map((n=>{const r=e[n];if(null==r)return"";const i=encodeURIComponent(n)+"=",o=t&&t[n];return o?i+encodeURIComponent(o(r)):Array.isArray(r)?r.map((e=>F(e)?i+encodeURIComponent(JSON.stringify(e)):i+encodeURIComponent(e))).join("&"):F(r)?i+encodeURIComponent(JSON.stringify(r)):i+encodeURIComponent(r)})).filter((e=>e)).join("&"):""}function A(e=!1){let t,n=u.proxyUrl;if("string"==typeof e){t=ne(e);const r=U(e);r&&(n=r.proxyUrl)}else t=!!e;if(!n)throw l.warn(a),new i.Z("urlutils:proxy-not-set",a);return t&&ie()&&(n=re(n)),x(n)}function L(e){const t=U(e);let n,r;if(t){const e=S(t.proxyUrl);n=e.path,r=e.query?$(e.query):null}if(n){const t=x(e);e=n+"?"+t.path;const i=C({...r,...t.query});i&&(e=`${e}?${i}`)}return e}const I={path:"",query:""};function S(e){const t=e.indexOf("?");return-1!==t?(I.path=e.slice(0,t),I.query=e.slice(t+1)):(I.path=e,I.query=null),I}function E(e){return(e=oe(e=function(e){return e&&"/"===e[e.length-1]?e:`${e}/`}(e=S(e).path),!0)).toLowerCase()}function P(e){const t={proxyUrl:e.proxyUrl,urlPrefix:E(e.urlPrefix)},n=u.proxyRules,r=t.urlPrefix;let i=n.length;for(let e=0;e<n.length;e++){const t=n[e].urlPrefix;if(0===r.indexOf(t)){if(r.length===t.length)return-1;i=e;break}0===t.indexOf(r)&&(i=e+1)}return n.splice(i,0,t),i}function U(e){const t=u.proxyRules,n=E(e);for(let e=0;e<t.length;e++)if(0===n.indexOf(t[e].urlPrefix))return t[e]}function N(e,t){return e=j(e),t=j(t),oe(e)===oe(t)}function j(e){const t=(e=Z(e)).indexOf("/sharing");return t>0?e.substring(0,t):e.replace(/\/+$/,"")}function R(e){const t=t=>null==t||t instanceof RegExp&&t.test(e)||"string"==typeof t&&e.startsWith(t),n=u.interceptors;if(n)for(const e of n)if(Array.isArray(e.urls)){if(e.urls.some(t))return e}else if(t(e.urls))return e;return null}function D(e,t,n=!1){const r=ce(e),i=ce(t);return!(!n&&r.scheme!==i.scheme)&&null!=r.host&&null!=i.host&&r.host.toLowerCase()===i.host.toLowerCase()&&r.port===i.port}function G(e){if("string"==typeof e){if(!W(e))return!0;e=ce(e)}if(D(e,w))return!0;const t=u.trustedServers||[];for(let n=0;n<t.length;n++){const r=q(t[n]);for(let t=0;t<r.length;t++)if(D(e,r[t]))return!0}return!1}function q(e){return v[e]||(te(e)||ee(e)?v[e]=[new b(V(e))]:v[e]=[new b(`http://${e}`),new b(`https://${e}`)]),v[e]}function V(e,t=_,n){return ee(e)?n&&n.preserveProtocolRelative?e:"http"===w.scheme&&w.authority===k(e).slice(2)?`http:${e}`:`https:${e}`:te(e)?e:(0,s.j0)(M("/"===e[0]?function(e){const t=e.indexOf("//"),n=e.indexOf("/",t+2);return-1===n?e:e.slice(0,n)}(t):t,e))}function J(e,t=_,n){if(!W(e))return e;const r=Z(e),i=r.toLowerCase(),o=Z(t).toLowerCase().replace(/\/+$/,""),s=n?Z(n).toLowerCase().replace(/\/+$/,""):null;if(s&&0!==o.indexOf(s))return e;const l=(e,t,n)=>-1===(n=e.indexOf(t,n))?e.length:n;let u=l(i,"/",i.indexOf("//")+2),a=-1;for(;i.slice(0,u+1)===o.slice(0,u)+"/"&&(a=u+1,u!==i.length);)u=l(i,"/",u+1);if(-1===a)return e;if(s&&a<s.length)return e;e=r.slice(a);const c=o.slice(a-1).replace(/[^/]+/g,"").length;if(c>0)for(let t=0;t<c;t++)e=`../${e}`;else e=`./${e}`;return e}function Z(e){return function(e){const t=u.httpsDomains;if(!function(e){return f.test(e)||"http"===w.scheme&&ee(e)}(e))return e;const n=e.indexOf("/",7);let r;if(r=-1===n?e:e.slice(0,n),r=r.toLowerCase().slice(7),y.test(r)){if(!r.endsWith(":80"))return e;r=r.slice(0,-3),e=e.replace(":80","")}return"http"===w.scheme&&r===w.authority&&!h.test(e)||(ie()&&r===w.authority||t&&t.some((e=>r===e||r.endsWith(`.${e}`)))||ie()&&!U(e))&&(e=re(e)),e}(e=function(e){return e.replace(/^(https?:\/\/)(arcgis\.com)/i,"$1www.$2")}(e=function(e){if(/^https?:\/\//i.test(e)){const t=S(e);e=(e=t.path.replace(/\/{2,}/g,"/")).replace("/","//"),t.query&&(e+=`?${t.query}`)}return e}(e=V(e=e.trim()))))}function M(...e){const t=e.filter(s.pC);if(!t||!t.length)return;const n=[];if(W(t[0])){const e=t[0],r=e.indexOf("//");-1!==r&&(n.push(e.slice(0,r+1)),function(e){return d.test(e)}(t[0])&&(n[0]+="/"),t[0]=e.slice(r+2))}else"/"===t[0][0]&&n.push("");const r=t.reduce(((e,t)=>t?e.concat(t.split("/")):e),[]);for(let e=0;e<r.length;e++){const t=r[e];".."===t&&n.length>0&&".."!==n[n.length-1]?n.pop():(!t&&e===r.length-1||t&&("."!==t||0===n.length))&&n.push(t)}return n.join("/")}function k(e,t=!1){if(z(e)||B(e))return null;let n=e.indexOf("://");if(-1===n&&ee(e))n=2;else{if(-1===n)return null;n+=3}const r=e.indexOf("/",n);return-1!==r&&(e=e.slice(0,r)),t&&(e=oe(e,!0)),e}function W(e){return ee(e)||te(e)}function z(e){return null!=e&&"blob:"===e.slice(0,5)}function B(e){return"data:"===e.slice(0,5)}function H(e){const t=X(e);if(!t||!t.isBase64)return null;const n=atob(t.data),r=new Uint8Array(n.length);for(let e=0;e<n.length;e++)r[e]=n.charCodeAt(e);return r.buffer}const Y=/^data:(.*?)(;base64)?,(.*)$/;function X(e){const t=e.match(Y);if(!t)return null;const[,n,r,i]=t;return{mediaType:n,isBase64:!!r,data:i}}function Q(e){return e.isBase64?`data:${e.mediaType};base64,${e.data}`:`data:${e.mediaType},${e.data}`}function K(e,t){(function(e,t){if(!e)return!1;const n=document.createElement("a");if(!("download"in n))return!1;const r=URL.createObjectURL(e);return n.download=t,n.href=r,n.style.display="none",document.body.appendChild(n),n.click(),document.body.removeChild(n),URL.revokeObjectURL(r),!0})(e,t)||function(e,t){!!window.navigator.msSaveOrOpenBlob&&window.navigator.msSaveOrOpenBlob(e,t)}(e,t)}function ee(e){return null!=e&&void 0!==e&&"/"===e[0]&&"/"===e[1]}function te(e){return c.test(e)}function ne(e){return p.test(e)||"https"===w.scheme&&ee(e)}function re(e){return ee(e)?`https:${e}`:e.replace(f,"https:")}function ie(){return"https"===w.scheme}function oe(e,t=!1){return ee(e)?e.slice(2):(e=e.replace(c,""),t&&e.length>1&&"/"===e[0]&&"/"===e[1]&&(e=e.slice(2)),e)}function se(e){let t=0;if(W(e)){const n=e.indexOf("//");-1!==n&&(t=n+2)}const n=e.lastIndexOf("/");return n<t?e:e.slice(0,n+1)}function le(e,t){if(!e)return"";const n=x(e).path.replace(/\/+$/,""),r=n.substring(n.lastIndexOf("/")+1);if(null==t||!t.length)return r;const i=new RegExp(`.(${t.join("|")})$`,"ig");return r.replace(i,"")}function ue(e){return e.replace(/\/+$/,"")}function ae(e,t,n){if(!(t&&n&&e&&W(e)))return e;const r=e.indexOf("//"),i=e.indexOf("/",r+2),o=e.indexOf(":",r+2),s=Math.min(i<0?e.length:i,o<0?e.length:o);return e.slice(r+2,s).toLowerCase()!==t.toLowerCase()?e:`${e.slice(0,r+2)}${n}${e.slice(s)}`}function ce(e){return"string"==typeof e?new b(V(e)):(e.scheme||(e.scheme=w.scheme),e)}function fe(e,t){const n=x(e),r=Object.keys(n.query||{});return r.length>0&&t&&t.warn("removeQueryParameters()",`Url query parameters are not supported, the following parameters have been removed: ${r.join(", ")}.`),n.path}function pe(e,t,n){const r=x(e),i=r.query||{};return i[t]=String(n),`${r.path}?${C(i)}`}function de(e,t){const n=x(e),r=n.query||{};for(const e in t)r[e]=t[e];const i=C(r);return i?`${n.path}?${i}`:n.path}function ye(e){if((0,s.Wi)(e))return null;const t=e.match(he);return t?t[1]:null}const he=/.*?\.([^\/]*)$/},66577:(e,t,n)=>{n.d(t,{qM:()=>c});var r=n(75215),i=n(6570),o=n(9361),s=n(65091),l=n(13473),u=n(17332),a=n(58901);n(82971),n(86973),n(33955);const c={base:o.Z,key:"type",typeMap:{extent:i.Z,multipoint:s.Z,point:l.Z,polyline:a.Z,polygon:u.Z}};(0,r.N7)(c)},33955:(e,t,n)=>{n.d(t,{im:()=>h,q9:()=>b,Ji:()=>m,YX:()=>c,aW:()=>f,wp:()=>p,oU:()=>y,l9:()=>d});var r=n(70586),i=n(6570),o=n(9361),s=n(65091),l=n(13473),u=n(17332),a=n(58901);function c(e){return void 0!==e.xmin&&void 0!==e.ymin&&void 0!==e.xmax&&void 0!==e.ymax}function f(e){return void 0!==e.points}function p(e){return void 0!==e.x&&void 0!==e.y}function d(e){return void 0!==e.paths}function y(e){return void 0!==e.rings}function h(e){return(0,r.Wi)(e)?null:e instanceof o.Z?e:p(e)?l.Z.fromJSON(e):d(e)?a.Z.fromJSON(e):y(e)?u.Z.fromJSON(e):f(e)?s.Z.fromJSON(e):c(e)?i.Z.fromJSON(e):null}function m(e){return e?p(e)?"esriGeometryPoint":d(e)?"esriGeometryPolyline":y(e)?"esriGeometryPolygon":c(e)?"esriGeometryEnvelope":f(e)?"esriGeometryMultipoint":null:null}const g={esriGeometryPoint:l.Z,esriGeometryPolyline:a.Z,esriGeometryPolygon:u.Z,esriGeometryEnvelope:i.Z,esriGeometryMultipoint:s.Z};function b(e){return e&&g[e]||null}},91040:(e,t,n)=>{n.d(t,{yZ:()=>i});var r=n(67900);function i(e,t){const n=t||e.extent,i=e.width,o=(0,r.c9)(n&&n.spatialReference);return n&&i?n.width/i*o*r.hd*96:0}},86973:(e,t,n)=>{n.d(t,{Mk:()=>i,P$:()=>o});var r=n(35454);const i=(0,r.w)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),o=(0,r.w)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"})},35671:(e,t,n)=>{n.d(t,{io:()=>g,AB:()=>m,gd:()=>h,Mu:()=>w,Q0:()=>y,YN:()=>c,UF:()=>p,O5:()=>b,os:()=>_,H7:()=>S,qN:()=>E,Pz:()=>N,Qc:()=>j,vP:()=>J});var r,i,o=n(20102),s=n(78286);(i=r||(r={})).VALUE_OUT_OF_RANGE="domain-validation-error::value-out-of-range",i.INVALID_CODED_VALUE="domain-validation-error::invalid-coded-value";var l=n(59266);const u=["field","field2","field3","normalizationField","rotationInfo.field","proportionalSymbolInfo.field","proportionalSymbolInfo.normalizationField","colorInfo.field","colorInfo.normalizationField"],a=["field","normalizationField"];function c(e,t){if(null!=e&&null!=t)for(const n of Array.isArray(e)?e:[e])if(f(u,n,t),"visualVariables"in n&&n.visualVariables)for(const e of n.visualVariables)f(a,e,t)}function f(e,t,n){if(e)for(const r of e){const e=(0,s.hS)(r,t),i=e&&"function"!=typeof e&&n.get(e);i&&(0,s.RB)(r,i.name,t)}}function p(e,t){if(null!=e&&null!=t&&t.fields.length)if("startField"in e){const n=t.get(e.startField),r=t.get(e.endField);e.startField=n&&n.name||null,e.endField=r&&r.name||null}else{const n=t.get(e.startTimeField),r=t.get(e.endTimeField);e.startTimeField=n&&n.name||null,e.endTimeField=r&&r.name||null}}const d=new Set;function y(e,t){return e&&t?(d.clear(),h(d,e,t),Array.from(d).sort()):[]}function h(e,t,n){var r;if(n)if(null!=t&&null!=(r=t.fields)&&r.length)if(n.includes("*"))for(const{name:n}of t.fields)e.add(n);else for(const r of n)m(e,t,r);else{if(n.includes("*"))return e.clear(),void e.add("*");for(const t of n)e.add(t)}}function m(e,t,n){if("string"==typeof n)if(t){const r=t.get(n);r&&e.add(r.name)}else e.add(n)}async function g(e,t,n){var r;if(!n)return;const{arcadeUtils:i}=await(0,l.LC)(),o=i.extractFieldNames(n,null==t||null==(r=t.fields)?void 0:r.map((e=>e.name)));for(const n of o)m(e,t,n)}function b({displayField:e,fields:t}){return e||(t&&t.length?v(t,"name-or-title")||v(t,"unique-identifier")||v(t,"type-or-category")||function(e){for(const t of e){if(!t||!t.name)continue;const e=t.name.toLowerCase();if(e.indexOf("name")>-1||e.indexOf("title")>-1)return t.name}return null}(t):null)}function v(e,t){for(const n of e)if(n&&n.valueType&&n.valueType===t)return n.name;return null}async function w(e,t){const{labelingInfo:r,fieldsIndex:i}=t;r&&r.length&&await Promise.all(r.map((t=>async function(e,t,r){if(!r)return;const i=r.getLabelExpression(),s=r.where;if("arcade"===i.type)await g(e,t,i.expression);else{const n=i.expression.match(/{[^}]*}/g);n&&n.forEach((n=>{m(e,t,n.slice(1,-1))}))}await async function(e,t,r){if(r&&"1=1"!==r){const i=(await Promise.all([n.e(1534),n.e(5732)]).then(n.bind(n,41534))).WhereClause.create(r,t);if(!i.isStandardized)throw new o.Z("fieldUtils:collectFilterFields","Where clause is not standardized");h(e,t,i.fieldNames)}}(e,t,s)}(e,i,t))))}function _(e){const t=e.defaultValue;return void 0!==t&&L(e,t)?t:e.nullable?null:void 0}function O(e){return"number"==typeof e&&!isNaN(e)&&isFinite(e)}function T(e){return null===e||O(e)}const x="isInteger"in Number?Number.isInteger:e=>"number"==typeof e&&isFinite(e)&&Math.floor(e)===e;function $(e){return null===e||x(e)}function F(e){return null!=e&&"string"==typeof e}function C(e){return null===e||F(e)}function A(){return!0}function L(e,t){let n;switch(e.type){case"date":case"integer":case"long":case"small-integer":case"esriFieldTypeDate":case"esriFieldTypeInteger":case"esriFieldTypeLong":case"esriFieldTypeSmallInteger":n=e.nullable?$:x;break;case"double":case"single":case"esriFieldTypeSingle":case"esriFieldTypeDouble":n=e.nullable?T:O;break;case"string":case"esriFieldTypeString":n=e.nullable?C:F;break;default:n=A}return 1===arguments.length?n:n(t)}const I=new Set(["integer","small-integer","single","double","esriFieldTypeInteger","esriFieldTypeSmallInteger","esriFieldTypeSingle","esriFieldTypeDouble"]);function S(e){return null!=e&&I.has(e.type)}function E(e){return null!=e&&("string"===e.type||"esriFieldTypeString"===e.type)}var P,U;function N(e){return null==e||"number"==typeof e&&isNaN(e)?null:e}function j(e,t){return e.nullable&&null===t?null:S(e)&&!function(e,t){const n="string"==typeof e?R(e):e;return!!n&&(n.isInteger?x(t)&&t>=n.min&&t<=n.max:t>=n.min&&t<=n.max)}(e.type,Number(t))?P.OUT_OF_RANGE:L(e,t)?e.domain?function(e,t){switch(e.type){case"range":{const n="range"in e?e.range[0]:e.minValue,i="range"in e?e.range[1]:e.maxValue;if(+t<n||+t>i)return r.VALUE_OUT_OF_RANGE;break}case"coded-value":case"codedValue":if(null==e.codedValues||e.codedValues.every((e=>null==e||e.code!==t)))return r.INVALID_CODED_VALUE}return null}(e.domain,t):null:U.INVALID_TYPE}function R(e){switch(e){case"esriFieldTypeSmallInteger":case"small-integer":return D;case"esriFieldTypeInteger":case"integer":return G;case"esriFieldTypeSingle":case"single":return q;case"esriFieldTypeDouble":case"double":return V}}!function(e){e.OUT_OF_RANGE="numeric-range-validation-error::out-of-range"}(P||(P={})),function(e){e.INVALID_TYPE="type-validation-error::invalid-type"}(U||(U={}));const D={min:-32768,max:32767,isInteger:!0},G={min:-2147483648,max:2147483647,isInteger:!0},q={min:-34e37,max:12e37,isInteger:!1},V={min:-Number.MAX_VALUE,max:Number.MAX_VALUE,isInteger:!1};function J(e,t,n){switch(e){case r.INVALID_CODED_VALUE:return`Value ${n} is not in the coded domain - field: ${t.name}, domain: ${JSON.stringify(t.domain)}`;case r.VALUE_OUT_OF_RANGE:return`Value ${n} is out of the range of valid values - field: ${t.name}, domain: ${JSON.stringify(t.domain)}`;case U.INVALID_TYPE:return`Value ${n} is not a valid value for the field type - field: ${t.name}, type: ${t.type}, nullable: ${t.nullable}`;case P.OUT_OF_RANGE:{const{min:e,max:r}=R(t.type);return`Value ${n} is out of range for the number type - field: ${t.name}, type: ${t.type}, value range is ${e} to ${r}`}}}},51623:(e,t,n)=>{n.d(t,{Z:()=>c});var r=n(43697),i=n(35454),o=n(96674),s=n(5600),l=(n(67676),n(80442),n(75215),n(52011));const u=new i.X({esriJobMessageTypeInformative:"informative",esriJobMessageTypeProcessDefinition:"process-definition",esriJobMessageTypeProcessStart:"process-start",esriJobMessageTypeProcessStop:"process-stop",esriJobMessageTypeWarning:"warning",esriJobMessageTypeError:"error",esriJobMessageTypeEmpty:"empty",esriJobMessageTypeAbort:"abort"});let a=class extends o.wq{constructor(e){super(e),this.description=null,this.type=null}};(0,r._)([(0,s.Cb)({type:String,json:{write:!0}})],a.prototype,"description",void 0),(0,r._)([(0,s.Cb)({type:String,json:{read:u.read,write:u.write}})],a.prototype,"type",void 0),a=(0,r._)([(0,l.j)("esri.rest.support.GPMessage")],a);const c=a},11282:(e,t,n)=>{n.d(t,{lA:()=>i,cv:()=>s,en:()=>o});var r=n(17452);function i(e,t){return t?{...t,query:{...e,...t.query}}:{query:e}}function o(e){return"string"==typeof e?(0,r.mN)(e):e}function s(e,t,n){const r={};for(const i in e){if("declaredClass"===i)continue;const o=e[i];if(null!=o&&"function"!=typeof o)if(Array.isArray(o)){r[i]=[];for(let e=0;e<o.length;e++)r[i][e]=s(o[e])}else if("object"==typeof o)if(o.toJSON){const e=o.toJSON(n&&n[i]);r[i]=t?e:JSON.stringify(e)}else r[i]=t?o:JSON.stringify(o);else r[i]=o}return r}n(91040)},59266:(e,t,n)=>{n.d(t,{mz:()=>c,pp:()=>a,WW:()=>l,Yi:()=>u,LC:()=>s}),n(66577);var r=n(70586),i=n(82971);let o;function s(){return o||(o=(async()=>{const e=await Promise.all([n.e(9490),n.e(6690)]).then(n.bind(n,96690));return{arcade:e.arcade,arcadeUtils:e,Dictionary:e.Dictionary,Feature:e.arcadeFeature}})()),o}const l=(e,t,n)=>c.create(e,t,n,null,["$feature"]),u=(e,t,n)=>c.create(e,t,n,null,["$feature","$view"]),a=(e,t,n,r)=>c.create(e,t,n,r,["$feature","$view"]);class c{constructor(e,t,n,r,i,o,s,l){this.script=e,this.evaluate=i;const u=Array.isArray(s)?s:s.fields;this.fields=u,this._syntaxTree=r,this._arcade=t,this._arcadeDictionary=n,this._arcadeFeature=o,this._spatialReference=l,this._referencesGeometry=t.scriptTouchesGeometry(this._syntaxTree),this._referencesScale=this._arcade.referencesMember(this._syntaxTree,"scale")}static async create(e,t,n,o,l,u){const{arcade:a,Feature:f,Dictionary:p}=await s(),d=i.Z.fromJSON(t),y=a.parseScript(e,u),h=l.reduce(((e,t)=>({...e,[t]:null})),{});let m=null;(0,r.pC)(o)&&(m=new p(o),m.immutable=!0,h.$config=null);const g=a.scriptUsesGeometryEngine(y)&&a.enableGeometrySupport(),b=a.scriptUsesFeatureSet(y)&&a.enableFeatureSetSupport(),v=a.scriptIsAsync(y)&&a.enableAsyncSupport(),w={vars:h,spatialReference:d,useAsync:!!v},_=new p;_.immutable=!1,_.setField("scale",0);const O=a.compileScript(y,w);return await Promise.all([g,b,v]),new c(e,a,p,y,(e=>("$view"in e&&e.$view&&(_.setField("scale",e.$view.scale),e.$view=_),m&&(e.$config=m),O({vars:e,spatialReference:d}))),new f,n,d)}repurposeFeature(e){return e.geometry&&!e.geometry.spatialReference&&(e.geometry.spatialReference=this._spatialReference),this._arcadeFeature.repurposeFromGraphicLikeObject(e.geometry,e.attributes,{fields:this.fields}),this._arcadeFeature}repurposeAdapter(e){return this._arcadeFeature.repurposeFromAdapter(e,{fields:this.fields}),this._arcadeFeature}createDictionary(){return new this._arcadeDictionary}referencesMember(e){return this._arcade.referencesMember(this._syntaxTree,e)}referencesFunction(e){return this._arcade.referencesFunction(this._syntaxTree,e)}referencesGeometry(){return this._referencesGeometry}referencesScale(){return this._referencesScale}extractFieldLiterals(){return this._arcade.extractExpectedFieldLiterals(this._syntaxTree)}}}}]);