@arcgis/core 5.1.0-next.102 → 5.1.0-next.103

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 (659) hide show
  1. package/applications/Components/imageryUtils.d.ts +22 -1
  2. package/applications/Components/imageryUtils.js +1 -1
  3. package/arcade/Dictionary.js +1 -1
  4. package/arcade/Feature.js +1 -1
  5. package/arcade/Pixel.js +1 -1
  6. package/arcade/Voxel.js +1 -1
  7. package/arcade/arcade.js +1 -1
  8. package/arcade/arcadeAsyncRuntime.js +1 -1
  9. package/arcade/arcadeCompiler.js +1 -1
  10. package/arcade/arcadeRuntime.js +1 -1
  11. package/arcade/containerUtils.js +1 -1
  12. package/arcade/debug.js +1 -1
  13. package/arcade/deepClone.js +1 -1
  14. package/arcade/featureSetUtils.js +1 -1
  15. package/arcade/featureset/actions/GroupBy.js +1 -1
  16. package/arcade/featureset/actions/OrderBy.js +1 -1
  17. package/arcade/functions/convertdirection.js +1 -1
  18. package/arcade/functions/date.js +1 -1
  19. package/arcade/functions/feature.js +1 -1
  20. package/arcade/functions/featuresetbase.js +1 -1
  21. package/arcade/functions/featuresetgeom.js +1 -1
  22. package/arcade/functions/featuresetstats.js +1 -1
  23. package/arcade/functions/featuresetstring.js +1 -1
  24. package/arcade/functions/fieldStats.js +1 -1
  25. package/arcade/functions/geomasync.js +1 -1
  26. package/arcade/functions/geometry.js +1 -1
  27. package/arcade/functions/geomsync.js +1 -1
  28. package/arcade/functions/knowledgegraph.js +1 -1
  29. package/arcade/functions/maths.js +1 -1
  30. package/arcade/functions/stats.js +1 -1
  31. package/arcade/functions/string.js +1 -1
  32. package/arcade/functions/track.js +1 -1
  33. package/arcade/geometry/constructors.js +1 -1
  34. package/arcade/geometry/functions.js +1 -1
  35. package/arcade/geometry/operators.js +1 -1
  36. package/arcade/languageUtils.js +1 -1
  37. package/assets/esri/core/workers/RemoteClient.js +1 -1
  38. package/assets/esri/core/workers/chunks/{92e7067960549733f8e6.js → 037b36d415ae27e987f9.js} +1 -1
  39. package/assets/esri/core/workers/chunks/{58579c53be1a44bd08d2.js → 054ae729e7cefa2c7778.js} +1 -1
  40. package/assets/esri/core/workers/chunks/069459519477bb3dc91b.js +1 -0
  41. package/assets/esri/core/workers/chunks/{4301cb9670fa7c907460.js → 0881929a4a457f94f317.js} +1 -1
  42. package/assets/esri/core/workers/chunks/{abdf146b35e179b5b245.js → 0cb8bc6dbbbe3b212712.js} +1 -1
  43. package/assets/esri/core/workers/chunks/{b811d62284be95f4beb6.js → 0cc74bc3772be51cabc1.js} +1 -1
  44. package/assets/esri/core/workers/chunks/{0630ce1975c91ae362d9.js → 0e9804ece1fd2d59751b.js} +1 -1
  45. package/assets/esri/core/workers/chunks/{545c38789267e3487dbd.js → 10491b5b106bc5ad0b2b.js} +1 -1
  46. package/assets/esri/core/workers/chunks/12053c1213465d07d2f6.js +1 -0
  47. package/assets/esri/core/workers/chunks/{ca6c128940ddbebcaaab.js → 14b7b55c42af65ffa024.js} +1 -1
  48. package/assets/esri/core/workers/chunks/{702e8468836863abd81b.js → 15fa8b5b472131aaa68e.js} +1 -1
  49. package/assets/esri/core/workers/chunks/{852f4cd514008fee5a55.js → 176e676879666f784599.js} +1 -1
  50. package/assets/esri/core/workers/chunks/18201119828664373165.js +1 -0
  51. package/assets/esri/core/workers/chunks/1a3426276dc82a8a80f2.js +1 -0
  52. package/assets/esri/core/workers/chunks/{ce3e51c799a80648e46d.js → 1c0e8808d14d8e6dde2c.js} +1 -1
  53. package/assets/esri/core/workers/chunks/{e86c073f0b6d395c7a38.js → 1c83e61fd9a4f8fc8372.js} +1 -1
  54. package/assets/esri/core/workers/chunks/1cb0c4fc315bbc2bd00b.js +1 -0
  55. package/assets/esri/core/workers/chunks/{5afee66e182f79a0fc46.js → 1ff61d8a8ea060e78b83.js} +1 -1
  56. package/assets/esri/core/workers/chunks/{4faaf61d20e20fcf6c18.js → 23119a1b1310b7dab2aa.js} +1 -1
  57. package/assets/esri/core/workers/chunks/{031ea31bbdb7f1be791e.js → 276cb6a1cdd26d0e1444.js} +1 -1
  58. package/assets/esri/core/workers/chunks/{fdb7851e98e8d2ba48d3.js → 286bf3be9f524bde9529.js} +1 -1
  59. package/assets/esri/core/workers/chunks/{55ccb8ed7325efb62091.js → 29b00d07d3e1d095c590.js} +2 -2
  60. package/assets/esri/core/workers/chunks/{9d8e7839772029d83c93.js → 29bbc0d6d847b065d10e.js} +1 -1
  61. package/assets/esri/core/workers/chunks/{1ba37706e5d5eaabcb8e.js → 2a5f6a8d282f2c391591.js} +1 -1
  62. package/assets/esri/core/workers/chunks/{15a65aa6969c1b383ce2.js → 2f903bd3a2611e7f0946.js} +1 -1
  63. package/assets/esri/core/workers/chunks/{b803e7b0d489bb628d72.js → 2f925a424b60b4a5e8e5.js} +1 -1
  64. package/assets/esri/core/workers/chunks/30e191d36aa95823c018.js +1 -0
  65. package/assets/esri/core/workers/chunks/{4b19acf8bde5b2e80692.js → 313a89b334e3518d30a4.js} +1 -1
  66. package/assets/esri/core/workers/chunks/{390717f079def83a0d9c.js → 31a8bc25aa1441c70caa.js} +1 -1
  67. package/assets/esri/core/workers/chunks/31c01885ee6d70a2bde2.js +1 -0
  68. package/assets/esri/core/workers/chunks/3292b3883f203637b5a7.js +1 -0
  69. package/assets/esri/core/workers/chunks/{9bb2251ba58932f85d13.js → 33329f5d88e60b4ec568.js} +1 -1
  70. package/assets/esri/core/workers/chunks/{8f9117d589de7caaa02d.js → 35bbd63319d8aa9f31cc.js} +1 -1
  71. package/assets/esri/core/workers/chunks/35fdd62277fd06468a29.js +2 -0
  72. package/assets/esri/core/workers/chunks/{3996149146dd1eca7cc5.js → 38d7430d2370b69334d7.js} +1 -1
  73. package/assets/esri/core/workers/chunks/3aebbed6d4fd1b993a35.js +1 -0
  74. package/assets/esri/core/workers/chunks/3f1d533efe4300d19e6a.js +1 -0
  75. package/assets/esri/core/workers/chunks/{7db09c5bf024242becfa.js → 40caf5e09e4382d81104.js} +5 -5
  76. package/assets/esri/core/workers/chunks/4213aa844900fcf95287.js +1 -0
  77. package/assets/esri/core/workers/chunks/{bc6a809a965355eb425f.js → 44636ef119c6a576470b.js} +1 -1
  78. package/assets/esri/core/workers/chunks/453c9e8d438d061e1736.js +1 -0
  79. package/assets/esri/core/workers/chunks/479e34b0abc10499bd3a.js +1 -0
  80. package/assets/esri/core/workers/chunks/{54dad475dc806a38c287.js → 48440a071a37590846ff.js} +1 -1
  81. package/assets/esri/core/workers/chunks/{fa9ab152ea785b5e97e0.js → 4a41f98210f1da3b5041.js} +1 -1
  82. package/assets/esri/core/workers/chunks/4a65bc9091d7ea7e80df.js +1 -0
  83. package/assets/esri/core/workers/chunks/4cdf80e2e60501dd4756.js +1 -0
  84. package/assets/esri/core/workers/chunks/51edfe21d4c6ee22c83d.js +1 -0
  85. package/assets/esri/core/workers/chunks/52219561c144e5cb4442.js +1 -0
  86. package/assets/esri/core/workers/chunks/{312036c89a6a09bb06c2.js → 5570d47533efab56c732.js} +1 -1
  87. package/assets/esri/core/workers/chunks/{5abe34bb0110694f7b42.js → 566c36032b456ec5b5d7.js} +1 -1
  88. package/assets/esri/core/workers/chunks/{34207774bc371e95ba3c.js → 56b6b68d9459b1edea43.js} +1 -1
  89. package/assets/esri/core/workers/chunks/593772bd8b19ac664b29.js +1 -0
  90. package/assets/esri/core/workers/chunks/{10ce083b38ccfa88f766.js → 594e1f633527749d92d7.js} +1 -1
  91. package/assets/esri/core/workers/chunks/{ad329226c8b579d0964c.js → 5a6523c903b11dea77d4.js} +1 -1
  92. package/assets/esri/core/workers/chunks/5c44638670e40e092ce3.js +1 -0
  93. package/assets/esri/core/workers/chunks/{af8bc56cf1404afc3028.js → 5d60253ea3d247cdb3d1.js} +1 -1
  94. package/assets/esri/core/workers/chunks/5dc86a3a40d16b576bb5.js +1 -0
  95. package/assets/esri/core/workers/chunks/601edefd8da4eb2eda28.js +1 -0
  96. package/assets/esri/core/workers/chunks/6182d39e2095d4460b88.js +1 -0
  97. package/assets/esri/core/workers/chunks/{c798a40418e7ff38042a.js → 63513e706fe55a1def15.js} +1 -1
  98. package/assets/esri/core/workers/chunks/{d8d338665fe00494c826.js → 660713adb5a845dfa2ef.js} +1 -1
  99. package/assets/esri/core/workers/chunks/694f9571e2723d3d4b02.js +1 -0
  100. package/assets/esri/core/workers/chunks/69ad5930ff6040c6c561.js +1 -0
  101. package/assets/esri/core/workers/chunks/{f563dd6cace047108b3c.js → 6b5d2df9123dfe7e00b3.js} +1 -1
  102. package/assets/esri/core/workers/chunks/{5217d676749bca59d90f.js → 6c79e8e840c1d027fbb2.js} +1 -1
  103. package/assets/esri/core/workers/chunks/{2ce845c990bb4d701362.js → 6ca81e34854ce7ec6f6e.js} +1 -1
  104. package/assets/esri/core/workers/chunks/{11a99ee68409a641810e.js → 6f02681bcaa9bef501fc.js} +1 -1
  105. package/assets/esri/core/workers/chunks/77ac243d4dcd901c2eec.js +1 -0
  106. package/assets/esri/core/workers/chunks/78af4b7a379c40f497a7.js +1 -0
  107. package/assets/esri/core/workers/chunks/{bf706a5d065a357de51b.js → 79b64a52ff57c40c7800.js} +1 -1
  108. package/assets/esri/core/workers/chunks/{475409026288f0981ce2.js → 7b3642195d6d3ea9b830.js} +1 -1
  109. package/assets/esri/core/workers/chunks/{82b2acc6f181927de89c.js → 7bc746ea17f4e336e0b0.js} +1 -1
  110. package/assets/esri/core/workers/chunks/{19fcc74d34cbbaa56a41.js → 7c86099ed17f420b0489.js} +1 -1
  111. package/assets/esri/core/workers/chunks/{6f96ce41c47cae82e687.js → 7d571845292b1b7769c2.js} +1 -1
  112. package/assets/esri/core/workers/chunks/7dafe608c224b9d48ffa.js +1 -0
  113. package/assets/esri/core/workers/chunks/7e203e947846d40f897e.js +1 -0
  114. package/assets/esri/core/workers/chunks/855bf811cd79b97c169a.js +1 -0
  115. package/assets/esri/core/workers/chunks/{7601278ebced0c0c31cf.js → 85bba0db8a7a5fc1be44.js} +1 -1
  116. package/assets/esri/core/workers/chunks/{a318cf6bb900e0ee268c.js → 881234f25c7814de8753.js} +1 -1
  117. package/assets/esri/core/workers/chunks/895114ccd2603830960f.js +1 -0
  118. package/assets/esri/core/workers/chunks/8a68884d40f6f6de1d12.js +1 -0
  119. package/assets/esri/core/workers/chunks/{0d81409721d29d8bc276.js → 8a7682071941c35f05c1.js} +1 -1
  120. package/assets/esri/core/workers/chunks/8aac1155b8ac071cd2ad.js +1 -0
  121. package/assets/esri/core/workers/chunks/{3e2953ea62817e75d840.js → 8cbaaea72f4ca2f023be.js} +1 -1
  122. package/assets/esri/core/workers/chunks/{1faa8a42d5a437fc40a3.js → 8e986167d4a393ee41ea.js} +1 -1
  123. package/assets/esri/core/workers/chunks/8fdd57e2a0af647f1e3e.js +1 -0
  124. package/assets/esri/core/workers/chunks/92db9a6d273ae2862883.js +1 -0
  125. package/assets/esri/core/workers/chunks/{9b23d999db902d25ba58.js → 9373daa677dc767d7cf0.js} +1 -1
  126. package/assets/esri/core/workers/chunks/{bb5512ecb5300d45d46b.js → 9542ef3f6c2bc7c14d85.js} +1 -1
  127. package/assets/esri/core/workers/chunks/{86bff154d46f8a562887.js → 95798e3de3419fdda6ac.js} +1 -1
  128. package/assets/esri/core/workers/chunks/{aad02c7417648d881129.js → 958617c3a9854ea04e06.js} +1 -1
  129. package/assets/esri/core/workers/chunks/{a28124bba6b43efd74cc.js → 95df6d2ebacc43ac5fa3.js} +1 -1
  130. package/assets/esri/core/workers/chunks/{f618ee43581e8de6ad0c.js → 970e91de5dfbbc247afb.js} +1 -1
  131. package/assets/esri/core/workers/chunks/978b7d10054e17161145.js +1 -0
  132. package/assets/esri/core/workers/chunks/{8a48a6760c33ed50b650.js → 98b4408e12684e37b395.js} +1 -1
  133. package/assets/esri/core/workers/chunks/9d70247d820085a2c190.js +1 -0
  134. package/assets/esri/core/workers/chunks/9da2f2b67837b491cfa3.js +1 -0
  135. package/assets/esri/core/workers/chunks/{edee616b6f1b5be8fd39.js → a0296e6d6c37b861c5fb.js} +1 -1
  136. package/assets/esri/core/workers/chunks/{c19e3f6027b6526de359.js → a02ebdcb802d128c8eee.js} +1 -1
  137. package/assets/esri/core/workers/chunks/a0aaf14c8f9a007d88ac.js +1 -0
  138. package/assets/esri/core/workers/chunks/{1523883460874c352e36.js → a29cd1f5c7bb4f6a5a4f.js} +1 -1
  139. package/assets/esri/core/workers/chunks/{cf826787ab8d4b27ad80.js → a53a3e5548fef65a2710.js} +1 -1
  140. package/assets/esri/core/workers/chunks/{91f9e0e3662d4bf9f163.js → a913a1c83a667ed0e711.js} +1 -1
  141. package/assets/esri/core/workers/chunks/{359465b9726edcc70c83.js → a9c9c00432ee41ec91ba.js} +1 -1
  142. package/assets/esri/core/workers/chunks/{a3a28c4887f802e8d96d.js → aa55923ca939a0d4606c.js} +1 -1
  143. package/assets/esri/core/workers/chunks/{d3b086eb9aa8c7d09048.js → aea8e0577fb48d5c9577.js} +1 -1
  144. package/assets/esri/core/workers/chunks/af45110f07e4b5162bae.js +1 -0
  145. package/assets/esri/core/workers/chunks/{76589434d573111a8fb4.js → b09ae8eb5e97fb27382f.js} +1 -1
  146. package/assets/esri/core/workers/chunks/b0c647af49c9d563b852.js +1 -0
  147. package/assets/esri/core/workers/chunks/{a320998f18922a35899f.js → b32a13972cb3de652339.js} +1 -1
  148. package/assets/esri/core/workers/chunks/b432a5a829e309837db6.js +1 -0
  149. package/assets/esri/core/workers/chunks/{9103eb0b9078019d3a26.js → b5d0898406c7d6e6a717.js} +1 -1
  150. package/assets/esri/core/workers/chunks/b640651c7d86cfe654bf.js +1 -0
  151. package/assets/esri/core/workers/chunks/{503439246250d9e1cbd5.js → b75e090a7e935ff870a3.js} +1 -1
  152. package/assets/esri/core/workers/chunks/{c321bcda8e8893577948.js → b8dda9e55caba0e2b4c2.js} +1 -1
  153. package/assets/esri/core/workers/chunks/{59a64d72eed8c40c63cf.js → bacf0c9d5d3e084dea61.js} +1 -1
  154. package/assets/esri/core/workers/chunks/{fa38dc5010f8630a80fe.js → bb04aff0b4947408592c.js} +1 -1
  155. package/assets/esri/core/workers/chunks/{5663df3cd1dfd4b43c73.js → bff0c4094c14cb97b18f.js} +1 -1
  156. package/assets/esri/core/workers/chunks/{47dd2bfecc5c4b5f10f0.js → c0d7e4afbad0b20e2502.js} +1 -1
  157. package/assets/esri/core/workers/chunks/c13c532fe38ddc5d7ca6.js +1 -0
  158. package/assets/esri/core/workers/chunks/{cc62e5095e328bed3e01.js → c1ffb879e0283fb2815f.js} +1 -1
  159. package/assets/esri/core/workers/chunks/{9e7c84a3a2abec4d49df.js → c476f4979048e558baa7.js} +89 -76
  160. package/assets/esri/core/workers/chunks/c8b96104641cb4afd4df.js +1 -0
  161. package/assets/esri/core/workers/chunks/{19a9a555365a8363d34b.js → c91d4f1b42cfe474df52.js} +1 -1
  162. package/assets/esri/core/workers/chunks/{6ae2408ac075b974e887.js → cb26966cc205bd338c76.js} +1 -1
  163. package/assets/esri/core/workers/chunks/{c452c74ba9de218c3e57.js → cb3004998eff7c60930e.js} +1 -1
  164. package/assets/esri/core/workers/chunks/cc48354c54358777e996.js +1 -0
  165. package/assets/esri/core/workers/chunks/{b1b8a7c00ec4d998ab84.js → cc8d55d1830d7542c3f5.js} +1 -1
  166. package/assets/esri/core/workers/chunks/ce0c7070eeb723a718e7.js +1 -0
  167. package/assets/esri/core/workers/chunks/ce3b5b83237cf37ff523.js +1 -0
  168. package/assets/esri/core/workers/chunks/cf3c0bee919bb509cd4f.js +1 -0
  169. package/assets/esri/core/workers/chunks/cf9b0ba30a75c030ca92.js +1 -0
  170. package/assets/esri/core/workers/chunks/d00b9c1fd0865bf8f317.js +1 -0
  171. package/assets/esri/core/workers/chunks/{9a29b7f9e6281ee40c37.js → d4749eb8a47869477037.js} +1 -1
  172. package/assets/esri/core/workers/chunks/d5423df247be82fa085a.js +1 -0
  173. package/assets/esri/core/workers/chunks/d610f517fb3c6cb24365.js +1 -0
  174. package/assets/esri/core/workers/chunks/{47656ec12401e53f4bd3.js → d9d716bfd0aab30b6caf.js} +1 -1
  175. package/assets/esri/core/workers/chunks/da4f7d7099ba88f31f45.js +1 -0
  176. package/assets/esri/core/workers/chunks/dbb1ac41fd5da4fd849b.js +1 -0
  177. package/assets/esri/core/workers/chunks/{176dd195f77b98cb0b0f.js → dd58bc675b85b4d90afa.js} +1 -1
  178. package/assets/esri/core/workers/chunks/e2bb95d601789bbda73b.js +1 -0
  179. package/assets/esri/core/workers/chunks/{f018ad451ee072253a1e.js → e4b2120d7ee1c998b1fc.js} +1 -1
  180. package/assets/esri/core/workers/chunks/e4c350dc65aae121171d.js +1 -0
  181. package/assets/esri/core/workers/chunks/e8518bd3596543b387f8.js +1 -0
  182. package/assets/esri/core/workers/chunks/{f948e4a80a7dbda70f2e.js → e973cab79ec2541cb81b.js} +1 -1
  183. package/assets/esri/core/workers/chunks/{7d6299ab7b0db23ab961.js → eb1d6614eeac6d26bb9c.js} +1 -1
  184. package/assets/esri/core/workers/chunks/f1bb426400dac02880f1.js +1 -0
  185. package/assets/esri/core/workers/chunks/{ffcd4fca7f67e1f943f1.js → f239a8ecad8b692d5eaa.js} +1 -1
  186. package/assets/esri/core/workers/chunks/{de11ebcea2b8f9dfe65d.js → f3161c47a572194f6017.js} +1 -1
  187. package/assets/esri/core/workers/chunks/{f66262f8582909157f01.js → f37be7e517f0892014e3.js} +1 -1
  188. package/assets/esri/core/workers/chunks/{119b84f5349f90d1dd28.js → f3a9100518b044e79501.js} +1 -1
  189. package/assets/esri/core/workers/chunks/f3f984c62311c20a9db8.js +1 -0
  190. package/assets/esri/core/workers/chunks/{85e65ced3312bf9cf162.js → f7e386ece75afb6e4be5.js} +1 -1
  191. package/assets/esri/core/workers/chunks/f8b884b529064df4a30a.js +1 -0
  192. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_ar.json +1 -1
  193. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_bg.json +1 -1
  194. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_bs.json +1 -1
  195. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_ca.json +1 -1
  196. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_cs.json +1 -1
  197. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_da.json +1 -1
  198. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_de.json +1 -1
  199. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_el.json +1 -1
  200. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_es.json +1 -1
  201. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_et.json +1 -1
  202. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_fi.json +1 -1
  203. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_fr.json +1 -1
  204. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_he.json +1 -1
  205. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_hr.json +1 -1
  206. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_hu.json +1 -1
  207. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_id.json +1 -1
  208. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_it.json +1 -1
  209. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_ja.json +1 -1
  210. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_ko.json +1 -1
  211. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_lt.json +1 -1
  212. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_lv.json +1 -1
  213. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_nl.json +1 -1
  214. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_no.json +1 -1
  215. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_pl.json +1 -1
  216. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_pt-BR.json +1 -1
  217. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_pt-PT.json +1 -1
  218. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_ro.json +1 -1
  219. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_ru.json +1 -1
  220. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_sk.json +1 -1
  221. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_sl.json +1 -1
  222. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_sr.json +1 -1
  223. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_sv.json +1 -1
  224. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_th.json +1 -1
  225. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_tr.json +1 -1
  226. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_uk.json +1 -1
  227. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_vi.json +1 -1
  228. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_zh-CN.json +1 -1
  229. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_zh-HK.json +1 -1
  230. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_zh-TW.json +1 -1
  231. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer.json +1 -1
  232. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_en.json +1 -1
  233. package/assets/esri/widgets/VideoPlayer/t9n/VideoPlayer_ar.json +1 -1
  234. package/assets/esri/widgets/VideoPlayer/t9n/VideoPlayer_bg.json +1 -1
  235. package/assets/esri/widgets/VideoPlayer/t9n/VideoPlayer_bs.json +1 -1
  236. package/assets/esri/widgets/VideoPlayer/t9n/VideoPlayer_ca.json +1 -1
  237. package/assets/esri/widgets/VideoPlayer/t9n/VideoPlayer_cs.json +1 -1
  238. package/assets/esri/widgets/VideoPlayer/t9n/VideoPlayer_da.json +1 -1
  239. package/assets/esri/widgets/VideoPlayer/t9n/VideoPlayer_de.json +1 -1
  240. package/assets/esri/widgets/VideoPlayer/t9n/VideoPlayer_el.json +1 -1
  241. package/assets/esri/widgets/VideoPlayer/t9n/VideoPlayer_es.json +1 -1
  242. package/assets/esri/widgets/VideoPlayer/t9n/VideoPlayer_et.json +1 -1
  243. package/assets/esri/widgets/VideoPlayer/t9n/VideoPlayer_fi.json +1 -1
  244. package/assets/esri/widgets/VideoPlayer/t9n/VideoPlayer_fr.json +1 -1
  245. package/assets/esri/widgets/VideoPlayer/t9n/VideoPlayer_he.json +1 -1
  246. package/assets/esri/widgets/VideoPlayer/t9n/VideoPlayer_hr.json +1 -1
  247. package/assets/esri/widgets/VideoPlayer/t9n/VideoPlayer_hu.json +1 -1
  248. package/assets/esri/widgets/VideoPlayer/t9n/VideoPlayer_id.json +1 -1
  249. package/assets/esri/widgets/VideoPlayer/t9n/VideoPlayer_it.json +1 -1
  250. package/assets/esri/widgets/VideoPlayer/t9n/VideoPlayer_ja.json +1 -1
  251. package/assets/esri/widgets/VideoPlayer/t9n/VideoPlayer_ko.json +1 -1
  252. package/assets/esri/widgets/VideoPlayer/t9n/VideoPlayer_lt.json +1 -1
  253. package/assets/esri/widgets/VideoPlayer/t9n/VideoPlayer_lv.json +1 -1
  254. package/assets/esri/widgets/VideoPlayer/t9n/VideoPlayer_nl.json +1 -1
  255. package/assets/esri/widgets/VideoPlayer/t9n/VideoPlayer_no.json +1 -1
  256. package/assets/esri/widgets/VideoPlayer/t9n/VideoPlayer_pl.json +1 -1
  257. package/assets/esri/widgets/VideoPlayer/t9n/VideoPlayer_pt-BR.json +1 -1
  258. package/assets/esri/widgets/VideoPlayer/t9n/VideoPlayer_pt-PT.json +1 -1
  259. package/assets/esri/widgets/VideoPlayer/t9n/VideoPlayer_ro.json +1 -1
  260. package/assets/esri/widgets/VideoPlayer/t9n/VideoPlayer_ru.json +1 -1
  261. package/assets/esri/widgets/VideoPlayer/t9n/VideoPlayer_sk.json +1 -1
  262. package/assets/esri/widgets/VideoPlayer/t9n/VideoPlayer_sl.json +1 -1
  263. package/assets/esri/widgets/VideoPlayer/t9n/VideoPlayer_sr.json +1 -1
  264. package/assets/esri/widgets/VideoPlayer/t9n/VideoPlayer_sv.json +1 -1
  265. package/assets/esri/widgets/VideoPlayer/t9n/VideoPlayer_th.json +1 -1
  266. package/assets/esri/widgets/VideoPlayer/t9n/VideoPlayer_tr.json +1 -1
  267. package/assets/esri/widgets/VideoPlayer/t9n/VideoPlayer_uk.json +1 -1
  268. package/assets/esri/widgets/VideoPlayer/t9n/VideoPlayer_vi.json +1 -1
  269. package/assets/esri/widgets/VideoPlayer/t9n/VideoPlayer_zh-CN.json +1 -1
  270. package/assets/esri/widgets/VideoPlayer/t9n/VideoPlayer_zh-HK.json +1 -1
  271. package/assets/esri/widgets/VideoPlayer/t9n/VideoPlayer_zh-TW.json +1 -1
  272. package/chunks/AtmosphereCompositing.glsl.js +1 -1
  273. package/chunks/Bufferer-Dw9Qi4T1.js +1 -1
  274. package/chunks/Centroid-DZi-eb9F.js +1 -1
  275. package/chunks/Clouds.glsl.js +1 -1
  276. package/chunks/Compositing.glsl.js +1 -1
  277. package/chunks/CutFillComposition.glsl.js +1 -1
  278. package/chunks/CutFillDepth.glsl.js +1 -1
  279. package/chunks/CutFillMask.glsl.js +1 -1
  280. package/chunks/CutFillReduction.glsl.js +1 -1
  281. package/chunks/CutFillTargetDepth.glsl.js +1 -1
  282. package/chunks/Distance2DCalculator-CXhBP-8I.js +1 -1
  283. package/chunks/Envelope.js +1 -1
  284. package/chunks/Envelope2D.js +1 -1
  285. package/chunks/FlatGeometry.js +1 -1
  286. package/chunks/FocusAreaColor.glsl.js +1 -1
  287. package/chunks/FocusAreaMask.glsl.js +1 -1
  288. package/chunks/Fog.glsl.js +1 -1
  289. package/chunks/GaussianSplat.glsl.js +1 -1
  290. package/chunks/GaussianSplatShadow.glsl.js +1 -1
  291. package/chunks/GeodeticDistanceCalculator-Ce-woMPw.js +1 -1
  292. package/chunks/GeodeticUtils.js +1 -1
  293. package/chunks/Geometry.js +1 -1
  294. package/chunks/GeometryCleaner-BEJM7I4l.js +1 -1
  295. package/chunks/GlobalIllumination.glsl.js +1 -1
  296. package/chunks/GlobalIlluminationBlur.glsl.js +1 -1
  297. package/chunks/GlobalIlluminationUpscale.glsl.js +80 -65
  298. package/chunks/GlowBlur.glsl.js +1 -1
  299. package/chunks/GlowComposition.glsl.js +1 -1
  300. package/chunks/HazeCompositing.glsl.js +1 -1
  301. package/chunks/HighlightBlur.glsl.js +1 -1
  302. package/chunks/HighlightDownsample.glsl.js +1 -1
  303. package/chunks/Magnifier.glsl.js +1 -1
  304. package/chunks/MultiPathImpl.js +1 -1
  305. package/chunks/NoiseTextureAtlas.glsl.js +1 -1
  306. package/chunks/OITBlend.glsl.js +2 -2
  307. package/chunks/OITBlendEmission.glsl.js +1 -1
  308. package/chunks/OITDimOpaque.glsl.js +1 -1
  309. package/chunks/OperatorClip.js +1 -1
  310. package/chunks/OperatorCrosses.js +1 -1
  311. package/chunks/OperatorCut.js +1 -1
  312. package/chunks/OperatorDensify.js +1 -1
  313. package/chunks/OperatorGeneralize.js +1 -1
  314. package/chunks/OperatorGeodesicBuffer.js +1 -1
  315. package/chunks/OperatorGeodeticArea.js +1 -1
  316. package/chunks/OperatorGeodeticDensifyByLength.js +1 -1
  317. package/chunks/OperatorGeodeticDistance.js +1 -1
  318. package/chunks/OperatorGeodeticLength.js +1 -1
  319. package/chunks/OperatorIntegrate.js +1 -1
  320. package/chunks/OperatorIntersects.js +1 -1
  321. package/chunks/OperatorMultiPartToSinglePart.js +1 -1
  322. package/chunks/OperatorOverlaps.js +1 -1
  323. package/chunks/OperatorProject.js +1 -1
  324. package/chunks/OperatorProximity.js +1 -1
  325. package/chunks/OperatorProximityGeodesic.js +1 -1
  326. package/chunks/OperatorShapePreservingDensify.js +1 -1
  327. package/chunks/OperatorShapePreservingLength.js +1 -1
  328. package/chunks/OperatorShapePreservingProject.js +1 -1
  329. package/chunks/OperatorSimplifyOGC.js +1 -1
  330. package/chunks/OperatorTouches.js +1 -1
  331. package/chunks/OperatorWithin.js +1 -1
  332. package/chunks/OverlayCompositing.glsl.js +1 -1
  333. package/chunks/Point2D.js +1 -1
  334. package/chunks/PointRenderer.glsl.js +1 -1
  335. package/chunks/ProjectionTransformation.js +1 -1
  336. package/chunks/RasterColorizer.glsl.js +1 -1
  337. package/chunks/ShadowCastAccumulate.glsl.js +1 -1
  338. package/chunks/ShadowCastVisualize.glsl.js +2 -2
  339. package/chunks/SideCalculator2D-BNwb5gvz.js +1 -1
  340. package/chunks/SimpleAtmosphere.glsl.js +1 -1
  341. package/chunks/SpatialReference.js +1 -1
  342. package/chunks/Terrain.glsl.js +1 -1
  343. package/chunks/Texture.glsl.js +1 -1
  344. package/chunks/Transformation2D.js +1 -1
  345. package/chunks/Viewshed.glsl.js +1 -1
  346. package/chunks/aiServices.js +1 -1
  347. package/chunks/arcade.js +1 -1
  348. package/chunks/array.js +1 -1
  349. package/chunks/boundedPlane.js +1 -1
  350. package/chunks/constants.js +1 -1
  351. package/chunks/containsOperator.js +1 -1
  352. package/chunks/disjointOperator.js +1 -1
  353. package/chunks/distanceOperator.js +1 -1
  354. package/chunks/equalsOperator.js +1 -1
  355. package/chunks/languageUtils.js +1 -1
  356. package/chunks/pe.js +1 -1
  357. package/chunks/persistableUrlUtils.js +1 -1
  358. package/chunks/relateOperator.js +1 -1
  359. package/chunks/symmetricDifferenceOperator.js +1 -1
  360. package/chunks/unionOperator.js +1 -1
  361. package/chunks/vec2.js +1 -1
  362. package/chunks/vec3.js +1 -1
  363. package/chunks/vec4.js +1 -1
  364. package/config.js +1 -1
  365. package/core/accessorSupport/decorators/persistable.js +1 -1
  366. package/effects/FocusArea.js +1 -1
  367. package/geometry/coordinateFormatter.js +1 -1
  368. package/geometry/operators/extendOperator.js +1 -1
  369. package/geometry/operators/gx/geodeticUtils.js +1 -1
  370. package/geometry/operators/gx/operatorAffineTransform.js +1 -1
  371. package/geometry/operators/gx/operatorAlphaShape.js +1 -1
  372. package/geometry/operators/gx/operatorAutoComplete.js +1 -1
  373. package/geometry/operators/gx/operatorBoundary.js +1 -1
  374. package/geometry/operators/gx/operatorBuffer.js +1 -1
  375. package/geometry/operators/gx/operatorConvexHull.js +1 -1
  376. package/geometry/operators/gx/operatorDifference.js +1 -1
  377. package/geometry/operators/gx/operatorGeodesicBuffer.js +1 -1
  378. package/geometry/operators/gx/operatorGeodeticArea.js +1 -1
  379. package/geometry/operators/gx/operatorGeodeticDensify.js +1 -1
  380. package/geometry/operators/gx/operatorGeodeticDistance.js +1 -1
  381. package/geometry/operators/gx/operatorGeodeticLength.js +1 -1
  382. package/geometry/operators/gx/operatorGraphicBuffer.js +1 -1
  383. package/geometry/operators/gx/operatorIntersection.js +1 -1
  384. package/geometry/operators/gx/operatorLabelPoint.js +1 -1
  385. package/geometry/operators/gx/operatorLinesToPolygons.js +1 -1
  386. package/geometry/operators/gx/operatorLocateBetween.js +1 -1
  387. package/geometry/operators/gx/operatorMinimumBoundingCircle.js +1 -1
  388. package/geometry/operators/gx/operatorOffset.js +1 -1
  389. package/geometry/operators/gx/operatorPolygonOverlay.js +1 -1
  390. package/geometry/operators/gx/operatorPolygonSlicer.js +1 -1
  391. package/geometry/operators/gx/operatorProject.js +1 -1
  392. package/geometry/operators/gx/operatorProximityGeodesic.js +1 -1
  393. package/geometry/operators/gx/operatorShapePreservingProject.js +1 -1
  394. package/geometry/operators/gx/operatorSimplify.js +1 -1
  395. package/geometry/operators/gx/operatorSinglePartToMultiPart.js +1 -1
  396. package/geometry/operators/gx/operatorSymmetricDifference.js +1 -1
  397. package/geometry/operators/gx/operatorUnion.js +1 -1
  398. package/geometry/operators/isNearOperator.js +1 -1
  399. package/geometry/operators/json/containsOperator.js +1 -1
  400. package/geometry/operators/json/disjointOperator.js +1 -1
  401. package/geometry/operators/locateBetweenOperator.js +1 -1
  402. package/geometry/operators/reshapeOperator.js +1 -1
  403. package/geometry/operators/support/apiConverter.js +1 -1
  404. package/geometry/operators/support/geographicTransformationUtils.js +1 -1
  405. package/geometry/operators/support/initNoPeFactory.js +1 -1
  406. package/geometry/operators/support/jsonConverter.js +1 -1
  407. package/geometry/operators/support/projectionTransformation.js +1 -1
  408. package/geometry/operators/symmetricDifferenceOperator.js +1 -1
  409. package/geometry/operators/unionOperator.js +1 -1
  410. package/geometry/pe.js +1 -1
  411. package/geometry/support/MeshTexture.js +1 -1
  412. package/geometry/support/boundedPlane.js +1 -1
  413. package/geometry/support/buffer/math/vec3.js +1 -1
  414. package/geometry/support/buffer/math/vec4.js +1 -1
  415. package/geometry/support/buffer/utils/vec2.js +1 -1
  416. package/geometry/support/coordinateSystem.js +1 -1
  417. package/geometry/support/meshUtils/extent.js +1 -1
  418. package/geometry/support/meshUtils/loadGLTFMesh.js +1 -1
  419. package/geometry/support/meshUtils/projection.js +1 -1
  420. package/geometry/support/meshUtils/vertexSpaceConversion.js +1 -1
  421. package/geometry/support/spatialReferenceUtils.js +1 -1
  422. package/geometry/support/vcsData.js +1 -1
  423. package/kernel.js +1 -1
  424. package/layers/ImageryTileLayer.js +1 -1
  425. package/layers/IntegratedMesh3DTilesLayer.js +1 -1
  426. package/layers/IntegratedMeshLayer.js +1 -1
  427. package/layers/KnowledgeGraphLayer.js +1 -1
  428. package/layers/knowledgeGraph/KnowledgeGraphLayerDataManager.js +1 -1
  429. package/layers/knowledgeGraph/cypherUtils.js +1 -1
  430. package/layers/mixins/ArcGISImageService.js +1 -1
  431. package/layers/mixins/FeatureLayerBase.d.ts +12 -0
  432. package/layers/mixins/FeatureLayerBase.js +1 -1
  433. package/layers/orientedImagery/transformations/utils.js +1 -1
  434. package/layers/raster/datasets/ImageAuxRaster.js +1 -1
  435. package/layers/raster/formats/RasterCodec.js +1 -1
  436. package/layers/raster/functions/rasterProjectionHelper.js +1 -1
  437. package/layers/support/ImageElement.js +1 -1
  438. package/layers/support/ParquetFilesData.js +1 -1
  439. package/layers/support/SceneFilter.js +1 -1
  440. package/layers/support/Sublayer.d.ts +25 -0
  441. package/layers/support/Sublayer.js +1 -1
  442. package/linkChart/LinkChartProperties.js +1 -1
  443. package/linkChart/utils.js +1 -1
  444. package/package.json +2 -2
  445. package/portal/PortalItem.js +1 -1
  446. package/renderers/UniqueValueRenderer.js +1 -1
  447. package/rest/knowledgeGraphService.js +1 -1
  448. package/support/arcadeUtils.js +1 -1
  449. package/support/persistableUrlUtils.js +1 -1
  450. package/support/revision.js +1 -1
  451. package/symbols/Symbol3D.js +1 -1
  452. package/symbols/support/IconSymbol3DLayerResource.js +1 -1
  453. package/symbols/support/urlUtils.js +1 -1
  454. package/symbols/support/webStyleSymbolUtils.js +1 -1
  455. package/third-party-notices.txt +184 -0
  456. package/views/2d/ViewStateManager.js +1 -1
  457. package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
  458. package/views/2d/interactive/editingTools/TransformTool.js +1 -1
  459. package/views/2d/interactive/editingTools/manipulations/ScaleManipulation.js +1 -1
  460. package/views/3d/analysis/ShadowCastAnalysisView3D.js +1 -1
  461. package/views/3d/analysis/Slice/SliceController.js +1 -1
  462. package/views/3d/analysis/Slice/SliceTool.js +1 -1
  463. package/views/3d/analysis/Slice/sliceToolUtils.js +1 -1
  464. package/views/3d/analysis/Viewshed/ViewshedFieldOfViewManipulation.js +1 -1
  465. package/views/3d/analysis/Viewshed/ViewshedScaleOrientManipulation.js +1 -1
  466. package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementCutFillController.js +1 -1
  467. package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementCutFillVisualization.js +1 -1
  468. package/views/3d/focusAreaUtils.js +1 -1
  469. package/views/3d/interactive/editingTools/transform/extentTransform/ExtentRotate.js +1 -1
  470. package/views/3d/interactive/editingTools/transform/extentTransform/ExtentScale.js +1 -1
  471. package/views/3d/interactive/editingTools/transform/extentTransform/extentUtils.js +1 -1
  472. package/views/3d/layers/SceneLayerWorker.js +1 -1
  473. package/views/3d/layers/graphics/Deconflictor.js +1 -1
  474. package/views/3d/layers/graphics/Graphics3DExtrudeSymbolLayer.js +1 -1
  475. package/views/3d/layers/graphics/Graphics3DMeshFillSymbolLayer.js +1 -1
  476. package/views/3d/layers/graphics/GraphicsDeconflictor.js +1 -1
  477. package/views/3d/layers/graphics/objectResourceUtils.js +1 -1
  478. package/views/3d/layers/i3s/PointCloudRenderer.js +1 -1
  479. package/views/3d/layers/i3s/meshUtils.js +1 -1
  480. package/views/3d/state/ScreenSizePerspective.js +1 -1
  481. package/views/3d/support/ViewSlice.js +1 -1
  482. package/views/3d/terrain/OverlayRenderer.js +1 -1
  483. package/views/3d/terrain/RasterColorizer.glsl.js +1 -1
  484. package/views/3d/terrain/RasterTile.js +1 -1
  485. package/views/3d/terrain/TerrainRenderer.js +1 -1
  486. package/views/3d/webgl-engine/collections/Component/ComponentObjectCollection.js +1 -1
  487. package/views/3d/webgl-engine/core/shaderLibrary/shading/GlobalIlluminationWeights.glsl.js +3 -5
  488. package/views/3d/webgl-engine/effects/atmosphere/ChapmanAtmosphere.js +1 -1
  489. package/views/3d/webgl-engine/effects/atmosphere/LocalAtmosphere.js +1 -1
  490. package/views/3d/webgl-engine/effects/atmosphere/MarsAtmosphere.js +1 -1
  491. package/views/3d/webgl-engine/effects/atmosphere/SimpleAtmosphere.glsl.js +1 -1
  492. package/views/3d/webgl-engine/effects/blit/Blit.js +1 -1
  493. package/views/3d/webgl-engine/effects/clouds/Clouds.glsl.js +1 -1
  494. package/views/3d/webgl-engine/effects/clouds/CloudsRenderer.js +1 -1
  495. package/views/3d/webgl-engine/effects/clouds/CloudsTechnique.js +1 -1
  496. package/views/3d/webgl-engine/effects/clouds/NoiseTextureAtlas.glsl.js +1 -1
  497. package/views/3d/webgl-engine/effects/clouds/NoiseTextureAtlas.js +1 -1
  498. package/views/3d/webgl-engine/effects/clouds/NoiseTextureAtlasTechnique.js +1 -1
  499. package/views/3d/webgl-engine/effects/focusArea/FocusAreaColor.glsl.js +1 -1
  500. package/views/3d/webgl-engine/effects/focusArea/FocusAreaColorNode.js +1 -1
  501. package/views/3d/webgl-engine/effects/focusArea/FocusAreaColorTechnique.js +1 -1
  502. package/views/3d/webgl-engine/effects/focusArea/FocusAreaMask.glsl.js +1 -1
  503. package/views/3d/webgl-engine/effects/focusArea/FocusAreaMaskNode.js +1 -1
  504. package/views/3d/webgl-engine/effects/focusArea/FocusAreaMaskTechnique.js +1 -1
  505. package/views/3d/webgl-engine/effects/fog/Fog.glsl.js +1 -1
  506. package/views/3d/webgl-engine/effects/fog/Fog.js +1 -1
  507. package/views/3d/webgl-engine/effects/fog/FogTechnique.js +1 -1
  508. package/views/3d/webgl-engine/effects/globalIllumination/GlobalIllumination.glsl.js +1 -1
  509. package/views/3d/webgl-engine/effects/globalIllumination/GlobalIllumination.js +1 -1
  510. package/views/3d/webgl-engine/effects/globalIllumination/GlobalIlluminationBlur.glsl.js +1 -1
  511. package/views/3d/webgl-engine/effects/globalIllumination/GlobalIlluminationBlurTechnique.js +1 -1
  512. package/views/3d/webgl-engine/effects/globalIllumination/GlobalIlluminationTechnique.js +1 -1
  513. package/views/3d/webgl-engine/effects/globalIllumination/GlobalIlluminationTechniqueConfiguration.js +1 -1
  514. package/views/3d/webgl-engine/effects/globalIllumination/GlobalIlluminationUpscale.glsl.js +1 -1
  515. package/views/3d/webgl-engine/effects/globalIllumination/GlobalIlluminationUpscaleTechnique.js +1 -1
  516. package/views/3d/webgl-engine/effects/glow/Glow.js +1 -1
  517. package/views/3d/webgl-engine/effects/glow/GlowBlur.glsl.js +1 -1
  518. package/views/3d/webgl-engine/effects/glow/GlowBlurTechnique.js +1 -1
  519. package/views/3d/webgl-engine/effects/glow/GlowComposition.glsl.js +1 -1
  520. package/views/3d/webgl-engine/effects/glow/GlowCompositionTechnique.js +1 -1
  521. package/views/3d/webgl-engine/effects/haze/Haze.js +1 -1
  522. package/views/3d/webgl-engine/effects/haze/HazeCompositing.glsl.js +1 -1
  523. package/views/3d/webgl-engine/effects/haze/HazeCompositingTechnique.js +1 -1
  524. package/views/3d/webgl-engine/effects/highlight/Highlight.js +1 -1
  525. package/views/3d/webgl-engine/effects/highlight/HighlightBlur.glsl.js +1 -1
  526. package/views/3d/webgl-engine/effects/highlight/HighlightBlurTechnique.js +1 -1
  527. package/views/3d/webgl-engine/effects/highlight/HighlightDownsample.glsl.js +1 -1
  528. package/views/3d/webgl-engine/effects/highlight/HighlightDownsampleTechnique.js +1 -1
  529. package/views/3d/webgl-engine/effects/magnifier/Magnifier.glsl.js +1 -1
  530. package/views/3d/webgl-engine/effects/magnifier/Magnifier.js +1 -1
  531. package/views/3d/webgl-engine/effects/magnifier/MagnifierTechnique.js +1 -1
  532. package/views/3d/webgl-engine/effects/transparency/OITBlend.glsl.js +1 -1
  533. package/views/3d/webgl-engine/effects/transparency/OITBlend.js +1 -1
  534. package/views/3d/webgl-engine/effects/transparency/OITBlendTechnique.js +1 -1
  535. package/views/3d/webgl-engine/effects/transparency/OITDimOpaque.glsl.js +1 -1
  536. package/views/3d/webgl-engine/effects/transparency/OITDimOpaqueTechnique.js +1 -1
  537. package/views/3d/webgl-engine/lib/Compositor.js +1 -1
  538. package/views/3d/webgl-engine/lib/CutFillComputationRenderNode.js +1 -1
  539. package/views/3d/webgl-engine/lib/CutFillVisualizationRenderNode.js +1 -1
  540. package/views/3d/webgl-engine/lib/GaussianSplatRenderNode.js +1 -1
  541. package/views/3d/webgl-engine/lib/GaussianSplatShadowRenderNode.js +1 -1
  542. package/views/3d/webgl-engine/lib/ShadowAccumulator.js +1 -1
  543. package/views/3d/webgl-engine/lib/ShadowCastRenderer.js +1 -1
  544. package/views/3d/webgl-engine/lib/SliceHelper.js +1 -1
  545. package/views/3d/webgl-engine/lib/Texture.glsl.js +1 -1
  546. package/views/3d/webgl-engine/lib/TextureTechnique.js +1 -1
  547. package/views/3d/webgl-engine/lib/Viewshed.js +1 -1
  548. package/views/3d/webgl-engine/lib/intersectorUtils.js +1 -1
  549. package/views/3d/webgl-engine/shaders/AtmosphereCompositing.glsl.js +1 -1
  550. package/views/3d/webgl-engine/shaders/AtmosphereCompositingTechnique.js +1 -1
  551. package/views/3d/webgl-engine/shaders/Compositing.glsl.js +1 -1
  552. package/views/3d/webgl-engine/shaders/CompositingTechnique.js +1 -1
  553. package/views/3d/webgl-engine/shaders/CutFillComposition.glsl.js +1 -1
  554. package/views/3d/webgl-engine/shaders/CutFillCompositionTechnique.js +1 -1
  555. package/views/3d/webgl-engine/shaders/CutFillDepth.glsl.js +1 -1
  556. package/views/3d/webgl-engine/shaders/CutFillDepthTechnique.js +1 -1
  557. package/views/3d/webgl-engine/shaders/CutFillMask.glsl.js +1 -1
  558. package/views/3d/webgl-engine/shaders/CutFillMaskTechnique.js +1 -1
  559. package/views/3d/webgl-engine/shaders/CutFillReduction.glsl.js +1 -1
  560. package/views/3d/webgl-engine/shaders/CutFillReductionTechnique.js +1 -1
  561. package/views/3d/webgl-engine/shaders/CutFillTargetDepth.glsl.js +1 -1
  562. package/views/3d/webgl-engine/shaders/CutFillTargetDepthTechnique.js +1 -1
  563. package/views/3d/webgl-engine/shaders/GaussianSplat.glsl.js +1 -1
  564. package/views/3d/webgl-engine/shaders/GaussianSplatShadow.glsl.js +1 -1
  565. package/views/3d/webgl-engine/shaders/GaussianSplatShadowTechnique.js +1 -1
  566. package/views/3d/webgl-engine/shaders/GaussianSplatTechnique.js +1 -1
  567. package/views/3d/webgl-engine/shaders/OverlayCompositing.glsl.js +1 -1
  568. package/views/3d/webgl-engine/shaders/OverlayCompositingTechnique.js +1 -1
  569. package/views/3d/webgl-engine/shaders/PointRenderer.glsl.js +1 -1
  570. package/views/3d/webgl-engine/shaders/PointRendererTechnique.js +1 -1
  571. package/views/3d/webgl-engine/shaders/ShadowCastAccumulate.glsl.js +1 -1
  572. package/views/3d/webgl-engine/shaders/ShadowCastAccumulateTechnique.js +1 -1
  573. package/views/3d/webgl-engine/shaders/ShadowCastMaskTechnique.js +1 -1
  574. package/views/3d/webgl-engine/shaders/ShadowCastVisualize.glsl.js +1 -1
  575. package/views/3d/webgl-engine/shaders/ShadowCastVisualizeTechnique.js +1 -1
  576. package/views/3d/webgl-engine/shaders/Terrain.glsl.js +1 -1
  577. package/views/3d/webgl-engine/shaders/TerrainTechnique.js +1 -1
  578. package/views/3d/webgl-engine/shaders/Viewshed.glsl.js +1 -1
  579. package/views/3d/webgl-engine/shaders/ViewshedTechnique.js +1 -1
  580. package/views/interactive/editGeometry/support/editPlaneUtils.js +1 -1
  581. package/views/interactive/snapping/featureSources/featureServiceSource/tileUtils.js +1 -1
  582. package/webdoc/support/webdocSaveUtils.js +1 -1
  583. package/widgets/Attachments.d.ts +0 -1
  584. package/widgets/BuildingExplorer/BuildingLevelPicker/BuildingLevelPicker.js +1 -1
  585. package/widgets/BuildingExplorer/BuildingLevelPicker/constants.js +1 -1
  586. package/widgets/Features.d.ts +1 -1
  587. package/widgets/LayerList/LayerListItem.js +1 -1
  588. package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
  589. package/widgets/OrientedImageryViewer/services/SuperimposeService.js +1 -1
  590. package/widgets/OrientedImageryViewer/support/superimposeUtils.js +1 -1
  591. package/widgets/OrientedImageryViewer.js +1 -1
  592. package/widgets/Popup.d.ts +2 -24
  593. package/widgets/ShadowCast/ShadowCastViewModel.js +1 -1
  594. package/widgets/TableList/support/tableListUtils.js +1 -1
  595. package/widgets/TableList.js +1 -1
  596. package/widgets/support/ContingentValuesManager.js +1 -1
  597. package/assets/esri/core/workers/chunks/09630888267cde87654f.js +0 -1
  598. package/assets/esri/core/workers/chunks/0d9d33f29124d464a4cb.js +0 -1
  599. package/assets/esri/core/workers/chunks/0e333f1bce992508b68a.js +0 -1
  600. package/assets/esri/core/workers/chunks/0fa207c68dfd7ddee160.js +0 -1
  601. package/assets/esri/core/workers/chunks/13838b6c045425e73cf8.js +0 -1
  602. package/assets/esri/core/workers/chunks/15167eeb6d7dbe7e392d.js +0 -1
  603. package/assets/esri/core/workers/chunks/177472a6a9beb1590934.js +0 -1
  604. package/assets/esri/core/workers/chunks/1d0f9f147bfa00b38d48.js +0 -1
  605. package/assets/esri/core/workers/chunks/1d54b71c43d9d6a5f713.js +0 -1
  606. package/assets/esri/core/workers/chunks/1f6b7626f333809837ef.js +0 -1
  607. package/assets/esri/core/workers/chunks/24646a1176ce34039155.js +0 -1
  608. package/assets/esri/core/workers/chunks/268ed861c882740c805b.js +0 -1
  609. package/assets/esri/core/workers/chunks/2b52c1c01cf568ba01fb.js +0 -1
  610. package/assets/esri/core/workers/chunks/3116a1c2b67a296ba86e.js +0 -1
  611. package/assets/esri/core/workers/chunks/32c17c299c7622ae0d71.js +0 -1
  612. package/assets/esri/core/workers/chunks/34f79355145c8e4c59dd.js +0 -1
  613. package/assets/esri/core/workers/chunks/3be111488365768fd917.js +0 -1
  614. package/assets/esri/core/workers/chunks/3f0483cbcd893acf240c.js +0 -1
  615. package/assets/esri/core/workers/chunks/40d251b6b42a41d68bd2.js +0 -1
  616. package/assets/esri/core/workers/chunks/4a23b27bfbcfa08fd9a7.js +0 -1
  617. package/assets/esri/core/workers/chunks/4c54cb80c4dc9bbbd395.js +0 -1
  618. package/assets/esri/core/workers/chunks/598271956c46e21e5c09.js +0 -1
  619. package/assets/esri/core/workers/chunks/5b6f2bfdcdd207d8ae42.js +0 -1
  620. package/assets/esri/core/workers/chunks/5bc299f7f89a07a6e6a6.js +0 -1
  621. package/assets/esri/core/workers/chunks/5c7ba4b8a9ec2e2e02b5.js +0 -1
  622. package/assets/esri/core/workers/chunks/60915a3708a34da1977e.js +0 -1
  623. package/assets/esri/core/workers/chunks/61c523dd9d8027922465.js +0 -1
  624. package/assets/esri/core/workers/chunks/65520a443e3811255bea.js +0 -1
  625. package/assets/esri/core/workers/chunks/671826fe25105aedcce4.js +0 -1
  626. package/assets/esri/core/workers/chunks/6b79c254897ece95b7a3.js +0 -1
  627. package/assets/esri/core/workers/chunks/6c35583707f5c339ee99.js +0 -1
  628. package/assets/esri/core/workers/chunks/6cb467a9517f024be72f.js +0 -1
  629. package/assets/esri/core/workers/chunks/71119398ec91f1b209d7.js +0 -1
  630. package/assets/esri/core/workers/chunks/8ac8ef856ed9592c433b.js +0 -1
  631. package/assets/esri/core/workers/chunks/8fedb32055ac7f771419.js +0 -1
  632. package/assets/esri/core/workers/chunks/9482a6d7baa24bbf5693.js +0 -1
  633. package/assets/esri/core/workers/chunks/9c11e1fe785e1385fdb1.js +0 -1
  634. package/assets/esri/core/workers/chunks/a567d001fcfa1f1cdeea.js +0 -1
  635. package/assets/esri/core/workers/chunks/afdc6fc453157528cf9b.js +0 -1
  636. package/assets/esri/core/workers/chunks/b5ced451d331ca1ffb68.js +0 -1
  637. package/assets/esri/core/workers/chunks/b7f5d51ac26f37837b3b.js +0 -1
  638. package/assets/esri/core/workers/chunks/ba7fe21a78ea37a02b7c.js +0 -1
  639. package/assets/esri/core/workers/chunks/bb3ab2453ccde2f2611c.js +0 -1
  640. package/assets/esri/core/workers/chunks/bb81da98546c4d923e0d.js +0 -1
  641. package/assets/esri/core/workers/chunks/beba9f2213d8a850ddb6.js +0 -1
  642. package/assets/esri/core/workers/chunks/c1189316d24fb4cdb2a0.js +0 -1
  643. package/assets/esri/core/workers/chunks/d30790c69724258dab2b.js +0 -1
  644. package/assets/esri/core/workers/chunks/d35c475f004367e333eb.js +0 -1
  645. package/assets/esri/core/workers/chunks/d95ffd990b3a7df69e1e.js +0 -1
  646. package/assets/esri/core/workers/chunks/dd6efa0afe879bd11a2e.js +0 -1
  647. package/assets/esri/core/workers/chunks/de25311b6d13bf1c6089.js +0 -2
  648. package/assets/esri/core/workers/chunks/dec51409372764e7093d.js +0 -1
  649. package/assets/esri/core/workers/chunks/e133840540abf20262a4.js +0 -1
  650. package/assets/esri/core/workers/chunks/e63e24101e7e92c62d98.js +0 -1
  651. package/assets/esri/core/workers/chunks/e785f76c1a75cb1d1e1f.js +0 -1
  652. package/assets/esri/core/workers/chunks/f27397379c6c88bc6ef4.js +0 -1
  653. package/assets/esri/core/workers/chunks/f53805c7a84203305b2c.js +0 -1
  654. package/assets/esri/core/workers/chunks/f60292d97bcdbf19165b.js +0 -1
  655. package/assets/esri/core/workers/chunks/f6ebec8d2248c719b89f.js +0 -1
  656. package/assets/esri/core/workers/chunks/fd2afff07aaac8203c18.js +0 -1
  657. package/assets/esri/core/workers/chunks/ff7708aaa2de720e3a47.js +0 -1
  658. /package/assets/esri/core/workers/chunks/{55ccb8ed7325efb62091.js.LICENSE.txt → 29b00d07d3e1d095c590.js.LICENSE.txt} +0 -0
  659. /package/assets/esri/core/workers/chunks/{de25311b6d13bf1c6089.js.LICENSE.txt → 35fdd62277fd06468a29.js.LICENSE.txt} +0 -0
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{__decorate as e}from"tslib";import{a4 as t}from"../../chunks/languageUtils.js";import n from"../../core/Accessor.js";import s from"../../core/Collection.js";import{getOrCreateMapValue as o}from"../../core/MapUtils.js";import{destroyMaybe as i}from"../../core/maybe.js";import{EsriPromiseMixin as a}from"../../core/Promise.js";import r from"../../core/ReactiveMap.js";import{on as l}from"../../core/reactiveUtils.js";import{property as c,subclass as u}from"../../core/accessorSupport/decorators.js";import f from"../../layers/support/ContingentValue.js";import d from"../../layers/support/LayerContingentValuesCache.js";import{isFeatureLayer as p,isSubtypeGroupLayer as h}from"../../layers/support/layerUtils.js";import{valueIsValidContingentValue as g}from"../FeatureForm/featureFormUtils.js";const m="#JSAPI_CONTINGENT_VALUE_EMPTY_HASH",y="#JSAPI_CONTINGENT_VALUE_ANY_HASH",_="#JSAPI_CONTINGENT_VALUE_NULL_HASH",v={_any:"any",_code:"code",_null:"null",_range:"range"};let V=class extends(a(n)){constructor(e){super(e),this._cacheMap=new r,this._joinedContingenciesMap=new Map,this._optionsMap=new Map,this._violationsMap=new Map,this.layers=new s}initialize(){this.layers.length&&this._onLayersChange(this.layers.toArray()),this.addHandles([l(()=>this.layers,"change",({added:e})=>this._onLayersChange(e))])}destroy(){this.reset()}get fieldsWithContingentValues(){const e=new r;return this._cacheMap.forEach((t,n)=>{e.set(n,new Set(t.fieldGroups.flatMap(e=>e.fields)))}),e}clear(){this._joinedContingenciesMap.clear(),this.resetOptions(),this.resetViolations()}getViolationForField(e,t,n){const s=this._violationsMap.get(e),o=I(e,t),i=s?.get(o);return i?.get(n)||null}getAllViolations(e,t){const n=this._violationsMap.get(e),s=I(e,t),o=n?.get(s);return o?Array.from(o.values()):[]}getFieldValueOptions(e){const{feature:t,layer:n,fieldName:s,emptyString:o}=e,i=A(n,t,s),a=t.getAttribute(s),l=this._optionsMap.get(n),c=I(n,t),u=l?.get(c);if(u){const e=u.get(s);if(e)return e}const f="coded-value"===i?.type?i.codedValues.map(({name:e,code:t})=>({name:e,value:t})):[],d=null==a||f.some(e=>e.value===a)?[]:[{name:`${a}`,value:a}],p=S(n)&&this.fieldsWithContingentValues.get(n)?.has(s)?this._getContingentValueOptionsForField(n,t,s,o):[];let h=null;if(p.length>0){const e=new Set(p.map(e=>e.value));h={recommended:p,other:f.filter(t=>!e.has(t.value)),unsupported:d}}else h={recommended:f,other:[],unsupported:d};if(u)u.set(s,h);else{const e=new r([[s,h]]);l?l.set(c,e):this._optionsMap.set(n,new r([[c,e]]))}return h}getJoinedContingentValues(e,t){return this._joinContingentValues(e,t)}reset(){this.clear(),this._cacheMap.forEach(i),this._cacheMap.clear()}resetOptions(){this._optionsMap.clear()}resetOptionsForFeature(e,t){this._optionsMap.get(e)?.get(t)?.clear()}resetOptionsForLayer(e){this._optionsMap.get(e)?.clear()}resetViolations(){this._violationsMap.clear()}resetViolationsForFeature(e,t){this._violationsMap.get(e)?.get(t)?.clear()}resetViolationsForLayer(e){this._violationsMap.get(e)?.clear()}validateContingencyConstraints(e,t,n){const s=this._cacheMap.get(e);if(!s)return[];const i=F(t),{invalid:a,incomplete:l}=s.validateContingencyConstraints(i),c=[...a,...n?.includeIncompleteViolations?l:[]],u=new r;for(const o of c)for(const e of o.fieldGroup.fields)u.set(e,o);const f=I(e,t);return o(this._violationsMap,e,()=>new r).set(f,u),c}validateContingenciesForNonNullFields(e,t){const n=t.clone();n.attributes=Object.fromEntries(Object.entries(F(t)).filter(([e,t])=>null!=t)),this.validateContingencyConstraints(e,n)}_onLayersChange(e){e.forEach(e=>{let n=null;t(e)?n=e.parent:(p(e)||h(e))&&(n=e),n&&!this._cacheMap.get(n)&&this.addResolvingPromise(d.createLoadedLayerContingentValuesCache(n).then(e=>{e&&this._cacheMap.set(n,e)}))})}_getContingentValueOptionsForField(e,t,n,s){const o=this.getJoinedContingentValues(e,t),i=new Map,a={code:"",name:s??"No value"},{_code:r,_null:l}=v;for(const c of o){const s=c.values[n];if(s?.objectType===r||s?.objectType===l){const{code:o,name:r}=s.codedValue&&s.objectType!==l?s.codedValue:a;!i.has(o)&&this._isValidContingency(e,t,n,c)&&i.set(o,{name:r,value:o})}}return[...i.values()]}_isValidContingency(e,t,n,s){const o={};for(const[i,a]of Object.entries(F(t)))this.fieldsWithContingentValues.get(e)?.has(i)&&null!=a&&i!==n&&(o[i]=a);return Object.entries(o).every(([e,t])=>!s.values.hasOwnProperty(e)||g(t,s.values[e]))}_joinContingentValues(e,t){const n=this._cacheMap.get(e);if(!t||!n)return[];const s=this._joinedContingenciesMap.get(e),o=I(e,t),i=s?.get(o);if(i)return i;const a=n.subtypeFieldName,l=a?t.attributes[a]:null,c=[];for(const r of n.fieldGroups){const{contingencies:e,fields:t,name:n}=r,s=[];for(const o of e)o.isRetired||null!=o.subtype&&o.subtype.code!==l||s.push({values:o.values});s.length>0&&c.push({name:n,fields:t,contingencies:s})}const[u,f]=C(c),d=u.flatMap(n=>L(e,t,n)),p=f.flatMap(e=>e.contingencies),h=[...d,...p];return s?s.set(o,h):this._joinedContingenciesMap.set(e,new r([[o,h]])),[...d,...p]}};function M(e,t){const{_any:n,_null:s,_range:o}=v;return{leftIsNull:e===s,rightIsNull:t===s,bothAreNull:e===s&&t===s,leftIsAny:e===n,rightIsAny:t===n,bothAreAny:e===n&&t===n,leftIsRange:e===o,rightIsRange:t===o}}function j(e,t,n){const{_any:s}=v,o=Array.from(n);return t.filter(t=>o.every(n=>{const o=t.values[n],i=e.values[n];return o.objectType===s||i.objectType===s||o.codedValue?.code===i.codedValue?.code}))}function b(e,t){const n=new RegExp(`${t}$`),s=[];for(const[o,i]of e){if(o===y)break;n.test(o)&&s.push(...i)}return s}function w(e,t,n,s){const o=Array.isArray(n)?new Set(n):n,i=Array.isArray(s)?new Set(s):s,a=o.size<i.size?o:i,r=a===o?i:o,l=new Set,c=new Set;for(const u of a)if(r.has(u)){const n=A(e,t,u,!0);if(null==n)continue;switch(n.type){case"coded-value":l.add(u);break;case"range":c.add(u)}}return{codedValueFields:l,rangeFields:c}}function C(e){const t=new Map,n=[],s=new Set;for(const l of e)for(const e of l.fields)if(t.has(e)){const o=t.get(e),i=l,a=[o.name,i.name].sort().join("|");if(s.has(a))continue;n.push([o,i]),s.add(a),t.set(e,i)}else t.set(e,l);const o=new Set(n.flat()),i=new Set(e);for(const l of o)i.delete(l);const a=new Map,r=new Map;for(const l of new Set(n.flat())){const e=Symbol(l.name);a.set(e,new Set([l])),r.set(l,e)}for(const[l,c]of n){const e=r.get(l),t=r.get(c);if(e===t)continue;const n=a.get(e),s=a.get(t);for(const o of s)n.add(o),r.set(o,e);a.delete(t)}return[[...a.values()].map(e=>[...e]),[...i]]}function F(e){return e.attributes}function A(e,t,n,s=!1){return e.getFieldDomain(n,{feature:t,excludeImpliedDomains:s})}function I(e,t){return t.getObjectId()??t.attributes[e.objectIdField]??t}function N(e,t,n=!1){if(t.size<1)return[m,!1];const{_any:s,_null:o}=v,i=[];let a=!1;for(const r of t.values()){const t=e.values[r];if(t.objectType===s){if(n)return[y,!0];a=!0,i.push(`${r}:.*`)}else t.objectType===o?i.push(`${r}:${_}`):i.push(`${r}:${t.codedValue?.code}`)}return[i.sort().join("&"),a]}function S(e){return p(e)||h(e)}function T(e,t){const n={values:{...e.values,...t.values}};for(const[s,o]of Object.entries(n.values))o.objectType===v._any&&null!=e.values[s]&&(n.values[s]=e.values[s]);return n}function O(e,t,n){const s=T(e,t),{_null:o,_range:i}=v;for(const a of n.values()){const n=e.values[a],r=t.values[a],{leftIsNull:l,rightIsNull:c,bothAreNull:u,leftIsAny:d,rightIsAny:p,bothAreAny:h,leftIsRange:g,rightIsRange:m}=M(n.objectType,r.objectType);if(u||h)continue;if(l&&p||c&&d){s.values[a]=new f({objectType:o});continue}if(l&&m||c&&g)return null;d?(n.minValue=-1/0,n.maxValue=1/0):p&&(r.minValue=-1/0,r.maxValue=1/0);const y=Math.max(n.minValue,r.minValue),_=Math.min(n.maxValue,r.maxValue);if(y>_)return null;s.values[a]=new f({objectType:i,minValue:y,maxValue:_})}return s}function L(e,t,n){const s=n.slice(),o=s.shift();let i=s.shift(),a=w(e,t,o.fields,i.fields),r=new Set([...o.fields,...i.fields]),l=new Map;for(const u of o.contingencies){const[e]=N(u,a.codedValueFields,!0);l.has(e)?l.get(e)?.push(u):l.set(e,[u])}for(;s.length>0;){const n=new Map,o=s.shift(),c=w(e,t,r,o.fields);for(const e of i.contingencies){const[t,s]=N(e,a.codedValueFields),o=s?b(l,t):l.get(t);if(l.has(y)&&o?.push(...j(e,l.get(y),a.codedValueFields)),null!=o)for(const i of o){const t=a.rangeFields.size>0?O(i,e,a.rangeFields):T(i,e);if(null==t)break;const[s]=N(t,c.codedValueFields,!0);n.has(s)?n.get(s)?.push(t):n.set(s,[t])}}l=n,i=o,a=c,r=new Set([...r,...i.fields])}const c=[];for(const u of i.contingencies){const[e,t]=N(u,a.codedValueFields),n=t?b(l,e):l.get(e);if(l.has(y)&&n.push(...j(u,l.get(y),a.codedValueFields)),null!=n)for(const s of n){const e=a.rangeFields.size>0?O(s,u,a.rangeFields):T(s,u);null!=e&&c.push(e)}}return c}e([c()],V.prototype,"fieldsWithContingentValues",null),e([c()],V.prototype,"layers",void 0),V=e([u("esri.widgets.support.ContingentValuesManager")],V);const E=V;export{E as default};
2
+ import{__decorate as e}from"tslib";import{Y as t}from"../../chunks/languageUtils.js";import n from"../../core/Accessor.js";import s from"../../core/Collection.js";import{getOrCreateMapValue as o}from"../../core/MapUtils.js";import{destroyMaybe as i}from"../../core/maybe.js";import{EsriPromiseMixin as a}from"../../core/Promise.js";import r from"../../core/ReactiveMap.js";import{on as l}from"../../core/reactiveUtils.js";import{property as c,subclass as u}from"../../core/accessorSupport/decorators.js";import f from"../../layers/support/ContingentValue.js";import d from"../../layers/support/LayerContingentValuesCache.js";import{isFeatureLayer as p,isSubtypeGroupLayer as h}from"../../layers/support/layerUtils.js";import{valueIsValidContingentValue as g}from"../FeatureForm/featureFormUtils.js";const m="#JSAPI_CONTINGENT_VALUE_EMPTY_HASH",y="#JSAPI_CONTINGENT_VALUE_ANY_HASH",_="#JSAPI_CONTINGENT_VALUE_NULL_HASH",v={_any:"any",_code:"code",_null:"null",_range:"range"};let V=class extends(a(n)){constructor(e){super(e),this._cacheMap=new r,this._joinedContingenciesMap=new Map,this._optionsMap=new Map,this._violationsMap=new Map,this.layers=new s}initialize(){this.layers.length&&this._onLayersChange(this.layers.toArray()),this.addHandles([l(()=>this.layers,"change",({added:e})=>this._onLayersChange(e))])}destroy(){this.reset()}get fieldsWithContingentValues(){const e=new r;return this._cacheMap.forEach((t,n)=>{e.set(n,new Set(t.fieldGroups.flatMap(e=>e.fields)))}),e}clear(){this._joinedContingenciesMap.clear(),this.resetOptions(),this.resetViolations()}getViolationForField(e,t,n){const s=this._violationsMap.get(e),o=I(e,t),i=s?.get(o);return i?.get(n)||null}getAllViolations(e,t){const n=this._violationsMap.get(e),s=I(e,t),o=n?.get(s);return o?Array.from(o.values()):[]}getFieldValueOptions(e){const{feature:t,layer:n,fieldName:s,emptyString:o}=e,i=A(n,t,s),a=t.getAttribute(s),l=this._optionsMap.get(n),c=I(n,t),u=l?.get(c);if(u){const e=u.get(s);if(e)return e}const f="coded-value"===i?.type?i.codedValues.map(({name:e,code:t})=>({name:e,value:t})):[],d=null==a||f.some(e=>e.value===a)?[]:[{name:`${a}`,value:a}],p=S(n)&&this.fieldsWithContingentValues.get(n)?.has(s)?this._getContingentValueOptionsForField(n,t,s,o):[];let h=null;if(p.length>0){const e=new Set(p.map(e=>e.value));h={recommended:p,other:f.filter(t=>!e.has(t.value)),unsupported:d}}else h={recommended:f,other:[],unsupported:d};if(u)u.set(s,h);else{const e=new r([[s,h]]);l?l.set(c,e):this._optionsMap.set(n,new r([[c,e]]))}return h}getJoinedContingentValues(e,t){return this._joinContingentValues(e,t)}reset(){this.clear(),this._cacheMap.forEach(i),this._cacheMap.clear()}resetOptions(){this._optionsMap.clear()}resetOptionsForFeature(e,t){this._optionsMap.get(e)?.get(t)?.clear()}resetOptionsForLayer(e){this._optionsMap.get(e)?.clear()}resetViolations(){this._violationsMap.clear()}resetViolationsForFeature(e,t){this._violationsMap.get(e)?.get(t)?.clear()}resetViolationsForLayer(e){this._violationsMap.get(e)?.clear()}validateContingencyConstraints(e,t,n){const s=this._cacheMap.get(e);if(!s)return[];const i=F(t),{invalid:a,incomplete:l}=s.validateContingencyConstraints(i),c=[...a,...n?.includeIncompleteViolations?l:[]],u=new r;for(const o of c)for(const e of o.fieldGroup.fields)u.set(e,o);const f=I(e,t);return o(this._violationsMap,e,()=>new r).set(f,u),c}validateContingenciesForNonNullFields(e,t){const n=t.clone();n.attributes=Object.fromEntries(Object.entries(F(t)).filter(([e,t])=>null!=t)),this.validateContingencyConstraints(e,n)}_onLayersChange(e){e.forEach(e=>{let n=null;t(e)?n=e.parent:(p(e)||h(e))&&(n=e),n&&!this._cacheMap.get(n)&&this.addResolvingPromise(d.createLoadedLayerContingentValuesCache(n).then(e=>{e&&this._cacheMap.set(n,e)}))})}_getContingentValueOptionsForField(e,t,n,s){const o=this.getJoinedContingentValues(e,t),i=new Map,a={code:"",name:s??"No value"},{_code:r,_null:l}=v;for(const c of o){const s=c.values[n];if(s?.objectType===r||s?.objectType===l){const{code:o,name:r}=s.codedValue&&s.objectType!==l?s.codedValue:a;!i.has(o)&&this._isValidContingency(e,t,n,c)&&i.set(o,{name:r,value:o})}}return[...i.values()]}_isValidContingency(e,t,n,s){const o={};for(const[i,a]of Object.entries(F(t)))this.fieldsWithContingentValues.get(e)?.has(i)&&null!=a&&i!==n&&(o[i]=a);return Object.entries(o).every(([e,t])=>!s.values.hasOwnProperty(e)||g(t,s.values[e]))}_joinContingentValues(e,t){const n=this._cacheMap.get(e);if(!t||!n)return[];const s=this._joinedContingenciesMap.get(e),o=I(e,t),i=s?.get(o);if(i)return i;const a=n.subtypeFieldName,l=a?t.attributes[a]:null,c=[];for(const r of n.fieldGroups){const{contingencies:e,fields:t,name:n}=r,s=[];for(const o of e)o.isRetired||null!=o.subtype&&o.subtype.code!==l||s.push({values:o.values});s.length>0&&c.push({name:n,fields:t,contingencies:s})}const[u,f]=C(c),d=u.flatMap(n=>L(e,t,n)),p=f.flatMap(e=>e.contingencies),h=[...d,...p];return s?s.set(o,h):this._joinedContingenciesMap.set(e,new r([[o,h]])),[...d,...p]}};function M(e,t){const{_any:n,_null:s,_range:o}=v;return{leftIsNull:e===s,rightIsNull:t===s,bothAreNull:e===s&&t===s,leftIsAny:e===n,rightIsAny:t===n,bothAreAny:e===n&&t===n,leftIsRange:e===o,rightIsRange:t===o}}function j(e,t,n){const{_any:s}=v,o=Array.from(n);return t.filter(t=>o.every(n=>{const o=t.values[n],i=e.values[n];return o.objectType===s||i.objectType===s||o.codedValue?.code===i.codedValue?.code}))}function b(e,t){const n=new RegExp(`${t}$`),s=[];for(const[o,i]of e){if(o===y)break;n.test(o)&&s.push(...i)}return s}function w(e,t,n,s){const o=Array.isArray(n)?new Set(n):n,i=Array.isArray(s)?new Set(s):s,a=o.size<i.size?o:i,r=a===o?i:o,l=new Set,c=new Set;for(const u of a)if(r.has(u)){const n=A(e,t,u,!0);if(null==n)continue;switch(n.type){case"coded-value":l.add(u);break;case"range":c.add(u)}}return{codedValueFields:l,rangeFields:c}}function C(e){const t=new Map,n=[],s=new Set;for(const l of e)for(const e of l.fields)if(t.has(e)){const o=t.get(e),i=l,a=[o.name,i.name].sort().join("|");if(s.has(a))continue;n.push([o,i]),s.add(a),t.set(e,i)}else t.set(e,l);const o=new Set(n.flat()),i=new Set(e);for(const l of o)i.delete(l);const a=new Map,r=new Map;for(const l of new Set(n.flat())){const e=Symbol(l.name);a.set(e,new Set([l])),r.set(l,e)}for(const[l,c]of n){const e=r.get(l),t=r.get(c);if(e===t)continue;const n=a.get(e),s=a.get(t);for(const o of s)n.add(o),r.set(o,e);a.delete(t)}return[[...a.values()].map(e=>[...e]),[...i]]}function F(e){return e.attributes}function A(e,t,n,s=!1){return e.getFieldDomain(n,{feature:t,excludeImpliedDomains:s})}function I(e,t){return t.getObjectId()??t.attributes[e.objectIdField]??t}function N(e,t,n=!1){if(t.size<1)return[m,!1];const{_any:s,_null:o}=v,i=[];let a=!1;for(const r of t.values()){const t=e.values[r];if(t.objectType===s){if(n)return[y,!0];a=!0,i.push(`${r}:.*`)}else t.objectType===o?i.push(`${r}:${_}`):i.push(`${r}:${t.codedValue?.code}`)}return[i.sort().join("&"),a]}function S(e){return p(e)||h(e)}function T(e,t){const n={values:{...e.values,...t.values}};for(const[s,o]of Object.entries(n.values))o.objectType===v._any&&null!=e.values[s]&&(n.values[s]=e.values[s]);return n}function O(e,t,n){const s=T(e,t),{_null:o,_range:i}=v;for(const a of n.values()){const n=e.values[a],r=t.values[a],{leftIsNull:l,rightIsNull:c,bothAreNull:u,leftIsAny:d,rightIsAny:p,bothAreAny:h,leftIsRange:g,rightIsRange:m}=M(n.objectType,r.objectType);if(u||h)continue;if(l&&p||c&&d){s.values[a]=new f({objectType:o});continue}if(l&&m||c&&g)return null;d?(n.minValue=-1/0,n.maxValue=1/0):p&&(r.minValue=-1/0,r.maxValue=1/0);const y=Math.max(n.minValue,r.minValue),_=Math.min(n.maxValue,r.maxValue);if(y>_)return null;s.values[a]=new f({objectType:i,minValue:y,maxValue:_})}return s}function L(e,t,n){const s=n.slice(),o=s.shift();let i=s.shift(),a=w(e,t,o.fields,i.fields),r=new Set([...o.fields,...i.fields]),l=new Map;for(const u of o.contingencies){const[e]=N(u,a.codedValueFields,!0);l.has(e)?l.get(e)?.push(u):l.set(e,[u])}for(;s.length>0;){const n=new Map,o=s.shift(),c=w(e,t,r,o.fields);for(const e of i.contingencies){const[t,s]=N(e,a.codedValueFields),o=s?b(l,t):l.get(t);if(l.has(y)&&o?.push(...j(e,l.get(y),a.codedValueFields)),null!=o)for(const i of o){const t=a.rangeFields.size>0?O(i,e,a.rangeFields):T(i,e);if(null==t)break;const[s]=N(t,c.codedValueFields,!0);n.has(s)?n.get(s)?.push(t):n.set(s,[t])}}l=n,i=o,a=c,r=new Set([...r,...i.fields])}const c=[];for(const u of i.contingencies){const[e,t]=N(u,a.codedValueFields),n=t?b(l,e):l.get(e);if(l.has(y)&&n.push(...j(u,l.get(y),a.codedValueFields)),null!=n)for(const s of n){const e=a.rangeFields.size>0?O(s,u,a.rangeFields):T(s,u);null!=e&&c.push(e)}}return c}e([c()],V.prototype,"fieldsWithContingentValues",null),e([c()],V.prototype,"layers",void 0),V=e([u("esri.widgets.support.ContingentValuesManager")],V);const E=V;export{E as default};
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[837,1948,6061],{61691(t,e,s){s.d(e,{G:()=>r});class r{*[Symbol.iterator](){let t=this.next();for(;t;)yield t,t=this.next()}}},64523(t,e,s){s.d(e,{O:()=>l});var r=s(5482),n=s(61691),i=s(55537),a=s(88885),o=s(95213),h=s(83661),u=s(5247);class l{getOperatorType(){return 10204}supportsCurves(){return!0}accelerateGeometry(t,e,s){return!1}canAccelerateGeometry(t){return!1}executeMany(t,e,s,r){return new c(t,e,s,r)}execute(t,e,s,r){return t||(0,i.a)("null param is not allowed."),new c(null,e,s,r).generalize(t)}}class c extends n.G{constructor(t,e,s,r){super(),this.m_pline=null,this.m_point=new o.P,this.m_stack=[],this.m_resultstack=[],this.m_callCount=0,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.e)(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.f)(e)){const e=new a.a({vd:t.getDescription()});return e.addSegment(t,!0),this.generalize(e)}if((0,i.h)(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,c=!1;for(!this.m_bRemoveDegenerateParts&&a&&(l=!0,c=!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:(c&&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 m=this.m_resultstack.length;if(m===t.getPathSize(e)&&m===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(c&&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{constructor(t){super(),this.m_iGeom=-1,this.m_aGeoms=t?t.slice():[]}next(){if(this.m_iGeom<this.m_aGeoms.length-1){const t=this.m_aGeoms[++this.m_iGeom];return this.m_aGeoms[this.m_iGeom]=null,t}return null}tock(){return!1}getGeometryID(){return this.m_iGeom}getRank(){return 1}}},87992(t,e,s){s.d(e,{JR:()=>k,ME:()=>M,MY:()=>S,NO:()=>C,Nh:()=>P,V2:()=>A,_s:()=>b,e6:()=>I,gh:()=>E,tr:()=>V,uX:()=>x});var r=s(5482),n=s(69397),i=s(16930),a=(s(70328),s(19419)),o=s(60408),h=s(21325),u=s(513),l=s(50954),c=s(79567),m=s(52006),g=s(49663),f=s(46068),p=s(92722);class x{constructor({type:t,spatialReference:e,vertexCount:s,vertexXY:r,vertexZ:n,vertexM:i,partCount:a,partOffsets:o,partFlags:h,segmentFlags:u,segmentIndices:l,segmentParams:c,segmentCountArc:m,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=c,this.segmentCountArc=m,this.segmentCountBezier=g}get segmentParamCount(){return 10*this.segmentCountArc+4*this.segmentCountBezier}get segmentCountLine(){const{segmentCount:t,segmentCountArc:e,segmentCountBezier:s}=this;return t&&t-e-s}get segmentCount(){return"polyline"===this.type?this.vertexCount-this.partCount:"polygon"===this.type?this.vertexCount:0}get hasZ(){return null!=this.vertexZ}get hasM(){return null!=this.vertexM}hasCurves(){return this.segmentCountArc+this.segmentCountBezier>0}isMultipart(){return"polyline"===this.type||"polygon"===this.type}get usedMemory(){function t(t){return t?n.Ul+t.byteLength:0}return t(this.vertexXY)+t(this.vertexZ)+t(this.vertexM)+t(this.partOffsets)+t(this.partFlags)+t(this.segmentFlags)+t(this.segmentIndices)+t(this.segmentParams)}clone(){const{type:t,vertexCount:e,partCount:s,hasZ:r,hasM:n,segmentCountArc:i,segmentCountBezier:a}=this,o=A(t,e,s,r,n,this.hasCurves(),i,a);o.spatialReference=this.spatialReference;const{vertexXY:h,vertexZ:u,vertexM:l}=this;if(o.vertexXY.set(h.subarray(0,2*e),0),o.vertexZ?.set(u.subarray(0,e),0),o.vertexM?.set(l.subarray(0,e),0),this.isMultipart()){const{partOffsets:t,partFlags:e}=this;o.partFlags.set(e.subarray(0,s+1)),o.partOffsets.set(t.subarray(0,s+1))}if(this.hasCurves()){const{segmentFlags:t,segmentIndices:s,segmentParams:r,segmentParamCount:n}=this;o.segmentFlags.set(t.subarray(0,e),0),o.segmentIndices.set(s.subarray(0,e),0),o.segmentParams.set(r.subarray(0,n),0)}return o}equals(t){return this.equalsWithinTolerance(t,0)}equalsWithinTolerance(t,e){if(null==t)return!1;if(this===t)return!0;if(!(0,h.aI)(this.spatialReference,t.spatialReference))return!1;if(this.vertexCount!==t.vertexCount||this.partCount!==t.partCount)return!1;if(this.hasZ!==t.hasZ||this.hasM!==t.hasM)return!1;if(this.hasCurves()!==t.hasCurves()||this.segmentCountArc!==t.segmentCountArc||this.segmentCountBezier!==t.segmentCountBezier)return!1;const s=0===e?(t,e)=>t!==e||isNaN(t)!==isNaN(e):(t,s)=>Math.abs(t-s)>e||isNaN(t)!==isNaN(s);for(let e=0;e<this.vertexCount;++e)if(s(this.vertexXY[2*e],t.vertexXY[2*e])||s(this.vertexXY[2*e+1],t.vertexXY[2*e+1]))return!1;if(this.hasZ)for(let e=0;e<this.vertexCount;++e)if(s(this.vertexZ[e],t.vertexZ[e]))return!1;if(this.hasM)for(let e=0;e<this.vertexCount;++e)if(s(this.vertexM[e],t.vertexM[e]))return!1;for(let e=0;e<this.partCount;++e)if(this.partFlags[e]!==t.partFlags[e]||this.partOffsets[e]!==t.partOffsets[e])return!1;if(this.hasCurves()){for(let e=0;e<this.vertexCount;++e)if(this.segmentFlags[e]!==t.segmentFlags[e]||this.segmentIndices[e]!==t.segmentIndices[e])return!1;for(let e=0;e<this.segmentParamCount;++e)if(s(this.segmentParams[e],t.segmentParams[e]))return!1}return!0}get parts(){return this.isMultipart()?new v(this):[][Symbol.iterator]()}}class v{constructor(t){this.geometry=t,this.value=new d(t)}get done(){return this.value.index>=this.geometry.partCount}next(){return++this.value.index,this}[Symbol.iterator](){return this}}class d{constructor(t){this.geometry=t,this.index=-1,this._readVertex=w(t),this._segments=new y(this)}get segments(){return this._segments.reset(),this._segments}get startVertex(){return this._readVertex(this.geometry.partOffsets[this.index])}get vertexCount(){const t=this.geometry.partOffsets;return t[this.index+1]-t[this.index]}}class y{constructor(t){this._part=t,this._partStart=0,this._partEnd=0,this._isPolygon="polygon"===t.geometry.type,this.value=new _(t.geometry)}get done(){return this.value.indexOfStartVertex>this._partEnd}next(){++this.value.indexOfStartVertex;const t=this.value.indexOfStartVertex>=this._partEnd;return this.value.indexOfEndVertex=t&&this._isPolygon?this._partStart:this.value.indexOfStartVertex+1,this}[Symbol.iterator](){return this}reset(){const{index:t}=this._part,e=this._part.geometry.partOffsets;this._partStart=e[t],this._partEnd=e[t+1]-(this._isPolygon?1:2),this.value.indexOfStartVertex=this._partStart-1}}class _{constructor(t){this.geometry=t,this.indexOfStartVertex=-1,this.indexOfEndVertex=-1,this._readVertex=w(t)}get xStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex]}get yStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex+1]}get zStart(){return this.geometry.vertexZ[this.indexOfStartVertex]}get mStart(){return this.geometry.vertexM[this.indexOfStartVertex]}get xEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex]}get yEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex+1]}get zEnd(){return this.geometry.vertexZ[this.indexOfEndVertex]}get mEnd(){return this.geometry.vertexM[this.indexOfEndVertex]}get start(){return this._readVertex(this.indexOfStartVertex)}get end(){return this._readVertex(this.indexOfEndVertex)}get curve(){const t=this.geometry.segmentFlags?.[this.indexOfStartVertex]??1;if(1===t)return this.end;const e=this.geometry.segmentParams;let s=this.geometry.segmentIndices[this.indexOfStartVertex];if(2===t){const t=e[s++],r=e[s++],n=e[s++],i=e[s++];return{b:[this.end,[t,r],[n,i]]}}const r=e[s++],n=e[s++],i=e[s++],a=e[s++],o=e[s++],h=e[s++];s++,s++;const u=e[s++],l=e[s++];if(!Boolean(4&r)&&1===i)return{c:[this.end,[u,l]]};const c=2&r?0:1,m=1&r?0:1;return{a:[this.end,[o,h],c,m,a,n,i]}}}function C(t,e){const s={stack:[],error:void 0,hasError:!1};try{return e??=(0,a.Ie)(),(0,r.mS)(s,new O(t,["vertexZ","vertexM","spatialReference"]),!1),(0,a.bx)(e,function(t){let e;const{vertexCount:s,vertexXY:n,vertexZ:i,vertexM:o}=t,h=R(t);if(t.hasCurves()){const s={stack:[],error:void 0,hasError:!1};try{(0,r.mS)(s,new O(t,["vertexZ","vertexM"]),!1);const n=(0,a.Ie)();for(const e of t.parts){let t=e.startVertex;for(const{curve:s}of e.segments)(0,c.e)(n,t,s),t=(0,m.yP)(s)}const[i,o,u,l]=n;e={xmin:i,ymin:o,xmax:u,ymax:l,spatialReference:h}}catch(t){s.error=t,s.hasError=!0}finally{(0,r.hk)(s)}}else{let t,r,i,a;t=r=1/0,i=a=-1/0;for(let e=0;e<s;++e){const s=n[2*e],o=n[2*e+1];t=Math.min(t,s),i=Math.max(i,s),r=Math.min(r,o),a=Math.max(a,o)}e={xmin:t,ymin:r,xmax:i,ymax:a,spatialReference:h}}if(i){let t=1/0,s=-1/0;for(const e of i)t=Math.min(t,e),s=Math.max(s,e);e.zmin=t,e.zmax=s}if(o){let t=1/0,s=-1/0;for(const e of o)t=Math.min(t,e),s=Math.max(s,e);e.mmin=t,e.mmax=s}return e}(t)),e}catch(t){s.error=t,s.hasError=!0}finally{(0,r.hk)(s)}}function M(t){let e,s,r;if((0,o.fT)(t)){r="point";const{x:n,y:i,z:a,m:o}=t,h=[n,i];null!=a&&h.push(a),null!=o&&h.push(o),s=[[h]],e=1}else(0,o.U9)(t)?(r="multipoint",s=[t.points],e=t.points.length):(0,o.Rg)(t)?(r="polyline",s=t.curvePaths??t.paths,e=s.reduce((t,e)=>t+e.length,0)):(r="polygon",s=t.curveRings??t.rings,e=s.reduce((t,e)=>(0===e.length||(t+=e.length,Y(e[0],(0,m.yP)(e.at(-1)))&&--t),t),0));const n=A(r,e,r.includes("point")?0:s.length,(0,o.Pv)(t),(0,o.W0)(t),(0,m.Ed)(t)),{hasZ:i,hasM:a,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]),a&&(l[f]=t[g]),++f}n.spatialReference=t.spatialReference??void 0;const g=n.hasZ?3:2;let f=0;if(!n.isMultipart()){if(!i&&!a){for(const[t,e]of s[0])h[2*f]=t,h[2*f+1]=e,++f;return n}for(const t of s[0])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&&Y(t[0],t.at(-1))&&--e,i||a)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*X;s=20*Math.ceil(s/20);const r=n.segmentParams;n.segmentParams=new Float64Array(s),null!=r&&n.segmentParams.set(r)}let y=0;for(const t of s){if(n.partOffsets[v++]=f,0===t.length)continue;const e=t[0];let s=e;for(let e=1;e<t.length;++e){const r=t[e];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=F(s,r,n,i,y),s=r.a[0]):(0,m.aO)(r)?(d(10),++n.segmentCountArc,y=I(s,r,n,i,y),s=r.c[0]):(0,m.n1)(r)?(d(4),++n.segmentCountBezier,y=V(0,r,n,i,y),s=r.b[0]):s=r}p&&Y(e,s)||c(s)}return n.partOffsets[v]=f,n}function E(t){const e=w(t),{vertexCount:s,partCount:r,hasZ:n,hasM:i}=t,a=R(t);if("point"===t.type){const[e,s]=t.vertexXY,r=t.vertexZ?.[0],n=t.vertexM?.[0];return{x:e,y:s,z:r,m:n,spatialReference:a}}let o=0;if("multipoint"===t.type){const t=[];for(;o<s;)t.push(e(o++));return{points:t,spatialReference:a,hasZ:n,hasM:i}}const h="polygon"===t.type;if(!t.hasCurves()){const s=new Array;for(let n=0;n<r;++n){const r=t.partOffsets[n+1],i=new Array;for(;o<r;)i.push(e(o++));h&&i.length>0&&i.push(i[0]),s.push(i)}return h?{rings:s,hasZ:n,hasM:i,spatialReference:a}:{paths:s,hasZ:n,hasM:i,spatialReference:a}}const u=new Array;for(const{segments:e,startVertex:s}of t.parts){const t=[s];for(const{curve:s}of e)t.push(s);u.push(t)}return h?{rings:[],curveRings:u,hasZ:n,hasM:i,spatialReference:a}:{paths:[],curvePaths:u,hasZ:n,hasM:i,spatialReference:a}}function P(t,{lengths:e,coords:s,hasZ:r,hasM:n},i){const a=t.includes("point")?0:e.length,o="polygon"===t,h="point"===t?1:e.reduce((t,e)=>t+e,0)-(o?a:0);r??=!1,n??=!1;const u=A(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 c=0,m=0;u.partOffsets[0]=0;for(const t of e){const e=u.partOffsets[m],i=e+t-Number(o);u.partOffsets[++m]=i;for(let t=e;t<i;++t)u.vertexXY[2*t]=s[c++],u.vertexXY[2*t+1]=s[c++],r&&(u.vertexZ[t]=s[c++]),n&&(u.vertexM[t]=s[c++]);o&&(c+=l)}return u}function k({type:t,vertexCount:e,vertexXY:s,vertexZ:r,vertexM:n,partCount:i,partOffsets:a,hasZ:o,hasM:h}){const u=new p.A([],[],o,h);i=Math.max(i,1);const l="polygon"===t;let c=0;for(let t=0;t<i;++t){const i=a?.[t+1]??e,m=u.coords.length;for(let t=c;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=c;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-m)/u.stride),c=i}return"point"===t&&(u.lengths.length=0),u}function S(t,e){return"getSpatialReference"in t&&(e=function(t){if(null==t)return;const e=t.getText()||void 0,s=t.isCustomWkid()?0:t.getOldID();if(s<=0)return{wkt:e};let r=t.getLatestID();(r<=0||r===s)&&(r=void 0);const n=t.getVCS();if(null==n)return{wkid:s,latestWkid:r,wkt:e};const i=n.isCustomWkid()?0:n.getOldID();if(i<=0)return{wkt:e};let a=t.getLatestVerticalID();return(a<=0||a===i)&&(a=void 0),{wkid:s,wkt:e,latestWkid:r,vcsWkid:i,latestVcsWkid:a}}(t.getSpatialReference()),t=t.getGeometry()),new x({...t.toFlatGeometry(),spatialReference:e})}class O{constructor(t,e){this.target=t,this.keys=e,this.oldValues=e.map(e=>t[e]);for(const s of e)t[s]=void 0}[Symbol.dispose](){this.keys.map((t,e)=>{this.target[t]=this.oldValues[e]})}}function R({spatialReference:t}){return t instanceof i.A?t.toJSON():t}function w({vertexXY:t,vertexZ:e,vertexM:s}){return e?s?r=>[t[2*r],t[2*r+1],e[r],s[r]]:s=>[t[2*s],t[2*s+1],e[s]]:s?e=>[t[2*e],t[2*e+1],s[e]]:e=>[t[2*e],t[2*e+1]]}function Y(t,e){return t.every((t,s)=>t===e[s])}function A(t,e,s,r,n,i,a,o){a??=0,o??=0;const h=new x({type:t,vertexCount:e,vertexXY:null,vertexZ:void 0,vertexM:void 0,partCount:s,partOffsets:void 0,partFlags:void 0,segmentFlags:void 0,segmentIndices:void 0,segmentParams:void 0,segmentCountArc:a,segmentCountBezier:o});let u=2*Float64Array.BYTES_PER_ELEMENT*e;r&&(u+=Float64Array.BYTES_PER_ELEMENT*e),n&&(u+=Float64Array.BYTES_PER_ELEMENT*e),h.isMultipart()&&(u+=(s+1)*Int32Array.BYTES_PER_ELEMENT,u+=(s+1)*Int8Array.BYTES_PER_ELEMENT),i&&(u+=e*Int8Array.BYTES_PER_ELEMENT,u+=e*Int32Array.BYTES_PER_ELEMENT,u+=h.segmentParamCount*Float64Array.BYTES_PER_ELEMENT);const l=new ArrayBuffer(u);let c=0;return h.vertexXY=new Float64Array(l,c,2*e),c+=h.vertexXY.byteLength,r&&(h.vertexZ=new Float64Array(l,c,e),c+=h.vertexZ.byteLength),n&&(h.vertexM=new Float64Array(l,c,e),c+=h.vertexM.byteLength),i&&(h.segmentParams=new Float64Array(l,c,h.segmentParamCount),c+=h.segmentParams.byteLength,h.segmentIndices=new Int32Array(l,c,e),h.segmentIndices.fill(G),c+=h.segmentIndices.byteLength),h.isMultipart()&&(h.partOffsets=new Int32Array(l,c,s+1),c+=h.partOffsets.byteLength,h.partFlags=new Int8Array(l,c,s+1),c+=h.partFlags.byteLength,"polygon"===h.type&&h.partFlags.subarray(0,s).fill(1)),i&&(h.segmentFlags=new Int8Array(l,c,e),h.segmentFlags.fill(1),c+=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,c,m,g,p]=e.a;let x=4;c||(x|=1),l||(x|=2);const v=(0,f.SW)(t,e),[d,y]=(0,f.Uk)(v,.5);return n[a++]=x,n[a++]=g,n[a++]=p,n[a++]=m,n[a++]=h,n[a++]=u,n[a++]=v.u2-v.u1,n[a++]=v.u1,n[a++]=d,n[a++]=y,a}function F(t,e,{segmentFlags:s,segmentIndices:r,segmentParams:n},i,a){s[i]=4,r[i]=a;const o=(0,g.io)(t,e);return Z(o,4,...(0,u.mq)(o,.5),n,a)}function I(t,e,{segmentFlags:s,segmentIndices:r,segmentParams:n},i,a){return s[i]=4,r[i]=a,Z((0,l.pM)(t,e),0,...e.c[1],n,a)}function Z(t,e,s,r,n,i){const{cx:a,cy:o,thetaStart:h,thetaEnd:u,radius:l}=t;return h>u||(e|=1),Math.abs(u-h)<=Math.PI||(e|=2),n[i++]=e,n[i++]=l,n[i++]=1,n[i++]=0,n[i++]=a,n[i++]=o,n[i++]=u-h,n[i++]=h,n[i++]=s,n[i++]=r,i}function V(t,{b:[e,[s,r],[n,i]]},{segmentFlags:a,segmentIndices:o,segmentParams:h},u,l){return a[u]=2,o[u]=l,h[l++]=s,h[l++]=r,h[l++]=n,h[l++]=i,l}const X=1.61803,G=-1},70787(t,e,s){s.d(e,{fz:()=>o,g7:()=>i,zo:()=>a});var r=s(76061);const n=new(s(64523).O);function i(t,e,s){return n.execute(t,e,s,null)}function a(t,e,s){const i=n.executeMany(new r.S(t),e,s,null);return Array.from(i)}function o(){return n.supportsCurves()}},97528(t,e,s){s.r(e),s.d(e,{execute:()=>a,executeMany:()=>o});var r=s(86211),n=s(70787),i=s(83299);function a(t,e,s={}){const{removeDegenerateParts:a=!1,unit:o}=s,h=(0,i.getSpatialReference)(t);o&&h&&(e=(0,r.UW)(e,o,h));const u=(0,i.fromGeometry)(t),l=(0,n.g7)(u.getGeometry(),e,a);return null==l?null:(0,i.toGeometry)(l,u.getSpatialReference())}function o(t,e,s={}){const{removeDegenerateParts:a=!1,unit:o}=s,h=(0,i.getSpatialReference)(t);o&&h&&(e=(0,r.UW)(e,o,h));const[u,l]=(0,i.fromGeometries)(t);return(0,n.zo)(u,e,a).map(t=>(0,i.toGeometry)(t,l))}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6129],{86129(e,t,n){n.r(t),n.d(t,{createProjectionTransformation:()=>s});var a=n(15756),r=(n(83661),n(95213),n(55537),n(79187));function s(e,t,n){let s,i;if(n?.geographicTransformation){if(n.geographicTransformation.steps?.length){const r=new a.I;r.setInputSpatialReference(e),r.setOutputSpatialReference(t);for(const e of n.geographicTransformation.steps){let t;t=e.wkid?(0,a.J)(e.wkid,e.isInverse):(0,a.K)(e.wkt,e.isInverse),r.add(t)}s=r.create()}else s=(0,a.L)();if(n.extendedParams){i=(0,a.m)();const{densificationStep:e}=n.extendedParams;null!=e&&(i.densificationStep=e)}}else if(n?.areaOfInterestExtent)return(0,a.b)(e,t,(o=n.areaOfInterestExtent,r.Envelope2D.construct(o.xmin,o.ymin,o.xmax,o.ymax)));var o;return s?(0,a.a)(e,t,s,i):(0,a.c)(e,t)}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1550,1666,1948,3931,5611,6061,6312,7992,8125,9169,9285,9358,9397],{61691(t,e,n){n.d(e,{G:()=>r});class r{*[Symbol.iterator](){let t=this.next();for(;t;)yield t,t=this.next()}}},98783(t,e,n){n.d(e,{O:()=>o});var r=n(61691),s=n(55537),i=n(76061),a=n(15756);class o{getOperatorType(){return 10104}accelerateGeometry(t,e,n){return!1}canAccelerateGeometry(t){return!1}supportsCurves(){return!0}isSimple(t,e,n,r,s){return 5===(0,a.s)(t,e,n,r,s)}executeMany(t,e,n,r){return new u(t,e,n,r)}execute(t,e,n,r){const a=new i.S([t]),o=this.executeMany(a,e,n,r).next();return o||(0,s.d)("null output"),o}}class u extends r.G{constructor(t,e,n,r){super(),t||(0,s.a)(""),this.m_progressTracker=r,this.m_bForceSimplify=n,this.m_index=-1,this.m_inputGeometryCursor=t,this.m_spatialReference=e}next(){const t=this.m_inputGeometryCursor.next();return t?((0,s.c)(t),this.m_index=this.m_inputGeometryCursor.getGeometryID(),this.simplify(t)):null}getGeometryID(){return this.m_index}tock(){return!1}getRank(){return 1}simplify(t){return t||(0,s.a)(""),(0,a.t)(t,this.m_spatialReference,this.m_bForceSimplify,this.m_progressTracker)}}},76061(t,e,n){n.d(e,{S:()=>s});var r=n(61691);class s extends r.G{constructor(t){super(),this.m_iGeom=-1,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}}},9093(t,e,n){function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function s(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]]}n.d(e,{o8:()=>s,vt:()=>r,zK:()=>i});const i=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:i,clone:s,create:r,fromValues:function(t,e,n,r,s,i,a,o,u,c,h,l,f,m,g,x){return[t,e,n,r,s,i,a,o,u,c,h,l,f,m,g,x]}},Symbol.toStringTag,{value:"Module"}))},51850(t,e,n){function r(){return[0,0,0]}function s(t){return[t[0],t[1],t[2]]}function i(t,e,n){return[t,e,n]}function a(t,e,n){return[t,e,n]}function o(t,e=[0,0,0]){const n=Math.min(3,t.length);for(let r=0;r<n;++r)e[r]=t[r];return e}function u(){return[0,0,0]}function c(){return i(1,1,1)}function h(){return i(1,0,0)}function l(){return i(0,1,0)}function f(){return i(0,0,1)}n.d(e,{CN:()=>a,Cb:()=>y,Cw:()=>x,JP:()=>p,S:()=>c,Ul:()=>u,Un:()=>g,ci:()=>o,fA:()=>i,o8:()=>s,uY:()=>m,vt:()=>r});const m=[0,0,0],g=c(),x=h(),p=l(),y=f();Object.freeze(Object.defineProperty({__proto__:null,ONES:g,UNIT_X:x,UNIT_Y:p,UNIT_Z:y,ZEROS:m,clone:s,create:r,freeze:a,fromArray:o,fromValues:i,ones:c,unitX:h,unitY:l,unitZ:f,zeros:u},Symbol.toStringTag,{value:"Module"}))},35522(t,e,n){n.d(e,{$A:()=>b,Bw:()=>i,C:()=>a,Cc:()=>I,DI:()=>E,Il:()=>L,Io:()=>d,Ln:()=>y,Om:()=>P,Qr:()=>l,Re:()=>c,S8:()=>_,T9:()=>x,WQ:()=>u,Z0:()=>S,_S:()=>m,aI:()=>N,ei:()=>A,fw:()=>V,g7:()=>Z,gL:()=>O,hG:()=>M,hZ:()=>o,hs:()=>p,jb:()=>G,jk:()=>g,lo:()=>k,lw:()=>h,m3:()=>v,oW:()=>F,t2:()=>Y,tn:()=>f,uE:()=>B,xg:()=>X,ze:()=>C});var r=n(51850),s=n(34304);function i(t){const e=t[0],n=t[1],r=t[2];return Math.sqrt(e*e+n*n+r*r)}function a(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function o(t,e,n,r){return t[0]=e,t[1]=n,t[2]=r,t}function u(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t}function c(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function h(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t}function l(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t}function f(t,e){return t[0]=Math.abs(e[0]),t[1]=Math.abs(e[1]),t[2]=Math.abs(e[2]),t}function m(t,e){return t[0]=Math.sign(e[0]),t[1]=Math.sign(e[1]),t[2]=Math.sign(e[2]),t}function g(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t}function x(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t}function p(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t}function y(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t}function d(t,e){const n=e[0]-t[0],r=e[1]-t[1],s=e[2]-t[2];return Math.sqrt(n*n+r*r+s*s)}function M(t,e){const n=e[0]-t[0],r=e[1]-t[1],s=e[2]-t[2];return n*n+r*r+s*s}function v(t){const e=t[0],n=t[1],r=t[2];return e*e+n*n+r*r}function C(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}function E(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}function _(t,e){const n=e[0],r=e[1],s=e[2];let i=n*n+r*r+s*s;return i>0&&(i=1/Math.sqrt(i),t[0]=e[0]*i,t[1]=e[1]*i,t[2]=e[2]*i),t}function P(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function b(t,e,n){const r=e[0],s=e[1],i=e[2],a=n[0],o=n[1],u=n[2];return t[0]=s*u-i*o,t[1]=i*a-r*u,t[2]=r*o-s*a,t}function I(t,e,n,r){const s=e[0],i=e[1],a=e[2];return t[0]=s+r*(n[0]-s),t[1]=i+r*(n[1]-i),t[2]=a+r*(n[2]-a),t}function S(t,e,n){const r=e[0],s=e[1],i=e[2];return t[0]=n[0]*r+n[4]*s+n[8]*i+n[12],t[1]=n[1]*r+n[5]*s+n[9]*i+n[13],t[2]=n[2]*r+n[6]*s+n[10]*i+n[14],t}function A(t,e,n){const r=e[0],s=e[1],i=e[2];return t[0]=r*n[0]+s*n[3]+i*n[6],t[1]=r*n[1]+s*n[4]+i*n[7],t[2]=r*n[2]+s*n[5]+i*n[8],t}function O(t,e,n){return V(t,e,n[0],n[1],n[2],n[3])}function V(t,e,n,r,s,i){const a=e[0],o=e[1],u=e[2],c=r*u-s*o,h=s*a-n*u,l=n*o-r*a,f=r*l-s*h,m=s*c-n*l,g=n*h-r*c,x=2*i;return t[0]=a+c*x+2*f,t[1]=o+h*x+2*m,t[2]=u+l*x+2*g,t}function Z(t,e){_(w,t),_(R,e);const n=P(w,R);return n>1?0:n<-1?Math.PI:Math.acos(n)}const w=(0,r.vt)(),R=(0,r.vt)();function Y(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function N(t,e){if(t===e)return!0;const n=t[0],r=t[1],i=t[2],a=e[0],o=e[1],u=e[2],c=(0,s.FD)();return Math.abs(n-a)<=c*Math.max(1,Math.abs(n),Math.abs(a))&&Math.abs(r-o)<=c*Math.max(1,Math.abs(r),Math.abs(o))&&Math.abs(i-u)<=c*Math.max(1,Math.abs(i),Math.abs(u))}function F(t,e,n){const r=n[0]-e[0],s=n[1]-e[1],i=n[2]-e[2];let a=r*r+s*s+i*i;return a>0?(a=1/Math.sqrt(a),t[0]=r*a,t[1]=s*a,t[2]=i*a,t):(t[0]=0,t[1]=0,t[2]=0,t)}const G=c,T=h,z=l,X=d,k=M,L=i,B=v;Object.freeze(Object.defineProperty({__proto__:null,abs:f,add:u,angle:Z,bezier:function(t,e,n,r,s,i){const a=1-i,o=a*a,u=i*i,c=o*a,h=3*i*o,l=3*u*a,f=u*i;return t[0]=e[0]*c+n[0]*h+r[0]*l+s[0]*f,t[1]=e[1]*c+n[1]*h+r[1]*l+s[1]*f,t[2]=e[2]*c+n[2]*h+r[2]*l+s[2]*f,t},ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t},clamp:function(t,e=0,n=1){return t[0]=Math.min(Math.max(t[0],e),n),t[1]=Math.min(Math.max(t[1],e),n),t[2]=Math.min(Math.max(t[2],e),n),t},copy:a,cross:b,crossAndNormalize:function(t,e,n){const r=e[0],s=e[1],i=e[2],a=n[0],o=n[1],u=n[2],c=s*u-i*o,h=i*a-r*u,l=r*o-s*a,f=Math.sqrt(c*c+h*h+l*l);return t[0]=c/f,t[1]=h/f,t[2]=l/f,t},direction:F,dist:X,distance:d,div:z,divide:l,dot:P,equals:N,exactEquals:Y,floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t},hermite:function(t,e,n,r,s,i){const a=i*i,o=a*(2*i-3)+1,u=a*(i-2)+i,c=a*(i-1),h=a*(3-2*i);return t[0]=e[0]*o+n[0]*u+r[0]*c+s[0]*h,t[1]=e[1]*o+n[1]*u+r[1]*c+s[1]*h,t[2]=e[2]*o+n[2]*u+r[2]*c+s[2]*h,t},inverse:E,len:L,length:i,lerp:I,max:x,min:g,mul:T,multiply:h,negate:C,normalize:_,random:function(t,e=1){const n=s.Ov,r=2*n()*Math.PI,i=2*n()-1,a=Math.sqrt(1-i*i)*e;return t[0]=Math.cos(r)*a,t[1]=Math.sin(r)*a,t[2]=i*e,t},rotateX:function(t,e,n,r){const s=[],i=[];return s[0]=e[0]-n[0],s[1]=e[1]-n[1],s[2]=e[2]-n[2],i[0]=s[0],i[1]=s[1]*Math.cos(r)-s[2]*Math.sin(r),i[2]=s[1]*Math.sin(r)+s[2]*Math.cos(r),t[0]=i[0]+n[0],t[1]=i[1]+n[1],t[2]=i[2]+n[2],t},rotateY:function(t,e,n,r){const s=[],i=[];return s[0]=e[0]-n[0],s[1]=e[1]-n[1],s[2]=e[2]-n[2],i[0]=s[2]*Math.sin(r)+s[0]*Math.cos(r),i[1]=s[1],i[2]=s[2]*Math.cos(r)-s[0]*Math.sin(r),t[0]=i[0]+n[0],t[1]=i[1]+n[1],t[2]=i[2]+n[2],t},rotateZ:function(t,e,n,r){const s=[],i=[];return s[0]=e[0]-n[0],s[1]=e[1]-n[1],s[2]=e[2]-n[2],i[0]=s[0]*Math.cos(r)-s[1]*Math.sin(r),i[1]=s[0]*Math.sin(r)+s[1]*Math.cos(r),i[2]=s[2],t[0]=i[0]+n[0],t[1]=i[1]+n[1],t[2]=i[2]+n[2],t},round:function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t},scale:p,scaleAndAdd:y,set:o,sign:m,sqrDist:k,sqrLen:B,squaredDistance:M,squaredLength:v,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:G,subtract:c,transformMat3:A,transformMat4:S,transformQuat:O,transformQuatValues:V},Symbol.toStringTag,{value:"Module"}))},69397(t,e,n){n.d(e,{Qf:()=>u,Qh:()=>a,RS:()=>s,Ul:()=>m,i5:()=>f,lM:()=>i,qK:()=>h});var r=n(34275);const s=16;function i(t){if(!t)return 0;let e=h;for(const n in t)t.hasOwnProperty(n)&&(e+=o(t[n],!1));return e}function a(t){if(!t)return 0;if("number"==typeof t[0])return u(t);if(Array.isArray(t))return function(t){const e=t.length;if(0===e||"number"==typeof t[0])return c(t,8);let n=l;for(let r=0;r<e;r++)n+=o(t[r]);return n}(t);let e=h;for(const n in t)t.hasOwnProperty(n)&&(e+=o(t[n]));return e}function o(t,e=!0){switch(typeof t){case"object":return e?a(t):h;case"string":return function(t){return 32+t.length}(t);case"number":return s;case"boolean":return 4;default:return 8}}function u(...t){return t.reduce((t,e)=>t+(e?(0,r.iu)(e)?e.byteLength+f:Array.isArray(e)?c(e,s):0:0),0)}function c(t,e){return l+t.length*e}const h=32,l=16,f=145,m=64},87992(t,e,n){n.d(e,{JR:()=>b,ME:()=>E,MY:()=>I,NO:()=>C,Nh:()=>P,V2:()=>Z,_s:()=>w,e6:()=>Y,gh:()=>_,tr:()=>F,uX:()=>p});var r=n(5482),s=n(69397),i=n(16930),a=(n(70328),n(19419)),o=n(60408),u=n(21325),c=n(513),h=n(50954),l=n(79567),f=n(52006),m=n(49663),g=n(46068),x=n(92722);class p{constructor({type:t,spatialReference:e,vertexCount:n,vertexXY:r,vertexZ:s,vertexM:i,partCount:a,partOffsets:o,partFlags:u,segmentFlags:c,segmentIndices:h,segmentParams:l,segmentCountArc:f,segmentCountBezier:m}){this.segmentCountArc=0,this.segmentCountBezier=0,this.type=t,this.spatialReference=e,this.vertexCount=n,this.vertexXY=r,this.vertexZ=s,this.vertexM=i,this.partCount=a,this.partOffsets=o,this.partFlags=u,this.segmentFlags=c,this.segmentIndices=h,this.segmentParams=l,this.segmentCountArc=f,this.segmentCountBezier=m}get segmentParamCount(){return 10*this.segmentCountArc+4*this.segmentCountBezier}get segmentCountLine(){const{segmentCount:t,segmentCountArc:e,segmentCountBezier:n}=this;return t&&t-e-n}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?s.Ul+t.byteLength:0}return t(this.vertexXY)+t(this.vertexZ)+t(this.vertexM)+t(this.partOffsets)+t(this.partFlags)+t(this.segmentFlags)+t(this.segmentIndices)+t(this.segmentParams)}clone(){const{type:t,vertexCount:e,partCount:n,hasZ:r,hasM:s,segmentCountArc:i,segmentCountBezier:a}=this,o=Z(t,e,n,r,s,this.hasCurves(),i,a);o.spatialReference=this.spatialReference;const{vertexXY:u,vertexZ:c,vertexM:h}=this;if(o.vertexXY.set(u.subarray(0,2*e),0),o.vertexZ?.set(c.subarray(0,e),0),o.vertexM?.set(h.subarray(0,e),0),this.isMultipart()){const{partOffsets:t,partFlags:e}=this;o.partFlags.set(e.subarray(0,n+1)),o.partOffsets.set(t.subarray(0,n+1))}if(this.hasCurves()){const{segmentFlags:t,segmentIndices:n,segmentParams:r,segmentParamCount:s}=this;o.segmentFlags.set(t.subarray(0,e),0),o.segmentIndices.set(n.subarray(0,e),0),o.segmentParams.set(r.subarray(0,s),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,u.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 n=0===e?(t,e)=>t!==e||isNaN(t)!==isNaN(e):(t,n)=>Math.abs(t-n)>e||isNaN(t)!==isNaN(n);for(let e=0;e<this.vertexCount;++e)if(n(this.vertexXY[2*e],t.vertexXY[2*e])||n(this.vertexXY[2*e+1],t.vertexXY[2*e+1]))return!1;if(this.hasZ)for(let e=0;e<this.vertexCount;++e)if(n(this.vertexZ[e],t.vertexZ[e]))return!1;if(this.hasM)for(let e=0;e<this.vertexCount;++e)if(n(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(n(this.segmentParams[e],t.segmentParams[e]))return!1}return!0}get parts(){return this.isMultipart()?new y(this):[][Symbol.iterator]()}}class y{constructor(t){this.geometry=t,this.value=new d(t)}get done(){return this.value.index>=this.geometry.partCount}next(){return++this.value.index,this}[Symbol.iterator](){return this}}class d{constructor(t){this.geometry=t,this.index=-1,this._readVertex=O(t),this._segments=new M(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 M{constructor(t){this._part=t,this._partStart=0,this._partEnd=0,this._isPolygon="polygon"===t.geometry.type,this.value=new v(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 v{constructor(t){this.geometry=t,this.indexOfStartVertex=-1,this.indexOfEndVertex=-1,this._readVertex=O(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 n=this.geometry.segmentIndices[this.indexOfStartVertex];if(2===t){const t=e[n++],r=e[n++],s=e[n++],i=e[n++];return{b:[this.end,[t,r],[s,i]]}}const r=e[n++],s=e[n++],i=e[n++],a=e[n++],o=e[n++],u=e[n++];n++,n++;const c=e[n++],h=e[n++];if(!Boolean(4&r)&&1===i)return{c:[this.end,[c,h]]};const l=2&r?0:1,f=1&r?0:1;return{a:[this.end,[o,u],l,f,a,s,i]}}}function C(t,e){const n={stack:[],error:void 0,hasError:!1};try{return e??=(0,a.Ie)(),(0,r.mS)(n,new S(t,["vertexZ","vertexM","spatialReference"]),!1),(0,a.bx)(e,function(t){let e;const{vertexCount:n,vertexXY:s,vertexZ:i,vertexM:o}=t,u=A(t);if(t.hasCurves()){const n={stack:[],error:void 0,hasError:!1};try{(0,r.mS)(n,new S(t,["vertexZ","vertexM"]),!1);const s=(0,a.Ie)();for(const e of t.parts){let t=e.startVertex;for(const{curve:n}of e.segments)(0,l.e)(s,t,n),t=(0,f.yP)(n)}const[i,o,c,h]=s;e={xmin:i,ymin:o,xmax:c,ymax:h,spatialReference:u}}catch(t){n.error=t,n.hasError=!0}finally{(0,r.hk)(n)}}else{let t,r,i,a;t=r=1/0,i=a=-1/0;for(let e=0;e<n;++e){const n=s[2*e],o=s[2*e+1];t=Math.min(t,n),i=Math.max(i,n),r=Math.min(r,o),a=Math.max(a,o)}e={xmin:t,ymin:r,xmax:i,ymax:a,spatialReference:u}}if(i){let t=1/0,n=-1/0;for(const e of i)t=Math.min(t,e),n=Math.max(n,e);e.zmin=t,e.zmax=n}if(o){let t=1/0,n=-1/0;for(const e of o)t=Math.min(t,e),n=Math.max(n,e);e.mmin=t,e.mmax=n}return e}(t)),e}catch(t){n.error=t,n.hasError=!0}finally{(0,r.hk)(n)}}function E(t){let e,n,r;if((0,o.fT)(t)){r="point";const{x:s,y:i,z:a,m:o}=t,u=[s,i];null!=a&&u.push(a),null!=o&&u.push(o),n=[[u]],e=1}else(0,o.U9)(t)?(r="multipoint",n=[t.points],e=t.points.length):(0,o.Rg)(t)?(r="polyline",n=t.curvePaths??t.paths,e=n.reduce((t,e)=>t+e.length,0)):(r="polygon",n=t.curveRings??t.rings,e=n.reduce((t,e)=>(0===e.length||(t+=e.length,V(e[0],(0,f.yP)(e.at(-1)))&&--t),t),0));const s=Z(r,e,r.includes("point")?0:n.length,(0,o.Pv)(t),(0,o.W0)(t),(0,f.Ed)(t)),{hasZ:i,hasM:a,vertexXY:u,vertexZ:c,vertexM:h}=s;function l(t){u[2*g]=t[0],u[2*g+1]=t[1],i&&(c[g]=t[2]),a&&(h[g]=t[m]),++g}s.spatialReference=t.spatialReference??void 0;const m=s.hasZ?3:2;let g=0;if(!s.isMultipart()){if(!i&&!a){for(const[t,e]of n[0])u[2*g]=t,u[2*g+1]=e,++g;return s}for(const t of n[0])l(t);return s}const x="polygon"===r,{partOffsets:p}=s;let y=0;if(!(0,f.Ed)(t)){for(const t of n){if(p[y++]=g,0===t.length)continue;let e=t.length;if(x&&V(t[0],t.at(-1))&&--e,i||a)for(let n=0;n<e;++n)l(t[n]);else for(let n=0;n<e;++n){const[e,r]=t[n];u[2*g]=e,u[2*g+1]=r,++g}}return p[y]=g,s}function d(t){const e=M+t;if(e<=(s.segmentParams?.length??0))return;let n=e*G;n=20*Math.ceil(n/20);const r=s.segmentParams;s.segmentParams=new Float64Array(n),null!=r&&s.segmentParams.set(r)}let M=0;for(const t of n){if(s.partOffsets[y++]=g,0===t.length)continue;const e=t[0];let n=e;for(let e=1;e<t.length;++e){const r=t[e];l(n);const i=g-1;(0,f.wY)(r)?(d(10),++s.segmentCountArc,M=w(n,r,s,i,M),n=r.a[0]):(0,f.DA)(r)?(d(10),++s.segmentCountArc,M=R(n,r,s,i,M),n=r.a[0]):(0,f.aO)(r)?(d(10),++s.segmentCountArc,M=Y(n,r,s,i,M),n=r.c[0]):(0,f.n1)(r)?(d(4),++s.segmentCountBezier,M=F(0,r,s,i,M),n=r.b[0]):n=r}x&&V(e,n)||l(n)}return s.partOffsets[y]=g,s}function _(t){const e=O(t),{vertexCount:n,partCount:r,hasZ:s,hasM:i}=t,a=A(t);if("point"===t.type){const[e,n]=t.vertexXY,r=t.vertexZ?.[0],s=t.vertexM?.[0];return{x:e,y:n,z:r,m:s,spatialReference:a}}let o=0;if("multipoint"===t.type){const t=[];for(;o<n;)t.push(e(o++));return{points:t,spatialReference:a,hasZ:s,hasM:i}}const u="polygon"===t.type;if(!t.hasCurves()){const n=new Array;for(let s=0;s<r;++s){const r=t.partOffsets[s+1],i=new Array;for(;o<r;)i.push(e(o++));u&&i.length>0&&i.push(i[0]),n.push(i)}return u?{rings:n,hasZ:s,hasM:i,spatialReference:a}:{paths:n,hasZ:s,hasM:i,spatialReference:a}}const c=new Array;for(const{segments:e,startVertex:n}of t.parts){const t=[n];for(const{curve:n}of e)t.push(n);c.push(t)}return u?{rings:[],curveRings:c,hasZ:s,hasM:i,spatialReference:a}:{paths:[],curvePaths:c,hasZ:s,hasM:i,spatialReference:a}}function P(t,{lengths:e,coords:n,hasZ:r,hasM:s},i){const a=t.includes("point")?0:e.length,o="polygon"===t,u="point"===t?1:e.reduce((t,e)=>t+e,0)-(o?a:0);r??=!1,s??=!1;const c=Z(t,u,a,r,s,!1,0,0);if(c.spatialReference=i??void 0,!c.isMultipart()){for(let t=0,e=0;t<u;++t)c.vertexXY[2*t]=n[e++],c.vertexXY[2*t+1]=n[e++],r&&(c.vertexZ[t]=n[e++]),s&&(c.vertexM[t]=n[e++]);return c}const h=2+Number(r)+Number(s);let l=0,f=0;c.partOffsets[0]=0;for(const t of e){const e=c.partOffsets[f],i=e+t-Number(o);c.partOffsets[++f]=i;for(let t=e;t<i;++t)c.vertexXY[2*t]=n[l++],c.vertexXY[2*t+1]=n[l++],r&&(c.vertexZ[t]=n[l++]),s&&(c.vertexM[t]=n[l++]);o&&(l+=h)}return c}function b({type:t,vertexCount:e,vertexXY:n,vertexZ:r,vertexM:s,partCount:i,partOffsets:a,hasZ:o,hasM:u}){const c=new x.A([],[],o,u);i=Math.max(i,1);const h="polygon"===t;let l=0;for(let t=0;t<i;++t){const i=a?.[t+1]??e,f=c.coords.length;for(let t=l;t<i;++t)c.coords.push(n[2*t],n[2*t+1]),o&&c.coords.push(r[t]),u&&c.coords.push(s[t]);if(h){const t=l;c.coords.push(n[2*t],n[2*t+1]),o&&c.coords.push(r[t]),u&&c.coords.push(s[t])}c.lengths.push((c.coords.length-f)/c.stride),l=i}return"point"===t&&(c.lengths.length=0),c}function I(t,e){return"getSpatialReference"in t&&(e=function(t){if(null==t)return;const e=t.getText()||void 0,n=t.isCustomWkid()?0:t.getOldID();if(n<=0)return{wkt:e};let r=t.getLatestID();(r<=0||r===n)&&(r=void 0);const s=t.getVCS();if(null==s)return{wkid:n,latestWkid:r,wkt:e};const i=s.isCustomWkid()?0:s.getOldID();if(i<=0)return{wkt:e};let a=t.getLatestVerticalID();return(a<=0||a===i)&&(a=void 0),{wkid:n,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 n of e)t[n]=void 0}[Symbol.dispose](){this.keys.map((t,e)=>{this.target[t]=this.oldValues[e]})}}function A({spatialReference:t}){return t instanceof i.A?t.toJSON():t}function O({vertexXY:t,vertexZ:e,vertexM:n}){return e?n?r=>[t[2*r],t[2*r+1],e[r],n[r]]:n=>[t[2*n],t[2*n+1],e[n]]:n?e=>[t[2*e],t[2*e+1],n[e]]:e=>[t[2*e],t[2*e+1]]}function V(t,e){return t.every((t,n)=>t===e[n])}function Z(t,e,n,r,s,i,a,o){a??=0,o??=0;const u=new p({type:t,vertexCount:e,vertexXY:null,vertexZ:void 0,vertexM:void 0,partCount:n,partOffsets:void 0,partFlags:void 0,segmentFlags:void 0,segmentIndices:void 0,segmentParams:void 0,segmentCountArc:a,segmentCountBezier:o});let c=2*Float64Array.BYTES_PER_ELEMENT*e;r&&(c+=Float64Array.BYTES_PER_ELEMENT*e),s&&(c+=Float64Array.BYTES_PER_ELEMENT*e),u.isMultipart()&&(c+=(n+1)*Int32Array.BYTES_PER_ELEMENT,c+=(n+1)*Int8Array.BYTES_PER_ELEMENT),i&&(c+=e*Int8Array.BYTES_PER_ELEMENT,c+=e*Int32Array.BYTES_PER_ELEMENT,c+=u.segmentParamCount*Float64Array.BYTES_PER_ELEMENT);const h=new ArrayBuffer(c);let l=0;return u.vertexXY=new Float64Array(h,l,2*e),l+=u.vertexXY.byteLength,r&&(u.vertexZ=new Float64Array(h,l,e),l+=u.vertexZ.byteLength),s&&(u.vertexM=new Float64Array(h,l,e),l+=u.vertexM.byteLength),i&&(u.segmentParams=new Float64Array(h,l,u.segmentParamCount),l+=u.segmentParams.byteLength,u.segmentIndices=new Int32Array(h,l,e),u.segmentIndices.fill(T),l+=u.segmentIndices.byteLength),u.isMultipart()&&(u.partOffsets=new Int32Array(h,l,n+1),l+=u.partOffsets.byteLength,u.partFlags=new Int8Array(h,l,n+1),l+=u.partFlags.byteLength,"polygon"===u.type&&u.partFlags.subarray(0,n).fill(1)),i&&(u.segmentFlags=new Int8Array(h,l,e),u.segmentFlags.fill(1),l+=u.segmentFlags.byteLength),u}function w(t,e,{segmentFlags:n,segmentIndices:r,segmentParams:s},i,a){n[i]=4,r[i]=a;const[o,[u,c],h,l,f,m,x]=e.a;let p=4;l||(p|=1),h||(p|=2);const y=(0,g.SW)(t,e),[d,M]=(0,g.Uk)(y,.5);return s[a++]=p,s[a++]=m,s[a++]=x,s[a++]=f,s[a++]=u,s[a++]=c,s[a++]=y.u2-y.u1,s[a++]=y.u1,s[a++]=d,s[a++]=M,a}function R(t,e,{segmentFlags:n,segmentIndices:r,segmentParams:s},i,a){n[i]=4,r[i]=a;const o=(0,m.io)(t,e);return N(o,4,...(0,c.mq)(o,.5),s,a)}function Y(t,e,{segmentFlags:n,segmentIndices:r,segmentParams:s},i,a){return n[i]=4,r[i]=a,N((0,h.pM)(t,e),0,...e.c[1],s,a)}function N(t,e,n,r,s,i){const{cx:a,cy:o,thetaStart:u,thetaEnd:c,radius:h}=t;return u>c||(e|=1),Math.abs(c-u)<=Math.PI||(e|=2),s[i++]=e,s[i++]=h,s[i++]=1,s[i++]=0,s[i++]=a,s[i++]=o,s[i++]=c-u,s[i++]=u,s[i++]=n,s[i++]=r,i}function F(t,{b:[e,[n,r],[s,i]]},{segmentFlags:a,segmentIndices:o,segmentParams:u},c,h){return a[c]=2,o[c]=h,u[h++]=n,u[h++]=r,u[h++]=s,u[h++]=i,h}const G=1.61803,T=-1},5095(t,e,n){n.d(e,{fz:()=>u,g7:()=>i,pn:()=>o,zo:()=>a});var r=n(76061);const s=new(n(98783).O);function i(t,e,n){return s.execute(t,e,n,null)}function a(t,e,n){const i=s.executeMany(new r.S(t),e,n,null);return Array.from(i)}function o(t,e,n,r){return s.isSimple(t,e,n,r,null)}function u(){return s.supportsCurves()}},12499(t,e,n){n.d(e,{isSimple:()=>i});var r=n(5095),s=n(78125);function i(t,e){return(0,r.pn)((0,s.fromGeometry)(t),(0,s.fromSpatialReference)((0,s.getSpatialReference)(t)),null!=e,e??null)}(0,r.fz)()},78125(t,e,n){n.r(e),n.d(e,{fromExtent:()=>p,fromGeometry:()=>x,fromMultipoint:()=>y,fromPoint:()=>d,fromPolygon:()=>M,fromPolyline:()=>v,fromPolylineUsingImportOperator:()=>C,fromSpatialReference:()=>E,getSpatialReference:()=>g,toExtent:()=>P,toGeometry:()=>_,toMultipoint:()=>b,toPoint:()=>I,toPolygon:()=>S,toPolyline:()=>A});var r=n(83661),s=(n(79187),n(55537)),i=n(95213),a=n(88885),o=n(5443),u=n(48526),c=n(86738),h=n(39829),l=n(82799),f=(n(90293),n(83299));const m="_gxVersion";function g(t){return Array.isArray(t)?t[0].spatialReference:t.spatialReference}function x(t){switch(t.type){case"point":return d(t);case"multipoint":return y(t);case"polyline":return v(t);case"polygon":return M(t);case"extent":return p(t);default:throw new Error(`Unsupported geometry type: ${t.type}`)}}function p(t){if(!t.getCacheValue(m)){const e=new i.E;e.setCoords(t.xmin,t.ymin,t.xmax,t.ymax),t.hasM&&e.setInterval(2,0,t.mmin,t.mmax),t.hasZ&&e.setInterval(1,0,t.zmin,t.zmax),t.setCacheValue(m,e)}return t.getCacheValue(m)}function y(t){if(!t.getCacheValue(m)){const e=new a.M,n=new i.P,r=t.points,s=t.hasM,o=t.hasZ,u=o?3:2;for(let t=0,i=r.length;t<i;t++){const i=r[t];n.setXYCoords(i[0],i[1]),o&&n.setZ(i[2]??0),s&&n.setM(i[u]??NaN),e.add(n)}t.setCacheValue(m,e)}return t.getCacheValue(m)}function d(t){if(!t.getCacheValue(m)){const e=new i.P;e.setXYCoords(t.x,t.y),t.hasM&&e.setM(t.m),t.hasZ&&e.setZ(t.z),t.setCacheValue(m,e)}return t.getCacheValue(m)}function M(t){if(!t.getCacheValue(m)){const{curveRings:e,hasM:n,hasZ:r,rings:s}=t,i=(0,f.fromGeometryToGXGeometry)({curveRings:e,hasM:n,hasZ:r,rings:s});t.setCacheValue(m,i)}return t.getCacheValue(m)}function v(t){if(!t.getCacheValue(m)){const{curvePaths:e,hasM:n,hasZ:r,paths:s}=t,i=(0,f.fromGeometryToGXGeometry)({curvePaths:e,hasM:n,hasZ:r,paths:s});t.setCacheValue(m,i)}return t.getCacheValue(m)}function C(t){if(!t.getCacheValue(m)){const{curvePaths:e,hasM:n,hasZ:r,paths:s}=t,i=(0,f.fromGeometryToGXGeometryUsingImportOperator)({curvePaths:e,hasM:n,hasZ:r,paths:s});t.setCacheValue(m,i)}return t.getCacheValue(m)}function E(t){return t.cache?(t.cache[m]??=(0,f.fromSpatialReference)(t),t.cache[m]):(0,f.fromSpatialReference)(t)}function _(t,e){if(t)switch(t.getGeometryType()){case s.G.enumPoint:return I(t,e);case s.G.enumEnvelope:return P(t,e);case s.G.enumMultiPoint:return b(t,e);case s.G.enumPolyline:return A(t,e);case s.G.enumPolygon:return S(t,e)}return null}function P(t,e){if(t.isEmpty())return null;const n=new o.A({xmin:t.getXMin(),ymin:t.getYMin(),xmax:t.getXMax(),ymax:t.getYMax(),spatialReference:e}),r=t.getDescription();if(r.hasM()){const e=t.queryInterval(2,0);n.mmin=e.vmin,n.mmax=e.vmax}if(r.hasZ()){const e=t.queryInterval(1,0);n.zmin=e.vmin,n.zmax=e.vmax}return n.setCacheValue(m,t),n}function b(t,e){if(t.isEmpty())return null;const n=t.getDescription(),r=n.hasM(),s=n.hasZ(),a=[],o=new i.P;for(let e=0,n=t.getPointCount();e<n;e++){t.getPointByVal(e,o);const n=[o.getX(),o.getY()];s&&n.push(o.getZ()),r&&n.push(o.getM()),a.push(n)}const c=new u.A({hasM:r,hasZ:s,points:a,spatialReference:e});return c.setCacheValue(m,t),c}function I(t,e){if(t instanceof r.P)return new c.A({x:t.x,y:t.y,spatialReference:e});if(t.isEmpty())return null;const n=new c.A({x:t.getX(),y:t.getY(),spatialReference:e}),s=t.getDescription();return s.hasM()&&(n.m=t.getM()),s.hasZ()&&(n.z=t.getZ()),n.setCacheValue(m,t),n}function S(t,e){if(t.isEmpty())return null;const n=h.A.fromJSON({...(0,f.toGeometry)(t,null),spatialReference:e});return n.setCacheValue(m,t),n}function A(t,e){if(t.isEmpty())return null;const n=l.A.fromJSON({...(0,f.toGeometry)(t,null),spatialReference:e});return n.setCacheValue(m,t),n}},4197(t,e,n){n.d(e,{Vj:()=>u,cj:()=>o,jh:()=>i,l5:()=>a});var r=n(34275),s=n(9093);function i(t){return t<=r.y9?new Array(t).fill(0):new Float64Array(t)}function a(t,e,n){return Array.isArray(t)?t.slice(e,e+n):t.subarray(e,e+n)}function o(t){return[...t]}function u(t){const e=(0,s.vt)();for(let n=0;n<16;++n)e[n]=t[n];return e}},70328(t,e,n){n.d(e,{BI:()=>M,DC:()=>l,Ej:()=>m,Ie:()=>y,Jt:()=>d,Ne:()=>g,RF:()=>h,aI:()=>C,fA:()=>a,gE:()=>u,hZ:()=>p,iT:()=>f,is:()=>v,qv:()=>E,vI:()=>x,vY:()=>o,v_:()=>_,vt:()=>i,w1:()=>c}),n(35522);var r=n(5443),s=(n(19419),n(4197));function i(t=_){return[t[0],t[1],t[2],t[3],t[4],t[5]]}function a(t,e,n,r,s,a,o=i()){return o[0]=t,o[1]=e,o[2]=n,o[3]=r,o[4]=s,o[5]=a,o}function o(t,e=i()){return function(t,e,n,r=i()){return p(r,E),function(t,e,n=0,r=e.length/3){let s=t[0],i=t[1],a=t[2],o=t[3],u=t[4],c=t[5];for(let t=0;t<r;t++)s=Math.min(s,e[n+3*t]),i=Math.min(i,e[n+3*t+1]),a=Math.min(a,e[n+3*t+2]),o=Math.max(o,e[n+3*t]),u=Math.max(u,e[n+3*t+1]),c=Math.max(c,e[n+3*t+2]);t[0]=s,t[1]=i,t[2]=a,t[3]=o,t[4]=u,t[5]=c}(r,t,e,n),r}(t,0,t.length/3,e)}function u(t,e=(0,s.jh)(24)){const[n,r,i,a,o,u]=t;return e[0]=n,e[1]=r,e[2]=i,e[3]=n,e[4]=r,e[5]=u,e[6]=n,e[7]=o,e[8]=i,e[9]=n,e[10]=o,e[11]=u,e[12]=a,e[13]=r,e[14]=i,e[15]=a,e[16]=r,e[17]=u,e[18]=a,e[19]=o,e[20]=i,e[21]=a,e[22]=o,e[23]=u,e}function c(t,e){const n=isFinite(t[2])||isFinite(t[5]);return new r.A(n?{xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],zmin:t[2],zmax:t[5],spatialReference:e}:{xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],spatialReference:e})}function h(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.min(t[2],e[2]),t[3]=Math.max(t[3],e[3]),t[4]=Math.max(t[4],e[4]),t[5]=Math.max(t[5],e[5])}function l(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[3]=Math.max(t[3],e[2]),t[4]=Math.max(t[4],e[3])}function f(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.min(t[2],e[2]),t[3]=Math.max(t[3],e[0]),t[4]=Math.max(t[4],e[1]),t[5]=Math.max(t[5],e[2])}function m(t,e=[0,0,0]){return e[0]=function(t){return t[0]>=t[3]?0:t[3]-t[0]}(t),e[1]=function(t){return t[1]>=t[4]?0:t[4]-t[1]}(t),e[2]=function(t){return t[2]>=t[5]?0:t[5]-t[2]}(t),e}function g(t,e,n=t){return n[0]=e[0],n[1]=e[1],n[2]=e[2],n!==t&&(n[3]=t[3],n[4]=t[4],n[5]=t[5]),n}function x(t,e,n=t){return n[3]=e[0],n[4]=e[1],n[5]=e[2],n!==t&&(n[0]=t[0],n[1]=t[1],n[2]=t[2]),t}function p(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function y(t){return t?p(t,E):i(E)}function d(t,e){return t[0]=e[0],t[1]=e[1],t[2]=Number.NEGATIVE_INFINITY,t[3]=e[2],t[4]=e[3],t[5]=Number.POSITIVE_INFINITY,t}function M(t,e,n,r,s){return t[0]=e,t[1]=n,t[2]=Number.NEGATIVE_INFINITY,t[3]=r,t[4]=s,t[5]=Number.POSITIVE_INFINITY,t}function v(t){return 6===t.length}function C(t,e,n){if(null==t||null==e)return t===e;if(!v(t)||!v(e))return!1;if(n){for(let r=0;r<t.length;r++)if(!n(t[r],e[r]))return!1}else for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}const E=[1/0,1/0,1/0,-1/0,-1/0,-1/0],_=[0,0,0,0,0,0];i()},92722(t,e,n){n.d(e,{A:()=>s});var r=n(69397);class s{constructor(t=[],e=[],n=!1,r=!1){this.lengths=t??[],this.coords=e??[],this.hasZ=n,this.hasM=r}static fromJSON({lengths:t,coords:e,hasZ:n,hasM:r}){return new s(t,e,n||!1,r||!1)}static fromRect([t,e,n,r]){const i=n-t,a=r-e;return new s([5],[t,e,i,0,0,a,-i,0,0,-a])}get isPoint(){return 0===this.lengths.length&&this.coords.length>=2}get maxLength(){return Math.max(...this.lengths)}get size(){return this.isPoint?1:this.lengths.reduce((t,e)=>t+e,0)}get usedMemory(){return 64+(0,r.Qf)(this.lengths,this.coords)}get stride(){return 2+(this.hasZ?1:0)+(this.hasM?1:0)}area(){if(this.isPoint)return 0;let t=0,e=0;for(const n of this.lengths){if(n<3)continue;const{stride:r}=this;let s=this.coords[r*e],i=this.coords[r*e+1];for(let a=1;a<n;a+=1){const n=r*(e+a),o=this.coords[n],u=this.coords[n+1];t+=-.5*(o-s)*(u+i),s=o,i=u}e+=n}return t}forEachVertex(t){let e=0;if(this.isPoint)return t(this.coords[0],this.coords[1]);const{stride:n}=this;for(const r of this.lengths){for(let s=0;s<r;s++){const r=n*(e+s);t(this.coords[r],this.coords[r+1])}e+=r}}deltaDecode(){const t=this.clone(),{coords:e,lengths:n}=t;let r=0;const{stride:s}=this;for(const t of n){for(let n=1;n<t;n++){const t=s*(r+n);e[t]+=e[t-s],e[t+1]+=e[t+1-s]}r+=t}return t}clone(t){if(this.isPoint)return new s([],Array.from(this.coords.slice(0,this.stride)),this.hasZ,this.hasM);const e=Array.from(this.lengths),{stride:n,size:r}=this,i=this.coords.slice(0,r*n);return t?(t.set(i),new s(e,t,this.hasZ,this.hasM)):new s(e,Array.from(i),this.hasZ,this.hasM)}justXY(){const{stride:t,size:e}=this;if(2===t)return this;const n=new Array(e*t);for(let e=0,r=0;e<n.length;e+=t)n[r++]=this.coords[e],n[r++]=this.coords[e+1];return new s(this.lengths,n,!1,!1)}}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1948,3304,6061],{61691(t,e,r){r.d(e,{G:()=>s});class s{*[Symbol.iterator](){let t=this.next();for(;t;)yield t,t=this.next()}}},85181(t,e,r){r.d(e,{O:()=>n});var s=r(15756);class n extends s.n{getOperatorType(){return 9}execute(t,e,r,n){return(0,s.r)(t,e,r,32,n)}}},76061(t,e,r){r.d(e,{S:()=>n});var s=r(61691);class n extends s.G{constructor(t){super(),this.m_iGeom=-1,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,r){r.d(e,{JR:()=>S,ME:()=>E,MY:()=>P,NO:()=>M,Nh:()=>_,V2:()=>Y,_s:()=>b,e6:()=>I,gh:()=>O,tr:()=>X,uX:()=>p});var s=r(5482),n=r(69397),i=r(16930),a=(r(70328),r(19419)),o=r(60408),h=r(21325),u=r(513),l=r(50954),g=r(79567),c=r(52006),m=r(49663),f=r(46068),x=r(92722);class p{constructor({type:t,spatialReference:e,vertexCount:r,vertexXY:s,vertexZ:n,vertexM:i,partCount:a,partOffsets:o,partFlags:h,segmentFlags:u,segmentIndices:l,segmentParams:g,segmentCountArc:c,segmentCountBezier:m}){this.segmentCountArc=0,this.segmentCountBezier=0,this.type=t,this.spatialReference=e,this.vertexCount=r,this.vertexXY=s,this.vertexZ=n,this.vertexM=i,this.partCount=a,this.partOffsets=o,this.partFlags=h,this.segmentFlags=u,this.segmentIndices=l,this.segmentParams=g,this.segmentCountArc=c,this.segmentCountBezier=m}get segmentParamCount(){return 10*this.segmentCountArc+4*this.segmentCountBezier}get segmentCountLine(){const{segmentCount:t,segmentCountArc:e,segmentCountBezier:r}=this;return t&&t-e-r}get segmentCount(){return"polyline"===this.type?this.vertexCount-this.partCount:"polygon"===this.type?this.vertexCount:0}get hasZ(){return null!=this.vertexZ}get hasM(){return null!=this.vertexM}hasCurves(){return this.segmentCountArc+this.segmentCountBezier>0}isMultipart(){return"polyline"===this.type||"polygon"===this.type}get usedMemory(){function t(t){return t?n.Ul+t.byteLength:0}return t(this.vertexXY)+t(this.vertexZ)+t(this.vertexM)+t(this.partOffsets)+t(this.partFlags)+t(this.segmentFlags)+t(this.segmentIndices)+t(this.segmentParams)}clone(){const{type:t,vertexCount:e,partCount:r,hasZ:s,hasM:n,segmentCountArc:i,segmentCountBezier:a}=this,o=Y(t,e,r,s,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,r+1)),o.partOffsets.set(t.subarray(0,r+1))}if(this.hasCurves()){const{segmentFlags:t,segmentIndices:r,segmentParams:s,segmentParamCount:n}=this;o.segmentFlags.set(t.subarray(0,e),0),o.segmentIndices.set(r.subarray(0,e),0),o.segmentParams.set(s.subarray(0,n),0)}return o}equals(t){return this.equalsWithinTolerance(t,0)}equalsWithinTolerance(t,e){if(null==t)return!1;if(this===t)return!0;if(!(0,h.aI)(this.spatialReference,t.spatialReference))return!1;if(this.vertexCount!==t.vertexCount||this.partCount!==t.partCount)return!1;if(this.hasZ!==t.hasZ||this.hasM!==t.hasM)return!1;if(this.hasCurves()!==t.hasCurves()||this.segmentCountArc!==t.segmentCountArc||this.segmentCountBezier!==t.segmentCountBezier)return!1;const r=0===e?(t,e)=>t!==e||isNaN(t)!==isNaN(e):(t,r)=>Math.abs(t-r)>e||isNaN(t)!==isNaN(r);for(let e=0;e<this.vertexCount;++e)if(r(this.vertexXY[2*e],t.vertexXY[2*e])||r(this.vertexXY[2*e+1],t.vertexXY[2*e+1]))return!1;if(this.hasZ)for(let e=0;e<this.vertexCount;++e)if(r(this.vertexZ[e],t.vertexZ[e]))return!1;if(this.hasM)for(let e=0;e<this.vertexCount;++e)if(r(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(r(this.segmentParams[e],t.segmentParams[e]))return!1}return!0}get parts(){return this.isMultipart()?new v(this):[][Symbol.iterator]()}}class v{constructor(t){this.geometry=t,this.value=new d(t)}get done(){return this.value.index>=this.geometry.partCount}next(){return++this.value.index,this}[Symbol.iterator](){return this}}class d{constructor(t){this.geometry=t,this.index=-1,this._readVertex=F(t),this._segments=new y(this)}get segments(){return this._segments.reset(),this._segments}get startVertex(){return this._readVertex(this.geometry.partOffsets[this.index])}get vertexCount(){const t=this.geometry.partOffsets;return t[this.index+1]-t[this.index]}}class y{constructor(t){this._part=t,this._partStart=0,this._partEnd=0,this._isPolygon="polygon"===t.geometry.type,this.value=new C(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 C{constructor(t){this.geometry=t,this.indexOfStartVertex=-1,this.indexOfEndVertex=-1,this._readVertex=F(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 r=this.geometry.segmentIndices[this.indexOfStartVertex];if(2===t){const t=e[r++],s=e[r++],n=e[r++],i=e[r++];return{b:[this.end,[t,s],[n,i]]}}const s=e[r++],n=e[r++],i=e[r++],a=e[r++],o=e[r++],h=e[r++];r++,r++;const u=e[r++],l=e[r++];if(!Boolean(4&s)&&1===i)return{c:[this.end,[u,l]]};const g=2&s?0:1,c=1&s?0:1;return{a:[this.end,[o,h],g,c,a,n,i]}}}function M(t,e){const r={stack:[],error:void 0,hasError:!1};try{return e??=(0,a.Ie)(),(0,s.mS)(r,new R(t,["vertexZ","vertexM","spatialReference"]),!1),(0,a.bx)(e,function(t){let e;const{vertexCount:r,vertexXY:n,vertexZ:i,vertexM:o}=t,h=A(t);if(t.hasCurves()){const r={stack:[],error:void 0,hasError:!1};try{(0,s.mS)(r,new R(t,["vertexZ","vertexM"]),!1);const n=(0,a.Ie)();for(const e of t.parts){let t=e.startVertex;for(const{curve:r}of e.segments)(0,g.e)(n,t,r),t=(0,c.yP)(r)}const[i,o,u,l]=n;e={xmin:i,ymin:o,xmax:u,ymax:l,spatialReference:h}}catch(t){r.error=t,r.hasError=!0}finally{(0,s.hk)(r)}}else{let t,s,i,a;t=s=1/0,i=a=-1/0;for(let e=0;e<r;++e){const r=n[2*e],o=n[2*e+1];t=Math.min(t,r),i=Math.max(i,r),s=Math.min(s,o),a=Math.max(a,o)}e={xmin:t,ymin:s,xmax:i,ymax:a,spatialReference:h}}if(i){let t=1/0,r=-1/0;for(const e of i)t=Math.min(t,e),r=Math.max(r,e);e.zmin=t,e.zmax=r}if(o){let t=1/0,r=-1/0;for(const e of o)t=Math.min(t,e),r=Math.max(r,e);e.mmin=t,e.mmax=r}return e}(t)),e}catch(t){r.error=t,r.hasError=!0}finally{(0,s.hk)(r)}}function E(t){let e,r,s;if((0,o.fT)(t)){s="point";const{x:n,y:i,z:a,m:o}=t,h=[n,i];null!=a&&h.push(a),null!=o&&h.push(o),r=[[h]],e=1}else(0,o.U9)(t)?(s="multipoint",r=[t.points],e=t.points.length):(0,o.Rg)(t)?(s="polyline",r=t.curvePaths??t.paths,e=r.reduce((t,e)=>t+e.length,0)):(s="polygon",r=t.curveRings??t.rings,e=r.reduce((t,e)=>(0===e.length||(t+=e.length,Z(e[0],(0,c.yP)(e.at(-1)))&&--t),t),0));const n=Y(s,e,s.includes("point")?0:r.length,(0,o.Pv)(t),(0,o.W0)(t),(0,c.Ed)(t)),{hasZ:i,hasM:a,vertexXY:h,vertexZ:u,vertexM:l}=n;function g(t){h[2*f]=t[0],h[2*f+1]=t[1],i&&(u[f]=t[2]),a&&(l[f]=t[m]),++f}n.spatialReference=t.spatialReference??void 0;const m=n.hasZ?3:2;let f=0;if(!n.isMultipart()){if(!i&&!a){for(const[t,e]of r[0])h[2*f]=t,h[2*f+1]=e,++f;return n}for(const t of r[0])g(t);return n}const x="polygon"===s,{partOffsets:p}=n;let v=0;if(!(0,c.Ed)(t)){for(const t of r){if(p[v++]=f,0===t.length)continue;let e=t.length;if(x&&Z(t[0],t.at(-1))&&--e,i||a)for(let r=0;r<e;++r)g(t[r]);else for(let r=0;r<e;++r){const[e,s]=t[r];h[2*f]=e,h[2*f+1]=s,++f}}return p[v]=f,n}function d(t){const e=y+t;if(e<=(n.segmentParams?.length??0))return;let r=e*k;r=20*Math.ceil(r/20);const s=n.segmentParams;n.segmentParams=new Float64Array(r),null!=s&&n.segmentParams.set(s)}let y=0;for(const t of r){if(n.partOffsets[v++]=f,0===t.length)continue;const e=t[0];let r=e;for(let e=1;e<t.length;++e){const s=t[e];g(r);const i=f-1;(0,c.wY)(s)?(d(10),++n.segmentCountArc,y=b(r,s,n,i,y),r=s.a[0]):(0,c.DA)(s)?(d(10),++n.segmentCountArc,y=V(r,s,n,i,y),r=s.a[0]):(0,c.aO)(s)?(d(10),++n.segmentCountArc,y=I(r,s,n,i,y),r=s.c[0]):(0,c.n1)(s)?(d(4),++n.segmentCountBezier,y=X(0,s,n,i,y),r=s.b[0]):r=s}x&&Z(e,r)||g(r)}return n.partOffsets[v]=f,n}function O(t){const e=F(t),{vertexCount:r,partCount:s,hasZ:n,hasM:i}=t,a=A(t);if("point"===t.type){const[e,r]=t.vertexXY,s=t.vertexZ?.[0],n=t.vertexM?.[0];return{x:e,y:r,z:s,m:n,spatialReference:a}}let o=0;if("multipoint"===t.type){const t=[];for(;o<r;)t.push(e(o++));return{points:t,spatialReference:a,hasZ:n,hasM:i}}const h="polygon"===t.type;if(!t.hasCurves()){const r=new Array;for(let n=0;n<s;++n){const s=t.partOffsets[n+1],i=new Array;for(;o<s;)i.push(e(o++));h&&i.length>0&&i.push(i[0]),r.push(i)}return h?{rings:r,hasZ:n,hasM:i,spatialReference:a}:{paths:r,hasZ:n,hasM:i,spatialReference:a}}const u=new Array;for(const{segments:e,startVertex:r}of t.parts){const t=[r];for(const{curve:r}of e)t.push(r);u.push(t)}return h?{rings:[],curveRings:u,hasZ:n,hasM:i,spatialReference:a}:{paths:[],curvePaths:u,hasZ:n,hasM:i,spatialReference:a}}function _(t,{lengths:e,coords:r,hasZ:s,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);s??=!1,n??=!1;const u=Y(t,h,a,s,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]=r[e++],u.vertexXY[2*t+1]=r[e++],s&&(u.vertexZ[t]=r[e++]),n&&(u.vertexM[t]=r[e++]);return u}const l=2+Number(s)+Number(n);let g=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]=r[g++],u.vertexXY[2*t+1]=r[g++],s&&(u.vertexZ[t]=r[g++]),n&&(u.vertexM[t]=r[g++]);o&&(g+=l)}return u}function S({type:t,vertexCount:e,vertexXY:r,vertexZ:s,vertexM:n,partCount:i,partOffsets:a,hasZ:o,hasM:h}){const u=new x.A([],[],o,h);i=Math.max(i,1);const l="polygon"===t;let g=0;for(let t=0;t<i;++t){const i=a?.[t+1]??e,c=u.coords.length;for(let t=g;t<i;++t)u.coords.push(r[2*t],r[2*t+1]),o&&u.coords.push(s[t]),h&&u.coords.push(n[t]);if(l){const t=g;u.coords.push(r[2*t],r[2*t+1]),o&&u.coords.push(s[t]),h&&u.coords.push(n[t])}u.lengths.push((u.coords.length-c)/u.stride),g=i}return"point"===t&&(u.lengths.length=0),u}function P(t,e){return"getSpatialReference"in t&&(e=function(t){if(null==t)return;const e=t.getText()||void 0,r=t.isCustomWkid()?0:t.getOldID();if(r<=0)return{wkt:e};let s=t.getLatestID();(s<=0||s===r)&&(s=void 0);const n=t.getVCS();if(null==n)return{wkid:r,latestWkid:s,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:r,wkt:e,latestWkid:s,vcsWkid:i,latestVcsWkid:a}}(t.getSpatialReference()),t=t.getGeometry()),new p({...t.toFlatGeometry(),spatialReference:e})}class R{constructor(t,e){this.target=t,this.keys=e,this.oldValues=e.map(e=>t[e]);for(const r of e)t[r]=void 0}[Symbol.dispose](){this.keys.map((t,e)=>{this.target[t]=this.oldValues[e]})}}function A({spatialReference:t}){return t instanceof i.A?t.toJSON():t}function F({vertexXY:t,vertexZ:e,vertexM:r}){return e?r?s=>[t[2*s],t[2*s+1],e[s],r[s]]:r=>[t[2*r],t[2*r+1],e[r]]:r?e=>[t[2*e],t[2*e+1],r[e]]:e=>[t[2*e],t[2*e+1]]}function Z(t,e){return t.every((t,r)=>t===e[r])}function Y(t,e,r,s,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:r,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;s&&(u+=Float64Array.BYTES_PER_ELEMENT*e),n&&(u+=Float64Array.BYTES_PER_ELEMENT*e),h.isMultipart()&&(u+=(r+1)*Int32Array.BYTES_PER_ELEMENT,u+=(r+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 g=0;return h.vertexXY=new Float64Array(l,g,2*e),g+=h.vertexXY.byteLength,s&&(h.vertexZ=new Float64Array(l,g,e),g+=h.vertexZ.byteLength),n&&(h.vertexM=new Float64Array(l,g,e),g+=h.vertexM.byteLength),i&&(h.segmentParams=new Float64Array(l,g,h.segmentParamCount),g+=h.segmentParams.byteLength,h.segmentIndices=new Int32Array(l,g,e),h.segmentIndices.fill(N),g+=h.segmentIndices.byteLength),h.isMultipart()&&(h.partOffsets=new Int32Array(l,g,r+1),g+=h.partOffsets.byteLength,h.partFlags=new Int8Array(l,g,r+1),g+=h.partFlags.byteLength,"polygon"===h.type&&h.partFlags.subarray(0,r).fill(1)),i&&(h.segmentFlags=new Int8Array(l,g,e),h.segmentFlags.fill(1),g+=h.segmentFlags.byteLength),h}function b(t,e,{segmentFlags:r,segmentIndices:s,segmentParams:n},i,a){r[i]=4,s[i]=a;const[o,[h,u],l,g,c,m,x]=e.a;let p=4;g||(p|=1),l||(p|=2);const v=(0,f.SW)(t,e),[d,y]=(0,f.Uk)(v,.5);return n[a++]=p,n[a++]=m,n[a++]=x,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 V(t,e,{segmentFlags:r,segmentIndices:s,segmentParams:n},i,a){r[i]=4,s[i]=a;const o=(0,m.io)(t,e);return w(o,4,...(0,u.mq)(o,.5),n,a)}function I(t,e,{segmentFlags:r,segmentIndices:s,segmentParams:n},i,a){return r[i]=4,s[i]=a,w((0,l.pM)(t,e),0,...e.c[1],n,a)}function w(t,e,r,s,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++]=r,n[i++]=s,i}function X(t,{b:[e,[r,s],[n,i]]},{segmentFlags:a,segmentIndices:o,segmentParams:h},u,l){return a[u]=2,o[u]=l,h[l++]=r,h[l++]=s,h[l++]=n,h[l++]=i,l}const k=1.61803,N=-1},46178(t,e,r){r.r(e),r.d(e,{execute:()=>a});var s=r(85181),n=r(83299);const i=new s.O;function a(t,e){const r=(0,n.fromGeometry)(t);return i.execute(r.getGeometry(),(0,n.fromGeometryToGXGeometry)(e),r.getSpatialReference(),null)}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7444],{1364(e,t,s){s.d(t,{c:()=>i});var n=s(55537);function i(e,t){const s=e.getGeometryType();return s===n.G.enumPoint?e:(0,n.h)(s)?function(e){if(function(e){for(let t=0,s=e.getPathCount();t<s;t++){const s=e.getPathSize(t);if(0===s)return!1;if(1===s){if(0===e.getSegmentCountPath(t))return!1;if(e.getSegmentType(e.getPathStart(t))===n.G.enumLine)return!1;if(!e.isClosedPath(t))return!1}}return!0}(e))return e;const t=e.createInstance();for(let s=0,i=e.getPathCount();s<i;s++){const i=e.getPathSize(s);if(0!==i){if(1===i){if(0===e.getSegmentCountPath(s))continue;if(e.getSegmentType(e.getPathStart(s))===n.G.enumLine)continue;if(!e.isClosedPath(s))continue}t.addPath(e,s,!0)}}return t}(e):s===n.G.enumMultiPoint||s===n.G.enumEnvelope?e:s===n.G.enumMultipatch?((0,n.t)("not implemented for multipatch"),e):e}},37444(e,t,s){s.r(t),s.d(t,{OperatorGeodesicBuffer:()=>G});var n=s(61691),i=s(55537),r=s(79187),o=s(15756),m=s(5482),a=s(88885),h=s(95213),c=s(11878),u=s(83661),l=s(31139),_=s(1364),f=s(5247),d=s(76061);class g{constructor(e){this.m_sr=null,this.m_gcs=null,this.m_transform=null,this.m_a=0,this.m_eSquared=0,this.m_rpu=0,this.m_radTolerance=0,this.m_q90=0,this.m_gcs90=0,this.m_gcs180=0,this.m_gcs360=0,this.m_gcs60=0,this.m_ellipticToGeodesicMaxRatio=0,this.m_curveType=0,this.m_bShapePreserving=!1,this.m_distance=0,this.m_absDistance=0,this.m_convergenceOffset=0,this.m_cornerStep=0,this.m_segmentStep=0,this.m_progressTracker=e}bufferPolygon(e){const t=new a.P,s=new M(this,e,t);return this.processGnomonicBufferPiecesCursor(!0,s)}bufferPolyline(e){const t=new M(this,e,null);return this.processGnomonicBufferPiecesCursor(!0,t)}bufferMultiPoint(e){const t=new N(this,e);return this.processGnomonicBufferPiecesCursor(!1,t)}bufferPoint(e){const t=e.getXY();t.scale(this.m_rpu);let s=new a.P;if(this.bufferPoint2D(t,!1,s)){const e=(0,h.e)(null,s,!0);s=(0,o.y)(s,e,!0,!0,-1,this.m_progressTracker,0,!1)}return s=(new o.O).foldInto360RangeGeodetic(s,this.m_gcs,2),s}processGnomonicBufferPiecesCursor(e,t){const s=t;let n=s.getGnomonic();const i=(0,o.a5)((0,o.a6)());let m=new o.a7,a=(new o.p).executeMany(m,i,this.m_progressTracker,2);const l=(0,u.d)(6,!1),_=(0,u.m)(r.Envelope2D,6);this.initializeGrid(l,_);const f=[null,null,null,null,null,null],d=[null,null,null,null,null,null],g=[null,null,null,null,null,null];let p,P,x;for(;null!==(p=s.next());){if(P=s.getGnomonic(),P!==n){if(null!==n){let t=a.next();if(m=null,a=null,null!=t){const s=(0,h.e)(i,t,!0),r=(0,h.h)(s);t=n.unproject(t,r,this.m_progressTracker),this.putInGridCursors(e,t,i,!0,l,_,f,d,g)}}null!==P&&(m=new o.a7,a=(new o.p).executeMany(m,i,this.m_progressTracker,2)),n=P}if(s.isRunningInGnomonic()){if(P.project(p),s.needsSimplify()){const e=(0,h.e)(null,p,!0);p=(0,o.y)(p,e,!0,!0,-1,this.m_progressTracker,0,!1)}m.tick(D(p)),a.tock()}else this.putInGridCursors(e,p,i,!0,l,_,f,d,g)}let b=!1;for(let e=0;e<6;e++)if(null!=g[e]){b=!0;break}if(b){let t=!1;const r=[null,null,null,null,null,null];if(e){const n=s.m_densified;if(s.m_densified=null,null!==n){const s=new c.T;s.scale(1/this.m_rpu,1/this.m_rpu),n.applyTransformation(s),this.m_distance>0?this.putInGridCursors(e,n,i,!1,l,_,f,d,g):(this.processInGrid(e,n,!1,l,_,f,r),t=!0)}}const u=new o.a7,p=(new o.p).executeMany(u,this.m_gcs,this.m_progressTracker,2);if(null!==a){let t=a.next();m=null,a=null;const s=(0,h.e)(i,t,!0),r=(0,h.h)(s);t=n.unproject(t,r,this.m_progressTracker),this.putInGridCursors(e,t,i,!0,l,_,f,d,g)}for(let e=0;e<6;e++)if(null!=g[e]){let s=g[e].next();g[e]=null,d[e]=null,t&&null!==r[e]&&(s=(new o.o).execute(r[e],s,i,this.m_progressTracker));const n=(0,h.e)(i,s,!0),m=(0,h.h)(n);s=f[e].unproject(s,m,this.m_progressTracker),s=(new o.f).execute(s,this.m_gcs,!0,this.m_progressTracker),u.tick(D(s)),p.tock()}x=p.next()}else{let t,r=!1;if(e){let e=s.m_densified;if(s.m_densified=null,null!==e){const s=new c.T;s.scale(1/this.m_rpu,1/this.m_rpu),e.applyTransformation(s),P.project(e);const n=(0,h.e)(null,e,!0);e=(0,o.y)(e,n,!1,!0,-1,this.m_progressTracker,0,!1),this.m_distance>0?(m.tick(D(e)),a.tock()):(t=e,r=!0)}}let u=a.next();m=null,a=null,r&&(u=(new o.o).execute(t,u,i,this.m_progressTracker));const l=(0,h.e)(i,u,!0),_=(0,h.h)(l);x=n.unproject(u,_,this.m_progressTracker),x=(new o.f).execute(x,this.m_gcs,!0,this.m_progressTracker)}return x=(new o.O).foldInto360RangeGeodetic(x,this.m_gcs,2),x}putInGridCursors(e,t,s,n,i,r,m,a,h){const c=[null,null,null,null,null,null];this.processInGrid(e,t,n,i,r,m,c);for(let e=0;e<6;e++)null!==c[e]&&(null===a[e]&&(a[e]=new o.a7,h[e]=(new o.p).executeMany(a[e],s,this.m_progressTracker,2)),a[e].tick(D(c[e])),h[e].tock())}processInGrid(e,t,s,n,i,r,m){const a=.01,c=this.insertGeodeticPointsAlongGrid(t,i,a);for(let e=0;e<6;e++){if(n[e])continue;const _=i[e].clone();_.inflateCoords(a,a);const f=(0,h.j)(t,_),d=(0,h.c)(null,f,!1).total();let g=(0,l.c)(c,_,d,Number.NaN,this.m_progressTracker);if(null!==g&&!g.isEmpty()){if(g===c&&(g=g.clone()),null===r[e]){const t=new u.P;e<3?t.setCoords(0,1):t.setCoords(0,-1);const s=new u.P;s.setAdd(i[e].getCenter(),t),r[e]=v(this.m_gcs,s)}r[e].project(g);const t=(0,h.e)(null,g,!0);g=(0,o.y)(g,t,s,!0,-1,this.m_progressTracker,0,!1),m[e]=g}}}insertGeodeticPointsAlongGrid(e,t,s){const n=r.Envelope2D.construct(t[3].xmin,t[3].ymin,t[2].xmax,t[2].ymax),i=(0,o.a8)(this.m_gcs,n,e,!0,this.m_progressTracker),m=new a.E,h=m.addGeometry(i);return(0,o.a9)(m,h,this.m_gcs,0,2,!0,t[0].xmax+s),(0,o.a9)(m,h,this.m_gcs,0,2,!0,t[1].xmax+s),(0,o.a9)(m,h,this.m_gcs,0,2,!1,t[1].ymin+s),0!==s&&((0,o.a9)(m,h,this.m_gcs,0,2,!0,t[0].xmax-s),(0,o.a9)(m,h,this.m_gcs,0,2,!0,t[1].xmax-s),(0,o.a9)(m,h,this.m_gcs,0,2,!1,t[1].ymin-s)),m.getGeometry(h)}initializeGrid(e,t){for(let t=0;t<6;t++)e[t]=!1;t[0].setCoords({xmin:-this.m_gcs180,ymin:0,xmax:-this.m_gcs60,ymax:this.m_gcs90}),t[1].setCoords({xmin:-this.m_gcs60,ymin:0,xmax:this.m_gcs60,ymax:this.m_gcs90}),t[2].setCoords({xmin:this.m_gcs60,ymin:0,xmax:this.m_gcs180,ymax:this.m_gcs90}),t[3].setCoords({xmin:-this.m_gcs180,ymin:-this.m_gcs90,xmax:-this.m_gcs60,ymax:0}),t[4].setCoords({xmin:-this.m_gcs60,ymin:-this.m_gcs90,xmax:this.m_gcs60,ymax:0}),t[5].setCoords({xmin:this.m_gcs60,ymin:-this.m_gcs90,xmax:this.m_gcs180,ymax:0})}checkAndPrepSegmentForCrossingAzimuthsOrPoleWrap(e,t,s,n,i,r){const m=e[0],a=e.at(-1),h=m.y<a.y?m.y:a.y,c=m.y>a.y?m.y:a.y,l=o.$.q(this.m_a,this.m_eSquared,h),_=o.$.q(this.m_a,this.m_eSquared,c);if(this.m_q90-(l+t+this.m_absDistance)>.001&&this.m_q90+(_-t-this.m_absDistance)>.001)return!1;const f=s-u.o,d=n+u.o,g=f-Math.PI,p=f+Math.PI,y=d+Math.PI,S=[Number.NaN],C=[Number.NaN],w=[Number.NaN],v=[Number.NaN];let D=!1;if(b(this.m_a,this.m_eSquared,this.m_rpu,this.m_absDistance,m,f,g,a,d,S,C),b(this.m_a,this.m_eSquared,this.m_rpu,this.m_absDistance,a,y,d,m,g,w,v),(d<S[0]&&S[0]<y||d<C[0]&&C[0]<y)&&(D=!0),D||(g<w[0]&&w[0]<f||g<v[0]&&v[0]<f)&&(D=!0),!D&&i)return!1;const I=[];for(let t=e.length-1;t>=0;t--)I.push(e[t]);r.setEmpty(),r.addPathPoint2D(null,0,!0);let M=0;M=P(this.m_a,this.m_eSquared,this.m_rpu,this.m_absDistance,this.m_curveType,e,f,d,i,M,r),M=x(this.m_a,this.m_eSquared,this.m_rpu,this.m_absDistance,a,d,y,this.m_cornerStep,i,M,r,S[0],C[0]),M=P(this.m_a,this.m_eSquared,this.m_rpu,this.m_absDistance,this.m_curveType,I,y,p,i,M,r),M=x(this.m_a,this.m_eSquared,this.m_rpu,this.m_absDistance,m,g,f,this.m_cornerStep,i,M,r,w[0],v[0]);let N=!1;return i||(N=this.checkAndPrepForPole(r)),D||N}bufferPoint2D(e,t,s){s.setEmpty(),s.addPathPoint2D(null,0,!0),x(this.m_a,this.m_eSquared,this.m_rpu,this.m_absDistance,e,-this.m_cornerStep,2*Math.PI,this.m_cornerStep,t,0,s);let n=!1;return t||(n=this.checkAndPrepForPole(s)),n}checkAndPrepForPole(e){const t=this.checkAndPrepForPoleTouch(e),s=this.checkAndPrepForPoleWrap(e);return t||s}checkAndPrepForPoleTouch(e){const t=new r.Envelope2D;return e.queryEnvelope(t),!(!(0,o.aa)(t.ymax,this.m_gcs90)&&!(0,o.aa)(t.ymin,-this.m_gcs90)||(this.prepPoleTouch(e),0))}checkAndPrepForPoleWrap(e){const t=e.getXY(0),s=e.getXY(e.getPointCount()-1);return Math.abs(t.x-s.x)>this.m_gcs180?(this.prepSinglePoleWrap(e),!0):this.checkAndPrepForDoublePoleWrap(e)}checkAndPrepForDoublePoleWrap(e){return e.calculateArea2D()<0&&(this.prepDoublePoleWrap(e),!0)}prepPoleTouch(e){const t=new a.P;t.insertPath2D(-1,null,0,0,!0);const s=e.getPathStart(0),n=e.getPathEnd(0),i=n-s;let r=-1;for(r=s;r<n;r++){const t=e.getXY(r),s=(0,o.aa)(t.y,this.m_gcs90),n=(0,o.aa)(t.y,-this.m_gcs90);if(!s&&!n)break}let m=r,h=!1,c=Number.NaN;do{const n=e.getXY(m),r=(0,o.aa)(n.y,this.m_gcs90),a=(0,o.aa)(n.y,-this.m_gcs90),l=s+(m+1-s)%i;if(r||a){let s=u.P.construct(c,n.y);t.insertPoint2D(0,-1,s);const i=e.getXY(l),r=(0,o.aa)(i.y,this.m_gcs90),m=(0,o.aa)(i.y,-this.m_gcs90);r||m||(s=u.P.construct(i.x,n.y),h?t.setXY(t.getPointCount()-1,s):t.insertPoint2D(0,-1,s)),h=!0}else t.insertPoint2D(0,-1,n),c=n.x,h=!1;m=l}while(m!==r);e.setEmpty(),e.add(t,!1)}prepSinglePoleWrap(e){const t=new a.P,s=new a.P,n=new c.T,i=e.getXY(e.getPathStart(0)),m=e.getXY(e.getPathEnd(0)-1),_=this.m_gcs360,f=this.m_gcs180,d=new r.Envelope2D;d.setCoords({xmin:-this.m_gcs180,ymin:-this.m_gcs90,xmax:this.m_gcs180,ymax:this.m_gcs90});const g=new r.Envelope2D;e.queryEnvelope(g);const p=Math.ceil(g.width()/_);let P,x;i.x>m.x?(P=-_,x=this.m_gcs90):(P=_,x=-this.m_gcs90),n.setShiftCoords(P,0),t.addPath(e,0,!0),s.add(t,!1);const b=new h.P;for(let e=0;e<p;e++)s.applyTransformation(n),s.getPointByVal(0,b),t.lineToPoint(b),t.addSegmentsFromPath(s,0,0,s.getSegmentCount()-1,!1);const y=t.getXY(0),S=t.getXY(t.getPointCount()-1);y.y=x,S.y=x,t.lineTo(S);const C=new u.P;for(C.setCoordsPoint2D(S),C.x-=.5*P;Math.abs(C.x-y.x)>f;)t.lineTo(C),C.x-=.5*P;t.lineTo(y);const w=d.getCenterX(),v=new r.Envelope2D;t.queryEnvelope(v);let D=0;const I=v.getCenter().x;I-w>f?D=-Math.ceil((I-w-f)/_):w-I>f&&(D=Math.ceil((w-I-f)/_)),0!==D&&(n.setShiftCoords(D*_,0),t.applyTransformation(n));const M=new a.E,N=M.addGeometry(t);(0,o.a9)(M,N,this.m_gcs,0,2,!0,d.xmin),(0,o.a9)(M,N,this.m_gcs,0,2,!0,d.xmax);const G=M.getGeometry(N),T=(0,h.j)(G,d);T.inflateCoords(0,1);const k=(0,h.c)(null,T,!0).total(),E=(0,l.c)(G,d,k,Number.NaN,this.m_progressTracker);e.setEmpty(),e.add(E,!1)}prepDoublePoleWrap(e){const t=this.m_gcs360,s=this.m_gcs180,n=new r.Envelope2D;n.setCoords({xmin:-this.m_gcs180,ymin:-this.m_gcs90,xmax:this.m_gcs180,ymax:this.m_gcs90});const i=n.getCenter().x,m=new r.Envelope2D;e.queryPathEnvelope(0,m);let _,f=0,d=m.getCenter().x;if(d-i>s?f=-Math.ceil((d-i-s)/t):i-d>s&&(f=Math.ceil((i-d-s)/t)),0!==f){const s=new c.T;s.setShiftCoords(f*t,0),e.getImpl().applyTransformationToPath(s,0),e.queryPathEnvelope(0,m),d=m.getCenter().x}const g=new r.Envelope2D;n.containsExclusiveEnvelope(m)?(_=!1,g.setCoords({env2D:n})):(_=!0,g.setCoords({env2D:n}),g.xmin-=t,g.xmax+=t);let p=e.createInstance();p.addPathPoint2D(null,0,!0);const P=new u.P;if(P.setCoords(g.xmin,g.ymin),p.insertPoint2D(0,-1,P),P.setCoords(g.xmin,g.ymax),p.insertPoint2D(0,-1,P),P.setCoords(.5*(g.xmin+g.xmax),g.ymax),p.insertPoint2D(0,-1,P),P.setCoords(g.xmax,g.ymax),p.insertPoint2D(0,-1,P),P.setCoords(g.xmax,g.ymin),p.insertPoint2D(0,-1,P),P.setCoords(.5*(g.xmin+g.xmax),g.ymin),p.insertPoint2D(0,-1,P),_){p.addPath(e,0,!0);const s=new c.T;d<i?s.setShiftCoords(t,0):s.setShiftCoords(-t,0),e.getImpl().applyTransformationToPath(s,0),p.addPath(e,0,!0);const r=new a.E,m=r.addGeometry(p);(0,o.a9)(r,m,this.m_gcs,0,2,!0,n.xmin),(0,o.a9)(r,m,this.m_gcs,0,2,!0,n.xmax),p=r.getGeometry(m);const u=(0,h.j)(p,n);u.inflateCoords(0,1);const _=(0,h.c)(null,u,!0).total();p=(0,l.c)(p,n,_,Number.NaN,this.m_progressTracker)}else p.addPath(e,0,!0);e.setEmpty(),e.add(p,!1)}setMinCornerStep(){const e={stack:[],error:void 0,hasError:!1};try{let t=Math.min(Math.PI*this.m_a-this.m_absDistance,this.m_absDistance);t=Math.min(t,.125*this.m_a*Math.PI);const s=new u.P;s.setCoords(0,10*this.m_rpu);const n=0;let i=45*this.m_rpu;const r=(0,m.mS)(e,new u.S(new o.M,new o.M),!1),a=(0,m.mS)(e,new u.S(new o.M,new o.M),!1),h=(0,m.mS)(e,new u.S(new o.M,new o.M),!1),c=(0,m.mS)(e,new u.S(new o.M,new o.M),!1),l=new u.P,_=new u.P,f=new u.P,d=new u.P;for(o.N.geodesicCoordinate(this.m_a,this.m_eSquared,s.x,s.y,t,n,r.at(0),r.at(1)),l.setCoords(r.at(0).val,r.at(1).val),o.N.geodesicCoordinate(this.m_a,this.m_eSquared,s.x,s.y,t,i,a.at(0),a.at(1)),_.setCoords(a.at(0).val,a.at(1).val);;){const e={stack:[],error:void 0,hasError:!1};try{const r=.5*(n+i);o.N.geodesicCoordinate(this.m_a,this.m_eSquared,s.x,s.y,t,r,h.at(0),h.at(1)),f.setCoords(h.at(0).val,h.at(1).val);const u=(0,m.mS)(e,new o.M,!1),g=(0,m.mS)(e,new o.M,!1);o.N.geodeticDistance(this.m_a,this.m_eSquared,l.x,l.y,_.x,_.y,u,g,null,2),o.N.geodeticCoordinate(this.m_a,this.m_eSquared,l.x,l.y,.5*u.val,g.val,c.at(0),c.at(1),2),d.setCoords(c.at(0).val,c.at(1).val);const p=(0,m.mS)(e,new o.M,!1);if(o.N.geodeticDistance(this.m_a,this.m_eSquared,f.x,f.y,d.x,d.y,p,null,null,2),p.val<=this.m_convergenceOffset)break;i*=.9,o.N.geodesicCoordinate(this.m_a,this.m_eSquared,s.x,s.y,t,i,a.at(0),a.at(1)),_.setCoords(a.at(0).val,a.at(1).val)}catch(t){e.error=t,e.hasError=!0}finally{(0,m.hk)(e)}}const g=i-n,p=2*Math.PI/Math.ceil(2*Math.PI/g);this.m_cornerStep=p}catch(t){e.error=t,e.hasError=!0}finally{(0,m.hk)(e)}}setMinSegmentStep(){const e={stack:[],error:void 0,hasError:!1};try{let t=Math.min(Math.PI*this.m_a-this.m_absDistance,this.m_absDistance);t=Math.min(t,.125*this.m_a*Math.PI);const s=new u.P,n=new u.P;s.setCoords(0,10*this.m_rpu),n.setCoords(10*this.m_rpu,10*this.m_rpu);const i=(0,m.mS)(e,new o.M,!1),r=(0,m.mS)(e,new o.M,!1),a=(0,m.mS)(e,new o.M,!1);o.N.geodeticDistance(this.m_a,this.m_eSquared,s.x,s.y,n.x,n.y,a,i,r,this.m_curveType);const h=(0,m.mS)(e,new u.S(new o.M,new o.M),!1),c=(0,m.mS)(e,new u.S(new o.M,new o.M),!1),l=new u.P,_=(0,m.mS)(e,new o.M,!1),f=(0,m.mS)(e,new u.S(new o.M,new o.M),!1),d=(0,m.mS)(e,new u.S(new o.M,new o.M),!1),g=(0,m.mS)(e,new u.S(new o.M,new o.M),!1),p=(0,m.mS)(e,new u.S(new o.M,new o.M),!1),P=new u.P,x=new u.P,b=new u.P,y=new u.P,S=0;let C=1;const w=i.val,v=r.val,D=w-.5*Math.PI,I=v+.5*Math.PI,M=a.val;for(o.N.geodesicCoordinate(this.m_a,this.m_eSquared,s.x,s.y,t,D,f.at(0),f.at(1)),P.setCoords(f.at(0).val,f.at(1).val),o.N.geodesicCoordinate(this.m_a,this.m_eSquared,n.x,n.y,t,I,d.at(0),d.at(1)),x.setCoords(d.at(0).val,d.at(1).val);;){const e={stack:[],error:void 0,hasError:!1};try{const i=.5*(S+C);o.N.geodeticCoordinate(this.m_a,this.m_eSquared,s.x,s.y,i*M,w,h.at(0),h.at(1),this.m_curveType),l.setCoords(h.at(0).val,h.at(1).val),o.N.geodeticDistance(this.m_a,this.m_eSquared,s.x,s.y,l.x,l.y,null,null,_,this.m_curveType);const r=_.val+.5*Math.PI;o.N.geodesicCoordinate(this.m_a,this.m_eSquared,l.x,l.y,t,r,g.at(0),g.at(1)),b.setCoords(g.at(0).val,g.at(1).val);const a=(0,m.mS)(e,new o.M,!1),u=(0,m.mS)(e,new o.M,!1);o.N.geodeticDistance(this.m_a,this.m_eSquared,P.x,P.y,x.x,x.y,a,u,null,2),o.N.geodeticCoordinate(this.m_a,this.m_eSquared,P.x,P.y,.5*a.val,u.val,p.at(0),p.at(1),2),y.setCoords(p.at(0).val,p.at(1).val);const f=(0,m.mS)(e,new o.M,!1);if(o.N.geodeticDistance(this.m_a,this.m_eSquared,b.x,b.y,y.x,y.y,f,null,null,2),f.val<=this.m_convergenceOffset)break;{const e={stack:[],error:void 0,hasError:!1};try{C*=.9,o.N.geodeticCoordinate(this.m_a,this.m_eSquared,s.x,s.y,C*M,w,c.at(0),c.at(1),this.m_curveType),n.setCoords(c.at(0).val,c.at(1).val);const i=(0,m.mS)(e,new o.M,!1);o.N.geodeticDistance(this.m_a,this.m_eSquared,s.x,s.y,n.x,n.y,null,null,i,this.m_curveType);const r=i.val+.5*Math.PI;o.N.geodesicCoordinate(this.m_a,this.m_eSquared,n.x,n.y,t,r,d.at(0),d.at(1)),x.setCoords(d.at(0).val,d.at(1).val)}catch(t){e.error=t,e.hasError=!0}finally{(0,m.hk)(e)}}}catch(t){e.error=t,e.hasError=!0}finally{(0,m.hk)(e)}}let N=C*M;N>1e5&&(N=1e5),this.m_segmentStep=N}catch(t){e.error=t,e.hasError=!0}finally{(0,m.hk)(e)}}setConvergenceOffset(){let e;e=this.m_absDistance>5e4?100:this.m_absDistance>1e4?10:1,this.m_absDistance/e<500&&(e=this.m_absDistance/500),e<.01&&(e=.01),this.m_convergenceOffset=e}}function p(e,t,s,n,m,c,l){if(e.isEmpty())return new a.P({vd:e.getDescription()});let _=e;if((0,i.m)(_)){const e=10*t.getTolerance(0);_=(new f.O).execute(_,0,e,0,l,12e3)}const d=new g(l);d.m_sr=t,d.m_gcs=t.getGCS(),d.m_transform=(0,o.a)(t,d.m_gcs,null);const p=(0,o._)();d.m_gcs.querySpheroidData(p);const P=new r.Envelope2D;_.queryEnvelope(P),d.m_a=p.majorSemiAxis,d.m_eSquared=p.e2,d.m_rpu=d.m_gcs.getUnit().getUnitToBaseFactor(),d.m_gcs90=.5*Math.PI/d.m_rpu,d.m_gcs180=Math.PI/d.m_rpu,d.m_gcs360=2*Math.PI/d.m_rpu,d.m_gcs60=d.m_gcs360/6,d.m_q90=o.$.q90(d.m_a,d.m_eSquared),d.m_ellipticToGeodesicMaxRatio=.5*d.m_a*Math.PI/d.m_q90;const x=d.m_gcs.getTolerance(0);d.m_radTolerance=x*d.m_rpu,4===s?(d.m_curveType=2,d.m_bShapePreserving=!0):(d.m_curveType=s,d.m_bShapePreserving=!1),d.m_distance=n,d.m_absDistance=Math.abs(n),Number.isNaN(m)||m<=0?d.setConvergenceOffset():d.m_convergenceOffset=Math.max(m,.001),d.m_convergenceOffset/=c;let b,y=_.getGeometryType();if((0,i.f)(y)){const e=new a.a({vd:_.getDescription()});e.addSegment(_,!0),b=e,y=i.G.enumPolyline}else if(y===i.G.enumEnvelope){const e=_,t=new r.Envelope2D;e.queryEnvelope(t);const s=(0,h.h)((0,h.c)(d.m_sr,P,!0));if(t.minDimension()<=s)if(0===t.maxDimension()){const t=new h.P({vd:_.getDescription()});e.getCenter(t),b=t,y=i.G.enumPoint}else{const t=new a.a({vd:_.getDescription()});t.addEnvelope(e,!1),b=t,y=i.G.enumPolyline}else{const t=new a.P({vd:_.getDescription()});t.addEnvelope(e,!1),b=t,y=i.G.enumPolygon}}else b=_;if(d.setMinCornerStep(),(0,i.e)(y)||d.setMinSegmentStep(),d.m_absDistance<=.5*d.m_convergenceOffset)return y!==i.G.enumPolygon?new a.P({vd:b.getDescription()}):d.m_bShapePreserving?b:(0,o.a1)(b,d.m_sr,d.m_curveType,d.m_segmentStep,-1,l);if(d.m_distance<0&&y!==i.G.enumPolygon)return new a.P({vd:b.getDescription()});if(d.m_bShapePreserving&&(0,i.h)(y)){const e=(0,o.a1)(b,t,4,Number.NaN,d.m_convergenceOffset,l);b=(new o.O).execute(e,d.m_transform,l)}else b=(new o.O).execute(b,d.m_transform,l);if(b=(0,o.X)(b,d.m_gcs),b.isEmpty())return new a.P({vd:b.getDescription()});!d.m_bShapePreserving&&(0,i.h)(y)&&(b=(0,o.a4)(d.m_rpu,b)),b=function(e,t){const s=e.getGeometryType();let n;if(n=(0,i.h)(s)?e.getPathCount():s===i.G.enumMultiPoint?e.getPointCount():1,1===n)return e;const o=[],m=[];for(let a=0;a<n;a++){o.push(a);const n=new u.P;if((0,i.h)(s)){const t=new r.Envelope2D;e.queryPathEnvelope(a,t),n.assign(t.getCenter())}else n.assign(e.getXY(a));const h=t.toGeohash(n);m.push(h)}o.sort((e,t)=>m[e]<m[t]?-1:m[e]>m[t]?1:0);const a=e.createInstance();for(let t=0;t<n;t++){const n=o[t];(0,i.h)(s)?a.addPath(e,n,!0):a.addPoints(e,n,n+1)}return a}(b,d.m_gcs);let S=new a.P;switch(y){case i.G.enumPolygon:S=d.bufferPolygon(b);break;case i.G.enumPolyline:S=d.bufferPolyline(b);break;case i.G.enumMultiPoint:S=d.bufferMultiPoint(b);break;case i.G.enumPoint:S=d.bufferPoint(b);break;default:(0,i.o)("")}const C=(new o.O).execute(S,d.m_transform.getInverse(),l);return C.mergeVertexDescription(b.getDescription()),C}function P(e,t,s,n,i,r,a,h,c,l,_){const f={stack:[],error:void 0,hasError:!1};try{const d=new u.P;d.setNAN(),c||_.getPointCount()>0&&(d.setCoordsPoint2D(_.getXY(_.getPointCount()-1)),d.scale(s));const g=(0,m.mS)(f,new o.M,!1),p=(0,m.mS)(f,new u.S(new o.M,new o.M),!1),P=new u.P,x=new u.P,b=r.at(-1),S=1/s;for(let s=0;s<r.length;s++){const m=r[s];let u;0===s?u=a:s===r.length-1?u=h:(o.N.geodeticDistance(e,t,b.x,b.y,m.x,m.y,null,null,g,i),u=g.val-.5*Math.PI),o.N.geodesicCoordinate(e,t,m.x,m.y,n,u,p.at(0),p.at(1)),c?x.setCoords(p.at(0).val,p.at(1).val):(P.setCoords(p.at(0).val,p.at(1).val),l=y(m.x,P.x,d.x,l),x.setCoords(l+P.x,P.y),d.setCoordsPoint2D(x)),x.scale(S),_.insertPoint2D(0,-1,x)}return l}catch(e){f.error=e,f.hasError=!0}finally{(0,m.hk)(f)}}function x(e,t,s,n,i,r,a,h,c,l,_,f=Number.NaN,d=Number.NaN){const g={stack:[],error:void 0,hasError:!1};try{if(a-r<h)return l;const p=(0,m.mS)(g,new u.S(new o.M,new o.M),!1),P=new u.P,x=new u.P,b=new u.P;x.setNAN(),c||_.getPointCount()>0&&(x.setCoordsPoint2D(_.getXY(_.getPointCount()-1)),x.scale(s));let S=Math.ceil(r/h),C=S++*h;C===r&&(C=S++*h);let w=r;const v=1/s;for(;C<a+h&&(w<f&&f<C?(C=f,S--):w<d&&d<C&&(C=d,S--),!(C>=a));)o.N.geodesicCoordinate(e,t,i.x,i.y,n,C,p.at(0),p.at(1)),c?b.setCoords(p.at(0).val,p.at(1).val):(P.setCoords(p.at(0).val,p.at(1).val),l=y(i.x,P.x,x.x,l),b.setCoords(l+P.x,P.y),x.setCoordsPoint2D(b)),b.scale(v),_.insertPoint2D(0,-1,b),w=C,C=S++*h;return l}catch(e){g.error=e,g.hasError=!0}finally{(0,m.hk)(g)}}function b(e,t,s,n,i,r,a,h,c,l,_){const f={stack:[],error:void 0,hasError:!1};try{const s=new u.P,d=new u.P,g=(0,m.mS)(f,new u.S(new o.M,new o.M),!1);o.N.geodesicCoordinate(e,t,i.x,i.y,n,r,g.at(0),g.at(1)),s.setCoords(g.at(0).val,g.at(1).val),o.N.geodesicCoordinate(e,t,i.x,i.y,n,a,g.at(0),g.at(1)),d.setCoords(g.at(0).val,g.at(1).val);const p=(0,m.mS)(f,new o.M,!1);for(o.N.geodeticDistance(e,t,h.x,h.y,s.x,s.y,null,p,null,0),l[0]=p.val,o.N.geodeticDistance(e,t,h.x,h.y,d.x,d.y,null,p,null,0),_[0]=p.val;l[0]<=_[0];)l[0]+=u.p;for(;l[0]>_[0];)l[0]-=u.p;for(;l[0]>=c;)l[0]-=u.p,_[0]-=u.p;for(;l[0]<c;)l[0]+=u.p,_[0]+=u.p}catch(e){f.error=e,f.hasError=!0}finally{(0,m.hk)(f)}}function y(e,t,s,n){if(Number.isNaN(s)){for(;n+t-e>Math.PI;)n-=u.p;for(;e-(n+t)>Math.PI;)n+=u.p;return n}return n+t-s>Math.PI?n-=u.p:s-(n+t)>Math.PI&&(n+=u.p),n}function S(e,t,s,n,i,r){const a={stack:[],error:void 0,hasError:!1};try{if(n>=r)return!1;const h=s[0],c=s.at(-1),u=(0,m.mS)(a,new o.M,!1),l=(0,m.mS)(a,new o.M,!1),_=(0,m.mS)(a,new o.M,!1);o.N.greatEllipticDistance(e,t,i.x,i.y,h.x,h.y,u,null,null),o.N.greatEllipticDistance(e,t,i.x,i.y,c.x,c.y,l,null,null),o.N.greatEllipticDistance(e,t,h.x,h.y,c.x,c.y,_,null,null);let f=Math.min(u.val,l.val)+_.val,d=f+n;if(d<r)return!0;const g=(0,m.mS)(a,new o.M,!1);f=Math.max(u.val,l.val);for(let n=1;n<s.length-1;n++){const r=s[n];o.N.greatEllipticDistance(e,t,i.x,i.y,r.x,r.y,g,null,null),g.val>f&&(f=g.val)}return d=f+n,d<r}catch(e){a.error=e,a.hasError=!0}finally{(0,m.hk)(a)}}function C(e,t,s,n,i,r,m,a){let h;if(n.length%2==0){const e=n.length>>1,t=n[e],s=n[e-1];h=u.P.lerp(t,s,.5)}else h=n[n.length-1>>1].clone();const c=h.clone(),l=(0,o.ab)(e,t,c,75/180*Math.PI);return!!S(e,t,n,i,c,l)&&(null!==r&&(r.setCoordsPoint2D(h),r.scale(1/s)),null!==m&&m.setCoordsPoint2D(c),null!==a&&(a[0]=l),!0)}function w(e,t,s,n,i,r){const a={stack:[],error:void 0,hasError:!1};try{if(n>=r)return!1;const h=(0,m.mS)(a,new o.M,!1);return o.N.greatEllipticDistance(e,t,i.x,i.y,s.x,s.y,h,null,null),h.val+n<r}catch(e){a.error=e,a.hasError=!0}finally{(0,m.hk)(a)}}function v(e,t){return new o.ag(e,t)}function D(e){return(0,h.k)(e,0)||(0,h.s)(e,0),e}class I{constructor(e){this.m_bRunningInGnomonic=!1,this.m_bNeedsSimplify=!1,this.m_gnomonic=null,this.m_gnomonicCenterRad=new u.P,this.m_minGnomonicRadius=Number.NaN,this.m_progressTracker=e}isRunningInGnomonic(){return this.m_bRunningInGnomonic}needsSimplify(){return this.m_bNeedsSimplify}getGnomonic(){return this.m_gnomonic}}class M extends I{constructor(e,t,s){super(e.m_progressTracker),this.m_segIter=null,this.m_bNextSegmentCannotJoin=!1,this.m_currentDensifiedDelta=[0],this.m_currentBufferedDelta=0,this.m_lastAzimuth=0,this.m_startAzimuth=[0],this.m_endAzimuth=[0],this.m_numWinds=0,this.m_debugCounter=0,this.m_bufferHelper=new a.P,this.m_densifiedPoints=[],this.m_bufferer=e,this.m_multiPath=t,this.m_densified=s,this.m_bNeedsSimplify=!0;const n=new r.Envelope2D;this.m_multiPath.queryEnvelope(n);const i=n.getCenter(),m=i.clone();m.scale(this.m_bufferer.m_rpu),this.m_gnomonic=v(this.m_bufferer.m_gcs,i),this.m_gnomonicCenterRad=m.clone(),this.m_minGnomonicRadius=(0,o.ab)(this.m_bufferer.m_a,this.m_bufferer.m_eSquared,m,75/180*Math.PI)}next(){let e;if(this.m_bNextSegmentCannotJoin)return this.m_bNextSegmentCannotJoin=!1,this.m_segIter.nextSegment(),e=this.m_bufferHelper.clone(),e;if(null===this.m_segIter){if(this.m_segIter=this.m_multiPath.getImpl().querySegmentIterator(),!this.m_segIter.nextPath())return null;null!==this.m_densified&&this.m_densified.addPathPoint2D(null,0,!0)}if(!this.m_segIter.hasNextSegment()){if(!this.m_segIter.nextPath())return null;null!=this.m_densified&&this.m_densified.addPathPoint2D(null,0,!0)}let t=null;this.m_currentBufferedDelta=0,this.m_currentDensifiedDelta=[0],this.m_numWinds=0,this.m_lastAzimuth=Number.NaN,this.m_bNextSegmentCannotJoin=!1,this.m_densifiedPoints.length=0;let s=0;const n=new u.P,i=new u.P;for(;this.m_segIter.hasNextSegment()&&this.m_numWinds<16;){const e=this.m_segIter.nextSegment();if(n.setCoordsPoint2D(e.getStartXY()),i.setCoordsPoint2D(e.getEndXY()),n.scale(this.m_bufferer.m_rpu),i.scale(this.m_bufferer.m_rpu),(0,o.ac)(n,i))n.x=i.x;else if((0,o.ad)(n,i))i.x=n.x;else{let e=-1,t=-1;const s=this.m_segIter.getPathIndex(),r=this.m_multiPath.getPathStart(s),m=this.m_multiPath.getPathEnd(s);if(e=this.m_segIter.getStartPointIndex()-1,t=this.m_segIter.getEndPointIndex()+1,e<r&&(e=this.m_multiPath.isClosedPath(s)?m-1:-1),t>m-1&&(t=this.m_multiPath.isClosedPath(s)?r:-1),-1!==e){const t=this.m_multiPath.getXY(e);t.scale(this.m_bufferer.m_rpu),(0,o.ad)(t,n)&&(n.x=t.x)}if(-1!==t){const e=this.m_multiPath.getXY(t);e.scale(this.m_bufferer.m_rpu),(0,o.ac)(i,e)&&(i.x=e.x)}}this.m_densifiedPoints.length=0;const r=(0,o.ae)(this.m_bufferer.m_a,this.m_bufferer.m_eSquared,this.m_bufferer.m_curveType,n,i,this.m_bufferer.m_segmentStep,Number.NaN,this.m_bufferer.m_radTolerance,this.m_startAzimuth,this.m_endAzimuth,this.m_densifiedPoints,this.m_currentDensifiedDelta);if(0===s)this.m_bRunningInGnomonic=this.isSegmentBufferInCurrentGnomonic(this.m_densifiedPoints),this.m_bRunningInGnomonic||(this.m_bRunningInGnomonic=this.tryUpdateGnomonic(this.m_densifiedPoints));else if(this.m_bRunningInGnomonic){if(!this.isSegmentBufferInCurrentGnomonic(this.m_densifiedPoints)){this.m_segIter.previousSegment(),this.m_segIter.previousSegment(),this.m_segIter.nextSegment();break}}else if(C(this.m_bufferer.m_a,this.m_bufferer.m_eSquared,this.m_bufferer.m_rpu,this.m_densifiedPoints,this.m_bufferer.m_absDistance*this.m_bufferer.m_ellipticToGeodesicMaxRatio,null,null,null)){this.m_segIter.previousSegment(),this.m_segIter.previousSegment(),this.m_segIter.nextSegment();break}if(0===r||(0,o.af)(n,i)?(this.m_bufferHelper.setEmpty(),this.m_bufferer.bufferPoint2D(n,this.m_bRunningInGnomonic,this.m_bufferHelper),this.m_bNextSegmentCannotJoin=!0):(this.m_bufferHelper.setEmpty(),this.m_bNextSegmentCannotJoin=this.checkAndPrepSegmentForCrossingAzimuthsOrPoleWrap(r,this.m_bufferHelper)),this.m_bNextSegmentCannotJoin){this.m_segIter.previousSegment(),this.m_segIter.hasPreviousSegment()?(this.m_segIter.previousSegment(),this.m_segIter.nextSegment()):this.m_segIter.resetToFirstSegment(),null!=this.m_densified&&this.m_densified.insertPointsFromPoints(this.m_densified.getPathCount()-1,-1,this.m_densifiedPoints,0,this.m_densifiedPoints.length-1,!0);break}null!=this.m_densified&&this.m_densified.insertPointsFromPoints(this.m_densified.getPathCount()-1,-1,this.m_densifiedPoints,0,this.m_densifiedPoints.length-1,!0),null===t&&(t=new a.P,t.addPathPoint2D(null,0,!0)),this.addJoinAndBufferLeftSide(t),s++}if(this.m_currentDensifiedDelta=[0],s>0){const e=this.m_segIter.getStartPointIndex(),r=this.m_segIter.getPathIndex();for(;s>0;){if(this.m_segIter.previousSegment(),n.setCoordsPoint2D(this.m_multiPath.getXY(this.m_segIter.getStartPointIndex())),i.setCoordsPoint2D(this.m_multiPath.getXY(this.m_segIter.getEndPointIndex())),n.scale(this.m_bufferer.m_rpu),i.scale(this.m_bufferer.m_rpu),this.m_bRunningInGnomonic)if((0,o.ac)(n,i))n.x=i.x;else if((0,o.ad)(n,i))i.x=n.x;else{let e=-1,t=-1;const s=this.m_segIter.getPathIndex(),r=this.m_multiPath.getPathStart(s),m=this.m_multiPath.getPathEnd(s);if(e=this.m_segIter.getStartPointIndex()-1,t=this.m_segIter.getEndPointIndex()+1,e<r&&(e=this.m_multiPath.isClosedPath(s)?m-1:-1),t>m-1&&(t=this.m_multiPath.isClosedPath(s)?r:-1),-1!==e){const t=this.m_multiPath.getXY(e);t.scale(this.m_bufferer.m_rpu),(0,o.ad)(t,n)&&(n.x=t.x)}if(-1!==t){const e=this.m_multiPath.getXY(t);e.scale(this.m_bufferer.m_rpu),(0,o.ac)(i,e)&&(i.x=e.x)}}this.m_densifiedPoints.length=0,(0,o.ae)(this.m_bufferer.m_a,this.m_bufferer.m_eSquared,this.m_bufferer.m_curveType,i,n,this.m_bufferer.m_segmentStep,Number.NaN,this.m_bufferer.m_radTolerance,this.m_startAzimuth,this.m_endAzimuth,this.m_densifiedPoints,this.m_currentDensifiedDelta),this.addJoinAndBufferLeftSide(t),s--}return n.setCoordsPoint2D(this.m_multiPath.getXY(this.m_segIter.getStartPointIndex())),n.scale(this.m_bufferer.m_rpu),this.m_currentBufferedDelta=x(this.m_bufferer.m_a,this.m_bufferer.m_eSquared,this.m_bufferer.m_rpu,this.m_bufferer.m_absDistance,n,this.m_lastAzimuth+.5*Math.PI,this.m_lastAzimuth+1.5*Math.PI,this.m_bufferer.m_cornerStep,this.m_bRunningInGnomonic,this.m_currentBufferedDelta,t),this.m_segIter.resetToVertex(e,r),this.m_segIter.nextSegment(),t}return this.m_bNextSegmentCannotJoin=!1,this.m_segIter.nextSegment(),e=this.m_bufferHelper.clone(),e}isSegmentBufferInCurrentGnomonic(e){return null!==this.m_gnomonic&&S(this.m_bufferer.m_a,this.m_bufferer.m_eSquared,e,this.m_bufferer.m_absDistance*this.m_bufferer.m_ellipticToGeodesicMaxRatio,this.m_gnomonicCenterRad,this.m_minGnomonicRadius)}tryUpdateGnomonic(e){const t=new u.P,s=new u.P,n=[0];return C(this.m_bufferer.m_a,this.m_bufferer.m_eSquared,this.m_bufferer.m_rpu,e,this.m_bufferer.m_absDistance*this.m_bufferer.m_ellipticToGeodesicMaxRatio,t,s,n)?(this.m_gnomonicCenterRad.setCoordsPoint2D(s),this.m_minGnomonicRadius=n[0],this.m_gnomonic=v(this.m_bufferer.m_gcs,t),!0):(this.m_gnomonic=null,!1)}checkAndPrepSegmentForCrossingAzimuthsOrPoleWrap(e,t){return this.m_bufferer.checkAndPrepSegmentForCrossingAzimuthsOrPoleWrap(this.m_densifiedPoints,e,this.m_startAzimuth[0],this.m_endAzimuth[0],this.m_bRunningInGnomonic,t)}addJoinAndBufferLeftSide(e){const t=this.m_densifiedPoints[0];let s=Number.NaN,n=this.m_startAzimuth[0]-u.o;const i=this.m_endAzimuth[0]+u.o;let r=!1;if(!Number.isNaN(this.m_lastAzimuth)){this.m_lastAzimuth>=this.m_startAzimuth[0]?(s=this.m_lastAzimuth+u.o,n=s+Math.PI-(this.m_lastAzimuth-this.m_startAzimuth[0])):(s=this.m_lastAzimuth+u.o,n=s+Math.PI-(u.p-(this.m_startAzimuth[0]-this.m_lastAzimuth))),r=!(this.m_lastAzimuth>=this.m_startAzimuth[0]&&this.m_lastAzimuth-this.m_startAzimuth[0]<=Math.PI||this.m_lastAzimuth<this.m_startAzimuth[0]&&this.m_startAzimuth[0]-this.m_lastAzimuth>=Math.PI);let i=!1;if(Math.abs(n-s)<=.5*this.m_bufferer.m_cornerStep&&(r||(i=!0)),i){if(e.removePointFromPath(0,e.getPointCount()-1),!this.m_bRunningInGnomonic){const t=new u.P;t.setCoordsPoint2D(e.getXY(e.getPointCount()-1)),t.scale(this.m_bufferer.m_rpu),t.x-this.m_currentBufferedDelta<-Math.PI?this.m_currentBufferedDelta-=u.p:t.x-this.m_currentBufferedDelta>Math.PI&&(this.m_currentBufferedDelta+=u.p)}n=.5*(n+s)}else if(r){const s=new u.P;s.setCoordsPoint2D(t),s.scale(1/this.m_bufferer.m_rpu),e.insertPoint2D(0,-1,s)}else x(this.m_bufferer.m_a,this.m_bufferer.m_eSquared,this.m_bufferer.m_rpu,this.m_bufferer.m_absDistance,this.m_densifiedPoints[0],s,n,this.m_bufferer.m_cornerStep,this.m_bRunningInGnomonic,this.m_currentBufferedDelta,e)}this.m_startAzimuth[0]!==this.m_lastAzimuth&&this.m_numWinds++,P(this.m_bufferer.m_a,this.m_bufferer.m_eSquared,this.m_bufferer.m_rpu,this.m_bufferer.m_absDistance,this.m_bufferer.m_curveType,this.m_densifiedPoints,n,i,this.m_bRunningInGnomonic,this.m_currentBufferedDelta,e),this.m_lastAzimuth=this.m_endAzimuth[0]}}class N extends I{constructor(e,t){super(e.m_progressTracker),this.m_pointIndex=-1,this.m_bufferer=e,this.m_multiPoint=t,this.m_bNeedsSimplify=!1;const s=new r.Envelope2D;this.m_multiPoint.queryEnvelope(s);const n=s.getCenter(),i=n.clone();i.scale(this.m_bufferer.m_rpu),this.m_gnomonic=v(this.m_bufferer.m_gcs,n),this.m_gnomonicCenterRad=i.clone(),this.m_minGnomonicRadius=(0,o.ab)(this.m_bufferer.m_a,this.m_bufferer.m_eSquared,i,75/180*Math.PI)}next(){if(this.m_bNeedsSimplify=!1,++this.m_pointIndex===this.m_multiPoint.getPointCount())return null;const e=this.m_multiPoint.getXY(this.m_pointIndex);e.scale(this.m_bufferer.m_rpu),this.m_bRunningInGnomonic=this.isPointBufferInCurrentGnomonic(e),this.m_bRunningInGnomonic||(this.m_bRunningInGnomonic=this.tryUpdateGnomonic(e));const t=new a.P,s=this.m_bufferer.bufferPoint2D(e,this.m_bRunningInGnomonic,t);return this.m_bNeedsSimplify=s,t}isPointBufferInCurrentGnomonic(e){return null!==this.m_gnomonic&&w(this.m_bufferer.m_a,this.m_bufferer.m_eSquared,e,this.m_bufferer.m_absDistance*this.m_bufferer.m_ellipticToGeodesicMaxRatio,this.m_gnomonicCenterRad,this.m_minGnomonicRadius)}tryUpdateGnomonic(e){const t=new u.P,s=new u.P,n=[0];return function(e,t,s,n,i,r,m,a){const h=(0,o.ab)(e,t,n,75/180*Math.PI);return!!w(e,t,n,i,n,h)&&(null!==r&&(r.setCoordsPoint2D(n),r.scale(1/s)),null!==m&&m.setCoordsPoint2D(n),null!==a&&(a[0]=h),!0)}(this.m_bufferer.m_a,this.m_bufferer.m_eSquared,this.m_bufferer.m_rpu,e,this.m_bufferer.m_absDistance*this.m_bufferer.m_ellipticToGeodesicMaxRatio,t,s,n)?(this.m_gnomonicCenterRad.setCoordsPoint2D(s),this.m_minGnomonicRadius=n[0],this.m_gnomonic=v(this.m_bufferer.m_gcs,t),!0):(this.m_gnomonic=null,!1)}}class G{getOperatorType(){return 10110}supportsCurves(){return!0}accelerateGeometry(e,t,s){return!1}canAccelerateGeometry(e){return!1}executeMany(e,t,s,n,i,r,m,a){if(m){const m=new T(e,t,s,n,i,!1,r,a);return(new o.p).executeMany(m,t,a)}return new T(e,t,s,n,i,!1,r,a)}execute(e,t,s,n,r,o,m){const a=new d.S([e]),h=[n],c=this.executeMany(a,t,s,h,r,!1,o,m).next();return c||(0,i.d)("geodesic buffer null output"),c}}class T extends n.G{constructor(e,t,s,n,o,m,a,h){super(),this.m_currentUnionEnvelope2D=new r.Envelope2D,this.m_index=-1,this.m_dindex=-1,this.m_progressTracker=h,m&&(0,i.t)(""),t||(0,i.a)(""),0===t.getCoordinateSystemType()&&(0,i.a)(""),this.m_inputGeoms=e,this.m_spatialReference=t,this.m_curveType=s,this.m_distances=n,this.m_convergenceOffset=o,this.m_bOutlineOnly=m,this.m_bUnion=a}next(){let e;for(;e=this.m_inputGeoms.next();)return(0,i.c)(e),this.m_index=this.m_inputGeoms.getGeometryID(),this.m_dindex+1<this.m_distances.length&&this.m_dindex++,this.geodesicBuffer(e,this.m_distances[this.m_dindex]);return null}getGeometryID(){return this.m_index}tock(){return!0}getRank(){return 1}geodesicBuffer(e,t){return function(e,t,s,n,r,o){n<Number.MAX_VALUE&&n>-Number.MAX_VALUE||(0,i.a)("Geodesic_bufferer.buffer - bad distance"),(0,i.c)(e);const m=(0,_.c)(e),a=m.getGeometryType();if((0,i.i)(a)){const e=m.getPointCount(),h=8e6;if(Math.abs(n)>h&&(e>50||a!==i.G.enumMultiPoint&&4===s&&e>2)){let e=m;const i=n>0?1:-1,a=7e6;let c=n,u=1;do{u++,c=(Math.abs(c)-a)*i}while(Math.abs(c)>h);c=n;for(let n=0;n<u-1;n++)e=p(e,t,s,a*i,r,u,o),c=(Math.abs(c)-a)*i;return e=p(e,t,s,c,r,u,o),e}}return p(m,t,s,n,r,1,o)}(e,this.m_spatialReference,this.m_curveType,t,this.m_convergenceOffset,this.m_progressTracker)}}}}]);