@arcgis/core 6.0.0-next.57 → 6.0.0-next.58

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 (629) hide show
  1. package/WebLinkChart.d.ts +0 -12
  2. package/WebLinkChart.js +1 -1
  3. package/applications/Components/OrientedImageryViewer/imageMeasurementUtils.js +1 -1
  4. package/applications/WebEditor/sketchUtils.js +1 -1
  5. package/arcade/arcadeCompiler.js +5 -5
  6. package/arcade/containerUtils.js +1 -1
  7. package/arcade/featureset/actions/Adapted.js +1 -1
  8. package/arcade/featureset/sources/FeatureLayerDynamic.js +1 -1
  9. package/arcade/featureset/sources/FeatureLayerMemory.js +1 -1
  10. package/arcade/featureset/support/shared.js +1 -1
  11. package/arcade/featureset/support/sqlUtils.js +1 -1
  12. package/assets/esri/core/workers/RemoteClient.js +1 -1
  13. package/assets/esri/core/workers/chunks/075e6c60e741482e673f.js +1 -0
  14. package/assets/esri/core/workers/chunks/076c2098570ee885d117.js +1 -0
  15. package/assets/esri/core/workers/chunks/091ce6b3de590e1d9ff6.js +1 -0
  16. package/assets/esri/core/workers/chunks/099dec4103f6e7556eb0.js +1 -0
  17. package/assets/esri/core/workers/chunks/{77267e0807cbbc00496d.js → 0be55d9bab7c3510a7f2.js} +1 -1
  18. package/assets/esri/core/workers/chunks/{da69e8cd52aa77aa4c2c.js → 0fc1facd26c9ef96e081.js} +1 -1
  19. package/assets/esri/core/workers/chunks/{f97dc99afe3375fc8e16.js → 1179a3574c580f7ce390.js} +1 -1
  20. package/assets/esri/core/workers/chunks/129140104be2620c0382.js +1 -0
  21. package/assets/esri/core/workers/chunks/1295fcf866e7347b2d53.js +1 -0
  22. package/assets/esri/core/workers/chunks/16219f0c56d6f6213c24.js +1 -0
  23. package/assets/esri/core/workers/chunks/185b317eec95f3370970.js +1 -0
  24. package/assets/esri/core/workers/chunks/1bdef2e142e78341fec0.js +1 -0
  25. package/assets/esri/core/workers/chunks/1ce0bf4ff14af8a68a5c.js +1 -0
  26. package/assets/esri/core/workers/chunks/1f1515313baeecc095a2.js +1 -0
  27. package/assets/esri/core/workers/chunks/1f710c91a82f6fd3d0f6.js +1 -0
  28. package/assets/esri/core/workers/chunks/{1894c39dabc78e7a5af8.js → 1fad7a7211bb8c9b58e3.js} +1 -1
  29. package/assets/esri/core/workers/chunks/24374aaa6fb3e12960d1.js +1 -0
  30. package/assets/esri/core/workers/chunks/24aa7b81814b4e519b01.js +1 -0
  31. package/assets/esri/core/workers/chunks/294097140e349e073b7e.js +1 -0
  32. package/assets/esri/core/workers/chunks/{c8c79d21dfce5695a089.js → 2b69fdf51b6f0b2abb75.js} +1 -1
  33. package/assets/esri/core/workers/chunks/2ba9b3b4d49eb2740a42.js +1 -0
  34. package/assets/esri/core/workers/chunks/2eb3297014f063fb4bc9.js +1 -0
  35. package/assets/esri/core/workers/chunks/2eb3cec44ce7587980a4.js +1 -0
  36. package/assets/esri/core/workers/chunks/2ee3cd6b2e5274932d31.js +1 -0
  37. package/assets/esri/core/workers/chunks/31df02c6f5b04a143ae6.js +1 -0
  38. package/assets/esri/core/workers/chunks/32d5aae2e0953420216a.js +1 -0
  39. package/assets/esri/core/workers/chunks/3a1510650ce8de7edec8.js +1 -0
  40. package/assets/esri/core/workers/chunks/3b0933cea2a902a26bb7.js +1 -0
  41. package/assets/esri/core/workers/chunks/3d96676b94e8ecb6a4d1.js +1 -0
  42. package/assets/esri/core/workers/chunks/3edfd8ecf000b00a4a92.js +1 -0
  43. package/assets/esri/core/workers/chunks/{f053cbfe671bd14c7d5b.js → 419d8116d8e7faccfed5.js} +1 -1
  44. package/assets/esri/core/workers/chunks/41d57b45cc2361305af3.js +1 -0
  45. package/assets/esri/core/workers/chunks/42ee1f8732e644371ea9.js +1 -0
  46. package/assets/esri/core/workers/chunks/4309f3e72c6332e01d75.js +1 -0
  47. package/assets/esri/core/workers/chunks/44ca7a56fb28227fdcbf.js +1 -0
  48. package/assets/esri/core/workers/chunks/4537f0866e903d2e9bb9.js +1 -0
  49. package/assets/esri/core/workers/chunks/49f61832e0d3b24e1608.js +1 -0
  50. package/assets/esri/core/workers/chunks/4a45505fb9a40b503672.js +29 -0
  51. package/assets/esri/core/workers/chunks/4b456c1f26d70392f7d4.js +1 -0
  52. package/assets/esri/core/workers/chunks/{28fae7da8cc4ae7a83e4.js → 4c510b1caffeec80dc6b.js} +1 -1
  53. package/assets/esri/core/workers/chunks/4ce5c9b658ba79a0b668.js +1 -0
  54. package/assets/esri/core/workers/chunks/{41694ee8990e799da225.js → 4d8f23b2e6721fb5b289.js} +1 -1
  55. package/assets/esri/core/workers/chunks/4fb8708666a614df583d.js +1 -0
  56. package/assets/esri/core/workers/chunks/4feec96a312dcc137911.js +1 -0
  57. package/assets/esri/core/workers/chunks/52ad9306fd40d488376d.js +1 -0
  58. package/assets/esri/core/workers/chunks/5375bdf46b602b19fa86.js +1 -0
  59. package/assets/esri/core/workers/chunks/549a8e7313f75ea3f85b.js +1 -0
  60. package/assets/esri/core/workers/chunks/55f97942c58455f47975.js +1 -0
  61. package/assets/esri/core/workers/chunks/566d72534d694c318e30.js +1 -0
  62. package/assets/esri/core/workers/chunks/5ce00674305e5716d27b.js +1 -0
  63. package/assets/esri/core/workers/chunks/5e032d209df500fad321.js +1 -0
  64. package/assets/esri/core/workers/chunks/{be0133fa63c5d6545a7f.js → 5e4de4ddd3bdc74100e0.js} +33 -32
  65. package/assets/esri/core/workers/chunks/5ea8cdc28a81744913cd.js +1 -0
  66. package/assets/esri/core/workers/chunks/61565d4674cf77cbf1dd.js +1 -0
  67. package/assets/esri/core/workers/chunks/{d296c9561f6a6aeff973.js → 68b8dff748f1ef588653.js} +1 -1
  68. package/assets/esri/core/workers/chunks/690041373d03d02a3044.js +1 -0
  69. package/assets/esri/core/workers/chunks/{6d99e7e1aa007a6f1039.js → 69316db52d7bed746879.js} +1 -1
  70. package/assets/esri/core/workers/chunks/69384a9703abee1903c5.js +1 -0
  71. package/assets/esri/core/workers/chunks/6992a7728451c5a7b673.js +1 -0
  72. package/assets/esri/core/workers/chunks/69e5efe1acbdaddee90d.js +1 -0
  73. package/assets/esri/core/workers/chunks/6b2e09e43f449020d5ad.js +1 -0
  74. package/assets/esri/core/workers/chunks/6b5f8bf8b3480910666d.js +1 -0
  75. package/assets/esri/core/workers/chunks/70fe8b90f174ec64db2e.js +1 -0
  76. package/assets/esri/core/workers/chunks/720356fc6d5e18008471.js +1 -0
  77. package/assets/esri/core/workers/chunks/{3869ea1be105eaad4a38.js → 7328aca34c95fd0fc752.js} +1 -1
  78. package/assets/esri/core/workers/chunks/789567124c4a15235952.js +1 -0
  79. package/assets/esri/core/workers/chunks/{a24dc5350af001db417a.js → 7affab0d0692bdb76036.js} +1 -1
  80. package/assets/esri/core/workers/chunks/{b6e628b5d2643af4c19b.js → 7b4063f45b45ad8a7289.js} +1 -1
  81. package/assets/esri/core/workers/chunks/7c22d3669087f38c92b9.js +1 -0
  82. package/assets/esri/core/workers/chunks/7cb7bdc30f970eb9ff7f.js +1 -0
  83. package/assets/esri/core/workers/chunks/7d71cf65bbc1b3308856.js +1 -0
  84. package/assets/esri/core/workers/chunks/81cdb9705f7eee9e792f.js +1 -0
  85. package/assets/esri/core/workers/chunks/821003fe1be30d5d29aa.js +1 -0
  86. package/assets/esri/core/workers/chunks/822b9c1e172c835b9624.js +1 -0
  87. package/assets/esri/core/workers/chunks/{a7dfca326883384d2751.js → 823228f1fa6ba4e8bff2.js} +1 -1
  88. package/assets/esri/core/workers/chunks/84021d57822f374217ef.js +1 -0
  89. package/assets/esri/core/workers/chunks/847ec6b337cfb2e4a15b.js +1 -0
  90. package/assets/esri/core/workers/chunks/84f41ddd7366bfbf5b25.js +1 -0
  91. package/assets/esri/core/workers/chunks/{c6e7c95391a54978402b.js → 893363ee500fc1288781.js} +1 -1
  92. package/assets/esri/core/workers/chunks/8b0cdbbf5c81283eae13.js +1 -0
  93. package/assets/esri/core/workers/chunks/{7850e306d7cd12653b23.js → 90de2f93b0ba1eb337fd.js} +1 -1
  94. package/assets/esri/core/workers/chunks/91b0035e3eae9e452fbc.js +1 -0
  95. package/assets/esri/core/workers/chunks/93262d3616ac0cc4b532.js +1 -0
  96. package/assets/esri/core/workers/chunks/9748a0db6451336d51ef.js +1 -0
  97. package/assets/esri/core/workers/chunks/{69a09c6acb5ae03c67f6.js → 985ce51da8ae4984a4db.js} +1 -1
  98. package/assets/esri/core/workers/chunks/9bbff9230298b1bac46a.js +1 -0
  99. package/assets/esri/core/workers/chunks/9cae59db5b9cb37baea9.js +1 -0
  100. package/assets/esri/core/workers/chunks/{ed2626a895ca1d4a7216.js → 9dbb9e74754392b066a8.js} +1 -1
  101. package/assets/esri/core/workers/chunks/9dd3863b9d7c1a5ea20a.js +1 -0
  102. package/assets/esri/core/workers/chunks/9e62cfcb4e0188d51294.js +1 -0
  103. package/assets/esri/core/workers/chunks/a2a3edec2ee31273d609.js +1 -0
  104. package/assets/esri/core/workers/chunks/{d0e8d0f8b4e4cc13e837.js → a301aa62a03d3618eba9.js} +1 -1
  105. package/assets/esri/core/workers/chunks/a39d595fc11afedc1875.js +1 -0
  106. package/assets/esri/core/workers/chunks/a57b506c538e2186909d.js +1 -0
  107. package/assets/esri/core/workers/chunks/a722114f01e66a608cec.js +1 -0
  108. package/assets/esri/core/workers/chunks/{5bda285f6ecf725676b3.js → a7b4821fd3080cf2756f.js} +1 -1
  109. package/assets/esri/core/workers/chunks/a8d91c2654c5012400b4.js +1 -0
  110. package/assets/esri/core/workers/chunks/aa70d98e6bcbd06a8461.js +1 -0
  111. package/assets/esri/core/workers/chunks/add538f52c7bcfd154da.js +1 -0
  112. package/assets/esri/core/workers/chunks/ae0b0a562f0ab57e1883.js +1 -0
  113. package/assets/esri/core/workers/chunks/b2c3652c8ce9597dcf89.js +1 -0
  114. package/assets/esri/core/workers/chunks/b725d944ecd5da02fd9e.js +1 -0
  115. package/assets/esri/core/workers/chunks/b7fbbbeabaa5bfcdeabc.js +1 -0
  116. package/assets/esri/core/workers/chunks/{70ead4c231cba4084cf4.js → b856ef3a949ca06a4af5.js} +1 -1
  117. package/assets/esri/core/workers/chunks/{ae2cd50c2b938b39417b.js → b8b4f68305a4f654fa75.js} +1 -1
  118. package/assets/esri/core/workers/chunks/{97107e64407fa6825620.js → ba324fd300b6e6a584ae.js} +1 -1
  119. package/assets/esri/core/workers/chunks/bc40b96080346b91e507.js +1 -0
  120. package/assets/esri/core/workers/chunks/c5ca8245113576b35acc.js +1 -0
  121. package/assets/esri/core/workers/chunks/{c7a0c4ca37ebd1d98cf1.js → c629a676b707138e7a1c.js} +1 -1
  122. package/assets/esri/core/workers/chunks/c8a1aa90ec6d455ff82d.js +1 -0
  123. package/assets/esri/core/workers/chunks/c8dd8b67100177109619.js +1 -0
  124. package/assets/esri/core/workers/chunks/c8eb8744f1ed9d1897dc.js +1 -0
  125. package/assets/esri/core/workers/chunks/ccc89208aad7206aabd9.js +1 -0
  126. package/assets/esri/core/workers/chunks/cebd6732fe573f79849c.js +1 -0
  127. package/assets/esri/core/workers/chunks/{c5ddf8b347c31fe772a3.js → d45769f8a02abe5d2917.js} +1 -1
  128. package/assets/esri/core/workers/chunks/d4b62e78bb27272a5f83.js +1 -0
  129. package/assets/esri/core/workers/chunks/d52b2a591e5e6abaa133.js +1 -0
  130. package/assets/esri/core/workers/chunks/{0978e12dd6a1cbc50b80.js → d572b125bed40a4d02b1.js} +1 -1
  131. package/assets/esri/core/workers/chunks/d65206fea850b1fc0712.js +1 -0
  132. package/assets/esri/core/workers/chunks/d6a42c936ead00ab7ad4.js +1 -0
  133. package/assets/esri/core/workers/chunks/d77887edc10d5be39ac9.js +1 -0
  134. package/assets/esri/core/workers/chunks/d7b9c16fe73f50a41099.js +1 -0
  135. package/assets/esri/core/workers/chunks/{7b6fd287e7043ad50f4e.js → d9bf0be2323e9df55834.js} +1 -1
  136. package/assets/esri/core/workers/chunks/dab98890d77a6b0b2741.js +1 -0
  137. package/assets/esri/core/workers/chunks/e2ac387e154d68fd10ca.js +1 -0
  138. package/assets/esri/core/workers/chunks/e39259ff441fb67cd3e4.js +1 -0
  139. package/assets/esri/core/workers/chunks/e3c152eeaa1c95f0f2d2.js +1 -0
  140. package/assets/esri/core/workers/chunks/e4ae0fad312467f218df.js +1 -0
  141. package/assets/esri/core/workers/chunks/e50cc686db878d0a9399.js +1 -0
  142. package/assets/esri/core/workers/chunks/e7cd5eeb15d3783f803d.js +1 -0
  143. package/assets/esri/core/workers/chunks/e8042584e422044ca1d1.js +1 -0
  144. package/assets/esri/core/workers/chunks/e89640667b71c1bb4ee3.js +1 -0
  145. package/assets/esri/core/workers/chunks/e9649aa2d0fdd28d91ac.js +1 -0
  146. package/assets/esri/core/workers/chunks/ee31801144602ce816d3.js +1 -0
  147. package/assets/esri/core/workers/chunks/eff8a1a880e0eb1a6814.js +1 -0
  148. package/assets/esri/core/workers/chunks/f2b7c61462f530d812c4.js +1 -0
  149. package/assets/esri/core/workers/chunks/f56404d401dfbce29473.js +1 -0
  150. package/assets/esri/core/workers/chunks/f87416f2aa791cd1bebe.js +1 -0
  151. package/assets/esri/core/workers/chunks/{f3744b12a5d0d8ca8621.js → fa65aafac2b99478c32a.js} +1 -1
  152. package/assets/esri/core/workers/chunks/fb14a0c8d2edf868838c.js +1 -0
  153. package/assets/esri/core/workers/chunks/fb8a24aa04bd2fa43241.js +1 -0
  154. package/assets/esri/core/workers/chunks/fbb27d2cef962f725180.js +1 -0
  155. package/assets/esri/core/workers/chunks/{3c6e7dcb79d13e8aecc5.js → fc965ace82bef4c6111b.js} +1 -1
  156. package/assets/esri/core/workers/chunks/{5954f02c3901b28d8e73.js → fd9382e5207b6da74b91.js} +1 -1
  157. package/assets/esri/core/workers/chunks/fdb370546be4ad552959.js +1 -0
  158. package/assets/esri/core/workers/chunks/fefac70ebe29dff54b4c.js +1 -0
  159. package/chunks/BlurEmission.glsl.js +4 -17
  160. package/chunks/Bufferer-CclWhXVb.js +1 -1
  161. package/chunks/ColorMaterial.glsl.js +1 -1
  162. package/chunks/Component.glsl.js +1 -1
  163. package/chunks/EmissionComposite.glsl.js +2 -2
  164. package/chunks/Envelope.js +1 -1
  165. package/chunks/Envelope2D.js +1 -1
  166. package/chunks/Fog.glsl.js +3 -3
  167. package/chunks/GeodeticDistanceCalculator-zRp89-dW.js +1 -1
  168. package/chunks/ImageMaterial.glsl.js +1 -1
  169. package/chunks/LineMarker.glsl.js +2 -2
  170. package/chunks/MultiPathImpl.js +1 -1
  171. package/chunks/OperatorGeodesicBuffer.js +1 -1
  172. package/chunks/OperatorGeodeticArea.js +1 -1
  173. package/chunks/OperatorShapePreservingProject.js +1 -1
  174. package/chunks/Point2D.js +1 -1
  175. package/chunks/RealisticAtmosphere.glsl.js +7 -9
  176. package/chunks/RealisticAtmosphereCompositing.glsl.js +6 -10
  177. package/chunks/RibbonLine.glsl.js +2 -2
  178. package/chunks/Terrain.glsl.js +27 -27
  179. package/chunks/UPCPointRenderer.glsl.js +100 -0
  180. package/chunks/UnitFactory.js +1 -1
  181. package/chunks/Water.glsl.js +24 -24
  182. package/chunks/arcade.js +1 -1
  183. package/chunks/arcgis-knowledge-client-core-simd.js +4 -4
  184. package/chunks/arcgis-knowledge-client-core.js +4 -4
  185. package/chunks/array.js +1 -1
  186. package/chunks/basis_encoder.js +3 -3
  187. package/chunks/basis_transcoder.js +2 -2
  188. package/chunks/draco_mesh_decoder.js +2 -2
  189. package/chunks/dxt_encoder.js +3 -3
  190. package/chunks/i3s.js +2 -2
  191. package/chunks/languageUtils.js +1 -1
  192. package/chunks/lclayout.js +3 -3
  193. package/chunks/lerc-wasm.js +1 -1
  194. package/chunks/lyr3DWorker.js +2 -2
  195. package/chunks/pe.js +1 -1
  196. package/chunks/projector.js +1 -1
  197. package/chunks/qb3-wasm.js +1 -1
  198. package/chunks/vxlLayer.js +2 -2
  199. package/colorUtils.js +1 -1
  200. package/config.js +1 -1
  201. package/core/AsyncUpdate.js +1 -1
  202. package/core/Clonable.js +1 -1
  203. package/core/Identifiable.js +1 -1
  204. package/core/Loadable.js +1 -1
  205. package/core/MultiOriginJSONSupport.js +1 -1
  206. package/core/NumericIdentifiable.js +1 -1
  207. package/core/Promise.js +1 -1
  208. package/core/ReadOnlyMultiOriginJSONSupport.js +1 -1
  209. package/core/accessorSupport/metadata.js +1 -1
  210. package/core/accessorSupport/trackingUtils.js +1 -1
  211. package/core/asyncUtils.js +1 -1
  212. package/core/handleUtils.js +1 -1
  213. package/core/mapCollectionUtils.js +1 -1
  214. package/core/reactiveUtils.js +1 -1
  215. package/core/sql/SqlTimestampOffset.js +1 -1
  216. package/core/sql/WhereClause.js +1 -1
  217. package/core/sql/WhereGrammar.js +1 -1
  218. package/core/sql/writeUtils.js +1 -1
  219. package/core/sql.js +1 -1
  220. package/core/urlUtils.js +1 -1
  221. package/core/workers/workers.js +1 -1
  222. package/geohash/GeohashCell.js +1 -1
  223. package/geohash/GeohashTree.js +1 -1
  224. package/geometry/coordinateConversion/CoordinateConversionModel.d.ts +11 -56
  225. package/geometry/coordinateConversion/support/Conversion.d.ts +5 -17
  226. package/geometry/coordinateConversion/support/Format.d.ts +6 -30
  227. package/geometry/coordinateConversion/types.d.ts +15 -15
  228. package/geometry/operators/reshapeOperator.js +1 -1
  229. package/geometry/support/MeshMaterial.js +1 -1
  230. package/geometry/support/MeshMaterialMetallicRoughness.js +1 -1
  231. package/geometry/support/meshUtils/elevationSampler.js +1 -1
  232. package/graphic/AggregateGraphicOrigin.js +1 -1
  233. package/graphic/AnnotationFeatureGraphicOrigin.js +1 -1
  234. package/graphic/BuildingGraphicOrigin.js +1 -1
  235. package/graphic/CSVGraphicOrigin.js +1 -1
  236. package/graphic/CatalogGraphicOrigin.js +1 -1
  237. package/graphic/DimensionFeatureGraphicOrigin.js +1 -1
  238. package/graphic/FeatureGraphicOrigin.js +1 -1
  239. package/graphic/GeoJSONGraphicOrigin.js +1 -1
  240. package/graphic/GeoRSSGraphicOrigin.js +1 -1
  241. package/graphic/ImageryGraphicOrigin.js +1 -1
  242. package/graphic/ImageryTileGraphicOrigin.js +1 -1
  243. package/graphic/KMLGraphicOrigin.js +1 -1
  244. package/graphic/KnowledgeGraphGraphicOrigin.js +1 -1
  245. package/graphic/LinkChartGraphicOrigin.js +1 -1
  246. package/graphic/MapImageGraphicOrigin.js +1 -1
  247. package/graphic/MapNotesGraphicOrigin.js +1 -1
  248. package/graphic/OGCFeatureGraphicOrigin.js +1 -1
  249. package/graphic/OrientedImageryGraphicOrigin.js +1 -1
  250. package/graphic/ParquetGraphicOrigin.js +1 -1
  251. package/graphic/PointCloudGraphicOrigin.js +1 -1
  252. package/graphic/SceneGraphicOrigin.js +1 -1
  253. package/graphic/SketchGraphicOrigin.js +1 -1
  254. package/graphic/StreamGraphicOrigin.js +1 -1
  255. package/graphic/SubtypeGroupGraphicOrigin.js +1 -1
  256. package/graphic/TileGraphicOrigin.js +1 -1
  257. package/graphic/TrackGraphicOrigin.js +1 -1
  258. package/graphic/VectorTileGraphicOrigin.js +1 -1
  259. package/graphic/VoxelGraphicOrigin.js +1 -1
  260. package/graphic/WCSGraphicOrigin.js +1 -1
  261. package/graphic/WFSGraphicOrigin.js +1 -1
  262. package/graphic/getLayerViewLayer.js +2 -0
  263. package/identity/IdentityManagerBase.js +1 -1
  264. package/kernel.js +1 -1
  265. package/layers/ElevationLayer.js +1 -1
  266. package/layers/LinkChartLayer.d.ts +1 -1
  267. package/layers/LinkChartLayer.js +1 -1
  268. package/layers/Lyr3DWasmPerSceneView.js +1 -1
  269. package/layers/PointCloudLayer.js +3 -3
  270. package/layers/VectorTileLayer.d.ts +17 -10
  271. package/layers/VoxelWasmPerSceneView.js +1 -1
  272. package/layers/WMTSLayer.js +1 -1
  273. package/layers/knowledgeGraph/KnowledgeGraphSublayerBase.js +1 -1
  274. package/layers/mixins/APIKeyMixin.js +1 -1
  275. package/layers/mixins/ArcGISCachedService.js +1 -1
  276. package/layers/mixins/ArcGISImageService.js +1 -1
  277. package/layers/mixins/ArcGISMapService.js +1 -1
  278. package/layers/mixins/ArcGISService.js +1 -1
  279. package/layers/mixins/BlendLayer.js +1 -1
  280. package/layers/mixins/CustomParametersMixin.js +1 -1
  281. package/layers/mixins/DataElementMixin.js +1 -1
  282. package/layers/mixins/DataSeriesLayer.js +1 -1
  283. package/layers/mixins/DisplayFilteredLayer.js +1 -1
  284. package/layers/mixins/EditBusLayer.js +1 -1
  285. package/layers/mixins/FeatureEffectLayer.js +1 -1
  286. package/layers/mixins/FeatureLayerBase.js +1 -1
  287. package/layers/mixins/FeatureReductionLayer.js +1 -1
  288. package/layers/mixins/HeightModelInfoMixin.js +1 -1
  289. package/layers/mixins/OperationalLayer.js +1 -1
  290. package/layers/mixins/OrderedLayer.js +1 -1
  291. package/layers/mixins/PortalLayer.js +1 -1
  292. package/layers/mixins/PublishableLayer.js +1 -1
  293. package/layers/mixins/RasterJobHandlerMixin.js +1 -1
  294. package/layers/mixins/RasterPresetRendererMixin.js +1 -1
  295. package/layers/mixins/RefreshableLayer.js +1 -1
  296. package/layers/mixins/ReloadableLayer.js +1 -1
  297. package/layers/mixins/ScaleRangeLayer.js +1 -1
  298. package/layers/mixins/SceneService.js +1 -1
  299. package/layers/mixins/SublayersOwner.js +1 -1
  300. package/layers/mixins/TemporalLayer.js +1 -1
  301. package/layers/mixins/TrackableLayer.js +1 -1
  302. package/layers/orientedImagery/transformations/utils.js +1 -1
  303. package/layers/raster/datasets/TIFFRaster.js +1 -1
  304. package/layers/raster/datasets/pixelReader.js +1 -1
  305. package/layers/raster/datasets/xmlUtilities.js +1 -1
  306. package/layers/raster/formats/Lerc.js +1 -1
  307. package/layers/raster/formats/Qb3.js +1 -1
  308. package/layers/raster/formats/TiffDecoder.js +1 -1
  309. package/layers/raster/formats/blosc.js +1 -1
  310. package/layers/raster/formats/tiffParser.js +1 -1
  311. package/layers/raster/formats/tiffSpatialReferenceUtils.js +2 -0
  312. package/layers/raster/formats/tiffTag.js +1 -1
  313. package/layers/raster/functions/colormaps.js +1 -1
  314. package/layers/support/TitleCreator.js +1 -1
  315. package/layers/support/WMTSSublayer.js +1 -1
  316. package/layers/support/geospatialPDFUtils.js +1 -1
  317. package/layers/support/imageUtils.js +1 -1
  318. package/layers/support/labelUtils.js +1 -1
  319. package/layers/support/tiles3DUtils.js +1 -1
  320. package/layers/video/VideoController.js +14 -14
  321. package/legend/ActiveLayerInfo.js +1 -1
  322. package/legend/support/sizeRampUtils.js +1 -1
  323. package/libs/basisu/BasisUEncoder.js +1 -1
  324. package/libs/basisu/BasisUTranscoder.js +1 -1
  325. package/libs/dracoMeshDecoder/dracoMeshDecoder.js +1 -1
  326. package/libs/dxtEncoder/DXTEncoder.js +1 -1
  327. package/libs/i3s/I3SModule.js +1 -1
  328. package/libs/librust-parquet/loadParquetModule.js +1 -1
  329. package/libs/librust-text/loadTextModule.js +1 -1
  330. package/libs/linkchartlayout/LinkChartLayout.js +1 -1
  331. package/libs/maquette-advanced-projector/projector.js +1 -1
  332. package/package.json +2 -2
  333. package/popup/FeaturesModel.d.ts +6 -0
  334. package/popup/FeaturesModel.js +1 -1
  335. package/portal/PortalUser.js +1 -1
  336. package/renderers/mixins/VisualVariablesMixin.js +1 -1
  337. package/renderers/visualVariables/VisualVariableFactory.js +1 -1
  338. package/rest/identify.js +1 -1
  339. package/rest/knowledgeGraph/wasmInterface/knowledgeWasmAccess.js +1 -1
  340. package/rest/layerSources/utils.js +1 -1
  341. package/rest/networks/validateNetworkTopology.js +1 -1
  342. package/rest/support/CameraInfoMixin.js +1 -1
  343. package/rest/support/NormalizationBinParametersMixin.js +1 -1
  344. package/rest/support/generateRendererUtils.js +1 -1
  345. package/smartMapping/raster/renderers/vectorField.js +1 -1
  346. package/smartMapping/renderers/type.js +1 -1
  347. package/smartMapping/support/adapters/FeatureLayerAdapter.js +1 -1
  348. package/smartMapping/support/adapters/FeatureLayerBinningAdapter.js +1 -1
  349. package/smartMapping/symbology/color.js +1 -1
  350. package/smartMapping/symbology/support/Theme.js +1 -1
  351. package/support/BasemapStyle.js +1 -1
  352. package/support/LayersMixin.js +1 -1
  353. package/support/TablesMixin.js +1 -1
  354. package/support/actions/ActionBase.d.ts +14 -2
  355. package/support/actions/ActionBase.js +1 -1
  356. package/support/actions/ActionButton.js +1 -1
  357. package/support/actions/ActionToggle.js +1 -1
  358. package/support/loadArcade.js +1 -1
  359. package/views/2d/engine/flow/styles/Imagery.js +1 -1
  360. package/views/2d/engine/flow/utils.js +1 -1
  361. package/views/2d/engine/vectorTiles/TextShaping.js +1 -1
  362. package/views/2d/engine/vectorTiles/TileHandler3D.js +1 -1
  363. package/views/2d/engine/vectorTiles/buckets/SymbolBucket.js +1 -1
  364. package/views/2d/engine/vectorTiles/shaders/VTLMaterial.js +1 -1
  365. package/views/2d/engine/webgl/GlyphWorker.js +1 -1
  366. package/views/2d/engine/webgl/cpuMapped/CpuMeshData.js +1 -1
  367. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/AFeatureShader.js +1 -1
  368. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/bitmapUtils.js +1 -1
  369. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/surface.js +1 -1
  370. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/utils.js +1 -1
  371. package/views/2d/engine/webgl/shaderGraph/techniques/text/TextShader.js +1 -1
  372. package/views/2d/layerViewModuleImportUtils.js +1 -1
  373. package/views/2d/layers/BitmapTileLayerView2D.js +1 -1
  374. package/views/2d/layers/ImageryLayerView2D.js +1 -1
  375. package/views/2d/layers/LayerView2D.js +1 -1
  376. package/views/2d/layers/MapImageLayerView2D.js +1 -1
  377. package/views/2d/layers/TileLayerView2D.js +1 -1
  378. package/views/2d/layers/features/FeatureContainer.js +1 -1
  379. package/views/2d/layers/features/layerAdapters/AnnotationLayerAdapter.js +1 -1
  380. package/views/2d/layers/features/support/AttributeStore.js +1 -1
  381. package/views/2d/layers/features/support/DisplayIdGenerator.js +1 -1
  382. package/views/2d/layers/features/support/FeatureSetReader.js +1 -1
  383. package/views/2d/layers/support/visualVariableSimpleUtils.js +1 -1
  384. package/views/3d/analysis/ShadowCastAnalysisView3D.js +1 -1
  385. package/views/3d/layerViewModuleImportUtils.js +1 -1
  386. package/views/3d/layers/BuildingSublayerView3D.js +1 -1
  387. package/views/3d/layers/DynamicLayerView3D.js +1 -1
  388. package/views/3d/layers/FeatureLikeLayerView3D.js +1 -1
  389. package/views/3d/layers/FeatureLikeLayerViewBase3D.js +1 -1
  390. package/views/3d/layers/GaussianSplatLayerView3D.js +1 -1
  391. package/views/3d/layers/I3SMeshView3D.js +1 -1
  392. package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
  393. package/views/3d/layers/LayerView3D.js +1 -1
  394. package/views/3d/layers/Lyr3DWorker.js +1 -1
  395. package/views/3d/layers/PointCloudIntersector.js +2 -0
  396. package/views/3d/layers/PointCloudLayerView3D.js +1 -1
  397. package/views/3d/layers/SceneLayerWorker.js +1 -1
  398. package/views/3d/layers/TiledLayerView3D.js +1 -1
  399. package/views/3d/layers/UPCPointRenderer.js +2 -0
  400. package/views/3d/layers/UPCPointRendererNode.js +2 -0
  401. package/views/3d/layers/UpdatablePointCloudLayerView3D.js +2 -0
  402. package/views/3d/layers/graphics/Graphics3DExtrudeSymbolLayer.js +1 -1
  403. package/views/3d/layers/i3s/PointCloudHighlights.js +1 -1
  404. package/views/3d/layers/i3s/PointCloudNodeHighlights.js +2 -0
  405. package/views/3d/layers/i3s/PointCloudRenderer.js +1 -1
  406. package/views/3d/layers/i3s/PointCloudRendererNode.js +1 -1
  407. package/views/3d/layers/support/DefinitionExpressionSceneLayerView.js +1 -1
  408. package/views/3d/layers/support/GraphicsProcessorLayerView3D.js +1 -1
  409. package/views/3d/layers/support/PopupSceneLayerView.js +1 -1
  410. package/views/3d/layers/support/TemporalSceneLayerView.js +1 -1
  411. package/views/3d/layers/support/Tiles3DLayerViewRegistration.js +1 -1
  412. package/views/3d/state/utils/groundNavigationUtils.js +1 -1
  413. package/views/3d/support/QualityProfile.js +1 -1
  414. package/views/3d/support/QualitySettings.js +1 -1
  415. package/views/3d/support/cameraUtils.js +1 -1
  416. package/views/3d/support/engineContent/sdfPrimitives.js +1 -1
  417. package/views/3d/support/flow/FlowSubViewTiles3D.js +1 -1
  418. package/views/3d/support/gaussianSplatting/GaussianSplatDataStore.js +1 -1
  419. package/views/3d/terrain/TerrainRenderer.js +1 -1
  420. package/views/3d/webgl/RenderNode.js +1 -1
  421. package/views/3d/webgl-engine/collections/Component/DepthRange.js +1 -1
  422. package/views/3d/webgl-engine/collections/Component/Material/ComponentData.glsl.js +9 -9
  423. package/views/3d/webgl-engine/collections/Component/RenderSubmitSystem.js +1 -1
  424. package/views/3d/webgl-engine/core/renderPasses/RenderPassManager.js +1 -1
  425. package/views/3d/webgl-engine/core/shaderLibrary/attributes/RibbonVertexPosition.glsl.js +19 -19
  426. package/views/3d/webgl-engine/core/shaderLibrary/outputEmission.glsl.js +5 -0
  427. package/views/3d/webgl-engine/core/shaderLibrary/{util/CloudsParallaxShading.glsl.js → renderClouds.glsl.js} +5 -4
  428. package/views/3d/webgl-engine/core/shaderLibrary/shading/evaluateSceneLightingFragment.glsl.js +2 -2
  429. package/views/3d/webgl-engine/core/shaderLibrary/shading/forwardLocalUp.glsl.js +1 -5
  430. package/views/3d/webgl-engine/core/shaderLibrary/shading/readShadow.glsl.js +7 -7
  431. package/views/3d/webgl-engine/core/shaderLibrary/terrain/Overlay.glsl.js +1 -1
  432. package/views/3d/webgl-engine/core/shaderLibrary/terrain/blendLayers.glsl.js +9 -9
  433. package/views/3d/webgl-engine/core/shaderLibrary/util/View.glsl.js +1 -1
  434. package/views/3d/webgl-engine/core/shaderModules/glsl.js +1 -1
  435. package/views/3d/webgl-engine/core/shaderTechnique/ShaderTechniqueRepository.js +1 -1
  436. package/views/3d/webgl-engine/effects/RenderNodes.js +1 -1
  437. package/views/3d/webgl-engine/effects/RenderPluginManager.js +1 -1
  438. package/views/3d/webgl-engine/effects/atmosphere/RealisticAtmosphere.glsl.js +1 -1
  439. package/views/3d/webgl-engine/effects/atmosphere/RealisticAtmosphere.js +1 -1
  440. package/views/3d/webgl-engine/effects/atmosphere/RealisticAtmosphereCompositing.glsl.js +1 -1
  441. package/views/3d/webgl-engine/effects/atmosphere/RealisticAtmosphereConfiguration.js +1 -1
  442. package/views/3d/webgl-engine/effects/fog/Fog.js +1 -1
  443. package/views/3d/webgl-engine/effects/glow/applyEmissiveGlow.glsl.js +30 -53
  444. package/views/3d/webgl-engine/lib/EmissionComposite.glsl.js +1 -1
  445. package/views/3d/webgl-engine/lib/EmissionComposite.js +1 -1
  446. package/views/3d/webgl-engine/lib/GaussianSplatShadows.js +1 -1
  447. package/views/3d/webgl-engine/lib/PathGeometry.js +1 -1
  448. package/views/3d/webgl-engine/lib/RenderGeometry.js +1 -1
  449. package/views/3d/webgl-engine/lib/Renderer.js +1 -1
  450. package/views/3d/webgl-engine/lib/depthRangeUtils.js +1 -1
  451. package/views/3d/webgl-engine/lib/lodRendering/LodRenderer.js +1 -1
  452. package/views/3d/webgl-engine/materials/HUDMaterialBaseInstance.js +1 -1
  453. package/views/3d/webgl-engine/materials/LineCalloutMaterialBaseInstance.js +1 -1
  454. package/views/3d/webgl-engine/materials/Water.glsl.js +1 -1
  455. package/views/3d/webgl-engine/materials/getWaterColor.glsl.js +15 -15
  456. package/views/3d/webgl-engine/materials/renderers/BufferCache.js +1 -1
  457. package/views/3d/webgl-engine/shaders/OutputColorHighlightOLID.glsl.js +12 -14
  458. package/views/3d/webgl-engine/shaders/Terrain.glsl.js +1 -1
  459. package/views/3d/webgl-engine/shaders/TerrainTechniqueConfiguration.js +1 -1
  460. package/views/3d/webgl-engine/shaders/UPCPointRenderer.glsl.js +2 -0
  461. package/views/3d/webgl-engine/shaders/UPCPointRendererTechnique.js +2 -0
  462. package/views/3d/webgl-engine/shaders/UPCPointRendererTechniqueConfiguration.js +2 -0
  463. package/views/BreakpointsOwner.js +1 -1
  464. package/views/DOMContainer.js +1 -1
  465. package/views/PopupView.js +1 -1
  466. package/views/View.d.ts +27 -1
  467. package/views/View.js +1 -1
  468. package/views/Viewport2DBaseMixin.js +1 -1
  469. package/views/Viewport2DMixin.js +1 -1
  470. package/views/animation/pointToPoint/Animation.js +1 -1
  471. package/views/interactive/Tooltip.d.ts +1 -1
  472. package/views/interactive/Tooltip.js +1 -1
  473. package/views/interactive/tooltip/components/TooltipEditableField.js +1 -1
  474. package/views/interactive/tooltip/content/TooltipContent.js +1 -1
  475. package/views/interactive/tooltip/infos/DynamicTooltipInfo.js +1 -1
  476. package/views/interactive/tooltip/infos/TooltipInfoWithCoordinates.js +1 -1
  477. package/views/layers/MapImageLayerView.js +1 -1
  478. package/views/layers/PointCloudLayerView.js +1 -1
  479. package/views/layers/RefreshableLayerView.js +1 -1
  480. package/views/layers/WMSLayerView.js +1 -1
  481. package/views/overlay/ViewOverlay.js +1 -1
  482. package/views/support/flow/utils.js +1 -1
  483. package/views/support/screenshotUtils.js +1 -1
  484. package/views/types.d.ts +15 -0
  485. package/views/webgl/AllocationTracer.js +1 -1
  486. package/views/webgl/InstanceCounter.js +1 -1
  487. package/views/webgl/RenderingContext.js +1 -1
  488. package/views/webgl/ShaderBuilder.js +23 -23
  489. package/views/webgl/ShaderTranspiler.js +1 -1
  490. package/views/webgl/capabilities/DisjointTimerQuery.js +1 -1
  491. package/views/webgl/capabilities.js +1 -1
  492. package/widgets/CoordinateConversion/CoordinateConversionViewModel.d.ts +1 -1
  493. package/widgets/CoordinateConversion/support/Conversion.d.ts +1 -0
  494. package/widgets/CoordinateConversion/support/Format.d.ts +1 -0
  495. package/widgets/Editor/EditorViewModel.js +1 -1
  496. package/widgets/Editor/workflowUtils.js +1 -1
  497. package/widgets/Feature/support/FeatureContentMixin.js +1 -1
  498. package/widgets/FeatureTable/support/EditableColumnTemplateMixin.js +1 -1
  499. package/widgets/Legend/support/ActiveLayerInfo.js +1 -1
  500. package/widgets/Legend/support/sizeRampUtils.js +1 -1
  501. package/widgets/OrientedImageryViewer/adapters/sketch/DataCaptureAdapter.js +1 -1
  502. package/widgets/OrientedImageryViewer/mixins/DrawHandlerMixin.js +1 -1
  503. package/widgets/OrientedImageryViewer/mixins/ImageMeasurementMixin.js +1 -1
  504. package/widgets/OrientedImageryViewer/mixins/SketchHandlerMixin.js +1 -1
  505. package/widgets/OrientedImageryViewer/mixins/TriangulatedImageMeasurementMixin.js +1 -1
  506. package/widgets/OrientedImageryViewer/mixins/TriangulatedSketchHandlerMixin.js +1 -1
  507. package/widgets/ShadowCast/ShadowCastViewModel.js +1 -1
  508. package/widgets/Sketch/support/ResponsiveToolbar/ToolbarGroupBase.js +1 -1
  509. package/widgets/smartMapping/support/utils.js +1 -1
  510. package/widgets/support/AnalysisViewModelMixin.js +1 -1
  511. package/widgets/support/AnchorElementViewModel.js +1 -1
  512. package/widgets/support/GoTo.js +1 -1
  513. package/widgets/support/InteractiveToolViewModelMixin.js +1 -1
  514. package/assets/esri/core/workers/chunks/0329fa3aa3403f1c243b.js +0 -1
  515. package/assets/esri/core/workers/chunks/04f09e1afda92cbe09f5.js +0 -1
  516. package/assets/esri/core/workers/chunks/0a97b1974367382cfdf5.js +0 -1
  517. package/assets/esri/core/workers/chunks/0b74d353f80974ff6fea.js +0 -1
  518. package/assets/esri/core/workers/chunks/0e100855bb3832a68e4b.js +0 -1
  519. package/assets/esri/core/workers/chunks/0ede8ba757fd0976d485.js +0 -1
  520. package/assets/esri/core/workers/chunks/0f39576806866cff777d.js +0 -1
  521. package/assets/esri/core/workers/chunks/0fea695721a818955abf.js +0 -1
  522. package/assets/esri/core/workers/chunks/10499abb7678e95d9f05.js +0 -1
  523. package/assets/esri/core/workers/chunks/110f78d5e78732750097.js +0 -1
  524. package/assets/esri/core/workers/chunks/1507297550c3cd1268e2.js +0 -1
  525. package/assets/esri/core/workers/chunks/21aa29039a95debd7f44.js +0 -1
  526. package/assets/esri/core/workers/chunks/29b74a3ff03d3c8b65dc.js +0 -1
  527. package/assets/esri/core/workers/chunks/2a84c9a81ec2bed3d4e5.js +0 -1
  528. package/assets/esri/core/workers/chunks/2ad6db80a508285a3e5d.js +0 -1
  529. package/assets/esri/core/workers/chunks/2b87d5b8931305b11ff6.js +0 -1
  530. package/assets/esri/core/workers/chunks/2f07dc632e51fddb2d48.js +0 -1
  531. package/assets/esri/core/workers/chunks/2f9adf0b809ce8797ebf.js +0 -1
  532. package/assets/esri/core/workers/chunks/3169d639ab54bf508e2c.js +0 -1
  533. package/assets/esri/core/workers/chunks/3354f1fa90f8ce4c8fde.js +0 -1
  534. package/assets/esri/core/workers/chunks/3809a8b3f31bb811d964.js +0 -1
  535. package/assets/esri/core/workers/chunks/38bba952c38af5a150e7.js +0 -1
  536. package/assets/esri/core/workers/chunks/3982409149571a827390.js +0 -1
  537. package/assets/esri/core/workers/chunks/3aea09191b737dc1de70.js +0 -1
  538. package/assets/esri/core/workers/chunks/3b11e4d2e69b7aea1d65.js +0 -1
  539. package/assets/esri/core/workers/chunks/3c1651e9e8d2e83d22df.js +0 -1
  540. package/assets/esri/core/workers/chunks/3df6631895d0a7109e00.js +0 -1
  541. package/assets/esri/core/workers/chunks/3e8d70039800f2395d66.js +0 -1
  542. package/assets/esri/core/workers/chunks/3f8d66d8447036f122ae.js +0 -1
  543. package/assets/esri/core/workers/chunks/420c6a14107a77ddad36.js +0 -1
  544. package/assets/esri/core/workers/chunks/421b8244d01736d82e7a.js +0 -1
  545. package/assets/esri/core/workers/chunks/457bd1bd37c67b61efe8.js +0 -1
  546. package/assets/esri/core/workers/chunks/48b60ff59afbae865de1.js +0 -1
  547. package/assets/esri/core/workers/chunks/4953314fd9afd52b6eec.js +0 -1
  548. package/assets/esri/core/workers/chunks/4cf8bddc3e0619e34424.js +0 -1
  549. package/assets/esri/core/workers/chunks/4d0bb5e4a1d789cc0d75.js +0 -1
  550. package/assets/esri/core/workers/chunks/4d8539674fc2e4fea03c.js +0 -1
  551. package/assets/esri/core/workers/chunks/5060be52a380fc4920f8.js +0 -1
  552. package/assets/esri/core/workers/chunks/5082cdc3e91e1c6d1070.js +0 -1
  553. package/assets/esri/core/workers/chunks/52ded087d19a93e29d93.js +0 -1
  554. package/assets/esri/core/workers/chunks/53bbb9aa6e4e4a0a8121.js +0 -1
  555. package/assets/esri/core/workers/chunks/54d3cb7d95d948998591.js +0 -1
  556. package/assets/esri/core/workers/chunks/560ebf5524ade7d1f85b.js +0 -1
  557. package/assets/esri/core/workers/chunks/5d75fcaded78f76efd3e.js +0 -1
  558. package/assets/esri/core/workers/chunks/5f7505ada0991cfbdd84.js +0 -1
  559. package/assets/esri/core/workers/chunks/601d668e70c5d72fe58c.js +0 -1
  560. package/assets/esri/core/workers/chunks/6737b2a4a70bbdafaf67.js +0 -1
  561. package/assets/esri/core/workers/chunks/6a339a47e765b9937dd7.js +0 -1
  562. package/assets/esri/core/workers/chunks/6c21964eb7c25c8b1e9a.js +0 -1
  563. package/assets/esri/core/workers/chunks/6fd10891506925560443.js +0 -29
  564. package/assets/esri/core/workers/chunks/71a05edd6f7f3197e621.js +0 -1
  565. package/assets/esri/core/workers/chunks/72b7e7b518c88b7569dd.js +0 -1
  566. package/assets/esri/core/workers/chunks/73918ca7fdf41272d941.js +0 -1
  567. package/assets/esri/core/workers/chunks/75274ac3ddf7c45f47d7.js +0 -1
  568. package/assets/esri/core/workers/chunks/7673217a688d739141e2.js +0 -1
  569. package/assets/esri/core/workers/chunks/76869c14dd7ffaae7eff.js +0 -1
  570. package/assets/esri/core/workers/chunks/7b156905d168bf973518.js +0 -1
  571. package/assets/esri/core/workers/chunks/7baa49055bc31618b56e.js +0 -1
  572. package/assets/esri/core/workers/chunks/7bd5a074d9f4ba137649.js +0 -1
  573. package/assets/esri/core/workers/chunks/7c13d7754fc914a87817.js +0 -1
  574. package/assets/esri/core/workers/chunks/7dc2e714234b2cee8701.js +0 -1
  575. package/assets/esri/core/workers/chunks/80d1267606383ae537f2.js +0 -1
  576. package/assets/esri/core/workers/chunks/835e0315661003caa71f.js +0 -1
  577. package/assets/esri/core/workers/chunks/8570e3df90fb76a8741a.js +0 -1
  578. package/assets/esri/core/workers/chunks/86578c191d76062157ec.js +0 -1
  579. package/assets/esri/core/workers/chunks/87d6e99d83db9a8cda7c.js +0 -1
  580. package/assets/esri/core/workers/chunks/8c9934d30655dd2c48da.js +0 -1
  581. package/assets/esri/core/workers/chunks/9117c9b720c9ba6e7a6e.js +0 -1
  582. package/assets/esri/core/workers/chunks/939fb9a8c301ace07186.js +0 -1
  583. package/assets/esri/core/workers/chunks/94a38c9b3d086b37242f.js +0 -1
  584. package/assets/esri/core/workers/chunks/98e1751f888975532afc.js +0 -1
  585. package/assets/esri/core/workers/chunks/9d61f10f2bef15b5811d.js +0 -1
  586. package/assets/esri/core/workers/chunks/9dcf5be203f8b1e47d9d.js +0 -1
  587. package/assets/esri/core/workers/chunks/9e372af03d62fa5ad10e.js +0 -1
  588. package/assets/esri/core/workers/chunks/9eb00bb8dab995c2dcb3.js +0 -1
  589. package/assets/esri/core/workers/chunks/9ed81757937fe08363ed.js +0 -1
  590. package/assets/esri/core/workers/chunks/9fe07947cf4ec44014e8.js +0 -1
  591. package/assets/esri/core/workers/chunks/a1d265614d038eb603f7.js +0 -1
  592. package/assets/esri/core/workers/chunks/a3d02885d6962b49eee4.js +0 -1
  593. package/assets/esri/core/workers/chunks/a66d6298236d59a615db.js +0 -1
  594. package/assets/esri/core/workers/chunks/a710c7a0584d9e45a469.js +0 -1
  595. package/assets/esri/core/workers/chunks/ab784764ddf9d7f693a1.js +0 -1
  596. package/assets/esri/core/workers/chunks/ace210d313ce53f3ae10.js +0 -1
  597. package/assets/esri/core/workers/chunks/b7426e5f290573cb9689.js +0 -1
  598. package/assets/esri/core/workers/chunks/b88e1084097a93a89f61.js +0 -1
  599. package/assets/esri/core/workers/chunks/baa5aa0670b23db86b50.js +0 -1
  600. package/assets/esri/core/workers/chunks/c0867890a84b4c98e0ba.js +0 -1
  601. package/assets/esri/core/workers/chunks/c1a551c4aa77f123d091.js +0 -1
  602. package/assets/esri/core/workers/chunks/c58f859dec9d6675dbd6.js +0 -1
  603. package/assets/esri/core/workers/chunks/c7425fb5e804f0f9d4dd.js +0 -1
  604. package/assets/esri/core/workers/chunks/c85184baccb4004bf42b.js +0 -1
  605. package/assets/esri/core/workers/chunks/ccf4b5fdcdace533bcb7.js +0 -1
  606. package/assets/esri/core/workers/chunks/d5bb6f479c0cdfc21d8a.js +0 -1
  607. package/assets/esri/core/workers/chunks/d689e7c685dd9a444d19.js +0 -1
  608. package/assets/esri/core/workers/chunks/d8b84d21144a58b6b911.js +0 -1
  609. package/assets/esri/core/workers/chunks/d8ffb1502def5c85740b.js +0 -1
  610. package/assets/esri/core/workers/chunks/db96d1d9f6d1a4d7fd2a.js +0 -1
  611. package/assets/esri/core/workers/chunks/de35baceeb815e6befd5.js +0 -1
  612. package/assets/esri/core/workers/chunks/e0341def2d81e679a200.js +0 -1
  613. package/assets/esri/core/workers/chunks/e164198dbb87ee202ba1.js +0 -1
  614. package/assets/esri/core/workers/chunks/e4eb6fdf5115bed48856.js +0 -1
  615. package/assets/esri/core/workers/chunks/e566102c7ed7a8ebf89e.js +0 -1
  616. package/assets/esri/core/workers/chunks/e59271f8b142a7602b7a.js +0 -1
  617. package/assets/esri/core/workers/chunks/eef3fa804e456beac4c1.js +0 -1
  618. package/assets/esri/core/workers/chunks/f319b59228b64e7f9008.js +0 -1
  619. package/assets/esri/core/workers/chunks/f42adcea81390fb21c66.js +0 -1
  620. package/assets/esri/core/workers/chunks/f4fcf87da4495584223d.js +0 -1
  621. package/assets/esri/core/workers/chunks/f52d081bbde5c95265cf.js +0 -1
  622. package/assets/esri/core/workers/chunks/f7ab4bf14ec8e986ef7c.js +0 -1
  623. package/assets/esri/core/workers/chunks/f92c92c0fd1b5b33ca21.js +0 -1
  624. package/assets/esri/core/workers/chunks/f989588dfdbb69056491.js +0 -1
  625. package/assets/esri/core/workers/chunks/fbd5f3b81cd9f061824d.js +0 -1
  626. package/assets/esri/core/workers/chunks/fc5b920f9756e11c2f88.js +0 -1
  627. package/assets/esri/core/workers/chunks/fdcc5fe4630a4ccf58de.js +0 -1
  628. package/assets/esri/core/workers/chunks/ff0a0819bba5e8264c47.js +0 -1
  629. package/assets/esri/core/workers/chunks/ff225735eba7f9130e19.js +0 -1
@@ -1 +0,0 @@
1
- "use strict";(Array.isArray(self.webpackChunkRemoteClient)?self.webpackChunkRemoteClient:self.webpackChunkRemoteClient=[]).push([[1737],{40876(e,t,n){n.d(t,{Eq:()=>m,G1:()=>g,Q6:()=>b,TS:()=>l,V6:()=>r,Vm:()=>f,ay:()=>o,c1:()=>p,c4:()=>a,iw:()=>v,j5:()=>u,lT:()=>c,oW:()=>h,xV:()=>_});const i={transparent:[0,0,0,0],black:[0,0,0,1],silver:[192,192,192,1],gray:[128,128,128,1],white:[255,255,255,1],maroon:[128,0,0,1],red:[255,0,0,1],purple:[128,0,128,1],fuchsia:[255,0,255,1],green:[0,128,0,1],lime:[0,255,0,1],olive:[128,128,0,1],yellow:[255,255,0,1],navy:[0,0,128,1],blue:[0,0,255,1],teal:[0,128,128,1],aqua:[0,255,255,1],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],blanchedalmond:[255,235,205,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],oldlace:[253,245,230,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],rebeccapurple:[102,51,153,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],whitesmoke:[245,245,245,1],yellowgreen:[154,205,50,1]};function r(e){return!!i[e]||!!i[e.toLowerCase()]}function l(e){return i[e]??i[e.toLowerCase()]}function a(e){return[...l(e)]}function s(e,t,n){n<0&&++n,n>1&&--n;let i=6*n;return i<1?e+(t-e)*i:2*n<1?t:3*n<2?e+(t-e)*(2/3-n)*6:e}function o(e,t,n,i=1){let r=(e%360+360)%360/360,l=n<=.5?n*(t+1):n+t-n*t,a=2*n-l;return[Math.round(255*s(a,l,r+1/3)),Math.round(255*s(a,l,r)),Math.round(255*s(a,l,r-1/3)),i]}function u(e){let t=e.length>5,n=t?8:4,i=(1<<n)-1,r=t?1:17,l=t?9===e.length:5===e.length,a=Number("0x"+e.slice(1));if(isNaN(a))return null;let s,o=[0,0,0,1];return l&&(s=a&i,a>>=n,o[3]=r*s/255),s=a&i,a>>=n,o[2]=r*s,s=a&i,a>>=n,o[1]=r*s,s=a&i,a>>=n,o[0]=r*s,o}function h(e){if(!e.startsWith("#")||isNaN(Number(`0x${e.slice(1)}`)))return null;switch(e.length){case 4:case 5:{let t=parseInt(e.slice(1,2),16),n=parseInt(e.slice(2,3),16),i=parseInt(e.slice(3,4),16),r=4===e.length?15:parseInt(e.slice(4),16);return[t+16*t,n+16*n,i+16*i,(r+16*r)/255]}case 7:case 9:return[parseInt(e.slice(1,3),16),parseInt(e.slice(3,5),16),parseInt(e.slice(5,7),16),(7===e.length?255:parseInt(e.slice(7),16))/255];default:return null}}function c(e){let t=e.toLowerCase().match(/^(rgba?|hsla?)\(([\s.\-,%0-9]+)\)/);if(t){let e=t[2].split(/\s*,\s*/),n=t[1];if("rgb"===n&&3===e.length||"rgba"===n&&4===e.length){if(e[0].endsWith("%")){let t=e.map(e=>2.56*parseFloat(e));return 4===e.length&&(t[3]=parseFloat(e[3])),d(t)}return d(e.map(e=>parseFloat(e)))}if("hsl"===n&&3===e.length||"hsla"===n&&4===e.length)return o(parseFloat(e[0]),parseFloat(e[1])/100,parseFloat(e[2])/100,parseFloat(e[3]??"1"))}return null}function d(e){return e[0]=p(e[0]),e[1]=p(e[1]),e[2]=p(e[2]),e[3]=4===e.length?g(e[3]):1,e}function m(e){let t=r(e)?l(e):null;return t??=c(e),t??=h(e),t}function f(e){let t=m(e);return null==t?null:[t[0]/255,t[1]/255,t[2]/255,t[3]]}function g(e){return y(e,0,1)}function p(e){return Math.round(y(e,0,255))}function y(e,t,n){return e=Number(e),isNaN(e)?n:e<t?t:e>n?n:e}const v=1/2.2;function b(e){return e**2.2}function _(e){return e**v}},7762(e,t,n){var i,r=n(32198),l=n(10107),a=n(7695),s=n(64108),o=n(56507),u=n(62788),h=n(95488),c=n(98291),d=n(4576),m=n(65529),f=n(36563),g=n(4718),p=n(53966),y=n(93687),v=n(76030),b=n(12195);class _{constructor(){this.target=null,this.cancellable=!1,this.defaultPrevented=!1,this.item=void 0,this.type=void 0}preventDefault(){this.cancellable&&(this.defaultPrevented=!0)}reset(e){this.defaultPrevented=!1,this.item=e}}class M{constructor(e,t,n,i,r){this.target=e,this.added=t,this.removed=n,this.start=i,this.deleteCount=r}}const w=new y.A(()=>new _,void 0,e=>{e.item=null,e.target=null,e.defaultPrevented=!1,e.cancellable=!1});function T(e){e&&"object"==typeof e&&"destroy"in e&&"function"==typeof e.destroy&&e.destroy()}function x(e){return e?e instanceof N?e.toArray():e.length?Array.prototype.slice.apply(e):[]:[]}function F(e){if(e?.length)return e[0]}function C(e,t,n,i){let r=Math.min(e.length-n,t.length-i),l=0;for(;l<r&&e[n+l]===t[i+l];)l++;return l}function S(e,t,n,i){t&&t.forEach((t,r,l)=>{e.push(t),S(e,n.call(i,t,r,l),n,i)})}const z=new Set,V=new Set,D=new Set,I=new Map;let k=0,N=i=class extends m.nJ{static ofType(e){if(!e)return i;if(I.has(e))return I.get(e);let t=null;if("function"==typeof e)t=e.prototype.declaredClass;else if(e.base)t=e.base.prototype.declaredClass;else for(let n in e.typeMap){let i=e.typeMap[n].prototype.declaredClass;t?t+=` | ${i}`:t=i}let n=class extends i{};return(0,r.Cg)([(0,a.u)({Type:e,ensureType:"function"==typeof e?(0,o.dp)(e):(0,o.aq)(e)})],n.prototype,"itemType",void 0),n=(0,r.Cg)([(0,s.$K)(`esri.core.Collection<${t}>`)],n),I.set(e,n),n}static isCollection(e){return null!=e&&e instanceof i}constructor(e){super(function(e){return e?(0,d.yc)(e)||e instanceof N?{items:e}:e:{}}(e)),this._chgListeners=[],this._notifications=null,this._updating=!1,this._timer=null,this._observable=new h.I,this._length=0,this._items=[],Object.defineProperty(this,"uid",{value:k++})}destroy(){this._removeAllRaw(),this._timer&&this._timer.remove(),super.destroy(),this._notifications=null}*[Symbol.iterator](){yield*this.items}get length(){return this._length}set length(e){e>this._length?p.A.getLogger(this).error("#length=","Cannot increase the length of the collection by assigning to the length property."):this.splice(e,Math.max(0,this._length-e))}get items(){return(0,u.gc)(this._observable),this._items}set items(e){this._emitBeforeChanges(1)||(this._splice(0,this.length,x(e)),this._emitAfterChanges(1))}hasEventListener(e){return!this.destroyed&&("change"===e?this._chgListeners.length>0:super.hasEventListener(e))}on(e,t){if(this.destroyed)return(0,f.hA)();if("change"===e){let e=this._chgListeners,n={removed:!1,callback:t};return e.push(n),this._notifications&&this._notifications.push({listeners:e.slice(),items:this._items.slice(),changes:[]}),(0,f.hA)(()=>{n.removed=!0,e.splice(e.indexOf(n),1)})}return super.on(e,t)}once(e,t){let n="deref"in t?()=>t.deref():()=>t,i=this.on(e,e=>{n()?.call(null,e),i.remove()});return i}add(e,t){if((0,u.gc)(this._observable),this._emitBeforeChanges(1))return this;let n=this.getNextIndex(t??null);return this._splice(n,0,[e]),this._emitAfterChanges(1),this}addMany(e,t=this._items.length){if((0,u.gc)(this._observable),!e?.length||this._emitBeforeChanges(1))return this;let n=this.getNextIndex(t);return this._splice(n,0,x(e)),this._emitAfterChanges(1),this}at(e){if((0,u.gc)(this._observable),(e=Math.trunc(e)||0)<0&&(e+=this.length),!(e<0||e>=this.length))return this._items[e]}removeAll(){if((0,u.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return[];let e=this._removeAllRaw();return this._emitAfterChanges(2),e}_removeAllRaw(){return 0===this.length?[]:this._splice(0,this.length)||[]}clone(){return(0,u.gc)(this._observable),this._createNewInstance({items:this._items.map(g.o8)})}concat(...e){(0,u.gc)(this._observable);let t=e.map(x);return this._createNewInstance({items:this._items.concat(...t)})}drain(e,t){if((0,u.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return;let n=this._splice(0,this.length),i=n.length;for(let r=0;r<i;r++)e.call(t,n[r],r,n);this._emitAfterChanges(2)}destroyAll(){this.drain(T)}destroyMany(e){let t=this.removeMany(e);return t.forEach(T),t}every(e,t){return(0,u.gc)(this._observable),this._items.every(e,t)}filter(e,t){(0,u.gc)(this._observable);let n=2===arguments.length?this._items.filter(e,t):this._items.filter(e);return this._createNewInstance({items:n})}find(e,t){return(0,u.gc)(this._observable),this._items.find(e,t)}findIndex(e,t){return(0,u.gc)(this._observable),this._items.findIndex(e,t)}findLast(e,t){return(0,u.gc)(this._observable),this._items.findLast(e,t)}findLastIndex(e,t){return(0,u.gc)(this._observable),this._items.findLastIndex(e,t)}flatten(e,t){(0,u.gc)(this._observable);let n=[];return S(n,this,e,t),new i(n)}forEach(e,t){return(0,u.gc)(this._observable),this._items.forEach(e,t)}getItemAt(e){return(0,u.gc)(this._observable),this._items[e]}getNextIndex(e){(0,u.gc)(this._observable);let t=this.length;return e??=t,e<0?e=0:e>t&&(e=t),e}includes(e,t=0){return(0,u.gc)(this._observable),this._items.includes(e,t)}indexOf(e,t=0){return(0,u.gc)(this._observable),this._items.indexOf(e,t)}join(e=","){return(0,u.gc)(this._observable),this._items.join(e)}lastIndexOf(e,t=this.length-1){return(0,u.gc)(this._observable),this._items.lastIndexOf(e,t)}map(e,t){(0,u.gc)(this._observable);let n=this._items.map(e,t);return new i({items:n})}reorder(e,t=this.length-1){(0,u.gc)(this._observable);let n=this.indexOf(e);if(-1!==n){if(t<0?t=0:t>=this.length&&(t=this.length-1),n!==t){if(this._emitBeforeChanges(4))return e;this._splice(n,1),this._splice(t,0,[e]),this._emitAfterChanges(4)}return e}}pop(){if((0,u.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return;let e=F(this._splice(this.length-1,1));return this._emitAfterChanges(2),e}push(...e){return(0,u.gc)(this._observable),this._emitBeforeChanges(1)||(this._splice(this.length,0,e),this._emitAfterChanges(1)),this.length}reduce(e,t){(0,u.gc)(this._observable);let n=this._items;return 2===arguments.length?n.reduce(e,t):n.reduce(e)}reduceRight(e,t){(0,u.gc)(this._observable);let n=this._items;return 2===arguments.length?n.reduceRight(e,t):n.reduceRight(e)}remove(e){return(0,u.gc)(this._observable),this.removeAt(this.indexOf(e))}removeAt(e){if((0,u.gc)(this._observable),e<0||e>=this.length||this._emitBeforeChanges(2))return;let t=F(this._splice(e,1));return this._emitAfterChanges(2),t}removeMany(e){if((0,u.gc)(this._observable),!e?.length||this._emitBeforeChanges(2))return[];let t=e instanceof i?e.toArray():e,n=this._items,r=[],l=t.length;for(let e=0;e<l;e++){let i=t[e],l=n.indexOf(i);if(l>-1){let i=1+C(t,n,e+1,l+1),a=this._splice(l,i);a&&a.length>0&&r.push.apply(r,a),e+=i-1}}return this._emitAfterChanges(2),r}reverse(){if((0,u.gc)(this._observable),this._emitBeforeChanges(4))return this;let e=this._splice(0,this.length);return e&&(e.reverse(),this._splice(0,0,e)),this._emitAfterChanges(4),this}shift(){if((0,u.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return;let e=F(this._splice(0,1));return this._emitAfterChanges(2),e}slice(e=0,t=this.length){return(0,u.gc)(this._observable),this._createNewInstance({items:this._items.slice(e,t)})}some(e,t){return(0,u.gc)(this._observable),this._items.some(e,t)}sort(e){if((0,u.gc)(this._observable),!this.length||this._emitBeforeChanges(4)||!this._requiresSort(e))return this;let t=this._splice(0,this.length);return arguments.length?t.sort(e):t.sort(),this._splice(0,0,t),this._emitAfterChanges(4),this}_requiresSort(e=(e,t)=>e===t?0:e<t?-1:1){let t=this.length-1;for(let n=0;n<t;n++)if(e(this.items[n],this.items[n+1])>0)return!0;return!1}splice(e,t,...n){(0,u.gc)(this._observable),1===arguments.length&&(t=this.length),t??=0;let i=(t?2:0)|!!n.length;if(this._emitBeforeChanges(i))return[];let r=this._splice(e,t,n)||[];return this._emitAfterChanges(i),r}toArray(){return(0,u.gc)(this._observable),this._items.slice()}toJSON(e){return(0,u.gc)(this._observable),this.toArray().map(t=>(0,b.W)(t)?t.toJSON(e):t)}toLocaleString(){return(0,u.gc)(this._observable),this._items.toLocaleString()}toString(){return(0,u.gc)(this._observable),this._items.toString()}unshift(...e){return(0,u.gc)(this._observable),!e.length||this._emitBeforeChanges(1)||(this._splice(0,0,e),this._emitAfterChanges(1)),this.length}_createNewInstance(e){return new this.constructor(e)}_splice(e,t,n){let i,r,l=this._items,a=this.itemType;if(!this._notifications&&this.hasEventListener("change")&&(this._notifications=[{listeners:this._chgListeners.slice(),items:this._items.slice(),changes:[]}],this._timer&&this._timer.remove(),this._updating=!0,this._timer=(0,v._)(()=>this._dispatchChange())),e<0&&(e+=this.length),t){if(r=l.splice(e,t),this.hasEventListener("before-remove")){let t=w.acquire();t.target=this,t.cancellable=!0;for(let n=0,a=r.length;n<a;n++)i=r[n],t.reset(i),this.emit("before-remove",t),t.defaultPrevented&&(r.splice(n,1),l.splice(e,0,i),e+=1,--n,--a);w.release(t)}if(this._length=this._items.length,this.hasEventListener("after-remove")){let e=w.acquire();e.target=this,e.cancellable=!1;let t=r.length;for(let n=0;n<t;n++)e.reset(r[n]),this.emit("after-remove",e);w.release(e)}}if(n?.length){if(a){let e=[];for(let t of n){let n=a.ensureType(t);(null!=n||null==t)&&e.push(n)}n=e}let t=this.hasEventListener("before-add"),i=this.hasEventListener("after-add"),r=e===this.length;if(t||i){let a=w.acquire();a.target=this,a.cancellable=!0;let s=w.acquire();s.target=this,s.cancellable=!1;for(let o of n)t?(a.reset(o),this.emit("before-add",a),a.defaultPrevented||(r?l.push(o):l.splice(e++,0,o),this._length=l.length,i&&(s.reset(o),this.emit("after-add",s)))):(r?l.push(o):l.splice(e++,0,o),this._length=l.length,s.reset(o),this.emit("after-add",s));w.release(s),w.release(a)}else{if(r)for(let e of n)l.push(e);else l.splice(e,0,...n);this._length=l.length}}if((n?.length||r?.length)&&this._notifyChangeEvent(n,r),this.hasEventListener("after-splice")){let i=new M(this,n,r,e,t);this.emit("after-splice",i)}return r}_emitBeforeChanges(e){let t=!1;if(this.hasEventListener("before-changes")){let n=w.acquire();n.target=this,n.cancellable=!0,n.type=e,this.emit("before-changes",n),t=n.defaultPrevented,w.release(n)}return t}_emitAfterChanges(e){if(this.hasEventListener("after-changes")){let t=w.acquire();t.target=this,t.cancellable=!1,t.type=e,this.emit("after-changes",t),w.release(t)}this._observable.notify()}_notifyChangeEvent(e,t){this.hasEventListener("change")&&this._notifications&&this._notifications[this._notifications.length-1].changes.push({added:e,removed:t})}get updating(){return this._updating}_dispatchChange(){if(this._timer&&=(this._timer.remove(),null),this._updating=!1,!this._notifications)return;let e=this._notifications;this._notifications=null;for(let t of e){let e=t.changes;z.clear(),V.clear(),D.clear();for(let{added:t,removed:n}of e){if(t)if(0===D.size&&0===V.size)for(let e of t)z.add(e);else for(let e of t)V.has(e)?(D.add(e),V.delete(e)):D.has(e)||z.add(e);if(n)if(0===D.size&&0===z.size)for(let e of n)V.add(e);else for(let e of n)z.has(e)?z.delete(e):(D.delete(e),V.add(e))}let n=c.A.acquire();z.forEach(e=>{n.push(e)});let i=c.A.acquire();V.forEach(e=>{i.push(e)});let r=this._items,l=t.items,a=c.A.acquire();if(D.forEach(e=>{l.indexOf(e)!==r.indexOf(e)&&a.push(e)}),t.listeners&&(n.length||i.length||a.length)){let e={target:this,added:n,removed:i,moved:a},r=t.listeners.length;for(let n=0;n<r;n++){let i=t.listeners[n];i.removed||i.callback.call(this,e)}}c.A.release(n),c.A.release(i),c.A.release(a)}z.clear(),V.clear(),D.clear()}};(0,r.Cg)([(0,l.MZ)()],N.prototype,"_updating",void 0),(0,r.Cg)([(0,l.MZ)()],N.prototype,"_length",void 0),(0,r.Cg)([(0,l.MZ)()],N.prototype,"length",null),(0,r.Cg)([(0,l.MZ)()],N.prototype,"items",null),(0,r.Cg)([(0,l.MZ)({readOnly:!0})],N.prototype,"updating",null),N=i=(0,r.Cg)([(0,s.$K)("esri.core.Collection")],N);const L=N;n.d(t,["A",0,L])},65529(e,t,n){var i=n(56372),r=n(36563);const l=e=>{let t=e;return class extends t{constructor(){super(...arguments),this._listenersMap=null}clearEvents(){this._listenersMap?.clear(),this._listenersMap=null}destroy(){this.clearEvents()}emit(e,t){let n=this._listenersMap?.get(e);if(!n)return!1;let i=!1;for(let e of n.slice()){let n="deref"in e?e.deref():e;n?n?.call(this,t):i=!0}return i&&(n=n.filter(e=>!("deref"in e)||null!=e.deref()),this._listenersMap.set(e,n)),n.length>0}on(e,t){if(Array.isArray(e)){let n=e.map(e=>this.on(e,t));return(0,r.vE)(n)}if(e.includes(","))throw TypeError("Evented.on() with a comma delimited string of event types is not supported");this._listenersMap??=new Map;let n=this._listenersMap.get(e)||[];return n.push(t),this._listenersMap.set(e,n),(0,r.hA)(()=>{let n=this._listenersMap?.get(e),i=n?.indexOf(t)??-1;i>=0&&n.splice(i,1)})}once(e,t){let n=this.on(e,e=>{n.remove(),("deref"in t?t.deref():t)?.call(null,e)});return n}hasEventListener(e){let t=this._listenersMap?.get(e);return null!=t&&t.length>0}}},a=l(class{}),s=a,o=l(i.A);n.d(t,["Zt",0,l,"a$",0,a,"bk",0,s,"nJ",0,o])},7695(e,t,n){function i(e){return(t,n)=>{t[n]=e}}n.d(t,{u:()=>i})},91829(e,t,n){function i(){return[0,0,0,0]}function r(e,t,n,i){return[e,t,n,i]}function l(){return r(1,1,1,1)}function a(){return r(1,0,0,0)}function s(){return r(0,1,0,0)}function o(){return r(0,0,1,0)}function u(){return r(0,0,0,1)}n.d(t,{Un:()=>c,_Y:()=>u,fA:()=>r,uY:()=>h,vt:()=>i});const h=[0,0,0,0],c=l(),d=a(),m=s(),f=o(),g=u();Object.freeze(Object.defineProperty({__proto__:null,ONES:c,UNIT_W:g,UNIT_X:d,UNIT_Y:m,UNIT_Z:f,ZEROS:h,clone:function(e){return[e[0],e[1],e[2],e[3]]},create:i,freeze:function(e,t,n,i){return[e,t,n,i]},fromArray:function(e,t=[0,0,0,0]){let n=Math.min(4,e.length);for(let i=0;i<n;++i)t[i]=e[i];return t},fromValues:r,ones:l,unitW:u,unitX:a,unitY:s,unitZ:o,zeros:function(){return[0,0,0,0]}},Symbol.toStringTag,{value:"Module"}))},78955(e,t,n){n.d(t,{Bw:()=>p,C:()=>r,Cc:()=>_,LI:()=>d,Om:()=>b,S8:()=>v,T9:()=>c,WQ:()=>a,Z0:()=>M,aI:()=>T,hG:()=>g,hZ:()=>l,hs:()=>m,jk:()=>h,m3:()=>y,t2:()=>w});var i=n(34304);function r(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}function l(e,t,n,i,r){return e[0]=t,e[1]=n,e[2]=i,e[3]=r,e}function a(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e[2]=t[2]+n[2],e[3]=t[3]+n[3],e}function s(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e[2]=t[2]-n[2],e[3]=t[3]-n[3],e}function o(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e[2]=t[2]*n[2],e[3]=t[3]*n[3],e}function u(e,t,n){return e[0]=t[0]/n[0],e[1]=t[1]/n[1],e[2]=t[2]/n[2],e[3]=t[3]/n[3],e}function h(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e[2]=Math.min(t[2],n[2]),e[3]=Math.min(t[3],n[3]),e}function c(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e[2]=Math.max(t[2],n[2]),e[3]=Math.max(t[3],n[3]),e}function d(e,t){return e[0]=Math.round(t[0]),e[1]=Math.round(t[1]),e[2]=Math.round(t[2]),e[3]=Math.round(t[3]),e}function m(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e[3]=t[3]*n,e}function f(e,t){let n=t[0]-e[0],i=t[1]-e[1],r=t[2]-e[2],l=t[3]-e[3];return Math.sqrt(n*n+i*i+r*r+l*l)}function g(e,t){let n=t[0]-e[0],i=t[1]-e[1],r=t[2]-e[2],l=t[3]-e[3];return n*n+i*i+r*r+l*l}function p(e){let t=e[0],n=e[1],i=e[2],r=e[3];return Math.sqrt(t*t+n*n+i*i+r*r)}function y(e){let t=e[0],n=e[1],i=e[2],r=e[3];return t*t+n*n+i*i+r*r}function v(e,t){let n=t[0],i=t[1],r=t[2],l=t[3],a=n*n+i*i+r*r+l*l;return a>0&&(a=1/Math.sqrt(a),e[0]=n*a,e[1]=i*a,e[2]=r*a,e[3]=l*a),e}function b(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3]}function _(e,t,n,i){let r=t[0],l=t[1],a=t[2],s=t[3];return e[0]=r+i*(n[0]-r),e[1]=l+i*(n[1]-l),e[2]=a+i*(n[2]-a),e[3]=s+i*(n[3]-s),e}function M(e,t,n){let i=t[0],r=t[1],l=t[2],a=t[3];return e[0]=n[0]*i+n[4]*r+n[8]*l+n[12]*a,e[1]=n[1]*i+n[5]*r+n[9]*l+n[13]*a,e[2]=n[2]*i+n[6]*r+n[10]*l+n[14]*a,e[3]=n[3]*i+n[7]*r+n[11]*l+n[15]*a,e}function w(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]}function T(e,t){let n=e[0],r=e[1],l=e[2],a=e[3],s=t[0],o=t[1],u=t[2],h=t[3],c=(0,i.FD)();return Math.abs(n-s)<=c*Math.max(1,Math.abs(n),Math.abs(s))&&Math.abs(r-o)<=c*Math.max(1,Math.abs(r),Math.abs(o))&&Math.abs(l-u)<=c*Math.max(1,Math.abs(l),Math.abs(u))&&Math.abs(a-h)<=c*Math.max(1,Math.abs(a),Math.abs(h))}const x=s,F=o,C=u,S=f,z=g,V=p,D=y;Object.freeze(Object.defineProperty({__proto__:null,add:a,ceil:function(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e[2]=Math.ceil(t[2]),e[3]=Math.ceil(t[3]),e},copy:r,copyVec3:function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e},dist:S,distance:f,div:C,divide:u,dot:b,equals:T,exactEquals:w,floor:function(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e[2]=Math.floor(t[2]),e[3]=Math.floor(t[3]),e},inverse:function(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e[3]=1/t[3],e},len:V,length:p,lerp:_,max:c,min:h,mul:F,multiply:o,negate:function(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e[3]=-t[3],e},normalize:v,random:function(e,t=1){let n,r,l,a,s,o,u=i.Ov;do{n=2*u()-1,r=2*u()-1,s=n*n+r*r}while(s>=1);do{l=2*u()-1,a=2*u()-1,o=l*l+a*a}while(o>=1);let h=Math.sqrt((1-s)/o);return e[0]=t*n,e[1]=t*r,e[2]=t*l*h,e[3]=t*a*h,e},round:d,scale:m,scaleAndAdd:function(e,t,n,i){return e[0]=t[0]+n[0]*i,e[1]=t[1]+n[1]*i,e[2]=t[2]+n[2]*i,e[3]=t[3]+n[3]*i,e},set:l,sqrDist:z,sqrLen:D,squaredDistance:g,squaredLength:y,str:function(e){return"vec4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+")"},sub:x,subtract:s,transformMat4:M,transformQuat:function(e,t,n){let i=t[0],r=t[1],l=t[2],a=n[0],s=n[1],o=n[2],u=n[3],h=u*i+s*l-o*r,c=u*r+o*i-a*l,d=u*l+a*r-s*i,m=-a*i-s*r-o*l;return e[0]=h*u+m*-a+c*-o-d*-s,e[1]=c*u+m*-s+d*-a-h*-o,e[2]=d*u+m*-o+h*-s-c*-a,e[3]=t[3],e}},Symbol.toStringTag,{value:"Module"}))},90629(e,t,n){n.d(t,{L7:()=>l,Lz:()=>a,PN:()=>s,cr:()=>o,gs:()=>h,ps:()=>r,r_:()=>c,tc:()=>u}),n(39829);const i=/^-?(\d+(\.\d+)?)\s*((px)|(pt))?$/i,r=s(1),l=a(1);function a(e){return e?e/72*96:0}function s(e){return e?72*e/96:0}function o(e){if("string"==typeof e){let t=e.match(i);if(t){let n=Number(t[1]),i=t[3]&&t[3].toLowerCase(),r=e.startsWith("-"),l="px"===i?s(n):n;return r?-l:l}return console.warn("screenUtils.toPt: input not recognized!"),null}return e}function u(e=0,t=0){return{x:e,y:t}}function h(e=0,t=0){return[e,t]}function c(e=0,t=0,n=0){return[e,t,n]}},88930(e,t,n){n.d(t,{S1:()=>s,VW:()=>o,lL:()=>u,rb:()=>h,t:()=>c});var i=n(34747),r=n(97770);n(98623);const l=/^(?<hh>([01][0-9])|(2[0-3])):(?<mm>[0-5][0-9])(:(?<ss>[0-5][0-9]))?(\.(?<ms>\d+))?$/,a={milliseconds:1,seconds:1e3,minutes:6e4,hours:36e5,days:864e5,weeks:6048e5,months:26784e5,years:31536e6,decades:31536e7,centuries:31536e8,unknown:NaN};function s(e,t,n,l="system"){if("unknown"===n)return e;let a=new i.oh((0,r.wj)(l)),s=i.c9.fromJSDate(e,{zone:a}),o="decades"===n||"centuries"===n?"year":function(e){switch(e){case"milliseconds":return"millisecond";case"seconds":return"second";case"minutes":return"minute";case"hours":return"hour";case"days":return"day";case"weeks":return"week";case"months":return"month";case"years":return"year"}}(n);return"decades"===n&&(t*=10),"centuries"===n&&(t*=100),s.plus({[o]:t}).toJSDate()}function o(e,t,n="milliseconds"){let i=e.getTime(),r=c(t,n,"milliseconds");return new Date(i+r)}function u(e,t,n="system"){let{unit:l}=t,a=Math.max(1,Math.trunc(t.value)),s=new i.oh((0,r.wj)(n)),o=i.c9.fromJSDate(e,{zone:s}),u=e=>e-e%a;switch(l){case"milliseconds":return o.startOf("second").plus({millisecond:u(o.millisecond)}).toJSDate();case"seconds":return o.startOf("minute").plus({second:u(o.second)}).toJSDate();case"minutes":return o.startOf("hour").plus({minute:u(o.minute)}).toJSDate();case"hours":return o.startOf("day").plus({hour:u(o.hour)}).toJSDate();case"days":return o.startOf("month").plus({day:u(o.day-1)}).toJSDate();case"weeks":{let e=o.startOf("year").startOf("week"),t=Math.floor(o.diff(e,"weeks").weeks);return e.plus({week:u(t)}).toJSDate()}case"months":return o.startOf("year").plus({month:u(o.month-1)}).toJSDate();case"years":case"decades":case"centuries":{let e=o.startOf("year"),t=("decades"===l?10:"centuries"===l?100:1)*a,n=e.year-e.year%t;return e.set({year:n}).toJSDate()}case"unknown":return e}}function h(e){let t=l.exec(e);if(!t)return null;let{hh:n,mm:i,ss:r,ms:s}=t.groups;return Number(n)*a.hours+Number(i)*a.minutes+Number(r||0)*a.seconds+Number(s||0)}function c(e,t,n){return 0===e?0:e*a[t]/a[n]}},62577(e,t,n){function i(e){return e?{originPosition:"upper-left"===e.originPosition?"upperLeft":"lower-left"===e.originPosition?"lowerLeft":e.originPosition,scale:e.tolerance?[e.tolerance,e.tolerance,1,1]:[1,1,1,1],translate:null==e.extent?[0,0,0,0]:[e.extent.xmin,e.extent.ymax,e.extent.zmin??0,e.extent.mmin??0]}:null}function r(e){if(function(e){return"lowerLeft"===e.originPosition&&4===e.scale.length&&4===e.translate.length}(e))return e;let{originPosition:t,scale:n,translate:i}=e,r=n[0]??1,l=n[1]??1;return{originPosition:"lowerLeft",scale:[r,"lowerLeft"===t?l:-l,n[2]??1,n[3]??1],translate:[i[0]??0,i[1]??0,i[2]??0,i[3]??0]}}function l({scale:e,translate:t},n){return Math.round((n-t[0])/e[0])}function a({scale:e,translate:t},n){return Math.round((n-t[1])/e[1])}function s({scale:e,translate:t},n){return n*e[0]+t[0]}function o({scale:e,translate:t},n){return n*e[1]+t[1]}function u({scale:e,translate:t},n){return(n??0)*e[2]+t[2]}function h({scale:e,translate:t},n){return n?n*e[3]+t[3]:0}function c(e,t){return e&&t?g:e&&!t?m:!e&&t?f:d}n.d(t,{$X:()=>_,B2:()=>a,Gy:()=>y,IE:()=>l,P5:()=>M,Q1:()=>r,SW:()=>v,Tr:()=>b,VV:()=>i});const d=(e,t)=>{let n=Array(t.length);if(!t.length)return n;let i=t[0],r=s(e,i[0]),l=o(e,i[1]);n[0]=[r,l];let{scale:a,originPosition:u}=e,h=a[0],c="lowerLeft"===u?a[1]:-a[1];for(let e=1;e<t.length;e++){let[i,a]=t[e];r+=h*i,l+=c*a,n[e]=[r,l]}return n},m=(e,t)=>{let n=Array(t.length);if(!t.length)return n;let i=t[0],r=s(e,i[0]),l=o(e,i[1]);n[0]=[r,l,u(e,i[2])];let{scale:a,originPosition:h}=e,c=a[0],d="lowerLeft"===h?a[1]:-a[1];for(let i=1;i<t.length;i++){let[a,s,o]=t[i];r+=c*a,l+=d*s,n[i]=[r,l,u(e,o)]}return n},f=(e,t)=>{let n=Array(t.length);if(!t.length)return n;let i=t[0],r=s(e,i[0]),l=o(e,i[1]);n[0]=[r,l,h(e,i[2])];let{scale:a,originPosition:u}=e,c=a[0],d="lowerLeft"===u?a[1]:-a[1];for(let i=1;i<t.length;i++){let[a,s,o]=t[i];r+=c*a,l+=d*s,n[i]=[r,l,h(e,o)]}return n},g=(e,t)=>{let n=Array(t.length);if(!t.length)return n;let i=t[0],r=s(e,i[0]),l=o(e,i[1]);n[0]=[r,l,u(e,i[2]),h(e,i[3])];let{scale:a,originPosition:c}=e,d=a[0],m="lowerLeft"===c?a[1]:-a[1];for(let i=1;i<t.length;i++){let[a,s,o,c]=t[i];r+=d*a,l+=m*s,n[i]=[r,l,u(e,o),h(e,c)]}return n};function p(e,t,n){let i=Array(n.length);for(let r=0;r<n.length;r++)i[r]=t(e,n[r]);return i}function y(e,t,n){let i=r(e);return t.x=l(i,n.x),t.y=a(i,n.y),null!=n.z&&(t.z=function({scale:e,translate:t},n){return Math.round(((n??0)-t[2])/e[2])}(i,n.z)),null!=n.m&&(t.m=function({scale:e,translate:t},n){return n?Math.round((n-t[3])/e[3]):0}(i,n.m)),t}function v(e,t,n,i=n?.hasZ??!1,l=n?.hasM??!1){if(null!=n){let a=r(e);t.points=c(i,l)(a,n.points),t.hasZ=i,t.hasM=l}return t}function b(e,t,n,i=null!=n?.z,l=null!=n?.m){if(null==n)return t;let a=r(e);return t.x=s(a,n.x),t.y=o(a,n.y),i&&(t.z=u(a,n.z)),l&&(t.m=h(a,n.m)),t}function _(e,t,n,i=n?.hasZ??!1,l=n?.hasM??!1){return null!=n&&(t.rings=p(r(e),c(i,l),n.rings),t.hasZ=i,t.hasM=l),t}function M(e,t,n,i=n?.hasZ??!1,l=n?.hasM??!1){return null!=n&&(t.paths=p(r(e),c(i,l),n.paths),t.hasZ=i,t.hasM=l),t}},97770(e,t,n){n.d(t,{Ey:()=>D,F8:()=>V,J2:()=>F,Yq:()=>S,_m:()=>C,_v:()=>_,iS:()=>z,wj:()=>I});var i=n(34747),r=n(66552),l=n(98623),a=n(73444);const s={dateStyle:void 0,year:void 0,month:void 0,day:void 0,weekday:void 0},o={timeStyle:void 0,hour12:void 0,hourCycle:void 0,hour:void 0,minute:void 0,second:void 0},u={timeZone:"UTC"},h={year:"numeric",month:"numeric",day:"numeric"},c={year:"numeric",month:"long",day:"numeric"},d={year:"numeric",month:"short",day:"numeric"},m={year:"numeric",month:"long",weekday:"long",day:"numeric"},f={hour:"numeric",minute:"numeric"},g={...f,second:"numeric"},p={hourCycle:"h23"},y={...f,...p},v={...g,...p},b={"short-date":h,"short-date-short-time":{...h,...f},"short-date-short-time-24":{...h,...y},"short-date-long-time":{...h,...g},"short-date-long-time-24":{...h,...v},"short-date-le":h,"short-date-le-short-time":{...h,...f},"short-date-le-short-time-24":{...h,...y},"short-date-le-long-time":{...h,...g},"short-date-le-long-time-24":{...h,...v},"long-month-day-year":c,"long-month-day-year-short-time":{...c,...f},"long-month-day-year-short-time-24":{...c,...y},"long-month-day-year-long-time":{...c,...g},"long-month-day-year-long-time-24":{...c,...v},"day-short-month-year":d,"day-short-month-year-short-time":{...d,...f},"day-short-month-year-short-time-24":{...d,...y},"day-short-month-year-long-time":{...d,...g},"day-short-month-year-long-time-24":{...d,...v},"long-date":m,"long-date-short-time":{...m,...f},"long-date-short-time-24":{...m,...y},"long-date-long-time":{...m,...g},"long-date-long-time-24":{...m,...v},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":f,"long-time":g},_=(0,r.O)()({shortDate:"short-date",shortDateShortTime:"short-date-short-time",shortDateShortTime24:"short-date-short-time-24",shortDateLongTime:"short-date-long-time",shortDateLongTime24:"short-date-long-time-24",shortDateLE:"short-date-le",shortDateLEShortTime:"short-date-le-short-time",shortDateLEShortTime24:"short-date-le-short-time-24",shortDateLELongTime:"short-date-le-long-time",shortDateLELongTime24:"short-date-le-long-time-24",longMonthDayYear:"long-month-day-year",longMonthDayYearShortTime:"long-month-day-year-short-time",longMonthDayYearShortTime24:"long-month-day-year-short-time-24",longMonthDayYearLongTime:"long-month-day-year-long-time",longMonthDayYearLongTime24:"long-month-day-year-long-time-24",dayShortMonthYear:"day-short-month-year",dayShortMonthYearShortTime:"day-short-month-year-short-time",dayShortMonthYearShortTime24:"day-short-month-year-short-time-24",dayShortMonthYearLongTime:"day-short-month-year-long-time",dayShortMonthYearLongTime24:"day-short-month-year-long-time-24",longDate:"long-date",longDateShortTime:"long-date-short-time",longDateShortTime24:"long-date-short-time-24",longDateLongTime:"long-date-long-time",longDateLongTime24:"long-date-long-time-24",longMonthYear:"long-month-year",shortMonthYear:"short-month-year",year:"year"}),M={ar:"ar-u-nu-latn-ca-gregory",nn:"no-NN"};function w(){let e=(0,a.lR)();return(e&&M[e])??(0,a.QC)()}"mart"!==new Intl.DateTimeFormat("bs",{month:"long"}).formatToParts(new Date(2025,2)).find(({type:e})=>"month"===e)?.value.toLowerCase()&&(M.bs="sr-Latn-CS");let T=new WeakMap;const x=b["short-date-short-time"];function F(e){return b[e]}function C(e){let{dateStyle:t,timeStyle:n,hour12:i,year:r,month:l}=e,a={};return t?a.dateStyle=t:r&&(a.year=r,a.month=l||void 0),n&&!a.year&&(a.timeStyle=n,a.hour12="auto"===i?void 0:"always"===i),a}function S(e,t=x){return function(e){let t=T.get(e);if(!t){let n=w(),i=I(e.timeZone??"system"),r={...e,timeZone:i};t=new Intl.DateTimeFormat(n,r),T.set(e,t)}return t}(t).format(e)}function z(e,t=x){return S(new Date(e),{...t,...u,...o})}function V(e,t=x){return S(new Date(`1970-01-01T${e}Z`),{...t,...u,...s})}function D(e,t=x){let n=i.c9.fromISO(e,{setZone:!0});if(!n.isValid)return e;if(t.timeZone)return S(n.toJSDate(),t);let r=0===n.offset?"UTC":t.timeZone,l={...t,timeZone:r};return n.toLocaleString(l,{locale:w()})}function I(e){switch(e){case"system":return l.N;case l.L:return"UTC";default:return e}}(0,a.Ml)(()=>{T=new WeakMap})},73444(e,t,n){n.d(t,{JK:()=>o,Ml:()=>p,QC:()=>c,lR:()=>h,oQ:()=>f});var i=n(36563);let r;n(44208);const l=globalThis.esriConfig?.locale,a=globalThis.document?.documentElement;function s(){let e=a?.getAttribute("lang"),t=globalThis.navigator?.language;return l??e??t??"en"}function o(){return void 0===r&&(r=s()),r}const u=/^(?<language>[a-z]{2,3})(?:-(?<extlang>[a-z]{3}))?(?:-[A-Z][a-z]{3})?(?:-(?<region>[A-Z]{2}|\d{3}))?(?:-.*)?$/;function h(e=o()){return d(e)?.language}function c(e=o()){let t=d(e);return t?.language&&t?.extlang?e.replace(`${t.language}-`,""):e}function d(e=o()){return u.exec(e)?.groups}const m=[];function f(e){return m.push(e),(0,i.hA)(()=>{m.splice(m.indexOf(e),1)})}new Map;const g=[];function p(e){return g.push(e),(0,i.hA)(()=>g.splice(g.indexOf(e),1))}function y(){let e=s();r!==e&&([...g].forEach(t=>t(e)),r=e,[...m].forEach(t=>t(e)))}globalThis.addEventListener?.("languagechange",y),a&&new MutationObserver(()=>{y()}).observe(a,{attributeFilter:["lang"]})},95466(e,t,n){n.d(t,{A:()=>u});var i=n(49186),r=n(53966),l=n(12195),a=n(98623),s=n(56400),o=n(30524);class u{static fromJSON(e){return new u(e.fields,e.timeZoneByFieldName)}static fromLayer(e){return new u(e.fields??[],c(e))}static fromLayerJSON(e){return new u(e.fields??[],c(e))}constructor(e=[],t){this._fieldsMap=new Map,this._normalizedFieldsMap=new Map,this._dateFieldsSet=new Set,this._numericFieldsSet=new Set,this._requiredFields=null,this.dateFields=[],this.numericFields=[],this.fields=e||[],this._timeZoneByFieldName=t?new Map(t):null;let n=[];for(let e of this.fields){let t=e?.name,i=(0,o.GZ)(t);if(t&&i){let r=(0,o.NF)(t);this._fieldsMap.set(t,e),this._fieldsMap.set(r,e),this._normalizedFieldsMap.set(i,e),n.push(`${r}:${e.type}:${this._timeZoneByFieldName?.get(t)}`),(0,o.vE)(e)?(this.dateFields.push(e),this._dateFieldsSet.add(e)):(0,o.WA)(e)&&(this._numericFieldsSet.add(e),this.numericFields.push(e)),!(0,o.te)(e)&&!(0,o.Xz)(e)&&(e.editable=null==e.editable||!!e.editable,e.nullable=null==e.nullable||!!e.nullable)}}n.sort(),this.uid=n.join()}get requiredFields(){if(!this._requiredFields){this._requiredFields=[];for(let e of this.fields)(0,o.te)(e)||(0,o.Xz)(e)||e.nullable||void 0!==(0,o.lD)(e)||this._requiredFields.push(e)}return this._requiredFields}equals(e){return this.uid===e?.uid}has(e){return null!=this.get(e)}get(e){return(0,o.Vb)({fieldName:e,fieldsMap:this._fieldsMap,normalizedFieldsMap:this._normalizedFieldsMap})}getTimeZone(e){let t=this.get(e&&"string"!=typeof e?e.name:e);return t?this._timeZoneByFieldName?this._timeZoneByFieldName.get(t.name):"date"===t.type||"esriFieldTypeDate"===t.type?(r.A.getLogger("esri.layers.support.FieldsIndex").errorOnce(new i.A("getTimeZone:no-timezone-information",`no time zone information for field '${t.name}'`)),"UTC"):h.has(t.type)?a.L:null:null}isDateField(e){return this._dateFieldsSet.has(this.get(e))}isTimeOnlyField(e){return(0,o.OH)(this.get(e))}isNumericField(e){return this._numericFieldsSet.has(this.get(e))}normalizeFieldName(e){return this.get(e)?.name??void 0}toJSON(){return{fields:this.fields.map(e=>(0,l.W)(e)?e.toJSON():e),timeZoneByFieldName:this._timeZoneByFieldName?Array.from(this._timeZoneByFieldName.entries()):null}}}const h=new Set(["time-only","date-only","timestamp-offset","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"]);function c(e){let t=new Map;if(!e.fields)return t;let n=!0===e.datesInUnknownTimezone,{timeInfo:i,editFieldsInfo:r}=e,l=(i?"startField"in i?i.startField:i.startTimeField:"")??"",u=(i?"endField"in i?i.endField:i.endTimeField:"")??"",c=function(e){return"dateFieldsTimeZone"in e}(e)?e.dateFieldsTimeZone??null:e.dateFieldsTimeReference?(0,s.ZS)(e.dateFieldsTimeReference):null,d=r?function(e){return"timeZone"in e}(r)?r.timeZone??c:r.dateFieldsTimeReference?(0,s.ZS)(r.dateFieldsTimeReference):c??"UTC":null,m=i?function(e){return"timeZone"in e}(i)?i.timeZone??c:i.timeReference?(0,s.ZS)(i.timeReference):c:null,f=new Map([[(0,o.NF)(r?.creationDateField??""),d],[(0,o.NF)(r?.editDateField??""),d],[(0,o.NF)(l),m],[(0,o.NF)(u),m]]);for(let{name:i,type:r}of e.fields)if(h.has(r))t.set(i,a.L);else if("date"!==r&&"esriFieldTypeDate"!==r)t.set(i,null);else if(n)t.set(i,a.L);else{let e=f.get((0,o.NF)(i??""))??c;t.set(i,e)}return t}},61760(e,t,n){n.d(t,{PU:()=>l,YW:()=>s,hv:()=>a,zp:()=>r}),n(78955),n(91829),n(34727);var i=n(90629);function r(e){return(0,i.PN)(2.4*e)}function l(e){return(0,i.Lz)(e)/2.4}function a(e,t,n){let i=Math.sqrt(e**2+t**2)/n;return i>1?0:3/(Math.PI*n**2)*(1-i**2)**2}function s(e){return"function"==typeof e?e:e?t=>+t[e]:()=>1}},9760(e,t,n){n.d(t,{A:()=>h});var i=n(32198),r=n(91429),l=n(66552),a=n(25482),s=n(93223);const o=new l.J({esriClassifyEqualInterval:"equal-interval",esriClassifyManual:"manual",esriClassifyNaturalBreaks:"natural-breaks",esriClassifyQuantile:"quantile",esriClassifyStandardDeviation:"standard-deviation",esriClassifyDefinedInterval:"defined-interval"}),u=new l.J({esriNormalizeByLog:"log",esriNormalizeByPercentOfTotal:"percent-of-total",esriNormalizeByField:"field"});let h=class extends a.o{constructor(e){super(e),this.type="class-breaks-definition",this.breakCount=null,this.classificationField=null,this.classificationMethod=null,this.normalizationField=null,this.normalizationType=null}set standardDeviationInterval(e){"standard-deviation"===this.classificationMethod&&this._set("standardDeviationInterval",e)}set definedInterval(e){"defined-interval"===this.classificationMethod&&this._set("definedInterval",e)}};(0,i.Cg)([(0,s.e)({classBreaksDef:"class-breaks-definition"})],h.prototype,"type",void 0),(0,i.Cg)([(0,r.MZ)({json:{write:!0}})],h.prototype,"breakCount",void 0),(0,i.Cg)([(0,r.MZ)({json:{write:!0}})],h.prototype,"classificationField",void 0),(0,i.Cg)([(0,r.MZ)({type:String,json:{read:o.read,write:o.write}})],h.prototype,"classificationMethod",void 0),(0,i.Cg)([(0,r.MZ)({json:{write:!0}})],h.prototype,"normalizationField",void 0),(0,i.Cg)([(0,r.MZ)({json:{read:u.read,write:u.write}})],h.prototype,"normalizationType",void 0),(0,i.Cg)([(0,r.MZ)({value:null,json:{write:!0}})],h.prototype,"standardDeviationInterval",null),(0,i.Cg)([(0,r.MZ)({value:null,json:{write:!0}})],h.prototype,"definedInterval",null),h=(0,i.Cg)([(0,r.$K)("esri.rest.support.ClassBreaksDefinition")],h)},84892(e,t,n){n.d(t,{t:()=>l});var i=n(53966);function r(e,t){return Number(e.toFixed(t))}function l(e,t){let{normalizationTotal:n}=e;return{classBreaks:a(e,t),normalizationTotal:n}}function a(e,t){let n=e.definition,{classificationMethod:i,normalizationType:l,definedInterval:a}=n,u=n.breakCount??1,h=[],c=e.values;if(0===c.length)return[];c=c.sort((e,t)=>e-t);let[d,m]=t??[c.at(0),c.at(-1)];if("equal-interval"===i)if(c.length>=u){let e=(m-d)/u,t=d;for(let n=1;n<u;n++){let i=r(d+n*e,6);h.push({minValue:t,maxValue:i,label:s(t,i,l)}),t=i}h.push({minValue:t,maxValue:m,label:s(t,m,l)})}else c.forEach(e=>{h.push({minValue:e,maxValue:e,label:s(e,e,l)})});else if("natural-breaks"===i){let t=function(e){let t=[],n=[],i=Number.MIN_VALUE,r=1,l=-1;for(let a=0;a<e.length;a++){let s=e[a];s===i?(r++,n[l]=r):null!==s&&(t.push(s),i=s,r=1,n.push(r),l++)}return{uniqueValues:t,valueFrequency:n}}(c),n=e.valueFrequency||t.valueFrequency,i=o(t.uniqueValues,n,u),a=d;for(let e=1;e<u;e++)if(t.uniqueValues.length>e){let n=r(t.uniqueValues[i[e]],6);h.push({minValue:a,maxValue:n,label:s(a,n,l)}),a=n}h.push({minValue:a,maxValue:m,label:s(a,m,l)})}else if("quantile"===i)if(c.length>=u&&d!==m){let e=d,t=Math.ceil(c.length/u),n=0;for(let i=1;i<u;i++){let r=t+n-1;r>c.length&&(r=c.length-1),r<0&&(r=0),h.push({minValue:e,maxValue:c[r],label:s(e,c[r],l)}),e=c[r],n+=t,t=Math.ceil((c.length-n)/(u-i))}h.push({minValue:e,maxValue:m,label:s(e,m,l)})}else{let e=-1;for(let t=0;t<c.length;t++){let n=c[t];n!==e&&(e=n,h.push({minValue:e,maxValue:n,label:s(e,n,l)}),e=n)}}else if("standard-deviation"===i){let e=function(e){let t=0;for(let n=0;n<e.length;n++)t+=e[n];return t/=e.length,t}(c),t=function(e,t){let n=0;for(let i=0;i<e.length;i++){let r=e[i];n+=(r-t)*(r-t)}return n/=e.length,Math.sqrt(n)}(c,e);if(0===t)h.push({minValue:c[0],maxValue:c[0],label:s(c[0],c[0],l)});else{let n=function(e,t,n,i,r){let l=Math.max(i-e,t-i)/r/n;return l=l>=1?1:l>=.5?.5:.25,l}(d,m,u,e,t)*t,i=0,a=d;for(let t=u;t>=1;t--){let o=r(e-(t-.5)*n,6);h.push({minValue:a,maxValue:o,label:s(a,o,l)}),a=o,i++}let o=r(e+.5*n,6);h.push({minValue:a,maxValue:o,label:s(a,o,l)}),a=o,i++;for(let t=1;t<=u;t++)o=i===2*u?m:r(e+(t+.5)*n,6),h.push({minValue:a,maxValue:o,label:s(a,o,l)}),a=o,i++}}else if("defined-interval"===i){if(!a)return h;let[e,n]=t??[c.at(0),c.at(-1)],i=Math.ceil((n-e)/a),o=e;for(let t=1;t<i;t++){let n=r(e+t*a,6);h.push({minValue:o,maxValue:n,label:s(o,n,l)}),o=n}h.push({minValue:o,maxValue:n,label:s(o,n,l)})}return h}function s(e,t,n){let i=null;return i=e===t?n&&"percent-of-total"===n?e+"%":e.toString():n&&"percent-of-total"===n?e+"% - "+t+"%":e+" - "+t,i}function o(e,t,n){let i=e.length,r=[];n>i&&(n=i);for(let e=0;e<n;e++)r.push(Math.round(e*i/n-1));r.push(i-1);let l=u(r,e,t,n);return function(e,t,n,i,r,l){let a=0,s=0,o=0,u=0,c=!0;for(let d=0;d<2&&c;d++){0===d&&(c=!1);for(let d=0;d<l-1;d++)for(;n[d+1]+1!==n[d+2];){n[d+1]=n[d+1]+1;let l=h(d,n,i,r);o=l.sbMean,a=l.sbSdcm;let m=h(d+1,n,i,r);if(u=m.sbMean,s=m.sbSdcm,!(a+s<t[d]+t[d+1])){n[d+1]=n[d+1]-1;break}t[d]=a,t[d+1]=s,e[d]=o,e[d+1]=u,c=!0}for(let d=l-1;d>0;d--)for(;n[d]!==n[d-1]+1;){n[d]=n[d]-1;let l=h(d-1,n,i,r);o=l.sbMean,a=l.sbSdcm;let m=h(d,n,i,r);if(u=m.sbMean,s=m.sbSdcm,!(a+s<t[d-1]+t[d])){n[d]=n[d]+1;break}t[d-1]=a,t[d]=s,e[d-1]=o,e[d]=u,c=!0}}return c}(l.mean,l.sdcm,r,e,t,n)&&(l=u(r,e,t,n)),r}function u(e,t,n,i){let r=[],l=[],a=[],s=0,o=[],u=[];for(let r=0;r<i;r++){let i=h(r,e,t,n);o.push(i.sbMean),u.push(i.sbSdcm),s+=u[r]}let c,d=s,m=!0;for(;m||s<d;){m=!1,r=[];for(let t=0;t<i;t++)r.push(e[t]);for(let n=0;n<i;n++)for(let r=e[n]+1;r<=e[n+1];r++)if(c=t[r],n>0&&r!==e[n+1]&&Math.abs(c-o[n])>Math.abs(c-o[n-1]))e[n]=r;else if(n<i-1&&e[n]!==r-1&&Math.abs(c-o[n])>Math.abs(c-o[n+1])){e[n+1]=r-1;break}d=s,s=0,l=[],a=[];for(let r=0;r<i;r++){l.push(o[r]),a.push(u[r]);let i=h(r,e,t,n);o[r]=i.sbMean,u[r]=i.sbSdcm,s+=u[r]}}if(s>d){for(let t=0;t<i;t++)e[t]=r[t],o[t]=l[t],u[t]=a[t];s=d}return{mean:o,sdcm:u}}function h(e,t,n,r){let l=0,a=0;for(let i=t[e]+1;i<=t[e+1];i++){let e=r[i];l+=n[i]*e,a+=e}a<=0&&i.A.getLogger("esri.rest.support.generateRendererUtils").warn("Exception in Natural Breaks calculation");let s=l/a,o=0;for(let i=t[e]+1;i<=t[e+1];i++)o+=r[i]*(n[i]-s)**2;return{sbMean:s,sbSdcm:o}}},26412(e,t,n){n.r(t),n.d(t,{classBreaks:()=>b,heatmapStatistics:()=>M,histogram:()=>_,summaryStatistics:()=>y,uniqueValues:()=>v});var i=n(1873),r=(n(49186),n(90629)),l=n(88930),a=n(86738),s=n(16930),o=n(62577),u=n(21325),h=n(95466),c=n(30524),d=n(61760),m=n(43668),f=n(4560);let g;async function p(e,t,n=!0){if(!t)return[];let r,{field:a,field2:o,field3:u,fieldDelimiter:d,sqlExpression:p,fieldInfos:y,timeZone:v}=e,b=a&&y?.find(e=>e.name.toLowerCase()===a.toLowerCase()),_=!!b&&(0,c.OH)(b),M=!!b&&(0,f.fs)(b),w=e.valueExpression,T=e.normalizationType,x=e.normalizationField,F=e.normalizationTotal,C=[],S=e.viewInfoParams,z=null;if(w){if(!g){let{arcadeUtils:e}=await(0,m.l)();g=e}g.hasGeometryOperations(w)&&await g.enableGeometryOperations(),z=g.createFunction(w),r=S?g.getViewInfo({viewingMode:S.viewingMode,scale:S.scale,spatialReference:new s.A(S.spatialReference)}):null}let V=e.fieldInfos,D=t[0]&&"declaredClass"in t[0]&&"esri.Graphic"===t[0].declaredClass||!V?null:{fields:V};for await(let e of t){let t,s=e.attributes;if(p){let n=await(0,f.j4)(p,new h.A(V));n&&(t=n.calculateValue(e.attributes))}else if(w){let n=D?Object.assign({},e,{layer:D}):e,i=g.createExecContext(n,r,v);t=g.executeFunction(z,i)}else s&&(t=s[a],o?(t=`${(0,i.gJ)(t)}${d}${(0,i.gJ)(s[o])}`,u&&(t=`${t}${d}${(0,i.gJ)(s[u])}`)):"string"==typeof t&&n&&(M?t=t?new Date(t).getTime():null:_&&(t=t?(0,l.rb)(t):null)));if(T&&"number"==typeof t&&isFinite(t)){let e=s&&parseFloat(s[x]);t=(0,i.zS)(t,T,e,F)}C.push(t)}return C}async function y(e){let{attribute:t,features:n}=e,{normalizationType:r,normalizationField:l,minValue:a,maxValue:s,fieldType:o,outStatisticTypes:u}=t,h=await p({field:t.field,valueExpression:t.valueExpression,normalizationType:r,normalizationField:l,normalizationTotal:t.normalizationTotal,viewInfoParams:t.viewInfoParams,timeZone:t.timeZone,fieldInfos:t.fieldInfos},n),c=(0,i.Vb)({normalizationType:r,normalizationField:l,minValue:a,maxValue:s}),d={value:.5,fieldType:o},m="esriFieldTypeString"===o?(0,i.z9)({values:h,supportsNullCount:c,percentileParams:d,outStatisticTypes:u}):(0,i.G_)({values:h,minValue:a,maxValue:s,useSampleStdDev:!r,supportsNullCount:c,percentileParams:d,outStatisticTypes:u});return(0,i.oZ)(m,u,"esriFieldTypeDate"===o)}async function v(e){let{attribute:t,features:n}=e,r=await p({field:t.field,field2:t.field2,field3:t.field3,fieldDelimiter:t.fieldDelimiter,valueExpression:t.valueExpression,viewInfoParams:t.viewInfoParams,timeZone:t.timeZone,fieldInfos:t.fieldInfos},n,!1),l=(0,i.b3)(r);return(0,i.lv)(l,t.domains,t.returnAllCodedValues,t.fieldDelimiter)}async function b(e){let{attribute:t,features:n}=e,{field:r,normalizationType:l,normalizationField:a,normalizationTotal:s,classificationMethod:o}=t,u=await p({field:r,valueExpression:t.valueExpression,normalizationType:l,normalizationField:a,normalizationTotal:s,viewInfoParams:t.viewInfoParams,timeZone:t.timeZone,fieldInfos:t.fieldInfos},n),h=(0,i.Rw)(u,{field:r,normalizationType:l,normalizationField:a,normalizationTotal:s,classificationMethod:o,standardDeviationInterval:t.standardDeviationInterval,numClasses:t.numClasses,minValue:t.minValue,maxValue:t.maxValue});return(0,i.jM)(h,o)}async function _(e){let{attribute:t,features:n}=e,{field:r,normalizationType:l,normalizationField:a,normalizationTotal:s,classificationMethod:o}=t,u=await p({field:r,valueExpression:t.valueExpression,sqlExpression:t.sqlExpression,normalizationType:l,normalizationField:a,normalizationTotal:s,viewInfoParams:t.viewInfoParams,timeZone:t.timeZone,fieldInfos:t.fieldInfos},n);return(0,i.$y)(u,{field:r,normalizationType:l,normalizationField:a,normalizationTotal:s,classificationMethod:o,standardDeviationInterval:t.standardDeviationInterval,numBins:t.numBins,minValue:t.minValue,maxValue:t.maxValue})}async function M(e){let{attribute:t,features:n}=e,{field:i,radius:l,transform:s,spatialReference:h}=t,c=t.size??[0,0],m=function(e,t,n,i){let r=(0,u.d9)(n)?(0,u.Vp)(n):null,l=r?Math.round((r.valid[1]-r.valid[0])/t.scale[0]):null;return e.map(e=>{let n=new a.A(e.geometry);return(0,o.Gy)(t,n,n),e.geometry=r?function(e,t,n){return e.x<0?e.x+=t:e.x>n&&(e.x-=t),e}(n,l??0,i[0]):n,e})}(n??[],s,h,c);return function(e,t=18,n,i,l){let a=new Float64Array(i*l);t=Math.round((0,r.Lz)(t));let s=1/0,o=-1/0,u=(0,d.YW)(n);for(let{geometry:n,attributes:r}of e){let{x:e,y:h}=n,c=Math.max(0,e-t),m=Math.max(0,h-t),f=Math.min(l,h+t),g=Math.min(i,e+t),p=+u(r);for(let n=m;n<f;n++)for(let r=c;r<g;r++){let l=n*i+r,u=(0,d.hv)(r-e,n-h,t)*p,c=a[l]+=u;s=Math.min(s,c),o=Math.max(o,c)}}return{min:s,max:o}}(m,l??void 0,i,c[0],c[1])}},4560(e,t,n){n.d(t,{i0:()=>u,j4:()=>o,fs:()=>s});var i=n(97770),r=n(30524);n(7762),n(84952),n(27865),n(43281),n(98623);var l=n(56400);let a;function s(e){return(0,r.vE)(e)||(0,r.zD)(e)||(0,r.Ah)(e)}async function o(e,t){return e?(a||=new(await Promise.all([n.e(9696),n.e(4123)]).then(()=>n(44123)).then(e=>e.WhereClauseCache))(50,500),a.get(e,t)):null}function u(e,t){let n,r,{format:a,fieldFormat:s,timeZoneOptions:o,fieldType:u}=t??{},h=s?(0,i._m)(s):null;if(o&&({timeZone:n,timeZoneName:r}=(0,l.hv)(o.layerTimeZone,o.datesInUnknownTimezone,o.viewTimeZone,h||(0,i.J2)(a||"short-date-short-time"),u)),"string"==typeof e&&isNaN(Date.parse("time-only"===u?`1970-01-01T${e}Z`:e)))return e;switch(u){case"date-only":{let t=h||(0,i.J2)(a||"short-date");return"string"==typeof e?(0,i.iS)(e,{...t}):(0,i.Yq)(e,{...t,timeZone:"UTC"})}case"time-only":{let t=h||(0,i.J2)(a||"short-time");return"string"==typeof e?(0,i.F8)(e,t):(0,i.Yq)(e,{...t,timeZone:"UTC"})}case"timestamp-offset":{let t=a||h||o?h||(0,i.J2)(a||"short-date-short-time"):void 0,l=t?{...t,timeZone:n,timeZoneName:r}:void 0;return"string"==typeof e?(0,i.Ey)(e,l):(0,i.Yq)(e,l)}default:{let t=a||h||o?h||(0,i.J2)(a||"short-date-short-time"):void 0;return(0,i.Yq)("string"==typeof e?new Date(e):e,t?{...t,timeZone:n,timeZoneName:r}:void 0)}}}new Set(["integer","small-integer"])},1873(e,t,n){n.d(t,{$y:()=>L,Ak:()=>Z,FM:()=>f,G_:()=>d,Rw:()=>k,Vb:()=>h,b3:()=>z,gJ:()=>u,jM:()=>N,lv:()=>D,oZ:()=>S,qg:()=>m,sU:()=>A,z9:()=>c,zS:()=>I});var i=n(9760),r=n(84892);const l=/\s*(\+|-)?((\d+(\.\d+)?)|(\.\d+))\s*/gi,a=new Set(["esriFieldTypeDate","esriFieldTypeInteger","esriFieldTypeSmallInteger","esriFieldTypeSingle","esriFieldTypeDouble","esriFieldTypeLong","esriFieldTypeOID","esriFieldTypeBigInteger"]),s=new Set(["esriFieldTypeTimeOnly","esriFieldTypeDateOnly"]),o=["min","max","avg","stddev","count","sum","variance","nullcount","median"];function u(e){return null==e||"string"==typeof e&&!e?"<Null>":e}function h(e){let t=null!=e.normalizationField||null!=e.normalizationType,n=null!=e.minValue||null!=e.maxValue,i=!!e.sqlExpression&&e.supportsSQLExpression;return!t&&!n&&!i}function c(e){let{outStatisticTypes:t}=e,n=e.returnDistinct?[...new Set(e.values)]:e.values,i=n.filter(e=>null!=e).sort(),r=i.length,l={count:r,min:i[0],max:i[r-1]};return e.supportsNullCount&&(l.nullcount=n.length-r),!e.percentileParams||t?.include?.length&&!t.include.includes("median")||t?.exclude?.length&&t.exclude.includes("median")||(l.median=m(n,e.percentileParams)),l}function d(e){let{values:t,useSampleStdDev:n,supportsNullCount:i,outStatisticTypes:r}=e,l=1/0,a=-1/0,s=null,o=null,u=null,h=null,c=0,d=null==e.minValue?-1/0:e.minValue,f=null==e.maxValue?1/0:e.maxValue;for(let e of t)Number.isFinite(e)?e>=d&&e<=f&&(s=null===s?e:s+e,l=Math.min(l,e),a=Math.max(a,e),c++):"string"==typeof e&&c++;if(c&&null!=s){o=s/c;let e=0;for(let n of t)Number.isFinite(n)&&n>=d&&n<=f&&(e+=(n-o)**2);h=n?c>1?e/(c-1):0:c>0?e/c:0,u=Math.sqrt(h)}else l=null,a=null;let g={avg:o,count:c,max:a,min:l,stddev:u,sum:s,variance:h};return i&&(g.nullcount=t.length-c),!e.percentileParams||r?.include?.length&&!r.include.includes("median")||r?.exclude?.length&&r.exclude.includes("median")||(g.median=m(t,e.percentileParams)),g}function m(e,t){let{fieldType:n,value:i,orderBy:r,isDiscrete:l}=t,a=f(n,"desc"===r,"case-insensitive");if(e=[...e].filter(e=>null!=e).sort((e,t)=>a(e,t)),0===e.length)return null;if(i<=0)return e[0];if(i>=1)return e[e.length-1];let s=(e.length-1)*i,o=Math.floor(s),u=o+1,h=s%1,c=e[o],d=e[u];return u>=e.length||l||"string"==typeof c||"string"==typeof d?c:c*(1-h)+d*h}function f(e,t,n="case-sensitive"){if(e){if(a.has(e))return F(t);if(s.has(e))return w(t,!0);if("esriFieldTypeTimestampOffset"===e)return function(e){return e?b:v}(t);let i=w(t,"case-sensitive"===n);if("esriFieldTypeString"===e)return i;if("esriFieldTypeGUID"===e||"esriFieldTypeGlobalID"===e)return(e,t)=>i(C(e),C(t))}let i=t?1:-1,r=F(t),l=w(t,"case-sensitive"===n),o=y(t);return(e,t)=>"number"==typeof e&&"number"==typeof t?r(e,t):"string"==typeof e&&"string"==typeof t?l(e,t):o(e,t)??i}const g=(e,t)=>null==e?null==t?0:1:null==t?-1:null,p=(e,t)=>null==e?null==t?0:-1:null==t?1:null;function y(e){return e?g:p}const v=(e,t)=>p(e,t)??(e===t?0:new Date(e).getTime()-new Date(t).getTime()),b=(e,t)=>g(e,t)??(e===t?0:new Date(t).getTime()-new Date(e).getTime()),_=(e,t)=>p(e,t)??(e===t?0:e<t?-1:1),M=(e,t)=>g(e,t)??(e===t?0:e<t?1:-1);function w(e,t){if(t)return e?M:_;let n=y(e);return e?(e,t)=>n(e,t)??((e=e.toUpperCase())>(t=t.toUpperCase())?-1:+(e<t)):(e,t)=>n(e,t)??((e=e.toUpperCase())<(t=t.toUpperCase())?-1:+(e>t))}const T=(e,t)=>g(e,t)??t-e,x=(e,t)=>p(e,t)??e-t;function F(e){return e?T:x}function C(e){return e.slice(24,36)+e.slice(19,23)+e.slice(16,18)+e.slice(14,16)+e.slice(11,13)+e.slice(9,11)+e.slice(6,8)+e.slice(4,6)+e.slice(2,4)+e.slice(0,2)}function S(e,t,n){let i;for(i in e)t?.include?.length&&!t.include.includes(i)||t?.exclude?.length&&t.exclude.includes(i)?delete e[i]:o.includes(i)&&(Number.isFinite(e[i])||(e[i]=null));return n&&["avg","stddev","variance"].forEach(t=>{null!=e[t]&&(e[t]=Math.ceil(e[t]??0))}),e}function z(e){let t={};for(let n of e)(null==n||"string"==typeof n&&""===n.trim())&&(n=null),null==t[n]?t[n]={count:1,data:n}:t[n].count++;return{count:t}}function V(e){return"coded-value"===e?.type?e.codedValues.map(e=>e.code):[]}function D(e,t,n,i){let r=e.count,l=[];if(n&&t){let e=[],n=V(t[0]);for(let r of n)if(t[1]){let n=V(t[1]);for(let l of n)if(t[2]){let n=V(t[2]);for(let t of n)e.push(`${u(r)}${i}${u(l)}${i}${u(t)}`)}else e.push(`${u(r)}${i}${u(l)}`)}else e.push(r);for(let t of e)r.hasOwnProperty(t)||(r[t]={data:t,count:0})}for(let e in r){let t=r[e];l.push({value:t.data,count:t.count,label:t.label})}return{uniqueValueInfos:l}}function I(e,t,n,i){let r=null;switch(t){case"log":0!==e&&(r=Math.log(e)*Math.LOG10E);break;case"percent-of-total":Number.isFinite(i)&&0!==i&&(r=e/i*100);break;case"field":Number.isFinite(n)&&0!==n&&(r=e/n);break;case"natural-log":e>0&&(r=Math.log(e));break;case"square-root":e>0&&(r=e**.5)}return r}function k(e,t,n){let l=function(e){let{breakCount:t,field:n,normalizationField:r,normalizationType:l}=e,a=e.classificationMethod||"equal-interval",s="standard-deviation"===a?e.standardDeviationInterval||1:void 0,o="defined-interval"===a?e.definedInterval:void 0;return new i.A({breakCount:t,classificationField:n,classificationMethod:a,normalizationField:"field"===l?r:void 0,normalizationType:l,standardDeviationInterval:s,definedInterval:o})}({field:t.field,normalizationType:t.normalizationType,normalizationField:t.normalizationField,classificationMethod:t.classificationMethod,standardDeviationInterval:t.standardDeviationInterval,definedInterval:t.definedInterval,breakCount:t.numClasses||5});return e=function(e,t,n){let i=t??-1/0,r=n??1/0;return e.filter(e=>Number.isFinite(e)&&e>=i&&e<=r)}(e,t.minValue,t.maxValue),(0,r.t)({definition:l,values:e,normalizationTotal:t.normalizationTotal},n)}function N(e,t){let n=e.classBreaks,i=n.length,r=n[0]?.minValue,a=n[i-1]?.maxValue,s="standard-deviation"===t,o=l;return n=n.map(e=>{let t=e.label,n={minValue:e.minValue,maxValue:e.maxValue,label:t};if(s&&t){let e=t.match(o)?.map(e=>+e.trim())??[];2===e.length?(n.minStdDev=e[0],n.maxStdDev=e[1],e[0]<0&&e[1]>0&&(n.hasAvg=!0)):1===e.length&&(t.includes("<")?(n.minStdDev=null,n.maxStdDev=e[0]):t.includes(">")&&(n.minStdDev=e[0],n.maxStdDev=null))}return n}),{minValue:r,maxValue:a,classBreakInfos:n,normalizationTotal:e.normalizationTotal}}function L(e,t){let n=A(e,t);if(null==n.min&&null==n.max)return{bins:[],minValue:n.min,maxValue:n.max,normalizationTotal:t.normalizationTotal};let i=n.intervals,r=n.min??0,l=n.max??0,a=i.map((e,t)=>({minValue:i[t][0],maxValue:i[t][1],count:0}));for(let t of e)if(null!=t&&t>=r&&t<=l){let e=Z(i,t);e>-1&&a[e].count++}return{bins:a,minValue:r,maxValue:l,normalizationTotal:t.normalizationTotal}}function A(e,t,n=!1){let{field:i,classificationMethod:r,standardDeviationInterval:l,definedInterval:a,normalizationType:s,normalizationField:o,normalizationTotal:u,minValue:c,maxValue:m}=t,f=t.numBins||10,g=null,p=null,y=null;if(r&&"equal-interval"!==r||s){let{classBreaks:t}=k(e,{field:i,normalizationType:s,normalizationField:o,normalizationTotal:u,classificationMethod:r,standardDeviationInterval:l,definedInterval:a,minValue:c,maxValue:m,numClasses:f},null!=c&&null!=m?[c,m]:void 0);g=t[0]?.minValue,p=t[t.length-1]?.maxValue,y=t.map(e=>[e.minValue,e.maxValue])}else{if(null!=c&&null!=m)g=c,p=m;else{let t=d({values:e,minValue:c,maxValue:m,useSampleStdDev:!s,supportsNullCount:h({normalizationType:s,normalizationField:o,minValue:c,maxValue:m})});g=t.min??null,p=t.max??null}y=function(e,t,n){let i,r=(t-e)/n,l=[],a=e;for(let e=1;e<=n;e++)i=a+r,i=Number(i.toFixed(16)),l.push([a,e===n?t:i]),a=i;return l}(g??0,p??0,f)}if(n&&y.length){let e=y.at(-1)[1];y.push([e,e])}return{min:g,max:p,intervals:y}}function Z(e,t){let n=-1;for(let i=e.length-1;i>=0;i--)if(t>=e[i][0]){n=i;break}return n}}}]);
@@ -1 +0,0 @@
1
- "use strict";(Array.isArray(self.webpackChunkRemoteClient)?self.webpackChunkRemoteClient:self.webpackChunkRemoteClient=[]).push([[6026],{61893(e,s,t){var r=t(32198),i=t(56372),o=t(64108),n=t(36563),l=t(17676);class a{constructor(){this._resolver=Promise.withResolvers(),this._status=0,this._resolvingPromises=[],this._resolver.promise.then(()=>{this._status=1,this._cleanUp()},()=>{this._status=2,this._cleanUp()}),this.promise=this._resolver.promise}destroy(){this._cleanUp()}addResolvingPromise(e){this._resolvingPromises.push(e),this._tryResolve()}isResolved(){return 1===this._status}isRejected(){return 2===this._status}isFulfilled(){return 0!==this._status}abort(){this._resolver.reject((0,l.NK)())}_cleanUp(){this._allPromise=null,this._resolvingPromises=null}_tryResolve(){if(this.isFulfilled())return;let e=Promise.withResolvers(),s=[...this._resolvingPromises,e.promise],t=this._allPromise=Promise.all(s);t.then(()=>{this.isFulfilled()||this._allPromise!==t||this._resolver.resolve()},e=>{this.isFulfilled()||this._allPromise!==t||(0,l.zf)(e)||this._resolver.reject(e)}),e.resolve()}}const u=e=>{let s=e,t=class extends s{constructor(...e){super(...e),this._promiseProps=new a,this.addResolvingPromise(Promise.resolve())}destroy(){this._promiseProps.destroy()}isResolved(){return this._promiseProps.isResolved()}isRejected(){return this._promiseProps.isRejected()}isFulfilled(){return this._promiseProps.isFulfilled()}when(e,s){return this._promiseProps.promise.then(()=>this).then(e,s)}catch(e){return this.when(null,e)}addResolvingPromise(e){e&&!this._promiseProps.isFulfilled()&&this._promiseProps.addResolvingPromise("_promiseProps"in e?e.when():e)}addResolvingTask(e){e&&!this._promiseProps.isFulfilled()&&(this.addHandles((0,n.rE)(e)),this._promiseProps.addResolvingPromise(e.promise))}};return t=(0,r.Cg)([(0,o.$K)("esri.core.Promise")],t),t},h=u(i.A);t.d(s,["Z",0,h,"g",0,u])},13069(e,s,t){t.d(s,{AG:()=>l,lk:()=>i,vD:()=>n,yS:()=>o});const r="randomUUID"in crypto;function i(){if(r)return crypto.randomUUID();let e=crypto.getRandomValues(new Uint16Array(8));e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;let s=s=>e[s].toString(16).padStart(4,"0");return s(0)+s(1)+"-"+s(2)+"-"+s(3)+"-"+s(4)+"-"+s(5)+s(6)+s(7)}function o(){return`{${i().toUpperCase()}}`}function n(){return`{${i()}}`}function l(e){let s=e.toUpperCase();return e.startsWith("{")?s:`{${s}}`}},73444(e,s,t){t.d(s,{JK:()=>a,Ml:()=>_,QC:()=>c,lR:()=>h,oQ:()=>m});var r=t(36563);let i;t(44208);const o=globalThis.esriConfig?.locale,n=globalThis.document?.documentElement;function l(){let e=n?.getAttribute("lang"),s=globalThis.navigator?.language;return o??e??s??"en"}function a(){return void 0===i&&(i=l()),i}const u=/^(?<language>[a-z]{2,3})(?:-(?<extlang>[a-z]{3}))?(?:-[A-Z][a-z]{3})?(?:-(?<region>[A-Z]{2}|\d{3}))?(?:-.*)?$/;function h(e=a()){return p(e)?.language}function c(e=a()){let s=p(e);return s?.language&&s?.extlang?e.replace(`${s.language}-`,""):e}function p(e=a()){return u.exec(e)?.groups}const d=[];function m(e){return d.push(e),(0,r.hA)(()=>{d.splice(d.indexOf(e),1)})}new Map;const g=[];function _(e){return g.push(e),(0,r.hA)(()=>g.splice(g.indexOf(e),1))}function v(){let e=l();i!==e&&([...g].forEach(s=>s(e)),i=e,[...d].forEach(s=>s(e)))}globalThis.addEventListener?.("languagechange",v),n&&new MutationObserver(()=>{v()}).observe(n,{attributeFilter:["lang"]})},98623(e,s,t){const r=Intl.DateTimeFormat().resolvedOptions().timeZone;t.d(s,["L",0,"unknown","N",0,r])}}]);
@@ -1 +0,0 @@
1
- "use strict";(Array.isArray(self.webpackChunkRemoteClient)?self.webpackChunkRemoteClient:self.webpackChunkRemoteClient=[]).push([[1560,7366,8169,8747],{52106(e,t,r){r.d(t,{A:()=>M});var i,o,l=r(32198),n=r(91429),s=r(69540),a=r(51447),u=r(25482),p=r(53966),d=r(36708),c=r(12195),y=r(24326),g=r(65864),h=r(50498),m=r(55156),f=r(60950),v=r(54339),b=r(40124),w=r(94128),S=r(33910);const C=Symbol("meshGeometryHandles");function x(e){if(null==e)return null;let t={};for(let r in e){let i=e[r];i&&(t[r]=i.toJSON())}return 0===Object.keys(t).length?null:t}let M=class extends((0,s.OU)(u.o)){static{i=w.Z}static{o=this}constructor(e){super(e),this[i]=!0,this.distance=null,this.isAggregate=!1,this.layer=null,this.origin=null,this.sourceLayer=null,this.statisticsAggregatedIds=void 0,this._version=0,Object.defineProperties(this,{uid:{value:(0,y.c)(),configurable:!0},_lastMeshTransform:{value:{},configurable:!0,writable:!0,enumerable:!1}}),arguments.length>1&&(0,a.eF)(p.A.getLogger(this),"Graphic",{version:"4.30"})}set aggregateGeometries(e){let t=this._get("aggregateGeometries");JSON.stringify(t)!==JSON.stringify(e)&&this._set("aggregateGeometries",e)}set attributes(e){let t=this._get("attributes");t!==e&&(this._set("attributes",e),this._notifyLayer("attributes",t,e))}set geometry(e){let t=this._get("geometry");t!==e&&(this._set("geometry",e),this._watchMeshGeometryChanges(),this._notifyLayer("geometry",t,e))}set popupTemplate(e){let t=this._get("popupTemplate");t!==e&&(this._set("popupTemplate",e),this._notifyLayer("popupTemplate",t,e))}set symbol(e){let t=this._get("symbol");t!==e&&(this._set("symbol",e),this._notifyLayer("symbol",t,e))}get version(){return this._version}set visible(e){let t=this._get("visible");t!==e&&(this._set("visible",e),this._notifyLayer("visible",t,e))}cloneShallow(){return new o({aggregateGeometries:this.aggregateGeometries,statisticsAggregatedIds:this.statisticsAggregatedIds,attributes:this.attributes,geometry:this.geometry,isAggregate:this.isAggregate,layer:this.layer,popupTemplate:this.popupTemplate,sourceLayer:this.sourceLayer,symbol:this.symbol,visible:this.visible,origin:this.origin})}getEffectivePopupTemplate(e=!1){if(this.popupTemplate)return this.popupTemplate;let t=(0,f.E_)(this.origin);if(t)return t.popupTemplate??(e?t.defaultPopupTemplate:null)??null;let r=this.origin&&"layer"in this.origin?this.origin.layer:null;for(let t of[r,this.sourceLayer,this.layer])if(t&&"object"==typeof t){if("popupTemplate"in t&&t.popupTemplate)return t.popupTemplate;if(e&&"defaultPopupTemplate"in t&&null!=t.defaultPopupTemplate)return t.defaultPopupTemplate}return null}getAttribute(e){return this.attributes?.[e]}setAttribute(e,t){if(this.attributes){let r=this.getAttribute(e);this.attributes[e]=t,this._notifyLayer("attributes",r,t,e)}else this.attributes={[e]:t}}getObjectId(){let e=(0,m.I)(this.origin);if(e)return(0,v.r)(this,e);let t=this.sourceLayer??this.layer;return t?(0,v.r)(this,t):null}getGlobalId(){let e=(0,m.I)(this.origin);if(e?.globalIdField)return this.getAttribute(e.globalIdField);let t=this.sourceLayer??this.layer;return t&&"globalIdField"in t&&t.globalIdField?this.getAttribute(t.globalIdField):null}toJSON(){let e={aggregateGeometries:x(this.aggregateGeometries),geometry:this.geometry?.toJSON()??null,symbol:this.symbol?.toJSON()??null,attributes:(0,c.W)(this.attributes)?this.attributes.toJSON():{...this.attributes},popupTemplate:this.popupTemplate?.toJSON()??null};return this.statisticsAggregatedIds?.length&&(e.aggregateIds=[...this.statisticsAggregatedIds]),null!=this.distance&&(e.distance=this.distance),e}notifyMeshTransformChanged(e={}){let{geometry:t}=this;if("mesh"===t?.type){let r={origin:t.origin,transform:t.transform};this._notifyLayer("origin-transform",r,r,e.action)}}_notifyLayer(e,t,r,i){if(this._version++,!this.layer||!("graphicChanged"in this.layer))return;let o={graphic:this,property:e,oldValue:t,newValue:r};"origin-transform"===e&&(o.action=i),"attributes"===e&&(o.attributeName=i),this.layer.graphicChanged(o)}_watchMeshGeometryChanges(){this.removeHandles(C);let e=this.geometry;"mesh"===e?.type&&this.addHandles([(0,d.z7)(()=>e.vertexSpace.origin?{localMatrix:e.transform?.localMatrix,origin:e.vertexSpace.origin}:void 0,({localMatrix:e,origin:t})=>{(this._lastMeshTransform.localMatrix!==e||this._lastMeshTransform.origin!==t)&&(this._lastMeshTransform.localMatrix=e,this._lastMeshTransform.origin=t,this.notifyMeshTransformChanged())}),(0,d.z7)(()=>({vertexAttributes:e.vertexAttributes}),()=>{e.vertexSpace.origin?(this._lastMeshTransform.localMatrix=e.transform?.localMatrix,this._lastMeshTransform.origin=e.vertexSpace.origin):(this._lastMeshTransform.localMatrix=void 0,this._lastMeshTransform.origin=void 0),this._notifyLayer("geometry",e,e)},{equals:(e,t)=>e===t,sync:!0})],C)}};(0,l.Cg)([(0,n.MZ)({value:null,json:{read:function(e){if(!e)return null;let t={};for(let r in e){let i=(0,g.rS)(e[r]);i&&(t[r]=i)}return 0===Object.keys(t).length?null:t}}})],M.prototype,"aggregateGeometries",null),(0,l.Cg)([(0,n.MZ)({value:null})],M.prototype,"attributes",null),(0,l.Cg)([(0,n.MZ)({value:null,types:h.yR,json:{read:g.rS}})],M.prototype,"geometry",null),(0,l.Cg)([(0,n.MZ)()],M.prototype,"distance",void 0),(0,l.Cg)([(0,n.MZ)({type:Boolean})],M.prototype,"isAggregate",void 0),(0,l.Cg)([(0,n.MZ)({clonable:!1})],M.prototype,"layer",void 0),(0,l.Cg)([(0,n.MZ)({clonable:"reference"})],M.prototype,"origin",void 0),(0,l.Cg)([(0,n.MZ)({type:b.A,value:null})],M.prototype,"popupTemplate",null),(0,l.Cg)([(0,n.MZ)({clonable:"reference"})],M.prototype,"sourceLayer",void 0),(0,l.Cg)([(0,n.MZ)({json:{name:"aggregateIds",read:e=>e?.map(e=>Array.isArray(e)?JSON.stringify(e):e)}})],M.prototype,"statisticsAggregatedIds",void 0),(0,l.Cg)([(0,n.MZ)({value:null,types:S.Es})],M.prototype,"symbol",null),(0,l.Cg)([(0,n.MZ)({clonable:!1,json:{read:!1,write:!1}})],M.prototype,"_version",void 0),(0,l.Cg)([(0,n.MZ)({type:Boolean,value:!0})],M.prototype,"visible",null),M=o=(0,l.Cg)([(0,n.$K)("esri.Graphic")],M)},46140(e,t,r){r.d(t,{A:()=>o});var i=r(49186);class o{constructor(e,t,r=""){this.major=e,this.minor=t,this._context=r}lessThan(e,t){return this.major<e||e===this.major&&this.minor<t}greaterEqual(e,t){return!this.lessThan(e,t)}toString(){return`${this.major}.${this.minor}`}validate(e){if(this.major!==e.major){let t=this._context&&this._context+":",r=this._context&&this._context+" ";throw new i.A(t+"unsupported-version",`Required major ${r}version is '${this.major}', but got '\${version.major}.\${version.minor}'`,{version:e})}}clone(){return new o(this.major,this.minor,this._context)}static parse(e,t=""){let[r,l]=e.split(".",2),n=/^\s*\d+\s*$/;if(!r?.match||!n.test(r)){let r=t&&t+":";throw new i.A(r+"invalid-version","Expected major version to be a number, but got '${version}'",{version:e})}if(!l?.match||!n.test(l)){let r=t&&t+":";throw new i.A(r+"invalid-version","Expected minor version to be a number, but got '${version}'",{version:e})}return new o(parseInt(r,10),parseInt(l,10),t)}}},6797(e,t,r){r.d(t,{Ui:()=>c});var i=r(56372),o=r(7762),l=r(88620);const n=new Set(["esri.Color","esri.portal.Portal","esri.symbols.support.Symbol3DAnchorPosition2D","esri.symbols.support.Symbol3DAnchorPosition3D"]);function s(e){return e instanceof i.A}function a(e){return e instanceof o.A?Object.keys(e.items):s(e)?(0,l.oY)(e).keys():e?Object.keys(e):[]}function u(e,t){return e instanceof o.A?e.items[t]:e[t]}function p(e){return e?e.declaredClass:null}function d(e,t){let r=e.diff;if(r&&"function"==typeof r)return r(e,t);let i=a(e),o=a(t);if(0===i.length&&0===o.length)return;if(!i.length||!o.length||function(e,t){return!(!Array.isArray(e)||!Array.isArray(t))&&e.length!==t.length}(e,t))return{type:"complete",oldValue:e,newValue:t};let l=o.filter(e=>!i.includes(e)),c=i.filter(e=>!o.includes(e)),y=i.filter(r=>o.includes(r)&&u(e,r)!==u(t,r)).concat(l,c).sort(),g=p(e);if(g&&n.has(g)&&y.length)return{type:"complete",oldValue:e,newValue:t};let h,m=s(e)&&s(t);for(let i of y){let o,l=u(e,i),n=u(t,i);if((m||"function"!=typeof l&&"function"!=typeof n)&&l!==n&&(null!=l||null!=n)){if(r&&r[i]&&"function"==typeof r[i])o=r[i]?.(l,n);else if(l instanceof Date&&n instanceof Date){if(l.getTime()===n.getTime())continue;o={type:"complete",oldValue:l,newValue:n}}else o="object"==typeof l&&"object"==typeof n&&p(l)===p(n)?d(l,n):{type:"complete",oldValue:l,newValue:n};null!=o&&(null==h?h={type:"partial",diff:{[i]:o}}:h.diff[i]=o)}}return h}function c(e,t){if("function"!=typeof e&&"function"!=typeof t&&(null!=e||null!=t))return null==e||null==t||"object"==typeof e&&"object"==typeof t&&p(e)!==p(t)?{type:"complete",oldValue:e,newValue:t}:d(e,t)}},55156(e,t,r){r.d(t,{I:()=>o});const i=Symbol("idFieldsProviderSymbol");function o(e){return(t=e)&&i in t?e[i]:void 0;var t}r.d(t,["e",0,i])},54339(e,t,r){function i(e,t){switch(t.type){case"object-id":case"unique-id-simple":return e.attributes[t.fieldName];case"unique-id-composite":{let r=[];for(let i of t.fieldNames)r.push(e.attributes[i]??null);return JSON.stringify(r)}}}function o(e,t){if("uniqueIdFields"in t&&t.uniqueIdFields?.length){if(1===t.uniqueIdFields.length)return e.attributes?.[t.uniqueIdFields[0]];let r=t.uniqueIdFields.map(t=>e.attributes?.[t]);return JSON.stringify(r)}return"objectIdField"in t&&t.objectIdField?e.attributes?.[t.objectIdField]:null}r.d(t,{W:()=>i,r:()=>o})},52136(e,t,r){var i=r(32198),o=r(91429);r.d(t,["p",0,e=>{let t=e,r=class extends t{get apiKey(){return this._isOverridden("apiKey")?this._get("apiKey"):"portalItem"in this?this.portalItem?.apiKey:null}set apiKey(e){null==e?(this._clearOverride("apiKey"),this.clear("apiKey","user")):this._override("apiKey",e)}};return(0,i.Cg)([(0,o.MZ)({type:String})],r.prototype,"apiKey",null),r=(0,i.Cg)([(0,o.$K)("esri.layers.mixins.APIKeyMixin")],r),r}])},32756(e,t,r){r.d(t,{Rr:()=>s});var i=r(32198),o=r(91429),l=r(93637),n=r(91880);function s(e,t,r){if(!e)return null;let i=e.find(e=>!!e.field);if(!i)return null;let o=new n.A;return o.read(i,r),[o]}const a={type:[n.A],json:{origins:{"web-scene":{write:!1,read:!1}},name:"layerDefinition.orderBy",read:{reader:s},write:{writer:function(e,t,r,i){let o=e.find(e=>!!e.field);o&&(0,l.sM)(r,[o.toJSON()],t)}}}};r.d(t,["fY",0,e=>{let t=e,r=class extends t{constructor(){super(...arguments),this.orderBy=null}};return(0,i.Cg)([(0,o.MZ)(a)],r.prototype,"orderBy",void 0),r=(0,i.Cg)([(0,o.$K)("esri.layers.mixins.OrderedLayer")],r),r},"ne",0,a])},28032(e,t,r){r.d(t,{A:()=>a});var i=r(32198),o=r(91429),l=r(69540),n=r(25482),s=r(56400);let a=class extends((0,l.OU)(n.o)){constructor(e){super(e),this.creatorField=null,this.creationDateField=null,this.editorField=null,this.editDateField=null,this.realm=null,this.timeZone=null}};(0,i.Cg)([(0,o.MZ)()],a.prototype,"creatorField",void 0),(0,i.Cg)([(0,o.MZ)()],a.prototype,"creationDateField",void 0),(0,i.Cg)([(0,o.MZ)()],a.prototype,"editorField",void 0),(0,i.Cg)([(0,o.MZ)()],a.prototype,"editDateField",void 0),(0,i.Cg)([(0,o.MZ)()],a.prototype,"realm",void 0),(0,i.Cg)([(0,o.MZ)((0,s.P6)("dateFieldsTimeReference",!0))],a.prototype,"timeZone",void 0),a=(0,i.Cg)([(0,o.$K)("esri.layers.support.EditFieldsInfo")],a)},29005(e,t,r){r.d(t,{A:()=>u});var i=r(32198),o=r(91429),l=r(69540),n=r(66552),s=r(25482);const a=new n.J({esriFeatureEditToolAutoCompletePolygon:"auto-complete-polygon",esriFeatureEditToolCircle:"circle",esriFeatureEditToolEllipse:"ellipse",esriFeatureEditToolFreehand:"freehand",esriFeatureEditToolLine:"line",esriFeatureEditToolNone:"none",esriFeatureEditToolPoint:"point",esriFeatureEditToolPolygon:"polygon",esriFeatureEditToolRectangle:"rectangle",esriFeatureEditToolArrow:"arrow",esriFeatureEditToolTriangle:"triangle",esriFeatureEditToolLeftArrow:"left-arrow",esriFeatureEditToolRightArrow:"right-arrow",esriFeatureEditToolUpArrow:"up-arrow",esriFeatureEditToolDownArrow:"down-arrow"});let u=class extends((0,l.OU)(s.o)){constructor(e){super(e),this.name=null,this.description=null,this.drawingTool=null,this.prototype=null,this.thumbnail=null}};(0,i.Cg)([(0,o.MZ)({json:{write:!0}})],u.prototype,"name",void 0),(0,i.Cg)([(0,o.MZ)({json:{write:!0}})],u.prototype,"description",void 0),(0,i.Cg)([(0,o.MZ)({json:{read:a.read,write:a.write}})],u.prototype,"drawingTool",void 0),(0,i.Cg)([(0,o.MZ)({json:{write:!0}})],u.prototype,"prototype",void 0),(0,i.Cg)([(0,o.MZ)({json:{write:!0}})],u.prototype,"thumbnail",void 0),u=(0,i.Cg)([(0,o.$K)("esri.layers.support.FeatureTemplate")],u)},33143(e,t,r){r.d(t,{A:()=>d});var i=r(32198),o=r(91429),l=r(69540),n=r(25482),s=r(8631),a=r(29005),u=r(36005),p=r(43937);let d=class extends((0,l.OU)(n.o)){constructor(e){super(e),this.id=null,this.name=null,this.domains=null,this.templates=null}readDomains(e){let t={};for(let r of Object.keys(e))t[r]=(0,s.r)(e[r]);return t}writeDomains(e,t){let r={};for(let t of Object.keys(e))e[t]&&(r[t]=e[t]?.toJSON());t.domains=r}};(0,i.Cg)([(0,o.MZ)({json:{write:!0}})],d.prototype,"id",void 0),(0,i.Cg)([(0,o.MZ)({json:{write:!0}})],d.prototype,"name",void 0),(0,i.Cg)([(0,o.MZ)({json:{write:!0}})],d.prototype,"domains",void 0),(0,i.Cg)([(0,u.w)("domains")],d.prototype,"readDomains",null),(0,i.Cg)([(0,p.K)("domains")],d.prototype,"writeDomains",null),(0,i.Cg)([(0,o.MZ)({type:[a.A],json:{write:!0}})],d.prototype,"templates",void 0),d=(0,i.Cg)([(0,o.$K)("esri.layers.support.FeatureType")],d)},46499(e,t,r){var i,o,l=r(32198),n=r(91429),s=r(90360),a=(r(44208),r(66552)),u=r(25482),p=r(4718),d=r(90629),c=r(59868),y=r(73838),g=r(33910),h=r(73913),m=r(32730),f=r(77548),v=r(36005),b=r(43937);const w=new a.J({esriServerPointLabelPlacementAboveCenter:"above-center",esriServerPointLabelPlacementAboveLeft:"above-left",esriServerPointLabelPlacementAboveRight:"above-right",esriServerPointLabelPlacementBelowCenter:"below-center",esriServerPointLabelPlacementBelowLeft:"below-left",esriServerPointLabelPlacementBelowRight:"below-right",esriServerPointLabelPlacementCenterCenter:"center-center",esriServerPointLabelPlacementCenterLeft:"center-left",esriServerPointLabelPlacementCenterRight:"center-right",esriServerLinePlacementAboveAfter:"above-after",esriServerLinePlacementAboveAlong:"above-along",esriServerLinePlacementAboveBefore:"above-before",esriServerLinePlacementAboveStart:"above-start",esriServerLinePlacementAboveEnd:"above-end",esriServerLinePlacementBelowAfter:"below-after",esriServerLinePlacementBelowAlong:"below-along",esriServerLinePlacementBelowBefore:"below-before",esriServerLinePlacementBelowStart:"below-start",esriServerLinePlacementBelowEnd:"below-end",esriServerLinePlacementCenterAfter:"center-after",esriServerLinePlacementCenterAlong:"center-along",esriServerLinePlacementCenterBefore:"center-before",esriServerLinePlacementCenterStart:"center-start",esriServerLinePlacementCenterEnd:"center-end",esriServerPolygonPlacementAlwaysHorizontal:"always-horizontal"},{ignoreUnknown:!0});function S(e,t,r){return{enabled:!(0,f.TU)(r?.layer)}}function C(e){return!e||"service"!==e.origin&&"map-image"!==e.layer?.type}function x(e){return!!function(e){return"map-image"===e?.type}(e)&&!!e.capabilities?.exportMap?.supportsArcadeExpressionForLabeling}let M=class extends u.o{static{i=m.vK}static{o=this}static evaluateWhere(e,t){let r=(e,t,r)=>{switch(t){case"=":return e==r;case"<>":return e!=r;case">":return e>r;case">=":return e>=r;case"<":return e<r;case"<=":return e<=r}return!1};try{if(null==e)return!0;let i=e.split(" ");if(3===i.length)return r(t[i[0]],i[1],i[2]);if(7===i.length){let e=r(t[i[0]],i[1],i[2]),o=i[3],l=r(t[i[4]],i[5],i[6]);switch(o){case"AND":return e&&l;case"OR":return e||l}}return!1}catch{}}constructor(e){super(e),this[i]=!0,this.type="label",this.name=null,this.allowOverrun=!1,this.deconflictionStrategy="static",this.labelExpression=null,this.labelExpressionInfo=null,this.labelPlacement=null,this.offsetDistance=0,this.labelPosition="curved",this.maxScale=0,this.minScale=0,this.repeatLabel=!0,this.symbol=c.Hk,this.useCodedValues=void 0,this.where=null}readLabelExpression(e,t){let r=t.labelExpressionInfo;if(!r||!r.value&&!r.expression)return e}writeLabelExpression(e,t,r){if(this.labelExpressionInfo)if(null!=this.labelExpressionInfo.value)e=(0,m.D3)(this.labelExpressionInfo.value);else if(null!=this.labelExpressionInfo.expression){let t=(0,m.tH)(this.labelExpressionInfo.expression);t&&(e="["+t+"]")}null!=e&&(t[r]=e)}writeLabelExpressionInfo(e,t,r,i){if(null==e&&null!=this.labelExpression&&C(i))e=new h.A({expression:this.getLabelExpressionArcade()});else if(!e)return;let o=e.toJSON(i);o.expression&&(t[r]=o)}writeMaxScale(e,t){(e||this.minScale)&&(t.maxScale=e)}writeMinScale(e,t){(e||this.maxScale)&&(t.minScale=e)}get repeatLabelDistance(){return this._get("repeatLabelDistance")}set repeatLabelDistance(e){this._set("repeatLabelDistance",e)}getLabelExpression(){return(0,m.XJ)(this)}getLabelExpressionArcade(){return(0,m.BI)(this)}getLabelExpressionSingleField(){return(0,m.rU)(this)}hash(){return JSON.stringify(this)}clone(){return new o({allowOverrun:this.allowOverrun,deconflictionStrategy:this.deconflictionStrategy,labelExpression:this.labelExpression,labelExpressionInfo:(0,p.o8)(this.labelExpressionInfo),labelPosition:this.labelPosition,labelPlacement:this.labelPlacement,offsetDistance:this.offsetDistance,maxScale:this.maxScale,minScale:this.minScale,name:this.name,repeatLabel:this.repeatLabel,repeatLabelDistance:this.repeatLabelDistance,symbol:(0,p.o8)(this.symbol),where:this.where,useCodedValues:this.useCodedValues})}};(0,l.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],M.prototype,"name",void 0),(0,l.Cg)([(0,n.MZ)({type:Boolean,json:{write:!0,default:!1,origins:{"web-scene":{write:!1},"portal-item":{default:!1,write:{overridePolicy:S}}}}})],M.prototype,"allowOverrun",void 0),(0,l.Cg)([(0,n.MZ)({type:String,json:{write:!0,default:"static",origins:{"web-scene":{write:!1},"portal-item":{default:"static",write:{overridePolicy:S}}}}})],M.prototype,"deconflictionStrategy",void 0),(0,l.Cg)([(0,n.MZ)({type:String,json:{write:{overridePolicy(e,t,r){return this.labelExpressionInfo&&"service"===r?.origin&&x(r.layer)?{enabled:!1}:{allowNull:!0}}}}})],M.prototype,"labelExpression",void 0),(0,l.Cg)([(0,v.w)("labelExpression")],M.prototype,"readLabelExpression",null),(0,l.Cg)([(0,b.K)("labelExpression")],M.prototype,"writeLabelExpression",null),(0,l.Cg)([(0,n.MZ)({type:h.A,json:{write:{overridePolicy:(e,t,r)=>function(e){return C(e)||x(e?.layer)}(r)?{allowNull:!0}:{enabled:!1}}}})],M.prototype,"labelExpressionInfo",void 0),(0,l.Cg)([(0,b.K)("labelExpressionInfo")],M.prototype,"writeLabelExpressionInfo",null),(0,l.Cg)([(0,n.MZ)({type:w.apiValues,json:{type:w.jsonValues,read:w.read,write:w.write}})],M.prototype,"labelPlacement",void 0),(0,l.Cg)([(0,n.MZ)({type:Number,json:{read:!0,write:!0,default:0,origins:{"web-scene":{write:!1}}}})],M.prototype,"offsetDistance",void 0),(0,l.Cg)([(0,n.MZ)({type:["curved","parallel"],json:{write:!0,origins:{"web-map":{write:!1},"web-scene":{write:!1},"portal-item":{write:!1}}}})],M.prototype,"labelPosition",void 0),(0,l.Cg)([(0,n.MZ)({type:Number})],M.prototype,"maxScale",void 0),(0,l.Cg)([(0,b.K)("maxScale")],M.prototype,"writeMaxScale",null),(0,l.Cg)([(0,n.MZ)({type:Number})],M.prototype,"minScale",void 0),(0,l.Cg)([(0,b.K)("minScale")],M.prototype,"writeMinScale",null),(0,l.Cg)([(0,n.MZ)({type:Boolean,json:{write:!0,origins:{"web-scene":{write:!1},"portal-item":{write:{overridePolicy:S}}}}})],M.prototype,"repeatLabel",void 0),(0,l.Cg)([(0,n.MZ)({type:Number,cast:d.cr,json:{write:!0,origins:{"web-scene":{write:!1},"portal-item":{write:{overridePolicy:S}}}}})],M.prototype,"repeatLabelDistance",null),(0,l.Cg)([(0,n.MZ)({types:g.em,json:{types:g.em,origins:{"portal-item":{types:g.em,read:{reader:(0,s.C)({types:g.em})},default:null},"web-scene":{types:g.Rv,read:{reader:(0,s.C)({types:g.Rv})},write:y.oO,default:null}},write:y.oO,default:null}})],M.prototype,"symbol",void 0),(0,l.Cg)([(0,n.MZ)({type:Boolean,json:{write:!0}})],M.prototype,"useCodedValues",void 0),(0,l.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],M.prototype,"where",void 0),M=o=(0,l.Cg)([(0,n.$K)("esri.layers.support.LabelClass")],M);const A=M;r.d(t,["A",0,A])},73913(e,t,r){var i,o=r(32198),l=r(91429),n=r(25482),s=r(32730),a=r(36005),u=r(43937);let p=class extends n.o{static{i=this}constructor(e){super(e),this.name=null,this.expression=null,this.title=null,this.value=null}readExpression(e,t){return t.value?(0,s.mX)(t.value):e}writeExpression(e,t,r){null!=this.value&&(e=(0,s.mX)(this.value)),null!=e&&(t[r]=e)}clone(){return new i({name:this.name,expression:this.expression,title:this.title,value:this.value})}};(0,o.Cg)([(0,l.MZ)({type:String,json:{write:!0,origins:{"web-scene":{write:!1}}}})],p.prototype,"name",void 0),(0,o.Cg)([(0,l.MZ)({type:String,json:{write:{writerEnsuresNonNull:!0}}})],p.prototype,"expression",void 0),(0,o.Cg)([(0,a.w)("expression",["expression","value"])],p.prototype,"readExpression",null),(0,o.Cg)([(0,u.K)("expression")],p.prototype,"writeExpression",null),(0,o.Cg)([(0,l.MZ)({type:String,json:{write:!0,origins:{"web-scene":{write:!1}}}})],p.prototype,"title",void 0),(0,o.Cg)([(0,l.MZ)({json:{read:!1,write:!1}})],p.prototype,"value",void 0),p=i=(0,o.Cg)([(0,l.$K)("esri.layers.support.LabelExpressionInfo")],p);const d=p;r.d(t,["A",0,d])},37352(e,t,r){r.d(t,{A:()=>a});var i,o=r(32198),l=r(91429),n=r(7762),s=r(25482);let a=i=class extends s.o{constructor(e){super(e),this.floorField=null,this.viewAllMode=!1,this.viewAllLevelIds=new n.A}clone(){return new i({floorField:this.floorField,viewAllMode:this.viewAllMode,viewAllLevelIds:this.viewAllLevelIds})}};(0,o.Cg)([(0,l.MZ)({type:String,json:{write:{isRequired:!0}}})],a.prototype,"floorField",void 0),(0,o.Cg)([(0,l.MZ)({json:{read:!1,write:!1}})],a.prototype,"viewAllMode",void 0),(0,o.Cg)([(0,l.MZ)({json:{read:!1,write:!1}})],a.prototype,"viewAllLevelIds",void 0),a=i=(0,o.Cg)([(0,l.$K)("esri.layers.support.LayerFloorInfo")],a)},91880(e,t,r){r.d(t,{A:()=>u});var i,o=r(32198),l=r(91429),n=r(66552),s=r(25482);const a=new n.J({asc:"ascending",desc:"descending"});let u=class extends s.o{static{i=this}constructor(e){super(e),this.field=null,this.valueExpression=null,this.order="ascending"}clone(){return new i({field:this.field,valueExpression:this.valueExpression,order:this.order})}};(0,o.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],u.prototype,"field",void 0),(0,o.Cg)([(0,l.MZ)({type:String,json:{write:!0,origins:{"web-scene":{read:!1,write:!1}}}})],u.prototype,"valueExpression",void 0),(0,o.Cg)([(0,l.MZ)({type:a.apiValues,json:{type:a.jsonValues,read:a.read,write:a.write}})],u.prototype,"order",void 0),u=i=(0,o.Cg)([(0,l.$K)("esri.layers.support.OrderByInfo")],u)},45067(e,t,r){r.d(t,{A:()=>p});var i=r(32198),o=r(91429),l=r(69540),n=r(66552),s=r(25482);const a=new n.J({esriRelCardinalityOneToOne:"one-to-one",esriRelCardinalityOneToMany:"one-to-many",esriRelCardinalityManyToMany:"many-to-many"}),u=new n.J({esriRelRoleOrigin:"origin",esriRelRoleDestination:"destination"});let p=class extends((0,l.OU)(s.o)){constructor(e){super(e),this.cardinality=null,this.catalogId=null,this.composite=null,this.id=null,this.keyField=null,this.keyFieldInRelationshipTable=null,this.name=null,this.relatedTableId=null,this.relationshipTableId=null,this.role=null}};(0,i.Cg)([(0,o.MZ)({json:{read:a.read,write:a.write}})],p.prototype,"cardinality",void 0),(0,i.Cg)([(0,o.MZ)({json:{name:"catalogID"}})],p.prototype,"catalogId",void 0),(0,i.Cg)([(0,o.MZ)({json:{read:!0,write:!0}})],p.prototype,"composite",void 0),(0,i.Cg)([(0,o.MZ)({json:{read:!0,write:!0}})],p.prototype,"id",void 0),(0,i.Cg)([(0,o.MZ)({json:{read:!0,write:!0}})],p.prototype,"keyField",void 0),(0,i.Cg)([(0,o.MZ)({json:{read:!0,write:!0}})],p.prototype,"keyFieldInRelationshipTable",void 0),(0,i.Cg)([(0,o.MZ)({json:{read:!0,write:!0}})],p.prototype,"name",void 0),(0,i.Cg)([(0,o.MZ)({json:{read:!0,write:!0}})],p.prototype,"relatedTableId",void 0),(0,i.Cg)([(0,o.MZ)({json:{read:!0,write:!0}})],p.prototype,"relationshipTableId",void 0),(0,i.Cg)([(0,o.MZ)({json:{read:u.read,write:u.write}})],p.prototype,"role",void 0),p=(0,i.Cg)([(0,o.$K)("esri.layers.support.Relationship")],p)},41560(e,t,r){r.d(t,{Ch:()=>n,mW:()=>l});var i=r(34727),o=r(39516);function l(e,t){return{...t,filterMode:e.mode}}function n(e,t,r){let l=function(e){if("manual"===u(e))return null;let t=[-1/0,1/0];for(let{minScale:r,maxScale:i}of e.filters)t[0]=Math.max(t[0],p(r)),t[1]=Math.min(t[1],d(i));return t}(e);if(l&&((0,i.gg)(t,l[0])||(0,i.ZH)(r,l[1])))return"";let n=Array.from(s(e,t,r)),a=function(e,t,r){if(0===e.length)return!0;let o=p(e.at(0)?.minScale),l=d(e.at(-1)?.maxScale);if((0,i.ZH)(o,t)||(0,i.gg)(l,r))return!0;for(let t=0;t<e.length-1;t++){let r=e[t],o=e[t+1];if((0,i.ZH)(p(o.minScale),d(r.maxScale)))return!0}return!1}(n,t,r)?"1=1":n.map(e=>e.where||"1=1").reduce((e,t)=>(0,o.IW)(e,t),"");return a&&"1=1"!==a?a:""}function*s(e,t,r){if("manual"===u(e)){let t=e.filters.find(t=>t.id===e.activeFilterId);t&&(yield t)}else{"object"==typeof t&&(t=t.scale);for(let i of e.filters)a(i.minScale,i.maxScale,t,r)&&(yield i)}}function a(e,t,r,o){return e=p(e),r=p(r),t=d(t),!(!(0,i.Sp)(r,e)&&(o??r)>e||(0,i.Hx)(t,r)||void 0!==o&&(0,i.Sp)(o,e))}function u(e){return"mode"in e?e.mode:e.filterMode}function p(e){return e||1/0}function d(e){return e||0}},39383(e,t,r){r.d(t,{w:()=>a,z:()=>d});var i=r(49186),o=r(53966),l=r(46499);const n=()=>o.A.getLogger("esri.layers.support.labelingInfo"),s=/\[([^[\]]+)\]/gi;function a(e,t,r){return e?e.map(e=>{let i=new l.A;if(i.read(e,r),i.labelExpression){let e=t.fields||t.layerDefinition?.fields||this.fields;i.labelExpression=i.labelExpression.replaceAll(s,(t,r)=>`[${function(e,t){if(!t)return e;let r=e.toLowerCase();for(let e=0;e<t.length;e++){let i=t[e].name;if(i.toLowerCase()===r)return i}return e}(r,e)}]`)}return i}):null}const u=["above-right","above-center","above-left","center-center","center-left","center-right","below-center","below-left","below-right"],p={esriGeometryPoint:u,esriGeometryMultiPatch:["always-horizontal"],esriGeometryPolygon:["always-horizontal"],esriGeometryPolyline:["center-along","above-along","below-along"],esriGeometryMultipoint:u,esriGeometryEnvelope:null};function d(e,t){let r=[];for(let o of e){let e=o.labelPlacement,l=p[t];if(!o.symbol)return n().warn("No ILabelClass symbol specified."),[];if(!l)return n().error(new i.A("labeling:unsupported-geometry-type",`Unable to create labels for layer, geometry type '${t}' is not supported`)),[];if(l.includes(e))r.push(o);else{let i=l[0];e&&n().warn(`Found invalid label placement type ${e} for ${t}. Defaulting to ${i}`);let s=o.clone();s.labelPlacement=i,r.push(s)}}return r}},73681(e,t,r){r.d(t,{n:()=>a});var i=r(49186),o=r(53966),l=r(46140),n=r(95466),s=r(55674);class a{static async from(e,t,r){let n=e.dictionary_version?l.A.parse(e.dictionary_version):null,p=new Set(e.itemsNames),d={};if(t)for(let e in t)d[e]=t[e];if(e.authoringInfo.configuration)for(let t of e.authoringInfo.configuration)d.hasOwnProperty(t.name)||(d[t.name]=t.value);let c=new Set(e.authoringInfo.symbol);for(let e of Object.keys(r))c.delete(e);c.size&&o.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("missing-fields: fieldMap entries for the following symbol fields are missing",{symbolFields:c});let y=await(0,s.xR)(e.expression,null,d);if(!y)throw new i.A("dictionary-renderer:expression-error","Unable to create dictionary renderer expression");let g=!n||!n.greaterEqual(4,0);g&&o.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("Dictionary script does not support native field types. Applying fallback",{version:n});let h=new u(r,g);return new a(g,p,y,h)}constructor(e,t,r,i){this._requiresFieldCoercionToString=e,this._itemNames=t,this._compiled=r,this._reader=i}get itemNames(){return this._itemNames}evaluate(e,t,r,i){try{return this._reader.bind(e,r,i),this._compiled.evaluate(this._reader,{$view:{scale:t}})}catch(e){o.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("arcade: dictionary script evaluation failed",{error:e})}return null}createDictionaryFieldsIndex(e){if(!this._requiresFieldCoercionToString)return new n.A(e);let t=e.map(e=>({...e,type:"esriFieldTypeString"}));return new n.A(t)}}class u extends s.Gj{constructor(e,t){super(),this._fieldMap=e,this._requiresFieldCoercionToString=t}_getField(e){let t=this._fieldMap[e]??e;return this._boundSchema.fieldsIndex.get(t)}field(e){if(!this._requiresFieldCoercionToString)return super.field(e,!1);let t=this._getField(e);return null==t||null==this._boundTarget.attributes[t.name]?"":""+this._boundTarget.attributes[t.name]}}},22671(e,t,r){r.d(t,{A:()=>v});var i,o=r(32198),l=r(91429),n=r(66552),s=r(25482),a=r(4718),u=r(16930),p=r(60408),d=r(65864),c=r(50498),y=r(52106),g=r(20437),h=r(36005),m=r(43937);const f=new n.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let v=i=class extends s.o{constructor(e){super(e),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(e,t){return this.readFeaturesWithClass(e,t,y.A)}writeGeometryType(e,t,r,i){if(e)return void f.write(e,t,r,i);let{features:o}=this;if(o)for(let e of o)if(null!=e?.geometry)return void f.write(e.geometry.type,t,r,i)}readQueryGeometry(e,t){if(!e)return null;let r=!!e.spatialReference,i=(0,d.rS)(e);return i&&!r&&t.spatialReference&&(i.spatialReference=u.A.fromJSON(t.spatialReference)),i}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());let{features:r}=this;if(r)for(let e of r)if(e&&null!=e.geometry&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new i(this.cloneProperties())}cloneProperties(){return(0,a.o8)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(e){let t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let r=0;r<t.features.length;r++){let i=t.features[r];i.geometry&&=(e?.[r])?.toJSON()||i.geometry}return t}quantize(e){let{scale:[t,r],translate:[i,o]}=e,l=this.features,n=this._getQuantizationFunction(this.geometryType,e=>Math.round((e-i)/t),e=>Math.round((o-e)/r));for(let e=0,t=l.length;e<t;e++)n?.(l[e].geometry)||(l.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){let{geometryType:e,features:t,transform:r}=this;if(!r)return this;let{translate:[i,o],scale:[l,n]}=r,s=null,a=null;if(this.hasZ&&null!=r?.scale?.[2]){let{translate:[,,e],scale:[,,t]}=r;s=r=>r*t+e}if(this.hasM&&null!=r?.scale?.[3]){let{translate:[,,,e],scale:[,,,t]}=r;a=r=>null==r?r:r*t+e}let u=this._getHydrationFunction(e,e=>e*l+i,e=>o-e*n,s,a);for(let{geometry:e}of t)null!=e&&u&&u(e);return this.transform=null,this}readFeaturesWithClass(e,t,r){let i=u.A.fromJSON(t.spatialReference),o=[];for(let t=0;t<e.length;t++){let l=e[t],n=r.fromJSON(l),s=l.geometry?.spatialReference;null!=n.geometry&&!s&&(n.geometry.spatialReference=i);let a=l.aggregateGeometries,u=n.aggregateGeometries;if(a&&null!=u)for(let e in u){let t=u[e],r=a[e]?.spatialReference;null!=t&&!r&&(t.spatialReference=i)}o.push(n)}return o}_quantizePoints(e,t,r){let i,o,l=[];for(let n=0,s=e.length;n<s;n++){let s=e[n];if(n>0){let e=t(s[0]),n=r(s[1]);(e!==i||n!==o)&&(l.push([e-i,n-o]),i=e,o=n)}else i=t(s[0]),o=r(s[1]),l.push([i,o])}return l.length>0?l: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=>{let i=(0,p.Bi)(e)?e.rings:e.paths,o=[];for(let e=0,l=i.length;e<l;e++){let l=i[e],n=this._quantizePoints(l,t,r);n&&o.push(n)}return o.length>0?((0,p.Bi)(e)?e.rings=o:e.paths=o,e):null}:"multipoint"===e?e=>{let i=this._quantizePoints(e.points,t,r);return i&&i.length>0?(e.points=i,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,r,i,o){return"point"===e?e=>{e.x=t(e.x),e.y=r(e.y),i&&(e.z=i(e.z))}:"polyline"===e||"polygon"===e?e=>{let l,n,s=(0,p.Bi)(e)?e.rings:e.paths;for(let e=0,i=s.length;e<i;e++){let i=s[e];for(let e=0,o=i.length;e<o;e++){let o=i[e];e>0?(l+=o[0],n+=o[1]):(l=o[0],n=o[1]),o[0]=t(l),o[1]=r(n)}}if(i&&o)for(let e=0,t=s.length;e<t;e++){let t=s[e];for(let e=0,r=t.length;e<r;e++){let r=t[e];r[2]=i(r[2]),r[3]=o(r[3])}}else if(i)for(let e=0,t=s.length;e<t;e++){let t=s[e];for(let e=0,r=t.length;e<r;e++){let r=t[e];r[2]=i(r[2])}}else if(o)for(let e=0,t=s.length;e<t;e++){let t=s[e];for(let e=0,r=t.length;e<r;e++){let r=t[e];r[2]=o(r[2])}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=r(e.ymin),e.xmax=t(e.xmax),e.ymax=r(e.ymax),i&&null!=e.zmax&&null!=e.zmin&&(e.zmax=i(e.zmax),e.zmin=i(e.zmin)),o&&null!=e.mmax&&null!=e.mmin&&(e.mmax=o(e.mmax),e.mmin=o(e.mmin))}:"multipoint"===e?e=>{let l,n,s=e.points;for(let e=0,i=s.length;e<i;e++){let i=s[e];e>0?(l+=i[0],n+=i[1]):(l=i[0],n=i[1]),i[0]=t(l),i[1]=r(n)}if(i&&o)for(let e=0,t=s.length;e<t;e++){let t=s[e];t[2]=i(t[2]),t[3]=o(t[3])}else if(i)for(let e=0,t=s.length;e<t;e++){let t=s[e];t[2]=i(t[2])}else if(o)for(let e=0,t=s.length;e<t;e++){let t=s[e];t[2]=o(t[2])}}:null}};(0,o.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],v.prototype,"displayFieldName",void 0),(0,o.Cg)([(0,l.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"exceededTransferLimit",void 0),(0,o.Cg)([(0,l.MZ)({type:[y.A],json:{write:!0}})],v.prototype,"features",void 0),(0,o.Cg)([(0,h.w)("features")],v.prototype,"readFeatures",null),(0,o.Cg)([(0,l.MZ)({type:[g.A],json:{write:!0}})],v.prototype,"fields",void 0),(0,o.Cg)([(0,l.MZ)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:f.read}}})],v.prototype,"geometryType",void 0),(0,o.Cg)([(0,m.K)("geometryType")],v.prototype,"writeGeometryType",null),(0,o.Cg)([(0,l.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"hasM",void 0),(0,o.Cg)([(0,l.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"hasZ",void 0),(0,o.Cg)([(0,l.MZ)({types:c.yR,json:{write:!0}})],v.prototype,"queryGeometry",void 0),(0,o.Cg)([(0,h.w)("queryGeometry")],v.prototype,"readQueryGeometry",null),(0,o.Cg)([(0,l.MZ)({type:u.A,json:{write:!0}})],v.prototype,"spatialReference",void 0),(0,o.Cg)([(0,m.K)("spatialReference")],v.prototype,"writeSpatialReference",null),(0,o.Cg)([(0,l.MZ)({json:{write:!0}})],v.prototype,"transform",void 0),v=i=(0,o.Cg)([(0,l.$K)("esri.rest.support.FeatureSet")],v),v.prototype.toJSON.isDefaultToJSON=!0},41366(e,t,r){var i=r(32198),o=r(91429),l=r(66552),n=r(53966),s=r(93223);const a=(0,l.O)()({naturalLog:"natural-log",squareRoot:"square-root",percentOfTotal:"percent-of-total",log:"log",field:"field"}),u="percent-of-total",p="field";r.d(t,["K",0,e=>{let t=e,r=class extends t{constructor(){super(...arguments),this.normalizationField=null,this.normalizationMaxValue=null,this.normalizationMinValue=null,this.normalizationTotal=null}get normalizationType(){let e=this._get("normalizationType"),t=!!this.normalizationField,r=null!=this.normalizationTotal;return t||r?(e=t&&p||r&&u||null,t&&r&&n.A.getLogger(this).warn("warning: both normalizationField and normalizationTotal are set!")):(e===p||e===u)&&(e=null),e}set normalizationType(e){this._set("normalizationType",e)}};return(0,i.Cg)([(0,o.MZ)({type:String,json:{name:"parameters.normalizationField",write:!0}})],r.prototype,"normalizationField",void 0),(0,i.Cg)([(0,o.MZ)({type:Number,json:{name:"parameters.normalizationMaxValue",write:!0}})],r.prototype,"normalizationMaxValue",void 0),(0,i.Cg)([(0,o.MZ)({type:Number,json:{name:"parameters.normalizationMinValue",write:!0}})],r.prototype,"normalizationMinValue",void 0),(0,i.Cg)([(0,o.MZ)({type:Number,json:{name:"parameters.normalizationTotal",write:!0}})],r.prototype,"normalizationTotal",void 0),(0,i.Cg)([(0,s.e)(a,{name:"parameters.normalizationType"})],r.prototype,"normalizationType",null),r=(0,i.Cg)([(0,o.$K)("esri.rest.support.NormalizationBinParametersMixin")],r),r},"Q",0,a])},2991(e,t,r){r.d(t,{G9:()=>u,RZ:()=>a});var i=r(39516);const o="=",l=">=",n="<=";function s(e,t,r,o){let l=o.get(e)?.type,n=o.getTimeZone(e);return`${(0,i.iA)(e)} ${t} ${(0,i.YG)(r,{type:"date"},{type:l,timeZone:n})}`}function a(e,t,r,a){if(!t||!r)return;let{startField:u,endField:p}=t,{start:d,end:c}=e;if(!d&&!c||!u&&!p)return;let y=u??p,g=p??u;if(y&&g){if(d&&c){if(d.getTime()===c.getTime())return(0,i.mA)(a,s(y,o,d,r));if(!u||!p){let e=s(y,l,d,r),t=s(y,n,c,r);return(0,i.mA)(a,(0,i.mA)(e,t))}let e=s(u,l,d,r),t=s(p,n,c,r);return(0,i.mA)(a,(0,i.mA)(e,t))}if(d)return(0,i.mA)(a,s(y,l,d,r));if(c)return(0,i.mA)(a,s(g,n,c,r))}}function u(e){let{start:t,end:r}=e;if(t||r){if(!t&&r)return`null,${r.getTime()}`;if(!r&&t)return`${t.getTime()},null`;if(r&&t)return t.getTime()===r.getTime()?`${t.getTime()}`:`${t.getTime()},${r.getTime()}`}}},93470(e,t,r){const i=[252,146,31,255],o={type:"esriSMS",style:"esriSMSCircle",size:6,color:i,outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[153,153,153,255]}},l={type:"esriSLS",style:"esriSLSSolid",width:.75,color:i};r.d(t,["Cb",0,o,"HW",0,{type:"esriSLS",style:"esriSLSSolid",color:[0,0,0,255],width:1.5},"JR",0,[153,153,153,255],"JZ",0,{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},"WR",0,{type:"esriSFS",style:"esriSFSSolid",color:[252,146,31,196],outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[255,255,255,191]}},"b6",0,{type:"esriSFS",style:"esriSFSSolid",color:[0,0,0,255],outline:null},"fT",0,i,"nC",0,{type:"esriSMS",style:"esriSMSCircle",color:[0,0,0,255],outline:null,size:10.5},"yM",0,l])}}]);
@@ -1 +0,0 @@
1
- "use strict";(Array.isArray(self.webpackChunkRemoteClient)?self.webpackChunkRemoteClient:self.webpackChunkRemoteClient=[]).push([[6319],{4341(e,t,r){r.d(t,{I:()=>a});var i=r(26390);class a{constructor(e){this._allocator=e,this._items=[],this._itemsPtr=0,this._grow()}get(){return 0===this._itemsPtr&&(0,i.d)(()=>this._reset()),this._itemsPtr===this._items.length&&this._grow(),this._items[this._itemsPtr++]}_reset(){let e=Math.min(3*Math.max(8,this._itemsPtr),this._itemsPtr+3*s);this._items.length=Math.min(e,this._items.length),this._itemsPtr=0}_grow(){for(let e=0;e<Math.max(8,Math.min(this._items.length,s));e++)this._items.push(this._allocator())}}const s=1024},80754(e,t,r){r.d(t,{j7:()=>o,kS:()=>h,kd:()=>l});var i=r(82799),a=r(16930),s=r(52006),n=r(60408);const o={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new i.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:a.A.WebMercator}),minus180Line:new i.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:a.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new i.A({paths:[[[180,-180],[180,180]]],spatialReference:a.A.WGS84}),minus180Line:new i.A({paths:[[[-180,-180],[-180,180]]],spatialReference:a.A.WGS84})}};function l(e,t){return Math.ceil((e-t)/(2*t))}function h(e,t){if((0,s.Ed)(e))for(let r of function(e){return(0,n.Bi)(e)?e.curveRings:e.curvePaths}(e))for(let e of r)if((0,s.aO)(e)){let[r,i]=e.c;r[0]+=t,i[0]+=t}else if((0,s.FG)(e)){let[r,i]=e.a;r[0]+=t,i[0]+=t}else if((0,s.n1)(e)){let[r,i,a]=e.b;r[0]+=t,i[0]+=t,a[0]+=t}else e[0]+=t;for(let r of function(e){return(0,n.Bi)(e)?e.rings:e.paths}(e))for(let e of r)e[0]+=t;return e}},71351(e,t,r){r.d(t,{C:()=>u,Cr:()=>c,LV:()=>h,fA:()=>m,vt:()=>o}),r(77690);var i=r(29242),a=r(35522),s=r(51850),n=r(4341);function o(e){return e?l((0,s.o8)(e.origin),(0,s.o8)(e.direction)):l((0,s.vt)(),(0,s.vt)())}function l(e,t){return{origin:e,direction:t}}function h(e,t){let r=d.get();return r.origin=e,r.direction=t,r}function u(e,t=o()){return m(e.origin,e.direction,t)}function c(e,t,r=o()){return(0,a.C)(r.origin,e),(0,a.Re)(r.direction,t,e),r}function m(e,t,r=o()){return(0,a.C)(r.origin,e),(0,a.C)(r.direction,t),r}r(32114);const d=new n.I(()=>o());(0,s.vt)(),(0,s.vt)(),(0,s.vt)(),(0,i.vt)()},28540(e,t,r){r.d(t,{i:()=>d});var i=r(34304),a=r(58083),s=r(34275);var n=r(35522),o=r(51850),l=r(91829),h=r(34727),u=r(71351),c=r(44280),m=r(32114);class d{constructor(e=0,t=0,r=0,i=0){this.radius=i,"number"==typeof e?this._center=(0,o.fA)(e,t,r):function(e){return t=e,(0,s.vZ)(t)&&t.length>=3||function(e){return((0,s.aI)(e)||Array.isArray(e))&&e.length>=3}(e);var t}(e)||function(e){return(t=e)instanceof Float32Array&&t.length>=4||function(e){return Array.isArray(e)&&e.length>=4}(e);var t}(e)?(this._center=(0,o.ci)(e),this.radius=4===e.length?e[3]:t):(this._center=(0,o.o8)(e.center),this.radius=e.radius)}get isValid(){return this.radius>=0}invalidate(){this.radius=-1}get center(){return this._center}set center(e){(0,n.C)(this.center,e)}exactEquals(e){return(0,n.aI)(this._center,e.center)&&this.radius===e.radius}copyFrom(e){return e!==this&&((0,n.C)(this._center,e.center),this.radius=e.radius),this}clone(){return new d(this.center,this.radius)}toVec4(){return(0,l.fA)(this.center[0],this.center[1],this.center[2],this.radius)}contains(e){return(0,n.hG)(this.center,e)<=this.radius**2}intersects(e){let t=this.radius+e.radius;return(0,n.hG)(this.center,e.center)<=t*t}intersectRay(e,t){if(null==e||!this._intersect(e,p))return!1;let{t0:r,t1:i}=p;if((r<0||i<r&&i>0)&&(r=i),r<0)return!1;if(t){let{origin:i,direction:a}=e;t[0]=i[0]+a[0]*r,t[1]=i[1]+a[1]*r,t[2]=i[2]+a[2]*r}return!0}intersectLine(e,t){let r=(0,u.Cr)(e,t);if(!this._intersect(r,p))return[];let{origin:a,direction:s}=r,{t0:l,t1:h}=p,c=e=>{let t=(0,o.vt)();return(0,n.Ln)(t,a,s,e),this.projectPoint(t,t)};return Math.abs(l-h)<(0,i.FD)()?[c(l)]:[c(l),c(h)]}_intersect(e,t){let{origin:r,direction:i}=e,a=_;a[0]=r[0]-this.center[0],a[1]=r[1]-this.center[1],a[2]=r[2]-this.center[2];let s=i[0]*i[0]+i[1]*i[1]+i[2]*i[2];if(0===s)return!1;let n=2*(i[0]*a[0]+i[1]*a[1]+i[2]*a[2]),o=n*n-4*s*(a[0]*a[0]+a[1]*a[1]+a[2]*a[2]-this.radius**2);if(o<0)return!1;let l=Math.sqrt(o);return t.t0=(-n-l)/(2*s),t.t1=(-n+l)/(2*s),!0}projectPoint(e,t){let r=(0,n.Re)(m.rq.get(),e,this.center),i=(0,n.hs)(m.rq.get(),r,this.radius/(0,n.Bw)(r));return(0,n.WQ)(t,i,this.center)}closestPointOnSilhouette(e,t){let r=m.rq.get(),i=m.Rc.get();(0,n.$A)(r,e.origin,e.direction),(0,n.$A)(t,r,e.origin),(0,n.hs)(t,t,1/(0,n.Bw)(t)*this.radius);let s=this._angleToSilhouette(e.origin),o=(0,c.g7)(e.origin,t);return(0,a.$0)(i,o+s,r),(0,n.Z0)(t,t,i),t}distanceToSilhouette(e){let t=(0,n.Re)(m.rq.get(),e,this.center),r=(0,n.m3)(t),i=this.radius**2;return Math.sqrt(Math.abs(r-i))}frustumCoverage(e,t,r){let i=this.radius,a=i*i,s=e+.5*Math.PI,n=t*t+a-2*Math.cos(s)*t*i,o=Math.sqrt(n),l=n-a;if(l<=0)return.5;let h=Math.acos(Math.sqrt(l)/o)-Math.asin(i/(o/Math.sin(s)));return Math.min(1,(h+.5*r)/r)}_angleToSilhouette(e){let t=(0,n.Re)(m.rq.get(),e,this.center),r=(0,n.Bw)(t),i=this.radius,a=i+Math.abs(i-r);return(0,h.XM)(i/a)}union(e){let t=(0,n.Io)(this._center,e.center),r=this.radius,i=e.radius;return t+i<r?this:t+r<i?(this.copyFrom(e),this):((0,n.Cc)(this._center,this._center,e.center,(t+i-r)/(2*t)),this.radius=(t+r+i)/2,this)}toJSON(){return{center:this.center,radius:this.radius}}signedDistanceToPlane(e){let{center:t,radius:r}=this,i=e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3];return i<0?Math.min(i+r,0):Math.max(i-r,0)}}new d;const p={t0:0,t1:0},_=(0,o.vt)()},38969(e,t,r){r.d(t,{i:()=>a});var i=r(37955);function a(e,t){return new Promise((r,a)=>{e.readyState>=HTMLMediaElement.HAVE_CURRENT_DATA?r():(t((0,i.Oo)(e,"canplay",r)),t((0,i.Oo)(e,"error",a)))})}},31217(e,t,r){r.d(t,{D:()=>a});var i=r(78888);async function a(e,t){return(await(0,i.A)(e,{responseType:"image",...t})).data}},76200(e,t,r){r.d(t,{h:()=>z});var i=r(49186),a=r(65529),s=r(36563),n=r(44208),o=r(97768),l=r(17676),h=r(34275),u=r(24326),c=r(84952),m=r(38969),d=r(31217),p=r(95117),_=r(21231),g=r(67171),f=r(12541),T=r(42293),x=r(53966),E=r(2741);let A;const M=[171,75,84,88,32,50,48,187,13,10,26,10];function R(e){return ArrayBuffer.isView(e)?new DataView(e.buffer,e.byteOffset,e.byteLength):new DataView(e)}function w(e,t){return e.getUint16(t,!0)+65536*e.getUint8(t+2)}function b(e,t,r){return t<=e.byteLength&&r<=e.byteLength-t}function C(e){return x.A.getLogger("esri.libs.basisu.textureMetadata").error(`Invalid or unsupported ${e} texture metadata`),null}var D=r(63907);const F=()=>x.A.getLogger("esri.views.3d.webgl-engine.lib.BasisUtil");let S=null,y=null;async function I(){return y??(A??=(async()=>{let e=await(await r.e(9321).then(()=>r(49321))).default({locateFile:e=>(0,E.s)(`esri/libs/basisu/${e}`)});return e.initializeBasis(),e})(),y=A,S=await y),y}function v(e,t){let r=function(e){let t=R(e);if(t.byteLength<77)return C("Basis");let r=t.getUint16(0,!0),i=t.getUint16(2,!0),a=t.getUint16(4,!0),s=t.getUint8(20);if(17011!==r||19!==i||77!==a||0!==s)return C("Basis");let n=t.getUint32(8,!0),o=w(t,14),l=w(t,17),h=t.getUint16(21,!0),u=!!(4&h),c=t.getUint32(65,!0);if(0===l||o<l||!(1&h)||u&&o%2!=0||!b(t,77,n)||c<77||!b(t,c,23*o))return C("Basis");let m=w(t,c),d=t.getUint8(c+3);if(0!==m||0!==d)return C("Basis");let p=t.getUint16(c+5,!0),_=t.getUint16(c+7,!0),g=1;for(let e=1;e<o;++e){let r=c+23*e;if(0!==w(t,r))break;let i=t.getUint8(r+3);g=Math.max(g,i+1)}return 0===p||0===_||g>16?C("Basis"):{width:p,height:_,levels:g,hasAlpha:u}}(e);return r?P(r,t):0}function U(e,t){let r=function(e){let t=R(e);if(t.byteLength<80||!M.every((e,r)=>t.getUint8(r)===e))return C("KTX2");let r=t.getUint32(12,!0),i=t.getUint32(16,!0),a=t.getUint32(20,!0),s=t.getUint32(24,!0),n=t.getUint32(28,!0),o=t.getUint32(36,!0),l=t.getUint32(40,!0),h=t.getUint32(44,!0),u=t.getUint32(48,!0),c=t.getUint32(52,!0);if(0!==r||1!==i||0===a||0===s||0!==n||1!==o&&6!==o||6===o&&a!==s||0===l||l>32||!b(t,80,24*l)||u<80||44!==c&&60!==c||!b(t,u,c))return C("KTX2");let m=t.getUint32(u,!0),d=t.getUint8(u+12),p=t.getUint8(u+14);if(m!==c||1!==p&&2!==p||163!==d&&166!==d||(163===d?1!==h:0!==h&&2!==h))return C("KTX2");for(let e=0;e<l;++e){let r=80+24*e,i=Number(t.getBigUint64(r,!0)),a=Number(t.getBigUint64(r+8,!0));if(i<80||0===a||!b(t,i,a))return C("KTX2")}let _=t.getUint32(56,!0),g=t.getUint32(60,!0),f=Number(t.getBigUint64(64,!0)),T=Number(t.getBigUint64(72,!0));if(g>0&&(_<80||!b(t,_,g))||1===h&&(f<80||!b(t,f,T)))return C("KTX2");let x=15&t.getUint8(u+31);return{width:a,height:s,levels:l,hasAlpha:163===d?60===c:3===x}}(e);return r?P(r,t):0}function P({levels:e,hasAlpha:t,width:r,height:i},a){let s=(0,T.MW)(t?D.CQ.COMPRESSED_RGBA8_ETC2_EAC:D.CQ.COMPRESSED_RGB8_ETC2),n=a&&e>1?(4**e-1)/(3*4**(e-1)):1;return Math.ceil(r*i*s*n)}function H(e,t,r,i,a,s,n,o,l=!1){let{compressedTextureETC:h,compressedTextureS3TC:u}=e.capabilities,{basisFormat:c,internalFormat:m}=function(e,t,r,i){return e?r?{basisFormat:1,internalFormat:i?D.CQ.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:D.CQ.COMPRESSED_RGBA8_ETC2_EAC}:{basisFormat:0,internalFormat:i?D.CQ.COMPRESSED_SRGB8_ETC2:D.CQ.COMPRESSED_RGB8_ETC2}:t?r?{basisFormat:3,internalFormat:D.CQ.COMPRESSED_RGBA_S3TC_DXT5_EXT}:{basisFormat:2,internalFormat:D.CQ.COMPRESSED_RGB_S3TC_DXT1_EXT}:{basisFormat:13,internalFormat:i?D.H0.SRGB8_ALPHA8:6408}}(null!=h,null!=u,i,l),d=t.hasMipmap?r:Math.min(1,r),p=[];for(let e=0;e<d;e++)p.push(new Uint8Array(n(e,c))),o(e,c,p[e]);return t.internalFormat=m,t.hasMipmap=p.length>1,t.samplingMode=t.hasMipmap?9987:9729,t.width=a,t.height=s,new _.g(e,t,{type:"compressed",levels:p})}function O(e,t){let r=new Uint32Array(e.buffer,e.byteOffset,16);if(1481919403!==r[0]||3140563232!==r[1]||169478669!==r[2])return F().error("Invalid magic number in KTX1 header"),null;if(67305985!==r[3]||1!==r[5]||r[7]!==D.CQ.COMPRESSED_RGB8_ETC2||6407!==r[8])return F().error("Unsupported KTX1 image"),null;let i=r[7],a=1,s=r[9],n=r[10];if(3&s||3&n)return null;let o=s,l=n;!1!==t&&(a=Math.max(1,r[14]));let h,u,c=e.byteOffset+64,m=[];for(let t=0;t<a;++t)u=(e[c]|e[c+1]<<8|e[c+2]<<16|e[c+3]<<24)>>>0,c+=4,h=new Uint8Array(e.buffer,c,u),m.push(h),c+=u,s=Math.max(1,s>>1),n=Math.max(1,n>>1);return{textureData:{type:"compressed",levels:m},internalFormat:i,width:o,height:l}}const B=()=>x.A.getLogger("esri.views.3d.webgl-engine.lib.DDSUtil");function G(e){return e.charCodeAt(0)+(e.charCodeAt(1)<<8)+(e.charCodeAt(2)<<16)+(e.charCodeAt(3)<<24)}const N=G("DXT1"),L=G("DXT3"),X=G("DXT5");function k(e,t){let r=new Int32Array(e.buffer,e.byteOffset,31);if(542327876!==r[0])return B().error("Invalid magic number in DDS header"),null;if(!(4&r[20]))return B().error("Unsupported format, must contain a FourCC code"),null;let i,a,s=r[21];switch(s){case N:i=8,a=D.CQ.COMPRESSED_RGB_S3TC_DXT1_EXT;break;case L:i=16,a=D.CQ.COMPRESSED_RGBA_S3TC_DXT3_EXT;break;case X:i=16,a=D.CQ.COMPRESSED_RGBA_S3TC_DXT5_EXT;break;default:return B().error("Unsupported FourCC code:",function(e){return String.fromCharCode(255&e,e>>8&255,e>>16&255,e>>24&255)}(s)),null}let n=1,o=r[4],l=r[3];(3&o||3&l)&&(B().warn("Rounding up compressed texture size to nearest multiple of 4."),o=o+3&-4,l=l+3&-4);let h=o,u=l;131072&r[2]&&!1!==t&&(n=Math.max(1,r[7]));let c,m,d=e.byteOffset+r[1]+4,p=[];for(let t=0;t<n;++t)m=(o+3>>2)*(l+3>>2)*i,c=new Uint8Array(e.buffer,d,m),p.push(c),d+=m,o=Math.max(1,o>>1),l=Math.max(1,l>>1);return{textureData:{type:"compressed",levels:p},internalFormat:a,width:h,height:u}}function V(e,t){return t=16*Math.floor(t/16),Math.min(16*Math.round(e/16),t)}function Q(e,t){let[r,i]=function({width:e,height:t},{maxPreferredTexturePixels:r,maxTextureSize:i}){let a=Math.max(e,t),s=e*t;if(a<=i&&s<=r)return[e,t];let n=Math.min(Math.sqrt(r/s),i/a);return[V(Math.round(e*n),i),V(Math.round(t*n),i)]}(e,t);return e.width===r&&e.height===i?e:W(e,r,i)}function W(e,t,r){if(e instanceof ImageData)return W(function(e){let t=document.createElement("canvas");t.width=e.width,t.height=e.height;let r=t.getContext("2d");if(null==r)throw new i.A("texture:context-failed","Failed to create 2d context from HTMLCanvasElement");return r.putImageData(e,0,0),t}(e),t,r);let a=document.createElement("canvas");return a.width=t,a.height=r,a.getContext("2d").drawImage(e,0,0,a.width,a.height),a}var K=r(620);const q=!!(0,n.A)("esri-tests-disable-gpu-memory-measurements");class z{constructor(e,t){this._data=e,this.id=(0,u.c)(),this.events=new a.bk,this._videoFrameHandle=null,this._videoFrameToken=-1,this._parameters={...j,...t},this._startPreload(e)}dispose(){this.unload(),this._data=this.update=void 0}_startPreload(e){e instanceof HTMLVideoElement?(this.update=t=>this._update(e,t),this._startPreloadVideoElement(e)):e instanceof HTMLImageElement&&this._startPreloadImageElement(e)}_startPreloadVideoElement(e){if(null==e.srcObject&&!(0,c.w8)(e.src)&&("auto"!==e.preload||!e.crossOrigin)&&(e.preload="auto",e.crossOrigin="anonymous",e.src=e.src,e.paused&&e.autoplay)){let t=[];(0,m.i)(e,e=>t.push(e)).then(()=>{e.play()}).finally(()=>t.forEach(e=>e.remove()))}}_startPreloadImageElement(e){(0,c.DB)(e.src)||(0,c.w8)(e.src)||e.crossOrigin||(e.crossOrigin="anonymous",e.src=e.src)}_createDescriptor(e){let t=new g.R;return t.wrapMode=this._parameters.wrap??10497,t.flipped=!this._parameters.noUnpackFlip,t.samplingMode=this._parameters.mipmap?9987:9729,t.hasMipmap=!!this._parameters.mipmap,t.preMultiplyAlpha=!!this._parameters.preMultiplyAlpha,t.maxAnisotropy=this._parameters.maxAnisotropy??(this._parameters.mipmap?e.parameters.maxMaxAnisotropy:1),t.dataType=this._parameters.dataType??t.dataType,t.pixelFormat=this._parameters.pixelFormat??t.pixelFormat,t.internalFormat=this._parameters.internalFormat??t.internalFormat,t.isImmutable=!0===this._parameters.immutable&&function(e){return null!=e&&((0,f.tl)(e)||(0,f.tr)(e)||(0,f.CR)(e)||(0,f.QJ)(e))}(this._parameters.internalFormat),t}get texture(){return this._texture??this._emptyTexture}get loaded(){return null!=this._texture}get usedMemory(){return q?0:this._texture?.usedMemory??function(e,t){if(null==e)return 0;if((0,h.mw)(e)||(0,h.mg)(e))return"image/ktx2"===t.encoding?U(e,!!t.mipmap):"image/x.basis"===t.encoding?v(e,!!t.mipmap):e.byteLength;let{width:r,height:i}=e instanceof Image||e instanceof ImageData||e instanceof HTMLCanvasElement||e instanceof HTMLVideoElement?Y(e):t,a=t.pixelFormat??6408,s=(0,T.wH)(a);return(t.mipmap?4/3:1)*r*i*s||0}(this._data,this._parameters)}load(e){if(this._loadingPromise)return this._loadingPromise;if(this._texture)return this._texture;let t=this._data;return null==t?(this._texture=new _.g(e,this._createDescriptor(e),null),this._texture):(this._emptyTexture=e.emptyTexture,this._parameters.reloadable||(this._data=void 0),"string"==typeof t?this._loadFromURL(e,t):t instanceof Image?this._loadFromImageElement(e,t):t instanceof HTMLVideoElement?this._loadFromVideoElement(e,t):t instanceof ImageData||t instanceof HTMLCanvasElement?this._loadFromImage(e,t):(0,h.mg)(t)&&"image/vnd-ms.dds"===this._parameters.encoding?this._loadFromDDSData(e,t):(0,h.mw)(t)&&"image/vnd-ms.dds"===this._parameters.encoding?this._loadFromDDSData(e,new Uint8Array(t)):(0,h.mg)(t)&&"image/ktx"===this._parameters.encoding?this._loadFromKTX1(e,t):(0,h.mw)(t)&&"image/ktx"===this._parameters.encoding?this._loadFromKTX1(e,new Uint8Array(t)):((0,h.mw)(t)||(0,h.mg)(t))&&"image/ktx2"===this._parameters.encoding?this._loadFromKTX2(e,t):((0,h.mw)(t)||(0,h.mg)(t))&&"image/x.basis"===this._parameters.encoding?this._loadFromBasis(e,t):(0,h.mw)(t)?this._loadFromPixelData(e,new Uint8Array(t)):(0,h.iu)(t)?this._loadFromPixelData(e,t):null)}_update(e,t){return null==this._texture||t===this._videoFrameToken||e.readyState<HTMLMediaElement.HAVE_CURRENT_DATA?t:(this._texture.setData(e),this._parameters.updateCallback&&this._parameters.updateCallback(),this._videoFrameToken)}_trackVideoFrames(e){let t=()=>{this._videoFrameToken++,r=e.requestVideoFrameCallback(t)},r=e.requestVideoFrameCallback(t);this._videoFrameHandle=(0,s.hA)(()=>e.cancelVideoFrameCallback(r))}_loadFromDDSData(e,t){return this._texture=function(e,t,r){let i=k(r,t.hasMipmap??!1);if(null==i)throw Error("DDS texture data is null");let{textureData:a,internalFormat:s,width:n,height:o}=i;return t.samplingMode=a.levels.length>1?9987:9729,t.hasMipmap=a.levels.length>1,t.internalFormat=s,t.width=n,t.height=o,new _.g(e,t,a)}(e,this._createDescriptor(e),t),this._emptyTexture=null,this._texture}_loadFromKTX1(e,t){return this._texture=function(e,t,r){let i=O(r,t.hasMipmap??!1);if(null==i)throw Error("KTX1 texture data is null");let{textureData:a,internalFormat:s,width:n,height:o}=i;return t.samplingMode=a.levels.length>1?9987:9729,t.hasMipmap=a.levels.length>1,t.internalFormat=s,t.width=n,t.height=o,new _.g(e,t,a)}(e,this._createDescriptor(e),t),this._emptyTexture=null,this._texture}_loadFromKTX2(e,t){return this._loadAsync(()=>async function(e,t,r,i=!1){S??=await I();let a=new S.KTX2File(new Uint8Array(r));if(!function(e){return e.getFaces()>=1&&(e.isETC1S()||e.isUASTC())}(a))return null;let s=i&&2===a.getDFDTransferFunc();a.startTranscoding();let n=H(e,t,a.getLevels(),a.getHasAlpha(),a.getWidth(),a.getHeight(),(e,t)=>a.getImageTranscodedSizeInBytes(e,0,0,t),(e,t,r)=>a.transcodeImage(r,e,0,0,t,0,-1,-1),s);return a.close(),a.delete(),n}(e,this._createDescriptor(e),t).then(e=>(this._texture=e,e)))}_loadFromBasis(e,t){return this._loadAsync(()=>async function(e,t,r){S??=await I();let i=new S.BasisFile(new Uint8Array(r));if(!function(e){return e.getNumImages()>=1&&!e.isUASTC()}(i))return null;i.startTranscoding();let a=H(e,t,i.getNumLevels(0),i.getHasAlpha(),i.getImageWidth(0,0),i.getImageHeight(0,0),(e,t)=>i.getImageTranscodedSizeInBytes(0,e,t),(e,t,r)=>i.transcodeImage(r,0,e,t,0,0));return i.close(),i.delete(),a}(e,this._createDescriptor(e),t).then(e=>(this._texture=e,e)))}_loadFromPixelData(e,t){(0,K.vA)(this._parameters.width>0&&this._parameters.height>0);let r=this._createDescriptor(e);return(6407===r.pixelFormat||6408===r.pixelFormat)&&(r.compress=this._parameters.compressionOptions),r.width=this._parameters.width??0,r.height=this._parameters.height??0,this._texture=new _.g(e,r,t),this._texture}_loadFromURL(e,t){return this._loadAsync(async r=>{let i=await(0,d.D)(t,{signal:r});return(0,l.Te)(r),this._loadFromImage(e,i)})}_loadFromImageElement(e,t){return t.complete?this._loadFromImage(e,t):this._loadAsync(async r=>{let i=await(0,p.y)(t,t.src,!1,r);return(0,l.Te)(r),this._loadFromImage(e,i)})}_loadFromVideoElement(e,t){return t.readyState>=HTMLMediaElement.HAVE_CURRENT_DATA?this._loadFromImage(e,t):this._loadFromVideoElementAsync(e,t)}_loadFromVideoElementAsync(e,t){return this._loadAsync(r=>new Promise((a,s)=>{let n=()=>{t.removeEventListener("loadeddata",h),t.removeEventListener("error",u),(0,o.xt)(c)},h=()=>{t.readyState>=HTMLMediaElement.HAVE_CURRENT_DATA&&(n(),a(this._loadFromImage(e,t)))},u=e=>{n(),s(e||new i.A("texture:load-error","Failed to load video"))};t.addEventListener("loadeddata",h),t.addEventListener("error",u);let c=(0,l.u7)(r,()=>u((0,l.NK)()))}))}_loadFromImage(e,t){let r=t instanceof HTMLVideoElement,i=r?t:Q(t,e.parameters),a=Y(i);this._parameters.width=a.width,this._parameters.height=a.height;let s=this._createDescriptor(e);return s.width=a.width,s.height=a.height,s.compress=this._parameters.compressionOptions,this._texture=new _.g(e,s,i),r&&this._trackVideoFrames(t),this._emptyTexture=null,this.events.emit("loaded"),this._texture}_loadAsync(e){let t=new AbortController;this._loadingController=t;let r=e(t.signal);this._loadingPromise=r;let i=()=>{this._loadingController===t&&(this._loadingController=null),this._loadingPromise===r&&(this._loadingPromise=null),this._emptyTexture=null};return r.then(i,i),r}unload(){if(this._videoFrameHandle=(0,o.xt)(this._videoFrameHandle),this._videoFrameToken=-1,this._texture=(0,o.WD)(this._texture),this._emptyTexture=null,null!=this._loadingController){let e=this._loadingController;this._loadingController=null,this._loadingPromise=null,e.abort()}this.events.emit("unloaded")}get parameters(){return this._parameters}}function Y(e){return e instanceof HTMLVideoElement?{width:e.videoWidth,height:e.videoHeight}:e}const j={wrap:{s:10497,t:10497},mipmap:!0,noUnpackFlip:!1,preMultiplyAlpha:!1}},58682(e,t,r){r.d(t,{Uy:()=>l,h7:()=>m});var i=r(35522),a=r(51850),s=r(70328);class n{constructor(e=0,t=!1,r=!0,i){this.tolerance=e,this.isVerticalRay=t,this.normalRequired=r,this.budget=i}}const o=(0,s.vt)();function l(e,t,r,a,s,o){if(!e.visible)return;let l=(0,i.jb)(M,a,r),{tolerance:h}=t,c=new n(h,!1,t.options.normalRequired);if(e.boundingInfo)u(e.readPrimitivePosition,e.boundingInfo,r,l,h,s,c,o);else{let t=e.readPrimitivePosition;!function(e,t,r,a,s,n,o,l){let h=t,u=R,c=Math.abs(h[0]),m=Math.abs(h[1]),d=Math.abs(h[2]),f=c>=m?c>=d?0:2:m>=d?1:2,x=f,E=h[x]<0?2:1,A=(f+E)%3,M=(f+(3-E))%3,w=h[A]/h[x],b=h[M]/h[x],C=1/h[x],D=p,F=_,S=g,{normalRequired:y}=o;for(let t=r;t<a;++t){let r=3*t;s(u[0],r),s(u[1],r+1),s(u[2],r+2),n&&(n.applyToVertex(u[0],u[0][0],u[0][1],u[0][2],t),n.applyToVertex(u[1],u[1][0],u[1][1],u[1][2],t),n.applyToVertex(u[2],u[2][0],u[2][1],u[2][2],t)),(0,i.jb)(D,u[0],e),(0,i.jb)(F,u[1],e),(0,i.jb)(S,u[2],e);let a=D[A]-w*D[x],o=D[M]-b*D[x],h=F[A]-w*F[x],c=F[M]-b*F[x],m=S[A]-w*S[x],d=S[M]-b*S[x],p=m*c-d*h,_=a*d-o*m,g=h*o-c*a;if((p<0||_<0||g<0)&&(p>0||_>0||g>0))continue;let f=p+_+g;if(0===f)continue;let E=p*(C*D[x])+_*(C*F[x])+g*(C*S[x]);if(E*Math.sign(f)<0)continue;let R=E/f;R>=0&&l(R,R,y?T(u):null,t)}}(r,l,0,e.faceCount,t,s,c,o)}}const h=(0,a.vt)();function u(e,t,r,a,n,l,c,m){if(null==t)return;let p=function(e,t){return(0,i.hZ)(t,1/e[0],1/e[1],1/e[2])}(a,h);if((0,s.C)(o,t.box),l?.applyToAabb(o),function(e,t,r,i){return function(e,t,r,i){let a=(e[0]-i-t[0])*r[0],s=(e[3]+i-t[0])*r[0],n=Math.min(a,s),o=Math.max(a,s),l=(e[1]-i-t[1])*r[1],h=(e[4]+i-t[1])*r[1];if(o=Math.min(o,Math.max(l,h)),o<0||(n=Math.max(n,Math.min(l,h)),n>o))return!1;let u=(e[2]-i-t[2])*r[2],c=(e[5]+i-t[2])*r[2];return o=Math.min(o,Math.max(u,c)),!(o<0||(n=Math.max(n,Math.min(u,c)),n>o))&&n<1/0}(e,t,r,i)}(o,r,p,n)){let{primitiveIndices:i}=t,s=i.length;if(s>1e3){let i=t.children;if(void 0!==i){for(let t of i)u(e,t,r,a,n,l,c,m);return}}d(r,a,0,s,e,i,l,c,m)}}const c=(0,a.vt)();function m(e,t,r,i,a,s,n,o,l,h=null,u=0){let m=e[0],d=e[1],p=e[2],_=t[0],g=t[1],T=t[2];for(let e=r;e<i;++e){let t=u+(h?.[e]??e),r=3*t,i=n*a[r],x=s[i],E=s[i+1],M=s[i+2],R=n*a[r+1],w=s[R],b=s[R+1],C=s[R+2],D=n*a[r+2],F=w-x,S=b-E,y=C-M,I=s[D]-x,v=s[D+1]-E,U=s[D+2]-M,P=g*U-v*T,H=T*I-U*_,O=_*v-I*g,B=F*P+S*H+y*O,G=B*B;if(G<=A)continue;let N=m-x,L=d-E,X=p-M,k=(N*P+L*H+X*O)*B;if(k<0||k>G)continue;let V=L*y-S*X,Q=X*F-y*N,W=N*S-F*L,K=(_*V+g*Q+T*W)*B;if(K<0||k+K>G)continue;let q=(I*V+v*Q+U*W)/B;q>=0&&l(q,q,o?f(F,S,y,I,v,U,c):null,t)}}function d(e,t,r,i,a,s,n,o,l){let h=e[0],u=e[1],m=e[2],d=t[0],p=t[1],_=t[2],{normalRequired:g}=o;for(let e=r;e<i;++e){let t=s[e],r=3*t,[i,o,T]=a(b,r),[x,E,M]=a(b,r+1),[R,C,D]=a(b,r+2);null!=n&&([i,o,T]=n.applyToVertex(w,i,o,T,e),[x,E,M]=n.applyToVertex(w,x,E,M,e),[R,C,D]=n.applyToVertex(w,R,C,D,e));let F=x-i,S=E-o,y=M-T,I=R-i,v=C-o,U=D-T,P=p*U-v*_,H=_*I-U*d,O=d*v-I*p,B=F*P+S*H+y*O,G=B*B;if(G<=A)continue;let N=h-i,L=u-o,X=m-T,k=(N*P+L*H+X*O)*B;if(k<0||k>G)continue;let V=L*y-S*X,Q=X*F-y*N,W=N*S-F*L,K=(d*V+p*Q+_*W)*B;if(K<0||k+K>G)continue;let q=(I*V+v*Q+U*W)/B;q>=0&&l(q,q,g?f(F,S,y,I,v,U,c):null,t)}}const p=(0,a.vt)(),_=(0,a.vt)(),g=(0,a.vt)();function f(e,t,r,a,s,n,o){return(0,i.hZ)(x,e,t,r),(0,i.hZ)(E,a,s,n),(0,i.$A)(o,x,E),(0,i.S8)(o,o),o}function T(e){return(0,i.jb)(x,e[1],e[0]),(0,i.jb)(E,e[2],e[0]),(0,i.$A)(c,x,E),(0,i.S8)(c,c),c}const x=(0,a.vt)(),E=(0,a.vt)(),A=1e-7*1e-7,M=(0,a.vt)(),R=[(0,a.vt)(),(0,a.vt)(),(0,a.vt)()],w=(0,a.vt)(),b=(0,a.vt)()},74810(e,t,r){r.d(t,{Bt:()=>o,Jr:()=>s});var i=r(51850),a=r(35522);function s({normalTexture:e,metallicRoughnessTexture:t,metallicFactor:r,roughnessFactor:s,emissiveTexture:n,emissiveFactor:o,occlusionTexture:l}){return null==e&&null==t&&null==n&&(null==o||(0,a.t2)(o,i.uY))&&null==l&&(null==s||1===s)&&(null==r||1===r)}const n=(0,i.CN)(1,1,.5),o=(0,i.CN)(0,.6,.2),l=(0,i.CN)(0,1,.2);r.d(t,["SY",0,l,"mb",0,n])},21231(e,t,r){r.d(t,{g:()=>g});var i=r(49186),a=r(44208),s=r(53966),n=r(97768),o=r(93637),l=r(17676),h=r(94656),u=r(63907),c=r(67171),m=r(12541);class d extends c.R{constructor(e,t){switch(super(),this.context=e,Object.assign(this,t),this.internalFormat){case u.H0.R16F:case u.H0.R32F:case u.H0.R8_SNORM:case u.H0.R8:this.pixelFormat=6403;break;case u.H0.R8I:case u.H0.R8UI:case u.H0.R16I:case u.H0.R16UI:case u.H0.R32I:case u.H0.R32UI:this.pixelFormat=36244}}static validate(e,t){return new d(e,t)}}const p=!!(0,a.A)("esri-tests-disable-gpu-memory-measurements"),_=()=>s.A.getLogger("esri/views/webgl/Texture");class g{static{this.TEXTURE_UNIT_FOR_UPDATES=0}static{this.compressionWorkerHandle=null}constructor(e,t=null,r=null){if(this.type=1,this._glName=null,this._samplingModeDirty=!1,this._wrapModeDirty=!1,this._shadowFilterDirty=!1,this._wasImmutablyAllocated=!1,"context"in e)this._descriptor=e,r=t;else{let r=d.validate(e,t);if(!r)throw new i.A("texture:invalid-descriptor","Texture descriptor invalid");this._descriptor=r}34067===this._descriptor.target?this._setDataCubeMap(r):this.setData(r)}get glName(){return this._glName}get descriptor(){return this._descriptor}get usedMemory(){return p?0:(0,c.e)(this._descriptor)}get isDirty(){return this._samplingModeDirty||this._wrapModeDirty||this._shadowFilterDirty}get hasWebGLTextureObject(){return!!this._glName}dispose(){this.abortCompression(),this.hasWebGLTextureObject&&this._descriptor.context?.gl&&(this._descriptor.context.instanceCounter.decrement(u.vt.Texture,this),this._descriptor.context.unbindTexture(this),this._descriptor.context.gl.deleteTexture(this._glName),this._glName=null)}release(){this.dispose()}[Symbol.dispose](){this.dispose()}resize(e,t){let r=this._descriptor;if(r.width!==e||r.height!==t){if(this._wasImmutablyAllocated)throw new i.A("texture:immutable-resize","Immutable textures can't be resized!");r.width=e,r.height=t,34067===this._descriptor.target?this._setDataCubeMap(null):this.setData(null)}}enableCompression(e){this._descriptor.compress=e}disableCompression(){this._descriptor.compress=void 0}setData(e){this.abortCompression(),!(0,m.Qp)(e)&&this._descriptor.internalFormat&&(0,o.a4)(u.CQ,this._descriptor.internalFormat)&&(this._descriptor.internalFormat=void 0),this._setData(e),!(0,m.Qp)(e)&&this._descriptor.compress&&this._compressOnWorker(e)}updateData(e,t,r,a,s,n,o=0){n||_().error("An attempt to use uninitialized data!"),this.hasWebGLTextureObject||_().error("An attempt to update uninitialized texture!");let l=this._descriptor;l.internalFormat=(0,m.mq)(l);let{context:h,pixelFormat:u,dataType:c,target:d,isImmutable:p}=l;if(p&&!this._wasImmutablyAllocated)throw new i.A("texture:uninitialized","Cannot update immutable texture before allocation!");let f=h.bindTexture(this,g.TEXTURE_UNIT_FOR_UPDATES,!0);(t<0||r<0||t+a>l.width||r+s>l.height)&&_().error("An attempt to update out of bounds of the texture!"),this._configurePixelStorage();let{gl:T}=h;o&&(a&&s||_().warn("Must pass width and height if `UNPACK_SKIP_ROWS` is used"),T.pixelStorei(T.UNPACK_SKIP_ROWS,o)),(0,m.Kv)(n)?T.texSubImage2D(d,e,t,r,a,s,u,c,n):(0,m.Qp)(n)?T.compressedTexSubImage2D(d,e,t,r,a,s,l.internalFormat,n.levels[e]):T.texSubImage2D(d,e,t,r,a,s,u,c,n),o&&T.pixelStorei(T.UNPACK_SKIP_ROWS,0),h.bindTexture(f,g.TEXTURE_UNIT_FOR_UPDATES)}updateData3D(e,t,r,a,s,n,o,l){l||_().error("An attempt to use uninitialized data!"),this.hasWebGLTextureObject||_().error("An attempt to update an uninitialized texture!");let h=this._descriptor;h.internalFormat=(0,m.mq)(h);let{context:u,pixelFormat:c,dataType:d,isImmutable:p,target:f}=h;if(p&&!this._wasImmutablyAllocated)throw new i.A("texture:uninitialized","Cannot update immutable texture before allocation!");(0,m.re)(f)||_().warn("Attempting to set 3D texture data on a non-3D texture");let T=u.bindTexture(this,g.TEXTURE_UNIT_FOR_UPDATES);u.setActiveTexture(g.TEXTURE_UNIT_FOR_UPDATES),(t<0||r<0||a<0||t+s>h.width||r+n>h.height||a+o>h.depth)&&_().error("An attempt to update out of bounds of the texture!"),this._configurePixelStorage();let{gl:x}=u;if((0,m.Qp)(l))l=l.levels[e],x.compressedTexSubImage3D(f,e,t,r,a,s,n,o,h.internalFormat,l);else{let i=l;x.texSubImage3D(f,e,t,r,a,s,n,o,c,d,i)}u.bindTexture(T,g.TEXTURE_UNIT_FOR_UPDATES)}generateMipmap(){let e=this._descriptor;if(0===e.width||0===e.height)return;if(!e.hasMipmap){if(this._wasImmutablyAllocated)throw new i.A("texture:immutable-change","Cannot add mipmaps to immutable texture after allocation");e.hasMipmap=!0,this._samplingModeDirty=!0,(0,m.QE)(e)}9729===e.samplingMode?(this._samplingModeDirty=!0,e.samplingMode=9985):9728===e.samplingMode&&(this._samplingModeDirty=!0,e.samplingMode=9984);let t=this._descriptor.context.bindTexture(this,g.TEXTURE_UNIT_FOR_UPDATES);this._descriptor.context.setActiveTexture(g.TEXTURE_UNIT_FOR_UPDATES),this._descriptor.context.gl.generateMipmap(e.target),this._descriptor.context.bindTexture(t,g.TEXTURE_UNIT_FOR_UPDATES)}clearMipmap(){let e=this._descriptor;if(e.hasMipmap){if(this._wasImmutablyAllocated)throw new i.A("texture:immutable-change","Cannot delete mipmaps to immutable texture after allocation");e.hasMipmap=!1,this._samplingModeDirty=!0,(0,m.QE)(e)}9985===e.samplingMode?(this._samplingModeDirty=!0,e.samplingMode=9729):9984===e.samplingMode&&(this._samplingModeDirty=!0,e.samplingMode=9728)}setSamplingMode(e){e!==this._descriptor.samplingMode&&(this._descriptor.samplingMode=e,this._samplingModeDirty=!0)}setWrapMode(e){e!==this._descriptor.wrapMode&&(this._descriptor.wrapMode=e,(0,m.QE)(this._descriptor),this._wrapModeDirty=!0)}setShadowFiltering(e){e!==this._descriptor.linearFilterDepth&&(this._descriptor.linearFilterDepth=this._descriptor.compareEnabled=e,this.setSamplingMode(e?9729:9728),(0,m.QE)(this._descriptor),this._shadowFilterDirty=!0)}applyChanges(){this._samplingModeDirty&&=(this._applySamplingMode(),!1),this._wrapModeDirty&&=(this._applyWrapMode(),!1),this._shadowFilterDirty&&=(this._applyShadowMode(),!1)}abortCompression(){this._compressionAbortController=(0,n.DC)(this._compressionAbortController)}_setData(e,t){let r=this._descriptor,a=r.context?.gl;if(!a)return;(0,h.Y2)(a),this.hasWebGLTextureObject||(this._glName=a.createTexture(),r.context.instanceCounter.increment(u.vt.Texture,this)),(0,m.QE)(r);let s=r.context.bindTexture(this,g.TEXTURE_UNIT_FOR_UPDATES);r.context.setActiveTexture(g.TEXTURE_UNIT_FOR_UPDATES),this._configurePixelStorage(),(0,h.Y2)(a);let n=t??r.target,o=(0,m.re)(n);if((0,m.Kv)(e))this._setDataFromTexImageSource(e,n);else{let{width:t,height:s,depth:l}=r;if(null==t||null==s)throw new i.A("texture:missing-size","Width and height must be specified!");if(o&&null==l)throw new i.A("texture:missing-depth","Depth must be specified!");if(r.internalFormat=(0,m.mq)(r),r.isImmutable&&!this._wasImmutablyAllocated&&this._texStorage(n,r.internalFormat,r.hasMipmap,t,s,l),(0,m.Qp)(e)){if(!(0,m.tl)(r.internalFormat))throw new i.A("texture:format-mismatch","Attempting to use compressed data with an uncompressed format!");this._setDataFromCompressedSource(e,r.internalFormat,n)}else this._texImage(n,0,r.internalFormat,t,s,l,e),(0,h.Y2)(a),r.hasMipmap&&this.generateMipmap()}this._applySamplingMode(),this._applyWrapMode(),this._applyAnisotropicFilteringParameters(),this._applyShadowMode(),(0,h.Y2)(a),r.context.bindTexture(s,g.TEXTURE_UNIT_FOR_UPDATES)}_setDataCubeMap(e=null){for(let t=34069;t<=34074;t++)this._setData(e,t)}_configurePixelStorage(){let e=this._descriptor.context.gl,{unpackAlignment:t,flipped:r,preMultiplyAlpha:i}=this._descriptor;e.pixelStorei(e.UNPACK_ALIGNMENT,t),e.pixelStorei(e.UNPACK_FLIP_Y_WEBGL,+!!r),e.pixelStorei(e.UNPACK_PREMULTIPLY_ALPHA_WEBGL,+!!i)}_setDataFromTexImageSource(e,t){let{gl:r}=this._descriptor.context,i=this._descriptor;i.internalFormat=(0,m.mq)(i);let a=(0,m.re)(t),{width:s,height:n,depth:o}=(0,m.Eo)(e);i.width&&i.height,i.width||=s,i.height||=n,a&&i.depth,a&&(i.depth=o),i.isImmutable&&!this._wasImmutablyAllocated&&this._texStorage(t,i.internalFormat,i.hasMipmap,s,n,o),this._texImage(t,0,i.internalFormat,s,n,o,e),(0,h.Y2)(r),i.hasMipmap&&(this.generateMipmap(),(0,h.Y2)(r))}_setDataFromCompressedSource(e,t,r){let i=this._descriptor,{width:a,height:s,depth:n}=i,o=e.levels,l=(0,m.FV)(r,a,s,n),h=Math.min(l,o.length)-1;this._descriptor.context.gl.texParameteri(i.target,33085,h),this._forEachMipmapLevel((e,i,a,s)=>{let n=o[Math.min(e,o.length-1)];this._compressedTexImage(r,e,t,i,a,s,n)},h)}_texStorage(e,t,r,a,s,n){let{gl:o}=this._descriptor.context;if(!(0,m.tr)(t)&&!(0,m.tl)(t))throw new i.A("texture:missing-format","Immutable textures must have a sized or compressed internal format");if(!this._descriptor.isImmutable)return;let l=r?(0,m.FV)(e,a,s,n):1;if((0,m.re)(e)){if(null==n)throw new i.A("texture:missing-depth","Missing depth dimension for 3D texture upload");o.texStorage3D(e,l,t,a,s,n)}else o.texStorage2D(e,l,t,a,s);this._wasImmutablyAllocated=!0}_texImage(e,t,r,a,s,n,o){let l=this._descriptor.context.gl,h=(0,m.re)(e),{isImmutable:u,pixelFormat:c,dataType:d}=this._descriptor;if(u){if(null!=o){let r=o;if(h){if(null==n)throw new i.A("texture:missing-depth","Missing depth dimension for 3D texture upload");l.texSubImage3D(e,t,0,0,0,a,s,n,c,d,r)}else l.texSubImage2D(e,t,0,0,a,s,c,d,r)}}else{let u=o;if(h){if(null==n)throw new i.A("texture:missing-depth","Missing depth dimension for 3D texture upload");l.texImage3D(e,t,r,a,s,n,0,c,d,u)}else l.texImage2D(e,t,r,a,s,0,c,d,u)}}_compressedTexImage(e,t,r,a,s,n,o){let l=this._descriptor.context.gl,h=(0,m.re)(e);if(this._descriptor.isImmutable){if(null!=o)if(h){if(null==n)throw new i.A("texture:missing-depth","Missing depth dimension for 3D texture upload");l.compressedTexSubImage3D(e,t,0,0,0,a,s,n,r,o)}else l.compressedTexSubImage2D(e,t,0,0,a,s,r,o)}else if(h){if(null==n)throw new i.A("texture:missing-depth","Missing depth dimension for 3D texture upload");l.compressedTexImage3D(e,t,r,a,s,n,0,o)}else l.compressedTexImage2D(e,t,r,a,s,0,o)}async _compressOnWorker(e){let{width:t,height:r,context:i,flipped:a,preMultiplyAlpha:s,hasMipmap:n,compress:o}=this._descriptor;if(!o)return;let{compressionTracker:h,compressionCallback:u,preserveSourceBitmap:c}=o,{compressedTextureETC:m,compressedTextureS3TC:d}=i.capabilities;if(!g.compressionWorkerHandle?.isCompressible(e,this._descriptor)||!m&&!d)return;this.abortCompression();let p=new AbortController;this._compressionAbortController=p,h?.increment();let f,T=!1,x=!1;try{e instanceof ImageBitmap?c?(f=await createImageBitmap(e),(0,l.Te)(p),x=!0):f=e:e instanceof Uint8Array?(f=e.buffer,T=this.descriptor.flipped):(f=await createImageBitmap(e,{imageOrientation:a?"flipY":"none"}),(0,l.Te)(p),x=!0);let i={data:f,width:t,height:r,needsFlip:T,components:6408===this._descriptor.pixelFormat?4:3,preMultiplyAlpha:s,isOpaque:this._descriptor.isOpaque,hasMipmap:n,hasETC:!!m,hasS3TC:!!d},o=await g.compressionWorkerHandle.invoke(i,p.signal,1);if((0,l.Te)(p),o.compressedTexture&&this.hasWebGLTextureObject){let e=this.usedMemory;this._descriptor.internalFormat=o.internalFormat,this._setData(o.compressedTexture),u?.(e-this.usedMemory)}}catch(e){(0,l.zf)(e)||_().error("Texture compression failed!")}finally{h?.decrement(),this._compressionAbortController?.signal.aborted&&(this._compressionAbortController=null),x&&f instanceof ImageBitmap&&f.close()}}_forEachMipmapLevel(e,t=1/0){let{width:r,height:a,depth:s,hasMipmap:n,target:o}=this._descriptor,l=32879===o;if(null==r||null==a||l&&null==s)throw new i.A("texture:missing-size","Missing texture dimensions for mipmap calculation");for(let i=0;e(i,r,a,s),n&&(1!==r||1!==a||l&&1!==s)&&!(i>=t);++i)r=Math.max(1,r>>1),a=Math.max(1,a>>1),l&&(s=Math.max(1,s>>1))}_applySamplingMode(){let e=this._descriptor,t=e.context?.gl,r=e.samplingMode,i=e.samplingMode;9985===r||9987===r?(r=9729,e.hasMipmap||(i=9729)):(9984===r||9986===r)&&(r=9728,e.hasMipmap||(i=9728)),t.texParameteri(e.target,t.TEXTURE_MAG_FILTER,r),t.texParameteri(e.target,t.TEXTURE_MIN_FILTER,i),null!=e.maxMipLevel&&t.texParameteri(e.target,t.TEXTURE_MAX_LEVEL,e.maxMipLevel)}_applyWrapMode(){let e=this._descriptor,t=e.context?.gl;"number"==typeof e.wrapMode?(t.texParameteri(e.target,t.TEXTURE_WRAP_S,e.wrapMode),t.texParameteri(e.target,t.TEXTURE_WRAP_T,e.wrapMode)):(t.texParameteri(e.target,t.TEXTURE_WRAP_S,e.wrapMode.s),t.texParameteri(e.target,t.TEXTURE_WRAP_T,e.wrapMode.t))}_applyShadowMode(){let e=this._descriptor,t=e.context?.gl,r=e.compareEnabled?t.COMPARE_REF_TO_TEXTURE:t.NONE;t.texParameteri(e.target,t.TEXTURE_COMPARE_MODE,r),e.compareEnabled&&t.texParameteri(e.target,t.TEXTURE_COMPARE_FUNC,t.GREATER),(0,h.Y2)(t)}_applyAnisotropicFilteringParameters(){let e=this._descriptor,t=e.context.capabilities.textureFilterAnisotropic;t&&e.context.gl.texParameterf(e.target,t.TEXTURE_MAX_ANISOTROPY,e.maxAnisotropy??1)}}},67171(e,t,r){r.d(t,{R:()=>s,e:()=>n});var i=r(63907),a=r(42293);class s{constructor(e=0,t=e){this.width=e,this.height=t,this.type=0,this.target=3553,this.pixelFormat=6408,this.dataType=i.ld.UNSIGNED_BYTE,this.samplingMode=9729,this.wrapMode=10497,this.maxAnisotropy=1,this.flipped=!1,this.hasMipmap=!1,this.isOpaque=!1,this.unpackAlignment=4,this.preMultiplyAlpha=!1,this.compareEnabled=!1,this.linearFilterDepth=!1,this.depth=1,this.isImmutable=!1}}function n(e){return e.width<=0||e.height<=0||e.depth<=0?0:Math.round(e.width*e.height*e.depth*(e.hasMipmap?4/3:1)*(null==e.internalFormat?4:(0,a.MW)(e.internalFormat))*(34067===e.target?6:1))}},42293(e,t,r){r.d(t,{MW:()=>l,wH:()=>o,yu:()=>n});var i=r(94656),a=r(63907);const s=new Set([a.pe.BYTE,a.pe.SHORT,a.pe.INT,a.pe.UNSIGNED_BYTE,a.pe.UNSIGNED_SHORT,a.pe.UNSIGNED_INT]);function n(e,t,r,a=0){let n=e.gl;e.bindBuffer(r);for(let o of r.layout){let r=t.get(o.name);if(null==r){console.warn(`There is no location for vertex attribute '${o.name}' defined.`);continue}let l=a*o.stride;if(o.count<=4)o.integer&&s.has(o.type)?n.vertexAttribIPointer(r,o.count,o.type,o.stride,o.offset+l):n.vertexAttribPointer(r,o.count,o.type,o.normalized,o.stride,o.offset+l),n.enableVertexAttribArray(r),o.divisor>0&&n.vertexAttribDivisor(r,o.divisor);else if(9===o.count)for(let e=0;e<3;e++)n.vertexAttribPointer(r+e,3,o.type,o.normalized,o.stride,o.offset+12*e+l),n.enableVertexAttribArray(r+e),o.divisor>0&&n.vertexAttribDivisor(r+e,o.divisor);else if(16===o.count)for(let e=0;e<4;e++)n.vertexAttribPointer(r+e,4,o.type,o.normalized,o.stride,o.offset+16*e+l),n.enableVertexAttribArray(r+e),o.divisor>0&&n.vertexAttribDivisor(r+e,o.divisor);else console.error("Unsupported vertex attribute element count: "+o.count);if((0,i.en)()){let t=(0,i.u1)(e.gl);t&&console.error(`Unable to bind vertex attribute "${o.name}" with baseInstanceOffset ${l}:`,t,o)}}}function o(e){switch(e){case 6406:case 6409:case 6403:case 36244:case 6402:case 34041:return 1;case 6410:case 33319:case 33320:return 2;case 6407:case 36248:return 3;case 6408:case 36249:return 4}return 0}function l(e){switch(e){case 6406:case 6409:case 6403:case 36244:case a.H0.R8:case a.H0.R8I:case a.H0.R8UI:case a.H0.R8_SNORM:case 36168:return 1;case 6410:case 33319:case 33320:case a.H0.RGBA4:case a.H0.R16F:case a.H0.R16I:case a.H0.R16UI:case a.H0.RG8:case a.H0.RG8I:case a.H0.RG8UI:case a.H0.RG8_SNORM:case a.H0.RGB565:case a.H0.RGB5_A1:case a.SB.DEPTH_COMPONENT16:return 2;case 6407:case 36248:case a.H0.RGB8:case a.H0.RGB8I:case a.H0.RGB8UI:case a.H0.RGB8_SNORM:case a.H0.SRGB8:case a.SB.DEPTH_COMPONENT24:return 3;case 6408:case 36249:case a.H0.RGBA8:case a.H0.R32F:case a.H0.R11F_G11F_B10F:case a.H0.RG16F:case a.H0.R32I:case a.H0.R32UI:case a.H0.RG16I:case a.H0.RG16UI:case a.H0.RGBA8I:case a.H0.RGBA8UI:case a.H0.RGBA8_SNORM:case a.H0.SRGB8_ALPHA8:case a.H0.RGB9_E5:case a.H0.RGB10_A2UI:case a.H0.RGB10_A2:case a.SB.DEPTH_COMPONENT32F:case a.iE.DEPTH24_STENCIL8:return 4;case a.iE.DEPTH32F_STENCIL8:return 5;case a.H0.RGB16F:case a.H0.RGB16I:case a.H0.RGB16UI:return 6;case a.H0.RG32F:case a.H0.RG32I:case a.H0.RG32UI:case a.H0.RGBA16F:case a.H0.RGBA16I:case a.H0.RGBA16UI:return 8;case a.H0.RGB32F:case a.H0.RGB32I:case a.H0.RGB32UI:return 12;case a.H0.RGBA32F:case a.H0.RGBA32I:case a.H0.RGBA32UI:return 16;case a.CQ.COMPRESSED_RGB_S3TC_DXT1_EXT:case a.CQ.COMPRESSED_RGBA_S3TC_DXT1_EXT:return.5;case a.CQ.COMPRESSED_RGBA_S3TC_DXT3_EXT:case a.CQ.COMPRESSED_RGBA_S3TC_DXT5_EXT:return 1;case a.CQ.COMPRESSED_R11_EAC:case a.CQ.COMPRESSED_SIGNED_R11_EAC:case a.CQ.COMPRESSED_RGB8_ETC2:case a.CQ.COMPRESSED_SRGB8_ETC2:case a.CQ.COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2:case a.CQ.COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2:return.5;case a.CQ.COMPRESSED_RG11_EAC:case a.CQ.COMPRESSED_SIGNED_RG11_EAC:case a.CQ.COMPRESSED_RGBA8_ETC2_EAC:case a.CQ.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:return 1}return 0}},94656(e,t,r){r.d(t,{Y2:()=>h,en:()=>l,u1:()=>n});var i=r(49186),a=r(44208),s=r(53966);function n(e){switch(e.getError()){case e.NO_ERROR:return null;case e.INVALID_ENUM:return"Invalid Enum. An unacceptable value has been specified for an enumerated argument.";case e.INVALID_VALUE:return"Invalid Value. A numeric argument is out of range.";case e.INVALID_OPERATION:return"Invalid Operation. The specified command is not allowed for the current state.";case e.INVALID_FRAMEBUFFER_OPERATION:return"Invalid Framebuffer operation. The currently bound framebuffer is not framebuffer complete when trying to render to or to read from it.";case e.OUT_OF_MEMORY:return"Out of memory. Not enough memory is left to execute the command.";case e.CONTEXT_LOST_WEBGL:return"WebGL context has been lost";default:return"Unknown error"}}const o=!!(0,a.A)("enable-feature:webgl-debug");function l(){return o}function h(e,t=l()){if(t){let t=n(e);if(t){let e=Error().stack;s.A.getLogger("esri.views.webgl.checkWebGLError").error(new i.A("webgl-error","WebGL error occurred",{message:t,stack:e}))}}}},12541(e,t,r){r.d(t,{CR:()=>u,Eo:()=>T,FV:()=>g,Kv:()=>p,QE:()=>l,QJ:()=>c,Qp:()=>d,mq:()=>f,re:()=>_,tl:()=>m,tr:()=>h});var i=r(49186),a=r(53966),s=r(93637),n=r(63907);const o=()=>a.A.getLogger("esri/views/webgl/textureUtils");function l(e){let{width:t,height:r,depth:i}=e;(null!=t&&t<0||null!=r&&r<0||null!=i&&i<0)&&o().error("Negative dimension parameters are not allowed!");let{internalFormat:a}=e;if(a&&(u(a)||c(a))){let{linearFilterDepth:t,compareEnabled:r,samplingMode:i,hasMipmap:a}=e;a&&o().error("Depth textures cannot have mipmaps"),t?9729!==i&&9728!==i&&o().error("Depth textures cannot sample mipmaps"):(9728!==i&&o().error("Depth textures without filtering must use NEAREST filtering"),r&&o().error("Depth textures without filtering cannot use compare function"))}}function h(e){return function(e){return n.XN.includes(e)}(e)||u(e)||c(e)}function u(e){return(0,s.a4)(n.SB,e)}function c(e){return(0,s.a4)(n.iE,e)}function m(e){return null!=e&&(0,s.a4)(n.CQ,e)}function d(e){return null!=e&&"type"in e&&"compressed"===e.type}function p(e){return null!=e&&!d(e)&&!function(e){return null!=e&&"byteLength"in e}(e)}function _(e){return 32879===e||35866===e}function g(e,t,r,i=1){let a=Math.max(t,r);return 32879===e&&(a=Math.max(a,i)),Math.floor(Math.log2(a))+1}function f(e){if(null!=e.internalFormat)return e.internalFormat;switch(e.dataType){case n.ld.FLOAT:switch(e.pixelFormat){case 6408:return n.H0.RGBA32F;case 6407:return n.H0.RGB32F;default:throw new i.A("texture:unknown-format","Unable to derive format")}case n.ld.UNSIGNED_BYTE:switch(e.pixelFormat){case 6408:return n.H0.RGBA8;case 6407:return n.H0.RGB8}}let{pixelFormat:t}=e;return e.internalFormat=34041===t?n.iE.DEPTH24_STENCIL8:6402===t?n.SB.DEPTH_COMPONENT24:t,e.internalFormat}function T(e){let t="width"in e?e.width:e.codedWidth,r="height"in e?e.height:e.codedHeight;return e instanceof HTMLVideoElement&&(t=e.videoWidth,r=e.videoHeight),{width:t,height:r,depth:1}}},49788(e,t,r){r.d(t,["Q",0,1/255.5,"v",0,.9960861056751468])}}]);
@@ -1 +0,0 @@
1
- "use strict";(Array.isArray(self.webpackChunkRemoteClient)?self.webpackChunkRemoteClient:self.webpackChunkRemoteClient=[]).push([[4844,6553],{80200(e,t,r){r.d(t,{T:()=>i,d:()=>p});const i={Base64:0,Hex:1,String:2,Raw:3};function s(e,t){let r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function n(e,t,r,i,n,a){return s(function(e,t){return e<<t|e>>>32-t}(s(s(t,e),s(i,a)),n),r)}function a(e,t,r,i,s,a,o){return n(t&r|~t&i,e,t,s,a,o)}function o(e,t,r,i,s,a,o){return n(t&i|r&~i,e,t,s,a,o)}function l(e,t,r,i,s,a,o){return n(t^r^i,e,t,s,a,o)}function u(e,t,r,i,s,a,o){return n(r^(t|~i),e,t,s,a,o)}function d(e,t){e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;let r=1732584193,i=-271733879,n=-1732584194,d=271733878;for(let t=0;t<e.length;t+=16){let p=r,c=i,h=n,f=d;r=a(r,i,n,d,e[t],7,-680876936),d=a(d,r,i,n,e[t+1],12,-389564586),n=a(n,d,r,i,e[t+2],17,606105819),i=a(i,n,d,r,e[t+3],22,-1044525330),r=a(r,i,n,d,e[t+4],7,-176418897),d=a(d,r,i,n,e[t+5],12,1200080426),n=a(n,d,r,i,e[t+6],17,-1473231341),i=a(i,n,d,r,e[t+7],22,-45705983),r=a(r,i,n,d,e[t+8],7,1770035416),d=a(d,r,i,n,e[t+9],12,-1958414417),n=a(n,d,r,i,e[t+10],17,-42063),i=a(i,n,d,r,e[t+11],22,-1990404162),r=a(r,i,n,d,e[t+12],7,1804603682),d=a(d,r,i,n,e[t+13],12,-40341101),n=a(n,d,r,i,e[t+14],17,-1502002290),i=a(i,n,d,r,e[t+15],22,1236535329),r=o(r,i,n,d,e[t+1],5,-165796510),d=o(d,r,i,n,e[t+6],9,-1069501632),n=o(n,d,r,i,e[t+11],14,643717713),i=o(i,n,d,r,e[t],20,-373897302),r=o(r,i,n,d,e[t+5],5,-701558691),d=o(d,r,i,n,e[t+10],9,38016083),n=o(n,d,r,i,e[t+15],14,-660478335),i=o(i,n,d,r,e[t+4],20,-405537848),r=o(r,i,n,d,e[t+9],5,568446438),d=o(d,r,i,n,e[t+14],9,-1019803690),n=o(n,d,r,i,e[t+3],14,-187363961),i=o(i,n,d,r,e[t+8],20,1163531501),r=o(r,i,n,d,e[t+13],5,-1444681467),d=o(d,r,i,n,e[t+2],9,-51403784),n=o(n,d,r,i,e[t+7],14,1735328473),i=o(i,n,d,r,e[t+12],20,-1926607734),r=l(r,i,n,d,e[t+5],4,-378558),d=l(d,r,i,n,e[t+8],11,-2022574463),n=l(n,d,r,i,e[t+11],16,1839030562),i=l(i,n,d,r,e[t+14],23,-35309556),r=l(r,i,n,d,e[t+1],4,-1530992060),d=l(d,r,i,n,e[t+4],11,1272893353),n=l(n,d,r,i,e[t+7],16,-155497632),i=l(i,n,d,r,e[t+10],23,-1094730640),r=l(r,i,n,d,e[t+13],4,681279174),d=l(d,r,i,n,e[t],11,-358537222),n=l(n,d,r,i,e[t+3],16,-722521979),i=l(i,n,d,r,e[t+6],23,76029189),r=l(r,i,n,d,e[t+9],4,-640364487),d=l(d,r,i,n,e[t+12],11,-421815835),n=l(n,d,r,i,e[t+15],16,530742520),i=l(i,n,d,r,e[t+2],23,-995338651),r=u(r,i,n,d,e[t],6,-198630844),d=u(d,r,i,n,e[t+7],10,1126891415),n=u(n,d,r,i,e[t+14],15,-1416354905),i=u(i,n,d,r,e[t+5],21,-57434055),r=u(r,i,n,d,e[t+12],6,1700485571),d=u(d,r,i,n,e[t+3],10,-1894986606),n=u(n,d,r,i,e[t+10],15,-1051523),i=u(i,n,d,r,e[t+1],21,-2054922799),r=u(r,i,n,d,e[t+8],6,1873313359),d=u(d,r,i,n,e[t+15],10,-30611744),n=u(n,d,r,i,e[t+6],15,-1560198380),i=u(i,n,d,r,e[t+13],21,1309151649),r=u(r,i,n,d,e[t+4],6,-145523070),d=u(d,r,i,n,e[t+11],10,-1120210379),n=u(n,d,r,i,e[t+2],15,718787259),i=u(i,n,d,r,e[t+9],21,-343485551),r=s(r,p),i=s(i,c),n=s(n,h),d=s(d,f)}return[r,i,n,d]}function p(e,t=i.Hex){let r=t||i.Base64,s=d(function(e){let t=[];for(let r=0,i=8*e.length;r<i;r+=8)t[r>>5]|=(255&e.charCodeAt(r/8))<<r%32;return t}(e),8*e.length);switch(r){case i.Raw:return s;case i.Hex:return function(e){let t="0123456789abcdef",r=[];for(let i=0,s=4*e.length;i<s;i++)r.push(t.charAt(e[i>>2]>>i%4*8+4&15)+t.charAt(e[i>>2]>>i%4*8&15));return r.join("")}(s);case i.String:return function(e){let t=[];for(let r=0,i=32*e.length;r<i;r+=8)t.push(String.fromCharCode(e[r>>5]>>>r%32&255));return t.join("")}(s);case i.Base64:return function(e){let t=[];for(let r=0,i=4*e.length;r<i;r+=3){let i=(e[r>>2]>>r%4*8&255)<<16|(e[r+1>>2]>>(r+1)%4*8&255)<<8|e[r+2>>2]>>(r+2)%4*8&255;for(let s=0;s<4;s++)8*r+6*s>32*e.length?t.push("="):t.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(i>>6*(3-s)&63))}return t.join("")}(s)}}},87024(e,t,r){r.d(t,{P:()=>h});var i=r(85648),s=r(97159),n=r(49186),a=r(80200),o=r(76553),l=r(84952),u=r(13069),d=r(96156),p=r(35666),c=r(10107);function h(e){let t=e?.origins??[void 0];return(r,n)=>{let a=function(e,t,r){if("resource"===e?.type)return function(e,t,r){let n=(0,d.z4)(t,r);return{type:String,read:(e,t,r)=>{let i=(0,s.r)(e,t,r);return n.type===String?i:"function"==typeof n.type?new n.type({url:i}):void 0},write:{isRequired:n.json?.write?.isRequired,writer(t,a,u,d){if(!d?.resources)return"string"==typeof t?void(a[u]=(0,s.t)(t,d)):void(a[u]=t.write({},d));let c=function(e){return null==e?null:"string"==typeof e?e:e.url}(t),h=(0,s.t)(c,{...d,verifyItemRelativeUrls:d?.verifyItemRelativeUrls?{writtenUrls:d.verifyItemRelativeUrls.writtenUrls,rootPath:void 0}:void 0},1),m=n.type!==String&&(!(0,o.H)(this)||d?.origin&&this.originIdOf(r)>(0,p.aB)(d.origin)),v={object:this,propertyName:r,value:t,targetUrl:h,dest:a,targetPropertyName:u,context:d,params:e};d?.portalItem&&h&&!(0,l.oP)(h)?m&&e?.contentAddressed?f(v):m?function(e){let{context:t,targetUrl:r,params:s,value:n,dest:a,targetPropertyName:o}=e;if(!t.portalItem)return;let u=t.portalItem.resourceFromPath(r),d=g(n,r,t),p=(0,i.n)(d),c=(0,l.Zo)(u.path),h=s?.compress??!1;p===c?(t.resources&&y({...e,resource:u,content:d,compress:h,updates:t.resources.toUpdate}),a[o]=r):f(e)}(v):function({context:e,targetUrl:t,dest:r,targetPropertyName:i}){e.portalItem&&e.resources&&(e.resources.toKeep.push({resource:e.portalItem.resourceFromPath(t),compress:!1}),r[i]=t)}(v):d?.portalItem&&(null==h||null!=(0,s.i)(h)||(0,l.w8)(h)||m)?f(v):a[u]=h}}}}(e,t,r);switch(e?.type??"other"){case"other":return{read:!0,write:!0};case"url":{let{read:e,write:t}=s.b;return{read:e,write:t}}}}(e,r,n);for(let e of t){let t=(0,c.rM)(r,e,n);for(let e in a)t[e]=a[e]}}}function f(e){let{targetUrl:t,params:r,value:o,context:d,dest:p,targetPropertyName:c}=e;if(!d.portalItem)return;let h=(0,s.p)(t),f=g(o,t,d);if(r?.contentAddressed&&"json"!==f.type)return void d.messages?.push(new n.A("persistable:contentAddressingUnsupported",`Property "${c}" is trying to serializing a resource with content of type ${f.type} with content addressing. Content addressing is only supported for json resources.`,{content:f}));let m=r?.contentAddressed&&"json"===f.type?(0,a.d)(f.jsonString):h?.filename??(0,u.lk)(),v=r?.prefix??h?.prefix,w=(0,l.fj)(v,m),b=`${w}.${(0,i.n)(f)}`;if(r?.contentAddressed&&d.resources&&"json"===f.type){let e=d.resources.toKeep.find(({resource:e})=>e.path===b)??d.resources.toAdd.find(({resource:e})=>e.path===b);if(e)return void(p[c]=e.resource.itemRelativeUrl)}let M=d.portalItem.resourceFromPath(b);(0,l.w8)(t)&&d.resources&&d.resources.pendingOperations.push((0,l.tk)(t).then(e=>{M.path=`${w}.${(0,i.n)({type:"blob",blob:e})}`,p[c]=M.itemRelativeUrl}).catch(()=>{}));let I=r?.compress??!1;d.resources&&y({...e,resource:M,content:f,compress:I,updates:d.resources.toAdd}),p[c]=M.itemRelativeUrl}function y({object:e,propertyName:t,updates:r,resource:i,content:s,compress:n}){r.push({resource:i,content:s,compress:n,finish:r=>{!function(e,t,r){"string"==typeof e[t]?e[t]=r.url:e[t].url=r.url}(e,t,r)}})}function g(e,t,r){return"string"==typeof e?{type:"url",url:t}:{type:"json",jsonString:JSON.stringify(e.toJSON(r))}}},48163(e,t,r){function i(){return[0,0]}function s(e){return[e[0],e[1]]}function n(e,t){return[e,t]}function a(){return n(1,1)}function o(){return n(-1,-1)}function l(){return n(1,0)}function u(){return n(0,1)}r.d(t,{IA:()=>p,Un:()=>d,fA:()=>n,o8:()=>s,vt:()=>i});const d=a(),p=o(),c=l(),h=u();Object.freeze(Object.defineProperty({__proto__:null,NEGATIVE_ONES:p,ONES:d,UNIT_X:c,UNIT_Y:h,ZEROS:[0,0],clone:s,create:i,freeze:function(e,t){return[e,t]},fromArray:function(e,t=[0,0]){let r=Math.min(2,e.length);for(let i=0;i<r;++i)t[i]=e[i];return t},fromValues:n,negativeOnes:o,ones:a,unitX:l,unitY:u,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"}))},58083(e,t,r){r.d(t,{$0:()=>m,$h:()=>x,B8:()=>d,C:()=>n,D_:()=>o,N9:()=>w,O7:()=>C,Qw:()=>u,Tl:()=>c,X_:()=>A,e$:()=>f,eL:()=>y,hM:()=>v,hZ:()=>a,hs:()=>h,kN:()=>g,l:()=>F,lw:()=>p,mg:()=>l,o1:()=>S,sC:()=>I,t2:()=>O,t5:()=>L,tZ:()=>_,ut:()=>P});var i=r(51850),s=r(34304);function n(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}function a(e,t,r,i,s,n,a,o,l,u,d,p,c,h,f,y,g){return e[0]=t,e[1]=r,e[2]=i,e[3]=s,e[4]=n,e[5]=a,e[6]=o,e[7]=l,e[8]=u,e[9]=d,e[10]=p,e[11]=c,e[12]=h,e[13]=f,e[14]=y,e[15]=g,e}function o(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function l(e,t){if(e===t){let r=t[1],i=t[2],s=t[3],n=t[6],a=t[7],o=t[11];e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=r,e[6]=t[9],e[7]=t[13],e[8]=i,e[9]=n,e[11]=t[14],e[12]=s,e[13]=a,e[14]=o}else e[0]=t[0],e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=t[1],e[5]=t[5],e[6]=t[9],e[7]=t[13],e[8]=t[2],e[9]=t[6],e[10]=t[10],e[11]=t[14],e[12]=t[3],e[13]=t[7],e[14]=t[11],e[15]=t[15];return e}function u(e,t){return d(e,t)||o(e),e}function d(e,t){let r=t[0],i=t[1],s=t[2],n=t[3],a=t[4],o=t[5],l=t[6],u=t[7],d=t[8],p=t[9],c=t[10],h=t[11],f=t[12],y=t[13],g=t[14],m=t[15],v=r*o-i*a,w=r*l-s*a,b=r*u-n*a,M=i*l-s*o,I=i*u-n*o,A=s*u-n*l,F=d*y-p*f,S=d*g-c*f,C=d*m-h*f,x=p*g-c*y,L=p*m-h*y,j=c*m-h*g,O=v*j-w*L+b*x+M*C-I*S+A*F;return O?(O=1/O,e[0]=(o*j-l*L+u*x)*O,e[1]=(s*L-i*j-n*x)*O,e[2]=(y*A-g*I+m*M)*O,e[3]=(c*I-p*A-h*M)*O,e[4]=(l*C-a*j-u*S)*O,e[5]=(r*j-s*C+n*S)*O,e[6]=(g*b-f*A-m*w)*O,e[7]=(d*A-c*b+h*w)*O,e[8]=(a*L-o*C+u*F)*O,e[9]=(i*C-r*L-n*F)*O,e[10]=(f*I-y*b+m*v)*O,e[11]=(p*b-d*I-h*v)*O,e[12]=(o*S-a*x-l*F)*O,e[13]=(r*x-i*S+s*F)*O,e[14]=(y*w-f*M-g*v)*O,e[15]=(d*M-p*w+c*v)*O,e):null}function p(e,t,r){let i=t[0],s=t[1],n=t[2],a=t[3],o=t[4],l=t[5],u=t[6],d=t[7],p=t[8],c=t[9],h=t[10],f=t[11],y=t[12],g=t[13],m=t[14],v=t[15],w=r[0],b=r[1],M=r[2],I=r[3];return e[0]=w*i+b*o+M*p+I*y,e[1]=w*s+b*l+M*c+I*g,e[2]=w*n+b*u+M*h+I*m,e[3]=w*a+b*d+M*f+I*v,w=r[4],b=r[5],M=r[6],I=r[7],e[4]=w*i+b*o+M*p+I*y,e[5]=w*s+b*l+M*c+I*g,e[6]=w*n+b*u+M*h+I*m,e[7]=w*a+b*d+M*f+I*v,w=r[8],b=r[9],M=r[10],I=r[11],e[8]=w*i+b*o+M*p+I*y,e[9]=w*s+b*l+M*c+I*g,e[10]=w*n+b*u+M*h+I*m,e[11]=w*a+b*d+M*f+I*v,w=r[12],b=r[13],M=r[14],I=r[15],e[12]=w*i+b*o+M*p+I*y,e[13]=w*s+b*l+M*c+I*g,e[14]=w*n+b*u+M*h+I*m,e[15]=w*a+b*d+M*f+I*v,e}function c(e,t,r){let i=r[0],s=r[1],n=r[2];if(t===e)e[12]=t[0]*i+t[4]*s+t[8]*n+t[12],e[13]=t[1]*i+t[5]*s+t[9]*n+t[13],e[14]=t[2]*i+t[6]*s+t[10]*n+t[14],e[15]=t[3]*i+t[7]*s+t[11]*n+t[15];else{let r=t[0],a=t[1],o=t[2],l=t[3],u=t[4],d=t[5],p=t[6],c=t[7],h=t[8],f=t[9],y=t[10],g=t[11];e[0]=r,e[1]=a,e[2]=o,e[3]=l,e[4]=u,e[5]=d,e[6]=p,e[7]=c,e[8]=h,e[9]=f,e[10]=y,e[11]=g,e[12]=r*i+u*s+h*n+t[12],e[13]=a*i+d*s+f*n+t[13],e[14]=o*i+p*s+y*n+t[14],e[15]=l*i+c*s+g*n+t[15]}return e}function h(e,t,r){let i=r[0],s=r[1],n=r[2];return e[0]=t[0]*i,e[1]=t[1]*i,e[2]=t[2]*i,e[3]=t[3]*i,e[4]=t[4]*s,e[5]=t[5]*s,e[6]=t[6]*s,e[7]=t[7]*s,e[8]=t[8]*n,e[9]=t[9]*n,e[10]=t[10]*n,e[11]=t[11]*n,e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}function f(e,t,r,i){let a=i[0],o=i[1],l=i[2],u=Math.sqrt(a*a+o*o+l*l);if(u<=(0,s.FD)())return void n(e,t);u=1/u,a*=u,o*=u,l*=u;let d=Math.sin(r),p=Math.cos(r),c=1-p,h=t[0],f=t[1],y=t[2],g=t[3],m=t[4],v=t[5],w=t[6],b=t[7],M=t[8],I=t[9],A=t[10],F=t[11],S=a*a*c+p,C=o*a*c+l*d,x=l*a*c-o*d,L=a*o*c-l*d,j=o*o*c+p,O=l*o*c+a*d,P=a*l*c+o*d,_=o*l*c-a*d,T=l*l*c+p;e[0]=h*S+m*C+M*x,e[1]=f*S+v*C+I*x,e[2]=y*S+w*C+A*x,e[3]=g*S+b*C+F*x,e[4]=h*L+m*j+M*O,e[5]=f*L+v*j+I*O,e[6]=y*L+w*j+A*O,e[7]=g*L+b*j+F*O,e[8]=h*P+m*_+M*T,e[9]=f*P+v*_+I*T,e[10]=y*P+w*_+A*T,e[11]=g*P+b*_+F*T,t!==e&&(e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15])}function y(e,t,r){let i=Math.sin(r),s=Math.cos(r),n=t[4],a=t[5],o=t[6],l=t[7],u=t[8],d=t[9],p=t[10],c=t[11];return t!==e&&(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[4]=n*s+u*i,e[5]=a*s+d*i,e[6]=o*s+p*i,e[7]=l*s+c*i,e[8]=u*s-n*i,e[9]=d*s-a*i,e[10]=p*s-o*i,e[11]=c*s-l*i,e}function g(e,t){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}function m(e,t,r){if(0===t)return o(e);let i=r[0],n=r[1],a=r[2],l=Math.sqrt(i*i+n*n+a*a);if(l<=(0,s.FD)())return null;l=1/l,i*=l,n*=l,a*=l;let u=Math.sin(t),d=Math.cos(t),p=1-d;return e[0]=i*i*p+d,e[1]=n*i*p+a*u,e[2]=a*i*p-n*u,e[3]=0,e[4]=i*n*p-a*u,e[5]=n*n*p+d,e[6]=a*n*p+i*u,e[7]=0,e[8]=i*a*p+n*u,e[9]=n*a*p-i*u,e[10]=a*a*p+d,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function v(e,t){let r=Math.sin(t),i=Math.cos(t);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i,e[6]=r,e[7]=0,e[8]=0,e[9]=-r,e[10]=i,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function w(e,t){let r=Math.sin(t),i=Math.cos(t);return e[0]=i,e[1]=r,e[2]=0,e[3]=0,e[4]=-r,e[5]=i,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function b(e,t,r){let i=t[0],s=t[1],n=t[2],a=t[3],o=i+i,l=s+s,u=n+n,d=i*o,p=i*l,c=i*u,h=s*l,f=s*u,y=n*u,g=a*o,m=a*l,v=a*u;return e[0]=1-(h+y),e[1]=p+v,e[2]=c-m,e[3]=0,e[4]=p-v,e[5]=1-(d+y),e[6]=f+g,e[7]=0,e[8]=c+m,e[9]=f-g,e[10]=1-(d+h),e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}const M=(0,i.vt)();function I(e,t){return e[0]=t[12],e[1]=t[13],e[2]=t[14],e}function A(e,t){let r=t[0],i=t[1],s=t[2],n=t[4],a=t[5],o=t[6],l=t[8],u=t[9],d=t[10];return e[0]=Math.sqrt(r*r+i*i+s*s),e[1]=Math.sqrt(n*n+a*a+o*o),e[2]=Math.sqrt(l*l+u*u+d*d),e}function F(e,t){let r=t[0]+t[5]+t[10],i=0;return r>0?(i=2*Math.sqrt(r+1),e[3]=.25*i,e[0]=(t[6]-t[9])/i,e[1]=(t[8]-t[2])/i,e[2]=(t[1]-t[4])/i):t[0]>t[5]&&t[0]>t[10]?(i=2*Math.sqrt(1+t[0]-t[5]-t[10]),e[3]=(t[6]-t[9])/i,e[0]=.25*i,e[1]=(t[1]+t[4])/i,e[2]=(t[8]+t[2])/i):t[5]>t[10]?(i=2*Math.sqrt(1+t[5]-t[0]-t[10]),e[3]=(t[8]-t[2])/i,e[0]=(t[1]+t[4])/i,e[1]=.25*i,e[2]=(t[6]+t[9])/i):(i=2*Math.sqrt(1+t[10]-t[0]-t[5]),e[3]=(t[1]-t[4])/i,e[0]=(t[8]+t[2])/i,e[1]=(t[6]+t[9])/i,e[2]=.25*i),e}function S(e,t,r,i){let s=t[0],n=t[1],a=t[2],o=t[3],l=s+s,u=n+n,d=a+a,p=s*l,c=s*u,h=s*d,f=n*u,y=n*d,g=a*d,m=o*l,v=o*u,w=o*d,b=i[0],M=i[1],I=i[2];return e[0]=(1-(f+g))*b,e[1]=(c+w)*b,e[2]=(h-v)*b,e[3]=0,e[4]=(c-w)*M,e[5]=(1-(p+g))*M,e[6]=(y+m)*M,e[7]=0,e[8]=(h+v)*I,e[9]=(y-m)*I,e[10]=(1-(p+f))*I,e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}function C(e,t,r,i,s){let n=t[0],a=t[1],o=t[2],l=t[3],u=n+n,d=a+a,p=o+o,c=n*u,h=n*d,f=n*p,y=a*d,g=a*p,m=o*p,v=l*u,w=l*d,b=l*p,M=i[0],I=i[1],A=i[2],F=s[0],S=s[1],C=s[2],x=(1-(y+m))*M,L=(h+b)*M,j=(f-w)*M,O=(h-b)*I,P=(1-(c+m))*I,_=(g+v)*I,T=(f+w)*A,R=(g-v)*A,E=(1-(c+y))*A;return e[0]=x,e[1]=L,e[2]=j,e[3]=0,e[4]=O,e[5]=P,e[6]=_,e[7]=0,e[8]=T,e[9]=R,e[10]=E,e[11]=0,e[12]=r[0]+F-(x*F+O*S+T*C),e[13]=r[1]+S-(L*F+P*S+R*C),e[14]=r[2]+C-(j*F+_*S+E*C),e[15]=1,e}function x(e,t,r,i,s,n,a){let o=1/(r-t),l=1/(s-i),u=1/(n-a);return e[0]=2*n*o,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=2*n*l,e[6]=0,e[7]=0,e[8]=(r+t)*o,e[9]=(s+i)*l,e[10]=(a+n)*u,e[11]=-1,e[12]=0,e[13]=0,e[14]=a*n*2*u,e[15]=0,e}function L(e,t,r,i){let n=t[0],a=t[1],l=t[2],u=n-r[0],d=a-r[1],p=l-r[2],c=(0,s.FD)();if(Math.abs(u)<c&&Math.abs(d)<c&&Math.abs(p)<c)return void o(e);let h=1/Math.sqrt(u*u+d*d+p*p);u*=h,d*=h,p*=h;let f=i[0],y=i[1],g=i[2],m=y*p-g*d,v=g*u-f*p,w=f*d-y*u;h=Math.sqrt(m*m+v*v+w*w),h?(h=1/h,m*=h,v*=h,w*=h):(m=0,v=0,w=0);let b=d*w-p*v,M=p*m-u*w,I=u*v-d*m;h=Math.sqrt(b*b+M*M+I*I),h?(h=1/h,b*=h,M*=h,I*=h):(b=0,M=0,I=0),e[0]=m,e[1]=b,e[2]=u,e[3]=0,e[4]=v,e[5]=M,e[6]=d,e[7]=0,e[8]=w,e[9]=I,e[10]=p,e[11]=0,e[12]=-(m*n+v*a+w*l),e[13]=-(b*n+M*a+I*l),e[14]=-(u*n+d*a+p*l),e[15]=1}function j(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e[2]=t[2]-r[2],e[3]=t[3]-r[3],e[4]=t[4]-r[4],e[5]=t[5]-r[5],e[6]=t[6]-r[6],e[7]=t[7]-r[7],e[8]=t[8]-r[8],e[9]=t[9]-r[9],e[10]=t[10]-r[10],e[11]=t[11]-r[11],e[12]=t[12]-r[12],e[13]=t[13]-r[13],e[14]=t[14]-r[14],e[15]=t[15]-r[15],e}function O(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]&&e[4]===t[4]&&e[5]===t[5]&&e[6]===t[6]&&e[7]===t[7]&&e[8]===t[8]&&e[9]===t[9]&&e[10]===t[10]&&e[11]===t[11]&&e[12]===t[12]&&e[13]===t[13]&&e[14]===t[14]&&e[15]===t[15]}function P(e){let t=(0,s.FD)(),r=e[0],i=e[1],n=e[2],a=e[4],o=e[5],l=e[6],u=e[8],d=e[9],p=e[10];return Math.abs(1-(r*r+a*a+u*u))<=t&&Math.abs(1-(i*i+o*o+d*d))<=t&&Math.abs(1-(n*n+l*l+p*p))<=t}function _(e){return 1===e[0]&&0===e[1]&&0===e[2]&&0===e[4]&&1===e[5]&&0===e[6]&&0===e[8]&&0===e[9]&&1===e[10]}const T=p,R=j;Object.freeze(Object.defineProperty({__proto__:null,add:function(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e[2]=t[2]+r[2],e[3]=t[3]+r[3],e[4]=t[4]+r[4],e[5]=t[5]+r[5],e[6]=t[6]+r[6],e[7]=t[7]+r[7],e[8]=t[8]+r[8],e[9]=t[9]+r[9],e[10]=t[10]+r[10],e[11]=t[11]+r[11],e[12]=t[12]+r[12],e[13]=t[13]+r[13],e[14]=t[14]+r[14],e[15]=t[15]+r[15],e},adjoint:function(e,t){let r=t[0],i=t[1],s=t[2],n=t[3],a=t[4],o=t[5],l=t[6],u=t[7],d=t[8],p=t[9],c=t[10],h=t[11],f=t[12],y=t[13],g=t[14],m=t[15];return e[0]=o*(c*m-h*g)-p*(l*m-u*g)+y*(l*h-u*c),e[1]=-(i*(c*m-h*g)-p*(s*m-n*g)+y*(s*h-n*c)),e[2]=i*(l*m-u*g)-o*(s*m-n*g)+y*(s*u-n*l),e[3]=-(i*(l*h-u*c)-o*(s*h-n*c)+p*(s*u-n*l)),e[4]=-(a*(c*m-h*g)-d*(l*m-u*g)+f*(l*h-u*c)),e[5]=r*(c*m-h*g)-d*(s*m-n*g)+f*(s*h-n*c),e[6]=-(r*(l*m-u*g)-a*(s*m-n*g)+f*(s*u-n*l)),e[7]=r*(l*h-u*c)-a*(s*h-n*c)+d*(s*u-n*l),e[8]=a*(p*m-h*y)-d*(o*m-u*y)+f*(o*h-u*p),e[9]=-(r*(p*m-h*y)-d*(i*m-n*y)+f*(i*h-n*p)),e[10]=r*(o*m-u*y)-a*(i*m-n*y)+f*(i*u-n*o),e[11]=-(r*(o*h-u*p)-a*(i*h-n*p)+d*(i*u-n*o)),e[12]=-(a*(p*g-c*y)-d*(o*g-l*y)+f*(o*c-l*p)),e[13]=r*(p*g-c*y)-d*(i*g-s*y)+f*(i*c-s*p),e[14]=-(r*(o*g-l*y)-a*(i*g-s*y)+f*(i*l-s*o)),e[15]=r*(o*c-l*p)-a*(i*c-s*p)+d*(i*l-s*o),e},copy:n,determinant:function(e){let t=e[0],r=e[1],i=e[2],s=e[3],n=e[4],a=e[5],o=e[6],l=e[7],u=e[8],d=e[9],p=e[10],c=e[11],h=e[12],f=e[13],y=e[14],g=e[15];return(t*a-r*n)*(p*g-c*y)-(t*o-i*n)*(d*g-c*f)+(t*l-s*n)*(d*y-p*f)+(r*o-i*a)*(u*g-c*h)-(r*l-s*a)*(u*y-p*h)+(i*l-s*o)*(u*f-d*h)},equals:function(e,t){if(e===t)return!0;let r=e[0],i=e[1],n=e[2],a=e[3],o=e[4],l=e[5],u=e[6],d=e[7],p=e[8],c=e[9],h=e[10],f=e[11],y=e[12],g=e[13],m=e[14],v=e[15],w=t[0],b=t[1],M=t[2],I=t[3],A=t[4],F=t[5],S=t[6],C=t[7],x=t[8],L=t[9],j=t[10],O=t[11],P=t[12],_=t[13],T=t[14],R=t[15],E=(0,s.FD)();return Math.abs(r-w)<=E*Math.max(1,Math.abs(r),Math.abs(w))&&Math.abs(i-b)<=E*Math.max(1,Math.abs(i),Math.abs(b))&&Math.abs(n-M)<=E*Math.max(1,Math.abs(n),Math.abs(M))&&Math.abs(a-I)<=E*Math.max(1,Math.abs(a),Math.abs(I))&&Math.abs(o-A)<=E*Math.max(1,Math.abs(o),Math.abs(A))&&Math.abs(l-F)<=E*Math.max(1,Math.abs(l),Math.abs(F))&&Math.abs(u-S)<=E*Math.max(1,Math.abs(u),Math.abs(S))&&Math.abs(d-C)<=E*Math.max(1,Math.abs(d),Math.abs(C))&&Math.abs(p-x)<=E*Math.max(1,Math.abs(p),Math.abs(x))&&Math.abs(c-L)<=E*Math.max(1,Math.abs(c),Math.abs(L))&&Math.abs(h-j)<=E*Math.max(1,Math.abs(h),Math.abs(j))&&Math.abs(f-O)<=E*Math.max(1,Math.abs(f),Math.abs(O))&&Math.abs(y-P)<=E*Math.max(1,Math.abs(y),Math.abs(P))&&Math.abs(g-_)<=E*Math.max(1,Math.abs(g),Math.abs(_))&&Math.abs(m-T)<=E*Math.max(1,Math.abs(m),Math.abs(T))&&Math.abs(v-R)<=E*Math.max(1,Math.abs(v),Math.abs(R))},exactEquals:O,frob:function(e){return Math.sqrt(e[0]**2+e[1]**2+e[2]**2+e[3]**2+e[4]**2+e[5]**2+e[6]**2+e[7]**2+e[8]**2+e[9]**2+e[10]**2+e[11]**2+e[12]**2+e[13]**2+e[14]**2+e[15]**2)},fromQuat:function(e,t){let r=t[0],i=t[1],s=t[2],n=t[3],a=r+r,o=i+i,l=s+s,u=r*a,d=i*a,p=i*o,c=s*a,h=s*o,f=s*l,y=n*a,g=n*o,m=n*l;return e[0]=1-p-f,e[1]=d+m,e[2]=c-g,e[3]=0,e[4]=d-m,e[5]=1-u-f,e[6]=h+y,e[7]=0,e[8]=c+g,e[9]=h-y,e[10]=1-u-p,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},fromQuat2:function(e,t){let r=M,i=-t[0],s=-t[1],n=-t[2],a=t[3],o=t[4],l=t[5],u=t[6],d=t[7],p=i*i+s*s+n*n+a*a;return p>0?(r[0]=2*(o*a+d*i+l*n-u*s)/p,r[1]=2*(l*a+d*s+u*i-o*n)/p,r[2]=2*(u*a+d*n+o*s-l*i)/p):(r[0]=2*(o*a+d*i+l*n-u*s),r[1]=2*(l*a+d*s+u*i-o*n),r[2]=2*(u*a+d*n+o*s-l*i)),b(e,t,r),e},fromRotation:m,fromRotationTranslation:b,fromRotationTranslationScale:S,fromRotationTranslationScaleOrigin:C,fromScaling:function(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=t[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=t[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},fromTranslation:g,fromXRotation:v,fromYRotation:function(e,t){let r=Math.sin(t),i=Math.cos(t);return e[0]=i,e[1]=0,e[2]=-r,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=r,e[9]=0,e[10]=i,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},fromZRotation:w,frustum:x,getRotation:F,getScale:A,getTranslation:I,hasIdentityRotation:_,identity:o,invert:d,invertOrIdentity:u,isOrthoNormal:P,lookAt:L,mul:T,multiply:p,multiplyScalar:function(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e[3]=t[3]*r,e[4]=t[4]*r,e[5]=t[5]*r,e[6]=t[6]*r,e[7]=t[7]*r,e[8]=t[8]*r,e[9]=t[9]*r,e[10]=t[10]*r,e[11]=t[11]*r,e[12]=t[12]*r,e[13]=t[13]*r,e[14]=t[14]*r,e[15]=t[15]*r,e},multiplyScalarAndAdd:function(e,t,r,i){return e[0]=t[0]+r[0]*i,e[1]=t[1]+r[1]*i,e[2]=t[2]+r[2]*i,e[3]=t[3]+r[3]*i,e[4]=t[4]+r[4]*i,e[5]=t[5]+r[5]*i,e[6]=t[6]+r[6]*i,e[7]=t[7]+r[7]*i,e[8]=t[8]+r[8]*i,e[9]=t[9]+r[9]*i,e[10]=t[10]+r[10]*i,e[11]=t[11]+r[11]*i,e[12]=t[12]+r[12]*i,e[13]=t[13]+r[13]*i,e[14]=t[14]+r[14]*i,e[15]=t[15]+r[15]*i,e},ortho:function(e,t,r,i,s,n,a){let o=1/(t-r),l=1/(i-s),u=1/(n-a);return e[0]=-2*o,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*l,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*u,e[11]=0,e[12]=(t+r)*o,e[13]=(s+i)*l,e[14]=(a+n)*u,e[15]=1,e},perspective:function(e,t,r,i,s){let n,a=1/Math.tan(t/2);return e[0]=a/r,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[11]=-1,e[12]=0,e[13]=0,e[15]=0,null!=s&&s!==1/0?(n=1/(i-s),e[10]=(s+i)*n,e[14]=2*s*i*n):(e[10]=-1,e[14]=-2*i),e},perspectiveFromFieldOfView:function(e,t,r,i){let s=Math.tan(t.upDegrees*Math.PI/180),n=Math.tan(t.downDegrees*Math.PI/180),a=Math.tan(t.leftDegrees*Math.PI/180),o=Math.tan(t.rightDegrees*Math.PI/180),l=2/(a+o),u=2/(s+n);return e[0]=l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=u,e[6]=0,e[7]=0,e[8]=-(a-o)*l*.5,e[9]=(s-n)*u*.5,e[10]=i/(r-i),e[11]=-1,e[12]=0,e[13]=0,e[14]=i*r/(r-i),e[15]=0,e},rotate:f,rotateX:y,rotateY:function(e,t,r){let i=Math.sin(r),s=Math.cos(r),n=t[0],a=t[1],o=t[2],l=t[3],u=t[8],d=t[9],p=t[10],c=t[11];return t!==e&&(e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=n*s-u*i,e[1]=a*s-d*i,e[2]=o*s-p*i,e[3]=l*s-c*i,e[8]=n*i+u*s,e[9]=a*i+d*s,e[10]=o*i+p*s,e[11]=l*i+c*s,e},rotateZ:function(e,t,r){let i=Math.sin(r),s=Math.cos(r),n=t[0],a=t[1],o=t[2],l=t[3],u=t[4],d=t[5],p=t[6],c=t[7];return t!==e&&(e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=n*s+u*i,e[1]=a*s+d*i,e[2]=o*s+p*i,e[3]=l*s+c*i,e[4]=u*s-n*i,e[5]=d*s-a*i,e[6]=p*s-o*i,e[7]=c*s-l*i,e},scale:h,set:a,str:function(e){return"mat4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+", "+e[9]+", "+e[10]+", "+e[11]+", "+e[12]+", "+e[13]+", "+e[14]+", "+e[15]+")"},sub:R,subtract:j,targetTo:function(e,t,r,i){let s=t[0],n=t[1],a=t[2],o=i[0],l=i[1],u=i[2],d=s-r[0],p=n-r[1],c=a-r[2],h=d*d+p*p+c*c;h>0&&(h=1/Math.sqrt(h),d*=h,p*=h,c*=h);let f=l*c-u*p,y=u*d-o*c,g=o*p-l*d;return h=f*f+y*y+g*g,h>0&&(h=1/Math.sqrt(h),f*=h,y*=h,g*=h),e[0]=f,e[1]=y,e[2]=g,e[3]=0,e[4]=p*g-c*y,e[5]=c*f-d*g,e[6]=d*y-p*f,e[7]=0,e[8]=d,e[9]=p,e[10]=c,e[11]=0,e[12]=s,e[13]=n,e[14]=a,e[15]=1,e},translate:c,translateAffine:function(e,t,r){let i=r[0],s=r[1],a=r[2];return e!==t&&n(e,t),e[12]+=i,e[13]+=s,e[14]+=a,e},transpose:l},Symbol.toStringTag,{value:"Module"}))},56512(e,t,r){function i(e){let t,r,i=[],s=!1;return function(...n){return s&&t===this&&function(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;++r)if(e[r]!==t[r])return!1;return!0}(n,i)||(r=e.apply(this,n),t=this,i=n,s=!0),r}}r.d(t,{B:()=>i})},76553(e,t,r){function i(e){return e&&"getAtOrigin"in e&&"originOf"in e}r.d(t,{H:()=>i})},54239(e,t,r){r.d(t,{A:()=>m});var i,s=r(32198),n=r(91429),a=r(4576),o=r(66552),l=r(25482),u=r(86211),d=r(67076),p=r(97348),c=r(43937),h=r(36005);const f=(0,o.O)()({orthometric:"gravity-related-height",gravity_related_height:"gravity-related-height",ellipsoidal:"ellipsoidal"}),y=f.jsonValues.slice();(0,a.Xy)(y,"orthometric");const g=(0,o.O)()({meter:"meters",foot:"feet","us-foot":"us-feet","clarke-foot":"clarke-feet","clarke-yard":"clarke-yards","clarke-link":"clarke-links","sears-yard":"sears-yards","sears-foot":"sears-feet","sears-chain":"sears-chains","benoit-1895-b-chain":"benoit-1895-b-chains","indian-yard":"indian-yards","indian-1937-yard":"indian-1937-yards","gold-coast-foot":"gold-coast-feet","sears-1922-truncated-chain":"sears-1922-truncated-chains","50-kilometers":"50-kilometers","150-kilometers":"150-kilometers"});let m=i=class extends l.o{constructor(e){super(e),this.origin=0,this.associatedSpatialReference=null,this.heightModel="gravity-related-height",this.heightUnit="meters",this.vertCRS=null}read(e,t){super.read(e,t),("service"===t?.origin||"web-scene"===t?.origin)&&(this.origin="service"===t.origin?2:1,this.associatedSpatialReference=null)}writeHeightModel(e,t,r){return f.write(e,t,r)}readHeightModel(e,t,r){return f.read(e)||(r?.messages&&r.messages.push(function(e,t){return new d.A("height-model:unsupported",`Height model of value '${e}' is not supported`,t)}(e,{context:r})),null)}readHeightUnit(e,t,r){return g.read(e)||(r?.messages&&r.messages.push(v(e,{context:r})),null)}readHeightUnitService(e,t,r){return(0,u.LA)(e)||g.read(e)||(r?.messages&&r.messages.push(v(e,{context:r})),null)}readVertCRS(e,t){return t.vertCRS||t.ellipsoid||t.geoid}clone(){return new i({heightModel:this.heightModel,heightUnit:this.heightUnit,vertCRS:this.vertCRS,origin:this.origin,associatedSpatialReference:this.associatedSpatialReference})}equals(e){return!!e&&(this===e||this.heightModel===e.heightModel&&this.heightUnit===e.heightUnit&&this.vertCRS===e.vertCRS)}static fromSpatialReference(e){let{latestVcsWkid:t,vcsWkid:r}=e;if(!r)return null;let s=(null==t?null:p.B.get(t))??p.B.get(r);return s?new i({heightModel:0===s.type?"gravity-related-height":"ellipsoidal",heightUnit:(0,u.LA)(s.unit.name),vertCRS:s.datum,origin:3,associatedSpatialReference:e}):null}write(e,t){return t={origin:"web-scene",...t},super.write(e,t)}static fromJSON(e){if(!e)return null;let t=new i;return t.read(e,{origin:"web-scene"}),t}};function v(e,t){return new d.A("height-unit:unsupported",`Height unit of value '${e}' is not supported`,t)}(0,s.Cg)([(0,n.MZ)()],m.prototype,"origin",void 0),(0,s.Cg)([(0,n.MZ)()],m.prototype,"associatedSpatialReference",void 0),(0,s.Cg)([(0,n.MZ)({type:f.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:y,default:"ellipsoidal",write:{isRequired:!0,alwaysWriteDefaults:!0}}}}})],m.prototype,"heightModel",void 0),(0,s.Cg)([(0,c.K)("web-scene","heightModel")],m.prototype,"writeHeightModel",null),(0,s.Cg)([(0,h.w)(["web-scene","service"],"heightModel")],m.prototype,"readHeightModel",null),(0,s.Cg)([(0,n.MZ)({type:g.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:g.jsonValues,write:{writer:g.write,isRequired:!0}}}}})],m.prototype,"heightUnit",void 0),(0,s.Cg)([(0,h.w)("web-scene","heightUnit")],m.prototype,"readHeightUnit",null),(0,s.Cg)([(0,h.w)("service","heightUnit")],m.prototype,"readHeightUnitService",null),(0,s.Cg)([(0,n.MZ)({type:String,constructOnly:!0,json:{origins:{"web-scene":{write:!0}}}})],m.prototype,"vertCRS",void 0),(0,s.Cg)([(0,h.w)("service","vertCRS",["vertCRS","ellipsoid","geoid"])],m.prototype,"readVertCRS",null),m=i=(0,s.Cg)([(0,n.$K)("esri.geometry.HeightModelInfo")],m)},73836(e,t,r){r.d(t,{A:()=>h});var i=r(32198),s=r(91429),n=r(69540),a=r(25482),o=r(58083),l=r(9093),u=r(67026),d=r(82534),p=r(51850),c=r(24770);let h=class extends((0,n.OU)(a.o)){constructor(e){super(e),this.translation=(0,p.vt)(),this.rotationAxis=(0,p.ci)(c.up),this.rotationAngle=0,this.scale=(0,p.fA)(1,1,1)}get rotation(){return(0,c.i4)(this.rotationAxis,this.rotationAngle)}set rotation(e){this.rotationAxis=(0,p.o8)((0,c.yo)(e)),this.rotationAngle=(0,c.g7)(e)}get localMatrix(){let e=(0,l.vt)();return(0,u.x8)(f,(0,c.yo)(this.rotation),(0,c.$I)(this.rotation)),(0,o.o1)(e,f,this.translation,this.scale),e}get localMatrixInverse(){return(0,o.B8)((0,l.vt)(),this.localMatrix)}equals(e){return this===e||null!=e&&(0,o.t2)(this.localMatrix,e.localMatrix)}};(0,i.Cg)([(0,s.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],h.prototype,"translation",void 0),(0,i.Cg)([(0,s.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],h.prototype,"rotationAxis",void 0),(0,i.Cg)([(0,s.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],h.prototype,"rotationAngle",void 0),(0,i.Cg)([(0,s.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],h.prototype,"scale",void 0),(0,i.Cg)([(0,s.MZ)()],h.prototype,"rotation",null),(0,i.Cg)([(0,s.MZ)()],h.prototype,"localMatrix",null),(0,i.Cg)([(0,s.MZ)()],h.prototype,"localMatrixInverse",null),h=(0,i.Cg)([(0,s.$K)("esri.geometry.support.MeshTransform")],h);const f=(0,d.vt)()},24770(e,t,r){r.d(t,{$I:()=>g,AU:()=>h,g7:()=>y,i4:()=>d,ui:()=>p,up:()=>v,vt:()=>u,yo:()=>f});var i=r(58083),s=r(35522),n=r(67026),a=r(82534),o=r(51850),l=r(34727);function u(e=v){return[e[0],e[1],e[2],e[3]]}function d(e,t,r=u()){return(0,s.C)(r,e),r[3]=t,r}function p(e,t=u()){let r=(0,i.l)(w,e);return m(t,(0,l.KJ)((0,n.Xd)(t,r))),t}function c(e,t,r=u()){return(0,n.x8)(w,e,g(e)),(0,n.x8)(b,t,g(t)),(0,n.lw)(w,b,w),m(r,(0,l.KJ)((0,n.Xd)(r,w)))}function h(e,t,r,i=u()){return d(o.Cw,e,M),d(o.JP,t,I),d(o.Cb,r,A),c(M,I,M),c(M,A,i),i}function f(e){return e}function y(e){return e[3]}function g(e){return(0,l.kU)(e[3])}function m(e,t){return e[3]=t,e}const v=[0,0,1,0],w=(0,a.vt)(),b=(0,a.vt)(),M=(u(),u()),I=u(),A=u()},2e4(e,t,r){r.r(t),r.d(t,{default:()=>Ee});var i=r(32198),s=r(91429),n=r(88620),a=r(69540),o=r(7762),l=r(49186),u=r(36563),d=r(53966),p=r(97768),c=r(25728),h=r(17676),f=r(36708),y=r(86738),g=r(99917),m=r(52106),v=r(41910),w=r(55156),b=r(60950),M=r(89808),I=r(99959);const A=Symbol("isSceneGraphicOrigin");var F;class S extends I.A{get[(F=A,b.ym)](){return this.layer}get[w.e](){return this.layer}get[M.Q](){return this.layer}get[v.e7](){return this.layer}constructor(e){super(),this[F]=!0,this.type="scene",this.layer=e}get id(){return this.layer.id}}var C=r(40124),x=r(8947),L=r(41214),j=r(97552),O=r(24212),P=r(30291);async function _(e){let{BlobReader:t,ZipReader:i,BlobWriter:s}=await Promise.all([r.e(7620),r.e(9588)]).then(()=>r(9588)),n=[];return(await new i(new t(e)).getEntries()).forEach(e=>{if(e.directory||/^__MACOS/i.test(e.filename))return;let t=new s;n.push(e.getData(t).then(t=>new File([t],e.filename)))}),Promise.all(n)}var T=r(79677),R=r(10184),E=r(66480),Z=r(45671),U=r(78553),$=r(55726),q=r(4146),D=r(52136),N=r(18768),k=r(69208),H=r(47685),V=r(34287),G=r(8303),K=r(25036),Q=r(58947),z=r(82935),B=r(60694),J=r(92009),W=r(4071),X=r(10873),Y=r(15426),ee=r(67202),te=r(17036),re=r(95466),ie=r(30524),se=r(50805),ne=r(20557),ae=r(46499),oe=r(39383),le=r(37352),ue=r(2976),de=r(86390),pe=r(25482);let ce=class extends pe.o{constructor(){super(...arguments),this.name=null,this.field=null,this.currentRangeExtent=null,this.fullRangeExtent=null,this.type="rangeInfo"}};(0,i.Cg)([(0,s.MZ)({type:String,json:{read:!0,write:{isRequired:!0}}})],ce.prototype,"name",void 0),(0,i.Cg)([(0,s.MZ)({type:String,json:{read:!0,write:{isRequired:!0}}})],ce.prototype,"field",void 0),(0,i.Cg)([(0,s.MZ)({type:[Number],json:{read:!0,write:!0}})],ce.prototype,"currentRangeExtent",void 0),(0,i.Cg)([(0,s.MZ)({type:[Number],json:{read:!0,write:!0}})],ce.prototype,"fullRangeExtent",void 0),(0,i.Cg)([(0,s.MZ)({type:["rangeInfo"],readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],ce.prototype,"type",void 0),ce=(0,i.Cg)([(0,s.$K)("esri.layers.support.RangeInfo")],ce);var he,fe=r(87024),ye=r(4718),ge=r(78888),me=r(97159),ve=r(67076),we=r(39829);let be=he=class extends((0,pe.T)(o.A.ofType(we.A))){constructor(e){super(e)}clone(){return new he(this.items.map(e=>e.clone()))}write(e,t){return this.toJSON(t)}toJSON(e){let t=e?.layer?.spatialReference;return t?this.toArray().map(r=>{if(!t.equals(r.spatialReference)){if(!(0,g.canProjectWithoutEngine)(r.spatialReference,t))return e?.messages?.push(new ve.A("scenefilter:unsupported","Scene filters with incompatible spatial references are not supported",{modification:this,spatialReference:e.layer.spatialReference,context:e})),null;let i=new we.A;(0,g.projectPolygon)(r,i,t),r=i}let i=r.toJSON(e);return delete i.spatialReference,i}).filter(e=>null!=e):this.toArray().map(t=>t.toJSON(e))}static fromJSON(e,t){let r=new he;return e.forEach(e=>r.add(we.A.fromJSON(e,t))),r}};be=he=(0,i.Cg)([(0,s.$K)("esri.layers.support.PolygonCollection")],be);const Me=be;var Ie,Ae=r(36005);let Fe=Ie=class extends pe.o{constructor(e){super(e),this.spatialRelationship="disjoint",this.geometries=new Me,this._geometriesSource=null}initialize(){this.addHandles((0,f.on)(()=>this.geometries,"after-changes",()=>this.geometries=this.geometries,f.OH))}readGeometries(e,t,r){Array.isArray(e)?this.geometries=Me.fromJSON(e,r):("web-scene"===r.origin||"portal-item"===r.origin)&&(this._geometriesSource={url:(0,me.f)(e,r),context:r})}async loadGeometries(e,t){if(null==this._geometriesSource)return;let{url:r,context:i}=this._geometriesSource,s=await(0,ge.A)(r,{responseType:"json",signal:t?.signal}),n=e.toJSON(),a=s.data.map(e=>({...e,spatialReference:n}));this.geometries=Me.fromJSON(a,i),this._geometriesSource=null}clone(){let e=new Ie({geometries:(0,ye.o8)(this.geometries),spatialRelationship:this.spatialRelationship});return e._geometriesSource=this._geometriesSource,e}};(0,i.Cg)([(0,s.MZ)({type:["disjoint","contains"],nonNullable:!0,json:{write:{isRequired:!0}}})],Fe.prototype,"spatialRelationship",void 0),(0,i.Cg)([(0,s.MZ)({type:Me,nonNullable:!0,json:{write:!0,origins:{"web-scene":{write:{isRequired:!0}}}}}),(0,fe.P)({origins:["web-scene","portal-item"],type:"resource",prefix:"geometries",contentAddressed:!0})],Fe.prototype,"geometries",void 0),(0,i.Cg)([(0,Ae.w)(["web-scene","portal-item","service"],"geometries")],Fe.prototype,"readGeometries",null),Fe=Ie=(0,i.Cg)([(0,s.$K)("esri.layers.support.SceneFilter")],Fe);const Se=Fe;function Ce({associatedLayer:e,serviceUpdateTimeStamp:t}){let r=e?.editingInfo?.lastEditDate,i=e?.serverGens,s=null!=r,n=null!=t,a=s&&n&&t.lastUpdate!==r.getTime();return s&&(a||!n&&i?.minServerGen!==i?.serverGen)}var xe=r(84952);let Le=class extends pe.o{constructor(){super(...arguments),this.endTimeField=null,this.startTimeField=null}};(0,i.Cg)([(0,s.MZ)({type:String})],Le.prototype,"endTimeField",void 0),(0,i.Cg)([(0,s.MZ)({type:String})],Le.prototype,"startTimeField",void 0),Le=(0,i.Cg)([(0,s.$K)("esri.layers.support.SceneServiceTimeInfo")],Le);var je=r(96184);const Oe=new Set(["3DObject","Point"]),Pe=(0,te.p)();let _e=class extends((0,H.w6)((0,Q.w6)((0,N.b)((0,V.q)((0,G.A)((0,K.j)((0,c.M)((0,k.d)((0,D.p)((0,a.OU)(q.A))))))))))){constructor(e){super(e),this.featureReduction=null,this.rangeInfos=null,this.operationalLayerType="ArcGISSceneServiceLayer",this.type="scene",this.fields=null,this.graphicOrigin=new S(this),this.floorInfo=null,this.outFields=null,this.nodePages=null,this.materialDefinitions=null,this.textureSetDefinitions=null,this.geometryDefinitions=null,this.serviceUpdateTimeStamp=null,this.excludeObjectIds=new o.A,this.definitionExpression=null,this.filter=null,this.path=null,this.labelsVisible=!0,this.labelingInfo=null,this.legendEnabled=!0,this.priority=null,this.semantic=null,this.cachedDrawingInfo={color:!1},this.popupEnabled=!0,this.popupTemplate=null,this.attributeTableTemplate=null,this.objectIdField=null,this.globalIdField=null,this._fieldUsageInfo={},this.screenSizePerspectiveEnabled=!0,this.serviceItemId=void 0,this.serviceTimeInfo=null}destroy(){this._set("renderer",null),this.associatedLayer=(0,p.pR)(this.associatedLayer)}getField(e){return this.fieldsIndex.get(e)}getFieldDomain(e,t){let r=this.getField(e)?.domain??null;return this.associatedLayer?(0,Y.Vq)(this.associatedLayer,e,t,r):r}getFeatureType(e){return e&&this.associatedLayer?this.associatedLayer.getFeatureType(e):null}get types(){return this.associatedLayer?.types??[]}get typeIdField(){return this.associatedLayer?.typeIdField??null}get templates(){return this.associatedLayer?.templates??null}get formTemplate(){return this.associatedLayer?.formTemplate??null}get fieldsIndex(){return new re.A(this.fields)}readNodePages(e,t,r){return"Point"===t.layerType&&(e=t.pointNodePages),"object"==typeof e&&e?se.W4.fromJSON(e,r):null}set elevationInfo(e){this._set("elevationInfo",e),this.loaded&&this._validateElevationInfo()}get effectiveCapabilities(){return this._capabilitiesFromAssociatedFeatureLayer(this.associatedLayer?.effectiveCapabilities)}get effectiveEditingEnabled(){return null!=this.associatedLayer&&(0,Y.C$)(this.associatedLayer)}get geometryType(){return Re[this.profile]||"mesh"}set renderer(e){(0,ie.yp)(e,this.fieldsIndex),this._set("renderer",e)}readCachedDrawingInfo(e){return"object"==typeof e&&e||(e={}),e.color??(e.color=!1),e}get capabilities(){return this._capabilitiesFromAssociatedFeatureLayer(this.associatedLayer?.capabilities)}_capabilitiesFromAssociatedFeatureLayer(e){e??=W.P;let{query:t,queryRelated:r,editing:{supportsGlobalId:i,supportsRollbackOnFailure:s,supportsUploadWithItemId:n,supportsGeometryUpdate:a,supportsReturnServiceEditsInSourceSpatialReference:o},data:{supportsZ:l,supportsM:u,isVersioned:d,supportsAttachment:p},operations:{supportsEditing:c,supportsAdd:h,supportsUpdate:f,supportsDelete:y,supportsQuery:g,supportsQueryAttachments:m,supportsAsyncConvert3D:v},attachment:w}=e,b=e.operations.supportsChangeTracking,M=!!this.associatedLayer?.infoFor3D;return{query:t,queryRelated:r,editing:{supportsGlobalId:i,supportsReturnServiceEditsInSourceSpatialReference:o,supportsRollbackOnFailure:s,supportsGeometryUpdate:M&&a,supportsUploadWithItemId:n},data:{supportsAttachment:p,supportsZ:l,supportsM:u,isVersioned:d,queryFormats:e.data.queryFormats,sourceFormats:e.data.sourceFormats},operations:{supportsQuery:g,supportsQueryAttachments:m,supportsEditing:c&&b,supportsAdd:M&&h&&b,supportsDelete:M&&y&&b,supportsUpdate:f&&b,supportsAsyncConvert3D:v},attachment:w}}get editingEnabled(){return this._isOverridden("editingEnabled")?this._get("editingEnabled"):this.associatedLayer?.editingEnabled??!1}set editingEnabled(e){this._overrideIfSome("editingEnabled",e)}get infoFor3D(){return this.associatedLayer?.infoFor3D??null}get relationships(){return this.associatedLayer?.relationships}get defaultPopupTemplate(){return this.associatedLayer||this.attributeStorageInfo?this.createPopupTemplate():null}readObjectIdField(e,t){return!e&&t.fields&&t.fields.some(t=>("esriFieldTypeOID"===t.type&&(e=t.name),!!e)),e||void 0}readGlobalIdField(e,t){return!e&&t.fields&&t.fields.some(t=>("esriFieldTypeGlobalID"===t.type&&(e=t.name),!!e)),e||void 0}get displayField(){return this.associatedLayer?.displayField??null}readProfile(e,t){let r=t.store.profile;return null!=r&&Te[r]?Te[r]:(d.A.getLogger(this).error("Unknown or missing profile",{profile:r,layer:this}),"mesh-pyramids")}get useViewTime(){return this.associatedLayer?.useViewTime??!0}set useViewTime(e){this._override("useViewTime",e)}get timeInfo(){let e=this.associatedLayer?.timeInfo;if(null==e)return null;let t=e.clone();return(0,ie.sv)(t,this.fieldsIndex),t}set timeInfo(e){(0,ie.sv)(e,this.fieldsIndex),this._override("timeInfo",e),this.associatedLayer&&(this.associatedLayer.timeInfo=e)}get timeExtent(){return this.associatedLayer?.timeExtent}set timeExtent(e){this._override("timeExtent",e)}get timeOffset(){return this.associatedLayer?.timeOffset}set timeOffset(e){this._override("timeOffset",e)}get datesInUnknownTimezone(){return this.associatedLayer?.datesInUnknownTimezone??!1}set datesInUnknownTimezone(e){this._override("datesInUnknownTimezone",e)}load(e){return this.addResolvingPromise(this._load(e)),Promise.resolve(this)}async _load(e){let t=e?.signal;await this.loadFromPortal({supportedTypes:["Scene Service"]},e).catch(h.QP),await this._fetchService(t),await Promise.all([this._fetchIndexAndUpdateExtent(this.nodePages,t),this._setAssociatedFeatureLayer(t),this._loadFilterGeometries()]),this._validateElevationInfo(),this._applyAssociatedLayerOverrides(),this._populateFieldUsageInfo(),await this.loadTimeInfoFromService(e),await(0,x.L)(this,{origin:"service"},t),(0,ie.yp)(this.renderer,this.fieldsIndex),await this.finishLoadEditablePortalLayer(e)}async beforeSave(){null!=this.filter&&(this.filter=this.filter.clone(),await this.load())}async _loadFilterGeometries(){if(this.filter)try{await this.filter.loadGeometries(this.spatialReference)}catch(e){d.A.getLogger(this).error("#_loadFilterGeometries()",this,"Failed to load filter geometries. Geometry filter will not be applied for this layer.",{error:e}),this.filter=null}}createQuery(){let e=new j.A;"mesh"===this.geometryType?this.capabilities.query.supportsReturnMesh&&(e.returnGeometry=!0):(e.returnGeometry=!0,e.returnZ=!0);let{timeOffset:t,timeExtent:r}=this;return e.timeExtent=null!=t&&null!=r?r.offset(-t.value,t.unit):r||null,e.where=this.definitionExpression||"1=1",e.sqlFormat="standard",e.outFields=["*"],e}queryExtent(e,t){return this._getAssociatedLayerForQuery().then(r=>r.queryExtent(e||this.createQuery(),t))}queryFeatureCount(e,t){return this._getAssociatedLayerForQuery().then(r=>r.queryFeatureCount(e||this.createQuery(),t))}queryFeatures(e,t){return this._getAssociatedLayerForQuery().then(r=>r.queryFeatures(e||this.createQuery(),t)).then(e=>{if(e?.features)for(let t of e.features)t.layer=this,t.sourceLayer=this,t.origin=this.graphicOrigin;return e})}async queryModels(e,t){let[i,{queryModels:s}]=await Promise.all([this._getAssociatedLayerForQuery(),Promise.all([r.e(893),r.e(2769)]).then(()=>r(41653))]);return s(this,i,e,t)}async queryModel(e,t){let[i,{queryModel:s}]=await Promise.all([this._getAssociatedLayerForQuery(),Promise.all([r.e(893),r.e(2769)]).then(()=>r(41653))]);return s(this,i,e,t)}async queryRelatedFeatures(e,t){if(await this.load(),!this.associatedLayer)throw new l.A("scenelayer:query-not-available","SceneLayer queries are not available without an associated feature layer",{layer:this});return this.associatedLayer.queryRelatedFeatures(e,t)}async queryRelatedFeaturesCount(e,t){if(await this.load(),!this.associatedLayer)throw new l.A("scenelayer:query-not-available","SceneLayer queries are not available without an associated feature layer",{layer:this});return this.associatedLayer.queryRelatedFeaturesCount(e,t)}async queryCachedAttributes(e,t){let r=(0,ie.hL)(this.fieldsIndex,await(0,Z.TO)(this,(0,Z.D8)(this)));return(0,E.s1)(this.parsedUrl?.path??"",this.attributeStorageInfo??[],e,t,r,this.apiKey,this.customParameters)}async queryCachedFeature(e,t){let r=await this.queryCachedAttributes(e,[t]);if(!r||0===r.length)throw new l.A("scenelayer:feature-not-in-cached-data","Feature not found in cached data");let i=new m.A;return i.attributes=r[0],i.layer=this,i.sourceLayer=this,i.origin=this.graphicOrigin,i}queryObjectIds(e,t){return this._getAssociatedLayerForQuery().then(r=>r.queryObjectIds(e||this.createQuery(),t))}queryAttachments(e,t){return this._getAssociatedLayerForQuery().then(r=>r.queryAttachments(e,t))}getFieldUsageInfo(e){let t={supportsLabelingInfo:!1,supportsRenderer:!1,supportsPopupTemplate:!1,supportsLayerQuery:!1};return this.loaded?this._fieldUsageInfo[e]||t:(d.A.getLogger(this).error("#getFieldUsageInfo()","Unavailable until layer is loaded"),t)}createPopupTemplate(e){return(0,P.tn)(this,e)}_getAssociatedLayerForQuery(){let e=this.associatedLayer;return e?.loaded?Promise.resolve(e):this._loadAssociatedLayerForQuery()}async _loadAssociatedLayerForQuery(){if(await this.load(),!this.associatedLayer)throw new l.A("scenelayer:query-not-available","SceneLayer queries are not available without an associated feature layer",{layer:this});try{await this.associatedLayer.load()}catch(e){throw new l.A("scenelayer:query-not-available","SceneLayer associated feature layer could not be loaded",{layer:this,error:e})}return this.associatedLayer}hasCachedStatistics(e){return null!=this.statisticsInfo&&this.statisticsInfo.some(t=>t.name===e)}async queryCachedStatistics(e,t){return await this.load(t),await this.fetchStatistics(e,t)}async saveAs(e,t){return this._debouncedSaveOperations(1,{...t,getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"scene"},e)}async save(){return this._debouncedSaveOperations(0,{getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"scene"})}async applyEdits(e,t){let{applyEdits:i}=await r.e(6247).then(()=>r(78628)),s=t;await this.load();let n=this.associatedLayer;if(!n)throw new l.A(`${this.type}-layer:not-editable`,"Service is not editable");await n.load();let{globalIdField:a}=n,o=!!n.infoFor3D,u=s?.globalIdUsed??!0;if(o&&null==a)throw new l.A(`${this.type}-layer:not-editable`,"Valid globalIdField expected on editable SceneLayer");if(o&&!u)throw new l.A(`${this.type}-layer:globalid-required`,"globalIdUsed must not be false for SceneLayer editing as globalIds are required.");return(0,B.Wo)(n.url)&&o&&null!=e.deleteFeatures&&null!=a&&(s={...s,globalIdToObjectId:await(0,Y.GA)(n,e.deleteFeatures,a)}),i(this,n.source,e,s)}async uploadAssets(e,t){if(await this.load(),null==this.associatedLayer)throw new l.A(`${this.type}-layer:not-editable`,"Service is not editable");return await this.associatedLayer.load(),this.associatedLayer.uploadAssets(e,t)}async convertMesh(e,t){t??={};let i=e=>{throw d.A.getLogger(this).error(".convertMesh()",e.message),e};await this.load(t),this.infoFor3D||i(new l.A("invalid:layer","SceneLayer has no capability for mesh conversion"));let s=await this.extractAndFilterFiles(e);(0,h.Te)(t);let n=s.reduce((e,t)=>(0,ne.oF)(this.infoFor3D,t)?e+1:e,0);0===n&&i(new $.VP),n>1&&i(new $.XQ);let a=this.spatialReference,o=t.origin,u=await(0,g.projectAsync)(o??t.defaultOrigin??new y.A({x:0,y:0,z:0,spatialReference:a}),a,t),p=a.isGeographic?"local":"georeferenced",{createWithExternalSource:c}=await Promise.all([r.e(2258),r.e(8331)]).then(()=>r(98331));(0,h.Te)(t);let f=c(u,{type:"client",files:s},{vertexSpace:p,transform:(0,de.Z)(a),unitConversionDisabled:!0}),[m]=await this.uploadAssets([f],{...t,useAssetOrigin:!o});return m}async extractAndFilterFiles(e){await this.load();let t=this.infoFor3D;return t?(await async function(e){let t=[];for(let r of e)r.name.toLowerCase().endsWith(".zip")?t.push(_(r)):t.push(Promise.resolve(r));return(await Promise.all(t)).flat()}(e)).filter(e=>(0,ne.fu)(t,e)):e}validateLayer(e){if(e.layerType&&!Oe.has(e.layerType))throw new l.A("scenelayer:layer-type-not-supported","SceneLayer does not support this layer type",{layerType:e.layerType});if(isNaN(this.version.major)||isNaN(this.version.minor))throw new l.A("layer:service-version-not-supported","Service version is not supported.",{serviceVersion:this.version.versionString,supportedVersions:"1.x, 2.x"});if(this.version.major>2)throw new l.A("layer:service-version-too-new","Service version is too new.",{serviceVersion:this.version.versionString,supportedVersions:"1.x, 2.x"});!function(e,t){let r=!1,i=!1;if(null==e)r=!0,i=!0;else{let s=t&&t.isGeographic;switch(e){case"east-north-up":case"earth-centered":r=!0,i=s;break;case"vertex-reference-frame":r=!0,i=!s;break;default:r=!1}}if(!r)throw new l.A("scenelayer:unsupported-normal-reference-frame","Normal reference frame is invalid.");if(!i)throw new l.A("scenelayer:incompatible-normal-reference-frame","Normal reference frame is incompatible with layer spatial reference.")}(this.normalReferenceFrame,this.spatialReference)}get isUsedAsGroundLayer(){return!1}_getTypeKeywords(){let e=[];if("points"===this.profile)e.push("Point");else{if("mesh-pyramids"!==this.profile)throw new l.A("scenelayer:unknown-profile","SceneLayer:save() encountered an unknown SceneLayer profile: "+this.profile);e.push("3DObject")}return e}_populateFieldUsageInfo(){if(this._fieldUsageInfo={},this.fields)for(let e of this.fields){let t=!!this.attributeStorageInfo?.some(t=>t.name===e.name),r=!!this.associatedLayer?.fields?.some(t=>t&&e.name===t.name),i={supportsLabelingInfo:t,supportsRenderer:t,supportsPopupTemplate:t||r,supportsLayerQuery:r};this._fieldUsageInfo[e.name]=i}}_applyAssociatedLayerOverrides(){this._applyAssociatedLayerFieldsOverrides(),this._applyAssociatedLayerPropertyOverrides(),this._applyAssociatedLayerExtentOverride(),this._applyAssociatedLayerPrivileges()}_applyAssociatedLayerFieldsOverrides(){if(!this.associatedLayer?.fields)return;let e=null;for(let t of this.associatedLayer.fields){let r=this.getField(t.name);r?(!r.domain&&t.domain&&(r.domain=t.domain.clone()),r.editable=t.editable,r.nullable=t.nullable,r.length=t.length):(e||=this.fields?this.fields.slice():[],e.push(t.clone()))}e&&this._set("fields",e)}_applyAssociatedLayerPropertyOverrides(){if(!this.associatedLayer)return;let e=["popupTemplate","popupEnabled","attributeTableTemplate"],t=(0,n.oY)(this);for(let r=0;r<e.length;r++){let i=e[r],s=this.originIdOf(i),n=this.associatedLayer.originIdOf(i);s<n&&(2===n||3===n)&&t.setAtOrigin(i,this.associatedLayer[i],n)}}_applyAssociatedLayerExtentOverride(){let e=this.associatedLayer?.getAtOrigin("fullExtent","service");null!=this.associatedLayer?.infoFor3D&&e&&(0,B.Wo)(this.associatedLayer?.url)&&Ce(this)&&(0,n.oY)(this).setAtOrigin("fullExtent",e.clone(),2)}_applyAssociatedLayerPrivileges(){let e=this.associatedLayer;e&&(this._set("userHasEditingPrivileges",e.userHasEditingPrivileges),this._set("userHasFullEditingPrivileges",e.userHasFullEditingPrivileges),this._set("userHasUpdateItemPrivileges",e.userHasUpdateItemPrivileges))}async _setAssociatedFeatureLayer(e){if(["mesh-pyramids","points"].includes(this.profile))try{let{serverUrl:t,layerId:r,portalItem:i}=await(0,J.L)(`${this.url}/layers/${this.layerId}`,{sceneLayerItem:this.portalItem,customParameters:this.customParameters,apiKey:this.apiKey,signal:e}),s=await ue.U.FeatureLayer();this.associatedLayer=new s({url:t,customParameters:this.customParameters,apiKey:this.apiKey,layerId:r,portalItem:i}),await this.associatedLayer.load(),this._isOverridden("timeInfo")&&(this.associatedLayer.timeInfo=this.timeInfo)}catch(e){(0,h.zf)(e)||this._logWarningOnPopupEnabled().catch(()=>{})}}async _logWarningOnPopupEnabled(){let e=new AbortController;this.addHandles((0,u.rE)(e));try{await(0,f.C_)(()=>this.popupEnabled&&null!=this.popupTemplate,e.signal)}catch(e){return void(0,h.jH)(e)}let t=`this SceneLayer: ${this.title}`;null==this.attributeStorageInfo?d.A.getLogger(this).warn(`Associated FeatureLayer could not be loaded and no binary attributes found. Popups will not work on ${t}`):d.A.getLogger(this).info(`Associated FeatureLayer could not be loaded. Falling back to binary attributes for Popups on ${t}`)}_validateElevationInfo(){let e=this.elevationInfo;"mesh-pyramids"===this.profile&&(0,O.XF)(d.A.getLogger(this),(0,O.$7)("Mesh scene layers","relative-to-scene",e)),(0,O.XF)(d.A.getLogger(this),(0,O.tW)("Scene layers",e))}async fetchStatistics(e,t){return await async function({fieldName:e,statisticsInfo:t,errorContext:r,fieldsIndex:i,path:s,customParameters:n,apiKey:a,signal:o}){if(null==t)throw new l.A(`${r}:no-cached-statistics`,"Cached statistics are not available for this layer");let u=i.get(e);if(null==u)throw new l.A(`${r}:field-unexisting`,`Field '${e}' does not exist on the layer`);let d=t.find(e=>e.name===u.name);if(null==d)throw new l.A(`${r}:no-cached-statistics`,"Cached statistics for this attribute are not available");let p=(0,xe.fj)(s,d.href),{data:c}=await(0,ge.A)(p,{query:{f:"json",...n,token:a},responseType:"json",signal:o});return c}({fieldName:e,statisticsInfo:this.statisticsInfo,errorContext:"scenelayer",fieldsIndex:this.fieldsIndex,path:this.parsedUrl?.path??"",customParameters:this.customParameters,apiKey:this.apiKey,signal:t?.signal})}async loadTimeInfoFromService(e){let{serviceTimeInfo:t}=this;if(null==t)return;let{startTimeField:r,endTimeField:i}=t;if(null==r&&null==i||Ce({associatedLayer:this.associatedLayer,serviceUpdateTimeStamp:this.serviceUpdateTimeStamp}))return;let s=async t=>{let i=null;try{i=(await this.fetchStatistics(t,e))?.stats}catch{}if(null==i)return null;let{minTimeStr:s,min:n,maxTimeStr:a,max:o}=i,l=t===r?s??n:a??o;return null==l?null:new Date(l)},[n,a]=await Promise.all([s(r),s(i)]);if(null!=r&&null==n||null!=i&&null==a)return;let o=new T.A({start:n,end:a});this.setAtOrigin("timeInfo",new je.A({endField:i,startField:r,fullTimeExtent:o}),"service")}};(0,i.Cg)([(0,s.MZ)({types:{key:"type",base:null,typeMap:{selection:ee.A}},json:{origins:{"web-scene":{name:"layerDefinition.featureReduction",write:{allowNull:!0}},"portal-item":{name:"layerDefinition.featureReduction",write:{allowNull:!0}}}}})],_e.prototype,"featureReduction",void 0),(0,i.Cg)([(0,s.MZ)({type:[ce],json:{read:!1,origins:{"web-scene":{name:"layerDefinition.rangeInfos",write:!0},"portal-item":{name:"layerDefinition.rangeInfos",write:!0}}},clonable:!1})],_e.prototype,"rangeInfos",void 0),(0,i.Cg)([(0,s.MZ)({json:{read:!1}})],_e.prototype,"associatedLayer",void 0),(0,i.Cg)([(0,s.MZ)({type:["show","hide"]})],_e.prototype,"listMode",void 0),(0,i.Cg)([(0,s.MZ)({type:["ArcGISSceneServiceLayer"]})],_e.prototype,"operationalLayerType",void 0),(0,i.Cg)([(0,s.MZ)({json:{read:!1},readOnly:!0})],_e.prototype,"type",void 0),(0,i.Cg)([(0,s.MZ)({...Pe.fields,readOnly:!0,json:{read:!1,origins:{service:{read:!0}}}})],_e.prototype,"fields",void 0),(0,i.Cg)([(0,s.MZ)()],_e.prototype,"types",null),(0,i.Cg)([(0,s.MZ)()],_e.prototype,"typeIdField",null),(0,i.Cg)([(0,s.MZ)()],_e.prototype,"templates",null),(0,i.Cg)([(0,s.MZ)()],_e.prototype,"formTemplate",null),(0,i.Cg)([(0,s.MZ)({readOnly:!0})],_e.prototype,"graphicOrigin",void 0),(0,i.Cg)([(0,s.MZ)({readOnly:!0,clonable:!1})],_e.prototype,"fieldsIndex",null),(0,i.Cg)([(0,s.MZ)({type:le.A,json:{read:{source:"layerDefinition.floorInfo"},write:{target:"layerDefinition.floorInfo"}}})],_e.prototype,"floorInfo",void 0),(0,i.Cg)([(0,s.MZ)(Pe.outFields)],_e.prototype,"outFields",void 0),(0,i.Cg)([(0,s.MZ)({type:se.W4,readOnly:!0,json:{read:!1},clonable:!1})],_e.prototype,"nodePages",void 0),(0,i.Cg)([(0,Ae.w)("service","nodePages",["nodePages","pointNodePages"])],_e.prototype,"readNodePages",null),(0,i.Cg)([(0,s.MZ)({type:[se.uV],readOnly:!0,clonable:!1})],_e.prototype,"materialDefinitions",void 0),(0,i.Cg)([(0,s.MZ)({type:[se.Ot],readOnly:!0,clonable:!1})],_e.prototype,"textureSetDefinitions",void 0),(0,i.Cg)([(0,s.MZ)({type:[se.L0],readOnly:!0,clonable:!1})],_e.prototype,"geometryDefinitions",void 0),(0,i.Cg)([(0,s.MZ)({readOnly:!0})],_e.prototype,"serviceUpdateTimeStamp",void 0),(0,i.Cg)([(0,s.MZ)({readOnly:!0})],_e.prototype,"attributeStorageInfo",void 0),(0,i.Cg)([(0,s.MZ)({readOnly:!0})],_e.prototype,"statisticsInfo",void 0),(0,i.Cg)([(0,s.MZ)({type:o.A.ofType(Number),nonNullable:!0,json:{origins:{service:{read:!1,write:!1}},name:"layerDefinition.excludeObjectIds",write:{enabled:!0}}})],_e.prototype,"excludeObjectIds",void 0),(0,i.Cg)([(0,s.MZ)({type:String,json:{origins:{service:{read:!1,write:!1}},name:"layerDefinition.definitionExpression",write:{enabled:!0,allowNull:!0}}})],_e.prototype,"definitionExpression",void 0),(0,i.Cg)([(0,s.MZ)({type:Se,json:{name:"layerDefinition.polygonFilter",write:{enabled:!0,allowNull:!0},origins:{service:{read:!1,write:!1}}}})],_e.prototype,"filter",void 0),(0,i.Cg)([(0,s.MZ)({type:String,json:{origins:{"web-scene":{read:!0,write:!0}},read:!1}})],_e.prototype,"path",void 0),(0,i.Cg)([(0,s.MZ)(X.Yj)],_e.prototype,"elevationInfo",null),(0,i.Cg)([(0,s.MZ)({readOnly:!0,json:{read:!1}})],_e.prototype,"effectiveCapabilities",null),(0,i.Cg)([(0,s.MZ)({readOnly:!0})],_e.prototype,"effectiveEditingEnabled",null),(0,i.Cg)([(0,s.MZ)({type:String})],_e.prototype,"geometryType",null),(0,i.Cg)([(0,s.MZ)(X.kF)],_e.prototype,"labelsVisible",void 0),(0,i.Cg)([(0,s.MZ)({type:[ae.A],json:{origins:{service:{name:"drawingInfo.labelingInfo",read:{reader:oe.w},write:!1}},name:"layerDefinition.drawingInfo.labelingInfo",read:{reader:oe.w},write:!0}})],_e.prototype,"labelingInfo",void 0),(0,i.Cg)([(0,s.MZ)(X.fV)],_e.prototype,"legendEnabled",void 0),(0,i.Cg)([(0,s.MZ)({type:Number,json:{origins:{"web-document":{default:1,write:{enabled:!0,target:{opacity:{type:Number},"layerDefinition.drawingInfo.transparency":{type:Number}}},read:{source:["opacity","layerDefinition.drawingInfo.transparency"],reader(e,t){if("number"==typeof e&&e>=0&&e<=1)return e;let r=t.layerDefinition?.drawingInfo?.transparency;return void 0===r?void 0:(0,U.D)(r)}}},"portal-item":{write:!0},service:{read:!1}}}})],_e.prototype,"opacity",void 0),(0,i.Cg)([(0,s.MZ)({type:["Low","High"],readOnly:!0,json:{read:!1,origins:{service:{read:!0}}}})],_e.prototype,"priority",void 0),(0,i.Cg)([(0,s.MZ)({type:["Labels"],readOnly:!0,json:{read:!1,origins:{service:{read:!0}}}})],_e.prototype,"semantic",void 0),(0,i.Cg)([(0,s.MZ)({types:L.XJ,json:{origins:{service:{read:{source:"drawingInfo.renderer"}}},name:"layerDefinition.drawingInfo.renderer",write:!0},value:null})],_e.prototype,"renderer",null),(0,i.Cg)([(0,s.MZ)({json:{read:!1}})],_e.prototype,"cachedDrawingInfo",void 0),(0,i.Cg)([(0,Ae.w)("service","cachedDrawingInfo")],_e.prototype,"readCachedDrawingInfo",null),(0,i.Cg)([(0,s.MZ)({readOnly:!0,json:{read:!1}})],_e.prototype,"capabilities",null),(0,i.Cg)([(0,s.MZ)({type:Boolean,json:{read:!1}})],_e.prototype,"editingEnabled",null),(0,i.Cg)([(0,s.MZ)({readOnly:!0,json:{write:!1,read:!1}})],_e.prototype,"infoFor3D",null),(0,i.Cg)([(0,s.MZ)({readOnly:!0,json:{write:!1,read:!1}})],_e.prototype,"relationships",null),(0,i.Cg)([(0,s.MZ)(X.M6)],_e.prototype,"popupEnabled",void 0),(0,i.Cg)([(0,s.MZ)({type:C.A,json:{name:"popupInfo",write:!0}})],_e.prototype,"popupTemplate",void 0),(0,i.Cg)([(0,s.MZ)({readOnly:!0,json:{read:!1}})],_e.prototype,"defaultPopupTemplate",null),(0,i.Cg)([(0,s.MZ)(X.zQ)],_e.prototype,"attributeTableTemplate",void 0),(0,i.Cg)([(0,s.MZ)({type:String,json:{read:!1}})],_e.prototype,"objectIdField",void 0),(0,i.Cg)([(0,Ae.w)("service","objectIdField",["objectIdField","fields"])],_e.prototype,"readObjectIdField",null),(0,i.Cg)([(0,s.MZ)({type:String,json:{read:!1}})],_e.prototype,"globalIdField",void 0),(0,i.Cg)([(0,Ae.w)("service","globalIdField",["globalIdField","fields"])],_e.prototype,"readGlobalIdField",null),(0,i.Cg)([(0,s.MZ)({readOnly:!0,type:String,json:{read:!1}})],_e.prototype,"displayField",null),(0,i.Cg)([(0,s.MZ)({type:String,json:{read:!1}})],_e.prototype,"profile",void 0),(0,i.Cg)([(0,Ae.w)("service","profile",["store.profile"])],_e.prototype,"readProfile",null),(0,i.Cg)([(0,s.MZ)({readOnly:!0,type:String,json:{origins:{service:{read:{source:"store.normalReferenceFrame"}}},read:!1}})],_e.prototype,"normalReferenceFrame",void 0),(0,i.Cg)([(0,s.MZ)(X.PY)],_e.prototype,"screenSizePerspectiveEnabled",void 0),(0,i.Cg)([(0,s.MZ)({json:{read:!1,origins:{service:{read:!0}}}})],_e.prototype,"serviceItemId",void 0),(0,i.Cg)([(0,s.MZ)(z.B)],_e.prototype,"useViewTime",null),(0,i.Cg)([(0,s.MZ)((0,X.U$)({disableServiceOrigin:!0,webDocumentOrigin:"web-scene"}))],_e.prototype,"timeInfo",null),(0,i.Cg)([(0,s.MZ)({type:T.A,json:{read:!1,write:!1}})],_e.prototype,"timeExtent",null),(0,i.Cg)([(0,s.MZ)({type:R.A,json:{read:!1,write:!1}})],_e.prototype,"timeOffset",null),(0,i.Cg)([(0,s.MZ)({type:Boolean,nonNullable:!0,json:{read:!1,write:!1}})],_e.prototype,"datesInUnknownTimezone",null),(0,i.Cg)([(0,s.MZ)({type:Le,readOnly:!0,json:{read:{source:"timeInfo"}},clonable:!1})],_e.prototype,"serviceTimeInfo",void 0),(0,i.Cg)([(0,s.MZ)()],_e.prototype,"isUsedAsGroundLayer",null),_e=(0,i.Cg)([(0,s.$K)("esri.layers.SceneLayer")],_e);const Te={"mesh-pyramids":"mesh-pyramids",meshpyramids:"mesh-pyramids","features-meshes":"mesh-pyramids",points:"points","features-points":"points",lines:"lines","features-lines":"lines",polygons:"polygons","features-polygons":"polygons"},Re={"mesh-pyramids":"mesh",points:"point"},Ee=_e},55726(e,t,r){r.d(t,{$1:()=>u,H2:()=>h,MT:()=>f,VP:()=>y,WF:()=>d,Wt:()=>a,XQ:()=>g,hK:()=>c,nS:()=>p,uh:()=>o,xY:()=>l});var i=r(49186);const s="upload-assets",n=()=>Error();class a extends i.A{constructor(){super(`${s}:unsupported`,"Layer does not support asset uploads.",n())}}class o extends i.A{constructor(){super(`${s}:no-glb-support`,"Layer does not support glb.",n())}}class l extends i.A{constructor(){super(`${s}:no-supported-source`,"No supported external source found",n())}}class u extends i.A{constructor(){super(`${s}:not-base-64`,"Expected gltf data in base64 format after conversion.",n())}}class d extends i.A{constructor(){super(`${s}:unable-to-prepare-options`,"Unable to prepare uploadAsset request options.",n())}}class p extends i.A{constructor(e,t){super(`${s}:bad-response`,`Bad response. Uploaded ${e} items and received ${t} results.`,n())}}class c extends i.A{constructor(e,t){super(`${s}-layer:upload-failed`,`Failed to upload mesh file ${e}. Error code: ${t?.code??"-1"}. Error message: ${t?.messages??"unknown"}`,n())}}class h extends i.A{constructor(e){super(`${s}-layer:unsupported-format`,`The service allowed us to upload an asset of FormatID ${e}, but it does not list it in its supported formats.`,n())}}class f extends i.A{constructor(){super(`${s}:convert3D-failed`,"convert3D failed.")}}class y extends i.A{constructor(){super("invalid-input:no-model","No supported model found")}}class g extends i.A{constructor(){super("invalid-input:multiple-models","Multiple supported models found")}}},18768(e,t,r){var i=r(32198),s=r(91429),n=r(53966),a=r(60694);r.d(t,["b",0,e=>{let t=e,r=class extends t{get title(){if(this._get("title")&&"defaults"!==this.originOf("title"))return this._get("title");if(this.url){let e=(0,a.qg)(this.url);if(e?.title)return e.title}return this._get("title")||""}set title(e){this._set("title",e)}set url(e){this._set("url",(0,a.Jf)(e,n.A.getLogger(this)))}};return(0,i.Cg)([(0,s.MZ)()],r.prototype,"title",null),(0,i.Cg)([(0,s.MZ)({type:String})],r.prototype,"url",null),r=(0,i.Cg)([(0,s.$K)("esri.layers.mixins.ArcGISService")],r),r}])},69208(e,t,r){var i=r(32198),s=r(91429);r.d(t,["d",0,e=>{let t=e,r=class extends t{constructor(){super(...arguments),this.customParameters=null}};return(0,i.Cg)([(0,s.MZ)({type:Object,json:{write:{overridePolicy:e=>({enabled:!!(e&&Object.keys(e).length>0)})}}})],r.prototype,"customParameters",void 0),r=(0,i.Cg)([(0,s.$K)("esri.layers.mixins.CustomParametersMixin")],r),r}])},47685(e,t,r){r.d(t,{Mk:()=>h,Zk:()=>p});var i=r(32198),s=r(91429),n=r(65529),a=r(4718),o=r(20816);const l=new n.bk;function u(e){return l.on("apply-edits",new WeakRef(e))}function d(e){return l.on("update-moment",new WeakRef(e))}function p(e,t,r=null,i=!1){let s=Promise.withResolvers();return i=null==t||i,l.emit("apply-edits",{serviceUrl:e,layerId:t,gdbVersion:r,mayReceiveServiceEdits:i,result:s.promise}),s}const c=Symbol();function h(e){return"object"==typeof e&&!!e&&c in e}function f(e){return"object"==typeof e&&!!e&&"gdbVersion"in e}function y(e,t,r){let i=new URL(e).host,s=o.Z3.get(i),n=e=>!e||e===s;return n(t)&&n(r)||t===r}r.d(t,["w6",0,e=>{var t;let r=e,n=class extends r{static{t=c}constructor(...e){super(...e),this[t]=!0,this._applyEditsHandler=e=>{let{serviceUrl:t,layerId:r,gdbVersion:i,mayReceiveServiceEdits:s,result:n}=e,o=t===this.url,l=null!=r&&null!=this.layerId&&r===this.layerId,u=null!=r&&this.relationships?.some(e=>e.relatedTableId===r),d=f(this),p=f(this)&&y(t,i,this.gdbVersion);if(!o||d&&!p||!l&&!u&&!s)return;let c=n.then(e=>{if(this.lastEditsEventDate=new Date,l&&(e.addedFeatures.length||e.updatedFeatures.length||e.deletedFeatures.length||e.addedAttachments.length||e.updatedAttachments.length||e.deletedAttachments.length))return this.emit("edits",(0,a.o8)(e)),e;let r=e.editedFeatures?.find(({layerId:e})=>e===this.layerId);if(r){let{adds:t,updates:i,deletes:s}=r.editedFeatures,n={edits:null,addedAttachments:[],deletedAttachments:[],updatedAttachments:[],addedFeatures:t?t.map(({attributes:e})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]})):[],deletedFeatures:s?s.map(({attributes:e})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]})):[],updatedFeatures:i?i.map(({current:{attributes:e}})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]})):[],editedFeatures:(0,a.o8)(e.editedFeatures),exceededTransferLimit:!1,historicMoment:(0,a.o8)(e.historicMoment)};return this.emit("edits",n),n}let s={edits:null,addedAttachments:[],deletedAttachments:[],updatedAttachments:[],addedFeatures:[],deletedFeatures:[],updatedFeatures:[],editedFeatures:(0,a.o8)(e.editedFeatures),exceededTransferLimit:!1,historicMoment:(0,a.o8)(e.historicMoment)};return"historicMoment"in this&&this._shouldUpdateHistoricMoment(t,i,s.historicMoment)&&this.emit("edits",s),s}).then(e=>("historicMoment"in this&&this._shouldUpdateHistoricMoment(t,i,e.historicMoment)&&(this.historicMoment=e.historicMoment),e));c.catch(()=>{}),this.emit("apply-edits",{result:c})},this._updateMomentHandler=e=>{let{serviceUrl:t,gdbVersion:r,moment:i}=e,s=t===this.url,n=f(this),a=f(this)&&y(t,r,this.gdbVersion),o=f(this)&&!y(t,this.gdbVersion,null);s&&n&&a&&o&&"historicMoment"in this&&this.historicMoment!==i&&(this.historicMoment=i)},this.when().then(()=>{this.addHandles(u(this._applyEditsHandler)),"historicMoment"in this&&this.addHandles(d(this._updateMomentHandler))},()=>{})}_shouldUpdateHistoricMoment(e,t,r){return"historicMoment"in this&&this.historicMoment!==r&&(0,o.w5)(e,t)}};return(0,i.Cg)([(0,s.MZ)()],n.prototype,"lastEditsEventDate",void 0),n=(0,i.Cg)([(0,s.$K)("esri.layers.mixins.EditBusLayer")],n),n}])},85707(e,t,r){var i=r(32198),s=r(91429),n=r(54239);r.d(t,["a",0,e=>{let t=e,r=class extends t{constructor(){super(...arguments),this.heightModelInfo=null}read(e,t){super.read(e,t),"service"===t?.origin&&2===this.heightModelInfo?.origin&&(this.heightModelInfo.associatedSpatialReference=this.getAtOrigin("spatialReference","service"))}};return(0,i.Cg)([(0,s.MZ)({readOnly:!0,type:n.A})],r.prototype,"heightModelInfo",void 0),r=(0,i.Cg)([(0,s.$K)("esri.layers.mixins.HeightModelInfoMixin")],r),r}])},8303(e,t,r){var i=r(32198),s=r(92602),n=r(91429),a=r(60999),o=r(49186),l=r(36563),u=r(53966),d=r(97768),p=r(17676),c=r(84952),h=r(70333),f=r(20655),y=r(80812),g=r(41318),m=r(10407),v=r(78888),w=r(26121),b=r(77548),M=r(36005),I=r(43937);const A={credential:null,user:null};r.d(t,["A",0,e=>{let t=e,F=class extends t{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){super.destroy(),this.portalItem=(0,d.pR)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}get portalItem(){return this._get("portalItem")}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,r){if(t.itemId)return new y.default({id:t.itemId,portal:r?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem?.id)try{let{load:i}=await r.e(1204).then(()=>r(41204));return(0,p.Te)(t),await i({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},t)}catch(e){throw(0,p.zf)(e)||u.A.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async reloadFromPortal(e,t){if(!this.loaded||!this.portalItem?.id)return!1;let i=t?.signal?null:new AbortController;try{let{reload:s}=await r.e(1204).then(()=>r(41204));return i&&this.addHandles((0,l.rE)(i),"reloadFromPortal"),await s({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},t?.signal?t:{signal:i.signal})}catch(e){throw(0,p.zf)(e)||u.A.getLogger(this).warn(`Failed to reload layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}finally{i&&this.removeHandles("reloadFromPortal")}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch(e=>((0,p.QP)(e),!0)))}async setUserPrivileges(e,t){if(!s.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{let{features:{edit:r,fullEdit:i},content:{updateItem:s}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",r),this._set("userHasFullEditingPrivileges",i),this._set("userHasUpdateItemPrivileges",s)}catch(e){(0,p.QP)(e)}}async _fetchUserPrivileges(e,t){let r=this.portalItem;if(!e||!r||!r.loaded||r.sourceUrl)return this._fetchFallbackUserPrivileges(t);let i,s,n=!h.id?.findCredential(this.url),a=e===r.id;if(a&&r.portal.user)return this._getUserPrivileges(r,n);if(a)i=r.portal.url;else try{i=await(0,b.wI)(this.url,t)}catch(e){(0,p.QP)(e)}if(!i||!(0,c.b8)(i,r.portal.url))return this._fetchFallbackUserPrivileges(t);try{let e=null==t?null:t.signal;s=await(h.id?.getCredential(`${i}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,p.QP)(e)}if(!s)return{features:{edit:!0,fullEdit:!1},content:{updateItem:!1}};try{if(a?await r.reload():(r=new y.default({id:e,portal:{url:i}}),await r.load(t)),r.portal.user)return this._getUserPrivileges(r,n)}catch(e){(0,p.QP)(e)}return{features:{edit:!0,fullEdit:!1},content:{updateItem:!1}}}_getUserPrivileges(e,t){let r=(0,m.It)(e);return t&&(r.features.edit=!0),r}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,p.QP)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){let t=this.url?h.id?.findCredential(this.url):null;if(!t)return!0;let r=A.credential===t?A.user:await this._fetchEditingUser(e);return A.credential=t,A.user=r,null==r?.privileges||r.privileges.includes("features:user:edit")}async _fetchEditingUser(e){let t=this.portalItem?.portal?.user;if(t)return t;let r=h.id?.findServerInfo(this.url??"");if(!r?.owningSystemUrl)return null;let i=`${r.owningSystemUrl}/sharing/rest`,s=f.A.getDefault();if(s&&s.loaded&&(0,c.S8)(s.restUrl)===(0,c.S8)(i))return s.user;let n=`${i}/community/self`,o=null==e?null:e.signal,l=await(0,a.Ke)((0,v.A)(n,{authMode:"no-prompt",query:{f:"json"},signal:o}));return l.ok?g.A.fromJSON(l.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){return(0,w.wN)(this.portalItem,t)?(t?.messages?.push(new o.A("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,i.Cg)([(0,n.MZ)({type:y.default})],F.prototype,"portalItem",null),(0,i.Cg)([(0,M.w)("web-document","portalItem",["itemId"])],F.prototype,"readPortalItem",null),(0,i.Cg)([(0,I.K)("web-document","portalItem",{itemId:{type:String}})],F.prototype,"writePortalItem",null),(0,i.Cg)([(0,n.MZ)({clonable:!1})],F.prototype,"resourceReferences",void 0),(0,i.Cg)([(0,n.MZ)({type:Boolean,readOnly:!0})],F.prototype,"userHasEditingPrivileges",void 0),(0,i.Cg)([(0,n.MZ)({type:Boolean,readOnly:!0})],F.prototype,"userHasFullEditingPrivileges",void 0),(0,i.Cg)([(0,n.MZ)({type:Boolean,readOnly:!0})],F.prototype,"userHasUpdateItemPrivileges",void 0),F=(0,i.Cg)([(0,n.$K)("esri.layers.mixins.PortalLayer")],F),F}])},25036(e,t,r){var i=r(32198),s=r(91429),n=r(83960);r.d(t,["j",0,e=>{let t=e,r=class extends t{constructor(){super(...arguments),this.minScale=0,this.maxScale=0}get effectiveScaleRange(){let e={minScale:this.minScale,maxScale:this.maxScale},t=this.parent;void 0!==t?.effectiveScaleRange&&(0,n.RH)(e,t.effectiveScaleRange);let r=this._get("effectiveScaleRange");return r&&r.minScale===e.minScale&&r.maxScale===e.maxScale?r:e}};return(0,i.Cg)([(0,s.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],r.prototype,"minScale",void 0),(0,i.Cg)([(0,s.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],r.prototype,"maxScale",void 0),(0,i.Cg)([(0,s.MZ)({readOnly:!0})],r.prototype,"effectiveScaleRange",null),r=(0,i.Cg)([(0,s.$K)("esri.layers.mixins.ScaleRangeLayer")],r),r}])},82935(e,t,r){var i=r(32198),s=r(91429),n=r(73133),a=r(79677),o=r(10184),l=r(30524),u=r(96184),d=r(36005);const p={type:Boolean,json:{read:{source:"timeAnimation"},write:{target:"timeAnimation"}}};r.d(t,["B",0,p,"e",0,e=>{let t=e,r=class extends t{constructor(){super(...arguments),this.timeExtent=null,this.timeOffset=null,this.useViewTime=!0}readOffset(e,t){let r=t.timeInfo.exportOptions;if(!r)return null;let i=r.timeOffset,s=n.j.fromJSON(r.timeOffsetUnits);return i&&s?new o.A({value:i,unit:s}):null}get timeInfo(){return this._get("timeInfo")}set timeInfo(e){(0,l.sv)(e,this.fieldsIndex),this._set("timeInfo",e)}};return(0,i.Cg)([(0,s.MZ)({type:a.A,json:{write:!1}})],r.prototype,"timeExtent",void 0),(0,i.Cg)([(0,s.MZ)({type:o.A})],r.prototype,"timeOffset",void 0),(0,i.Cg)([(0,d.w)("service","timeOffset",["timeInfo.exportOptions"])],r.prototype,"readOffset",null),(0,i.Cg)([(0,s.MZ)({value:null,type:u.A,json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],r.prototype,"timeInfo",null),(0,i.Cg)([(0,s.MZ)(p)],r.prototype,"useViewTime",void 0),r=(0,i.Cg)([(0,s.$K)("esri.layers.mixins.TemporalLayer")],r),r}])},67202(e,t,r){r.d(t,{A:()=>o});var i,s=r(32198),n=r(91429),a=r(25482);let o=i=class extends a.o{constructor(e){super(e),this.type="selection"}clone(){return new i}};(0,s.Cg)([(0,n.MZ)({type:["selection"],readOnly:!0,json:{write:!0}})],o.prototype,"type",void 0),o=i=(0,s.Cg)([(0,n.$K)("esri.layers.support.FeatureReductionSelection")],o)},37352(e,t,r){r.d(t,{A:()=>l});var i,s=r(32198),n=r(91429),a=r(7762),o=r(25482);let l=i=class extends o.o{constructor(e){super(e),this.floorField=null,this.viewAllMode=!1,this.viewAllLevelIds=new a.A}clone(){return new i({floorField:this.floorField,viewAllMode:this.viewAllMode,viewAllLevelIds:this.viewAllLevelIds})}};(0,s.Cg)([(0,n.MZ)({type:String,json:{write:{isRequired:!0}}})],l.prototype,"floorField",void 0),(0,s.Cg)([(0,n.MZ)({json:{read:!1,write:!1}})],l.prototype,"viewAllMode",void 0),(0,s.Cg)([(0,n.MZ)({json:{read:!1,write:!1}})],l.prototype,"viewAllLevelIds",void 0),l=i=(0,s.Cg)([(0,n.$K)("esri.layers.support.LayerFloorInfo")],l)},17036(e,t,r){r.d(t,{p:()=>l});var i=r(44208),s=r(53966),n=r(20437),a=r(95466),o=r(30524);function l(){return{fields:{type:[n.A],value:null,set:function(e){if(e&&(0,i.A)("big-integer-warning-enabled")){let t=e.filter(e=>"big-integer"===e.type||"oid"===e.type&&(e.length||0)>=8);if(t.length){let e=t.map(e=>`'${e.name}'`).join(", ");s.A.getLogger(this).warn("#fields",`Layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}') references big-integer field(s): ${e}, support for which is experimental. Only integers less than ${2**53-1} (Number.MAX_SAFE_INTEGER) are supported.`)}}this._set("fields",e)}},fieldsIndex:{readOnly:!0,get(){return a.A.fromLayer(this)}},outFields:{type:[String],json:{read:!1},set:function(e){this._userOutFields=e,this.notifyChange("outFields")},get:function(){let e=this._userOutFields;if(!e?.length)return null;if(e.includes("*"))return["*"];if(!this.fields)return e;for(let t of e)this.fieldsIndex?.has(t)||s.A.getLogger("esri.layers.support.fieldProperties").error("field-attributes-layer:invalid-field",`Invalid field ${t} found in outFields`,{layer:this,outFields:e});return(0,o.DB)(this.fieldsIndex,e)}}}}},20557(e,t,r){r.d(t,{Fm:()=>l,Hz:()=>g,JQ:()=>y,JZ:()=>S,ND:()=>v,R_:()=>a,U9:()=>f,_h:()=>b,be:()=>p,fE:()=>h,fu:()=>s,nr:()=>m,oF:()=>n,qv:()=>F,rP:()=>c,rq:()=>u,z$:()=>d});const i=[["binary","application/octet-stream","bin",""]];function s(e,t){return null!=M(t.name,e?.supportedFormats??[])}function n(e,t){if(!e)return!1;let r=u(t,e.supportedFormats??[]);return null!=r&&e.editFormats.includes(r)}function a(e,t){return I(function(e,t){let r=e.toLowerCase();return w(t).find(e=>A(e)===r)}(e,t))}function o(e,t){return I(M(e,t))}function l(e,t){return A(b(e,t))}function u(e,t){return o(e.name,t)??a(e.type,t)}function d(e,t,r){return a(e,r)??o(t,r)}function p(e,t){if(!e||!b(e,t))return;let r=/^3d_(.+)$/iu.exec(e)?.[1]?.toLowerCase();return r||void 0}function c(e,t){return(e??[]).map(e=>p(e,t)).filter(e=>!!e)}function h(e,t){return I(t.find(r=>p(I(r),t)===e))}function f({supportedFormats:e}){return d("model/gltf-binary","glb",e)}function y(e){let t=f(e);return null!=t&&e.editFormats.includes(t)}function g(e){if(!e)return null;let t=f(e),r=function({supportedFormats:e}){return d("model/gltf+json","gltf",e)}(e),i=null;for(let s of e.queryFormats){if(s===t)return s;s===r&&(i=s)}return i}function m({supportedFormats:e}){return d("application/esri3do-SR_world","wld",e)}function v({supportedFormats:e}){return d("application/esri3do-SR_prj","prj",e)}function w(e){return[...i,...e]}function b(e,t){return w(t).find(t=>I(t)===e)}function M(e,t){let r=e.toLowerCase();return w(t).find(e=>F(e).some(e=>r.endsWith(e)))}function I(e){return e?.[0]}function A(e){return e?.[1].toLowerCase()}function F(e){return e?.[2].split(",").map(e=>e.toLowerCase())??[]}function S(e){return e.tables?.find(e=>"assetMaps"===e.role)}},86390(e,t,r){r.d(t,{Z:()=>n});var i=r(86211),s=r(73836);function n(e){let t=1/(0,i.GA)(e,1);return 1===t?void 0:new s.A({scale:[t,t,t]})}},73179(e,t,r){r.d(t,{b:()=>l,h:()=>u});var i=r(4718),s=r(53966),n=r(84952),a=r(60694),o=r(10873);function l(e){let{nonStandardUrlAllowed:t=!1,separator:r}=e??{},n=(0,i.o8)(o.OZ),l=n.json?.write;return"object"==typeof l&&l&&(l.writer=function(e,t,i,s){(0,a.LS)(this,e,r,t,s)}),{...n,set:function(e){if(null==e)return void this._set("url",e);let r=(0,a.HZ)({layer:this,url:e,nonStandardUrlAllowed:t,logger:s.A.getLogger(this)});this._set("url",r.url),null!=r.layerId&&this._set("layerId",r.layerId)}}}function u(e,t){let{separator:r}=t??{},i=(0,n.An)(e.url);return null!=i&&(null==e.dynamicDataSource?null!=e.layerId&&(i.path=(0,n.fj)(i.path,r??"",e.layerId.toString())):i.path=(0,n.fj)(i.path,"dynamicLayer")),i}},85648(e,t,r){r.d(t,{n:()=>s});var i=r(84952);function s(e){return n[function(e){return"json"===e.type?"application/json":"blob"===e.type?e.blob.type:function(e){let t=(0,i.Zo)(e);return l[t]||a}(e.url)}(e)]||o}const n={},a="text/plain",o=n[a],l={png:"image/png",jpeg:"image/jpeg",jpg:"image/jpg",bmp:"image/bmp",gif:"image/gif",json:"application/json",txt:"text/plain",xml:"application/xml",svg:"image/svg+xml",zip:"application/zip",pbf:"application/vnd.mapbox-vector-tile",gz:"application/gzip","bin.gz":"application/octet-stream"};for(let e in l)n[l[e]]=e},8947(e,t,r){r.d(t,{L:()=>a});var i=r(60999),s=r(17676),n=r(67076);async function a(e,t,r){let a=e&&e.getAtOrigin&&e.getAtOrigin("renderer",t.origin);if(a&&"unique-value"===a.type&&a.styleOrigin){let o=await(0,i.Ke)(a.populateFromStyle());if((0,s.Te)(r),!1===o.ok){let r=o.error;t?.messages&&t.messages.push(new n.A("renderer:style-reference",`Failed to create unique value renderer from style reference: ${r.message}`,{error:r,context:t})),e.clear("renderer",t?.origin)}}}},24212(e,t,r){r.d(t,{$7:()=>l,B:()=>o,M7:()=>p,XF:()=>d,tW:()=>u,w7:()=>a});var i=r(56512),s=r(86211),n=r(16271);function a(e,t){return function(e,t){return t?.mode?t.mode:function(e){return e?c:h}(e).mode}(null==e||(e.hasZ??!1),t)}function o(e,t,r){return r&&r.mode!==t?`${e} only support ${t} elevation mode`:null}function l(e,t,r){return r?.mode===t?`${e} do not support ${t} elevation mode`:null}function u(e,t){return null!=t?.featureExpressionInfo&&"0"!==t.featureExpressionInfo.expression?`${e} do not support featureExpressionInfo`:null}function d(e,t){t&&e.warn(".elevationInfo=",t)}function p(e){return(e?.offset??0)*(0,n.Ao)(e?.unit)}(0,i.B)((e,t,r)=>{if(!e||"decimal-degrees"===t)return 0;let i="unknown"!==t&&t?t:"meters",n=(0,s.mq)(r);return n?(0,s.oU)(e,i,n):0});const c={mode:"absolute-height",offset:0},h={mode:"on-the-ground",offset:null}},20816(e,t,r){r.d(t,{TA:()=>n,We:()=>l,Z3:()=>a,ZJ:()=>u,w5:()=>d});var i=r(13069),s=r(78888);const n=(0,i.vD)(),a=new Map,o=new Map;async function l(e,t,r){if(!e||!r)return!1;if(!t)return!0;let i=new URL(e).host,n=a.get(i);if(!n){let t=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,"");n=(await(0,s.A)(t,{responseType:"json",query:{f:"json"}})).data.defaultVersionName}return n===t}async function u(e,t,i=!1){if(!e||!t)return!0;let s=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,""),a=o.get(s)?.entries();if(a)for(let[e,o]of a)if(o.name===t){let t=!o.stack?.hasForwardEdits();if(!t&&i){let[{deleteForwardEdits:t},{default:i}]=await Promise.all([r.e(2186).then(()=>r(32186)),r.e(2558).then(()=>r(32558))]),a=await t(s,e,new i({sessionId:n,moment:o.moment}));return a.success&&o.stack?.clearForwardEdits(),a.success}return t}return!0}function d(e,t){if(!e)return!1;let r=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,""),i=o.get(r)?.entries();if(i)for(let[e,r]of i)if(r.name===t)return"edit"===r.lockType;return!1}new Map},45671(e,t,r){r.d(t,{D8:()=>n,TO:()=>s});var i=r(30524);async function s(e,t=e.popupTemplate){if(null==t)return[];let r=await t.getRequiredFields(e.fieldsIndex),{lastEditInfoEnabled:s}=t,{objectIdField:n,typeIdField:a,globalIdField:o,relationships:l}=e;if(r.includes("*"))return["*"];let u=s?(0,i.eX)(e):[],d=(0,i.DB)(e.fieldsIndex,[...r,...u]);return a&&d.push(a),d&&n&&e.fieldsIndex?.has(n)&&!d.includes(n)&&d.push(n),d&&o&&e.fieldsIndex?.has(o)&&!d.includes(o)&&d.push(o),l?.forEach(t=>{let{keyField:r}=t;d&&r&&e.fieldsIndex?.has(r)&&!d.includes(r)&&d.push(r)}),d}function n(e,t){return!e||"object"!=typeof e||t?.checkPopupEnabled&&"popupEnabled"in e&&!e.popupEnabled?null:"popupTemplate"in e&&e.popupTemplate?e.popupTemplate:null!=t&&t.defaultPopupTemplateEnabled&&"defaultPopupTemplate"in e&&e.defaultPopupTemplate?e.defaultPopupTemplate:null}},26121(e,t,r){r.d(t,{I6:()=>d,ci:()=>u,dL:()=>l,wN:()=>p});var i=r(49186),s=r(84952),n=r(77548),a=r(20655),o=r(59923);async function l(e){let t=[];for(let r of e.allLayers)if("beforeSave"in r&&"function"==typeof r.beforeSave){let e=r.beforeSave();e&&t.push(e)}await Promise.allSettled(t)}function u(e,t,r){let s=(e.messages??[]).filter(({type:e})=>"error"===e).map(({name:e,message:t,details:r})=>new i.A(e,t,r));if(e.blockedRelativeUrls&&(s=s.concat(e.blockedRelativeUrls.map(e=>(0,o.GL)("url",`Relative url '${e}' is not supported`)))),r){let{ignoreUnsupported:e,supplementalUnsupportedErrors:t=[],requiredPropertyChecksDisabled:i}=r;e&&(s=s.filter(({name:e})=>!(o.MG.has(e)||t.includes(e)))),i&&(s=s.filter(e=>"web-document-write:property-required"!==e.name))}if(s.length>0)throw new i.A(t.errorName,"Failed to save due to unsupported or invalid content. See 'details.errors' for more detailed information",{errors:s})}function d(e){return(0,n.qd)(e).some(e=>!!e.charts?.length)}function p(e,t){let r=t?.portal,i=e?.id&&(e.portal||a.A.getDefault());return!!r&&!!i&&!(0,s.ut)(i.restUrl,r.restUrl)}}}]);