@arcgis/core 5.2.0-next.40 → 5.2.0-next.42

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 (634) hide show
  1. package/assets/esri/core/workers/RemoteClient.js +1 -1
  2. package/assets/esri/core/workers/chunks/02ab09285a5c4ca98066.js +1 -0
  3. package/assets/esri/core/workers/chunks/0646524250bb9fe82935.js +1 -0
  4. package/assets/esri/core/workers/chunks/0a50efb07eee36237e21.js +1 -0
  5. package/assets/esri/core/workers/chunks/0a98a13418f53082ca7a.js +1 -0
  6. package/assets/esri/core/workers/chunks/0ae0483b72f5e8d00d55.js +1 -0
  7. package/assets/esri/core/workers/chunks/0ae35b02dda9b9662560.js +1 -0
  8. package/assets/esri/core/workers/chunks/0d1224693a62a26a0e72.js +1 -0
  9. package/assets/esri/core/workers/chunks/{542d8a6c415098b9857c.js → 0da4816c11b45b4a6289.js} +1 -1
  10. package/assets/esri/core/workers/chunks/{8a39dd585742960d3ca2.js → 0dcfd82a2669df6eb5a0.js} +1 -1
  11. package/assets/esri/core/workers/chunks/0f19bc532be24ca64755.js +1 -0
  12. package/assets/esri/core/workers/chunks/0f674c625f24ac73e25a.js +1 -0
  13. package/assets/esri/core/workers/chunks/11a3aa43fb940c21f148.js +1 -0
  14. package/assets/esri/core/workers/chunks/11e00ca5ac1b004f4ecc.js +1 -0
  15. package/assets/esri/core/workers/chunks/1276df03201c1b855fee.js +1 -0
  16. package/assets/esri/core/workers/chunks/13c893e448bedc5c1cef.js +1 -0
  17. package/assets/esri/core/workers/chunks/15c2d9bec0455fc363a9.js +1 -0
  18. package/assets/esri/core/workers/chunks/15de305ac3d6433748e7.js +1 -0
  19. package/assets/esri/core/workers/chunks/18d874739ee9ffad7480.js +1 -0
  20. package/assets/esri/core/workers/chunks/1dc1bfb3425665f560e4.js +1 -0
  21. package/assets/esri/core/workers/chunks/{1cd8dff4373494b01ad4.js → 1e342d532925569daadb.js} +1 -1
  22. package/assets/esri/core/workers/chunks/1f118d85d8271ad7690b.js +1 -0
  23. package/assets/esri/core/workers/chunks/1fece9757de7c10d1e9f.js +1 -0
  24. package/assets/esri/core/workers/chunks/{a2e754df3215e8b00a8f.js → 2015f4def2ef201bdab8.js} +1 -1
  25. package/assets/esri/core/workers/chunks/23570397304969f724b3.js +1 -0
  26. package/assets/esri/core/workers/chunks/24c0b3586bb6500eda53.js +2 -0
  27. package/assets/esri/core/workers/chunks/26e7884d8639df4d994b.js +1 -0
  28. package/assets/esri/core/workers/chunks/26fdc8382e009672924e.js +1 -0
  29. package/assets/esri/core/workers/chunks/{96860b6035e0b06672dd.js → 272c8ab189217240d05f.js} +1 -1
  30. package/assets/esri/core/workers/chunks/2791f3fe16ca5ee2f39a.js +1 -0
  31. package/assets/esri/core/workers/chunks/279a9a38b04a21cdfd11.js +1 -0
  32. package/assets/esri/core/workers/chunks/284e88805184334396fe.js +1 -0
  33. package/assets/esri/core/workers/chunks/28bc5e8e82f188b30eb9.js +1 -0
  34. package/assets/esri/core/workers/chunks/2a4868acd546312aa6d8.js +1 -0
  35. package/assets/esri/core/workers/chunks/2d7cfc68a38dabd8898a.js +1 -0
  36. package/assets/esri/core/workers/chunks/2da337d7fd9295f6b967.js +1 -0
  37. package/assets/esri/core/workers/chunks/2e79fb1b8445b2091cdb.js +1 -0
  38. package/assets/esri/core/workers/chunks/2f29f08cddd5add9388e.js +1 -0
  39. package/assets/esri/core/workers/chunks/30c53a7e1ad5aa52f2f3.js +1 -0
  40. package/assets/esri/core/workers/chunks/31c4db1eac8f765bb93f.js +1 -0
  41. package/assets/esri/core/workers/chunks/321dbc60f44819c2b4de.js +1 -0
  42. package/assets/esri/core/workers/chunks/32fb597aef66c444758f.js +1 -0
  43. package/assets/esri/core/workers/chunks/34fcb776e4de1d870bbd.js +30 -0
  44. package/assets/esri/core/workers/chunks/354199a41de44902de84.js +1 -0
  45. package/assets/esri/core/workers/chunks/36781219ca9ba5d7fe52.js +1 -0
  46. package/assets/esri/core/workers/chunks/36999a2e383c8eb3c398.js +1 -0
  47. package/assets/esri/core/workers/chunks/36f8a912842181e1f0aa.js +1 -0
  48. package/assets/esri/core/workers/chunks/{ed1d4ebf487c7dcd5c33.js → 37a8cfec11057947b45f.js} +1 -1
  49. package/assets/esri/core/workers/chunks/{2b2b042a6d6949b06127.js → 381790e1f3df05c7eb68.js} +1 -1
  50. package/assets/esri/core/workers/chunks/383304d33b496c5d8baa.js +1 -0
  51. package/assets/esri/core/workers/chunks/{4e28f49d0be20ea50fd7.js → 383392c63202ac044b6c.js} +1 -1
  52. package/assets/esri/core/workers/chunks/394716bd1ecfd638d708.js +2 -0
  53. package/assets/esri/core/workers/chunks/399e23d777a043efa9f1.js +1 -0
  54. package/assets/esri/core/workers/chunks/3aacb935d632834d4154.js +1 -0
  55. package/assets/esri/core/workers/chunks/3c8e98cf23ad8ef12fcb.js +1 -0
  56. package/assets/esri/core/workers/chunks/4129b27fcd4103cdc499.js +1 -0
  57. package/assets/esri/core/workers/chunks/44e64186318728d1be51.js +1 -0
  58. package/assets/esri/core/workers/chunks/474ea8c97d101e41b3f5.js +1 -0
  59. package/assets/esri/core/workers/chunks/475c60ed8785d07911c6.js +1 -0
  60. package/assets/esri/core/workers/chunks/{c7662455252b48531da1.js → 484b3e2a220c440ccbb4.js} +1 -1
  61. package/assets/esri/core/workers/chunks/4d4710d57c72ec75cccc.js +1 -0
  62. package/assets/esri/core/workers/chunks/4e1b087453fc5e20e961.js +1 -0
  63. package/assets/esri/core/workers/chunks/4e94793aab42ebd251ca.js +1 -0
  64. package/assets/esri/core/workers/chunks/4f59357f535f30a6b5cc.js +1 -0
  65. package/assets/esri/core/workers/chunks/509cfac9e5d86a8ee449.js +1 -0
  66. package/assets/esri/core/workers/chunks/510acf2e8781be9b0dba.js +1 -0
  67. package/assets/esri/core/workers/chunks/5133083222588799493f.js +1 -0
  68. package/assets/esri/core/workers/chunks/52c4b4dabcb0d162be72.js +1 -0
  69. package/assets/esri/core/workers/chunks/{697e0ce10d77b90d4fee.js → 538fe46dfd685a490e23.js} +1 -1
  70. package/assets/esri/core/workers/chunks/5441f96cdd0660229efe.js +1 -0
  71. package/assets/esri/core/workers/chunks/551d0c5432f7a08dea77.js +1 -0
  72. package/assets/esri/core/workers/chunks/55924fb0de05e727f5e3.js +1 -0
  73. package/assets/esri/core/workers/chunks/55af58b6dff52dc040fe.js +2 -0
  74. package/assets/esri/core/workers/chunks/56bbde1dff96b423fbb9.js +1 -0
  75. package/assets/esri/core/workers/chunks/57824ecc10b25e3ad794.js +1 -0
  76. package/assets/esri/core/workers/chunks/{9ba705a6ddabca0f77b1.js → 580451761cadfe308919.js} +1 -1
  77. package/assets/esri/core/workers/chunks/590e977f8eeb379b86c8.js +1398 -0
  78. package/assets/esri/core/workers/chunks/5923ebadd4f75be2c9cc.js +1 -0
  79. package/assets/esri/core/workers/chunks/5b18696109fe84a1010a.js +2 -0
  80. package/assets/esri/core/workers/chunks/{db96a0c66578b2d1b715.js → 5b30231ae0a8f4b8435f.js} +1 -1
  81. package/assets/esri/core/workers/chunks/{77a4f6f224d7ca4b69f4.js → 5bf4ab72b9634b06cc5d.js} +1 -1
  82. package/assets/esri/core/workers/chunks/5ce168ae45ab7e7a71d1.js +1 -0
  83. package/assets/esri/core/workers/chunks/{7b1678dcf62481469544.js → 5dc17b76c6ecc24e7b9a.js} +1 -1
  84. package/assets/esri/core/workers/chunks/5e35828216020f33e26b.js +1 -0
  85. package/assets/esri/core/workers/chunks/5f0d6c853873a7f32527.js +1 -0
  86. package/assets/esri/core/workers/chunks/5fe9eea35ddb428efd8b.js +1 -0
  87. package/assets/esri/core/workers/chunks/6010b7be978698a642d0.js +1 -0
  88. package/assets/esri/core/workers/chunks/613e799377bdb767c955.js +1 -0
  89. package/assets/esri/core/workers/chunks/6210fb6cd31844f23964.js +1 -0
  90. package/assets/esri/core/workers/chunks/632ab11cdd4b0d9a5cc5.js +1 -0
  91. package/assets/esri/core/workers/chunks/64247e439ef3e1f712e9.js +1 -0
  92. package/assets/esri/core/workers/chunks/661a59133ae34f172174.js +1 -0
  93. package/assets/esri/core/workers/chunks/67468c50ecb1fbedda87.js +1 -0
  94. package/assets/esri/core/workers/chunks/6b0acd1a7dd74a7367e0.js +1 -0
  95. package/assets/esri/core/workers/chunks/6d247ff53421d27628ce.js +1 -0
  96. package/assets/esri/core/workers/chunks/6e45d0db97ffa4509177.js +1 -0
  97. package/assets/esri/core/workers/chunks/6f408397e2c8a2ea9805.js +1 -0
  98. package/assets/esri/core/workers/chunks/700c08dd2e734c15e621.js +1 -0
  99. package/assets/esri/core/workers/chunks/705d6b108fd121cea887.js +1 -0
  100. package/assets/esri/core/workers/chunks/71ce1009dadcae8f8094.js +1 -0
  101. package/assets/esri/core/workers/chunks/72fe7fb03c156f26a589.js +1 -0
  102. package/assets/esri/core/workers/chunks/733b2e181683d5fc7c95.js +1 -0
  103. package/assets/esri/core/workers/chunks/7684f0c771d312e05bb4.js +680 -0
  104. package/assets/esri/core/workers/chunks/79b857bb301f9c4169d6.js +1 -0
  105. package/assets/esri/core/workers/chunks/79c0a966f7d11d3c217f.js +1 -0
  106. package/assets/esri/core/workers/chunks/7a818499c1079906c2d7.js +1 -0
  107. package/assets/esri/core/workers/chunks/7ac47a9ad244100bc3b1.js +1 -0
  108. package/assets/esri/core/workers/chunks/7b862a074816c099b9ff.js +1 -0
  109. package/assets/esri/core/workers/chunks/7baa363b3b0a442a63d2.js +1 -0
  110. package/assets/esri/core/workers/chunks/7cc729b57a6a52c8ac68.js +1 -0
  111. package/assets/esri/core/workers/chunks/{4abe820bbe4f7ffccc09.js → 7df795bc4fa1d433463b.js} +1 -1
  112. package/assets/esri/core/workers/chunks/7f7a76f5fef25049fbf8.js +1 -0
  113. package/assets/esri/core/workers/chunks/7fa9dc39bf0a7a6fdc1f.js +1 -0
  114. package/assets/esri/core/workers/chunks/821176ee3be724621bb0.js +1 -0
  115. package/assets/esri/core/workers/chunks/825eb845216762a1ed2f.js +1 -0
  116. package/assets/esri/core/workers/chunks/82f4aa0533db009b11d8.js +2 -0
  117. package/assets/esri/core/workers/chunks/{2a344bca6837ca3b5c41.js.LICENSE.txt → 82f4aa0533db009b11d8.js.LICENSE.txt} +0 -6
  118. package/assets/esri/core/workers/chunks/830d1a7dee43422507ab.js +1 -0
  119. package/assets/esri/core/workers/chunks/835643f716f7058a2722.js +1 -0
  120. package/assets/esri/core/workers/chunks/84fa102a93b2144c28fb.js +1 -0
  121. package/assets/esri/core/workers/chunks/85ce7673d42526a79fd2.js +1 -0
  122. package/assets/esri/core/workers/chunks/893ffc38e1a43de5b63d.js +1 -0
  123. package/assets/esri/core/workers/chunks/{93df864c2e829f0fd5ce.js → 8a1970e68bc1e833cb7f.js} +1 -1
  124. package/assets/esri/core/workers/chunks/{684c9b4bd9590d2db12f.js → 8a410edcdf74ba957159.js} +1 -1
  125. package/assets/esri/core/workers/chunks/8b73694d5a97638a3a61.js +1 -0
  126. package/assets/esri/core/workers/chunks/8bb20ef549ec1c86b38e.js +1 -0
  127. package/assets/esri/core/workers/chunks/{6ef3b8d67b498d655a99.js → 8c5e65982c3f9295e844.js} +1 -1
  128. package/assets/esri/core/workers/chunks/8cb2fe91d1d8f49c14f8.js +1 -0
  129. package/assets/esri/core/workers/chunks/{1961b59756933e0a82f2.js → 8dcc6c19d5b3a5ac5512.js} +1 -1
  130. package/assets/esri/core/workers/chunks/8dee03779b569f233daf.js +1 -0
  131. package/assets/esri/core/workers/chunks/8ec5e470583b75fceae1.js +1 -0
  132. package/assets/esri/core/workers/chunks/8f2fecd8a0a972d68590.js +1 -0
  133. package/assets/esri/core/workers/chunks/9073b0f0ec93d6e243b9.js +1 -0
  134. package/assets/esri/core/workers/chunks/90ace5f9b4af1beea6bf.js +1 -0
  135. package/assets/esri/core/workers/chunks/934044f2ef6ce199b399.js +1 -0
  136. package/assets/esri/core/workers/chunks/94719ac469dadc4c05dc.js +1 -0
  137. package/assets/esri/core/workers/chunks/94e9cf8e729ec36de5be.js +1 -0
  138. package/assets/esri/core/workers/chunks/96d5fed0235558c0e348.js +1 -0
  139. package/assets/esri/core/workers/chunks/98b27cf8acbfa4259758.js +1 -0
  140. package/assets/esri/core/workers/chunks/9902fcd2070c8eb6d043.js +1 -0
  141. package/assets/esri/core/workers/chunks/99772ce7e628364434fa.js +1 -0
  142. package/assets/esri/core/workers/chunks/{b1a0eb6598309e11337f.js → 99e3aa4832ed87474ab4.js} +1 -1
  143. package/assets/esri/core/workers/chunks/9a6208ab670ad74e6f7d.js +1 -0
  144. package/assets/esri/core/workers/chunks/9a97f6cda2f36941efae.js +1 -0
  145. package/assets/esri/core/workers/chunks/9b1199104a6822ab7340.js +1 -0
  146. package/assets/esri/core/workers/chunks/9ceeae787dc7c194d60e.js +1 -0
  147. package/assets/esri/core/workers/chunks/9ebc98746b1f085b82b7.js +1 -0
  148. package/assets/esri/core/workers/chunks/9ee3741eef73f3edb18b.js +1 -0
  149. package/assets/esri/core/workers/chunks/9fb87a7dba62b527c0ba.js +1 -0
  150. package/assets/esri/core/workers/chunks/a10f63a08d976be058be.js +1 -0
  151. package/assets/esri/core/workers/chunks/a183b77854f5b42c1a86.js +1 -0
  152. package/assets/esri/core/workers/chunks/a23f4d8e7c372f5fb6d7.js +1 -0
  153. package/assets/esri/core/workers/chunks/a25f51d2d3ff6b9af7ca.js +1 -0
  154. package/assets/esri/core/workers/chunks/a27172dacdb85a774c4b.js +1 -0
  155. package/assets/esri/core/workers/chunks/a27cdf4c29dd50a6dab1.js +1 -0
  156. package/assets/esri/core/workers/chunks/a294dd12b5c708ce04af.js +1 -0
  157. package/assets/esri/core/workers/chunks/a3c882fe7599dc0f4f27.js +1 -0
  158. package/assets/esri/core/workers/chunks/a90f7b1c6c69b6033b4c.js +1 -0
  159. package/assets/esri/core/workers/chunks/a9c641bcdef161c754bf.js +1 -0
  160. package/assets/esri/core/workers/chunks/a9d391071803b1e9e8a0.js +1 -0
  161. package/assets/esri/core/workers/chunks/aaa66a04b882b0ba2961.js +1 -0
  162. package/assets/esri/core/workers/chunks/ae50b2d5e63f62c088d2.js +1 -0
  163. package/assets/esri/core/workers/chunks/af3ac4bed43e901b59c7.js +1 -0
  164. package/assets/esri/core/workers/chunks/af97e19516dbbcfb5286.js +1 -0
  165. package/assets/esri/core/workers/chunks/aff0e7761276036e029d.js +1 -0
  166. package/assets/esri/core/workers/chunks/b23d1e10fc4161d1f3eb.js +1 -0
  167. package/assets/esri/core/workers/chunks/b32bdf5730953c2fb16b.js +1 -0
  168. package/assets/esri/core/workers/chunks/b3f1a442d6b7826e917f.js +1 -0
  169. package/assets/esri/core/workers/chunks/b4047333265a2665aef9.js +1 -0
  170. package/assets/esri/core/workers/chunks/b7170816736769d3b7b0.js +1 -0
  171. package/assets/esri/core/workers/chunks/{5c63b38160c7d063b8af.js → b780514be87a22b49b01.js} +1 -1
  172. package/assets/esri/core/workers/chunks/b792857a178da2dd77d6.js +1 -0
  173. package/assets/esri/core/workers/chunks/b819a9187426d0c146df.js +1 -0
  174. package/assets/esri/core/workers/chunks/{1d92da90fbbc3f98b201.js → b8d788e110c212a879ab.js} +1 -1
  175. package/assets/esri/core/workers/chunks/b94cd7eac5ff4a78dd5b.js +1 -0
  176. package/assets/esri/core/workers/chunks/b9d6f89f9b8e9d1bc787.js +1 -0
  177. package/assets/esri/core/workers/chunks/b9f40681af1fa00b5bbe.js +1 -0
  178. package/assets/esri/core/workers/chunks/{bc547cf814d6703cef59.js → bb95922cd4631d6f17fb.js} +1 -1
  179. package/assets/esri/core/workers/chunks/bcb5017500d144b73908.js +1 -0
  180. package/assets/esri/core/workers/chunks/bd862382f72ebd446b46.js +1 -0
  181. package/assets/esri/core/workers/chunks/bdd19dab276d20d5381a.js +1 -0
  182. package/assets/esri/core/workers/chunks/bee5e738ecf8680909c4.js +1 -0
  183. package/assets/esri/core/workers/chunks/{9be4438ce2c7180adadf.js → bf287f0e2ecb4532dc00.js} +1 -1
  184. package/assets/esri/core/workers/chunks/{5115059b012ef84407cf.js → bfb6566c27c09deb0929.js} +1 -1
  185. package/assets/esri/core/workers/chunks/c055c16379f5bb56e930.js +1 -0
  186. package/assets/esri/core/workers/chunks/c13e55b9efb0b532f7ee.js +1 -0
  187. package/assets/esri/core/workers/chunks/c1845682cc9a5aac8703.js +261 -0
  188. package/assets/esri/core/workers/chunks/c369d4266f38e9ea6592.js +1 -0
  189. package/assets/esri/core/workers/chunks/c3fae4f4522604a9c17e.js +1 -0
  190. package/assets/esri/core/workers/chunks/c4c25db769a78e677e33.js +1 -0
  191. package/assets/esri/core/workers/chunks/c50e4e8c6188e64e7d45.js +1 -0
  192. package/assets/esri/core/workers/chunks/c838cc1c786368b78598.js +1 -0
  193. package/assets/esri/core/workers/chunks/c8db0a4fb5bc982dc9fc.js +1 -0
  194. package/assets/esri/core/workers/chunks/{82adfa2dbd40e1becaf4.js → c97451f75c23be979476.js} +1 -1
  195. package/assets/esri/core/workers/chunks/ca118c42c0f609ca7912.js +1 -0
  196. package/assets/esri/core/workers/chunks/ca419858910af5505d3d.js +1 -0
  197. package/assets/esri/core/workers/chunks/cb17cd8aaf77238c0236.js +1 -0
  198. package/assets/esri/core/workers/chunks/{034dd8ee5152a12412cd.js → cba3316910ff088f4d77.js} +1 -1
  199. package/assets/esri/core/workers/chunks/cc414fd2e313d89d524d.js +1 -0
  200. package/assets/esri/core/workers/chunks/{7b8466f892a38a53c600.js → cce83896093279c70449.js} +1 -1
  201. package/assets/esri/core/workers/chunks/cda04571d7623c17ada2.js +1 -0
  202. package/assets/esri/core/workers/chunks/cea4b18e7f83c02922b1.js +1 -0
  203. package/assets/esri/core/workers/chunks/cf03d391d50a4c7aca4f.js +1 -0
  204. package/assets/esri/core/workers/chunks/d03f427442bb0c287d05.js +1 -0
  205. package/assets/esri/core/workers/chunks/d082de5dd83bd73d209b.js +1 -0
  206. package/assets/esri/core/workers/chunks/d08d3c6f21e6ba8268ca.js +1 -0
  207. package/assets/esri/core/workers/chunks/d36f17d32c654b1ac7fa.js +1 -0
  208. package/assets/esri/core/workers/chunks/d36fba71c52ea4e71546.js +1 -0
  209. package/assets/esri/core/workers/chunks/{18f980465db5a86153d1.js → d37a72111dffc4c4db70.js} +1 -1
  210. package/assets/esri/core/workers/chunks/d41ab2abcfacc87809b5.js +1 -0
  211. package/assets/esri/core/workers/chunks/d4ed094962a41d756c95.js +1 -0
  212. package/assets/esri/core/workers/chunks/d5561dff043789494845.js +1 -0
  213. package/assets/esri/core/workers/chunks/d66d58ed5d66520ab1bf.js +1 -0
  214. package/assets/esri/core/workers/chunks/d79ce047afbc034f6008.js +1 -0
  215. package/assets/esri/core/workers/chunks/d847c3cb2043a983145b.js +1 -0
  216. package/assets/esri/core/workers/chunks/d849bdaf5bdfdc37531a.js +1 -0
  217. package/assets/esri/core/workers/chunks/da6134c7883531f21afe.js +1 -0
  218. package/assets/esri/core/workers/chunks/{c48dfda8dcb9551606fb.js → dad39ddf0f8dfb0bef47.js} +1 -1
  219. package/assets/esri/core/workers/chunks/dadefe369f49e89a2610.js +1 -0
  220. package/assets/esri/core/workers/chunks/dccb46c7dce68528c72b.js +1 -0
  221. package/assets/esri/core/workers/chunks/ddafe402f1bc9e8285ef.js +1 -0
  222. package/assets/esri/core/workers/chunks/de9573871f64c01e9f01.js +1 -0
  223. package/assets/esri/core/workers/chunks/dedf678490572c500a19.js +30 -0
  224. package/assets/esri/core/workers/chunks/df174346a7e9b629a392.js +1 -0
  225. package/assets/esri/core/workers/chunks/df30053a10d4930924d5.js +1 -0
  226. package/assets/esri/core/workers/chunks/dfbdc72c7ea137e3841d.js +1 -0
  227. package/assets/esri/core/workers/chunks/e21b3490bfce75405e55.js +1 -0
  228. package/assets/esri/core/workers/chunks/e2c9393bec747f7876bb.js +1 -0
  229. package/assets/esri/core/workers/chunks/e3e966777f18164afcd8.js +1 -0
  230. package/assets/esri/core/workers/chunks/e4a2eefffe16cd5bb20f.js +1 -0
  231. package/assets/esri/core/workers/chunks/{d0983cc19d19c19c3478.js → e4aacfc1617ccf60bd5a.js} +1 -1
  232. package/assets/esri/core/workers/chunks/{3a526e1d18490b99332f.js → e5bb7ee670a3ba5ba3fe.js} +1 -1
  233. package/assets/esri/core/workers/chunks/e5c75459de85a6dd2f14.js +1 -0
  234. package/assets/esri/core/workers/chunks/{757982a73174aa7ab0d1.js → e6b5c015205d38abe037.js} +1 -1
  235. package/assets/esri/core/workers/chunks/e798ca23f02a2dd65bd4.js +1 -0
  236. package/assets/esri/core/workers/chunks/e94f2d6037fba042dc6e.js +1 -0
  237. package/assets/esri/core/workers/chunks/e9511627418c6864148a.js +1 -0
  238. package/assets/esri/core/workers/chunks/ec1a2e68957fae48e60b.js +30 -0
  239. package/assets/esri/core/workers/chunks/ec2e0b2e31fd53b81d0a.js +1 -0
  240. package/assets/esri/core/workers/chunks/ed552941eca621a51f16.js +1 -0
  241. package/assets/esri/core/workers/chunks/ee58f4bbc0a1f7d03df0.js +1 -0
  242. package/assets/esri/core/workers/chunks/f04cb48fc73635d0572f.js +1 -0
  243. package/assets/esri/core/workers/chunks/f06f591680c9e93e69f6.js +1 -0
  244. package/assets/esri/core/workers/chunks/f1d3cf674b6bea89e122.js +1 -0
  245. package/assets/esri/core/workers/chunks/f2ab8e49c7f17f488aa8.js +1 -0
  246. package/assets/esri/core/workers/chunks/{6a51499c6623ddce5f00.js → f2adf1227a795604d3b8.js} +1 -1
  247. package/assets/esri/core/workers/chunks/{57c003c6745d450558a7.js → f4aed2b6e92bd0474069.js} +1 -1
  248. package/assets/esri/core/workers/chunks/f4eda59ec1e816ecc827.js +1 -0
  249. package/assets/esri/core/workers/chunks/f5d7f69047e1b1116202.js +1 -0
  250. package/assets/esri/core/workers/chunks/f5d809d30cbb56be852d.js +1 -0
  251. package/assets/esri/core/workers/chunks/{2d92f0042facb55edcff.js → f65adaaa33d9f3b131f6.js} +1 -1
  252. package/assets/esri/core/workers/chunks/f8f0de841be17cd05c8f.js +1 -0
  253. package/assets/esri/core/workers/chunks/f9b654f801cb416e9e17.js +1 -0
  254. package/assets/esri/core/workers/chunks/fb34d6d96c8c0d53fcf6.js +1 -0
  255. package/assets/esri/core/workers/chunks/fb51f823b25c827c6b29.js +1 -0
  256. package/assets/esri/core/workers/chunks/fba8065a3a6fbd877e23.js +1 -0
  257. package/assets/esri/core/workers/chunks/fd47ee8598e37fea03fe.js +1 -0
  258. package/assets/esri/core/workers/chunks/fefbde2c2e527bb716ee.js +1 -0
  259. package/assets/esri/core/workers/chunks/ff089723a27859fe18d1.js +1 -0
  260. package/assets/esri/layers/raster/formats/lerc-wasm.wasm +0 -0
  261. package/assets/esri/rest/knowledgeGraph/wasmInterface/arcgis-knowledge-client-core-simd.wasm +0 -0
  262. package/assets/esri/rest/knowledgeGraph/wasmInterface/arcgis-knowledge-client-core.wasm +0 -0
  263. package/assets/esri/themes/base/_core.scss +0 -6
  264. package/assets/esri/themes/dark/main.css +1 -1
  265. package/assets/esri/themes/light/main.css +1 -1
  266. package/assets/esri/themes/light/view.css +1 -1
  267. package/chunks/CutFillMinMaxDepth.glsl.js +2 -0
  268. package/chunks/CutFillTotalDepth.glsl.js +2 -0
  269. package/chunks/EdgeShader.glsl.js +9 -9
  270. package/chunks/GaussianSplat.glsl.js +1 -1
  271. package/chunks/arcgis-knowledge-client-core-simd.js +1 -1
  272. package/chunks/arcgis-knowledge-client-core.js +1 -1
  273. package/chunks/cameraUtilsSpherical.js +1 -1
  274. package/config.js +1 -1
  275. package/editing/geometry/coordUtils.js +1 -1
  276. package/geohash/geohashUtils.js +1 -1
  277. package/geometry/support/aaBoundingRect.js +1 -1
  278. package/geometry/support/quantizationUtils.js +1 -1
  279. package/geometry/support/sphere.js +1 -1
  280. package/interfaces.d.ts +5 -0
  281. package/intl/date.js +1 -1
  282. package/kernel.js +1 -1
  283. package/layers/AnnotationFeatureLayer.d.ts +13 -3
  284. package/layers/DimensionFeatureLayer.d.ts +10 -3
  285. package/layers/graphics/featureConversionUtils.js +1 -1
  286. package/layers/graphics/sources/support/sourceUtils.js +1 -1
  287. package/layers/raster/formats/ImageCanvasDecoder.js +1 -1
  288. package/layers/raster/formats/Lerc.js +1 -1
  289. package/layers/raster/formats/RasterCodec.js +1 -1
  290. package/layers/support/fieldUtils.js +1 -1
  291. package/package.json +3 -3
  292. package/support/revision.js +1 -1
  293. package/views/2d/engine/vectorTiles/GeometryUtils.js +1 -1
  294. package/views/2d/engine/webgl/Painter.js +1 -1
  295. package/views/2d/engine/webgl/definitions.js +1 -1
  296. package/views/2d/engine/webgl/effects/FeatureEffect.js +1 -1
  297. package/views/2d/engine/webgl/effects/HighlightEffect.js +1 -1
  298. package/views/2d/engine/webgl/effects/HittestEffect.js +1 -1
  299. package/views/2d/engine/webgl/effects/highlight/HighlightGradient.js +1 -1
  300. package/views/2d/engine/webgl/mesh/templates/segmentUtils.js +1 -1
  301. package/views/2d/engine/webgl/shaderGraph/techniques/TextureStatisticsTechnique.js +1 -1
  302. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/BitBlitShader.js +2 -0
  303. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/DebugOverlayShader.js +2 -0
  304. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/HighlightShader.js +2 -0
  305. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/WorldExtentStencilShader.js +2 -0
  306. package/views/2d/engine/webgl/shaderGraph/techniques/text/TextMeshWriter.js +1 -1
  307. package/views/2d/engine/webgl/shaderGraph/techniques/text/TextShader.js +1 -1
  308. package/views/2d/engine/webgl/shaderGraph/techniques/utility/BitBlitTechnique.js +2 -0
  309. package/views/2d/engine/webgl/shaderGraph/techniques/utility/DebugOverlayTechnique.js +2 -0
  310. package/views/2d/engine/webgl/shaderGraph/techniques/utility/HighlightTechnique.js +2 -0
  311. package/views/2d/engine/webgl/shaderGraph/techniques/utility/WorldExtentClipTechnique.js +2 -0
  312. package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
  313. package/views/2d/layers/features/FeatureContainer.js +1 -1
  314. package/views/2d/layers/support/DebugOverlay.js +1 -1
  315. package/views/3d/analysis/Slice/sliceToolUtils.js +1 -1
  316. package/views/3d/layers/GaussianSplatLayerView3D.js +1 -1
  317. package/views/3d/layers/I3SMeshView3D.js +1 -1
  318. package/views/3d/layers/SceneLayerWorker.js +1 -1
  319. package/views/3d/layers/SceneLayerWorkerHandle.js +1 -1
  320. package/views/3d/layers/i3s/I3SNode.js +1 -1
  321. package/views/3d/layers/i3s/SphereCone.js +1 -1
  322. package/views/3d/state/helpers/SceneIntersectionHelper.js +1 -1
  323. package/views/3d/support/cameraUtilsSpherical.js +1 -1
  324. package/views/3d/support/gaussianSplatting/GaussianSplatFadeHelper.js +1 -1
  325. package/views/3d/support/gaussianSplatting/GaussianTile.js +1 -1
  326. package/views/3d/terrain/OverlayRenderer.js +1 -1
  327. package/views/3d/webgl/RenderCamera.js +1 -1
  328. package/views/3d/webgl-engine/core/shaderLibrary/Laserline.glsl.js +2 -2
  329. package/views/3d/webgl-engine/core/shaderLibrary/util/emissionFilter.glsl.js +1 -1
  330. package/views/3d/webgl-engine/effects/WeatherFader.js +1 -1
  331. package/views/3d/webgl-engine/effects/clouds/CloudsParameters.js +1 -1
  332. package/views/3d/webgl-engine/effects/debug/RenderNodeVisualizerNode.js +1 -1
  333. package/views/3d/webgl-engine/effects/glow/Glow.js +1 -1
  334. package/views/3d/webgl-engine/effects/laserlines/LaserLineRenderer.js +1 -1
  335. package/views/3d/webgl-engine/lib/BindParameters.js +1 -1
  336. package/views/3d/webgl-engine/lib/CutFillComputation.js +1 -1
  337. package/views/3d/webgl-engine/lib/GaussianSplatShadows.js +1 -1
  338. package/views/3d/webgl-engine/lib/Intersector.js +1 -1
  339. package/views/3d/webgl-engine/lib/IntersectorInterfaces.js +1 -1
  340. package/views/3d/webgl-engine/lib/Octree.js +1 -1
  341. package/views/3d/webgl-engine/lib/PolygonIntersections2D.js +2 -0
  342. package/views/3d/webgl-engine/lib/Renderer.js +1 -1
  343. package/views/3d/webgl-engine/lib/ShadowAccumulator.js +1 -1
  344. package/views/3d/webgl-engine/lib/SortedRenderGeometryRenderer.js +1 -1
  345. package/views/3d/webgl-engine/{shaders/sources/edgeRenderer → lib/edgeRendering}/AdjustProjectedPosition.glsl.js +1 -1
  346. package/views/3d/webgl-engine/{shaders/sources/edgeRenderer → lib/edgeRendering}/DiscardNonSilhouetteEdges.glsl.js +1 -1
  347. package/views/3d/webgl-engine/lib/edgeRendering/EdgeRenderer.js +1 -1
  348. package/views/3d/webgl-engine/lib/edgeRendering/EdgeShader.glsl.js +1 -1
  349. package/views/3d/webgl-engine/{shaders/sources/edgeRenderer → lib/edgeRendering}/EdgeUtil.glsl.js +1 -1
  350. package/views/3d/webgl-engine/{shaders/sources/edgeRenderer → lib/edgeRendering}/LineAmplitude.glsl.js +1 -1
  351. package/views/3d/webgl-engine/{shaders/sources/edgeRenderer → lib/edgeRendering}/LineOffset.glsl.js +1 -1
  352. package/views/3d/webgl-engine/{shaders/sources/edgeRenderer → lib/edgeRendering}/UnpackAttributes.glsl.js +1 -1
  353. package/views/3d/webgl-engine/lib/screenPolygonTriangleIntersections.js +1 -1
  354. package/views/3d/webgl-engine/materials/DefaultBufferWriter.js +1 -1
  355. package/views/3d/webgl-engine/materials/DefaultMaterial.js +1 -1
  356. package/views/3d/webgl-engine/materials/HUDMaterial.js +1 -1
  357. package/views/3d/webgl-engine/materials/HeatmapDensityMaterial.js +1 -1
  358. package/views/3d/webgl-engine/materials/ImageMaterial.js +1 -1
  359. package/views/3d/webgl-engine/materials/LineCalloutMaterial.js +1 -1
  360. package/views/3d/webgl-engine/materials/LineMarkerMaterial.js +1 -1
  361. package/views/3d/webgl-engine/materials/MeasurementArrowMaterial.js +1 -1
  362. package/views/3d/webgl-engine/materials/NativeLineMaterial.js +1 -1
  363. package/views/3d/webgl-engine/materials/PathMaterial.js +1 -1
  364. package/views/3d/webgl-engine/materials/PatternMaterial.js +1 -1
  365. package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
  366. package/views/3d/webgl-engine/materials/ShadedColorMaterial.js +1 -1
  367. package/views/3d/webgl-engine/materials/TriangleMaterial.js +1 -1
  368. package/views/3d/webgl-engine/materials/renderers/BufferRange.js +1 -1
  369. package/views/3d/webgl-engine/materials/renderers/VaoWriter.js +1 -1
  370. package/views/3d/webgl-engine/parts/RenderView.js +1 -1
  371. package/views/3d/webgl-engine/shaders/CutFillMinMaxDepth.glsl.js +2 -0
  372. package/views/3d/webgl-engine/shaders/CutFillMinMaxDepthTechnique.js +2 -0
  373. package/views/3d/webgl-engine/shaders/{CutFillDepth.glsl.js → CutFillTotalDepth.glsl.js} +1 -1
  374. package/views/3d/webgl-engine/shaders/CutFillTotalDepthTechnique.js +2 -0
  375. package/views/3d/webgl-engine/shaders/OutputColorHighlightOLID.glsl.js +1 -1
  376. package/views/3d/webgl-engine/shaders/ScreenSpacePassAtmosphere.glsl.js +1 -1
  377. package/views/Viewport2DMixin.js +1 -1
  378. package/views/input/BrowserEventSource.js +1 -1
  379. package/views/input/InputManager.js +1 -1
  380. package/views/interactive/snapping/snappingUtils.js +1 -1
  381. package/views/support/euclideanLengthMeasurementUtils.js +1 -1
  382. package/views/webgl/VertexAttributeLayouts.js +1 -1
  383. package/widgets/BatchAttributeForm/BatchAttributeFormViewModel.js +1 -1
  384. package/widgets/BatchAttributeForm/batchAttributeFormUtils.js +1 -1
  385. package/widgets/BatchAttributeForm/expressions/ExpressionsManager.js +1 -1
  386. package/widgets/BatchAttributeForm/expressions/ExpressionsModel.js +1 -1
  387. package/widgets/BatchAttributeForm/inputs/support/multipleChoiceInputUtils.js +1 -1
  388. package/widgets/BatchAttributeForm/templates/support/createBatchFormTemplate.js +1 -1
  389. package/widgets/FeatureTable/FeatureTableViewModel.js +1 -1
  390. package/widgets/Legend/support/relationshipRampUtils.js +1 -1
  391. package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
  392. package/widgets/OrientedImageryViewer/utils.js +1 -1
  393. package/widgets/Sketch.js +1 -1
  394. package/assets/esri/core/workers/chunks/02b043a3c5fa8bcb4c5b.js +0 -1
  395. package/assets/esri/core/workers/chunks/03437a8ef35c200dbf17.js +0 -1
  396. package/assets/esri/core/workers/chunks/0603cbd938ab619c706b.js +0 -1
  397. package/assets/esri/core/workers/chunks/08405116b5feb2d00101.js +0 -1
  398. package/assets/esri/core/workers/chunks/0a6e03263ab0906d8bcf.js +0 -1
  399. package/assets/esri/core/workers/chunks/0af6b87a3d77bb93b893.js +0 -1
  400. package/assets/esri/core/workers/chunks/0edd250159ec259601b3.js +0 -1
  401. package/assets/esri/core/workers/chunks/0f10d7d592c36ee2d1ea.js +0 -1
  402. package/assets/esri/core/workers/chunks/0f8fcbd0650b6a924f75.js +0 -1
  403. package/assets/esri/core/workers/chunks/0f976bfb7db98c2c0e05.js +0 -1
  404. package/assets/esri/core/workers/chunks/1040bce57ea63a6dbca4.js +0 -2
  405. package/assets/esri/core/workers/chunks/10510f76f8538c2dfb84.js +0 -1
  406. package/assets/esri/core/workers/chunks/1079914101d69a40b3eb.js +0 -1
  407. package/assets/esri/core/workers/chunks/11af659688cf963ea6cd.js +0 -1
  408. package/assets/esri/core/workers/chunks/15081b361fc42f40b865.js +0 -1
  409. package/assets/esri/core/workers/chunks/1599dc5309a4e60017ce.js +0 -261
  410. package/assets/esri/core/workers/chunks/181e98399732f425305d.js +0 -1
  411. package/assets/esri/core/workers/chunks/1837f97f720d255a1694.js +0 -1
  412. package/assets/esri/core/workers/chunks/18c4c437ded8bfbd3305.js +0 -1
  413. package/assets/esri/core/workers/chunks/18f4b2099299942aaf97.js +0 -1
  414. package/assets/esri/core/workers/chunks/1958facb000b6c16bfe4.js +0 -1
  415. package/assets/esri/core/workers/chunks/196e7515a43bd0026f49.js +0 -1
  416. package/assets/esri/core/workers/chunks/1a0903b1d2d5101977c6.js +0 -1
  417. package/assets/esri/core/workers/chunks/1aa7496a7dc95aae11ac.js +0 -1
  418. package/assets/esri/core/workers/chunks/1bd49e8d2657c72bf3f9.js +0 -1
  419. package/assets/esri/core/workers/chunks/1c263ffb7144e171a64f.js +0 -1
  420. package/assets/esri/core/workers/chunks/1d524690c4b66289bd20.js +0 -1
  421. package/assets/esri/core/workers/chunks/20fa2c3d4360afa5e136.js +0 -1
  422. package/assets/esri/core/workers/chunks/210ffc448c73a7bf63aa.js +0 -1
  423. package/assets/esri/core/workers/chunks/23f81f4a3d7a983eef23.js +0 -1
  424. package/assets/esri/core/workers/chunks/2540beb53f1443a070d7.js +0 -1
  425. package/assets/esri/core/workers/chunks/25c1f5e2561986330b80.js +0 -1
  426. package/assets/esri/core/workers/chunks/2757c4bf0280e27f3484.js +0 -1
  427. package/assets/esri/core/workers/chunks/294537e1ac43e8dfeaea.js +0 -1
  428. package/assets/esri/core/workers/chunks/29a1d0659bbc5a039864.js +0 -1
  429. package/assets/esri/core/workers/chunks/29df3f829006719b2680.js +0 -1
  430. package/assets/esri/core/workers/chunks/2a344bca6837ca3b5c41.js +0 -2
  431. package/assets/esri/core/workers/chunks/2a5dbed88bbd96cfac9f.js +0 -1
  432. package/assets/esri/core/workers/chunks/2b044c8fab2055a8818d.js +0 -1
  433. package/assets/esri/core/workers/chunks/2d956dacb26d71d1c174.js +0 -1
  434. package/assets/esri/core/workers/chunks/2da797ae5af9d2ede42d.js +0 -1
  435. package/assets/esri/core/workers/chunks/2dbcdfdf000226bfe746.js +0 -1
  436. package/assets/esri/core/workers/chunks/2e495a28494c2351837b.js +0 -1
  437. package/assets/esri/core/workers/chunks/2ef80e003b4f0393ac2e.js +0 -1
  438. package/assets/esri/core/workers/chunks/2fc3e43b64300014dddc.js +0 -1
  439. package/assets/esri/core/workers/chunks/30cf84a47ebefd180bb7.js +0 -1
  440. package/assets/esri/core/workers/chunks/314bc1b356d43bfa72a8.js +0 -1
  441. package/assets/esri/core/workers/chunks/34a024eda22d228e1fbe.js +0 -1
  442. package/assets/esri/core/workers/chunks/37e823202424c11076cb.js +0 -1
  443. package/assets/esri/core/workers/chunks/38a76bc4ef5c10ab0488.js +0 -1
  444. package/assets/esri/core/workers/chunks/390f2beee8e3f2a302e4.js +0 -1
  445. package/assets/esri/core/workers/chunks/3a76fffa2016c16d7989.js +0 -1398
  446. package/assets/esri/core/workers/chunks/3c2eb386c0165150e039.js +0 -1
  447. package/assets/esri/core/workers/chunks/3e4b379a6a197b9c4e6b.js +0 -1
  448. package/assets/esri/core/workers/chunks/3ec91474658eae87b832.js +0 -1
  449. package/assets/esri/core/workers/chunks/3eee32db0e9a5086b9a8.js +0 -1
  450. package/assets/esri/core/workers/chunks/406c7723e8db470822bf.js +0 -1
  451. package/assets/esri/core/workers/chunks/41aca863324387576cf8.js +0 -1
  452. package/assets/esri/core/workers/chunks/442424200e7475e9a08f.js +0 -1
  453. package/assets/esri/core/workers/chunks/4452fd0c59431904d533.js +0 -1
  454. package/assets/esri/core/workers/chunks/448e0596005cba9a4225.js +0 -1
  455. package/assets/esri/core/workers/chunks/4545cf12ad0824ce6b41.js +0 -1
  456. package/assets/esri/core/workers/chunks/45530a49fa1f09d1682e.js +0 -1
  457. package/assets/esri/core/workers/chunks/459e89d1b94a3b204d20.js +0 -30
  458. package/assets/esri/core/workers/chunks/45b2e58051f42ebd236e.js +0 -1
  459. package/assets/esri/core/workers/chunks/4611cf051c3c396fdf96.js +0 -1
  460. package/assets/esri/core/workers/chunks/46e3d33e44e5398221e2.js +0 -1
  461. package/assets/esri/core/workers/chunks/47656ec12401e53f4bd3.js +0 -1
  462. package/assets/esri/core/workers/chunks/47948c72bc01bd173c20.js +0 -2
  463. package/assets/esri/core/workers/chunks/48f1c3a7c9f16d6896f6.js +0 -1
  464. package/assets/esri/core/workers/chunks/49713dfa4c8b788079d1.js +0 -1
  465. package/assets/esri/core/workers/chunks/4a8201e09bc3ad5cc00b.js +0 -1
  466. package/assets/esri/core/workers/chunks/4ad86d6b1be07c97b6f6.js +0 -1
  467. package/assets/esri/core/workers/chunks/4be0c64bbf2449d57ea5.js +0 -1
  468. package/assets/esri/core/workers/chunks/4d57c771af4137f74bfb.js +0 -1
  469. package/assets/esri/core/workers/chunks/4f25aac84d9eb10cac83.js +0 -1
  470. package/assets/esri/core/workers/chunks/50b34e246f8eef2f6e07.js +0 -1
  471. package/assets/esri/core/workers/chunks/514ab968c0d75062e6ab.js +0 -1
  472. package/assets/esri/core/workers/chunks/51838d55d8ec4ce70398.js +0 -1
  473. package/assets/esri/core/workers/chunks/557300ec03bae84d8afc.js +0 -1
  474. package/assets/esri/core/workers/chunks/57abf838fcff0f0e2c5e.js +0 -1
  475. package/assets/esri/core/workers/chunks/57dd017fed2943d24e3d.js +0 -1
  476. package/assets/esri/core/workers/chunks/59801b2ccaaf4b394e02.js +0 -1
  477. package/assets/esri/core/workers/chunks/5a2d2dcdfa8d958f277d.js +0 -1
  478. package/assets/esri/core/workers/chunks/5a62c9f64db4fcae5e52.js +0 -1
  479. package/assets/esri/core/workers/chunks/5aebecb5c2b3e7887127.js +0 -1
  480. package/assets/esri/core/workers/chunks/5e68b74fd548c7cdba36.js +0 -1
  481. package/assets/esri/core/workers/chunks/5f360492560ae07083a6.js +0 -1
  482. package/assets/esri/core/workers/chunks/6022f43ebd58e21c737a.js +0 -1
  483. package/assets/esri/core/workers/chunks/6048c89fc4dcd2e9988d.js +0 -1
  484. package/assets/esri/core/workers/chunks/61efc7f5fab1c2b1f764.js +0 -1
  485. package/assets/esri/core/workers/chunks/62b137a795e487fa06a1.js +0 -1
  486. package/assets/esri/core/workers/chunks/632de34ebd2f44b4423d.js +0 -1
  487. package/assets/esri/core/workers/chunks/63ca17f569407c89bde1.js +0 -30
  488. package/assets/esri/core/workers/chunks/643c7506f8fe8e06acd2.js +0 -1
  489. package/assets/esri/core/workers/chunks/6596b12bb286a0b45a68.js +0 -1
  490. package/assets/esri/core/workers/chunks/65cc9a48ac95523f7aa8.js +0 -1
  491. package/assets/esri/core/workers/chunks/661f50cb97604453f942.js +0 -1
  492. package/assets/esri/core/workers/chunks/686c1a1b794ebe1a0341.js +0 -1
  493. package/assets/esri/core/workers/chunks/6896a6dd36fa91a27151.js +0 -1
  494. package/assets/esri/core/workers/chunks/68bc674affe2f7269c40.js +0 -1
  495. package/assets/esri/core/workers/chunks/6c02493a1c1deff49c7e.js +0 -1
  496. package/assets/esri/core/workers/chunks/6cdf1db30793133294dd.js +0 -1
  497. package/assets/esri/core/workers/chunks/6ff6783f89ecd3a5e752.js +0 -1
  498. package/assets/esri/core/workers/chunks/70763c7b68d8abe8d5fe.js +0 -1
  499. package/assets/esri/core/workers/chunks/716b1f073e3cd807abd3.js +0 -1
  500. package/assets/esri/core/workers/chunks/71a3f05cb86ae2920f8d.js +0 -1
  501. package/assets/esri/core/workers/chunks/71b672259bac2befd9c7.js +0 -1
  502. package/assets/esri/core/workers/chunks/71c996e1ae84d9daddf2.js +0 -1
  503. package/assets/esri/core/workers/chunks/723bb56de2324b41df4e.js +0 -1
  504. package/assets/esri/core/workers/chunks/73f61107cb7e6d30bf03.js +0 -1
  505. package/assets/esri/core/workers/chunks/752c34cee981862add89.js +0 -1
  506. package/assets/esri/core/workers/chunks/75915f81caaf9e5345a9.js +0 -1
  507. package/assets/esri/core/workers/chunks/75baf6dff6e7658b17b3.js +0 -1
  508. package/assets/esri/core/workers/chunks/760dfd585b6c2c1937ce.js +0 -1
  509. package/assets/esri/core/workers/chunks/76449e50222111ba0eb1.js +0 -1
  510. package/assets/esri/core/workers/chunks/76789f46b2c65d219cf9.js +0 -1
  511. package/assets/esri/core/workers/chunks/76bed5497f42f23a27ed.js +0 -1
  512. package/assets/esri/core/workers/chunks/7849cf0352c0a604e164.js +0 -1
  513. package/assets/esri/core/workers/chunks/7908aed639521cf572e8.js +0 -1
  514. package/assets/esri/core/workers/chunks/7d65a8ec5e1f871b9321.js +0 -1
  515. package/assets/esri/core/workers/chunks/7e4093f42795ba2f8cfd.js +0 -1
  516. package/assets/esri/core/workers/chunks/7f849c8255140be6097f.js +0 -1
  517. package/assets/esri/core/workers/chunks/804c31973f7d116523cb.js +0 -1
  518. package/assets/esri/core/workers/chunks/81726d997a2d34449bb2.js +0 -1
  519. package/assets/esri/core/workers/chunks/81883bca8a79ee2ddb00.js +0 -1
  520. package/assets/esri/core/workers/chunks/832ecc1f7d45774c4726.js +0 -1
  521. package/assets/esri/core/workers/chunks/8461f50e9875db4ccfec.js +0 -1
  522. package/assets/esri/core/workers/chunks/8598997340682113a2a5.js +0 -1
  523. package/assets/esri/core/workers/chunks/860a0f9d20f53db1caf4.js +0 -1
  524. package/assets/esri/core/workers/chunks/867e39bb444947c93586.js +0 -1
  525. package/assets/esri/core/workers/chunks/88ec63501fa2f6fdadca.js +0 -1
  526. package/assets/esri/core/workers/chunks/8980767c5b626e4dc3b9.js +0 -1
  527. package/assets/esri/core/workers/chunks/89dd1b1acb0d69264c93.js +0 -1
  528. package/assets/esri/core/workers/chunks/8a66a3e8391206f7d8aa.js +0 -1
  529. package/assets/esri/core/workers/chunks/8a8b7ac6693bdfbebf07.js +0 -1
  530. package/assets/esri/core/workers/chunks/8ad5e80e911419c1685a.js +0 -1
  531. package/assets/esri/core/workers/chunks/8b526ca2dd6fc6a7e921.js +0 -1
  532. package/assets/esri/core/workers/chunks/8e80441eddef1b5be8b9.js +0 -1
  533. package/assets/esri/core/workers/chunks/8f16a358ed83d2264415.js +0 -1
  534. package/assets/esri/core/workers/chunks/8fce15ce4cfdccf407f3.js +0 -1
  535. package/assets/esri/core/workers/chunks/8fd63cb38036f331a803.js +0 -1
  536. package/assets/esri/core/workers/chunks/91c5205d1274c7f190d5.js +0 -1
  537. package/assets/esri/core/workers/chunks/92341f36a8b15f34bcca.js +0 -1
  538. package/assets/esri/core/workers/chunks/937cf55b3b9d324eea73.js +0 -1
  539. package/assets/esri/core/workers/chunks/93d4bda22bde33fafa57.js +0 -1
  540. package/assets/esri/core/workers/chunks/9639b1dd27ccc17ee21e.js +0 -1
  541. package/assets/esri/core/workers/chunks/966d002acec8c72be56a.js +0 -1
  542. package/assets/esri/core/workers/chunks/986d8c3907aeeb18c4f6.js +0 -1
  543. package/assets/esri/core/workers/chunks/98e489c2b85feded7776.js +0 -1
  544. package/assets/esri/core/workers/chunks/9aef0b87f471626abd66.js +0 -1
  545. package/assets/esri/core/workers/chunks/9ba9a3705623679bc305.js +0 -1
  546. package/assets/esri/core/workers/chunks/a188d0767825d322f96d.js +0 -1
  547. package/assets/esri/core/workers/chunks/a4d3cbc02dc1186a9a6d.js +0 -1
  548. package/assets/esri/core/workers/chunks/a638de0102c3990403d1.js +0 -1
  549. package/assets/esri/core/workers/chunks/a6bda5f17fb1c03f7e4b.js +0 -1
  550. package/assets/esri/core/workers/chunks/a6dc01847f39413f78b8.js +0 -1
  551. package/assets/esri/core/workers/chunks/acc733b4881c3e4e503e.js +0 -1
  552. package/assets/esri/core/workers/chunks/b022debf9e0bc2bff0e2.js +0 -1
  553. package/assets/esri/core/workers/chunks/b09935d0105d50a0971b.js +0 -1
  554. package/assets/esri/core/workers/chunks/b12fc1b5a9da97346684.js +0 -1
  555. package/assets/esri/core/workers/chunks/b4323e69e624c6b51754.js +0 -1
  556. package/assets/esri/core/workers/chunks/b45e91249a8ea1559a2b.js +0 -1
  557. package/assets/esri/core/workers/chunks/b50a42a9f96515beb929.js +0 -1
  558. package/assets/esri/core/workers/chunks/b5141f240ca79729686d.js +0 -1
  559. package/assets/esri/core/workers/chunks/b549a4d4b1a34bee8beb.js +0 -1
  560. package/assets/esri/core/workers/chunks/bb89b6fd93513c61b2d3.js +0 -1
  561. package/assets/esri/core/workers/chunks/bc553ecc8cbcc1b02717.js +0 -1
  562. package/assets/esri/core/workers/chunks/bcba02f61cf0abcb5600.js +0 -1
  563. package/assets/esri/core/workers/chunks/bccc199af4e2e49f7acd.js +0 -1
  564. package/assets/esri/core/workers/chunks/bd0f488e228a75fbefb3.js +0 -30
  565. package/assets/esri/core/workers/chunks/bd155794e9bc16dd0474.js +0 -1
  566. package/assets/esri/core/workers/chunks/bf6ae205fbfbfcd1a0ee.js +0 -1
  567. package/assets/esri/core/workers/chunks/c148ad0ea9258046ac1f.js +0 -1
  568. package/assets/esri/core/workers/chunks/c228b058dd91bf0e1102.js +0 -1
  569. package/assets/esri/core/workers/chunks/c4e44fde4bc4ff89e2bc.js +0 -1
  570. package/assets/esri/core/workers/chunks/c4fc85281ca83af7abaf.js +0 -1
  571. package/assets/esri/core/workers/chunks/c610ccbfdb1c5b06c217.js +0 -1
  572. package/assets/esri/core/workers/chunks/c660a5a1086870a3a6b9.js +0 -1
  573. package/assets/esri/core/workers/chunks/c8b7ffc5cb3f1493129e.js +0 -1
  574. package/assets/esri/core/workers/chunks/c9057b0ad2c2bae4a8ce.js +0 -1
  575. package/assets/esri/core/workers/chunks/c93a68618674b38b932e.js +0 -1
  576. package/assets/esri/core/workers/chunks/c961aff385e38b081204.js +0 -1
  577. package/assets/esri/core/workers/chunks/cc0efa716b8414a44398.js +0 -1
  578. package/assets/esri/core/workers/chunks/cd66bd30f654fe571e57.js +0 -1
  579. package/assets/esri/core/workers/chunks/cd88e6f02bc2e5b67abf.js +0 -1
  580. package/assets/esri/core/workers/chunks/cf826787ab8d4b27ad80.js +0 -1
  581. package/assets/esri/core/workers/chunks/cfbbfa5edffa57bd3a8e.js +0 -1
  582. package/assets/esri/core/workers/chunks/d0217187aed8bb7038f4.js +0 -1
  583. package/assets/esri/core/workers/chunks/d1928a8c86a8966e5582.js +0 -1
  584. package/assets/esri/core/workers/chunks/d2745886ba5a86fd5c4c.js +0 -680
  585. package/assets/esri/core/workers/chunks/d4c341b15d9244276fb9.js +0 -1
  586. package/assets/esri/core/workers/chunks/d5faab9799891e5da5a8.js +0 -1
  587. package/assets/esri/core/workers/chunks/d811924acc9c0be95bba.js +0 -1
  588. package/assets/esri/core/workers/chunks/db90fb8ac96579259566.js +0 -1
  589. package/assets/esri/core/workers/chunks/dd0acd0f8b96839b4f24.js +0 -2
  590. package/assets/esri/core/workers/chunks/dd785e595cd08b2d6284.js +0 -1
  591. package/assets/esri/core/workers/chunks/e0b47b08ae2c36c76fa2.js +0 -1
  592. package/assets/esri/core/workers/chunks/e1ddb8e4977b317fd40c.js +0 -1
  593. package/assets/esri/core/workers/chunks/e4015870412edd69453c.js +0 -1
  594. package/assets/esri/core/workers/chunks/e7cb1b72f0b54e845741.js +0 -1
  595. package/assets/esri/core/workers/chunks/e7e7c7cbfd8542bd7a46.js +0 -1
  596. package/assets/esri/core/workers/chunks/e80376832050a4b6d28a.js +0 -1
  597. package/assets/esri/core/workers/chunks/e8a885b576da3ec145d3.js +0 -1
  598. package/assets/esri/core/workers/chunks/e95ee94027c1934086d8.js +0 -1
  599. package/assets/esri/core/workers/chunks/e961c6140c39921816a8.js +0 -1
  600. package/assets/esri/core/workers/chunks/eb7daa0f6610983ff8db.js +0 -1
  601. package/assets/esri/core/workers/chunks/eb842cf470ce28a73187.js +0 -1
  602. package/assets/esri/core/workers/chunks/eeea5710275c967e8d51.js +0 -1
  603. package/assets/esri/core/workers/chunks/ef32e454012f3b0e3f77.js +0 -1
  604. package/assets/esri/core/workers/chunks/f31a8e76f1dde23c0900.js +0 -1
  605. package/assets/esri/core/workers/chunks/f50bba74ae72c07e131a.js +0 -1
  606. package/assets/esri/core/workers/chunks/f58ddf37dee066a5c0d8.js +0 -1
  607. package/assets/esri/core/workers/chunks/f80cadcc2a588da63b38.js +0 -1
  608. package/assets/esri/core/workers/chunks/f83e3ad67b60744afd6d.js +0 -1
  609. package/assets/esri/core/workers/chunks/f859c53432f258af77e3.js +0 -2
  610. package/assets/esri/core/workers/chunks/f8bbb52b865a0a242140.js +0 -1
  611. package/assets/esri/core/workers/chunks/f8f3579d0c1b65762902.js +0 -1
  612. package/assets/esri/core/workers/chunks/f9592bcdd9988199a7ea.js +0 -1
  613. package/assets/esri/core/workers/chunks/fedbeb488d5d7c07c7dc.js +0 -1
  614. package/assets/esri/core/workers/chunks/ff7e1eb2366d4301d288.js +0 -1
  615. package/assets/esri/themes/base/_colorVariables.scss +0 -1
  616. package/assets/esri/themes/base/widgets/_DatePicker.scss +0 -170
  617. package/assets/esri/themes/base/widgets/_FeatureUtilityNetworkAssociationList.scss +0 -13
  618. package/assets/esri/themes/base/widgets/_TimePicker.scss +0 -15
  619. package/chunks/CutFillDepth.glsl.js +0 -2
  620. package/core/PLRUCache.js +0 -2
  621. package/views/2d/engine/webgl/BitBlitRenderer.js +0 -2
  622. package/views/2d/engine/webgl/WorldExtentClipRenderer.js +0 -2
  623. package/views/2d/engine/webgl/effects/highlight/HighlightRenderer.js +0 -2
  624. package/views/2d/engine/webgl/shaders/BitBlitPrograms.js +0 -2
  625. package/views/2d/engine/webgl/shaders/HighlightPrograms.js +0 -2
  626. package/views/2d/engine/webgl/shaders/StencilPrograms.js +0 -2
  627. package/views/3d/webgl-engine/shaders/CutFillDepthTechnique.js +0 -2
  628. package/views/3d/webgl-engine/shaders/CutFillDepthTechniqueConfiguration.js +0 -2
  629. package/views/support/euclideanAreaMeasurementUtils.js +0 -2
  630. package/widgets/ShadowCast/ShadowVisualizationType.js +0 -2
  631. /package/assets/esri/core/workers/chunks/{47948c72bc01bd173c20.js.LICENSE.txt → 24c0b3586bb6500eda53.js.LICENSE.txt} +0 -0
  632. /package/assets/esri/core/workers/chunks/{f859c53432f258af77e3.js.LICENSE.txt → 394716bd1ecfd638d708.js.LICENSE.txt} +0 -0
  633. /package/assets/esri/core/workers/chunks/{1040bce57ea63a6dbca4.js.LICENSE.txt → 55af58b6dff52dc040fe.js.LICENSE.txt} +0 -0
  634. /package/assets/esri/core/workers/chunks/{dd0acd0f8b96839b4f24.js.LICENSE.txt → 5b18696109fe84a1010a.js.LICENSE.txt} +0 -0
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[837,1948,6061],{61691(t,e,s){s.d(e,{G:()=>r});class r{*[Symbol.iterator](){let t=this.next();for(;t;)yield t,t=this.next()}}},64523(t,e,s){s.d(e,{O:()=>l});var r=s(5482),n=s(61691),i=s(55537),a=s(88885),o=s(95213),h=s(83661),u=s(5247);class l{getOperatorType(){return 10204}supportsCurves(){return!0}accelerateGeometry(t,e,s){return!1}canAccelerateGeometry(t){return!1}executeMany(t,e,s,r){return new m(t,e,s,r)}execute(t,e,s,r){return t||(0,i.a)("null param is not allowed."),new m(null,e,s,r).generalize(t)}}class m extends n.G{m_progressTracker;m_geoms;m_pline=null;m_point=new o.P;m_xy;m_stack=[];m_resultstack=[];m_maxDeviation;m_bRemoveDegenerateParts;m_callCount=0;constructor(t,e,s,r){super(),this.m_progressTracker=r,this.m_geoms=t,this.m_maxDeviation=e,this.m_bRemoveDegenerateParts=s}tock(){return!0}getRank(){return 1}next(){const t=this.m_geoms.next();return null===t?null:((0,i.c)(t),this.generalize(t))}getGeometryID(){return this.m_geoms.getGeometryID()}generalize(t){const e=t.getGeometryType();if((0,i.j)(e))return t;if(e===i.G.enumEnvelope){const e=new a.P({vd:t.getDescription()});return e.addEnvelope(t,!1),this.generalize(e)}if((0,i.m)(e)){const e=new a.a({vd:t.getDescription()});return e.addSegment(t,!0),this.generalize(e)}if((0,i.n)(e)||(0,i.t)(""),t.isEmpty()||this.m_maxDeviation<=0)return t;const s=(new u.O).execute(t,0,.05*this.m_maxDeviation,0,this.m_progressTracker);t.hasNonLinearSegments()&&(this.m_maxDeviation*=.95);const n=s,o=t.createInstance();o.getGeometryType()===i.G.enumPolygon&&o.setFillRule(t.getFillRule()),this.m_xy=n.getAttributeStreamRef(0);{const t={stack:[],error:void 0,hasError:!1};try{const e=new a.L;this.m_pline=e,(0,r.mS)(t,(0,h.h)(()=>{this.m_pline=null},!1),!1);for(let t=0,e=n.getPathCount();t<e;t++)this.generalizePath(n.getImpl(),t,o.getImpl())}catch(e){t.error=e,t.hasError=!0}finally{(0,r.hk)(t)}}return this.m_resultstack.length=0,this.m_stack.length=0,o}generalizePath(t,e,s){if(t.getPathSize(e)<2)return;this.m_resultstack.length=0,this.m_stack.length=0;const r=t.getPathStart(e),n=t.getPathEnd(e)-1,i=t.isClosedPath(e),a=t.isClosedPathInXYPlane(e);let o=0,u=-1;this.m_stack.push(i?r:n),this.m_stack.push(r);let l=!1,m=!1;for(!this.m_bRemoveDegenerateParts&&a&&(l=!0,m=!0);this.m_stack.length>1;){const e=this.m_stack.at(-1);this.m_stack.pop();const s=this.m_stack.at(-1);let r=t.getXY(e);this.m_pline.setStartXY(r),r=t.getXY(s),this.m_pline.setEndXY(r);const i=[Number.NaN];let a=this.findGreatestDistance(e,s,n,i);a>=0&&(l?l=!1:(m&&i[0]>o&&(o=i[0],u=a),i[0]<=this.m_maxDeviation&&(a=-1))),a>=0?(this.m_stack.push(a),this.m_stack.push(e)):this.m_resultstack.push(e)}i||this.m_resultstack.push(this.m_stack[0]);const c=this.m_resultstack.length;if(c===t.getPathSize(e)&&c===this.m_stack.length)s.addPath(t,e,!0);else if(this.m_resultstack.length>0){if(this.m_bRemoveDegenerateParts&&this.m_resultstack.length<=2){if(i||1===this.m_resultstack.length)return;if(h.P.distance(t.getXY(this.m_resultstack[0]),t.getXY(this.m_resultstack[1]))<=this.m_maxDeviation)return}if(m&&u>=0&&o<=this.m_maxDeviation){const t=this.m_resultstack.at(-1)>u;this.m_resultstack.push(u),t&&(this.m_resultstack[this.m_resultstack.length-2]=(0,h.c)(this.m_resultstack[this.m_resultstack.length-1],this.m_resultstack[this.m_resultstack.length-1]=this.m_resultstack[this.m_resultstack.length-2]))}for(let e=0,r=this.m_resultstack.length;e<r;e++)t.getPointByVal(this.m_resultstack[e],this.m_point),0===e?s.startPathPoint(this.m_point):s.lineToPoint(this.m_point);if(i){for(let t=this.m_resultstack.length;t<3;t++)s.lineToPoint(this.m_point);s.closePathWithLine()}}}findGreatestDistance(t,e,s,r){let n=e-1;e<=t&&(n=s);let i=-1,a=0;const o=new h.P;for(let e=t+1;e<=n;e++){this.m_xy.queryPoint2D(2*e,o);const t=o.x,s=o.y,r=this.m_pline.getClosestCoordinate(o,!1);o.assign(this.m_pline.getCoord2D(r)),o.x-=t,o.y-=s;const n=o.length();n>a&&(i=e,a=n),this.m_callCount++}return r[0]=a,i}}},76061(t,e,s){s.d(e,{S:()=>n});var r=s(61691);class n extends r.G{m_aGeoms;m_iGeom=-1;constructor(t){super(),this.m_aGeoms=t?t.slice():[]}next(){if(this.m_iGeom<this.m_aGeoms.length-1){const t=this.m_aGeoms[++this.m_iGeom];return this.m_aGeoms[this.m_iGeom]=null,t}return null}tock(){return!1}getGeometryID(){return this.m_iGeom}getRank(){return 1}}},87992(t,e,s){s.d(e,{JR:()=>k,ME:()=>M,MY:()=>S,NO:()=>C,Nh:()=>P,V2:()=>b,_s:()=>A,e6:()=>I,gh:()=>E,tr:()=>V,uX:()=>x});var r=s(5482),n=s(69397),i=s(16930),a=s(19419),o=s(60408),h=s(21325),u=s(513),l=s(50954),m=s(79567),c=s(52006),g=s(49663),f=s(46068),p=s(92722);class x{constructor({type:t,spatialReference:e,vertexCount:s,vertexXY:r,vertexZ:n,vertexM:i,partCount:a,partOffsets:o,partFlags:h,segmentFlags:u,segmentIndices:l,segmentParams:m,segmentCountArc:c,segmentCountBezier:g}){this.segmentCountArc=0,this.segmentCountBezier=0,this.type=t,this.spatialReference=e,this.vertexCount=s,this.vertexXY=r,this.vertexZ=n,this.vertexM=i,this.partCount=a,this.partOffsets=o,this.partFlags=h,this.segmentFlags=u,this.segmentIndices=l,this.segmentParams=m,this.segmentCountArc=c,this.segmentCountBezier=g}get segmentParamCount(){return 10*this.segmentCountArc+4*this.segmentCountBezier}get segmentCountLine(){const{segmentCount:t,segmentCountArc:e,segmentCountBezier:s}=this;return t&&t-e-s}get segmentCount(){return"polyline"===this.type?this.vertexCount-this.partCount:"polygon"===this.type?this.vertexCount:0}get hasZ(){return null!=this.vertexZ}get hasM(){return null!=this.vertexM}hasCurves(){return this.segmentCountArc+this.segmentCountBezier>0}isMultipart(){return"polyline"===this.type||"polygon"===this.type}get usedMemory(){function t(t){return t?n.Ul+t.byteLength:0}return t(this.vertexXY)+t(this.vertexZ)+t(this.vertexM)+t(this.partOffsets)+t(this.partFlags)+t(this.segmentFlags)+t(this.segmentIndices)+t(this.segmentParams)}clone(){const{type:t,vertexCount:e,partCount:s,hasZ:r,hasM:n,segmentCountArc:i,segmentCountBezier:a}=this,o=b(t,e,s,r,n,this.hasCurves(),i,a);o.spatialReference=this.spatialReference;const{vertexXY:h,vertexZ:u,vertexM:l}=this;if(o.vertexXY.set(h.subarray(0,2*e),0),o.vertexZ?.set(u.subarray(0,e),0),o.vertexM?.set(l.subarray(0,e),0),this.isMultipart()){const{partOffsets:t,partFlags:e}=this;o.partFlags.set(e.subarray(0,s+1)),o.partOffsets.set(t.subarray(0,s+1))}if(this.hasCurves()){const{segmentFlags:t,segmentIndices:s,segmentParams:r,segmentParamCount:n}=this;o.segmentFlags.set(t.subarray(0,e),0),o.segmentIndices.set(s.subarray(0,e),0),o.segmentParams.set(r.subarray(0,n),0)}return o}equals(t){return this.equalsWithinTolerance(t,0)}equalsWithinTolerance(t,e){if(null==t)return!1;if(this===t)return!0;if(!(0,h.aI)(this.spatialReference,t.spatialReference))return!1;if(this.vertexCount!==t.vertexCount||this.partCount!==t.partCount)return!1;if(this.hasZ!==t.hasZ||this.hasM!==t.hasM)return!1;if(this.hasCurves()!==t.hasCurves()||this.segmentCountArc!==t.segmentCountArc||this.segmentCountBezier!==t.segmentCountBezier)return!1;const s=0===e?(t,e)=>t!==e||isNaN(t)!==isNaN(e):(t,s)=>Math.abs(t-s)>e||isNaN(t)!==isNaN(s);for(let e=0;e<this.vertexCount;++e)if(s(this.vertexXY[2*e],t.vertexXY[2*e])||s(this.vertexXY[2*e+1],t.vertexXY[2*e+1]))return!1;if(this.hasZ)for(let e=0;e<this.vertexCount;++e)if(s(this.vertexZ[e],t.vertexZ[e]))return!1;if(this.hasM)for(let e=0;e<this.vertexCount;++e)if(s(this.vertexM[e],t.vertexM[e]))return!1;for(let e=0;e<this.partCount;++e)if(this.partFlags[e]!==t.partFlags[e]||this.partOffsets[e]!==t.partOffsets[e])return!1;if(this.hasCurves()){for(let e=0;e<this.vertexCount;++e)if(this.segmentFlags[e]!==t.segmentFlags[e]||this.segmentIndices[e]!==t.segmentIndices[e])return!1;for(let e=0;e<this.segmentParamCount;++e)if(s(this.segmentParams[e],t.segmentParams[e]))return!1}return!0}get parts(){return this.isMultipart()?new v(this):[][Symbol.iterator]()}}class v{constructor(t){this.geometry=t,this.value=new d(t)}get done(){return this.value.index>=this.geometry.partCount}next(){return++this.value.index,this}[Symbol.iterator](){return this}}class d{constructor(t){this.geometry=t,this.index=-1,this._readVertex=w(t),this._segments=new y(this)}get segments(){return this._segments.reset(),this._segments}get startVertex(){return this._readVertex(this.geometry.partOffsets[this.index])}get vertexCount(){const t=this.geometry.partOffsets;return t[this.index+1]-t[this.index]}}class y{constructor(t){this._part=t,this._partStart=0,this._partEnd=0,this._isPolygon="polygon"===t.geometry.type,this.value=new _(t.geometry)}get done(){return this.value.indexOfStartVertex>this._partEnd}next(){++this.value.indexOfStartVertex;const t=this.value.indexOfStartVertex>=this._partEnd;return this.value.indexOfEndVertex=t&&this._isPolygon?this._partStart:this.value.indexOfStartVertex+1,this}[Symbol.iterator](){return this}reset(){const{index:t}=this._part,e=this._part.geometry.partOffsets;this._partStart=e[t],this._partEnd=e[t+1]-(this._isPolygon?1:2),this.value.indexOfStartVertex=this._partStart-1}}class _{constructor(t){this.geometry=t,this.indexOfStartVertex=-1,this.indexOfEndVertex=-1,this._readVertex=w(t)}get xStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex]}get yStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex+1]}get zStart(){return this.geometry.vertexZ[this.indexOfStartVertex]}get mStart(){return this.geometry.vertexM[this.indexOfStartVertex]}get xEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex]}get yEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex+1]}get zEnd(){return this.geometry.vertexZ[this.indexOfEndVertex]}get mEnd(){return this.geometry.vertexM[this.indexOfEndVertex]}get start(){return this._readVertex(this.indexOfStartVertex)}get end(){return this._readVertex(this.indexOfEndVertex)}get curve(){const t=this.geometry.segmentFlags?.[this.indexOfStartVertex]??1;if(1===t)return this.end;const e=this.geometry.segmentParams;let s=this.geometry.segmentIndices[this.indexOfStartVertex];if(2===t){const t=e[s++],r=e[s++],n=e[s++],i=e[s++];return{b:[this.end,[t,r],[n,i]]}}const r=e[s++],n=e[s++],i=e[s++],a=e[s++],o=e[s++],h=e[s++];s++,s++;const u=e[s++],l=e[s++];if(!Boolean(4&r)&&1===i)return{c:[this.end,[u,l]]};const m=2&r?0:1,c=1&r?0:1;return{a:[this.end,[o,h],m,c,a,n,i]}}}function C(t,e){const s={stack:[],error:void 0,hasError:!1};try{return e??=(0,a.Ie)(),(0,r.mS)(s,new O(t,["vertexZ","vertexM","spatialReference"]),!1),(0,a.bx)(e,function(t){let e;const{vertexCount:s,vertexXY:n,vertexZ:i,vertexM:o}=t,h=R(t);if(t.hasCurves()){const s={stack:[],error:void 0,hasError:!1};try{(0,r.mS)(s,new O(t,["vertexZ","vertexM"]),!1);const n=(0,a.Ie)();for(const e of t.parts){let t=e.startVertex;for(const{curve:s}of e.segments)(0,m.e)(n,t,s),t=(0,c.yP)(s)}const[i,o,u,l]=n;e={xmin:i,ymin:o,xmax:u,ymax:l,spatialReference:h}}catch(t){s.error=t,s.hasError=!0}finally{(0,r.hk)(s)}}else{let t,r,i,a;t=r=1/0,i=a=-1/0;for(let e=0;e<s;++e){const s=n[2*e],o=n[2*e+1];t=Math.min(t,s),i=Math.max(i,s),r=Math.min(r,o),a=Math.max(a,o)}e={xmin:t,ymin:r,xmax:i,ymax:a,spatialReference:h}}if(i){let t=1/0,s=-1/0;for(const e of i)t=Math.min(t,e),s=Math.max(s,e);e.zmin=t,e.zmax=s}if(o){let t=1/0,s=-1/0;for(const e of o)t=Math.min(t,e),s=Math.max(s,e);e.mmin=t,e.mmax=s}return e}(t)),e}catch(t){s.error=t,s.hasError=!0}finally{(0,r.hk)(s)}}function M(t){let e,s,r;if((0,o.fT)(t)){r="point";const{x:n,y:i,z:a,m:o}=t,h=[n,i];null!=a&&h.push(a),null!=o&&h.push(o),s=[[h]],e=1}else(0,o.U9)(t)?(r="multipoint",s=[t.points],e=t.points.length):(0,o.Rg)(t)?(r="polyline",s=t.curvePaths??t.paths,e=s.reduce((t,e)=>t+e.length,0)):(r="polygon",s=t.curveRings??t.rings,e=s.reduce((t,e)=>(0===e.length||(t+=e.length,Y(e[0],(0,c.yP)(e.at(-1)))&&--t),t),0));const n=b(r,e,r.includes("point")?0:s.length,(0,o.Pv)(t),(0,o.W0)(t),(0,c.Ed)(t)),{hasZ:i,hasM:a,vertexXY:h,vertexZ:u,vertexM:l}=n;function m(t){h[2*f]=t[0],h[2*f+1]=t[1],i&&(u[f]=t[2]),a&&(l[f]=t[g]),++f}n.spatialReference=t.spatialReference??void 0;const g=n.hasZ?3:2;let f=0;if(!n.isMultipart()){if(!i&&!a){for(const[t,e]of s[0])h[2*f]=t,h[2*f+1]=e,++f;return n}for(const t of s[0])m(t);return n}const p="polygon"===r,{partOffsets:x}=n;let v=0;if(!(0,c.Ed)(t)){for(const t of s){if(x[v++]=f,0===t.length)continue;let e=t.length;if(p&&Y(t[0],t.at(-1))&&--e,i||a)for(let s=0;s<e;++s)m(t[s]);else for(let s=0;s<e;++s){const[e,r]=t[s];h[2*f]=e,h[2*f+1]=r,++f}}return x[v]=f,n}function d(t){const e=y+t;if(e<=(n.segmentParams?.length??0))return;let s=e*X;s=20*Math.ceil(s/20);const r=n.segmentParams;n.segmentParams=new Float64Array(s),null!=r&&n.segmentParams.set(r)}let y=0;for(const t of s){if(n.partOffsets[v++]=f,0===t.length)continue;const e=t[0];let s=e;for(let e=1;e<t.length;++e){const r=t[e];m(s);const i=f-1;(0,c.wY)(r)?(d(10),++n.segmentCountArc,y=A(s,r,n,i,y),s=r.a[0]):(0,c.DA)(r)?(d(10),++n.segmentCountArc,y=F(s,r,n,i,y),s=r.a[0]):(0,c.aO)(r)?(d(10),++n.segmentCountArc,y=I(s,r,n,i,y),s=r.c[0]):(0,c.n1)(r)?(d(4),++n.segmentCountBezier,y=V(0,r,n,i,y),s=r.b[0]):s=r}p&&Y(e,s)||m(s)}return n.partOffsets[v]=f,n}function E(t){const e=w(t),{vertexCount:s,partCount:r,hasZ:n,hasM:i}=t,a=R(t);if("point"===t.type){const[e,s]=t.vertexXY,r=t.vertexZ?.[0],n=t.vertexM?.[0];return{x:e,y:s,z:r,m:n,spatialReference:a}}let o=0;if("multipoint"===t.type){const t=[];for(;o<s;)t.push(e(o++));return{points:t,spatialReference:a,hasZ:n,hasM:i}}const h="polygon"===t.type;if(!t.hasCurves()){const s=new Array;for(let n=0;n<r;++n){const r=t.partOffsets[n+1],i=new Array;for(;o<r;)i.push(e(o++));h&&i.length>0&&i.push(i[0]),s.push(i)}return h?{rings:s,hasZ:n,hasM:i,spatialReference:a}:{paths:s,hasZ:n,hasM:i,spatialReference:a}}const u=new Array;for(const{segments:e,startVertex:s}of t.parts){const t=[s];for(const{curve:s}of e)t.push(s);u.push(t)}return h?{rings:[],curveRings:u,hasZ:n,hasM:i,spatialReference:a}:{paths:[],curvePaths:u,hasZ:n,hasM:i,spatialReference:a}}function P(t,{lengths:e,coords:s,hasZ:r,hasM:n},i){const a=t.includes("point")?0:e.length,o="polygon"===t,h="point"===t?1:e.reduce((t,e)=>t+e,0)-(o?a:0);r??=!1,n??=!1;const u=b(t,h,a,r,n,!1,0,0);if(u.spatialReference=i??void 0,!u.isMultipart()){for(let t=0,e=0;t<h;++t)u.vertexXY[2*t]=s[e++],u.vertexXY[2*t+1]=s[e++],r&&(u.vertexZ[t]=s[e++]),n&&(u.vertexM[t]=s[e++]);return u}const l=2+Number(r)+Number(n);let m=0,c=0;u.partOffsets[0]=0;for(const t of e){const e=u.partOffsets[c],i=e+t-Number(o);u.partOffsets[++c]=i;for(let t=e;t<i;++t)u.vertexXY[2*t]=s[m++],u.vertexXY[2*t+1]=s[m++],r&&(u.vertexZ[t]=s[m++]),n&&(u.vertexM[t]=s[m++]);o&&(m+=l)}return u}function k({type:t,vertexCount:e,vertexXY:s,vertexZ:r,vertexM:n,partCount:i,partOffsets:a,hasZ:o,hasM:h}){const u=new p.A([],[],o,h);i=Math.max(i,1);const l="polygon"===t;let m=0;for(let t=0;t<i;++t){const i=a?.[t+1]??e,c=u.coords.length;for(let t=m;t<i;++t)u.coords.push(s[2*t],s[2*t+1]),o&&u.coords.push(r[t]),h&&u.coords.push(n[t]);if(l){const t=m;u.coords.push(s[2*t],s[2*t+1]),o&&u.coords.push(r[t]),h&&u.coords.push(n[t])}u.lengths.push((u.coords.length-c)/u.stride),m=i}return"point"===t&&(u.lengths.length=0),u}function S(t,e){return"getSpatialReference"in t&&(e=function(t){if(null==t)return;const e=t.getText()||void 0,s=t.isCustomWkid()?0:t.getOldID();if(s<=0)return{wkt:e};let r=t.getLatestID();(r<=0||r===s)&&(r=void 0);const n=t.getVCS();if(null==n)return{wkid:s,latestWkid:r,wkt:e};const i=n.isCustomWkid()?0:n.getOldID();if(i<=0)return{wkt:e};let a=t.getLatestVerticalID();return(a<=0||a===i)&&(a=void 0),{wkid:s,wkt:e,latestWkid:r,vcsWkid:i,latestVcsWkid:a}}(t.getSpatialReference()),t=t.getGeometry()),new x({...t.toFlatGeometry(),spatialReference:e})}class O{constructor(t,e){this.target=t,this.keys=e,this.oldValues=e.map(e=>t[e]);for(const s of e)t[s]=void 0}[Symbol.dispose](){this.keys.map((t,e)=>{this.target[t]=this.oldValues[e]})}}function R({spatialReference:t}){return t instanceof i.A?t.toJSON():t}function w({vertexXY:t,vertexZ:e,vertexM:s}){return e?s?r=>[t[2*r],t[2*r+1],e[r],s[r]]:s=>[t[2*s],t[2*s+1],e[s]]:s?e=>[t[2*e],t[2*e+1],s[e]]:e=>[t[2*e],t[2*e+1]]}function Y(t,e){return t.every((t,s)=>t===e[s])}function b(t,e,s,r,n,i,a,o){a??=0,o??=0;const h=new x({type:t,vertexCount:e,vertexXY:null,vertexZ:void 0,vertexM:void 0,partCount:s,partOffsets:void 0,partFlags:void 0,segmentFlags:void 0,segmentIndices:void 0,segmentParams:void 0,segmentCountArc:a,segmentCountBezier:o});let u=2*Float64Array.BYTES_PER_ELEMENT*e;r&&(u+=Float64Array.BYTES_PER_ELEMENT*e),n&&(u+=Float64Array.BYTES_PER_ELEMENT*e),h.isMultipart()&&(u+=(s+1)*Int32Array.BYTES_PER_ELEMENT,u+=(s+1)*Int8Array.BYTES_PER_ELEMENT),i&&(u+=e*Int8Array.BYTES_PER_ELEMENT,u+=e*Int32Array.BYTES_PER_ELEMENT,u+=h.segmentParamCount*Float64Array.BYTES_PER_ELEMENT);const l=new ArrayBuffer(u);let m=0;return h.vertexXY=new Float64Array(l,m,2*e),m+=h.vertexXY.byteLength,r&&(h.vertexZ=new Float64Array(l,m,e),m+=h.vertexZ.byteLength),n&&(h.vertexM=new Float64Array(l,m,e),m+=h.vertexM.byteLength),i&&(h.segmentParams=new Float64Array(l,m,h.segmentParamCount),m+=h.segmentParams.byteLength,h.segmentIndices=new Int32Array(l,m,e),h.segmentIndices.fill(G),m+=h.segmentIndices.byteLength),h.isMultipart()&&(h.partOffsets=new Int32Array(l,m,s+1),m+=h.partOffsets.byteLength,h.partFlags=new Int8Array(l,m,s+1),m+=h.partFlags.byteLength,"polygon"===h.type&&h.partFlags.subarray(0,s).fill(1)),i&&(h.segmentFlags=new Int8Array(l,m,e),h.segmentFlags.fill(1),m+=h.segmentFlags.byteLength),h}function A(t,e,{segmentFlags:s,segmentIndices:r,segmentParams:n},i,a){s[i]=4,r[i]=a;const[o,[h,u],l,m,c,g,p]=e.a;let x=4;m||(x|=1),l||(x|=2);const v=(0,f.SW)(t,e),[d,y]=(0,f.Uk)(v,.5);return n[a++]=x,n[a++]=g,n[a++]=p,n[a++]=c,n[a++]=h,n[a++]=u,n[a++]=v.u2-v.u1,n[a++]=v.u1,n[a++]=d,n[a++]=y,a}function F(t,e,{segmentFlags:s,segmentIndices:r,segmentParams:n},i,a){s[i]=4,r[i]=a;const o=(0,g.io)(t,e);return Z(o,4,...(0,u.mq)(o,.5),n,a)}function I(t,e,{segmentFlags:s,segmentIndices:r,segmentParams:n},i,a){return s[i]=4,r[i]=a,Z((0,l.pM)(t,e),0,...e.c[1],n,a)}function Z(t,e,s,r,n,i){const{cx:a,cy:o,thetaStart:h,thetaEnd:u,radius:l}=t;return h>u||(e|=1),Math.abs(u-h)<=Math.PI||(e|=2),n[i++]=e,n[i++]=l,n[i++]=1,n[i++]=0,n[i++]=a,n[i++]=o,n[i++]=u-h,n[i++]=h,n[i++]=s,n[i++]=r,i}function V(t,{b:[e,[s,r],[n,i]]},{segmentFlags:a,segmentIndices:o,segmentParams:h},u,l){return a[u]=2,o[u]=l,h[l++]=s,h[l++]=r,h[l++]=n,h[l++]=i,l}const X=1.61803,G=-1},70787(t,e,s){s.d(e,{fz:()=>o,g7:()=>i,zo:()=>a});var r=s(76061);const n=new(s(64523).O);function i(t,e,s){return n.execute(t,e,s,null)}function a(t,e,s){const i=n.executeMany(new r.S(t),e,s,null);return Array.from(i)}function o(){return n.supportsCurves()}},97528(t,e,s){s.r(e),s.d(e,{execute:()=>a,executeMany:()=>o});var r=s(86211),n=s(70787),i=s(83299);function a(t,e,s={}){const{removeDegenerateParts:a=!1,unit:o}=s,h=(0,i.getSpatialReference)(t);o&&h&&(e=(0,r.UW)(e,o,h));const u=(0,i.fromGeometry)(t),l=(0,n.g7)(u.getGeometry(),e,a);return null==l?null:(0,i.toGeometry)(l,u.getSpatialReference())}function o(t,e,s={}){const{removeDegenerateParts:a=!1,unit:o}=s,h=(0,i.getSpatialReference)(t);o&&h&&(e=(0,r.UW)(e,o,h));const[u,l]=(0,i.fromGeometries)(t);return(0,n.zo)(u,e,a).map(t=>(0,i.toGeometry)(t,l))}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5804,7642],{46130(e,t,r){r.d(t,{v:()=>n});var o=r(76553);function n(e){e?.writtenProperties&&e.writtenProperties.forEach(({target:e,propName:t,newOrigin:r})=>{(0,o.H)(e)&&r&&e.originOf(t)!==r&&e.updateOrigin(t,r)})}},35522(e,t,r){r.d(t,{$A:()=>C,Bw:()=>s,C:()=>a,Cc:()=>A,DI:()=>x,Il:()=>$,Io:()=>v,Ln:()=>g,Om:()=>b,Qr:()=>p,Re:()=>c,S8:()=>I,T9:()=>y,WQ:()=>l,Z0:()=>R,_S:()=>h,aI:()=>O,ei:()=>Z,fw:()=>j,g7:()=>N,gL:()=>P,hG:()=>M,hZ:()=>i,hs:()=>m,jb:()=>F,jk:()=>f,lo:()=>k,lw:()=>u,m3:()=>w,oW:()=>U,t2:()=>q,tn:()=>d,uE:()=>E,xg:()=>D,ze:()=>S});var o=r(51850),n=r(34304);function s(e){const t=e[0],r=e[1],o=e[2];return Math.sqrt(t*t+r*r+o*o)}function a(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function i(e,t,r,o){return e[0]=t,e[1]=r,e[2]=o,e}function l(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e[2]=t[2]+r[2],e}function c(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e[2]=t[2]-r[2],e}function u(e,t,r){return e[0]=t[0]*r[0],e[1]=t[1]*r[1],e[2]=t[2]*r[2],e}function p(e,t,r){return e[0]=t[0]/r[0],e[1]=t[1]/r[1],e[2]=t[2]/r[2],e}function d(e,t){return e[0]=Math.abs(t[0]),e[1]=Math.abs(t[1]),e[2]=Math.abs(t[2]),e}function h(e,t){return e[0]=Math.sign(t[0]),e[1]=Math.sign(t[1]),e[2]=Math.sign(t[2]),e}function f(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e[2]=Math.min(t[2],r[2]),e}function y(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e[2]=Math.max(t[2],r[2]),e}function m(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e}function g(e,t,r,o){return e[0]=t[0]+r[0]*o,e[1]=t[1]+r[1]*o,e[2]=t[2]+r[2]*o,e}function v(e,t){const r=t[0]-e[0],o=t[1]-e[1],n=t[2]-e[2];return Math.sqrt(r*r+o*o+n*n)}function M(e,t){const r=t[0]-e[0],o=t[1]-e[1],n=t[2]-e[2];return r*r+o*o+n*n}function w(e){const t=e[0],r=e[1],o=e[2];return t*t+r*r+o*o}function S(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e}function x(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e}function I(e,t){const r=t[0],o=t[1],n=t[2];let s=r*r+o*o+n*n;return s>0&&(s=1/Math.sqrt(s),e[0]=t[0]*s,e[1]=t[1]*s,e[2]=t[2]*s),e}function b(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function C(e,t,r){const o=t[0],n=t[1],s=t[2],a=r[0],i=r[1],l=r[2];return e[0]=n*l-s*i,e[1]=s*a-o*l,e[2]=o*i-n*a,e}function A(e,t,r,o){const n=t[0],s=t[1],a=t[2];return e[0]=n+o*(r[0]-n),e[1]=s+o*(r[1]-s),e[2]=a+o*(r[2]-a),e}function R(e,t,r){const o=t[0],n=t[1],s=t[2];return e[0]=r[0]*o+r[4]*n+r[8]*s+r[12],e[1]=r[1]*o+r[5]*n+r[9]*s+r[13],e[2]=r[2]*o+r[6]*n+r[10]*s+r[14],e}function Z(e,t,r){const o=t[0],n=t[1],s=t[2];return e[0]=o*r[0]+n*r[3]+s*r[6],e[1]=o*r[1]+n*r[4]+s*r[7],e[2]=o*r[2]+n*r[5]+s*r[8],e}function P(e,t,r){return j(e,t,r[0],r[1],r[2],r[3])}function j(e,t,r,o,n,s){const a=t[0],i=t[1],l=t[2],c=o*l-n*i,u=n*a-r*l,p=r*i-o*a,d=o*p-n*u,h=n*c-r*p,f=r*u-o*c,y=2*s;return e[0]=a+c*y+2*d,e[1]=i+u*y+2*h,e[2]=l+p*y+2*f,e}function N(e,t){I(T,e),I(L,t);const r=b(T,L);return r>1?0:r<-1?Math.PI:Math.acos(r)}const T=(0,o.vt)(),L=(0,o.vt)();function q(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]}function O(e,t){if(e===t)return!0;const r=e[0],o=e[1],s=e[2],a=t[0],i=t[1],l=t[2],c=(0,n.FD)();return Math.abs(r-a)<=c*Math.max(1,Math.abs(r),Math.abs(a))&&Math.abs(o-i)<=c*Math.max(1,Math.abs(o),Math.abs(i))&&Math.abs(s-l)<=c*Math.max(1,Math.abs(s),Math.abs(l))}function U(e,t,r){const o=r[0]-t[0],n=r[1]-t[1],s=r[2]-t[2];let a=o*o+n*n+s*s;return a>0?(a=1/Math.sqrt(a),e[0]=o*a,e[1]=n*a,e[2]=s*a,e):(e[0]=0,e[1]=0,e[2]=0,e)}const F=c,_=u,K=p,D=v,k=M,$=s,E=w;Object.freeze(Object.defineProperty({__proto__:null,abs:d,add:l,angle:N,bezier:function(e,t,r,o,n,s){const a=1-s,i=a*a,l=s*s,c=i*a,u=3*s*i,p=3*l*a,d=l*s;return e[0]=t[0]*c+r[0]*u+o[0]*p+n[0]*d,e[1]=t[1]*c+r[1]*u+o[1]*p+n[1]*d,e[2]=t[2]*c+r[2]*u+o[2]*p+n[2]*d,e},ceil:function(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e[2]=Math.ceil(t[2]),e},clamp:function(e,t=0,r=1){return e[0]=Math.min(Math.max(e[0],t),r),e[1]=Math.min(Math.max(e[1],t),r),e[2]=Math.min(Math.max(e[2],t),r),e},copy:a,cross:C,crossAndNormalize:function(e,t,r){const o=t[0],n=t[1],s=t[2],a=r[0],i=r[1],l=r[2],c=n*l-s*i,u=s*a-o*l,p=o*i-n*a,d=Math.sqrt(c*c+u*u+p*p);return e[0]=c/d,e[1]=u/d,e[2]=p/d,e},direction:U,dist:D,distance:v,div:K,divide:p,dot:b,equals:O,exactEquals:q,floor:function(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e[2]=Math.floor(t[2]),e},hermite:function(e,t,r,o,n,s){const a=s*s,i=a*(2*s-3)+1,l=a*(s-2)+s,c=a*(s-1),u=a*(3-2*s);return e[0]=t[0]*i+r[0]*l+o[0]*c+n[0]*u,e[1]=t[1]*i+r[1]*l+o[1]*c+n[1]*u,e[2]=t[2]*i+r[2]*l+o[2]*c+n[2]*u,e},inverse:x,len:$,length:s,lerp:A,max:y,min:f,mul:_,multiply:u,negate:S,normalize:I,random:function(e,t=1){const r=n.Ov,o=2*r()*Math.PI,s=2*r()-1,a=Math.sqrt(1-s*s)*t;return e[0]=Math.cos(o)*a,e[1]=Math.sin(o)*a,e[2]=s*t,e},rotateX:function(e,t,r,o){const n=[],s=[];return n[0]=t[0]-r[0],n[1]=t[1]-r[1],n[2]=t[2]-r[2],s[0]=n[0],s[1]=n[1]*Math.cos(o)-n[2]*Math.sin(o),s[2]=n[1]*Math.sin(o)+n[2]*Math.cos(o),e[0]=s[0]+r[0],e[1]=s[1]+r[1],e[2]=s[2]+r[2],e},rotateY:function(e,t,r,o){const n=[],s=[];return n[0]=t[0]-r[0],n[1]=t[1]-r[1],n[2]=t[2]-r[2],s[0]=n[2]*Math.sin(o)+n[0]*Math.cos(o),s[1]=n[1],s[2]=n[2]*Math.cos(o)-n[0]*Math.sin(o),e[0]=s[0]+r[0],e[1]=s[1]+r[1],e[2]=s[2]+r[2],e},rotateZ:function(e,t,r,o){const n=[],s=[];return n[0]=t[0]-r[0],n[1]=t[1]-r[1],n[2]=t[2]-r[2],s[0]=n[0]*Math.cos(o)-n[1]*Math.sin(o),s[1]=n[0]*Math.sin(o)+n[1]*Math.cos(o),s[2]=n[2],e[0]=s[0]+r[0],e[1]=s[1]+r[1],e[2]=s[2]+r[2],e},round:function(e,t){return e[0]=Math.round(t[0]),e[1]=Math.round(t[1]),e[2]=Math.round(t[2]),e},scale:m,scaleAndAdd:g,set:i,sign:h,sqrDist:k,sqrLen:E,squaredDistance:M,squaredLength:w,str:function(e){return"vec3("+e[0]+", "+e[1]+", "+e[2]+")"},sub:F,subtract:c,transformMat3:Z,transformMat4:R,transformQuat:P,transformQuatValues:j},Symbol.toStringTag,{value:"Module"}))},76553(e,t,r){function o(e){return e&&"getAtOrigin"in e&&"originOf"in e}r.d(t,{H:()=>o})},65806(e,t,r){r.d(t,{g:()=>a});var o=r(51850),n=r(91218),s=r(9762);function a(e,t,r,o){if((0,n.canProjectWithoutEngine)(e.spatialReference,r))return i[0]=e.x,i[1]=e.y,i[2]=e.z??0,(0,s.projectBuffer)(i,e.spatialReference,0,t,r,0);const a=(0,n.tryProject)(e,r,o);return!!a&&(t[0]=a.x,t[1]=a.y,t[2]=a.z??0,!0)}const i=(0,o.vt)()},27993(e,t,r){r.d(t,{F:()=>i});var o=r(91218),n=r(16930),s=r(9762),a=r(65806);function i(e,t,r,n){return!(null==t||null==n||e.length<2)&&((0,o.canProjectWithoutEngine)(t,n)?(0,s.projectBuffer)(e,t,0,r,n,0,1):(l.x=e[0],l.y=e[1],l.z=e[2],l.spatialReference=t,(0,a.g)(l,r,n)))}const l={x:0,y:0,z:0,hasZ:!0,hasM:!1,spatialReference:n.A.WGS84,type:"point"}},58947(e,t,r){r.d(t,{w6:()=>I,qM:()=>A});var o=r(5482),n=r(11254),s=r(49186),a=r(53966),i=r(17676),l=r(91429),c=r(46130),u=r(5443),p=r(54239),d=r(16930),h=r(60694),f=r(10873),y=r(83898),m=r(73179);var g=r(20655),v=r(80812),M=r(88788),w=r(91682),S=r(26121),x=r(36005);const I=e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.spatialReference=null,this.fullExtent=null,this.heightModelInfo=null,this.minScale=0,this.maxScale=0,this.version={major:Number.NaN,minor:Number.NaN,versionString:""},this.copyright=null,this.sublayerTitleMode="item-title",this.title=null,this.layerId=null,this.url=null,this.indexInfo=null,this._debouncedSaveOperations=(0,i.sg)(async(e,t,r)=>{switch(e){case 0:return this._save(t);case 1:return this._saveAs(r,t)}})}readSpatialReference(e,t){return C(t)}readFullExtent(e,t,r){if(null!=e&&"object"==typeof e){const o=null==e.spatialReference?{...e,spatialReference:C(t)}:e;return u.A.fromJSON(o,r)}const o=t.store,n=C(t);return null==n||null==o?.extent||!Array.isArray(o.extent)||o.extent.some(e=>e<b)?null:new u.A({xmin:o.extent[0],ymin:o.extent[1],xmax:o.extent[2],ymax:o.extent[3],spatialReference:n})}parseVersionString(e){const t={major:Number.NaN,minor:Number.NaN,versionString:e},r=e.split(".");return r.length>=2&&(t.major=parseInt(r[0],10),t.minor=parseInt(r[1],10)),t}readVersion(e,t){const r=t.store,o=null!=r.version?r.version.toString():"";return this.parseVersionString(o)}readTitlePortalItem(e){return"item-title"!==this.sublayerTitleMode?void 0:e}readTitleService(e,t){if("item-title"===this.sublayerTitleMode)return this.url?(0,h.yG)(this.url,t.name):t.name;let r=t.name;if(!r&&this.url){const e=(0,h.qg)(this.url);null!=e&&(r=e.title)}const o=this.portalItem?.title;return"item-title-and-service-name"===this.sublayerTitleMode&&o&&(r=o+" - "+r),(0,h.cr)(r)}get parsedUrl(){return(0,m.h)(this,{separator:"layers"})}async _fetchIndexAndUpdateExtent(e,t){this.indexInfo=(0,y.F)(this.parsedUrl?.path??"",this.rootNode,e,this.customParameters,this.apiKey,a.A.getLogger(this),t),this.indexInfo.catch(()=>{});const{fullExtent:r}=this;null==r||r.hasZ||this._updateExtent(r,await this.indexInfo)}_updateExtent(e,t){if("page"===t?.type){const r=t.rootIndex%t.pageSize,o=t.rootPage?.nodes?.[r];A(e,o?.obb)}else if("node"===t?.type){const r=t.rootNode?.mbs;if(!Array.isArray(r)||4!==r.length||r[0]<b)return;const o=r[2],n=r[3];e.zmin=o-n,e.zmax=o+n}}async _fetchService(e){if(null==this.url)throw new s.A("sceneservice:url-not-set","Scene service can not be loaded without valid portal item or url");if(null==this.layerId&&/SceneServer\/*$/i.test(this.url)){const t=await this._fetchFirstLayerId(e);null!=t&&(this.layerId=t)}return this._fetchServiceLayer(e)}async _fetchFirstLayerId(e){const t=await(0,n.A)(this.url??"",{query:{f:"json",...this.customParameters,token:this.apiKey},responseType:"json",signal:e});if(t.data&&Array.isArray(t.data.layers)&&t.data.layers.length>0)return t.data.layers[0].id}async _fetchServiceLayer(e){const t=await(0,n.A)(this.parsedUrl?.path??"",{query:{f:"json",...this.customParameters,token:this.apiKey},responseType:"json",signal:e});t.ssl&&this.url&&(this.url=this.url.replace(/^http:/i,"https:"));let r=!1;if(t.data.layerType&&"Voxel"===t.data.layerType&&(r=!0),r)return this._fetchVoxelServiceLayer();const o=t.data;this.read(o,this._getServiceContext()),this.validateLayer(o)}async _fetchVoxelServiceLayer(e){const t=(await(0,n.A)(this.parsedUrl?.path+"/layer",{query:{f:"json",...this.customParameters,token:this.apiKey},responseType:"json",signal:e})).data;this.read(t,this._getServiceContext()),this.validateLayer(t)}_getServiceContext(){return{origin:"service",portalItem:this.portalItem,portal:this.portalItem?.portal,url:this.parsedUrl}}async _ensureLoadBeforeSave(){await this.load(),"beforeSave"in this&&"function"==typeof this.beforeSave&&await this.beforeSave()}validateLayer(e){}async _saveAs(e,t){const r={...P,...t};let o=v.default.from(e);if(!o)throw new s.A("sceneservice:portal-item-required","_saveAs() requires a portal item to save to");o.id&&(o=o.clone(),o.id=null);const n=o.portal||g.A.getDefault();await this._ensureLoadBeforeSave(),o.type=Z,o.portal=n;const a=(0,M.m)(o,"portal-item",!0),i={layers:[this.write({},a)]};return await Promise.all(a.resources.pendingOperations??[]),await this._validateAgainstJSONSchema(i,a,r),this.url&&(o.url=this.url),o.title||(o.title=this.title),R(o,r,1),await n.signIn(),await n.user.addItem({item:o,folder:r?.folder,data:i}),await(0,w.r)(this.resourceReferences,a),this.portalItem=o,(0,c.v)(a),a.portalItem=o,o}async _save(e){const t={...P,...e};if(!this.portalItem)throw new s.A("sceneservice:portal-item-not-set","Portal item to save to has not been set on this SceneService");if(this.portalItem.type!==Z)throw new s.A("sceneservice:portal-item-wrong-type",`Portal item needs to have type "${Z}"`);await this._ensureLoadBeforeSave();const r=(0,M.m)(this.portalItem,"portal-item",!0),o=this.write({},r),a=await async function(e,t){const r=await e.fetchData("json")??{};return Array.isArray(r.layers)||(r.layers=await async function(e,t){const r=await async function(e){const t=N(e.url);if(!t)return null;const r=(await(0,n.A)(t,{query:{f:"json"},responseType:"json"})).data.layers;if(!Array.isArray(r))return null;const o=r.filter(({id:e})=>null!=e).map(({id:e})=>({id:e}));return o.length?o:null}(e).catch(()=>null);return r?.some(({id:e})=>e===t.id)?r:[t]}(e,t)),function(e,t){const r=e.findIndex(({id:e})=>e===t.id);-1===r?e.push(t):e[r]=t}(r.layers,t),r}(this.portalItem,o);await Promise.all(r.resources.pendingOperations??[]),await this._validateAgainstJSONSchema(a,r,t);const i=function(e,t){return t&&function(e,t){const r=N(e);return!!r&&r===T(t).url}(e.url,t)?e.url:t}(this.portalItem,this.url);return i&&(this.portalItem.url=i),this.portalItem.title||(this.portalItem.title=this.title),R(this.portalItem,t,0),await(0,w.S)(this.portalItem,a,this.resourceReferences,r),(0,c.v)(r),this.portalItem}async _validateAgainstJSONSchema(e,t,r){const o=r?.validationOptions;(0,S.ci)(t,{errorName:"sceneservice:save"},{ignoreUnsupported:o?.ignoreUnsupported,supplementalUnsupportedErrors:["scenemodification:unsupported"]});const n=o?.enabled,i=null;if(n&&i){const t=(await i()).validate(e,r.portalItemLayerType);if(!t.length)return;const n=`Layer item did not validate:\n${t.join("\n")}`;if(a.A.getLogger(this).error(`_validateAgainstJSONSchema(): ${n}`),"throw"===o.failPolicy){const e=t.map(e=>new s.A("sceneservice:schema-validation",e));throw new s.A("sceneservice-validate:error","Failed to save layer item due to schema validation, see `details.errors`.",{validationErrors:e})}}}};return(0,o.Cg)([(0,l.MZ)(f.id)],r.prototype,"id",void 0),(0,o.Cg)([(0,l.MZ)({type:d.A})],r.prototype,"spatialReference",void 0),(0,o.Cg)([(0,x.w)("spatialReference",["spatialReference","store.indexCRS","store.geographicCRS"])],r.prototype,"readSpatialReference",null),(0,o.Cg)([(0,l.MZ)({type:u.A})],r.prototype,"fullExtent",void 0),(0,o.Cg)([(0,x.w)("fullExtent",["fullExtent","store.extent","spatialReference","store.indexCRS","store.geographicCRS"])],r.prototype,"readFullExtent",null),(0,o.Cg)([(0,l.MZ)({readOnly:!0,type:p.A})],r.prototype,"heightModelInfo",void 0),(0,o.Cg)([(0,l.MZ)({type:Number,json:{name:"layerDefinition.minScale",write:!0,origins:{service:{read:{source:"minScale"},write:!1}}}})],r.prototype,"minScale",void 0),(0,o.Cg)([(0,l.MZ)({type:Number,json:{name:"layerDefinition.maxScale",write:!0,origins:{service:{read:{source:"maxScale"},write:!1}}}})],r.prototype,"maxScale",void 0),(0,o.Cg)([(0,l.MZ)({readOnly:!0})],r.prototype,"version",void 0),(0,o.Cg)([(0,x.w)("version",["store.version"])],r.prototype,"readVersion",null),(0,o.Cg)([(0,l.MZ)({type:String,json:{read:{source:"copyrightText"}}})],r.prototype,"copyright",void 0),(0,o.Cg)([(0,l.MZ)({type:String,json:{read:!1}})],r.prototype,"sublayerTitleMode",void 0),(0,o.Cg)([(0,l.MZ)({type:String})],r.prototype,"title",void 0),(0,o.Cg)([(0,x.w)("portal-item","title")],r.prototype,"readTitlePortalItem",null),(0,o.Cg)([(0,x.w)("service","title",["name"])],r.prototype,"readTitleService",null),(0,o.Cg)([(0,l.MZ)({type:Number,json:{origins:{service:{read:{source:"id"}},"portal-item":{write:{target:"id",isRequired:!0,ignoreOrigin:!0},read:!1}}}})],r.prototype,"layerId",void 0),(0,o.Cg)([(0,l.MZ)((0,m.b)({separator:"layers"}))],r.prototype,"url",void 0),(0,o.Cg)([(0,l.MZ)({readOnly:!0})],r.prototype,"parsedUrl",null),(0,o.Cg)([(0,l.MZ)({readOnly:!0})],r.prototype,"store",void 0),(0,o.Cg)([(0,l.MZ)({type:String,readOnly:!0,json:{read:{source:"store.rootNode"}}})],r.prototype,"rootNode",void 0),r=(0,o.Cg)([(0,l.$K)("esri.layers.mixins.SceneService")],r),r},b=-1e38;function C(e){if(null!=e.spatialReference)return d.A.fromJSON(e.spatialReference);const t=e.store,r=t.indexCRS||t.geographicCRS,o=r&&parseInt(r.slice(r.lastIndexOf("/")+1),10);return null!=o?new d.A(o):null}function A(e,t){if(null==t?.center||null==t.halfSize)throw new s.A("sceneservice:invalid-node-page","Invalid node page.");if(t.center[0]<b)return;const r=t.halfSize,o=t.center[2],n=Math.sqrt(r[0]*r[0]+r[1]*r[1]+r[2]*r[2]);e.zmin=o-n,e.zmax=o+n}function R(e,t,r){e.typeKeywords||(e.typeKeywords=[]);const o=t.getTypeKeywords();for(const t of o)e.typeKeywords.push(t);e.typeKeywords&&(e.typeKeywords=e.typeKeywords.filter((e,t,r)=>r.indexOf(e)===t),1===r&&(e.typeKeywords=e.typeKeywords.filter(e=>"Hosted Service"!==e)))}const Z="Scene Service",P={getTypeKeywords:()=>[],portalItemLayerType:"unknown",validationOptions:{enabled:!0,ignoreUnsupported:!1,failPolicy:"throw"}},j={layerId:null};function N(e){if(!e)return null;const t=T(e);if(null!=t.layerId)return null;const r=(0,h.qg)(t.url);return null==r||"SceneServer"===r.serverType?t.url:null}function T(e){return(0,h.HZ)({layer:j,url:e,nonStandardUrlAllowed:!0})}},83898(e,t,r){r.d(t,{F:()=>s});var o=r(11254),n=r(49186);async function s(e,t,r,s,a,i,l){let c=null;if(null!=r){const t=`${e}/nodepages/`,n=t+Math.floor(r.rootIndex/r.nodesPerPage);try{return{type:"page",rootPage:(await(0,o.A)(n,{query:{f:"json",...s,token:a},responseType:"json",signal:l})).data,rootIndex:r.rootIndex,pageSize:r.nodesPerPage,lodMetric:r.lodSelectionMetricType,urlPrefix:t}}catch(e){null!=i&&i.warn("#fetchIndexInfo()","Failed to load root node page. Falling back to node documents.",n,e),c=e}}if(!t)return null;const u=t?.split("/").pop(),p=`${e}/nodes/`,d=p+u;try{return{type:"node",rootNode:(await(0,o.A)(d,{query:{f:"json",...s,token:a},responseType:"json",signal:l})).data,urlPrefix:p}}catch(e){throw new n.A("sceneservice:root-node-missing","Root node missing.",{pageError:c,nodeError:e,url:d})}}},50805(e,t,r){r.d(t,{L0:()=>m,Ot:()=>d,W4:()=>i,uV:()=>u});var o=r(5482),n=r(25482),s=r(91429),a=r(93223);let i=class extends n.o{constructor(){super(...arguments),this.nodesPerPage=null,this.rootIndex=0,this.lodSelectionMetricType=null}};(0,o.Cg)([(0,s.MZ)({type:Number})],i.prototype,"nodesPerPage",void 0),(0,o.Cg)([(0,s.MZ)({type:Number})],i.prototype,"rootIndex",void 0),(0,o.Cg)([(0,s.MZ)({type:String})],i.prototype,"lodSelectionMetricType",void 0),i=(0,o.Cg)([(0,s.$K)("esri.layers.support.I3SLayerDefinitions.I3SNodePageDefinition")],i);let l=class extends n.o{constructor(){super(...arguments),this.factor=1}};(0,o.Cg)([(0,s.MZ)({type:Number,json:{read:{source:"textureSetDefinitionId"}}})],l.prototype,"id",void 0),(0,o.Cg)([(0,s.MZ)({type:Number})],l.prototype,"factor",void 0),l=(0,o.Cg)([(0,s.$K)("esri.layers.support.I3SLayerDefinitions.I3SMaterialTexture")],l);let c=class extends n.o{constructor(){super(...arguments),this.baseColorFactor=[1,1,1,1],this.baseColorTexture=null,this.metallicRoughnessTexture=null,this.metallicFactor=1,this.roughnessFactor=1}};(0,o.Cg)([(0,s.MZ)({type:[Number]})],c.prototype,"baseColorFactor",void 0),(0,o.Cg)([(0,s.MZ)({type:l})],c.prototype,"baseColorTexture",void 0),(0,o.Cg)([(0,s.MZ)({type:l})],c.prototype,"metallicRoughnessTexture",void 0),(0,o.Cg)([(0,s.MZ)({type:Number})],c.prototype,"metallicFactor",void 0),(0,o.Cg)([(0,s.MZ)({type:Number})],c.prototype,"roughnessFactor",void 0),c=(0,o.Cg)([(0,s.$K)("esri.layers.support.I3SLayerDefinitions.I3SMaterialPBRMetallicRoughness")],c);let u=class extends n.o{constructor(){super(...arguments),this.alphaMode="opaque",this.alphaCutoff=.25,this.doubleSided=!1,this.cullFace="none",this.normalTexture=null,this.occlusionTexture=null,this.emissiveTexture=null,this.emissiveFactor=null,this.pbrMetallicRoughness=null}};(0,o.Cg)([(0,a.e)({opaque:"opaque",mask:"mask",blend:"blend"})],u.prototype,"alphaMode",void 0),(0,o.Cg)([(0,s.MZ)({type:Number})],u.prototype,"alphaCutoff",void 0),(0,o.Cg)([(0,s.MZ)({type:Boolean})],u.prototype,"doubleSided",void 0),(0,o.Cg)([(0,a.e)({none:"none",back:"back",front:"front"})],u.prototype,"cullFace",void 0),(0,o.Cg)([(0,s.MZ)({type:l})],u.prototype,"normalTexture",void 0),(0,o.Cg)([(0,s.MZ)({type:l})],u.prototype,"occlusionTexture",void 0),(0,o.Cg)([(0,s.MZ)({type:l})],u.prototype,"emissiveTexture",void 0),(0,o.Cg)([(0,s.MZ)({type:[Number]})],u.prototype,"emissiveFactor",void 0),(0,o.Cg)([(0,s.MZ)({type:c})],u.prototype,"pbrMetallicRoughness",void 0),u=(0,o.Cg)([(0,s.$K)("esri.layers.support.I3SLayerDefinitions.I3SMaterialDefinition")],u);let p=class extends n.o{};(0,o.Cg)([(0,s.MZ)({type:String,json:{read:{source:["name","index"],reader:(e,t)=>null!=e?e:`${t.index}`}}})],p.prototype,"name",void 0),(0,o.Cg)([(0,a.e)({jpg:"jpg",png:"png",dds:"dds","ktx-etc2":"ktx-etc2",ktx2:"ktx2",basis:"basis"})],p.prototype,"format",void 0),p=(0,o.Cg)([(0,s.$K)("esri.layers.support.I3SLayerDefinitions.I3STextureFormat")],p);let d=class extends n.o{constructor(){super(...arguments),this.atlas=!1}};(0,o.Cg)([(0,s.MZ)({type:[p]})],d.prototype,"formats",void 0),(0,o.Cg)([(0,s.MZ)({type:Boolean})],d.prototype,"atlas",void 0),d=(0,o.Cg)([(0,s.$K)("esri.layers.support.I3SLayerDefinitions.I3STextureSetDefinition")],d);let h=class extends n.o{};(0,o.Cg)([(0,a.e)({Float32:"Float32",UInt64:"UInt64",UInt32:"UInt32",UInt16:"UInt16",UInt8:"UInt8"})],h.prototype,"type",void 0),(0,o.Cg)([(0,s.MZ)({type:Number})],h.prototype,"component",void 0),h=(0,o.Cg)([(0,s.$K)("esri.layers.support.I3SLayerDefinitions.I3SGeometryAttribute")],h);let f=class extends n.o{};(0,o.Cg)([(0,a.e)({draco:"draco"})],f.prototype,"encoding",void 0),(0,o.Cg)([(0,s.MZ)({type:[String]})],f.prototype,"attributes",void 0),f=(0,o.Cg)([(0,s.$K)("esri.layers.support.I3SLayerDefinitions.I3SGeometryCompressedAttributes")],f);let y=class extends n.o{constructor(){super(...arguments),this.offset=0}};(0,o.Cg)([(0,s.MZ)({type:Number})],y.prototype,"offset",void 0),(0,o.Cg)([(0,s.MZ)({type:h})],y.prototype,"position",void 0),(0,o.Cg)([(0,s.MZ)({type:h})],y.prototype,"normal",void 0),(0,o.Cg)([(0,s.MZ)({type:h})],y.prototype,"uv0",void 0),(0,o.Cg)([(0,s.MZ)({type:h})],y.prototype,"color",void 0),(0,o.Cg)([(0,s.MZ)({type:h})],y.prototype,"uvRegion",void 0),(0,o.Cg)([(0,s.MZ)({type:h})],y.prototype,"featureId",void 0),(0,o.Cg)([(0,s.MZ)({type:h})],y.prototype,"faceRange",void 0),(0,o.Cg)([(0,s.MZ)({type:f})],y.prototype,"compressedAttributes",void 0),y=(0,o.Cg)([(0,s.$K)("esri.layers.support.I3SLayerDefinitions.I3SGeometryBuffer")],y);let m=class extends n.o{};(0,o.Cg)([(0,a.e)({triangle:"triangle"})],m.prototype,"topology",void 0),(0,o.Cg)([(0,s.MZ)()],m.prototype,"geometryBuffers",void 0),m=(0,o.Cg)([(0,s.$K)("esri.layers.support.I3SLayerDefinitions.I3SGeometryDefinition")],m)},88788(e,t,r){r.d(t,{m:()=>a,v:()=>s});var o=r(84952),n=r(20655);function s(e,t){return{...i(e,t),readResourcePaths:[]}}function a(e,t,r){const n=(0,o.An)(e.itemUrl);return{...i(e,t),messages:[],writtenProperties:[],blockedRelativeUrls:[],verifyItemRelativeUrls:n?{rootPath:n.path,writtenUrls:[]}:null,resources:r?{toAdd:[],toUpdate:[],toKeep:[],pendingOperations:[]}:null}}function i(e,t){return{origin:t,url:(0,o.An)(e.itemUrl),portal:e.portal||n.A.getDefault(),portalItem:e}}},15804(e,t,r){r.d(t,{addOrUpdateResources:()=>i,bg:()=>d,cL:()=>p,fetchResources:()=>a,removeAllResources:()=>c,removeResource:()=>l});var o=r(11254),n=r(49186),s=r(84952);async function a(e,t={},r){await e.load(r);const o=(0,s.fj)(e.itemUrl,"resources"),{start:n=1,num:a=10,sortOrder:i="asc",sortField:l="resource"}=t,c={query:{start:n,num:a,sortOrder:i,sortField:l,token:e.apiKey},signal:r?.signal},u=await e.portal.request(o,c);return{total:u.total,nextStart:u.nextStart,resources:u.resources.map(({created:t,size:r,resource:o})=>({created:new Date(t),size:r,resource:e.resourceFromPath(o)}))}}async function i(e,t,r,o){const a=new Map;for(const{resource:e,content:o,compress:s,access:i}of t){if(!e.hasPath())throw new n.A(`portal-item-resource-${r}:invalid-path`,"Resource does not have a valid path");const[t,l]=u(e.path),c=`${t}/${s??""}/${i??""}`;a.has(c)||a.set(c,{prefix:t,compress:s,access:i,files:[]}),a.get(c).files.push({fileName:l,content:o})}await e.load(o);const i=(0,s.fj)(e.userItemUrl,"add"===r?"addResources":"updateResources");for(const{prefix:t,compress:r,access:s,files:l}of a.values()){const a=25;for(let c=0;c<l.length;c+=a){const u=l.slice(c,c+a),p=new FormData;t&&"."!==t&&p.append("resourcesPrefix",t),r&&p.append("compress","true"),s&&p.append("access",s);let d=0;for(const{fileName:e,content:t}of u)p.append("file"+ ++d,t,e);p.append("f","json");try{await e.portal.request(i,{method:"post",body:p,signal:o?.signal})}catch(e){if(o?.ignoreResourceCopyErrors&&e instanceof n.A&&"CONT_00942"===e.details?.messageCode)continue;throw e}}}}async function l(e,t,r){if(!t.hasPath())throw new n.A("portal-item-resources-remove:invalid-path","Resource does not have a valid path");await e.load(r);const o=(0,s.fj)(e.userItemUrl,"removeResources");await e.portal.request(o,{method:"post",query:{resource:t.path},signal:r?.signal}),t.portalItem=null}async function c(e,t){await e.load(t);const r=(0,s.fj)(e.userItemUrl,"removeResources");return e.portal.request(r,{method:"post",query:{deleteAll:!0},signal:t?.signal})}function u(e){const t=e.lastIndexOf("/");return-1===t?[".",e]:[e.slice(0,t),e.slice(t+1)]}async function p(e){return"blob"===e.type?e.blob:"json"===e.type?new Blob([e.jsonString],{type:"application/json"}):(await(0,o.A)(e.url,{responseType:"blob"})).data}function d(e,t){if(!e.hasPath())return null;const[r,,o]=function(e){const[t,r]=function(e){const t=(0,s.Zo)(e);return null==t?[e,""]:[e.slice(0,e.length-t.length-1),`.${t}`]}(e),[o,n]=u(t);return[o,n,r]}(e.path);return e.portalItem.resourceFromPath((0,s.fj)(r,t+o))}},91682(e,t,r){r.d(t,{S:()=>l,r:()=>i});var o=r(49186),n=r(17676),s=r(13069),a=r(15804);async function i(e,t,r){const o=await c(e,t,r);await u(o,t,r)}async function l(e,t,r,o,n){const s=await c(r,o,n);await e.update({data:t}),await u(s,o,n)}async function c(e,t,i){if(!t?.resources)return;const l=t.portalItem===e.portalItem?new Set(e.paths):new Set;e.paths.length=0,e.portalItem=t.portalItem;const c=new Set(t.resources.toKeep.map(e=>e.resource.path)),u=new Set,p=[];c.forEach(t=>{l.delete(t),e.paths.push(t)});const d=[],h=[],f=[];for(const r of t.resources.toUpdate)if(l.delete(r.resource.path),c.has(r.resource.path)||u.has(r.resource.path)){const{resource:t,content:o,finish:n}=r,i=(0,a.bg)(t,(0,s.lk)());e.paths.push(i.path),d.push({resource:i,content:await(0,a.cL)(o),compress:r.compress}),n&&f.push(()=>n(i))}else{e.paths.push(r.resource.path),h.push({resource:r.resource,content:await(0,a.cL)(r.content),compress:r.compress});const t=r.finish;t&&f.push(()=>t(r.resource)),u.add(r.resource.path)}for(const r of t.resources.toAdd)if(e.paths.push(r.resource.path),l.has(r.resource.path))l.delete(r.resource.path);else{d.push({resource:r.resource,content:await(0,a.cL)(r.content),compress:r.compress});const e=r.finish;e&&f.push(()=>e(r.resource))}if(d.length||h.length){const{addOrUpdateResources:e}=await Promise.resolve().then(r.bind(r,15804));await e(t.portalItem,d,"add",i),await e(t.portalItem,h,"update",i)}if(f.forEach(e=>e()),0===p.length)return l;const y=await(0,n.Ol)(p);if((0,n.Te)(i),y.length>0)throw new o.A("save:resources","Failed to save one or more resources",{errors:y});return l}async function u(e,t,r){if(!e||!t.portalItem)return;const o=[];for(const n of e){const e=t.portalItem.resourceFromPath(n);o.push(e.portalItem.removeResource(e,r))}await(0,n.Lx)(o)}},26121(e,t,r){r.d(t,{I6:()=>l,ci:()=>i,dL:()=>a});var o=r(49186),n=r(77548),s=r(59923);async function a(e){const t=[];for(const r of e.allLayers)if("beforeSave"in r&&"function"==typeof r.beforeSave){const e=r.beforeSave();e&&t.push(e)}await Promise.allSettled(t)}function i(e,t,r){let n=(e.messages??[]).filter(({type:e})=>"error"===e).map(({name:e,message:t,details:r})=>new o.A(e,t,r));if(e.blockedRelativeUrls&&(n=n.concat(e.blockedRelativeUrls.map(e=>(0,s.GL)("url",`Relative url '${e}' is not supported`)))),r){const{ignoreUnsupported:e,supplementalUnsupportedErrors:t=[],requiredPropertyChecksDisabled:o}=r;e&&(n=n.filter(({name:e})=>!(s.MG.has(e)||t.includes(e)))),o&&(n=n.filter(e=>"web-document-write:property-required"!==e.name))}if(n.length>0)throw new o.A(t.errorName,"Failed to save due to unsupported or invalid content. See 'details.errors' for more detailed information",{errors:n})}function l(e){return(0,n.qd)(e).some(e=>!!e.charts?.length)}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3202,8503],{96685(e,t,r){r.r(t),r.d(t,{constructAssociationMetaDataFeatureSetFromUrl:()=>G,constructFeatureSet:()=>E,constructFeatureSetFromPortalItem:()=>z,constructFeatureSetFromRelationship:()=>Q,constructFeatureSetFromUrl:()=>D,convertToFeatureSet:()=>K,createFeatureSetCollectionFromMap:()=>V,createFeatureSetCollectionFromService:()=>Y,initialiseMetaDataCache:()=>N});var i=r(11254);class a{constructor(){this.declaredRootClass="esri.arcade.featureSetCollection"}castToText(e=!1){return"object, FeatureSetCollection"}}var s=r(78878),n=r(35704),l=r(70333),o=r(48938),u=r(61454),c=r(15695),d=r(87449),h=r(11221),p=r(33325),y=r(80609),f=r(50145),m=r(4576),g=r(80200),_=r(39516),w=r(89696),F=r(53781),b=r(17126),I=r(54546),S=r(97552),v=r(7562);function T(e,t){null==e.clause&&(e.clause=function(e){if(0===e.length)throw new d.dr("NeverReach");const t=[];for(let r=0;r<e.length;r++){const i=e[r],a=[`"${i.name.replaceAll('"','""')}" ${i.asc?">":"<"} @last_${r}`];for(let t=0;t<r;t++){const r=e[t];a.push(`"${r.name.replaceAll('"','""')}" = @last_${t}`)}t.push(a.join(" AND "))}const r=t.join(" OR ");return w.A.create(r)}(e.keyFields));for(let r=0;r<e.keyFields.length;r++){const i=e.keyFields[r].name;e.clause.parameters[`last_${r}`]=t.attributes[i]}}class A extends h.Jn{constructor(e){super(),this.declaredClass="esri.arcade.featureset.sources.FeatureLayerDynamic",this._removeGeometry=!1,this._overrideFields=null,this._requestStandardised=!1,this._useDefinitionExpression=!0,this._recentlyUsedQueries=null,this._featureSetQueryInterceptor=null,this._featureSetInfo=null,this._maxProcessing=1e3,this._layer=e.layer,e.spatialReference&&(this.spatialReference=e.spatialReference),void 0!==e.outFields&&(this._overrideFields=e.outFields),void 0!==e.includeGeometry&&(this._removeGeometry=!1===e.includeGeometry),e.lrucache&&(this._recentlyUsedQueries=e.lrucache),e.interceptor&&(this._featureSetQueryInterceptor=e.interceptor)}_maxQueryRate(){return p.gO}get urlQueryPath(){return this._layer.parsedUrl.path||""}convertQueryToLruCacheKey(e){const t=this.urlQueryPath+","+(0,p.JB)(e.toJSON());return(0,g.d)(t,g.T.String)}async loadImpl(){return!0===this._layer.loaded?(this._initialiseFeatureSet(),this):(await this._layer.load(),this._initialiseFeatureSet(),this)}_initialiseFeatureSet(){if(this.spatialReference??=this._layer.spatialReference,this.geometryType=this._layer.geometryType??"",this.fields=this._layer.fields.slice(),this.hasZ=!0===this._layer.capabilities?.data?.supportsZ,this.hasM=!0===this._layer.capabilities?.data?.supportsM,null!==this._overrideFields)if(1===this._overrideFields.length&&"*"===this._overrideFields[0])this._overrideFields=null;else{const e=new Set(this._overrideFields.map(e=>e.toLowerCase()));this.fields=this.fields.filter(({type:t,name:r})=>"oid"===t||e.has(r.toLowerCase())),this._overrideFields=this.fields.map(({name:e})=>e)}if(this._layer.source&&this._layer.source.sourceJSON){const e=this._layer.source.sourceJSON.currentVersion;!0===this._layer.source.sourceJSON.useStandardizedQueries?(this._databaseType=1,null!=e&&e>=10.61&&(this._databaseType=0)):null!=e&&(e>=10.5&&(this._databaseType=1,this._requestStandardised=!0),e>=10.61&&(this._databaseType=0))}this.objectIdField=this._layer.objectIdField;for(const e of this.fields)"global-id"===e.type&&(this.globalIdField=e.name);this.subtypeField=this._layer.subtypeField??"",this.subtypes=this._layer.subtypes,this.typeIdField=("typeIdField"in this._layer?this._layer.typeIdField:null)??"",this.types="types"in this._layer?this._layer.types:null}async _runDatabaseProbe(e){await this._ensureLoaded();const t=new S.A;this.datesInUnknownTimezone&&(t.timeReferenceUnknownClient=!0),t.where=e.replace("OBJECTID",this._layer.objectIdField);try{return await this._layer.queryObjectIds(t),!0}catch{return!1}}_canUsePagination(){return!(!this._layer.capabilities||!this._layer.capabilities.query||!0!==this._layer.capabilities.query.supportsPagination)}_cacheableFeatureSetSourceKey(){return this._layer.url}get gdbVersion(){return this._layer&&this._layer.capabilities&&this._layer.capabilities.data&&this._layer.capabilities.data.isVersioned?this._layer.gdbVersion||"SDE.DEFAULT":""}nativeCapabilities(){return{title:this._layer.title??"",source:this,canQueryRelated:!0,capabilities:this._layer.capabilities,databaseType:this._databaseType,requestStandardised:this._requestStandardised}}async _queryAll(){return(await this.query({abortSignal:o._})).features}async query(e){return await this._ensureLoaded(),this.isTable()&&null!=e.spatialFilter?h.An:this._canUsePagination()?this._queryUsingPaging(e):this._queryUsingIdSetTraversal(e)}async _queryUsingPaging(e){const t=this._layer.capabilities.query;let r=!0,i=null,a=!1;null!=e.orderBy&&(t.supportsOrderBy?(i=e.orderBy.toOrderByFields(),a=!0):r=!1);const s=await this.databaseType(),n=null==e.where?null==e.spatialFilter?"1=1":"":(0,y.YY)(e.where,s),l=!0!==this._removeGeometry,o=this._overrideFields??this._fieldsIncludingObjectId(["*"]),u=o.includes("*")?this._layer.fields.length:o.length,c=(this.isTable()||!l?t.standardMaxRecordCountNoGeometry:void 0)??t.standardMaxRecordCount??t.maxRecordCount??this._maxQueryRate(),d=u<=50?1:u<=100?.5:u<=200?.25:.125,p=Math.max(Math.ceil(c*d),t.maxRecordCount??this._maxQueryRate()),f=this._createQuery();if(f.where=(0,_.mA)(f.where,n),null!=e.spatialFilter){const t=(0,h.rj)(e.spatialFilter.relation);f.spatialRelationship=t.spatialRelationship,f.relationParameter=t.relationParameter,f.geometry=e.spatialFilter.geometry}return f.orderByFields=i,f.outFields=o,f.returnGeometry=l,f.outSpatialReference=this.spatialReference,f.resultType="standard",{ordered:a,filterApplied:!0,spatialFilterApplied:!0,features:this._queryPaginated(f,p,r?e.limit:null,e.abortSignal)}}async*_queryPaginated(e,t,r,i){let a;e.num=null!=r?Math.min(r,t):t,e.start=0;do{(0,d.dZ)(i),a=await this.executeQuery(e,"execute"),yield*(0,m.Ho)(a.features,this._maxQueryRate()),e.start+=a.features.length,e.num=null!=r?Math.min(r-e.start,t):t}while(e.num>0&&!0===a.exceededTransferLimit)}async _queryUsingIdSetTraversal(e){let t=!0,r=null,i=!1;null!=e.orderBy&&(this._layer.capabilities?.query?.supportsOrderBy?(r=e.orderBy.toOrderByFields(),i=!0):t=!1);const a=await this.databaseType(),s=null==e.where?null==e.spatialFilter?"1=1":"":(0,y.YY)(e.where,a),n=this._createQuery();if(n.where=(0,_.mA)(n.where,s),null!=e.spatialFilter){const t=(0,h.rj)(e.spatialFilter.relation);n.spatialRelationship=t.spatialRelationship,n.relationParameter=t.relationParameter,n.geometry=e.spatialFilter.geometry}n.orderByFields=r,n.outSpatialReference=this.spatialReference,n.num=t?e.limit:null;const l=await this.executeQuery(n,"executeForIds");if((0,d.dZ)(e.abortSignal),null==l||l.length<=0)return h.An;let o=this._maxQueryRate();const u=this._layer.capabilities?.query.maxRecordCount;null!=u&&u<o&&(o=u);const c=this._createQuery();return n.outFields=this._overrideFields??this._fieldsIncludingObjectId(["*"]),n.returnGeometry=!0!==this._removeGeometry,n.outSpatialReference=this.spatialReference,{ordered:i,filterApplied:!0,spatialFilterApplied:!0,features:this._traverseIdSet(c,l,o,e.abortSignal)}}async*_traverseIdSet(e,t,r,i){for(let a=0;a<t.length;a+=r){e.objectIds=t.slice(a,a+r),(0,d.dZ)(i);const s=await this.executeQuery(e,"execute");yield s.features}}async queryStat(e){await this._ensureLoaded();const t=this._layer.capabilities?.query,r=!!t?.supportsSqlExpression,i=!!t?.supportsStatistics,a=!!t?.supportsDistinct,s=(0,f.Dp)(e.stat);if("count"===s)return a?this._queryCount(e):{calculated:!1};const n=e.field;if(null==n)return{calculated:!1};if(!1===i||!1===(0,y.DA)(n)&&!1===r||!1===n.isStandardized)return null!=e.spatialFilter||null!=e.where?{calculated:!1}:this._manualStat(e.stat,n,e.limit??p.gO,e.abortSignal);if("distinct"===s)return!1===a?null!=e.spatialFilter||null!=e.where?{calculated:!1}:this._manualStat(s,n,e.limit??p.gO,e.abortSignal):{calculated:!1};const l=await this.databaseType();if(this.isTable()&&null!=e.spatialFilter)return{calculated:!0,result:null};const o=this._createQuery();if(o.where=(0,_.mA)(o.where,null==e.where?null==e.spatialFilter?"1=1":"":(0,y.YY)(e.where,l)),null!=e.spatialFilter){const t=(0,h.rj)(e.spatialFilter.relation);o.spatialRelationship=t.spatialRelationship,o.relationParameter=t.relationParameter,o.geometry=e.spatialFilter.geometry}const u=new v.A;u.statisticType=s,u.onStatisticField=(0,y.YY)(n,l),u.outStatisticFieldName="ARCADE_STAT_RESULT",o.returnGeometry=!1;let c="ARCADE_STAT_RESULT";o.outStatistics=[u];const m=await this.executeQuery(o,"execute");if(!m.hasOwnProperty("features")||0===m.features.length)throw new d.dr("InvalidStatResponse");let g=!1;const w=m.fields??[];for(const e of w)if("ARCADE_STAT_RESULT"===e.name.toUpperCase()){c=e.name,"esriFieldTypeDate"===e.type&&(g=!0);break}const F=m.features[0].attributes[c];return{calculated:!0,result:g&&null!=F?new Date(F):F}}async _queryCount(e){const t=await this.databaseType();if(this.isTable()&&null!=e.spatialFilter)return{calculated:!0,result:0};const r=this._createQuery();if(r.where=(0,_.mA)(r.where,null==e.where?null==e.spatialFilter?"1=1":"":(0,y.YY)(e.where,t)),null!=e.spatialFilter){const t=(0,h.rj)(e.spatialFilter.relation);r.spatialRelationship=t.spatialRelationship,r.relationParameter=t.relationParameter,r.geometry=e.spatialFilter.geometry}return r.returnGeometry=!1,{calculated:!0,result:await this.executeQuery(r,"executeForCount")}}async canQueryAggregate(e){await this._ensureLoaded();let t=!1;const r=this._layer.capabilities?.query,i=!0===r?.supportsSqlExpression;if(null!=r&&!0===r.supportsStatistics&&!0===r.supportsOrderBy&&(t=!0),t)for(const r of e.statistics)(!1===r.workingexpr?.isStandardized||!1===(0,y.DA)(r.workingexpr)&&!1===i)&&(t=!1);return t}async queryAggregate(e){if(await this._ensureLoaded(),this.isTable()&&null!=e.spatialFilter)return h.An;const t=await this.databaseType(),r=e.groupBy,i=e.orderBy;let a=null;if(!this._layer.capabilities.query.supportsPaginationOnAggregatedQueries){const e=this.getFieldsIndex();a={keyFields:r.map((t,r)=>({name:e.normalizeFieldName(t)??t,asc:null==i||1===i._directions[r]}))}}let s=null,n=!1;null!=i&&!0===this._layer.capabilities?.query?.supportsOrderBy&&(null==a||(0,m.MJ)(r,0,r.length,i._fields,0,Math.min(i._fields.length,r.length),(e,t)=>e.toLowerCase()===t.toLowerCase()))&&(s=i.toOrderByFields(),n=!0),null==s&&(s=r.slice());const l=e.statistics.map(e=>new v.A({onStatisticField:null!==e.workingexpr?(0,y.YY)(e.workingexpr,t):"",outStatisticFieldName:e.field,statisticType:e.toStatisticsName()}));let o=this._maxQueryRate();const u=this._layer.capabilities?.query.maxRecordCount;null!=u&&u<o&&(o=u);const c=null==e.where?null==e.spatialFilter?"1=1":"":(0,y.YY)(e.where,t),d=this._createQuery();if(d.where=(0,_.mA)(d.where,c),null!=e.spatialFilter){const t=(0,h.rj)(e.spatialFilter.relation);d.spatialRelationship=t.spatialRelationship,d.relationParameter=t.relationParameter,d.geometry=e.spatialFilter.geometry}return d.orderByFields=s,d.outFields=["*"],d.outStatistics=l,d.groupByFieldsForStatistics=r,d.returnGeometry=!1,null==a?{filterApplied:!0,spatialFilterApplied:!0,ordered:n,features:this._queryPaginated(d,o,null,e.abortSignal)}:{filterApplied:!0,spatialFilterApplied:!0,ordered:n,features:this._queryKeysetPaginated(d,a,e.abortSignal)}}async*_queryKeysetPaginated(e,t,r){const i=e.where;for(;;){if(null!=t.clause){if(!this._layer.capabilities.query.supportsOrderBy)throw new d.dr("NotImplemented");e.where=(0,_.mA)(i,(0,y.YY)(t.clause,await this.databaseType()))}const a=await this.executeQuery(e,"execute");if((0,d.dZ)(r),!a.hasOwnProperty("features"))throw new d.dr("InvalidStatResponse");if(yield a.features,0===a.features.length||!0!==a.exceededTransferLimit)break;T(t,a.features.at(-1))}}_createQuery(){const e=this._layer.createQuery();return e.returnZ=this.hasZ,e.returnM=this.hasM,this.datesInUnknownTimezone&&(e.timeReferenceUnknownClient=!0),this._requestStandardised&&(e.sqlFormat="standard"),this._useDefinitionExpression?"subtype-group"===this._layer.type&&(e.where=this._layer.definitionExpression):e.where=null,e}executeQuery(e,t){const r="execute"===t?async e=>{const t=await this._layer.source.queryFeaturesJSON(e);return(0,h.Rn)(t.features,t.spatialReference??this.spatialReference.toJSON()),t}:"executeForCount"===t?this._layer.queryFeatureCount.bind(this._layer):this._layer.queryObjectIds.bind(this._layer);let i=null;if(this._recentlyUsedQueries){const t=this.convertQueryToLruCacheKey(e);i=this._recentlyUsedQueries.getFromCache(t),null===i&&(i=r(e),this._recentlyUsedQueries.addToCache(t,i),i=i.catch(e=>{throw this._recentlyUsedQueries?.removeFromCache(t),e}))}return this._featureSetQueryInterceptor&&this._featureSetQueryInterceptor.preLayerQueryCallback({layer:this._layer,query:e,method:t}),null===i&&(i=r(e)),i}_fieldsIncludingObjectId(e){if(null===e)return[this.objectIdField];const t=e.slice();if(t.includes("*"))return t;let r=!1;for(const e of t)if(e.toUpperCase()===this.objectIdField.toUpperCase()){r=!0;break}return r||t.push(this.objectIdField),t}isTable(){return this._layer.isTable||null===this._layer.geometryType||"table"===this._layer.type||""===this._layer.geometryType||"esriGeometryNull"===this._layer.geometryType}static create(e,t,r,i,a){const s=new F.default({url:e,outFields:null===t?["*"]:t});return new A({layer:s,spatialReference:r,lrucache:i,interceptor:a})}relationshipMetadata(){return this._layer&&this._layer.source&&this._layer.source.sourceJSON?.relationships?this._layer.source.sourceJSON.relationships:[]}serviceUrl(){return(0,p.Qi)(this._layer.parsedUrl.path)}async queryAttachments(e,t,r,i,a){const s=this._layer;if(!function(e){const t=e.capabilities;return t?.data.supportsAttachment&&t?.operations.supportsQueryAttachments}(s))return[];const n=new I.A({objectIds:[e],returnMetadata:a});(t&&t>0||r&&r>0)&&(n.size=[t&&t>0?t:0,r&&r>0?r:t+1]),i&&i.length>0&&(n.attachmentTypes=i),this._featureSetQueryInterceptor&&this._featureSetQueryInterceptor.preLayerQueryCallback({layer:s,query:n,method:"attachments"});const l=await s.queryAttachments(n);return l?.[e]?l[e].map(t=>{const r=`${this._layer.parsedUrl.path}/${e}/attachments/${t.id}`;let i=null;return a&&t.exifInfo&&(i=(0,c.Tg)(t.exifInfo)),new u.A(t.id,t.name,t.contentType,t.size,r,i,t.keywords??null)}):[]}async queryRelatedFeatures(e){const t=(0,b.dw)(e);t.f="json",this._requestStandardised&&(t.sqlFormat="standard"),this._featureSetQueryInterceptor&&this._featureSetQueryInterceptor.preRequestCallback({layer:this._layer,queryPayload:t,method:"relatedrecords",url:this._layer.parsedUrl.path+"/queryRelatedRecords"});const r=await(0,i.A)(this._layer.parsedUrl.path+"/queryRelatedRecords",{responseType:"json",query:t});if(r.data){const e={},t=r.data;if(t?.relatedRecordGroups){const r=t.spatialReference,i=!0===t.exceededTransferLimit;for(const a of t.relatedRecordGroups)(0,h.Rn)(a.relatedRecords,r),e[a.objectId]={features:a.relatedRecords,exceededTransferLimit:i}}return e}throw new d.dr("InvalidRequest")}async getFeatureByObjectId(e,t){const r=this._createQuery();r.outFields=t,r.returnGeometry=!1,r.outSpatialReference=this.spatialReference,r.where=(0,_.mA)(r.where,this.objectIdField+"="+e.toString()),this._featureSetQueryInterceptor&&this._featureSetQueryInterceptor.preLayerQueryCallback({layer:this._layer,query:r,method:"execute"});const i=await this._layer.source.queryFeaturesJSON(r);return 1===i.features.length?((0,h.Rn)(i.features,i.spatialReference??this.spatialReference.toJSON()),i.features[0]):null}async getIdentityUser(){await this.load();const e=l.id?.findCredential(this._layer.url);return e?e.userId:null}async getOwningSystemUrl(){await this.load();const e=l.id?.findServerInfo(this._layer.url);if(e)return e.owningSystemUrl??"";let t=this._layer.url;const r=t.toLowerCase().indexOf("/rest/services");if(t=r>-1?t.slice(0,r):t,t){t+="/rest/info";try{const e=await(0,i.A)(t,{query:{f:"json"}});let r="";return e.data?.owningSystemUrl&&(r=e.data.owningSystemUrl),r}catch{return""}}return""}getDataSourceFeatureSet(){const e=new A({layer:this._layer,spatialReference:this.spatialReference??void 0,outFields:this._overrideFields??void 0,includeGeometry:!this._removeGeometry,lrucache:this._recentlyUsedQueries??void 0,interceptor:this._featureSetQueryInterceptor??void 0});return e._useDefinitionExpression=!1,e}get preferredTimeZone(){return this._layer.preferredTimeZone??null}get dateFieldsTimeZone(){return this._layer.dateFieldsTimeZone??null}get datesInUnknownTimezone(){return this._layer.datesInUnknownTimezone??!1}get editFieldsInfo(){return this._layer.editFieldsInfo??null}get timeInfo(){return this._layer.timeInfo??null}async getFeatureSetInfo(){if(this._featureSetInfo)return this._featureSetInfo;let e=null,t="serviceItemId"in this._layer?this._layer.serviceItemId:null;const r=this._layer.parsedUrl?.path??null;if(r){const a=await(0,i.A)(r,{responseType:"json",query:{f:"json"}});e=a?.data?.name??null,t=a?.data?.serviceItemId??null}const a=this._layer.title&&null!==(this._layer.parent??null);return this._featureSetInfo={layerId:this._layer.layerId,layerName:""===e?null:e,itemId:""===t?null:t,serviceLayerUrl:""===r?null:r,webMapLayerId:a?this._layer.id??null:null,webMapLayerTitle:a?this._layer.title??null:null,className:null,objectClassId:null},this._featureSetInfo}}var R=r(30235);const C=new FinalizationRegistry(e=>{e.abort()});class M extends h.Jn{constructor(e){super(),this.declaredClass="esri.arcade.featureset.sources.FeatureLayerParquet",this._outFields=null,this._returnGeometry=!0,this._ignoreDefinitionExpression=!1,this._maxProcessing=1e3,this._layer=e.layer,e.spatialReference&&(this.spatialReference=e.spatialReference),null!=e.outFields&&(this._outFields=e.outFields),null!=e.includeGeometry&&(this._returnGeometry=e.includeGeometry)}_maxQueryRate(){return p.gO}async loadImpl(){return this._layer.loaded?(this._initialiseFeatureSet(),this):(await this._layer.load(),this._initialiseFeatureSet(),this)}_initialiseFeatureSet(){if(this.spatialReference??=this._layer.spatialReference,this.geometryType=this._layer.geometryType??"",this.fields=this._layer.fields.slice(),this.hasZ=!0===this._layer.capabilities?.data?.supportsZ,this.hasM=!0===this._layer.capabilities?.data?.supportsM,this.objectIdField=this._layer.objectIdField,null!==this._outFields)if(1===this._outFields.length&&"*"===this._outFields[0])this._outFields=null;else{const e=new Set(this._outFields.map(e=>e.toLowerCase()));this.fields=this.fields.filter(({type:t,name:r})=>"oid"===t||e.has(r.toLowerCase())),this._outFields=this.fields.map(({name:e})=>e)}this._databaseType=0}getDataSourceFeatureSet(){const e=new M({layer:this._layer,spatialReference:this.spatialReference??void 0,outFields:this._outFields??void 0,includeGeometry:this._returnGeometry});return e._ignoreDefinitionExpression=!0,e}_createQuery(){const e=this._layer.createQuery();return e.returnZ=this.hasZ,e.returnM=this.hasM,this._ignoreDefinitionExpression&&(e.where=null),e}isTable(){return this._layer.isTable}async _queryAll(){return(await this.query({abortSignal:o._})).features}async query(e){if(await this._ensureLoaded(),this.isTable()&&null!=e.spatialFilter)return h.An;const t={type:"arcade",returnGeometry:this._returnGeometry,outSpatialReference:(this.spatialReference??this._layer.spatialReference).toJSON(),outFields:Array.from(new Set(this._outFields??this._layer.fields.map(e=>e.name))),where:(0,_.mA)(this._ignoreDefinitionExpression?null:this._layer.definitionExpression,e.where?(0,y.YY)(e.where,0):null),extent:null};if(null!=e.spatialFilter)switch(e.spatialFilter.relation){case"esriSpatialRelIntersects":case"esriSpatialRelContains":case"esriSpatialRelOverlaps":case"esriSpatialRelWithin":case"esriSpatialRelTouches":case"esriSpatialRelCrosses":{const r=e.spatialFilter.geometry.extent;null!=r&&(t.extent=r.toJSON());break}}return{filterApplied:!0,spatialFilterApplied:!1,ordered:!1,features:await this._queryParquetStream(t,e.abortSignal)}}async _queryParquetStream(e,t){const r=new AbortController,i=await this._layer.source._queryStream(e,{signal:r.signal}),a=this._iterateParquetStream(i,r,t);return C.register(a,r,r),a}async*_iterateParquetStream(e,t,r){try{for(;;){const i=await this._layer.source._getStreamNextFeatures(e,{signal:t.signal});if(r.aborted&&(t.abort(),(0,d.dZ)(r)),null==i)break;(0,h.Rn)(i.features,i.spatialReference??this.spatialReference.toJSON()),yield i.features}}finally{C.unregister(t)}}async isEmpty(){return this._totalCount>=0?0===this._totalCount:(this._totalCount=await this._layer.queryFeatureCount(this._createQuery()),this._totalCount<=0)}async queryStat(e){await this._ensureLoaded();const t=(0,f.Dp)(e.stat);if("count"===t)return this._queryCount(e);const r=e.field;if(null==r)throw new d.dr("NeverReach");if(!0!==this._layer.capabilities?.query.supportsStatistics)return null!=e.spatialFilter||null!=e.where?{calculated:!1}:this._manualStat(e.stat,r,e.limit??p.gO,e.abortSignal);if("distinct"===t)return{calculated:!1};if(this.isTable()&&null!=e.spatialFilter)return{calculated:!0,result:null};const i=this._createQuery();if(i.returnGeometry=!1,i.where=(0,_.mA)(i.where,e.where?(0,y.YY)(e.where,0):null),null!=e.spatialFilter){const t=(0,h.rj)(e.spatialFilter.relation);i.spatialRelationship=t.spatialRelationship,i.relationParameter=t.relationParameter,i.geometry=e.spatialFilter.geometry}const a=new v.A;a.statisticType=t,a.onStatisticField=(0,y.YY)(r,0);const s="ARCADE_STAT_RESULT";a.outStatisticFieldName=s,i.outStatistics=[a];const n=await this._layer.source.queryFeaturesJSON(i);if(n.features.length<=0)throw new d.dr("InvalidStatResponse");const l=n.features[0].attributes[s];return{calculated:!0,result:"esriFieldTypeDate"===n.fields?.find(e=>e.name===s)?.type&&null!=l?new Date(l):l}}async _queryCount(e){if(this.isTable()&&null!=e.spatialFilter)return{calculated:!0,result:0};const t=this._createQuery();if(t.where=(0,_.mA)(t.where,e.where?(0,y.YY)(e.where,0):null),null!=e.spatialFilter){const r=(0,h.rj)(e.spatialFilter.relation);t.spatialRelationship=r.spatialRelationship,t.relationParameter=r.relationParameter,t.geometry=e.spatialFilter.geometry}return t.returnGeometry=!1,{calculated:!0,result:await this._layer.queryFeatureCount(t)}}async canQueryAggregate(e){await this._ensureLoaded();const t=this._layer.capabilities?.query;return!0===t?.supportsStatistics&&null==e.spatialFilter}async queryAggregate(e){await this._ensureLoaded();const t=this._createQuery();return t.where=(0,_.mA)(t.where,e.where?(0,y.YY)(e.where,0):null),t.orderByFields=e.orderBy?.toOrderByFields(),t.outFields=["*"],t.outStatistics=e.statistics.map(e=>new v.A({onStatisticField:null!==e.workingexpr?(0,y.YY)(e.workingexpr,0):"",outStatisticFieldName:e.field,statisticType:e.toStatisticsName()})),t.groupByFieldsForStatistics=e.groupBy,t.returnGeometry=!1,{filterApplied:!0,spatialFilterApplied:!0,ordered:null!=e.orderBy,features:async function*(){const r=await this._layer.source.queryFeaturesJSON(t);(0,d.dZ)(e.abortSignal);for(const e of(0,m.Ho)(r.features,this._maxQueryRate()))(0,h.Rn)(e,r.spatialReference??this.spatialReference.toJSON()),yield e}.apply(this)}}nativeCapabilities(){return{title:this._layer.title??"",canQueryRelated:!1,source:this,capabilities:this._layer.capabilities,databaseType:this._databaseType,requestStandardised:!0}}async queryAttachments(){return[]}serviceUrl(){return""}relationshipMetadata(){return[]}get gdbVersion(){return""}getFeatureByObjectId(){throw new d.dr("NeverReach")}async getOwningSystemUrl(){return""}async getIdentityUser(){return""}get preferredTimeZone(){return null}get dateFieldsTimeZone(){return null}get datesInUnknownTimezone(){return!1}get editFieldsInfo(){return null}get timeInfo(){return null}async getFeatureSetInfo(){const e=this._layer.title&&this._layer.parent;return{layerId:null,layerName:null,itemId:null,serviceLayerUrl:null,webMapLayerId:e?this._layer.id??null:null,webMapLayerTitle:e?this._layer.title??null:null,className:null,objectClassId:null}}}var L=r(26591);class j extends h.Jn{constructor(e){super(),this.declaredClass="esri.arcade.featureset.sources.FeatureLayerRelated",this._removeGeometry=!1,this._overrideFields=null,this._maxProcessing=1e3,this._layer=e.layer,e.spatialReference&&(this.spatialReference=e.spatialReference),this._findObjectId=e.objectId,this.relationship=e.relationship,this._relatedLayer=e.relatedLayer,void 0!==e.outFields&&(this._overrideFields=e.outFields),void 0!==e.includeGeometry&&(this._removeGeometry=!1===e.includeGeometry)}_maxQueryRate(){return p.gO}async loadImpl(){return await Promise.all([this._layer.load(),this._relatedLayer.load()]),this._initialiseFeatureSet(),this}nativeCapabilities(){return this._relatedLayer.nativeCapabilities()}_initialiseFeatureSet(){if(null==this.spatialReference&&(this.spatialReference=this._layer.spatialReference),this.geometryType=this._relatedLayer.geometryType,this.fields=this._relatedLayer.fields.slice(),this.hasZ=this._relatedLayer.hasZ,this.hasM=this._relatedLayer.hasM,null!==this._overrideFields)if(1===this._overrideFields.length&&"*"===this._overrideFields[0])this._overrideFields=null;else{const e=new Set(this._overrideFields.map(e=>e.toLowerCase()));this.fields=this.fields.filter(({type:t,name:r})=>"oid"===t||e.has(r.toLowerCase())),this._overrideFields=this.fields.map(({name:e})=>e)}const e=this._layer.nativeCapabilities();e&&(this._databaseType=e.databaseType),this.objectIdField=this._relatedLayer.objectIdField,this.globalIdField=this._relatedLayer.globalIdField,this.hasM=this._relatedLayer.supportsM,this.hasZ=this._relatedLayer.supportsZ,this.typeIdField=this._relatedLayer.typeIdField,this.types=this._relatedLayer.types,this.subtypeField=this._relatedLayer.subtypeField,this.subtypes=this._relatedLayer.subtypes}async databaseType(){return this._databaseType=await this._relatedLayer.databaseType(),this._databaseType}isTable(){return this._relatedLayer.isTable()}async _queryAll(){return(await this.query({abortSignal:o._})).features}async query(e){if(await this._ensureLoaded(),await this.databaseType(),this.isTable()&&null!=e.spatialFilter)return h.An;const t=this._layer.nativeCapabilities();if(!1===t.canQueryRelated)return h.An;if(t.capabilities?.queryRelated.supportsPagination)return this._queryUsingPaging(t.source,e);let r=null,i=!1;null!=e.orderBy&&t.capabilities?.queryRelated.supportsOrderBy&&(r=e.orderBy.toOrderByFields(),i=!0);const a=new L.default;return a.objectIds=[this._findObjectId],a.outFields=null!==this._overrideFields?this._overrideFields:this._fieldsIncludingObjectId(this._relatedLayer.fields?this._relatedLayer.fields.map(e=>e.name):["*"]),a.relationshipId=this.relationship.id,a.where="1=1",a.returnGeometry=!0!==this._removeGeometry,a.outSpatialReference=this.spatialReference,a.orderByFields=r,{filterApplied:null==e.where,spatialFilterApplied:null==e.spatialFilter,ordered:i,features:async function*(){const r=await t.source.queryRelatedFeatures(a);(0,d.dZ)(e.abortSignal),yield r[this._findObjectId]?r[this._findObjectId].features:[]}.apply(this)}}async _queryUsingPaging(e,t){let r=null==t.where&&null==t.spatialFilter,i=null,a=!1;const s=this._layer.nativeCapabilities();null!=t.orderBy&&(s.capabilities?.queryRelated.supportsOrderBy?(i=t.orderBy.toOrderByFields(),a=!0):r=!1),await this.databaseType();let n=this._maxQueryRate();const l=s.capabilities?.query.maxRecordCount;null!=l&&l<n&&(n=l);const o=new L.default;return o.relationshipId=this.relationship.id,o.objectIds=[this._findObjectId],o.outFields=null!==this._overrideFields?this._overrideFields:this._fieldsIncludingObjectId(this._relatedLayer.fields?this._relatedLayer.fields.map(e=>e.name):["*"]),o.where="1=1",o.orderByFields=i,o.returnGeometry=!0!==this._removeGeometry,o.outSpatialReference=this.spatialReference,{filterApplied:null==t.where,spatialFilterApplied:null==t.spatialFilter,ordered:a,features:this._queryPaginated(e,o,n,r?t.limit:null,t.abortSignal)}}async*_queryPaginated(e,t,r,i,a){let s;t.num=null!=i?Math.min(i,r):r,t.start=0;do{(0,d.dZ)(a),s=(await e.queryRelatedFeatures(t))[this._findObjectId]??{exceededTransferLimit:!1,features:[]},yield s.features,t.start+=s.features.length,t.num=null!=i?Math.min(i-t.start,r):r}while(!0===s.exceededTransferLimit)}async queryStat(e){return{calculated:!1}}async canQueryAggregate(e){return!1}async queryAggregate(e){throw new d.dr("NeverReach")}_fieldsIncludingObjectId(e){if(null===e)return[this.objectIdField];const t=e.slice();if(t.includes("*"))return t;let r=!1;for(const e of t)if(e.toUpperCase()===this.objectIdField.toUpperCase()){r=!0;break}return r||t.push(this.objectIdField),t}get gdbVersion(){return this._relatedLayer.gdbVersion}relationshipMetadata(){return this._relatedLayer.relationshipMetadata()}serviceUrl(){return this._relatedLayer.serviceUrl()}queryAttachments(e,t,r,i,a){return this._relatedLayer.queryAttachments(e,t,r,i,a)}getFeatureByObjectId(e,t){return this._relatedLayer.getFeatureByObjectId(e,t)}getOwningSystemUrl(){return this._relatedLayer.getOwningSystemUrl()}getIdentityUser(){return this._relatedLayer.getIdentityUser()}getDataSourceFeatureSet(){return this._relatedLayer}get preferredTimeZone(){return this._relatedLayer.preferredTimeZone??null}get dateFieldsTimeZone(){return this._relatedLayer.dateFieldsTimeZone??null}get datesInUnknownTimezone(){return this._relatedLayer.datesInUnknownTimezone}get editFieldsInfo(){return this._relatedLayer.editFieldsInfo??null}get timeInfo(){return this._relatedLayer.timeInfo??null}getFeatureSetInfo(){return this._relatedLayer.getFeatureSetInfo()}}var x=r(23732),O=r(92474),k=r(4146),q=r(99680),Z=r(89160),U=r(80812);function N(){null===x.A.applicationCache&&(x.A.applicationCache=new x.A)}async function P(e,t,r){if(x.A.applicationCache){const r=x.A.applicationCache.getLayerInfo(e);if(r){const i=await r;return new F.default({url:e,outFields:t,sourceJSON:i})}const i=new F.default({url:e,outFields:t}),a=(async()=>(await i.load(),i.sourceJSON))();if(x.A.applicationCache){x.A.applicationCache.setLayerInfo(e,a);try{return await a,i}catch(t){throw x.A.applicationCache.clearLayerInfo(e),t}}return await a,i}if(null!=r){const i=r.getCachedLayerMetadata(e);if(i){const r=await i;return new F.default({url:e,outFields:t,sourceJSON:r})}const a=new F.default({url:e,outFields:t}),s=(async()=>(await a.load(),a.sourceJSON))();r.setCachedLayerMetadata(e,s);try{return await s,a}catch(t){throw r.removeCachedLayerMetadata(e,s),t}}return new F.default({url:e,outFields:t})}async function D(e,t,r,i,a,s=null){return E(await P(e,["*"],a),t,r,i,a,s)}function E(e,t=null,r=null,i=!0,a=null,s=null){switch(e.type){case"catalog-footprint":return E(e.parent,t,r,i,a,s);case"subtype-sublayer":{const l=E(e.parent,t,r,i,a,s);return new n.A({parentfeatureset:l,whereclause:w.A.create(e.parent.subtypeField+"="+e.subtypeCode.toString(),{fieldsIndex:e.parent.fieldsIndex,timeZone:l.dateFieldsTimeZoneDefaultUTC})})}case"csv":case"geojson":case"knowledge-graph-sublayer":case"wfs":return new R.A({layer:e,spatialReference:t,outFields:r,includeGeometry:i,lrucache:a,interceptor:s});case"parquet":return new M({layer:e,spatialReference:t,outFields:r,includeGeometry:i});case"catalog":case"feature":case"oriented-imagery":case"subtype-group":{const n={layer:e,spatialReference:t,outFields:r,includeGeometry:i,lrucache:a,interceptor:s};return!e.url&&e.source?new R.A(n):new A(n)}default:throw new Error(`Unsupported layer type: ${e.type}`)}}async function B(e,t){if(null!==x.A.applicationCache){const t=x.A.applicationCache.getLayerInfo(e);if(null!==t)return t}if(null!=t){const r=t.getCachedServiceMetadata(e);if(null!=r)return r}const r=(async()=>{const t=await(0,i.A)(e,{responseType:"json",query:{f:"json"},authMode:"no-prompt"});if(t.data){const e=t.data;return e.layers||(e.layers=[]),e.tables||(e.tables=[]),e}return{layers:[],tables:[]}})();if(null!==x.A.applicationCache){x.A.applicationCache.setLayerInfo(e,r);try{return await r}catch(t){throw x.A.applicationCache.clearLayerInfo(e),t}}if(null!=t){t.setCachedServiceMetadata(e,r);try{return await r}catch(i){throw t.removeCachedServiceMetadata(e,r),i}}return r}async function G(e,t,r){const a={metadata:null,networkId:-1,unVersion:3,terminals:[],layerIdLookup:new Map,sourceIdLookup:new Map,queryelem:null,layerNameLkp:{},lkp:null},s=await B(e,null);if(a.metadata=s,void 0!==s.controllerDatasetLayers?.utilityNetworkLayerId&&null!==s.controllerDatasetLayers.utilityNetworkLayerId){if(s.layers)for(const e of s.layers)a.layerNameLkp[e.id]=e.name;if(s.tables)for(const e of s.tables)a.layerNameLkp[e.id]=e.name;const l=s.controllerDatasetLayers.utilityNetworkLayerId;a.networkId=l;const o=await async function(e,t){const r="QUERYDATAELEMTS:"+t.toString()+":"+e;if(null!==x.A.applicationCache){const e=x.A.applicationCache.getLayerInfo(r);if(null!==e)return e}const a=(async()=>{const r=await(0,i.A)(e+"/queryDataElements",{method:"post",responseType:"json",query:{layers:JSON.stringify([t.toString()]),f:"json"}});if(r.data){const e=r.data;if(e.layerDataElements?.[0])return e.layerDataElements[0]}throw new d.dr("DataElementsNotFound")})();if(null!==x.A.applicationCache){x.A.applicationCache.setLayerInfo(r,a);try{return await a}catch(e){throw x.A.applicationCache.clearLayerInfo(r),e}}return a}(e,l);if(o){a.queryelem=o,a.queryelem?.dataElement&&void 0!==a.queryelem.dataElement.schemaGeneration&&(a.unVersion=a.queryelem.dataElement.schemaGeneration),a.lkp={},a.queryelem.dataElement.domainNetworks||(a.queryelem.dataElement.domainNetworks=[]);for(const e of a.queryelem.dataElement.domainNetworks){for(const t of e.edgeSources??[]){const e={layerId:t.layerId,sourceId:t.sourceId,className:a.layerNameLkp[t.layerId]??null};a.layerIdLookup.set(e.layerId,e),a.sourceIdLookup.set(e.sourceId,e),e.className&&(a.lkp[e.className]=e)}for(const t of e.junctionSources??[]){const e={layerId:t.layerId,sourceId:t.sourceId,className:a.layerNameLkp[t.layerId]??null};a.layerIdLookup.set(e.layerId,e),a.sourceIdLookup.set(e.sourceId,e),e.className&&(a.lkp[e.className]=e)}}if(a.queryelem.dataElement.terminalConfigurations)for(const e of a.queryelem.dataElement.terminalConfigurations)for(const t of e.terminals)a.terminals.push({terminalId:t.terminalId,terminalName:t.terminalName});const s=await async function(e){if(null!==x.A.applicationCache){const t=x.A.applicationCache.getLayerInfo(e);if(null!==t)return t}const t=(async()=>{const t=await(0,i.A)(e,{responseType:"json",query:{f:"json"}});return t.data?t.data:null})();if(null!==x.A.applicationCache){x.A.applicationCache.setLayerInfo(e,t);try{return await t}catch(t){throw x.A.applicationCache.clearLayerInfo(e),t}}return t}(e+"/"+l);if(void 0!==s.systemLayers?.associationsTableId&&null!==s.systemLayers.associationsTableId){let i=null;if(r&&a.unVersion<8){const r=[];a.unVersion>=4&&(r.push("STATUS"),r.push("PERCENTALONG")),i=await D(e+"/"+s.systemLayers.associationsTableId,t,["OBJECTID","FROMNETWORKSOURCEID","TONETWORKSOURCEID","FROMGLOBALID","TOGLOBALID","TOTERMINALID","FROMTERMINALID","ASSOCIATIONTYPE","ISCONTENTVISIBLE","GLOBALID",...r],!1,null,null),await i.load(),a.unVersion>=4&&(i=new n.A({parentfeatureset:i,whereclause:w.A.create("STATUS NOT IN (1, 2, 3, 4, 5, 6, 7, 9, 10, 11, 12, 13, 14, 15, 17, 18, 19, 20, 21, 22, 23, 25, 26, 27, 28, 29, 30, 31, 33, 34, 35, 36, 37, 38, 39, 41, 42, 43, 44, 45, 46, 47, 49, 50, 51, 52, 53, 54, 55, 57, 58, 59, 60, 61, 62, 63)",{fieldsIndex:i.getFieldsIndex(),timeZone:i.dateFieldsTimeZoneDefaultUTC})}),await i.load())}return{lkp:a.lkp,associations:i,unVersion:a.unVersion,terminals:a.terminals,layerIdLookup:a.layerIdLookup,sourceIdLookup:a.sourceIdLookup}}return{associations:null,unVersion:a.unVersion,lkp:null,terminals:[],layerIdLookup:new Map,sourceIdLookup:new Map}}return{associations:null,unVersion:a.unVersion,lkp:null,terminals:[],layerIdLookup:new Map,sourceIdLookup:new Map}}return{associations:null,unVersion:a.unVersion,lkp:null,terminals:[],layerIdLookup:new Map,sourceIdLookup:new Map}}async function Q(e,t,r,i=null,a=null,s=!0,n=null,l=null){let o=e.serviceUrl();if(!o)return null;o=o.endsWith("/")?o+t.relatedTableId.toString():o+"/"+t.relatedTableId.toString();const u=await D(o,i,a,s,n,l);return new j({layer:e,relatedLayer:u,relationship:t,objectId:r,spatialReference:i,outFields:a,includeGeometry:s,lrucache:n,interceptor:l})}class J extends a{constructor(e,t=null,r=null,i=null){super(),this._map=e,this._overrideSpatialReference=t,this._lrucache=r,this._interceptor=i,this._instantLayers=[]}_makeAndAddFeatureSet(e,t=!0,r=null){const i=E(e,this._overrideSpatialReference,null===r?["*"]:r,t,this._lrucache,this._interceptor);return this._instantLayers.push({featureset:i,opitem:e,includeGeometry:t,outFields:JSON.stringify(r)}),i}async listAll(){(0,O.Zm)(this._map)&&!this._map.loaded&&await this._map.load();const e=this._map.allLayers.toArray().filter(e=>(0,p.eB)(e)).map(e=>({id:e.id,name:e.title})),t=this._map.allTables.toArray().filter(e=>(0,p.eB)(e)).map(e=>({id:e.id,name:e.title}));return e.concat(t)}async featureSetByName(e,t=!0,r=null){if((0,O.Zm)(this._map)&&!this._map.loaded)return await this._map.load(),this.featureSetByName(e,t,r);null===r&&(r=["*"]),r=(r=r.slice()).sort();const i=JSON.stringify(r);for(let r=0;r<this._instantLayers.length;r++){const a=this._instantLayers[r];if(a.opitem.title===e&&a.includeGeometry===t&&a.outFields===i)return this._instantLayers[r].featureset}const a=this._map.allLayers.find(t=>(0,p.eB)(t)&&t.title===e);if(null!=a)return this._makeAndAddFeatureSet(a,t,r);if(this._map.allTables){const i=this._map.allTables.find(t=>(0,p.eB)(t)&&t.title===e);if(null!=i)return this._makeAndAddFeatureSet(i,t,r)}return null}async featureSetById(e,t=!0,r=["*"]){if((0,O.Zm)(this._map)&&!this._map.loaded)return await this._map.load(),this.featureSetById(e,t,r);null===r&&(r=["*"]),r=(r=r.slice()).sort();const i=JSON.stringify(r);for(let r=0;r<this._instantLayers.length;r++){const a=this._instantLayers[r];if(a.opitem.id===e&&a.includeGeometry===t&&a.outFields===i)return this._instantLayers[r].featureset}const a=this._map.allLayers.find(t=>(0,p.eB)(t)&&t.id===e);if(a)return this._makeAndAddFeatureSet(a,t,r);if(this._map.allTables){const i=this._map.allTables.find(t=>(0,p.eB)(t)&&t.id===e);if(null!=i)return this._makeAndAddFeatureSet(i,t,r)}return null}}class $ extends a{constructor(e,t=null,r=null,i=null){super(),this._url=e,this._overrideSpatialReference=t,this._lrucache=r,this._interceptor=i,this.metadata=null,this._instantLayers=[]}get url(){return this._url}_makeAndAddFeatureSet(e,t=!0,r=null){const i=E(e,this._overrideSpatialReference,null===r?["*"]:r,t,this._lrucache);return this._instantLayers.push({featureset:i,opitem:e,includeGeometry:t,outFields:JSON.stringify(r)}),i}async _loadMetaData(){const e=await B(this._url,this._lrucache);return this.metadata=e,e}load(){return this._loadMetaData()}clone(){return new $(this._url,this._overrideSpatialReference,this._lrucache,this._interceptor)}async listAll(){const e=await this._loadMetaData();return e.layers.concat(e.tables)}async featureSetByName(e,t=!0,r=null){null===r&&(r=["*"]),r=(r=r.slice()).sort();const i=JSON.stringify(r);for(let r=0;r<this._instantLayers.length;r++){const a=this._instantLayers[r];if(a.opitem.title===e&&a.includeGeometry===t&&a.outFields===i)return this._instantLayers[r].featureset}const a=await this._loadMetaData();let s=null;for(const t of a.layers??[])t.name===e&&(s=t);if(!s)for(const t of a.tables??[])t.name===e&&(s=t);if(s){const e=await P(this._url+"/"+s.id,["*"],this._lrucache);return this._makeAndAddFeatureSet(e,t,r)}return null}async featureSetById(e,t=!0,r=["*"]){null===r&&(r=["*"]),r=(r=r.slice()).sort();const i=JSON.stringify(r);e=null!=e?e.toString():"";for(let r=0;r<this._instantLayers.length;r++){const a=this._instantLayers[r];if(a.opitem.id===e&&a.includeGeometry===t&&a.outFields===i)return this._instantLayers[r].featureset}const a=await this._loadMetaData();let s=null;for(const t of a.layers??[])null!==t.id&&void 0!==t.id&&t.id.toString()===e&&(s=t);if(!s)for(const t of a.tables??[])null!==t.id&&void 0!==t.id&&t.id.toString()===e&&(s=t);if(s){const e=await P(this._url+"/"+s.id,["*"],this._lrucache);return this._makeAndAddFeatureSet(e,t,r)}return null}}function V(e,t,r=null,i=null){return new J(e,t,r,i)}function Y(e,t,r=null,i=null){return new $(e,t,r,i)}function K(e,t,r,i,a){if(null===e)return null;if((0,s.k)(e)){switch(t){case"datasource":return e.getDataSourceFeatureSet();case"parent":return e;case"root":return e.getRootFeatureSet()}return null}if(e instanceof k.A&&(0,p.eB)(e)){switch(t){case"datasource":return E(e,a,"outFields"in e?e.outFields:null,!0,r,i).getDataSourceFeatureSet();case"parent":case"root":return E(e,a,"outFields"in e?e.outFields:null,!0,r,i)}return null}if((0,s.a4)(e)){switch(t){case"datasource":return E(e.parent,a,e.parent.outFields,!0,r,i).getDataSourceFeatureSet();case"parent":case"root":return E(e,a,e.parent.outFields,!0,r,i)}return null}return null}async function z(e,t,r,i,a,s,n,l=null){if(x.A.applicationCache){const o=x.A.applicationCache.getLayerInfo(e+":"+s.url);if(o)return W(await o,t,r,i,a,n,l)}if(null!=n){const o=n.getCachedPortalItem(s.url,e);if(null!=o)return await W(await o,t,r,i,a,n,l)}const o=new U.default({id:e,portal:s}).load();x.A.applicationCache?x.A.applicationCache.setLayerInfo(e+":"+s.url,o):null!=n&&n.setCachedPortalItem(s.url,e,o);try{return await W(await o,t,r,i,a,n,l)}catch(t){throw x.A.applicationCache&&x.A.applicationCache.clearLayerInfo(e+":"+s.url),null!=n&&n.removeCachedPortalItem(s.url,e,o),t}}const H=new Set(["Apache Parquet","Parquet layer","Parquet Layer","Parquet feature layer","Parquet Feature Layer"]);async function W(e,t,r,i,a,s,n){let l;if("Feature Service"===e.type||"Map Service"===e.type)l=await P((0,p.Qi)(e.url??"")+"/"+t,["*"],s);else{if(t)throw new Error(`layerId=${t} provided for ${e.type} item`);if(null!=s){const t=s.getCachedPortalItemLayer(e.portal.url,e.id);if(null!=t)l=await t;else{const t=H.has(e.type)?Promise.resolve(new q.default({data:new Z.A({portalItem:e})})):k.A.fromPortalItem(e);s.setCachedPortalItemLayer(e.portal.url,e.id,t);try{l=await t}catch(r){throw s.removeCachedPortalItemLayer(e.portal.url,e.id,t),r}}}else l=H.has(e.type)?new q.default({data:new Z.A({portalItem:e})}):await k.A.fromPortalItem(e)}return E(l,r,i,a,s,n)}},35704(e,t,r){r.d(t,{A:()=>u});var i=r(48938),a=r(87449),s=r(11221),n=r(33325),l=r(80609),o=r(89696);class u extends s.t1{constructor(e){super(),this.declaredClass="esri.arcade.featureset.actions.AttributeFilter",this._maxProcessing=1e3,this._parent=e.parentfeatureset,e.whereclause instanceof o.A?(this._whereClause=e.whereclause,this._whereClauseFunction=null):(this._whereClauseFunction=e.whereclause,this._whereClause=null)}_initialiseFeatureSet(){this.fields=this._parent.fields.slice(),this.geometryType=this._parent.geometryType,this.objectIdField=this._parent.objectIdField,this.globalIdField=this._parent.globalIdField,this.spatialReference=this._parent.spatialReference,this.hasM=this._parent.hasM,this.hasZ=this._parent.hasZ,this.typeIdField=this._parent.typeIdField,this.types=this._parent.types,this.subtypeField=this._parent.subtypeField,this.subtypes=this._parent.subtypes}async _queryAll(){return(await this.query({abortSignal:i._})).features}async query(e){let t=e.where,r=!0;null!==this._whereClauseFunction?r=!1:null!=t?null!==this._whereClause&&(t=(0,l.kg)(this._whereClause,t)):t=this._whereClause,await this._ensureLoaded();const i=await this._parent.query({...e,where:t,limit:r?e.limit:null});return(0,a.dZ)(e.abortSignal),i.filterApplied&&null==this._whereClauseFunction?i:{...i,features:this._applyFilter(i.features,e.abortSignal)}}async*_applyFilter(e,t){for await(const r of e)if((0,a.dZ)(t),null!=this._whereClause){const e=r.filter(e=>this._whereClause.testFeature(e));e.length>0&&(yield e)}else if(null!=this._whereClauseFunction){const e=[];for(const t of r)await this._whereClauseFunction(t)&&e.push(t);e.length>0&&(yield e)}else yield r}async queryStat(e){if(null!==this._whereClauseFunction)return null==e.where&&null==e.spatialFilter?this._manualStat(e.stat,e.field,e.limit??n.gO,e.abortSignal):{calculated:!1};let t=this._whereClause;null!=e.where&&null!==this._whereClause&&(t=(0,l.kg)(this._whereClause,e.where));const r=await this._parent.queryStat({...e,where:t});return r.calculated?r:null==e.where&&null==e.spatialFilter?this._manualStat(e.stat,e.field,e.limit??n.gO,e.abortSignal):{calculated:!1}}async canQueryAggregate(e){if(null!==this._whereClauseFunction)return!1;let t=e.where;return null!=t?null!==this._whereClause&&(t=(0,l.kg)(this._whereClause,t)):t=this._whereClause,this._parent.canQueryAggregate({...e,where:t})}async queryAggregate(e){let t=e.where;return null!=t?null!==this._whereClause&&(t=(0,l.kg)(this._whereClause,t)):t=this._whereClause,this._parent.queryAggregate({...e,where:t})}getFieldsIndex(){return this._parent.getFieldsIndex()}}},30235(e,t,r){r.d(t,{A:()=>y});var i=r(48938),a=r(87449),s=r(11221),n=r(33325),l=r(80609),o=r(4576),u=r(39516),c=r(91075),d=r(53781),h=r(33143),p=r(20437);class y extends s.Jn{constructor(e){super(),this.declaredClass="esri.arcade.featureset.sources.FeatureLayerMemory",this._removeGeometry=!1,this._overrideFields=null,this._forceIsTable=!1,this._maxProcessing=1e3,this._layer=e.layer,e.spatialReference&&(this.spatialReference=e.spatialReference),!0===e.isTable&&(this._forceIsTable=!0),void 0!==e.outFields&&(this._overrideFields=e.outFields),void 0!==e.includeGeometry&&(this._removeGeometry=!1===e.includeGeometry)}_maxQueryRate(){return n.gO}async loadImpl(){return!0===this._layer.loaded?(this._initialiseFeatureSet(),this):(await this._layer.load(),this._initialiseFeatureSet(),this)}get gdbVersion(){return""}_initialiseFeatureSet(){if(this.spatialReference??=this._layer.spatialReference,this.geometryType=this._layer.geometryType??"",this.fields=this._layer.fields.slice(),null!==this._overrideFields)if(1===this._overrideFields.length&&"*"===this._overrideFields[0])this._overrideFields=null;else{const e=new Set(this._overrideFields.map(e=>e.toLowerCase()));this.fields=this.fields.filter(({type:t,name:r})=>"oid"===t||this._layer.objectIdField===r||e.has(r.toLowerCase())),this._overrideFields=this.fields.map(({name:e})=>e)}this.objectIdField=this._layer.objectIdField;for(const e of this.fields)"global-id"===e.type&&(this.globalIdField=e.name);this._databaseType=0,this.hasZ=!0===this._layer.capabilities?.data?.supportsZ,this.hasM=!0===this._layer.capabilities?.data?.supportsM,this.subtypeField=("subtypeField"in this._layer?this._layer.subtypeField:null)??"",this.subtypes="subtypes"in this._layer?this._layer.subtypes:null,this.typeIdField=("typeIdField"in this._layer?this._layer.typeIdField:null)??"",this.types="types"in this._layer?this._layer.types:null}isTable(){return this._forceIsTable||"isTable"in this._layer&&this._layer.isTable||"table"===this._layer.type||!this._layer.geometryType}async _queryAll(){return(await this.query({abortSignal:i._})).features}_queryLayerFeaturesJSON(e){return"queryFeaturesJSON"in this._layer?this._layer.queryFeaturesJSON(e):this._layer.source.queryFeaturesJSON(e)}async query(e){await this._ensureLoaded();let t=null,r=!1;if(null!=e.orderBy&&(t=e.orderBy.toOrderByFields(),r=!0),this.isTable()&&null!=e.spatialFilter)return s.An;const i=this._createQuery();return i.where=(0,u.mA)(i.where,null==e.where?null==e.spatialFilter?"1=1":"":(0,l.YY)(e.where,0)),null!=e.spatialFilter&&(i.spatialRelationship=this._makeRelationshipEnum(e.spatialFilter.relation),i.relationParameter=this._makeRelationshipParam(e.spatialFilter.relation),i.geometry=e.spatialFilter.geometry),i.outSpatialReference=this.spatialReference,i.orderByFields=t,i.num=e.limit,{filterApplied:!0,spatialFilterApplied:!0,ordered:r,features:async function*(){const t=await this._queryLayerFeaturesJSON(i);(0,a.dZ)(e.abortSignal);for(const e of(0,o.Ho)(t.features,this._maxQueryRate()))(0,s.Rn)(e,t.spatialReference??this.spatialReference.toJSON()),yield e}.apply(this)}}async queryStat(e){return{calculated:!1}}async canQueryAggregate(e){return!1}async queryAggregate(e){throw new a.dr("NeverReach")}_createQuery(){const e=this._layer.createQuery();return e.returnZ=this.hasZ,e.returnM=this.hasM,e.outFields=this._overrideFields??["*"],e.returnGeometry=!this._removeGeometry,e}_makeRelationshipEnum(e){if(e.includes("esriSpatialRelRelation"))return"relation";switch(e){case"esriSpatialRelRelation":return"relation";case"esriSpatialRelIntersects":return"intersects";case"esriSpatialRelContains":return"contains";case"esriSpatialRelOverlaps":return"overlaps";case"esriSpatialRelWithin":return"within";case"esriSpatialRelTouches":return"touches";case"esriSpatialRelCrosses":return"crosses";case"esriSpatialRelEnvelopeIntersects":return"envelope-intersects"}return e}_makeRelationshipParam(e){return e.includes("esriSpatialRelRelation")?e.split(":")[1]:""}relationshipMetadata(){return[]}nativeCapabilities(){return{title:this._layer.title??"",canQueryRelated:!1,source:this,capabilities:this._layer.capabilities,databaseType:this._databaseType,requestStandardised:!0}}static create(e,t){let r=e.layerDefinition.objectIdField;const i=e.layerDefinition.typeIdField??"",a=[];if(e.layerDefinition.types)for(const t of e.layerDefinition.types)a.push(h.A.fromJSON(t));let s=e.layerDefinition.geometryType;void 0===s&&(s=e.featureSet.geometryType||"");let n=e.featureSet.features;if(!r){let t=!1;for(const i of e.layerDefinition.fields)if("oid"===i.type||"esriFieldTypeOID"===i.type){r=i.name,t=!0;break}if(!1===t){let t="FID",i=!0,a=0;for(;i;){let r=!0;for(const i of e.layerDefinition.fields)if(i.name===t){r=!1;break}!0===r?i=!1:(a++,t="FID"+a.toString())}e.layerDefinition.fields.push({type:"esriFieldTypeOID",name:t,alias:t});const s=[];for(let r=0;r<n.length;r++)s.push({geometry:e.featureSet.features[r].geometry,attributes:{...e.featureSet.features[r].attributes,[t]:r}});n=s,r=t}}const l=[];for(const t of e.layerDefinition.fields)t instanceof p.A?l.push(t):l.push(p.A.fromJSON(t));let o=s;switch(o||(o=""),o){case"esriGeometryPoint":o="point";break;case"esriGeometryPolyline":o="polyline";break;case"esriGeometryPolygon":o="polygon";break;case"esriGeometryEnvelope":o="extent";break;case"esriGeometryMultipoint":o="multipoint";break;case"":case"esriGeometryNull":o="esriGeometryNull"}if("esriGeometryNull"!==o){const e=t.toJSON();for(const t of n)t.geometry&&t.geometry instanceof c.A==0&&(t.geometry.type=o,void 0===t.geometry.spatialReference&&(t.geometry.spatialReference=e))}else for(const e of n)e.geometry&&(e.geometry=null);const u={outFields:["*"],source:n,fields:l,hasZ:!0===e.layerDefinition.hasZ||!0===e.featureSet.hasZ,hasM:!0===e.layerDefinition.hasM||!0===e.featureSet.hasM,types:a,typeIdField:i,objectIdField:r,spatialReference:t},f="esriGeometryNull"===o||null===o;f||(u.geometryType=o);const m=new d.default(u);return e.layerDefinition.subtypeField&&e.layerDefinition.subtypes&&m.read({subtypes:e.layerDefinition.subtypes,subtypeField:e.layerDefinition.subtypeField}),new y({layer:m,spatialReference:t,isTable:f})}async queryAttachments(){return[]}async getFeatureByObjectId(e){const t=this._createQuery();t.where=this.objectIdField+"="+e.toString();const r=await this._queryLayerFeaturesJSON(t);return 1===r.features.length?((0,s.Rn)(r.features,r.spatialReference??this.spatialReference.toJSON()),r.features[0]):null}serviceUrl(){return""}async getOwningSystemUrl(){return""}async getIdentityUser(){return""}get preferredTimeZone(){return"preferredTimeZone"in this._layer?this._layer.preferredTimeZone:null}get dateFieldsTimeZone(){return"dateFieldsTimeZone"in this._layer?this._layer.dateFieldsTimeZone:null}get datesInUnknownTimezone(){return"datesInUnknownTimezone"in this._layer&&this._layer.datesInUnknownTimezone}get editFieldsInfo(){return"editFieldsInfo"in this._layer?this._layer.editFieldsInfo:null}get timeInfo(){return"timeInfo"in this._layer?this._layer.timeInfo:null}async getFeatureSetInfo(){const e=this._layer.title&&this._layer.parent;return{layerId:null,layerName:null,itemId:null,serviceLayerUrl:null,webMapLayerId:e?this._layer.id??null:null,webMapLayerTitle:e?this._layer.title??null:null,className:null,objectClassId:null}}}},16494(e,t,r){r.d(t,{Nd:()=>l,W5:()=>n});var i=r(17632);const a=["dd","dl","dt","h1","h2","h3","h4","h5","h6","sub","sup","animate","animatetransform","circle","clippath","defs","ellipse","g","image","line","lineargradient","marker","mask","path","pattern","polygon","polyline","radialgradient","rect","stop","svg","switch","symbol","text","textpath","tspan","use"].reduce((e,t)=>(e[t]=[],e),{}),s=["align","alink","alt","bgcolor","border","cellpadding","cellspacing","class","color","cols","colspan","coords","d","dir","face","height","hspace","ismap","lang","marginheight","marginwidth","multiple","nohref","noresize","noshade","nowrap","ref","rel","rev","rows","rowspan","scrolling","shape","span","summary","tabindex","title","usemap","valign","value","vlink","vspace","width"],n=new i.I({whiteList:a,onTagAttr:(e,t,r)=>{const i=`${t}="${r}"`;if(s.includes(t))return i},stripIgnoreTag:!0,stripIgnoreTagBody:["script","style"]},!0),l=new i.I({whiteList:{br:[]},stripIgnoreTag:!0,escapeHtml:e=>e},!1)},159(e,t,r){r.d(t,{A:()=>u});var i,a=r(5482),s=r(69540),n=r(25482),l=r(91429),o=r(99157);let u=i=class extends((0,s.OU)(n.o)){constructor(e){super(e),this.steps=[]}getInverse(){const e=new i;for(let t=this.steps.length-1;t>=0;t--){const r=this.steps[t];e.steps.push(r.getInverse())}return e}};(0,a.Cg)([(0,l.MZ)({type:[o.A],nonNullable:!0,json:{name:"geoTransforms"}})],u.prototype,"steps",void 0),u=i=(0,a.Cg)([(0,l.$K)("esri.geometry.operators.support.GeographicTransformation")],u)},99157(e,t,r){r.d(t,{A:()=>o});var i,a=r(5482),s=r(69540),n=r(25482),l=r(91429);let o=i=class extends((0,s.OU)(n.o)){constructor(e){super(e),this.isInverse=!1,this.wkt=null,this.wkid=null}getInverse(){return new i({isInverse:!this.isInverse,wkid:this.wkid,wkt:this.wkt})}};(0,a.Cg)([(0,l.MZ)({json:{name:"transformForward",read:e=>!e,write:(e,t,r)=>{t[r]=!e}}})],o.prototype,"isInverse",void 0),(0,a.Cg)([(0,l.MZ)({json:{write:!0}})],o.prototype,"wkt",void 0),(0,a.Cg)([(0,l.MZ)({json:{write:!0}})],o.prototype,"wkid",void 0),o=i=(0,a.Cg)([(0,l.$K)("esri.geometry.operators.support.GeographicTransformationStep")],o)},9762(e,t,r){r.r(t),r.d(t,{projectBuffer:()=>a});var i=r(49208);function a(e,t,r,a,s,n,l=Math.floor(e.length/3)){const o=(0,i.jd)(t,s);if(null==o)return!1;if(o===i.pO){if(e===a&&r===n)return!0;const t=r+3*l;for(let i=r,s=n;i<t;i++,s++)a[s]=e[i]??0;return!0}const u=r+3*l;for(let t=r,i=n;t<u;t+=3,i+=3)o(e,t,a,i);return!0}},49208(e,t,r){r.d(t,{Tp:()=>d,jd:()=>c,pO:()=>p,w5:()=>u});var i=r(34727),a=r(86211),s=r(73941),n=r(79258),l=r(34403),o=r(21325);const u={2:{5:p,7:null,9:null,10:p,1:b,6:null,8:null,0:null,3:f,11:m,2:p,4:A},5:{5:p,7:null,9:null,10:p,1:b,6:null,8:null,0:null,3:f,11:m,2:p,4:A},7:{5:null,7:p,9:null,10:p,1:null,6:F,8:null,0:null,3:null,11:null,2:null,4:null},9:{5:null,7:null,9:p,10:p,1:null,6:null,8:w,0:null,3:null,11:null,2:null,4:null},3:{5:y,7:null,9:null,10:y,1:function(e,t,r,i){const a=e[t]/x,s=j-2*Math.atan(Math.exp(-e[t+1]/x)),n=x+(e[t+2]??0),l=Math.cos(s)*n;r[i]=Math.cos(a)*l,r[i+1]=Math.sin(a)*l,r[i+2]=Math.sin(s)*n},6:null,8:null,0:null,3:p,11:function(e,t,r,i){y(e,t,r,i),m(r,i,r,i)},2:y,4:function(e,t,r,i){y(e,t,r,i),A(r,i,r,i)}},4:{5:R,7:null,9:null,10:R,1:function(e,t,r,i){R(e,t,r,i),b(r,i,r,i)},6:null,8:null,0:null,3:function(e,t,r,i){R(e,t,r,i),f(r,i,r,i)},11:function(e,t,r,i){R(e,t,r,i),m(r,i,r,i)},2:R,4:p},1:{5:T,7:null,9:null,10:T,1:p,6:null,8:null,0:null,3:function(e,t,r,i){T(e,t,r,i),f(r,i,r,i)},11:function(e,t,r,i){T(e,t,r,i),m(r,i,r,i)},2:T,4:function(e,t,r,i){T(e,t,r,i),A(r,i,r,i)}},6:{5:null,7:v,9:null,10:v,1:null,6:p,8:null,0:null,3:null,11:null,2:null,4:null},8:{5:null,7:null,9:S,10:S,1:null,6:null,8:p,0:null,3:null,11:null,2:null,4:null},0:{5:null,7:null,9:null,10:null,1:null,6:null,8:null,0:p,3:null,11:null,2:null,4:null},10:{5:p,7:p,9:p,10:p,1:b,6:F,8:w,0:null,3:f,11:m,2:p,4:A},11:{5:g,7:null,9:null,10:g,1:function(e,t,r,i){g(e,t,r,i),b(r,i,r,i)},6:null,8:null,0:null,3:function(e,t,r,i){g(e,t,r,i),f(r,i,r,i)},11:p,2:g,4:function(e,t,r,i){g(e,t,r,i),A(r,i,r,i)}}};function c(e,t){return d(e,t)?.projector}function d(e,t){if(null==e||null==t)return null;if(C.source.spatialReference===e&&C.dest.spatialReference===t)return C;const r=h(e,C.source),i=h(t,C.dest);return 0===r&&0===i?(0,o.aI)(e,t)?C.projector=p:C.projector=null:C.projector=u[r][i],C}function h(e,t){return e?t.spatialReference===e?t.spatialReferenceId:(t.spatialReference=e,"metersPerUnit"in t&&(t.metersPerUnit=(0,a.GA)(e,1)),(0,s.jA)(e)?t.spatialReferenceId=1:(0,o.oT)(e)?t.spatialReferenceId=2:(0,o.K8)(e)?t.spatialReferenceId=3:(0,o.r1)(e)?t.spatialReferenceId=11:e.wkt===s.Ro.wkt?t.spatialReferenceId=4:4490===e.wkid?t.spatialReferenceId=5:e.wkt===s.FY.wkt?t.spatialReferenceId=6:e.wkt===s.LJ.wkt?t.spatialReferenceId=8:(0,s.q8)(e)?t.spatialReferenceId=7:(0,s.KQ)(e)?t.spatialReferenceId=9:t.spatialReferenceId=0):0}function p(e,t,r,i){e!==r&&(r[i++]=e[t++],r[i++]=e[t++],r[i]=e[t]??0)}function y(e,t,r,i){r[i]=L*(e[t]/x),r[i+1]=L*(j-2*Math.atan(Math.exp(-e[t+1]/x))),r[i+2]=e[t+2]??0}function f(e,t,r,a){!function(e,t,r,a,s){const n=.4999999*Math.PI,l=(0,i.qE)(M*e[t+1],-n,n),o=Math.sin(l);r[a++]=M*e[t]*s.radius,r[a++]=s.halfSemiMajorAxis*Math.log((1+o)/(1-o)),r[a]=e[t+2]??0}(e,t,r,a,n.$O)}function m(e,t,r,i){r[i]=e[t]*O,r[i+1]=e[t+1]*O,r[i+2]=e[t+2]??0}function g(e,t,r,i){r[i]=e[t]*k,r[i+1]=e[t+1]*k,r[i+2]=e[t+2]??0}function _(e,t,r,i,a){const s=a+(e[t+2]??0),n=M*e[t],l=M*e[t+1],o=Math.cos(l)*s;r[i]=Math.cos(n)*o,r[i+1]=Math.sin(n)*o,r[i+2]=Math.sin(l)*s}function w(e,t,r,i){_(e,t,r,i,n.Sw.radius)}function F(e,t,r,i){_(e,t,r,i,n.sH.radius)}function b(e,t,r,i){_(e,t,r,i,n.$O.radius)}function I(e,t,r,a,s){const n=e[t],l=e[t+1],o=e[t+2]??0,u=Math.sqrt(n*n+l*l+o*o),c=(0,i.YN)(o/(0===u?1:u)),d=Math.atan2(l,n);r[a++]=L*d,r[a++]=L*c,r[a]=u-s}function S(e,t,r,i){I(e,t,r,i,n.Sw.radius)}function v(e,t,r,i){I(e,t,r,i,n.sH.radius)}function T(e,t,r,i){I(e,t,r,i,n.$O.radius)}function A(e,t,r,i){!function(e,t,r,i,a){const s=M*e[t],n=M*e[t+1],l=e[t+2]??0,o=Math.sin(n),u=Math.cos(n),c=a.radius/Math.sqrt(1-a.eccentricitySquared*o*o);r[i++]=(c+l)*u*Math.cos(s),r[i++]=(c+l)*u*Math.sin(s),r[i++]=(c*(1-a.eccentricitySquared)+l)*o}(e,t,r,i,n.$O)}function R(e,t,r,i){const a=l.TP,s=e[t],o=e[t+1],u=e[t+2]??0;let c,d,h,p,y,f,m,g,_,w,F,b,I,S,v,T,A,R,C,M,j;c=Math.abs(u),d=s*s+o*o,h=Math.sqrt(d),p=d+u*u,y=Math.sqrt(p),M=Math.atan2(o,s),f=u*u/p,m=d/p,S=a.a2/y,v=a.a3-a.a4/y,m>.3?(g=c/y*(1+m*(a.a1+S+f*v)/y),C=Math.asin(g),w=g*g,_=Math.sqrt(1-w)):(_=h/y*(1-f*(a.a5-S-m*v)/y),C=Math.acos(_),w=1-_*_,g=Math.sqrt(w)),F=1-n.$O.eccentricitySquared*w,b=n.$O.radius/Math.sqrt(F),I=a.a6*b,S=h-b*_,v=c-I*g,A=_*S+g*v,T=_*v-g*S,R=T/(I/F+A),C+=R,j=A+T*R/2,u<0&&(C=-C),r[i++]=L*M,r[i++]=L*C,r[i]=j}const C={source:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},projector:p},M=(0,i.kU)(1),L=(0,i.KJ)(1),j=.5*Math.PI,x=n.$O.radius,O=x*Math.PI/180,k=180/(x*Math.PI)},91218(e,t,r){r.r(t),r.d(t,{canProjectWithoutEngine:()=>$,initializeProjection:()=>Y,isEqualBaseGCS:()=>V,isLoaded:()=>x,isLoadedOrLoad:()=>O,isLoadedOrLoadFor:()=>k,load:()=>Z,project:()=>U,projectAsync:()=>J,projectExtent:()=>ae,projectMany:()=>N,projectMultipoint:()=>W,projectOrLoad:()=>D,projectOrLoadMany:()=>E,projectPoint:()=>z,projectPolygon:()=>re,projectPolyline:()=>ee,projectWithoutEngine:()=>K,requiresLoad:()=>q,test:()=>Q,tryProject:()=>P,unload:()=>G});var i=r(49186),a=r(17676),s=r(62788),n=r(95488),l=r(51850),o=r(21276),u=r(73941),c=r(5443),d=r(91075),h=r(48526),p=r(86738),y=r(39829),f=r(82799),m=r(16930),g=r(98764),_=r(159),w=r(9762),F=r(49208);function b(e,t,r,i,a,s){return I[0]=e,I[1]=t,I[2]=r,(0,w.projectBuffer)(I,i,0,a,s,0)}const I=(0,l.vt)();var S=r(60408),v=r(21325),T=r(52006);let A=null,R=null,C=null,M=null,L={};const j=new n.I;function x(){return!!(R?.isLoaded()&&C?.isLoaded()&&M?.isLoaded())}function O(){return!!x()||((0,s.gc)(j),Z(),!1)}function k(e,t){return!e||!t||$(e,t)||O()}function q(e,t){return!$(e,t)&&!x()}async function Z(e){null==A&&(A=Promise.all([r.e(3276).then(r.bind(r,83276)).then(e=>(R=e,R.load())),r.e(8377).then(r.bind(r,8377)).then(e=>(C=e,C.load())),r.e(2158).then(r.bind(r,12158)).then(e=>(M=e,M.load()))])),await A,(0,a.Te)(e),j.notify()}function U(e,t,r){return Array.isArray(e)?0===e.length?[]:((0,o.H)(e),N(e,e[0].spatialReference,t,r)):((0,o.f)(e),N([e],e.spatialReference,t,r)[0])}function N(e,t,r,i){if(null==t||null==r)return e;if($(t,r,i))return e.map(e=>K(e,t,r));if(null==i?.geographicTransformation&&(0,u.jA)(t))return N(e.map(e=>K(e,t,m.A.WGS84)),m.A.WGS84,r,{zConversionDisabled:i?.zConversionDisabled});if(null==i?.geographicTransformation&&(0,u.jA)(r))return N(e,t,m.A.WGS84).map(e=>K(e,m.A.WGS84,r));if(!x())throw new B;if(!i?.geographicTransformation)if(i?.extendedParams)i={...i,geographicTransformation:M.getTransformation(t,r,i.areaOfInterestExtent)||new _.A};else if(!i?.areaOfInterestExtent){const e=function(e,t){return[e.wkid?.toString()??"-1",e.wkt?.toString()??"",e.wkt2?.toString()??"",t.wkid?.toString()??"-1",t.wkt?.toString()??"",t.wkt2?.toString()??""].join()}(t,r);let a=L[e];a||(a=M.getTransformation(t,r)||new _.A,L[e]=a),i={geographicTransformation:a,zConversionDisabled:i?.zConversionDisabled}}return e[0].spatialReference||(e[0].spatialReference=t),e[0]instanceof d.A?R.executeMany(e,r,i):C.executeMany(e,r,i)}function P(e,t,r){try{return U(e,t,r)}catch(e){return null}}function D(e,t){const r=E([e],t);return null!=r.pending?{pending:r.pending,geometry:null}:null!=r.geometries?{pending:null,geometry:r.geometries[0]}:{pending:null,geometry:null}}function E(e,t,r){if(!x())for(const r of e)if(null!=r&&!(0,v.aI)(r.spatialReference,t)&&(0,v.fn)(r.spatialReference)&&(0,v.fn)(t)&&!$(r.spatialReference,t))return(0,s.gc)(j),{pending:Z(),geometries:null};return{pending:null,geometries:e.map(e=>null==e?null:(0,v.aI)(e.spatialReference,t)?e:(0,v.fn)(e.spatialReference)&&(0,v.fn)(t)?U(e,t,r):null)}}class B extends i.A{constructor(){super("projection:not-loaded","projection engine not fully loaded yet, please call load()")}}function G(){A=null,R=null,C=null,M=null,L={}}const Q={get loadPromise(){return A}};async function J(e,t,r){if((0,a.Te)(r),!e)return e;const i=E(Array.isArray(e)?e:[e],t,r);if(i.pending)return await i.pending,(0,a.Te)(r),J(e,t,r);const s=i.geometries??[];return Array.isArray(e)?s:s[0]}function $(e,t,r){return!(r?.areaOfInterestExtent||r?.extendedParams||r?.geographicTransformation)&&(!!(0,v.aI)(e,t)||(0,v.fn)(e)&&(0,v.fn)(t)&&!!(0,F.jd)(e,t))}function V(e,t){if((0,v.aI)(e,t))return!0;if(!(0,v.fn)(e)||!(0,v.fn)(t))return!1;const r=(0,v.oT)(e)||(0,v.K8)(e)||(0,v.x1)(e),i=(0,v.oT)(t)||(0,v.K8)(t)||(0,v.x1)(t);return r&&i}async function Y(e,t,r,i){if(x())return(0,a.NO)(i);if(Array.isArray(e)){for(const{source:t,dest:r,options:a}of e)if(t&&r&&!$(t,r,a))return Z(i)}else if(e&&t&&!$(e,t,r))return Z(i);return(0,a.NO)(i)}function K(e,t,r){return e?(0,S.fT)(e)?H(e,t,new p.A,r,0):(0,S.ZC)(e)?se(e,t,new c.A,r,0):(0,S.Bi)(e)?ie(e,t,new y.A,r,0):(0,S.Rg)(e)?te(e,t,new f.A,r,0):(0,S.U9)(e)?X(e,t,new h.A,r,0):null:null}function z(e,t,r=t.spatialReference,i=0){return null!=r&&null!=e.spatialReference&&null!=H(e,e.spatialReference,t,r,i)}function H(e,t,r,i,a){ue[0]=e.x,ue[1]=e.y;const s=e.z;return ue[2]=void 0!==s?s:a,(0,w.projectBuffer)(ue,t,0,ue,i,0)?(r.x=ue[0],r.y=ue[1],r.spatialReference=i,void 0!==s||(0,u.xP)(i)?(r.z=ue[2],r.hasZ=!0):(r.z=void 0,r.hasZ=!1),void 0===e.m?(r.m=void 0,r.hasM=!1):(r.m=e.m,r.hasM=!0),r):null}function W(e,t,r=t.spatialReference,i=0){return null!=e.spatialReference&&null!=r&&null!=X(e,e.spatialReference,t,r,i)}function X(e,t,r,i,a){const{points:s,hasZ:n,hasM:l}=e,o=[],u=s.length,c=[];for(const e of s)c.push(e[0],e[1],n?e[2]:a);if(!(0,w.projectBuffer)(c,t,0,c,i,0,u))return null;const d=oe(n,i);for(let e=0;e<u;++e){const t=3*e,r=c[t],i=c[t+1];d&&l?o.push([r,i,c[t+2],s[e][3]]):d?o.push([r,i,c[t+2]]):l?o.push([r,i,s[e][2]]):o.push([r,i])}return r.points=o,r.spatialReference=i,r.hasZ=n,r.hasM=l,r}function ee(e,t,r=t.spatialReference,i=0){return null!=e.spatialReference&&null!=r&&null!=te(e,e.spatialReference,t,r,i)}function te(e,t,r,i,a){const{curvePaths:s,paths:n,hasZ:l,hasM:o}=e;if(!(s?le(s,l??!1,o??!1,t,r.curvePaths=[],i,a):ne(n,l??!1,o??!1,t,r.paths,i,a)))return null;const u=oe(l,i);return r.spatialReference=i,r.hasZ=u,r.hasM=o,r}function re(e,t,r=t.spatialReference,i=0){return null!=e.spatialReference&&null!=r&&null!=ie(e,e.spatialReference,t,r,i)}function ie(e,t,r,i,a){const{curveRings:s,rings:n,hasZ:l,hasM:o}=e;return(s?le(s,l??!1,o??!1,t,r.curveRings=[],i,a):ne(n,l??!1,o??!1,t,r.rings,i,a))?(r.spatialReference=i,r.hasZ=oe(l,i),r.hasM=o,r):null}function ae(e,t,r=t.spatialReference,i=0){return null!=e.spatialReference&&null!=r&&null!=se(e,e.spatialReference,t,r,i)}function se(e,t,r,i,a){const{xmin:s,ymin:n,xmax:l,ymax:o,hasZ:u,hasM:c}=e;if(!b(s,n,u?e.zmin:a,t,ue,i))return null;const d=oe(u,i);return r.xmin=ue[0],r.ymin=ue[1],d&&(r.zmin=ue[2]),b(l,o,u?e.zmax:a,t,ue,i)?(r.xmax=ue[0],r.ymax=ue[1],d&&(r.zmax=ue[2]),c&&(r.mmin=e.mmin,r.mmax=e.mmax),r.spatialReference=i,r):null}function ne(e,t,r,i,a,s,n=0){const l=new Array;for(const r of e)for(const e of r)l.push(e[0],e[1],t?e[2]:n);if(!(0,w.projectBuffer)(l,i,0,l,s,0))return!1;let o=0;a.length=0;const u=t?3:2,c=oe(t,s);for(const t of e){const e=new Array;for(const i of t){const t=l.slice(o,o+=3);c||t.pop(),r&&t.push(i[u]),e.push(t)}a.push(e)}return!0}function le(e,t,r,i,a,s,n=0){const l=new Array;for(const r of e)for(const e of r){if((0,T.FG)(e))return!1;if((0,T.aO)(e)){const[r,i]=e.c;l.push(r[0],r[1],t?r[2]:n,i[0],i[1],n);continue}if((0,T.n1)(e)){const[r,i,a]=e.b;l.push(r[0],r[1],t?r[2]:n,i[0],i[1],n,a[0],a[1],n);continue}const r=e;l.push(r[0],r[1],t?r[2]:n)}if(!(0,w.projectBuffer)(l,i,0,l,s,0))return!1;let o=0;a.length=0;const u=t?3:2,c=oe(t,s);for(const t of e){const e=new Array;for(const i of t){const t=l.slice(o,o+=3);if(c||t.pop(),r&&t.push((0,T.yP)(i)[u]),(0,T.FG)(i))return!1;if((0,T.aO)(i)){const r=l[o++],i=l[o++];++o,e.push({c:[t,[r,i]]});continue}if((0,T.n1)(i)){const r=l[o++],i=l[o++];++o;const a=l[o++],s=l[o++];++o,e.push({b:[t,[r,i],[a,s]]});continue}e.push(t)}a.push(e)}return!0}function oe(e,t){return e||(0,u.xP)(t)||(0,v.aI)(t,g.Y0)}const ue=(0,l.vt)()},98764(e,t,r){r.d(t,{GD:()=>n,Y0:()=>u,lO:()=>c});var i=r(73941),a=r(16930),s=r(21325);const n=new a.A(i.fv),l=new a.A(i.FY),o=new a.A(i.LJ),u=new a.A(i.Ro);function c(e){const t=d.get(e);if(t)return t;let r=n;if(e)if(e===l)r=l;else if(e===o)r=o;else{const t=e.wkid,i=e.latestWkid;if(null!=t||null!=i)(0,s.tl)(t)||(0,s.tl)(i)?r=l:((0,s.ZL)(t)||(0,s.ZL)(i))&&(r=o);else{const t=e.wkt2??e.wkt;if(t){const e=t.toUpperCase();e===h?r=l:e===p&&(r=o)}}}return d.set(e,r),r}const d=new Map,h=l.wkt.toUpperCase(),p=o.wkt.toUpperCase()},34403(e,t,r){r.d(t,{TP:()=>n});var i=r(79258);Math.PI;const a=i.$O.radius,s=i.$O.eccentricitySquared,n={a1:a*s,a2:a*s*a*s,a3:a*s*s/2,a4:a*s*a*s*2.5,a5:a*s+a*s*s/2,a6:1-s};i.$O.radius,i.$O.flattening,i.Sw.radius,i.Sw.flattening,i.sH.radius,i.sH.flattening,i.sH.radius},4146(e,t,r){r.d(t,{A:()=>_});var i=r(5482),a=r(11254),s=r(49186),n=r(65529),l=r(4902),o=r(92474),u=r(53966),c=r(17676),d=r(84952),h=r(91429),p=r(5443),y=r(16930),f=r(92602),m=r(79677);let g=0,_=class extends((0,n.Zt)((0,l.s)(o.x_))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new p.A(-180,-90,180,90,y.A.WGS84),this.id=Date.now().toString(16)+"-layer-"+g++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.persistenceEnabled=!1,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=y.A.WGS84,this.title=null,this.type=null,this.url=null,this.visibilityTimeExtent=null,this.visible=!0}static async fromArcGISServerUrl(e){const t="string"==typeof e?{url:e}:e;return(await Promise.all([r.e(812),r.e(7982)]).then(r.bind(r,27982))).fromUrl(t)}static fromPortalItem(e){return async function(e){const t="portalItem"in e?e:{portalItem:e},{fromItem:i}=await Promise.all([r.e(812),r.e(5613),r.e(909)]).then(r.bind(r,45613));try{return await i(t)}catch(e){const r=t?.portalItem,i=r?.id||"unset",a=r?.portal?.url||f.A.portalUrl;throw u.A.getLogger("esri.layers.support.fromPortalItem").error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+a+"', id: '"+i+"')",e),e}}(e)}initialize(){this.when().catch(e=>{(0,c.zf)(e)||u.A.getLogger(this).error("#load()",`Failed to load layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}')`,{error:e})})}destroy(){const{parent:e}=this;e&&(this.parent=null,e.removeChildLayer?.(this))}get effectiveVisible(){return this.visible&&(this.parent?.effectiveVisible??!0)}get hasAttributionData(){return null!=this.attributionDataUrl}get loaded(){return super.loaded}removeFromParent(){const{parent:e}=this;e&&(e.removeChildLayer?.(this),this.parent=null)}get parsedUrl(){return(0,d.An)(this.url)}createLayerView(e,t){return Promise.reject(new s.A("layer:create-layer-view","Layer does not support creating a layer view"))}async fetchAttributionData(){const e=this.attributionDataUrl;if(this.hasAttributionData&&e)return(await(0,a.A)(e,{query:{f:"json"},responseType:"json"})).data;throw new s.A("layer:no-attribution-data","Layer does not have attribution data")}};(0,i.Cg)([(0,h.MZ)({type:String})],_.prototype,"attributionDataUrl",void 0),(0,i.Cg)([(0,h.MZ)({readOnly:!0})],_.prototype,"effectiveVisible",null),(0,i.Cg)([(0,h.MZ)({type:p.A})],_.prototype,"fullExtent",void 0),(0,i.Cg)([(0,h.MZ)({readOnly:!0})],_.prototype,"hasAttributionData",null),(0,i.Cg)([(0,h.MZ)({type:String,clonable:!1})],_.prototype,"id",void 0),(0,i.Cg)([(0,h.MZ)({type:Boolean,nonNullable:!0})],_.prototype,"legendEnabled",void 0),(0,i.Cg)([(0,h.MZ)({type:["show","hide","hide-children"]})],_.prototype,"listMode",void 0),(0,i.Cg)([(0,h.MZ)({type:Number,range:{min:0,max:1},nonNullable:!0})],_.prototype,"opacity",void 0),(0,i.Cg)([(0,h.MZ)({clonable:!1})],_.prototype,"parent",void 0),(0,i.Cg)([(0,h.MZ)({readOnly:!0})],_.prototype,"parsedUrl",null),(0,i.Cg)([(0,h.MZ)({type:Boolean,readOnly:!0})],_.prototype,"persistenceEnabled",void 0),(0,i.Cg)([(0,h.MZ)({type:Boolean})],_.prototype,"popupEnabled",void 0),(0,i.Cg)([(0,h.MZ)({type:Boolean})],_.prototype,"attributionVisible",void 0),(0,i.Cg)([(0,h.MZ)({type:y.A})],_.prototype,"spatialReference",void 0),(0,i.Cg)([(0,h.MZ)({type:String})],_.prototype,"title",void 0),(0,i.Cg)([(0,h.MZ)({readOnly:!0,json:{read:!1}})],_.prototype,"type",void 0),(0,i.Cg)([(0,h.MZ)()],_.prototype,"url",void 0),(0,i.Cg)([(0,h.MZ)({type:m.A})],_.prototype,"visibilityTimeExtent",void 0),(0,i.Cg)([(0,h.MZ)({type:Boolean,nonNullable:!0})],_.prototype,"visible",void 0),_=(0,i.Cg)([(0,h.$K)("esri.layers.Layer")],_)},52136(e,t,r){r.d(t,{p:()=>s});var i=r(5482),a=r(91429);const s=e=>{const t=e;let 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._override("apiKey",e):(this._clearOverride("apiKey"),this.clear("apiKey","user"))}};return(0,i.Cg)([(0,a.MZ)({type:String})],r.prototype,"apiKey",null),r=(0,i.Cg)([(0,a.$K)("esri.layers.mixins.APIKeyMixin")],r),r}},47685(e,t,r){r.d(t,{Mk:()=>p,Zk:()=>d,w6:()=>m});var i=r(5482),a=r(65529),s=r(4718),n=r(91429),l=r(20816);const o=new a.bk;function u(e){return o.on("apply-edits",new WeakRef(e))}function c(e){return o.on("update-moment",new WeakRef(e))}function d(e,t,r=null,i=!1){const a=Promise.withResolvers();return i=null==t||i,o.emit("apply-edits",{serviceUrl:e,layerId:t,gdbVersion:r,mayReceiveServiceEdits:i,result:a.promise}),a}const h=Symbol();function p(e){return null!=e&&"object"==typeof e&&h in e}function y(e){return null!=e&&"object"==typeof e&&"gdbVersion"in e}function f(e,t,r){const i=new URL(e).host,a=l.Z3.get(i),s=e=>!e||e===a;return s(t)&&s(r)||t===r}const m=e=>{var t;const r=e;let a=class extends r{static{t=h}constructor(...e){super(...e),this[t]=!0,this._applyEditsHandler=e=>{const{serviceUrl:t,layerId:r,gdbVersion:i,mayReceiveServiceEdits:a,result:n}=e,l=t===this.url,o=null!=r&&null!=this.layerId&&r===this.layerId,u=null!=r&&this.relationships?.some(e=>e.relatedTableId===r),c=y(this),d=y(this)&&f(t,i,this.gdbVersion);if(!l||c&&!d||!o&&!u&&!a)return;const h=n.then(e=>{if(this.lastEditsEventDate=new Date,o&&(e.addedFeatures.length||e.updatedFeatures.length||e.deletedFeatures.length||e.addedAttachments.length||e.updatedAttachments.length||e.deletedAttachments.length))return this.emit("edits",(0,s.o8)(e)),e;const r=e.editedFeatures?.find(({layerId:e})=>e===this.layerId);if(r){const{adds:t,updates:i,deletes:a}=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:a?a.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,s.o8)(e.editedFeatures),exceededTransferLimit:!1,historicMoment:(0,s.o8)(e.historicMoment)};return this.emit("edits",n),n}const a={edits:null,addedAttachments:[],deletedAttachments:[],updatedAttachments:[],addedFeatures:[],deletedFeatures:[],updatedFeatures:[],editedFeatures:(0,s.o8)(e.editedFeatures),exceededTransferLimit:!1,historicMoment:(0,s.o8)(e.historicMoment)};return"historicMoment"in this&&this._shouldUpdateHistoricMoment(t,i,a.historicMoment)&&this.emit("edits",a),a}).then(e=>("historicMoment"in this&&this._shouldUpdateHistoricMoment(t,i,e.historicMoment)&&(this.historicMoment=e.historicMoment),e));h.catch(()=>{}),this.emit("apply-edits",{result:h})},this._updateMomentHandler=e=>{const{serviceUrl:t,gdbVersion:r,moment:i}=e,a=t===this.url,s=y(this),n=y(this)&&f(t,r,this.gdbVersion),l=y(this)&&!f(t,this.gdbVersion,null);a&&s&&n&&l&&"historicMoment"in this&&this.historicMoment!==i&&(this.historicMoment=i)},this.when().then(()=>{this.addHandles(u(this._applyEditsHandler)),"historicMoment"in this&&this.addHandles(c(this._updateMomentHandler))},()=>{})}_shouldUpdateHistoricMoment(e,t,r){return"historicMoment"in this&&this.historicMoment!==r&&(0,l.w5)(e,t)}};return(0,i.Cg)([(0,n.MZ)()],a.prototype,"lastEditsEventDate",void 0),a=(0,i.Cg)([(0,n.$K)("esri.layers.mixins.EditBusLayer")],a),a}},28032(e,t,r){r.d(t,{A:()=>o});var i=r(5482),a=r(69540),s=r(25482),n=r(91429),l=r(56400);let o=class extends((0,a.OU)(s.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,n.MZ)()],o.prototype,"creatorField",void 0),(0,i.Cg)([(0,n.MZ)()],o.prototype,"creationDateField",void 0),(0,i.Cg)([(0,n.MZ)()],o.prototype,"editorField",void 0),(0,i.Cg)([(0,n.MZ)()],o.prototype,"editDateField",void 0),(0,i.Cg)([(0,n.MZ)()],o.prototype,"realm",void 0),(0,i.Cg)([(0,n.MZ)((0,l.P6)("dateFieldsTimeReference",!0))],o.prototype,"timeZone",void 0),o=(0,i.Cg)([(0,n.$K)("esri.layers.support.EditFieldsInfo")],o)},33143(e,t,r){r.d(t,{A:()=>d});var i=r(5482),a=r(69540),s=r(25482),n=r(91429),l=r(8631),o=r(29005),u=r(36005),c=r(43937);let d=class extends((0,a.OU)(s.o)){constructor(e){super(e),this.id=null,this.name=null,this.domains=null,this.templates=null}readDomains(e){const t={};for(const r of Object.keys(e))t[r]=(0,l.r)(e[r]);return t}writeDomains(e,t){const r={};for(const t of Object.keys(e))e[t]&&(r[t]=e[t]?.toJSON());t.domains=r}};(0,i.Cg)([(0,n.MZ)({json:{write:!0}})],d.prototype,"id",void 0),(0,i.Cg)([(0,n.MZ)({json:{write:!0}})],d.prototype,"name",void 0),(0,i.Cg)([(0,n.MZ)({json:{write:!0}})],d.prototype,"domains",void 0),(0,i.Cg)([(0,u.w)("domains")],d.prototype,"readDomains",null),(0,i.Cg)([(0,c.K)("domains")],d.prototype,"writeDomains",null),(0,i.Cg)([(0,n.MZ)({type:[o.A],json:{write:!0}})],d.prototype,"templates",void 0),d=(0,i.Cg)([(0,n.$K)("esri.layers.support.FeatureType")],d)},37352(e,t,r){r.d(t,{A:()=>o});var i,a=r(5482),s=r(7762),n=r(25482),l=r(91429);let o=i=class extends n.o{constructor(e){super(e),this.floorField=null,this.viewAllMode=!1,this.viewAllLevelIds=new s.A}clone(){return new i({floorField:this.floorField,viewAllMode:this.viewAllMode,viewAllLevelIds:this.viewAllLevelIds})}};(0,a.Cg)([(0,l.MZ)({type:String,json:{write:{isRequired:!0}}})],o.prototype,"floorField",void 0),(0,a.Cg)([(0,l.MZ)({json:{read:!1,write:!1}})],o.prototype,"viewAllMode",void 0),(0,a.Cg)([(0,l.MZ)({json:{read:!1,write:!1}})],o.prototype,"viewAllLevelIds",void 0),o=i=(0,a.Cg)([(0,l.$K)("esri.layers.support.LayerFloorInfo")],o)},45067(e,t,r){r.d(t,{A:()=>c});var i=r(5482),a=r(69540),s=r(66552),n=r(25482),l=r(91429);const o=new s.J({esriRelCardinalityOneToOne:"one-to-one",esriRelCardinalityOneToMany:"one-to-many",esriRelCardinalityManyToMany:"many-to-many"}),u=new s.J({esriRelRoleOrigin:"origin",esriRelRoleDestination:"destination"});let c=class extends((0,a.OU)(n.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,l.MZ)({json:{read:o.read,write:o.write}})],c.prototype,"cardinality",void 0),(0,i.Cg)([(0,l.MZ)({json:{name:"catalogID"}})],c.prototype,"catalogId",void 0),(0,i.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],c.prototype,"composite",void 0),(0,i.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],c.prototype,"id",void 0),(0,i.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],c.prototype,"keyField",void 0),(0,i.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],c.prototype,"keyFieldInRelationshipTable",void 0),(0,i.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],c.prototype,"name",void 0),(0,i.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],c.prototype,"relatedTableId",void 0),(0,i.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],c.prototype,"relationshipTableId",void 0),(0,i.Cg)([(0,l.MZ)({json:{read:u.read,write:u.write}})],c.prototype,"role",void 0),c=(0,i.Cg)([(0,l.$K)("esri.layers.support.Relationship")],c)},17311(e,t,r){r.d(t,{A:()=>p});var i=r(5482),a=r(69622),s=r(4576),n=r(60999),l=r(7762),o=r(16494),u=r(91429),c=r(30524),d=r(43668);const h=/<br\s*\/*>/gi;let p=class extends a.A{constructor(e){super(e),this._featureUtils=null,this.effectivePopupTemplate=null}get _arcadeTask(){return this.expressionsUsedInTitle.length>0?this._get("_arcadeTask")||(0,n.UT)(()=>(0,d.l)()):null}get featureUtilsPromise(){return this._get("featureUtilsPromise")??Promise.all([r.e(4560),r.e(9301)]).then(r.bind(r,99301)).then(e=>this._featureUtils=e)}get calculatedExpressions(){const e=new l.A;if(!this.expressionsUsedInTitle.length)return e;if(!this._arcadeTask?.value){for(const t of this.expressionsUsedInTitle??[])e.push({name:t.name,invalid:!0});return e}for(const t of this.expressionsUsedInTitle)try{const r=this._arcadeTask.value.arcade.parseScript(t.expression,["$layer","$map","$datastore"]);if(r.isAsync){e.push({name:t.name,invalid:!0});break}e.push({name:t.name,syntax:r,invalid:!1,func:this._arcadeTask.value.arcade.compileScript(r,{vars:{$feature:"any"}})})}catch{e.push({name:t.name,invalid:!0});break}return e}get expressionsUsedInTitle(){let e=this.effectivePopupTemplate?.title??"";return"string"!=typeof e?[]:(e=e.toLowerCase(),this.effectivePopupTemplate?.expressionInfos?.filter(t=>e.includes(`{expression/${t.name.toLowerCase()}}`))??[])}get fieldInfoMap(){return this._featureUtils?this._createFieldInfoMap(this._featureUtils.getAllFieldInfos(this.effectivePopupTemplate)):null}get hasBadExpressions(){return this.calculatedExpressions.some(e=>!0===e.invalid)}get requiredFields(){const e=new Set;if(this._arcadeTask?.value&&!this.hasBadExpressions)for(const t of this.calculatedExpressions?.toArray()??[])try{const r=this._arcadeTask.value.arcade.extractFieldLiterals(t.syntax);for(const t of r){const r=t.split("."),i=this.fieldsIndex.get(r.at(-1)??"");i&&e.add(i.name)}}catch{}const t=this._extractFieldNames(this.workingTitle);for(const r of t){const t=this.fieldsIndex.get(r);t&&e.add(t.name)}return null!=this.objectIdField&&e.add(this.objectIdField),e}get titleFromDisplayField(){let e="";return this.displayField&&(e=this.fieldsIndex.get(this.displayField)?.name??""),e||(e=this.fieldsIndex.get(this.objectIdField)?.name??""),e?`{${e}}`:""}get workingTitle(){const e=this.effectivePopupTemplate?this.effectivePopupTemplate.title:"";return""===e||null==e||this.hasBadExpressions||"string"!=typeof e?this.titleFromDisplayField:e}async getTitle(e,t,r){const i=t.getObjectId()??t.attributes?.[e.objectIdField];return(await this.getTitles(e,[t],r)).get(i)??""}async getTitles(e,t,r){const i=new Map,a=r?.timeZone??"system";try{const[{substituteFieldsInLinksAndAttributes:s}]=await Promise.all([this.featureUtilsPromise,this._arcadeTask?.promise]);r?.fetchMissingFields&&(t=await this._checkAndReQueryGraphics(e,t));const{fieldInfoMap:n,workingTitle:l}=this,u=l&&n;t.forEach(t=>{const c=t.getObjectId()??t.attributes[e.objectIdField];let d=u?s({attributes:t.attributes,expressionAttributes:null,fieldInfoMap:n,globalAttributes:this._createFormattedAttributes(e,t,a).global,layer:e,text:l}):"";r?.removeHTML&&(d=o.Nd.sanitize(d).replaceAll(h," ")),i.set(c,d)})}catch{}return i}async _checkAndReQueryGraphics(e,t){const r=t.map(t=>t.getObjectId()??t.attributes[e.objectIdField]).filter(s.Ru);if(r.length!==t.length)return t;if(t.some(e=>!(0,c.Kl)(e,this.requiredFields))){const i=e.createQuery();i.where="1=1",i.outFields=[...this.requiredFields],i.objectIds=r;const a=await e.queryFeatures(i);if(a?.features.length===t.length)return a.features}return t}_createFieldInfoMap(e){const t=new Map;if(!e)return t;for(const r of e){if(!r.fieldName)continue;const e=this.fieldsIndex.get(r.fieldName),i=e?.name??r.fieldName;r.fieldName=i,t.set(i.toLowerCase(),r)}return t}_createFormattedAttributes(e,t,r="system"){const i=this.effectivePopupTemplate?.fieldInfos??[],a={};if(!this._featureUtils)return{};if(!this.hasBadExpressions&&this.calculatedExpressions.length>0&&this._arcadeTask?.value){const r=this._arcadeTask.value.Feature.createFromGraphicLikeObject(t.geometry,t.attributes,e,null);for(const e of this.calculatedExpressions)try{a[`expression/${e.name}`]=e.func({vars:{$feature:r}})}catch{}}const s={...t.attributes,...a};return{global:this._featureUtils.formatAttributes({fieldInfos:i,attributes:s,graphic:t,timeZone:r,layer:e,fieldInfoMap:this.fieldInfoMap}),content:[]}}_extractFieldNames(e){return(0,c.nw)(e).filter(e=>!(e.startsWith("relationships/")||e.startsWith("expression/")))}};(0,i.Cg)([(0,u.MZ)({readOnly:!0})],p.prototype,"_arcadeTask",null),(0,i.Cg)([(0,u.MZ)()],p.prototype,"_featureUtils",void 0),(0,i.Cg)([(0,u.MZ)({readOnly:!0})],p.prototype,"featureUtilsPromise",null),(0,i.Cg)([(0,u.MZ)({readOnly:!0})],p.prototype,"calculatedExpressions",null),(0,i.Cg)([(0,u.MZ)()],p.prototype,"displayField",void 0),(0,i.Cg)([(0,u.MZ)()],p.prototype,"effectivePopupTemplate",void 0),(0,i.Cg)([(0,u.MZ)()],p.prototype,"expressionsUsedInTitle",null),(0,i.Cg)([(0,u.MZ)()],p.prototype,"fieldsIndex",void 0),(0,i.Cg)([(0,u.MZ)()],p.prototype,"fieldInfoMap",null),(0,i.Cg)([(0,u.MZ)()],p.prototype,"fields",void 0),(0,i.Cg)([(0,u.MZ)()],p.prototype,"objectIdField",void 0),(0,i.Cg)([(0,u.MZ)()],p.prototype,"requiredFields",null),p=(0,i.Cg)([(0,u.$K)("esri.layers.support.TitleCreator")],p)},41560(e,t,r){r.d(t,{Ch:()=>n,mW:()=>s});var i=r(34727),a=r(39516);function s(e,t){return{...t,filterMode:e.mode}}function n(e,t,r){const s=function(e){if("manual"===u(e))return null;const t=[Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY];for(const{minScale:r,maxScale:i}of e.filters)t[0]=Math.max(t[0],c(r)),t[1]=Math.min(t[1],d(i));return t}(e);if(s&&((0,i.gg)(t,s[0])||(0,i.ZH)(r,s[1])))return"";const n=Array.from(l(e,t,r)),o=function(e,t,r){if(0===e.length)return!0;const a=c(e.at(0)?.minScale),s=d(e.at(-1)?.maxScale);if((0,i.ZH)(a,t)||(0,i.gg)(s,r))return!0;for(let t=0;t<e.length-1;t++){const r=e[t],a=e[t+1];if((0,i.ZH)(c(a.minScale),d(r.maxScale)))return!0}return!1}(n,t,r)?"1=1":n.map(e=>e.where||"1=1").reduce((e,t)=>(0,a.IW)(e,t),"");return o&&"1=1"!==o?o:""}function*l(e,t,r){if("manual"===u(e)){const t=e.filters.find(t=>t.id===e.activeFilterId);t&&(yield t)}else{"object"==typeof t&&(t=t.scale);for(const i of e.filters)o(i.minScale,i.maxScale,t,r)&&(yield i)}}function o(e,t,r,a){return e=c(e),r=c(r),t=d(t),!(!(0,i.Sp)(r,e)&&(a??r)>e||(0,i.Hx)(t,r)||void 0!==a&&(0,i.Sp)(a,e))}function u(e){return"mode"in e?e.mode:e.filterMode}function c(e){return e||Number.POSITIVE_INFINITY}function d(e){return e||0}},77548(e,t,r){r.d(t,{Gh:()=>j,tk:()=>A,BR:()=>T,p2:()=>S,qd:()=>R,wI:()=>v,G$:()=>M,$x:()=>C,Ov:()=>w,cM:()=>h,UC:()=>p,Qz:()=>y,OP:()=>L,TU:()=>_,F2:()=>f,XX:()=>g,Qi:()=>F,jy:()=>b});var i=r(70333),a=r(11254),s=r(7762),n=(r(84952),r(36563)),l=r(36708),o=r(4146);const u=new WeakMap;function c(e){return!e.destroyed&&(u.has(e)||e.addHandles([(0,l.wB)(()=>{const{parent:t}=e;return!!(t&&t instanceof o.A)&&("catalog-dynamic-group"===t.type||c(t))},t=>u.set(e,t),l.pc),(0,n.hA)(()=>u.delete(e))]),u.get(e))}function d(e,t){return null!=e&&"object"==typeof e&&"type"in e&&e.type===t}function h(e){return d(e,"knowledge-graph")&&"layers"in e}function p(e){return d(e,"knowledge-graph-sublayer")}function y(e){return d(e,"link-chart")&&"layers"in e}function f(e){return d(e,"subtype-group")&&"sublayers"in e}function m(e){const t=e.parent;return function(e){return"group"===e?.type}(t)&&t.tables.includes(e)}r(16215);const g={Point:"SceneLayer","3DObject":"SceneLayer",IntegratedMesh:"IntegratedMeshLayer",PointCloud:"PointCloudLayer",Building:"BuildingSceneLayer"};function _(e){const t=e?.type;return"building-scene"===t||"integrated-mesh"===t||"point-cloud"===t||"scene"===t}function w(e){return"feature"===e?.type&&!e.url&&"memory"===e.source?.type}function F(e){return null!=e&&"object"==typeof e&&"featureReduction"in e}function b(e){return function(e){return d(e,"catalog-footprint")}(e)||function(e){return d(e,"feature")}(e)&&function(e){return"feature"===e?.type&&"feature-layer"===e.source?.type}(e)||function(e){return d(e,"oriented-imagery")}(e)||function(e){return"subtype-sublayer"===e?.type}(e)}function I(e){const t=e?.type;return"binning"===t||"cluster"===t}function S(e,t){if(!b(e))return;const r=t?.graphic,i="featureReduction"in e?e.featureReduction:null;if(r){if(r.isAggregate){const e=r.origin;return e&&"featureReductionProvider"in e&&i?I(i)?i:null:void 0}return e}return t?.checkFeatureReduction&&i?I(i)?i:null:e}async function v(e,t){const r=i.id?.findServerInfo(e);if(null!=r?.currentVersion)return r.owningSystemUrl||null;const s=e.toLowerCase().indexOf("/rest/services");if(-1===s)return null;const n=`${e.slice(0,s)}/rest/info`,l=null!=t?t.signal:null,{data:o}=await(0,a.A)(n,{query:{f:"json"},responseType:"json",signal:l});return o?.owningSystemUrl||null}function T(e){return function(e){if(!("capabilities"in e))return!1;switch(e.type){case"catalog":case"catalog-footprint":case"csv":case"feature":case"parquet":case"geojson":case"imagery":case"knowledge-graph-sublayer":case"ogc-feature":case"oriented-imagery":case"scene":case"sublayer":case"subtype-group":case"subtype-sublayer":case"wfs":return!0;default:return!1}}(e)?"effectiveCapabilities"in e?e.effectiveCapabilities:e.capabilities:null}function A(e){return!!function(e){if(!("editingEnabled"in e))return!1;switch(e.type){case"csv":case"feature":case"geojson":case"oriented-imagery":case"scene":case"subtype-group":case"subtype-sublayer":case"knowledge-graph-sublayer":return!0;default:return!1}}(e)&&("effectiveEditingEnabled"in e?e.effectiveEditingEnabled:e.editingEnabled)}function R(e){const t=new s.A;for(const r of e.allLayers.concat(e.allTables))c(r)||m(r)||"annotation-feature"===r.type||"dimension-feature"===r.type||("charts"in r&&t.push(r),"subtype-group"===r.type&&t.push(...r.sublayers));return t}function C(e,t){return null}function M(e){return null}function L(e){return!e||"Feature Service"===e.type&&!e.sourceUrl}function j(e,t){if(!t||!L(e))return;const r=(e.url,null);r&&(e.url=r)}},73133(e,t,r){r.d(t,{j:()=>i});const i=(0,r(66552).O)()({esriTimeUnitsMilliseconds:"milliseconds",esriTimeUnitsSeconds:"seconds",esriTimeUnitsMinutes:"minutes",esriTimeUnitsHours:"hours",esriTimeUnitsDays:"days",esriTimeUnitsWeeks:"weeks",esriTimeUnitsMonths:"months",esriTimeUnitsYears:"years",esriTimeUnitsDecades:"decades",esriTimeUnitsCenturies:"centuries",esriTimeUnitsUnknown:"unknown"})},10536(e,t,r){function i(e){const t={};for(const r in e){if("declaredClass"===r)continue;const a=e[r];if(null!=a&&"function"!=typeof a)if(Array.isArray(a)){t[r]=[];for(let e=0;e<a.length;e++)t[r][e]=i(a[e])}else"object"==typeof a?a.toJSON&&(t[r]=JSON.stringify(a)):t[r]=a}return t}r.d(t,{z:()=>i})},17126(e,t,r){r.d(t,{dw:()=>n,qD:()=>l,qW:()=>o});var i=r(11254),a=r(21325),s=r(10536);function n(e,t){const r=e.toJSON();return r.objectIds&&(r.objectIds=r.objectIds.join(",")),r.orderByFields&&(r.orderByFields=r.orderByFields.join(",")),r.outFields&&!t?.returnCountOnly?r.outFields.includes("*")?r.outFields="*":r.outFields=r.outFields.join(","):delete r.outFields,r.outSR&&(r.outSR=(0,a.YX)(r.outSR)),r.dynamicDataSource&&(r.layer=JSON.stringify({source:r.dynamicDataSource}),delete r.dynamicDataSource),r}async function l(e,t,r){const i=await u(e,t,r),a=i.data,s=a.geometryType,n=a.spatialReference,l={};for(const e of a.relatedRecordGroups){const t={fields:void 0,geometryType:s,spatialReference:n,hasZ:!!a.hasZ,hasM:!!a.hasM,features:e.relatedRecords};if(null!=e.objectId)l[e.objectId]=t;else for(const r of Object.keys(e))"relatedRecords"!==r&&(l[e[r]]=t)}return{...i,data:l}}async function o(e,t,r){const i=await u(e,t,r,{returnCountOnly:!0}),a=i.data,s={};for(const e of a.relatedRecordGroups)null!=e.objectId&&(s[e.objectId]=e.count);return{...i,data:s}}async function u(e,t,r={},a){const l=(0,s.z)({...e.query,f:"json",...a,...n(t,a)});return(0,i.A)(e.path+"/queryRelatedRecords",{...r,query:{...r.query,...l}})}},16215(e,t,r){r.d(t,{S:()=>a,Y:()=>i});const i=Symbol("BasemapInstance");function a(e){return null!=e&&"object"==typeof e&&i in e}},79677(e,t,r){r.d(t,{A:()=>h});var i,a=r(5482),s=r(25482),n=r(88930),l=r(91429),o=r(98623),u=r(10184),c=r(36005),d=r(43937);let h=class extends s.o{static{i=this}static get allTime(){return p}static get empty(){return y}static fromArray(e){return new i({start:null!=e[0]?new Date(e[0]):e[0],end:null!=e[1]?new Date(e[1]):e[1]})}constructor(e){super(e),this.end=null,this.start=null}readEnd(e,t){return null!=t.end?new Date(t.end):null}writeEnd(e,t){t.end=e?.getTime()??null}get isAllTime(){return this.equals(i.allTime)}get isEmpty(){return this.equals(i.empty)}readStart(e,t){return null!=t.start?new Date(t.start):null}writeStart(e,t){t.start=e?.getTime()??null}clone(){return new i({end:this.end,start:this.start})}equals(e){if(!e)return!1;const t=this.start?.getTime()??this.start,r=this.end?.getTime()??this.end,i=e.start?.getTime()??e.start,a=e.end?.getTime()??e.end;return t===i&&r===a}expandTo(e,t=o.qU){if(this.isEmpty||this.isAllTime||"unknown"===e)return this.clone();let r=this.start;r&&(r=(0,n.lL)(r,new u.A({value:1,unit:e}),t));let a=this.end;if(a){const r=(0,n.lL)(a,new u.A({value:1,unit:e}),t);a=a.getTime()===r.getTime()?r:(0,n.S1)(r,1,e,t)}return new i({start:r,end:a})}intersection(e){if(!e)return this.clone();if(this.isEmpty||e.isEmpty)return i.empty;if(this.isAllTime)return e.clone();if(e.isAllTime)return this.clone();const t=this.start?.getTime()??-1/0,r=this.end?.getTime()??1/0,a=e.start?.getTime()??-1/0,s=e.end?.getTime()??1/0;let n,l;return a>=t&&a<=r?n=a:t>=a&&t<=s&&(n=t),r>=a&&r<=s?l=r:s>=t&&s<=r&&(l=s),null==n||null==l||isNaN(n)||isNaN(l)?i.empty:new i({start:n===-1/0?null:new Date(n),end:l===1/0?null:new Date(l)})}offset(e,t,r=o.qU){if(this.isEmpty||this.isAllTime||"unknown"===t)return this.clone();const a=new i,{start:s,end:l}=this;return null!=s&&(a.start=(0,n.S1)(s,e,t,r)),null!=l&&(a.end=(0,n.S1)(l,e,t,r)),a}toArray(){return this.isEmpty?[void 0,void 0]:[this.start?.getTime()??null,this.end?.getTime()??null]}union(e){if(!e||e.isEmpty)return this.clone();if(this.isEmpty)return e.clone();if(this.isAllTime||e.isAllTime)return p.clone();const t=null!=this.start&&null!=e.start?new Date(Math.min(this.start.getTime(),e.start.getTime())):null,r=null!=this.end&&null!=e.end?new Date(Math.max(this.end.getTime(),e.end.getTime())):null;return new i({start:t,end:r})}};(0,a.Cg)([(0,l.MZ)({type:Date,json:{write:{allowNull:!0}}})],h.prototype,"end",void 0),(0,a.Cg)([(0,c.w)("end")],h.prototype,"readEnd",null),(0,a.Cg)([(0,d.K)("end")],h.prototype,"writeEnd",null),(0,a.Cg)([(0,l.MZ)({readOnly:!0,json:{read:!1}})],h.prototype,"isAllTime",null),(0,a.Cg)([(0,l.MZ)({readOnly:!0,json:{read:!1}})],h.prototype,"isEmpty",null),(0,a.Cg)([(0,l.MZ)({type:Date,json:{write:{allowNull:!0}}})],h.prototype,"start",void 0),(0,a.Cg)([(0,c.w)("start")],h.prototype,"readStart",null),(0,a.Cg)([(0,d.K)("start")],h.prototype,"writeStart",null),h=i=(0,a.Cg)([(0,l.$K)("esri.time.TimeExtent")],h);const p=new h,y=new h({start:void 0,end:void 0})},10184(e,t,r){r.d(t,{A:()=>c});var i=r(5482),a=r(69540),s=r(25482),n=r(88930),l=r(91429),o=r(73133),u=r(93223);let c=class extends((0,a.OU)(s.o)){constructor(e){super(e),this.unit="milliseconds",this.value=0}toMilliseconds(){return(0,n.t)(this.value,this.unit,"milliseconds")}};(0,i.Cg)([(0,u.e)(o.j,{nonNullable:!0})],c.prototype,"unit",void 0),(0,i.Cg)([(0,l.MZ)({type:Number,json:{write:!0},nonNullable:!0})],c.prototype,"value",void 0),c=(0,i.Cg)([(0,l.$K)("esri.time.TimeInterval")],c)},20816(e,t,r){r.d(t,{TA:()=>a,We:()=>l,Z3:()=>s,ZJ:()=>o,w5:()=>u});var i=r(11254);const a=(0,r(13069).vD)(),s=new Map,n=new Map;async function l(e,t,r){if(!e||!r)return!1;if(!t)return!0;const a=new URL(e).host;let n=s.get(a);if(!n){const t=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,"");n=(await(0,i.A)(t,{responseType:"json",query:{f:"json"}})).data.defaultVersionName}return n===t}async function o(e,t,i=!1){if(!e||!t)return!0;const s=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,""),l=n.get(s)?.entries();if(l)for(const[e,n]of l)if(n.name===t){const t=!n.stack?.hasForwardEdits();if(!t&&i){const[{deleteForwardEdits:t},{default:i}]=await Promise.all([r.e(2186).then(r.bind(r,32186)),r.e(2558).then(r.bind(r,32558))]),l=await t(s,e,new i({sessionId:a,moment:n.moment}));return l.success&&n.stack?.clearForwardEdits(),l.success}return t}return!0}function u(e,t){if(!e)return!1;const r=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,""),i=n.get(r)?.entries();if(i)for(const[e,r]of i)if(r.name===t)return"edit"===r.lockType;return!1}new Map}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4594],{50867(t,e,r){r.d(e,{a:()=>i,b:()=>a,l:()=>c,n:()=>o,t:()=>u});var n=r(40876),s=(r(44208),r(72727));function i(t,e,r){u(t.typedBuffer,e.typedBuffer,r,t.typedBufferStride,e.typedBufferStride)}function u(t,e,r,n=4,i=n){const u=(0,s.k)(t.length,n,4),o=(0,s.k)(e.length,i,4),f=Math.min(u,o),c=r[0],a=r[1],l=r[2],h=r[3],p=r[4],y=r[5],d=r[6],m=r[7],B=r[8];let M=0,T=0;for(let r=0;r<f;r++){const r=e[M],s=e[M+1],u=e[M+2],o=e[M+3];t[T]=c*r+h*s+d*u,t[T+1]=a*r+p*s+m*u,t[T+2]=l*r+y*s+B*u,t[T+3]=o,M+=i,T+=n}}function o(t,e){const r=Math.min(t.count,e.count),n=t.typedBuffer,s=t.typedBufferStride,i=e.typedBuffer,u=e.typedBufferStride;for(let t=0;t<r;t++){const e=t*s,r=t*u,o=i[r],f=i[r+1],c=i[r+2],a=o*o+f*f+c*c;if(a>0){const t=1/Math.sqrt(a);n[e]=t*o,n[e+1]=t*f,n[e+2]=t*c}}}function f(t,e,r,n=4){const s=Math.min(t.length/n,e.count),i=e.typedBuffer,u=e.typedBufferStride;let o=0,f=0;for(let e=0;e<s;e++)t[f]=r*i[o],t[f+1]=r*i[o+1],t[f+2]=r*i[o+2],t[f+3]=r*i[o+3],o+=u,f+=n}function c(t,e,r,n){a(t.typedBuffer,e,r,n,t.typedBufferStride)}function a(t,e,r,s,i=4){const u=Math.min(t.length/i,e.count),o=e.typedBuffer,f=e.typedBufferStride;let c=0,a=0;const l=1/n.Tf;for(let e=0;e<u;e++)t[a]=s*(r*o[c])**l,t[a+1]=s*(r*o[c+1])**l,t[a+2]=s*(r*o[c+2])**l,t[a+3]=s*r*o[c+3],c+=f,a+=i}Object.freeze(Object.defineProperty({__proto__:null,linearToSRGB:a,linearToSRGBView:c,normalize:o,scale:f,scaleView:function(t,e,r){f(t.typedBuffer,e,r,t.typedBufferStride)},transformMat3:u,transformMat3View:i,transformMat4:function(t,e,r,n=4,i=n){const u=(0,s.k)(t.length,n,4),o=(0,s.k)(e.length,i,4),f=Math.min(u,o),c=r[0],a=r[1],l=r[2],h=r[3],p=r[4],y=r[5],d=r[6],m=r[7],B=r[8],M=r[9],T=r[10],E=r[11],g=r[12],b=r[13],S=r[14],A=r[15];let x=0,v=0;for(let r=0;r<f;r++){const r=e[x],s=e[x+1],u=e[x+2],o=e[x+3];t[v]=c*r+p*s+B*u+g*o,t[v+1]=a*r+y*s+M*u+b*o,t[v+2]=l*r+d*s+T*u+S*o,t[v+3]=h*r+m*s+E*u+A*o,x+=i,v+=n}},transformMat4View:function(t,e,r){const n=t.typedBuffer,i=t.typedBufferStride,u=e.typedBuffer,o=e.typedBufferStride,f=(0,s.k)(n.length,i,4),c=(0,s.k)(u.length,o,4),a=Math.min(f,c),l=r[0],h=r[1],p=r[2],y=r[3],d=r[4],m=r[5],B=r[6],M=r[7],T=r[8],E=r[9],g=r[10],b=r[11],S=r[12],A=r[13],x=r[14],v=r[15];for(let t=0;t<a;t++){const e=t*i,r=t*o,s=u[r],f=u[r+1],c=u[r+2],a=u[r+3];n[e]=l*s+d*f+T*c+S*a,n[e+1]=h*s+m*f+E*c+A*a,n[e+2]=p*s+B*f+g*c+x*a,n[e+3]=y*s+M*f+b*c+v*a}}},Symbol.toStringTag,{value:"Module"}))},48163(t,e,r){function n(){return[0,0]}function s(t){return[t[0],t[1]]}function i(t,e){return[t,e]}function u(){return i(1,1)}function o(){return i(-1,-1)}function f(){return i(1,0)}function c(){return i(0,1)}r.d(e,{IA:()=>l,Un:()=>a,fA:()=>i,o8:()=>s,vt:()=>n});const a=u(),l=o(),h=f(),p=c();Object.freeze(Object.defineProperty({__proto__:null,NEGATIVE_ONES:l,ONES:a,UNIT_X:h,UNIT_Y:p,ZEROS:[0,0],clone:s,create:n,freeze:function(t,e){return[t,e]},fromArray:function(t,e=[0,0]){const r=Math.min(2,t.length);for(let n=0;n<r;++n)e[n]=t[n];return e},fromValues:i,negativeOnes:o,ones:u,unitX:f,unitY:c,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"}))},91829(t,e,r){function n(){return[0,0,0,0]}function s(t,e,r,n){return[t,e,r,n]}function i(t,e,r,n){return[t,e,r,n]}function u(){return s(1,1,1,1)}function o(){return s(1,0,0,0)}function f(){return s(0,1,0,0)}function c(){return s(0,0,1,0)}function a(){return s(0,0,0,1)}r.d(e,{CN:()=>i,Un:()=>h,_Y:()=>a,fA:()=>s,uY:()=>l,vt:()=>n});const l=[0,0,0,0],h=u(),p=o(),y=f(),d=c(),m=a();Object.freeze(Object.defineProperty({__proto__:null,ONES:h,UNIT_W:m,UNIT_X:p,UNIT_Y:y,UNIT_Z:d,ZEROS:l,clone:function(t){return[t[0],t[1],t[2],t[3]]},create:n,freeze:i,fromArray:function(t,e=[0,0,0,0]){const r=Math.min(4,t.length);for(let n=0;n<r;++n)e[n]=t[n];return e},fromValues:s,ones:u,unitW:a,unitX:o,unitY:f,unitZ:c,zeros:function(){return[0,0,0,0]}},Symbol.toStringTag,{value:"Module"}))},58083(t,e,r){r.d(e,{$0:()=>m,$h:()=>v,B8:()=>c,C:()=>i,D_:()=>o,N9:()=>M,O7:()=>x,Tl:()=>l,X_:()=>b,e$:()=>p,eL:()=>y,hM:()=>B,hZ:()=>u,hs:()=>h,kN:()=>d,l:()=>S,lw:()=>a,mg:()=>f,o1:()=>A,sC:()=>g,t2:()=>C,t5:()=>w,tZ:()=>F,ut:()=>N,v3:()=>_});var n=r(51850),s=r(34304);function i(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function u(t,e,r,n,s,i,u,o,f,c,a,l,h,p,y,d,m){return t[0]=e,t[1]=r,t[2]=n,t[3]=s,t[4]=i,t[5]=u,t[6]=o,t[7]=f,t[8]=c,t[9]=a,t[10]=l,t[11]=h,t[12]=p,t[13]=y,t[14]=d,t[15]=m,t}function o(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function f(t,e){if(t===e){const r=e[1],n=e[2],s=e[3],i=e[6],u=e[7],o=e[11];t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=r,t[6]=e[9],t[7]=e[13],t[8]=n,t[9]=i,t[11]=e[14],t[12]=s,t[13]=u,t[14]=o}else t[0]=e[0],t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=e[1],t[5]=e[5],t[6]=e[9],t[7]=e[13],t[8]=e[2],t[9]=e[6],t[10]=e[10],t[11]=e[14],t[12]=e[3],t[13]=e[7],t[14]=e[11],t[15]=e[15];return t}function c(t,e){const r=e[0],n=e[1],s=e[2],i=e[3],u=e[4],o=e[5],f=e[6],c=e[7],a=e[8],l=e[9],h=e[10],p=e[11],y=e[12],d=e[13],m=e[14],B=e[15],M=r*o-n*u,T=r*f-s*u,E=r*c-i*u,g=n*f-s*o,b=n*c-i*o,S=s*c-i*f,A=a*d-l*y,x=a*m-h*y,v=a*B-p*y,_=l*m-h*d,w=l*B-p*d,R=h*B-p*m;let C=M*R-T*w+E*_+g*v-b*x+S*A;return C?(C=1/C,t[0]=(o*R-f*w+c*_)*C,t[1]=(s*w-n*R-i*_)*C,t[2]=(d*S-m*b+B*g)*C,t[3]=(h*b-l*S-p*g)*C,t[4]=(f*v-u*R-c*x)*C,t[5]=(r*R-s*v+i*x)*C,t[6]=(m*E-y*S-B*T)*C,t[7]=(a*S-h*E+p*T)*C,t[8]=(u*w-o*v+c*A)*C,t[9]=(n*v-r*w-i*A)*C,t[10]=(y*b-d*E+B*M)*C,t[11]=(l*E-a*b-p*M)*C,t[12]=(o*x-u*_-f*A)*C,t[13]=(r*_-n*x+s*A)*C,t[14]=(d*T-y*g-m*M)*C,t[15]=(a*g-l*T+h*M)*C,t):null}function a(t,e,r){const n=e[0],s=e[1],i=e[2],u=e[3],o=e[4],f=e[5],c=e[6],a=e[7],l=e[8],h=e[9],p=e[10],y=e[11],d=e[12],m=e[13],B=e[14],M=e[15];let T=r[0],E=r[1],g=r[2],b=r[3];return t[0]=T*n+E*o+g*l+b*d,t[1]=T*s+E*f+g*h+b*m,t[2]=T*i+E*c+g*p+b*B,t[3]=T*u+E*a+g*y+b*M,T=r[4],E=r[5],g=r[6],b=r[7],t[4]=T*n+E*o+g*l+b*d,t[5]=T*s+E*f+g*h+b*m,t[6]=T*i+E*c+g*p+b*B,t[7]=T*u+E*a+g*y+b*M,T=r[8],E=r[9],g=r[10],b=r[11],t[8]=T*n+E*o+g*l+b*d,t[9]=T*s+E*f+g*h+b*m,t[10]=T*i+E*c+g*p+b*B,t[11]=T*u+E*a+g*y+b*M,T=r[12],E=r[13],g=r[14],b=r[15],t[12]=T*n+E*o+g*l+b*d,t[13]=T*s+E*f+g*h+b*m,t[14]=T*i+E*c+g*p+b*B,t[15]=T*u+E*a+g*y+b*M,t}function l(t,e,r){const n=r[0],s=r[1],i=r[2];if(e===t)t[12]=e[0]*n+e[4]*s+e[8]*i+e[12],t[13]=e[1]*n+e[5]*s+e[9]*i+e[13],t[14]=e[2]*n+e[6]*s+e[10]*i+e[14],t[15]=e[3]*n+e[7]*s+e[11]*i+e[15];else{const r=e[0],u=e[1],o=e[2],f=e[3],c=e[4],a=e[5],l=e[6],h=e[7],p=e[8],y=e[9],d=e[10],m=e[11];t[0]=r,t[1]=u,t[2]=o,t[3]=f,t[4]=c,t[5]=a,t[6]=l,t[7]=h,t[8]=p,t[9]=y,t[10]=d,t[11]=m,t[12]=r*n+c*s+p*i+e[12],t[13]=u*n+a*s+y*i+e[13],t[14]=o*n+l*s+d*i+e[14],t[15]=f*n+h*s+m*i+e[15]}return t}function h(t,e,r){const n=r[0],s=r[1],i=r[2];return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*s,t[5]=e[5]*s,t[6]=e[6]*s,t[7]=e[7]*s,t[8]=e[8]*i,t[9]=e[9]*i,t[10]=e[10]*i,t[11]=e[11]*i,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function p(t,e,r,n){let u=n[0],o=n[1],f=n[2],c=Math.sqrt(u*u+o*o+f*f);if(c<=(0,s.FD)())return void i(t,e);c=1/c,u*=c,o*=c,f*=c;const a=Math.sin(r),l=Math.cos(r),h=1-l,p=e[0],y=e[1],d=e[2],m=e[3],B=e[4],M=e[5],T=e[6],E=e[7],g=e[8],b=e[9],S=e[10],A=e[11],x=u*u*h+l,v=o*u*h+f*a,_=f*u*h-o*a,w=u*o*h-f*a,R=o*o*h+l,C=f*o*h+u*a,N=u*f*h+o*a,F=o*f*h-u*a,L=f*f*h+l;t[0]=p*x+B*v+g*_,t[1]=y*x+M*v+b*_,t[2]=d*x+T*v+S*_,t[3]=m*x+E*v+A*_,t[4]=p*w+B*R+g*C,t[5]=y*w+M*R+b*C,t[6]=d*w+T*R+S*C,t[7]=m*w+E*R+A*C,t[8]=p*N+B*F+g*L,t[9]=y*N+M*F+b*L,t[10]=d*N+T*F+S*L,t[11]=m*N+E*F+A*L,e!==t&&(t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15])}function y(t,e,r){const n=Math.sin(r),s=Math.cos(r),i=e[4],u=e[5],o=e[6],f=e[7],c=e[8],a=e[9],l=e[10],h=e[11];return e!==t&&(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[4]=i*s+c*n,t[5]=u*s+a*n,t[6]=o*s+l*n,t[7]=f*s+h*n,t[8]=c*s-i*n,t[9]=a*s-u*n,t[10]=l*s-o*n,t[11]=h*s-f*n,t}function d(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=e[0],t[13]=e[1],t[14]=e[2],t[15]=1,t}function m(t,e,r){if(0===e)return o(t);let n=r[0],i=r[1],u=r[2],f=Math.sqrt(n*n+i*i+u*u);if(f<=(0,s.FD)())return null;f=1/f,n*=f,i*=f,u*=f;const c=Math.sin(e),a=Math.cos(e),l=1-a;return t[0]=n*n*l+a,t[1]=i*n*l+u*c,t[2]=u*n*l-i*c,t[3]=0,t[4]=n*i*l-u*c,t[5]=i*i*l+a,t[6]=u*i*l+n*c,t[7]=0,t[8]=n*u*l+i*c,t[9]=i*u*l-n*c,t[10]=u*u*l+a,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function B(t,e){const r=Math.sin(e),n=Math.cos(e);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=n,t[6]=r,t[7]=0,t[8]=0,t[9]=-r,t[10]=n,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function M(t,e){const r=Math.sin(e),n=Math.cos(e);return t[0]=n,t[1]=r,t[2]=0,t[3]=0,t[4]=-r,t[5]=n,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function T(t,e,r){const n=e[0],s=e[1],i=e[2],u=e[3],o=n+n,f=s+s,c=i+i,a=n*o,l=n*f,h=n*c,p=s*f,y=s*c,d=i*c,m=u*o,B=u*f,M=u*c;return t[0]=1-(p+d),t[1]=l+M,t[2]=h-B,t[3]=0,t[4]=l-M,t[5]=1-(a+d),t[6]=y+m,t[7]=0,t[8]=h+B,t[9]=y-m,t[10]=1-(a+p),t[11]=0,t[12]=r[0],t[13]=r[1],t[14]=r[2],t[15]=1,t}const E=(0,n.vt)();function g(t,e){return t[0]=e[12],t[1]=e[13],t[2]=e[14],t}function b(t,e){const r=e[0],n=e[1],s=e[2],i=e[4],u=e[5],o=e[6],f=e[8],c=e[9],a=e[10];return t[0]=Math.sqrt(r*r+n*n+s*s),t[1]=Math.sqrt(i*i+u*u+o*o),t[2]=Math.sqrt(f*f+c*c+a*a),t}function S(t,e){const r=e[0]+e[5]+e[10];let n=0;return r>0?(n=2*Math.sqrt(r+1),t[3]=.25*n,t[0]=(e[6]-e[9])/n,t[1]=(e[8]-e[2])/n,t[2]=(e[1]-e[4])/n):e[0]>e[5]&&e[0]>e[10]?(n=2*Math.sqrt(1+e[0]-e[5]-e[10]),t[3]=(e[6]-e[9])/n,t[0]=.25*n,t[1]=(e[1]+e[4])/n,t[2]=(e[8]+e[2])/n):e[5]>e[10]?(n=2*Math.sqrt(1+e[5]-e[0]-e[10]),t[3]=(e[8]-e[2])/n,t[0]=(e[1]+e[4])/n,t[1]=.25*n,t[2]=(e[6]+e[9])/n):(n=2*Math.sqrt(1+e[10]-e[0]-e[5]),t[3]=(e[1]-e[4])/n,t[0]=(e[8]+e[2])/n,t[1]=(e[6]+e[9])/n,t[2]=.25*n),t}function A(t,e,r,n){const s=e[0],i=e[1],u=e[2],o=e[3],f=s+s,c=i+i,a=u+u,l=s*f,h=s*c,p=s*a,y=i*c,d=i*a,m=u*a,B=o*f,M=o*c,T=o*a,E=n[0],g=n[1],b=n[2];return t[0]=(1-(y+m))*E,t[1]=(h+T)*E,t[2]=(p-M)*E,t[3]=0,t[4]=(h-T)*g,t[5]=(1-(l+m))*g,t[6]=(d+B)*g,t[7]=0,t[8]=(p+M)*b,t[9]=(d-B)*b,t[10]=(1-(l+y))*b,t[11]=0,t[12]=r[0],t[13]=r[1],t[14]=r[2],t[15]=1,t}function x(t,e,r,n,s){const i=e[0],u=e[1],o=e[2],f=e[3],c=i+i,a=u+u,l=o+o,h=i*c,p=i*a,y=i*l,d=u*a,m=u*l,B=o*l,M=f*c,T=f*a,E=f*l,g=n[0],b=n[1],S=n[2],A=s[0],x=s[1],v=s[2],_=(1-(d+B))*g,w=(p+E)*g,R=(y-T)*g,C=(p-E)*b,N=(1-(h+B))*b,F=(m+M)*b,L=(y+T)*S,q=(m-M)*S,P=(1-(h+d))*S;return t[0]=_,t[1]=w,t[2]=R,t[3]=0,t[4]=C,t[5]=N,t[6]=F,t[7]=0,t[8]=L,t[9]=q,t[10]=P,t[11]=0,t[12]=r[0]+A-(_*A+C*x+L*v),t[13]=r[1]+x-(w*A+N*x+q*v),t[14]=r[2]+v-(R*A+F*x+P*v),t[15]=1,t}function v(t,e,r,n,s,i,u){const o=1/(r-e),f=1/(s-n),c=1/(i-u);return t[0]=2*i*o,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*i*f,t[6]=0,t[7]=0,t[8]=(r+e)*o,t[9]=(s+n)*f,t[10]=(u+i)*c,t[11]=-1,t[12]=0,t[13]=0,t[14]=u*i*2*c,t[15]=0,t}function _(t,e,r,n,s,i,u){const o=1/(e-r),f=1/(n-s),c=1/(i-u);return t[0]=-2*o,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*f,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*c,t[11]=0,t[12]=(e+r)*o,t[13]=(s+n)*f,t[14]=(u+i)*c,t[15]=1,t}function w(t,e,r,n){const i=e[0],u=e[1],f=e[2];let c=i-r[0],a=u-r[1],l=f-r[2];const h=(0,s.FD)();if(Math.abs(c)<h&&Math.abs(a)<h&&Math.abs(l)<h)return void o(t);let p=1/Math.sqrt(c*c+a*a+l*l);c*=p,a*=p,l*=p;const y=n[0],d=n[1],m=n[2];let B=d*l-m*a,M=m*c-y*l,T=y*a-d*c;p=Math.sqrt(B*B+M*M+T*T),p?(p=1/p,B*=p,M*=p,T*=p):(B=0,M=0,T=0);let E=a*T-l*M,g=l*B-c*T,b=c*M-a*B;p=Math.sqrt(E*E+g*g+b*b),p?(p=1/p,E*=p,g*=p,b*=p):(E=0,g=0,b=0),t[0]=B,t[1]=E,t[2]=c,t[3]=0,t[4]=M,t[5]=g,t[6]=a,t[7]=0,t[8]=T,t[9]=b,t[10]=l,t[11]=0,t[12]=-(B*i+M*u+T*f),t[13]=-(E*i+g*u+b*f),t[14]=-(c*i+a*u+l*f),t[15]=1}function R(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2],t[3]=e[3]-r[3],t[4]=e[4]-r[4],t[5]=e[5]-r[5],t[6]=e[6]-r[6],t[7]=e[7]-r[7],t[8]=e[8]-r[8],t[9]=e[9]-r[9],t[10]=e[10]-r[10],t[11]=e[11]-r[11],t[12]=e[12]-r[12],t[13]=e[13]-r[13],t[14]=e[14]-r[14],t[15]=e[15]-r[15],t}function C(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]&&t[9]===e[9]&&t[10]===e[10]&&t[11]===e[11]&&t[12]===e[12]&&t[13]===e[13]&&t[14]===e[14]&&t[15]===e[15]}function N(t){const e=(0,s.FD)(),r=t[0],n=t[1],i=t[2],u=t[4],o=t[5],f=t[6],c=t[8],a=t[9],l=t[10];return Math.abs(1-(r*r+u*u+c*c))<=e&&Math.abs(1-(n*n+o*o+a*a))<=e&&Math.abs(1-(i*i+f*f+l*l))<=e}function F(t){return 1===t[0]&&0===t[1]&&0===t[2]&&0===t[4]&&1===t[5]&&0===t[6]&&0===t[8]&&0===t[9]&&1===t[10]}const L=a,q=R;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t[3]=e[3]+r[3],t[4]=e[4]+r[4],t[5]=e[5]+r[5],t[6]=e[6]+r[6],t[7]=e[7]+r[7],t[8]=e[8]+r[8],t[9]=e[9]+r[9],t[10]=e[10]+r[10],t[11]=e[11]+r[11],t[12]=e[12]+r[12],t[13]=e[13]+r[13],t[14]=e[14]+r[14],t[15]=e[15]+r[15],t},adjoint:function(t,e){const r=e[0],n=e[1],s=e[2],i=e[3],u=e[4],o=e[5],f=e[6],c=e[7],a=e[8],l=e[9],h=e[10],p=e[11],y=e[12],d=e[13],m=e[14],B=e[15];return t[0]=o*(h*B-p*m)-l*(f*B-c*m)+d*(f*p-c*h),t[1]=-(n*(h*B-p*m)-l*(s*B-i*m)+d*(s*p-i*h)),t[2]=n*(f*B-c*m)-o*(s*B-i*m)+d*(s*c-i*f),t[3]=-(n*(f*p-c*h)-o*(s*p-i*h)+l*(s*c-i*f)),t[4]=-(u*(h*B-p*m)-a*(f*B-c*m)+y*(f*p-c*h)),t[5]=r*(h*B-p*m)-a*(s*B-i*m)+y*(s*p-i*h),t[6]=-(r*(f*B-c*m)-u*(s*B-i*m)+y*(s*c-i*f)),t[7]=r*(f*p-c*h)-u*(s*p-i*h)+a*(s*c-i*f),t[8]=u*(l*B-p*d)-a*(o*B-c*d)+y*(o*p-c*l),t[9]=-(r*(l*B-p*d)-a*(n*B-i*d)+y*(n*p-i*l)),t[10]=r*(o*B-c*d)-u*(n*B-i*d)+y*(n*c-i*o),t[11]=-(r*(o*p-c*l)-u*(n*p-i*l)+a*(n*c-i*o)),t[12]=-(u*(l*m-h*d)-a*(o*m-f*d)+y*(o*h-f*l)),t[13]=r*(l*m-h*d)-a*(n*m-s*d)+y*(n*h-s*l),t[14]=-(r*(o*m-f*d)-u*(n*m-s*d)+y*(n*f-s*o)),t[15]=r*(o*h-f*l)-u*(n*h-s*l)+a*(n*f-s*o),t},copy:i,determinant:function(t){const e=t[0],r=t[1],n=t[2],s=t[3],i=t[4],u=t[5],o=t[6],f=t[7],c=t[8],a=t[9],l=t[10],h=t[11],p=t[12],y=t[13],d=t[14],m=t[15];return(e*u-r*i)*(l*m-h*d)-(e*o-n*i)*(a*m-h*y)+(e*f-s*i)*(a*d-l*y)+(r*o-n*u)*(c*m-h*p)-(r*f-s*u)*(c*d-l*p)+(n*f-s*o)*(c*y-a*p)},equals:function(t,e){if(t===e)return!0;const r=t[0],n=t[1],i=t[2],u=t[3],o=t[4],f=t[5],c=t[6],a=t[7],l=t[8],h=t[9],p=t[10],y=t[11],d=t[12],m=t[13],B=t[14],M=t[15],T=e[0],E=e[1],g=e[2],b=e[3],S=e[4],A=e[5],x=e[6],v=e[7],_=e[8],w=e[9],R=e[10],C=e[11],N=e[12],F=e[13],L=e[14],q=e[15],P=(0,s.FD)();return Math.abs(r-T)<=P*Math.max(1,Math.abs(r),Math.abs(T))&&Math.abs(n-E)<=P*Math.max(1,Math.abs(n),Math.abs(E))&&Math.abs(i-g)<=P*Math.max(1,Math.abs(i),Math.abs(g))&&Math.abs(u-b)<=P*Math.max(1,Math.abs(u),Math.abs(b))&&Math.abs(o-S)<=P*Math.max(1,Math.abs(o),Math.abs(S))&&Math.abs(f-A)<=P*Math.max(1,Math.abs(f),Math.abs(A))&&Math.abs(c-x)<=P*Math.max(1,Math.abs(c),Math.abs(x))&&Math.abs(a-v)<=P*Math.max(1,Math.abs(a),Math.abs(v))&&Math.abs(l-_)<=P*Math.max(1,Math.abs(l),Math.abs(_))&&Math.abs(h-w)<=P*Math.max(1,Math.abs(h),Math.abs(w))&&Math.abs(p-R)<=P*Math.max(1,Math.abs(p),Math.abs(R))&&Math.abs(y-C)<=P*Math.max(1,Math.abs(y),Math.abs(C))&&Math.abs(d-N)<=P*Math.max(1,Math.abs(d),Math.abs(N))&&Math.abs(m-F)<=P*Math.max(1,Math.abs(m),Math.abs(F))&&Math.abs(B-L)<=P*Math.max(1,Math.abs(B),Math.abs(L))&&Math.abs(M-q)<=P*Math.max(1,Math.abs(M),Math.abs(q))},exactEquals:C,frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+t[6]**2+t[7]**2+t[8]**2+t[9]**2+t[10]**2+t[11]**2+t[12]**2+t[13]**2+t[14]**2+t[15]**2)},fromQuat:function(t,e){const r=e[0],n=e[1],s=e[2],i=e[3],u=r+r,o=n+n,f=s+s,c=r*u,a=n*u,l=n*o,h=s*u,p=s*o,y=s*f,d=i*u,m=i*o,B=i*f;return t[0]=1-l-y,t[1]=a+B,t[2]=h-m,t[3]=0,t[4]=a-B,t[5]=1-c-y,t[6]=p+d,t[7]=0,t[8]=h+m,t[9]=p-d,t[10]=1-c-l,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromQuat2:function(t,e){const r=E,n=-e[0],s=-e[1],i=-e[2],u=e[3],o=e[4],f=e[5],c=e[6],a=e[7],l=n*n+s*s+i*i+u*u;return l>0?(r[0]=2*(o*u+a*n+f*i-c*s)/l,r[1]=2*(f*u+a*s+c*n-o*i)/l,r[2]=2*(c*u+a*i+o*s-f*n)/l):(r[0]=2*(o*u+a*n+f*i-c*s),r[1]=2*(f*u+a*s+c*n-o*i),r[2]=2*(c*u+a*i+o*s-f*n)),T(t,e,r),t},fromRotation:m,fromRotationTranslation:T,fromRotationTranslationScale:A,fromRotationTranslationScaleOrigin:x,fromScaling:function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=e[1],t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=e[2],t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromTranslation:d,fromXRotation:B,fromYRotation:function(t,e){const r=Math.sin(e),n=Math.cos(e);return t[0]=n,t[1]=0,t[2]=-r,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=r,t[9]=0,t[10]=n,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromZRotation:M,frustum:v,getRotation:S,getScale:b,getTranslation:g,hasIdentityRotation:F,identity:o,invert:c,invertOrIdentity:function(t,e){return c(t,e)||o(t),t},isOrthoNormal:N,lookAt:w,mul:L,multiply:a,multiplyScalar:function(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t[4]=e[4]*r,t[5]=e[5]*r,t[6]=e[6]*r,t[7]=e[7]*r,t[8]=e[8]*r,t[9]=e[9]*r,t[10]=e[10]*r,t[11]=e[11]*r,t[12]=e[12]*r,t[13]=e[13]*r,t[14]=e[14]*r,t[15]=e[15]*r,t},multiplyScalarAndAdd:function(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t[2]=e[2]+r[2]*n,t[3]=e[3]+r[3]*n,t[4]=e[4]+r[4]*n,t[5]=e[5]+r[5]*n,t[6]=e[6]+r[6]*n,t[7]=e[7]+r[7]*n,t[8]=e[8]+r[8]*n,t[9]=e[9]+r[9]*n,t[10]=e[10]+r[10]*n,t[11]=e[11]+r[11]*n,t[12]=e[12]+r[12]*n,t[13]=e[13]+r[13]*n,t[14]=e[14]+r[14]*n,t[15]=e[15]+r[15]*n,t},ortho:_,perspective:function(t,e,r,n,s){const i=1/Math.tan(e/2);let u;return t[0]=i/r,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=i,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=s&&s!==1/0?(u=1/(n-s),t[10]=(s+n)*u,t[14]=2*s*n*u):(t[10]=-1,t[14]=-2*n),t},perspectiveFromFieldOfView:function(t,e,r,n){const s=Math.tan(e.upDegrees*Math.PI/180),i=Math.tan(e.downDegrees*Math.PI/180),u=Math.tan(e.leftDegrees*Math.PI/180),o=Math.tan(e.rightDegrees*Math.PI/180),f=2/(u+o),c=2/(s+i);return t[0]=f,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=c,t[6]=0,t[7]=0,t[8]=-(u-o)*f*.5,t[9]=(s-i)*c*.5,t[10]=n/(r-n),t[11]=-1,t[12]=0,t[13]=0,t[14]=n*r/(r-n),t[15]=0,t},rotate:p,rotateX:y,rotateY:function(t,e,r){const n=Math.sin(r),s=Math.cos(r),i=e[0],u=e[1],o=e[2],f=e[3],c=e[8],a=e[9],l=e[10],h=e[11];return e!==t&&(t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=i*s-c*n,t[1]=u*s-a*n,t[2]=o*s-l*n,t[3]=f*s-h*n,t[8]=i*n+c*s,t[9]=u*n+a*s,t[10]=o*n+l*s,t[11]=f*n+h*s,t},rotateZ:function(t,e,r){const n=Math.sin(r),s=Math.cos(r),i=e[0],u=e[1],o=e[2],f=e[3],c=e[4],a=e[5],l=e[6],h=e[7];return e!==t&&(t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=i*s+c*n,t[1]=u*s+a*n,t[2]=o*s+l*n,t[3]=f*s+h*n,t[4]=c*s-i*n,t[5]=a*s-u*n,t[6]=l*s-o*n,t[7]=h*s-f*n,t},scale:h,set:u,str:function(t){return"mat4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+", "+t[9]+", "+t[10]+", "+t[11]+", "+t[12]+", "+t[13]+", "+t[14]+", "+t[15]+")"},sub:q,subtract:R,targetTo:function(t,e,r,n){const s=e[0],i=e[1],u=e[2],o=n[0],f=n[1],c=n[2];let a=s-r[0],l=i-r[1],h=u-r[2],p=a*a+l*l+h*h;p>0&&(p=1/Math.sqrt(p),a*=p,l*=p,h*=p);let y=f*h-c*l,d=c*a-o*h,m=o*l-f*a;return p=y*y+d*d+m*m,p>0&&(p=1/Math.sqrt(p),y*=p,d*=p,m*=p),t[0]=y,t[1]=d,t[2]=m,t[3]=0,t[4]=l*m-h*d,t[5]=h*y-a*m,t[6]=a*d-l*y,t[7]=0,t[8]=a,t[9]=l,t[10]=h,t[11]=0,t[12]=s,t[13]=i,t[14]=u,t[15]=1,t},translate:l,transpose:f},Symbol.toStringTag,{value:"Module"}))},78955(t,e,r){r.d(e,{Bw:()=>m,C:()=>s,Cc:()=>E,LI:()=>h,Om:()=>T,S8:()=>M,T9:()=>l,WQ:()=>u,Z0:()=>g,aI:()=>S,hG:()=>d,hZ:()=>i,hs:()=>p,jk:()=>a,m3:()=>B,t2:()=>b});var n=r(34304);function s(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}function i(t,e,r,n,s){return t[0]=e,t[1]=r,t[2]=n,t[3]=s,t}function u(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t[3]=e[3]+r[3],t}function o(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2],t[3]=e[3]-r[3],t}function f(t,e,r){return t[0]=e[0]*r[0],t[1]=e[1]*r[1],t[2]=e[2]*r[2],t[3]=e[3]*r[3],t}function c(t,e,r){return t[0]=e[0]/r[0],t[1]=e[1]/r[1],t[2]=e[2]/r[2],t[3]=e[3]/r[3],t}function a(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t[2]=Math.min(e[2],r[2]),t[3]=Math.min(e[3],r[3]),t}function l(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t[2]=Math.max(e[2],r[2]),t[3]=Math.max(e[3],r[3]),t}function h(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t[3]=Math.round(e[3]),t}function p(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t}function y(t,e){const r=e[0]-t[0],n=e[1]-t[1],s=e[2]-t[2],i=e[3]-t[3];return Math.sqrt(r*r+n*n+s*s+i*i)}function d(t,e){const r=e[0]-t[0],n=e[1]-t[1],s=e[2]-t[2],i=e[3]-t[3];return r*r+n*n+s*s+i*i}function m(t){const e=t[0],r=t[1],n=t[2],s=t[3];return Math.sqrt(e*e+r*r+n*n+s*s)}function B(t){const e=t[0],r=t[1],n=t[2],s=t[3];return e*e+r*r+n*n+s*s}function M(t,e){const r=e[0],n=e[1],s=e[2],i=e[3];let u=r*r+n*n+s*s+i*i;return u>0&&(u=1/Math.sqrt(u),t[0]=r*u,t[1]=n*u,t[2]=s*u,t[3]=i*u),t}function T(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]}function E(t,e,r,n){const s=e[0],i=e[1],u=e[2],o=e[3];return t[0]=s+n*(r[0]-s),t[1]=i+n*(r[1]-i),t[2]=u+n*(r[2]-u),t[3]=o+n*(r[3]-o),t}function g(t,e,r){const n=e[0],s=e[1],i=e[2],u=e[3];return t[0]=r[0]*n+r[4]*s+r[8]*i+r[12]*u,t[1]=r[1]*n+r[5]*s+r[9]*i+r[13]*u,t[2]=r[2]*n+r[6]*s+r[10]*i+r[14]*u,t[3]=r[3]*n+r[7]*s+r[11]*i+r[15]*u,t}function b(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]}function S(t,e){const r=t[0],s=t[1],i=t[2],u=t[3],o=e[0],f=e[1],c=e[2],a=e[3],l=(0,n.FD)();return Math.abs(r-o)<=l*Math.max(1,Math.abs(r),Math.abs(o))&&Math.abs(s-f)<=l*Math.max(1,Math.abs(s),Math.abs(f))&&Math.abs(i-c)<=l*Math.max(1,Math.abs(i),Math.abs(c))&&Math.abs(u-a)<=l*Math.max(1,Math.abs(u),Math.abs(a))}const A=o,x=f,v=c,_=y,w=d,R=m,C=B;Object.freeze(Object.defineProperty({__proto__:null,add:u,ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t[3]=Math.ceil(e[3]),t},copy:s,copyVec3:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t},dist:_,distance:y,div:v,divide:c,dot:T,equals:S,exactEquals:b,floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t[3]=Math.floor(e[3]),t},inverse:function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t[3]=1/e[3],t},len:R,length:m,lerp:E,max:l,min:a,mul:x,multiply:f,negate:function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=-e[3],t},normalize:M,random:function(t,e=1){const r=n.Ov;let s,i,u,o,f,c;do{s=2*r()-1,i=2*r()-1,f=s*s+i*i}while(f>=1);do{u=2*r()-1,o=2*r()-1,c=u*u+o*o}while(c>=1);const a=Math.sqrt((1-f)/c);return t[0]=e*s,t[1]=e*i,t[2]=e*u*a,t[3]=e*o*a,t},round:h,scale:p,scaleAndAdd:function(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t[2]=e[2]+r[2]*n,t[3]=e[3]+r[3]*n,t},set:i,sqrDist:w,sqrLen:C,squaredDistance:d,squaredLength:B,str:function(t){return"vec4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"},sub:A,subtract:o,transformMat4:g,transformQuat:function(t,e,r){const n=e[0],s=e[1],i=e[2],u=r[0],o=r[1],f=r[2],c=r[3],a=c*n+o*i-f*s,l=c*s+f*n-u*i,h=c*i+u*s-o*n,p=-u*n-o*s-f*i;return t[0]=a*c+p*-u+l*-f-h*-o,t[1]=l*c+p*-o+h*-u-a*-f,t[2]=h*c+p*-f+a*-o-l*-u,t[3]=e[3],t}},Symbol.toStringTag,{value:"Module"}))},48353(t,e,r){r.d(e,{l:()=>c});var n=r(34727),s=r(58083),i=r(51850);function u(t,e,r){const n=Math.sin(t),s=Math.cos(t),i=Math.sin(e),u=Math.cos(e),o=r;return o[0]=-n,o[4]=-i*s,o[8]=u*s,o[12]=0,o[1]=s,o[5]=-i*n,o[9]=u*n,o[13]=0,o[2]=0,o[6]=u,o[10]=i,o[14]=0,o[3]=0,o[7]=0,o[11]=0,o[15]=1,o}var o=r(49208),f=r(21325);function c(t,e,r,n){const i=(0,o.Tp)(t,n);if(null==i)return!1;const c=i.source.spatialReferenceId,y=i.dest.spatialReferenceId;if(c===y&&!a(y)&&(0!==c||(0,f.aI)(t,n)))return(0,s.kN)(r,e),!0;if(a(y)){const t=o.w5[c][10],n=o.w5[10][y];return null!=t&&null!=n&&(t(e,0,h,0),n(h,0,p,0),u(l*h[0],l*h[1],r),r[12]=p[0],r[13]=p[1],r[14]=p[2],!0)}const d=a(c);if((3===y||11===y||2===y||5===y)&&(2===c||d||3===c||5===c)){const t=o.w5[c][10],n=o.w5[10][y];return null!=t&&null!=n&&(t(e,0,h,0),n(h,0,p,0),d?function(t,e,r){u(t,e,r),(0,s.mg)(r,r)}(l*h[0],l*h[1],r):(0,s.D_)(r),r[12]=p[0],r[13]=p[1],r[14]=p[2],!0)}return!1}function a(t){return 1===t||6===t||8===t||4===t}const l=(0,n.kU)(1),h=(0,i.vt)(),p=(0,i.vt)()},13030(t,e,r){r.d(e,{Y$:()=>T,XW:()=>M,qB:()=>C,Qt:()=>Q,My:()=>tt,bf:()=>D,jZ:()=>v,j0:()=>_,Sx:()=>w,E$:()=>R,Qy:()=>ut,h:()=>Y,P:()=>j,SL:()=>q,dy:()=>st,ES:()=>ot,gH:()=>g,ZD:()=>E,si:()=>N,mJ:()=>W,UL:()=>et,D6:()=>$,Yi:()=>I,An:()=>k,LC:()=>P,xs:()=>S,EC:()=>b,Xm:()=>F,Vp:()=>H,zD:()=>rt,m8:()=>G,nS:()=>X,H$:()=>z,eI:()=>V,td:()=>it,Eq:()=>x,jz:()=>A,Aj:()=>L,E7:()=>J,Y4:()=>nt,TX:()=>K,Uz:()=>U,ml:()=>Z,XP:()=>O});var n=r(34727),s=r(34275),i=r(37585),u=r(48163),o=r(78955),f=r(91829),c=r(20498);class a{static{this.ElementCount=9}constructor(t,e,r=0,n,s){this.TypedArrayConstructor=t,this.elementCount=9;const i=this.TypedArrayConstructor;void 0===n&&(n=9*i.BYTES_PER_ELEMENT);const u=0===e.byteLength?0:r;this.typedBuffer=null==s?new i(e,u):new i(e,u,(s-r)/i.BYTES_PER_ELEMENT),this.typedBufferStride=n/i.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(t,e,r=this.count-e){const n=this.typedBuffer.byteOffset+e*this.stride;return new t(this.buffer,n,this.stride,n+r*this.stride)}getMat(t,e){let r=t*this.typedBufferStride;for(let t=0;t<9;t++)e[t]=this.typedBuffer[r++];return e}setMat(t,e){let r=t*this.typedBufferStride;for(let t=0;t<9;t++)this.typedBuffer[r++]=e[t]}get(t,e){return this.typedBuffer[t*this.typedBufferStride+e]}set(t,e,r){this.typedBuffer[t*this.typedBufferStride+e]=r}copyFrom(t,e,r){const n=this.typedBuffer,s=e.typedBuffer;let i=t*this.typedBufferStride,u=r*e.typedBufferStride;for(let t=0;t<9;++t)n[i++]=s[u++]}get buffer(){return this.typedBuffer.buffer}}class l{static{this.ElementCount=16}constructor(t,e,r=0,n,s){this.TypedArrayConstructor=t,this.elementCount=16;const i=this.TypedArrayConstructor;void 0===n&&(n=16*i.BYTES_PER_ELEMENT);const u=0===e.byteLength?0:r;this.typedBuffer=null==s?new i(e,u):new i(e,u,(s-r)/i.BYTES_PER_ELEMENT),this.typedBufferStride=n/i.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(t,e,r=this.count-e){const n=this.typedBuffer.byteOffset+e*this.stride;return new t(this.buffer,n,this.stride,n+r*this.stride)}getMat(t,e){let r=t*this.typedBufferStride;for(let t=0;t<16;t++)e[t]=this.typedBuffer[r++];return e}setMat(t,e){let r=t*this.typedBufferStride;for(let t=0;t<16;t++)this.typedBuffer[r++]=e[t]}get(t,e){return this.typedBuffer[t*this.typedBufferStride+e]}set(t,e,r){this.typedBuffer[t*this.typedBufferStride+e]=r}copyFrom(t,e,r){this.copyFromTypedBuffer(t,e.typedBuffer,r*e.typedBufferStride)}copyFromTypedBuffer(t,e,r){const n=this.typedBuffer;let s=t*this.typedBufferStride;for(let t=0;t<16;++t)n[s++]=e[r++]}get buffer(){return this.typedBuffer.buffer}}class h{static{this.ElementCount=1}constructor(t,e,r=0,n,s){this.TypedArrayConstructor=t,this.elementCount=1;const i=this.TypedArrayConstructor;void 0===n&&(n=i.BYTES_PER_ELEMENT);const u=0===e.byteLength?0:r;this.typedBuffer=null==s?new i(e,u):new i(e,u,(s-r)/i.BYTES_PER_ELEMENT),this.stride=n,this.typedBufferStride=n/i.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride)}sliceBuffer(t,e,r=this.count-e){const n=this.typedBuffer.byteOffset+e*this.stride;return new t(this.buffer,n,this.stride,n+r*this.stride)}get(t){return this.typedBuffer[t*this.typedBufferStride]}set(t,e){this.typedBuffer[t*this.typedBufferStride]=e}get buffer(){return this.typedBuffer.buffer}}class p{static{this.ElementCount=2}constructor(t,e,r=0,n,s){this.TypedArrayConstructor=t,this.start=r,this.elementCount=2;const i=this.TypedArrayConstructor;void 0===n&&(n=2*i.BYTES_PER_ELEMENT);const u=0===e.byteLength?0:r;this.typedBuffer=null==s?new i(e,u):new i(e,u,(s-r)/i.BYTES_PER_ELEMENT),this.typedBufferStride=n/i.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(t,e,r=this.count-e){const n=this.typedBuffer.byteOffset+e*this.stride;return new t(this.buffer,n,this.stride,n+r*this.stride)}getVec(t,e){return t*=this.typedBufferStride,(0,i.hZ)(e,this.typedBuffer[t],this.typedBuffer[t+1])}setVec(t,e){t*=this.typedBufferStride,this.typedBuffer[t++]=e[0],this.typedBuffer[t]=e[1]}get(t,e){return this.typedBuffer[t*this.typedBufferStride+e]}set(t,e,r){this.typedBuffer[t*this.typedBufferStride+e]=r}setValues(t,e,r){t*=this.typedBufferStride,this.typedBuffer[t++]=e,this.typedBuffer[t]=r}copyFrom(t,e,r){const n=this.typedBuffer,s=e.typedBuffer;let i=t*this.typedBufferStride,u=r*e.typedBufferStride;n[i++]=s[u++],n[i]=s[u]}get buffer(){return this.typedBuffer.buffer}}var y=r(35522);class d{static{this.ElementCount=3}constructor(t,e,r=0,n,s){this.TypedArrayConstructor=t,this.elementCount=3;const i=this.TypedArrayConstructor;void 0===n&&(n=3*i.BYTES_PER_ELEMENT);const u=0===e.byteLength?0:r;this.typedBuffer=null==s?new i(e,u):new i(e,u,(s-r)/i.BYTES_PER_ELEMENT),this.typedBufferStride=n/i.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(t,e,r=this.count-e){const n=this.typedBuffer.byteOffset+e*this.stride;return new t(this.buffer,n,this.stride,n+r*this.stride)}getVec(t,e){return t*=this.typedBufferStride,(0,y.hZ)(e,this.typedBuffer[t],this.typedBuffer[t+1],this.typedBuffer[t+2])}setVec(t,e){t*=this.typedBufferStride,this.typedBuffer[t++]=e[0],this.typedBuffer[t++]=e[1],this.typedBuffer[t]=e[2]}get(t,e){return this.typedBuffer[t*this.typedBufferStride+e]}set(t,e,r){this.typedBuffer[t*this.typedBufferStride+e]=r}setValues(t,e,r,n){t*=this.typedBufferStride,this.typedBuffer[t++]=e,this.typedBuffer[t++]=r,this.typedBuffer[t]=n}copyFrom(t,e,r){const n=this.typedBuffer,s=e.typedBuffer;let i=t*this.typedBufferStride,u=r*e.typedBufferStride;n[i++]=s[u++],n[i++]=s[u++],n[i]=s[u]}get buffer(){return this.typedBuffer.buffer}}class m{static{this.ElementCount=4}constructor(t,e,r=0,n,s){this.TypedArrayConstructor=t,this.start=r,this.elementCount=4;const i=this.TypedArrayConstructor;void 0===n&&(n=4*i.BYTES_PER_ELEMENT);const u=0===e.byteLength?0:r;this.typedBuffer=null==s?new i(e,u):new i(e,u,(s-r)/i.BYTES_PER_ELEMENT),this.typedBufferStride=n/i.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(t,e,r=this.count-e){const n=this.typedBuffer.byteOffset+e*this.stride;return new t(this.buffer,n,this.stride,n+r*this.stride)}getVec(t,e){return t*=this.typedBufferStride,(0,o.hZ)(e,this.typedBuffer[t++],this.typedBuffer[t++],this.typedBuffer[t++],this.typedBuffer[t])}setVec(t,e){t*=this.typedBufferStride,this.typedBuffer[t++]=e[0],this.typedBuffer[t++]=e[1],this.typedBuffer[t++]=e[2],this.typedBuffer[t]=e[3]}get(t,e){return this.typedBuffer[t*this.typedBufferStride+e]}set(t,e,r){this.typedBuffer[t*this.typedBufferStride+e]=r}setValues(t,e,r,n,s){t*=this.typedBufferStride,this.typedBuffer[t++]=e,this.typedBuffer[t++]=r,this.typedBuffer[t++]=n,this.typedBuffer[t]=s}copyFrom(t,e,r){const n=this.typedBuffer,s=e.typedBuffer;let i=t*this.typedBufferStride,u=r*e.typedBufferStride;n[i++]=s[u++],n[i++]=s[u++],n[i++]=s[u++],n[i]=s[u]}get buffer(){return this.typedBuffer.buffer}}var B=r(620);class M extends h{constructor(t,e=0,r,n){(0,B.vA)(c.SX),super((0,c.pX)(),t,e,r,n),this.elementType="f16"}static{this.ElementType="f16"}}class T extends h{constructor(t,e=0,r,n){super(Float32Array,t,e,r,n),this.elementType="f32"}static{this.ElementType="f32"}}class E extends p{constructor(t,e=0,r,n){(0,B.vA)(c.SX),super((0,c.pX)(),t,e,r,n),this.elementType="f16"}slice(t,e){return this.sliceBuffer(E,t,e)}static{this.ElementType="f16"}}class g extends p{constructor(t,e=0,r,n){super(Float32Array,t,e,r,n),this.elementType="f32"}slice(t,e){return this.sliceBuffer(g,t,e)}static{this.ElementType="f32"}}class b extends d{constructor(t,e=0,r,n){(0,B.vA)(c.SX),super((0,c.pX)(),t,e,r,n),this.elementType="f16"}slice(t,e){return this.sliceBuffer(b,t,e)}static{this.ElementType="f16"}}class S extends d{constructor(t,e=0,r,n){super(Float32Array,t,e,r,n),this.elementType="f32"}slice(t,e){return this.sliceBuffer(S,t,e)}static fromTypedArray(t,e){return new S(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}static{this.ElementType="f32"}}class A extends m{constructor(t,e=0,r,n){(0,B.vA)(c.SX),super((0,c.pX)(),t,e,r,n),this.elementType="f16"}slice(t,e){return this.sliceBuffer(A,t,e)}static{this.ElementType="f16"}}class x extends m{constructor(t,e=0,r,n){super(Float32Array,t,e,r,n),this.elementType="f32"}slice(t,e){return this.sliceBuffer(x,t,e)}static{this.ElementType="f32"}}class v extends a{constructor(t,e=0,r,n){super(Float32Array,t,e,r,n),this.elementType="f32"}slice(t,e){return this.sliceBuffer(v,t,e)}static{this.ElementType="f32"}}class _ extends a{constructor(t,e=0,r,n){super(Float64Array,t,e,r,n),this.elementType="f64"}slice(t,e){return this.sliceBuffer(_,t,e)}static{this.ElementType="f64"}}class w extends l{constructor(t,e=0,r,n){super(Float32Array,t,e,r,n),this.elementType="f32"}slice(t,e){return this.sliceBuffer(w,t,e)}static{this.ElementType="f32"}}class R extends l{constructor(t,e=0,r,n){super(Float64Array,t,e,r,n),this.elementType="f64"}slice(t,e){return this.sliceBuffer(R,t,e)}static{this.ElementType="f64"}}class C extends h{constructor(t,e=0,r,n){super(Float64Array,t,e,r,n),this.elementType="f64"}slice(t,e){return this.sliceBuffer(C,t,e)}static{this.ElementType="f64"}}class N extends p{constructor(t,e=0,r,n){super(Float64Array,t,e,r,n),this.elementType="f64"}slice(t,e){return this.sliceBuffer(N,t,e)}static{this.ElementType="f64"}}class F extends d{constructor(t,e=0,r,n){super(Float64Array,t,e,r,n),this.elementType="f64"}slice(t,e){return this.sliceBuffer(F,t,e)}static fromTypedArray(t,e){return new F(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}static{this.ElementType="f64"}}class L extends m{constructor(t,e=0,r,n){super(Float64Array,t,e,r,n),this.elementType="f64"}slice(t,e){return this.sliceBuffer(L,t,e)}static{this.ElementType="f64"}}class q extends h{constructor(t,e=0,r,n){super(Uint8Array,t,e,r,n),this.elementType="u8"}slice(t,e){return this.sliceBuffer(q,t,e)}static{this.ElementType="u8"}}class P extends p{constructor(t,e=0,r,n){super(Uint8Array,t,e,r,n),this.elementType="u8"}slice(t,e){return this.sliceBuffer(P,t,e)}static{this.ElementType="u8"}}class V extends d{constructor(t,e=0,r,n){super(Uint8Array,t,e,r,n),this.elementType="u8"}slice(t,e){return this.sliceBuffer(V,t,e)}static fromTypedArray(t,e){return new V(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}static{this.ElementType="u8"}}class O extends m{constructor(t,e=0,r,n){super(Uint8Array,t,e,r,n),this.elementType="u8"}slice(t,e){return this.sliceBuffer(O,t,e)}static{this.ElementType="u8"}}class Y extends h{constructor(t,e=0,r,n){super(Uint16Array,t,e,r,n),this.elementType="u16"}slice(t,e){return this.sliceBuffer(Y,t,e)}static{this.ElementType="u16"}}class I extends p{constructor(t,e=0,r,n){super(Uint16Array,t,e,r,n),this.elementType="u16"}slice(t,e){return this.sliceBuffer(I,t,e)}static{this.ElementType="u16"}}class X extends d{constructor(t,e=0,r,n){super(Uint16Array,t,e,r,n),this.elementType="u16"}slice(t,e){return this.sliceBuffer(X,t,e)}static{this.ElementType="u16"}}class U extends m{constructor(t,e=0,r,n){super(Uint16Array,t,e,r,n),this.elementType="u16"}slice(t,e){return this.sliceBuffer(U,t,e)}static{this.ElementType="u16"}}class j extends h{constructor(t,e=0,r,n){super(Uint32Array,t,e,r,n),this.elementType="u32"}slice(t,e){return this.sliceBuffer(j,t,e)}static{this.ElementType="u32"}}class k extends p{constructor(t,e=0,r,n){super(Uint32Array,t,e,r,n),this.elementType="u32"}slice(t,e){return this.sliceBuffer(k,t,e)}static{this.ElementType="u32"}}class z extends d{constructor(t,e=0,r,n){super(Uint32Array,t,e,r,n),this.elementType="u32"}slice(t,e){return this.sliceBuffer(z,t,e)}static{this.ElementType="u32"}}class Z extends m{constructor(t,e=0,r,n){super(Uint32Array,t,e,r,n),this.elementType="u32"}slice(t,e){return this.sliceBuffer(Z,t,e)}static{this.ElementType="u32"}}class D extends h{constructor(t,e=0,r,n){super(Int8Array,t,e,r,n),this.elementType="i8"}slice(t,e){return this.sliceBuffer(D,t,e)}static{this.ElementType="i8"}}class $ extends p{constructor(t,e=0,r,n){super(Int8Array,t,e,r,n),this.elementType="i8"}slice(t,e){return this.sliceBuffer($,t,e)}static{this.ElementType="i8"}}class G extends d{constructor(t,e=0,r,n){super(Int8Array,t,e,r,n),this.elementType="i8"}slice(t,e){return this.sliceBuffer(G,t,e)}static{this.ElementType="i8"}}class K extends m{constructor(t,e=0,r,n){super(Int8Array,t,e,r,n),this.elementType="i8"}slice(t,e){return this.sliceBuffer(K,t,e)}static{this.ElementType="i8"}}class Q extends h{constructor(t,e=0,r,n){super(Int16Array,t,e,r,n),this.elementType="i16"}slice(t,e){return this.sliceBuffer(Q,t,e)}static{this.ElementType="i16"}}class W extends p{constructor(t,e=0,r,n){super(Int16Array,t,e,r,n),this.elementType="i16"}slice(t,e){return this.sliceBuffer(W,t,e)}static{this.ElementType="i16"}}class H extends d{constructor(t,e=0,r,n){super(Int16Array,t,e,r,n),this.elementType="i16"}slice(t,e){return this.sliceBuffer(H,t,e)}static{this.ElementType="i16"}}class J extends m{constructor(t,e=0,r,n){super(Int16Array,t,e,r,n),this.elementType="i16"}slice(t,e){return this.sliceBuffer(J,t,e)}static{this.ElementType="i16"}}class tt extends h{constructor(t,e=0,r,n){super(Int32Array,t,e,r,n),this.elementType="i32"}slice(t,e){return this.sliceBuffer(tt,t,e)}static{this.ElementType="i32"}}class et extends p{constructor(t,e=0,r,n){super(Int32Array,t,e,r,n),this.elementType="i32"}slice(t,e){return this.sliceBuffer(et,t,e)}static{this.ElementType="i32"}}class rt extends d{constructor(t,e=0,r,n){super(Int32Array,t,e,r,n),this.elementType="i32"}slice(t,e){return this.sliceBuffer(rt,t,e)}static{this.ElementType="i32"}}class nt extends m{constructor(t,e=0,r,n){super(Int32Array,t,e,r,n),this.elementType="i32"}slice(t,e){return this.sliceBuffer(nt,t,e)}static{this.ElementType="i32"}}class st extends q{constructor(t,e=0,r,n){super(t,e,r,n)}get(t){return this.typedBuffer[t*this.typedBufferStride]/255}set(t,e){this.typedBuffer[t*this.typedBufferStride]=Math.round(255*(0,n.qE)(e,0,1))}slice(t,e){return this.sliceBuffer(st,t,e)}}class it extends O{constructor(t,e=0,r,n){super(t,e,r,n)}getVec(t,e){return(0,o.hs)(e,super.getVec(t,e),1/255)}setVec(t,e){(0,o.jk)(ct,(0,o.T9)(ct,e,f.uY),f.Un),(0,o.hs)(ct,ct,255),(0,o.LI)(ct,ct),super.setVec(t,ct)}get(t,e){return super.get(t,e)/255}set(t,e,r){super.set(t,e,Math.round(255*(0,n.qE)(r,0,1)))}setValues(t,e,r,n,s){(0,o.hZ)(ct,e,r,n,s),this.setVec(t,ct)}slice(t,e){return this.sliceBuffer(it,t,e)}}class ut extends Q{constructor(t,e=0,r,n){super(t,e,r,n)}get(t){return Math.max(super.get(t)/s.he,-1)}set(t,e){super.set(t,Math.round((0,n.qE)(e,-1,1)*s.he))}slice(t,e){return this.sliceBuffer(ut,t,e)}}class ot extends W{constructor(t,e=0,r,n){super(t,e,r,n)}getVec(t,e){return(0,i.hZ)(ft,-1,-1),(0,i.T9)(e,(0,i.hs)(e,super.getVec(t,e),1/s.he),ft)}setVec(t,e){(0,i.qE)(ft,e,u.IA,u.Un),(0,i.hs)(ft,ft,s.he),(0,i.LI)(ft,ft),super.setVec(t,ft)}get(t,e){return Math.max(super.get(t,e)/s.he,-1)}set(t,e,r){super.set(t,e,Math.round((0,n.qE)(r,-1,1)*s.he))}setValues(t,e,r){(0,i.hZ)(ft,e,r),this.setVec(t,ft)}slice(t,e){return this.sliceBuffer(ot,t,e)}}const ft=(0,u.vt)(),ct=(0,f.vt)()},20498(t,e,r){r.d(e,{Bg:()=>s,SX:()=>u,pX:()=>i});let n=globalThis.Float16Array;function s(...t){return new(n??Float32Array)(...t)}function i(){return n}let u=!!n},74594(t,e,r){r.d(e,{projectMeshVertexPositions:()=>o});var n=r(9762),s=r(95696),i=r(21325),u=r(72258);function o(t,e){const r=(0,u.UR)(t,s.A.absolute);if(!r)return null;let o=r.position;return(0,i.aI)(t.spatialReference,e)||(o=new Float64Array(r.position.length),(0,n.projectBuffer)(r.position,t.spatialReference,0,o,e,0))?o:null}},22141(t,e,r){r.d(e,{$5:()=>S,CN:()=>T,JP:()=>M,KM:()=>x,Mv:()=>_,X4:()=>E,gr:()=>b,qs:()=>A,si:()=>g,xA:()=>v});var n=r(34727),s=r(77690),i=r(29242),u=r(58083),o=r(9093),f=r(35522),c=r(51850),a=r(73941),l=r(48353),h=r(9762),p=(r(79258),r(21325)),y=r(28735),d=r(13030),m=r(73354),B=r(50867);const M="Projection may be possible after calling projection.load().";function T(t,e,r,n){t.error(`Failed to project from (wkid:${e.wkid}) to (wkid:${r.wkid}).${n?" ":""}${n}`)}function E(t,e,r,n,s,i){return R(0,d.xs.fromTypedArray(t),0,d.Xm.fromTypedArray(e),r,d.Xm.fromTypedArray(n),s,d.xs.fromTypedArray(i))?i:null}function g(t,e,r,n,s,i){return R(1,d.xs.fromTypedArray(t),0,d.Xm.fromTypedArray(e),r,d.Xm.fromTypedArray(n),s,d.xs.fromTypedArray(i))?i:null}function b(t,e,r,n){return(0,h.projectBuffer)(t,e,0,r,n,0)?r:null}function S(t,e,r,n){return(0,h.projectBuffer)(t,e,0,r,n,0)?r:null}function A(t,e,r){return(0,s.Ge)(L,r),(0,m.b)(e,t,L),(0,n.or)(L)&&(0,m.n)(e,e),e}function x(t,e,r){return(0,s.z0)(L,r),(0,B.t)(e,t,L),(0,n.or)(L)&&(0,m.n)(e,e,4),e}function v(t,e,r,n,s,i){if(!R(0,d.xs.fromTypedArray(t,4*Float32Array.BYTES_PER_ELEMENT),1,d.Xm.fromTypedArray(e),r,d.Xm.fromTypedArray(n),s,d.xs.fromTypedArray(i,4*Float32Array.BYTES_PER_ELEMENT)))return null;for(let e=3;e<t.length;e+=4)i[e]=t[e];return i}function _(t,e,r,n,s,i){if(!R(1,d.xs.fromTypedArray(t,16),1,d.Xm.fromTypedArray(e),r,d.Xm.fromTypedArray(n),s,d.xs.fromTypedArray(i,16)))return null;for(let e=3;e<t.length;e+=4)i[e]=t[e];return i}function w(t,e,r,n,i){switch((0,l.l)(n,r,F,n),1===t&&(0,u.B8)(F,F),e){case 0:return(0,s.Ge)(i,F);case 1:return(0,s.z0)(i,F)}}function R(t,e,r,n,s,i,u,o){if(!e)return;const c=n.count;if(function(t){return t.isWGS84||(0,p.x1)(t)||(0,a.q8)(t)||(0,a.KQ)(t)}(s))for(let n=0;n<c;n++)i.getVec(n,C),e.getVec(n,N),(0,f.ei)(N,N,w(t,r,C,u,L)),o.setVec(n,N);else for(let s=0;s<c;s++){i.getVec(s,C),e.getVec(s,N);const c=(0,y.jg)(n.get(s,1));let a=Math.cos(c);1===r!=(0===t)&&(a=1/a),w(t,r,C,u,L),0===t?(L[0]*=a,L[1]*=a,L[2]*=a,L[3]*=a,L[4]*=a,L[5]*=a):(L[0]*=a,L[3]*=a,L[6]*=a,L[1]*=a,L[4]*=a,L[7]*=a),(0,f.ei)(N,N,L),(0,f.S8)(N,N),o.setVec(s,N)}return o}const C=(0,c.vt)(),N=(0,c.vt)(),F=(0,o.vt)(),L=(0,i.vt)()},72258(t,e,r){r.d(e,{UR:()=>g,p5:()=>E,xK:()=>_});var n=r(53966),s=r(34727),i=r(86211),u=r(77690),o=r(29242),f=r(58083),c=r(9093),a=r(35522),l=r(51850),h=r(73941),p=r(98764),y=r(48353),d=r(65806),m=r(27615),B=r(73354),M=r(22141);const T=()=>n.A.getLogger("esri.geometry.support.meshUtils.vertexSpaceConversion");function E(t,e,{vertexSpace:r,spatialReference:n}){if("georeferenced"===r.type){const s=t;if(!(0,d.g)(e,s,n))return!1;const{origin:i}=r;return(0,a.Re)(t,s,i),!0}const s=(0,p.lO)(n),i=t;if(!(0,d.g)(e,i,s))return!1;const{origin:u}=r,o=F;if(!(0,y.l)(n,u,o,s))return!1;const c=(0,f.B8)(F,o);return null!=c&&((0,a.Z0)(t,i,c),!0)}function g(t,e,r){const{vertexSpace:n,transform:s,vertexAttributes:i}=t,o=(0,m.Hq)(n)?s:null,l=x(t.spatialReference,r,3);if((0,m.yJ)(n,e)&&(!o||(0,f.t2)(o.localMatrix,c.zK))&&v(l)){const{position:t,normal:e,tangent:n}=i,s=r?.allowBufferReuse;return{position:s?t:t.slice(),normal:s?e:e?.slice(),tangent:s?n:n?.slice()}}switch(t.vertexSpace.type){case"local":return"local"===e.type?function({vertexAttributes:t,spatialReference:e,transform:r},{origin:n},s,i){const u=b(e,i);if(!(0,y.l)(e,n,w,u))return(0,M.CN)(T(),e,u),null;if(r&&(0,f.lw)(w,w,r.localMatrix),!(0,y.l)(e,s,R,u))return(0,M.CN)(T(),u,e),null;(0,f.B8)(R,R);const o=(0,f.lw)(w,R,w);return A(o,e,i,3),S(t,o)}(t,t.vertexSpace,e.origin,r):function({spatialReference:t,vertexAttributes:e,transform:r},{origin:n},s,i){const u=b(t,i);if(!(0,y.l)(t,n,w,u))return(0,M.CN)(T(),t,u),null;r&&(0,f.lw)(w,w,r.localMatrix),A(w,t,i,1);const o=new Float64Array(e.position.length),c=function(t,e,r,n,s){(0,B.a)(n,t,e);const i=new Float64Array(t.length);return(0,M.$5)(n,s,i,r)?i:((0,M.CN)(T(),s,r),null)}(e.position,w,t,o,u);if(!c)return null;const l=function(t,e,r,n,s,i){if(null==s)return null;const u=new Float32Array(s.length);return(0,M.qs)(s,u,i),(0,M.si)(u,t,e,r,n,u)?u:((0,M.CN)(T(),n,e),null)}(c,t,o,u,e.normal,w);if(e.normal&&!l)return null;const h=function(t,e,r,n,s,i){if(null==s)return null;const u=new Float32Array(s.length);return(0,M.KM)(s,u,i),(0,M.Mv)(u,t,e,r,n,u)?u:((0,M.CN)(T(),n,e),null)}(c,t,o,u,e.tangent,w);if(e.tangent&&!h)return null;if(s){const t=(0,a.ze)(N,s);(0,B.t)(c,c,t)}return{position:c,normal:l,tangent:h}}(t,t.vertexSpace,e.origin,r);case"georeferenced":return"local"===e.type?function({vertexAttributes:t,spatialReference:e,transform:r},{origin:n},s,i){const o=b(e,i);if(!(0,y.l)(e,s,w,o))return(0,M.CN)(T(),e,o),null;const c=1/x(e,i,2);(0,f.hs)(w,w,[c,c,c]);const a=(0,f.B8)(R,w),{position:l,normal:h,tangent:p}=function(t,e,r){if(!e)return t;if(!r){const{position:r,normal:n,tangent:s}=t;return{position:(0,B.t)(new Float64Array(r.length),r,e),tangent:s,normal:n}}const n=S(t,r.localMatrix);return(0,B.t)(n.position,n.position,e),n}(t,n,r),d=new Float64Array(l.length),m=function(t,e,r,n,s){const i=(0,M.gr)(t,e,n,s);if(!i)return(0,M.CN)(T(),e,s),null;const u=new Float64Array(i.length);return(0,B.a)(u,i,r),u}(l,e,a,d,o);if(!m)return null;const E=(0,u.Ge)(C,a),g=function(t,e,r,n,s,i,u){if(null==t)return null;const o=u??new Float32Array(t.length);return(0,M.X4)(t,e,r,n,s,o)?((0,B.b)(o,o,i),o):((0,M.CN)(T(),r,s),null)}(h,l,e,d,o,E,h!==t.normal?h:void 0);if(!g&&h)return null;const A=function(t,e,r,n,s,i,u){if(null==t)return null;const o=u??new Float32Array(t.length);return(0,M.xA)(t,e,r,n,s,o)?((0,B.b)(o,o,i,4),o):((0,M.CN)(T(),r,s),null)}(p,l,e,d,o,E,p!==t.tangent?p:void 0);return!A&&p?null:{position:m,normal:g,tangent:A}}(t,t.vertexSpace,e.origin,r):function({vertexAttributes:t,transform:e,spatialReference:r},{origin:n},s,i){const u=x(r,i,3),o=n||!v(u)?(0,f.C)(w,e?.localMatrix??c.zK):null;o&&A(o,r,i,3);const{position:l,normal:h,tangent:p}=o?S(t,o):t,y=i?.allowBufferReuse,d=y?l:new Float64Array(l.length);let m=l;if(n&&(m=(0,B.t)(d,m,n)),s){const t=(0,a.ze)(N,s);m=(0,B.t)(d,m,t)}return{position:m!==t.position||y?m:m.slice(),normal:h!==t.normal||y?h:h?.slice(),tangent:p!==t.tangent||y?p:p?.slice()}}(t,t.vertexSpace,e.origin,r)}}function b(t,e){return e?.useEllipsoid&&(0,h.B3)(t)?p.Y0:(0,p.lO)(t)}function S(t,e){const r=new Float64Array(t.position.length);(0,B.a)(r,t.position,e);const n=t.normal?new Float32Array(t.normal.length):null,s=t.tangent?new Float32Array(t.tangent.length):null;return n&&t.normal&&(0,M.qs)(t.normal,n,e),s&&t.tangent&&(0,M.KM)(t.tangent,s,e),{position:r,normal:n,tangent:s}}function A(t,e,r,n){const s=x(e,r,n);v(s)||(0,f.hs)(t,t,[s,s,s])}function x(t,e,r){const n=!!(1&r),s=!!(2&r),i=e?.sourceUnit,u=e?.targetUnit;if(!i&&!u)return 1;let o=_(i,t);n||!i||v(o)||(T().warn("source unit conversion not supported"),o=1);let f=1/_(u,t);return s||!u||v(f)||(T().warn("target unit conversion not supported"),f=1),o*f}function v(t){return(0,s.Io)(t,1)}function _(t,e){if(null==t)return 1;const r=(0,i.KX)(e);return 1/(0,i.oU)(r,"meters",t)}const w=(0,c.vt)(),R=(0,c.vt)(),C=(0,o.vt)(),N=(0,l.vt)(),F=(0,c.vt)()},27615(t,e,r){r.d(e,{CK:()=>f,Hq:()=>o,MW:()=>c,TE:()=>a,yJ:()=>l});var n=r(35522),s=r(86738),i=r(95696),u=r(18251);function o(t){return null!=t.origin}function f(t){return o(t.vertexSpace)}function c(t,e){if(!o(t))return null;const[r,n,i]=t.origin;return new s.A({x:r,y:n,z:i,spatialReference:e})}function a(t,e){const{x:r,y:n,z:s,spatialReference:o}=t,f=[r,n,s??0];return"local"===(e?.vertexSpace??function(t){return t.isGeographic||t.isWebMercator?"local":"georeferenced"}(o))?new u.A({origin:f}):new i.A({origin:f})}function l(t,e){return t.type===e.type&&(t.origin===e.origin||null!=t.origin&&null!=e.origin&&(0,n.t2)(t.origin,e.origin))}},620(t,e,r){r.d(e,{L:()=>f,MX:()=>u,O_:()=>o,kL:()=>c,vA:()=>i,zH:()=>a});var n=r(48163);r(78955),(0,r(91829).vt)();class s{constructor(t){this.message=t}toString(){return`AssertException: ${this.message}`}}function i(t,e="Assertion"){if(!t){const t=new Error(e).stack;throw new s(`${e} at ${t}`)}}function u(t,e){t||(e=e||"",console.warn("Verify failed: "+e+"\n"+new Error("verify").stack))}function o(t,e,r,n){let s,i=(r[0]-t[0])/e[0],u=(n[0]-t[0])/e[0];i>u&&(s=i,i=u,u=s);let o=(r[1]-t[1])/e[1],f=(n[1]-t[1])/e[1];if(o>f&&(s=o,o=f,f=s),i>f||o>u)return!1;o>i&&(i=o),f<u&&(u=f);let c=(r[2]-t[2])/e[2],a=(n[2]-t[2])/e[2];return c>a&&(s=c,c=a,a=s),!(i>a||c>u||(a<u&&(u=a),u<0))}function f(t,e,r,s,i,u=(0,n.vt)()){const o=(s[i]-r[i])*(e[0]-t[0])-(s[0]-r[0])*(e[i]-t[i]),f=(s[0]-r[0])*(t[i]-r[i])-(s[i]-r[i])*(t[0]-r[0]);if(0===o)return!1;const c=f/o;return u[0]=t[0]+c*(e[0]-t[0]),u[1]=t[i]+c*(e[i]-t[i]),!0}function c(t,e){return Math.log(t)/Math.log(e)}function a(t){return 1===t[0]&&0===t[1]&&0===t[2]&&0===t[3]&&0===t[4]&&1===t[5]&&0===t[6]&&0===t[7]&&0===t[8]&&0===t[9]&&1===t[10]&&0===t[11]&&1===t[15]}}}]);