@arcgis/core 5.2.0-next.87 → 5.2.0-next.88

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 (632) hide show
  1. package/arcade/Dictionary.js +1 -1
  2. package/arcade/Feature.js +1 -1
  3. package/arcade/ImmutablePointArray.js +1 -1
  4. package/arcade/arcadeAsyncRuntime.js +1 -1
  5. package/arcade/arcadeCompiler.js +1 -1
  6. package/arcade/arcadeRuntime.js +1 -1
  7. package/arcade/containerUtils.js +1 -1
  8. package/arcade/debug.js +1 -1
  9. package/arcade/deepClone.js +1 -1
  10. package/arcade/featureset/actions/SpatialFilter.js +1 -1
  11. package/arcade/featureset/support/FeatureSet.js +1 -1
  12. package/arcade/functions/centroid.js +1 -1
  13. package/arcade/functions/date.js +1 -1
  14. package/arcade/functions/feature.js +1 -1
  15. package/arcade/functions/featuresetbase.js +1 -1
  16. package/arcade/functions/featuresetgeom.js +1 -1
  17. package/arcade/functions/featuresetstats.js +1 -1
  18. package/arcade/functions/featuresetstring.js +1 -1
  19. package/arcade/functions/fieldStats.js +1 -1
  20. package/arcade/functions/geomasync.js +1 -1
  21. package/arcade/functions/geometry.js +1 -1
  22. package/arcade/functions/geomsync.js +1 -1
  23. package/arcade/functions/knowledgegraph.js +1 -1
  24. package/arcade/functions/maths.js +1 -1
  25. package/arcade/functions/stats.js +1 -1
  26. package/arcade/functions/string.js +1 -1
  27. package/arcade/functions/track.js +1 -1
  28. package/arcade/geometry/adapters/accessor.js +2 -0
  29. package/arcade/geometry/adapters/dehydrated.js +2 -0
  30. package/arcade/geometry/adapters/gx.js +2 -0
  31. package/arcade/geometry/adapters/json.js +2 -0
  32. package/arcade/geometry/adapters/optimized.js +2 -0
  33. package/arcade/geometry/adapters/tuple.js +2 -0
  34. package/arcade/geometry/adapters/utils.js +2 -0
  35. package/arcade/geometry/arrayOfPointsConversions.js +2 -0
  36. package/arcade/geometry/constructors.js +1 -1
  37. package/arcade/geometry/functions.js +1 -1
  38. package/arcade/geometry/isSelfIntersecting.js +2 -0
  39. package/arcade/geometry/nearestCoordinate.js +2 -0
  40. package/arcade/geometry/nearestVertex.js +1 -1
  41. package/arcade/geometry/operators.js +1 -1
  42. package/arcade/geometry/operatorsWorker.js +1 -1
  43. package/arcade/geometry/rotate.js +1 -1
  44. package/arcade/geometry.js +2 -0
  45. package/arcade/languageUtils.js +1 -1
  46. package/arcade.js +1 -1
  47. package/arcgisGlobal.d.ts +1 -0
  48. package/assets/esri/core/workers/RemoteClient.js +1 -1
  49. package/assets/esri/core/workers/chunks/{0b8c9657975388f1e4c8.js → 00181785a180e934bf7c.js} +1 -1
  50. package/assets/esri/core/workers/chunks/{01e648b258efa6408070.js → 0336f4f8498a22347720.js} +1 -1
  51. package/assets/esri/core/workers/chunks/0439d4f4dfd6e78be97e.js +1 -0
  52. package/assets/esri/core/workers/chunks/05393b23ab24126d4236.js +1 -0
  53. package/assets/esri/core/workers/chunks/08263c07d92c48806834.js +1 -0
  54. package/assets/esri/core/workers/chunks/09e01fd1c199be0c8e03.js +1 -0
  55. package/assets/esri/core/workers/chunks/{12d6d73ca1fa55640a4f.js → 0b4a7209b99227a842ad.js} +1 -1
  56. package/assets/esri/core/workers/chunks/{073224c6ac77dc9e97af.js → 0b7860a3f18d252b774a.js} +1 -1
  57. package/assets/esri/core/workers/chunks/0d95f72e1c07ab867d21.js +1 -0
  58. package/assets/esri/core/workers/chunks/0dbbac7a2378728571a7.js +1 -0
  59. package/assets/esri/core/workers/chunks/0f15468ffefd3e9a17b8.js +29 -0
  60. package/assets/esri/core/workers/chunks/13e92f6a9573a2818fb7.js +1 -0
  61. package/assets/esri/core/workers/chunks/19aa4072764937743bd8.js +1 -0
  62. package/assets/esri/core/workers/chunks/19e93d4d37018e3ee849.js +1 -0
  63. package/assets/esri/core/workers/chunks/{911f3a1b8dd4bc5c9782.js → 1bf5c0a4bc5a960a3fa2.js} +1 -1
  64. package/assets/esri/core/workers/chunks/1c378d489c5402888f76.js +1 -0
  65. package/assets/esri/core/workers/chunks/1d1e8d8b1fcf2d9f3dfc.js +1 -0
  66. package/assets/esri/core/workers/chunks/{e5c8f9fef88ca33624e9.js → 1e087fb13b7b0a5d6fec.js} +1 -1
  67. package/assets/esri/core/workers/chunks/1e192ac0533a5c0b5a7a.js +1 -0
  68. package/assets/esri/core/workers/chunks/1f9d6180a96d557838e9.js +1 -0
  69. package/assets/esri/core/workers/chunks/1fe077f57a087c0e9119.js +1 -0
  70. package/assets/esri/core/workers/chunks/212222b64039d436b9a6.js +1 -0
  71. package/assets/esri/core/workers/chunks/22c94f9a69b2157f8dbd.js +1 -0
  72. package/assets/esri/core/workers/chunks/25a2e02677a74834c8b5.js +1 -0
  73. package/assets/esri/core/workers/chunks/26ecc841396e5e719b6a.js +1 -0
  74. package/assets/esri/core/workers/chunks/{fcf7299e2ee904ab9882.js → 2724900f7992a79fc442.js} +1 -1
  75. package/assets/esri/core/workers/chunks/27c0bed59626c7f64125.js +1 -0
  76. package/assets/esri/core/workers/chunks/2bc3e7f394386fa75447.js +1 -0
  77. package/assets/esri/core/workers/chunks/2c9783e3b44986e86797.js +1 -0
  78. package/assets/esri/core/workers/chunks/2ceb07b125c84b51f02a.js +1 -0
  79. package/assets/esri/core/workers/chunks/2cf2f2842c19be84ab4d.js +1 -0
  80. package/assets/esri/core/workers/chunks/2d07d5a9ec67c39ef10c.js +1 -0
  81. package/assets/esri/core/workers/chunks/{a7c715648a07ed70b122.js → 2ec44ebc48beeba11201.js} +1 -1
  82. package/assets/esri/core/workers/chunks/2f2d699b072472fa710e.js +1 -0
  83. package/assets/esri/core/workers/chunks/2f3bbc1f7d4abbbeec2f.js +1 -0
  84. package/assets/esri/core/workers/chunks/304a36e862947fdb05c0.js +1 -0
  85. package/assets/esri/core/workers/chunks/30af0f7c4cfa541c9efd.js +1 -0
  86. package/assets/esri/core/workers/chunks/32f11b4aeae1ef00e466.js +1 -0
  87. package/assets/esri/core/workers/chunks/35d3e60d15294f268992.js +1 -0
  88. package/assets/esri/core/workers/chunks/37a2be4380796f14fe4e.js +1 -0
  89. package/assets/esri/core/workers/chunks/37adb55d9f83faad1712.js +1 -0
  90. package/assets/esri/core/workers/chunks/3869dca884d7ca6488f5.js +1 -0
  91. package/assets/esri/core/workers/chunks/3a9c6f58a1a065c14017.js +1 -0
  92. package/assets/esri/core/workers/chunks/3b552afffaa78bf4fe18.js +1 -0
  93. package/assets/esri/core/workers/chunks/{fe06cc2f90b2d551e4c1.js → 3bbd2d4a19c3b7ad82e4.js} +1 -1
  94. package/assets/esri/core/workers/chunks/3de07326da4c47cd2aab.js +1 -0
  95. package/assets/esri/core/workers/chunks/3f5234120d3a14186c1c.js +1 -0
  96. package/assets/esri/core/workers/chunks/{dbd6bbd3e834ff9d220e.js → 41cf6163758d28fb1968.js} +1 -1
  97. package/assets/esri/core/workers/chunks/466bb1b69aabaeabad6a.js +1 -0
  98. package/assets/esri/core/workers/chunks/47e60b2acec18ef37b6c.js +1 -0
  99. package/assets/esri/core/workers/chunks/4849849fc8330d05a8e6.js +1 -0
  100. package/assets/esri/core/workers/chunks/497c5a9c95e9a89ac217.js +1 -0
  101. package/assets/esri/core/workers/chunks/49d36e54644dc2966128.js +1 -0
  102. package/assets/esri/core/workers/chunks/4aefe6fd4d725a107758.js +1 -0
  103. package/assets/esri/core/workers/chunks/4b6f433022a6822706cb.js +1 -0
  104. package/assets/esri/core/workers/chunks/4d4ebb4e4d83c1123b63.js +1 -0
  105. package/assets/esri/core/workers/chunks/4ee99e654dad6f09abee.js +1 -0
  106. package/assets/esri/core/workers/chunks/4f0804429d8989aa4c51.js +1 -0
  107. package/assets/esri/core/workers/chunks/50525b617ef78086d3c7.js +1 -0
  108. package/assets/esri/core/workers/chunks/5235b9c21ac4156c2375.js +1 -0
  109. package/assets/esri/core/workers/chunks/52422500ca3d6cf2e596.js +1 -0
  110. package/assets/esri/core/workers/chunks/527b87fddf33bb5d519e.js +1 -0
  111. package/assets/esri/core/workers/chunks/55572cefc752b755cf0a.js +1 -0
  112. package/assets/esri/core/workers/chunks/{a4bae2396fae48b57047.js → 595edbc1e9bba47d5676.js} +1 -1
  113. package/assets/esri/core/workers/chunks/59cf23cc8f91b5bea31a.js +1 -0
  114. package/assets/esri/core/workers/chunks/5af16937904c06fb06f6.js +1 -0
  115. package/assets/esri/core/workers/chunks/5d7a5aa608ed6192b016.js +1 -0
  116. package/assets/esri/core/workers/chunks/5d9c92c4e60a4696fdad.js +1 -0
  117. package/assets/esri/core/workers/chunks/5ed7bc9e6cb7cdee92e2.js +1 -0
  118. package/assets/esri/core/workers/chunks/{272c8ccdbd3dcc14e99b.js → 5ed89c862eee1345e3af.js} +1 -1
  119. package/assets/esri/core/workers/chunks/5fbd7d8d8896a224fff3.js +1 -0
  120. package/assets/esri/core/workers/chunks/64ce2d060ae7cdd412cf.js +1 -0
  121. package/assets/esri/core/workers/chunks/65f4ca7201e7267bfc81.js +1 -0
  122. package/assets/esri/core/workers/chunks/67efdd296007a809586c.js +1 -0
  123. package/assets/esri/core/workers/chunks/691434d4c6a38e63d819.js +1 -0
  124. package/assets/esri/core/workers/chunks/{ba67aaa08e4f11e1140a.js → 696cb3bf167327d5b0b9.js} +1 -1
  125. package/assets/esri/core/workers/chunks/69700ed16727ed0c4e3a.js +1 -0
  126. package/assets/esri/core/workers/chunks/6a2d890640b2cd6c5ccb.js +1 -0
  127. package/assets/esri/core/workers/chunks/6a4f007f87d9f2a6fbc4.js +1 -0
  128. package/assets/esri/core/workers/chunks/{7343a44a2382a1d68497.js → 6b9dbf43c0659e55c539.js} +1 -1
  129. package/assets/esri/core/workers/chunks/6de5c6af62776e1b9776.js +1 -0
  130. package/assets/esri/core/workers/chunks/70dc25f721c0ac5f3660.js +1 -0
  131. package/assets/esri/core/workers/chunks/71308dca3fd05687e7bd.js +1 -0
  132. package/assets/esri/core/workers/chunks/75bddfe2be64379db8fd.js +1 -0
  133. package/assets/esri/core/workers/chunks/78085f804969c9282700.js +1 -0
  134. package/assets/esri/core/workers/chunks/7aa9b61ca9b66f30449f.js +1 -0
  135. package/assets/esri/core/workers/chunks/7c1f989ee3d13dfe7ebd.js +1 -0
  136. package/assets/esri/core/workers/chunks/7c56446184abcd14678b.js +1 -0
  137. package/assets/esri/core/workers/chunks/7ce9c84f90e9dd1deb38.js +1 -0
  138. package/assets/esri/core/workers/chunks/7f55a150e4da02786311.js +1 -0
  139. package/assets/esri/core/workers/chunks/7fc3231768ce79e375ae.js +1 -0
  140. package/assets/esri/core/workers/chunks/7febb434f2de2436435f.js +1 -0
  141. package/assets/esri/core/workers/chunks/847b02d188ece9b563ad.js +1 -0
  142. package/assets/esri/core/workers/chunks/903c7bd079888f65fef1.js +1 -0
  143. package/assets/esri/core/workers/chunks/{bdafd4f03585351cecc3.js → 909a85cb6e0e9a3c8567.js} +1 -1
  144. package/assets/esri/core/workers/chunks/9226205850e35b7fc610.js +1 -0
  145. package/assets/esri/core/workers/chunks/922c24b9bb68f4201b03.js +1 -0
  146. package/assets/esri/core/workers/chunks/9474c913e53f69679197.js +1 -0
  147. package/assets/esri/core/workers/chunks/94ddfe165ac25aef8229.js +1 -0
  148. package/assets/esri/core/workers/chunks/{75a2c43311f5f9058f62.js → 94f62ff81cc6fb83e73f.js} +1 -1
  149. package/assets/esri/core/workers/chunks/95ccac3734ac70387b03.js +1 -0
  150. package/assets/esri/core/workers/chunks/97c7dfd29ad4c2966cb4.js +1 -0
  151. package/assets/esri/core/workers/chunks/{1354b8442c2c501238f1.js → 986c5024f22bbfc49aba.js} +1 -1
  152. package/assets/esri/core/workers/chunks/9b81bd62a2c72f592db1.js +1 -0
  153. package/assets/esri/core/workers/chunks/{62596065747abce1964d.js → 9b8e33985310f281f084.js} +1 -1
  154. package/assets/esri/core/workers/chunks/9e2b3754a76e0dd4a94a.js +1 -0
  155. package/assets/esri/core/workers/chunks/9eb3e6800f5034f1593f.js +1 -0
  156. package/assets/esri/core/workers/chunks/a0300fac6a06e7d89a52.js +1 -0
  157. package/assets/esri/core/workers/chunks/a03e7333e3328036f478.js +1 -0
  158. package/assets/esri/core/workers/chunks/a0565137027c83108953.js +1 -0
  159. package/assets/esri/core/workers/chunks/a3b403f8acb90af19adb.js +1 -0
  160. package/assets/esri/core/workers/chunks/a4596f028758649da099.js +1 -0
  161. package/assets/esri/core/workers/chunks/a46ac0be9aabc4cfedc7.js +1 -0
  162. package/assets/esri/core/workers/chunks/a4a22149077c7780481c.js +1 -0
  163. package/assets/esri/core/workers/chunks/a6ab627e965fe7e5bd52.js +1 -0
  164. package/assets/esri/core/workers/chunks/a7954ad55a241af9064f.js +1 -0
  165. package/assets/esri/core/workers/chunks/a8b878c12cb1a6ea012b.js +1 -0
  166. package/assets/esri/core/workers/chunks/{ec0803cfa5051c4d300d.js → aa0ef4493a7e9bed159f.js} +1 -1
  167. package/assets/esri/core/workers/chunks/aa8ab28e0c1ae3b55ac0.js +1 -0
  168. package/assets/esri/core/workers/chunks/ab9927a32350063cb5f0.js +1 -0
  169. package/assets/esri/core/workers/chunks/adc2620cbe735532004d.js +1 -0
  170. package/assets/esri/core/workers/chunks/add834f867900a7091d2.js +1 -0
  171. package/assets/esri/core/workers/chunks/{bbf4c2ee4d56bb0f1a81.js → afa6b74d9ca9ed0154af.js} +1 -1
  172. package/assets/esri/core/workers/chunks/b0e25ccb5a1e57a82628.js +1 -0
  173. package/assets/esri/core/workers/chunks/b17a9853250ab626d58d.js +1 -0
  174. package/assets/esri/core/workers/chunks/b19cff0e43fab2632660.js +1 -0
  175. package/assets/esri/core/workers/chunks/b2e2234fdf8e05bc3312.js +1 -0
  176. package/assets/esri/core/workers/chunks/b6063d1755def00d4889.js +1 -0
  177. package/assets/esri/core/workers/chunks/{39c0a3eb6a870953d530.js → b6f67302d0d5d57add66.js} +1 -1
  178. package/assets/esri/core/workers/chunks/bb56ab53c5a10c9518a6.js +1 -0
  179. package/assets/esri/core/workers/chunks/bd2602195e265f8fdb15.js +1 -0
  180. package/assets/esri/core/workers/chunks/{f762f0f6c83748d8e328.js → bee411f08e2a9499f8f5.js} +1 -1
  181. package/assets/esri/core/workers/chunks/bf357afbabaa8dec4d75.js +1 -0
  182. package/assets/esri/core/workers/chunks/bf7875fda48b15271a10.js +1 -0
  183. package/assets/esri/core/workers/chunks/bfa59005a9b191d18546.js +1 -0
  184. package/assets/esri/core/workers/chunks/bfb8fc6b940bd5510e29.js +1 -0
  185. package/assets/esri/core/workers/chunks/{b311658b8a223efe35d6.js → c0e073a77484b0dfd383.js} +1 -1
  186. package/assets/esri/core/workers/chunks/c13aa45ccd5efb662f88.js +1 -0
  187. package/assets/esri/core/workers/chunks/c176df477bbbbc9c6922.js +1 -0
  188. package/assets/esri/core/workers/chunks/c35553d07ad169910742.js +1 -0
  189. package/assets/esri/core/workers/chunks/c4f582dec07895d3bb93.js +1 -0
  190. package/assets/esri/core/workers/chunks/c4fef90cf08bbe4f0bb5.js +1 -0
  191. package/assets/esri/core/workers/chunks/c5c2fed38e0ccf84f1fa.js +1 -0
  192. package/assets/esri/core/workers/chunks/c80277a313205853a857.js +1 -0
  193. package/assets/esri/core/workers/chunks/c91042f8bf886056a29c.js +1 -0
  194. package/assets/esri/core/workers/chunks/ca204c110438f7315790.js +1 -0
  195. package/assets/esri/core/workers/chunks/ca36d85a47179d95f2fc.js +1 -0
  196. package/assets/esri/core/workers/chunks/cb6fb04fe5c8d90d4196.js +1 -0
  197. package/assets/esri/core/workers/chunks/ccaeabc3be07f3c96f50.js +1 -0
  198. package/assets/esri/core/workers/chunks/{85f459297b0214141d43.js → cd02a6078443b8f63927.js} +1 -1
  199. package/assets/esri/core/workers/chunks/{e64ccdb8328eb6514e59.js → cd8b3c2fc27c239f9954.js} +1 -1
  200. package/assets/esri/core/workers/chunks/{3a36c132ceddef3d15c8.js → cdbcc4cd9145dd93db49.js} +1 -1
  201. package/assets/esri/core/workers/chunks/{e90feee1756a2209f93f.js → ce9fe1a89b474f9e7ee7.js} +1 -1
  202. package/assets/esri/core/workers/chunks/d04a01dc1b4947478264.js +1 -0
  203. package/assets/esri/core/workers/chunks/d0cf9ff48f051adbd455.js +1 -0
  204. package/assets/esri/core/workers/chunks/d119671a32a050517cca.js +1 -0
  205. package/assets/esri/core/workers/chunks/d26be8313526ecea9c68.js +1 -0
  206. package/assets/esri/core/workers/chunks/d270b49c037085503016.js +1 -0
  207. package/assets/esri/core/workers/chunks/{f5eee6e548bb24b5a003.js → d30a7fc8dab4ebb8893b.js} +1 -1
  208. package/assets/esri/core/workers/chunks/d344c3fd9f6b113bbcd7.js +1 -0
  209. package/assets/esri/core/workers/chunks/d36bbda9b7261534568f.js +1 -0
  210. package/assets/esri/core/workers/chunks/d4b0012ae1d3b8a9ba01.js +1 -0
  211. package/assets/esri/core/workers/chunks/d6b87134e0d120c68d2f.js +1 -0
  212. package/assets/esri/core/workers/chunks/d6f7aa280f1bd201d4ef.js +1 -0
  213. package/assets/esri/core/workers/chunks/da9aacdb0b4a04f42fb8.js +1 -0
  214. package/assets/esri/core/workers/chunks/daf7b647bd960d8bad56.js +1 -0
  215. package/assets/esri/core/workers/chunks/{10ac92dcd3738ec23dfb.js → db04c1bad40d068306ba.js} +1 -1
  216. package/assets/esri/core/workers/chunks/{3427f0c026301bcf7272.js → db180f8d25471cfa48af.js} +1 -1
  217. package/assets/esri/core/workers/chunks/db4c9a9103e979292948.js +1 -0
  218. package/assets/esri/core/workers/chunks/dceaa6b68eee090073b1.js +1 -0
  219. package/assets/esri/core/workers/chunks/ddf284648a73b6993737.js +1 -0
  220. package/assets/esri/core/workers/chunks/dfbe0efe453587ec5eb2.js +1 -0
  221. package/assets/esri/core/workers/chunks/e1682e94cc714197ebb4.js +1 -0
  222. package/assets/esri/core/workers/chunks/e2576c37cf13dc421f69.js +1 -0
  223. package/assets/esri/core/workers/chunks/e32a14770e036fce79d9.js +1 -0
  224. package/assets/esri/core/workers/chunks/e370a3337b3c90240e73.js +1 -0
  225. package/assets/esri/core/workers/chunks/e39bccc000c768120a32.js +1 -0
  226. package/assets/esri/core/workers/chunks/e40e08029325f43452d0.js +1 -0
  227. package/assets/esri/core/workers/chunks/{0d7d54e74b5639a0be6e.js → e707534a700a2de687ca.js} +1 -1
  228. package/assets/esri/core/workers/chunks/e823c9ccb7bc348d8824.js +1 -0
  229. package/assets/esri/core/workers/chunks/e88eee4c2fc4229c2a8b.js +1 -0
  230. package/assets/esri/core/workers/chunks/e9f29019aa78f07ace66.js +1 -0
  231. package/assets/esri/core/workers/chunks/ea75c23c44452f45a949.js +1 -0
  232. package/assets/esri/core/workers/chunks/ea91c57a0b31f3f65ee5.js +1 -0
  233. package/assets/esri/core/workers/chunks/eacf216dcd6397c7bd7f.js +1 -0
  234. package/assets/esri/core/workers/chunks/ee77999df3785468b2b6.js +1 -0
  235. package/assets/esri/core/workers/chunks/ef851a2cff76fd211c07.js +1 -0
  236. package/assets/esri/core/workers/chunks/eff359210893239ecec3.js +1 -0
  237. package/assets/esri/core/workers/chunks/f106cc7f559856f69b9f.js +1 -0
  238. package/assets/esri/core/workers/chunks/f210cd8afb86b6eaf7a2.js +1 -0
  239. package/assets/esri/core/workers/chunks/f247f3c5148fa0237a7c.js +1 -0
  240. package/assets/esri/core/workers/chunks/f250a7aa571889c5ad4b.js +1 -0
  241. package/assets/esri/core/workers/chunks/{a26dc2647a15b830390e.js → f253875feb11883deb84.js} +1 -1
  242. package/assets/esri/core/workers/chunks/f31330d628d7e741bf5b.js +1 -0
  243. package/assets/esri/core/workers/chunks/f3d57c5b9dffd12e45b4.js +1 -0
  244. package/assets/esri/core/workers/chunks/f43ae1c2f89e1c4396cc.js +1 -0
  245. package/assets/esri/core/workers/chunks/f60ed579981913d44675.js +1 -0
  246. package/assets/esri/core/workers/chunks/{147d1e7e2852a4197e5f.js → f665fb4c5633e0a459d8.js} +1 -1
  247. package/assets/esri/core/workers/chunks/f66e597e524b26e61cd3.js +1 -0
  248. package/assets/esri/core/workers/chunks/{bec140a69cfdb0519680.js → f74c7cbe4bd12f73ae90.js} +1 -1
  249. package/assets/esri/core/workers/chunks/{e6f6b38eda34708d61c5.js → f7f2102b16d201e5f531.js} +1 -1
  250. package/assets/esri/core/workers/chunks/f82ae237452b97cfc024.js +1 -0
  251. package/assets/esri/core/workers/chunks/f8f7b86bbd62106bc3d4.js +1 -0
  252. package/assets/esri/core/workers/chunks/f9a4387f850d85c44ca5.js +1 -0
  253. package/assets/esri/core/workers/chunks/fbc7576ed12964059da6.js +1 -0
  254. package/assets/esri/core/workers/chunks/fc4a5996fc03f6c32030.js +1 -0
  255. package/assets/esri/core/workers/chunks/fdd0e6d9927d3c43b0d3.js +1 -0
  256. package/assets/esri/core/workers/chunks/fddcb8be714ad18ad0c8.js +1 -0
  257. package/assets/esri/core/workers/chunks/{baa46edd87e97f922128.js → ffe749d790320dddfa74.js} +1 -1
  258. package/chunks/Bufferer-CclWhXVb.js +1 -1
  259. package/chunks/Distance2DCalculator-DjIp2uQi.js +1 -1
  260. package/chunks/Envelope.js +1 -1
  261. package/chunks/GeodeticDistanceCalculator-zRp89-dW.js +1 -1
  262. package/chunks/GeodeticUtils.js +1 -1
  263. package/chunks/GeographicTransformation.js +1 -1
  264. package/chunks/Geometry.js +1 -1
  265. package/chunks/GlowComposite.glsl.js +9 -7
  266. package/chunks/MultiPathImpl.js +1 -1
  267. package/chunks/OperatorCentroid2D.js +1 -1
  268. package/chunks/OperatorContains.js +2 -0
  269. package/chunks/OperatorCrosses.js +1 -1
  270. package/chunks/OperatorCut.js +1 -1
  271. package/chunks/OperatorDisjoint.js +2 -0
  272. package/chunks/OperatorDistance.js +2 -0
  273. package/chunks/OperatorEquals.js +2 -0
  274. package/chunks/OperatorGeodesicBuffer.js +1 -1
  275. package/chunks/OperatorGeodeticArea.js +1 -1
  276. package/chunks/OperatorGeodeticDensifyByLength.js +1 -1
  277. package/chunks/OperatorGeodeticLength.js +1 -1
  278. package/chunks/OperatorGraphicBuffer.js +1 -1
  279. package/chunks/OperatorIntegrate.js +1 -1
  280. package/chunks/OperatorIntersects.js +1 -1
  281. package/chunks/OperatorMultiPartToSinglePart.js +1 -1
  282. package/chunks/OperatorOverlaps.js +1 -1
  283. package/chunks/OperatorProximity.js +1 -1
  284. package/chunks/OperatorProximityGeodesic.js +1 -1
  285. package/chunks/OperatorRelate.js +2 -0
  286. package/chunks/OperatorShapePreservingLength.js +1 -1
  287. package/chunks/OperatorShapePreservingProject.js +1 -1
  288. package/chunks/OperatorSimplifyOGC.js +1 -1
  289. package/chunks/OperatorTouches.js +1 -1
  290. package/chunks/OperatorWithin.js +1 -1
  291. package/chunks/Point2D.js +1 -1
  292. package/chunks/ProjectionTransformation.js +1 -1
  293. package/chunks/SideCalculator2D-DX0718xq.js +1 -1
  294. package/chunks/UnitFactory.js +1 -1
  295. package/chunks/aiServices.js +1 -1
  296. package/chunks/array.js +1 -1
  297. package/chunks/languageUtils.js +1 -1
  298. package/config.js +1 -1
  299. package/core/sql/TimeOnly.js +1 -1
  300. package/core/units.js +1 -1
  301. package/editing/sharedTemplates/executor/builders/bufferLineToPolygon.js +1 -1
  302. package/editing/sharedTemplates/executor/builders/bufferPointToPolygon.js +1 -1
  303. package/editing/sharedTemplates/executor/builders/bufferPolygonToPolygon.js +1 -1
  304. package/editing/sharedTemplates/executor/builders/pointAtIntersectionVerticesOfLine.js +1 -1
  305. package/editing/sharedTemplates/executor/builders/support/offsetUtils.js +1 -1
  306. package/form/elements/inputs/inputUtils.js +1 -1
  307. package/geometry/operators/areaOperator.js +1 -1
  308. package/geometry/operators/bufferOperator.js +1 -1
  309. package/geometry/operators/centroidOperator.js +1 -1
  310. package/geometry/operators/clipOperator.js +1 -1
  311. package/geometry/operators/containsOperator.js +1 -1
  312. package/geometry/operators/convexHullOperator.js +1 -1
  313. package/geometry/operators/crossesOperator.js +1 -1
  314. package/geometry/operators/cutOperator.js +1 -1
  315. package/geometry/operators/densifyOperator.js +1 -1
  316. package/geometry/operators/differenceOperator.js +1 -1
  317. package/geometry/operators/disjointOperator.js +1 -1
  318. package/geometry/operators/distanceOperator.js +1 -1
  319. package/geometry/operators/equalsOperator.js +1 -1
  320. package/geometry/operators/generalizeOperator.js +1 -1
  321. package/geometry/operators/geodesicBufferOperator.js +1 -1
  322. package/geometry/operators/geodeticAreaOperator.js +1 -1
  323. package/geometry/operators/geodeticDensifyOperator.js +1 -1
  324. package/geometry/operators/geodeticDistanceOperator.js +1 -1
  325. package/geometry/operators/geodeticLengthOperator.js +1 -1
  326. package/geometry/operators/gx/operatorAutoComplete.js +1 -1
  327. package/geometry/operators/gx/operatorBuffer.js +1 -1
  328. package/geometry/operators/gx/operatorDifference.js +1 -1
  329. package/geometry/operators/gx/operatorIntersection.js +1 -1
  330. package/geometry/operators/gx/operatorLabelPoint.js +1 -1
  331. package/geometry/operators/gx/operatorLinesToPolygons.js +1 -1
  332. package/geometry/operators/gx/operatorPolygonOverlay.js +1 -1
  333. package/geometry/operators/gx/operatorSimplify.js +1 -1
  334. package/geometry/operators/gx/operatorSymmetricDifference.js +1 -1
  335. package/geometry/operators/gx/operatorUnion.js +1 -1
  336. package/geometry/operators/intersectionOperator.js +1 -1
  337. package/geometry/operators/intersectsOperator.js +1 -1
  338. package/geometry/operators/json/containsOperator.js +1 -1
  339. package/geometry/operators/json/crossesOperator.js +1 -1
  340. package/geometry/operators/json/disjointOperator.js +1 -1
  341. package/geometry/operators/json/intersectsOperator.js +1 -1
  342. package/geometry/operators/json/overlapsOperator.js +1 -1
  343. package/geometry/operators/json/touchesOperator.js +1 -1
  344. package/geometry/operators/json/unionOperator.js +1 -1
  345. package/geometry/operators/json/withinOperator.js +1 -1
  346. package/geometry/operators/labelPointOperator.js +1 -1
  347. package/geometry/operators/lengthOperator.js +1 -1
  348. package/geometry/operators/multiPartToSinglePartOperator.js +1 -1
  349. package/geometry/operators/offsetOperator.js +1 -1
  350. package/geometry/operators/overlapsOperator.js +1 -1
  351. package/geometry/operators/proximityOperator.js +1 -1
  352. package/geometry/operators/relateOperator.js +1 -1
  353. package/geometry/operators/reshapeOperator.js +1 -1
  354. package/geometry/operators/simplifyOGCOperator.js +1 -1
  355. package/geometry/operators/simplifyOperator.js +1 -1
  356. package/geometry/operators/support/apiConverter.js +1 -1
  357. package/geometry/operators/support/jsonConverter.js +1 -1
  358. package/geometry/operators/support/projectionTransformation.js +1 -1
  359. package/geometry/operators/symmetricDifferenceOperator.js +1 -1
  360. package/geometry/operators/touchesOperator.js +1 -1
  361. package/geometry/operators/unionOperator.js +1 -1
  362. package/geometry/operators/withinOperator.js +1 -1
  363. package/geometry/support/curves/circleUtils.js +1 -1
  364. package/geometry/support/curves/ellipticArc7Utils.js +1 -1
  365. package/geometry/support/webMercatorUtils.js +1 -1
  366. package/kernel.js +1 -1
  367. package/layers/VectorTileLayer.js +1 -1
  368. package/layers/graphics/hydratedFeatures.js +1 -1
  369. package/layers/mixins/DataSeriesLayer.js +1 -1
  370. package/layers/support/csvUtils.js +1 -1
  371. package/layers/support/fieldUtils.js +1 -1
  372. package/layers/video/VideoController.js +1 -1
  373. package/package.json +3 -3
  374. package/support/ArcadeExpression.js +1 -1
  375. package/support/arcadeUtils.js +1 -1
  376. package/support/loadArcade.js +1 -1
  377. package/support/revision.js +1 -1
  378. package/support/tests/serviceMockDependencies.js +1 -1
  379. package/views/2d/analysis/AreaMeasurement/AreaMeasurementController.js +1 -1
  380. package/views/2d/analysis/DistanceMeasurement/DistanceMeasurementController.js +1 -1
  381. package/views/2d/layers/features/support/FeatureSetReader.js +1 -1
  382. package/views/2d/layers/support/RouteLayerWaypointVisualization.js +1 -1
  383. package/views/3d/analysis/LineOfSight/LineOfSightConfiguration.js +1 -1
  384. package/views/3d/analysis/LineOfSight/LineOfSightManipulators.js +1 -1
  385. package/views/3d/analysis/LineOfSight/LineOfSightVisualization.js +1 -1
  386. package/views/3d/analysis/ShadowCastAnalysisView3D.js +1 -1
  387. package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementController.js +1 -1
  388. package/views/3d/input/SceneInputManager.js +1 -1
  389. package/views/3d/input/handlers/RopePullNavigation.js +2 -0
  390. package/views/3d/layers/TiledLayerView3D.js +1 -1
  391. package/views/3d/layers/graphics/featureExpressionInfoUtils.js +1 -1
  392. package/views/3d/layers/i3s/I3SNode.js +1 -1
  393. package/views/3d/layers/i3s/I3SViewportQueries.js +1 -1
  394. package/views/3d/layers/support/FeatureTileVisibility3D.js +1 -1
  395. package/views/3d/state/controllers/RopePullController.js +2 -0
  396. package/views/3d/state/utils/ropePullUtils.js +1 -1
  397. package/views/3d/support/ElevationAgnosticVisibility.js +1 -1
  398. package/views/3d/support/sphericalTileUtils.js +1 -1
  399. package/views/3d/terrain/PlanarPatch.js +1 -1
  400. package/views/3d/terrain/SphericalPatch.js +1 -1
  401. package/views/3d/terrain/Tile.js +1 -1
  402. package/views/3d/webgl-engine/effects/RenderPluginManager.js +1 -1
  403. package/views/SelectionManager.js +1 -1
  404. package/views/draw/DrawTool.js +1 -1
  405. package/views/draw/support/createUtils.js +1 -1
  406. package/views/support/GeometryWorker.js +1 -1
  407. package/views/support/selectionUtils.js +1 -1
  408. package/widgets/AreaMeasurement2D/AreaMeasurement2DTool.js +1 -1
  409. package/widgets/BatchAttributeForm/expressions/ArcadeExecutorProvider.js +1 -1
  410. package/widgets/BatchAttributeForm/templates/FieldElementTemplate.js +1 -1
  411. package/widgets/BatchAttributeForm/templates/support/createBatchFormTemplate.js +1 -1
  412. package/widgets/BatchAttributeForm/templates/support/hashElementTemplate.js +1 -1
  413. package/widgets/DistanceMeasurement2D/DistanceMeasurement2DTool.js +1 -1
  414. package/widgets/OrientedImageryViewer/adapters/view/MapViewAdapter.js +1 -1
  415. package/widgets/OrientedImageryViewer/components/ImageViewerViewModel.js +1 -1
  416. package/widgets/OrientedImageryViewer/components/OrientedImageryVideoViewModel.js +1 -1
  417. package/widgets/OrientedImageryViewer/imageMeasurementUtils.js +1 -1
  418. package/widgets/OrientedImageryViewer/support/panConstraint.js +1 -1
  419. package/widgets/OrientedImageryViewer/support/superimposeUtils.js +1 -1
  420. package/widgets/OrientedImageryViewer/videoViewerUtils.js +1 -1
  421. package/widgets/UtilityNetworkTrace/support/GeometryHandler.js +1 -1
  422. package/widgets/support/SelectionList/selectionListUtils.d.ts +58 -0
  423. package/widgets/support/SelectionToolbar/SelectionToolbarViewModel.js +1 -1
  424. package/widgets/support/Selector2D/selectorUtils.js +1 -1
  425. package/arcade/kernel.js +0 -2
  426. package/assets/esri/core/workers/chunks/01b7babaefe6500fd6eb.js +0 -1
  427. package/assets/esri/core/workers/chunks/06e109e92de7fa0956e3.js +0 -1
  428. package/assets/esri/core/workers/chunks/0775d1e3034d5e7ef7bc.js +0 -1
  429. package/assets/esri/core/workers/chunks/0993e51d3a9701ed2198.js +0 -1
  430. package/assets/esri/core/workers/chunks/09a0a1e794ddff65aa08.js +0 -1
  431. package/assets/esri/core/workers/chunks/0e57d33bd202d0972207.js +0 -1
  432. package/assets/esri/core/workers/chunks/114ba901fd319ce87dc6.js +0 -1
  433. package/assets/esri/core/workers/chunks/151bac9e519a3b821baf.js +0 -1
  434. package/assets/esri/core/workers/chunks/156f85ac1885464f0072.js +0 -1
  435. package/assets/esri/core/workers/chunks/180eebd8b7badc2840c9.js +0 -1
  436. package/assets/esri/core/workers/chunks/19cb8963d5ec2246357b.js +0 -1
  437. package/assets/esri/core/workers/chunks/19d4ecee1c161ac0f33c.js +0 -1
  438. package/assets/esri/core/workers/chunks/19ece9f5313f53384cac.js +0 -1
  439. package/assets/esri/core/workers/chunks/1d770e8f0fe57d937daa.js +0 -1
  440. package/assets/esri/core/workers/chunks/1dd22b8df6a52277c64b.js +0 -1
  441. package/assets/esri/core/workers/chunks/1ede298ab815e9ad625c.js +0 -1
  442. package/assets/esri/core/workers/chunks/208bc524bd1e0d3aab79.js +0 -1
  443. package/assets/esri/core/workers/chunks/20a4ae83542c7d39cf0f.js +0 -1
  444. package/assets/esri/core/workers/chunks/21071ab3d7b2771406ae.js +0 -1
  445. package/assets/esri/core/workers/chunks/21bfa89363104f041101.js +0 -1
  446. package/assets/esri/core/workers/chunks/21d0a4d6639d32278f11.js +0 -1
  447. package/assets/esri/core/workers/chunks/22a75fdc6ba60213a870.js +0 -1
  448. package/assets/esri/core/workers/chunks/22e004ed97e06536ecef.js +0 -1
  449. package/assets/esri/core/workers/chunks/23942712a3f6290e0fdb.js +0 -1
  450. package/assets/esri/core/workers/chunks/242287de82586d42f0a4.js +0 -1
  451. package/assets/esri/core/workers/chunks/25cb5086eaa412f6820b.js +0 -1
  452. package/assets/esri/core/workers/chunks/26c8ed0aef59ed6d5267.js +0 -1
  453. package/assets/esri/core/workers/chunks/2742d62fceaf0736aef0.js +0 -1
  454. package/assets/esri/core/workers/chunks/276eba546dc8774076ee.js +0 -1
  455. package/assets/esri/core/workers/chunks/28e02b213da9e682d3dc.js +0 -29
  456. package/assets/esri/core/workers/chunks/2d8195231cb16247f198.js +0 -1
  457. package/assets/esri/core/workers/chunks/2db1227ecd421728630d.js +0 -1
  458. package/assets/esri/core/workers/chunks/2ddc9c9ff6ec243d85e2.js +0 -1
  459. package/assets/esri/core/workers/chunks/2e712154ebb895d96ba1.js +0 -1
  460. package/assets/esri/core/workers/chunks/2f2df51d4976ae65edae.js +0 -1
  461. package/assets/esri/core/workers/chunks/32d31fd4cffdf5a80acb.js +0 -1
  462. package/assets/esri/core/workers/chunks/33aaa5a49e396a0aca47.js +0 -1
  463. package/assets/esri/core/workers/chunks/35622088727e120c93b9.js +0 -1
  464. package/assets/esri/core/workers/chunks/3714cc26f446c4d9cc2c.js +0 -1
  465. package/assets/esri/core/workers/chunks/3722d40d161d60370936.js +0 -1
  466. package/assets/esri/core/workers/chunks/3ac4cfeb1af12a9dc27d.js +0 -1
  467. package/assets/esri/core/workers/chunks/3b009c05eaec5a7048a8.js +0 -1
  468. package/assets/esri/core/workers/chunks/3b376318df4ff8519370.js +0 -1
  469. package/assets/esri/core/workers/chunks/3bf37fd3280f4891c76b.js +0 -1
  470. package/assets/esri/core/workers/chunks/3d18a10a1ecfabe92db3.js +0 -1
  471. package/assets/esri/core/workers/chunks/3de20165796fa4f76728.js +0 -1
  472. package/assets/esri/core/workers/chunks/3fbd4c7e25440c4713f2.js +0 -1
  473. package/assets/esri/core/workers/chunks/407dba2be21255eb47fc.js +0 -1
  474. package/assets/esri/core/workers/chunks/44b1a4e8a65221ad3808.js +0 -1
  475. package/assets/esri/core/workers/chunks/48b31b8534e7bfe42976.js +0 -1
  476. package/assets/esri/core/workers/chunks/48f6af09436723f2d861.js +0 -1
  477. package/assets/esri/core/workers/chunks/49e37f653b81f9e4f7cc.js +0 -1
  478. package/assets/esri/core/workers/chunks/4b4221a869b3f0d517fa.js +0 -1
  479. package/assets/esri/core/workers/chunks/4b86bcde5992eb752ab0.js +0 -1
  480. package/assets/esri/core/workers/chunks/4b9095e2bd060efd47c4.js +0 -1
  481. package/assets/esri/core/workers/chunks/5084de4d0d4961b63ab7.js +0 -1
  482. package/assets/esri/core/workers/chunks/51a8a47aac1d8d22ba9d.js +0 -1
  483. package/assets/esri/core/workers/chunks/5324e4feb78203204c0c.js +0 -1
  484. package/assets/esri/core/workers/chunks/5536cee0dfc183584a9b.js +0 -1
  485. package/assets/esri/core/workers/chunks/58d10928959ae1e2e8d9.js +0 -1
  486. package/assets/esri/core/workers/chunks/597a8e3d9e458298fdd3.js +0 -1
  487. package/assets/esri/core/workers/chunks/5a006ff759fad9fc25cb.js +0 -1
  488. package/assets/esri/core/workers/chunks/60be6de19c5659091d8f.js +0 -1
  489. package/assets/esri/core/workers/chunks/61a38237e163b39520e5.js +0 -1
  490. package/assets/esri/core/workers/chunks/61fcdba6f2097378dce5.js +0 -1
  491. package/assets/esri/core/workers/chunks/6561c01c67db1f4c546e.js +0 -1
  492. package/assets/esri/core/workers/chunks/65eff0ae773505495f21.js +0 -1
  493. package/assets/esri/core/workers/chunks/67452ba9e87962b9e01e.js +0 -1
  494. package/assets/esri/core/workers/chunks/68195277046861ed39a7.js +0 -1
  495. package/assets/esri/core/workers/chunks/68705692335d57522030.js +0 -1
  496. package/assets/esri/core/workers/chunks/6a2a4da3a1cd64ff576f.js +0 -1
  497. package/assets/esri/core/workers/chunks/6af1680771fd8ae8c7dc.js +0 -1
  498. package/assets/esri/core/workers/chunks/6c367de583e0e657ca3a.js +0 -1
  499. package/assets/esri/core/workers/chunks/6d2021a0f0c9a3c6a0e6.js +0 -1
  500. package/assets/esri/core/workers/chunks/6db4a4f9a9ce7cc738d0.js +0 -1
  501. package/assets/esri/core/workers/chunks/6f2a9259240769c7cd6e.js +0 -1
  502. package/assets/esri/core/workers/chunks/724260e36efea90585f4.js +0 -1
  503. package/assets/esri/core/workers/chunks/74ae1222787389d5fcaa.js +0 -1
  504. package/assets/esri/core/workers/chunks/74bfaa98da6c5d375f05.js +0 -1
  505. package/assets/esri/core/workers/chunks/7a68a16f7fea712b9fd6.js +0 -1
  506. package/assets/esri/core/workers/chunks/7b2174b19d06c16715f0.js +0 -1
  507. package/assets/esri/core/workers/chunks/7d8e59ad438fb34b476d.js +0 -1
  508. package/assets/esri/core/workers/chunks/7eb94fc75926bc739233.js +0 -1
  509. package/assets/esri/core/workers/chunks/80795118467fb31ea4ed.js +0 -1
  510. package/assets/esri/core/workers/chunks/820c530b8765ecb1f36e.js +0 -1
  511. package/assets/esri/core/workers/chunks/830daaca32352da6eebe.js +0 -1
  512. package/assets/esri/core/workers/chunks/852649460d664b0a1a1d.js +0 -1
  513. package/assets/esri/core/workers/chunks/85c538bf1209f0da1f8e.js +0 -1
  514. package/assets/esri/core/workers/chunks/8c2921081ca3e7fd0385.js +0 -1
  515. package/assets/esri/core/workers/chunks/8db3fd97e8eccd3ba1db.js +0 -1
  516. package/assets/esri/core/workers/chunks/8e225dd0319672103561.js +0 -1
  517. package/assets/esri/core/workers/chunks/8e79a84e224d05204e7d.js +0 -1
  518. package/assets/esri/core/workers/chunks/8e9aff66a2d4e2cc102b.js +0 -1
  519. package/assets/esri/core/workers/chunks/917318f8e186f466dc52.js +0 -1
  520. package/assets/esri/core/workers/chunks/9267f6a65c2245696eac.js +0 -1
  521. package/assets/esri/core/workers/chunks/958e161634b5bfd50625.js +0 -1
  522. package/assets/esri/core/workers/chunks/9658b46a7111cda53b0d.js +0 -1
  523. package/assets/esri/core/workers/chunks/974bcaf2a059b8cfb153.js +0 -1
  524. package/assets/esri/core/workers/chunks/99881d0a6c2490a16268.js +0 -1
  525. package/assets/esri/core/workers/chunks/99980c944acb8ff88d6a.js +0 -1
  526. package/assets/esri/core/workers/chunks/9c227785f4454d3966ea.js +0 -1
  527. package/assets/esri/core/workers/chunks/9d61d9136f3d00aab530.js +0 -1
  528. package/assets/esri/core/workers/chunks/9df2685583393a87df2d.js +0 -1
  529. package/assets/esri/core/workers/chunks/9e840a71906c4deef776.js +0 -1
  530. package/assets/esri/core/workers/chunks/9ee6e8a6b9bfda758c21.js +0 -1
  531. package/assets/esri/core/workers/chunks/a03f4605bde69bfb6d41.js +0 -1
  532. package/assets/esri/core/workers/chunks/a327843cee2057ee76c0.js +0 -1
  533. package/assets/esri/core/workers/chunks/a557347fb313df6fcc79.js +0 -1
  534. package/assets/esri/core/workers/chunks/a8da0728a12fc46dca23.js +0 -1
  535. package/assets/esri/core/workers/chunks/a9ea28e0f22cfe3ccf92.js +0 -1
  536. package/assets/esri/core/workers/chunks/aae92f23b38ae22dd8bf.js +0 -1
  537. package/assets/esri/core/workers/chunks/ad3714da9c90d7471385.js +0 -1
  538. package/assets/esri/core/workers/chunks/b047f9e9ba26037657ed.js +0 -1
  539. package/assets/esri/core/workers/chunks/b1323800119bd5c1759b.js +0 -1
  540. package/assets/esri/core/workers/chunks/b18c35f25da18a3219d7.js +0 -1
  541. package/assets/esri/core/workers/chunks/b1f68ee65cce457d7b5b.js +0 -1
  542. package/assets/esri/core/workers/chunks/b2d6fd436981c890152f.js +0 -1
  543. package/assets/esri/core/workers/chunks/b3c518ca8679fbe16ece.js +0 -1
  544. package/assets/esri/core/workers/chunks/b4b4fe06364bea9b0750.js +0 -1
  545. package/assets/esri/core/workers/chunks/b61b7005edd9ced925e9.js +0 -1
  546. package/assets/esri/core/workers/chunks/b661aae7e3ce955a783e.js +0 -1
  547. package/assets/esri/core/workers/chunks/b66ebe53bd879aa9de57.js +0 -1
  548. package/assets/esri/core/workers/chunks/b8ca80134abfcc692244.js +0 -1
  549. package/assets/esri/core/workers/chunks/bbdf10d76d852072c878.js +0 -1
  550. package/assets/esri/core/workers/chunks/bbeb61d9302323bae9fb.js +0 -1
  551. package/assets/esri/core/workers/chunks/bbfd2b4af8e498b61af9.js +0 -1
  552. package/assets/esri/core/workers/chunks/bddd5aa7a14cd45ff91c.js +0 -1
  553. package/assets/esri/core/workers/chunks/be31c2cb97f664a54306.js +0 -1
  554. package/assets/esri/core/workers/chunks/be4319827db91aa71bf5.js +0 -1
  555. package/assets/esri/core/workers/chunks/bef32acf368b4d5aba37.js +0 -1
  556. package/assets/esri/core/workers/chunks/c1568bcd3f04014152e1.js +0 -1
  557. package/assets/esri/core/workers/chunks/c1a7c475ce0c59ffa75a.js +0 -1
  558. package/assets/esri/core/workers/chunks/c229a4eedda468c914a9.js +0 -1
  559. package/assets/esri/core/workers/chunks/c2b2942456f1b10d0e96.js +0 -1
  560. package/assets/esri/core/workers/chunks/c308d8f419ba63c583e6.js +0 -1
  561. package/assets/esri/core/workers/chunks/c5dc2743c7116d0bc0d8.js +0 -1
  562. package/assets/esri/core/workers/chunks/c68cc3b9c170b8de22dc.js +0 -1
  563. package/assets/esri/core/workers/chunks/c6ef0636073e28350c91.js +0 -1
  564. package/assets/esri/core/workers/chunks/c71368cd64f240da1743.js +0 -1
  565. package/assets/esri/core/workers/chunks/cb2f27e5d465124b9868.js +0 -1
  566. package/assets/esri/core/workers/chunks/cee2f7f3b3f84688e49d.js +0 -1
  567. package/assets/esri/core/workers/chunks/d0942860a53b02371e94.js +0 -1
  568. package/assets/esri/core/workers/chunks/d13eeff678972a245d5d.js +0 -1
  569. package/assets/esri/core/workers/chunks/d3d7b4cd28a0dc2720d4.js +0 -1
  570. package/assets/esri/core/workers/chunks/d3ea7ac6fe71c95faa75.js +0 -1
  571. package/assets/esri/core/workers/chunks/d41e4498aaf4970f48b0.js +0 -1
  572. package/assets/esri/core/workers/chunks/d56603e1d0031f3c5f3b.js +0 -1
  573. package/assets/esri/core/workers/chunks/d7c8725ffb175cec5f8a.js +0 -1
  574. package/assets/esri/core/workers/chunks/d96fa373dcb621c2a869.js +0 -1
  575. package/assets/esri/core/workers/chunks/da233362b06b6db375f1.js +0 -1
  576. package/assets/esri/core/workers/chunks/dbc8f15a6be835f4897d.js +0 -1
  577. package/assets/esri/core/workers/chunks/e00d0036974aaec7d876.js +0 -1
  578. package/assets/esri/core/workers/chunks/e0c75ae3a211a8da10f7.js +0 -1
  579. package/assets/esri/core/workers/chunks/e474106292834633e7d4.js +0 -1
  580. package/assets/esri/core/workers/chunks/e557043f90c051e93925.js +0 -1
  581. package/assets/esri/core/workers/chunks/e5cbed6f19c743915c8e.js +0 -1
  582. package/assets/esri/core/workers/chunks/e5ecd93bd32e99bc99d1.js +0 -1
  583. package/assets/esri/core/workers/chunks/eb8c4f194bb66a27d418.js +0 -1
  584. package/assets/esri/core/workers/chunks/ebd8c77df5df63bd3efe.js +0 -1
  585. package/assets/esri/core/workers/chunks/f14347f5d63f5d102617.js +0 -1
  586. package/assets/esri/core/workers/chunks/f3c0280b6c87f2383a60.js +0 -1
  587. package/assets/esri/core/workers/chunks/f42c4dcb8f413ca1c6fd.js +0 -1
  588. package/assets/esri/core/workers/chunks/f5773321487ec248fa3b.js +0 -1
  589. package/assets/esri/core/workers/chunks/f76911f71540b058a881.js +0 -1
  590. package/assets/esri/core/workers/chunks/f988d5a6dcc15fe34797.js +0 -1
  591. package/assets/esri/core/workers/chunks/fa29b5064d6626cfc019.js +0 -1
  592. package/assets/esri/core/workers/chunks/fa882d0f4a9826533421.js +0 -1
  593. package/assets/esri/core/workers/chunks/fb2d43608006f588e3cb.js +0 -1
  594. package/assets/esri/core/workers/chunks/fbd02e8277fe2252ecd2.js +0 -1
  595. package/assets/esri/core/workers/chunks/fc1aeea22f8c9d63864a.js +0 -1
  596. package/assets/esri/core/workers/chunks/fc3c03cfa3d6bf3b37dc.js +0 -1
  597. package/assets/esri/core/workers/chunks/ff07d351553deb70b889.js +0 -1
  598. package/assets/esri/core/workers/chunks/ffee66699f5d26569baf.js +0 -1
  599. package/chunks/OperatorDefinitions.js +0 -2
  600. package/chunks/areaOperator.js +0 -2
  601. package/chunks/bufferOperator.js +0 -2
  602. package/chunks/centroidOperator.js +0 -2
  603. package/chunks/clipOperator.js +0 -2
  604. package/chunks/containsOperator.js +0 -2
  605. package/chunks/convexHullOperator.js +0 -2
  606. package/chunks/crossesOperator.js +0 -2
  607. package/chunks/cutOperator.js +0 -2
  608. package/chunks/densifyOperator.js +0 -2
  609. package/chunks/differenceOperator.js +0 -2
  610. package/chunks/disjointOperator.js +0 -2
  611. package/chunks/distanceOperator.js +0 -2
  612. package/chunks/equalsOperator.js +0 -2
  613. package/chunks/generalizeOperator.js +0 -2
  614. package/chunks/geodesicBufferOperator.js +0 -2
  615. package/chunks/geodeticAreaOperator.js +0 -2
  616. package/chunks/geodeticDensifyOperator.js +0 -2
  617. package/chunks/geodeticDistanceOperator.js +0 -2
  618. package/chunks/geodeticLengthOperator.js +0 -2
  619. package/chunks/intersectionOperator.js +0 -2
  620. package/chunks/intersectsOperator.js +0 -2
  621. package/chunks/labelPointOperator.js +0 -2
  622. package/chunks/lengthOperator.js +0 -2
  623. package/chunks/multiPartToSinglePartOperator.js +0 -2
  624. package/chunks/offsetOperator.js +0 -2
  625. package/chunks/overlapsOperator.js +0 -2
  626. package/chunks/proximityOperator.js +0 -2
  627. package/chunks/relateOperator.js +0 -2
  628. package/chunks/simplifyOperator.js +0 -2
  629. package/chunks/symmetricDifferenceOperator.js +0 -2
  630. package/chunks/touchesOperator.js +0 -2
  631. package/chunks/unionOperator.js +0 -2
  632. package/chunks/withinOperator.js +0 -2
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{rad2deg as e}from"../../core/mathUtils.js";import{throwIfAborted as t}from"../../core/promiseUtils.js";import{createArea as n,createLength as r}from"../../core/quantity.js";import{formatArea as a,formatLength as o}from"../../core/quantityFormatUtils.js";import{set as i,determinant as c}from"../../core/libs/gl-matrix-2/math/mat3.js";import{create as s}from"../../core/libs/gl-matrix-2/factories/mat3f64.js";import{zeros as l}from"../../core/libs/gl-matrix-2/factories/vec3f64.js";import{distance as u}from"../../core/libs/gl-matrix-2/math/vec2.js";import{set as f,cross as m}from"../../core/libs/gl-matrix-2/math/vec3.js";import{isSupported as p,geodesicLengths as h,geodesicAreas as y}from"../../geometry/geodesicUtils.js";import g from"../../geometry/Point.js";import w from"../../geometry/Polygon.js";import x from"../../geometry/Polyline.js";import{projectAsync as v,project as R}from"../../geometry/projectionUtils.js";import d from"../../geometry/SpatialReference.js";import{e as M}from"../../chunks/areaOperator.js";import{l as P,e as z}from"../../chunks/geodeticAreaOperator.js";import{l as j,e as b}from"../../chunks/geodeticDensifyOperator.js";import{l as E,e as S}from"../../chunks/geodeticLengthOperator.js";import{e as L}from"../../chunks/lengthOperator.js";import{e as O}from"../../chunks/simplifyOperator.js";import{imageToWorldPanoramic as W,imageToWorld as I}from"../../layers/orientedImagery/transformations/imageToWorld.js";import{getImageToWorldPanoramicProperties as q,getUpdateElevationProps as G,convertSphereVertexToPixelLocation as k,getImageToWorldProperties as A}from"../../layers/orientedImagery/transformations/utils.js";import{worldToImagePanoramic as D,worldToImage as U}from"../../layers/orientedImagery/transformations/worldToImage.js";const B=1e5,H="meters",F="square-meters";function T(e,t){let n=180*Math.atan2(-e.y+t.y,e.x-t.x)/Math.PI;return n<0&&(n+=180),n*Math.PI/180}function V(e,t){let n=180*Math.atan2(-e.y+t.y,e.x-t.x)/Math.PI;return n<0&&(n+=180),n*Math.PI/180}function C(e,t,n){if(!e?.length||!t?.length||!n)return;const[r,a]=e,[,o]=t,i=o-a;return[r+i*Math.cos(n),a+i*Math.sin(n)]}async function J(e,t,n){if(await j(),p(e)){const e=h([t],H)[0];return{area:y([n],F)[0],perimeter:e}}const r=d.WGS84,a=R(t,r),o=R(n,r);let i=b(o,B);if(i=i?O(i):null,!i)return null;const c=h([a],H)[0];return{area:y([i],F)[0],perimeter:c}}function K(e,t,n=1){const r=we(e,!1);if(!r?.length)return;return 20*u([r[0].x,r[0].y],[r.at(-1).x,r.at(-1).y])*n/t}async function N(e){await E();const t=e.spatialReference;if(t.isGeographic){if(p(t))return h([e],H)[0];const n=R(e,d.WGS84);return h([n],H)[0]}return t.isWebMercator?S(e,{unit:H}):L(e,{unit:H})}function Q(e){if(!e?.length)throw new Error("Invalid deviations array");const[t,n,r]=[0,1,2].map(t=>e.map(e=>e[t]).filter(e=>null!==e)).map(e=>e.length?Pe(e):0);return[t,n,r]}function X(e,t){const n=O(t);if(!n)return null;const r=L(e,{unit:H});return{area:M(n,{unit:F}),perimeter:r}}function Y(e,t){return[(e[1][0]-e[0][0])/t,(e[1][1]-e[0][1])/t,(e[1][2]-e[0][2])/t]}async function Z(e,t){await Promise.all([P(),j(),E()]);let n=b(t,B);if(n=n?O(n):null,!n)return null;const r=S(e,{unit:H});return{area:z(n,{unit:F}),perimeter:r}}async function $(e,n,r){if(!n||!e)throw new Error("Missing required parameters");const a=await I(e,n);t(r);const o=a.clone();o.z?o.z+=20:o.z=20;const{averageElevation:i,cameraPitch:c,cameraRoll:s,farDistance:l,...u}=n;return U(o,u)}async function _(e,n,r,a){const{attributes:o}=r,{location:i}=o,{updateElevationProps:c,...s}=n;if(!e||!n)throw new Error("Missing parameters");let l=i.clone();l.spatialReference.isGeographic&&(l=await v(l,d.WebMercator));const u=await W(e,{...s,cameraLocation:l},c);t(a);const f=u.clone();return f.z?f.z+=20:f.z=20,D(f,s)}function ee(e,t,n,r,a=0,o=1,i){const{averageElevation:c,cameraPitch:s,cameraRoll:l,farDistance:f,...m}=r;if(a>=5||o<=.1){return{value:e*Ee(r.cameraLocation.spatialReference)}}const p=new g({x:t.x,y:t.y,z:t.z?t.z+e:e,spatialReference:r.cameraLocation.spatialReference}),h=U(p,m),y=u([n[0].x,n[0].y],[h.x,h.y]),w=n.at(0),x=n.at(-1);if(!w||!x)return null;const v=u([w.x,w.y],[x.x,x.y])*e/y;return ee(v,t,n,r,a+1,Math.abs(e-v))}function te(e,t,n,r,a=0,o=1,i){const{averageElevation:c,horizontalFieldOfView:s,verticalFieldOfView:l,farDistance:f,...m}=r;if(a>=5||o<=.1){return{value:e*Ee(r.cameraLocation.spatialReference)}}const p=new g({x:t.x,y:t.y,z:t.z?t.z+e:e,spatialReference:r.cameraLocation.spatialReference}),h=D(p,m),y=u([n[0].x,n[0].y],[h.x,h.y]),w=n.at(0),x=n.at(-1);if(!w||!x)return null;const v=u([w.x,w.y],[x.x,x.y])*e/y;return te(v,t,n,r,a+1,Math.abs(e-v))}async function ne(e,t,n){return e.spatialReference&&!t.spatialReference.equals(e.spatialReference)&&(t=await v(t,e.spatialReference)),new x({paths:[[[e.x,e.y,e.z??0],[t.x,t.y,t.z??0]]],spatialReference:n})}function re(e){return 1/Math.cos(Math.PI/2-2*Math.atan(Math.exp(-1*e/6378137)))}function ae(e,t){return Math.sqrt((Math.sqrt((e[0][0]-e[1][0])**2+(e[0][1]-e[1][1])**2)/t)**2+(e[0][2]-e[1][2])**2)}function oe(e,t){return Math.sqrt((e[0][0]-e[1][0])**2+(e[0][1]-e[1][1])**2)/t}function ie(t){return e(Math.atan((t[1][2]-t[0][2])/Math.sqrt((t[1][0]-t[0][0])**2+(t[1][1]-t[0][1])**2)))}function ce(t){let n=90-e(Math.atan2(t[1][1]-t[0][1],t[1][0]-t[0][0]));return n<0&&(n+=360),n}function se(e,t){return new g({x:(e.pointOnA[0]+e.pointOnB[0])/2,y:(e.pointOnA[1]+e.pointOnB[1])/2,z:(e.pointOnA[2]+e.pointOnB[2])/2,spatialReference:t})}async function le(e){if(2===e?.length){const t=[];let n=1;const[r,a]=e,o=r.camera.spatialReference,{measurePoints:i}=r;for(let e=0;e<i.length;e++){const i=await ne(r.camera,r.measurePoints[e],o),c=await ne(a.camera,a.measurePoints[e],o),s=await Ue(i,c);if(!s)return null;const l=se(s,o);l.spatialReference.isWebMercator&&(n=re(l.y)),t.push([l.x,l.y,l.z??0])}if(t?.length>1){return{distance:ae(t,n),horizontalDistance:oe(t,n),verticalDistance:Math.abs(t[0][2]-t[1][2]),slope:ie(t),aspect:ce(t)}}}return null}async function ue(e){const t=e[0].camera.spatialReference;if(2!==e?.length)return null;const[n,r]=e,{camera:a,measurePoints:o}=n,{camera:i,measurePoints:c}=r,s=await ne(a,o[0],t),l=await ne(i,c[0],t),u=await Ue(s,l);return u?se(u,t)??null:null}async function fe(e,t){if(!e?.length)return null;const n=[],r=e[0],a=e[1],o=r.camera.spatialReference,{measurePoints:i}=r;for(let u=0;u<i.length;u++){const e=await ne(r.camera,r.measurePoints[u],o),t=await ne(a.camera,a.measurePoints[u],o),i=await Ue(e,t);if(!i)return null;const c=se(i,o);n.push([c.x,c.y,c.z??0])}if(n?.length<2)return null;const c=new x({paths:[n],spatialReference:t}),s=new w({rings:[n],spatialReference:t});if(t.isGeographic){const e=await J(t,c,s);return e?.area??null}if(t.isWebMercator){const e=await Z(c,s);return e?.area??null}const l=X(c,s);return l?.area??null}function me(e,t){if(!e)return null;return{camera:t.geometry.clone(),measurePoints:Array.isArray(e)?e:[e]}}async function pe(e,t){const{updateElevationProps:n,...r}=t;return await I(e,r,n)}async function he(e,t){const{updateElevationProps:n,...r}=t;return W(e,r,n)}function ye(e){navigator.clipboard.writeText(e).catch(e=>{throw e})}function ge(e){const t=e.map(e=>[e.x,e.y]),n=e[0].spatialReference;return new x({paths:[t],spatialReference:n})}function we(e,t){return e.map(e=>({x:t?.5+e[0]:e[0],y:t?.5-e[1]:e[1]}))}function xe(e,t,n,a,i){const c="measurement"===e?t:n;if(i&&c)return o(a,r(c,H),i,3)||null}function ve(e,t){const{cameraPitch:n,cameraRoll:r,cameraLocation:a}=e,{x:o,y:i,z:c,spatialReference:s}=a;if(t.every(e=>0===e)||!t||!t.length||!s)throw new Error("Invalid parameters");const[l,u,,f,m]=t,p=[-f,0,f],h=[-m,0,m],y=[-l,0,l],g=[-u,0,u],w=[];for(const x of p)for(const t of h)for(const a of y)for(const l of y)for(const u of g){const f={...e};f.cameraPitch=n+x,f.cameraRoll=r+t,f.cameraLocation={x:o+a,y:i+l,z:c?c+u:0,spatialReference:{wkid:s.wkid}},w.push(f)}return w}function Re(e,t){const{cameraHeading:n,cameraLocation:r}=e,{x:a,y:o,z:i,spatialReference:c}=r;if(!t||t.every(e=>0===e)||!t.length||!c)throw new Error("Invalid parameters");const[s,l,u]=t,f=u>0?[-u,0,u]:[],m=s>0?[-s,0,s]:[],p=l>0?[-l,0,l]:[],h=[];for(const y of f)for(const t of m)for(const r of m)for(const s of p){const l={...e};l.cameraHeading=n+y,l.cameraLocation={x:a+t,y:o+r,z:i?i+s:0,spatialReference:{wkid:c.wkid}},h.push(l)}return h}function de(e,t,n,a,i){const c="measurement"===e?t:Pe(n);if(i&&c)return o(a,r(c,H),i,3)||null}function Me(e,t,r,o,i){const c="measurement"===e?t:r;if(i&&c)return a(o,n(c,F),i,3)||null}function Pe(e){return Math.sqrt(e.reduce((e,t)=>e+t**2,0))}function ze(e,t,n){if(!e||!t)return;const{elevationSample:r,attributes:a}=e,{elevationSource:o,cameraHeight:i}=a,c=A(a,t[0],t[1]);let s=c.cameraLocation;return(s.spatialReference.isGeographic?v(s,d.WebMercator):Promise.resolve(s)).then(e=>(s=e,G(s.spatialReference,s.z??0,i,{elevationSample:r,elevationSource:o,extent:n}))).then(t=>("elevationSample"in t&&(e.elevationSample=t.elevationSample),{...c,cameraLocation:s,updateElevationProps:t}))}function je(e,t,n){if(!e||!t)return;const{elevationSample:r,attributes:a}=e,{elevationSource:o,cameraHeight:i}=a,c=q(a,t[0],t[1]);let s=c.cameraLocation;return(s.spatialReference.isGeographic?v(s,d.WebMercator):Promise.resolve(s)).then(e=>(s=e,G(s.spatialReference,s.z??0,i,{elevationSample:r,elevationSource:o,extent:n}))).then(t=>("elevationSample"in t&&(e.elevationSample=t.elevationSample),{...c,cameraLocation:s,updateElevationProps:t}))}function be(e,t,n){if("default"===t)return e;const r={x:e[0],y:e[1],z:e[2]},a=k(r,n[0],n[1]);return[a.x,a.y]}function Ee(e){return e.metersPerUnit}function Se(e,t,n,r){let a=[];return a="panoramic"===t?e.map(([e,t,a])=>{const{x:o,y:i}=k({x:e,y:t,z:a},n[0],n[1],r);return[o-.5,-.5-i]}):e.map(([e,t])=>[e-.5,-.5-t]),a}function Le(e,t,n){return e.map(e=>k({x:e[0],y:e[1],z:e[2]},t[0],t[1],n))}async function Oe(e,n,r,a=!1,o=!1,i){if(!e||!n||e.length<2)return null;const c=we(e,a);if(!c||c.length<2)return null;const[s,l]=[c[0],c.at(-1)];if(!l)return null;const f=[s],m=await I(s,n);t(i);const p=m.clone();p.z?p.z+=20:p.z=20;const{averageElevation:h,cameraPitch:y,cameraRoll:g,farDistance:w,...x}=n,v=U(p,x),R=u([s.x,s.y],[v.x,v.y]),d=T(s,v);if(!d)return;const M=C([s.x,s.y],[l.x,l.y],d);if(!M?.length)return;f.push({x:M[0],y:M[1]});const P=20*u([f[0].x,f[0].y],[f[1].x,f[1].y])*Ee(n.cameraLocation.spatialReference)/R;if(!o)return P;const z=ee(P,m,f,n,0,1);return z?.value}async function We(e,n,r,a,o=!1,i=!1,c){const{attributes:s}=a,{location:l}=s,{updateElevationProps:f,...m}=n;if(!e||!n||e.length<2)throw new Error("Invalid parameters");const p=we(e,o),[h,y]=[p[0],p.at(-1)],g=[h];let w=l.clone();w.spatialReference.isGeographic&&(w=await v(w,d.WebMercator));const x=await W(h,{...m,cameraLocation:w},f);t(c);const R=x.clone();R.z?R.z+=20:R.z=20;const M=D(R,m),P=u([h.x,h.y],[M.x,M.y]),z=T(h,M);if(!z)return;const j=C([h.x,h.y],[y.x,y.y],z);if(!j?.length)return;g.push({x:j[0],y:j[1]});const b=20*u([g[0].x,g[0].y],[g[1].x,g[1].y])*Ee(n.cameraLocation.spatialReference)/P;if(!i)return b;const E=te(b,x,g,n,0,1);return E?.value}async function Ie(e,t,n){const{updateElevationProps:r,...a}=t,{updateElevationProps:o,...i}=n,c=await I(e,a,r);return U(c,i)}async function qe(e,t,n){const{updateElevationProps:r,...a}=t,{updateElevationProps:o,...i}=n,c=await W(e,a,r);return D(c,i)}async function Ge(e,t,n=!1){if(e.length<3)return null;const r=we(e,n),a=await pe(r,t),o=a.map(({x:e,y:t})=>[e,t]);e.push(e[0]),o.push(o[0]);const i=a[0].spatialReference,c=new x({paths:[o],spatialReference:i}),s=new w({rings:[o],spatialReference:i});return i.isGeographic?J(i,c,s):i.isWebMercator?Z(c,s):X(c,s)}async function ke(e,n,r=!1,a){if(e.length<3)return null;const o=we(e,r),i=await he(o,n);t(a);const c=i.map(({x:e,y:t})=>[e,t]);e.push(e[0]),c.push(c[0]);const s=i[0].spatialReference,l=new x({paths:[c],spatialReference:s}),u=new w({rings:[c],spatialReference:s});return s.isGeographic?J(s,l,u):s.isWebMercator?Z(l,u):X(l,u)}async function Ae(e,t,n=!1){const r=we(e,n);return N(ge(await pe(r,t)))}async function De(e,n,r=!1,a){const o=we(e,r),i=await he(o,n);t(a);return N(ge(i))}async function Ue(e,t){const n=s(),r=e.paths[0][0],a=t.paths[0][0];let o,l;e.spatialReference.isWGS84||e.spatialReference.isWebMercator?(await E(),o=S(e),l=S(t)):(o=L(e),l=L(t));const u=Y(e.paths[0],o),f=Y(t.paths[0],l),m=Be(u,f),[p,h,y]=u,[g,w,x]=f.map(e=>-e),[v,R,d]=m,[M,P,z]=[a[0]-r[0],a[1]-r[1],a[2]-r[2]];i(n,p,g,v,h,w,R,y,x,d);const j=c(n);if(0===j)return null;i(n,M,g,v,P,w,R,z,x,d);const b=c(n);i(n,p,M,v,h,P,R,y,z,d);const O=c(n);i(n,p,g,M,h,w,P,y,x,z);const W=b/j,I=O/j,q=c(n)/j;return{distance:Math.abs(q/Math.sqrt(m[0]*m[0]+m[1]*m[1]+m[2]*m[2])),pointOnA:He(r,W,u),pointOnB:He(a,I,f)}}function Be(e,t){const n=l(),r=f(l(),e[0],e[1],e[2]),a=f(l(),t[0],t[1],t[2]),o=m(n,r,a);return[o[0],o[1],o[2]]}function He(e,t,n){return[e[0]+t*n[0],e[1]+t*n[1],e[2]+t*n[2]]}export{T as calculateAngle,V as calculateAnglePano,C as calculateCorrectedPixel,K as calculateHeightFromTemporaryDistance,Q as calculateLocationAccuracyFromDeviations,_ as calculateReferenceImagePointPanoramic,$ as calculateTempImagePoint,re as calculateUpdatedWmsf,ee as computeHeightIteratively,te as computeHeightIterativelyPanoramic,fe as computeTriangulatedAreaMeasurement,le as computeTriangulatedDistanceMeasurement,ue as computeTriangulatedPoint,me as computeTriangulatedVector,ye as copyToClipboard,we as formatPixels,ve as generateCombinations,Re as generateCombinationsPanoramic,Me as getConvertedArea,de as getConvertedDistance,xe as getConvertedHeight,ze as getMeasurementProperties,je as getMeasurementPropertiesPanoramic,be as getModeCorrectedPoint,Se as getModeCorrectedPoints,Le as getPixelLocationFromSphereVertices,Pe as getRootOfSumOfSquaredErrors,Ee as getUnitRateFromSpatialReference,Oe as heightMeasurement2D,We as heightMeasurementPanoramic,Ie as imageToImageTransform,qe as imageToImageTransformPanoramic,Ge as pixelAreaMeasurement2D,ke as pixelAreaMeasurementPanoramic,Ae as pixelDistanceMeasurement2D,De as pixelDistanceMeasurementPanoramic,Ue as solveSkewLinesIntersection};
2
+ import{rad2deg as e}from"../../core/mathUtils.js";import{throwIfAborted as t}from"../../core/promiseUtils.js";import{createArea as n,createLength as r}from"../../core/quantity.js";import{formatArea as a,formatLength as o}from"../../core/quantityFormatUtils.js";import{set as i,determinant as c}from"../../core/libs/gl-matrix-2/math/mat3.js";import{create as s}from"../../core/libs/gl-matrix-2/factories/mat3f64.js";import{zeros as l}from"../../core/libs/gl-matrix-2/factories/vec3f64.js";import{distance as u}from"../../core/libs/gl-matrix-2/math/vec2.js";import{set as f,cross as m}from"../../core/libs/gl-matrix-2/math/vec3.js";import{isSupported as p,geodesicLengths as y,geodesicAreas as h}from"../../geometry/geodesicUtils.js";import g from"../../geometry/Point.js";import x from"../../geometry/Polygon.js";import w from"../../geometry/Polyline.js";import{projectAsync as v,project as R}from"../../geometry/projectionUtils.js";import d from"../../geometry/SpatialReference.js";import{execute as M}from"../../geometry/operators/areaOperator.js";import{load as P,execute as z}from"../../geometry/operators/geodeticAreaOperator.js";import{load as j,execute as b}from"../../geometry/operators/geodeticDensifyOperator.js";import{load as E,execute as S}from"../../geometry/operators/geodeticLengthOperator.js";import{execute as L}from"../../geometry/operators/lengthOperator.js";import{execute as O}from"../../geometry/operators/simplifyOperator.js";import{imageToWorldPanoramic as W,imageToWorld as I}from"../../layers/orientedImagery/transformations/imageToWorld.js";import{getImageToWorldPanoramicProperties as q,getUpdateElevationProps as G,convertSphereVertexToPixelLocation as A,getImageToWorldProperties as D}from"../../layers/orientedImagery/transformations/utils.js";import{worldToImagePanoramic as U,worldToImage as k}from"../../layers/orientedImagery/transformations/worldToImage.js";const B=1e5,H="meters",F="square-meters";function T(e,t){let n=180*Math.atan2(-e.y+t.y,e.x-t.x)/Math.PI;return n<0&&(n+=180),n*Math.PI/180}function V(e,t){let n=180*Math.atan2(-e.y+t.y,e.x-t.x)/Math.PI;return n<0&&(n+=180),n*Math.PI/180}function C(e,t,n){if(!e?.length||!t?.length||!n)return;const[r,a]=e,[,o]=t,i=o-a;return[r+i*Math.cos(n),a+i*Math.sin(n)]}async function J(e,t,n){if(await j(),p(e)){const e=y([t],H)[0];return{area:h([n],F)[0],perimeter:e}}const r=d.WGS84,a=R(t,r),o=R(n,r);let i=b(o,B);if(i=i?O(i):null,!i)return null;const c=y([a],H)[0];return{area:h([i],F)[0],perimeter:c}}function K(e,t,n=1){const r=xe(e,!1);if(!r?.length)return;return 20*u([r[0].x,r[0].y],[r.at(-1).x,r.at(-1).y])*n/t}async function N(e){await E();const t=e.spatialReference;if(t.isGeographic){if(p(t))return y([e],H)[0];const n=R(e,d.WGS84);return y([n],H)[0]}return t.isWebMercator?S(e,{unit:H}):L(e,{unit:H})}function Q(e){if(!e?.length)throw new Error("Invalid deviations array");const[t,n,r]=[0,1,2].map(t=>e.map(e=>e[t]).filter(e=>null!==e)).map(e=>e.length?Pe(e):0);return[t,n,r]}function X(e,t){const n=O(t);if(!n)return null;const r=L(e,{unit:H});return{area:M(n,{unit:F}),perimeter:r}}function Y(e,t){return[(e[1][0]-e[0][0])/t,(e[1][1]-e[0][1])/t,(e[1][2]-e[0][2])/t]}async function Z(e,t){await Promise.all([P(),j(),E()]);let n=b(t,B);if(n=n?O(n):null,!n)return null;const r=S(e,{unit:H});return{area:z(n,{unit:F}),perimeter:r}}async function $(e,n,r){if(!n||!e)throw new Error("Missing required parameters");const a=await I(e,n);t(r);const o=a.clone();o.z?o.z+=20:o.z=20;const{averageElevation:i,cameraPitch:c,cameraRoll:s,farDistance:l,...u}=n;return k(o,u)}async function _(e,n,r,a){const{attributes:o}=r,{location:i}=o,{updateElevationProps:c,...s}=n;if(!e||!n)throw new Error("Missing parameters");let l=i.clone();l.spatialReference.isGeographic&&(l=await v(l,d.WebMercator));const u=await W(e,{...s,cameraLocation:l},c);t(a);const f=u.clone();return f.z?f.z+=20:f.z=20,U(f,s)}function ee(e,t,n,r,a=0,o=1,i){const{averageElevation:c,cameraPitch:s,cameraRoll:l,farDistance:f,...m}=r;if(a>=5||o<=.1){return{value:e*Ee(r.cameraLocation.spatialReference)}}const p=new g({x:t.x,y:t.y,z:t.z?t.z+e:e,spatialReference:r.cameraLocation.spatialReference}),y=k(p,m),h=u([n[0].x,n[0].y],[y.x,y.y]),x=n.at(0),w=n.at(-1);if(!x||!w)return null;const v=u([x.x,x.y],[w.x,w.y])*e/h;return ee(v,t,n,r,a+1,Math.abs(e-v))}function te(e,t,n,r,a=0,o=1,i){const{averageElevation:c,horizontalFieldOfView:s,verticalFieldOfView:l,farDistance:f,...m}=r;if(a>=5||o<=.1){return{value:e*Ee(r.cameraLocation.spatialReference)}}const p=new g({x:t.x,y:t.y,z:t.z?t.z+e:e,spatialReference:r.cameraLocation.spatialReference}),y=U(p,m),h=u([n[0].x,n[0].y],[y.x,y.y]),x=n.at(0),w=n.at(-1);if(!x||!w)return null;const v=u([x.x,x.y],[w.x,w.y])*e/h;return te(v,t,n,r,a+1,Math.abs(e-v))}async function ne(e,t,n){return e.spatialReference&&!t.spatialReference.equals(e.spatialReference)&&(t=await v(t,e.spatialReference)),new w({paths:[[[e.x,e.y,e.z??0],[t.x,t.y,t.z??0]]],spatialReference:n})}function re(e){return 1/Math.cos(Math.PI/2-2*Math.atan(Math.exp(-1*e/6378137)))}function ae(e,t){return Math.sqrt((Math.sqrt((e[0][0]-e[1][0])**2+(e[0][1]-e[1][1])**2)/t)**2+(e[0][2]-e[1][2])**2)}function oe(e,t){return Math.sqrt((e[0][0]-e[1][0])**2+(e[0][1]-e[1][1])**2)/t}function ie(t){return e(Math.atan((t[1][2]-t[0][2])/Math.sqrt((t[1][0]-t[0][0])**2+(t[1][1]-t[0][1])**2)))}function ce(t){let n=90-e(Math.atan2(t[1][1]-t[0][1],t[1][0]-t[0][0]));return n<0&&(n+=360),n}function se(e,t){return new g({x:(e.pointOnA[0]+e.pointOnB[0])/2,y:(e.pointOnA[1]+e.pointOnB[1])/2,z:(e.pointOnA[2]+e.pointOnB[2])/2,spatialReference:t})}async function le(e){if(2===e?.length){const t=[];let n=1;const[r,a]=e,o=r.camera.spatialReference,{measurePoints:i}=r;for(let e=0;e<i.length;e++){const i=await ne(r.camera,r.measurePoints[e],o),c=await ne(a.camera,a.measurePoints[e],o),s=await ke(i,c);if(!s)return null;const l=se(s,o);l.spatialReference.isWebMercator&&(n=re(l.y)),t.push([l.x,l.y,l.z??0])}if(t?.length>1){return{distance:ae(t,n),horizontalDistance:oe(t,n),verticalDistance:Math.abs(t[0][2]-t[1][2]),slope:ie(t),aspect:ce(t)}}}return null}async function ue(e){const t=e[0].camera.spatialReference;if(2!==e?.length)return null;const[n,r]=e,{camera:a,measurePoints:o}=n,{camera:i,measurePoints:c}=r,s=await ne(a,o[0],t),l=await ne(i,c[0],t),u=await ke(s,l);return u?se(u,t)??null:null}async function fe(e,t){if(!e?.length)return null;const n=[],r=e[0],a=e[1],o=r.camera.spatialReference,{measurePoints:i}=r;for(let u=0;u<i.length;u++){const e=await ne(r.camera,r.measurePoints[u],o),t=await ne(a.camera,a.measurePoints[u],o),i=await ke(e,t);if(!i)return null;const c=se(i,o);n.push([c.x,c.y,c.z??0])}if(n?.length<2)return null;const c=new w({paths:[n],spatialReference:t}),s=new x({rings:[n],spatialReference:t});if(t.isGeographic){const e=await J(t,c,s);return e?.area??null}if(t.isWebMercator){const e=await Z(c,s);return e?.area??null}const l=X(c,s);return l?.area??null}function me(e,t){if(!e)return null;return{camera:t.geometry.clone(),measurePoints:Array.isArray(e)?e:[e]}}async function pe(e,t){const{updateElevationProps:n,...r}=t;return await I(e,r,n)}async function ye(e,t){const{updateElevationProps:n,...r}=t;return W(e,r,n)}function he(e){navigator.clipboard.writeText(e).catch(e=>{throw e})}function ge(e){const t=e.map(e=>[e.x,e.y]),n=e[0].spatialReference;return new w({paths:[t],spatialReference:n})}function xe(e,t){return e.map(e=>({x:t?.5+e[0]:e[0],y:t?.5-e[1]:e[1]}))}function we(e,t,n,a,i){const c="measurement"===e?t:n;if(i&&c)return o(a,r(c,H),i,3)||null}function ve(e,t){const{cameraPitch:n,cameraRoll:r,cameraLocation:a}=e,{x:o,y:i,z:c,spatialReference:s}=a;if(t.every(e=>0===e)||!t||!t.length||!s)throw new Error("Invalid parameters");const[l,u,,f,m]=t,p=[-f,0,f],y=[-m,0,m],h=[-l,0,l],g=[-u,0,u],x=[];for(const w of p)for(const t of y)for(const a of h)for(const l of h)for(const u of g){const f={...e};f.cameraPitch=n+w,f.cameraRoll=r+t,f.cameraLocation={x:o+a,y:i+l,z:c?c+u:0,spatialReference:{wkid:s.wkid}},x.push(f)}return x}function Re(e,t){const{cameraHeading:n,cameraLocation:r}=e,{x:a,y:o,z:i,spatialReference:c}=r;if(!t||t.every(e=>0===e)||!t.length||!c)throw new Error("Invalid parameters");const[s,l,u]=t,f=u>0?[-u,0,u]:[],m=s>0?[-s,0,s]:[],p=l>0?[-l,0,l]:[],y=[];for(const h of f)for(const t of m)for(const r of m)for(const s of p){const l={...e};l.cameraHeading=n+h,l.cameraLocation={x:a+t,y:o+r,z:i?i+s:0,spatialReference:{wkid:c.wkid}},y.push(l)}return y}function de(e,t,n,a,i){const c="measurement"===e?t:Pe(n);if(i&&c)return o(a,r(c,H),i,3)||null}function Me(e,t,r,o,i){const c="measurement"===e?t:r;if(i&&c)return a(o,n(c,F),i,3)||null}function Pe(e){return Math.sqrt(e.reduce((e,t)=>e+t**2,0))}function ze(e,t,n){if(!e||!t)return;const{elevationSample:r,attributes:a}=e,{elevationSource:o,cameraHeight:i}=a,c=D(a,t[0],t[1]);let s=c.cameraLocation;return(s.spatialReference.isGeographic?v(s,d.WebMercator):Promise.resolve(s)).then(e=>(s=e,G(s.spatialReference,s.z??0,i,{elevationSample:r,elevationSource:o,extent:n}))).then(t=>("elevationSample"in t&&(e.elevationSample=t.elevationSample),{...c,cameraLocation:s,updateElevationProps:t}))}function je(e,t,n){if(!e||!t)return;const{elevationSample:r,attributes:a}=e,{elevationSource:o,cameraHeight:i}=a,c=q(a,t[0],t[1]);let s=c.cameraLocation;return(s.spatialReference.isGeographic?v(s,d.WebMercator):Promise.resolve(s)).then(e=>(s=e,G(s.spatialReference,s.z??0,i,{elevationSample:r,elevationSource:o,extent:n}))).then(t=>("elevationSample"in t&&(e.elevationSample=t.elevationSample),{...c,cameraLocation:s,updateElevationProps:t}))}function be(e,t,n){if("default"===t)return e;const r={x:e[0],y:e[1],z:e[2]},a=A(r,n[0],n[1]);return[a.x,a.y]}function Ee(e){return e.metersPerUnit}function Se(e,t,n,r){let a=[];return a="panoramic"===t?e.map(([e,t,a])=>{const{x:o,y:i}=A({x:e,y:t,z:a},n[0],n[1],r);return[o-.5,-.5-i]}):e.map(([e,t])=>[e-.5,-.5-t]),a}function Le(e,t,n){return e.map(e=>A({x:e[0],y:e[1],z:e[2]},t[0],t[1],n))}async function Oe(e,n,r,a=!1,o=!1,i){if(!e||!n||e.length<2)return null;const c=xe(e,a);if(!c||c.length<2)return null;const[s,l]=[c[0],c.at(-1)];if(!l)return null;const f=[s],m=await I(s,n);t(i);const p=m.clone();p.z?p.z+=20:p.z=20;const{averageElevation:y,cameraPitch:h,cameraRoll:g,farDistance:x,...w}=n,v=k(p,w),R=u([s.x,s.y],[v.x,v.y]),d=T(s,v);if(!d)return;const M=C([s.x,s.y],[l.x,l.y],d);if(!M?.length)return;f.push({x:M[0],y:M[1]});const P=20*u([f[0].x,f[0].y],[f[1].x,f[1].y])*Ee(n.cameraLocation.spatialReference)/R;if(!o)return P;const z=ee(P,m,f,n,0,1);return z?.value}async function We(e,n,r,a,o=!1,i=!1,c){const{attributes:s}=a,{location:l}=s,{updateElevationProps:f,...m}=n;if(!e||!n||e.length<2)throw new Error("Invalid parameters");const p=xe(e,o),[y,h]=[p[0],p.at(-1)],g=[y];let x=l.clone();x.spatialReference.isGeographic&&(x=await v(x,d.WebMercator));const w=await W(y,{...m,cameraLocation:x},f);t(c);const R=w.clone();R.z?R.z+=20:R.z=20;const M=U(R,m),P=u([y.x,y.y],[M.x,M.y]),z=T(y,M);if(!z)return;const j=C([y.x,y.y],[h.x,h.y],z);if(!j?.length)return;g.push({x:j[0],y:j[1]});const b=20*u([g[0].x,g[0].y],[g[1].x,g[1].y])*Ee(n.cameraLocation.spatialReference)/P;if(!i)return b;const E=te(b,w,g,n,0,1);return E?.value}async function Ie(e,t,n){const{updateElevationProps:r,...a}=t,{updateElevationProps:o,...i}=n,c=await I(e,a,r);return k(c,i)}async function qe(e,t,n){const{updateElevationProps:r,...a}=t,{updateElevationProps:o,...i}=n,c=await W(e,a,r);return U(c,i)}async function Ge(e,t,n=!1){if(e.length<3)return null;const r=xe(e,n),a=await pe(r,t),o=a.map(({x:e,y:t})=>[e,t]);e.push(e[0]),o.push(o[0]);const i=a[0].spatialReference,c=new w({paths:[o],spatialReference:i}),s=new x({rings:[o],spatialReference:i});return i.isGeographic?J(i,c,s):i.isWebMercator?Z(c,s):X(c,s)}async function Ae(e,n,r=!1,a){if(e.length<3)return null;const o=xe(e,r),i=await ye(o,n);t(a);const c=i.map(({x:e,y:t})=>[e,t]);e.push(e[0]),c.push(c[0]);const s=i[0].spatialReference,l=new w({paths:[c],spatialReference:s}),u=new x({rings:[c],spatialReference:s});return s.isGeographic?J(s,l,u):s.isWebMercator?Z(l,u):X(l,u)}async function De(e,t,n=!1){const r=xe(e,n);return N(ge(await pe(r,t)))}async function Ue(e,n,r=!1,a){const o=xe(e,r),i=await ye(o,n);t(a);return N(ge(i))}async function ke(e,t){const n=s(),r=e.paths[0][0],a=t.paths[0][0];let o,l;e.spatialReference.isWGS84||e.spatialReference.isWebMercator?(await E(),o=S(e),l=S(t)):(o=L(e),l=L(t));const u=Y(e.paths[0],o),f=Y(t.paths[0],l),m=Be(u,f),[p,y,h]=u,[g,x,w]=f.map(e=>-e),[v,R,d]=m,[M,P,z]=[a[0]-r[0],a[1]-r[1],a[2]-r[2]];i(n,p,g,v,y,x,R,h,w,d);const j=c(n);if(0===j)return null;i(n,M,g,v,P,x,R,z,w,d);const b=c(n);i(n,p,M,v,y,P,R,h,z,d);const O=c(n);i(n,p,g,M,y,x,P,h,w,z);const W=b/j,I=O/j,q=c(n)/j;return{distance:Math.abs(q/Math.sqrt(m[0]*m[0]+m[1]*m[1]+m[2]*m[2])),pointOnA:He(r,W,u),pointOnB:He(a,I,f)}}function Be(e,t){const n=l(),r=f(l(),e[0],e[1],e[2]),a=f(l(),t[0],t[1],t[2]),o=m(n,r,a);return[o[0],o[1],o[2]]}function He(e,t,n){return[e[0]+t*n[0],e[1]+t*n[1],e[2]+t*n[2]]}export{T as calculateAngle,V as calculateAnglePano,C as calculateCorrectedPixel,K as calculateHeightFromTemporaryDistance,Q as calculateLocationAccuracyFromDeviations,_ as calculateReferenceImagePointPanoramic,$ as calculateTempImagePoint,re as calculateUpdatedWmsf,ee as computeHeightIteratively,te as computeHeightIterativelyPanoramic,fe as computeTriangulatedAreaMeasurement,le as computeTriangulatedDistanceMeasurement,ue as computeTriangulatedPoint,me as computeTriangulatedVector,he as copyToClipboard,xe as formatPixels,ve as generateCombinations,Re as generateCombinationsPanoramic,Me as getConvertedArea,de as getConvertedDistance,we as getConvertedHeight,ze as getMeasurementProperties,je as getMeasurementPropertiesPanoramic,be as getModeCorrectedPoint,Se as getModeCorrectedPoints,Le as getPixelLocationFromSphereVertices,Pe as getRootOfSumOfSquaredErrors,Ee as getUnitRateFromSpatialReference,Oe as heightMeasurement2D,We as heightMeasurementPanoramic,Ie as imageToImageTransform,qe as imageToImageTransformPanoramic,Ge as pixelAreaMeasurement2D,Ae as pixelAreaMeasurementPanoramic,De as pixelDistanceMeasurement2D,Ue as pixelDistanceMeasurementPanoramic,ke as solveSkewLinesIntersection};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import t from"../../../geometry/Polygon.js";import{execute as o}from"../../../geometry/operators/affineTransformOperator.js";import{e}from"../../../chunks/intersectionOperator.js";import{g as r}from"../../../chunks/proximityOperator.js";import n from"../../../geometry/operators/support/Transformation.js";function i(o){const{viewpoint:n,containerWidth:i,containerHeight:s,rotation:a,constraints:c,imageExtent:f,viewportExtent:p}=o,{targetGeometry:x,scale:y}=n;if("point"!==x?.type)return;const g=f.center,{extent:u}=m(t.fromExtent(f),a,g.x,g.y),{width:h,height:l}=u,E=c.scaleToZoom(y);if(E<=0)return void(n.targetGeometry=g.clone());const j=1/2**E,d=i/s;let w=j*h,v=j*l;h/i>l/s?v=w/d:w=v*d;const G=u.clone();G.xmin+=w/2,G.xmax-=w/2,G.ymin+=v/2,G.ymax-=v/2;let O=e(t.fromExtent(u),t.fromExtent(G));O=O&&p.intersects(f)?e(m(O,a,g.x,g.y),t.fromExtent(f)):t.fromExtent(u),n.targetGeometry=r(O,x).coordinate}function m(t,e,r,i){const m=(new n).rotate(e,r,i);return o(t,m)}export{i as constrainViewpoint,m as rotate};
2
+ import t from"../../../geometry/Polygon.js";import{execute as o}from"../../../geometry/operators/affineTransformOperator.js";import{execute as e}from"../../../geometry/operators/intersectionOperator.js";import{getNearestCoordinate as r}from"../../../geometry/operators/proximityOperator.js";import n from"../../../geometry/operators/support/Transformation.js";function i(o){const{viewpoint:n,containerWidth:i,containerHeight:a,rotation:s,constraints:p,imageExtent:c,viewportExtent:f}=o,{targetGeometry:x,scale:y}=n;if("point"!==x?.type)return;const g=c.center,{extent:l}=m(t.fromExtent(c),s,g.x,g.y),{width:u,height:E}=l,h=p.scaleToZoom(y);if(h<=0)return void(n.targetGeometry=g.clone());const j=1/2**h,d=i/a;let w=j*u,v=j*E;u/i>E/a?v=w/d:w=v*d;const G=l.clone();G.xmin+=w/2,G.xmax-=w/2,G.ymin+=v/2,G.ymax-=v/2;let O=e(t.fromExtent(l),t.fromExtent(G));O=O&&f.intersects(c)?e(m(O,s,g.x,g.y),t.fromExtent(c)):t.fromExtent(l),n.targetGeometry=r(O,x).coordinate}function m(t,e,r,i){const m=(new n).rotate(e,r,i);return o(t,m)}export{i as constrainViewpoint,m as rotate};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{throwIfAborted as t}from"../../../core/promiseUtils.js";import{getMetersPerUnitForSR as a}from"../../../core/units.js";import n from"../../../geometry/Point.js";import r from"../../../geometry/Polygon.js";import i from"../../../geometry/SpatialReference.js";import{e}from"../../../chunks/intersectionOperator.js";import{computeFarplaneVertices as o,createRotationMatrixFromHPR as m}from"../../../layers/orientedImagery/transformations/utils.js";import{calculateUpdatedWmsf as h}from"../imageMeasurementUtils.js";const l=15,s=120,c=.9,M=1.1,x=1,f=179,u=3,y=2,g=1,p=150,d=16,w=32,I=8,b=.05,v=1,F=2,P=20,z=4096;function N(t,n){const{radiusOffset:r=0,minimumRadiusInMeters:i=0}=n;if(0===r)return;const e=a(t.spatialReference),o=e?r/e:r,{position:m}=t.vertexAttributes,h=Math.floor(m.length/3);let l=0,s=0,c=0;for(let a=0;a<h;a++)l+=m[3*a],s+=m[3*a+1],c+=m[3*a+2];l/=h,s/=h,c/=h;let M=0;for(let a=0;a<h;a++){const t=m[3*a]-l,n=m[3*a+1]-s,r=m[3*a+2]-c;M+=Math.sqrt(t*t+n*n+r*r)}M/=h;const x=e?i/e:i,f=Math.max(x,M+o),u=M>0?f/M:1;for(let a=0;a<h;a++){let t=m[3*a]-l,n=m[3*a+1]-s,r=m[3*a+2]-c;t*=u,n*=u,r*=u,m[3*a]=l+t,m[3*a+1]=s+n,m[3*a+2]=c+r}t.vertexAttributesChanged()}function R(t,a,n){const{columns:r,rows:i}=K(t,a,n),[e,o]=t,m=a?.xmin??0,h=a?.ymin??0,l=a?Math.max(1,a.xmax-a.xmin):e,s=a?Math.max(1,a.ymax-a.ymin):o,c=new Array;for(let M=0;M<=i;M+=1){const t=h+M/i*s;for(let a=0;a<=r;a+=1)c.push({x:m+a/r*l,y:t})}return c}function j(t,a,n,r){const{columns:i,rows:e}=K(a,n,r),o=i+1,m=new Float64Array(3*t.length),h=new Float32Array(2*t.length),l=new Array;t.forEach((t,a)=>{const n=3*a,r=2*a,l=a%o,s=Math.floor(a/o);m[n]=t.x,m[n+1]=t.y,m[n+2]=t.z??0,h[r]=l/i,h[r+1]=s/e});for(let s=0;s<e;s+=1)for(let t=0;t<i;t+=1){const a=s*o+t,n=a+1,r=a+o,i=r+1;l.push(a,n,i,a,i,r)}return{faces:l,position:m,uv:h}}function A(t,a,n,r=y){return{width:Math.ceil(t/r**n),height:Math.ceil(a/r**n)}}function S(t,a,n){const{width:r,height:i,storageInfo:e}=t.rasterInfo,{pyramidScalingFactor:o}=e,m=A(r,i,a,o??void 0);if(!n)return{offset:{x:0,y:0},size:m};const h=(o??y)**a,l={x:Math.max(0,Math.floor(n.xmin/h)),y:Math.max(0,Math.floor(n.ymin/h))},s=Math.min(m.width,Math.ceil(n.xmax/h)),c=Math.min(m.height,Math.ceil(n.ymax/h));return{offset:l,size:{width:Math.max(g,s-l.x),height:Math.max(g,c-l.y)}}}function L(t,a,n){const{maximumPyramidLevel:r,pyramidScalingFactor:i}=t.rasterInfo.storageInfo,e=i??y,o=Math.max(g,(n?.xmax??t.rasterInfo.width)-(n?.xmin??0)),m=Math.max(g,(n?.ymax??t.rasterInfo.height)-(n?.ymin??0)),h=Math.max(g,a.width),l=Math.max(g,a.height),s=Math.max(g,o/h,m/l),c=Math.ceil(Math.log(s)/Math.log(e));return Math.max(0,Math.min(r,Number.isFinite(c)?c:r))}function O(t,a,n){const{maximumPyramidLevel:r,pyramidScalingFactor:i}=t.rasterInfo.storageInfo,e=i??y,o=Math.max(g,(n?.xmax??t.rasterInfo.width)-(n?.xmin??0)),m=Math.max(g,(n?.ymax??t.rasterInfo.height)-(n?.ymin??0)),h=Math.max(g,a.width),l=Math.max(g,a.height);let s=r;for(let c=r;c>=0&&(s=c,!(0===c||o/e**c>h||m/e**c>l));c-=1);return s}function q(t,a,n=z){const{maximumPyramidLevel:r,pyramidScalingFactor:i}=t.rasterInfo.storageInfo,e=i??y;let o=Math.max(0,Math.min(r,a));for(;o<r;){const a=A(t.rasterInfo.width,t.rasterInfo.height,o,e);if(a.width<=n&&a.height<=n)break;o+=1}return o}function D(t){const{camera:a,width:n,height:r}=t;if(n<=0||r<=0)return{horizontal:a.fov,vertical:a.fov};const i=Math.sqrt(n*n+r*r);return{horizontal:2*Math.atan(Math.tan(a.fov*Math.PI/360)*n/i)*180/Math.PI,vertical:2*Math.atan(Math.tan(a.fov*Math.PI/360)*r/i)*180/Math.PI}}function W(t,a,n){if(null==t||null==a||!Number.isFinite(t)||!Number.isFinite(a))return{horizontal:t??null,vertical:a??null};const r=Math.sin(n*Math.PI/180),i=Math.cos(n*Math.PI/180),e=[[t,0],[t,a],[0,a]].map(([t,a])=>[i*t-r*a,r*t+i*a]),o=Math.min(0,...e.map(([t])=>t)),m=Math.max(0,...e.map(([t])=>t)),h=Math.min(0,...e.map(([,t])=>t)),l=Math.max(0,...e.map(([,t])=>t));return{horizontal:Math.min(Math.abs(m-o),p),vertical:Math.min(Math.abs(l-h),p)}}function k(t,a,n,r){const{width:i,height:e}=t,o=W(a,n,r),m=Math.sqrt(i*i+e*e);if(m<=0)return o.vertical??o.horizontal??null;if(i>=e){const t=o.vertical;return null==t||e<=0?null:2*Math.atan(Math.tan(t*Math.PI/360)*m/e)*180/Math.PI}const h=o.horizontal;return null==h||i<=0?null:2*Math.atan(Math.tan(h*Math.PI/360)*m/i)*180/Math.PI}function U(t,a,r=d,i=0){const e=t.camera.position,{horizontal:l,vertical:s}=D(t),c=e.spatialReference.isWebMercator?h(e.y):1,M=o({cameraLocation:e,farDistance:a,horizontalFieldOfView:l,rotationMatrix:m([t.camera.heading,t.camera.tilt,i]),scalingFactor:c,verticalFieldOfView:s}),x=[];for(let o=0;o<M.length;o+=1){const t=M[o],a=M[(o+1)%M.length];for(let i=0;i<r;i+=1){const o=i/r;x.push(new n({x:t[0]+(a[0]-t[0])*o,y:t[1]+(a[1]-t[1])*o,z:t[2]+(a[2]-t[2])*o,spatialReference:e.spatialReference}))}}return x}async function V(a,n,o,m,h){if("3d"!==n.type)return null;const{cameraRoll:l,farDistance:s}=a.attributes;if("number"!=typeof s||!Number.isFinite(s)||s<=0)return null;const c=U(n,s,w,l??0),M=await m(c,h);t(h);const x=M.filter(({x:t,y:a})=>Number.isFinite(t)&&Number.isFinite(a));if(x.length<4)return null;const[f,u]=o,y=new r({rings:[[[0,0],[f,0],[f,u],[0,u],[0,0]]],spatialReference:i.WebMercator}),g=new r({rings:[[...x.map(({x:t,y:a})=>[t,a]),[x[0].x,x[0].y]]],spatialReference:i.WebMercator}),p=e(g,y),d=p?p.rings.flatMap(t=>t.map(([t,a])=>({x:t,y:a}))):x;if(!d.length)return null;const I=d.map(({x:t})=>Math.max(0,Math.min(f,t))),b=d.map(({y:t})=>Math.max(0,Math.min(u,t)));return E({xmin:Math.floor(Math.max(0,Math.min(...I))),xmax:Math.ceil(Math.min(f,Math.max(...I))),ymin:Math.floor(Math.max(0,Math.min(...b))),ymax:Math.ceil(Math.min(u,Math.max(...b)))},f,u)}async function C(a,n,r,i,e){if("3d"!==n.type)return null;const{farDistance:o}=a.attributes;if("number"!=typeof o||!Number.isFinite(o)||o<=0)return null;const m=o,[h,l]=r,s=U(n,m),c=await i(s,e);t(e);const M=c.filter(({x:t,y:a})=>Number.isFinite(t)&&Number.isFinite(a));if(M.length<4)return null;const x=B(M,l);if(!x)return null;const f=H(M.map(({x:t})=>G(t,h)),h),u=h-f.gap;return u<=0?null:u>=h-v?[{xmin:0,xmax:h,ymin:x.ymin,ymax:x.ymax}]:J(f,h,x)}function E(t,a,n){const r=Math.max(g,t.xmax-t.xmin),i=Math.max(g,t.ymax-t.ymin),e=Math.max(I,Math.round(r*b)),o=Math.max(I,Math.round(i*b)),m=Math.floor(Math.max(0,t.xmin-e)),h=Math.ceil(Math.min(a,t.xmax+e)),l=Math.floor(Math.max(0,t.ymin-o)),s=Math.ceil(Math.min(n,t.ymax+o));return h>m&&s>l?{xmin:m,xmax:h,ymin:l,ymax:s}:null}function B(t,a){const n=t.map(({y:t})=>Math.max(0,Math.min(a,t))),r=Math.floor(Math.max(0,Math.min(...n))),i=Math.ceil(Math.min(a,Math.max(...n)));return i>r?{ymin:r,ymax:i}:null}function G(t,a){return(t%a+a)%a}function H(t,a){const n=t.slice().sort((t,a)=>t-a);let r=-1,i=0,e=0;for(let o=0;o<n.length;o+=1){const t=n[o],m=o===n.length-1?n[0]+a:n[o+1],h=m-t;h>r&&(r=h,i=t,e=m)}return{gap:r,start:i,end:e}}function J(t,a,n){const r=G(t.end,a),i=G(t.start,a);return r<=i?[{xmin:Math.floor(r),xmax:Math.ceil(i),...n}]:[{xmin:0,xmax:Math.ceil(i),...n},{xmin:Math.floor(r),xmax:a,...n}].filter(({xmin:t,xmax:a})=>a>t)}function K(t,a,n=P){const[r,i]=t,e=a?Math.max(g,a.xmax-a.xmin):r,o=a?Math.max(g,a.ymax-a.ymin):i;if(e<=0||o<=0)return{columns:F,rows:F};const m=e/o;return m>=1?{columns:n,rows:Math.max(F,Math.round(n/m))}:{columns:Math.max(F,Math.round(n*m)),rows:n}}export{N as applySphereMeshOffsetInMeters,q as clampRasterLevelForTextureSize,V as computeDefaultAreaOfInterest,C as computePanoramicAreasOfInterest,U as createFarplaneSamplePoints,j as createSuperimposeGridVertexAttributes,R as createSuperimposeSamplePixels,O as getBaseRasterLevel,k as getDefaultSuperimposeFov,W as getEffectiveImageFieldOfView,S as getRasterFetchParameters,A as getRasterLevelSize,D as getViewCameraFieldOfView,L as getViewDependentRasterLevel,u as panoramicSuperimposeKeyboardAngleStep,s as panoramicSuperimposeMaxFov,f as panoramicSuperimposeMaxTilt,l as panoramicSuperimposeMinFov,x as panoramicSuperimposeMinTilt,c as panoramicSuperimposeZoomInFactor,M as panoramicSuperimposeZoomOutFactor};
2
+ import{throwIfAborted as t}from"../../../core/promiseUtils.js";import{getMetersPerUnitForSR as a}from"../../../core/units.js";import n from"../../../geometry/Point.js";import r from"../../../geometry/Polygon.js";import i from"../../../geometry/SpatialReference.js";import{execute as e}from"../../../geometry/operators/intersectionOperator.js";import{computeFarplaneVertices as o,createRotationMatrixFromHPR as m}from"../../../layers/orientedImagery/transformations/utils.js";import{calculateUpdatedWmsf as h}from"../imageMeasurementUtils.js";const l=15,s=120,c=.9,M=1.1,x=1,f=179,u=3,y=2,g=1,p=150,d=16,w=32,I=8,b=.05,v=1,F=2,P=20,z=4096;function N(t,n){const{radiusOffset:r=0,minimumRadiusInMeters:i=0}=n;if(0===r)return;const e=a(t.spatialReference),o=e?r/e:r,{position:m}=t.vertexAttributes,h=Math.floor(m.length/3);let l=0,s=0,c=0;for(let a=0;a<h;a++)l+=m[3*a],s+=m[3*a+1],c+=m[3*a+2];l/=h,s/=h,c/=h;let M=0;for(let a=0;a<h;a++){const t=m[3*a]-l,n=m[3*a+1]-s,r=m[3*a+2]-c;M+=Math.sqrt(t*t+n*n+r*r)}M/=h;const x=e?i/e:i,f=Math.max(x,M+o),u=M>0?f/M:1;for(let a=0;a<h;a++){let t=m[3*a]-l,n=m[3*a+1]-s,r=m[3*a+2]-c;t*=u,n*=u,r*=u,m[3*a]=l+t,m[3*a+1]=s+n,m[3*a+2]=c+r}t.vertexAttributesChanged()}function R(t,a,n){const{columns:r,rows:i}=K(t,a,n),[e,o]=t,m=a?.xmin??0,h=a?.ymin??0,l=a?Math.max(1,a.xmax-a.xmin):e,s=a?Math.max(1,a.ymax-a.ymin):o,c=new Array;for(let M=0;M<=i;M+=1){const t=h+M/i*s;for(let a=0;a<=r;a+=1)c.push({x:m+a/r*l,y:t})}return c}function j(t,a,n,r){const{columns:i,rows:e}=K(a,n,r),o=i+1,m=new Float64Array(3*t.length),h=new Float32Array(2*t.length),l=new Array;t.forEach((t,a)=>{const n=3*a,r=2*a,l=a%o,s=Math.floor(a/o);m[n]=t.x,m[n+1]=t.y,m[n+2]=t.z??0,h[r]=l/i,h[r+1]=s/e});for(let s=0;s<e;s+=1)for(let t=0;t<i;t+=1){const a=s*o+t,n=a+1,r=a+o,i=r+1;l.push(a,n,i,a,i,r)}return{faces:l,position:m,uv:h}}function A(t,a,n,r=y){return{width:Math.ceil(t/r**n),height:Math.ceil(a/r**n)}}function S(t,a,n){const{width:r,height:i,storageInfo:e}=t.rasterInfo,{pyramidScalingFactor:o}=e,m=A(r,i,a,o??void 0);if(!n)return{offset:{x:0,y:0},size:m};const h=(o??y)**a,l={x:Math.max(0,Math.floor(n.xmin/h)),y:Math.max(0,Math.floor(n.ymin/h))},s=Math.min(m.width,Math.ceil(n.xmax/h)),c=Math.min(m.height,Math.ceil(n.ymax/h));return{offset:l,size:{width:Math.max(g,s-l.x),height:Math.max(g,c-l.y)}}}function L(t,a,n){const{maximumPyramidLevel:r,pyramidScalingFactor:i}=t.rasterInfo.storageInfo,e=i??y,o=Math.max(g,(n?.xmax??t.rasterInfo.width)-(n?.xmin??0)),m=Math.max(g,(n?.ymax??t.rasterInfo.height)-(n?.ymin??0)),h=Math.max(g,a.width),l=Math.max(g,a.height),s=Math.max(g,o/h,m/l),c=Math.ceil(Math.log(s)/Math.log(e));return Math.max(0,Math.min(r,Number.isFinite(c)?c:r))}function O(t,a,n){const{maximumPyramidLevel:r,pyramidScalingFactor:i}=t.rasterInfo.storageInfo,e=i??y,o=Math.max(g,(n?.xmax??t.rasterInfo.width)-(n?.xmin??0)),m=Math.max(g,(n?.ymax??t.rasterInfo.height)-(n?.ymin??0)),h=Math.max(g,a.width),l=Math.max(g,a.height);let s=r;for(let c=r;c>=0&&(s=c,!(0===c||o/e**c>h||m/e**c>l));c-=1);return s}function q(t,a,n=z){const{maximumPyramidLevel:r,pyramidScalingFactor:i}=t.rasterInfo.storageInfo,e=i??y;let o=Math.max(0,Math.min(r,a));for(;o<r;){const a=A(t.rasterInfo.width,t.rasterInfo.height,o,e);if(a.width<=n&&a.height<=n)break;o+=1}return o}function D(t){const{camera:a,width:n,height:r}=t;if(n<=0||r<=0)return{horizontal:a.fov,vertical:a.fov};const i=Math.sqrt(n*n+r*r);return{horizontal:2*Math.atan(Math.tan(a.fov*Math.PI/360)*n/i)*180/Math.PI,vertical:2*Math.atan(Math.tan(a.fov*Math.PI/360)*r/i)*180/Math.PI}}function W(t,a,n){if(null==t||null==a||!Number.isFinite(t)||!Number.isFinite(a))return{horizontal:t??null,vertical:a??null};const r=Math.sin(n*Math.PI/180),i=Math.cos(n*Math.PI/180),e=[[t,0],[t,a],[0,a]].map(([t,a])=>[i*t-r*a,r*t+i*a]),o=Math.min(0,...e.map(([t])=>t)),m=Math.max(0,...e.map(([t])=>t)),h=Math.min(0,...e.map(([,t])=>t)),l=Math.max(0,...e.map(([,t])=>t));return{horizontal:Math.min(Math.abs(m-o),p),vertical:Math.min(Math.abs(l-h),p)}}function U(t,a,n,r){const{width:i,height:e}=t,o=W(a,n,r),m=Math.sqrt(i*i+e*e);if(m<=0)return o.vertical??o.horizontal??null;if(i>=e){const t=o.vertical;return null==t||e<=0?null:2*Math.atan(Math.tan(t*Math.PI/360)*m/e)*180/Math.PI}const h=o.horizontal;return null==h||i<=0?null:2*Math.atan(Math.tan(h*Math.PI/360)*m/i)*180/Math.PI}function V(t,a,r=d,i=0){const e=t.camera.position,{horizontal:l,vertical:s}=D(t),c=e.spatialReference.isWebMercator?h(e.y):1,M=o({cameraLocation:e,farDistance:a,horizontalFieldOfView:l,rotationMatrix:m([t.camera.heading,t.camera.tilt,i]),scalingFactor:c,verticalFieldOfView:s}),x=[];for(let o=0;o<M.length;o+=1){const t=M[o],a=M[(o+1)%M.length];for(let i=0;i<r;i+=1){const o=i/r;x.push(new n({x:t[0]+(a[0]-t[0])*o,y:t[1]+(a[1]-t[1])*o,z:t[2]+(a[2]-t[2])*o,spatialReference:e.spatialReference}))}}return x}async function k(a,n,o,m,h){if("3d"!==n.type)return null;const{cameraRoll:l,farDistance:s}=a.attributes;if("number"!=typeof s||!Number.isFinite(s)||s<=0)return null;const c=V(n,s,w,l??0),M=await m(c,h);t(h);const x=M.filter(({x:t,y:a})=>Number.isFinite(t)&&Number.isFinite(a));if(x.length<4)return null;const[f,u]=o,y=new r({rings:[[[0,0],[f,0],[f,u],[0,u],[0,0]]],spatialReference:i.WebMercator}),g=new r({rings:[[...x.map(({x:t,y:a})=>[t,a]),[x[0].x,x[0].y]]],spatialReference:i.WebMercator}),p=e(g,y),d=p?p.rings.flatMap(t=>t.map(([t,a])=>({x:t,y:a}))):x;if(!d.length)return null;const I=d.map(({x:t})=>Math.max(0,Math.min(f,t))),b=d.map(({y:t})=>Math.max(0,Math.min(u,t)));return E({xmin:Math.floor(Math.max(0,Math.min(...I))),xmax:Math.ceil(Math.min(f,Math.max(...I))),ymin:Math.floor(Math.max(0,Math.min(...b))),ymax:Math.ceil(Math.min(u,Math.max(...b)))},f,u)}async function C(a,n,r,i,e){if("3d"!==n.type)return null;const{farDistance:o}=a.attributes;if("number"!=typeof o||!Number.isFinite(o)||o<=0)return null;const m=o,[h,l]=r,s=V(n,m),c=await i(s,e);t(e);const M=c.filter(({x:t,y:a})=>Number.isFinite(t)&&Number.isFinite(a));if(M.length<4)return null;const x=B(M,l);if(!x)return null;const f=H(M.map(({x:t})=>G(t,h)),h),u=h-f.gap;return u<=0?null:u>=h-v?[{xmin:0,xmax:h,ymin:x.ymin,ymax:x.ymax}]:J(f,h,x)}function E(t,a,n){const r=Math.max(g,t.xmax-t.xmin),i=Math.max(g,t.ymax-t.ymin),e=Math.max(I,Math.round(r*b)),o=Math.max(I,Math.round(i*b)),m=Math.floor(Math.max(0,t.xmin-e)),h=Math.ceil(Math.min(a,t.xmax+e)),l=Math.floor(Math.max(0,t.ymin-o)),s=Math.ceil(Math.min(n,t.ymax+o));return h>m&&s>l?{xmin:m,xmax:h,ymin:l,ymax:s}:null}function B(t,a){const n=t.map(({y:t})=>Math.max(0,Math.min(a,t))),r=Math.floor(Math.max(0,Math.min(...n))),i=Math.ceil(Math.min(a,Math.max(...n)));return i>r?{ymin:r,ymax:i}:null}function G(t,a){return(t%a+a)%a}function H(t,a){const n=t.slice().sort((t,a)=>t-a);let r=-1,i=0,e=0;for(let o=0;o<n.length;o+=1){const t=n[o],m=o===n.length-1?n[0]+a:n[o+1],h=m-t;h>r&&(r=h,i=t,e=m)}return{gap:r,start:i,end:e}}function J(t,a,n){const r=G(t.end,a),i=G(t.start,a);return r<=i?[{xmin:Math.floor(r),xmax:Math.ceil(i),...n}]:[{xmin:0,xmax:Math.ceil(i),...n},{xmin:Math.floor(r),xmax:a,...n}].filter(({xmin:t,xmax:a})=>a>t)}function K(t,a,n=P){const[r,i]=t,e=a?Math.max(g,a.xmax-a.xmin):r,o=a?Math.max(g,a.ymax-a.ymin):i;if(e<=0||o<=0)return{columns:F,rows:F};const m=e/o;return m>=1?{columns:n,rows:Math.max(F,Math.round(n/m))}:{columns:Math.max(F,Math.round(n*m)),rows:n}}export{N as applySphereMeshOffsetInMeters,q as clampRasterLevelForTextureSize,k as computeDefaultAreaOfInterest,C as computePanoramicAreasOfInterest,V as createFarplaneSamplePoints,j as createSuperimposeGridVertexAttributes,R as createSuperimposeSamplePixels,O as getBaseRasterLevel,U as getDefaultSuperimposeFov,W as getEffectiveImageFieldOfView,S as getRasterFetchParameters,A as getRasterLevelSize,D as getViewCameraFieldOfView,L as getViewDependentRasterLevel,u as panoramicSuperimposeKeyboardAngleStep,s as panoramicSuperimposeMaxFov,f as panoramicSuperimposeMaxTilt,l as panoramicSuperimposeMinFov,x as panoramicSuperimposeMinTilt,c as panoramicSuperimposeZoomInFactor,M as panoramicSuperimposeZoomOutFactor};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{clamp as e}from"../../core/mathUtils.js";import t from"../../geometry/Extent.js";import n from"../../geometry/Multipoint.js";import r from"../../geometry/Point.js";import o from"../../geometry/Polygon.js";import a from"../../geometry/Polyline.js";import{projectAsync as s}from"../../geometry/projectionUtils.js";import{e as i}from"../../chunks/intersectionOperator.js";import{videoSpatialReference as m,sampleExtent as c}from"./constants.js";const p=1920,x=1080;function y(e){if(!e)throw new Error("Missing View");return[e.on("drag",e=>e.stopPropagation()),e.on("key-down",e=>{e.key.startsWith("Arrow")&&e.stopPropagation()})]}const l=(e,t)=>{const n=(e-c.xmin)/(c.xmax-c.xmin),r=(c.ymax-t)/(c.ymax-c.ymin);return{x:n*p,y:r*x}},u=t=>({x:e((t.x+.5)*p,0,p),y:e((.5-t.y)*x,0,x)}),f=e=>d(u(e));function g(e){switch(e.type){case"point":return f(e);case"polyline":return new a({paths:e.paths.map(e=>e.map(([e,t])=>{const n=f({x:e,y:t});return[n.x,n.y]})),spatialReference:m});case"polygon":return new o({rings:e.rings.map(e=>e.map(([e,t])=>{const n=f({x:e,y:t});return[n.x,n.y]})),spatialReference:m});case"multipoint":return new n({points:e.points.map(([e,t])=>{const n=f({x:e,y:t});return[n.x,n.y]}),spatialReference:m});case"extent":{const t=g(o.fromExtent(e));return t?.extent??null}default:return null}}const w=n=>{const r=o.fromExtent(new t(c)),a=i(r,n);return a?a.rings[0].map(([t,n])=>{const{x:r,y:o}=l(t,n);return{x:e(r,0,p),y:e(o,0,x)}}):[]},R=e=>{const n=e.width/2,r=e.height/2,o=c.xmin+n,a=c.xmax-n,s=c.ymin+r,i=c.ymax-r;return o<a&&s<i?new t({xmin:o,ymin:s,xmax:a,ymax:i,spatialReference:c.spatialReference}):null},h=e=>e.x>=0&&e.x<=p&&e.y>=0&&e.y<=x;async function j(e,t,n){switch(t?.type){case"polygon":{const r=e.spatialReference.equals(t.spatialReference)?e:await s(e,t.spatialReference,n);return t.contains(r)}case"mesh":{const r=e.spatialReference.equals(t.spatialReference)?e:await s(e,t.spatialReference,n);return t.extent.contains(r)}default:return!1}}const d=t=>{const n=e(t.x,0,p),o=e(t.y,0,x);return new r({x:c.xmin+n/p*(c.xmax-c.xmin),y:c.ymax-o/x*(c.ymax-c.ymin),spatialReference:c.spatialReference})};export{y as disableVideoZoomAndPan,l as geoToPixel,R as getUpdatedConstraints,w as getUpdatedExtentPoints,g as imageGeometryToVideoMapGeometry,f as imageMapPointToVideoMapPoint,j as isSelectedPointWithinVideoFootprint,h as isVideoPixelWithinFrame,d as pixelToVideoMapPoint,x as videoHeight,p as videoWidth};
2
+ import{clamp as e}from"../../core/mathUtils.js";import t from"../../geometry/Extent.js";import n from"../../geometry/Multipoint.js";import r from"../../geometry/Point.js";import o from"../../geometry/Polygon.js";import a from"../../geometry/Polyline.js";import{projectAsync as s}from"../../geometry/projectionUtils.js";import{execute as i}from"../../geometry/operators/intersectionOperator.js";import{videoSpatialReference as m,sampleExtent as p}from"./constants.js";const c=1920,x=1080;function y(e){if(!e)throw new Error("Missing View");return[e.on("drag",e=>e.stopPropagation()),e.on("key-down",e=>{e.key.startsWith("Arrow")&&e.stopPropagation()})]}const l=(e,t)=>{const n=(e-p.xmin)/(p.xmax-p.xmin),r=(p.ymax-t)/(p.ymax-p.ymin);return{x:n*c,y:r*x}},f=t=>({x:e((t.x+.5)*c,0,c),y:e((.5-t.y)*x,0,x)}),u=e=>d(f(e));function g(e){switch(e.type){case"point":return u(e);case"polyline":return new a({paths:e.paths.map(e=>e.map(([e,t])=>{const n=u({x:e,y:t});return[n.x,n.y]})),spatialReference:m});case"polygon":return new o({rings:e.rings.map(e=>e.map(([e,t])=>{const n=u({x:e,y:t});return[n.x,n.y]})),spatialReference:m});case"multipoint":return new n({points:e.points.map(([e,t])=>{const n=u({x:e,y:t});return[n.x,n.y]}),spatialReference:m});case"extent":{const t=g(o.fromExtent(e));return t?.extent??null}default:return null}}const w=n=>{const r=o.fromExtent(new t(p)),a=i(r,n);return a?a.rings[0].map(([t,n])=>{const{x:r,y:o}=l(t,n);return{x:e(r,0,c),y:e(o,0,x)}}):[]},R=e=>{const n=e.width/2,r=e.height/2,o=p.xmin+n,a=p.xmax-n,s=p.ymin+r,i=p.ymax-r;return o<a&&s<i?new t({xmin:o,ymin:s,xmax:a,ymax:i,spatialReference:p.spatialReference}):null},h=e=>e.x>=0&&e.x<=c&&e.y>=0&&e.y<=x;async function j(e,t,n){switch(t?.type){case"polygon":{const r=e.spatialReference.equals(t.spatialReference)?e:await s(e,t.spatialReference,n);return t.contains(r)}case"mesh":{const r=e.spatialReference.equals(t.spatialReference)?e:await s(e,t.spatialReference,n);return t.extent.contains(r)}default:return!1}}const d=t=>{const n=e(t.x,0,c),o=e(t.y,0,x);return new r({x:p.xmin+n/c*(p.xmax-p.xmin),y:p.ymax-o/x*(p.ymax-p.ymin),spatialReference:p.spatialReference})};export{y as disableVideoZoomAndPan,l as geoToPixel,R as getUpdatedConstraints,w as getUpdatedExtentPoints,g as imageGeometryToVideoMapGeometry,u as imageMapPointToVideoMapPoint,j as isSelectedPointWithinVideoFootprint,h as isVideoPixelWithinFrame,d as pixelToVideoMapPoint,x as videoHeight,c as videoWidth};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import e from"../../../geometry/Polyline.js";import{load as r,project as t}from"../../../geometry/projectionUtils.js";import o from"../../../geometry/SpatialReference.js";import{e as n}from"../../../chunks/areaOperator.js";import{a as s}from"../../../chunks/bufferOperator.js";import{a}from"../../../chunks/convexHullOperator.js";import{e as i}from"../../../chunks/cutOperator.js";import{importLazily as p}from"../../../geometry/operators/importUtils.js";import{e as c}from"../../../chunks/lengthOperator.js";import{fromJSON as l}from"../../../geometry/support/jsonUtils.js";function m(e){return"polygon"===e?.type||"polyline"===e?.type}function u(e){return Array.isArray(e)?e.map(e=>l(e)):[l(e)]}const f=p(()=>import("../../../geometry/operators/geodesicBufferOperator.js")),y=p(()=>import("../../../geometry/operators/geodeticAreaOperator.js"));class g{async loadBuffer(){await f.getImportPromise()}async loadArea(){await y.getImportPromise()}async loadProjector(){await r()}async createBuffer(e,r,t,o){const n=u(e);if(0===n.length)return;const{spatialReference:a}=n[0];if(!(a.isWGS84||a.isWebMercator)){const a=s(n,r,{unit:t,union:o});return Array.isArray(e)?a:a[0]}const i=(await f.getImportPromise()).executeMany(n,r,{unit:t,union:o});return Array.isArray(e)?i:i[0]}createConvexHull(e){const r=u(e),t=a(r,{merge:!0}).filter(m);if(0!==t.length)return Array.isArray(e)?t:t[0]}async calculateArea(e,r){const{wkid:t}=e.spatialReference,s=new o({wkid:t});if(!(s.isWGS84||s.isWebMercator))return parseFloat(n(l(e),{unit:r}).toFixed(2));const a=await y.getImportPromise();return parseFloat(a.execute(l(e),{unit:r}).toFixed(2))}mergeAggregatedToGeometries(e){const r=[],{line:t,multipoint:o,polygon:n}=e;return t&&r.push(t),o&&r.push(o),n&&r.push(n),r}getPercentageAlong(e,r,o){const n=this._createPolyline(e.paths,o.wkid);if("point"===r.type){const e=r.x-.5,s=r.x+.5,a=[[[e,r.y-.5],[s,r.y+.5]]],p=this._createPolyline(a,r.spatialReference.wkid),l=t(p,o);if(!l)return[-1];const m=i(n,l);if(m.length>0){const e=c(n,h);let r;r=m[0].paths[0][0][0]===n.paths[0][0][0]?c(m[0],h):m.length>1?c(m[1],h):0;return[r/e]}}else{const e=t(r,o),s=i(n,e);if(s.length>0){const e=c(n,h);return[c(s[0],h)/e]}}return[-1]}async projectGeometry(e,o){return await r(),t(e,o,{zConversionDisabled:!0})}_createPolyline(r,t){return new e({hasZ:!1,hasM:!0,paths:r,spatialReference:new o({wkid:t})})}}const h={unit:"feet"};export{g as GeometryHandler};
2
+ import e from"../../../geometry/Polyline.js";import{load as r,project as t}from"../../../geometry/projectionUtils.js";import o from"../../../geometry/SpatialReference.js";import{execute as a}from"../../../geometry/operators/areaOperator.js";import{executeMany as s}from"../../../geometry/operators/bufferOperator.js";import{executeMany as n}from"../../../geometry/operators/convexHullOperator.js";import{execute as i}from"../../../geometry/operators/cutOperator.js";import{importLazily as p}from"../../../geometry/operators/importUtils.js";import{execute as c}from"../../../geometry/operators/lengthOperator.js";import{fromJSON as m}from"../../../geometry/support/jsonUtils.js";function l(e){return"polygon"===e?.type||"polyline"===e?.type}function u(e){return Array.isArray(e)?e.map(e=>m(e)):[m(e)]}const y=p(()=>import("../../../geometry/operators/geodesicBufferOperator.js")),f=p(()=>import("../../../geometry/operators/geodeticAreaOperator.js"));class g{async loadBuffer(){await y.getImportPromise()}async loadArea(){await f.getImportPromise()}async loadProjector(){await r()}async createBuffer(e,r,t,o){const a=u(e);if(0===a.length)return;const{spatialReference:n}=a[0];if(!(n.isWGS84||n.isWebMercator)){const n=s(a,r,{unit:t,union:o});return Array.isArray(e)?n:n[0]}const i=(await y.getImportPromise()).executeMany(a,r,{unit:t,union:o});return Array.isArray(e)?i:i[0]}createConvexHull(e){const r=u(e),t=n(r,{merge:!0}).filter(l);if(0!==t.length)return Array.isArray(e)?t:t[0]}async calculateArea(e,r){const{wkid:t}=e.spatialReference,s=new o({wkid:t});if(!(s.isWGS84||s.isWebMercator))return parseFloat(a(m(e),{unit:r}).toFixed(2));const n=await f.getImportPromise();return parseFloat(n.execute(m(e),{unit:r}).toFixed(2))}mergeAggregatedToGeometries(e){const r=[],{line:t,multipoint:o,polygon:a}=e;return t&&r.push(t),o&&r.push(o),a&&r.push(a),r}getPercentageAlong(e,r,o){const a=this._createPolyline(e.paths,o.wkid);if("point"===r.type){const e=r.x-.5,s=r.x+.5,n=[[[e,r.y-.5],[s,r.y+.5]]],p=this._createPolyline(n,r.spatialReference.wkid),m=t(p,o);if(!m)return[-1];const l=i(a,m);if(l.length>0){const e=c(a,h);let r;r=l[0].paths[0][0][0]===a.paths[0][0][0]?c(l[0],h):l.length>1?c(l[1],h):0;return[r/e]}}else{const e=t(r,o),s=i(a,e);if(s.length>0){const e=c(a,h);return[c(s[0],h)/e]}}return[-1]}async projectGeometry(e,o){return await r(),t(e,o,{zConversionDisabled:!0})}_createPolyline(r,t){return new e({hasZ:!1,hasM:!0,paths:r,spatialReference:new o({wkid:t})})}}const h={unit:"feet"};export{g as GeometryHandler};
@@ -0,0 +1,58 @@
1
+ import type FeatureItem from "./FeatureItem.js";
2
+ import type GroupLayerItem from "./GroupLayerItem.js";
3
+ import type LayerItem from "./LayerItem.js";
4
+ import type { ListItem, ParentItem } from "./types.js";
5
+
6
+ /**
7
+ * Utility function to recursively extract all FeatureItem objects from a nested structure of ParentItem objects.
8
+ *
9
+ * @param items - An array of ParentItem objects, which can be either LayerItem or GroupLayerItem instances.
10
+ * @returns A flat array of FeatureItem objects extracted from the provided ParentItem objects.
11
+ * @internal
12
+ */
13
+ export function getNestedFeatureItems(items: ParentItem[]): FeatureItem[];
14
+
15
+ /**
16
+ * Utility function to recursively extract all LayerItem objects from a nested structure of ParentItem objects.
17
+ *
18
+ * @param items - An array of ParentItem objects, which can be either LayerItem or GroupLayerItem instances.
19
+ * @returns An array of LayerItem objects extracted from the provided ParentItem objects.
20
+ * @internal
21
+ */
22
+ export function getNestedLayerItems(items: ParentItem[]): LayerItem[];
23
+
24
+ /**
25
+ * Utility function to compute the effective count of all provided list items, including nested items.
26
+ *
27
+ * @param items - An array of ListItem objects, which can be either FeatureItem, LayerItem, or GroupLayerItem instances.
28
+ * @returns A number representing the combined total of all provided list items.
29
+ * @internal
30
+ */
31
+ export function computeEffectiveCount(items: ListItem[]): number;
32
+
33
+ /**
34
+ * Utility function to determine if a given item is a GroupLayerItem.
35
+ *
36
+ * @param item - Item to check if it is a GroupLayerItem.
37
+ * @returns True if the item is a GroupLayerItem, false otherwise.
38
+ * @internal
39
+ */
40
+ export function isGroupLayerItem(item: unknown): item is GroupLayerItem;
41
+
42
+ /**
43
+ * Utility function to determine if a given item is a LayerItem.
44
+ *
45
+ * @param item - Item to check if it is a LayerItem.
46
+ * @returns True if the item is a LayerItem, false otherwise.
47
+ * @internal
48
+ */
49
+ export function isLayerItem(item: unknown): item is LayerItem;
50
+
51
+ /**
52
+ * Utility function to determine if a given item is a FeatureItem.
53
+ *
54
+ * @param item - Item to check if it is a FeatureItem.
55
+ * @returns True if the item is a FeatureItem, false otherwise.
56
+ * @internal
57
+ */
58
+ export function isFeatureItem(item: unknown): item is FeatureItem;
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{__decorate as e}from"tslib";import{deprecatedProperty as t}from"../../../core/deprecate.js";import{EventedAccessor as o}from"../../../core/Evented.js";import{handlesGroup as i}from"../../../core/handleUtils.js";import s from"../../../core/Logger.js";import{removeMaybe as r}from"../../../core/maybe.js";import{watch as n}from"../../../core/reactiveUtils.js";import{property as a,subclass as l}from"../../../core/accessorSupport/decorators.js";import{isKnowledgeGraphLayer as c,isLinkChartLayer as p}from"../../../layers/support/layerUtils.js";import{findLayerView as u}from"../../../views/draw/support/layerUtils.js";import h from"../../../views/selection/SelectionOperation.js";import{isSelectableLayerView2D as d}from"../../../views/support/layerViewUtils.js";import{isSelectableLayerView as v}from"../../../views/support/selectionUtils.js";let f=class extends o{constructor(e){super(e),this._operationHandlesGroup=null,this.activeOperation=null,this.continuousSelectionEnabled=!1,this.defaultLassoToolOptions={createTool:"polygon",mode:"hybrid",toolName:"lasso"},this.defaultOperationType="add",this.defaultPointToolOptions={createTool:"point",toolName:"point"},this.defaultRectangleToolOptions={createTool:"rectangle",toolName:"rectangle"},this.layerViewPreferenceEnabled=!0,this.persistSelection=!0,this.selectionManager=null,this.returnFeatureTitleFields=!1,this.returnGeometry=!0,this.selectOnComplete=!0,this.sources=null,this.toolConfigs=[]}initialize(){this.addHandles([n(()=>this.effectiveSources,e=>{this.activeOperation&&(this.activeOperation.sources=e)}),n(()=>this.defaultOperationType,e=>{this.activeOperation&&(this.activeOperation.type=e)})])}destroy(){this.activeOperation?.cancel(),this.activeOperation?.destroy(),this._operationHandlesGroup=r(this._operationHandlesGroup)}get effectiveSelectionManager(){return this.selectionManager??this.view?.selectionManager}get effectiveSources(){const{layerViewPreferenceEnabled:e,sources:t,view:o}=this,i=t??this.effectiveSelectionManager?.sources;if(!i?.length)return[];const s=[],r="3d"===o?.type?v:d;return i.forEach(t=>{if(r(t))s.push(t);else if(c(t)||p(t)){(t.layers||[]).forEach(t=>{const i=o?u(o,t):void 0,n=e&&r(i)?i:t;s.push(n)})}else if(e){const e=o?u(o,t):void 0,i=r(e)?e:t;s.push(i)}else s.push(t)}),s}get layers(){return t(s.getLogger(this),"layers",{replacement:"Use SelectionToolbar.sources instead."}),this.sources}set layers(e){t(s.getLogger(this),"layers",{replacement:"Use SelectionToolbar.sources instead."}),this.sources=e}get state(){return this.activeOperation?"active":this.view?.ready&&this.effectiveSources.length?"ready":"disabled"}activate(e){const{state:t}=this,o=e?.view||this.view,r=e?.sources||this.effectiveSources;if("disabled"===t||!o)return void s.getLogger(this).warn("Unable to start selection operation.");"active"===t&&this.cancel();const n=new CustomEvent("before-activate",{cancelable:!0,detail:{toolName:e?.toolName??null}});if(this.emit("before-activate",n),n.defaultPrevented)return;const a={type:this.defaultOperationType,persistSelection:this.persistSelection,returnFeatureTitleFields:this.returnFeatureTitleFields,returnGeometry:this.returnGeometry,selectOnComplete:this.selectOnComplete,selectionManager:this.effectiveSelectionManager,...e,sources:r,view:o},l=new h({...a});return this._operationHandlesGroup=i([l.on("selection-change",e=>this.emit("selection-change",e)),l.once("complete",e=>this._onOperationComplete(e,a))]),this._set("activeOperation",l),l}activateTool(e){this.cancel();const t=this._getToolOptions(e);if(t)return this.activate(t);s.getLogger(this).warn("Unable to activate tool: unable to determine options.")}cancel(){this.activeOperation?.cancel(),this._set("activeOperation",null)}toggleTool(e){const{activeOperation:t}=this;if(t){const o=t.toolName;if(this.cancel(),o===e)return}return this.activateTool(e)}_onOperationComplete(e,t){const o=this.activeOperation?.type??e.operationType;this._operationHandlesGroup=r(this._operationHandlesGroup),this.activeOperation?.destroy(),this._set("activeOperation",null),this.emit("complete",e),this.continuousSelectionEnabled&&!e.aborted&&this.activate({...t,type:o})}_getToolOptions(e){const t=this.toolConfigs.find(t=>t.toolName===e);return t||("lasso"===e?this.defaultLassoToolOptions:"point"===e?this.defaultPointToolOptions:"rectangle"===e?this.defaultRectangleToolOptions:void 0)}};e([a({readOnly:!0})],f.prototype,"activeOperation",void 0),e([a()],f.prototype,"continuousSelectionEnabled",void 0),e([a()],f.prototype,"defaultLassoToolOptions",void 0),e([a()],f.prototype,"defaultOperationType",void 0),e([a()],f.prototype,"defaultPointToolOptions",void 0),e([a()],f.prototype,"defaultRectangleToolOptions",void 0),e([a()],f.prototype,"effectiveSelectionManager",null),e([a()],f.prototype,"effectiveSources",null),e([a()],f.prototype,"layers",null),e([a()],f.prototype,"layerViewPreferenceEnabled",void 0),e([a()],f.prototype,"persistSelection",void 0),e([a()],f.prototype,"selectionManager",void 0),e([a()],f.prototype,"returnFeatureTitleFields",void 0),e([a()],f.prototype,"returnGeometry",void 0),e([a()],f.prototype,"selectOnComplete",void 0),e([a()],f.prototype,"sources",void 0),e([a({readOnly:!0})],f.prototype,"state",null),e([a()],f.prototype,"toolConfigs",void 0),e([a()],f.prototype,"view",void 0),f=e([l("esri.widgets.support.SelectionToolbar.SelectionToolbarViewModel")],f);const y=f;export{y as default};
2
+ import{__decorate as e}from"tslib";import{deprecatedProperty as t}from"../../../core/deprecate.js";import{EventedAccessor as o}from"../../../core/Evented.js";import{handlesGroup as i}from"../../../core/handleUtils.js";import s from"../../../core/Logger.js";import{removeMaybe as r}from"../../../core/maybe.js";import{watch as a}from"../../../core/reactiveUtils.js";import{property as n,subclass as l}from"../../../core/accessorSupport/decorators.js";import{isKnowledgeGraphLayer as c,isLinkChartLayer as p}from"../../../layers/support/layerUtils.js";import{findLayerView as d}from"../../../views/draw/support/layerUtils.js";import u from"../../../views/selection/SelectionOperation.js";import{isSelectableLayerView2D as h}from"../../../views/support/layerViewUtils.js";import{isSelectableLayerView as v,isTableLayer as f}from"../../../views/support/selectionUtils.js";let y=class extends o{constructor(e){super(e),this._operationHandlesGroup=null,this.activeOperation=null,this.continuousSelectionEnabled=!1,this.defaultLassoToolOptions={createTool:"polygon",mode:"hybrid",toolName:"lasso"},this.defaultOperationType="add",this.defaultPointToolOptions={createTool:"point",toolName:"point"},this.defaultRectangleToolOptions={createTool:"rectangle",toolName:"rectangle"},this.layerViewPreferenceEnabled=!0,this.persistSelection=!0,this.selectionManager=null,this.returnFeatureTitleFields=!1,this.returnGeometry=!0,this.selectOnComplete=!0,this.sources=null,this.toolConfigs=[]}initialize(){this.addHandles([a(()=>this.effectiveSources,e=>{this.activeOperation&&(this.activeOperation.sources=e)}),a(()=>this.defaultOperationType,e=>{this.activeOperation&&(this.activeOperation.type=e)})])}destroy(){this.activeOperation?.cancel(),this.activeOperation?.destroy(),this._operationHandlesGroup=r(this._operationHandlesGroup)}get effectiveSelectionManager(){return this.selectionManager??this.view?.selectionManager}get effectiveSources(){const{layerViewPreferenceEnabled:e,sources:t,view:o}=this,i=t??this.effectiveSelectionManager?.sources;if(!i?.length)return[];const s=new Set,r="3d"===o?.type?v:h;return i.forEach(t=>{if(!f(t,o))if(r(t))s.add(t);else if(c(t)||p(t)){(t.layers||[]).forEach(t=>{const i=o?d(o,t):void 0,a=e&&r(i)?i:t;s.add(a)})}else if(e){const e=o?d(o,t):void 0;s.add(r(e)?e:t)}else s.add(t)}),Array.from(s)}get layers(){return t(s.getLogger(this),"layers",{replacement:"Use SelectionToolbar.sources instead."}),this.sources}set layers(e){t(s.getLogger(this),"layers",{replacement:"Use SelectionToolbar.sources instead."}),this.sources=e}get state(){return this.activeOperation?"active":this.view?.ready&&this.effectiveSources.length?"ready":"disabled"}activate(e){const{state:t}=this,o=e?.view||this.view,r=e?.sources||this.effectiveSources;if("disabled"===t||!o)return void s.getLogger(this).warn("Unable to start selection operation.");"active"===t&&this.cancel();const a=new CustomEvent("before-activate",{cancelable:!0,detail:{toolName:e?.toolName??null}});if(this.emit("before-activate",a),a.defaultPrevented)return;const n={type:this.defaultOperationType,persistSelection:this.persistSelection,returnFeatureTitleFields:this.returnFeatureTitleFields,returnGeometry:this.returnGeometry,selectOnComplete:this.selectOnComplete,selectionManager:this.effectiveSelectionManager,...e,sources:r,view:o},l=new u({...n});return this._operationHandlesGroup=i([l.on("selection-change",e=>this.emit("selection-change",e)),l.once("complete",e=>this._onOperationComplete(e,n))]),this._set("activeOperation",l),l}activateTool(e){this.cancel();const t=this._getToolOptions(e);if(t)return this.activate(t);s.getLogger(this).warn("Unable to activate tool: unable to determine options.")}cancel(){this.activeOperation?.cancel(),this._set("activeOperation",null)}toggleTool(e){const{activeOperation:t}=this;if(t){const o=t.toolName;if(this.cancel(),o===e)return}return this.activateTool(e)}_onOperationComplete(e,t){const o=this.activeOperation?.type??e.operationType;this._operationHandlesGroup=r(this._operationHandlesGroup),this.activeOperation?.destroy(),this._set("activeOperation",null),this.emit("complete",e),this.continuousSelectionEnabled&&!e.aborted&&this.activate({...t,type:o})}_getToolOptions(e){const t=this.toolConfigs.find(t=>t.toolName===e);return t||("lasso"===e?this.defaultLassoToolOptions:"point"===e?this.defaultPointToolOptions:"rectangle"===e?this.defaultRectangleToolOptions:void 0)}};e([n({readOnly:!0})],y.prototype,"activeOperation",void 0),e([n()],y.prototype,"continuousSelectionEnabled",void 0),e([n()],y.prototype,"defaultLassoToolOptions",void 0),e([n()],y.prototype,"defaultOperationType",void 0),e([n()],y.prototype,"defaultPointToolOptions",void 0),e([n()],y.prototype,"defaultRectangleToolOptions",void 0),e([n()],y.prototype,"effectiveSelectionManager",null),e([n()],y.prototype,"effectiveSources",null),e([n()],y.prototype,"layers",null),e([n()],y.prototype,"layerViewPreferenceEnabled",void 0),e([n()],y.prototype,"persistSelection",void 0),e([n()],y.prototype,"selectionManager",void 0),e([n()],y.prototype,"returnFeatureTitleFields",void 0),e([n()],y.prototype,"returnGeometry",void 0),e([n()],y.prototype,"selectOnComplete",void 0),e([n()],y.prototype,"sources",void 0),e([n({readOnly:!0})],y.prototype,"state",null),e([n()],y.prototype,"toolConfigs",void 0),e([n()],y.prototype,"view",void 0),y=e([l("esri.widgets.support.SelectionToolbar.SelectionToolbarViewModel")],y);const m=y;export{m as default};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{addMany as e}from"../../../core/arrayUtils.js";import{ignoreAbortErrors as r,whenOrAbort as t}from"../../../core/promiseUtils.js";import{getDisplayFieldName as s}from"../../../layers/support/fieldUtils.js";import{isKnowledgeGraphLayer as a,isLinkChartLayer as i,isMapNotesLayer as l}from"../../../layers/support/layerUtils.js";import{calculateTolerance as n}from"../../../renderers/support/clickToleranceUtils.js";import{createQueryGeometry as o}from"../../../views/support/drapedUtils.js";import{isSelectableLayerWithObjectIds as c,isSelectableLayerView as u,isSelectableLayerWithGraphics as d,isSelectableLayerViewWithObjectIds as y}from"../../../views/support/selectionUtils.js";async function p(e){const{returnFeatureTitleFields:s,returnGeometry:a,selector:i,signal:l,sources:n,view:o}=e;if(!n?.length)return[];const{layers:c,layerViews:u,graphicsLayers:d}=m(n),y=[];return await r(t(Promise.all([h({candidates:y,layers:c,returnFeatureTitleFields:s,returnGeometry:a,selector:i,signal:l,view:o}),f({candidates:y,layerViews:u,returnGeometry:a,selector:i,signal:l,view:o}),v({candidates:y,graphicsLayers:d,selector:i})]),l)),y}function m(e){const r=[],t=[],s=[];return e.forEach(e=>{(a(e)||i(e))&&e.layers?.length?r.push(...e.layers.toArray()):l(e)&&e.sublayers?.length?s.push(...e.sublayers.toArray()):c(e)?r.push(e):u(e)?t.push(e):d(e)&&s.push(e)}),{layers:r,layerViews:t,graphicsLayers:s}}async function f(r){const{candidates:s,layerViews:a,returnGeometry:i,selector:l,signal:n,view:o}=r;"point"!==l.type?await t(Promise.allSettled(a.map(async r=>{if(y(r)){const t=b(r,l,o,i),a=await r.queryFeatures(t,{signal:n});e(s,a.features)}else d(r.layer)&&await v({candidates:s,graphicsLayers:[r.layer],selector:l})})),n):await g({candidates:s,layerViews:a,selector:l,view:o})}async function g({candidates:e,layerViews:r,selector:t,view:s}){const a=s.toScreen(t);if(!a)return;const i=r.map(e=>e.layer),{results:l}=await s.hitTest(a,{include:i});l.forEach(r=>{"graphic"in r&&r.graphic&&e.push(r.graphic)})}async function h(r){const{candidates:s,layers:a,returnFeatureTitleFields:i,returnGeometry:l,selector:n,signal:o,view:c}=r;await t(Promise.allSettled(a.map(async r=>{if("isTable"in r&&r.isTable)return;const t=T(r,n,c,i,l),a=await r.queryFeatures(t,{signal:o});e(s,a.features)})),o)}function w(e,r,t){return"point"===e.type?o(e,"renderer"in r?n({renderer:r.renderer}):0,t):e}function F(e,r,t){const{fields:a,fieldsIndex:i}=e,l=new Set([e.objectIdField]);"globalIdField"in e&&null!=e.globalIdField&&i.has(e.globalIdField)&&l.add(i.get(e.globalIdField).name);const n="displayField"in e?e.displayField:null,o=s({displayField:n,fields:a});if(null!=o&&i.has(o)&&l.add(o),"subtypeField"in e&&null!=e.subtypeField){const t=i.get(e.subtypeField)?.name;if(null!=t&&l.add(t),"utilityNetworks"in r.map&&r.map.utilityNetworks?.length){const e=i.get("assetgroup");e?.name&&l.add(e.name);const r=i.get("assettype");r?.name&&l.add(r.name)}}return(t||r.requiredFieldsOptions.featureTitleFields)&&"featureTitleFields"in e&&e.featureTitleFields&&e.featureTitleFields.forEach(e=>l.add(e)),Array.from(l.values())}function b(e,r,t,s=!0){const a=e.createQuery();return a.outFields=["*"],a.geometry=w(r,e.layer,t),a.returnGeometry=s,a.outSpatialReference=t.spatialReference,a}function T(e,r,t,s=!1,a=!0){const i=e.createQuery();return i.outFields=F(e,t,s),i.geometry=w(r,e,t),i.returnGeometry=a,i.outSpatialReference=t.spatialReference,i}async function v(e){const{candidates:r,graphicsLayers:t,selector:s}=e,a=t.flatMap(e=>e.graphics.toArray())??[];if(!a?.length||!s)return;const i=await(import("../../../geometry/operators/intersectsOperator.js"));i.accelerateGeometry(s),a.forEach(e=>{e.geometry&&"mesh"!==e.geometry.type&&i.execute(s,e.geometry)&&r.push(e)})}export{f as collectSelectionFromFeatureLayerViews,h as collectSelectionFromFeatureLayers,v as collectSelectionFromGraphicsLayers,p as getSelectionFromGeometry,w as getSuggestedQueryGeometry,F as getSuggestedQueryOutFields};
2
+ import{addMany as e}from"../../../core/arrayUtils.js";import{ignoreAbortErrors as r,whenOrAbort as t}from"../../../core/promiseUtils.js";import{getDisplayFieldName as s}from"../../../layers/support/fieldUtils.js";import{isKnowledgeGraphLayer as a,isLinkChartLayer as i,isMapNotesLayer as l}from"../../../layers/support/layerUtils.js";import{calculateTolerance as n}from"../../../renderers/support/clickToleranceUtils.js";import{createQueryGeometry as o}from"../../../views/support/drapedUtils.js";import{isSelectableLayerWithObjectIds as c,isSelectableLayerView as u,isSelectableLayerWithGraphics as d,isTableLayer as y,isSelectableLayerViewWithObjectIds as p}from"../../../views/support/selectionUtils.js";async function m(e){const{returnFeatureTitleFields:s,returnGeometry:a,selector:i,signal:l,sources:n,view:o}=e;if(!n?.length)return[];const{layers:c,layerViews:u,graphicsLayers:d}=f(n),y=[];return await r(t(Promise.all([w({candidates:y,layers:c,returnFeatureTitleFields:s,returnGeometry:a,selector:i,signal:l,view:o}),g({candidates:y,layerViews:u,returnGeometry:a,selector:i,signal:l,view:o}),T({candidates:y,graphicsLayers:d,selector:i})]),l)),y}function f(e){const r=[],t=[],s=[];return e.forEach(e=>{(a(e)||i(e))&&e.layers?.length?r.push(...e.layers.toArray()):l(e)&&e.sublayers?.length?s.push(...e.sublayers.toArray()):c(e)?r.push(e):u(e)?t.push(e):d(e)&&s.push(e)}),{layers:r,layerViews:t,graphicsLayers:s}}async function g(r){const{candidates:s,layerViews:a,returnGeometry:i,selector:l,signal:n,view:o}=r;"point"!==l.type?await t(Promise.allSettled(a.map(async r=>{if(p(r)){const t=v(r,l,o,i),a=await r.queryFeatures(t,{signal:n});e(s,a.features)}else d(r.layer)&&await T({candidates:s,graphicsLayers:[r.layer],selector:l})})),n):await h({candidates:s,layerViews:a,selector:l,view:o})}async function h({candidates:e,layerViews:r,selector:t,view:s}){const a=s.toScreen(t);if(!a)return;const i=r.map(e=>e.layer),{results:l}=await s.hitTest(a,{include:i});l.forEach(r=>{"graphic"in r&&r.graphic&&e.push(r.graphic)})}async function w(r){const{candidates:s,layers:a,returnFeatureTitleFields:i,returnGeometry:l,selector:n,signal:o,view:c}=r;await t(Promise.allSettled(a.map(async r=>{if(y(r,c))return;const t=j(r,n,c,i,l),a=await r.queryFeatures(t,{signal:o});e(s,a.features)})),o)}function F(e,r,t){return"point"===e.type?o(e,"renderer"in r?n({renderer:r.renderer}):0,t):e}function b(e,r,t){const{fields:a,fieldsIndex:i}=e,l=new Set([e.objectIdField]);"globalIdField"in e&&null!=e.globalIdField&&i.has(e.globalIdField)&&l.add(i.get(e.globalIdField).name);const n="displayField"in e?e.displayField:null,o=s({displayField:n,fields:a});if(null!=o&&i.has(o)&&l.add(o),"subtypeField"in e&&null!=e.subtypeField){const t=i.get(e.subtypeField)?.name;if(null!=t&&l.add(t),"utilityNetworks"in r.map&&r.map.utilityNetworks?.length){const e=i.get("assetgroup");e?.name&&l.add(e.name);const r=i.get("assettype");r?.name&&l.add(r.name)}}return(t||r.requiredFieldsOptions.featureTitleFields)&&"featureTitleFields"in e&&e.featureTitleFields&&e.featureTitleFields.forEach(e=>l.add(e)),Array.from(l.values())}function v(e,r,t,s=!0){const a=e.createQuery();return a.outFields=["*"],a.geometry=F(r,e.layer,t),a.returnGeometry=s,a.outSpatialReference=t.spatialReference,a}function j(e,r,t,s=!1,a=!0){const i=e.createQuery();return i.outFields=b(e,t,s),i.geometry=F(r,e,t),i.returnGeometry=a,i.outSpatialReference=t.spatialReference,i}async function T(e){const{candidates:r,graphicsLayers:t,selector:s}=e,a=t.flatMap(e=>e.graphics.toArray())??[];if(!a?.length||!s)return;const i=await(import("../../../geometry/operators/intersectsOperator.js"));i.accelerateGeometry(s),a.forEach(e=>{e.geometry&&"mesh"!==e.geometry.type&&i.execute(s,e.geometry)&&r.push(e)})}export{g as collectSelectionFromFeatureLayerViews,w as collectSelectionFromFeatureLayers,T as collectSelectionFromGraphicsLayers,m as getSelectionFromGeometry,F as getSuggestedQueryGeometry,b as getSuggestedQueryOutFields};
package/arcade/kernel.js DELETED
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import e from"../geometry/Extent.js";function n(n){if(null==n)return null;switch(n.type){case"polygon":case"multipoint":case"polyline":return n.extent;case"point":return new e({xmin:n.x,ymin:n.y,xmax:n.x,ymax:n.y,spatialReference:n.spatialReference});case"extent":return n}return null}function t(e,n){return e===n||("point"===e&&"esriGeometryPoint"===n||("polyline"===e&&"esriGeometryPolyline"===n||("polygon"===e&&"esriGeometryPolygon"===n||("extent"===e&&"esriGeometryEnvelope"===n||("multipoint"===e&&"esriGeometryMultipoint"===n||("point"===n&&"esriGeometryPoint"===e||("polyline"===n&&"esriGeometryPolyline"===e||("polygon"===n&&"esriGeometryPolygon"===e||("extent"===n&&"esriGeometryEnvelope"===e||"multipoint"===n&&"esriGeometryMultipoint"===e)))))))))}function o(e){if(null==e)return null;const n=e.clone();return void 0!==e.cache._geVersion&&(n.cache._geVersion=e.cache._geVersion),n}function i(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e}export{o as cloneGeometry,i as isInteger,t as sameGeomType,n as shapeExtent};
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7464],{74660(e,t,o){o.r(t);var i=o(32198),r=o(69540),s=o(49186),n=o(53966),a=o(25728),p=o(17676),l=o(36708),d=o(91429),y=o(87024),u=o(4146),c=o(52136),g=o(18768),h=o(69208),v=o(34287),f=o(8303),m=o(25036),C=o(58947),M=o(10873),S=o(50805),I=o(58325),b=o(24212),Z=o(97159),x=o(36005);let T=class extends((0,C.w6)((0,g.b)((0,v.q)((0,f.A)((0,m.j)((0,a.M)((0,h.d)((0,c.p)((0,r.OU)(u.A)))))))))){constructor(...e){super(...e),this.geometryType="mesh",this.operationalLayerType="IntegratedMeshLayer",this.type="integrated-mesh",this.nodePages=null,this.materialDefinitions=null,this.textureSetDefinitions=null,this.geometryDefinitions=null,this.serviceUpdateTimeStamp=null,this.profile="mesh-pyramids",this.modifications=null,this._modificationsSource=null,this.path=null,this.definitionExpression=null}initialize(){this.addHandles((0,l.on)(()=>this.modifications,"after-changes",()=>this.modifications=this.modifications,l.OH))}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}readModifications(e,t,o){this._modificationsSource={url:(0,Z.f)(e,o),context:o}}set elevationInfo(e){null!=e&&"absolute-height"!==e.mode||this._set("elevationInfo",e),this._validateElevationInfo(e)}async load(e){return this.addResolvingPromise(this._doLoad(e)),this}async _doLoad(e){const t=e?.signal;try{await this.loadFromPortal({supportedTypes:["Scene Service"]},e)}catch(e){(0,p.QP)(e)}if(await this._fetchService(t),null!=this._modificationsSource){const t=await I.A.fromUrl(this._modificationsSource.url,this.spatialReference,e);this.setAtOrigin("modifications",t,this._modificationsSource.context.origin),this._modificationsSource=null}await this._fetchIndexAndUpdateExtent(this.nodePages,t)}beforeSave(){if(null!=this._modificationsSource)return this.load().then(()=>{},()=>{})}async saveAs(e,t){return this._debouncedSaveOperations(1,{...t,getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"integrated-mesh"},e)}async save(){const e={getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"integrated-mesh"};return this._debouncedSaveOperations(0,e)}validateLayer(e){if(e.layerType&&"IntegratedMesh"!==e.layerType)throw new s.A("integrated-mesh-layer:layer-type-not-supported","IntegratedMeshLayer does not support this layer type",{layerType:e.layerType});if(isNaN(this.version.major)||isNaN(this.version.minor))throw new s.A("layer:service-version-not-supported","Service version is not supported.",{serviceVersion:this.version.versionString,supportedVersions:"1.x"});if(this.version.major>1)throw new s.A("layer:service-version-too-new","Service version is too new.",{serviceVersion:this.version.versionString,supportedVersions:"1.x"})}_getTypeKeywords(){return["IntegratedMeshLayer"]}_validateElevationInfo(e){const t="Integrated mesh layers";(0,b.XF)(n.A.getLogger(this),(0,b.B)(t,"absolute-height",e)),(0,b.XF)(n.A.getLogger(this),(0,b.tW)(t,e))}};(0,i.Cg)([(0,d.MZ)({type:String,readOnly:!0})],T.prototype,"geometryType",void 0),(0,i.Cg)([(0,d.MZ)({type:["show","hide"]})],T.prototype,"listMode",void 0),(0,i.Cg)([(0,d.MZ)({type:["IntegratedMeshLayer"]})],T.prototype,"operationalLayerType",void 0),(0,i.Cg)([(0,d.MZ)({json:{read:!1},readOnly:!0})],T.prototype,"type",void 0),(0,i.Cg)([(0,d.MZ)({type:S.W4,readOnly:!0,clonable:!1})],T.prototype,"nodePages",void 0),(0,i.Cg)([(0,d.MZ)({type:[S.uV],readOnly:!0,clonable:!1})],T.prototype,"materialDefinitions",void 0),(0,i.Cg)([(0,d.MZ)({type:[S.Ot],readOnly:!0,clonable:!1})],T.prototype,"textureSetDefinitions",void 0),(0,i.Cg)([(0,d.MZ)({type:[S.L0],readOnly:!0,clonable:!1})],T.prototype,"geometryDefinitions",void 0),(0,i.Cg)([(0,d.MZ)({readOnly:!0})],T.prototype,"serviceUpdateTimeStamp",void 0),(0,i.Cg)([(0,d.MZ)({type:I.A,clonable:e=>e?.clone()??e}),(0,y.P)({origins:["web-scene","portal-item"],type:"resource",prefix:"modifications"})],T.prototype,"modifications",void 0),(0,i.Cg)([(0,d.MZ)({clonable:e=>e?{...e}:null})],T.prototype,"_modificationsSource",void 0),(0,i.Cg)([(0,x.w)(["web-scene","portal-item"],"modifications")],T.prototype,"readModifications",null),(0,i.Cg)([(0,d.MZ)(M.Yj)],T.prototype,"elevationInfo",null),(0,i.Cg)([(0,d.MZ)({type:String,json:{origins:{"web-scene":{read:!0,write:!0},"portal-item":{read:!0,write:!0}},read:!1}})],T.prototype,"path",void 0),T=(0,i.Cg)([(0,d.$K)("esri.layers.IntegratedMeshLayer")],T);const w=T;o.d(t,["default",0,w])},50805(e,t,o){o.d(t,{L0:()=>v,Ot:()=>u,W4:()=>a,uV:()=>d});var i=o(32198),r=o(25482),s=o(91429),n=o(93223);let a=class extends r.o{constructor(){super(...arguments),this.nodesPerPage=null,this.rootIndex=0,this.lodSelectionMetricType=null}};(0,i.Cg)([(0,s.MZ)({type:Number})],a.prototype,"nodesPerPage",void 0),(0,i.Cg)([(0,s.MZ)({type:Number})],a.prototype,"rootIndex",void 0),(0,i.Cg)([(0,s.MZ)({type:String})],a.prototype,"lodSelectionMetricType",void 0),a=(0,i.Cg)([(0,s.$K)("esri.layers.support.I3SLayerDefinitions.I3SNodePageDefinition")],a);let p=class extends r.o{constructor(){super(...arguments),this.factor=1}};(0,i.Cg)([(0,s.MZ)({type:Number,json:{read:{source:"textureSetDefinitionId"}}})],p.prototype,"id",void 0),(0,i.Cg)([(0,s.MZ)({type:Number})],p.prototype,"factor",void 0),p=(0,i.Cg)([(0,s.$K)("esri.layers.support.I3SLayerDefinitions.I3SMaterialTexture")],p);let l=class extends r.o{constructor(){super(...arguments),this.baseColorFactor=[1,1,1,1],this.baseColorTexture=null,this.metallicRoughnessTexture=null,this.metallicFactor=1,this.roughnessFactor=1}};(0,i.Cg)([(0,s.MZ)({type:[Number]})],l.prototype,"baseColorFactor",void 0),(0,i.Cg)([(0,s.MZ)({type:p})],l.prototype,"baseColorTexture",void 0),(0,i.Cg)([(0,s.MZ)({type:p})],l.prototype,"metallicRoughnessTexture",void 0),(0,i.Cg)([(0,s.MZ)({type:Number})],l.prototype,"metallicFactor",void 0),(0,i.Cg)([(0,s.MZ)({type:Number})],l.prototype,"roughnessFactor",void 0),l=(0,i.Cg)([(0,s.$K)("esri.layers.support.I3SLayerDefinitions.I3SMaterialPBRMetallicRoughness")],l);let d=class extends r.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,i.Cg)([(0,n.e)({opaque:"opaque",mask:"mask",blend:"blend"})],d.prototype,"alphaMode",void 0),(0,i.Cg)([(0,s.MZ)({type:Number})],d.prototype,"alphaCutoff",void 0),(0,i.Cg)([(0,s.MZ)({type:Boolean})],d.prototype,"doubleSided",void 0),(0,i.Cg)([(0,n.e)({none:"none",back:"back",front:"front"})],d.prototype,"cullFace",void 0),(0,i.Cg)([(0,s.MZ)({type:p})],d.prototype,"normalTexture",void 0),(0,i.Cg)([(0,s.MZ)({type:p})],d.prototype,"occlusionTexture",void 0),(0,i.Cg)([(0,s.MZ)({type:p})],d.prototype,"emissiveTexture",void 0),(0,i.Cg)([(0,s.MZ)({type:[Number]})],d.prototype,"emissiveFactor",void 0),(0,i.Cg)([(0,s.MZ)({type:l})],d.prototype,"pbrMetallicRoughness",void 0),d=(0,i.Cg)([(0,s.$K)("esri.layers.support.I3SLayerDefinitions.I3SMaterialDefinition")],d);let y=class extends r.o{};(0,i.Cg)([(0,s.MZ)({type:String,json:{read:{source:["name","index"],reader:(e,t)=>null!=e?e:`${t.index}`}}})],y.prototype,"name",void 0),(0,i.Cg)([(0,n.e)({jpg:"jpg",png:"png",dds:"dds","ktx-etc2":"ktx-etc2",ktx2:"ktx2",basis:"basis"})],y.prototype,"format",void 0),y=(0,i.Cg)([(0,s.$K)("esri.layers.support.I3SLayerDefinitions.I3STextureFormat")],y);let u=class extends r.o{constructor(){super(...arguments),this.atlas=!1}};(0,i.Cg)([(0,s.MZ)({type:[y]})],u.prototype,"formats",void 0),(0,i.Cg)([(0,s.MZ)({type:Boolean})],u.prototype,"atlas",void 0),u=(0,i.Cg)([(0,s.$K)("esri.layers.support.I3SLayerDefinitions.I3STextureSetDefinition")],u);let c=class extends r.o{};(0,i.Cg)([(0,n.e)({Float32:"Float32",UInt64:"UInt64",UInt32:"UInt32",UInt16:"UInt16",UInt8:"UInt8"})],c.prototype,"type",void 0),(0,i.Cg)([(0,s.MZ)({type:Number})],c.prototype,"component",void 0),c=(0,i.Cg)([(0,s.$K)("esri.layers.support.I3SLayerDefinitions.I3SGeometryAttribute")],c);let g=class extends r.o{};(0,i.Cg)([(0,n.e)({draco:"draco"})],g.prototype,"encoding",void 0),(0,i.Cg)([(0,s.MZ)({type:[String]})],g.prototype,"attributes",void 0),g=(0,i.Cg)([(0,s.$K)("esri.layers.support.I3SLayerDefinitions.I3SGeometryCompressedAttributes")],g);let h=class extends r.o{constructor(){super(...arguments),this.offset=0}};(0,i.Cg)([(0,s.MZ)({type:Number})],h.prototype,"offset",void 0),(0,i.Cg)([(0,s.MZ)({type:c})],h.prototype,"position",void 0),(0,i.Cg)([(0,s.MZ)({type:c})],h.prototype,"normal",void 0),(0,i.Cg)([(0,s.MZ)({type:c})],h.prototype,"uv0",void 0),(0,i.Cg)([(0,s.MZ)({type:c})],h.prototype,"color",void 0),(0,i.Cg)([(0,s.MZ)({type:c})],h.prototype,"uvRegion",void 0),(0,i.Cg)([(0,s.MZ)({type:c})],h.prototype,"featureId",void 0),(0,i.Cg)([(0,s.MZ)({type:c})],h.prototype,"faceRange",void 0),(0,i.Cg)([(0,s.MZ)({type:g})],h.prototype,"compressedAttributes",void 0),h=(0,i.Cg)([(0,s.$K)("esri.layers.support.I3SLayerDefinitions.I3SGeometryBuffer")],h);let v=class extends r.o{};(0,i.Cg)([(0,n.e)({triangle:"triangle"})],v.prototype,"topology",void 0),(0,i.Cg)([(0,s.MZ)()],v.prototype,"geometryBuffers",void 0),v=(0,i.Cg)([(0,s.$K)("esri.layers.support.I3SLayerDefinitions.I3SGeometryDefinition")],v)},73179(e,t,o){o.d(t,{b:()=>p,h:()=>l});var i=o(4718),r=o(53966),s=o(84952),n=o(60694),a=o(10873);function p(e){const{nonStandardUrlAllowed:t=!1,separator:o}=e??{},s=(0,i.o8)(a.OZ),p=s.json?.write;return"object"==typeof p&&p&&(p.writer=function(e,t,i,r){(0,n.LS)(this,e,o,t,r)}),{...s,set:function(e){if(null==e)return void this._set("url",e);const o=(0,n.HZ)({layer:this,url:e,nonStandardUrlAllowed:t,logger:r.A.getLogger(this)});this._set("url",o.url),null!=o.layerId&&this._set("layerId",o.layerId)}}}function l(e,t){const{separator:o}=t??{},i=(0,s.An)(e.url);return null!=i&&(null!=e.dynamicDataSource?i.path=(0,s.fj)(i.path,"dynamicLayer"):null!=e.layerId&&(i.path=(0,s.fj)(i.path,o??"",e.layerId.toString()))),i}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[837,1948],{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(32198),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.f)(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.h)(e)){const e=new a.a({vd:t.getDescription()});return e.addSegment(t,!0),this.generalize(e)}if((0,i.j)(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:()=>P,ME:()=>C,MY:()=>k,NO:()=>_,Nh:()=>E,V2:()=>Y,_s:()=>b,e6:()=>F,gh:()=>M,tr:()=>Z,uX:()=>p});var r=s(32198),n=s(16930),i=s(19419),a=s(60408),o=s(21325),h=s(513),u=s(50954),l=s(79567),m=s(52006),c=s(49663),g=s(46068),f=s(92722);class p{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?64+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=Y(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,o.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 x(this):[][Symbol.iterator]()}}class x{constructor(t){this.geometry=t,this.value=new v(t)}get done(){return this.value.index>=this.geometry.partCount}next(){return++this.value.index,this}[Symbol.iterator](){return this}}class v{constructor(t){this.geometry=t,this.index=-1,this._readVertex=R(t),this._segments=new d(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 d{constructor(t){this._part=t,this._partStart=0,this._partEnd=0,this._isPolygon="polygon"===t.geometry.type,this.value=new y(t.geometry)}get done(){return this.value.indexOfStartVertex>this._partEnd}next(){++this.value.indexOfStartVertex;const t=this.value.indexOfStartVertex>=this._partEnd;return this.value.indexOfEndVertex=t&&this._isPolygon?this._partStart:this.value.indexOfStartVertex+1,this}[Symbol.iterator](){return this}reset(){const{index:t}=this._part,e=this._part.geometry.partOffsets;this._partStart=e[t],this._partEnd=e[t+1]-(this._isPolygon?1:2),this.value.indexOfStartVertex=this._partStart-1}}class y{constructor(t){this.geometry=t,this.indexOfStartVertex=-1,this.indexOfEndVertex=-1,this._readVertex=R(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 _(t,e){const s={stack:[],error:void 0,hasError:!1};try{return e??=(0,i.Ie)(),(0,r.mS)(s,new S(t,["vertexZ","vertexM","spatialReference"]),!1),(0,i.bx)(e,function(t){let e;const{vertexCount:s,vertexXY:n,vertexZ:a,vertexM:o}=t,h=O(t);if(t.hasCurves()){const s={stack:[],error:void 0,hasError:!1};try{(0,r.mS)(s,new S(t,["vertexZ","vertexM"]),!1);const n=(0,i.Ie)();for(const e of t.parts){let t=e.startVertex;for(const{curve:s}of e.segments)(0,l.e)(n,t,s),t=(0,m.yP)(s)}const[a,o,u,c]=n;e={xmin:a,ymin:o,xmax:u,ymax:c,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(a){let t=1/0,s=-1/0;for(const e of a)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 C(t){let e,s,r;if((0,a.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,a.U9)(t)?(r="multipoint",s=[t.points],e=t.points.length):(0,a.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,w(e[0],(0,m.yP)(e.at(-1)))&&--t),t),0));const n=Y(r,e,r.includes("point")?0:s.length,(0,a.Pv)(t),(0,a.W0)(t),(0,m.Ed)(t)),{hasZ:i,hasM:o,vertexXY:h,vertexZ:u,vertexM:l}=n;function c(t){h[2*f]=t[0],h[2*f+1]=t[1],i&&(u[f]=t[2]),o&&(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&&!o){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])c(t);return n}const p="polygon"===r,{partOffsets:x}=n;let v=0;if(!(0,m.Ed)(t)){for(const t of s){if(x[v++]=f,0===t.length)continue;let e=t.length;if(p&&w(t[0],t.at(-1))&&--e,i||o)for(let s=0;s<e;++s)c(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*V;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];c(s);const i=f-1;(0,m.wY)(r)?(d(10),++n.segmentCountArc,y=b(s,r,n,i,y),s=r.a[0]):(0,m.DA)(r)?(d(10),++n.segmentCountArc,y=A(s,r,n,i,y),s=r.a[0]):(0,m.aO)(r)?(d(10),++n.segmentCountArc,y=F(s,r,n,i,y),s=r.c[0]):(0,m.n1)(r)?(d(4),++n.segmentCountBezier,y=Z(0,r,n,i,y),s=r.b[0]):s=r}p&&w(e,s)||c(s)}return n.partOffsets[v]=f,n}function M(t){const e=R(t),{vertexCount:s,partCount:r,hasZ:n,hasM:i}=t,a=O(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 E(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=Y(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 P({type:t,vertexCount:e,vertexXY:s,vertexZ:r,vertexM:n,partCount:i,partOffsets:a,hasZ:o,hasM:h}){const u=new f.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 k(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 p({...t.toFlatGeometry(),spatialReference:e})}class S{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 O({spatialReference:t}){return t instanceof n.A?t.toJSON():t}function R({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 w(t,e){return t.every((t,s)=>t===e[s])}function Y(t,e,s,r,n,i,a,o){a??=0,o??=0;const h=new p({type:t,vertexCount:e,vertexXY:null,vertexZ:void 0,vertexM:void 0,partCount: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(X),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 b(t,e,{segmentFlags:s,segmentIndices:r,segmentParams:n},i,a){s[i]=4,r[i]=a;const[o,[h,u],l,m,c,f,p]=e.a;let x=4;m||(x|=1),l||(x|=2);const v=(0,g.SW)(t,e),[d,y]=(0,g.Uk)(v,.5);return n[a++]=x,n[a++]=f,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 A(t,e,{segmentFlags:s,segmentIndices:r,segmentParams:n},i,a){s[i]=4,r[i]=a;const o=(0,c.io)(t,e);return I(o,4,...(0,h.mq)(o,.5),n,a)}function F(t,e,{segmentFlags:s,segmentIndices:r,segmentParams:n},i,a){return s[i]=4,r[i]=a,I((0,u.pM)(t,e),0,...e.c[1],n,a)}function I(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 Z(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 V=1.61803,X=-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([[5983],{29242(t,n,r){function e(){return[1,0,0,0,1,0,0,0,1]}function o(t,n,r,e,o,u,a,c,s){return[t,n,r,e,o,u,a,c,s]}r.d(n,{fA:()=>o,vt:()=>e});const u=[1,0,0,0,1,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:u,clone:function(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8]]},create:e,fromValues:o},Symbol.toStringTag,{value:"Module"})),r.d(n,["zK",0,u])},34304(t,n,r){r.d(n,{DF:()=>s,FD:()=>o,ct:()=>i});let e=1e-6;function o(){return e}const u=Math.random,a=Math.PI/180,c=180/Math.PI;function s(t){return t*a}function i(t){return t*c}Object.freeze(Object.defineProperty({__proto__:null,RANDOM:u,equals:function(t,n){return Math.abs(t-n)<=e*Math.max(1,Math.abs(t),Math.abs(n))},getEpsilon:o,setEpsilon:function(t){e=t},toDegree:i,toRadian:s},Symbol.toStringTag,{value:"Module"})),r.d(n,["Ov",0,u])},77690(t,n,r){r.d(n,{B8:()=>c,Ge:()=>M,I0:()=>l,KC:()=>s,a4:()=>i,hZ:()=>u,hs:()=>f,lw:()=>h,mg:()=>a,z0:()=>o});var e=r(34304);function o(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[4],t[4]=n[5],t[5]=n[6],t[6]=n[8],t[7]=n[9],t[8]=n[10],t}function u(t,n,r,e,o,u,a,c,s,i){return t[0]=n,t[1]=r,t[2]=e,t[3]=o,t[4]=u,t[5]=a,t[6]=c,t[7]=s,t[8]=i,t}function a(t,n){if(t===n){const r=n[1],e=n[2],o=n[5];t[1]=n[3],t[2]=n[6],t[3]=r,t[5]=n[7],t[6]=e,t[7]=o}else t[0]=n[0],t[1]=n[3],t[2]=n[6],t[3]=n[1],t[4]=n[4],t[5]=n[7],t[6]=n[2],t[7]=n[5],t[8]=n[8];return t}function c(t,n){const r=n[0],e=n[1],o=n[2],u=n[3],a=n[4],c=n[5],s=n[6],i=n[7],h=n[8],f=h*a-c*i,l=-h*u+c*s,M=i*u-a*s;let m=r*f+e*l+o*M;return m?(m=1/m,t[0]=f*m,t[1]=(-h*e+o*i)*m,t[2]=(c*e-o*a)*m,t[3]=l*m,t[4]=(h*r-o*s)*m,t[5]=(-c*r+o*u)*m,t[6]=M*m,t[7]=(-i*r+e*s)*m,t[8]=(a*r-e*u)*m,t):null}function s(t,n){const r=n[0],e=n[1],o=n[2],u=n[3],a=n[4],c=n[5],s=n[6],i=n[7],h=n[8];return t[0]=a*h-c*i,t[1]=o*i-e*h,t[2]=e*c-o*a,t[3]=c*s-u*h,t[4]=r*h-o*s,t[5]=o*u-r*c,t[6]=u*i-a*s,t[7]=e*s-r*i,t[8]=r*a-e*u,t}function i(t){const n=t[0],r=t[1],e=t[2],o=t[3],u=t[4],a=t[5],c=t[6],s=t[7],i=t[8];return n*(i*u-a*s)+r*(-i*o+a*c)+e*(s*o-u*c)}function h(t,n,r){const e=n[0],o=n[1],u=n[2],a=n[3],c=n[4],s=n[5],i=n[6],h=n[7],f=n[8],l=r[0],M=r[1],m=r[2],b=r[3],x=r[4],d=r[5],g=r[6],I=r[7],P=r[8];return t[0]=l*e+M*a+m*i,t[1]=l*o+M*c+m*h,t[2]=l*u+M*s+m*f,t[3]=b*e+x*a+d*i,t[4]=b*o+x*c+d*h,t[5]=b*u+x*s+d*f,t[6]=g*e+I*a+P*i,t[7]=g*o+I*c+P*h,t[8]=g*u+I*s+P*f,t}function f(t,n,r){const e=r[0],o=r[1],u=r[2];return t[0]=e*n[0],t[1]=e*n[1],t[2]=e*n[2],t[3]=o*n[3],t[4]=o*n[4],t[5]=o*n[5],t[6]=u*n[6],t[7]=u*n[7],t[8]=u*n[8],t}function l(t,n){const r=n[0],e=n[1],o=n[2],u=n[3],a=r+r,c=e+e,s=o+o,i=r*a,h=e*a,f=e*c,l=o*a,M=o*c,m=o*s,b=u*a,x=u*c,d=u*s;return t[0]=1-f-m,t[3]=h-d,t[6]=l+x,t[1]=h+d,t[4]=1-i-m,t[7]=M-b,t[2]=l-x,t[5]=M+b,t[8]=1-i-f,t}function M(t,n){const r=n[0],e=n[1],o=n[2],u=n[3],a=n[4],c=n[5],s=n[6],i=n[7],h=n[8],f=n[9],l=n[10],M=n[11],m=n[12],b=n[13],x=n[14],d=n[15],g=r*c-e*a,I=r*s-o*a,P=r*i-u*a,p=e*s-o*c,y=e*i-u*c,v=o*i-u*s,N=h*b-f*m,S=h*x-l*m,q=h*d-M*m,R=f*x-l*b,E=f*d-M*b,z=l*d-M*x;let T=g*z-I*E+P*R+p*q-y*S+v*N;return T?(T=1/T,t[0]=(c*z-s*E+i*R)*T,t[1]=(s*q-a*z-i*S)*T,t[2]=(a*E-c*q+i*N)*T,t[3]=(o*E-e*z-u*R)*T,t[4]=(r*z-o*q+u*S)*T,t[5]=(e*q-r*E-u*N)*T,t[6]=(b*v-x*y+d*p)*T,t[7]=(x*P-m*v-d*I)*T,t[8]=(m*y-b*P+d*g)*T,t):null}function m(t,n,r){return t[0]=n[0]-r[0],t[1]=n[1]-r[1],t[2]=n[2]-r[2],t[3]=n[3]-r[3],t[4]=n[4]-r[4],t[5]=n[5]-r[5],t[6]=n[6]-r[6],t[7]=n[7]-r[7],t[8]=n[8]-r[8],t}const b=h,x=m;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,n,r){return t[0]=n[0]+r[0],t[1]=n[1]+r[1],t[2]=n[2]+r[2],t[3]=n[3]+r[3],t[4]=n[4]+r[4],t[5]=n[5]+r[5],t[6]=n[6]+r[6],t[7]=n[7]+r[7],t[8]=n[8]+r[8],t},adjoint:s,copy:function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],t},determinant:i,equals:function(t,n){const r=t[0],o=t[1],u=t[2],a=t[3],c=t[4],s=t[5],i=t[6],h=t[7],f=t[8],l=n[0],M=n[1],m=n[2],b=n[3],x=n[4],d=n[5],g=n[6],I=n[7],P=n[8],p=(0,e.FD)();return Math.abs(r-l)<=p*Math.max(1,Math.abs(r),Math.abs(l))&&Math.abs(o-M)<=p*Math.max(1,Math.abs(o),Math.abs(M))&&Math.abs(u-m)<=p*Math.max(1,Math.abs(u),Math.abs(m))&&Math.abs(a-b)<=p*Math.max(1,Math.abs(a),Math.abs(b))&&Math.abs(c-x)<=p*Math.max(1,Math.abs(c),Math.abs(x))&&Math.abs(s-d)<=p*Math.max(1,Math.abs(s),Math.abs(d))&&Math.abs(i-g)<=p*Math.max(1,Math.abs(i),Math.abs(g))&&Math.abs(h-I)<=p*Math.max(1,Math.abs(h),Math.abs(I))&&Math.abs(f-P)<=p*Math.max(1,Math.abs(f),Math.abs(P))},exactEquals:function(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]&&t[4]===n[4]&&t[5]===n[5]&&t[6]===n[6]&&t[7]===n[7]&&t[8]===n[8]},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)},fromMat2d:function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=0,t[3]=n[2],t[4]=n[3],t[5]=0,t[6]=n[4],t[7]=n[5],t[8]=1,t},fromMat4:o,fromQuat:l,fromRotation:function(t,n){const r=Math.sin(n),e=Math.cos(n);return t[0]=e,t[1]=r,t[2]=0,t[3]=-r,t[4]=e,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromScaling:function(t,n){return t[0]=n[0],t[1]=0,t[2]=0,t[3]=0,t[4]=n[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromTranslation:function(t,n){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=n[0],t[7]=n[1],t[8]=1,t},identity:function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},invert:c,isOrthoNormal:function(t){const n=(0,e.FD)(),r=t[0],o=t[1],u=t[2],a=t[3],c=t[4],s=t[5],i=t[6],h=t[7],f=t[8];return Math.abs(1-(r*r+a*a+i*i))<=n&&Math.abs(1-(o*o+c*c+h*h))<=n&&Math.abs(1-(u*u+s*s+f*f))<=n},mul:b,multiply:h,multiplyScalar:function(t,n,r){return t[0]=n[0]*r,t[1]=n[1]*r,t[2]=n[2]*r,t[3]=n[3]*r,t[4]=n[4]*r,t[5]=n[5]*r,t[6]=n[6]*r,t[7]=n[7]*r,t[8]=n[8]*r,t},multiplyScalarAndAdd:function(t,n,r,e){return t[0]=n[0]+r[0]*e,t[1]=n[1]+r[1]*e,t[2]=n[2]+r[2]*e,t[3]=n[3]+r[3]*e,t[4]=n[4]+r[4]*e,t[5]=n[5]+r[5]*e,t[6]=n[6]+r[6]*e,t[7]=n[7]+r[7]*e,t[8]=n[8]+r[8]*e,t},normalFromMat4:M,normalFromMat4Legacy:function(t,n){const r=n[0],e=n[1],o=n[2],u=n[4],a=n[5],c=n[6],s=n[8],i=n[9],h=n[10],f=h*a-c*i,l=-h*u+c*s,M=i*u-a*s,m=r*f+e*l+o*M;if(!m)return null;const b=1/m;return t[0]=f*b,t[1]=(-h*e+o*i)*b,t[2]=(c*e-o*a)*b,t[3]=l*b,t[4]=(h*r-o*s)*b,t[5]=(-c*r+o*u)*b,t[6]=M*b,t[7]=(-i*r+e*s)*b,t[8]=(a*r-e*u)*b,t},projection:function(t,n,r){return t[0]=2/n,t[1]=0,t[2]=0,t[3]=0,t[4]=-2/r,t[5]=0,t[6]=-1,t[7]=1,t[8]=1,t},rotate:function(t,n,r){const e=n[0],o=n[1],u=n[2],a=n[3],c=n[4],s=n[5],i=n[6],h=n[7],f=n[8],l=Math.sin(r),M=Math.cos(r);return t[0]=M*e+l*a,t[1]=M*o+l*c,t[2]=M*u+l*s,t[3]=M*a-l*e,t[4]=M*c-l*o,t[5]=M*s-l*u,t[6]=i,t[7]=h,t[8]=f,t},scale:f,scaleByVec2:function(t,n,r){const e=r[0],o=r[1];return t[0]=e*n[0],t[1]=e*n[1],t[2]=e*n[2],t[3]=o*n[3],t[4]=o*n[4],t[5]=o*n[5],t},set:u,str:function(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"},sub:x,subtract:m,translate:function(t,n,r){const e=n[0],o=n[1],u=n[2],a=n[3],c=n[4],s=n[5],i=n[6],h=n[7],f=n[8],l=r[0],M=r[1];return t[0]=e,t[1]=o,t[2]=u,t[3]=a,t[4]=c,t[5]=s,t[6]=l*e+M*a+i,t[7]=l*o+M*c+h,t[8]=l*u+M*s+f,t},transpose:a},Symbol.toStringTag,{value:"Module"}))},37585(t,n,r){r.d(n,{C:()=>u,Cc:()=>y,Io:()=>x,LI:()=>M,Ln:()=>b,Om:()=>p,Re:()=>s,S8:()=>P,T9:()=>f,WQ:()=>c,aI:()=>q,e$:()=>N,hG:()=>d,hZ:()=>a,hs:()=>m,l0:()=>v,qE:()=>l,t2:()=>S});var e=r(34727),o=r(34304);function u(t,n){return t[0]=n[0],t[1]=n[1],t}function a(t,n,r){return t[0]=n,t[1]=r,t}function c(t,n,r){return t[0]=n[0]+r[0],t[1]=n[1]+r[1],t}function s(t,n,r){return t[0]=n[0]-r[0],t[1]=n[1]-r[1],t}function i(t,n,r){return t[0]=n[0]*r[0],t[1]=n[1]*r[1],t}function h(t,n,r){return t[0]=n[0]/r[0],t[1]=n[1]/r[1],t}function f(t,n,r){return t[0]=Math.max(n[0],r[0]),t[1]=Math.max(n[1],r[1]),t}function l(t,n,r,o){return t[0]=(0,e.qE)(n[0],r[0],o[0]),t[1]=(0,e.qE)(n[1],r[1],o[1]),t}function M(t,n){return t[0]=Math.round(n[0]),t[1]=Math.round(n[1]),t}function m(t,n,r){return t[0]=n[0]*r,t[1]=n[1]*r,t}function b(t,n,r,e){return t[0]=n[0]+r[0]*e,t[1]=n[1]+r[1]*e,t}function x(t,n){const r=n[0]-t[0],e=n[1]-t[1];return Math.sqrt(r*r+e*e)}function d(t,n){const r=n[0]-t[0],e=n[1]-t[1];return r*r+e*e}function g(t){const n=t[0],r=t[1];return Math.sqrt(n*n+r*r)}function I(t){const n=t[0],r=t[1];return n*n+r*r}function P(t,n){const r=n[0],e=n[1];let o=r*r+e*e;return o>0&&(o=1/Math.sqrt(o),t[0]=n[0]*o,t[1]=n[1]*o),t}function p(t,n){return t[0]*n[0]+t[1]*n[1]}function y(t,n,r,e){const o=n[0],u=n[1];return t[0]=o+e*(r[0]-o),t[1]=u+e*(r[1]-u),t}function v(t,n,r){const e=n[0],o=n[1];return t[0]=r[0]*e+r[2]*o+r[4],t[1]=r[1]*e+r[3]*o+r[5],t}function N(t,n,r,e){const o=n[0]-r[0],u=n[1]-r[1],a=Math.sin(e),c=Math.cos(e);return t[0]=o*c-u*a+r[0],t[1]=o*a+u*c+r[1],t}function S(t,n){return t[0]===n[0]&&t[1]===n[1]}function q(t,n){const r=t[0],e=t[1],u=n[0],a=n[1],c=(0,o.FD)();return Math.abs(r-u)<=c*Math.max(1,Math.abs(r),Math.abs(u))&&Math.abs(e-a)<=c*Math.max(1,Math.abs(e),Math.abs(a))}const R=g,E=s,z=i,T=h,_=x,k=d,A=I;Object.freeze(Object.defineProperty({__proto__:null,add:c,angle:function(t,n){const r=t[0],e=t[1],o=n[0],u=n[1];let a=r*r+e*e;a>0&&(a=1/Math.sqrt(a));let c=o*o+u*u;c>0&&(c=1/Math.sqrt(c));const s=(r*o+e*u)*a*c;return s>1?0:s<-1?Math.PI:Math.acos(s)},ceil:function(t,n){return t[0]=Math.ceil(n[0]),t[1]=Math.ceil(n[1]),t},clamp:l,copy:u,cross:function(t,n,r){const e=n[0]*r[1]-n[1]*r[0];return t[0]=t[1]=0,t[2]=e,t},dist:_,distance:x,div:T,divide:h,dot:p,equals:q,exactEquals:S,floor:function(t,n){return t[0]=Math.floor(n[0]),t[1]=Math.floor(n[1]),t},inverse:function(t,n){return t[0]=1/n[0],t[1]=1/n[1],t},len:R,length:g,lerp:y,max:f,min:function(t,n,r){return t[0]=Math.min(n[0],r[0]),t[1]=Math.min(n[1],r[1]),t},mul:z,multiply:i,negate:function(t,n){return t[0]=-n[0],t[1]=-n[1],t},normalize:P,projectAndScale:function(t,n,r,e,o){let u=n[0]-r[0],a=n[1]-r[1];const c=(e[0]*u+e[1]*a)*(o-1);return u=e[0]*c,a=e[1]*c,t[0]=n[0]+u,t[1]=n[1]+a,t},random:function(t,n=1){const r=2*(0,o.Ov)()*Math.PI;return t[0]=Math.cos(r)*n,t[1]=Math.sin(r)*n,t},rotate:N,round:M,scale:m,scaleAndAdd:b,set:a,sqrDist:k,sqrLen:A,squaredDistance:d,squaredLength:I,str:function(t){return"vec2("+t[0]+", "+t[1]+")"},sub:E,subtract:s,transformMat2:function(t,n,r){const e=n[0],o=n[1];return t[0]=r[0]*e+r[2]*o,t[1]=r[1]*e+r[3]*o,t},transformMat2d:v,transformMat3:function(t,n,r){const e=n[0],o=n[1];return t[0]=r[0]*e+r[3]*o+r[6],t[1]=r[1]*e+r[4]*o+r[7],t},transformMat4:function(t,n,r){const e=n[0],o=n[1];return t[0]=r[0]*e+r[4]*o+r[12],t[1]=r[1]*e+r[5]*o+r[13],t}},Symbol.toStringTag,{value:"Module"})),r.d(n,["Il",0,R,"jb",0,E,"xg",0,_])},51118(t,n,r){function e(t){const n=[];for(t.reset();t.nextPath();){const r=[];for(;t.nextPoint();){const n=[t.x,t.y];t.hasZ&&n.push(t.z),t.hasM&&n.push(t.m),r.push(n)}n.push(r)}return t.reset(),n}function o(t){const n=[];for(;t.nextPoint();)n.push([t.x,t.y]);return t.seekPathStart(),n}r.d(n,{A:()=>o,x:()=>e})},537(t,n,r){r.d(n,{B$:()=>x,LJ:()=>d,Pj:()=>P,Rg:()=>m,Yz:()=>g,z8:()=>b});var e=r(19419),o=r(79567),u=r(52006);function a(t){return void 0!==t.xmin&&void 0!==t.ymin&&void 0!==t.xmax&&void 0!==t.ymax}function c(t){return void 0!==t.points}function s(t){return void 0!==t.x&&void 0!==t.y}function i(t){return void 0!==t.paths}function h(t){return void 0!==t.rings}function f(t){return function(n,r){return null==n?r:null==r?n:t(n,r)}}const l=f(Math.min),M=f(Math.max);function m(t,n){return i(n)?g(t,n.curvePaths??n.paths,!1,!1)??t:h(n)?g(t,n.curveRings??n.rings,!1,!1)??t:c(n)?P(t,n.points,!1,!1,!1,!1):a(n)?I(t,n):(s(n)&&(t[0]=n.x,t[1]=n.y,t[2]=n.x,t[3]=n.y),t)}function b(t){let n,r,o,u;for(t.reset(),n=o=1/0,r=u=-1/0;t.nextPath();){const e=x(t);n=Math.min(e[0],n),o=Math.min(e[1],o),r=Math.max(e[2],r),u=Math.max(e[3],u)}return(0,e.vt)([n,o,r,u])}function x(t){let n,r,o,u;for(n=o=1/0,r=u=-1/0;t.nextPoint();)n=Math.min(t.x,n),o=Math.min(t.y,o),r=Math.max(t.x,r),u=Math.max(t.y,u);return(0,e.vt)([n,o,r,u])}function d(t,n){return i(n)?g(t,n.curvePaths??n.paths,!0,!1)??t:h(n)?g(t,n.curveRings??n.rings,!0,!1)??t:c(n)?P(t,n.points,!0,!1,!0,!1):a(n)?I(t,n,0,0,!0,!1):(s(n)&&(t[0]=n.x,t[1]=n.y,t[2]=n.z,t[3]=n.x,t[4]=n.y,t[5]=n.z),t)}function g(t,n,r,a){const c=r?3:2;if(!n.length||!n[0].length)return null;let s,i,h,f,[m,b]=(0,u.yP)(n[0][0]),x=m,d=b;for(let t=0;t<n.length;t++){const g=n[t];for(let t=0;t<g.length;t++){const n=(0,u.yP)(g[t]),[I,P]=n;if(m=l(m,I),b=l(b,P),x=M(x,I),d=M(d,P),r&&n.length>2){const t=n[2];s=l(s,t),i=M(i,t)}if(a&&n.length>c){const t=n[c];h=l(h,t),f=M(f,t)}const p=g[t];if((0,u.Xq)(p)||t<1)continue;const y=(0,u.yP)(g[t-1]),v=(0,e.fA)(m,b,x,d);[m,b,x,d]=(0,o.e)(v,y,p)}}return r?a?(t[0]=m,t[1]=b,t[2]=s,t[3]=h,t[4]=x,t[5]=d,t[6]=i,t[7]=f,t.length=8,t):(t[0]=m,t[1]=b,t[2]=s,t[3]=x,t[4]=d,t[5]=i,t.length=6,t):a?(t[0]=m,t[1]=b,t[2]=h,t[3]=x,t[4]=d,t[5]=f,t.length=6,t):(t[0]=m,t[1]=b,t[2]=x,t[3]=d,t.length=4,t)}function I(t,n,r,e,o,u){const a=n.xmin,c=n.xmax,s=n.ymin,i=n.ymax;let h=n.zmin,f=n.zmax,l=n.mmin,M=n.mmax;return o?(h=h||0,f=f||0,u?(l=l||0,M=M||0,t[0]=a,t[1]=s,t[2]=h,t[3]=l,t[4]=c,t[5]=i,t[6]=f,t[7]=M,t):(t[0]=a,t[1]=s,t[2]=h,t[3]=c,t[4]=i,t[5]=f,t)):u?(l=l||0,M=M||0,t[0]=a,t[1]=s,t[2]=l,t[3]=c,t[4]=i,t[5]=M,t):(t[0]=a,t[1]=s,t[2]=c,t[3]=i,t)}function P(t,n,r,e,o,u){const a=r?3:2,c=e&&u,s=r&&o;if(!n.length||!n[0].length)return null;let i,h,f,m,[b,x]=n[0],[d,g]=n[0];for(let t=0;t<n.length;t++){const r=n[t],[e,o]=r;if(b=l(b,e),x=l(x,o),d=M(d,e),g=M(g,o),s&&r.length>2){const t=r[2];i=l(i,t),h=M(h,t)}if(c&&r.length>a){const t=r[a];f=l(i,t),m=M(h,t)}}return o?(i=i||0,h=h||0,u?(f=f||0,m=m||0,t[0]=b,t[1]=x,t[2]=i,t[3]=f,t[4]=d,t[5]=g,t[6]=h,t[7]=m,t):(t[0]=b,t[1]=x,t[2]=i,t[3]=d,t[4]=g,t[5]=h,t)):u?(f=f||0,m=m||0,t[0]=b,t[1]=x,t[2]=f,t[3]=d,t[4]=g,t[5]=m,t):(t[0]=b,t[1]=x,t[2]=d,t[3]=g,t)}},12359(t,n,r){r.d(n,{IK:()=>h,TP:()=>f,Ve:()=>c,Z4:()=>u,l8:()=>a,w2:()=>i});var e=r(51118),o=r(95108);function u({xmin:t,xmax:n,ymin:r,ymax:e,zmin:o,zmax:u,hasZ:a}){const c=[(t+n)/2,(r+e)/2];return a&&c.push((o+u)/2),c}function a(t){return function(t,n){if(!t?.length)return null;const r=[],e=[],u=n?[1/0,-1/0,1/0,-1/0,1/0,-1/0]:[1/0,-1/0,1/0,-1/0];for(let r=0,o=t.length;r<o;r++){const o=s(t[r],n,u);o&&e.push(o)}if(e.sort((t,r)=>{let e=t[2]-r[2];return 0===e&&n&&(e=t[4]-r[4]),e}),e.length&&(r[0]=e[0][0],r[1]=e[0][1],n&&(r[2]=e[0][3]),(r[0]<u[0]||r[0]>u[1]||r[1]<u[2]||r[1]>u[3]||n&&(r[2]<u[4]||r[2]>u[5]))&&(r.length=0)),!r.length){const e=t[0]&&t[0].length?function(t,n){const r=n?[0,0,0]:[0,0],e=n?[0,0,0]:[0,0];let u=0,a=0,c=0,s=0;for(let i=0,h=t.length;i<h-1;i++){const h=t[i],f=t[i+1];if(h&&f){r[0]=h[0],r[1]=h[1],e[0]=f[0],e[1]=f[1],n&&h.length>2&&f.length>2&&(r[2]=h[2],e[2]=f[2]);const t=(0,o.R3)(r,e);if(t){u+=t;const r=(0,o.t9)(h,f);a+=t*r[0],c+=t*r[1],n&&r.length>2&&(s+=t*r[2])}}}return u>0?n?[a/u,c/u,s/u]:[a/u,c/u]:t.length?t[0]:null}(t[0],n):null;if(!e)return null;r[0]=e[0],r[1]=e[1],n&&e.length>2&&(r[2]=e[2])}return r}(t.rings,t.hasZ??!1)}function c(t){const n=a(t);if(!n)return null;const{hasZ:r,spatialReference:e}=t,[o,u,c]=n;return isNaN(o)||isNaN(u)||r&&isNaN(c)?null:{x:o,y:u,z:r?c:void 0,spatialReference:e}}function s(t,n,r){let e=0,o=0,u=0,a=0,c=0;const s=t.length?t[0][0]:0,i=t.length?t[0][1]:0,h=t.length&&n?t[0][2]:0;for(let f=0;f<t.length;f++){const l=t[f],M=t[(f+1)%t.length],[m,b,x]=l,d=m-s,g=b-i,[I,P,p]=M,y=I-s,v=P-i,N=d*v-y*g;if(a+=N,e+=(d+y)*N,o+=(g+v)*N,n&&l.length>2&&M.length>2){const t=x-h,n=p-h,r=d*n-y*t;u+=(t+n)*r,c+=r}m<r[0]&&(r[0]=m),m>r[1]&&(r[1]=m),b<r[2]&&(r[2]=b),b>r[3]&&(r[3]=b),n&&(x<r[4]&&(r[4]=x),x>r[5]&&(r[5]=x))}if(a>0&&(a*=-1),c>0&&(c*=-1),!a)return null;a*=.5,c*=.5;const f=[e/(6*a)+s,o/(6*a)+i,a];return n&&(r[4]===r[5]||0===c?(f[3]=(r[4]+r[5])/2,f[4]=0):(f[3]=u/(6*c)+h,f[4]=c)),f}function i(t,n){let r=0,e=0,o=0;t.nextPoint();const u=t.pathSize?t.x:0,a=t.pathSize?t.y:0;for(let c=0;c<t.pathSize;c++){t.seekInPath(c);const s=[t.x,t.y];t.seekInPath((c+1)%t.pathSize);const i=[t.x,t.y],[h,f]=s,l=h-u,M=f-a,[m,b]=i,x=m-u,d=b-a,g=l*d-x*M;o+=g,r+=(l+x)*g,e+=(M+d)*g,h<n[0]&&(n[0]=h),h>n[1]&&(n[1]=h),f<n[2]&&(n[2]=f),f>n[3]&&(n[3]=f)}return o>0&&(o*=-1),o?(o*=.5,[r/(6*o)+u,e/(6*o)+a,o]):null}function h(t){const{hasZ:n,totalSize:r}=t;if(0===r)return null;const u=[],a=[],c=n?[Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY]:[Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY];for(t.reset();t.nextPath();){const n=s((0,e.A)(t),t.hasZ,c);n&&a.push(n)}if(a.sort((t,r)=>{let e=t[2]-r[2];return 0===e&&n&&(e=t[4]-r[4]),e}),a.length&&(u[0]=a[0][0],u[1]=a[0][1],n&&(u[2]=a[0][3]),(u[0]<c[0]||u[0]>c[1]||u[1]<c[2]||u[1]>c[3]||n&&(u[2]<c[4]||u[2]>c[5]))&&(u.length=0)),!u.length){t.reset(),t.nextPath();const r=t.pathSize?function(t){const{hasZ:n}=t,r=n?[0,0,0]:[0,0],e=n?[0,0,0]:[0,0];let u=0,a=0,c=0,s=0;if(t.nextPoint()){let i=t.x,h=t.y,f=t.z;for(;t.nextPoint();){const l=t.x,M=t.y,m=t.z;r[0]=i,r[1]=h,e[0]=l,e[1]=M,n&&(r[2]=f,e[2]=m);const b=(0,o.R3)(r,e);if(b){u+=b;const t=(0,o.t9)(r,e);a+=b*t[0],c+=b*t[1],n&&t.length>2&&(s+=b*t[2])}i=l,h=M,f=m}}return u>0?n?[a/u,c/u,s/u]:[a/u,c/u]:t.pathSize?(t.seekPathStart(),t.nextPoint(),[t.x,t.y]):null}(t):null;if(!r)return null;u[0]=r[0],u[1]=r[1],n&&r.length>2&&(u[2]=r[2])}return u}function f(t){let n=0;for(t.reset();t.nextPath();)n+=t.getCurrentRingArea();if(n<1e-6){const n=h(t);return n?[n[0],n[1]]:null}const r=[0,0];if(t.reset(),!t.nextPath()||!t.nextPoint())return null;const e=[t.x,t.y];for(t.reset();t.nextPath();)M(r,e,t);return r[0]*=1/n,r[1]*=1/n,r[0]+=e[0],r[1]+=e[1],r}const l=1/3;function M(t,n,r){if(!t||!r||r.pathSize<3)return null;r.nextPoint();const e=r.x,o=r.y;r.nextPoint();let u,a=r.x-e,c=r.y-o,s=0,i=0;for(;r.nextPoint();)s=r.x-e,i=r.y-o,u=.5*l*(s*c-i*a),t[0]+=u*(a+s),t[1]+=u*(c+i),a=s,c=i;const h=r.getCurrentRingArea(),f=[e,o];return f[0]-=n[0],f[1]-=n[1],f[0]*=h,f[1]*=h,t[0]+=f[0],t[1]+=f[1],t}},95108(t,n,r){r.d(n,{$3:()=>h,Ng:()=>c,R3:()=>o,Xf:()=>a,Yl:()=>i,gR:()=>u,m3:()=>l,t9:()=>s});var e=r(4576);function o(t,n){const r=n[0]-t[0],e=n[1]-t[1];if(t.length>2&&n.length>2){const o=t[2]-n[2];return Math.sqrt(r*r+e*e+o*o)}return Math.sqrt(r*r+e*e)}function u(t,n,r,e){const[o,u]=n,[a,c]=r,[s,i]=e,h=s-a,f=i-c,l=h*h+f*f,M=(o-a)*h+(u-c)*f,m=Math.min(1,Math.max(0,M/l));return t[0]=a+h*m,t[1]=c+f*m,t}function a(t,n,r){let e,o,u,a,s=!1,i=1/0;for(r.reset();r.nextPath();)if(r.nextPoint())for(e=r.x,o=r.y;r.nextPoint();)u=r.x,a=r.y,o>n!=a>n&&t<(u-e)*(n-o)/(a-o)+e&&(s=!s),i=Math.min(i,c(t,n,e,o,u,a)),e=u,o=a;return 0===i?0:(s?1:-1)*Math.sqrt(i)}function c(t,n,r,e,o,u){let a=r,c=e,s=o-a,i=u-c;if(0!==s||0!==i){const r=((t-a)*s+(n-c)*i)/(s*s+i*i);r>1?(a=o,c=u):r>0&&(a+=s*r,c+=i*r)}return s=t-a,i=n-c,s*s+i*i}function s(t,n){return function(t,n,r){const e=t[0]+r*(n[0]-t[0]),o=t[1]+r*(n[1]-t[1]);return t.length>2&&n.length>2?[e,o,t[2]+r*(n[2]-t[2])]:[e,o]}(t,n,.5)}function i(t){const n=t.length;let r=0;for(let e=0;e<n-1;++e)r+=o(t[e],t[e+1]);return r}function h(t,n=0,r=1){let e=0;const o=t.length;let u=t[0];for(let a=1;a<o;a++){const o=t[a];e+=(o[n]-u[n])*(o[r]+u[r]),u=o}if(f(t)){const o=t[0];e+=(o[n]-u[n])*(o[r]+u[r])}return e>=0}function f(t){const n=t.length;return n>0&&!(0,e.aI)(t[0],t[n-1])}function l(t){if("rings"in t)for(const n of t.rings)f(n)&&n.push(n[0].slice())}r(52006)},4305(t,n,r){r.d(n,{B4:()=>s,jK:()=>h,lM:()=>l,m_:()=>f,ty:()=>m});var e=r(34727),o=(r(37585),r(19419)),u=r(15507);const a=[0,0];function c(t){const n=1-t,r=n*n,e=t*t;return[r*n,3*t*r,3*e*n,e*t]}function s(t,n,r,e,o){const[u,a,s,i]=c(o);return[t[0]*u+n[0]*a+r[0]*s+e[0]*i,t[1]*u+n[1]*a+r[1]*s+e[1]*i]}function i(t,n,r,e,o){const[u,a,s,i]=c(o);return t*u+n*a+r*s+e*i}function h(t,n,r){const e=t,[o,c,s]=n.b,i=(0,u.RS)([0,0],e,c,r),h=(0,u.RS)(a,c,s,r),f=(0,u.RS)([0,0],s,o,r),l=(0,u.RS)([0,0],i,h,r),M=(0,u.RS)([0,0],h,f,r);return[{b:[(0,u.RS)([],l,M,r),i,l]},{b:[[...o],M,f]}]}function f(t,n,r){const o=t,[a,c,i]=n.b,h=(0,u.R)(r,[.1,.5,.9],t=>{const n=1-t,[r,e]=s(o,c,i,a,t);return[r,e,3*n*n*(c[0]-o[0])+6*n*t*(i[0]-c[0])+3*t*t*(a[0]-i[0]),3*n*n*(c[1]-o[1])+6*n*t*(i[1]-c[1])+3*t*t*(a[1]-i[1]),6*n*(i[0]-2*c[0]+o[0])+6*t*(a[0]-2*i[0]+c[0]),6*n*(i[1]-2*c[1]+o[1])+6*t*(a[1]-2*i[1]+c[1])]}).map(t=>Math.min(1,Math.max(0,t)));h.push(0,1);let f=1/0;const l=h.map(t=>{const n=s(o,c,i,a,t),[e,u]=n,h=r[0]-e,l=r[1]-u,M=Math.sqrt(h*h+l*l);return f=Math.min(M,f),{t,curvePoint:n,distance:M}}),M=[];for(const t of l){const{t:n,distance:r}=t;(0,e.b6)(r,f)&&!M.some(({t})=>(0,e.Sp)(t,n))&&M.push(t)}return M}function l(t,n,r){const e=n,[u,a,c]=r.b;if((0,o.tK)(t,e),(0,o.tK)(t,u),(0,o.Rj)(t,a[0],a[1])&&(0,o.Rj)(t,c[0],c[1]))return t;for(const n of M(e[0],a[0],c[0],u[0]))n>0&&n<1&&(0,o.nw)(t,i(e[0],a[0],c[0],u[0],n));for(const n of M(e[1],a[1],c[1],u[1]))n>0&&n<1&&(0,o.IO)(t,i(e[1],a[1],c[1],u[1],n));return t}function M(t,n,r,e){const o=3*(3*(n-r)-t+e),u=6*(t-2*n+r),a=3*(n-t);if(0===o)return 0!==u?[-a/u]:[];const c=Math.sqrt(u*u-4*o*a);return[(-u+c)/(2*o),(-u-c)/(2*o)]}function m(t,n,r){let e=0,o=[n];for(let n=0;n<16;n++){let n=t;const a=[];for(const t of o)a.push(...h(n,t,.5)),n=t.b[0];o=a,n=t,e=0;let c=0;for(const t of o){const[r,o,a]=t.b,s=Math.sqrt((0,u.kb)(n,r));e+=(s+(Math.sqrt((0,u.kb)(n,o))+Math.sqrt((0,u.kb)(o,a))+Math.sqrt((0,u.kb)(a,r))))/2,c+=s,n=r}if(e-c<r)return e}return e}},513(t,n,r){r.d(n,{KP:()=>a,X0:()=>h,fM:()=>i,mq:()=>s,zW:()=>f});var e=r(19419),o=r(59803),u=r(15507);class a{constructor(t,n,r,e,o,u){this.cx=t,this.cy=n,this.radius=r,this.thetaStart=e,this.thetaEnd=o,this.isInvalid=u}get startPoint(){const{cx:t,cy:n,radius:r,thetaStart:e}=this;return[t+r*Math.cos(e),n+r*Math.sin(e)]}get endPoint(){const{cx:t,cy:n,radius:r,thetaEnd:e}=this;return[t+r*Math.cos(e),n+r*Math.sin(e)]}}function c(t,n){const{cx:r,cy:e,radius:o}=t;return[r+o*Math.cos(n),e+o*Math.sin(n)]}function s(t,n){if(t.isInvalid)return(0,u.RS)([0,0],t.startPoint,t.endPoint,n);const{thetaStart:r,thetaEnd:e}=t;return c(t,r*(1-n)+e*n)}function i(t,n){if(t.isInvalid)return(0,o.T)(t.startPoint,t.endPoint,n);const{cx:r,cy:e,thetaStart:a,thetaEnd:s}=t,[i,h]=n,f=(0,u.Pf)((0,u.yN)(a,s),Math.atan2(h-e,i-r)),l=c(t,f);return{t:(f-a)/(s-a),curvePoint:l,distance:Math.sqrt((0,u.kb)(n,l))}}function h(t,n){if(n.isInvalid)return(0,e.tK)(t,n.startPoint),(0,e.tK)(t,n.endPoint),t;const{cx:r,cy:o,radius:a,thetaStart:s,thetaEnd:i}=n;(0,e.tK)(t,c(n,s)),(0,e.tK)(t,c(n,i));const h=(0,u.yN)(s,i),f=Math.PI/2;let l=0;for(const n of[[r+a,o],[r,o+a],[r-a,o],[r,o-a]])l=(0,u.Cp)(h,l),l>h.min&&l<h.max&&(0,e.tK)(t,n),l+=f;return t}function f(t){if(t.isInvalid)return 2*t.radius;const{radius:n,thetaStart:r,thetaEnd:e}=t;return n*Math.abs(e-r)}},50954(t,n,r){r.d(n,{GX:()=>h,pM:()=>i});var e=r(77690),o=r(29242),u=(r(37585),r(513)),a=r(15507);const c=(0,o.vt)();function s(t,n,r){const[o,u]=t,[s,i]=n,[h,f]=r;(0,e.hZ)(c,o,s,h,u,i,f,1,1,1);const l=(0,e.a4)(c),M=4*l/((0,a.kb)(t,n)+(0,a.kb)(n,r)+(0,a.kb)(r,t));if(!isFinite(M)||Math.abs(M)<1e-8)return null;const m=o**2+u**2,b=s**2+i**2,x=h**2+f**2;(0,e.hZ)(c,m,b,x,u,i,f,1,1,1);const d=(0,e.a4)(c);return(0,e.hZ)(c,m,b,x,o,s,h,1,1,1),[d/l*.5,(0,e.a4)(c)/l*-.5]}function i(t,n){const[r,e]=n.c,o=s(t,e,r),c=null==o,i=o??(0,a.RS)([],t,r,.5),[h,f]=t,[l,M]=e,[m,b]=r,[x,d]=i,g=h-x,I=f-d,P=Math.sqrt(g*g+I*I),p=(0,a.t7)(f-d,h-x),y=(0,a.t7)(M-d,l-x);let v=(0,a.t7)(b-d,m-x);return(y-p)*(v-y)<0&&(v+=2*Math.sign(p-v)*Math.PI),new u.KP(x,d,P,p,v,c)}function h(t,n,r){const e=(0,u.mq)(t,r/2),o=(0,u.mq)(t,r),a=(0,u.mq)(t,(r+1)/2);return[{c:[o,e]},{c:[[...n.c[0]],a]}]}},79567(t,n,r){r.d(n,{e:()=>h});var e=r(19419),o=r(4305),u=r(513),a=r(50954),c=r(52006),s=r(49663),i=r(46068);function h(t,n,r){if((0,c.Xq)(r))return(0,e.tK)(t,n),(0,e.tK)(t,r),t;if((0,c.n1)(r))return(0,o.lM)(t,n,r);if((0,c.aO)(r)){const e=(0,a.pM)(n,r);return(0,u.X0)(t,e)}if((0,c.DA)(r)){const e=(0,s.io)(n,r);return(0,u.X0)(t,e)}return(0,i.DL)(t,n,r)}},52006(t,n,r){function e(t){return"curveRings"in t&&!!t.curveRings?.length||"curvePaths"in t&&!!t.curvePaths?.length}function o(t){return"curveRings"in t?t.curveRings:t.curvePaths}function u(t){return"b"in t}function a(t){return"c"in t}function c(t){return Array.isArray(t)}function s(t){return"a"in t}function i(t){return"a"in t&&4===t.a.length}function h(t){return"a"in t&&7===t.a.length}function f(t,n){return o(t).flat().some(t=>function(t,n){return!(c(t)||(u(t)?n.has("cubic-bezier"):a(t)?n.has("circular-arc"):!i(t)&&!h(t)||n.has("elliptic-arc")))}(t,n))}function l(t){return c(t)?t:u(t)?t.b[0]:a(t)?t.c[0]:t.a[0]}function M(t){if(u(t)){const[n,r,e]=t.b;return{b:[[...n],[...r],[...e]]}}if(a(t)){const[n,r]=t.c;return{c:[[...n],[...r]]}}if(c(t))return[...t];if(i(t)){const[n,r,e,o]=t.a;return{a:[[...n],[...r],e,o]}}if(h(t)){const[n,r,e,o,u,a,c]=t.a;return{a:[[...n],[...r],e,o,u,a,c]}}return t}r.d(n,{DA:()=>i,Ed:()=>e,FD:()=>o,FG:()=>s,V8:()=>f,Xq:()=>c,aO:()=>a,n1:()=>u,tk:()=>M,wY:()=>h,yP:()=>l}),r(4576)},49663(t,n,r){r.d(n,{io:()=>a,xG:()=>c});var e=r(34727),o=(r(37585),r(513)),u=r(15507);function a(t,n){const[r,a,c,s]=n.a,[i,h]=t,[f,l]=r,[M,m]=a,b=i-M,x=h-m,d=Math.sqrt(b*b+x*x),g=f-M,I=l-m,P=Math.sqrt(g*g+I*I),p=0===d||0===P||!(0,e.b6)(d,P),y=d,[v,N]=(0,u.Gz)((0,u.t7)(h-m,i-M),Math.atan2(l-m,f-M),c,s);return new o.KP(M,m,y,v,N,p)}function c(t,n,r){const{cx:e,cy:u,thetaStart:a,thetaEnd:c}=t,[s,i,h,f]=n.a,l=a*(1-r)+c*r;return[{a:[(0,o.mq)(t,r),[e,u],Math.abs(l-a)<Math.PI?1:0,f]},{a:[[...s],[e,u],Math.abs(c-l)<Math.PI?1:0,f]}]}},46068(t,n,r){r.d(n,{DL:()=>M,ED:()=>f,SW:()=>s,Uk:()=>h,pb:()=>l,xm:()=>m}),r(77690);var e=r(29242),o=(r(37585),r(19419)),u=r(52006),a=r(15507);class c{constructor(t,n,r,e,o,u,a,c,s){this.cx=t,this.cy=n,this.a=r,this.b=e,this.cosR=o,this.sinR=u,this.u1=a,this.u2=c,this.isInvalid=s}}function s(t,n){const[r,e,o,u,s,i,h]=n.a,[f,l]=t,[M,m]=r,[b,x]=e,d=i*h,g=Math.cos(s),I=Math.sin(s),[P,p]=(0,a.Gz)((0,a.t7)(1/d*(l-x)*g-1/d*(f-b)*I,1/i*(l-x)*I+1/i*(f-b)*g),Math.atan2(1/d*(m-x)*g-1/d*(M-b)*I,1/i*(m-x)*I+1/i*(M-b)*g),o,u);return new c(b,x,i,d,g,I,P,p,0===i||0===d)}function i(t,n){const{a:r,b:e,cosR:o,sinR:u,cx:a,cy:c}=t,s=Math.cos(n),i=Math.sin(n);return[r*s*o-e*i*u+a,r*s*u+e*i*o+c]}function h(t,n){const{u1:r,u2:e}=t;return i(t,r*(1-n)+e*n)}function f(t,n,r){if(r<0||r>1)return[];if(0===r||1===r)return[(0,u.tk)(n)];const[e,[o,a],c,s,i,f,l]=n.a,{u1:M,u2:m}=t,b=M*(1-r)+m*r;return[{a:[[...h(t,r)],[o,a],Math.abs(b-M)<Math.PI?1:0,s,i,f,l]},{a:[[...e],[o,a],Math.abs(m-b)<Math.PI?1:0,s,i,f,l]}]}function l(t,n){const{a:r,b:e,cosR:o,sinR:u,u1:c,u2:s}=t,h=Math.PI/6,f=(0,a.R)(n,[1*h,2*h,4*h,5*h,7*h,8*h,10*h,11*h],n=>{const a=Math.cos(n),c=Math.sin(n),[s,h]=i(t,n);return[s,h,-r*o*c-e*u*a,-r*u*c+e*o*a,-r*o*a+e*u*c,-r*u*a-e*o*c]}),l=(0,a.yN)(c,s),M=new Set(f.map(t=>(0,a.Cp)(l,t)).filter(t=>t>l.min&&t<l.max));M.add(c),M.add(s);let m,b,x=1/0;for(const r of M){const e=i(t,r),[o,u]=e,a=n[0]-o,h=n[1]-u,f=a*a+h*h;f<x&&(m=(r-c)/(s-c),b=e,x=f)}return{t:m,curvePoint:b,distance:Math.sqrt(x)}}function M(t,n,r){const e=s(n,r),{a:u,b:c,u1:h,u2:f,cosR:l,sinR:M,isInvalid:m}=e,b=r.a[0];if((0,o.tK)(t,n),(0,o.tK)(t,b),m)return t;const x=Math.atan2(-c*M,u*l),d=x+Math.PI,g=Math.atan2(c*l,u*M),I=g+Math.PI,P=(0,a.yN)(h,f);for(const n of[x,d,g,I].map(t=>(0,a.Cp)(P,t)))n>P.min&&n<P.max&&(0,o.tK)(t,i(e,n));return t}function m(t,n,r){const[e,o,u,c,f,l,M]=n.a,m=s(t,n),{u1:b,u2:x,isInvalid:d}=m,g=x-b;if(d)return Math.sqrt((0,a.kb)(t,e));const I=[0,0];let P=0,p=[h(m,0),h(m,.25),h(m,.5),h(m,.75),h(m,1)];for(let t=0;t<14;t++){const t=p.length-1,n=g/(2*t),e=[];for(let r=0;r<t;r++)e.push(p[r]),e.push(i(m,b+(2*r+1)*n));e.push(p[p.length-1]),p=e,P=0;let u=0;for(let t=1;t<p.length;t++){const n=p[t-1],r=p[t];if(P+=Math.sqrt((0,a.kb)(n,r)),t>1){const e=p[t-2],c=(0,a.M_)(I,e,n,o,r);u+=c?Math.sqrt((0,a.kb)(n,c)):Math.abs(r[0]-n[0])+Math.abs(r[1]-n[1])}else u+=P}if(u-P<r)return P}return P}(0,e.vt)(),(0,e.vt)(),(0,e.vt)(),(0,e.vt)()},59803(t,n,r){r.d(n,{T:()=>u});var e=r(34727),o=r(15507);function u(t,n,r){const[u,a]=t,[c,s]=n,[i,h]=r,[f,l]=[c-u,s-a];let M=f*(i-u)+l*(h-a);M/=f**2+l**2,M=isNaN(M)?0:(0,e.qE)(M,0,1);const m=(0,o.RS)([0,0],t,n,M);return{t:M,curvePoint:m,distance:Math.sqrt((0,o.kb)(m,r))}}},15507(t,n,r){r.d(n,{Cp:()=>b,Gz:()=>m,M_:()=>s,Pf:()=>x,R:()=>d,RS:()=>u,kb:()=>a,t7:()=>h,yE:()=>c,yN:()=>M});var e=r(34727),o=r(37585);function u(t,n,r,e){return t[0]=n[0]*(1-e)+r[0]*e,t[1]=n[1]*(1-e)+r[1]*e,t}function a(t,n){return(0,o.hG)(t,n)}function c(t,n,r){const e=a(n,r);if(0===e)return a(n,t);const o=(n[0]-t[0])*(r[1]-t[1])-(n[1]-t[1])*(r[0]-t[0]);return o*o/e}function s(t,n,r,e,o){const[u,a]=n,[c,s]=r,[i,h]=e,[f,l]=o,M=(u-c)*(h-l)-(a-s)*(i-f);if(0===M)return null;const m=(u*s-a*c)*(i-f)-(u-c)*(i*l-h*f),b=(u*s-a*c)*(h-l)-(a-s)*(i*l-h*f);return t[0]=m/M,t[1]=b/M,t}const i=2*Math.PI;function h(t,n){const r=Math.atan2(t,n);return r<0?r+i:r}function f(t){return Math.abs(t)%i}function l(t){const n=f(t);return n<Math.PI?n:i-n}function M(t,n){return{min:Math.min(t,n),max:Math.max(t,n)}}function m(t,n,r,o){if((0,e.Sp)(f(t-n),0))return r?[t,t]:[t,o?t-i:t+i];const[u,a]=o?[t-i,t]:[t,t+i];return[t,b({min:u,max:a},n)]}function b({min:t,max:n},r){let e;return e=n-r,e>=i?(e-=e%i,r+e):(e=r-t,e>=i?(e-=e%i,r-e):r)}function x(t,n){const r=b(t,n);return r>t.min&&r<t.max?r:l(r-t.min)<l(r-t.max)?t.min:t.max}function d(t,n,r,e=10){return n.map(n=>{let o=n;for(let n=0;n<e;n++){const[n,e,u,a,c,s]=r(o),i=t[0]-n,h=t[1]-e,f=-u,l=-a;o+=-(2*i*f+2*h*l)/(2*f*f+2*i*-c+2*l*l+2*h*-s||1e-6)}return o})}}}]);