@arcgis/core 4.23.0-next.20220123 → 4.23.0-next.20220128

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 (624) hide show
  1. package/Graphic.js +1 -1
  2. package/arcade/featureset/sources/FeatureLayerDynamic.js +1 -1
  3. package/assets/esri/core/workers/RemoteClient.js +1 -1
  4. package/assets/esri/core/workers/chunks/02fbc76dfdc20e628c61.js +1 -0
  5. package/assets/esri/core/workers/chunks/0453fad5cb819797b4f6.js +1 -0
  6. package/assets/esri/core/workers/chunks/0463ba46df855a92b9c0.js +1 -0
  7. package/assets/esri/core/workers/chunks/0cd0a6eef51fc5b9ea61.js +1 -0
  8. package/assets/esri/core/workers/chunks/{d1454155ee1b8a421cbb.js → 0d02c6ad1f4688bfa374.js} +1 -1
  9. package/assets/esri/core/workers/chunks/0d684f16f37d5dc385dd.js +1 -0
  10. package/assets/esri/core/workers/chunks/0e17691520d890d34efb.js +1 -0
  11. package/assets/esri/core/workers/chunks/16b6d0f8378582c051c3.js +1 -0
  12. package/assets/esri/core/workers/chunks/{0ce1dc14280d6f188468.js → 17de7a324dfa7f57ad5d.js} +1 -1
  13. package/assets/esri/core/workers/chunks/{b313ab14a643273e7d09.js → 1877ab1b6a115dbba1c5.js} +1 -1
  14. package/assets/esri/core/workers/chunks/{c36f84daa7736878418d.js → 197ec52641aed20029c6.js} +1 -1
  15. package/assets/esri/core/workers/chunks/1b2a961f776a0b57e57a.js +1 -0
  16. package/assets/esri/core/workers/chunks/1b3fd66577b19aa5f2b6.js +1 -0
  17. package/assets/esri/core/workers/chunks/1c733b7db092a2a88ef3.js +1 -0
  18. package/assets/esri/core/workers/chunks/1f8c6a179e39fd4c5e6f.js +1 -0
  19. package/assets/esri/core/workers/chunks/2076fcbae63f1bfb7143.js +1 -0
  20. package/assets/esri/core/workers/chunks/{9387db408f496e7dd003.js → 214910032945dd2d86b0.js} +1 -1
  21. package/assets/esri/core/workers/chunks/{b2ae5fc4f787ea568b88.js → 2460f3b6ada6ae900dec.js} +1 -1
  22. package/assets/esri/core/workers/chunks/27474b007988855bea9d.js +1 -0
  23. package/assets/esri/core/workers/chunks/281b89dbf5574fc642ae.js +1 -0
  24. package/assets/esri/core/workers/chunks/{4d539878bfbd7c549e60.js → 2c8fe9bc988c3c5760a5.js} +1 -1
  25. package/assets/esri/core/workers/chunks/2e899ef5881b4ec6fa55.js +1 -0
  26. package/assets/esri/core/workers/chunks/34b59d7099904dcb28b5.js +1 -0
  27. package/assets/esri/core/workers/chunks/357033117dfe61eb81ea.js +1 -0
  28. package/assets/esri/core/workers/chunks/37c03cfc19086ce631c6.js +1 -0
  29. package/assets/esri/core/workers/chunks/391e96192d1ec4e55ce2.js +1 -0
  30. package/assets/esri/core/workers/chunks/3c673495e5f507c4a9e5.js +1 -0
  31. package/assets/esri/core/workers/chunks/422537fc3df707bb62c9.js +1 -0
  32. package/assets/esri/core/workers/chunks/44f0c3663b293afbd172.js +1 -0
  33. package/assets/esri/core/workers/chunks/483d5d8593d96d0f0b15.js +1 -0
  34. package/assets/esri/core/workers/chunks/{c959e0d1cf7dce0421b9.js → 48fa8aed6c24877b44c4.js} +1 -1
  35. package/assets/esri/core/workers/chunks/{44b01d42d4ec72913229.js → 4954fd86b48cc68b737c.js} +1 -1
  36. package/assets/esri/core/workers/chunks/49a1a633bb0d93764aae.js +1 -0
  37. package/assets/esri/core/workers/chunks/4ba6de8aa7e2960bad49.js +1 -0
  38. package/assets/esri/core/workers/chunks/4be35af7d6babbfe9d84.js +1 -0
  39. package/assets/esri/core/workers/chunks/5457962a70bd3c557a75.js +1 -0
  40. package/assets/esri/core/workers/chunks/57856b4a9b8784a69844.js +1 -0
  41. package/assets/esri/core/workers/chunks/{b9c177524b3e7de1ffd1.js → 5790d171072b3c7d108f.js} +1 -1
  42. package/assets/esri/core/workers/chunks/57b349d1dbc0bed75b79.js +1 -0
  43. package/assets/esri/core/workers/chunks/5bcb3240b3c005e5fe72.js +1 -0
  44. package/assets/esri/core/workers/chunks/5d11b97b667921d67ae7.js +1 -0
  45. package/assets/esri/core/workers/chunks/5dbe555a5a662ff3d9ce.js +1 -0
  46. package/assets/esri/core/workers/chunks/5ec98f4ddac707d0fbd1.js +1 -0
  47. package/assets/esri/core/workers/chunks/64b7e8d812ea8fcf269e.js +1 -0
  48. package/assets/esri/core/workers/chunks/{4c9084a04948b6924749.js → 655b55ac0cd533d7e9d7.js} +1 -1
  49. package/assets/esri/core/workers/chunks/{b0b036ad3ad3cd956747.js → 69fd99b7c76e9992ccf3.js} +1 -1
  50. package/assets/esri/core/workers/chunks/{9cdaba126ac7fa5f33f0.js → 6cd5e4380d29b9a3c344.js} +1 -1
  51. package/assets/esri/core/workers/chunks/75d812955a473d0e8960.js +1 -0
  52. package/assets/esri/core/workers/chunks/7903a3e2e0faff0f86c0.js +1 -0
  53. package/assets/esri/core/workers/chunks/{cc146c57bbdac8029fd8.js → 7a5f5acfbd4ca1a5c1f3.js} +1 -1
  54. package/assets/esri/core/workers/chunks/{64276aacaafa4c8a15bd.js → 7dcf52d3db3903c8eb9f.js} +1 -1
  55. package/assets/esri/core/workers/chunks/83d00afae4406ec78bc9.js +1 -0
  56. package/assets/esri/core/workers/chunks/{625d2663daa8e0cf64b0.js → 85b1f36790df95b17659.js} +1 -1
  57. package/assets/esri/core/workers/chunks/89820b200ee44e678af5.js +1 -0
  58. package/assets/esri/core/workers/chunks/918bb7a7d901544a7367.js +1 -0
  59. package/assets/esri/core/workers/chunks/{94b8dbf859df71858d1c.js → 929c9b7cdab7c4ca3d87.js} +1 -1
  60. package/assets/esri/core/workers/chunks/94515fb3ef38067eeadd.js +1 -0
  61. package/assets/esri/core/workers/chunks/949b2269457302ffc64b.js +1 -0
  62. package/assets/esri/core/workers/chunks/952980635afc7ec81804.js +1 -0
  63. package/assets/esri/core/workers/chunks/9876a1bae350795fab36.js +1 -0
  64. package/assets/esri/core/workers/chunks/99619fcb772807c74f3b.js +1 -0
  65. package/assets/esri/core/workers/chunks/{010a71c2aa1b7681e191.js → 9d11f84e6c893b9d0019.js} +1 -1
  66. package/assets/esri/core/workers/chunks/a1930e4f035bc9aa1ae5.js +1 -0
  67. package/assets/esri/core/workers/chunks/a8692bffb76444c34760.js +1 -0
  68. package/assets/esri/core/workers/chunks/aa04b90b82bf70caaae4.js +1 -0
  69. package/assets/esri/core/workers/chunks/aeaa1667c2d9f1b3366b.js +1 -0
  70. package/assets/esri/core/workers/chunks/b2d2de935487257c568b.js +1 -0
  71. package/assets/esri/core/workers/chunks/b3f5e91116112b0b612a.js +1 -0
  72. package/assets/esri/core/workers/chunks/b97953694f42bfec1b3c.js +1 -0
  73. package/assets/esri/core/workers/chunks/b9e9cb354822c6d995a4.js +1 -0
  74. package/assets/esri/core/workers/chunks/ba762bcfd74af0bb8218.js +1 -0
  75. package/assets/esri/core/workers/chunks/bac9fc90e6756e211160.js +1 -0
  76. package/assets/esri/core/workers/chunks/be588873c16770ceb9ef.js +1 -0
  77. package/assets/esri/core/workers/chunks/bf97a933ea3b220115e1.js +1 -0
  78. package/assets/esri/core/workers/chunks/bfedd6ebff817c9b31c0.js +1 -0
  79. package/assets/esri/core/workers/chunks/c093dff4592832ac0973.js +1 -0
  80. package/assets/esri/core/workers/chunks/c1135cb02ec46c491459.js +1 -0
  81. package/assets/esri/core/workers/chunks/c2253a9f29c1aabb2b75.js +1 -0
  82. package/assets/esri/core/workers/chunks/{d39b7983b68d6e5b404d.js → cdbc005eebec1503b99d.js} +1 -1
  83. package/assets/esri/core/workers/chunks/d04fca5d46cca02500b7.js +1 -0
  84. package/assets/esri/core/workers/chunks/d08efbc349dd9f999497.js +1 -0
  85. package/assets/esri/core/workers/chunks/d1fe53b597351dc58305.js +1 -0
  86. package/assets/esri/core/workers/chunks/{a8b13fb804bb775e4967.js → db3c729ce0c0b2690dc9.js} +1 -1
  87. package/assets/esri/core/workers/chunks/dd13772a5e2eccc6a2bc.js +1 -0
  88. package/assets/esri/core/workers/chunks/dedc333a61081772ca7b.js +1 -0
  89. package/assets/esri/core/workers/chunks/{a7b1b75643ed31489495.js → e0c8d61c7a85ce15499a.js} +1 -1
  90. package/assets/esri/core/workers/chunks/{199670a3a564ebe3bd79.js → e218bde41ffbcc5194f5.js} +1 -1
  91. package/assets/esri/core/workers/chunks/e21b211913aefde47e30.js +1 -0
  92. package/assets/esri/core/workers/chunks/e287f49184d076af17e2.js +1 -0
  93. package/assets/esri/core/workers/chunks/{bde1d5b0a7717350986e.js → e4019b63a1fe74e2c842.js} +1 -1
  94. package/assets/esri/core/workers/chunks/e8e775758b79c5a084c8.js +1 -0
  95. package/assets/esri/core/workers/chunks/e93dfdede0532a89ffa5.js +1 -0
  96. package/assets/esri/core/workers/chunks/e9e5196b44b6923be1a3.js +1 -0
  97. package/assets/esri/core/workers/chunks/ea595b0df5050eda2a13.js +1 -0
  98. package/assets/esri/core/workers/chunks/eb82ff10cef2bde6e57f.js +1 -0
  99. package/assets/esri/core/workers/chunks/ebc6f4764b82d4104c65.js +1 -0
  100. package/assets/esri/core/workers/chunks/{1305ef8717da6e902a55.js → ec10151a2a95e95a0bb5.js} +1 -1
  101. package/assets/esri/core/workers/chunks/eccba071ced2d922bb85.js +1 -0
  102. package/assets/esri/core/workers/chunks/ee6e0db58dc64410e687.js +1 -0
  103. package/assets/esri/core/workers/chunks/f0a9f161805fc7a30fc5.js +1 -0
  104. package/assets/esri/core/workers/chunks/f2124f4d0f2b8a91f0ea.js +1 -0
  105. package/assets/esri/core/workers/chunks/ff6abdc72076f3994659.js +981 -0
  106. package/assets/esri/libs/vxl/vxlLayer.wasm +0 -0
  107. package/assets/esri/themes/base/_mixins.scss +4 -1
  108. package/assets/esri/themes/base/icons/style.scss +11 -2
  109. package/assets/esri/themes/base/widgets/_BasemapLayerList.scss +13 -10
  110. package/assets/esri/themes/base/widgets/_CoordinateConversion.scss +4 -2
  111. package/assets/esri/themes/base/widgets/_Directions.scss +5 -3
  112. package/assets/esri/themes/base/widgets/_Editor.scss +5 -2
  113. package/assets/esri/themes/base/widgets/_ElevationProfile.scss +6 -4
  114. package/assets/esri/themes/base/widgets/_FeatureTable.scss +6 -0
  115. package/assets/esri/themes/base/widgets/_ItemList.scss +1 -1
  116. package/assets/esri/themes/base/widgets/_LayerList.scss +13 -9
  117. package/assets/esri/themes/base/widgets/_Popup.scss +4 -2
  118. package/assets/esri/themes/base/widgets/_Print.scss +24 -11
  119. package/assets/esri/themes/base/widgets/_Search.scss +4 -2
  120. package/assets/esri/themes/base/widgets/_TableList.scss +9 -7
  121. package/assets/esri/themes/base/widgets/_Weather.scss +12 -0
  122. package/assets/esri/themes/base/widgets/_Widget.scss +18 -9
  123. package/assets/esri/themes/dark/main.css +1 -1
  124. package/assets/esri/themes/dark-blue/main.css +1 -1
  125. package/assets/esri/themes/dark-green/main.css +1 -1
  126. package/assets/esri/themes/dark-purple/main.css +1 -1
  127. package/assets/esri/themes/dark-red/main.css +1 -1
  128. package/assets/esri/themes/light/main.css +1 -1
  129. package/assets/esri/themes/light/view.css +1 -1
  130. package/assets/esri/themes/light-blue/main.css +1 -1
  131. package/assets/esri/themes/light-green/main.css +1 -1
  132. package/assets/esri/themes/light-purple/main.css +1 -1
  133. package/assets/esri/themes/light-red/main.css +1 -1
  134. package/assets/esri/widgets/Weather/t9n/Weather.json +1 -1
  135. package/assets/esri/widgets/Weather/t9n/Weather_ar.json +1 -1
  136. package/assets/esri/widgets/Weather/t9n/Weather_bg.json +1 -1
  137. package/assets/esri/widgets/Weather/t9n/Weather_bs.json +1 -1
  138. package/assets/esri/widgets/Weather/t9n/Weather_ca.json +1 -1
  139. package/assets/esri/widgets/Weather/t9n/Weather_cs.json +1 -1
  140. package/assets/esri/widgets/Weather/t9n/Weather_da.json +1 -1
  141. package/assets/esri/widgets/Weather/t9n/Weather_de.json +1 -1
  142. package/assets/esri/widgets/Weather/t9n/Weather_el.json +1 -1
  143. package/assets/esri/widgets/Weather/t9n/Weather_en.json +1 -1
  144. package/assets/esri/widgets/Weather/t9n/Weather_es.json +1 -1
  145. package/assets/esri/widgets/Weather/t9n/Weather_et.json +1 -1
  146. package/assets/esri/widgets/Weather/t9n/Weather_fi.json +1 -1
  147. package/assets/esri/widgets/Weather/t9n/Weather_fr.json +1 -1
  148. package/assets/esri/widgets/Weather/t9n/Weather_he.json +1 -1
  149. package/assets/esri/widgets/Weather/t9n/Weather_hr.json +1 -1
  150. package/assets/esri/widgets/Weather/t9n/Weather_hu.json +1 -1
  151. package/assets/esri/widgets/Weather/t9n/Weather_id.json +1 -1
  152. package/assets/esri/widgets/Weather/t9n/Weather_it.json +1 -1
  153. package/assets/esri/widgets/Weather/t9n/Weather_ja.json +1 -1
  154. package/assets/esri/widgets/Weather/t9n/Weather_ko.json +1 -1
  155. package/assets/esri/widgets/Weather/t9n/Weather_lt.json +1 -1
  156. package/assets/esri/widgets/Weather/t9n/Weather_lv.json +1 -1
  157. package/assets/esri/widgets/Weather/t9n/Weather_nb.json +1 -1
  158. package/assets/esri/widgets/Weather/t9n/Weather_nl.json +1 -1
  159. package/assets/esri/widgets/Weather/t9n/Weather_pl.json +1 -1
  160. package/assets/esri/widgets/Weather/t9n/Weather_pt-BR.json +1 -1
  161. package/assets/esri/widgets/Weather/t9n/Weather_pt-PT.json +1 -1
  162. package/assets/esri/widgets/Weather/t9n/Weather_ro.json +1 -1
  163. package/assets/esri/widgets/Weather/t9n/Weather_ru.json +1 -1
  164. package/assets/esri/widgets/Weather/t9n/Weather_sk.json +1 -1
  165. package/assets/esri/widgets/Weather/t9n/Weather_sl.json +1 -1
  166. package/assets/esri/widgets/Weather/t9n/Weather_sr.json +1 -1
  167. package/assets/esri/widgets/Weather/t9n/Weather_sv.json +1 -1
  168. package/assets/esri/widgets/Weather/t9n/Weather_th.json +1 -1
  169. package/assets/esri/widgets/Weather/t9n/Weather_tr.json +1 -1
  170. package/assets/esri/widgets/Weather/t9n/Weather_uk.json +1 -1
  171. package/assets/esri/widgets/Weather/t9n/Weather_vi.json +1 -1
  172. package/assets/esri/widgets/Weather/t9n/Weather_zh-CN.json +1 -1
  173. package/assets/esri/widgets/Weather/t9n/Weather_zh-HK.json +1 -1
  174. package/assets/esri/widgets/Weather/t9n/Weather_zh-TW.json +1 -1
  175. package/chunks/BlendLayers.glsl.js +2 -2
  176. package/chunks/ChapmanAtmosphere.glsl.js +17 -17
  177. package/chunks/CheckerBoard.glsl.js +3 -3
  178. package/chunks/Clouds.glsl.js +2 -2
  179. package/chunks/CloudsComposition.glsl.js +1 -1
  180. package/chunks/ColorMaterial.glsl.js +12 -12
  181. package/chunks/ComponentShader.glsl.js +21 -21
  182. package/chunks/Compositing.glsl.js +1 -1
  183. package/chunks/DefaultMaterial.glsl.js +33 -33
  184. package/chunks/EdgeShaderProgram.glsl.js +7 -7
  185. package/chunks/Fog.glsl.js +10 -12
  186. package/chunks/HUDMaterial.glsl.js +2 -2
  187. package/chunks/HighlightComposition.glsl.js +5 -5
  188. package/chunks/ImageMaterial.glsl.js +6 -6
  189. package/chunks/LaserlinePath.glsl.js +8 -8
  190. package/chunks/LineCallout.glsl.js +6 -6
  191. package/chunks/MeasurementArrow.glsl.js +1 -1
  192. package/chunks/NativeLine.glsl.js +1 -1
  193. package/chunks/Path.glsl.js +5 -5
  194. package/chunks/Pattern.glsl.js +9 -9
  195. package/chunks/PointRenderer.glsl.js +14 -14
  196. package/chunks/Precipitation.glsl.js +91 -0
  197. package/chunks/RealisticTree.glsl.js +21 -21
  198. package/chunks/RibbonLine.glsl.js +11 -11
  199. package/chunks/SMAA.glsl.js +40 -40
  200. package/chunks/ShadedColorMaterial.glsl.js +12 -12
  201. package/chunks/ShadowCast.glsl.js +6 -6
  202. package/chunks/ShadowHighlight.glsl.js +4 -4
  203. package/chunks/SimpleAtmosphere.glsl.js +3 -3
  204. package/chunks/SlicePlaneMaterial.glsl.js +3 -3
  205. package/chunks/Stars.glsl.js +3 -3
  206. package/chunks/Terrain.glsl.js +3 -3
  207. package/chunks/TextureOnly.glsl.js +2 -2
  208. package/chunks/WaterSurface.glsl.js +22 -22
  209. package/chunks/boundedPlane.js +1 -1
  210. package/chunks/pe.js +1 -1
  211. package/chunks/vec3.js +1 -1
  212. package/chunks/vxlLayer.js +1 -1
  213. package/core/accessorSupport/ensureType.js +1 -1
  214. package/core/accessorSupport/get.js +1 -1
  215. package/core/accessorSupport/read.js +1 -1
  216. package/core/accessorSupport/set.js +1 -1
  217. package/core/accessorSupport/watch.js +1 -1
  218. package/core/accessorSupport/write.js +1 -1
  219. package/core/clock.js +1 -1
  220. package/core/jsonMap.js +1 -1
  221. package/core/libs/gl-matrix-2/math/vec3.js +1 -1
  222. package/core/loadAll.js +1 -1
  223. package/core/promiseUtils.js +1 -1
  224. package/core/reactiveUtils.js +1 -1
  225. package/form/ExpressionInfo.js +1 -1
  226. package/geometry/pe.js +1 -1
  227. package/geometry/support/axisAngleDegrees.js +1 -1
  228. package/geometry/support/frustum.js +1 -1
  229. package/geometry/support/plane.js +1 -1
  230. package/interfaces.d.ts +263 -35
  231. package/layers/VectorTileLayer.js +1 -1
  232. package/layers/graphics/controllers/I3SOnDemandController.js +1 -1
  233. package/layers/graphics/featureConversionUtils.js +1 -1
  234. package/layers/support/LayerContingentValuesCache.js +1 -1
  235. package/layers/support/TileInfo.js +1 -1
  236. package/layers/support/rasterDatasets/BaseRaster.js +1 -1
  237. package/layers/support/rasterFunctions/rasterProjectionHelper.js +1 -1
  238. package/package.json +2 -2
  239. package/popup/content/AttachmentsContent.js +1 -1
  240. package/popup/content/support/mediaInfoTypes.js +1 -1
  241. package/rest/print.js +1 -1
  242. package/smartMapping/statistics/support/predominanceUtils.d.ts +4 -0
  243. package/support/arcadeOnDemand.js +1 -1
  244. package/support/featureFlags.js +1 -1
  245. package/support/revision.js +1 -1
  246. package/symbols/FillSymbol3DLayer.js +1 -1
  247. package/symbols/IconSymbol3DLayer.js +1 -1
  248. package/symbols/LabelSymbol3D.js +1 -1
  249. package/symbols/ObjectSymbol3DLayer.js +1 -1
  250. package/symbols/PointSymbol3D.js +1 -1
  251. package/symbols/Symbol3D.js +1 -1
  252. package/symbols/WebStyleSymbol.js +1 -1
  253. package/symbols/cim/CIMSymbolHelper.js +1 -1
  254. package/symbols/cim/CIMSymbolRasterizer.js +1 -1
  255. package/symbols/cim/cimAnalyzer.js +1 -1
  256. package/symbols/support/IconSymbol3DLayerResource.js +1 -1
  257. package/symbols/support/ObjectSymbol3DLayerResource.js +1 -1
  258. package/symbols/support/Symbol3DAnchorPosition2D.js +1 -1
  259. package/symbols/support/Symbol3DAnchorPosition3D.js +1 -1
  260. package/symbols/support/Symbol3DFillMaterial.js +1 -1
  261. package/symbols/support/Symbol3DIconOutline.js +1 -1
  262. package/symbols/support/Symbol3DOutline.js +1 -1
  263. package/symbols/support/Symbol3DVerticalOffset.js +1 -1
  264. package/symbols/support/Thumbnail.js +1 -1
  265. package/symbols/support/previewCIMSymbol.js +1 -1
  266. package/symbols/support/previewSymbol2D.js +1 -1
  267. package/symbols/support/previewSymbol3D.js +1 -1
  268. package/symbols/support/previewWebStyleSymbol.js +1 -1
  269. package/symbols/support/svgUtils.js +1 -1
  270. package/symbols/support/webStyleSymbolUtils.js +1 -1
  271. package/symbols.js +1 -1
  272. package/views/2d/MapViewConstraints.js +1 -1
  273. package/views/2d/engine/vectorTiles/SchemaHelper.js +1 -1
  274. package/views/2d/engine/webgl/brushes/raster/BrushRasterBitmap.js +1 -1
  275. package/views/2d/engine/webgl/mesh/templates/WGLFillTemplate.js +1 -1
  276. package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
  277. package/views/2d/layers/imagery/BaseImageryTileSubView2D.js +1 -1
  278. package/views/2d/viewpointUtils.js +1 -1
  279. package/views/3d/environment/ChapmanAtmosphere.glsl.js +1 -1
  280. package/views/3d/environment/ChapmanAtmosphere.js +1 -1
  281. package/views/3d/environment/CloudsComposition.glsl.js +1 -1
  282. package/views/3d/environment/CloudsComposition.js +1 -1
  283. package/views/3d/environment/CloudsGenerator.js +1 -1
  284. package/views/3d/environment/CloudsPresets.js +1 -1
  285. package/views/3d/environment/EnvironmentRenderer.js +1 -1
  286. package/views/3d/environment/Fog.glsl.js +1 -1
  287. package/views/3d/environment/Fog.js +1 -1
  288. package/views/3d/environment/PanoramicAtmosphere.js +1 -1
  289. package/views/3d/environment/Precipitation.glsl.js +5 -0
  290. package/views/3d/environment/Precipitation.js +5 -0
  291. package/views/3d/environment/PrecipitationTechnique.js +5 -0
  292. package/views/3d/environment/RainyWeather.js +1 -1
  293. package/views/3d/environment/SceneViewEnvironmentManager.js +1 -1
  294. package/views/3d/environment/SimpleAtmosphere.glsl.js +1 -1
  295. package/views/3d/environment/SimpleAtmosphere.js +1 -1
  296. package/views/3d/environment/SnowyWeather.js +5 -0
  297. package/views/3d/environment/Stars.glsl.js +1 -1
  298. package/views/3d/environment/Stars.js +1 -1
  299. package/views/3d/environment/weather.js +1 -1
  300. package/views/3d/interactive/analysisTools/slice/SliceTool.js +1 -1
  301. package/views/3d/interactive/analysisTools/slice/sliceToolUtils.js +1 -1
  302. package/views/3d/interactive/editingTools/transformGraphic/ScaleRotateMeshAdapter.js +1 -1
  303. package/views/3d/interactive/visualElements/ExtendedLineVisualElement.js +1 -1
  304. package/views/3d/interactive/visualElements/MeasurementAreaVisualElement.js +1 -1
  305. package/views/3d/interactive/visualElements/OutlineVisualElement.js +1 -1
  306. package/views/3d/interactive/visualElements/ParallelLineVisualElement.js +1 -1
  307. package/views/3d/interactive/visualElements/PointVisualElement.js +1 -1
  308. package/views/3d/interactive/visualElements/RightAngleQuadVisualElement.js +1 -1
  309. package/views/3d/layers/FeatureLayerViewBase3D.js +1 -1
  310. package/views/3d/layers/FeatureLikeLayerView3D.js +1 -1
  311. package/views/3d/layers/GraphicsLayerView3D.js +1 -1
  312. package/views/3d/layers/GraphicsView3D.js +1 -1
  313. package/views/3d/layers/I3SMeshView3D.js +1 -1
  314. package/views/3d/layers/SceneLayerGraphicsView3D.js +1 -1
  315. package/views/3d/layers/VectorTileLayerView3D.js +1 -1
  316. package/views/3d/layers/graphics/Deconflictor.js +1 -1
  317. package/views/3d/layers/graphics/ElevationAligners.js +1 -1
  318. package/views/3d/layers/graphics/Graphics3DCore.js +1 -1
  319. package/views/3d/layers/graphics/Graphics3DExtrudeSymbolLayer.js +1 -1
  320. package/views/3d/layers/graphics/Graphics3DFeatureProcessor.js +1 -1
  321. package/views/3d/layers/graphics/Graphics3DIconSymbolLayer.js +1 -1
  322. package/views/3d/layers/graphics/Graphics3DLineCalloutSymbolLayer.js +1 -1
  323. package/views/3d/layers/graphics/Graphics3DLineSymbolLayer.js +1 -1
  324. package/views/3d/layers/graphics/Graphics3DMeshFillSymbolLayer.js +1 -1
  325. package/views/3d/layers/graphics/Graphics3DObjectSymbolLayer.js +1 -1
  326. package/views/3d/layers/graphics/Graphics3DPolygonFillSymbolLayer.js +1 -1
  327. package/views/3d/layers/graphics/Graphics3DWaterSymbolLayer.js +1 -1
  328. package/views/3d/layers/graphics/GraphicsProcessor.js +1 -1
  329. package/views/3d/layers/graphics/graphicUtils.js +1 -1
  330. package/views/3d/layers/graphics/lineUtils.js +1 -1
  331. package/views/3d/layers/graphics/objectResourceUtils.js +1 -1
  332. package/views/3d/layers/graphics/polygonUtils.js +1 -1
  333. package/views/3d/layers/graphics/symbolComplexity.js +1 -1
  334. package/views/3d/layers/i3s/I3SBinaryReader.js +1 -1
  335. package/views/3d/layers/i3s/PointRenderer.js +1 -1
  336. package/views/3d/layers/support/HeatmapFeatureProcessor.js +5 -0
  337. package/views/3d/layers/support/overlayImageUtils.js +1 -1
  338. package/views/3d/layers/support/patternUtils.js +1 -1
  339. package/views/3d/state/controllers/local/PinchAndPanController.js +1 -1
  340. package/views/3d/support/FrustumExtentIntersection.js +1 -1
  341. package/views/3d/support/LaserLineRenderer.js +1 -1
  342. package/views/3d/support/LaserlinePathData.js +1 -1
  343. package/views/3d/support/pointsOfInterest/Focus.js +1 -1
  344. package/views/3d/support/sunUtils.js +1 -1
  345. package/views/3d/terrain/OverlayRenderer.js +1 -1
  346. package/views/3d/terrain/PatchGeometryFactory.js +1 -1
  347. package/views/3d/terrain/TerrainRenderer.js +1 -1
  348. package/views/3d/terrain/TerrainSurface.js +1 -1
  349. package/views/3d/terrain/Tile.js +1 -1
  350. package/views/3d/terrain/terrainUtils.js +1 -1
  351. package/views/3d/terrain/tileUtils.js +1 -1
  352. package/views/3d/webgl-engine/collections/Component/ComponentObjectCollection.js +1 -1
  353. package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterial.js +1 -1
  354. package/views/3d/webgl-engine/collections/Component/Material/ComponentTechnique.js +1 -1
  355. package/views/3d/webgl-engine/collections/Component/Material/shader/ComponentData.glsl.js +10 -10
  356. package/views/3d/webgl-engine/collections/Component/Material/shader/ComponentShader.glsl.js +1 -1
  357. package/views/3d/webgl-engine/collections/Component/SourceGeometry.js +1 -1
  358. package/views/3d/webgl-engine/core/renderPasses/AllRenderPasses.js +1 -1
  359. package/views/3d/webgl-engine/core/renderPasses/RenderPassManager.js +1 -1
  360. package/views/3d/webgl-engine/core/shaderLibrary/ForwardLinearDepth.glsl.js +2 -2
  361. package/views/3d/webgl-engine/core/shaderLibrary/ScreenSizeScaling.glsl.js +2 -2
  362. package/views/3d/webgl-engine/core/shaderLibrary/ScreenSpacePass.js +2 -2
  363. package/views/3d/webgl-engine/core/shaderLibrary/attributes/InstancedDoublePrecision.glsl.js +2 -2
  364. package/views/3d/webgl-engine/core/shaderLibrary/attributes/NormalAttribute.glsl.js +4 -4
  365. package/views/3d/webgl-engine/core/shaderLibrary/attributes/PathVertexPosition.glsl.js +1 -1
  366. package/views/3d/webgl-engine/core/shaderLibrary/attributes/PositionAttribute.glsl.js +1 -1
  367. package/views/3d/webgl-engine/core/shaderLibrary/attributes/RibbonVertexPosition.glsl.js +1 -1
  368. package/views/3d/webgl-engine/core/shaderLibrary/attributes/SymbolColor.glsl.js +1 -1
  369. package/views/3d/webgl-engine/core/shaderLibrary/attributes/TextureCoordinateAttribute.glsl.js +3 -3
  370. package/views/3d/webgl-engine/core/shaderLibrary/attributes/VertexColor.glsl.js +1 -1
  371. package/views/3d/webgl-engine/core/shaderLibrary/attributes/VertexNormal.glsl.js +6 -6
  372. package/views/3d/webgl-engine/core/shaderLibrary/attributes/VertexPosition.glsl.js +12 -12
  373. package/views/3d/webgl-engine/core/shaderLibrary/attributes/VertexTextureCoordinates.glsl.js +4 -4
  374. package/views/3d/webgl-engine/core/shaderLibrary/attributes/VerticalOffset.glsl.js +1 -1
  375. package/views/3d/webgl-engine/core/shaderLibrary/default/DefaultMaterialAuxiliaryPasses.glsl.js +16 -16
  376. package/views/3d/webgl-engine/core/shaderLibrary/default/RealisticTree.glsl.js +1 -1
  377. package/views/3d/webgl-engine/core/shaderLibrary/hud/HUD.glsl.js +5 -5
  378. package/views/3d/webgl-engine/core/shaderLibrary/hud/HUDOcclusionPass.glsl.js +3 -3
  379. package/views/3d/webgl-engine/core/shaderLibrary/raster/BasicGrid.glsl.js +2 -2
  380. package/views/3d/webgl-engine/core/shaderLibrary/shading/ComputeMaterialColor.glsl.js +6 -6
  381. package/views/3d/webgl-engine/core/shaderLibrary/shading/ComputeNormalTexture.glsl.js +2 -2
  382. package/views/3d/webgl-engine/core/shaderLibrary/shading/ComputeShadingNormal.glsl.js +10 -11
  383. package/views/3d/webgl-engine/core/shaderLibrary/shading/LineStipple.glsl.js +2 -2
  384. package/views/3d/webgl-engine/core/shaderLibrary/shading/MultipassGeometryTest.glsl.js +2 -2
  385. package/views/3d/webgl-engine/core/shaderLibrary/shading/MultipassTerrainTest.glsl.js +2 -2
  386. package/views/3d/webgl-engine/core/shaderLibrary/shading/Normals.glsl.js +6 -6
  387. package/views/3d/webgl-engine/core/shaderLibrary/shading/ReadBaseColorTexture.glsl.js +4 -4
  388. package/views/3d/webgl-engine/core/shaderLibrary/shading/ReadShadowMap.glsl.js +6 -6
  389. package/views/3d/webgl-engine/core/shaderLibrary/shading/Reprojection.glsl.js +4 -4
  390. package/views/3d/webgl-engine/core/shaderLibrary/shading/ScreenSpaceReflections.glsl.js +5 -5
  391. package/views/3d/webgl-engine/core/shaderLibrary/shading/VisualVariables.glsl.js +1 -1
  392. package/views/3d/webgl-engine/core/shaderLibrary/shading/Water.glsl.js +22 -14
  393. package/views/3d/webgl-engine/core/shaderLibrary/terrain/Overlay.glsl.js +2 -2
  394. package/views/3d/webgl-engine/core/shaderLibrary/terrain/Terrain.glsl.js +1 -1
  395. package/views/3d/webgl-engine/core/shaderLibrary/util/BlendLayers.glsl.js +1 -1
  396. package/views/3d/webgl-engine/core/shaderLibrary/util/CloudsParallaxShading.glsl.js +4 -4
  397. package/views/3d/webgl-engine/core/shaderLibrary/util/View.glsl.js +1 -1
  398. package/views/3d/webgl-engine/lib/Camera.js +1 -1
  399. package/views/3d/webgl-engine/lib/DefaultVertexAttributeLocations.js +1 -1
  400. package/views/3d/webgl-engine/lib/DefaultVertexBufferLayouts.js +1 -1
  401. package/views/3d/webgl-engine/lib/Geometry.js +1 -1
  402. package/views/3d/webgl-engine/lib/GeometryUtil.js +1 -1
  403. package/views/3d/webgl-engine/lib/GridLocalOriginFactory.js +1 -1
  404. package/views/3d/webgl-engine/lib/MagnifierHelper.js +1 -1
  405. package/views/3d/webgl-engine/lib/Material.js +1 -1
  406. package/views/3d/webgl-engine/lib/RenderGeometry.js +1 -1
  407. package/views/3d/webgl-engine/lib/RenderPluginManager.js +1 -1
  408. package/views/3d/webgl-engine/lib/Renderer.js +1 -1
  409. package/views/3d/webgl-engine/lib/SSAOHelper.js +1 -1
  410. package/views/3d/webgl-engine/lib/ShadowAccumulator.js +1 -1
  411. package/views/3d/webgl-engine/lib/ShadowMap.js +1 -1
  412. package/views/3d/webgl-engine/lib/SmaaRenderPass.js +1 -1
  413. package/views/3d/webgl-engine/lib/TextRenderer.js +1 -1
  414. package/views/3d/webgl-engine/lib/TextTextureAtlas.js +1 -1
  415. package/views/3d/webgl-engine/lib/Texture.js +1 -1
  416. package/views/3d/{layers/graphics/IGraphics3DFeatureProcessor.js → webgl-engine/lib/TextureUniformName.js} +0 -0
  417. package/views/3d/webgl-engine/lib/UniformName.js +4 -0
  418. package/views/3d/webgl-engine/lib/VertexAttribute.js +5 -0
  419. package/views/3d/webgl-engine/lib/basicInterfaces.js +1 -1
  420. package/views/3d/webgl-engine/lib/depthRangeUtils.js +1 -1
  421. package/views/3d/webgl-engine/lib/edgeRendering/EdgeRenderer.js +1 -1
  422. package/views/3d/webgl-engine/lib/edgeRendering/EdgeShaderTechnique.js +1 -1
  423. package/views/3d/webgl-engine/lib/edgeRendering/EdgeView.js +1 -1
  424. package/views/3d/webgl-engine/lib/edgeRendering/bufferLayouts.js +1 -1
  425. package/views/3d/webgl-engine/lib/lodRendering/InstanceData.js +1 -1
  426. package/views/3d/webgl-engine/lib/lodRendering/LodRenderer.js +1 -1
  427. package/views/3d/webgl-engine/lib/lodRendering/RenderInstanceData.js +1 -1
  428. package/views/3d/webgl-engine/lib/pathGeometryUtils.js +1 -1
  429. package/views/3d/webgl-engine/materials/CheckerBoardMaterial.js +1 -1
  430. package/views/3d/webgl-engine/materials/ColorMaterial.js +1 -1
  431. package/views/3d/webgl-engine/materials/DefaultMaterial.js +1 -1
  432. package/views/3d/webgl-engine/materials/HUDMaterial.js +1 -1
  433. package/views/3d/webgl-engine/materials/ImageMaterial.js +1 -1
  434. package/views/3d/webgl-engine/materials/LineCalloutMaterial.js +1 -1
  435. package/views/3d/webgl-engine/materials/MeasurementArrowMaterial.js +1 -1
  436. package/views/3d/webgl-engine/materials/NativeLineMaterial.js +1 -1
  437. package/views/3d/webgl-engine/materials/PathMaterial.js +1 -1
  438. package/views/3d/webgl-engine/materials/PathTechnique.js +1 -1
  439. package/views/3d/webgl-engine/materials/PatternMaterial.js +1 -1
  440. package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
  441. package/views/3d/webgl-engine/materials/ShadedColorMaterial.js +1 -1
  442. package/views/3d/webgl-engine/materials/SlicePlaneMaterial.js +1 -1
  443. package/views/3d/webgl-engine/materials/VisualVariableMaterialParameters.js +1 -1
  444. package/views/3d/webgl-engine/materials/WaterTechnique.js +1 -1
  445. package/views/3d/webgl-engine/materials/internal/DefaultBufferWriter.js +1 -1
  446. package/views/3d/webgl-engine/materials/internal/MaterialUtil.js +1 -1
  447. package/views/3d/webgl-engine/materials/internal/bufferWriterUtils.js +1 -1
  448. package/views/3d/webgl-engine/materials/internal/waterMaterialUtils.js +1 -1
  449. package/views/3d/webgl-engine/parts/Model.js +1 -1
  450. package/views/3d/webgl-engine/shaders/CheckerBoard.glsl.js +1 -1
  451. package/views/3d/webgl-engine/shaders/CheckerBoardTechnique.js +1 -1
  452. package/views/3d/webgl-engine/shaders/ColorMaterial.glsl.js +1 -1
  453. package/views/3d/webgl-engine/shaders/ColorMaterialTechnique.js +1 -1
  454. package/views/3d/webgl-engine/shaders/DefaultMaterial.glsl.js +1 -1
  455. package/views/3d/webgl-engine/shaders/DefaultMaterialTechnique.js +1 -1
  456. package/views/3d/webgl-engine/shaders/HUDMaterial.glsl.js +1 -1
  457. package/views/3d/webgl-engine/shaders/HUDMaterialTechnique.js +1 -1
  458. package/views/3d/webgl-engine/shaders/HighlightComposition.glsl.js +1 -1
  459. package/views/3d/webgl-engine/shaders/HighlightTechnique.js +1 -1
  460. package/views/3d/webgl-engine/shaders/ImageMaterial.glsl.js +1 -1
  461. package/views/3d/webgl-engine/shaders/ImageMaterialTechnique.js +1 -1
  462. package/views/3d/webgl-engine/shaders/LaserlinePath.glsl.js +1 -1
  463. package/views/3d/webgl-engine/shaders/LaserlinePathTechnique.js +1 -1
  464. package/views/3d/webgl-engine/shaders/LineCallout.glsl.js +1 -1
  465. package/views/3d/webgl-engine/shaders/LineCalloutTechnique.js +1 -1
  466. package/views/3d/webgl-engine/shaders/Magnifier.glsl.js +1 -1
  467. package/views/3d/webgl-engine/shaders/MeasurementArrow.glsl.js +1 -1
  468. package/views/3d/webgl-engine/shaders/NativeLine.glsl.js +1 -1
  469. package/views/3d/webgl-engine/shaders/Pattern.glsl.js +1 -1
  470. package/views/3d/webgl-engine/shaders/PatternTechnique.js +1 -1
  471. package/views/3d/webgl-engine/shaders/PointRenderer.glsl.js +1 -1
  472. package/views/3d/webgl-engine/shaders/RealisticTreeTechnique.js +1 -1
  473. package/views/3d/webgl-engine/shaders/RibbonLine.glsl.js +1 -1
  474. package/views/3d/webgl-engine/shaders/RibbonLineTechnique.js +1 -1
  475. package/views/3d/webgl-engine/shaders/SMAA.glsl.js +1 -1
  476. package/views/3d/webgl-engine/shaders/ShadedColorMaterial.glsl.js +1 -1
  477. package/views/3d/webgl-engine/shaders/ShadedColorMaterialTechnique.js +1 -1
  478. package/views/3d/webgl-engine/shaders/ShadowCastTechnique.js +1 -1
  479. package/views/3d/webgl-engine/shaders/ShadowHighlightTechnique.js +1 -1
  480. package/views/3d/webgl-engine/shaders/SlicePlaneMaterial.glsl.js +1 -1
  481. package/views/3d/webgl-engine/shaders/WaterSurface.glsl.js +1 -1
  482. package/views/3d/webgl-engine/shaders/sources/edgeRenderer/AdjustProjectedPosition.glsl.js +10 -10
  483. package/views/3d/webgl-engine/shaders/sources/edgeRenderer/DiscardShortEdges.glsl.js +1 -1
  484. package/views/3d/webgl-engine/shaders/sources/edgeRenderer/EdgeShaderProgram.glsl.js +1 -1
  485. package/views/3d/webgl-engine/shaders/sources/edgeRenderer/EdgeUtil.glsl.js +21 -21
  486. package/views/3d/webgl-engine/shaders/sources/edgeRenderer/LineAmplitude.glsl.js +6 -6
  487. package/views/3d/webgl-engine/shaders/sources/edgeRenderer/LineOffset.glsl.js +13 -13
  488. package/views/3d/webgl-engine/shaders/sources/edgeRenderer/UnpackAttributes.glsl.js +6 -6
  489. package/views/MapView.js +1 -1
  490. package/views/SceneView.js +1 -1
  491. package/views/View.js +1 -1
  492. package/views/input/recognizers/DoubleTapDrag.js +1 -1
  493. package/views/input/recognizers/ImmediateDoubleClick.js +1 -1
  494. package/views/input/recognizers/PointerClickHoldAndDrag.js +1 -1
  495. package/views/input/recognizers/SingleAndDoubleClick.js +1 -1
  496. package/views/interactive/dragEventPipeline.js +1 -1
  497. package/views/interactive/editGeometry/operations/OffsetEdgeVertex.js +1 -1
  498. package/views/support/DefaultsFromMap.js +1 -1
  499. package/views/support/WatchUpdatingTracking.js +1 -1
  500. package/views/support/projectionUtils.js +5 -0
  501. package/views/webgl/BufferObject.js +1 -1
  502. package/views/webgl/InstanceCounter.js +1 -1
  503. package/views/webgl/Program.js +1 -1
  504. package/views/webgl/rasterUtils.js +1 -1
  505. package/widgets/AreaMeasurement3D/AreaMeasurement3DViewModel.js +1 -1
  506. package/widgets/Attachments.js +1 -1
  507. package/widgets/BasemapGallery/BasemapGalleryViewModel.js +1 -1
  508. package/widgets/BasemapGallery/support/BasemapGalleryItem.js +1 -1
  509. package/widgets/BasemapGallery/support/basemapCompatibilityUtils.js +1 -1
  510. package/widgets/BasemapGallery.js +1 -1
  511. package/widgets/DirectLineMeasurement3D/DirectLineMeasurement3DViewModel.js +1 -1
  512. package/widgets/FeatureForm/InputField.js +1 -1
  513. package/widgets/FeatureTable/FeatureTableViewModel.js +1 -1
  514. package/widgets/FeatureTable/Grid/Grid.js +1 -1
  515. package/widgets/FeatureTable.js +1 -1
  516. package/widgets/FeatureTemplates/FeatureTemplatesViewModel.js +1 -1
  517. package/widgets/LineOfSight/LineOfSightViewModel.js +1 -1
  518. package/widgets/Popup/PopupViewModel.js +1 -1
  519. package/widgets/Popup/actionUtils.js +1 -1
  520. package/widgets/Search/support/locatorUtils.js +1 -1
  521. package/widgets/Search.js +1 -1
  522. package/widgets/Slice/SliceViewModel.js +1 -1
  523. package/widgets/Slider/SliderViewModel.js +1 -1
  524. package/widgets/Slider.js +1 -1
  525. package/widgets/Weather/WeatherViewModel.js +1 -1
  526. package/widgets/Weather/css.js +1 -1
  527. package/widgets/Weather/enums.js +5 -0
  528. package/widgets/Weather.js +1 -1
  529. package/widgets/support/InteractiveAnalysisViewModel.js +1 -1
  530. package/widgets/support/InteractiveToolViewModel.js +1 -1
  531. package/assets/components/assets/calcite-icon/checkSquareF16.json +0 -1
  532. package/assets/components/assets/calcite-icon/checkSquareF24.json +0 -1
  533. package/assets/components/assets/calcite-icon/checkSquareF32.json +0 -1
  534. package/assets/components/assets/calcite-icon/lineSolid4.json +0 -1
  535. package/assets/components/assets/calcite-icon/squareF16.json +0 -1
  536. package/assets/components/assets/calcite-icon/squareF24.json +0 -1
  537. package/assets/components/assets/calcite-icon/squareF32.json +0 -1
  538. package/assets/components/assets/calcite-icon/xHexagon16.json +0 -1
  539. package/assets/components/assets/calcite-icon/xHexagon24.json +0 -1
  540. package/assets/components/assets/calcite-icon/xHexagon32.json +0 -1
  541. package/assets/components/assets/calcite-icon/xHexagonF16.json +0 -1
  542. package/assets/components/assets/calcite-icon/xHexagonF24.json +0 -1
  543. package/assets/components/assets/calcite-icon/xHexagonF32.json +0 -1
  544. package/assets/components/assets/calcite-icon/xOctagonF16.json +0 -1
  545. package/assets/components/assets/calcite-icon/xOctagonF24.json +0 -1
  546. package/assets/components/assets/calcite-icon/xOctagonF32.json +0 -1
  547. package/assets/esri/core/workers/chunks/09da224052976e290828.js +0 -1
  548. package/assets/esri/core/workers/chunks/0bf079e752ab79468478.js +0 -1
  549. package/assets/esri/core/workers/chunks/0c3e3a5baf54bd5e210c.js +0 -1
  550. package/assets/esri/core/workers/chunks/14bef72154b3a19561a7.js +0 -1
  551. package/assets/esri/core/workers/chunks/18668dc45eb9e35530df.js +0 -1
  552. package/assets/esri/core/workers/chunks/1e4d37c2b9dc83d20a11.js +0 -1
  553. package/assets/esri/core/workers/chunks/20411bb8e04703962ce6.js +0 -1
  554. package/assets/esri/core/workers/chunks/208a7e24e19fc5633dd7.js +0 -1
  555. package/assets/esri/core/workers/chunks/22b09e276c9b9f22f0f8.js +0 -1
  556. package/assets/esri/core/workers/chunks/23745a5ab47c840dc452.js +0 -1
  557. package/assets/esri/core/workers/chunks/2416f8bf8bbd2ec786ab.js +0 -1
  558. package/assets/esri/core/workers/chunks/25a3e9bc0b4c7e0d3165.js +0 -1
  559. package/assets/esri/core/workers/chunks/2e445a8735ea2adb641a.js +0 -1
  560. package/assets/esri/core/workers/chunks/32f8c4af7e70ebdcb19e.js +0 -1
  561. package/assets/esri/core/workers/chunks/36a3f6fb4d1d18fcb642.js +0 -1
  562. package/assets/esri/core/workers/chunks/390d9021169e65c10eb8.js +0 -1
  563. package/assets/esri/core/workers/chunks/3a9740dccda6a733313c.js +0 -1
  564. package/assets/esri/core/workers/chunks/3aa4194dc5497c57647f.js +0 -1
  565. package/assets/esri/core/workers/chunks/40a1e713f63ec77110c0.js +0 -1
  566. package/assets/esri/core/workers/chunks/43cdff2418325e163420.js +0 -1
  567. package/assets/esri/core/workers/chunks/4bfbf5a34c9207fdcf44.js +0 -1
  568. package/assets/esri/core/workers/chunks/5383a8f3e4ec1a8a4fcd.js +0 -1
  569. package/assets/esri/core/workers/chunks/5538639a49c7cc2eca63.js +0 -1
  570. package/assets/esri/core/workers/chunks/5a4a5585ec8027079f32.js +0 -1
  571. package/assets/esri/core/workers/chunks/5d4863a92b03bebc1b54.js +0 -1
  572. package/assets/esri/core/workers/chunks/60371c0f750cde87656d.js +0 -1
  573. package/assets/esri/core/workers/chunks/634b5ccd7a3ac67f855d.js +0 -1
  574. package/assets/esri/core/workers/chunks/662d13f68cf3ec92439b.js +0 -1
  575. package/assets/esri/core/workers/chunks/663ad15b86936eb06b69.js +0 -1
  576. package/assets/esri/core/workers/chunks/67162b3e2cc1b5dc6818.js +0 -1
  577. package/assets/esri/core/workers/chunks/739e579150bf466d43ae.js +0 -1
  578. package/assets/esri/core/workers/chunks/74df1f3e1e2e524a89d2.js +0 -1
  579. package/assets/esri/core/workers/chunks/76eef4799f6c5fff7e2d.js +0 -1
  580. package/assets/esri/core/workers/chunks/7baf6b1f3f050aa67ae4.js +0 -1
  581. package/assets/esri/core/workers/chunks/7bc5cc5dbf1b7b70ddac.js +0 -1
  582. package/assets/esri/core/workers/chunks/85e27fd949475f9a6bbc.js +0 -1
  583. package/assets/esri/core/workers/chunks/8967288145f8fbd20e7d.js +0 -1
  584. package/assets/esri/core/workers/chunks/8b6ab6202a40fe622833.js +0 -1
  585. package/assets/esri/core/workers/chunks/96ab518eb6ba11333dee.js +0 -1
  586. package/assets/esri/core/workers/chunks/9796d54ff12b6429164a.js +0 -1
  587. package/assets/esri/core/workers/chunks/99a777693e4539f0b03b.js +0 -1
  588. package/assets/esri/core/workers/chunks/9cb2ae42a8e328b1d98d.js +0 -1
  589. package/assets/esri/core/workers/chunks/9d3c58a0ef634d95b7bd.js +0 -1
  590. package/assets/esri/core/workers/chunks/a6ff3db3493543df81bc.js +0 -1
  591. package/assets/esri/core/workers/chunks/a8c13529367c037cdd94.js +0 -1
  592. package/assets/esri/core/workers/chunks/a96afc176041f698c7a1.js +0 -1
  593. package/assets/esri/core/workers/chunks/aa861b8eae6c85f3dad4.js +0 -1
  594. package/assets/esri/core/workers/chunks/ac8dca61ade28c542ae2.js +0 -1
  595. package/assets/esri/core/workers/chunks/ad081d8e49e7f90c3c26.js +0 -1
  596. package/assets/esri/core/workers/chunks/afa6912454f2a5ffadce.js +0 -1
  597. package/assets/esri/core/workers/chunks/b2beb6e1fd2ee6503830.js +0 -1
  598. package/assets/esri/core/workers/chunks/ba615f118a3a8970ef25.js +0 -1
  599. package/assets/esri/core/workers/chunks/ba6654a885be4b7a43f0.js +0 -1
  600. package/assets/esri/core/workers/chunks/bab1cfd0a901181622af.js +0 -1
  601. package/assets/esri/core/workers/chunks/be2b7cce79fd41627931.js +0 -1
  602. package/assets/esri/core/workers/chunks/c080114a69fa95b88d22.js +0 -1
  603. package/assets/esri/core/workers/chunks/c11474b702dfb94e8e87.js +0 -1
  604. package/assets/esri/core/workers/chunks/c13dfdd548dcb1bdb294.js +0 -1
  605. package/assets/esri/core/workers/chunks/c6bd943fe8fd13bb4806.js +0 -1
  606. package/assets/esri/core/workers/chunks/c6f94b92e866b881d9b9.js +0 -1
  607. package/assets/esri/core/workers/chunks/ca2f5faa01d99c21ec14.js +0 -1
  608. package/assets/esri/core/workers/chunks/cd7d83d127e085d52584.js +0 -1
  609. package/assets/esri/core/workers/chunks/cef4af64860ebbfc1c47.js +0 -1
  610. package/assets/esri/core/workers/chunks/cfbffa429d88e7709c3f.js +0 -1
  611. package/assets/esri/core/workers/chunks/d24c4fbc567486b1188f.js +0 -1
  612. package/assets/esri/core/workers/chunks/d52108864136c5a8a618.js +0 -1
  613. package/assets/esri/core/workers/chunks/da1c2873bdbc0956dca0.js +0 -1
  614. package/assets/esri/core/workers/chunks/de03439ca2c9782bf325.js +0 -1
  615. package/assets/esri/core/workers/chunks/de6cff7b6cbbf99b20d1.js +0 -981
  616. package/assets/esri/core/workers/chunks/e079cb1d53aca15b7df2.js +0 -1
  617. package/assets/esri/core/workers/chunks/e59764ee8cf25d4f74e2.js +0 -1
  618. package/assets/esri/core/workers/chunks/e6df9839b551569fbc62.js +0 -1
  619. package/assets/esri/core/workers/chunks/e97e986120aaadad7d4c.js +0 -1
  620. package/assets/esri/core/workers/chunks/f467c8f1fce22f6f599c.js +0 -1
  621. package/assets/esri/core/workers/chunks/f678293de9a6d8f5b5db.js +0 -1
  622. package/assets/esri/core/workers/chunks/f8e7755240a94b499e1f.js +0 -1
  623. package/assets/esri/core/workers/chunks/fd3e5d823dc7917f4b8f.js +0 -1
  624. package/assets/esri/core/workers/chunks/ffaf091c6023225cf5aa.js +0 -1
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3516,6006],{1692:(e,t,r)=>{r.d(t,{Z:()=>_});var n=r(43697),s=r(66577),i=r(51773),o=r(78223),a=r(15923),l=(r(80442),r(22974)),u=r(92604),c=r(70586),d=r(31263),p=r(1153),h=r(52011);u.Z.getLogger("esri.core.Clonable");const f=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,r=e.store,n={},s=new Map;for(const e in t){const i=t[e],o=null==r?void 0:r.originOf(e);if(i.readOnly||!1===i.clonable||o!==d.s3.USER&&o!==d.s3.DEFAULTS)continue;const a=this[e];let u=null;const c=i.clonable;u="function"==typeof c?c(a):"reference"===c?a:(0,l.Vo)(a),null!=a&&null==u||(o===d.s3.DEFAULTS?s.set(e,u):n[e]=u)}const i=new(0,Object.getPrototypeOf(this).constructor)(n);if(s.size){var o;const e=null==(o=(0,p.vw)(i))?void 0:o.store;if(e)for(const[t,r]of s)e.set(t,r,d.s3.DEFAULTS)}return i}};return t=(0,n._)([(0,h.j)("esri.core.Clonable")],t),t};let m=class extends(f(a.Z)){};m=(0,n._)([(0,h.j)("esri.core.Clonable")],m);var y=r(96674),g=r(99001),b=r(5600),v=(r(67676),r(75215),r(33955));let w=class extends(f(y.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,r,n){return e&&!e.declaredClass?e:{geometry:e,symbol:t,attributes:r,popupTemplate:n}}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 r=this.getAttribute(e);this.attributes[e]=t,this._notifyLayer("attributes",r,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,r,n){if(!this.layer||!("graphicChanged"in this.layer))return;const s={graphic:this,property:e,oldValue:t,newValue:r};"attributes"===e&&(s.attributeName=n),this.layer.graphicChanged(s)}};(0,n._)([(0,b.Cb)({value:null})],w.prototype,"attributes",null),(0,n._)([(0,b.Cb)({value:null,types:s.qM,json:{read:v.im}})],w.prototype,"geometry",null),(0,n._)([(0,b.Cb)({type:Boolean})],w.prototype,"isAggregate",void 0),(0,n._)([(0,b.Cb)({clonable:"reference"})],w.prototype,"layer",void 0),(0,n._)([(0,b.Cb)({type:i.Z})],w.prototype,"popupTemplate",void 0),(0,n._)([(0,b.Cb)({clonable:"reference"})],w.prototype,"sourceLayer",void 0),(0,n._)([(0,b.Cb)({value:null,types:o.LB})],w.prototype,"symbol",null),(0,n._)([(0,b.Cb)({type:Boolean,value:!0})],w.prototype,"visible",null),w=(0,n._)([(0,h.j)("esri.Graphic")],w),(w||(w={})).generateUID=g.D;const _=w},3920:(e,t,r)=>{r.d(t,{r:()=>c,p:()=>u});var n=r(43697),s=r(15923),i=r(61247),o=r(5600),a=r(52011),l=r(89749);const u=e=>{let t=class extends e{destroy(){var e,t;this.destroyed||(null==(e=this._get("handles"))||e.destroy(),null==(t=this._get("updatingHandles"))||t.destroy())}get handles(){return this._get("handles")||new i.Z}get updatingHandles(){return this._get("updatingHandles")||new l.t}};return(0,n._)([(0,o.Cb)({readOnly:!0})],t.prototype,"handles",null),(0,n._)([(0,o.Cb)({readOnly:!0})],t.prototype,"updatingHandles",null),t=(0,n._)([(0,a.j)("esri.core.HandleOwner")],t),t};let c=class extends(u(s.Z)){};c=(0,n._)([(0,a.j)("esri.core.HandleOwner")],c)},36030:(e,t,r)=>{r.d(t,{J:()=>i});var n=r(35454),s=r(5600);function i(e,t={}){var r;const i=e instanceof n.X?e:new n.X(e,t),o={type:null==(r=null==t?void 0:t.ignoreUnknown)||r?i.apiValues:String,json:{type:i.jsonValues,read:(null==t||!t.readOnly)&&{reader:i.read},write:{writer:i.write}}};return void 0!==(null==t?void 0:t.readOnly)&&(o.readOnly=!!t.readOnly),void 0!==(null==t?void 0:t.default)&&(o.json.default=t.default),void 0!==(null==t?void 0:t.name)&&(o.json.name=t.name),(0,s.Cb)(o)}},74085:(e,t,r)=>{function n(e){}r.d(t,{Bg:()=>n}),r(80442)},91460:(e,t,r)=>{function n(e){return e&&("function"==typeof e.on||"function"==typeof e.addEventListener)}function s(e,t,r){if(!n(e))throw new TypeError("target is not a Evented or EventTarget object");if("on"in e)return e.on(t,r);if(Array.isArray(t)){const n=t.slice();for(const t of n)e.addEventListener(t,r);return{remove(){for(const t of n)e.removeEventListener(t,r)}}}return e.addEventListener(t,r),{remove(){e.removeEventListener(t,r)}}}function i(e,t,r){if(!n(e))throw new TypeError("target is not a Evented or EventTarget object");if("once"in e)return e.once(t,r);const i=s(e,t,(t=>{i.remove(),r.call(e,t)}));return{remove(){i.remove()}}}r.d(t,{vT:()=>n,on:()=>s,IH:()=>i})},95330:(e,t,r)=>{r.d(t,{e4:()=>P,$6:()=>l,Ue:()=>u,zE:()=>c,dD:()=>_,hh:()=>F,vr:()=>T,Ds:()=>x,as:()=>S,WW:()=>C,R8:()=>w,D_:()=>v,Hc:()=>h,y8:()=>E,fu:()=>y,$F:()=>g,d1:()=>O,DB:()=>I,r9:()=>f,k_:()=>d,H9:()=>m,Yn:()=>U,gx:()=>k,Hl:()=>b});const n=(s=globalThis,{setTimeout:(e,t)=>{const r=s.setTimeout(e,t);return{remove:()=>s.clearTimeout(r)}}});var s,i=r(20102),o=r(91460),a=(r(92604),r(70586));function l(e){return Promise.all(e)}function u(e){return new Promise(((t,r)=>{try{e(t,r)}catch(e){Promise.resolve().then((()=>r(e)))}}))}function c(e="Aborted"){return new i.Z("AbortError",e)}function d(e,t="Aborted"){if(h(e))throw c(t)}function p(e){return(0,a.pC)(e)?"aborted"in e?e:e.signal:e}function h(e){const t=p(e);return(0,a.pC)(t)&&t.aborted}function f(e){if(v(e))throw e}function m(e){if(!v(e))throw e}function y(e,t){const r=p(e);if(!(0,a.Wi)(r)){if(!r.aborted)return(0,o.IH)(r,"abort",(()=>t()));t()}}function g(e,t){const r=p(e);if(!(0,a.Wi)(r))return d(r),(0,o.IH)(r,"abort",(()=>t(c())))}function b(e,t){const r=p(t);return(0,a.Wi)(r)?e:new Promise(((r,n)=>{let s=y(t,(()=>n(c())));const i=()=>s=(0,a.hw)(s);e.then(i,i),e.then(r,n)}))}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,r)=>{e={promise:void 0,resolve:t,reject:r}}));return e.promise=t,e}function S(e){if(!e)return;if("function"!=typeof e.forEach){const t=Object.keys(e);return S(t.map((t=>e[t]))).then((e=>{const r={};return t.forEach(((t,n)=>r[t]=e[n])),r}))}const t=e;return u((e=>{const r=[];let n=t.length;0===n&&e(r),t.forEach((t=>{const s={promise:t||Promise.resolve(t)};r.push(s),s.promise.then((e=>{s.value=e})).catch((e=>{s.error=e})).then((()=>{--n,0===n&&e(r)}))}))}))}function C(e){return S(e).then((e=>e.filter((e=>!!e.value)).map((e=>e.value))))}function O(e){return Promise.reject(e)}function I(e){return Promise.resolve(e)}function P(e,t,r){const n=new AbortController;return y(r,(()=>n.abort())),new Promise(((r,s)=>{let i=setTimeout((()=>{i=0,r(t)}),e);y(n,(()=>{i&&(clearTimeout(i),s(c()))}))}))}function E(e){return e&&"function"==typeof e.then}function k(e){return E(e)?e:Promise.resolve(e)}function x(e,t=-1){let r,n,s,i,o=null;const l=(...u)=>{if(r){n=u,i&&i.reject(c()),i=_();const e=(0,a.j0)(i.promise);if(o){const e=o;o=null,e.abort()}return e}if(s=i||_(),i=null,t>0){const n=new AbortController;r=k(e(...u,n.signal));const s=r;P(t).then((()=>{r===s&&(i?n.abort():o=n)}))}else r=1,r=k(e(...u));const d=()=>{const e=n;n=s=r=o=null,null!=e&&l(...e)},p=r,h=s;return p.then(d,d),p.then(h.resolve,h.reject),(0,a.j0)(h.promise)};return l}function F(){let e,t;const r=new Promise(((r,n)=>{e=r,t=n})),s=t=>{e(t)};return s.resolve=t=>e(t),s.reject=e=>t(e),s.timeout=(e,t)=>n.setTimeout((()=>s.reject(t)),e),s.promise=r,s}function T(e,t){let r,n=new AbortController;const s=e(n.signal);let i={promise:s,finished:!1,abort:()=>{n&&(n.abort(),n=null)}};const o=()=>{i&&(i.finished=!0,i=null),(0,a.pC)(r)&&(r.remove(),r=null),n=null};return s.then(o,o),r=y(t,(()=>{(0,a.pC)(i)&&i.abort()})),i}function U(e){return Promise.resolve().then((()=>{d(e)}))}},67900:(e,t,r)=>{r.d(t,{gV:()=>j,En:()=>C,Z7:()=>x,c9:()=>k,_R:()=>P,qE:()=>U,cM:()=>E,hd:()=>c,ty:()=>O,Jo:()=>A,$C:()=>I}),r(80442);var n=r(35454),s=r(70586),i=r(24678),o=r(82971),a=r(68441),l=r(8744),u=r(58116);const c=39.37,d=a.sv.radius*Math.PI/200,p=/UNIT\[([^\]]+)\]\]$/i,h=u.Z,f=/UNIT\[([^\]]+)\]/i,m=new Set([4261,4305,4807,4810,4811,4812,4816,4819,4821,4901,4902,37225,104139,104140]),y=(0,n.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"}),g=e=>e*e,b=e=>e*e*e,v={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:g(.001)},"square-centimeters":{inBaseUnits:g(.01)},"square-decimeters":{inBaseUnits:g(.1)},"square-meters":{inBaseUnits:1},"square-kilometers":{inBaseUnits:g(1e3)},"square-inches":{inBaseUnits:g(.0254)},"square-feet":{inBaseUnits:g(.3048)},"square-yards":{inBaseUnits:g(.9144)},"square-miles":{inBaseUnits:g(1609.344)},"square-us-feet":{inBaseUnits:g(1200/3937)},acres:{inBaseUnits:.0015625*g(1609.344)},ares:{inBaseUnits:100},hectares:{inBaseUnits:1e4}}},volume:{baseUnit:"liters",units:{liters:{inBaseUnits:1},"cubic-millimeters":{inBaseUnits:1e3*b(.001)},"cubic-centimeters":{inBaseUnits:1e3*b(.01)},"cubic-decimeters":{inBaseUnits:1e3*b(.1)},"cubic-meters":{inBaseUnits:1e3},"cubic-kilometers":{inBaseUnits:1e3*b(1e3)},"cubic-inches":{inBaseUnits:1e3*b(.0254)},"cubic-feet":{inBaseUnits:1e3*b(.3048)},"cubic-yards":{inBaseUnits:1e3*b(.9144)},"cubic-miles":{inBaseUnits:1e3*b(1609.344)}}},angle:{baseUnit:"radians",units:{radians:{inBaseUnits:1},degrees:{inBaseUnits:Math.PI/180}}}},w=function(){const e={};for(const t in v)for(const r in v[t].units)e[r]=t;return e}();function _(e){const t=w[e];if(t)return t;throw new Error("unknown measure")}function S(e,t=null){return t=t||_(e),v[t].baseUnit===e}function C(e,t,r){if(t===r)return e;const n=_(t);if(n!==_(r))throw new Error("incompatible units");const s=S(t,n)?e:function(e,t,r){return e*v[r].units[t].inBaseUnits}(e,t,n);return S(r,n)?s:function(e,t,r){return e/v[r].units[t].inBaseUnits}(s,r,n)}function O(e,t,r){return C(e,t,"meters")/(r*Math.PI/180)}function I(e){return y.fromJSON(e.toLowerCase())||null}function P(e){if(e&&"object"==typeof e&&!(0,l.N$)(e))return 1;const t=k(e);return t>1e5?1:t}function E(e){return k(e)>=(e instanceof o.Z?(0,i.Iu)(e).metersPerDegree:1e5)?"meters":U(e)}function k(e,t=a.sv.metersPerDegree){return x(e,!0)||t}function x(e,t=!1){let r,n,s=null;if(null!=e&&("object"==typeof e?(r=e.wkid,n=e.wkt):"number"==typeof e?r=e:"string"==typeof e&&(n=e)),r){if((0,l.o$)(r))return a.yr.metersPerDegree;if((0,l.ME)(r))return a.Z1.metersPerDegree;s=h.values[h[r]],!s&&t&&m.has(r)&&(s=d)}else n&&(N(n)?s=F(p.exec(n),s):R(n)&&(s=F(f.exec(n),s)));return s}function F(e,t){return e&&e[1]?T(e[1]):t}function T(e){return parseFloat(e.split(",")[1])}function U(e){let t,r,n=null;if(null!=e&&("object"==typeof e?(t=e.wkid,r=e.wkt):"number"==typeof e?t=e:"string"==typeof e&&(r=e)),t)n=h.units[h[t]];else if(r){const e=N(r)?p:R(r)?f:null;if(e){const t=e.exec(r);t&&t[1]&&(n=function(e){const t=/[\\"\\']{1}([^\\"\\']+)/.exec(e);let r=t&&t[1];if(!r||-1===h.units.indexOf(r)){const t=T(e);r=null;const n=h.values;for(let e=0;e<n.length;++e)if(Math.abs(t-n[e])<1e-7){r=h.units[e];break}}return r}(t[1]))}}return(0,s.pC)(n)?I(n):null}function R(e){return/^GEOCCS/i.test(e)}function N(e){return/^PROJCS/i.test(e)}const L={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"},M={esriCentimeters:"centimeters",esriDecimeters:"decimeters",esriFeet:"feet",esriInches:"inches",esriKilometers:"kilometers",esriMeters:"meters",esriMiles:"miles",esriMillimeters:"millimeters",esriNauticalMiles:"nautical-miles",esriYards:"yards"},j=(0,n.w)()(L),A=(0,n.w)()(M);(0,n.w)()({...L,...M})},17452:(e,t,r)=>{r.d(t,{R9:()=>b,qg:()=>x,tD:()=>R,ZN:()=>pe,fl:()=>he,Ie:()=>ue,sJ:()=>Q,AH:()=>H,io:()=>K,L:()=>C,TI:()=>S,vt:()=>ae,oh:()=>j,P$:()=>J,Ml:()=>fe,ed:()=>N,b7:()=>k,D6:()=>A,tm:()=>L,YP:()=>G,jc:()=>W,HK:()=>z,$U:()=>re,oC:()=>ee,kl:()=>q,v_:()=>B,hF:()=>$,_l:()=>X,PF:()=>D,Fv:()=>V,B7:()=>E,u0:()=>I,Yd:()=>oe,Hu:()=>de,Qj:()=>le,hO:()=>ne,mN:()=>O});var n=r(68773),s=r(20102),i=r(92604),o=r(70586);const a=i.Z.getLogger("esri.core.urlUtils"),l=n.Z.request,u="esri/config: esriConfig.request.proxyUrl is not set.",c=/^\s*[a-z][a-z0-9-+.]*:(?![0-9])/i,d=/^\s*http:/i,p=/^\s*https:/i,h=/^\s*file:/i,f=/:\d+$/,m=/^https?:\/\/[^/]+\.arcgis.com\/sharing(\/|$)/i,y=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,o.j0)(this.uri.match(y));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,o.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(n.Z.applicationUrl);let _=function(){const e=(0,o.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 S=()=>w,C=()=>_;function O(e){const t={path:null,query:null},r=new b(e),n=e.indexOf("?");return null===r.query?t.path=e:(t.path=e.substring(0,n),t.query=I(r.query)),r.fragment&&(t.hash=r.fragment,null===r.query&&(t.path=t.path.substring(0,t.path.length-(r.fragment.length+1)))),t}function I(e){const t=e.split("&"),r={};for(const e of t){if(!e)continue;const t=e.indexOf("=");let n,s;t<0?(n=decodeURIComponent(e),s=""):(n=decodeURIComponent(e.slice(0,t)),s=decodeURIComponent(e.slice(t+1)));let i=r[n];"string"==typeof i&&(i=r[n]=[i]),Array.isArray(i)?i.push(s):r[n]=s}return r}function P(e){return e&&"object"==typeof e&&"toJSON"in e&&"function"==typeof e.toJSON}function E(e,t){return e?t&&"function"==typeof t?Object.keys(e).map((r=>encodeURIComponent(r)+"="+encodeURIComponent(t(r,e[r])))).join("&"):Object.keys(e).map((r=>{const n=e[r];if(null==n)return"";const s=encodeURIComponent(r)+"=",i=t&&t[r];return i?s+encodeURIComponent(i(n)):Array.isArray(n)?n.map((e=>P(e)?s+encodeURIComponent(JSON.stringify(e)):s+encodeURIComponent(e))).join("&"):P(n)?s+encodeURIComponent(JSON.stringify(n)):s+encodeURIComponent(n)})).filter((e=>e)).join("&"):""}function k(e=!1){let t,r=l.proxyUrl;if("string"==typeof e){t=re(e);const n=N(e);n&&(r=n.proxyUrl)}else t=!!e;if(!r)throw a.warn(u),new s.Z("urlutils:proxy-not-set",u);return t&&se()&&(r=ne(r)),O(r)}function x(e){const t=N(e);let r,n;if(t){const e=T(t.proxyUrl);r=e.path,n=e.query?I(e.query):null}if(r){const t=O(e);e=r+"?"+t.path;const s=E({...n,...t.query});s&&(e=`${e}?${s}`)}return e}const F={path:"",query:""};function T(e){const t=e.indexOf("?");return-1!==t?(F.path=e.slice(0,t),F.query=e.slice(t+1)):(F.path=e,F.query=null),F}function U(e){return(e=ie(e=function(e){return e&&"/"===e[e.length-1]?e:`${e}/`}(e=T(e).path),!0)).toLowerCase()}function R(e){const t={proxyUrl:e.proxyUrl,urlPrefix:U(e.urlPrefix)},r=l.proxyRules,n=t.urlPrefix;let s=r.length;for(let e=0;e<r.length;e++){const t=r[e].urlPrefix;if(0===n.indexOf(t)){if(n.length===t.length)return-1;s=e;break}0===t.indexOf(n)&&(s=e+1)}return r.splice(s,0,t),s}function N(e){const t=l.proxyRules,r=U(e);for(let e=0;e<t.length;e++)if(0===r.indexOf(t[e].urlPrefix))return t[e]}function L(e,t){return e=M(e),t=M(t),ie(e)===ie(t)}function M(e){const t=(e=V(e)).indexOf("/sharing");return t>0?e.substring(0,t):e.replace(/\/+$/,"")}function j(e){const t=t=>null==t||t instanceof RegExp&&t.test(e)||"string"==typeof t&&e.startsWith(t),r=l.interceptors;if(r)for(const e of r)if(Array.isArray(e.urls)){if(e.urls.some(t))return e}else if(t(e.urls))return e;return null}function A(e,t,r=!1){const n=ce(e),s=ce(t);return!(!r&&n.scheme!==s.scheme)&&null!=n.host&&null!=s.host&&n.host.toLowerCase()===s.host.toLowerCase()&&n.port===s.port}function q(e){if("string"==typeof e){if(!G(e))return!0;e=ce(e)}if(A(e,w))return!0;const t=l.trustedServers||[];for(let r=0;r<t.length;r++){const n=Z(t[r]);for(let t=0;t<n.length;t++)if(A(e,n[t]))return!0}return!1}function Z(e){return v[e]||(te(e)||ee(e)?v[e]=[new b($(e))]:v[e]=[new b(`http://${e}`),new b(`https://${e}`)]),v[e]}function $(e,t=_,r){return ee(e)?r&&r.preserveProtocolRelative?e:"http"===w.scheme&&w.authority===J(e).slice(2)?`http:${e}`:`https:${e}`:te(e)?e:(0,o.j0)(B("/"===e[0]?function(e){const t=e.indexOf("//"),r=e.indexOf("/",t+2);return-1===r?e:e.slice(0,r)}(t):t,e))}function D(e,t=_,r){if(!G(e))return e;const n=V(e),s=n.toLowerCase(),i=V(t).toLowerCase().replace(/\/+$/,""),o=r?V(r).toLowerCase().replace(/\/+$/,""):null;if(o&&0!==i.indexOf(o))return e;const a=(e,t,r)=>-1===(r=e.indexOf(t,r))?e.length:r;let l=a(s,"/",s.indexOf("//")+2),u=-1;for(;s.slice(0,l+1)===i.slice(0,l)+"/"&&(u=l+1,l!==s.length);)l=a(s,"/",l+1);if(-1===u)return e;if(o&&u<o.length)return e;e=n.slice(u);const c=i.slice(u-1).replace(/[^/]+/g,"").length;if(c>0)for(let t=0;t<c;t++)e=`../${e}`;else e=`./${e}`;return e}function V(e){return function(e){const t=l.httpsDomains;if(!function(e){return d.test(e)||"http"===w.scheme&&ee(e)}(e))return e;const r=e.indexOf("/",7);let n;if(n=-1===r?e:e.slice(0,r),n=n.toLowerCase().slice(7),f.test(n)){if(!n.endsWith(":80"))return e;n=n.slice(0,-3),e=e.replace(":80","")}return"http"===w.scheme&&n===w.authority&&!m.test(e)||(se()&&n===w.authority||t&&t.some((e=>n===e||n.endsWith(`.${e}`)))||se()&&!N(e))&&(e=ne(e)),e}(e=function(e){return e.replace(/^(https?:\/\/)(arcgis\.com)/i,"$1www.$2")}(e=function(e){if(/^https?:\/\//i.test(e)){const t=T(e);e=(e=t.path.replace(/\/{2,}/g,"/")).replace("/","//"),t.query&&(e+=`?${t.query}`)}return e}(e=$(e=e.trim()))))}function B(...e){const t=e.filter(o.pC);if(!t||!t.length)return;const r=[];if(G(t[0])){const e=t[0],n=e.indexOf("//");-1!==n&&(r.push(e.slice(0,n+1)),function(e){return h.test(e)}(t[0])&&(r[0]+="/"),t[0]=e.slice(n+2))}else"/"===t[0][0]&&r.push("");const n=t.reduce(((e,t)=>t?e.concat(t.split("/")):e),[]);for(let e=0;e<n.length;e++){const t=n[e];".."===t&&r.length>0&&".."!==r[r.length-1]?r.pop():(!t&&e===n.length-1||t&&("."!==t||0===r.length))&&r.push(t)}return r.join("/")}function J(e,t=!1){if(W(e)||z(e))return null;let r=e.indexOf("://");if(-1===r&&ee(e))r=2;else{if(-1===r)return null;r+=3}const n=e.indexOf("/",r);return-1!==n&&(e=e.slice(0,n)),t&&(e=ie(e,!0)),e}function G(e){return ee(e)||te(e)}function W(e){return null!=e&&"blob:"===e.slice(0,5)}function z(e){return"data:"===e.slice(0,5)}function H(e){const t=Q(e);if(!t||!t.isBase64)return null;const r=atob(t.data),n=new Uint8Array(r.length);for(let e=0;e<r.length;e++)n[e]=r.charCodeAt(e);return n.buffer}const Y=/^data:(.*?)(;base64)?,(.*)$/;function Q(e){const t=e.match(Y);if(!t)return null;const[,r,n,s]=t;return{mediaType:r,isBase64:!!n,data:s}}function X(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 r=document.createElement("a");if(!("download"in r))return!1;const n=URL.createObjectURL(e);return r.download=t,r.href=n,r.style.display="none",document.body.appendChild(r),r.click(),document.body.removeChild(r),URL.revokeObjectURL(n),!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 re(e){return p.test(e)||"https"===w.scheme&&ee(e)}function ne(e){return ee(e)?`https:${e}`:e.replace(d,"https:")}function se(){return"https"===w.scheme}function ie(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 oe(e){let t=0;if(G(e)){const r=e.indexOf("//");-1!==r&&(t=r+2)}const r=e.lastIndexOf("/");return r<t?e:e.slice(0,r+1)}function ae(e,t){if(!e)return"";const r=O(e).path.replace(/\/+$/,""),n=r.substring(r.lastIndexOf("/")+1);if(null==t||!t.length)return n;const s=new RegExp(`.(${t.join("|")})$`,"ig");return n.replace(s,"")}function le(e){return e.replace(/\/+$/,"")}function ue(e,t,r){if(!(t&&r&&e&&G(e)))return e;const n=e.indexOf("//"),s=e.indexOf("/",n+2),i=e.indexOf(":",n+2),o=Math.min(s<0?e.length:s,i<0?e.length:i);return e.slice(n+2,o).toLowerCase()!==t.toLowerCase()?e:`${e.slice(0,n+2)}${r}${e.slice(o)}`}function ce(e){return"string"==typeof e?new b($(e)):(e.scheme||(e.scheme=w.scheme),e)}function de(e,t){const r=O(e),n=Object.keys(r.query||{});return n.length>0&&t&&t.warn("removeQueryParameters()",`Url query parameters are not supported, the following parameters have been removed: ${n.join(", ")}.`),r.path}function pe(e,t,r){const n=O(e),s=n.query||{};return s[t]=String(r),`${n.path}?${E(s)}`}function he(e,t){const r=O(e),n=r.query||{};for(const e in t)n[e]=t[e];const s=E(n);return s?`${r.path}?${s}`:r.path}function fe(e){if((0,o.Wi)(e))return null;const t=e.match(me);return t?t[1]:null}const me=/.*?\.([^\/]*)$/},80903:(e,t,r)=>{r.d(t,{Z:()=>l});var n=r(50758),s=r(92604),i=r(95330),o=r(25045);const a=s.Z.getLogger("esri.core.workers.Connection");class l{constructor(){this._clients=new Array,this._clientPromises=new Array,this._clientIdx=0}destroy(){this.close()}get closed(){return!this._clients||!this._clients.length}open(e,t){return new Promise(((r,n)=>{let s=!0;const a=e=>{(0,i.k_)(t.signal),s&&(s=!1,e())};this._clients.length=e.length,this._clientPromises.length=e.length;for(let s=0;s<e.length;++s){const l=e[s];(0,i.y8)(l)?this._clientPromises[s]=l.then((e=>(this._clients[s]=new o.default(e,t),a(r),this._clients[s])),(()=>(a(n),null))):(this._clients[s]=new o.default(l,t),this._clientPromises[s]=Promise.resolve(this._clients[s]),a(r))}}))}broadcast(e,t,r){const n=new Array(this._clientPromises.length);for(let s=0;s<this._clientPromises.length;++s){const i=this._clientPromises[s];n[s]=i.then((n=>n.invoke(e,t,r)))}return n}close(){for(const e of this._clientPromises)e.then((e=>e.close()));this._clients.length=0,this._clientPromises.length=0}getAvailableClient(){let e;for(let t=0;t<this._clients.length;++t){const r=this._clients[t];if(r){if(!r.isBusy())return Promise.resolve(r)}else e=e||[],e.push(this._clientPromises[t])}return e?Promise.race(e):(this._clientIdx=(this._clientIdx+1)%this._clients.length,Promise.resolve(this._clients[this._clientIdx]))}invoke(e,t,r){let n=null;return Array.isArray(r)?(a.warn("invoke()","The transferList parameter is deprecated, use the options object instead"),n={transferList:r}):n=r,this.closed?Promise.reject(new Error("Connection closed")):this.getAvailableClient().then((r=>r.invoke(e,t,n)))}on(e,t){return Promise.all(this._clientPromises).then((()=>(0,n.AL)(this._clients.map((r=>r.on(e,t))))))}openPorts(){return new Promise((e=>{const t=new Array(this._clientPromises.length);let r=t.length;for(let n=0;n<this._clientPromises.length;++n)this._clientPromises[n].then((s=>{t[n]=s.openPort(),0==--r&&e(t)}))}))}get test(){return{numClients:this._clients.length}}}},25045:(e,t,r)=>{r.r(t),r.d(t,{default:()=>b});var n=r(40330),s=r(20102),i=r(91460),o=r(70586),a=r(95330),l=r(94362),u=r(17202);const c={statsWorker:()=>Promise.all([r.e(2785),r.e(6570),r.e(9928),r.e(2303),r.e(6841)]).then(r.bind(r,36841)),geometryEngineWorker:()=>Promise.all([r.e(5837),r.e(8227)]).then(r.bind(r,48227)),CSVSourceWorker:()=>Promise.all([r.e(2785),r.e(6570),r.e(9928),r.e(2303),r.e(7668),r.e(4547),r.e(1534),r.e(3578),r.e(8961),r.e(7054),r.e(2781),r.e(966)]).then(r.bind(r,27793)),EdgeProcessingWorker:()=>Promise.all([r.e(6481),r.e(8936)]).then(r.bind(r,18936)),ElevationSamplerWorker:()=>Promise.all([r.e(2785),r.e(6570),r.e(9928),r.e(4547),r.e(2781),r.e(6481),r.e(6459),r.e(3553)]).then(r.bind(r,61787)),FeatureServiceSnappingSourceWorker:()=>Promise.all([r.e(2785),r.e(6570),r.e(9928),r.e(2303),r.e(7668),r.e(4588),r.e(4547),r.e(1534),r.e(3485),r.e(3578),r.e(8961),r.e(7054),r.e(2781),r.e(5404)]).then(r.bind(r,2255)),GeoJSONSourceWorker:()=>Promise.all([r.e(2785),r.e(6570),r.e(9928),r.e(2303),r.e(7668),r.e(4547),r.e(1534),r.e(3578),r.e(8961),r.e(7054),r.e(2781),r.e(6348),r.e(7845)]).then(r.bind(r,97845)),LercWorker:()=>r.e(3027).then(r.bind(r,23027)),MemorySourceWorker:()=>Promise.all([r.e(2785),r.e(6570),r.e(9928),r.e(2303),r.e(7668),r.e(4547),r.e(1534),r.e(3578),r.e(8961),r.e(7054),r.e(2781),r.e(6348),r.e(639)]).then(r.bind(r,30639)),PBFDecoderWorker:()=>Promise.all([r.e(2785),r.e(6570),r.e(9928),r.e(8961),r.e(147)]).then(r.bind(r,61916)),Pipeline:()=>Promise.all([r.e(2785),r.e(6570),r.e(9928),r.e(2303),r.e(7668),r.e(5638),r.e(4588),r.e(4547),r.e(1534),r.e(3485),r.e(3578),r.e(8961),r.e(7054),r.e(4325),r.e(2730),r.e(7783)]).then(r.bind(r,97783)),PointCloudWorker:()=>Promise.all([r.e(2785),r.e(6570),r.e(9928),r.e(2303),r.e(4547),r.e(9294),r.e(9474)]).then(r.bind(r,16583)),RasterWorker:()=>Promise.all([r.e(2785),r.e(6570),r.e(9928),r.e(2303),r.e(4547),r.e(176),r.e(2398),r.e(5340)]).then(r.bind(r,61576)),SceneLayerWorker:()=>r.e(1412).then(r.bind(r,31412)),WFSSourceWorker:()=>Promise.all([r.e(2785),r.e(6570),r.e(9928),r.e(2303),r.e(7668),r.e(4547),r.e(1534),r.e(3578),r.e(8961),r.e(7054),r.e(2781),r.e(6348),r.e(4556),r.e(3230)]).then(r.bind(r,43230)),WorkerTileHandler:()=>Promise.all([r.e(2303),r.e(4325),r.e(1785),r.e(6810),r.e(9872)]).then(r.bind(r,56456))},{CLOSE:d,ABORT:p,INVOKE:h,RESPONSE:f,OPEN_PORT:m,ON:y}=l.Cs;class g{constructor(e){this._timer=null,this._cancelledJobIds=new Set,this._invokeMessages=[],this._invoke=e,this._timer=null,this._process=this._process.bind(this)}push(e){e.type===l.Cs.ABORT?this._cancelledJobIds.add(e.jobId):(this._invokeMessages.push(e),null===this._timer&&(this._timer=setTimeout(this._process,0)))}clear(){this._invokeMessages.length=0,this._cancelledJobIds.clear(),this._timer=null}_process(){this._timer=null;for(const e of this._invokeMessages)this._cancelledJobIds.has(e.jobId)||this._invoke(e);this._cancelledJobIds.clear(),this._invokeMessages.length=0}}class b{constructor(e,t){this._port=e,this._outJobs=new Map,this._inJobs=new Map,this._invokeQueue=new g((e=>this._onInvokeMessage(e))),this._client=t.client,this._onMessage=this._onMessage.bind(this),this._channel=t.channel,this._schedule=t.schedule,this._port.addEventListener("message",this._onMessage),this._port.start()}static connect(e){const t=new MessageChannel;let r;r="function"==typeof e?new e:"default"in e&&"function"==typeof e.default?new e.default:e;const n=new b(t.port1,{channel:t,client:r});return"object"==typeof r&&"remoteClient"in r&&(r.remoteClient=n),b.clients.set(n,r),t.port2}static loadWorker(e){const t=c[e];return t?t():Promise.resolve(null)}close(){this._post({type:d}),this._close()}isBusy(){return this._outJobs.size>0}invoke(e,t,r){const n=r&&r.signal,i=r&&r.transferList;if(!this._port)return Promise.reject(new s.Z("worker:port-closed",`Cannot call invoke('${e}'), port is closed`,{methodName:e,data:t}));const o=(0,l.jt)();return new Promise(((r,s)=>{const l=(0,a.$F)(n,(()=>{var e;const t=this._outJobs.get(o);t&&(this._outJobs.delete(o),null==(e=t.abortHandle)||e.remove(),this._post({type:p,jobId:o}),s((0,a.zE)()))})),u={resolve:r,reject:s,abortHandle:l,debugInfo:e};this._outJobs.set(o,u),this._post({type:h,jobId:o,methodName:e,abortable:null!=n},t,i)}))}on(e,t){const r=new MessageChannel;function n(e){t(e.data)}return this._port.postMessage({type:l.Cs.ON,eventType:e,port:r.port2},[r.port2]),r.port1.addEventListener("message",n),r.port1.start(),{remove(){r.port1.postMessage({type:l.Cs.CLOSE}),r.port1.close(),r.port1.removeEventListener("message",n)}}}openPort(){const e=new MessageChannel;return this._post({type:m,port:e.port2}),e.port1}_close(){this._channel&&(this._channel=null),this._port.removeEventListener("message",this._onMessage),this._port.close(),this._outJobs.forEach((e=>{var t;null==(t=e.abortHandle)||t.remove(),e.reject((0,a.zE)(`Worker closing, aborting job calling '${e.debugInfo}'`))})),this._inJobs.clear(),this._outJobs.clear(),this._invokeQueue.clear(),this._port=this._client=this._schedule=null}_onMessage(e){(0,o.pC)(this._schedule)?this._schedule((()=>this._processMessage(e))):this._processMessage(e)}_processMessage(e){const t=(0,l.QM)(e);if(t)switch(t.type){case f:this._onResponseMessage(t);break;case h:this._invokeQueue.push(t);break;case p:this._onAbortMessage(t);break;case d:this._onCloseMessage();break;case m:this._onOpenPortMessage(t);break;case y:this._onOnMessage(t)}}_onAbortMessage(e){const t=this._inJobs,r=e.jobId,n=t.get(r);this._invokeQueue.push(e),n&&(n.controller&&n.controller.abort(),t.delete(r))}_onCloseMessage(){const e=this._client;this._close(),e&&"destroy"in e&&b.clients.get(this)===e&&e.destroy(),b.clients.delete(this),e&&e.remoteClient&&(e.remoteClient=null)}_onInvokeMessage(e){const{methodName:t,jobId:r,data:n,abortable:s}=e,i=s?new AbortController:null,o=this._inJobs;let u,c=this._client,d=c[t];try{if(!d&&t&&-1!==t.indexOf(".")){const e=t.split(".");for(let t=0;t<e.length-1;t++)c=c[e[t]],d=c[e[t+1]]}if("function"!=typeof d)throw new TypeError(`${t} is not a function`);u=d.call(c,n,{client:this,signal:i?i.signal:null})}catch(e){return void this._post({type:f,jobId:r,error:(0,l.AB)(e)})}(0,a.y8)(u)?(o.set(r,{controller:i,promise:u}),u.then((e=>{o.has(r)&&(o.delete(r),this._post({type:f,jobId:r},e))}),(e=>{o.has(r)&&(o.delete(r),(0,a.D_)(e)||this._post({type:f,jobId:r,error:(0,l.AB)(e||{message:`Error encountered at method ${t}`})}))}))):this._post({type:f,jobId:r},u)}_onOpenPortMessage(e){new b(e.port,{client:this._client})}_onOnMessage(e){const{port:t}=e,r=this._client.on(e.eventType,(e=>{t.postMessage(e)})),n=(0,i.on)(e.port,"message",(e=>{(0,l.QM)(e).type===l.Cs.CLOSE&&(n.remove(),r.remove(),t.close())}))}_onResponseMessage(e){var t;const{jobId:r,error:n,data:i}=e,o=this._outJobs;if(!o.has(r))return;const a=o.get(r);o.delete(r),null==(t=a.abortHandle)||t.remove(),n?a.reject(s.Z.fromJSON(JSON.parse(n))):a.resolve(i)}_post(e,t,r){return(0,l.oi)(this._port,e,t,r)}}b.kernelInfo={revision:u.$,version:n.i8,buildDate:u.r},b.clients=new Map},94362:(e,t,r)=>{r.d(t,{Cs:()=>n,jt:()=>a,oi:()=>u,QM:()=>c,AB:()=>l});var n,s,i=r(80442);(s=n||(n={}))[s.HANDSHAKE=0]="HANDSHAKE",s[s.OPEN=1]="OPEN",s[s.OPENED=2]="OPENED",s[s.RESPONSE=3]="RESPONSE",s[s.INVOKE=4]="INVOKE",s[s.ABORT=5]="ABORT",s[s.CLOSE=6]="CLOSE",s[s.OPEN_PORT=7]="OPEN_PORT",s[s.ON=8]="ON";let o=0;function a(){return o++}function l(e){return e?"string"==typeof e?JSON.stringify({name:"message",message:e}):e.toJSON?JSON.stringify(e):JSON.stringify({name:e.name,message:e.message,details:e.details||{stack:e.stack}}):null}function u(e,t,r,s){if(t.type===n.OPEN_PORT)return void e.postMessage(t,[t.port]);if(t.type!==n.INVOKE&&t.type!==n.RESPONSE)return void e.postMessage(t);let i;!function(e){return e&&"object"==typeof e&&("result"in e||"transferList"in e)}(r)?(i=d(s),t.data=r):(i=d(r.transferList),t.data=r.result),i?e.postMessage(t,i):e.postMessage(t)}function c(e){if(!e)return null;const t=e.data;return t?"string"==typeof t?JSON.parse(t):t:null}function d(e){if(!e||!e.length)return null;if((0,i.Z)("esri-workers-arraybuffer-transfer"))return e;const t=e.filter((e=>!function(e){return e instanceof ArrayBuffer||e&&e.constructor&&"ArrayBuffer"===e.constructor.name}(e)));return t.length?t:null}},78346:(e,t,r)=>{r.d(t,{bA:()=>q});var n=r(20102),s=r(80442),i=r(95330),o=r(80903),a=r(25045),l=r(40330),u=r(92604),c=r(94362),d=r(99880),p=r(68773),h=(r(2587),r(17452));const f={};function m(e){var t;const r={async:e.async,isDebug:e.isDebug,locale:e.locale,baseUrl:e.baseUrl,has:{...e.has},map:{...e.map},packages:e.packages&&e.packages.concat()||[],paths:{...e.paths}};return e.hasOwnProperty("async")||(r.async=!0),e.hasOwnProperty("isDebug")||(r.isDebug=!1),e.baseUrl||(r.baseUrl=f.baseUrl),null==(t=f.packages)||t.forEach((e=>{!function(e,t){for(const r of e)if(r.name===t.name)return;e.push(t)}(r.packages,e)})),r}var y=r(41213);class g{constructor(){const e=document.createDocumentFragment();["addEventListener","dispatchEvent","removeEventListener"].forEach((t=>{this[t]=(...r)=>e[t](...r)}))}}class b{constructor(){this._dispatcher=new g,this._workerPostMessage({type:c.Cs.HANDSHAKE})}terminate(){}get onmessage(){return this._onmessageHandler}set onmessage(e){this._onmessageHandler&&this.removeEventListener("message",this._onmessageHandler),this._onmessageHandler=e,e&&this.addEventListener("message",e)}get onmessageerror(){return this._onmessageerrorHandler}set onmessageerror(e){this._onmessageerrorHandler&&this.removeEventListener("messageerror",this._onmessageerrorHandler),this._onmessageerrorHandler=e,e&&this.addEventListener("messageerror",e)}get onerror(){return this._onerrorHandler}set onerror(e){this._onerrorHandler&&this.removeEventListener("error",this._onerrorHandler),this._onerrorHandler=e,e&&this.addEventListener("error",e)}postMessage(e){(0,y.Y)((()=>{this._workerMessageHandler(new MessageEvent("message",{data:e}))}))}dispatchEvent(e){return this._dispatcher.dispatchEvent(e)}addEventListener(e,t,r){this._dispatcher.addEventListener(e,t,r)}removeEventListener(e,t,r){this._dispatcher.removeEventListener(e,t,r)}_workerPostMessage(e){(0,y.Y)((()=>{this.dispatchEvent(new MessageEvent("message",{data:e}))}))}async _workerMessageHandler(e){const t=(0,c.QM)(e);if(t&&t.type===c.Cs.OPEN){const{modulePath:e,jobId:r}=t;let n=await a.default.loadWorker(e);n||(n=await import(e));const s=a.default.connect(n);this._workerPostMessage({type:c.Cs.OPENED,jobId:r,data:s})}}}var v=r(70171),w=r(17202);const _=u.Z.getLogger("esri.core.workers"),{HANDSHAKE:S}=c.Cs;let C,O;const I="Failed to create Worker. Fallback to execute module in main thread";async function P(e){return new Promise((t=>{function r(s){const i=(0,c.QM)(s);i&&i.type===S&&(e.removeEventListener("message",r),e.removeEventListener("error",n),t(e))}function n(t){t.preventDefault(),e.removeEventListener("message",r),e.removeEventListener("error",n),_.warn("Failed to create Worker. Fallback to execute module in main thread",t),(e=new b).addEventListener("message",r),e.addEventListener("error",n)}e.addEventListener("message",r),e.addEventListener("error",n)}))}let E=0;const k=u.Z.getLogger("esri.core.workers"),{ABORT:x,INVOKE:F,OPEN:T,OPENED:U,RESPONSE:R}=c.Cs;class N{constructor(e,t){this._outJobs=new Map,this._inJobs=new Map,this.worker=e,this.id=t,e.addEventListener("message",this._onMessage.bind(this)),e.addEventListener("error",(e=>{e.preventDefault(),k.error(e)}))}static async create(e){const t=await async function(){if(!(0,s.Z)("esri-workers")||((0,s.Z)("mozilla"),0))return P(new b);if(!C&&!O)try{const e='let globalId=0;const outgoing=new Map,configuration=JSON.parse("{CONFIGURATION}");self.esriConfig=configuration.esriConfig;const workerPath=self.esriConfig.workers.workerPath,HANDSHAKE=0,OPEN=1,OPENED=2,RESPONSE=3,INVOKE=4,ABORT=5;function createAbortError(){const e=new Error("Aborted");return e.name="AbortError",e}function receiveMessage(e){return e&&e.data?"string"==typeof e.data?JSON.parse(e.data):e.data:null}function invokeStaticMessage(e,o,r){const t=r&&r.signal,n=globalId++;return new Promise(((r,i)=>{if(t){if(t.aborted)return i(createAbortError());t.addEventListener("abort",(()=>{outgoing.get(n)&&(outgoing.delete(n),self.postMessage({type:5,jobId:n}),i(createAbortError()))}))}outgoing.set(n,{resolve:r,reject:i}),self.postMessage({type:4,jobId:n,methodName:e,abortable:null!=t,data:o})}))}let workerRevisionChecked=!1;function checkWorkerRevision(e){if(!workerRevisionChecked&&e.kernelInfo){workerRevisionChecked=!0;const{revision:o,buildDate:r,version:t}=configuration.kernelInfo,{revision:n,buildDate:i,version:s}=e.kernelInfo;o!==n&&console.warn(`[esri.core.workers] Version mismatch detected between ArcGIS API for JavaScript and assets:\\nAPI version: ${t} [Date: ${r}, Revision: ${o.slice(0,8)}]\nAssets version: ${s} [Date: ${i}, Revision: ${n.slice(0,8)}]`)}}function messageHandler(e){const o=receiveMessage(e);if(!o)return;const r=o.jobId;switch(o.type){case 1:let e;function t(o){const t=e.connect(o);self.postMessage({type:2,jobId:r,data:t},[t])}"function"==typeof define&&define.amd?require([workerPath],(r=>{e=r.default||r,checkWorkerRevision(e),e.loadWorker(o.modulePath).then((e=>e||new Promise((e=>{require([o.modulePath],e)})))).then(t)})):"System"in self&&"function"==typeof System.import?System.import(workerPath).then((r=>(e=r.default,checkWorkerRevision(e),e.loadWorker(o.modulePath)))).then((e=>e||System.import(o.modulePath))).then(t):esriConfig.workers.useDynamicImport?import(workerPath).then((r=>{e=r.default||r,checkWorkerRevision(e),e.loadWorker(o.modulePath).then((e=>e||import(o.modulePath))).then(t)})):(self.RemoteClient||importScripts(workerPath),e=self.RemoteClient.default||self.RemoteClient,checkWorkerRevision(e),e.loadWorker(o.modulePath).then(t));break;case 3:if(outgoing.has(r)){const e=outgoing.get(r);outgoing.delete(r),o.error?e.reject(JSON.parse(o.error)):e.resolve(o.data)}}}self.dojoConfig=configuration.loaderConfig,esriConfig.workers.loaderUrl&&(self.importScripts(esriConfig.workers.loaderUrl),"function"==typeof require&&"function"==typeof require.config&&require.config(configuration.loaderConfig)),self.addEventListener("message",messageHandler),self.postMessage({type:0});'.replace('"{CONFIGURATION}"',`'${function(){let e;if(null!=p.Z.default){const t={...p.Z};delete t.default,e=JSON.parse(JSON.stringify(t))}else e=JSON.parse(JSON.stringify(p.Z));e.assetsPath=(0,h.hF)(e.assetsPath),e.request.interceptors=[],e.log.interceptors=[],e.locale=(0,v.Kd)(),e.has={"esri-csp-restrictions":(0,s.Z)("esri-csp-restrictions"),"esri-2d-debug":!1,"esri-2d-update-debug":(0,s.Z)("esri-2d-update-debug"),"esri-2d-query-centroid-enabled":(0,s.Z)("esri-2d-query-centroid-enabled"),"featurelayer-pbf":(0,s.Z)("featurelayer-pbf"),"featurelayer-simplify-thresholds":(0,s.Z)("featurelayer-simplify-thresholds"),"featurelayer-simplify-payload-size-factors":(0,s.Z)("featurelayer-simplify-payload-size-factors"),"featurelayer-simplify-mobile-factor":(0,s.Z)("featurelayer-simplify-mobile-factor"),"esri-atomics":(0,s.Z)("esri-atomics"),"esri-shared-array-buffer":(0,s.Z)("esri-shared-array-buffer"),"esri-tiles-debug":(0,s.Z)("esri-tiles-debug"),"esri-workers-arraybuffer-transfer":(0,s.Z)("esri-workers-arraybuffer-transfer"),"host-webworker":1},e.workers.loaderUrl&&(e.workers.loaderUrl=(0,h.hF)(e.workers.loaderUrl)),e.workers.workerPath?e.workers.workerPath=(0,h.hF)(e.workers.workerPath):e.workers.workerPath=(0,h.hF)((0,d.V)("esri/core/workers/RemoteClient.js")),e.workers.useDynamicImport=!1;const t=p.Z.workers.loaderConfig,r=m({baseUrl:null==t?void 0:t.baseUrl,locale:(0,v.Kd)(),has:{"csp-restrictions":1,"dojo-test-sniff":0,"host-webworker":1,...null==t?void 0:t.has},map:{...null==t?void 0:t.map},paths:{...null==t?void 0:t.paths},packages:(null==t?void 0:t.packages)||[]}),n={version:l.i8,buildDate:w.r,revision:w.$};return JSON.stringify({esriConfig:e,loaderConfig:r,kernelInfo:n})}()}'`);C=URL.createObjectURL(new Blob([e],{type:"text/javascript"}))}catch(e){O=e||{}}let e;if(C)try{e=new Worker(C,{name:"esri-worker-"+E++})}catch(t){_.warn(I,O),e=new b}else _.warn(I,O),e=new b;return P(e)}();return new N(t,e)}terminate(){this.worker.terminate()}async open(e,t={}){const{signal:r}=t,n=(0,c.jt)();return new Promise(((t,s)=>{const o={resolve:t,reject:s,abortHandle:(0,i.$F)(r,(()=>{this._outJobs.delete(n),this._post({type:x,jobId:n})}))};this._outJobs.set(n,o),this._post({type:T,jobId:n,modulePath:e})}))}_onMessage(e){const t=(0,c.QM)(e);if(t)switch(t.type){case U:this._onOpenedMessage(t);break;case R:this._onResponseMessage(t);break;case x:this._onAbortMessage(t);break;case F:this._onInvokeMessage(t)}}_onAbortMessage(e){const t=this._inJobs,r=e.jobId,n=t.get(r);n&&(n.controller&&n.controller.abort(),t.delete(r))}_onInvokeMessage(e){const{methodName:t,jobId:r,data:n,abortable:s}=e,o=s?new AbortController:null,a=this._inJobs,u=l.Nv[t];let d;try{if("function"!=typeof u)throw new TypeError(`${t} is not a function`);d=u.call(null,n,{signal:o?o.signal:null})}catch(e){return void this._post({type:R,jobId:r,error:(0,c.AB)(e)})}(0,i.y8)(d)?(a.set(r,{controller:o,promise:d}),d.then((e=>{a.has(r)&&(a.delete(r),this._post({type:R,jobId:r},e))}),(e=>{a.has(r)&&(a.delete(r),e||(e={message:"Error encountered at method"+t}),(0,i.D_)(e)||this._post({type:R,jobId:r,error:(0,c.AB)(e||{message:`Error encountered at method ${t}`})}))}))):this._post({type:R,jobId:r},d)}_onOpenedMessage(e){var t;const{jobId:r,data:n}=e,s=this._outJobs.get(r);s&&(this._outJobs.delete(r),null==(t=s.abortHandle)||t.remove(),s.resolve(n))}_onResponseMessage(e){var t;const{jobId:r,error:s,data:i}=e,o=this._outJobs.get(r);o&&(this._outJobs.delete(r),null==(t=o.abortHandle)||t.remove(),s?o.reject(n.Z.fromJSON(JSON.parse(s))):o.resolve(i))}_post(e,t,r){return(0,c.oi)(this.worker,e,t,r)}}let L=(0,s.Z)("esri-workers-debug")?1:(0,s.Z)("host-browser")?navigator.hardwareConcurrency-1:0;L||(L=(0,s.Z)("safari")&&(0,s.Z)("mac")||(0,s.Z)("trident")?7:2);let M=0;const j=[];async function A(e,t){const r=new o.Z;return await r.open(e,t),r}async function q(e,t={}){if("string"!=typeof e)throw new n.Z("workers:undefined-module","modulePath is missing");let r=t.strategy||"distributed";if((0,s.Z)("host-webworker")&&!(0,s.Z)("esri-workers")&&(r="local"),"local"===r){let r=await a.default.loadWorker(e);r||(r=await import(e)),(0,i.k_)(t.signal);const n=t.client||r;return A([a.default.connect(r)],{...t,client:n})}if(await async function(){if($)return $;Z=new AbortController;const e=[];for(let t=0;t<L;t++){const r=N.create(t).then((e=>(j[t]=e,e)));e.push(r)}return $=Promise.all(e),$}(),(0,i.k_)(t.signal),"dedicated"===r){const r=M++%L;return A([await j[r].open(e,t)],t)}if(t.maxNumWorkers&&t.maxNumWorkers>0){const r=Math.min(t.maxNumWorkers,L);if(r<L){const n=new Array(r);for(let s=0;s<r;++s){const r=M++%L;n[s]=j[r].open(e,t)}return A(n,t)}}return A(j.map((r=>r.open(e,t))),t)}let Z,$=null},66577:(e,t,r)=>{r.d(t,{qM:()=>c});var n=r(75215),s=r(6570),i=r(9361),o=r(65091),a=r(13473),l=r(17332),u=r(58901);r(82971),r(86973),r(33955);const c={base:i.Z,key:"type",typeMap:{extent:s.Z,multipoint:o.Z,point:a.Z,polyline:u.Z,polygon:l.Z}};(0,n.N7)(c)},24678:(e,t,r)=>{r.d(t,{GG:()=>a,HQ:()=>l,VY:()=>u,wY:()=>c,Iu:()=>p,e8:()=>h,rS:()=>d});var n=r(82971),s=r(68441),i=r(8744);function o(e){return new n.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=o(s.sv),l=o(s.yr),u=o(s.Z1),c=new n.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,i.BZ)(e)||e===l)?l:e&&((0,i.V2)(e)||e===u)?u:a}function p(e){return e&&((0,i.BZ)(e)||e===l)?s.yr:e&&((0,i.V2)(e)||e===u)?s.Z1:s.sv}function h(e){return(0,i.o$)(e)?s.yr:(0,i.ME)(e)?s.Z1:s.sv}},33955:(e,t,r)=>{r.d(t,{im:()=>m,q9:()=>b,Ji:()=>y,YX:()=>c,aW:()=>d,wp:()=>p,oU:()=>f,l9:()=>h});var n=r(70586),s=r(6570),i=r(9361),o=r(65091),a=r(13473),l=r(17332),u=r(58901);function c(e){return void 0!==e.xmin&&void 0!==e.ymin&&void 0!==e.xmax&&void 0!==e.ymax}function d(e){return void 0!==e.points}function p(e){return void 0!==e.x&&void 0!==e.y}function h(e){return void 0!==e.paths}function f(e){return void 0!==e.rings}function m(e){return(0,n.Wi)(e)?null:e instanceof i.Z?e:p(e)?a.Z.fromJSON(e):h(e)?u.Z.fromJSON(e):f(e)?l.Z.fromJSON(e):d(e)?o.Z.fromJSON(e):c(e)?s.Z.fromJSON(e):null}function y(e){return e?p(e)?"esriGeometryPoint":h(e)?"esriGeometryPolyline":f(e)?"esriGeometryPolygon":c(e)?"esriGeometryEnvelope":d(e)?"esriGeometryMultipoint":null:null}const g={esriGeometryPoint:a.Z,esriGeometryPolyline:u.Z,esriGeometryPolygon:l.Z,esriGeometryEnvelope:s.Z,esriGeometryMultipoint:o.Z};function b(e){return e&&g[e]||null}},86973:(e,t,r)=>{r.d(t,{Mk:()=>s,P$:()=>i});var n=r(35454);const s=(0,n.w)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),i=(0,n.w)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"})},69285:(e,t,r)=>{r.d(t,{k:()=>o});var n=r(70586),s=r(67900),i=r(8744);function o(e,t,r){if((0,n.Wi)(t)||(0,n.Wi)(r)||r.vcsWkid||(0,i.fS)(t,r))return null;const o=(0,s._R)(t)/(0,s._R)(r);if(1===o)return null;switch(e){case"point":case"esriGeometryPoint":return e=>function(e,t){e&&null!=e.z&&(e.z*=t)}(e,o);case"polyline":case"esriGeometryPolyline":return e=>function(e,t){if(e)for(const r of e.paths)for(const e of r)e.length>2&&(e[2]*=t)}(e,o);case"polygon":case"esriGeometryPolygon":return e=>function(e,t){if(e)for(const r of e.rings)for(const e of r)e.length>2&&(e[2]*=t)}(e,o);case"multipoint":case"esriGeometryMultipoint":return e=>function(e,t){if(e)for(const r of e.points)r.length>2&&(r[2]*=t)}(e,o);case"extent":case"esriGeometryExtent":return e=>function(e,t){e&&null!=e.zmin&&null!=e.zmax&&(e.zmin*=t,e.zmax*=t)}(e,o);default:return null}}},2587:(e,t,r)=>{r(90344),r(18848),r(940),r(70171);var n=r(94443),s=r(3172),i=r(20102),o=r(70586);async function a(e){if((0,o.pC)(u.fetchBundleAsset))return u.fetchBundleAsset(e);const t=await(0,s.default)(e,{responseType:"text"});return JSON.parse(t.data)}class l{constructor({base:e="",pattern:t,location:r=new URL(window.location.href)}){let n;n="string"==typeof r?e=>new URL(e,new URL(r,window.location.href)).href:r instanceof URL?e=>new URL(e,r).href:r,this.pattern="string"==typeof t?new RegExp(`^${t}`):t,this.getAssetUrl=n,e=e?e.endsWith("/")?e:e+"/":"",this.matcher=new RegExp(`^${e}(?:(.*)/)?(.*)$`)}fetchMessageBundle(e,t){return async function(e,t,r,s){const o=t.exec(r);if(!o)throw new i.Z("esri-intl:invalid-bundle",`Bundle id "${r}" is not compatible with the pattern "${t}"`);const l=o[1]?`${o[1]}/`:"",u=o[2],c=(0,n.Su)(s),d=`${l}${u}.json`,p=c?`${l}${u}_${c}.json`:d;let h;try{h=await a(e(p))}catch(t){if(p===d)throw new i.Z("intl:unknown-bundle",`Bundle "${r}" cannot be loaded`,{error:t});try{h=await a(e(d))}catch(e){throw new i.Z("intl:unknown-bundle",`Bundle "${r}" cannot be loaded`,{error:e})}}return h}(this.getAssetUrl,this.matcher,e,t)}}const u={};var c,d=r(99880);(0,n.tz)((c={pattern:"esri/",location:d.V},new l(c)))},94443:(e,t,r)=>{r.d(t,{ME:()=>h,Su:()=>f,tz:()=>p});var n=r(20102),s=r(95330),i=r(70171);const o=/^([a-z]{2})(?:[-_]([A-Za-z]{2}))?$/,a={ar:!0,bg:!0,bs:!0,ca:!0,cs:!0,da:!0,de:!0,el:!0,en:!0,es:!0,et:!0,fi:!0,fr:!0,he:!0,hr:!0,hu:!0,id:!0,it:!0,ja:!0,ko:!0,lt:!0,lv:!0,nb:!0,nl:!0,pl:!0,"pt-BR":!0,"pt-PT":!0,ro:!0,ru:!0,sk:!0,sl:!0,sr:!0,sv:!0,th:!0,tr:!0,uk:!0,vi:!0,"zh-CN":!0,"zh-HK":!0,"zh-TW":!0};function l(e){var t;return null!=(t=a[e])&&t}const u=[],c=new Map;function d(e){for(const t of c.keys())m(e.pattern,t)&&c.delete(t)}function p(e){return u.includes(e)||(d(e),u.unshift(e)),{remove(){const t=u.indexOf(e);t>-1&&(u.splice(t,1),d(e))}}}async function h(e){const t=(0,i.Kd)();c.has(e)||c.set(e,async function(e,t){const r=[];for(const n of u)if(m(n.pattern,e))try{return await n.fetchMessageBundle(e,t)}catch(e){r.push(e)}if(r.length)throw new n.Z("intl:message-bundle-error",`Errors occurred while loading "${e}"`,{errors:r});throw new n.Z("intl:no-message-bundle-loader",`No loader found for message bundle "${e}"`)}(e,t));const r=c.get(e);return await y.add(r),r}function f(e){if(!o.test(e))return null;const[,t,r]=o.exec(e),n=t+(r?"-"+r.toUpperCase():"");return l(n)?n:l(t)?t:null}function m(e,t){return"string"==typeof e?t.startsWith(e):e.test(t)}(0,i.Ze)((()=>{c.clear()}));const y=new class{constructor(){this._numLoading=0}async waitForAll(){this._dfd&&await this._dfd.promise}add(e){return this._increase(),e.then((()=>this._decrease()),(()=>this._decrease())),this.waitForAll()}_increase(){this._numLoading++,this._dfd||(this._dfd=(0,s.dD)())}_decrease(){this._numLoading=Math.max(this._numLoading-1,0),this._dfd&&0===this._numLoading&&(this._dfd.resolve(),this._dfd=null)}}},940:(e,t,r)=>{r.d(t,{n:()=>u});var n=r(92604),s=r(78286),i=r(19153),o=r(90344),a=r(18848);const l=n.Z.getLogger("esri.intl");function u(e,t,r={}){const{format:n={}}=r;return(0,i.gx)(e,(e=>function(e,t,r){let n,i;const o=e.indexOf(":");if(-1===o?n=e.trim():(n=e.slice(0,o).trim(),i=e.slice(o+1).trim()),!n)return"";const a=(0,s.hS)(n,t);if(null==a)return"";const l=r[i]||r[n];return l?c(a,l):i?d(a,i):p(a)}(e,t,n)))}function c(e,t){switch(t.type){case"date":return(0,o.p6)(e,t.intlOptions);case"number":return(0,a.uf)(e,t.intlOptions);default:return l.warn("missing format descriptor for key {key}"),p(e)}}function d(e,t){switch(t.toLowerCase()){case"dateformat":return(0,o.p6)(e);case"numberformat":return(0,a.uf)(e);default:return l.warn(`inline format is unsupported since 4.12: ${t}`),/^(dateformat|datestring)/i.test(t)?(0,o.p6)(e):/^numberformat/i.test(t)?(0,a.uf)(e):p(e)}}function p(e){switch(typeof e){case"string":return e;case"number":return(0,a.uf)(e);case"boolean":return""+e;default:return e instanceof Date?(0,o.p6)(e):""}}},40330:(e,t,r)=>{r.d(t,{Dp:()=>u,id:()=>a,qh:()=>l,i8:()=>i,Nv:()=>o});var n=r(80442),s=r(17452);const i="4.23",o={async request(e,t){var n;const{default:i}=await r.e(3172).then(r.bind(r,3172)),o=e.options,a=o.responseType;o.signal=null==t?void 0:t.signal,o.responseType="native"===a||"native-request-init"===a?"native-request-init":["blob","json","text"].includes(a)&&null!=(n=(0,s.oh)(e.url))&&n.after?a:"array-buffer";const l=await i(e.url,o),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,n.Z)("host-webworker")||((0,n.Z)("edge")||(0,n.Z)("trident"))&&console.warn("Deprecated browser - see http://esriurl.com/oldbrowser")},12653:(e,t,r)=>{r.r(t),r.d(t,{default:()=>Y});var n=r(43697),s=(r(66577),r(51773)),i=(r(16050),r(12501),r(95088),r(79056),r(5499),r(84382),r(30687),r(91423),r(32400)),o=r(70586),a=r(16453),l=r(78286),u=r(17452),c=r(5600),d=(r(67676),r(80442)),p=r(75215),h=r(52011),f=r(30556),m=r(86973),y=r(29600),g=r(20102),b=r(3920),v=r(83379),w=r(95330),_=r(78346),S=r(25278),C=r(74556),O=r(74889),I=r(6570);let P=class extends((0,b.p)(v.Z)){constructor(){super(...arguments),this.capabilities=(0,S.MS)(!1,!1),this.type="wfs",this.refresh=(0,w.Ds)((async e=>{await this.load();const{extent:t}=await this._connection.invoke("refresh",e);return this.sourceJSON.extent=t,{dataChanged:!0,updates:{extent:this.sourceJSON.extent}}}))}load(e){var t;const r=null!=(t=(0,o.pC)(e)&&e.signal)?t:null;return this.addResolvingPromise(this._startWorker({signal:r})),Promise.resolve(this)}destroy(){var e;null==(e=this._connection)||e.close(),this._connection=null}async openPorts(){return await this.load(),this._connection.openPorts()}async queryFeatures(e,t={}){await this.load(t);const r=await this._connection.invoke("queryFeatures",e?e.toJSON():null,t);return O.default.fromJSON(r)}async queryFeaturesJSON(e,t={}){return await this.load(t),this._connection.invoke("queryFeatures",e?e.toJSON():null,t)}async queryFeatureCount(e,t={}){return await this.load(t),this._connection.invoke("queryFeatureCount",e?e.toJSON():null,t)}async queryObjectIds(e,t={}){return await this.load(t),this._connection.invoke("queryObjectIds",e?e.toJSON():null,t)}async queryExtent(e,t={}){await this.load(t);const r=await this._connection.invoke("queryExtent",e?e.toJSON():null,t);return{count:r.count,extent:I.Z.fromJSON(r.extent)}}async querySnapping(e,t={}){return await this.load(t),this._connection.invoke("querySnapping",e,t)}async _createLoadOptions(e){const{url:t,customParameters:r,name:n,namespaceUri:s,spatialReference:i,fields:a,geometryType:l,swapXY:u}=this.layer;if(!t)throw new g.Z("wfs-layer:missing-url","WFSLayer must be created with a url");this.wfsCapabilities||(this.wfsCapabilities=await(0,C.FU)(t,{customParameters:r,...e}));const c=["fields","geometryType","name","namespaceUri","spatialReference","swapXY"].some((e=>null==this.layer[e])),d=c?await(0,C.be)(this.wfsCapabilities,n,s,{spatialReference:i,customParameters:r,signal:null==e?void 0:e.signal}):{...(0,C.eB)(a),geometryType:l,name:n,namespaceUri:s,spatialReference:i,swapXY:u},p=(0,o.Wg)((0,C.ft)(this.wfsCapabilities.readFeatureTypes(),d.name,d.namespaceUri)),h=m.Mk.toJSON(d.geometryType);return{customParameters:r,featureType:p,fields:d.fields.map((e=>e.toJSON())),geometryField:d.geometryField,geometryType:h,getFeatureUrl:this.wfsCapabilities.operations.GetFeature.url,getFeatureOutputFormat:this.wfsCapabilities.operations.GetFeature.outputFormat,objectIdField:d.objectIdField,spatialReference:d.spatialReference.toJSON(),swapXY:d.swapXY}}async _startWorker(e){const[t,r]=await(0,w.as)([this._createLoadOptions(e),(0,_.bA)("WFSSourceWorker",{...e,strategy:(0,d.Z)("feature-layers-workers")?"dedicated":"local"})]),n=t.error||r.error||null,s=r.value||null;if(n)throw s&&s.close(),n;const i=t.value;this._connection=r.value;const{extent:o}=await this._connection.invoke("load",i,e);this.sourceJSON={extent:o,fields:i.fields,geometryType:i.geometryType,objectIdField:i.objectIdField,geometryField:i.geometryField,drawingInfo:(0,S.bU)(i.geometryType),name:i.featureType.title,wfsInfo:{name:i.featureType.name,featureUrl:i.getFeatureUrl,maxFeatures:3e3,swapXY:i.swapXY,supportedSpatialReferences:i.featureType.supportedSpatialReferences,version:"2.0.0",wfsNamespace:i.featureType.namespaceUri}}}};(0,n._)([(0,c.Cb)()],P.prototype,"capabilities",void 0),(0,n._)([(0,c.Cb)({constructOnly:!0})],P.prototype,"layer",void 0),(0,n._)([(0,c.Cb)()],P.prototype,"sourceJSON",void 0),(0,n._)([(0,c.Cb)()],P.prototype,"type",void 0),(0,n._)([(0,c.Cb)()],P.prototype,"wfsCapabilities",void 0),P=(0,n._)([(0,h.j)("esri.layers.graphics.sources.WFSSource")],P);const E=P;var k,x=r(71612),F=r(17017),T=r(69637),U=r(38009),R=r(68825),N=r(16859),L=r(34760),M=r(72965),j=r(28294),A=r(21506),q=r(55785),Z=r(1231),$=r(53518),D=r(35671),V=r(2319),B=r(30707),J=r(57444),G=r(32163),W=r(82971);const z=(0,$.v)();let H=k=class extends((0,R.c)((0,F.N)((0,T.b)((0,x.h)((0,j.n)((0,L.Q)((0,M.M)((0,U.q)((0,N.I)((0,a.R)(y.Z))))))))))){constructor(e){super(e),this.capabilities=null,this.copyright=null,this.customParameters=null,this.definitionExpression=null,this.displayField=null,this.elevationInfo=null,this.featureReduction=null,this.featureUrl=void 0,this.fields=null,this.fieldsIndex=null,this.fullExtent=null,this.geometryType=null,this.labelsVisible=!0,this.labelingInfo=null,this.legendEnabled=!0,this.objectIdField=null,this.operationalLayerType="WFS",this.maxFeatures=3e3,this.mode=0,this.name=null,this.namespaceUri=null,this.outFields=null,this.popupEnabled=!0,this.popupTemplate=null,this.screenSizePerspectiveEnabled=!0,this.source=new E({layer:this}),this.spatialReference=W.Z.WGS84,this.spatialReferences=[4326],this.swapXY=void 0,this.title="WFS",this.type="wfs",this.url=null,this.version=void 0}static fromWFSLayerInfo(e){const{customParameters:t,fields:r,geometryField:n,geometryType:s,name:i,namespaceUri:o,objectIdField:a,spatialReference:l,swapXY:u,url:c,wfsCapabilities:d}=e;return new k({customParameters:t,fields:r,geometryField:n,geometryType:s,name:i,namespaceUri:o,objectIdField:a,spatialReference:l,swapXY:u,url:c,wfsCapabilities:d})}destroy(){var e;null==(e=this.source)||e.destroy()}load(e){return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["WFS"]},e).then((()=>this.source.load(e))).then((()=>{this.read(this.source.sourceJSON,{origin:"service",url:this.parsedUrl}),this.revert(["objectIdField","fields","timeInfo","spatialReference","name","namespaceUri"],"service"),(0,D.YN)(this.renderer,this.fieldsIndex),(0,D.UF)(this.timeInfo,this.fieldsIndex)}))),Promise.resolve(this)}get createQueryVersion(){return this.commitProperty("definitionExpression"),this.commitProperty("timeExtent"),this.commitProperty("timeOffset"),this.commitProperty("geometryType"),this.commitProperty("capabilities"),(this._get("createQueryVersion")||0)+1}get defaultPopupTemplate(){return this.createPopupTemplate()}writeFields(e,t,r){const n=e.filter((e=>e.name!==C.M8));this.geometryField&&n.unshift(new Z.Z({name:this.geometryField,alias:this.geometryField,type:"geometry"})),(0,l.RB)(r,n.map((e=>e.toJSON())),t)}get parsedUrl(){return this.url?(0,u.mN)(this.url):null}set renderer(e){(0,D.YN)(e,this.fieldsIndex),this._set("renderer",e)}createPopupTemplate(e){return(0,G.eZ)(this,e)}createQuery(){const e=new J.Z;e.returnGeometry=!0,e.outFields=["*"],e.where=this.definitionExpression||"1=1";const{timeOffset:t,timeExtent:r}=this;return e.timeExtent=null!=t&&null!=r?r.offset(-t.value,t.unit):r||null,e}getFieldDomain(e,t){var r;return null==(r=this.getField(e))?void 0:r.domain}getField(e){return this.fieldsIndex.get(e)}queryFeatures(e,t){return this.load().then((()=>this.source.queryFeatures(J.Z.from(e)||this.createQuery(),t))).then((e=>{if(null!=e&&e.features)for(const t of e.features)t.layer=t.sourceLayer=this;return e}))}queryObjectIds(e,t){return this.load().then((()=>this.source.queryObjectIds(J.Z.from(e)||this.createQuery(),t)))}queryFeatureCount(e,t){return this.load().then((()=>this.source.queryFeatureCount(J.Z.from(e)||this.createQuery(),t)))}queryExtent(e,t){return this.load().then((()=>this.source.queryExtent(J.Z.from(e)||this.createQuery(),t)))}async hasDataChanged(){try{const{dataChanged:e,updates:t}=await this.source.refresh(this.customParameters);return(0,o.pC)(t)&&this.read(t,{origin:"service",url:this.parsedUrl,ignoreDefaults:!0}),e}catch{}return!1}};(0,n._)([(0,c.Cb)({readOnly:!0,aliasOf:"source.capabilities"})],H.prototype,"capabilities",void 0),(0,n._)([(0,c.Cb)({type:String})],H.prototype,"copyright",void 0),(0,n._)([(0,c.Cb)({readOnly:!0})],H.prototype,"createQueryVersion",null),(0,n._)([(0,c.Cb)({json:{name:"wfsInfo.customParameters",write:{ignoreOrigin:!0}}})],H.prototype,"customParameters",void 0),(0,n._)([(0,c.Cb)({readOnly:!0})],H.prototype,"defaultPopupTemplate",null),(0,n._)([(0,c.Cb)({type:String,json:{name:"layerDefinition.definitionExpression",write:{enabled:!0,allowNull:!0}}})],H.prototype,"definitionExpression",void 0),(0,n._)([(0,c.Cb)({type:String})],H.prototype,"displayField",void 0),(0,n._)([(0,c.Cb)(A.PV)],H.prototype,"elevationInfo",void 0),(0,n._)([(0,c.Cb)(q.d)],H.prototype,"featureReduction",void 0),(0,n._)([(0,c.Cb)({type:String,readOnly:!0,json:{name:"wfsInfo.featureUrl",write:{ignoreOrigin:!0,isRequired:!0}}})],H.prototype,"featureUrl",void 0),(0,n._)([(0,c.Cb)({type:[Z.Z],json:{name:"layerDefinition.fields",write:{ignoreOrigin:!0,isRequired:!0},origins:{service:{name:"fields"}}}})],H.prototype,"fields",void 0),(0,n._)([(0,f.c)("fields")],H.prototype,"writeFields",null),(0,n._)([(0,c.Cb)(z.fieldsIndex)],H.prototype,"fieldsIndex",void 0),(0,n._)([(0,c.Cb)({type:I.Z,json:{name:"extent"}})],H.prototype,"fullExtent",void 0),(0,n._)([(0,c.Cb)()],H.prototype,"geometryField",void 0),(0,n._)([(0,c.Cb)({type:String,json:{read:{source:"layerDefinition.geometryType",reader:m.Mk.read},write:{target:"layerDefinition.geometryType",writer:m.Mk.write,ignoreOrigin:!0},origins:{service:{read:m.Mk.read}}}})],H.prototype,"geometryType",void 0),(0,n._)([(0,c.Cb)({type:String})],H.prototype,"id",void 0),(0,n._)([(0,c.Cb)(A.iR)],H.prototype,"labelsVisible",void 0),(0,n._)([(0,c.Cb)({type:[V.Z],json:{name:"layerDefinition.drawingInfo.labelingInfo",read:{reader:B.r},write:!0}})],H.prototype,"labelingInfo",void 0),(0,n._)([(0,c.Cb)(A.rn)],H.prototype,"legendEnabled",void 0),(0,n._)([(0,c.Cb)({type:["show","hide"]})],H.prototype,"listMode",void 0),(0,n._)([(0,c.Cb)({type:String})],H.prototype,"objectIdField",void 0),(0,n._)([(0,c.Cb)({type:["WFS"]})],H.prototype,"operationalLayerType",void 0),(0,n._)([(0,c.Cb)({type:p.z8,json:{name:"wfsInfo.maxFeatures",write:{ignoreOrigin:!0,isRequired:!0}}})],H.prototype,"maxFeatures",void 0),(0,n._)([(0,c.Cb)({type:[0],readOnly:!0,json:{origins:{"web-map":{write:{ignoreOrigin:!0,isRequired:!0}}}}})],H.prototype,"mode",void 0),(0,n._)([(0,c.Cb)({type:String,json:{name:"wfsInfo.name",write:{ignoreOrigin:!0,isRequired:!0}}})],H.prototype,"name",void 0),(0,n._)([(0,c.Cb)({type:String,json:{name:"wfsInfo.wfsNamespace",write:{ignoreOrigin:!0,isRequired:!0}}})],H.prototype,"namespaceUri",void 0),(0,n._)([(0,c.Cb)(A.bT)],H.prototype,"opacity",void 0),(0,n._)([(0,c.Cb)(z.outFields)],H.prototype,"outFields",void 0),(0,n._)([(0,c.Cb)({readOnly:!0})],H.prototype,"parsedUrl",null),(0,n._)([(0,c.Cb)(A.C_)],H.prototype,"popupEnabled",void 0),(0,n._)([(0,c.Cb)({type:s.Z,json:{name:"popupInfo",write:!0}})],H.prototype,"popupTemplate",void 0),(0,n._)([(0,c.Cb)({types:i.A,json:{origins:{service:{name:"drawingInfo.renderer"},"web-scene":{types:i.o,name:"layerDefinition.drawingInfo.renderer",write:!0}},name:"layerDefinition.drawingInfo.renderer",write:{ignoreOrigin:!0}}})],H.prototype,"renderer",null),(0,n._)([(0,c.Cb)(A.YI)],H.prototype,"screenSizePerspectiveEnabled",void 0),(0,n._)([(0,c.Cb)({readOnly:!0})],H.prototype,"source",void 0),(0,n._)([(0,c.Cb)({type:W.Z,json:{name:"layerDefinition.spatialReference",write:{ignoreOrigin:!0,isRequired:!0},origins:{service:{name:"extent.spatialReference"}}}})],H.prototype,"spatialReference",void 0),(0,n._)([(0,c.Cb)({readOnly:!0,type:[p.z8],json:{name:"wfsInfo.supportedSpatialReferences",write:{ignoreOrigin:!0,isRequired:!0}}})],H.prototype,"spatialReferences",void 0),(0,n._)([(0,c.Cb)({type:Boolean,value:!1,json:{name:"wfsInfo.swapXY",write:{ignoreOrigin:!0,isRequired:!0}}})],H.prototype,"swapXY",void 0),(0,n._)([(0,c.Cb)({json:{write:{ignoreOrigin:!0,isRequired:!0},origins:{service:{name:"name"}}}})],H.prototype,"title",void 0),(0,n._)([(0,c.Cb)({json:{read:!1},readOnly:!0})],H.prototype,"type",void 0),(0,n._)([(0,c.Cb)(A.HQ)],H.prototype,"url",void 0),(0,n._)([(0,c.Cb)({type:String,readOnly:!0,json:{name:"wfsInfo.version",write:{ignoreOrigin:!0,isRequired:!0}}})],H.prototype,"version",void 0),(0,n._)([(0,c.Cb)({aliasOf:"source.wfsCapabilities"})],H.prototype,"wfsCapabilities",void 0),H=k=(0,n._)([(0,h.j)("esri.layers.WFSLayer")],H);const Y=H},70272:(e,t,r)=>{r.d(t,{nd:()=>o,ZP:()=>s,S6:()=>i});var n=r(70586);class s{constructor(e=null,t={},r,n){this.geometry=e,this.attributes=t,this.centroid=r,this.objectId=n,this.displayId=0,this.geohashX=0,this.geohashY=0}weakClone(){const e=new s(this.geometry,this.attributes,this.centroid,this.objectId);return e.displayId=this.displayId,e.geohashX=this.geohashX,e.geohashY=this.geohashY,e}}function i(e){return!((0,n.Wi)(e.geometry)||!e.geometry.coords||!e.geometry.coords.length)}class o extends s{}},5428:(e,t,r)=>{r.d(t,{Z:()=>n});class n{constructor(e=[],t=[],r=!1){this.lengths=null!=e?e:[],this.coords=null!=t?t:[],this.hasIndeterminateRingOrder=r}get isPoint(){return 0===this.lengths.length}get maxLength(){return Math.max(...this.lengths)}get size(){return this.lengths.reduce(((e,t)=>e+t))}forEachVertex(e){let t=0;this.lengths.length||e(this.coords[0],this.coords[1]);for(let r=0;r<this.lengths.length;r++){const n=this.lengths[r];for(let r=0;r<n;r++)e(this.coords[2*(r+t)],this.coords[2*(r+t)+1]);t+=n}}clone(e){return e?(e.set(this.coords),new n(this.lengths.slice(),e,this.hasIndeterminateRingOrder)):new n(this.lengths.slice(),this.coords.slice(),this.hasIndeterminateRingOrder)}}},61159:(e,t,r)=>{r.d(t,{g:()=>n});const n={supportsStatistics:!0,supportsPercentileStatistics:!0,supportsSpatialAggregationStatistics:!1,supportedSpatialAggregationStatistics:{envelope:!1,centroid:!1,convexHull:!1},supportsCentroid:!0,supportsCacheHint:!1,supportsDistance:!0,supportsDistinct:!0,supportsExtent:!0,supportsGeometryProperties:!1,supportsHavingClause:!0,supportsOrderBy:!0,supportsPagination:!0,supportsQuantization:!0,supportsQuantizationEditMode:!1,supportsQueryGeometry:!0,supportsResultType:!1,supportsSqlExpression:!0,supportsMaxRecordCountFactor:!1,supportsStandardizedQueriesOnly:!0,supportsTopFeaturesQuery:!1,supportsQueryByOthers:!0,supportsHistoricMoment:!1,supportsFormatPBF:!1,supportsDisjointSpatialRelationship:!0,maxRecordCountFactor:void 0,maxRecordCount:void 0,standardMaxRecordCount:void 0,tileMaxRecordCount:void 0}},25278:(e,t,r)=>{r.d(t,{MS:()=>c,Dm:()=>l,Hq:()=>u,bU:()=>a});var n=r(80442),s=r(22974),i=r(61159),o=r(58333);function a(e){return{renderer:{type:"simple",symbol:"esriGeometryPoint"===e||"esriGeometryMultipoint"===e?o.I4:"esriGeometryPolyline"===e?o.ET:o.lF}}}function l(e,t){if((0,n.Z)("esri-csp-restrictions"))return()=>({[t]:null,...e});try{let r=`this.${t} = null;`;for(const t in e)r+=`this${t.includes(".")?`["${t}"]`:`.${t}`} = ${JSON.stringify(e[t])};`;const n=new Function(r);return()=>new n}catch(r){return()=>({[t]:null,...e})}}function u(e={}){return[{name:"New Feature",description:"",prototype:{attributes:(0,s.d9)(e)}}]}function c(e,t){return{attachment:null,data:{isVersioned:!1,supportsAttachment:!1,supportsM:!1,supportsZ:e},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:t,supportsDelete:t,supportsEditing:t,supportsChangeTracking:!1,supportsQuery:!0,supportsQueryAttachments:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:t,supportsExceedsLimitStatistics:!0},query:i.g,queryRelated:{supportsCount:!0,supportsOrderBy:!0,supportsPagination:!0},editing:{supportsGeometryUpdate:t,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1}}}},68825:(e,t,r)=>{r.d(t,{c:()=>m});var n,s=r(43697),i=r(78286),o=r(5600),a=(r(67676),r(80442),r(75215),r(52011)),l=r(35454),u=r(96674);const c=new l.X({asc:"ascending",desc:"descending"});let d=n=class extends u.wq{constructor(e){super(e),this.field=null,this.valueExpression=null,this.order="ascending"}clone(){return new n({field:this.field,valueExpression:this.valueExpression,order:this.order})}};(0,s._)([(0,o.Cb)({type:String,json:{write:!0}})],d.prototype,"field",void 0),(0,s._)([(0,o.Cb)({type:String,json:{write:!0}})],d.prototype,"valueExpression",void 0),(0,s._)([(0,o.Cb)({type:c.apiValues,json:{read:c.read,write:c.write}})],d.prototype,"order",void 0),d=n=(0,s._)([(0,a.j)("esri.layers.support.OrderByInfo")],d);const p=d;function h(e,t,r){if(!e)return null;const n=e.find((e=>!!e.field));if(!n)return null;const s=new p;return s.read(n,r),[s]}function f(e,t,r,n){const s=e.find((e=>!!e.field));s&&(0,i.RB)(r,[s.toJSON()],t)}const m=e=>{let t=class extends e{constructor(){super(...arguments),this.orderBy=null}};return(0,s._)([(0,o.Cb)({type:[p],json:{origins:{"web-scene":{write:!1,read:!1}},read:{source:"layerDefinition.orderBy",reader:h},write:{target:"layerDefinition.orderBy",writer:f}}})],t.prototype,"orderBy",void 0),t=(0,s._)([(0,a.j)("esri.layers.mixins.OrderedLayer")],t),t}},16859:(e,t,r)=>{r.d(t,{I:()=>w});var n=r(43697),s=r(40330),i=r(3172),o=r(66643),a=r(20102),l=r(92604),u=r(70586),c=r(95330),d=r(17452),p=r(5600),h=(r(67676),r(80442),r(75215),r(71715)),f=r(52011),m=r(30556),y=r(65587),g=r(15235),b=r(86082);const v=l.Z.getLogger("esri.layers.mixins.PortalLayer"),w=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,r){if(t.itemId)return new g.default({id:t.itemId,portal:r&&r.portal})}writePortalItem(e,t){e&&e.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem&&this.portalItem.id)try{const n=await r.e(8062).then(r.bind(r,18062));return(0,c.k_)(t),await n.load({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData},t)}catch(e){throw(0,c.D_)(e)||v.warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch((e=>((0,c.r9)(e),!0))))}async _fetchUserHasEditingPrivileges(e){const t=this.url?null==s.id?void 0:s.id.findCredential(this.url):null;if(!t)return!0;const r=_.credential===t?_.user:await this._fetchEditingUser(e);return _.credential=t,_.user=r,(0,u.Wi)(r)||null==r.privileges||r.privileges.includes("features:user:edit")}async _fetchEditingUser(e){var t,r;const n=null==(t=this.portalItem)||null==(r=t.portal)?void 0:r.user;if(n)return n;const a=s.id.findServerInfo(this.url);if(null==a||!a.owningSystemUrl)return null;const l=`${a.owningSystemUrl}/sharing/rest`,c=y.Z.getDefault();if(c&&c.loaded&&(0,d.Fv)(c.restUrl)===(0,d.Fv)(l))return c.user;const p=`${l}/community/self`,h=(0,u.pC)(e)?e.signal:null,f=await(0,o.q6)((0,i.default)(p,{authMode:"no-prompt",query:{f:"json"},signal:h}));return f.ok?b.default.fromJSON(f.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const r=t&&t.portal,n=this.portalItem&&this.portalItem.id&&(this.portalItem.portal||y.Z.getDefault());return r&&n&&!(0,d.tm)(n.restUrl,r.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,n._)([(0,p.Cb)({type:g.default})],t.prototype,"portalItem",null),(0,n._)([(0,h.r)("web-document","portalItem",["itemId"])],t.prototype,"readPortalItem",null),(0,n._)([(0,m.c)("web-document","portalItem",{itemId:{type:String}})],t.prototype,"writePortalItem",null),(0,n._)([(0,p.Cb)()],t.prototype,"resourceReferences",void 0),(0,n._)([(0,p.Cb)({readOnly:!0})],t.prototype,"userHasEditingPrivileges",void 0),t=(0,n._)([(0,f.j)("esri.layers.mixins.PortalLayer")],t),t},_={credential:null,user:null}},86719:(e,t,r)=>{r.d(t,{v:()=>n});const n=new(r(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"})},35671:(e,t,r)=>{r.d(t,{io:()=>g,AB:()=>y,gd:()=>m,Mu:()=>w,Q0:()=>f,YN:()=>c,UF:()=>p,O5:()=>b,os:()=>_,H7:()=>T,qN:()=>U,Pz:()=>L,Qc:()=>M,vP:()=>D});var n,s,i=r(20102),o=r(78286);(s=n||(n={})).VALUE_OUT_OF_RANGE="domain-validation-error::value-out-of-range",s.INVALID_CODED_VALUE="domain-validation-error::invalid-coded-value";var a=r(59266);const l=["field","field2","field3","normalizationField","rotationInfo.field","proportionalSymbolInfo.field","proportionalSymbolInfo.normalizationField","colorInfo.field","colorInfo.normalizationField"],u=["field","normalizationField"];function c(e,t){if(null!=e&&null!=t)for(const r of Array.isArray(e)?e:[e])if(d(l,r,t),"visualVariables"in r&&r.visualVariables)for(const e of r.visualVariables)d(u,e,t)}function d(e,t,r){if(e)for(const n of e){const e=(0,o.hS)(n,t),s=e&&"function"!=typeof e&&r.get(e);s&&(0,o.RB)(n,s.name,t)}}function p(e,t){if(null!=e&&null!=t&&t.fields.length)if("startField"in e){const r=t.get(e.startField),n=t.get(e.endField);e.startField=r&&r.name||null,e.endField=n&&n.name||null}else{const r=t.get(e.startTimeField),n=t.get(e.endTimeField);e.startTimeField=r&&r.name||null,e.endTimeField=n&&n.name||null}}const h=new Set;function f(e,t){return e&&t?(h.clear(),m(h,e,t),Array.from(h).sort()):[]}function m(e,t,r){var n;if(r)if(null!=t&&null!=(n=t.fields)&&n.length)if(r.includes("*"))for(const{name:r}of t.fields)e.add(r);else for(const n of r)y(e,t,n);else{if(r.includes("*"))return e.clear(),void e.add("*");for(const t of r)e.add(t)}}function y(e,t,r){if("string"==typeof r)if(t){const n=t.get(r);n&&e.add(n.name)}else e.add(r)}async function g(e,t,r){var n;if(!r)return;const{arcadeUtils:s}=await(0,a.LC)(),i=s.extractFieldNames(r,null==t||null==(n=t.fields)?void 0:n.map((e=>e.name)));for(const r of i)y(e,t,r)}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 r of e)if(r&&r.valueType&&r.valueType===t)return r.name;return null}async function w(e,t){const{labelingInfo:n,fieldsIndex:s}=t;n&&n.length&&await Promise.all(n.map((t=>async function(e,t,n){if(!n)return;const s=n.getLabelExpression(),o=n.where;if("arcade"===s.type)await g(e,t,s.expression);else{const r=s.expression.match(/{[^}]*}/g);r&&r.forEach((r=>{y(e,t,r.slice(1,-1))}))}await async function(e,t,n){if(n&&"1=1"!==n){const s=(await Promise.all([r.e(1534),r.e(5732)]).then(r.bind(r,41534))).WhereClause.create(n,t);if(!s.isStandardized)throw new i.Z("fieldUtils:collectFilterFields","Where clause is not standardized");m(e,t,s.fieldNames)}}(e,t,o)}(e,s,t))))}function _(e){const t=e.defaultValue;return void 0!==t&&x(e,t)?t:e.nullable?null:void 0}function S(e){return"number"==typeof e&&!isNaN(e)&&isFinite(e)}function C(e){return null===e||S(e)}const O="isInteger"in Number?Number.isInteger:e=>"number"==typeof e&&isFinite(e)&&Math.floor(e)===e;function I(e){return null===e||O(e)}function P(e){return null!=e&&"string"==typeof e}function E(e){return null===e||P(e)}function k(){return!0}function x(e,t){let r;switch(e.type){case"date":case"integer":case"long":case"small-integer":case"esriFieldTypeDate":case"esriFieldTypeInteger":case"esriFieldTypeLong":case"esriFieldTypeSmallInteger":r=e.nullable?I:O;break;case"double":case"single":case"esriFieldTypeSingle":case"esriFieldTypeDouble":r=e.nullable?C:S;break;case"string":case"esriFieldTypeString":r=e.nullable?E:P;break;default:r=k}return 1===arguments.length?r:r(t)}const F=new Set(["integer","small-integer","single","double","esriFieldTypeInteger","esriFieldTypeSmallInteger","esriFieldTypeSingle","esriFieldTypeDouble"]);function T(e){return null!=e&&F.has(e.type)}function U(e){return null!=e&&("string"===e.type||"esriFieldTypeString"===e.type)}var R,N;function L(e){return null==e||"number"==typeof e&&isNaN(e)?null:e}function M(e,t){return e.nullable&&null===t?null:T(e)&&!function(e,t){const r="string"==typeof e?j(e):e;return!!r&&(r.isInteger?O(t)&&t>=r.min&&t<=r.max:t>=r.min&&t<=r.max)}(e.type,Number(t))?R.OUT_OF_RANGE:x(e,t)?e.domain?function(e,t){switch(e.type){case"range":{const r="range"in e?e.range[0]:e.minValue,s="range"in e?e.range[1]:e.maxValue;if(+t<r||+t>s)return n.VALUE_OUT_OF_RANGE;break}case"coded-value":case"codedValue":if(null==e.codedValues||e.codedValues.every((e=>null==e||e.code!==t)))return n.INVALID_CODED_VALUE}return null}(e.domain,t):null:N.INVALID_TYPE}function j(e){switch(e){case"esriFieldTypeSmallInteger":case"small-integer":return A;case"esriFieldTypeInteger":case"integer":return q;case"esriFieldTypeSingle":case"single":return Z;case"esriFieldTypeDouble":case"double":return $}}!function(e){e.OUT_OF_RANGE="numeric-range-validation-error::out-of-range"}(R||(R={})),function(e){e.INVALID_TYPE="type-validation-error::invalid-type"}(N||(N={}));const A={min:-32768,max:32767,isInteger:!0},q={min:-2147483648,max:2147483647,isInteger:!0},Z={min:-34e37,max:12e37,isInteger:!1},$={min:-Number.MAX_VALUE,max:Number.MAX_VALUE,isInteger:!1};function D(e,t,r){switch(e){case n.INVALID_CODED_VALUE:return`Value ${r} is not in the coded domain - field: ${t.name}, domain: ${JSON.stringify(t.domain)}`;case n.VALUE_OUT_OF_RANGE:return`Value ${r} is out of the range of valid values - field: ${t.name}, domain: ${JSON.stringify(t.domain)}`;case N.INVALID_TYPE:return`Value ${r} is not a valid value for the field type - field: ${t.name}, type: ${t.type}, nullable: ${t.nullable}`;case R.OUT_OF_RANGE:{const{min:e,max:n}=j(t.type);return`Value ${r} is out of range for the number type - field: ${t.name}, type: ${t.type}, value range is ${e} to ${n}`}}}},99282:(e,t,r)=>{r.d(t,{a:()=>i});var n=r(67900),s=r(68441);const i={inches:(0,n.En)(1,"meters","inches"),feet:(0,n.En)(1,"meters","feet"),"us-feet":(0,n.En)(1,"meters","us-feet"),yards:(0,n.En)(1,"meters","yards"),miles:(0,n.En)(1,"meters","miles"),"nautical-miles":(0,n.En)(1,"meters","nautical-miles"),millimeters:(0,n.En)(1,"meters","millimeters"),centimeters:(0,n.En)(1,"meters","centimeters"),decimeters:(0,n.En)(1,"meters","decimeters"),meters:(0,n.En)(1,"meters","meters"),kilometers:(0,n.En)(1,"meters","kilometers"),"decimal-degrees":1/(0,n.ty)(1,"meters",s.sv.radius)}},51706:(e,t,r)=>{var n,s;function i(e){return e&&"esri.renderers.visualVariables.SizeVariable"===e.declaredClass}function o(e){return null!=e&&!isNaN(e)&&isFinite(e)}function a(e){return e.valueExpression?n.Expression:e.field&&"string"==typeof e.field?n.Field:n.Unknown}function l(e,t){const r=t||a(e),i=e.valueUnit||"unknown";return r===n.Unknown?s.Constant:e.stops?s.Stops:null!=e.minSize&&null!=e.maxSize&&null!=e.minDataValue&&null!=e.maxDataValue?s.ClampedLinear:"unknown"===i?null!=e.minSize&&null!=e.minDataValue?e.minSize&&e.minDataValue?s.Proportional:s.Additive:s.Identity:s.RealWorldSize}r.d(t,{RY:()=>n,hL:()=>s,PS:()=>a,QW:()=>l,iY:()=>i,qh:()=>o}),function(e){e.Unknown="unknown",e.Expression="expression",e.Field="field"}(n||(n={})),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,r)=>{r.d(t,{PR:()=>S,Lq:()=>f,Km:()=>m,cM:()=>y,ap:()=>g,V3:()=>w,B3:()=>h});var n=r(22303),s=r(1692),i=r(74085),o=r(92604),a=r(70586),l=r(99282),u=r(51706);const c=o.Z.getLogger("esri.renderers.visualVariables.support.visualVariableUtils"),d=new s.Z,p=Math.PI,h=/^\s*(return\s+)?\$view\.scale\s*(;)?\s*$/i;function f(e,t,r){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 c.warn("The visualVariable should be an instance of esri.renderers.visualVariables.ColorVariable");const i="number"==typeof t,o=i?null:t,l=o&&o.attributes;let u=i?t:null;const d=s.field,{ipData:p,hasExpression:h}=s.cache;let f=s.cache.compiledFunc;if(!d&&!h){const e=s.stops;return e&&e[0]&&e[0].color}if("number"!=typeof u)if(h){if(!(0,a.pC)(r)||!(0,a.pC)(r.arcade))return void c.error("Use of arcade expressions requires an arcade context");const e={viewingMode:r.viewingMode,scale:r.scale,spatialReference:r.spatialReference},t=r.arcade.arcadeUtils,n=t.getViewInfo(e),i=t.createExecContext(o,n);if(!f){const e=t.createSyntaxTree(s.valueExpression);f=t.createFunction(e),s.cache.compiledFunc=f}u=t.executeFunction(f,i)}else l&&(u=l[d]);const m=s.normalizationField,y=l?parseFloat(l[m]):void 0;if(null!=u&&(!m||i||!isNaN(y)&&0!==y)){isNaN(y)||i||(u/=y);const e=_(u,p);if(e){const t=e[0],i=e[1],o=t===i?s.stops[t].color:n.Z.blendColors(s.stops[t].color,s.stops[i].color,e[2],(0,a.pC)(r)?r.color:void 0);return new n.Z(o)}}}function m(e,t,r){const n="visualVariables"in e&&e.visualVariables?e.visualVariables.filter((e=>"opacity"===e.type))[0]:e;if(!n)return;if("esri.renderers.visualVariables.OpacityVariable"!==n.declaredClass)return void c.warn("The visualVariable should be an instance of esri.renderers.visualVariables.OpacityVariable");const s="number"==typeof t,i=s?null:t,o=i&&i.attributes;let l=s?t:null;const u=n.field,{ipData:d,hasExpression:p}=n.cache;let h=n.cache.compiledFunc;if(!u&&!p){const e=n.stops;return e&&e[0]&&e[0].opacity}if("number"!=typeof l)if(p){if((0,a.Wi)(r)||(0,a.Wi)(r.arcade))return void c.error("Use of arcade expressions requires an arcade context");const e={viewingMode:r.viewingMode,scale:r.scale,spatialReference:r.spatialReference},t=r.arcade.arcadeUtils,s=t.getViewInfo(e),o=t.createExecContext(i,s);if(!h){const e=t.createSyntaxTree(n.valueExpression);h=t.createFunction(e),n.cache.compiledFunc=h}l=t.executeFunction(h,o)}else o&&(l=o[u]);const f=n.normalizationField,m=o?parseFloat(o[f]):void 0;if(null!=l&&(!f||s||!isNaN(m)&&0!==m)){isNaN(m)||s||(l/=m);const e=_(l,d);if(e){const t=e[0],r=e[1];if(t===r)return n.stops[t].opacity;{const s=n.stops[t].opacity;return s+(n.stops[r].opacity-s)*e[2]}}}}function y(e,t,r){const n="visualVariables"in e&&e.visualVariables?e.visualVariables.filter((e=>"rotation"===e.type))[0]:e;if(!n)return;if("esri.renderers.visualVariables.RotationVariable"!==n.declaredClass)return void c.warn("The visualVariable should be an instance of esri.renderers.visualVariables.RotationVariable");const s=n.axis||"heading",i="heading"===s&&"arithmetic"===n.rotationType?90:0,o="heading"===s&&"arithmetic"===n.rotationType?-1:1,l="number"==typeof t?null:t,u=l&&l.attributes,d=n.field,{hasExpression:p}=n.cache;let h=n.cache.compiledFunc,f=0;if(!d&&!p)return f;if(p){if((0,a.Wi)(r)||(0,a.Wi)(r.arcade))return void c.error("Use of arcade expressions requires an arcade context");const e={viewingMode:r.viewingMode,scale:r.scale,spatialReference:r.spatialReference},t=r.arcade.arcadeUtils,s=t.getViewInfo(e),i=t.createExecContext(l,s);if(!h){const e=t.createSyntaxTree(n.valueExpression);h=t.createFunction(e),n.cache.compiledFunc=h}f=t.executeFunction(h,i)}else u&&(f=u[d]||0);return f="number"!=typeof f||isNaN(f)?null:i+o*f,f}function g(e,t,r){const n="visualVariables"in e&&e.visualVariables?e.visualVariables.filter((e=>"size"===e.type))[0]:e;if(!n)return;if("esri.renderers.visualVariables.SizeVariable"!==n.declaredClass)return void c.warn("The visualVariable should be an instance of esri.renderers.visualVariables.SizeVariable");const s=function(e,t,r,n,s){switch(t.transformationType){case u.hL.Additive:return function(e,t,r,n){return e+(b(t.minSize,r,n)||t.minDataValue)}(e,t,r,n);case u.hL.Constant:return function(e,t,r){const n=e.stops;let s=n&&n.length&&n[0].size;return null==s&&(s=e.minSize),b(s,t,r)}(t,r,n);case u.hL.ClampedLinear:return function(e,t,r,n){const s=(e-t.minDataValue)/(t.maxDataValue-t.minDataValue),i=b(t.minSize,r,n),o=b(t.maxSize,r,n),l=(0,a.pC)(n)?n.shape:void 0;if(e<=t.minDataValue)return i;if(e>=t.maxDataValue)return o;if("area"===t.scaleBy&&l){const e="circle"===l,t=e?p*(i/2)**2:i*i,r=t+s*((e?p*(o/2)**2:o*o)-t);return e?2*Math.sqrt(r/p):Math.sqrt(r)}return i+s*(o-i)}(e,t,r,n);case u.hL.Proportional:return function(e,t,r,n){const s=(0,a.pC)(n)?n.shape:void 0,i=e/t.minDataValue,o=b(t.minSize,r,n),l=b(t.maxSize,r,n);let u=null;return u="circle"===s?2*Math.sqrt(i*(o/2)**2):"square"===s||"diamond"===s||"image"===s?Math.sqrt(i*o**2):i*o,v(u,o,l)}(e,t,r,n);case u.hL.Stops:return function(e,t,r,n,s){const[i,o,a]=_(e,s);if(i===o)return b(t.stops[i].size,r,n);{const e=b(t.stops[i].size,r,n);return e+(b(t.stops[o].size,r,n)-e)*a}}(e,t,r,n,s);case u.hL.RealWorldSize:return function(e,t,r,n){const s=((0,a.pC)(n)&&n.resolution?n.resolution:1)*l.a[t.valueUnit],i=b(t.minSize,r,n),o=b(t.maxSize,r,n),{valueRepresentation:u}=t;let c=null;return c="area"===u?2*Math.sqrt(e/p)/s:"radius"===u||"distance"===u?2*e/s:e/s,v(c,i,o)}(e,t,r,n);case u.hL.Identity:return e;case u.hL.Unknown:return null}}(function(e,t,r){const n="number"==typeof t,s=n?null:t,i=s&&s.attributes;let o=n?t:null;const{isScaleDriven:l}=e.cache;let d=e.cache.compiledFunc;if(l){const t=(0,a.pC)(r)?r.scale:void 0,n=(0,a.pC)(r)?r.view:void 0;o=null==t||"3d"===n?function(e){let t=null,r=null;const n=e.stops;return n?(t=n[0].value,r=n[n.length-1].value):(t=e.minDataValue||0,r=e.maxDataValue||0),(t+r)/2}(e):t}else if(!n)switch(e.inputValueType){case u.RY.Expression:{if((0,a.Wi)(r)||(0,a.Wi)(r.arcade))return void c.error("Use of arcade expressions requires an arcade context");const t={viewingMode:r.viewingMode,scale:r.scale,spatialReference:r.spatialReference},n=r.arcade.arcadeUtils,i=n.getViewInfo(t),l=n.createExecContext(s,i);if(!d){const t=n.createSyntaxTree(e.valueExpression);d=n.createFunction(t),e.cache.compiledFunc=d}o=n.executeFunction(d,l);break}case u.RY.Field:i&&(o=i[e.field]);break;case u.RY.Unknown:o=null}if(!(0,u.qh)(o))return null;if(n||!e.normalizationField)return o;const p=i?parseFloat(i[e.normalizationField]):null;return(0,u.qh)(p)&&0!==p?o/p:null}(n,t,r),n,t,r,n.cache.ipData);return null==s||isNaN(s)?0:s}function b(e,t,r){return null==e?null:(0,u.iY)(e)?g(e,t,r):(0,u.qh)(e)?e:null}function v(e,t,r){return(0,u.qh)(r)&&e>r?r:(0,u.qh)(t)&&e<t?t:e}function w(e,t,r){const{isScaleDriven:n}=e.cache;if(!(n&&"3d"===r||t))return null;const s={scale:t,view:r};let i=b(e.minSize,d,s),o=b(e.maxSize,d,s);if(null!=i||null!=o){if(i>o){const e=o;o=i,i=e}return{minSize:i,maxSize:o}}}function _(e,t){if(!t)return;let r=0,n=t.length-1;return t.some(((t,s)=>e<t?(n=s,!0):(r=s,!1))),[r,n,(e-t[r])/(t[n]-t[r])]}function S(e,t,r){const n=["proportional","proportional","proportional"];for(const s of e){const e=s.useSymbolValue?"symbol-value":g(s,t,r);switch(s.axis){case"width":n[0]=e;break;case"depth":n[1]=e;break;case"height":n[2]=e;break;case"width-and-depth":n[0]=e,n[1]=e;break;case"all":case void 0:case null:n[0]=e,n[1]=e,n[2]=e;break;default:(0,i.Bg)(s.axis)}}return n}},74889:(e,t,r)=>{r.r(t),r.d(t,{default:()=>w});var n,s=r(43697),i=r(66577),o=r(1692),a=r(35454),l=r(96674),u=r(22974),c=r(70586),d=r(5600),p=(r(75215),r(71715)),h=r(52011),f=r(30556),m=r(82971),y=r(33955),g=r(1231);const b=new a.X({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let v=n=class extends l.wq{constructor(e){super(e),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(e,t){const r=m.Z.fromJSON(t.spatialReference),n=[];for(let t=0;t<e.length;t++){const s=e[t],i=o.Z.fromJSON(s),a=s.geometry&&s.geometry.spatialReference;(0,c.pC)(i.geometry)&&!a&&(i.geometry.spatialReference=r),n.push(i)}return n}writeGeometryType(e,t,r,n){if(e)return void b.write(e,t,r,n);const{features:s}=this;if(s)for(const e of s)if(e&&(0,c.pC)(e.geometry))return void b.write(e.geometry.type,t,r,n)}readQueryGeometry(e,t){if(!e)return null;const r=!!e.spatialReference,n=(0,y.im)(e);return!r&&t.spatialReference&&(n.spatialReference=m.Z.fromJSON(t.spatialReference)),n}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());const{features:r}=this;if(r)for(const e of r)if(e&&(0,c.pC)(e.geometry)&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new n(this.cloneProperties())}cloneProperties(){return(0,u.d9)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(e){const t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let r=0;r<t.features.length;r++){const n=t.features[r];if(n.geometry){const t=e&&e[r];n.geometry=t&&t.toJSON()||n.geometry}}return t}quantize(e){const{scale:[t,r],translate:[n,s]}=e,i=this.features,o=this._getQuantizationFunction(this.geometryType,(e=>Math.round((e-n)/t)),(e=>Math.round((s-e)/r)));for(let e=0,t=i.length;e<t;e++)o((0,c.Wg)(i[e].geometry))||(i.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){const{geometryType:e,features:t,transform:r}=this;if(!r)return this;const{translate:[n,s],scale:[i,o]}=r,a=this._getHydrationFunction(e,(e=>e*i+n),(e=>s-e*o));for(const{geometry:e}of t)(0,c.pC)(e)&&a(e);return this.transform=null,this}_quantizePoints(e,t,r){let n,s;const i=[];for(let o=0,a=e.length;o<a;o++){const a=e[o];if(o>0){const e=t(a[0]),o=r(a[1]);e===n&&o===s||(i.push([e-n,o-s]),n=e,s=o)}else n=t(a[0]),s=r(a[1]),i.push([n,s])}return i.length>0?i:null}_getQuantizationFunction(e,t,r){return"point"===e?e=>(e.x=t(e.x),e.y=r(e.y),e):"polyline"===e||"polygon"===e?e=>{const n=(0,y.oU)(e)?e.rings:e.paths,s=[];for(let e=0,i=n.length;e<i;e++){const i=n[e],o=this._quantizePoints(i,t,r);o&&s.push(o)}return s.length>0?((0,y.oU)(e)?e.rings=s:e.paths=s,e):null}:"multipoint"===e?e=>{const n=this._quantizePoints(e.points,t,r);return n.length>0?(e.points=n,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,r){return"point"===e?e=>{e.x=t(e.x),e.y=r(e.y)}:"polyline"===e||"polygon"===e?e=>{const n=(0,y.oU)(e)?e.rings:e.paths;let s,i;for(let e=0,o=n.length;e<o;e++){const o=n[e];for(let e=0,n=o.length;e<n;e++){const n=o[e];e>0?(s+=n[0],i+=n[1]):(s=n[0],i=n[1]),n[0]=t(s),n[1]=r(i)}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=r(e.ymin),e.xmax=t(e.xmax),e.ymax=r(e.ymax)}:"multipoint"===e?e=>{const n=e.points;let s,i;for(let e=0,o=n.length;e<o;e++){const o=n[e];e>0?(s+=o[0],i+=o[1]):(s=o[0],i=o[1]),o[0]=t(s),o[1]=r(i)}}:void 0}};(0,s._)([(0,d.Cb)({type:String,json:{write:!0}})],v.prototype,"displayFieldName",void 0),(0,s._)([(0,d.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"exceededTransferLimit",void 0),(0,s._)([(0,d.Cb)({type:[o.Z],json:{write:!0}})],v.prototype,"features",void 0),(0,s._)([(0,p.r)("features")],v.prototype,"readFeatures",null),(0,s._)([(0,d.Cb)({type:[g.Z],json:{write:!0}})],v.prototype,"fields",void 0),(0,s._)([(0,d.Cb)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:b.read}}})],v.prototype,"geometryType",void 0),(0,s._)([(0,f.c)("geometryType")],v.prototype,"writeGeometryType",null),(0,s._)([(0,d.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"hasM",void 0),(0,s._)([(0,d.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"hasZ",void 0),(0,s._)([(0,d.Cb)({types:i.qM,json:{write:!0}})],v.prototype,"queryGeometry",void 0),(0,s._)([(0,p.r)("queryGeometry")],v.prototype,"readQueryGeometry",null),(0,s._)([(0,d.Cb)({type:m.Z,json:{write:!0}})],v.prototype,"spatialReference",void 0),(0,s._)([(0,f.c)("spatialReference")],v.prototype,"writeSpatialReference",null),(0,s._)([(0,d.Cb)({json:{write:!0}})],v.prototype,"transform",void 0),v=n=(0,s._)([(0,h.j)("esri.rest.support.FeatureSet")],v),v.prototype.toJSON.isDefaultToJSON=!0;const w=v},59266:(e,t,r)=>{r.d(t,{mz:()=>c,pp:()=>u,WW:()=>a,Yi:()=>l,LC:()=>o}),r(66577);var n=r(70586),s=r(82971);let i;function o(){return i||(i=(async()=>{const e=await Promise.all([r.e(9490),r.e(6690)]).then(r.bind(r,96690));return{arcade:e.arcade,arcadeUtils:e,Dictionary:e.Dictionary,Feature:e.arcadeFeature}})()),i}const a=(e,t,r)=>c.create(e,t,r,null,["$feature"]),l=(e,t,r)=>c.create(e,t,r,null,["$feature","$view"]),u=(e,t,r,n)=>c.create(e,t,r,n,["$feature","$view"]);class c{constructor(e,t,r,n,s,i,o,a){this.script=e,this.evaluate=s;const l=Array.isArray(o)?o:o.fields;this.fields=l,this._syntaxTree=n,this._arcade=t,this._arcadeDictionary=r,this._arcadeFeature=i,this._spatialReference=a,this._referencesGeometry=t.scriptTouchesGeometry(this._syntaxTree),this._referencesScale=this._arcade.referencesMember(this._syntaxTree,"scale")}static async create(e,t,r,i,a,l){const{arcade:u,Feature:d,Dictionary:p}=await o(),h=s.Z.fromJSON(t),f=u.parseScript(e,l),m=a.reduce(((e,t)=>({...e,[t]:null})),{});let y=null;(0,n.pC)(i)&&(y=new p(i),y.immutable=!0,m.$config=null);const g=u.scriptUsesGeometryEngine(f)&&u.enableGeometrySupport(),b=u.scriptUsesFeatureSet(f)&&u.enableFeatureSetSupport(),v=u.scriptIsAsync(f)&&u.enableAsyncSupport(),w={vars:m,spatialReference:h,useAsync:!!v},_=new p;_.immutable=!1,_.setField("scale",0);const S=u.compileScript(f,w);return await Promise.all([g,b,v]),new c(e,u,p,f,(e=>("$view"in e&&e.$view&&(_.setField("scale",e.$view.scale),e.$view=_),y&&(e.$config=y),S({vars:e,spatialReference:h}))),new d,r,h)}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)}}},58333:(e,t,r)=>{r.d(t,{I4:()=>s,lF:()=>o,ET:()=>i,qP:()=>a,eG:()=>l,lj:()=>c,wW:()=>u});const n=[252,146,31,255],s={type:"esriSMS",style:"esriSMSCircle",size:6,color:n,outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[153,153,153,255]}},i={type:"esriSLS",style:"esriSLSSolid",width:.75,color:n},o={type:"esriSFS",style:"esriSFSSolid",color:[252,146,31,196],outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[255,255,255,191]}},a={type:"esriTS",color:[255,255,255,255],font:{family:"arial-unicode-ms",size:10,weight:"bold"},horizontalAlignment:"center",kerning:!0,haloColor:[0,0,0,255],haloSize:1,rotated:!1,text:"",xoffset:0,yoffset:0,angle:0},l={type:"esriSMS",style:"esriSMSCircle",color:[0,0,0,255],outline:null,size:10.5},u={type:"esriSLS",style:"esriSLSSolid",color:[0,0,0,255],width:1.5},c={type:"esriSFS",style:"esriSFSSolid",color:[0,0,0,255],outline:null}},89749:(e,t,r)=>{r.d(t,{t:()=>d});var n=r(43697),s=r(15923),i=r(61247),o=r(70586),a=r(17445),l=r(1654),u=r(5600),c=r(52011);let d=class extends s.Z{constructor(){super(...arguments),this.updating=!1,this.handleId=0,this.handles=new i.Z,this.scheduleHandleId=0,this.pendingPromises=new Set}destroy(){this.removeAll(),this.handles.destroy()}add(e,t,r={}){const n=++this.handleId;r.sync||this._installSyncUpdatingWatch(e,n);const s=(0,a.YP)(e,t,r);return this.handles.add(s,n),{remove:()=>this.handles.remove(n)}}addOnCollectionChange(e,t,{initial:r=!1}={}){const n=++this.handleId;return this.handles.add([(0,a.on)(e,"after-changes",this._createSyncUpdatingCallback(),a.Z_),(0,a.on)(e,"change",t,{onListenerAdd:r?e=>t({added:e.toArray(),removed:[]}):void 0})],n),{remove:()=>this.handles.remove(n)}}addPromise(e){if((0,o.Wi)(e))return e;const t=++this.handleId;this.handles.add({remove:()=>{this.pendingPromises.delete(e)&&(0!==this.pendingPromises.size||this.handles.has(p)||this._set("updating",!1))}},t),this.pendingPromises.add(e),this._set("updating",!0);const r=()=>this.handles.remove(t);return e.then(r,r),e}removeAll(){this.pendingPromises.clear(),this.handles.removeAll(),this._set("updating",!1)}_installSyncUpdatingWatch(e,t){const r=this._createSyncUpdatingCallback(),n=(0,a.YP)(e,r,{sync:!0,equals:()=>!1});return this.handles.add(n,t),n}_createSyncUpdatingCallback(){return()=>{this.handles.remove(p),++this.scheduleHandleId;const e=this.scheduleHandleId;this._get("updating")||this._set("updating",!0),this.handles.add((0,l.Os)((()=>{e===this.scheduleHandleId&&(this._set("updating",this.pendingPromises.size>0),this.handles.remove(p))})),p)}}};(0,n._)([(0,u.Cb)({readOnly:!0})],d.prototype,"updating",void 0),d=(0,n._)([(0,c.j)("esri.views.support.WatchUpdatingTracking")],d);const p=-42;var h,f;(f=h||(h={}))[f.NONE=0]="NONE",f[f.SYNC=1]="SYNC",f[f.INIT=2]="INIT"}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9474],{46521:(t,e,n)=>{function r(){return[1,0,0,0,1,0,0,0,1]}function o(t,e){return new Float64Array(t,e,9)}n.d(e,{a:()=>o,c:()=>r}),Object.freeze({__proto__:null,create:r,clone:function(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8]]},fromValues:function(t,e,n,r,o,i,a,s,u){return[t,e,n,r,o,i,a,s,u]},createView:o})},52138:(t,e,n)=>{n.d(e,{a:()=>u,d:()=>M,e:()=>h,f:()=>d,h:()=>f,i:()=>a,j:()=>l,m:()=>c,p:()=>A,s:()=>i,t:()=>s,u:()=>b,v:()=>U,w:()=>w,y:()=>m});var r=n(65617),o=n(46851);function i(t,e,n,r,o,i,a,s,u,c,l,f,h,d,b,M,m){return t[0]=e,t[1]=n,t[2]=r,t[3]=o,t[4]=i,t[5]=a,t[6]=s,t[7]=u,t[8]=c,t[9]=l,t[10]=f,t[11]=h,t[12]=d,t[13]=b,t[14]=M,t[15]=m,t}function a(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function s(t,e){if(t===e){const n=e[1],r=e[2],o=e[3],i=e[6],a=e[7],s=e[11];t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=n,t[6]=e[9],t[7]=e[13],t[8]=r,t[9]=i,t[11]=e[14],t[12]=o,t[13]=a,t[14]=s}else t[0]=e[0],t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=e[1],t[5]=e[5],t[6]=e[9],t[7]=e[13],t[8]=e[2],t[9]=e[6],t[10]=e[10],t[11]=e[14],t[12]=e[3],t[13]=e[7],t[14]=e[11],t[15]=e[15];return t}function u(t,e){const n=e[0],r=e[1],o=e[2],i=e[3],a=e[4],s=e[5],u=e[6],c=e[7],l=e[8],f=e[9],h=e[10],d=e[11],b=e[12],M=e[13],m=e[14],p=e[15],y=n*s-r*a,g=n*u-o*a,w=n*c-i*a,U=r*u-o*s,A=r*c-i*s,I=o*c-i*u,E=l*M-f*b,O=l*m-h*b,T=l*p-d*b,S=f*m-h*M,C=f*p-d*M,v=h*p-d*m;let R=y*v-g*C+w*S+U*T-A*O+I*E;return R?(R=1/R,t[0]=(s*v-u*C+c*S)*R,t[1]=(o*C-r*v-i*S)*R,t[2]=(M*I-m*A+p*U)*R,t[3]=(h*A-f*I-d*U)*R,t[4]=(u*T-a*v-c*O)*R,t[5]=(n*v-o*T+i*O)*R,t[6]=(m*w-b*I-p*g)*R,t[7]=(l*I-h*w+d*g)*R,t[8]=(a*C-s*T+c*E)*R,t[9]=(r*T-n*C-i*E)*R,t[10]=(b*A-M*w+p*y)*R,t[11]=(f*w-l*A-d*y)*R,t[12]=(s*O-a*S-u*E)*R,t[13]=(n*S-r*O+o*E)*R,t[14]=(M*g-b*U-m*y)*R,t[15]=(l*U-f*g+h*y)*R,t):null}function c(t,e,n){const r=e[0],o=e[1],i=e[2],a=e[3],s=e[4],u=e[5],c=e[6],l=e[7],f=e[8],h=e[9],d=e[10],b=e[11],M=e[12],m=e[13],p=e[14],y=e[15];let g=n[0],w=n[1],U=n[2],A=n[3];return t[0]=g*r+w*s+U*f+A*M,t[1]=g*o+w*u+U*h+A*m,t[2]=g*i+w*c+U*d+A*p,t[3]=g*a+w*l+U*b+A*y,g=n[4],w=n[5],U=n[6],A=n[7],t[4]=g*r+w*s+U*f+A*M,t[5]=g*o+w*u+U*h+A*m,t[6]=g*i+w*c+U*d+A*p,t[7]=g*a+w*l+U*b+A*y,g=n[8],w=n[9],U=n[10],A=n[11],t[8]=g*r+w*s+U*f+A*M,t[9]=g*o+w*u+U*h+A*m,t[10]=g*i+w*c+U*d+A*p,t[11]=g*a+w*l+U*b+A*y,g=n[12],w=n[13],U=n[14],A=n[15],t[12]=g*r+w*s+U*f+A*M,t[13]=g*o+w*u+U*h+A*m,t[14]=g*i+w*c+U*d+A*p,t[15]=g*a+w*l+U*b+A*y,t}function l(t,e,n){const r=n[0],o=n[1],i=n[2];let a,s,u,c,l,f,h,d,b,M,m,p;return e===t?(t[12]=e[0]*r+e[4]*o+e[8]*i+e[12],t[13]=e[1]*r+e[5]*o+e[9]*i+e[13],t[14]=e[2]*r+e[6]*o+e[10]*i+e[14],t[15]=e[3]*r+e[7]*o+e[11]*i+e[15]):(a=e[0],s=e[1],u=e[2],c=e[3],l=e[4],f=e[5],h=e[6],d=e[7],b=e[8],M=e[9],m=e[10],p=e[11],t[0]=a,t[1]=s,t[2]=u,t[3]=c,t[4]=l,t[5]=f,t[6]=h,t[7]=d,t[8]=b,t[9]=M,t[10]=m,t[11]=p,t[12]=a*r+l*o+b*i+e[12],t[13]=s*r+f*o+M*i+e[13],t[14]=u*r+h*o+m*i+e[14],t[15]=c*r+d*o+p*i+e[15]),t}function f(t,e,n){const r=n[0],o=n[1],i=n[2];return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t[4]=e[4]*o,t[5]=e[5]*o,t[6]=e[6]*o,t[7]=e[7]*o,t[8]=e[8]*i,t[9]=e[9]*i,t[10]=e[10]*i,t[11]=e[11]*i,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function h(t,e,n,r){let i,a,s,u,c,l,f,h,d,b,M,m,p,y,g,w,U,A,I,E,O,T,S,C,v=r[0],R=r[1],B=r[2],F=Math.sqrt(v*v+R*R+B*B);return F<o.E?null:(F=1/F,v*=F,R*=F,B*=F,i=Math.sin(n),a=Math.cos(n),s=1-a,u=e[0],c=e[1],l=e[2],f=e[3],h=e[4],d=e[5],b=e[6],M=e[7],m=e[8],p=e[9],y=e[10],g=e[11],w=v*v*s+a,U=R*v*s+B*i,A=B*v*s-R*i,I=v*R*s-B*i,E=R*R*s+a,O=B*R*s+v*i,T=v*B*s+R*i,S=R*B*s-v*i,C=B*B*s+a,t[0]=u*w+h*U+m*A,t[1]=c*w+d*U+p*A,t[2]=l*w+b*U+y*A,t[3]=f*w+M*U+g*A,t[4]=u*I+h*E+m*O,t[5]=c*I+d*E+p*O,t[6]=l*I+b*E+y*O,t[7]=f*I+M*E+g*O,t[8]=u*T+h*S+m*C,t[9]=c*T+d*S+p*C,t[10]=l*T+b*S+y*C,t[11]=f*T+M*S+g*C,e!==t&&(t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t)}function d(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=e[0],t[13]=e[1],t[14]=e[2],t[15]=1,t}function b(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=e[1],t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=e[2],t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function M(t,e,n){let r,i,a,s=n[0],u=n[1],c=n[2],l=Math.sqrt(s*s+u*u+c*c);return l<o.E?null:(l=1/l,s*=l,u*=l,c*=l,r=Math.sin(e),i=Math.cos(e),a=1-i,t[0]=s*s*a+i,t[1]=u*s*a+c*r,t[2]=c*s*a-u*r,t[3]=0,t[4]=s*u*a-c*r,t[5]=u*u*a+i,t[6]=c*u*a+s*r,t[7]=0,t[8]=s*c*a+u*r,t[9]=u*c*a-s*r,t[10]=c*c*a+i,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t)}function m(t,e){const n=Math.sin(e),r=Math.cos(e);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=r,t[6]=n,t[7]=0,t[8]=0,t[9]=-n,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function p(t,e,n){const r=e[0],o=e[1],i=e[2],a=e[3],s=r+r,u=o+o,c=i+i,l=r*s,f=r*u,h=r*c,d=o*u,b=o*c,M=i*c,m=a*s,p=a*u,y=a*c;return t[0]=1-(d+M),t[1]=f+y,t[2]=h-p,t[3]=0,t[4]=f-y,t[5]=1-(l+M),t[6]=b+m,t[7]=0,t[8]=h+p,t[9]=b-m,t[10]=1-(l+d),t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}const y=(0,r.c)();function g(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t[6]=e[6]-n[6],t[7]=e[7]-n[7],t[8]=e[8]-n[8],t[9]=e[9]-n[9],t[10]=e[10]-n[10],t[11]=e[11]-n[11],t[12]=e[12]-n[12],t[13]=e[13]-n[13],t[14]=e[14]-n[14],t[15]=e[15]-n[15],t}function w(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]&&t[9]===e[9]&&t[10]===e[10]&&t[11]===e[11]&&t[12]===e[12]&&t[13]===e[13]&&t[14]===e[14]&&t[15]===e[15]}function U(t,e){if(t===e)return!0;const n=t[0],r=t[1],i=t[2],a=t[3],s=t[4],u=t[5],c=t[6],l=t[7],f=t[8],h=t[9],d=t[10],b=t[11],M=t[12],m=t[13],p=t[14],y=t[15],g=e[0],w=e[1],U=e[2],A=e[3],I=e[4],E=e[5],O=e[6],T=e[7],S=e[8],C=e[9],v=e[10],R=e[11],B=e[12],F=e[13],P=e[14],x=e[15];return Math.abs(n-g)<=o.E*Math.max(1,Math.abs(n),Math.abs(g))&&Math.abs(r-w)<=o.E*Math.max(1,Math.abs(r),Math.abs(w))&&Math.abs(i-U)<=o.E*Math.max(1,Math.abs(i),Math.abs(U))&&Math.abs(a-A)<=o.E*Math.max(1,Math.abs(a),Math.abs(A))&&Math.abs(s-I)<=o.E*Math.max(1,Math.abs(s),Math.abs(I))&&Math.abs(u-E)<=o.E*Math.max(1,Math.abs(u),Math.abs(E))&&Math.abs(c-O)<=o.E*Math.max(1,Math.abs(c),Math.abs(O))&&Math.abs(l-T)<=o.E*Math.max(1,Math.abs(l),Math.abs(T))&&Math.abs(f-S)<=o.E*Math.max(1,Math.abs(f),Math.abs(S))&&Math.abs(h-C)<=o.E*Math.max(1,Math.abs(h),Math.abs(C))&&Math.abs(d-v)<=o.E*Math.max(1,Math.abs(d),Math.abs(v))&&Math.abs(b-R)<=o.E*Math.max(1,Math.abs(b),Math.abs(R))&&Math.abs(M-B)<=o.E*Math.max(1,Math.abs(M),Math.abs(B))&&Math.abs(m-F)<=o.E*Math.max(1,Math.abs(m),Math.abs(F))&&Math.abs(p-P)<=o.E*Math.max(1,Math.abs(p),Math.abs(P))&&Math.abs(y-x)<=o.E*Math.max(1,Math.abs(y),Math.abs(x))}function A(t){const e=o.E,n=t[0],r=t[1],i=t[2],a=t[4],s=t[5],u=t[6],c=t[8],l=t[9],f=t[10];return Math.abs(1-(n*n+a*a+c*c))<=e&&Math.abs(1-(r*r+s*s+l*l))<=e&&Math.abs(1-(i*i+u*u+f*f))<=e}const I=c,E=g;Object.freeze({__proto__:null,copy:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t},set:i,identity:a,transpose:s,invert:u,adjoint:function(t,e){const n=e[0],r=e[1],o=e[2],i=e[3],a=e[4],s=e[5],u=e[6],c=e[7],l=e[8],f=e[9],h=e[10],d=e[11],b=e[12],M=e[13],m=e[14],p=e[15];return t[0]=s*(h*p-d*m)-f*(u*p-c*m)+M*(u*d-c*h),t[1]=-(r*(h*p-d*m)-f*(o*p-i*m)+M*(o*d-i*h)),t[2]=r*(u*p-c*m)-s*(o*p-i*m)+M*(o*c-i*u),t[3]=-(r*(u*d-c*h)-s*(o*d-i*h)+f*(o*c-i*u)),t[4]=-(a*(h*p-d*m)-l*(u*p-c*m)+b*(u*d-c*h)),t[5]=n*(h*p-d*m)-l*(o*p-i*m)+b*(o*d-i*h),t[6]=-(n*(u*p-c*m)-a*(o*p-i*m)+b*(o*c-i*u)),t[7]=n*(u*d-c*h)-a*(o*d-i*h)+l*(o*c-i*u),t[8]=a*(f*p-d*M)-l*(s*p-c*M)+b*(s*d-c*f),t[9]=-(n*(f*p-d*M)-l*(r*p-i*M)+b*(r*d-i*f)),t[10]=n*(s*p-c*M)-a*(r*p-i*M)+b*(r*c-i*s),t[11]=-(n*(s*d-c*f)-a*(r*d-i*f)+l*(r*c-i*s)),t[12]=-(a*(f*m-h*M)-l*(s*m-u*M)+b*(s*h-u*f)),t[13]=n*(f*m-h*M)-l*(r*m-o*M)+b*(r*h-o*f),t[14]=-(n*(s*m-u*M)-a*(r*m-o*M)+b*(r*u-o*s)),t[15]=n*(s*h-u*f)-a*(r*h-o*f)+l*(r*u-o*s),t},determinant:function(t){const e=t[0],n=t[1],r=t[2],o=t[3],i=t[4],a=t[5],s=t[6],u=t[7],c=t[8],l=t[9],f=t[10],h=t[11],d=t[12],b=t[13],M=t[14],m=t[15];return(e*a-n*i)*(f*m-h*M)-(e*s-r*i)*(l*m-h*b)+(e*u-o*i)*(l*M-f*b)+(n*s-r*a)*(c*m-h*d)-(n*u-o*a)*(c*M-f*d)+(r*u-o*s)*(c*b-l*d)},multiply:c,translate:l,scale:f,rotate:h,rotateX:function(t,e,n){const r=Math.sin(n),o=Math.cos(n),i=e[4],a=e[5],s=e[6],u=e[7],c=e[8],l=e[9],f=e[10],h=e[11];return e!==t&&(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[4]=i*o+c*r,t[5]=a*o+l*r,t[6]=s*o+f*r,t[7]=u*o+h*r,t[8]=c*o-i*r,t[9]=l*o-a*r,t[10]=f*o-s*r,t[11]=h*o-u*r,t},rotateY:function(t,e,n){const r=Math.sin(n),o=Math.cos(n),i=e[0],a=e[1],s=e[2],u=e[3],c=e[8],l=e[9],f=e[10],h=e[11];return e!==t&&(t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=i*o-c*r,t[1]=a*o-l*r,t[2]=s*o-f*r,t[3]=u*o-h*r,t[8]=i*r+c*o,t[9]=a*r+l*o,t[10]=s*r+f*o,t[11]=u*r+h*o,t},rotateZ:function(t,e,n){const r=Math.sin(n),o=Math.cos(n),i=e[0],a=e[1],s=e[2],u=e[3],c=e[4],l=e[5],f=e[6],h=e[7];return e!==t&&(t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=i*o+c*r,t[1]=a*o+l*r,t[2]=s*o+f*r,t[3]=u*o+h*r,t[4]=c*o-i*r,t[5]=l*o-a*r,t[6]=f*o-s*r,t[7]=h*o-u*r,t},fromTranslation:d,fromScaling:b,fromRotation:M,fromXRotation:m,fromYRotation:function(t,e){const n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=0,t[2]=-n,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=n,t[9]=0,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromZRotation:function(t,e){const n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=n,t[2]=0,t[3]=0,t[4]=-n,t[5]=r,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromRotationTranslation:p,fromQuat2:function(t,e){const n=y,r=-e[0],o=-e[1],i=-e[2],a=e[3],s=e[4],u=e[5],c=e[6],l=e[7],f=r*r+o*o+i*i+a*a;return f>0?(n[0]=2*(s*a+l*r+u*i-c*o)/f,n[1]=2*(u*a+l*o+c*r-s*i)/f,n[2]=2*(c*a+l*i+s*o-u*r)/f):(n[0]=2*(s*a+l*r+u*i-c*o),n[1]=2*(u*a+l*o+c*r-s*i),n[2]=2*(c*a+l*i+s*o-u*r)),p(t,e,n),t},getTranslation:function(t,e){return t[0]=e[12],t[1]=e[13],t[2]=e[14],t},getScaling:function(t,e){const n=e[0],r=e[1],o=e[2],i=e[4],a=e[5],s=e[6],u=e[8],c=e[9],l=e[10];return t[0]=Math.sqrt(n*n+r*r+o*o),t[1]=Math.sqrt(i*i+a*a+s*s),t[2]=Math.sqrt(u*u+c*c+l*l),t},getRotation:function(t,e){const n=e[0]+e[5]+e[10];let r=0;return n>0?(r=2*Math.sqrt(n+1),t[3]=.25*r,t[0]=(e[6]-e[9])/r,t[1]=(e[8]-e[2])/r,t[2]=(e[1]-e[4])/r):e[0]>e[5]&&e[0]>e[10]?(r=2*Math.sqrt(1+e[0]-e[5]-e[10]),t[3]=(e[6]-e[9])/r,t[0]=.25*r,t[1]=(e[1]+e[4])/r,t[2]=(e[8]+e[2])/r):e[5]>e[10]?(r=2*Math.sqrt(1+e[5]-e[0]-e[10]),t[3]=(e[8]-e[2])/r,t[0]=(e[1]+e[4])/r,t[1]=.25*r,t[2]=(e[6]+e[9])/r):(r=2*Math.sqrt(1+e[10]-e[0]-e[5]),t[3]=(e[1]-e[4])/r,t[0]=(e[8]+e[2])/r,t[1]=(e[6]+e[9])/r,t[2]=.25*r),t},fromRotationTranslationScale:function(t,e,n,r){const o=e[0],i=e[1],a=e[2],s=e[3],u=o+o,c=i+i,l=a+a,f=o*u,h=o*c,d=o*l,b=i*c,M=i*l,m=a*l,p=s*u,y=s*c,g=s*l,w=r[0],U=r[1],A=r[2];return t[0]=(1-(b+m))*w,t[1]=(h+g)*w,t[2]=(d-y)*w,t[3]=0,t[4]=(h-g)*U,t[5]=(1-(f+m))*U,t[6]=(M+p)*U,t[7]=0,t[8]=(d+y)*A,t[9]=(M-p)*A,t[10]=(1-(f+b))*A,t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t},fromRotationTranslationScaleOrigin:function(t,e,n,r,o){const i=e[0],a=e[1],s=e[2],u=e[3],c=i+i,l=a+a,f=s+s,h=i*c,d=i*l,b=i*f,M=a*l,m=a*f,p=s*f,y=u*c,g=u*l,w=u*f,U=r[0],A=r[1],I=r[2],E=o[0],O=o[1],T=o[2],S=(1-(M+p))*U,C=(d+w)*U,v=(b-g)*U,R=(d-w)*A,B=(1-(h+p))*A,F=(m+y)*A,P=(b+g)*I,x=(m-y)*I,N=(1-(h+M))*I;return t[0]=S,t[1]=C,t[2]=v,t[3]=0,t[4]=R,t[5]=B,t[6]=F,t[7]=0,t[8]=P,t[9]=x,t[10]=N,t[11]=0,t[12]=n[0]+E-(S*E+R*O+P*T),t[13]=n[1]+O-(C*E+B*O+x*T),t[14]=n[2]+T-(v*E+F*O+N*T),t[15]=1,t},fromQuat:function(t,e){const n=e[0],r=e[1],o=e[2],i=e[3],a=n+n,s=r+r,u=o+o,c=n*a,l=r*a,f=r*s,h=o*a,d=o*s,b=o*u,M=i*a,m=i*s,p=i*u;return t[0]=1-f-b,t[1]=l+p,t[2]=h-m,t[3]=0,t[4]=l-p,t[5]=1-c-b,t[6]=d+M,t[7]=0,t[8]=h+m,t[9]=d-M,t[10]=1-c-f,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},frustum:function(t,e,n,r,o,i,a){const s=1/(n-e),u=1/(o-r),c=1/(i-a);return t[0]=2*i*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*i*u,t[6]=0,t[7]=0,t[8]=(n+e)*s,t[9]=(o+r)*u,t[10]=(a+i)*c,t[11]=-1,t[12]=0,t[13]=0,t[14]=a*i*2*c,t[15]=0,t},perspective:function(t,e,n,r,o){const i=1/Math.tan(e/2);let a;return t[0]=i/n,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=i,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=o&&o!==1/0?(a=1/(r-o),t[10]=(o+r)*a,t[14]=2*o*r*a):(t[10]=-1,t[14]=-2*r),t},perspectiveFromFieldOfView:function(t,e,n,r){const o=Math.tan(e.upDegrees*Math.PI/180),i=Math.tan(e.downDegrees*Math.PI/180),a=Math.tan(e.leftDegrees*Math.PI/180),s=Math.tan(e.rightDegrees*Math.PI/180),u=2/(a+s),c=2/(o+i);return t[0]=u,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=c,t[6]=0,t[7]=0,t[8]=-(a-s)*u*.5,t[9]=(o-i)*c*.5,t[10]=r/(n-r),t[11]=-1,t[12]=0,t[13]=0,t[14]=r*n/(n-r),t[15]=0,t},ortho:function(t,e,n,r,o,i,a){const s=1/(e-n),u=1/(r-o),c=1/(i-a);return t[0]=-2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*u,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*c,t[11]=0,t[12]=(e+n)*s,t[13]=(o+r)*u,t[14]=(a+i)*c,t[15]=1,t},lookAt:function(t,e,n,r){let i,s,u,c,l,f,h,d,b,M;const m=e[0],p=e[1],y=e[2],g=r[0],w=r[1],U=r[2],A=n[0],I=n[1],E=n[2];return Math.abs(m-A)<o.E&&Math.abs(p-I)<o.E&&Math.abs(y-E)<o.E?a(t):(h=m-A,d=p-I,b=y-E,M=1/Math.sqrt(h*h+d*d+b*b),h*=M,d*=M,b*=M,i=w*b-U*d,s=U*h-g*b,u=g*d-w*h,M=Math.sqrt(i*i+s*s+u*u),M?(M=1/M,i*=M,s*=M,u*=M):(i=0,s=0,u=0),c=d*u-b*s,l=b*i-h*u,f=h*s-d*i,M=Math.sqrt(c*c+l*l+f*f),M?(M=1/M,c*=M,l*=M,f*=M):(c=0,l=0,f=0),t[0]=i,t[1]=c,t[2]=h,t[3]=0,t[4]=s,t[5]=l,t[6]=d,t[7]=0,t[8]=u,t[9]=f,t[10]=b,t[11]=0,t[12]=-(i*m+s*p+u*y),t[13]=-(c*m+l*p+f*y),t[14]=-(h*m+d*p+b*y),t[15]=1,t)},targetTo:function(t,e,n,r){const o=e[0],i=e[1],a=e[2],s=r[0],u=r[1],c=r[2];let l=o-n[0],f=i-n[1],h=a-n[2],d=l*l+f*f+h*h;d>0&&(d=1/Math.sqrt(d),l*=d,f*=d,h*=d);let b=u*h-c*f,M=c*l-s*h,m=s*f-u*l;return d=b*b+M*M+m*m,d>0&&(d=1/Math.sqrt(d),b*=d,M*=d,m*=d),t[0]=b,t[1]=M,t[2]=m,t[3]=0,t[4]=f*m-h*M,t[5]=h*b-l*m,t[6]=l*M-f*b,t[7]=0,t[8]=l,t[9]=f,t[10]=h,t[11]=0,t[12]=o,t[13]=i,t[14]=a,t[15]=1,t},str:function(t){return"mat4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+", "+t[9]+", "+t[10]+", "+t[11]+", "+t[12]+", "+t[13]+", "+t[14]+", "+t[15]+")"},frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+t[6]**2+t[7]**2+t[8]**2+t[9]**2+t[10]**2+t[11]**2+t[12]**2+t[13]**2+t[14]**2+t[15]**2)},add:function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t[8]=e[8]+n[8],t[9]=e[9]+n[9],t[10]=e[10]+n[10],t[11]=e[11]+n[11],t[12]=e[12]+n[12],t[13]=e[13]+n[13],t[14]=e[14]+n[14],t[15]=e[15]+n[15],t},subtract:g,multiplyScalar:function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*n,t[9]=e[9]*n,t[10]=e[10]*n,t[11]=e[11]*n,t[12]=e[12]*n,t[13]=e[13]*n,t[14]=e[14]*n,t[15]=e[15]*n,t},multiplyScalarAndAdd:function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t[4]=e[4]+n[4]*r,t[5]=e[5]+n[5]*r,t[6]=e[6]+n[6]*r,t[7]=e[7]+n[7]*r,t[8]=e[8]+n[8]*r,t[9]=e[9]+n[9]*r,t[10]=e[10]+n[10]*r,t[11]=e[11]+n[11]*r,t[12]=e[12]+n[12]*r,t[13]=e[13]+n[13]*r,t[14]=e[14]+n[14]*r,t[15]=e[15]+n[15]*r,t},exactEquals:w,equals:U,isOrthoNormal:A,mul:I,sub:E})},51305:(t,e,n)=>{n.d(e,{c:()=>d,g:()=>l,j:()=>C,k:()=>M,m:()=>f,s:()=>c});var r=n(46521),o=n(94961),i=n(65617),a=n(46851),s=n(17896),u=n(98766);function c(t,e,n){n*=.5;const r=Math.sin(n);return t[0]=r*e[0],t[1]=r*e[1],t[2]=r*e[2],t[3]=Math.cos(n),t}function l(t,e){const n=2*Math.acos(e[3]),r=Math.sin(n/2);return r>a.E?(t[0]=e[0]/r,t[1]=e[1]/r,t[2]=e[2]/r):(t[0]=1,t[1]=0,t[2]=0),n}function f(t,e,n){const r=e[0],o=e[1],i=e[2],a=e[3],s=n[0],u=n[1],c=n[2],l=n[3];return t[0]=r*l+a*s+o*c-i*u,t[1]=o*l+a*u+i*s-r*c,t[2]=i*l+a*c+r*u-o*s,t[3]=a*l-r*s-o*u-i*c,t}function h(t,e,n,r){const o=e[0],i=e[1],s=e[2],u=e[3];let c,l,f,h,d,b=n[0],M=n[1],m=n[2],p=n[3];return l=o*b+i*M+s*m+u*p,l<0&&(l=-l,b=-b,M=-M,m=-m,p=-p),1-l>a.E?(c=Math.acos(l),f=Math.sin(c),h=Math.sin((1-r)*c)/f,d=Math.sin(r*c)/f):(h=1-r,d=r),t[0]=h*o+d*b,t[1]=h*i+d*M,t[2]=h*s+d*m,t[3]=h*u+d*p,t}function d(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=e[3],t}function b(t,e){const n=e[0]+e[4]+e[8];let r;if(n>0)r=Math.sqrt(n+1),t[3]=.5*r,r=.5/r,t[0]=(e[5]-e[7])*r,t[1]=(e[6]-e[2])*r,t[2]=(e[1]-e[3])*r;else{let n=0;e[4]>e[0]&&(n=1),e[8]>e[3*n+n]&&(n=2);const o=(n+1)%3,i=(n+2)%3;r=Math.sqrt(e[3*n+n]-e[3*o+o]-e[3*i+i]+1),t[n]=.5*r,r=.5/r,t[3]=(e[3*o+i]-e[3*i+o])*r,t[o]=(e[3*o+n]+e[3*n+o])*r,t[i]=(e[3*i+n]+e[3*n+i])*r}return t}function M(t,e,n,r){const o=.5*Math.PI/180;e*=o,n*=o,r*=o;const i=Math.sin(e),a=Math.cos(e),s=Math.sin(n),u=Math.cos(n),c=Math.sin(r),l=Math.cos(r);return t[0]=i*u*l-a*s*c,t[1]=a*s*l+i*u*c,t[2]=a*u*c-i*s*l,t[3]=a*u*l+i*s*c,t}const m=u.c,p=u.s,y=u.a,g=f,w=u.b,U=u.d,A=u.l,I=u.e,E=I,O=u.f,T=O,S=u.n,C=u.g,v=u.h,R=(0,i.c)(),B=(0,i.f)(1,0,0),F=(0,i.f)(0,1,0),P=(0,o.a)(),x=(0,o.a)(),N=(0,r.c)();Object.freeze({__proto__:null,identity:function(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t},setAxisAngle:c,getAxisAngle:l,multiply:f,rotateX:function(t,e,n){n*=.5;const r=e[0],o=e[1],i=e[2],a=e[3],s=Math.sin(n),u=Math.cos(n);return t[0]=r*u+a*s,t[1]=o*u+i*s,t[2]=i*u-o*s,t[3]=a*u-r*s,t},rotateY:function(t,e,n){n*=.5;const r=e[0],o=e[1],i=e[2],a=e[3],s=Math.sin(n),u=Math.cos(n);return t[0]=r*u-i*s,t[1]=o*u+a*s,t[2]=i*u+r*s,t[3]=a*u-o*s,t},rotateZ:function(t,e,n){n*=.5;const r=e[0],o=e[1],i=e[2],a=e[3],s=Math.sin(n),u=Math.cos(n);return t[0]=r*u+o*s,t[1]=o*u-r*s,t[2]=i*u+a*s,t[3]=a*u-i*s,t},calculateW:function(t,e){const n=e[0],r=e[1],o=e[2];return t[0]=n,t[1]=r,t[2]=o,t[3]=Math.sqrt(Math.abs(1-n*n-r*r-o*o)),t},slerp:h,random:function(t){const e=(0,a.R)(),n=(0,a.R)(),r=(0,a.R)(),o=Math.sqrt(1-e),i=Math.sqrt(e);return t[0]=o*Math.sin(2*Math.PI*n),t[1]=o*Math.cos(2*Math.PI*n),t[2]=i*Math.sin(2*Math.PI*r),t[3]=i*Math.cos(2*Math.PI*r),t},invert:function(t,e){const n=e[0],r=e[1],o=e[2],i=e[3],a=n*n+r*r+o*o+i*i,s=a?1/a:0;return t[0]=-n*s,t[1]=-r*s,t[2]=-o*s,t[3]=i*s,t},conjugate:d,fromMat3:b,fromEuler:M,str:function(t){return"quat("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"},copy:m,set:p,add:y,mul:g,scale:w,dot:U,lerp:A,length:I,len:E,squaredLength:O,sqrLen:T,normalize:S,exactEquals:C,equals:v,rotationTo:function(t,e,n){const r=(0,s.d)(e,n);return r<-.999999?((0,s.c)(R,B,e),(0,s.u)(R)<1e-6&&(0,s.c)(R,F,e),(0,s.n)(R,R),c(t,R,Math.PI),t):r>.999999?(t[0]=0,t[1]=0,t[2]=0,t[3]=1,t):((0,s.c)(R,e,n),t[0]=R[0],t[1]=R[1],t[2]=R[2],t[3]=1+r,S(t,t))},sqlerp:function(t,e,n,r,o,i){return h(P,e,o,i),h(x,n,r,i),h(t,P,x,2*i*(1-i)),t},setAxes:function(t,e,n,r){const o=N;return o[0]=n[0],o[3]=n[1],o[6]=n[2],o[1]=r[0],o[4]=r[1],o[7]=r[2],o[2]=-e[0],o[5]=-e[1],o[8]=-e[2],S(t,b(t,o))}})},94961:(t,e,n)=>{function r(){return[0,0,0,1]}function o(t){return[t[0],t[1],t[2],t[3]]}function i(t,e){return new Float64Array(t,e,4)}n.d(e,{I:()=>a,a:()=>r,b:()=>o,c:()=>i});const a=[0,0,0,1];Object.freeze({__proto__:null,create:r,clone:o,fromValues:function(t,e,n,r){return[t,e,n,r]},createView:i,IDENTITY:a})},72119:(t,e,n)=>{function r(){return new Float32Array(3)}function o(t,e,n){const r=new Float32Array(3);return r[0]=t,r[1]=e,r[2]=n,r}function i(){return r()}function a(){return o(1,1,1)}function s(){return o(1,0,0)}function u(){return o(0,1,0)}function c(){return o(0,0,1)}n.d(e,{c:()=>r,f:()=>o});const l=i(),f=a(),h=s(),d=u(),b=c();Object.freeze({__proto__:null,create:r,clone:function(t){const e=new Float32Array(3);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e},fromValues:o,createView:function(t,e){return new Float32Array(t,e,3)},zeros:i,ones:a,unitX:s,unitY:u,unitZ:c,ZEROS:l,ONES:f,UNIT_X:h,UNIT_Y:d,UNIT_Z:b})},67900:(t,e,n)=>{n.d(e,{gV:()=>Z,En:()=>I,Z7:()=>v,c9:()=>C,_R:()=>T,qE:()=>F,cM:()=>S,hd:()=>l,ty:()=>E,Jo:()=>D,$C:()=>O}),n(80442);var r=n(35454),o=n(70586),i=n(24678),a=n(82971),s=n(68441),u=n(8744),c=n(58116);const l=39.37,f=s.sv.radius*Math.PI/200,h=/UNIT\[([^\]]+)\]\]$/i,d=c.Z,b=/UNIT\[([^\]]+)\]/i,M=new Set([4261,4305,4807,4810,4811,4812,4816,4819,4821,4901,4902,37225,104139,104140]),m=(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"}),p=t=>t*t,y=t=>t*t*t,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:p(.001)},"square-centimeters":{inBaseUnits:p(.01)},"square-decimeters":{inBaseUnits:p(.1)},"square-meters":{inBaseUnits:1},"square-kilometers":{inBaseUnits:p(1e3)},"square-inches":{inBaseUnits:p(.0254)},"square-feet":{inBaseUnits:p(.3048)},"square-yards":{inBaseUnits:p(.9144)},"square-miles":{inBaseUnits:p(1609.344)},"square-us-feet":{inBaseUnits:p(1200/3937)},acres:{inBaseUnits:.0015625*p(1609.344)},ares:{inBaseUnits:100},hectares:{inBaseUnits:1e4}}},volume:{baseUnit:"liters",units:{liters:{inBaseUnits:1},"cubic-millimeters":{inBaseUnits:1e3*y(.001)},"cubic-centimeters":{inBaseUnits:1e3*y(.01)},"cubic-decimeters":{inBaseUnits:1e3*y(.1)},"cubic-meters":{inBaseUnits:1e3},"cubic-kilometers":{inBaseUnits:1e3*y(1e3)},"cubic-inches":{inBaseUnits:1e3*y(.0254)},"cubic-feet":{inBaseUnits:1e3*y(.3048)},"cubic-yards":{inBaseUnits:1e3*y(.9144)},"cubic-miles":{inBaseUnits:1e3*y(1609.344)}}},angle:{baseUnit:"radians",units:{radians:{inBaseUnits:1},degrees:{inBaseUnits:Math.PI/180}}}},w=function(){const t={};for(const e in g)for(const n in g[e].units)t[n]=e;return t}();function U(t){const e=w[t];if(e)return e;throw new Error("unknown measure")}function A(t,e=null){return e=e||U(t),g[e].baseUnit===t}function I(t,e,n){if(e===n)return t;const r=U(e);if(r!==U(n))throw new Error("incompatible units");const o=A(e,r)?t:function(t,e,n){return t*g[n].units[e].inBaseUnits}(t,e,r);return A(n,r)?o:function(t,e,n){return t/g[n].units[e].inBaseUnits}(o,n,r)}function E(t,e,n){return I(t,e,"meters")/(n*Math.PI/180)}function O(t){return m.fromJSON(t.toLowerCase())||null}function T(t){if(t&&"object"==typeof t&&!(0,u.N$)(t))return 1;const e=C(t);return e>1e5?1:e}function S(t){return C(t)>=(t instanceof a.Z?(0,i.Iu)(t).metersPerDegree:1e5)?"meters":F(t)}function C(t,e=s.sv.metersPerDegree){return v(t,!0)||e}function v(t,e=!1){let n,r,o=null;if(null!=t&&("object"==typeof t?(n=t.wkid,r=t.wkt):"number"==typeof t?n=t:"string"==typeof t&&(r=t)),n){if((0,u.o$)(n))return s.yr.metersPerDegree;if((0,u.ME)(n))return s.Z1.metersPerDegree;o=d.values[d[n]],!o&&e&&M.has(n)&&(o=f)}else r&&(x(r)?o=R(h.exec(r),o):P(r)&&(o=R(b.exec(r),o)));return o}function R(t,e){return t&&t[1]?B(t[1]):e}function B(t){return parseFloat(t.split(",")[1])}function F(t){let e,n,r=null;if(null!=t&&("object"==typeof t?(e=t.wkid,n=t.wkt):"number"==typeof t?e=t:"string"==typeof t&&(n=t)),e)r=d.units[d[e]];else if(n){const t=x(n)?h:P(n)?b:null;if(t){const e=t.exec(n);e&&e[1]&&(r=function(t){const e=/[\\"\\']{1}([^\\"\\']+)/.exec(t);let n=e&&e[1];if(!n||-1===d.units.indexOf(n)){const e=B(t);n=null;const r=d.values;for(let t=0;t<r.length;++t)if(Math.abs(e-r[t])<1e-7){n=d.units[t];break}}return n}(e[1]))}}return(0,o.pC)(r)?O(r):null}function P(t){return/^GEOCCS/i.test(t)}function x(t){return/^PROJCS/i.test(t)}const N={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"},q={esriCentimeters:"centimeters",esriDecimeters:"decimeters",esriFeet:"feet",esriInches:"inches",esriKilometers:"kilometers",esriMeters:"meters",esriMiles:"miles",esriMillimeters:"millimeters",esriNauticalMiles:"nautical-miles",esriYards:"yards"},Z=(0,r.w)()(N),D=(0,r.w)()(q);(0,r.w)()({...N,...q})},24678:(t,e,n)=>{n.d(e,{GG:()=>s,HQ:()=>u,VY:()=>c,wY:()=>l,Iu:()=>h,e8:()=>d,rS:()=>f});var r=n(82971),o=n(68441),i=n(8744);function a(t){return new r.Z({wkt:`GEOCCS["Spherical geocentric",\n DATUM["Not specified",\n SPHEROID["Sphere",${t.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 s=a(o.sv),u=a(o.yr),c=a(o.Z1),l=new r.Z({wkt:`GEOCCS["WGS 84",\n DATUM["WGS_1984",\n SPHEROID["WGS 84",${o.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 f(t){return t&&((0,i.BZ)(t)||t===u)?u:t&&((0,i.V2)(t)||t===c)?c:s}function h(t){return t&&((0,i.BZ)(t)||t===u)?o.yr:t&&((0,i.V2)(t)||t===c)?o.Z1:o.sv}function d(t){return(0,i.o$)(t)?o.yr:(0,i.ME)(t)?o.Z1:o.sv}},24470:(t,e,n)=>{n.d(e,{Gv:()=>h,SO:()=>c,r3:()=>f,Ue:()=>i,oJ:()=>s,al:()=>a,kK:()=>l,HH:()=>u}),n(80442),n(22021);var r=n(70586),o=n(6570);function i(t=d){return[t[0],t[1],t[2],t[3]]}function a(t,e,n,r,o=i()){return o[0]=t,o[1]=e,o[2]=n,o[3]=r,o}function s(t,e=i()){return e[0]=t.xmin,e[1]=t.ymin,e[2]=t.xmax,e[3]=t.ymax,e}function u(t,e){return new o.Z({xmin:t[0],ymin:t[1],xmax:t[2],ymax:t[3],spatialReference:e})}function c(t){return function(t){return(0,r.Wi)(t)||t[0]>=t[2]?0:t[2]-t[0]}(t)*function(t){return t[1]>=t[3]?0:t[3]-t[1]}(t)}function l(t,e){return Math.max(e[0],t[0])<=Math.min(e[2],t[2])&&Math.max(e[1],t[1])<=Math.min(e[3],t[3])}function f(t,e){return e[0]>=t[0]&&e[2]<=t[2]&&e[1]>=t[1]&&e[3]<=t[3]}const h=[1/0,1/0,-1/0,-1/0],d=[0,0,0,0]},69285:(t,e,n)=>{n.d(e,{k:()=>a});var r=n(70586),o=n(67900),i=n(8744);function a(t,e,n){if((0,r.Wi)(e)||(0,r.Wi)(n)||n.vcsWkid||(0,i.fS)(e,n))return null;const a=(0,o._R)(e)/(0,o._R)(n);if(1===a)return null;switch(t){case"point":case"esriGeometryPoint":return t=>function(t,e){t&&null!=t.z&&(t.z*=e)}(t,a);case"polyline":case"esriGeometryPolyline":return t=>function(t,e){if(t)for(const n of t.paths)for(const t of n)t.length>2&&(t[2]*=e)}(t,a);case"polygon":case"esriGeometryPolygon":return t=>function(t,e){if(t)for(const n of t.rings)for(const t of n)t.length>2&&(t[2]*=e)}(t,a);case"multipoint":case"esriGeometryMultipoint":return t=>function(t,e){if(t)for(const n of t.points)n.length>2&&(n[2]*=e)}(t,a);case"extent":case"esriGeometryExtent":return t=>function(t,e){t&&null!=t.zmin&&null!=t.zmax&&(t.zmin*=e,t.zmax*=e)}(t,a);default:return null}}},16583:(t,e,n)=>{n.r(e),n.d(e,{default:()=>_});var r=n(70586),o=n(1533),i=n(51305);function a(){const t=new Float32Array(4);return t[3]=1,t}Object.freeze({__proto__:null,create:a,clone:function(t){const e=new Float32Array(4);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e},fromValues:function(t,e,n,r){const o=new Float32Array(4);return o[0]=t,o[1]=e,o[2]=n,o[3]=r,o},createView:function(t,e){return new Float32Array(t,e,4)}});var s=n(17896),u=n(72119),c=n(44547),l=n(82971),f=n(23030),h=n(14008),d=n(46329),b=n(20102),M=n(22974),m=n(92604);const p=!0;function y(t,e,n){return{identifier:String.fromCharCode.apply(null,new Uint8Array(t,n+0,10)),version:e.getUint16(n+10,p),checksum:e.getUint32(n+12,p)}}function g(t,e,n){const r=[];e=w(t,e,r);const o=[];for(let i=0;i<r.length;i++){o.length=0,e=w(t,e,o);for(let t=0;t<o.length;t++)n.push(o[t]+r[i])}return e}function w(t,e,n){const r=new DataView(t,e),o=r.getUint8(0),i=31&o,a=!!(32&o),s=(192&o)>>6;let u=0;if(0===s)u=r.getUint32(1,p),e+=5;else if(1===s)u=r.getUint16(1,p),e+=3;else{if(2!==s)throw new b.Z("lepcc-decode-error","Bad count type");u=r.getUint8(1),e+=2}if(a)throw new b.Z("lepcc-decode-error","LUT not implemented");const c=Math.ceil(u*i/8),l=new Uint8Array(t,e,c);let f=0,h=0,d=0;const M=-1>>>32-i;for(let t=0;t<u;t++){for(;h<i;)f|=l[d]<<h,h+=8,d+=1;n[t]=f&M,f>>>=i,h-=i,h+i>32&&(f|=l[d-1]>>8-h)}return e+d}var U=n(35065);const A=m.Z.getLogger("esri.views.3d.layers.i3s.I3SBinaryReader");function I(t,e,n){let r="",o=0;for(;o<n;){const i=t[e+o];if(i<128)r+=String.fromCharCode(i),o++;else if(i>=192&&i<224){if(o+1>=n)throw new b.Z("utf8-decode-error","UTF-8 Decode failed. Two byte character was truncated.");const a=(31&i)<<6|63&t[e+o+1];r+=String.fromCharCode(a),o+=2}else if(i>=224&&i<240){if(o+2>=n)throw new b.Z("utf8-decode-error","UTF-8 Decode failed. Multi byte character was truncated.");const a=(15&i)<<12|(63&t[e+o+1])<<6|63&t[e+o+2];r+=String.fromCharCode(a),o+=3}else{if(!(i>=240&&i<248))throw new b.Z("utf8-decode-error","UTF-8 Decode failed. Invalid multi byte sequence.");{if(o+3>=n)throw new b.Z("utf8-decode-error","UTF-8 Decode failed. Multi byte character was truncated.");const a=(7&i)<<18|(63&t[e+o+1])<<12|(63&t[e+o+2])<<6|63&t[e+o+3];if(a>=65536){const t=55296+(a-65536>>10),e=56320+(1023&a);r+=String.fromCharCode(t,e)}else r+=String.fromCharCode(a);o+=4}}}return r}function E(t,e){const n={byteOffset:0,byteCount:0,fields:Object.create(null)};let r=0;for(let o=0;o<e.length;o++){const i=e[o],a=i.valueType||i.type,s=R[a];n.fields[i.property]=s(t,r),r+=v[a].BYTES_PER_ELEMENT}return n.byteCount=r,n}function O(t,e){return new(0,v[e.valueType])(t,e.byteOffset,e.count*e.valuesPerElement)}function T(t,e,n){if(e!==t&&A.error(`Invalid ${n} buffer size\n expected: ${t}, actual: ${e})`),e<t)throw new b.Z("buffer-too-small","Binary buffer is too small",{expectedSize:t,actualSize:e})}const S={position:U.T.POSITION,normal:U.T.NORMAL,color:U.T.COLOR,uv0:U.T.UV0,region:U.T.UVREGION};function C(t,e,n){if("lepcc-rgb"===t.encoding)return function(t){const e=new DataView(t,0);let n=0;const{identifier:r,version:o}=y(t,e,n);if(n+=16,"ClusterRGB"!==r)throw new b.Z("lepcc-decode-error","Bad identifier");if(o>1)throw new b.Z("lepcc-decode-error","Unknown version");const i=(s=n,{sizeLo:(a=e).getUint32(s+0,p),sizeHi:a.getUint32(s+4,p),count:a.getUint32(s+8,p),colorMapCount:a.getUint16(s+12,p),lookupMethod:a.getUint8(s+14),compressionMethod:a.getUint8(s+15)});var a,s;if(n+=16,i.sizeHi*2**32+i.sizeLo!==t.byteLength)throw new b.Z("lepcc-decode-error","Bad size");if((2===i.lookupMethod||1===i.lookupMethod)&&0===i.compressionMethod){if(3*i.colorMapCount+i.count+n!==t.byteLength||i.colorMapCount>256)throw new b.Z("lepcc-decode-error","Bad count");const e=new Uint8Array(t,n,3*i.colorMapCount),r=new Uint8Array(t,n+3*i.colorMapCount,i.count),o=new Uint8Array(3*i.count);for(let t=0;t<i.count;t++){const n=r[t];o[3*t]=e[3*n],o[3*t+1]=e[3*n+1],o[3*t+2]=e[3*n+2]}return o}if(0===i.lookupMethod&&0===i.compressionMethod){if(3*i.count+n!==t.byteLength||0!==i.colorMapCount)throw new b.Z("lepcc-decode-error","Bad count");return new Uint8Array(t,n).slice()}if(i.lookupMethod<=2&&1===i.compressionMethod){if(n+3!==t.byteLength||1!==i.colorMapCount)throw new b.Z("lepcc-decode-error","Bad count");const r=e.getUint8(n),o=e.getUint8(n+1),a=e.getUint8(n+2),s=new Uint8Array(3*i.count);for(let t=0;t<i.count;t++)s[3*t]=r,s[3*t+1]=o,s[3*t+2]=a;return s}throw new b.Z("lepcc-decode-error","Bad method "+i.lookupMethod+","+i.compressionMethod)}(e);if("lepcc-intensity"===t.encoding)return function(t){const e=new DataView(t,0);let n=0;const{identifier:r,version:o}=y(t,e,n);if(n+=16,"Intensity "!==r)throw new b.Z("lepcc-decode-error","Bad identifier");if(o>1)throw new b.Z("lepcc-decode-error","Unknown version");const i=(s=n,{sizeLo:(a=e).getUint32(s+0,p),sizeHi:a.getUint32(s+4,p),count:a.getUint32(s+8,p),scaleFactor:a.getUint16(s+12,p),bitsPerPoint:a.getUint8(s+14),reserved:a.getUint8(s+15)});var a,s;if(n+=16,i.sizeHi*2**32+i.sizeLo!==t.byteLength)throw new b.Z("lepcc-decode-error","Bad size");const u=new Uint16Array(i.count);if(8===i.bitsPerPoint){if(i.count+n!==t.byteLength)throw new b.Z("lepcc-decode-error","Bad size");const e=new Uint8Array(t,n,i.count);for(let t=0;t<i.count;t++)u[t]=e[t]*i.scaleFactor}else if(16===i.bitsPerPoint){if(2*i.count+n!==t.byteLength)throw new b.Z("lepcc-decode-error","Bad size");const e=new Uint16Array(t,n,i.count);for(let t=0;t<i.count;t++)u[t]=e[t]*i.scaleFactor}else{const e=[];if(w(t,n,e)!==t.byteLength)throw new b.Z("lepcc-decode-error","Bad size");for(let t=0;t<i.count;t++)u[t]=e[t]*i.scaleFactor}return u}(e);if(null!=t.encoding&&""!==t.encoding)throw new b.Z("unknown-attribute-storage-info-encoding","Unknown Attribute Storage Info Encoding");t["attributeByteCounts "]&&!t.attributeByteCounts&&(A.warn("Warning: Trailing space in 'attributeByteCounts '."),t.attributeByteCounts=t["attributeByteCounts "]),"ObjectIds"===t.ordering[0]&&t.hasOwnProperty("objectIds")&&(A.warn("Warning: Case error in objectIds"),t.ordering[0]="objectIds");const r=function(t,e,n){const r=null!=e.header?E(t,e.header):{byteOffset:0,byteCount:0,fields:{count:n}},o={header:r,byteOffset:r.byteCount,byteCount:0,entries:Object.create(null)};let i=r.byteCount;for(let t=0;t<e.ordering.length;t++){const n=e.ordering[t],a=(0,M.d9)(e[n]);if(a.count=r.fields.count,"String"===a.valueType){if(a.byteOffset=i,a.byteCount=r.fields[n+"ByteCount"],"UTF-8"!==a.encoding)throw new b.Z("unsupported-encoding","Unsupported String encoding.",{encoding:a.encoding})}else{if(!B(a.valueType))throw new b.Z("unsupported-value-type","Unsupported binary valueType",{valueType:a.valueType});{const t=F(a.valueType);i+=i%t!=0?t-i%t:0,a.byteOffset=i,a.byteCount=t*a.valuesPerElement*a.count}}i+=a.byteCount,o.entries[n]=a}return o.byteCount=i-o.byteOffset,o}(e,t,n);T(r.byteOffset+r.byteCount,e.byteLength,"attribute");const o=r.entries.attributeValues||r.entries.objectIds;if(o){if("String"===o.valueType){const t=r.entries.attributeByteCounts,n=O(e,t),i=function(t,e){return new Uint8Array(t,e.byteOffset,e.byteCount)}(e,o);return function(t,e,n){const r=[];let o,i,a=0;for(i=0;i<t;i+=1){if(o=e[i],o>0){if(r.push(I(n,a,o-1)),0!==n[a+o-1])throw new b.Z("string-array-error","Invalid string array: missing null termination.")}else r.push(null);a+=o}return r}(t.count,n,i)}return O(e,o)}throw new b.Z("bad-attribute-storage-info","Bad attributeStorageInfo specification.")}const v={Float32:Float32Array,Float64:Float64Array,UInt8:Uint8Array,Int8:Int8Array,UInt16:Uint16Array,Int16:Int16Array,UInt32:Uint32Array,Int32:Int32Array},R={Float32:(t,e)=>new DataView(t,0).getFloat32(e,!0),Float64:(t,e)=>new DataView(t,0).getFloat64(e,!0),UInt8:(t,e)=>new DataView(t,0).getUint8(e),Int8:(t,e)=>new DataView(t,0).getInt8(e),UInt16:(t,e)=>new DataView(t,0).getUint16(e,!0),Int16:(t,e)=>new DataView(t,0).getInt16(e,!0),UInt32:(t,e)=>new DataView(t,0).getUint32(e,!0),Int32:(t,e)=>new DataView(t,0).getInt32(e,!0)};function B(t){return v.hasOwnProperty(t)}function F(t){return B(t)?v[t].BYTES_PER_ELEMENT:0}function P(t,e){if(null==t.encoding||""===t.encoding){const n=function(t,e){const n=E(t,e&&e.header);let r=n.byteCount;const o={isDraco:!1,header:n,byteOffset:n.byteCount,byteCount:0,vertexAttributes:{}},i=n.fields,a=null!=i.vertexCount?i.vertexCount:i.count;for(const t of e.ordering){if(!e.vertexAttributes[t])continue;const n={...e.vertexAttributes[t],byteOffset:r,count:a},i=S[t]?S[t]:"_"+t;o.vertexAttributes[i]=n,r+=F(n.valueType)*n.valuesPerElement*a}const s=i.faceCount;if(e.faces&&s){o.faces={};for(const t of e.ordering){if(!e.faces[t])continue;const n={...e.faces[t],byteOffset:r,count:s};o.faces[t]=n,r+=F(n.valueType)*n.valuesPerElement*s}}const u=i.featureCount;if(e.featureAttributes&&e.featureAttributeOrder&&u){o.featureAttributes={};for(const t of e.featureAttributeOrder){if(!e.featureAttributes[t])continue;const n={...e.featureAttributes[t],byteOffset:r,count:u};o.featureAttributes[t]=n,r+=("UInt64"===n.valueType?8:F(n.valueType))*n.valuesPerElement*u}}return T(r,t.byteLength,"geometry"),o.byteCount=r-o.byteOffset,o}(e,t);if((0,r.Wi)(n.vertexAttributes.position))return;const o=O(e,n.vertexAttributes.position),i=n.header.fields,a=[i.offsetX,i.offsetY,i.offsetZ],s=[i.scaleX,i.scaleY,i.scaleZ],u=o.length/3,c=new Float64Array(3*u);for(let t=0;t<u;t++)c[3*t]=o[3*t]*s[0]+a[0],c[3*t+1]=o[3*t+1]*s[1]+a[1],c[3*t+2]=o[3*t+2]*s[2]+a[2];return c}if("lepcc-xyz"===t.encoding)return function(t){const e=new DataView(t,0);let n=0;const{identifier:r,version:o}=y(t,e,n);if(n+=16,"LEPCC "!==r)throw new b.Z("lepcc-decode-error","Bad identifier");if(o>1)throw new b.Z("lepcc-decode-error","Unknown version");const i=(s=n,{sizeLo:(a=e).getUint32(s+0,p),sizeHi:a.getUint32(s+4,p),minX:a.getFloat64(s+8,p),minY:a.getFloat64(s+16,p),minZ:a.getFloat64(s+24,p),maxX:a.getFloat64(s+32,p),maxY:a.getFloat64(s+40,p),maxZ:a.getFloat64(s+48,p),errorX:a.getFloat64(s+56,p),errorY:a.getFloat64(s+64,p),errorZ:a.getFloat64(s+72,p),count:a.getUint32(s+80,p),reserved:a.getUint32(s+84,p)});var a,s;if(n+=88,i.sizeHi*2**32+i.sizeLo!==t.byteLength)throw new b.Z("lepcc-decode-error","Bad size");const u=new Float64Array(3*i.count),c=[],l=[],f=[],h=[];if(n=g(t,n,c),n=g(t,n,l),n=g(t,n,f),n=g(t,n,h),n!==t.byteLength)throw new b.Z("lepcc-decode-error","Bad length");let d=0,M=0;for(let t=0;t<c.length;t++){M+=c[t];let e=0;for(let n=0;n<l[t];n++){e+=f[d];const t=h[d];u[3*d]=Math.min(i.maxX,i.minX+2*i.errorX*e),u[3*d+1]=Math.min(i.maxY,i.minY+2*i.errorY*M),u[3*d+2]=Math.min(i.maxZ,i.minZ+2*i.errorZ*t),d++}}return{errorX:i.errorX,errorY:i.errorY,errorZ:i.errorZ,result:u}}(e).result}function x(t,e,n){return(0,r.pC)(t)&&t.attributeInfo.useElevation?function(t,e){const n=new Float64Array(e);for(let r=0;r<e;r++)n[r]=t[3*r+2];return n}(e,n):(0,r.pC)(t)?C(t.attributeInfo.storageInfo,t.buffer,n):null}function N(t){return null==t||"none"===t?null:"low-four-bit"===t?t=>15&t:"high-four-bit"===t?t=>(240&t)>>4:"absolute-value"===t?t=>Math.abs(t):"modulo-ten"===t?t=>t%10:null}function q(t){let e=0;for(const n of t||[])e|=1<<n;return e}class Z{transform(t){const e=this._transform(t),n=[e.points.buffer,e.rgb.buffer];(0,r.pC)(e.pointIdFilterMap)&&n.push(e.pointIdFilterMap.buffer);for(const t of e.attributes)"buffer"in t.values&&(0,o.eP)(t.values.buffer)&&t.values.buffer!==e.rgb.buffer&&n.push(t.values.buffer);return Promise.resolve({result:e,transferList:n})}_transform(t){const e=P(t.schema,t.geometryBuffer);let n=e.length/3,o=null;const i=[],a=x(t.primaryAttributeData,e,n);(0,r.pC)(t.primaryAttributeData)&&a&&i.push({attributeInfo:t.primaryAttributeData.attributeInfo,values:a});const s=x(t.modulationAttributeData,e,n);(0,r.pC)(t.modulationAttributeData)&&s&&i.push({attributeInfo:t.modulationAttributeData.attributeInfo,values:s});let u=function(t,e,n,r){const{rendererJSON:o,isRGBRenderer:i}=t;let a=null,s=null;if(e&&i)a=e;else if(e&&"pointCloudUniqueValueRenderer"===o.type){s=d.Z.fromJSON(o);const t=s.colorUniqueValueInfos;a=new Uint8Array(3*r);const n=N(s.fieldTransformType);for(let o=0;o<r;o++){const r=(n?n(e[o]):e[o])+"";for(let e=0;e<t.length;e++)if(t[e].values.indexOf(r)>=0){a[3*o]=t[e].color.r,a[3*o+1]=t[e].color.g,a[3*o+2]=t[e].color.b;break}}}else if(e&&"pointCloudStretchRenderer"===o.type){s=h.Z.fromJSON(o);const t=s.stops;a=new Uint8Array(3*r);const n=N(s.fieldTransformType);for(let o=0;o<r;o++){const r=n?n(e[o]):e[o],i=t.length-1;if(r<t[0].value)a[3*o]=t[0].color.r,a[3*o+1]=t[0].color.g,a[3*o+2]=t[0].color.b;else if(r>=t[i].value)a[3*o]=t[i].color.r,a[3*o+1]=t[i].color.g,a[3*o+2]=t[i].color.b;else for(let e=1;e<t.length;e++)if(r<t[e].value){const n=(r-t[e-1].value)/(t[e].value-t[e-1].value);a[3*o]=t[e].color.r*n+t[e-1].color.r*(1-n),a[3*o+1]=t[e].color.g*n+t[e-1].color.g*(1-n),a[3*o+2]=t[e].color.b*n+t[e-1].color.b*(1-n);break}}}else if(e&&"pointCloudClassBreaksRenderer"===o.type){s=f.Z.fromJSON(o);const t=s.colorClassBreakInfos;a=new Uint8Array(3*r);const n=N(s.fieldTransformType);for(let o=0;o<r;o++){const r=n?n(e[o]):e[o];for(let e=0;e<t.length;e++)if(r>=t[e].minValue&&r<=t[e].maxValue){a[3*o]=t[e].color.r,a[3*o+1]=t[e].color.g,a[3*o+2]=t[e].color.b;break}}}else{a=new Uint8Array(3*r);for(let t=0;t<a.length;t++)a[t]=255}if(n&&s&&s.colorModulation){const t=s.colorModulation.minValue,e=s.colorModulation.maxValue,o=.3;for(let i=0;i<r;i++){const r=n[i],s=r>=e?1:r<=t?o:o+(1-o)*(r-t)/(e-t);a[3*i]=s*a[3*i],a[3*i+1]=s*a[3*i+1],a[3*i+2]=s*a[3*i+2]}}return a}(t.rendererInfo,a,s,n);if(t.filterInfo&&t.filterInfo.length>0&&(0,r.pC)(t.filterAttributesData)){const r=t.filterAttributesData.map((t=>{const r=x(t,e,n),o={attributeInfo:t.attributeInfo,values:r};return i.push(o),o}));o=new Uint32Array(n),n=function(t,e,n,r,o){const i=t.length/3;let a=0;for(let s=0;s<i;s++){let i=!0;for(let t=0;t<r.length&&i;t++){const{filterJSON:e}=r[t],n=o[t].values[s];switch(e.type){case"pointCloudValueFilter":{const t="exclude"===e.mode;-1!==e.values.indexOf(n)===t&&(i=!1);break}case"pointCloudBitfieldFilter":{const t=q(e.requiredSetBits),r=q(e.requiredClearBits);(n&t)===t&&0==(n&r)||(i=!1);break}case"pointCloudReturnFilter":{const t=15&n,r=n>>>4&15,o=r>1,a=1===t,s=t===r;let u=!1;for(const t of e.includedReturns)if("last"===t&&s||"firstOfMany"===t&&a&&o||"lastOfMany"===t&&s&&o||"single"===t&&!o){u=!0;break}u||(i=!1);break}}}i&&(n[a]=s,t[3*a]=t[3*s],t[3*a+1]=t[3*s+1],t[3*a+2]=t[3*s+2],e[3*a]=e[3*s],e[3*a+1]=e[3*s+1],e[3*a+2]=e[3*s+2],a++)}return a}(e,u,o,t.filterInfo,r)}for(const r of t.userAttributesData){const t=x(r,e,n);i.push({attributeInfo:r.attributeInfo,values:t})}3*n<u.length&&(u=new Uint8Array(u.buffer.slice(0,3*n))),this._applyElevationOffsetInPlace(e,n,t.elevationOffset);const c=this._transformCoordinates(e,n,t.obb,l.Z.fromJSON(t.inSR),l.Z.fromJSON(t.outSR));return{obb:t.obb,points:c,rgb:u,attributes:i,pointIdFilterMap:o}}_transformCoordinates(t,e,n,r,o){if(!(0,c.CM)(t,r,0,t,o,0,e))throw Error("Can't reproject");const a=(0,u.f)(n.center[0],n.center[1],n.center[2]),l=(0,u.c)(),f=(0,u.c)();(0,i.c)(D,n.quaternion);const h=new Float32Array(3*e);for(let r=0;r<e;r++)l[0]=t[3*r]-a[0],l[1]=t[3*r+1]-a[1],l[2]=t[3*r+2]-a[2],(0,s.q)(f,l,D),n.halfSize[0]=Math.max(n.halfSize[0],Math.abs(f[0])),n.halfSize[1]=Math.max(n.halfSize[1],Math.abs(f[1])),n.halfSize[2]=Math.max(n.halfSize[2],Math.abs(f[2])),h[3*r]=l[0],h[3*r+1]=l[1],h[3*r+2]=l[2];return h}_applyElevationOffsetInPlace(t,e,n){if(0!==n)for(let r=0;r<e;r++)t[3*r+2]+=n}}const D=a();function _(){return new Z}},35065:(t,e,n)=>{var r;n.d(e,{T:()=>r}),function(t){t.POSITION="position",t.NORMAL="normal",t.UV0="uv0",t.AUXPOS1="auxpos1",t.AUXPOS2="auxpos2",t.MAPPOS="mapPos",t.COLOR="color",t.SYMBOLCOLOR="symbolColor",t.SIZE="size",t.TANGENT="tangent",t.OFFSET="offset",t.SUBDIVISIONFACTOR="subdivisionFactor",t.COLORFEATUREATTRIBUTE="colorFeatureAttribute",t.SIZEFEATUREATTRIBUTE="sizeFeatureAttribute",t.OPACITYFEATUREATTRIBUTE="opacityFeatureAttribute",t.DISTANCETOSTART="distanceToStart",t.UVMAPSPACE="uvMapSpace",t.BOUNDINGRECT="boundingRect",t.UVREGION="uvRegion",t.NORMALCOMPRESSED="normalCompressed",t.PROFILERIGHT="profileRight",t.PROFILEUP="profileUp",t.PROFILEVERTEXANDNORMAL="profileVertexAndNormal",t.FEATUREVALUE="featureValue",t.MODELORIGINHI="modelOriginHi",t.MODELORIGINLO="modelOriginLo",t.MODEL="model",t.MODELNORMAL="modelNormal",t.INSTANCECOLOR="instanceColor",t.INSTANCEFEATUREATTRIBUTE="instanceFeatureAttribute",t.LOCALTRANSFORM="localTransform",t.GLOBALTRANSFORM="globalTransform",t.BOUNDINGSPHERE="boundingSphere",t.MODELORIGIN="modelOrigin",t.MODELSCALEFACTORS="modelScaleFactors",t.FEATUREATTRIBUTE="featureAttribute",t.STATE="state",t.LODLEVEL="lodLevel",t.POSITION0="position0",t.POSITION1="position1",t.NORMALA="normalA",t.NORMALB="normalB",t.COMPONENTINDEX="componentIndex",t.VARIANTOFFSET="variantOffset",t.VARIANTSTROKE="variantStroke",t.VARIANTEXTENSION="variantExtension",t.U8PADDING="u8padding",t.U16PADDING="u16padding",t.SIDENESS="sideness",t.START="start",t.END="end",t.UP="up",t.EXTRUDE="extrude"}(r||(r={}))}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5638,5732],{92835:(t,e,r)=>{r.d(e,{Z:()=>d});var n,o=r(43697),a=r(96674),s=r(70586),i=r(35463),l=r(5600),u=(r(67676),r(80442),r(75215),r(71715)),c=r(52011),h=r(30556);let f=n=class extends a.wq{constructor(t){super(t),this.end=null,this.start=null}static get allTime(){return m}static get empty(){return p}readEnd(t,e){return null!=e.end?new Date(e.end):null}writeEnd(t,e){e.end=t?t.getTime():null}get isAllTime(){return this.equals(n.allTime)}get isEmpty(){return this.equals(n.empty)}readStart(t,e){return null!=e.start?new Date(e.start):null}writeStart(t,e){e.start=t?t.getTime():null}clone(){return new n({end:this.end,start:this.start})}equals(t){if(!t)return!1;const e=(0,s.pC)(this.start)?this.start.getTime():this.start,r=(0,s.pC)(this.end)?this.end.getTime():this.end,n=(0,s.pC)(t.start)?t.start.getTime():t.start,o=(0,s.pC)(t.end)?t.end.getTime():t.end;return e===n&&r===o}expandTo(t){if(this.isEmpty||this.isAllTime)return this.clone();const e=(0,s.Po)(this.start,(e=>(0,i.JE)(e,t))),r=(0,s.Po)(this.end,(e=>(0,i.Nm)((0,i.JE)(e,t),1,t)));return new n({start:e,end:r})}intersection(t){if(!t)return this.clone();if(this.isEmpty||t.isEmpty)return n.empty;if(this.isAllTime)return t.clone();if(t.isAllTime)return this.clone();const e=(0,s.R2)(this.start,-1/0,(t=>t.getTime())),r=(0,s.R2)(this.end,1/0,(t=>t.getTime())),o=(0,s.R2)(t.start,-1/0,(t=>t.getTime())),a=(0,s.R2)(t.end,1/0,(t=>t.getTime()));let i,l;if(o>=e&&o<=r?i=o:e>=o&&e<=a&&(i=e),r>=o&&r<=a?l=r:a>=e&&a<=r&&(l=a),!isNaN(i)&&!isNaN(l)){const t=new n;return t.start=i===-1/0?null:new Date(i),t.end=l===1/0?null:new Date(l),t}return n.empty}offset(t,e){if(this.isEmpty||this.isAllTime)return this.clone();const r=new n,{start:o,end:a}=this;return(0,s.pC)(o)&&(r.start=(0,i.Nm)(o,t,e)),(0,s.pC)(a)&&(r.end=(0,i.Nm)(a,t,e)),r}union(t){if(!t||t.isEmpty)return this.clone();if(this.isEmpty)return t.clone();if(this.isAllTime||t.isAllTime)return m.clone();const e=(0,s.pC)(this.start)&&(0,s.pC)(t.start)?new Date(Math.min(this.start.getTime(),t.start.getTime())):null,r=(0,s.pC)(this.end)&&(0,s.pC)(t.end)?new Date(Math.max(this.end.getTime(),t.end.getTime())):null;return new n({start:e,end:r})}};(0,o._)([(0,l.Cb)({type:Date,json:{write:{allowNull:!0}}})],f.prototype,"end",void 0),(0,o._)([(0,u.r)("end")],f.prototype,"readEnd",null),(0,o._)([(0,h.c)("end")],f.prototype,"writeEnd",null),(0,o._)([(0,l.Cb)({readOnly:!0,json:{read:!1}})],f.prototype,"isAllTime",null),(0,o._)([(0,l.Cb)({readOnly:!0,json:{read:!1}})],f.prototype,"isEmpty",null),(0,o._)([(0,l.Cb)({type:Date,json:{write:{allowNull:!0}}})],f.prototype,"start",void 0),(0,o._)([(0,u.r)("start")],f.prototype,"readStart",null),(0,o._)([(0,h.c)("start")],f.prototype,"writeStart",null),f=n=(0,o._)([(0,c.j)("esri.TimeExtent")],f);const m=new f,p=new f({start:void 0,end:void 0}),d=f},5732:(t,e,r)=>{r.d(e,{a:()=>a,c:()=>n,g:()=>o});var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function o(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function a(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}},52138:(t,e,r)=>{r.d(e,{a:()=>l,d:()=>d,e:()=>f,f:()=>m,h:()=>h,i:()=>s,j:()=>c,m:()=>u,p:()=>C,s:()=>a,t:()=>i,u:()=>p,v:()=>D,w:()=>w,y:()=>M});var n=r(65617),o=r(46851);function a(t,e,r,n,o,a,s,i,l,u,c,h,f,m,p,d,M){return t[0]=e,t[1]=r,t[2]=n,t[3]=o,t[4]=a,t[5]=s,t[6]=i,t[7]=l,t[8]=u,t[9]=c,t[10]=h,t[11]=f,t[12]=m,t[13]=p,t[14]=d,t[15]=M,t}function s(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function i(t,e){if(t===e){const r=e[1],n=e[2],o=e[3],a=e[6],s=e[7],i=e[11];t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=r,t[6]=e[9],t[7]=e[13],t[8]=n,t[9]=a,t[11]=e[14],t[12]=o,t[13]=s,t[14]=i}else t[0]=e[0],t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=e[1],t[5]=e[5],t[6]=e[9],t[7]=e[13],t[8]=e[2],t[9]=e[6],t[10]=e[10],t[11]=e[14],t[12]=e[3],t[13]=e[7],t[14]=e[11],t[15]=e[15];return t}function l(t,e){const r=e[0],n=e[1],o=e[2],a=e[3],s=e[4],i=e[5],l=e[6],u=e[7],c=e[8],h=e[9],f=e[10],m=e[11],p=e[12],d=e[13],M=e[14],y=e[15],g=r*i-n*s,b=r*l-o*s,w=r*u-a*s,D=n*l-o*i,C=n*u-a*i,S=o*u-a*l,v=c*d-h*p,E=c*M-f*p,x=c*y-m*p,T=h*M-f*d,R=h*y-m*d,_=f*y-m*M;let F=g*_-b*R+w*T+D*x-C*E+S*v;return F?(F=1/F,t[0]=(i*_-l*R+u*T)*F,t[1]=(o*R-n*_-a*T)*F,t[2]=(d*S-M*C+y*D)*F,t[3]=(f*C-h*S-m*D)*F,t[4]=(l*x-s*_-u*E)*F,t[5]=(r*_-o*x+a*E)*F,t[6]=(M*w-p*S-y*b)*F,t[7]=(c*S-f*w+m*b)*F,t[8]=(s*R-i*x+u*v)*F,t[9]=(n*x-r*R-a*v)*F,t[10]=(p*C-d*w+y*g)*F,t[11]=(h*w-c*C-m*g)*F,t[12]=(i*E-s*T-l*v)*F,t[13]=(r*T-n*E+o*v)*F,t[14]=(d*b-p*D-M*g)*F,t[15]=(c*D-h*b+f*g)*F,t):null}function u(t,e,r){const n=e[0],o=e[1],a=e[2],s=e[3],i=e[4],l=e[5],u=e[6],c=e[7],h=e[8],f=e[9],m=e[10],p=e[11],d=e[12],M=e[13],y=e[14],g=e[15];let b=r[0],w=r[1],D=r[2],C=r[3];return t[0]=b*n+w*i+D*h+C*d,t[1]=b*o+w*l+D*f+C*M,t[2]=b*a+w*u+D*m+C*y,t[3]=b*s+w*c+D*p+C*g,b=r[4],w=r[5],D=r[6],C=r[7],t[4]=b*n+w*i+D*h+C*d,t[5]=b*o+w*l+D*f+C*M,t[6]=b*a+w*u+D*m+C*y,t[7]=b*s+w*c+D*p+C*g,b=r[8],w=r[9],D=r[10],C=r[11],t[8]=b*n+w*i+D*h+C*d,t[9]=b*o+w*l+D*f+C*M,t[10]=b*a+w*u+D*m+C*y,t[11]=b*s+w*c+D*p+C*g,b=r[12],w=r[13],D=r[14],C=r[15],t[12]=b*n+w*i+D*h+C*d,t[13]=b*o+w*l+D*f+C*M,t[14]=b*a+w*u+D*m+C*y,t[15]=b*s+w*c+D*p+C*g,t}function c(t,e,r){const n=r[0],o=r[1],a=r[2];let s,i,l,u,c,h,f,m,p,d,M,y;return e===t?(t[12]=e[0]*n+e[4]*o+e[8]*a+e[12],t[13]=e[1]*n+e[5]*o+e[9]*a+e[13],t[14]=e[2]*n+e[6]*o+e[10]*a+e[14],t[15]=e[3]*n+e[7]*o+e[11]*a+e[15]):(s=e[0],i=e[1],l=e[2],u=e[3],c=e[4],h=e[5],f=e[6],m=e[7],p=e[8],d=e[9],M=e[10],y=e[11],t[0]=s,t[1]=i,t[2]=l,t[3]=u,t[4]=c,t[5]=h,t[6]=f,t[7]=m,t[8]=p,t[9]=d,t[10]=M,t[11]=y,t[12]=s*n+c*o+p*a+e[12],t[13]=i*n+h*o+d*a+e[13],t[14]=l*n+f*o+M*a+e[14],t[15]=u*n+m*o+y*a+e[15]),t}function h(t,e,r){const n=r[0],o=r[1],a=r[2];return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*o,t[5]=e[5]*o,t[6]=e[6]*o,t[7]=e[7]*o,t[8]=e[8]*a,t[9]=e[9]*a,t[10]=e[10]*a,t[11]=e[11]*a,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function f(t,e,r,n){let a,s,i,l,u,c,h,f,m,p,d,M,y,g,b,w,D,C,S,v,E,x,T,R,_=n[0],F=n[1],I=n[2],P=Math.sqrt(_*_+F*F+I*I);return P<o.E?null:(P=1/P,_*=P,F*=P,I*=P,a=Math.sin(r),s=Math.cos(r),i=1-s,l=e[0],u=e[1],c=e[2],h=e[3],f=e[4],m=e[5],p=e[6],d=e[7],M=e[8],y=e[9],g=e[10],b=e[11],w=_*_*i+s,D=F*_*i+I*a,C=I*_*i-F*a,S=_*F*i-I*a,v=F*F*i+s,E=I*F*i+_*a,x=_*I*i+F*a,T=F*I*i-_*a,R=I*I*i+s,t[0]=l*w+f*D+M*C,t[1]=u*w+m*D+y*C,t[2]=c*w+p*D+g*C,t[3]=h*w+d*D+b*C,t[4]=l*S+f*v+M*E,t[5]=u*S+m*v+y*E,t[6]=c*S+p*v+g*E,t[7]=h*S+d*v+b*E,t[8]=l*x+f*T+M*R,t[9]=u*x+m*T+y*R,t[10]=c*x+p*T+g*R,t[11]=h*x+d*T+b*R,e!==t&&(t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t)}function m(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=e[0],t[13]=e[1],t[14]=e[2],t[15]=1,t}function p(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=e[1],t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=e[2],t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function d(t,e,r){let n,a,s,i=r[0],l=r[1],u=r[2],c=Math.sqrt(i*i+l*l+u*u);return c<o.E?null:(c=1/c,i*=c,l*=c,u*=c,n=Math.sin(e),a=Math.cos(e),s=1-a,t[0]=i*i*s+a,t[1]=l*i*s+u*n,t[2]=u*i*s-l*n,t[3]=0,t[4]=i*l*s-u*n,t[5]=l*l*s+a,t[6]=u*l*s+i*n,t[7]=0,t[8]=i*u*s+l*n,t[9]=l*u*s-i*n,t[10]=u*u*s+a,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t)}function M(t,e){const r=Math.sin(e),n=Math.cos(e);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=n,t[6]=r,t[7]=0,t[8]=0,t[9]=-r,t[10]=n,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function y(t,e,r){const n=e[0],o=e[1],a=e[2],s=e[3],i=n+n,l=o+o,u=a+a,c=n*i,h=n*l,f=n*u,m=o*l,p=o*u,d=a*u,M=s*i,y=s*l,g=s*u;return t[0]=1-(m+d),t[1]=h+g,t[2]=f-y,t[3]=0,t[4]=h-g,t[5]=1-(c+d),t[6]=p+M,t[7]=0,t[8]=f+y,t[9]=p-M,t[10]=1-(c+m),t[11]=0,t[12]=r[0],t[13]=r[1],t[14]=r[2],t[15]=1,t}const g=(0,n.c)();function b(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2],t[3]=e[3]-r[3],t[4]=e[4]-r[4],t[5]=e[5]-r[5],t[6]=e[6]-r[6],t[7]=e[7]-r[7],t[8]=e[8]-r[8],t[9]=e[9]-r[9],t[10]=e[10]-r[10],t[11]=e[11]-r[11],t[12]=e[12]-r[12],t[13]=e[13]-r[13],t[14]=e[14]-r[14],t[15]=e[15]-r[15],t}function w(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]&&t[9]===e[9]&&t[10]===e[10]&&t[11]===e[11]&&t[12]===e[12]&&t[13]===e[13]&&t[14]===e[14]&&t[15]===e[15]}function D(t,e){if(t===e)return!0;const r=t[0],n=t[1],a=t[2],s=t[3],i=t[4],l=t[5],u=t[6],c=t[7],h=t[8],f=t[9],m=t[10],p=t[11],d=t[12],M=t[13],y=t[14],g=t[15],b=e[0],w=e[1],D=e[2],C=e[3],S=e[4],v=e[5],E=e[6],x=e[7],T=e[8],R=e[9],_=e[10],F=e[11],I=e[12],P=e[13],Y=e[14],q=e[15];return Math.abs(r-b)<=o.E*Math.max(1,Math.abs(r),Math.abs(b))&&Math.abs(n-w)<=o.E*Math.max(1,Math.abs(n),Math.abs(w))&&Math.abs(a-D)<=o.E*Math.max(1,Math.abs(a),Math.abs(D))&&Math.abs(s-C)<=o.E*Math.max(1,Math.abs(s),Math.abs(C))&&Math.abs(i-S)<=o.E*Math.max(1,Math.abs(i),Math.abs(S))&&Math.abs(l-v)<=o.E*Math.max(1,Math.abs(l),Math.abs(v))&&Math.abs(u-E)<=o.E*Math.max(1,Math.abs(u),Math.abs(E))&&Math.abs(c-x)<=o.E*Math.max(1,Math.abs(c),Math.abs(x))&&Math.abs(h-T)<=o.E*Math.max(1,Math.abs(h),Math.abs(T))&&Math.abs(f-R)<=o.E*Math.max(1,Math.abs(f),Math.abs(R))&&Math.abs(m-_)<=o.E*Math.max(1,Math.abs(m),Math.abs(_))&&Math.abs(p-F)<=o.E*Math.max(1,Math.abs(p),Math.abs(F))&&Math.abs(d-I)<=o.E*Math.max(1,Math.abs(d),Math.abs(I))&&Math.abs(M-P)<=o.E*Math.max(1,Math.abs(M),Math.abs(P))&&Math.abs(y-Y)<=o.E*Math.max(1,Math.abs(y),Math.abs(Y))&&Math.abs(g-q)<=o.E*Math.max(1,Math.abs(g),Math.abs(q))}function C(t){const e=o.E,r=t[0],n=t[1],a=t[2],s=t[4],i=t[5],l=t[6],u=t[8],c=t[9],h=t[10];return Math.abs(1-(r*r+s*s+u*u))<=e&&Math.abs(1-(n*n+i*i+c*c))<=e&&Math.abs(1-(a*a+l*l+h*h))<=e}const S=u,v=b;Object.freeze({__proto__:null,copy:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t},set:a,identity:s,transpose:i,invert:l,adjoint:function(t,e){const r=e[0],n=e[1],o=e[2],a=e[3],s=e[4],i=e[5],l=e[6],u=e[7],c=e[8],h=e[9],f=e[10],m=e[11],p=e[12],d=e[13],M=e[14],y=e[15];return t[0]=i*(f*y-m*M)-h*(l*y-u*M)+d*(l*m-u*f),t[1]=-(n*(f*y-m*M)-h*(o*y-a*M)+d*(o*m-a*f)),t[2]=n*(l*y-u*M)-i*(o*y-a*M)+d*(o*u-a*l),t[3]=-(n*(l*m-u*f)-i*(o*m-a*f)+h*(o*u-a*l)),t[4]=-(s*(f*y-m*M)-c*(l*y-u*M)+p*(l*m-u*f)),t[5]=r*(f*y-m*M)-c*(o*y-a*M)+p*(o*m-a*f),t[6]=-(r*(l*y-u*M)-s*(o*y-a*M)+p*(o*u-a*l)),t[7]=r*(l*m-u*f)-s*(o*m-a*f)+c*(o*u-a*l),t[8]=s*(h*y-m*d)-c*(i*y-u*d)+p*(i*m-u*h),t[9]=-(r*(h*y-m*d)-c*(n*y-a*d)+p*(n*m-a*h)),t[10]=r*(i*y-u*d)-s*(n*y-a*d)+p*(n*u-a*i),t[11]=-(r*(i*m-u*h)-s*(n*m-a*h)+c*(n*u-a*i)),t[12]=-(s*(h*M-f*d)-c*(i*M-l*d)+p*(i*f-l*h)),t[13]=r*(h*M-f*d)-c*(n*M-o*d)+p*(n*f-o*h),t[14]=-(r*(i*M-l*d)-s*(n*M-o*d)+p*(n*l-o*i)),t[15]=r*(i*f-l*h)-s*(n*f-o*h)+c*(n*l-o*i),t},determinant:function(t){const e=t[0],r=t[1],n=t[2],o=t[3],a=t[4],s=t[5],i=t[6],l=t[7],u=t[8],c=t[9],h=t[10],f=t[11],m=t[12],p=t[13],d=t[14],M=t[15];return(e*s-r*a)*(h*M-f*d)-(e*i-n*a)*(c*M-f*p)+(e*l-o*a)*(c*d-h*p)+(r*i-n*s)*(u*M-f*m)-(r*l-o*s)*(u*d-h*m)+(n*l-o*i)*(u*p-c*m)},multiply:u,translate:c,scale:h,rotate:f,rotateX:function(t,e,r){const n=Math.sin(r),o=Math.cos(r),a=e[4],s=e[5],i=e[6],l=e[7],u=e[8],c=e[9],h=e[10],f=e[11];return e!==t&&(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[4]=a*o+u*n,t[5]=s*o+c*n,t[6]=i*o+h*n,t[7]=l*o+f*n,t[8]=u*o-a*n,t[9]=c*o-s*n,t[10]=h*o-i*n,t[11]=f*o-l*n,t},rotateY:function(t,e,r){const n=Math.sin(r),o=Math.cos(r),a=e[0],s=e[1],i=e[2],l=e[3],u=e[8],c=e[9],h=e[10],f=e[11];return e!==t&&(t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=a*o-u*n,t[1]=s*o-c*n,t[2]=i*o-h*n,t[3]=l*o-f*n,t[8]=a*n+u*o,t[9]=s*n+c*o,t[10]=i*n+h*o,t[11]=l*n+f*o,t},rotateZ:function(t,e,r){const n=Math.sin(r),o=Math.cos(r),a=e[0],s=e[1],i=e[2],l=e[3],u=e[4],c=e[5],h=e[6],f=e[7];return e!==t&&(t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=a*o+u*n,t[1]=s*o+c*n,t[2]=i*o+h*n,t[3]=l*o+f*n,t[4]=u*o-a*n,t[5]=c*o-s*n,t[6]=h*o-i*n,t[7]=f*o-l*n,t},fromTranslation:m,fromScaling:p,fromRotation:d,fromXRotation:M,fromYRotation:function(t,e){const r=Math.sin(e),n=Math.cos(e);return t[0]=n,t[1]=0,t[2]=-r,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=r,t[9]=0,t[10]=n,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromZRotation:function(t,e){const r=Math.sin(e),n=Math.cos(e);return t[0]=n,t[1]=r,t[2]=0,t[3]=0,t[4]=-r,t[5]=n,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromRotationTranslation:y,fromQuat2:function(t,e){const r=g,n=-e[0],o=-e[1],a=-e[2],s=e[3],i=e[4],l=e[5],u=e[6],c=e[7],h=n*n+o*o+a*a+s*s;return h>0?(r[0]=2*(i*s+c*n+l*a-u*o)/h,r[1]=2*(l*s+c*o+u*n-i*a)/h,r[2]=2*(u*s+c*a+i*o-l*n)/h):(r[0]=2*(i*s+c*n+l*a-u*o),r[1]=2*(l*s+c*o+u*n-i*a),r[2]=2*(u*s+c*a+i*o-l*n)),y(t,e,r),t},getTranslation:function(t,e){return t[0]=e[12],t[1]=e[13],t[2]=e[14],t},getScaling:function(t,e){const r=e[0],n=e[1],o=e[2],a=e[4],s=e[5],i=e[6],l=e[8],u=e[9],c=e[10];return t[0]=Math.sqrt(r*r+n*n+o*o),t[1]=Math.sqrt(a*a+s*s+i*i),t[2]=Math.sqrt(l*l+u*u+c*c),t},getRotation:function(t,e){const r=e[0]+e[5]+e[10];let n=0;return r>0?(n=2*Math.sqrt(r+1),t[3]=.25*n,t[0]=(e[6]-e[9])/n,t[1]=(e[8]-e[2])/n,t[2]=(e[1]-e[4])/n):e[0]>e[5]&&e[0]>e[10]?(n=2*Math.sqrt(1+e[0]-e[5]-e[10]),t[3]=(e[6]-e[9])/n,t[0]=.25*n,t[1]=(e[1]+e[4])/n,t[2]=(e[8]+e[2])/n):e[5]>e[10]?(n=2*Math.sqrt(1+e[5]-e[0]-e[10]),t[3]=(e[8]-e[2])/n,t[0]=(e[1]+e[4])/n,t[1]=.25*n,t[2]=(e[6]+e[9])/n):(n=2*Math.sqrt(1+e[10]-e[0]-e[5]),t[3]=(e[1]-e[4])/n,t[0]=(e[8]+e[2])/n,t[1]=(e[6]+e[9])/n,t[2]=.25*n),t},fromRotationTranslationScale:function(t,e,r,n){const o=e[0],a=e[1],s=e[2],i=e[3],l=o+o,u=a+a,c=s+s,h=o*l,f=o*u,m=o*c,p=a*u,d=a*c,M=s*c,y=i*l,g=i*u,b=i*c,w=n[0],D=n[1],C=n[2];return t[0]=(1-(p+M))*w,t[1]=(f+b)*w,t[2]=(m-g)*w,t[3]=0,t[4]=(f-b)*D,t[5]=(1-(h+M))*D,t[6]=(d+y)*D,t[7]=0,t[8]=(m+g)*C,t[9]=(d-y)*C,t[10]=(1-(h+p))*C,t[11]=0,t[12]=r[0],t[13]=r[1],t[14]=r[2],t[15]=1,t},fromRotationTranslationScaleOrigin:function(t,e,r,n,o){const a=e[0],s=e[1],i=e[2],l=e[3],u=a+a,c=s+s,h=i+i,f=a*u,m=a*c,p=a*h,d=s*c,M=s*h,y=i*h,g=l*u,b=l*c,w=l*h,D=n[0],C=n[1],S=n[2],v=o[0],E=o[1],x=o[2],T=(1-(d+y))*D,R=(m+w)*D,_=(p-b)*D,F=(m-w)*C,I=(1-(f+y))*C,P=(M+g)*C,Y=(p+b)*S,q=(M-g)*S,O=(1-(f+d))*S;return t[0]=T,t[1]=R,t[2]=_,t[3]=0,t[4]=F,t[5]=I,t[6]=P,t[7]=0,t[8]=Y,t[9]=q,t[10]=O,t[11]=0,t[12]=r[0]+v-(T*v+F*E+Y*x),t[13]=r[1]+E-(R*v+I*E+q*x),t[14]=r[2]+x-(_*v+P*E+O*x),t[15]=1,t},fromQuat:function(t,e){const r=e[0],n=e[1],o=e[2],a=e[3],s=r+r,i=n+n,l=o+o,u=r*s,c=n*s,h=n*i,f=o*s,m=o*i,p=o*l,d=a*s,M=a*i,y=a*l;return t[0]=1-h-p,t[1]=c+y,t[2]=f-M,t[3]=0,t[4]=c-y,t[5]=1-u-p,t[6]=m+d,t[7]=0,t[8]=f+M,t[9]=m-d,t[10]=1-u-h,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},frustum:function(t,e,r,n,o,a,s){const i=1/(r-e),l=1/(o-n),u=1/(a-s);return t[0]=2*a*i,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*a*l,t[6]=0,t[7]=0,t[8]=(r+e)*i,t[9]=(o+n)*l,t[10]=(s+a)*u,t[11]=-1,t[12]=0,t[13]=0,t[14]=s*a*2*u,t[15]=0,t},perspective:function(t,e,r,n,o){const a=1/Math.tan(e/2);let s;return t[0]=a/r,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=a,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=o&&o!==1/0?(s=1/(n-o),t[10]=(o+n)*s,t[14]=2*o*n*s):(t[10]=-1,t[14]=-2*n),t},perspectiveFromFieldOfView:function(t,e,r,n){const o=Math.tan(e.upDegrees*Math.PI/180),a=Math.tan(e.downDegrees*Math.PI/180),s=Math.tan(e.leftDegrees*Math.PI/180),i=Math.tan(e.rightDegrees*Math.PI/180),l=2/(s+i),u=2/(o+a);return t[0]=l,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=u,t[6]=0,t[7]=0,t[8]=-(s-i)*l*.5,t[9]=(o-a)*u*.5,t[10]=n/(r-n),t[11]=-1,t[12]=0,t[13]=0,t[14]=n*r/(r-n),t[15]=0,t},ortho:function(t,e,r,n,o,a,s){const i=1/(e-r),l=1/(n-o),u=1/(a-s);return t[0]=-2*i,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*l,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*u,t[11]=0,t[12]=(e+r)*i,t[13]=(o+n)*l,t[14]=(s+a)*u,t[15]=1,t},lookAt:function(t,e,r,n){let a,i,l,u,c,h,f,m,p,d;const M=e[0],y=e[1],g=e[2],b=n[0],w=n[1],D=n[2],C=r[0],S=r[1],v=r[2];return Math.abs(M-C)<o.E&&Math.abs(y-S)<o.E&&Math.abs(g-v)<o.E?s(t):(f=M-C,m=y-S,p=g-v,d=1/Math.sqrt(f*f+m*m+p*p),f*=d,m*=d,p*=d,a=w*p-D*m,i=D*f-b*p,l=b*m-w*f,d=Math.sqrt(a*a+i*i+l*l),d?(d=1/d,a*=d,i*=d,l*=d):(a=0,i=0,l=0),u=m*l-p*i,c=p*a-f*l,h=f*i-m*a,d=Math.sqrt(u*u+c*c+h*h),d?(d=1/d,u*=d,c*=d,h*=d):(u=0,c=0,h=0),t[0]=a,t[1]=u,t[2]=f,t[3]=0,t[4]=i,t[5]=c,t[6]=m,t[7]=0,t[8]=l,t[9]=h,t[10]=p,t[11]=0,t[12]=-(a*M+i*y+l*g),t[13]=-(u*M+c*y+h*g),t[14]=-(f*M+m*y+p*g),t[15]=1,t)},targetTo:function(t,e,r,n){const o=e[0],a=e[1],s=e[2],i=n[0],l=n[1],u=n[2];let c=o-r[0],h=a-r[1],f=s-r[2],m=c*c+h*h+f*f;m>0&&(m=1/Math.sqrt(m),c*=m,h*=m,f*=m);let p=l*f-u*h,d=u*c-i*f,M=i*h-l*c;return m=p*p+d*d+M*M,m>0&&(m=1/Math.sqrt(m),p*=m,d*=m,M*=m),t[0]=p,t[1]=d,t[2]=M,t[3]=0,t[4]=h*M-f*d,t[5]=f*p-c*M,t[6]=c*d-h*p,t[7]=0,t[8]=c,t[9]=h,t[10]=f,t[11]=0,t[12]=o,t[13]=a,t[14]=s,t[15]=1,t},str:function(t){return"mat4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+", "+t[9]+", "+t[10]+", "+t[11]+", "+t[12]+", "+t[13]+", "+t[14]+", "+t[15]+")"},frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+t[6]**2+t[7]**2+t[8]**2+t[9]**2+t[10]**2+t[11]**2+t[12]**2+t[13]**2+t[14]**2+t[15]**2)},add:function(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t[3]=e[3]+r[3],t[4]=e[4]+r[4],t[5]=e[5]+r[5],t[6]=e[6]+r[6],t[7]=e[7]+r[7],t[8]=e[8]+r[8],t[9]=e[9]+r[9],t[10]=e[10]+r[10],t[11]=e[11]+r[11],t[12]=e[12]+r[12],t[13]=e[13]+r[13],t[14]=e[14]+r[14],t[15]=e[15]+r[15],t},subtract:b,multiplyScalar:function(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t[4]=e[4]*r,t[5]=e[5]*r,t[6]=e[6]*r,t[7]=e[7]*r,t[8]=e[8]*r,t[9]=e[9]*r,t[10]=e[10]*r,t[11]=e[11]*r,t[12]=e[12]*r,t[13]=e[13]*r,t[14]=e[14]*r,t[15]=e[15]*r,t},multiplyScalarAndAdd:function(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t[2]=e[2]+r[2]*n,t[3]=e[3]+r[3]*n,t[4]=e[4]+r[4]*n,t[5]=e[5]+r[5]*n,t[6]=e[6]+r[6]*n,t[7]=e[7]+r[7]*n,t[8]=e[8]+r[8]*n,t[9]=e[9]+r[9]*n,t[10]=e[10]+r[10]*n,t[11]=e[11]+r[11]*n,t[12]=e[12]+r[12]*n,t[13]=e[13]+r[13]*n,t[14]=e[14]+r[14]*n,t[15]=e[15]+r[15]*n,t},exactEquals:w,equals:D,isOrthoNormal:C,mul:S,sub:v})},25929:(t,e,r)=>{r.d(e,{M:()=>m,f:()=>a,i:()=>h,p:()=>d,r:()=>i,t:()=>s,w:()=>l});var n=r(70586),o=r(17452);function a(t,e){const r=e&&e.url&&e.url.path;if(t&&r&&(t=(0,o.hF)(t,r,{preserveProtocolRelative:!0}),e.portalItem&&e.readResourcePaths)){const r=(0,o.PF)(t,e.portalItem.itemUrl);c.test(r)&&e.readResourcePaths.push(e.portalItem.resourceFromPath(r).path)}return f(t,e&&e.portal)}function s(t,e,r=m.YES){if(!t)return t;!(0,o.YP)(t)&&e&&e.blockedRelativeUrls&&e.blockedRelativeUrls.push(t);let n=(0,o.hF)(t);if(e){const r=e.verifyItemRelativeUrls&&e.verifyItemRelativeUrls.rootPath||e.url&&e.url.path;if(r){const a=f(r,e.portal);n=(0,o.PF)(f(n,e.portal),a,a),n!==t&&e.verifyItemRelativeUrls&&e.verifyItemRelativeUrls.writtenUrls.push(n)}}return n=function(t,e){return e&&!e.isPortal&&e.urlKey&&e.customBaseUrl?(0,o.Ie)(t,`${e.urlKey}.${e.customBaseUrl}`,e.portalHostname):t}(n,e&&e.portal),(0,o.YP)(n)&&(n=(0,o.Fv)(n)),null!=e&&e.resources&&null!=e&&e.portalItem&&!(0,o.YP)(n)&&!(0,o.HK)(n)&&r===m.YES&&e.resources.toKeep.push({resource:e.portalItem.resourceFromPath(n)}),n}function i(t,e,r){return a(t,r)}function l(t,e,r,n){const o=s(t,n);void 0!==o&&(e[r]=o)}const u=/\/items\/([^\/]+)\/resources\//,c=/^\.\/resources\//;function h(t){const e=(0,n.pC)(t)?t.match(u):null;return(0,n.pC)(e)?e[1]:null}function f(t,e){if(!e||e.isPortal||!e.urlKey||!e.customBaseUrl)return t;const r=`${e.urlKey}.${e.customBaseUrl}`,n=(0,o.TI)();return(0,o.D6)(n,`${n.scheme}://${r}`)?(0,o.Ie)(t,e.portalHostname,r):(0,o.Ie)(t,r,e.portalHostname)}var m,p;(p=m||(m={}))[p.YES=0]="YES",p[p.NO=1]="NO";const d=Object.freeze({__proto__:null,fromJSON:a,toJSON:s,read:i,write:l,itemIdFromResourceUrl:h,get MarkKeep(){return m}})},22862:(t,e,r)=>{r.d(e,{Hg:()=>d,uD:()=>m,V7:()=>p});var n=r(15923),o=r(80539),a=r(70586),s=r(1153);const i=["esri.Color","esri.portal.Portal","esri.symbols.support.Symbol3DAnchorPosition2D","esri.symbols.support.Symbol3DAnchorPosition3D"];function l(t){return t instanceof n.Z}function u(t){return t instanceof o.Z?Object.keys(t.items):l(t)?(0,s.vw)(t).keys():t?Object.keys(t):[]}function c(t,e){return t instanceof o.Z?t.items[e]:t[e]}function h(t){return t?t.declaredClass:null}function f(t,e){const r=t.diff;if(r&&"function"==typeof r)return r(t,e);const n=u(t),o=u(e);if(0===n.length&&0===o.length)return;if(!n.length||!o.length||function(t,e){return!(!Array.isArray(t)||!Array.isArray(e))&&t.length!==e.length}(t,e))return{type:"complete",oldValue:t,newValue:e};const s=o.filter((t=>-1===n.indexOf(t))),m=n.filter((t=>-1===o.indexOf(t))),p=n.filter((r=>o.indexOf(r)>-1&&c(t,r)!==c(e,r))).concat(s,m).sort(),d=h(t);if(d&&i.indexOf(d)>-1&&p.length)return{type:"complete",oldValue:t,newValue:e};let M;const y=l(t)&&l(e);for(const n of p){const o=c(t,n),s=c(e,n);let i;(y||"function"!=typeof o&&"function"!=typeof s)&&o!==s&&(null==o&&null==s||(i=r&&r[n]&&"function"==typeof r[n]?r[n](o,s):"object"==typeof o&&"object"==typeof s&&h(o)===h(s)?f(o,s):{type:"complete",oldValue:o,newValue:s},(0,a.pC)(i)&&((0,a.pC)(M)?M.diff[n]=i:M={type:"partial",diff:{[n]:i}})))}return M}function m(t,e){if((0,a.Wi)(t))return!1;const r=e.split(".");let n=t;for(const t of r){if("complete"===n.type)return!0;if("partial"!==n.type)return!1;{const e=n.diff[t];if(!e)return!1;n=e}}return!0}function p(t,e){for(const r of e)if(m(t,r))return!0;return!1}function d(t,e){if(!("function"==typeof t||"function"==typeof e||(0,a.Wi)(t)&&(0,a.Wi)(e)))return(0,a.Wi)(t)||(0,a.Wi)(e)||"object"==typeof t&&"object"==typeof e&&h(t)!==h(e)?{type:"complete",oldValue:t,newValue:e}:f(t,e)}},35463:(t,e,r)=>{r.d(e,{rJ:()=>i,Nm:()=>a,JE:()=>s}),r(80442);const n={milliseconds:1,seconds:1e3,minutes:6e4,hours:36e5,days:864e5,weeks:6048e5,months:26784e5,years:31536e6,decades:31536e7,centuries:31536e8},o={milliseconds:{getter:"getMilliseconds",setter:"setMilliseconds",multiplier:1},seconds:{getter:"getSeconds",setter:"setSeconds",multiplier:1},minutes:{getter:"getMinutes",setter:"setMinutes",multiplier:1},hours:{getter:"getHours",setter:"setHours",multiplier:1},days:{getter:"getDate",setter:"setDate",multiplier:1},weeks:{getter:"getDate",setter:"setDate",multiplier:7},months:{getter:"getMonth",setter:"setMonth",multiplier:1},years:{getter:"getFullYear",setter:"setFullYear",multiplier:1},decades:{getter:"getFullYear",setter:"setFullYear",multiplier:10},centuries:{getter:"getFullYear",setter:"setFullYear",multiplier:100}};function a(t,e,r){const n=new Date(t.getTime());if(e&&r){const t=o[r],{getter:a,setter:s,multiplier:i}=t;if("months"===r){const t=function(t,e){const r=new Date(t,e+1,1);return r.setDate(0),r.getDate()}(n.getFullYear(),n.getMonth()+e);n.getDate()>t&&n.setDate(t)}n[s](n[a]()+e*i)}return n}function s(t,e){switch(e){case"milliseconds":return new Date(t.getTime());case"seconds":return new Date(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds());case"minutes":return new Date(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes());case"hours":return new Date(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours());case"days":return new Date(t.getFullYear(),t.getMonth(),t.getDate());case"weeks":return new Date(t.getFullYear(),t.getMonth(),t.getDate()-t.getDay());case"months":return new Date(t.getFullYear(),t.getMonth(),1);case"years":return new Date(t.getFullYear(),0,1);case"decades":return new Date(t.getFullYear()-t.getFullYear()%10,0,1);case"centuries":return new Date(t.getFullYear()-t.getFullYear()%100,0,1);default:return new Date}}function i(t,e,r){return 0===t?0:t*n[e]/n[r]}},60437:(t,e,r)=>{r.d(e,{Gv:()=>M,Ue:()=>o,cS:()=>f,fS:()=>d,TC:()=>s,pp:()=>i,JR:()=>m,al:()=>a,t8:()=>h,Tn:()=>c,op:()=>u,dp:()=>l});var n=r(70586);function o(t=y){return[t[0],t[1],t[2],t[3],t[4],t[5]]}function a(t,e,r,n,a,s,i=o()){return i[0]=t,i[1]=e,i[2]=r,i[3]=n,i[4]=a,i[5]=s,i}function s(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.min(t[2],e[2]),t[3]=Math.max(t[3],e[3]),t[4]=Math.max(t[4],e[4]),t[5]=Math.max(t[5],e[5])}function i(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.min(t[2],e[2]),t[3]=Math.max(t[3],e[0]),t[4]=Math.max(t[4],e[1]),t[5]=Math.max(t[5],e[2])}function l(t,e=[0,0,0]){return e[0]=function(t){return t[0]>=t[3]?0:t[3]-t[0]}(t),e[1]=function(t){return t[1]>=t[4]?0:t[4]-t[1]}(t),e[2]=function(t){return t[2]>=t[5]?0:t[5]-t[2]}(t),e}function u(t,e,r=t){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r!==t&&(r[3]=t[3],r[4]=t[4],r[5]=t[5]),r}function c(t,e,r=t){return r[3]=e[0],r[4]=e[1],r[5]=e[2],r!==t&&(r[0]=t[0],r[1]=t[1],r[2]=t[2]),t}function h(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function f(t){return t?h(t,M):o(M)}function m(t,e){return t[0]=e[0],t[1]=e[1],t[2]=Number.NEGATIVE_INFINITY,t[3]=e[2],t[4]=e[3],t[5]=Number.POSITIVE_INFINITY,t}function p(t){return 6===t.length}function d(t,e,r){if((0,n.Wi)(t)||(0,n.Wi)(e))return t===e;if(!p(t)||!p(e))return!1;if(r){for(let n=0;n<t.length;n++)if(!r(t[n],e[n]))return!1}else for(let r=0;r<t.length;r++)if(t[r]!==e[r])return!1;return!0}r(6570),r(24470);const M=[1/0,1/0,1/0,-1/0,-1/0,-1/0],y=[0,0,0,0,0,0];o()},24470:(t,e,r)=>{r.d(e,{Gv:()=>f,SO:()=>u,r3:()=>h,Ue:()=>a,oJ:()=>i,al:()=>s,kK:()=>c,HH:()=>l}),r(80442),r(22021);var n=r(70586),o=r(6570);function a(t=m){return[t[0],t[1],t[2],t[3]]}function s(t,e,r,n,o=a()){return o[0]=t,o[1]=e,o[2]=r,o[3]=n,o}function i(t,e=a()){return e[0]=t.xmin,e[1]=t.ymin,e[2]=t.xmax,e[3]=t.ymax,e}function l(t,e){return new o.Z({xmin:t[0],ymin:t[1],xmax:t[2],ymax:t[3],spatialReference:e})}function u(t){return function(t){return(0,n.Wi)(t)||t[0]>=t[2]?0:t[2]-t[0]}(t)*function(t){return t[1]>=t[3]?0:t[3]-t[1]}(t)}function c(t,e){return Math.max(e[0],t[0])<=Math.min(e[2],t[2])&&Math.max(e[1],t[1])<=Math.min(e[3],t[3])}function h(t,e){return e[0]>=t[0]&&e[2]<=t[2]&&e[1]>=t[1]&&e[3]<=t[3]}const f=[1/0,1/0,-1/0,-1/0],m=[0,0,0,0]},98046:(t,e,r)=>{r.d(e,{Z:()=>m});var n,o=r(43697),a=r(22303),s=r(22974),i=r(5600),l=r(75215),u=r(36030),c=r(52011),h=r(899);let f=n=class extends h.Z{constructor(t){super(t),this.algorithm=null,this.fromColor=null,this.toColor=null,this.type="algorithmic"}clone(){return new n({fromColor:(0,s.d9)(this.fromColor),toColor:(0,s.d9)(this.toColor),algorithm:this.algorithm})}};(0,o._)([(0,u.J)({esriCIELabAlgorithm:"cie-lab",esriHSVAlgorithm:"hsv",esriLabLChAlgorithm:"lab-lch"})],f.prototype,"algorithm",void 0),(0,o._)([(0,i.Cb)({type:a.Z,json:{type:[l.z8],write:!0}})],f.prototype,"fromColor",void 0),(0,o._)([(0,i.Cb)({type:a.Z,json:{type:[l.z8],write:!0}})],f.prototype,"toColor",void 0),(0,o._)([(0,i.Cb)({type:["algorithmic"]})],f.prototype,"type",void 0),f=n=(0,o._)([(0,c.j)("esri.rest.support.AlgorithmicColorRamp")],f);const m=f},899:(t,e,r)=>{r.d(e,{Z:()=>l});var n=r(43697),o=r(96674),a=r(5600),s=(r(67676),r(80442),r(75215),r(52011));let i=class extends o.wq{constructor(t){super(t),this.type=null}};(0,n._)([(0,a.Cb)({readOnly:!0,json:{read:!1,write:!0}})],i.prototype,"type",void 0),i=(0,n._)([(0,s.j)("esri.rest.support.ColorRamp")],i);const l=i},1515:(t,e,r)=>{r.d(e,{Z:()=>h});var n,o=r(43697),a=r(22974),s=r(5600),i=(r(75215),r(52011)),l=r(98046),u=r(899);let c=n=class extends u.Z{constructor(t){super(t),this.colorRamps=null,this.type="multipart"}clone(){return new n({colorRamps:(0,a.d9)(this.colorRamps)})}};(0,o._)([(0,s.Cb)({type:[l.Z],json:{write:!0}})],c.prototype,"colorRamps",void 0),(0,o._)([(0,s.Cb)({type:["multipart"]})],c.prototype,"type",void 0),c=n=(0,o._)([(0,i.j)("esri.rest.support.MultipartColorRamp")],c);const h=c},94593:(t,e,r)=>{r.d(e,{i:()=>i,V:()=>s});var n=r(98046),o=r(899),a=r(1515);const s={key:"type",base:o.Z,typeMap:{algorithmic:n.Z,multipart:a.Z}};function i(t){return t&&t.type?"algorithmic"===t.type?n.Z.fromJSON(t):"multipart"===t.type?a.Z.fromJSON(t):null:null}},89164:(t,e,r)=>{r.d(e,{Z:()=>m});var n=r(43697),o=r(22303),a=r(35454),s=r(96674),i=r(5600),l=(r(67676),r(80442),r(75215),r(71715)),u=r(52011);const c=new a.Xn({esriSMS:"simple-marker",esriPMS:"picture-marker",esriSLS:"simple-line",esriSFS:"simple-fill",esriPFS:"picture-fill",esriTS:"text",esriSHD:"shield-label-symbol",PointSymbol3D:"point-3d",LineSymbol3D:"line-3d",PolygonSymbol3D:"polygon-3d",WebStyleSymbol:"web-style",MeshSymbol3D:"mesh-3d",LabelSymbol3D:"label-3d",CIMSymbolReference:"cim"});let h=0,f=class extends s.wq{constructor(t){super(t),this.id="sym"+h++,this.type=null,this.color=new o.Z([0,0,0,1])}readColor(t){return t&&null!=t[0]?[t[0],t[1],t[2],t[3]/255]:t}async collectRequiredFields(t,e){}hash(){return JSON.stringify(this.toJSON())}clone(){}};(0,n._)([(0,i.Cb)({type:c.apiValues,readOnly:!0,json:{read:!1,write:{ignoreOrigin:!0,writer:c.write}}})],f.prototype,"type",void 0),(0,n._)([(0,i.Cb)({type:o.Z,json:{write:{allowNull:!0}}})],f.prototype,"color",void 0),(0,n._)([(0,l.r)("color")],f.prototype,"readColor",null),f=(0,n._)([(0,u.j)("esri.symbols.Symbol")],f);const m=f}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5638,5732],{92835:(t,e,r)=>{r.d(e,{Z:()=>d});var n,o=r(43697),a=r(96674),s=r(70586),i=r(35463),l=r(5600),u=(r(67676),r(80442),r(75215),r(71715)),c=r(52011),h=r(30556);let f=n=class extends a.wq{constructor(t){super(t),this.end=null,this.start=null}static get allTime(){return m}static get empty(){return p}readEnd(t,e){return null!=e.end?new Date(e.end):null}writeEnd(t,e){e.end=t?t.getTime():null}get isAllTime(){return this.equals(n.allTime)}get isEmpty(){return this.equals(n.empty)}readStart(t,e){return null!=e.start?new Date(e.start):null}writeStart(t,e){e.start=t?t.getTime():null}clone(){return new n({end:this.end,start:this.start})}equals(t){if(!t)return!1;const e=(0,s.pC)(this.start)?this.start.getTime():this.start,r=(0,s.pC)(this.end)?this.end.getTime():this.end,n=(0,s.pC)(t.start)?t.start.getTime():t.start,o=(0,s.pC)(t.end)?t.end.getTime():t.end;return e===n&&r===o}expandTo(t){if(this.isEmpty||this.isAllTime)return this.clone();const e=(0,s.Po)(this.start,(e=>(0,i.JE)(e,t))),r=(0,s.Po)(this.end,(e=>(0,i.Nm)((0,i.JE)(e,t),1,t)));return new n({start:e,end:r})}intersection(t){if(!t)return this.clone();if(this.isEmpty||t.isEmpty)return n.empty;if(this.isAllTime)return t.clone();if(t.isAllTime)return this.clone();const e=(0,s.R2)(this.start,-1/0,(t=>t.getTime())),r=(0,s.R2)(this.end,1/0,(t=>t.getTime())),o=(0,s.R2)(t.start,-1/0,(t=>t.getTime())),a=(0,s.R2)(t.end,1/0,(t=>t.getTime()));let i,l;if(o>=e&&o<=r?i=o:e>=o&&e<=a&&(i=e),r>=o&&r<=a?l=r:a>=e&&a<=r&&(l=a),!isNaN(i)&&!isNaN(l)){const t=new n;return t.start=i===-1/0?null:new Date(i),t.end=l===1/0?null:new Date(l),t}return n.empty}offset(t,e){if(this.isEmpty||this.isAllTime)return this.clone();const r=new n,{start:o,end:a}=this;return(0,s.pC)(o)&&(r.start=(0,i.Nm)(o,t,e)),(0,s.pC)(a)&&(r.end=(0,i.Nm)(a,t,e)),r}union(t){if(!t||t.isEmpty)return this.clone();if(this.isEmpty)return t.clone();if(this.isAllTime||t.isAllTime)return m.clone();const e=(0,s.pC)(this.start)&&(0,s.pC)(t.start)?new Date(Math.min(this.start.getTime(),t.start.getTime())):null,r=(0,s.pC)(this.end)&&(0,s.pC)(t.end)?new Date(Math.max(this.end.getTime(),t.end.getTime())):null;return new n({start:e,end:r})}};(0,o._)([(0,l.Cb)({type:Date,json:{write:{allowNull:!0}}})],f.prototype,"end",void 0),(0,o._)([(0,u.r)("end")],f.prototype,"readEnd",null),(0,o._)([(0,h.c)("end")],f.prototype,"writeEnd",null),(0,o._)([(0,l.Cb)({readOnly:!0,json:{read:!1}})],f.prototype,"isAllTime",null),(0,o._)([(0,l.Cb)({readOnly:!0,json:{read:!1}})],f.prototype,"isEmpty",null),(0,o._)([(0,l.Cb)({type:Date,json:{write:{allowNull:!0}}})],f.prototype,"start",void 0),(0,o._)([(0,u.r)("start")],f.prototype,"readStart",null),(0,o._)([(0,h.c)("start")],f.prototype,"writeStart",null),f=n=(0,o._)([(0,c.j)("esri.TimeExtent")],f);const m=new f,p=new f({start:void 0,end:void 0}),d=f},5732:(t,e,r)=>{r.d(e,{a:()=>a,c:()=>n,g:()=>o});var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function o(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function a(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}},52138:(t,e,r)=>{r.d(e,{a:()=>l,d:()=>d,e:()=>f,f:()=>m,h:()=>h,i:()=>s,j:()=>c,m:()=>u,p:()=>C,s:()=>a,t:()=>i,u:()=>p,v:()=>D,w:()=>w,y:()=>M});var n=r(65617),o=r(46851);function a(t,e,r,n,o,a,s,i,l,u,c,h,f,m,p,d,M){return t[0]=e,t[1]=r,t[2]=n,t[3]=o,t[4]=a,t[5]=s,t[6]=i,t[7]=l,t[8]=u,t[9]=c,t[10]=h,t[11]=f,t[12]=m,t[13]=p,t[14]=d,t[15]=M,t}function s(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function i(t,e){if(t===e){const r=e[1],n=e[2],o=e[3],a=e[6],s=e[7],i=e[11];t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=r,t[6]=e[9],t[7]=e[13],t[8]=n,t[9]=a,t[11]=e[14],t[12]=o,t[13]=s,t[14]=i}else t[0]=e[0],t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=e[1],t[5]=e[5],t[6]=e[9],t[7]=e[13],t[8]=e[2],t[9]=e[6],t[10]=e[10],t[11]=e[14],t[12]=e[3],t[13]=e[7],t[14]=e[11],t[15]=e[15];return t}function l(t,e){const r=e[0],n=e[1],o=e[2],a=e[3],s=e[4],i=e[5],l=e[6],u=e[7],c=e[8],h=e[9],f=e[10],m=e[11],p=e[12],d=e[13],M=e[14],y=e[15],g=r*i-n*s,b=r*l-o*s,w=r*u-a*s,D=n*l-o*i,C=n*u-a*i,S=o*u-a*l,v=c*d-h*p,E=c*M-f*p,x=c*y-m*p,T=h*M-f*d,R=h*y-m*d,_=f*y-m*M;let F=g*_-b*R+w*T+D*x-C*E+S*v;return F?(F=1/F,t[0]=(i*_-l*R+u*T)*F,t[1]=(o*R-n*_-a*T)*F,t[2]=(d*S-M*C+y*D)*F,t[3]=(f*C-h*S-m*D)*F,t[4]=(l*x-s*_-u*E)*F,t[5]=(r*_-o*x+a*E)*F,t[6]=(M*w-p*S-y*b)*F,t[7]=(c*S-f*w+m*b)*F,t[8]=(s*R-i*x+u*v)*F,t[9]=(n*x-r*R-a*v)*F,t[10]=(p*C-d*w+y*g)*F,t[11]=(h*w-c*C-m*g)*F,t[12]=(i*E-s*T-l*v)*F,t[13]=(r*T-n*E+o*v)*F,t[14]=(d*b-p*D-M*g)*F,t[15]=(c*D-h*b+f*g)*F,t):null}function u(t,e,r){const n=e[0],o=e[1],a=e[2],s=e[3],i=e[4],l=e[5],u=e[6],c=e[7],h=e[8],f=e[9],m=e[10],p=e[11],d=e[12],M=e[13],y=e[14],g=e[15];let b=r[0],w=r[1],D=r[2],C=r[3];return t[0]=b*n+w*i+D*h+C*d,t[1]=b*o+w*l+D*f+C*M,t[2]=b*a+w*u+D*m+C*y,t[3]=b*s+w*c+D*p+C*g,b=r[4],w=r[5],D=r[6],C=r[7],t[4]=b*n+w*i+D*h+C*d,t[5]=b*o+w*l+D*f+C*M,t[6]=b*a+w*u+D*m+C*y,t[7]=b*s+w*c+D*p+C*g,b=r[8],w=r[9],D=r[10],C=r[11],t[8]=b*n+w*i+D*h+C*d,t[9]=b*o+w*l+D*f+C*M,t[10]=b*a+w*u+D*m+C*y,t[11]=b*s+w*c+D*p+C*g,b=r[12],w=r[13],D=r[14],C=r[15],t[12]=b*n+w*i+D*h+C*d,t[13]=b*o+w*l+D*f+C*M,t[14]=b*a+w*u+D*m+C*y,t[15]=b*s+w*c+D*p+C*g,t}function c(t,e,r){const n=r[0],o=r[1],a=r[2];let s,i,l,u,c,h,f,m,p,d,M,y;return e===t?(t[12]=e[0]*n+e[4]*o+e[8]*a+e[12],t[13]=e[1]*n+e[5]*o+e[9]*a+e[13],t[14]=e[2]*n+e[6]*o+e[10]*a+e[14],t[15]=e[3]*n+e[7]*o+e[11]*a+e[15]):(s=e[0],i=e[1],l=e[2],u=e[3],c=e[4],h=e[5],f=e[6],m=e[7],p=e[8],d=e[9],M=e[10],y=e[11],t[0]=s,t[1]=i,t[2]=l,t[3]=u,t[4]=c,t[5]=h,t[6]=f,t[7]=m,t[8]=p,t[9]=d,t[10]=M,t[11]=y,t[12]=s*n+c*o+p*a+e[12],t[13]=i*n+h*o+d*a+e[13],t[14]=l*n+f*o+M*a+e[14],t[15]=u*n+m*o+y*a+e[15]),t}function h(t,e,r){const n=r[0],o=r[1],a=r[2];return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*o,t[5]=e[5]*o,t[6]=e[6]*o,t[7]=e[7]*o,t[8]=e[8]*a,t[9]=e[9]*a,t[10]=e[10]*a,t[11]=e[11]*a,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function f(t,e,r,n){let a,s,i,l,u,c,h,f,m,p,d,M,y,g,b,w,D,C,S,v,E,x,T,R,_=n[0],F=n[1],I=n[2],P=Math.sqrt(_*_+F*F+I*I);return P<o.E?null:(P=1/P,_*=P,F*=P,I*=P,a=Math.sin(r),s=Math.cos(r),i=1-s,l=e[0],u=e[1],c=e[2],h=e[3],f=e[4],m=e[5],p=e[6],d=e[7],M=e[8],y=e[9],g=e[10],b=e[11],w=_*_*i+s,D=F*_*i+I*a,C=I*_*i-F*a,S=_*F*i-I*a,v=F*F*i+s,E=I*F*i+_*a,x=_*I*i+F*a,T=F*I*i-_*a,R=I*I*i+s,t[0]=l*w+f*D+M*C,t[1]=u*w+m*D+y*C,t[2]=c*w+p*D+g*C,t[3]=h*w+d*D+b*C,t[4]=l*S+f*v+M*E,t[5]=u*S+m*v+y*E,t[6]=c*S+p*v+g*E,t[7]=h*S+d*v+b*E,t[8]=l*x+f*T+M*R,t[9]=u*x+m*T+y*R,t[10]=c*x+p*T+g*R,t[11]=h*x+d*T+b*R,e!==t&&(t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t)}function m(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=e[0],t[13]=e[1],t[14]=e[2],t[15]=1,t}function p(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=e[1],t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=e[2],t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function d(t,e,r){let n,a,s,i=r[0],l=r[1],u=r[2],c=Math.sqrt(i*i+l*l+u*u);return c<o.E?null:(c=1/c,i*=c,l*=c,u*=c,n=Math.sin(e),a=Math.cos(e),s=1-a,t[0]=i*i*s+a,t[1]=l*i*s+u*n,t[2]=u*i*s-l*n,t[3]=0,t[4]=i*l*s-u*n,t[5]=l*l*s+a,t[6]=u*l*s+i*n,t[7]=0,t[8]=i*u*s+l*n,t[9]=l*u*s-i*n,t[10]=u*u*s+a,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t)}function M(t,e){const r=Math.sin(e),n=Math.cos(e);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=n,t[6]=r,t[7]=0,t[8]=0,t[9]=-r,t[10]=n,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function y(t,e,r){const n=e[0],o=e[1],a=e[2],s=e[3],i=n+n,l=o+o,u=a+a,c=n*i,h=n*l,f=n*u,m=o*l,p=o*u,d=a*u,M=s*i,y=s*l,g=s*u;return t[0]=1-(m+d),t[1]=h+g,t[2]=f-y,t[3]=0,t[4]=h-g,t[5]=1-(c+d),t[6]=p+M,t[7]=0,t[8]=f+y,t[9]=p-M,t[10]=1-(c+m),t[11]=0,t[12]=r[0],t[13]=r[1],t[14]=r[2],t[15]=1,t}const g=(0,n.c)();function b(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2],t[3]=e[3]-r[3],t[4]=e[4]-r[4],t[5]=e[5]-r[5],t[6]=e[6]-r[6],t[7]=e[7]-r[7],t[8]=e[8]-r[8],t[9]=e[9]-r[9],t[10]=e[10]-r[10],t[11]=e[11]-r[11],t[12]=e[12]-r[12],t[13]=e[13]-r[13],t[14]=e[14]-r[14],t[15]=e[15]-r[15],t}function w(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]&&t[9]===e[9]&&t[10]===e[10]&&t[11]===e[11]&&t[12]===e[12]&&t[13]===e[13]&&t[14]===e[14]&&t[15]===e[15]}function D(t,e){if(t===e)return!0;const r=t[0],n=t[1],a=t[2],s=t[3],i=t[4],l=t[5],u=t[6],c=t[7],h=t[8],f=t[9],m=t[10],p=t[11],d=t[12],M=t[13],y=t[14],g=t[15],b=e[0],w=e[1],D=e[2],C=e[3],S=e[4],v=e[5],E=e[6],x=e[7],T=e[8],R=e[9],_=e[10],F=e[11],I=e[12],P=e[13],Y=e[14],q=e[15];return Math.abs(r-b)<=o.E*Math.max(1,Math.abs(r),Math.abs(b))&&Math.abs(n-w)<=o.E*Math.max(1,Math.abs(n),Math.abs(w))&&Math.abs(a-D)<=o.E*Math.max(1,Math.abs(a),Math.abs(D))&&Math.abs(s-C)<=o.E*Math.max(1,Math.abs(s),Math.abs(C))&&Math.abs(i-S)<=o.E*Math.max(1,Math.abs(i),Math.abs(S))&&Math.abs(l-v)<=o.E*Math.max(1,Math.abs(l),Math.abs(v))&&Math.abs(u-E)<=o.E*Math.max(1,Math.abs(u),Math.abs(E))&&Math.abs(c-x)<=o.E*Math.max(1,Math.abs(c),Math.abs(x))&&Math.abs(h-T)<=o.E*Math.max(1,Math.abs(h),Math.abs(T))&&Math.abs(f-R)<=o.E*Math.max(1,Math.abs(f),Math.abs(R))&&Math.abs(m-_)<=o.E*Math.max(1,Math.abs(m),Math.abs(_))&&Math.abs(p-F)<=o.E*Math.max(1,Math.abs(p),Math.abs(F))&&Math.abs(d-I)<=o.E*Math.max(1,Math.abs(d),Math.abs(I))&&Math.abs(M-P)<=o.E*Math.max(1,Math.abs(M),Math.abs(P))&&Math.abs(y-Y)<=o.E*Math.max(1,Math.abs(y),Math.abs(Y))&&Math.abs(g-q)<=o.E*Math.max(1,Math.abs(g),Math.abs(q))}function C(t){const e=o.E,r=t[0],n=t[1],a=t[2],s=t[4],i=t[5],l=t[6],u=t[8],c=t[9],h=t[10];return Math.abs(1-(r*r+s*s+u*u))<=e&&Math.abs(1-(n*n+i*i+c*c))<=e&&Math.abs(1-(a*a+l*l+h*h))<=e}const S=u,v=b;Object.freeze({__proto__:null,copy:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t},set:a,identity:s,transpose:i,invert:l,adjoint:function(t,e){const r=e[0],n=e[1],o=e[2],a=e[3],s=e[4],i=e[5],l=e[6],u=e[7],c=e[8],h=e[9],f=e[10],m=e[11],p=e[12],d=e[13],M=e[14],y=e[15];return t[0]=i*(f*y-m*M)-h*(l*y-u*M)+d*(l*m-u*f),t[1]=-(n*(f*y-m*M)-h*(o*y-a*M)+d*(o*m-a*f)),t[2]=n*(l*y-u*M)-i*(o*y-a*M)+d*(o*u-a*l),t[3]=-(n*(l*m-u*f)-i*(o*m-a*f)+h*(o*u-a*l)),t[4]=-(s*(f*y-m*M)-c*(l*y-u*M)+p*(l*m-u*f)),t[5]=r*(f*y-m*M)-c*(o*y-a*M)+p*(o*m-a*f),t[6]=-(r*(l*y-u*M)-s*(o*y-a*M)+p*(o*u-a*l)),t[7]=r*(l*m-u*f)-s*(o*m-a*f)+c*(o*u-a*l),t[8]=s*(h*y-m*d)-c*(i*y-u*d)+p*(i*m-u*h),t[9]=-(r*(h*y-m*d)-c*(n*y-a*d)+p*(n*m-a*h)),t[10]=r*(i*y-u*d)-s*(n*y-a*d)+p*(n*u-a*i),t[11]=-(r*(i*m-u*h)-s*(n*m-a*h)+c*(n*u-a*i)),t[12]=-(s*(h*M-f*d)-c*(i*M-l*d)+p*(i*f-l*h)),t[13]=r*(h*M-f*d)-c*(n*M-o*d)+p*(n*f-o*h),t[14]=-(r*(i*M-l*d)-s*(n*M-o*d)+p*(n*l-o*i)),t[15]=r*(i*f-l*h)-s*(n*f-o*h)+c*(n*l-o*i),t},determinant:function(t){const e=t[0],r=t[1],n=t[2],o=t[3],a=t[4],s=t[5],i=t[6],l=t[7],u=t[8],c=t[9],h=t[10],f=t[11],m=t[12],p=t[13],d=t[14],M=t[15];return(e*s-r*a)*(h*M-f*d)-(e*i-n*a)*(c*M-f*p)+(e*l-o*a)*(c*d-h*p)+(r*i-n*s)*(u*M-f*m)-(r*l-o*s)*(u*d-h*m)+(n*l-o*i)*(u*p-c*m)},multiply:u,translate:c,scale:h,rotate:f,rotateX:function(t,e,r){const n=Math.sin(r),o=Math.cos(r),a=e[4],s=e[5],i=e[6],l=e[7],u=e[8],c=e[9],h=e[10],f=e[11];return e!==t&&(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[4]=a*o+u*n,t[5]=s*o+c*n,t[6]=i*o+h*n,t[7]=l*o+f*n,t[8]=u*o-a*n,t[9]=c*o-s*n,t[10]=h*o-i*n,t[11]=f*o-l*n,t},rotateY:function(t,e,r){const n=Math.sin(r),o=Math.cos(r),a=e[0],s=e[1],i=e[2],l=e[3],u=e[8],c=e[9],h=e[10],f=e[11];return e!==t&&(t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=a*o-u*n,t[1]=s*o-c*n,t[2]=i*o-h*n,t[3]=l*o-f*n,t[8]=a*n+u*o,t[9]=s*n+c*o,t[10]=i*n+h*o,t[11]=l*n+f*o,t},rotateZ:function(t,e,r){const n=Math.sin(r),o=Math.cos(r),a=e[0],s=e[1],i=e[2],l=e[3],u=e[4],c=e[5],h=e[6],f=e[7];return e!==t&&(t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=a*o+u*n,t[1]=s*o+c*n,t[2]=i*o+h*n,t[3]=l*o+f*n,t[4]=u*o-a*n,t[5]=c*o-s*n,t[6]=h*o-i*n,t[7]=f*o-l*n,t},fromTranslation:m,fromScaling:p,fromRotation:d,fromXRotation:M,fromYRotation:function(t,e){const r=Math.sin(e),n=Math.cos(e);return t[0]=n,t[1]=0,t[2]=-r,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=r,t[9]=0,t[10]=n,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromZRotation:function(t,e){const r=Math.sin(e),n=Math.cos(e);return t[0]=n,t[1]=r,t[2]=0,t[3]=0,t[4]=-r,t[5]=n,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromRotationTranslation:y,fromQuat2:function(t,e){const r=g,n=-e[0],o=-e[1],a=-e[2],s=e[3],i=e[4],l=e[5],u=e[6],c=e[7],h=n*n+o*o+a*a+s*s;return h>0?(r[0]=2*(i*s+c*n+l*a-u*o)/h,r[1]=2*(l*s+c*o+u*n-i*a)/h,r[2]=2*(u*s+c*a+i*o-l*n)/h):(r[0]=2*(i*s+c*n+l*a-u*o),r[1]=2*(l*s+c*o+u*n-i*a),r[2]=2*(u*s+c*a+i*o-l*n)),y(t,e,r),t},getTranslation:function(t,e){return t[0]=e[12],t[1]=e[13],t[2]=e[14],t},getScaling:function(t,e){const r=e[0],n=e[1],o=e[2],a=e[4],s=e[5],i=e[6],l=e[8],u=e[9],c=e[10];return t[0]=Math.sqrt(r*r+n*n+o*o),t[1]=Math.sqrt(a*a+s*s+i*i),t[2]=Math.sqrt(l*l+u*u+c*c),t},getRotation:function(t,e){const r=e[0]+e[5]+e[10];let n=0;return r>0?(n=2*Math.sqrt(r+1),t[3]=.25*n,t[0]=(e[6]-e[9])/n,t[1]=(e[8]-e[2])/n,t[2]=(e[1]-e[4])/n):e[0]>e[5]&&e[0]>e[10]?(n=2*Math.sqrt(1+e[0]-e[5]-e[10]),t[3]=(e[6]-e[9])/n,t[0]=.25*n,t[1]=(e[1]+e[4])/n,t[2]=(e[8]+e[2])/n):e[5]>e[10]?(n=2*Math.sqrt(1+e[5]-e[0]-e[10]),t[3]=(e[8]-e[2])/n,t[0]=(e[1]+e[4])/n,t[1]=.25*n,t[2]=(e[6]+e[9])/n):(n=2*Math.sqrt(1+e[10]-e[0]-e[5]),t[3]=(e[1]-e[4])/n,t[0]=(e[8]+e[2])/n,t[1]=(e[6]+e[9])/n,t[2]=.25*n),t},fromRotationTranslationScale:function(t,e,r,n){const o=e[0],a=e[1],s=e[2],i=e[3],l=o+o,u=a+a,c=s+s,h=o*l,f=o*u,m=o*c,p=a*u,d=a*c,M=s*c,y=i*l,g=i*u,b=i*c,w=n[0],D=n[1],C=n[2];return t[0]=(1-(p+M))*w,t[1]=(f+b)*w,t[2]=(m-g)*w,t[3]=0,t[4]=(f-b)*D,t[5]=(1-(h+M))*D,t[6]=(d+y)*D,t[7]=0,t[8]=(m+g)*C,t[9]=(d-y)*C,t[10]=(1-(h+p))*C,t[11]=0,t[12]=r[0],t[13]=r[1],t[14]=r[2],t[15]=1,t},fromRotationTranslationScaleOrigin:function(t,e,r,n,o){const a=e[0],s=e[1],i=e[2],l=e[3],u=a+a,c=s+s,h=i+i,f=a*u,m=a*c,p=a*h,d=s*c,M=s*h,y=i*h,g=l*u,b=l*c,w=l*h,D=n[0],C=n[1],S=n[2],v=o[0],E=o[1],x=o[2],T=(1-(d+y))*D,R=(m+w)*D,_=(p-b)*D,F=(m-w)*C,I=(1-(f+y))*C,P=(M+g)*C,Y=(p+b)*S,q=(M-g)*S,O=(1-(f+d))*S;return t[0]=T,t[1]=R,t[2]=_,t[3]=0,t[4]=F,t[5]=I,t[6]=P,t[7]=0,t[8]=Y,t[9]=q,t[10]=O,t[11]=0,t[12]=r[0]+v-(T*v+F*E+Y*x),t[13]=r[1]+E-(R*v+I*E+q*x),t[14]=r[2]+x-(_*v+P*E+O*x),t[15]=1,t},fromQuat:function(t,e){const r=e[0],n=e[1],o=e[2],a=e[3],s=r+r,i=n+n,l=o+o,u=r*s,c=n*s,h=n*i,f=o*s,m=o*i,p=o*l,d=a*s,M=a*i,y=a*l;return t[0]=1-h-p,t[1]=c+y,t[2]=f-M,t[3]=0,t[4]=c-y,t[5]=1-u-p,t[6]=m+d,t[7]=0,t[8]=f+M,t[9]=m-d,t[10]=1-u-h,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},frustum:function(t,e,r,n,o,a,s){const i=1/(r-e),l=1/(o-n),u=1/(a-s);return t[0]=2*a*i,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*a*l,t[6]=0,t[7]=0,t[8]=(r+e)*i,t[9]=(o+n)*l,t[10]=(s+a)*u,t[11]=-1,t[12]=0,t[13]=0,t[14]=s*a*2*u,t[15]=0,t},perspective:function(t,e,r,n,o){const a=1/Math.tan(e/2);let s;return t[0]=a/r,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=a,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=o&&o!==1/0?(s=1/(n-o),t[10]=(o+n)*s,t[14]=2*o*n*s):(t[10]=-1,t[14]=-2*n),t},perspectiveFromFieldOfView:function(t,e,r,n){const o=Math.tan(e.upDegrees*Math.PI/180),a=Math.tan(e.downDegrees*Math.PI/180),s=Math.tan(e.leftDegrees*Math.PI/180),i=Math.tan(e.rightDegrees*Math.PI/180),l=2/(s+i),u=2/(o+a);return t[0]=l,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=u,t[6]=0,t[7]=0,t[8]=-(s-i)*l*.5,t[9]=(o-a)*u*.5,t[10]=n/(r-n),t[11]=-1,t[12]=0,t[13]=0,t[14]=n*r/(r-n),t[15]=0,t},ortho:function(t,e,r,n,o,a,s){const i=1/(e-r),l=1/(n-o),u=1/(a-s);return t[0]=-2*i,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*l,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*u,t[11]=0,t[12]=(e+r)*i,t[13]=(o+n)*l,t[14]=(s+a)*u,t[15]=1,t},lookAt:function(t,e,r,n){let a,i,l,u,c,h,f,m,p,d;const M=e[0],y=e[1],g=e[2],b=n[0],w=n[1],D=n[2],C=r[0],S=r[1],v=r[2];return Math.abs(M-C)<o.E&&Math.abs(y-S)<o.E&&Math.abs(g-v)<o.E?s(t):(f=M-C,m=y-S,p=g-v,d=1/Math.sqrt(f*f+m*m+p*p),f*=d,m*=d,p*=d,a=w*p-D*m,i=D*f-b*p,l=b*m-w*f,d=Math.sqrt(a*a+i*i+l*l),d?(d=1/d,a*=d,i*=d,l*=d):(a=0,i=0,l=0),u=m*l-p*i,c=p*a-f*l,h=f*i-m*a,d=Math.sqrt(u*u+c*c+h*h),d?(d=1/d,u*=d,c*=d,h*=d):(u=0,c=0,h=0),t[0]=a,t[1]=u,t[2]=f,t[3]=0,t[4]=i,t[5]=c,t[6]=m,t[7]=0,t[8]=l,t[9]=h,t[10]=p,t[11]=0,t[12]=-(a*M+i*y+l*g),t[13]=-(u*M+c*y+h*g),t[14]=-(f*M+m*y+p*g),t[15]=1,t)},targetTo:function(t,e,r,n){const o=e[0],a=e[1],s=e[2],i=n[0],l=n[1],u=n[2];let c=o-r[0],h=a-r[1],f=s-r[2],m=c*c+h*h+f*f;m>0&&(m=1/Math.sqrt(m),c*=m,h*=m,f*=m);let p=l*f-u*h,d=u*c-i*f,M=i*h-l*c;return m=p*p+d*d+M*M,m>0&&(m=1/Math.sqrt(m),p*=m,d*=m,M*=m),t[0]=p,t[1]=d,t[2]=M,t[3]=0,t[4]=h*M-f*d,t[5]=f*p-c*M,t[6]=c*d-h*p,t[7]=0,t[8]=c,t[9]=h,t[10]=f,t[11]=0,t[12]=o,t[13]=a,t[14]=s,t[15]=1,t},str:function(t){return"mat4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+", "+t[9]+", "+t[10]+", "+t[11]+", "+t[12]+", "+t[13]+", "+t[14]+", "+t[15]+")"},frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+t[6]**2+t[7]**2+t[8]**2+t[9]**2+t[10]**2+t[11]**2+t[12]**2+t[13]**2+t[14]**2+t[15]**2)},add:function(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t[3]=e[3]+r[3],t[4]=e[4]+r[4],t[5]=e[5]+r[5],t[6]=e[6]+r[6],t[7]=e[7]+r[7],t[8]=e[8]+r[8],t[9]=e[9]+r[9],t[10]=e[10]+r[10],t[11]=e[11]+r[11],t[12]=e[12]+r[12],t[13]=e[13]+r[13],t[14]=e[14]+r[14],t[15]=e[15]+r[15],t},subtract:b,multiplyScalar:function(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t[4]=e[4]*r,t[5]=e[5]*r,t[6]=e[6]*r,t[7]=e[7]*r,t[8]=e[8]*r,t[9]=e[9]*r,t[10]=e[10]*r,t[11]=e[11]*r,t[12]=e[12]*r,t[13]=e[13]*r,t[14]=e[14]*r,t[15]=e[15]*r,t},multiplyScalarAndAdd:function(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t[2]=e[2]+r[2]*n,t[3]=e[3]+r[3]*n,t[4]=e[4]+r[4]*n,t[5]=e[5]+r[5]*n,t[6]=e[6]+r[6]*n,t[7]=e[7]+r[7]*n,t[8]=e[8]+r[8]*n,t[9]=e[9]+r[9]*n,t[10]=e[10]+r[10]*n,t[11]=e[11]+r[11]*n,t[12]=e[12]+r[12]*n,t[13]=e[13]+r[13]*n,t[14]=e[14]+r[14]*n,t[15]=e[15]+r[15]*n,t},exactEquals:w,equals:D,isOrthoNormal:C,mul:S,sub:v})},25929:(t,e,r)=>{r.d(e,{M:()=>m,f:()=>a,i:()=>h,p:()=>d,r:()=>i,t:()=>s,w:()=>l});var n=r(70586),o=r(17452);function a(t,e){const r=e&&e.url&&e.url.path;if(t&&r&&(t=(0,o.hF)(t,r,{preserveProtocolRelative:!0}),e.portalItem&&e.readResourcePaths)){const r=(0,o.PF)(t,e.portalItem.itemUrl);c.test(r)&&e.readResourcePaths.push(e.portalItem.resourceFromPath(r).path)}return f(t,e&&e.portal)}function s(t,e,r=m.YES){if(!t)return t;!(0,o.YP)(t)&&e&&e.blockedRelativeUrls&&e.blockedRelativeUrls.push(t);let n=(0,o.hF)(t);if(e){const r=e.verifyItemRelativeUrls&&e.verifyItemRelativeUrls.rootPath||e.url&&e.url.path;if(r){const a=f(r,e.portal);n=(0,o.PF)(f(n,e.portal),a,a),n!==t&&e.verifyItemRelativeUrls&&e.verifyItemRelativeUrls.writtenUrls.push(n)}}return n=function(t,e){return e&&!e.isPortal&&e.urlKey&&e.customBaseUrl?(0,o.Ie)(t,`${e.urlKey}.${e.customBaseUrl}`,e.portalHostname):t}(n,e&&e.portal),(0,o.YP)(n)&&(n=(0,o.Fv)(n)),null!=e&&e.resources&&null!=e&&e.portalItem&&!(0,o.YP)(n)&&!(0,o.HK)(n)&&r===m.YES&&e.resources.toKeep.push({resource:e.portalItem.resourceFromPath(n)}),n}function i(t,e,r){return a(t,r)}function l(t,e,r,n){const o=s(t,n);void 0!==o&&(e[r]=o)}const u=/\/items\/([^\/]+)\/resources\//,c=/^\.\/resources\//;function h(t){const e=(0,n.pC)(t)?t.match(u):null;return(0,n.pC)(e)?e[1]:null}function f(t,e){if(!e||e.isPortal||!e.urlKey||!e.customBaseUrl)return t;const r=`${e.urlKey}.${e.customBaseUrl}`,n=(0,o.TI)();return(0,o.D6)(n,`${n.scheme}://${r}`)?(0,o.Ie)(t,e.portalHostname,r):(0,o.Ie)(t,r,e.portalHostname)}var m,p;(p=m||(m={}))[p.YES=0]="YES",p[p.NO=1]="NO";const d=Object.freeze({__proto__:null,fromJSON:a,toJSON:s,read:i,write:l,itemIdFromResourceUrl:h,get MarkKeep(){return m}})},22862:(t,e,r)=>{r.d(e,{Hg:()=>d,uD:()=>m,V7:()=>p});var n=r(15923),o=r(80539),a=r(70586),s=r(1153);const i=["esri.Color","esri.portal.Portal","esri.symbols.support.Symbol3DAnchorPosition2D","esri.symbols.support.Symbol3DAnchorPosition3D"];function l(t){return t instanceof n.Z}function u(t){return t instanceof o.Z?Object.keys(t.items):l(t)?(0,s.vw)(t).keys():t?Object.keys(t):[]}function c(t,e){return t instanceof o.Z?t.items[e]:t[e]}function h(t){return t?t.declaredClass:null}function f(t,e){const r=t.diff;if(r&&"function"==typeof r)return r(t,e);const n=u(t),o=u(e);if(0===n.length&&0===o.length)return;if(!n.length||!o.length||function(t,e){return!(!Array.isArray(t)||!Array.isArray(e))&&t.length!==e.length}(t,e))return{type:"complete",oldValue:t,newValue:e};const s=o.filter((t=>-1===n.indexOf(t))),m=n.filter((t=>-1===o.indexOf(t))),p=n.filter((r=>o.indexOf(r)>-1&&c(t,r)!==c(e,r))).concat(s,m).sort(),d=h(t);if(d&&i.indexOf(d)>-1&&p.length)return{type:"complete",oldValue:t,newValue:e};let M;const y=l(t)&&l(e);for(const n of p){const o=c(t,n),s=c(e,n);let i;(y||"function"!=typeof o&&"function"!=typeof s)&&o!==s&&(null==o&&null==s||(i=r&&r[n]&&"function"==typeof r[n]?r[n](o,s):"object"==typeof o&&"object"==typeof s&&h(o)===h(s)?f(o,s):{type:"complete",oldValue:o,newValue:s},(0,a.pC)(i)&&((0,a.pC)(M)?M.diff[n]=i:M={type:"partial",diff:{[n]:i}})))}return M}function m(t,e){if((0,a.Wi)(t))return!1;const r=e.split(".");let n=t;for(const t of r){if("complete"===n.type)return!0;if("partial"!==n.type)return!1;{const e=n.diff[t];if(!e)return!1;n=e}}return!0}function p(t,e){for(const r of e)if(m(t,r))return!0;return!1}function d(t,e){if(!("function"==typeof t||"function"==typeof e||(0,a.Wi)(t)&&(0,a.Wi)(e)))return(0,a.Wi)(t)||(0,a.Wi)(e)||"object"==typeof t&&"object"==typeof e&&h(t)!==h(e)?{type:"complete",oldValue:t,newValue:e}:f(t,e)}},35463:(t,e,r)=>{r.d(e,{rJ:()=>i,Nm:()=>a,JE:()=>s}),r(80442);const n={milliseconds:1,seconds:1e3,minutes:6e4,hours:36e5,days:864e5,weeks:6048e5,months:26784e5,years:31536e6,decades:31536e7,centuries:31536e8},o={milliseconds:{getter:"getMilliseconds",setter:"setMilliseconds",multiplier:1},seconds:{getter:"getSeconds",setter:"setSeconds",multiplier:1},minutes:{getter:"getMinutes",setter:"setMinutes",multiplier:1},hours:{getter:"getHours",setter:"setHours",multiplier:1},days:{getter:"getDate",setter:"setDate",multiplier:1},weeks:{getter:"getDate",setter:"setDate",multiplier:7},months:{getter:"getMonth",setter:"setMonth",multiplier:1},years:{getter:"getFullYear",setter:"setFullYear",multiplier:1},decades:{getter:"getFullYear",setter:"setFullYear",multiplier:10},centuries:{getter:"getFullYear",setter:"setFullYear",multiplier:100}};function a(t,e,r){const n=new Date(t.getTime());if(e&&r){const t=o[r],{getter:a,setter:s,multiplier:i}=t;if("months"===r){const t=function(t,e){const r=new Date(t,e+1,1);return r.setDate(0),r.getDate()}(n.getFullYear(),n.getMonth()+e);n.getDate()>t&&n.setDate(t)}n[s](n[a]()+e*i)}return n}function s(t,e){switch(e){case"milliseconds":return new Date(t.getTime());case"seconds":return new Date(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds());case"minutes":return new Date(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes());case"hours":return new Date(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours());case"days":return new Date(t.getFullYear(),t.getMonth(),t.getDate());case"weeks":return new Date(t.getFullYear(),t.getMonth(),t.getDate()-t.getDay());case"months":return new Date(t.getFullYear(),t.getMonth(),1);case"years":return new Date(t.getFullYear(),0,1);case"decades":return new Date(t.getFullYear()-t.getFullYear()%10,0,1);case"centuries":return new Date(t.getFullYear()-t.getFullYear()%100,0,1);default:return new Date}}function i(t,e,r){return 0===t?0:t*n[e]/n[r]}},60437:(t,e,r)=>{r.d(e,{Gv:()=>M,Ue:()=>o,cS:()=>f,fS:()=>d,TC:()=>s,pp:()=>i,JR:()=>m,al:()=>a,t8:()=>h,Tn:()=>c,op:()=>u,dp:()=>l});var n=r(70586);function o(t=y){return[t[0],t[1],t[2],t[3],t[4],t[5]]}function a(t,e,r,n,a,s,i=o()){return i[0]=t,i[1]=e,i[2]=r,i[3]=n,i[4]=a,i[5]=s,i}function s(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.min(t[2],e[2]),t[3]=Math.max(t[3],e[3]),t[4]=Math.max(t[4],e[4]),t[5]=Math.max(t[5],e[5])}function i(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.min(t[2],e[2]),t[3]=Math.max(t[3],e[0]),t[4]=Math.max(t[4],e[1]),t[5]=Math.max(t[5],e[2])}function l(t,e=[0,0,0]){return e[0]=function(t){return t[0]>=t[3]?0:t[3]-t[0]}(t),e[1]=function(t){return t[1]>=t[4]?0:t[4]-t[1]}(t),e[2]=function(t){return t[2]>=t[5]?0:t[5]-t[2]}(t),e}function u(t,e,r=t){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r!==t&&(r[3]=t[3],r[4]=t[4],r[5]=t[5]),r}function c(t,e,r=t){return r[3]=e[0],r[4]=e[1],r[5]=e[2],r!==t&&(r[0]=t[0],r[1]=t[1],r[2]=t[2]),t}function h(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function f(t){return t?h(t,M):o(M)}function m(t,e){return t[0]=e[0],t[1]=e[1],t[2]=Number.NEGATIVE_INFINITY,t[3]=e[2],t[4]=e[3],t[5]=Number.POSITIVE_INFINITY,t}function p(t){return 6===t.length}function d(t,e,r){if((0,n.Wi)(t)||(0,n.Wi)(e))return t===e;if(!p(t)||!p(e))return!1;if(r){for(let n=0;n<t.length;n++)if(!r(t[n],e[n]))return!1}else for(let r=0;r<t.length;r++)if(t[r]!==e[r])return!1;return!0}r(6570),r(24470);const M=[1/0,1/0,1/0,-1/0,-1/0,-1/0],y=[0,0,0,0,0,0];o()},24470:(t,e,r)=>{r.d(e,{Gv:()=>f,SO:()=>u,r3:()=>h,Ue:()=>a,oJ:()=>i,al:()=>s,kK:()=>c,HH:()=>l}),r(80442),r(22021);var n=r(70586),o=r(6570);function a(t=m){return[t[0],t[1],t[2],t[3]]}function s(t,e,r,n,o=a()){return o[0]=t,o[1]=e,o[2]=r,o[3]=n,o}function i(t,e=a()){return e[0]=t.xmin,e[1]=t.ymin,e[2]=t.xmax,e[3]=t.ymax,e}function l(t,e){return new o.Z({xmin:t[0],ymin:t[1],xmax:t[2],ymax:t[3],spatialReference:e})}function u(t){return function(t){return(0,n.Wi)(t)||t[0]>=t[2]?0:t[2]-t[0]}(t)*function(t){return t[1]>=t[3]?0:t[3]-t[1]}(t)}function c(t,e){return Math.max(e[0],t[0])<=Math.min(e[2],t[2])&&Math.max(e[1],t[1])<=Math.min(e[3],t[3])}function h(t,e){return e[0]>=t[0]&&e[2]<=t[2]&&e[1]>=t[1]&&e[3]<=t[3]}const f=[1/0,1/0,-1/0,-1/0],m=[0,0,0,0]},98046:(t,e,r)=>{r.d(e,{Z:()=>m});var n,o=r(43697),a=r(22303),s=r(22974),i=r(5600),l=r(75215),u=r(36030),c=r(52011),h=r(899);let f=n=class extends h.Z{constructor(t){super(t),this.algorithm=null,this.fromColor=null,this.toColor=null,this.type="algorithmic"}clone(){return new n({fromColor:(0,s.d9)(this.fromColor),toColor:(0,s.d9)(this.toColor),algorithm:this.algorithm})}};(0,o._)([(0,u.J)({esriCIELabAlgorithm:"cie-lab",esriHSVAlgorithm:"hsv",esriLabLChAlgorithm:"lab-lch"})],f.prototype,"algorithm",void 0),(0,o._)([(0,i.Cb)({type:a.Z,json:{type:[l.z8],write:!0}})],f.prototype,"fromColor",void 0),(0,o._)([(0,i.Cb)({type:a.Z,json:{type:[l.z8],write:!0}})],f.prototype,"toColor",void 0),(0,o._)([(0,i.Cb)({type:["algorithmic"]})],f.prototype,"type",void 0),f=n=(0,o._)([(0,c.j)("esri.rest.support.AlgorithmicColorRamp")],f);const m=f},899:(t,e,r)=>{r.d(e,{Z:()=>l});var n=r(43697),o=r(96674),a=r(5600),s=(r(67676),r(80442),r(75215),r(52011));let i=class extends o.wq{constructor(t){super(t),this.type=null}};(0,n._)([(0,a.Cb)({readOnly:!0,json:{read:!1,write:!0}})],i.prototype,"type",void 0),i=(0,n._)([(0,s.j)("esri.rest.support.ColorRamp")],i);const l=i},1515:(t,e,r)=>{r.d(e,{Z:()=>h});var n,o=r(43697),a=r(22974),s=r(5600),i=(r(75215),r(52011)),l=r(98046),u=r(899);let c=n=class extends u.Z{constructor(t){super(t),this.colorRamps=null,this.type="multipart"}clone(){return new n({colorRamps:(0,a.d9)(this.colorRamps)})}};(0,o._)([(0,s.Cb)({type:[l.Z],json:{write:!0}})],c.prototype,"colorRamps",void 0),(0,o._)([(0,s.Cb)({type:["multipart"]})],c.prototype,"type",void 0),c=n=(0,o._)([(0,i.j)("esri.rest.support.MultipartColorRamp")],c);const h=c},94593:(t,e,r)=>{r.d(e,{i:()=>i,V:()=>s});var n=r(98046),o=r(899),a=r(1515);const s={key:"type",base:o.Z,typeMap:{algorithmic:n.Z,multipart:a.Z}};function i(t){return t&&t.type?"algorithmic"===t.type?n.Z.fromJSON(t):"multipart"===t.type?a.Z.fromJSON(t):null:null}},89164:(t,e,r)=>{r.d(e,{Z:()=>m});var n=r(43697),o=r(22303),a=r(35454),s=r(96674),i=r(5600),l=(r(67676),r(80442),r(75215),r(71715)),u=r(52011);const c=new a.X({esriSMS:"simple-marker",esriPMS:"picture-marker",esriSLS:"simple-line",esriSFS:"simple-fill",esriPFS:"picture-fill",esriTS:"text",esriSHD:"shield-label-symbol",PointSymbol3D:"point-3d",LineSymbol3D:"line-3d",PolygonSymbol3D:"polygon-3d",WebStyleSymbol:"web-style",MeshSymbol3D:"mesh-3d",LabelSymbol3D:"label-3d",CIMSymbolReference:"cim"});let h=0,f=class extends s.wq{constructor(t){super(t),this.id="sym"+h++,this.type=null,this.color=new o.Z([0,0,0,1])}readColor(t){return t&&null!=t[0]?[t[0],t[1],t[2],t[3]/255]:t}async collectRequiredFields(t,e){}hash(){return JSON.stringify(this.toJSON())}clone(){}};(0,n._)([(0,i.Cb)({type:c.apiValues,readOnly:!0,json:{read:!1,write:{ignoreOrigin:!0,writer:c.write}}})],f.prototype,"type",void 0),(0,n._)([(0,i.Cb)({type:o.Z,json:{write:{allowNull:!0}}})],f.prototype,"color",void 0),(0,n._)([(0,l.r)("color")],f.prototype,"readColor",null),f=(0,n._)([(0,u.j)("esri.symbols.Symbol")],f);const m=f}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9928],{35454:(t,n,e)=>{e.d(n,{X:()=>s,w:()=>r});var i=e(78286);class s{constructor(t,n={ignoreUnknown:!1,useNumericKeys:!1}){this.jsonToAPI=t,this.options=n,this.apiValues=[],this.jsonValues=[],this.apiToJSON=this._invertMap(t),this.apiValues=this._getKeysSorted(this.apiToJSON),this.jsonValues=this._getKeysSorted(this.jsonToAPI),this.read=t=>this.fromJSON(t),this.write=(t,n,e)=>{const s=this.toJSON(t);void 0!==s&&(0,i.RB)(e,s,n)},this.write.isJSONMapWriter=!0}toJSON(t){if(this.apiToJSON.hasOwnProperty(t)){const n=this.apiToJSON[t];return this.options.useNumericKeys?+n:n}return this.options.ignoreUnknown?void 0:t}fromJSON(t){return this.jsonToAPI.hasOwnProperty(t)?this.jsonToAPI[t]:this.options.ignoreUnknown?void 0:t}_invertMap(t){const n={};for(const e in t)n[t[e]]=e;return n}_getKeysSorted(t){const n=[];for(const e in t)n.push(e);return n.sort(),n}}function r(){return function(t,n){return new s(t,{ignoreUnknown:!0,...n})}}},65091:(t,n,e)=>{e.d(n,{Z:()=>m});var i,s=e(43697),r=e(22974),o=e(5600),h=(e(75215),e(52011)),a=e(30556),l=e(6570),u=e(9361),c=e(13473),p=e(16238);function f(t){return(n,e)=>null==n?e:null==e?n:t(n,e)}let g=i=class extends u.Z{constructor(...t){super(...t),this.points=[],this.type="multipoint"}normalizeCtorArgs(t,n){if(!t&&!n)return null;const e={};Array.isArray(t)?(e.points=t,e.spatialReference=n):function(t){return t&&("esri.geometry.SpatialReference"===t.declaredClass||null!=t.wkid)}(t)?e.spatialReference=t:(t.points&&(e.points=t.points),t.spatialReference&&(e.spatialReference=t.spatialReference),t.hasZ&&(e.hasZ=t.hasZ),t.hasM&&(e.hasM=t.hasM));const i=e.points&&e.points[0];return i&&(void 0===e.hasZ&&void 0===e.hasM?(e.hasZ=i.length>2,e.hasM=!1):void 0===e.hasZ?e.hasZ=i.length>3:void 0===e.hasM&&(e.hasM=i.length>3)),e}get cache(){return this.commitProperty("points"),this.commitProperty("hasZ"),this.commitProperty("hasM"),this.commitProperty("spatialReference"),{}}get extent(){const t=this.points;if(!t.length)return null;const n=new l.Z,e=this.hasZ,i=this.hasM,s=e?3:2,r=t[0],o=f(Math.min),h=f(Math.max);let a,u,c,p,[g,m]=r,[y,d]=r;for(let n=0,r=t.length;n<r;n++){const r=t[n],[l,f]=r;if(g=o(g,l),m=o(m,f),y=h(y,l),d=h(d,f),e&&r.length>2){const t=r[2];a=o(a,t),c=h(c,t)}if(i&&r.length>s){const t=r[s];u=o(u,t),p=h(p,t)}}return n.xmin=g,n.ymin=m,n.xmax=y,n.ymax=d,n.spatialReference=this.spatialReference,e?(n.zmin=a,n.zmax=c):(n.zmin=null,n.zmax=null),i?(n.mmin=u,n.mmax=p):(n.mmin=null,n.mmax=null),n}writePoints(t,n){n.points=(0,r.d9)(this.points)}addPoint(t){return(0,p.l)(this,t),Array.isArray(t)?this.points.push(t):this.points.push(t.toArray()),this.notifyChange("points"),this}clone(){const t={points:(0,r.d9)(this.points),spatialReference:this.spatialReference};return this.hasZ&&(t.hasZ=!0),this.hasM&&(t.hasM=!0),new i(t)}getPoint(t){if(!this._validateInputs(t))return null;const n=this.points[t],e={x:n[0],y:n[1],spatialReference:this.spatialReference};let i=2;return this.hasZ&&(e.z=n[2],i=3),this.hasM&&(e.m=n[i]),new c.Z(e)}removePoint(t){if(!this._validateInputs(t))return null;const n=new c.Z(this.points.splice(t,1)[0],this.spatialReference);return this.notifyChange("points"),n}setPoint(t,n){return this._validateInputs(t)?((0,p.l)(this,n),Array.isArray(n)||(n=n.toArray()),this.points[t]=n,this.notifyChange("points"),this):this}toJSON(t){return this.write({},t)}_validateInputs(t){return null!=t&&t>=0&&t<this.points.length}};(0,s._)([(0,o.Cb)({readOnly:!0})],g.prototype,"cache",null),(0,s._)([(0,o.Cb)()],g.prototype,"extent",null),(0,s._)([(0,o.Cb)({type:[[Number]],json:{write:{isRequired:!0}}})],g.prototype,"points",void 0),(0,s._)([(0,a.c)("points")],g.prototype,"writePoints",null),g=i=(0,s._)([(0,h.j)("esri.geometry.Multipoint")],g),g.prototype.toJSON.isDefaultToJSON=!0;const m=g},17332:(t,n,e)=>{e.d(n,{Z:()=>A});var i=e(43697),s=e(67676),r=e(22974),o=e(70586),h=e(5600),a=(e(75215),e(52011)),l=e(30556),u=e(6570),c=e(9361),p=e(13473),f=e(82971),g=e(86662);function m(t){return t?function(t,n){if(!t||!t.length)return null;const e=[],i=[],s=n?[1/0,-1/0,1/0,-1/0,1/0,-1/0]:[1/0,-1/0,1/0,-1/0];for(let e=0,r=t.length;e<r;e++){const r=y(t[e],n,s);r&&i.push(r)}if(i.sort(((t,e)=>{let i=t[2]-e[2];return 0===i&&n&&(i=t[4]-e[4]),i})),i.length&&(e[0]=i[0][0],e[1]=i[0][1],n&&(e[2]=i[0][3]),(e[0]<s[0]||e[0]>s[1]||e[1]<s[2]||e[1]>s[3]||n&&(e[2]<s[4]||e[2]>s[5]))&&(e.length=0)),!e.length){const i=t[0]&&t[0].length?function(t,n){const e=n?[0,0,0]:[0,0],i=n?[0,0,0]:[0,0];let s=0,r=0,o=0,h=0;for(let a=0,l=t.length;a<l-1;a++){const l=t[a],u=t[a+1];if(l&&u){e[0]=l[0],e[1]=l[1],i[0]=u[0],i[1]=u[1],n&&l.length>2&&u.length>2&&(e[2]=l[2],i[2]=u[2]);const t=(0,g.xA)(e,i);if(t){s+=t;const e=(0,g.Gi)(l,u);r+=t*e[0],o+=t*e[1],n&&e.length>2&&(h+=t*e[2])}}}return s>0?n?[r/s,o/s,h/s]:[r/s,o/s]:t.length?t[0]:null}(t[0],n):null;if(!i)return null;e[0]=i[0],e[1]=i[1],n&&i.length>2&&(e[2]=i[2])}return e}(t.rings,t.hasZ):null}function y(t,n,e){let i=0,s=0,r=0,o=0,h=0;const a=t.length?t[0][0]:0,l=t.length?t[0][1]:0,u=t.length&&n?t[0][2]:0;for(let c=0;c<t.length;c++){const p=t[c],f=t[(c+1)%t.length],[g,m,y]=p,d=g-a,x=m-l,v=n?y-u:void 0,[Z,R,w]=f,M=Z-a,C=R-l,A=n?w-u:void 0,_=d*C-M*x;if(o+=_,i+=(d+M)*_,s+=(x+C)*_,n&&p.length>2&&f.length>2){const t=d*A-M*v;r+=(v+A)*t,h+=t}g<e[0]&&(e[0]=g),g>e[1]&&(e[1]=g),m<e[2]&&(e[2]=m),m>e[3]&&(e[3]=m),n&&(y<e[4]&&(e[4]=y),y>e[5]&&(e[5]=y))}if(o>0&&(o*=-1),h>0&&(h*=-1),!o)return null;o*=.5,h*=.5;const c=[i/(6*o)+a,s/(6*o)+l,o];return n&&(e[4]===e[5]||0===h?(c[3]=(e[4]+e[5])/2,c[4]=0):(c[3]=r/(6*h)+u,c[4]=h)),c}var d,x=e(54102),v=e(49600),Z=e(87416),R=e(40488),w=e(16238);function M(t){return!Array.isArray(t[0])}let C=d=class extends c.Z{constructor(...t){super(...t),this.rings=[],this.type="polygon"}static fromExtent(t){const n=t.clone().normalize(),e=t.spatialReference;let i=!1,s=!1;for(const t of n)t.hasZ&&(i=!0),t.hasM&&(s=!0);const r={rings:n.map((function(t){const n=[[t.xmin,t.ymin],[t.xmin,t.ymax],[t.xmax,t.ymax],[t.xmax,t.ymin],[t.xmin,t.ymin]];if(i&&t.hasZ){const e=t.zmin+.5*(t.zmax-t.zmin);for(let t=0;t<n.length;t++)n[t].push(e)}if(s&&t.hasM){const e=t.mmin+.5*(t.mmax-t.mmin);for(let t=0;t<n.length;t++)n[t].push(e)}return n})),spatialReference:e};return i&&(r.hasZ=!0),s&&(r.hasM=!0),new d(r)}normalizeCtorArgs(t,n){let e,i,s=null,r=null;return t&&!Array.isArray(t)?(s=t.rings?t.rings:null,n||(t.spatialReference?n=t.spatialReference:t.rings||(n=t)),e=t.hasZ,i=t.hasM):s=t,s=s||[],n=n||f.Z.WGS84,s.length&&s[0]&&null!=s[0][0]&&"number"==typeof s[0][0]&&(s=[s]),r=s[0]&&s[0][0],r&&(void 0===e&&void 0===i?(e=r.length>2,i=r.length>3):void 0===e?e=i?r.length>3:r.length>2:void 0===i&&(i=e?r.length>3:r.length>2)),{rings:s,spatialReference:n,hasZ:e,hasM:i}}get cache(){return this.commitProperty("rings"),this.commitProperty("hasZ"),this.commitProperty("hasM"),this.commitProperty("spatialReference"),{}}get centroid(){const t=m(this);if(!t||isNaN(t[0])||isNaN(t[1])||this.hasZ&&isNaN(t[2]))return null;const n=new p.Z;return n.x=t[0],n.y=t[1],n.spatialReference=this.spatialReference,this.hasZ&&(n.z=t[2]),n}get extent(){const{spatialReference:t}=this,n=(0,v._w)(this);if(!n)return null;const e=new u.Z(n);return e.spatialReference=t,e}get isSelfIntersecting(){return(0,Z.Ff)(this.rings)}writeRings(t,n){n.rings=(0,r.d9)(this.rings)}addRing(t){if(!t)return;const n=this.rings,e=n.length;if(M(t)){const i=[];for(let n=0,e=t.length;n<e;n++)i[n]=t[n].toArray();n[e]=i}else n[e]=t.concat();return this.notifyChange("rings"),this}clone(){const t=new d;return t.spatialReference=this.spatialReference,t.rings=(0,r.d9)(this.rings),t.hasZ=this.hasZ,t.hasM=this.hasM,t}equals(t){if(this===t)return!0;if((0,o.Wi)(t))return!1;const n=this.spatialReference,e=t.spatialReference;if((0,o.pC)(n)!==(0,o.pC)(e))return!1;if((0,o.pC)(n)&&(0,o.pC)(e)&&!n.equals(e))return!1;if(this.rings.length!==t.rings.length)return!1;const i=([t,n,e,i],[s,r,o,h])=>t===s&&n===r&&(null==e&&null==o||e===o)&&(null==i&&null==h||i===h);for(let n=0;n<this.rings.length;n++){const e=this.rings[n],r=t.rings[n];if(!(0,s.fS)(e,r,i))return!1}return!0}contains(t){if(!t)return!1;const n=(0,R.iV)(t,this.spatialReference);return(0,x.CI)(this,(0,o.pC)(n)?n:t)}isClockwise(t){let n;return n=M(t)?t.map((t=>this.hasZ?this.hasM?[t.x,t.y,t.z,t.m]:[t.x,t.y,t.z]:[t.x,t.y])):t,(0,g.bu)(n,this.hasM,this.hasZ)}getPoint(t,n){if(!this._validateInputs(t,n))return null;const e=this.rings[t][n],i=this.hasZ,s=this.hasM;return i&&!s?new p.Z(e[0],e[1],e[2],void 0,this.spatialReference):s&&!i?new p.Z(e[0],e[1],void 0,e[2],this.spatialReference):i&&s?new p.Z(e[0],e[1],e[2],e[3],this.spatialReference):new p.Z(e[0],e[1],this.spatialReference)}insertPoint(t,n,e){return this._validateInputs(t,n,!0)?((0,w.l)(this,e),Array.isArray(e)||(e=e.toArray()),this.rings[t].splice(n,0,e),this.notifyChange("rings"),this):this}removePoint(t,n){if(!this._validateInputs(t,n))return null;const e=new p.Z(this.rings[t].splice(n,1)[0],this.spatialReference);return this.notifyChange("rings"),e}removeRing(t){if(!this._validateInputs(t,null))return null;const n=this.rings.splice(t,1)[0],e=this.spatialReference,i=n.map((t=>new p.Z(t,e)));return this.notifyChange("rings"),i}setPoint(t,n,e){return this._validateInputs(t,n)?((0,w.l)(this,e),Array.isArray(e)||(e=e.toArray()),this.rings[t][n]=e,this.notifyChange("rings"),this):this}_validateInputs(t,n,e=!1){if(null==t||t<0||t>=this.rings.length)return!1;if(null!=n){const i=this.rings[t];if(e&&(n<0||n>i.length))return!1;if(!e&&(n<0||n>=i.length))return!1}return!0}toJSON(t){return this.write({},t)}};(0,i._)([(0,h.Cb)({readOnly:!0})],C.prototype,"cache",null),(0,i._)([(0,h.Cb)({readOnly:!0})],C.prototype,"centroid",null),(0,i._)([(0,h.Cb)({readOnly:!0})],C.prototype,"extent",null),(0,i._)([(0,h.Cb)({readOnly:!0})],C.prototype,"isSelfIntersecting",null),(0,i._)([(0,h.Cb)({type:[[[Number]]],json:{write:{isRequired:!0}}})],C.prototype,"rings",void 0),(0,i._)([(0,l.c)("rings")],C.prototype,"writeRings",null),C=d=(0,i._)([(0,a.j)("esri.geometry.Polygon")],C),C.prototype.toJSON.isDefaultToJSON=!0;const A=C},58901:(t,n,e)=>{e.d(n,{Z:()=>y});var i,s=e(43697),r=e(22974),o=e(5600),h=(e(75215),e(52011)),a=e(30556),l=e(6570),u=e(9361),c=e(13473),p=e(82971),f=e(49600),g=e(16238);let m=i=class extends u.Z{constructor(...t){super(...t),this.paths=[],this.type="polyline"}normalizeCtorArgs(t,n){let e,i,s=null,r=null;return t&&!Array.isArray(t)?(s=t.paths?t.paths:null,n||(t.spatialReference?n=t.spatialReference:t.paths||(n=t)),e=t.hasZ,i=t.hasM):s=t,s=s||[],n=n||p.Z.WGS84,s.length&&s[0]&&null!=s[0][0]&&"number"==typeof s[0][0]&&(s=[s]),r=s[0]&&s[0][0],r&&(void 0===e&&void 0===i?(e=r.length>2,i=!1):void 0===e?e=!i&&r.length>3:void 0===i&&(i=!e&&r.length>3)),{paths:s,spatialReference:n,hasZ:e,hasM:i}}get cache(){return this.commitProperty("paths"),this.commitProperty("hasZ"),this.commitProperty("hasM"),this.commitProperty("spatialReference"),{}}get extent(){const{spatialReference:t}=this,n=(0,f.Wn)(this);if(!n)return null;const e=new l.Z(n);return e.spatialReference=t,e}writePaths(t,n){n.paths=(0,r.d9)(this.paths)}addPath(t){if(!t)return;const n=this.paths,e=n.length;if(function(t){return!Array.isArray(t[0])}(t)){const i=[];for(let n=0,e=t.length;n<e;n++)i[n]=t[n].toArray();n[e]=i}else n[e]=t.concat();return this.notifyChange("paths"),this}clone(){const t=new i;return t.spatialReference=this.spatialReference,t.paths=(0,r.d9)(this.paths),t.hasZ=this.hasZ,t.hasM=this.hasM,t}getPoint(t,n){if(!this._validateInputs(t,n))return null;const e=this.paths[t][n],i=this.hasZ,s=this.hasM;return i&&!s?new c.Z(e[0],e[1],e[2],void 0,this.spatialReference):s&&!i?new c.Z(e[0],e[1],void 0,e[2],this.spatialReference):i&&s?new c.Z(e[0],e[1],e[2],e[3],this.spatialReference):new c.Z(e[0],e[1],this.spatialReference)}insertPoint(t,n,e){return this._validateInputs(t,n,!0)?((0,g.l)(this,e),Array.isArray(e)||(e=e.toArray()),this.paths[t].splice(n,0,e),this.notifyChange("paths"),this):this}removePath(t){if(!this._validateInputs(t,null))return null;const n=this.paths.splice(t,1)[0],e=this.spatialReference,i=n.map((t=>new c.Z(t,e)));return this.notifyChange("paths"),i}removePoint(t,n){if(!this._validateInputs(t,n))return null;const e=new c.Z(this.paths[t].splice(n,1)[0],this.spatialReference);return this.notifyChange("paths"),e}setPoint(t,n,e){return this._validateInputs(t,n)?((0,g.l)(this,e),Array.isArray(e)||(e=e.toArray()),this.paths[t][n]=e,this.notifyChange("paths"),this):this}_validateInputs(t,n,e=!1){if(null==t||t<0||t>=this.paths.length)return!1;if(null!=n){const i=this.paths[t];if(e&&(n<0||n>i.length))return!1;if(!e&&(n<0||n>=i.length))return!1}return!0}toJSON(t){return this.write({},t)}};(0,s._)([(0,o.Cb)({readOnly:!0})],m.prototype,"cache",null),(0,s._)([(0,o.Cb)({readOnly:!0})],m.prototype,"extent",null),(0,s._)([(0,o.Cb)({type:[[[Number]]],json:{write:{isRequired:!0}}})],m.prototype,"paths",void 0),(0,s._)([(0,a.c)("paths")],m.prototype,"writePaths",null),m=i=(0,s._)([(0,h.j)("esri.geometry.Polyline")],m),m.prototype.toJSON.isDefaultToJSON=!0;const y=m},20322:(t,n,e)=>{function i(t){return void 0!==t.xmin&&void 0!==t.ymin&&void 0!==t.xmax&&void 0!==t.ymax}function s(t){return void 0!==t.points}function r(t){return void 0!==t.x&&void 0!==t.y}function o(t){return void 0!==t.paths}function h(t){return void 0!==t.rings}function a(t){return(n,e)=>null==n?e:null==e?n:t(n,e)}e.d(n,{$P:()=>c,Yg:()=>p,lC:()=>m,C6:()=>f});const l=a(Math.min),u=a(Math.max);function c(t,n){return o(n)?f(t,n.paths,!1,!1):h(n)?f(t,n.rings,!1,!1):s(n)?m(t,n.points,!1,!1,!1,!1):i(n)?g(t,n):(r(n)&&(t[0]=n.x,t[1]=n.y,t[2]=n.x,t[3]=n.y),t)}function p(t,n){return o(n)?f(t,n.paths,!0,!1):h(n)?f(t,n.rings,!0,!1):s(n)?m(t,n.points,!0,!1,!0,!1):i(n)?g(t,n,0,0,!0,!1):(r(n)&&(t[0]=n.x,t[1]=n.y,t[2]=n.z,t[3]=n.x,t[4]=n.y,t[5]=n.z),t)}function f(t,n,e,i){const s=e?3:2;if(!n.length||!n[0].length)return null;let r,o,h,a,[c,p]=n[0][0],[f,g]=n[0][0];for(let t=0;t<n.length;t++){const m=n[t];for(let t=0;t<m.length;t++){const n=m[t],[y,d]=n;if(c=l(c,y),p=l(p,d),f=u(f,y),g=u(g,d),e&&n.length>2){const t=n[2];r=l(r,t),o=u(o,t)}if(i&&n.length>s){const t=n[s];h=l(r,t),a=u(o,t)}}}return e?i?(t[0]=c,t[1]=p,t[2]=r,t[3]=h,t[4]=f,t[5]=g,t[6]=o,t[7]=a,t.length=8,t):(t[0]=c,t[1]=p,t[2]=r,t[3]=f,t[4]=g,t[5]=o,t.length=6,t):i?(t[0]=c,t[1]=p,t[2]=h,t[3]=f,t[4]=g,t[5]=a,t.length=6,t):(t[0]=c,t[1]=p,t[2]=f,t[3]=g,t.length=4,t)}function g(t,n,e,i,s,r){const o=n.xmin,h=n.xmax,a=n.ymin,l=n.ymax;let u=n.zmin,c=n.zmax,p=n.mmin,f=n.mmax;return s?(u=u||0,c=c||0,r?(p=p||0,f=f||0,t[0]=o,t[1]=a,t[2]=u,t[3]=p,t[4]=h,t[5]=l,t[6]=c,t[7]=f,t):(t[0]=o,t[1]=a,t[2]=u,t[3]=h,t[4]=l,t[5]=c,t)):r?(p=p||0,f=f||0,t[0]=o,t[1]=a,t[2]=p,t[3]=h,t[4]=l,t[5]=f,t):(t[0]=o,t[1]=a,t[2]=h,t[3]=l,t)}function m(t,n,e,i,s,r){const o=e?3:2,h=i&&r,a=e&&s;if(!n.length||!n[0].length)return null;let c,p,f,g,[m,y]=n[0],[d,x]=n[0];for(let t=0;t<n.length;t++){const e=n[t],[i,s]=e;if(m=l(m,i),y=l(y,s),d=u(d,i),x=u(x,s),a&&e.length>2){const t=e[2];c=l(c,t),p=u(p,t)}if(h&&e.length>o){const t=e[o];f=l(c,t),g=u(p,t)}}return s?(c=c||0,p=p||0,r?(f=f||0,g=g||0,t[0]=m,t[1]=y,t[2]=c,t[3]=f,t[4]=d,t[5]=x,t[6]=p,t[7]=g,t):(t[0]=m,t[1]=y,t[2]=c,t[3]=d,t[4]=x,t[5]=p,t)):r?(f=f||0,g=g||0,t[0]=m,t[1]=y,t[2]=f,t[3]=d,t[4]=x,t[5]=g,t):(t[0]=m,t[1]=y,t[2]=d,t[3]=x,t)}},86662:(t,n,e)=>{function i(t,n){const e=n[0]-t[0],i=n[1]-t[1];if(t.length>2&&n.length>2){const s=t[2]-n[2];return Math.sqrt(e*e+i*i+s*s)}return Math.sqrt(e*e+i*i)}function s(t,n){return function(t,n,e){const i=t[0]+e*(n[0]-t[0]),s=t[1]+e*(n[1]-t[1]);return t.length>2&&n.length>2?[i,s,t[2]+e*(n[2]-t[2])]:[i,s]}(t,n,.5)}function r(t,n,e){const i=t.length;let s=0,r=0,o=0;for(let h=0;h<i;h++){const a=t[h],l=t[(h+1)%i];let u=2;s+=a[0]*l[1]-l[0]*a[1],a.length>2&&l.length>2&&e&&(r+=a[0]*l[2]-l[0]*a[2],u=3),a.length>u&&l.length>u&&n&&(o+=a[0]*l[u]-l[0]*a[u])}return s<=0&&r<=0&&o<=0}e.d(n,{xA:()=>i,Gi:()=>s,bu:()=>r}),e(8744)},49600:(t,n,e)=>{e.d(n,{aO:()=>u,_w:()=>c,Wn:()=>p});var i=e(20322);const s=[];function r(t,n,e,i){return{xmin:t,ymin:n,xmax:e,ymax:i}}function o(t,n,e,i,s,r){return{xmin:t,ymin:n,zmin:e,xmax:i,ymax:s,zmax:r}}function h(t,n,e,i,s,r){return{xmin:t,ymin:n,mmin:e,xmax:i,ymax:s,mmax:r}}function a(t,n,e,i,s,r,o,h){return{xmin:t,ymin:n,zmin:e,mmin:i,xmax:s,ymax:r,zmax:o,mmax:h}}function l(t,n=!1,e=!1){return n?e?a(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7]):o(t[0],t[1],t[2],t[3],t[4],t[5]):e?h(t[0],t[1],t[2],t[3],t[4],t[5]):r(t[0],t[1],t[2],t[3])}function u(t){return t?function(t){return void 0!==t.xmin&&void 0!==t.ymin&&void 0!==t.xmax&&void 0!==t.ymax}(t)?t:function(t){return void 0!==t.x&&void 0!==t.y}(t)?function(t){const{x:n,y:e,z:i,m:s}=t,l=null!=s;return null!=i?l?a(n,e,i,s,n,e,i,s):o(n,e,i,n,e,i):l?h(n,e,s,n,e,s):r(n,e,n,e)}(t):function(t){return void 0!==t.rings}(t)?c(t):function(t){return void 0!==t.paths}(t)?p(t):function(t){return void 0!==t.points}(t)?function(t){const{hasZ:n,hasM:e,points:r}=t;return l((0,i.lC)(s,r,n,e),n,e)}(t):null:null}function c(t){const{hasZ:n,hasM:e,rings:r}=t,o=(0,i.C6)(s,r,n,e);return o?l(o,n,e):null}function p(t){const{hasZ:n,hasM:e,paths:r}=t,o=(0,i.C6)(s,r,n,e);return o?l(o,n,e):null}},16238:(t,n,e)=>{function i(t,n,e=!1){let{hasM:i,hasZ:s}=t;Array.isArray(n)?4!==n.length||i||s?3===n.length&&e&&!i?(s=!0,i=!1):3===n.length&&i&&s&&(i=!1,s=!1):(i=!0,s=!0):(s=!s&&n.hasZ&&(!i||n.hasM),i=!i&&n.hasM&&(!s||n.hasZ)),t.hasZ=s,t.hasM=i}e.d(n,{l:()=>i})}}]);