@arcgis/core 5.2.0-next.15 → 5.2.0-next.16

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 (830) hide show
  1. package/applications/Urban/editingSessionUtils.js +1 -1
  2. package/arcade/featureSetUtils.js +1 -1
  3. package/arcade/featureset/sources/FeatureLayerDynamic.js +1 -1
  4. package/arcade/featureset/sources/FeatureLayerParquet.js +2 -0
  5. package/arcade/featureset/support/FeatureSet.js +1 -1
  6. package/arcade/featureset/support/shared.js +1 -1
  7. package/arcade.d.ts +2 -1
  8. package/arcgisGlobal.d.ts +3 -1
  9. package/assets/esri/core/t9n/Units_ar.json +1 -1
  10. package/assets/esri/core/t9n/Units_bg.json +1 -1
  11. package/assets/esri/core/t9n/Units_bs.json +1 -1
  12. package/assets/esri/core/t9n/Units_ca.json +1 -1
  13. package/assets/esri/core/t9n/Units_cs.json +1 -1
  14. package/assets/esri/core/t9n/Units_da.json +1 -1
  15. package/assets/esri/core/t9n/Units_de.json +1 -1
  16. package/assets/esri/core/t9n/Units_el.json +1 -1
  17. package/assets/esri/core/t9n/Units_es.json +1 -1
  18. package/assets/esri/core/t9n/Units_et.json +1 -1
  19. package/assets/esri/core/t9n/Units_fi.json +1 -1
  20. package/assets/esri/core/t9n/Units_fr.json +1 -1
  21. package/assets/esri/core/t9n/Units_he.json +1 -1
  22. package/assets/esri/core/t9n/Units_hr.json +1 -1
  23. package/assets/esri/core/t9n/Units_hu.json +1 -1
  24. package/assets/esri/core/t9n/Units_id.json +1 -1
  25. package/assets/esri/core/t9n/Units_it.json +1 -1
  26. package/assets/esri/core/t9n/Units_ja.json +1 -1
  27. package/assets/esri/core/t9n/Units_ko.json +1 -1
  28. package/assets/esri/core/t9n/Units_lt.json +1 -1
  29. package/assets/esri/core/t9n/Units_lv.json +1 -1
  30. package/assets/esri/core/t9n/Units_nl.json +1 -1
  31. package/assets/esri/core/t9n/Units_no.json +1 -1
  32. package/assets/esri/core/t9n/Units_pl.json +1 -1
  33. package/assets/esri/core/t9n/Units_pt-BR.json +1 -1
  34. package/assets/esri/core/t9n/Units_pt-PT.json +1 -1
  35. package/assets/esri/core/t9n/Units_ro.json +1 -1
  36. package/assets/esri/core/t9n/Units_ru.json +1 -1
  37. package/assets/esri/core/t9n/Units_sk.json +1 -1
  38. package/assets/esri/core/t9n/Units_sl.json +1 -1
  39. package/assets/esri/core/t9n/Units_sr.json +1 -1
  40. package/assets/esri/core/t9n/Units_sv.json +1 -1
  41. package/assets/esri/core/t9n/Units_th.json +1 -1
  42. package/assets/esri/core/t9n/Units_tr.json +1 -1
  43. package/assets/esri/core/t9n/Units_uk.json +1 -1
  44. package/assets/esri/core/t9n/Units_vi.json +1 -1
  45. package/assets/esri/core/t9n/Units_zh-CN.json +1 -1
  46. package/assets/esri/core/t9n/Units_zh-HK.json +1 -1
  47. package/assets/esri/core/t9n/Units_zh-TW.json +1 -1
  48. package/assets/esri/core/workers/RemoteClient.js +1 -1
  49. package/assets/esri/core/workers/chunks/007485862ce95928717a.js +1 -0
  50. package/assets/esri/core/workers/chunks/{d9d4754062758789f186.js → 05016e5a1de384994001.js} +2 -2
  51. package/assets/esri/core/workers/chunks/05b6b2c0b76afb100e33.js +1 -0
  52. package/assets/esri/core/workers/chunks/{8927fb4aa68f7e541a39.js → 05d597dd117766beadd8.js} +1 -1
  53. package/assets/esri/core/workers/chunks/{b045bffb4f2eb9203183.js → 05e1f1628a3726eca03d.js} +1 -1
  54. package/assets/esri/core/workers/chunks/0a52373c4ba652e0ee0f.js +1 -0
  55. package/assets/esri/core/workers/chunks/0b522e05668bef729b1b.js +1 -0
  56. package/assets/esri/core/workers/chunks/0d42322362e76f674d94.js +2 -0
  57. package/assets/esri/core/workers/chunks/{81e3bd1a0634ddc2b833.js → 0f10d7d592c36ee2d1ea.js} +1 -1
  58. package/assets/esri/core/workers/chunks/{cdf6ad970dc1893dac58.js → 110135b0562a3b5708b9.js} +1 -1
  59. package/assets/esri/core/workers/chunks/122892f365f5327d290c.js +1 -0
  60. package/assets/esri/core/workers/chunks/1305690054214a9cf48d.js +1 -0
  61. package/assets/esri/core/workers/chunks/168c15cf462f9abcbdd2.js +1 -0
  62. package/assets/esri/core/workers/chunks/169bfafec4d59be2beb0.js +1 -0
  63. package/assets/esri/core/workers/chunks/1c689bb502657b1f173b.js +1 -0
  64. package/assets/esri/core/workers/chunks/1d2609ce6220b5af5526.js +1 -0
  65. package/assets/esri/core/workers/chunks/1d38b2fcd85ac9ebd7c6.js +1 -0
  66. package/assets/esri/core/workers/chunks/1e109a521ca8772fdf04.js +1 -0
  67. package/assets/esri/core/workers/chunks/1ea840b7ac1ffaa0c389.js +1 -0
  68. package/assets/esri/core/workers/chunks/1f48438b3055afeb710f.js +1 -0
  69. package/assets/esri/core/workers/chunks/{c2cd80b712f29e8cbb8d.js → 1ff57bf19f021f5fd246.js} +1 -1
  70. package/assets/esri/core/workers/chunks/2353fbc1ff4481dcfb1f.js +1 -0
  71. package/assets/esri/core/workers/chunks/2509da565e5a2b43ac7f.js +1 -0
  72. package/assets/esri/core/workers/chunks/255c8e937e7a123ebb04.js +1 -0
  73. package/assets/esri/core/workers/chunks/256cc116e3be4feee593.js +1 -0
  74. package/assets/esri/core/workers/chunks/26aa8190ac439f634c5b.js +1 -0
  75. package/assets/esri/core/workers/chunks/{a442534ac0956a68b769.js → 282930645ce525d5bc92.js} +1 -1
  76. package/assets/esri/core/workers/chunks/{45b560ca01fb566ba560.js → 2a8d791aef3123e6a3c4.js} +1 -1
  77. package/assets/esri/core/workers/chunks/2b781de7b467c61849b2.js +1 -0
  78. package/assets/esri/core/workers/chunks/2baee42e1797a709fe4b.js +1 -0
  79. package/assets/esri/core/workers/chunks/2c017eae434254610c8e.js +1 -0
  80. package/assets/esri/core/workers/chunks/2d7a4b669804d0c5029b.js +1 -0
  81. package/assets/esri/core/workers/chunks/2f40193d1b2e534c5226.js +1 -0
  82. package/assets/esri/core/workers/chunks/303e723e829ea7088d43.js +1 -0
  83. package/assets/esri/core/workers/chunks/35533c8ef541f7643497.js +2 -0
  84. package/assets/esri/core/workers/chunks/36913f0f944a9eb82cd3.js +1 -0
  85. package/assets/esri/core/workers/chunks/{cc62e5095e328bed3e01.js → 3aa0a34d2b7dbf2e2c66.js} +1 -1
  86. package/assets/esri/core/workers/chunks/3d4ad7c728e02aa90551.js +1 -0
  87. package/assets/esri/core/workers/chunks/{3526ab3b1f87c24ae6f8.js → 4162a2bb774e6ba2c0db.js} +1 -1
  88. package/assets/esri/core/workers/chunks/436d51b9f1b1b5abc4bc.js +1 -0
  89. package/assets/esri/core/workers/chunks/43ef6dee2e1d9ed7885e.js +1 -0
  90. package/assets/esri/core/workers/chunks/442424200e7475e9a08f.js +1 -0
  91. package/assets/esri/core/workers/chunks/4b96aa2dc5b88846bb53.js +1 -0
  92. package/assets/esri/core/workers/chunks/4ea325c829d3b82854b1.js +1 -0
  93. package/assets/esri/core/workers/chunks/51a53011478e0cf96e0b.js +1 -0
  94. package/assets/esri/core/workers/chunks/51a8a47aac1d8d22ba9d.js +1 -0
  95. package/assets/esri/core/workers/chunks/5481af25fd46914498df.js +1 -0
  96. package/assets/esri/core/workers/chunks/54f54623532f633dc0e2.js +1 -0
  97. package/assets/esri/core/workers/chunks/5809e70a8e57e9b05959.js +1 -0
  98. package/assets/esri/core/workers/chunks/589b31cc5c663a288942.js +1 -0
  99. package/assets/esri/core/workers/chunks/58ce4bcfb15f378b1b9f.js +1 -0
  100. package/assets/esri/core/workers/chunks/58e0e50b6c3abaa4798f.js +1 -0
  101. package/assets/esri/core/workers/chunks/595bc41ff36c77324d01.js +261 -0
  102. package/assets/esri/core/workers/chunks/599bd80379423c99799d.js +1 -0
  103. package/assets/esri/core/workers/chunks/5bf01e0eff8a78b65e9e.js +1 -0
  104. package/assets/esri/core/workers/chunks/5dfeefee96659832398a.js +1 -0
  105. package/assets/esri/core/workers/chunks/{011a4d4201696fa10408.js → 5ea1113b7bdcf94b2822.js} +1 -1
  106. package/assets/esri/core/workers/chunks/5fab14c5f1febebb75f1.js +1 -0
  107. package/assets/esri/core/workers/chunks/609edb4da427ec37bcf7.js +1 -0
  108. package/assets/esri/core/workers/chunks/60d4a3f770bb1e01cd10.js +1 -0
  109. package/assets/esri/core/workers/chunks/63858dfcff1177e597e7.js +1 -0
  110. package/assets/esri/core/workers/chunks/686c1a1b794ebe1a0341.js +1 -0
  111. package/assets/esri/core/workers/chunks/68b77b36daae2b4b4237.js +1 -0
  112. package/assets/esri/core/workers/chunks/{11c3b1e8ca21ad62fdd1.js → 6db5ee9c589265b23b60.js} +1 -1
  113. package/assets/esri/core/workers/chunks/6dc60afb0c39bbb001a3.js +1 -0
  114. package/assets/esri/core/workers/chunks/{5bfae465872760e7af6d.js → 6f240fe78b299e6c4fcc.js} +1 -1
  115. package/assets/esri/core/workers/chunks/70cb825bb37f1977d2ab.js +1 -0
  116. package/assets/esri/core/workers/chunks/71a593fa116770e58832.js +1 -0
  117. package/assets/esri/core/workers/chunks/71f09e34d56c9fe5c307.js +1 -0
  118. package/assets/esri/core/workers/chunks/{72cfb186e50537bcdd19.js → 75915f81caaf9e5345a9.js} +1 -1
  119. package/assets/esri/core/workers/chunks/7832d94f35b79e27ee51.js +1 -0
  120. package/assets/esri/core/workers/chunks/{e5f8c73349407c25956b.js → 7c61b18e43c789aaecc6.js} +1 -1
  121. package/assets/esri/core/workers/chunks/818a481ce579f519de1c.js +1 -0
  122. package/assets/esri/core/workers/chunks/831455798b177678720c.js +1 -0
  123. package/assets/esri/core/workers/chunks/83ce38342796bd6d73ce.js +1 -0
  124. package/assets/esri/core/workers/chunks/84a0bb53fcbd99b5aa0c.js +1 -0
  125. package/assets/esri/core/workers/chunks/87b86375f8557418dbe6.js +1 -0
  126. package/assets/esri/core/workers/chunks/8817d25c7f4cf0e6c6bd.js +1 -0
  127. package/assets/esri/core/workers/chunks/{0b55fc5050e718371e05.js → 888af532ad48fd86f285.js} +1 -1
  128. package/assets/esri/core/workers/chunks/{9331969046f2b277d620.js → 8a39dd585742960d3ca2.js} +1 -1
  129. package/assets/esri/core/workers/chunks/8ade399db21938822a7c.js +1 -0
  130. package/assets/esri/core/workers/chunks/8c62e2dabd1f1e13d244.js +1 -0
  131. package/assets/esri/core/workers/chunks/{5cb1b950249d651f3837.js → 8dcb3e77f76d8396706b.js} +1 -1
  132. package/assets/esri/core/workers/chunks/909e88c27d80777b047c.js +1 -0
  133. package/assets/esri/core/workers/chunks/91c5205d1274c7f190d5.js +1 -0
  134. package/assets/esri/core/workers/chunks/91c543443cd6768ad6ff.js +1 -0
  135. package/assets/esri/core/workers/chunks/9230ad807020fc2bbf8e.js +1 -0
  136. package/assets/esri/core/workers/chunks/92458803531fdfe1557a.js +1 -0
  137. package/assets/esri/core/workers/chunks/{976ab2be6c244768c08a.js → 940ebb13618d38c6b459.js} +1 -1
  138. package/assets/esri/core/workers/chunks/987594539981483a7c5e.js +1 -0
  139. package/assets/esri/core/workers/chunks/99c002015c2127e6cbfc.js +2 -0
  140. package/assets/esri/core/workers/chunks/9da1a514e042eb642d35.js +1 -0
  141. package/assets/esri/core/workers/chunks/a1509e2e7809b6754b4f.js +1 -0
  142. package/assets/esri/core/workers/chunks/{a4f3bcfabd4ad127abf2.js → a3195521a83565c7c2d3.js} +1 -1
  143. package/assets/esri/core/workers/chunks/a3393780655152102c45.js +1 -0
  144. package/assets/esri/core/workers/chunks/{52175ff9e8c2c136f90a.js → a3ecde3794a7db3cf283.js} +1 -1
  145. package/assets/esri/core/workers/chunks/a4d918b47cd4ee0e1666.js +1 -0
  146. package/assets/esri/core/workers/chunks/a844c4e031e77db11478.js +1 -0
  147. package/assets/esri/core/workers/chunks/{bfd1aef8ac795e1ce227.js → a892b3be70f482bef0ba.js} +1 -1
  148. package/assets/esri/core/workers/chunks/a8ef7acb6d3d1f45e14c.js +1 -0
  149. package/assets/esri/core/workers/chunks/a99ce2f12c8204ee542a.js +1 -0
  150. package/assets/esri/core/workers/chunks/aba7a053015a9738d8a0.js +1 -0
  151. package/assets/esri/core/workers/chunks/{c8460bdf60aca749ed05.js → ac16016964be3b684e98.js} +1 -1
  152. package/assets/esri/core/workers/chunks/ac7ecd90330090c90005.js +1 -0
  153. package/assets/esri/core/workers/chunks/adce59e4111bae4225f7.js +1 -0
  154. package/assets/esri/core/workers/chunks/af3b060fdfa3b6174340.js +1 -0
  155. package/assets/esri/core/workers/chunks/b0212df1fe8d9448f3d6.js +1 -0
  156. package/assets/esri/core/workers/chunks/b289c46ce2dc04d32e81.js +1 -0
  157. package/assets/esri/core/workers/chunks/{c983e5ce0ff952b65d7f.js → b2b342b06d502fc61ea5.js} +1 -1
  158. package/assets/esri/core/workers/chunks/{67ebde34377f98d17cda.js → b5571e93bc136dac8ee1.js} +1 -1
  159. package/assets/esri/core/workers/chunks/ba1c4a8794ac55942e35.js +1 -0
  160. package/assets/esri/core/workers/chunks/bbcad2fde838819ffc7b.js +1 -0
  161. package/assets/esri/core/workers/chunks/bd260798b8de09a1eeb2.js +1 -0
  162. package/assets/esri/core/workers/chunks/{44d0ca9d4c5f1722688c.js → bf67e0f6064fb9d94ac8.js} +1 -1
  163. package/assets/esri/core/workers/chunks/{0bf72e9d0a6deceeb406.js → bfa6f4c08e7571bb1f37.js} +1 -1
  164. package/assets/esri/core/workers/chunks/c030a974a63155f450e9.js +1 -0
  165. package/assets/esri/core/workers/chunks/c0b7b9d115dccb2924ff.js +1 -0
  166. package/assets/esri/core/workers/chunks/c2db773201adca204f95.js +1 -0
  167. package/assets/esri/core/workers/chunks/c318e6dbb8651433038f.js +2 -0
  168. package/assets/esri/core/workers/chunks/c4a2ec2e5897300163ac.js +1 -0
  169. package/assets/esri/core/workers/chunks/{8b0a01ebc86ab226f01f.js → c538435216d253f7702e.js} +1 -1
  170. package/assets/esri/core/workers/chunks/c5e172d3baf5414868f0.js +1 -0
  171. package/assets/esri/core/workers/chunks/c63b315c6b76b4860fc5.js +1 -0
  172. package/assets/esri/core/workers/chunks/c8091e8fd7ca43a4490a.js +1 -0
  173. package/assets/esri/core/workers/chunks/{2413b383b7f2bdcd4ced.js → c8672a54c98d472aa24d.js} +1 -1
  174. package/assets/esri/core/workers/chunks/cf9a132c4c37e62de3d7.js +1 -0
  175. package/assets/esri/core/workers/chunks/d0321dd4b5b2d863eecd.js +1 -0
  176. package/assets/esri/core/workers/chunks/{886ae23a1d8fa21e531f.js → d750e4abeb777caa8c36.js} +1 -1
  177. package/assets/esri/core/workers/chunks/{bd36c57dd0cd28dee55f.js → d7acbc2ddff4cee8a465.js} +1 -1
  178. package/assets/esri/core/workers/chunks/{cb8c4d8334fab9bd9a04.js → d90bc34d97bb21c29c40.js} +1 -1
  179. package/assets/esri/core/workers/chunks/d9fcc63df008f687848a.js +1 -0
  180. package/assets/esri/core/workers/chunks/db96a0c66578b2d1b715.js +1 -0
  181. package/assets/esri/core/workers/chunks/{6a1b6f8c868f8edce1d7.js → dd3b0070081eaf805d95.js} +1 -1
  182. package/assets/esri/core/workers/chunks/dd5dddf7e422216d3806.js +1 -0
  183. package/assets/esri/core/workers/chunks/de83c177f8a1234a5b2e.js +1 -0
  184. package/assets/esri/core/workers/chunks/{07ca020796c57cefda62.js → dfb19701b488089874fd.js} +1 -1
  185. package/assets/esri/core/workers/chunks/e2f33945d838183a2192.js +1 -0
  186. package/assets/esri/core/workers/chunks/{d97c0c18202b8c578f8c.js → e5471373f89fd7cb9844.js} +1 -1
  187. package/assets/esri/core/workers/chunks/e65d291bab13f7f5323b.js +1 -0
  188. package/assets/esri/core/workers/chunks/e95ee94027c1934086d8.js +1 -0
  189. package/assets/esri/core/workers/chunks/ecbf84a1f42e6188faab.js +1 -0
  190. package/assets/esri/core/workers/chunks/efaa1d05705f6b450e8f.js +1 -0
  191. package/assets/esri/core/workers/chunks/efaf998d18479a0380ae.js +1 -0
  192. package/assets/esri/core/workers/chunks/f0573db9a3d3e1499a7e.js +1 -0
  193. package/assets/esri/core/workers/chunks/f07722efd7fa2b75d4dd.js +1 -0
  194. package/assets/esri/core/workers/chunks/{520e0e5307eef27becc6.js → f0924613f818dd165ad9.js} +1 -1
  195. package/assets/esri/core/workers/chunks/f3fd40df92e59f7c687c.js +1 -0
  196. package/assets/esri/core/workers/chunks/{3d20c86f1fe877bf884b.js → f59b76fde2cbd17f64b3.js} +1 -1
  197. package/assets/esri/core/workers/chunks/f6afc597eaf2afa9a4a0.js +1 -0
  198. package/assets/esri/core/workers/chunks/{ed2a1c371dfc5d4a744e.js → f7f820483e45c05ab9e4.js} +2 -2
  199. package/assets/esri/core/workers/chunks/f98bb3885bfc7f18f26c.js +1 -0
  200. package/assets/esri/core/workers/chunks/f9b44ff9bb4f7a88ab56.js +1 -0
  201. package/assets/esri/core/workers/chunks/{b102beeeb7a919f68b51.js → fb81705cec1be2431876.js} +1 -1
  202. package/assets/esri/core/workers/chunks/fd53ef66176ae164e221.js +1 -0
  203. package/assets/esri/core/workers/chunks/fd956a58787020d610af.js +1 -0
  204. package/assets/esri/core/workers/chunks/fdec3a2e100688c42e41.js +1 -0
  205. package/assets/esri/core/workers/chunks/fe6385115d76e16e8da0.js +1 -0
  206. package/assets/esri/core/workers/chunks/fedbeb488d5d7c07c7dc.js +1 -0
  207. package/assets/esri/core/workers/chunks/{d9695794cfaa014a55b1.js → ff00ac01f0baaecaa890.js} +1 -1
  208. package/assets/esri/libs/parquet/pkg/bundle_bg.wasm +0 -0
  209. package/assets/esri/themes/base/widgets/_BatchAttributeForm.scss +62 -90
  210. package/assets/esri/themes/base/widgets/_OrientedImageryViewer.scss +0 -2
  211. package/assets/esri/themes/dark/main.css +1 -1
  212. package/assets/esri/themes/light/main.css +1 -1
  213. package/assets/esri/themes/light/view.css +1 -1
  214. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_ar.json +1 -1
  215. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_bg.json +1 -1
  216. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_bs.json +1 -1
  217. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_ca.json +1 -1
  218. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_cs.json +1 -1
  219. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_da.json +1 -1
  220. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_de.json +1 -1
  221. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_el.json +1 -1
  222. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_es.json +1 -1
  223. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_et.json +1 -1
  224. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_fi.json +1 -1
  225. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_fr.json +1 -1
  226. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_he.json +1 -1
  227. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_hr.json +1 -1
  228. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_hu.json +1 -1
  229. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_id.json +1 -1
  230. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_it.json +1 -1
  231. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_ja.json +1 -1
  232. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_ko.json +1 -1
  233. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_lt.json +1 -1
  234. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_lv.json +1 -1
  235. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_nl.json +1 -1
  236. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_no.json +1 -1
  237. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_pl.json +1 -1
  238. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_pt-BR.json +1 -1
  239. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_pt-PT.json +1 -1
  240. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_ro.json +1 -1
  241. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_ru.json +1 -1
  242. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_sk.json +1 -1
  243. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_sl.json +1 -1
  244. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_sr.json +1 -1
  245. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_sv.json +1 -1
  246. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_th.json +1 -1
  247. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_tr.json +1 -1
  248. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_uk.json +1 -1
  249. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_vi.json +1 -1
  250. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_zh-CN.json +1 -1
  251. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_zh-HK.json +1 -1
  252. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_zh-TW.json +1 -1
  253. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_ar.json +1 -1
  254. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_bg.json +1 -1
  255. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_bs.json +1 -1
  256. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_ca.json +1 -1
  257. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_cs.json +1 -1
  258. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_da.json +1 -1
  259. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_de.json +1 -1
  260. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_el.json +1 -1
  261. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_es.json +1 -1
  262. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_et.json +1 -1
  263. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_fi.json +1 -1
  264. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_fr.json +1 -1
  265. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_he.json +1 -1
  266. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_hr.json +1 -1
  267. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_hu.json +1 -1
  268. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_id.json +1 -1
  269. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_it.json +1 -1
  270. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_ja.json +1 -1
  271. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_ko.json +1 -1
  272. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_lt.json +1 -1
  273. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_lv.json +1 -1
  274. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_nl.json +1 -1
  275. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_no.json +1 -1
  276. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_pl.json +1 -1
  277. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_pt-BR.json +1 -1
  278. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_pt-PT.json +1 -1
  279. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_ro.json +1 -1
  280. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_ru.json +1 -1
  281. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_sk.json +1 -1
  282. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_sl.json +1 -1
  283. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_sr.json +1 -1
  284. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_sv.json +1 -1
  285. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_th.json +1 -1
  286. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_tr.json +1 -1
  287. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_uk.json +1 -1
  288. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_vi.json +1 -1
  289. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_zh-CN.json +1 -1
  290. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_zh-HK.json +1 -1
  291. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_zh-TW.json +1 -1
  292. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_ar.json +1 -1
  293. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_bg.json +1 -1
  294. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_bs.json +1 -1
  295. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_ca.json +1 -1
  296. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_cs.json +1 -1
  297. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_da.json +1 -1
  298. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_de.json +1 -1
  299. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_el.json +1 -1
  300. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_es.json +1 -1
  301. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_et.json +1 -1
  302. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_fi.json +1 -1
  303. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_fr.json +1 -1
  304. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_he.json +1 -1
  305. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_hr.json +1 -1
  306. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_hu.json +1 -1
  307. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_id.json +1 -1
  308. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_it.json +1 -1
  309. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_ja.json +1 -1
  310. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_ko.json +1 -1
  311. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_lt.json +1 -1
  312. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_lv.json +1 -1
  313. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_nl.json +1 -1
  314. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_no.json +1 -1
  315. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_pl.json +1 -1
  316. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_pt-BR.json +1 -1
  317. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_pt-PT.json +1 -1
  318. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_ro.json +1 -1
  319. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_ru.json +1 -1
  320. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_sk.json +1 -1
  321. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_sl.json +1 -1
  322. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_sr.json +1 -1
  323. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_sv.json +1 -1
  324. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_th.json +1 -1
  325. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_tr.json +1 -1
  326. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_uk.json +1 -1
  327. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_vi.json +1 -1
  328. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_zh-CN.json +1 -1
  329. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_zh-HK.json +1 -1
  330. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_zh-TW.json +1 -1
  331. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_ar.json +1 -1
  332. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_bg.json +1 -1
  333. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_bs.json +1 -1
  334. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_ca.json +1 -1
  335. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_cs.json +1 -1
  336. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_da.json +1 -1
  337. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_de.json +1 -1
  338. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_el.json +1 -1
  339. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_es.json +1 -1
  340. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_et.json +1 -1
  341. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_fi.json +1 -1
  342. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_fr.json +1 -1
  343. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_he.json +1 -1
  344. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_hr.json +1 -1
  345. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_hu.json +1 -1
  346. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_id.json +1 -1
  347. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_it.json +1 -1
  348. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_ja.json +1 -1
  349. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_ko.json +1 -1
  350. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_lt.json +1 -1
  351. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_lv.json +1 -1
  352. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_nl.json +1 -1
  353. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_no.json +1 -1
  354. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_pl.json +1 -1
  355. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_pt-BR.json +1 -1
  356. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_pt-PT.json +1 -1
  357. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_ro.json +1 -1
  358. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_ru.json +1 -1
  359. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_sk.json +1 -1
  360. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_sl.json +1 -1
  361. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_sr.json +1 -1
  362. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_sv.json +1 -1
  363. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_th.json +1 -1
  364. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_tr.json +1 -1
  365. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_uk.json +1 -1
  366. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_vi.json +1 -1
  367. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_zh-CN.json +1 -1
  368. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_zh-HK.json +1 -1
  369. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_zh-TW.json +1 -1
  370. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ar.json +1 -1
  371. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_bg.json +1 -1
  372. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_bs.json +1 -1
  373. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ca.json +1 -1
  374. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_cs.json +1 -1
  375. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_da.json +1 -1
  376. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_de.json +1 -1
  377. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_el.json +1 -1
  378. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_es.json +1 -1
  379. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_et.json +1 -1
  380. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_fi.json +1 -1
  381. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_fr.json +1 -1
  382. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_he.json +1 -1
  383. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_hr.json +1 -1
  384. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_hu.json +1 -1
  385. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_id.json +1 -1
  386. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_it.json +1 -1
  387. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ja.json +1 -1
  388. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ko.json +1 -1
  389. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_lt.json +1 -1
  390. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_lv.json +1 -1
  391. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_nl.json +1 -1
  392. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_no.json +1 -1
  393. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_pl.json +1 -1
  394. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_pt-BR.json +1 -1
  395. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_pt-PT.json +1 -1
  396. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ro.json +1 -1
  397. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ru.json +1 -1
  398. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_sk.json +1 -1
  399. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_sl.json +1 -1
  400. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_sr.json +1 -1
  401. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_sv.json +1 -1
  402. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_th.json +1 -1
  403. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_tr.json +1 -1
  404. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_uk.json +1 -1
  405. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_vi.json +1 -1
  406. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_zh-CN.json +1 -1
  407. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_zh-HK.json +1 -1
  408. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_zh-TW.json +1 -1
  409. package/assets/esri/widgets/VideoPlayer/t9n/VideoPlayer_ar.json +1 -1
  410. package/assets/esri/widgets/VideoPlayer/t9n/VideoPlayer_bg.json +1 -1
  411. package/assets/esri/widgets/VideoPlayer/t9n/VideoPlayer_bs.json +1 -1
  412. package/assets/esri/widgets/VideoPlayer/t9n/VideoPlayer_ca.json +1 -1
  413. package/assets/esri/widgets/VideoPlayer/t9n/VideoPlayer_cs.json +1 -1
  414. package/assets/esri/widgets/VideoPlayer/t9n/VideoPlayer_da.json +1 -1
  415. package/assets/esri/widgets/VideoPlayer/t9n/VideoPlayer_de.json +1 -1
  416. package/assets/esri/widgets/VideoPlayer/t9n/VideoPlayer_el.json +1 -1
  417. package/assets/esri/widgets/VideoPlayer/t9n/VideoPlayer_es.json +1 -1
  418. package/assets/esri/widgets/VideoPlayer/t9n/VideoPlayer_et.json +1 -1
  419. package/assets/esri/widgets/VideoPlayer/t9n/VideoPlayer_fi.json +1 -1
  420. package/assets/esri/widgets/VideoPlayer/t9n/VideoPlayer_fr.json +1 -1
  421. package/assets/esri/widgets/VideoPlayer/t9n/VideoPlayer_he.json +1 -1
  422. package/assets/esri/widgets/VideoPlayer/t9n/VideoPlayer_hr.json +1 -1
  423. package/assets/esri/widgets/VideoPlayer/t9n/VideoPlayer_hu.json +1 -1
  424. package/assets/esri/widgets/VideoPlayer/t9n/VideoPlayer_id.json +1 -1
  425. package/assets/esri/widgets/VideoPlayer/t9n/VideoPlayer_it.json +1 -1
  426. package/assets/esri/widgets/VideoPlayer/t9n/VideoPlayer_ja.json +1 -1
  427. package/assets/esri/widgets/VideoPlayer/t9n/VideoPlayer_ko.json +1 -1
  428. package/assets/esri/widgets/VideoPlayer/t9n/VideoPlayer_lt.json +1 -1
  429. package/assets/esri/widgets/VideoPlayer/t9n/VideoPlayer_lv.json +1 -1
  430. package/assets/esri/widgets/VideoPlayer/t9n/VideoPlayer_nl.json +1 -1
  431. package/assets/esri/widgets/VideoPlayer/t9n/VideoPlayer_no.json +1 -1
  432. package/assets/esri/widgets/VideoPlayer/t9n/VideoPlayer_pl.json +1 -1
  433. package/assets/esri/widgets/VideoPlayer/t9n/VideoPlayer_pt-BR.json +1 -1
  434. package/assets/esri/widgets/VideoPlayer/t9n/VideoPlayer_pt-PT.json +1 -1
  435. package/assets/esri/widgets/VideoPlayer/t9n/VideoPlayer_ro.json +1 -1
  436. package/assets/esri/widgets/VideoPlayer/t9n/VideoPlayer_ru.json +1 -1
  437. package/assets/esri/widgets/VideoPlayer/t9n/VideoPlayer_sk.json +1 -1
  438. package/assets/esri/widgets/VideoPlayer/t9n/VideoPlayer_sl.json +1 -1
  439. package/assets/esri/widgets/VideoPlayer/t9n/VideoPlayer_sr.json +1 -1
  440. package/assets/esri/widgets/VideoPlayer/t9n/VideoPlayer_sv.json +1 -1
  441. package/assets/esri/widgets/VideoPlayer/t9n/VideoPlayer_th.json +1 -1
  442. package/assets/esri/widgets/VideoPlayer/t9n/VideoPlayer_tr.json +1 -1
  443. package/assets/esri/widgets/VideoPlayer/t9n/VideoPlayer_uk.json +1 -1
  444. package/assets/esri/widgets/VideoPlayer/t9n/VideoPlayer_vi.json +1 -1
  445. package/assets/esri/widgets/VideoPlayer/t9n/VideoPlayer_zh-CN.json +1 -1
  446. package/assets/esri/widgets/VideoPlayer/t9n/VideoPlayer_zh-HK.json +1 -1
  447. package/assets/esri/widgets/VideoPlayer/t9n/VideoPlayer_zh-TW.json +1 -1
  448. package/chunks/Bufferer-CclWhXVb.js +2 -0
  449. package/chunks/Distance2DCalculator-DjIp2uQi.js +2 -0
  450. package/chunks/Envelope.js +1 -1
  451. package/chunks/Envelope2D.js +1 -1
  452. package/chunks/GaussianSplatComposition.glsl.js +1 -1
  453. package/chunks/GeodeticDistanceCalculator-zRp89-dW.js +2 -0
  454. package/chunks/GeodeticUtils.js +1 -1
  455. package/chunks/Geometry.js +1 -1
  456. package/chunks/{GeometryCleaner-BEJM7I4l.js → GeometryCleaner-CIE8Wfmb.js} +1 -1
  457. package/chunks/GlowComposition.glsl.js +1 -1
  458. package/chunks/MultiPathImpl.js +1 -1
  459. package/chunks/OITBlend.glsl.js +1 -1
  460. package/chunks/OITDimOpaque.glsl.js +1 -1
  461. package/chunks/OperatorClip.js +1 -1
  462. package/chunks/OperatorCrosses.js +1 -1
  463. package/chunks/OperatorCut.js +1 -1
  464. package/chunks/OperatorDefinitions.js +1 -1
  465. package/chunks/OperatorDensify.js +1 -1
  466. package/chunks/OperatorGeneralize.js +1 -1
  467. package/chunks/OperatorGeodesicBuffer.js +1 -1
  468. package/chunks/OperatorGeodeticArea.js +1 -1
  469. package/chunks/OperatorGeodeticDensifyByLength.js +1 -1
  470. package/chunks/OperatorGeodeticDistance.js +1 -1
  471. package/chunks/OperatorGeodeticLength.js +1 -1
  472. package/chunks/OperatorGraphicBuffer.js +2 -0
  473. package/chunks/OperatorIntegrate.js +1 -1
  474. package/chunks/OperatorIntersects.js +1 -1
  475. package/chunks/OperatorMultiPartToSinglePart.js +1 -1
  476. package/chunks/OperatorOverlaps.js +1 -1
  477. package/chunks/OperatorProximity.js +1 -1
  478. package/chunks/OperatorProximityGeodesic.js +1 -1
  479. package/chunks/OperatorShapePreservingLength.js +1 -1
  480. package/chunks/OperatorShapePreservingProject.js +1 -1
  481. package/chunks/OperatorSimplifyOGC.js +1 -1
  482. package/chunks/OperatorTouches.js +1 -1
  483. package/chunks/OperatorWithin.js +1 -1
  484. package/chunks/Point2D.js +1 -1
  485. package/chunks/ProjectionTransformation.js +1 -1
  486. package/chunks/{SideCalculator2D-BNwb5gvz.js → SideCalculator2D-DX0718xq.js} +1 -1
  487. package/chunks/SimpleGeometryCursor.js +1 -1
  488. package/chunks/SpatialReference.js +1 -1
  489. package/chunks/Transformation2D.js +1 -1
  490. package/chunks/centroidOperator.js +1 -1
  491. package/chunks/containsOperator.js +1 -1
  492. package/chunks/disjointOperator.js +1 -1
  493. package/chunks/distanceOperator.js +1 -1
  494. package/chunks/equalsOperator.js +1 -1
  495. package/chunks/languageUtils.js +1 -1
  496. package/config.js +1 -1
  497. package/core/has.js +1 -1
  498. package/core/screenUtils.js +1 -1
  499. package/editing/types.d.ts +22 -2
  500. package/form/elements/UtilityNetworkAssociationsElement.d.ts +0 -1
  501. package/geometry/Mesh.d.ts +1 -1
  502. package/geometry/operators/extendOperator.js +1 -1
  503. package/geometry/operators/gx/operatorAffineTransform.js +1 -1
  504. package/geometry/operators/gx/operatorAlphaShape.js +1 -1
  505. package/geometry/operators/gx/operatorAutoComplete.js +1 -1
  506. package/geometry/operators/gx/operatorBoundary.js +1 -1
  507. package/geometry/operators/gx/operatorBuffer.js +1 -1
  508. package/geometry/operators/gx/operatorConvexHull.js +1 -1
  509. package/geometry/operators/gx/operatorDifference.js +1 -1
  510. package/geometry/operators/gx/operatorGraphicBuffer.js +1 -1
  511. package/geometry/operators/gx/operatorIntersection.js +1 -1
  512. package/geometry/operators/gx/operatorLabelPoint.js +1 -1
  513. package/geometry/operators/gx/operatorLinesToPolygons.js +1 -1
  514. package/geometry/operators/gx/operatorLocateBetween.js +1 -1
  515. package/geometry/operators/gx/operatorMinimumBoundingCircle.js +1 -1
  516. package/geometry/operators/gx/operatorOffset.js +1 -1
  517. package/geometry/operators/gx/operatorPolygonOverlay.js +1 -1
  518. package/geometry/operators/gx/operatorPolygonSlicer.js +1 -1
  519. package/geometry/operators/gx/operatorSinglePartToMultiPart.js +1 -1
  520. package/geometry/operators/gx/operatorSymmetricDifference.js +1 -1
  521. package/geometry/operators/gx/operatorUnion.js +1 -1
  522. package/geometry/operators/isNearOperator.js +1 -1
  523. package/geometry/operators/json/containsOperator.js +1 -1
  524. package/geometry/operators/json/disjointOperator.js +1 -1
  525. package/geometry/operators/reshapeOperator.js +1 -1
  526. package/geometry/operators/support/apiConverter.js +1 -1
  527. package/geometry/operators/support/initNoPeFactory.js +1 -1
  528. package/geometry/operators/support/jsonConverter.js +1 -1
  529. package/geometry/support/aaBoundingRect.js +1 -1
  530. package/graphic/AnnotationFeatureGraphicOrigin.d.ts +5 -2
  531. package/graphic/AnnotationFeatureGraphicOrigin.js +1 -1
  532. package/graphic/DimensionFeatureGraphicOrigin.js +1 -1
  533. package/graphic/graphicOrigins.js +1 -1
  534. package/graphic/isAnnotationFeatureGraphicOrigin.d.ts +29 -0
  535. package/graphic/isAnnotationFeatureGraphicOrigin.js +2 -0
  536. package/graphic/isDimensionFeatureGraphicOrigin.d.ts +29 -0
  537. package/graphic/isDimensionFeatureGraphicOrigin.js +2 -0
  538. package/interfaces.d.ts +3 -3
  539. package/kernel.js +1 -1
  540. package/layers/AnnotationFeatureLayer.d.ts +73 -0
  541. package/layers/AnnotationFeatureLayer.js +1 -1
  542. package/layers/FeatureLayer.d.ts +7 -4
  543. package/layers/FeatureLayer.js +1 -1
  544. package/layers/Lyr3DWasmPerSceneView.js +1 -1
  545. package/layers/ParquetLayer.js +1 -1
  546. package/layers/SubtypeGroupLayer.d.ts +7 -4
  547. package/layers/SubtypeGroupLayer.js +1 -1
  548. package/layers/graphics/applyEditsUtils.js +1 -1
  549. package/layers/graphics/data/QueryEngine.js +1 -1
  550. package/layers/graphics/sources/FeatureLayerSource.js +1 -1
  551. package/layers/graphics/sources/ParquetSource.js +1 -1
  552. package/layers/graphics/sources/support/ParquetSourceWorker.js +1 -1
  553. package/layers/orientedImagery/core/coverageUtils.js +1 -1
  554. package/layers/orientedImagery/transformations/utils.js +1 -1
  555. package/layers/support/{AnnotationSublayer.d.ts → AnnotationFeatureSublayer.d.ts} +12 -12
  556. package/layers/support/AnnotationFeatureSublayer.js +2 -0
  557. package/layers/support/EditingCapabilities.js +1 -1
  558. package/layers/support/ParquetPortalItemData.js +1 -1
  559. package/layers/support/SubtypeSublayer.d.ts +7 -4
  560. package/layers/support/SubtypeSublayer.js +1 -1
  561. package/layers/support/featureLayerUtils.js +1 -1
  562. package/networks/UtilityNetwork.js +1 -1
  563. package/package.json +3 -3
  564. package/popup/Feature.d.ts +57 -6
  565. package/popup/Features.d.ts +86 -7
  566. package/popup/content/UtilityNetworkAssociationsContent.d.ts +0 -1
  567. package/popup/support/UtilityNetworkAssociationType.d.ts +0 -1
  568. package/rest/print.js +1 -1
  569. package/rest/query/operations/query.js +1 -1
  570. package/smartMapping/renderers/location.js +1 -1
  571. package/smartMapping/renderers/opacity.js +1 -1
  572. package/smartMapping/renderers/predominance.js +1 -1
  573. package/smartMapping/renderers/support/regenerateUtils.js +1 -1
  574. package/smartMapping/renderers/support/rendererUtils.d.ts +3 -1
  575. package/smartMapping/renderers/support/rendererUtils.js +1 -1
  576. package/smartMapping/support/adapters/FeatureLayerAdapter.js +1 -1
  577. package/support/revision.js +1 -1
  578. package/symbols/WebStyleSymbol.js +1 -1
  579. package/symbols/cim/effects/EffectOffset.js +1 -1
  580. package/symbols/support/symbolUtils.js +1 -1
  581. package/symbols/support/webStyleSymbolCache.js +2 -0
  582. package/third-party-notices.txt +0 -32
  583. package/undoredo/support/ApplySet.js +1 -1
  584. package/undoredo/support/ApplySetItem.js +1 -1
  585. package/views/2d/analysis/AreaMeasurement/AreaMeasurementTool.js +1 -1
  586. package/views/2d/engine/vectorTiles/VectorTileContainer.js +1 -1
  587. package/views/2d/engine/webgl/shaderGraph/techniques/FeatureInstanceStore.js +1 -1
  588. package/views/2d/engine/webgl/shaderGraph/techniques/animated/AAnimatedShader.js +1 -1
  589. package/views/2d/engine/webgl/shaderGraph/techniques/animated/AnimatedMarkerMeshWriter.js +1 -1
  590. package/views/2d/engine/webgl/shaderGraph/techniques/animated/attributes.js +1 -1
  591. package/views/2d/engine/webgl/shaderGraph/techniques/mesh/MeshWriterVertexPack.js +1 -1
  592. package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
  593. package/views/2d/engine/webgl/util/AnnotationMatcher.js +1 -1
  594. package/views/2d/layers/features/layerAdapters/AnnotationLayerAdapter.js +1 -1
  595. package/views/2d/layers/features/support/FeatureSetReader.js +1 -1
  596. package/views/2d/layers/features/support/FeatureSetReaderParquet.js +1 -1
  597. package/views/2d/layers/support/annodime/annotationGraphic.js +1 -1
  598. package/views/2d/layers/support/annodime/cimAnnotations.js +1 -1
  599. package/views/2d/layers/support/annodime/utils.js +1 -1
  600. package/views/2d/support/hitTestUtils.js +1 -1
  601. package/views/2d/unitBezier.js +1 -1
  602. package/views/3d/analysis/LineOfSight/LineOfSightPlacementController.js +2 -0
  603. package/views/3d/analysis/LineOfSight/LineOfSightReshapeTool3D.js +1 -1
  604. package/views/3d/analysis/LineOfSight/LineOfSightTool2.js +1 -1
  605. package/views/3d/analysis/LineOfSight/lineOfSightPlacementUtils.js +2 -0
  606. package/views/3d/analysis/Viewshed/ViewshedDrawToolRenderer.js +1 -1
  607. package/views/3d/analysis/Viewshed/ViewshedPlacementController.js +1 -1
  608. package/views/3d/analysis/Viewshed/ViewshedPlacementPointPlugin.js +1 -1
  609. package/views/3d/analysis/Viewshed/ViewshedPlacementRootPlugin.js +1 -1
  610. package/views/3d/analysis/Viewshed/placementUtils.js +1 -1
  611. package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
  612. package/views/3d/layers/graphics/Graphics3DCore.js +1 -1
  613. package/views/3d/layers/graphics/Graphics3DSymbol.js +1 -1
  614. package/views/3d/layers/graphics/SymbolComplexity.js +1 -1
  615. package/views/3d/layers/graphics/defaultSymbolComplexity.js +1 -1
  616. package/views/3d/support/QualityProfile.js +1 -1
  617. package/views/3d/webgl-engine/collections/Component/Material/ComponentTechnique.js +1 -1
  618. package/views/3d/webgl-engine/core/shaderLibrary/ShaderOutput.js +1 -1
  619. package/views/3d/webgl-engine/core/shaderLibrary/attributes/PathEvaluate.glsl.js +14 -6
  620. package/views/3d/webgl-engine/core/shaderLibrary/attributes/PathVertexPosition.glsl.js +2 -1
  621. package/views/3d/webgl-engine/core/shaderLibrary/util/EmissionDimming.glsl.js +1 -1
  622. package/views/3d/webgl-engine/effects/blit/Blit.js +1 -1
  623. package/views/3d/webgl-engine/effects/glow/Glow.js +1 -1
  624. package/views/3d/webgl-engine/effects/transparency/OITBlend.js +1 -1
  625. package/views/3d/webgl-engine/lib/OrderIndependentTransparency.js +1 -1
  626. package/views/3d/webgl-engine/lib/PathEvaluator.js +1 -1
  627. package/views/3d/webgl-engine/materials/PathTechnique.js +1 -1
  628. package/views/3d/webgl-engine/materials/PolygonOffset.js +1 -1
  629. package/views/3d/webgl-engine/shaders/HUDMaterialTechnique.js +1 -1
  630. package/views/3d/webgl-engine/shaders/OutputColorHighlightOLID.glsl.js +6 -7
  631. package/views/3d/webgl-engine/shaders/ditherNoise.glsl.js +1 -1
  632. package/views/LinkChartView.d.ts +3 -1
  633. package/views/View2D.d.ts +3 -1
  634. package/views/draw/support/editingSessionUtils.js +1 -1
  635. package/views/interactive/snapping/SnappingManager.js +1 -1
  636. package/views/interactive/snapping/candidates/dehydrated/{DehydratedVertexSnappingCandidate.js → DehydratedFeatureSnappingCandidate.js} +1 -1
  637. package/widgets/BatchAttributeForm/BatchAttributeFormViewModel.d.ts +10 -3
  638. package/widgets/BatchAttributeForm/BatchAttributeFormViewModel.js +1 -1
  639. package/widgets/BatchAttributeForm/attachmentUtils.d.ts +9 -0
  640. package/widgets/BatchAttributeForm/attachmentUtils.js +1 -1
  641. package/widgets/BatchAttributeForm/batchAttributeFormUtils.js +1 -1
  642. package/widgets/BatchAttributeForm/css.js +1 -1
  643. package/widgets/BatchAttributeForm/inputs/AttachmentElementInput.d.ts +3 -3
  644. package/widgets/BatchAttributeForm/inputs/AttachmentElementInput.js +1 -1
  645. package/widgets/BatchAttributeForm/inputs/BatchFormInputs.js +1 -1
  646. package/widgets/BatchAttributeForm/inputs/FieldInput.js +1 -1
  647. package/widgets/BatchAttributeForm/inputs/GroupInput.js +1 -1
  648. package/widgets/BatchAttributeForm/inputs/InputBase.js +1 -1
  649. package/widgets/BatchAttributeForm/inputs/RelationshipElementInput.js +1 -1
  650. package/widgets/BatchAttributeForm/inputs/support/attachmentValidationCriteriaState.d.ts +1 -1
  651. package/widgets/BatchAttributeForm/inputs/support/createBatchFormInputs.js +1 -1
  652. package/widgets/BatchAttributeForm/interfaceUtils.js +1 -1
  653. package/widgets/BatchAttributeForm/templates/support/createBatchFormTemplate.js +1 -1
  654. package/widgets/BatchAttributeForm/templates/support/hashElementTemplate.js +1 -1
  655. package/widgets/BatchAttributeForm/types.d.ts +92 -7
  656. package/widgets/BatchAttributeForm.js +1 -1
  657. package/widgets/Editor/CreateFeaturesWorkflow.js +1 -1
  658. package/widgets/Editor/CreateFeaturesWorkflowData.js +1 -1
  659. package/widgets/Editor/EditorViewModel.d.ts +1 -1
  660. package/widgets/Editor/EditorViewModel.js +1 -1
  661. package/widgets/Editor/Edits.js +1 -1
  662. package/widgets/Editor/MergeFeaturesWorkflow.js +1 -1
  663. package/widgets/Editor/SplitFeatureWorkflow.js +1 -1
  664. package/widgets/Editor/UpdateFeatureWorkflow.js +1 -1
  665. package/widgets/Editor/UpdateFeaturesWorkflow.js +1 -1
  666. package/widgets/Editor/UpdateRecordWorkflow.js +1 -1
  667. package/widgets/Editor/UpdateWorkflow.js +1 -1
  668. package/widgets/Editor/UpdateWorkflowData.js +1 -1
  669. package/widgets/Editor/components/UpdateFeaturePanelContent.js +1 -1
  670. package/widgets/Editor/support/EditorItem.js +1 -1
  671. package/widgets/Editor/support/SketchController.js +1 -1
  672. package/widgets/Editor/support/attachmentUtils.js +2 -0
  673. package/widgets/Editor/workflowUtils.js +1 -1
  674. package/widgets/Editor.js +1 -1
  675. package/widgets/Feature/FeatureViewModel.d.ts +0 -1
  676. package/widgets/FeatureForm/UtilityNetworkAssociationInput.d.ts +0 -1
  677. package/widgets/Features/FeaturesViewModel.d.ts +0 -1
  678. package/widgets/Features/FeaturesViewModel.js +1 -1
  679. package/widgets/Legend/support/ActiveLayerInfo.js +1 -1
  680. package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
  681. package/widgets/OrientedImageryViewer/adapters/sketch/MeasurementAdapter.js +1 -1
  682. package/widgets/OrientedImageryViewer/components/OrientedImageryVideoViewModel.js +1 -1
  683. package/widgets/OrientedImageryViewer.js +1 -1
  684. package/widgets/Popup.js +1 -1
  685. package/widgets/Sketch/SketchViewModel.d.ts +10 -1
  686. package/widgets/Sketch/SketchViewModel.js +1 -1
  687. package/widgets/Sketch.js +1 -1
  688. package/widgets/UtilityNetworkTrace/UtilityNetworkTraceViewModel.js +1 -1
  689. package/widgets/UtilityNetworkTrace/support/GeometryHandler.js +1 -1
  690. package/assets/components/assets/icon/orientedImageryFullSuperimpose16.json +0 -1
  691. package/assets/components/assets/icon/orientedImageryFullSuperimpose24.json +0 -1
  692. package/assets/components/assets/icon/orientedImageryFullSuperimpose32.json +0 -1
  693. package/assets/components/assets/icon/orientedImageryHalfSuperimpose16.json +0 -1
  694. package/assets/components/assets/icon/orientedImageryHalfSuperimpose24.json +0 -1
  695. package/assets/components/assets/icon/orientedImageryHalfSuperimpose32.json +0 -1
  696. package/assets/components/assets/icon/orientedImagerySceneOnly16.json +0 -1
  697. package/assets/components/assets/icon/orientedImagerySceneOnly24.json +0 -1
  698. package/assets/components/assets/icon/orientedImagerySceneOnly32.json +0 -1
  699. package/assets/components/assets/icon/parquetFeatureLayer16.json +0 -1
  700. package/assets/components/assets/icon/parquetFeatureLayer24.json +0 -1
  701. package/assets/components/assets/icon/parquetFeatureLayer32.json +0 -1
  702. package/assets/esri/core/workers/chunks/013708f40f811158d42c.js +0 -1
  703. package/assets/esri/core/workers/chunks/03354e9256b2f77fd4f2.js +0 -1
  704. package/assets/esri/core/workers/chunks/0436fe89adc78696251c.js +0 -1
  705. package/assets/esri/core/workers/chunks/079b412d07d02504f1db.js +0 -1
  706. package/assets/esri/core/workers/chunks/0826d36dfbfa28442b70.js +0 -1
  707. package/assets/esri/core/workers/chunks/0ded58ccb83f624f1460.js +0 -1
  708. package/assets/esri/core/workers/chunks/0ecc1bc1686844cdd60e.js +0 -1
  709. package/assets/esri/core/workers/chunks/152f1c08197955224ad3.js +0 -1
  710. package/assets/esri/core/workers/chunks/174cc2e69e5b5a13d880.js +0 -1
  711. package/assets/esri/core/workers/chunks/181e948d076a9a7aae8a.js +0 -1
  712. package/assets/esri/core/workers/chunks/18e7784f13a57a75585a.js +0 -1
  713. package/assets/esri/core/workers/chunks/1c8436b27a3d3cde5cfc.js +0 -1
  714. package/assets/esri/core/workers/chunks/1d81e667a580c5cdeda1.js +0 -262
  715. package/assets/esri/core/workers/chunks/1dacc0b64bd27ce2de3a.js +0 -1
  716. package/assets/esri/core/workers/chunks/1eeb1edca0ad5db6917c.js +0 -1
  717. package/assets/esri/core/workers/chunks/1f289aa69dd6b6be534a.js +0 -1
  718. package/assets/esri/core/workers/chunks/27c6def22c2b0791ce9e.js +0 -1
  719. package/assets/esri/core/workers/chunks/2bc4aff77c830061e16e.js +0 -1
  720. package/assets/esri/core/workers/chunks/2c3fc2805f6de0963789.js +0 -1
  721. package/assets/esri/core/workers/chunks/2d2895f1fdf44d212a4d.js +0 -1
  722. package/assets/esri/core/workers/chunks/2e6382d50bf012064eae.js +0 -1
  723. package/assets/esri/core/workers/chunks/3248001d9dfb9153699e.js +0 -1
  724. package/assets/esri/core/workers/chunks/33b4f5dfe1a16b59b010.js +0 -1
  725. package/assets/esri/core/workers/chunks/36dac6ab51d9dbdd091d.js +0 -1
  726. package/assets/esri/core/workers/chunks/36dd3ad3ef2fbfc15cbd.js +0 -1
  727. package/assets/esri/core/workers/chunks/39974d1e5d3820ef1680.js +0 -1
  728. package/assets/esri/core/workers/chunks/42e5e00610f281ca8ffa.js +0 -1
  729. package/assets/esri/core/workers/chunks/4301cb9670fa7c907460.js +0 -1
  730. package/assets/esri/core/workers/chunks/493a0981e90a5799fb5b.js +0 -1
  731. package/assets/esri/core/workers/chunks/4c54cb80c4dc9bbbd395.js +0 -1
  732. package/assets/esri/core/workers/chunks/4cc78493805671708a9b.js +0 -1
  733. package/assets/esri/core/workers/chunks/4e788fc6cb2ea936f676.js +0 -1
  734. package/assets/esri/core/workers/chunks/4efef5fa8bf23aaf34cd.js +0 -1
  735. package/assets/esri/core/workers/chunks/5100b5a6a506c704dfaf.js +0 -1
  736. package/assets/esri/core/workers/chunks/5121768c70f1e03b685c.js +0 -1
  737. package/assets/esri/core/workers/chunks/52afd43bbe23e358efb5.js +0 -1
  738. package/assets/esri/core/workers/chunks/52f354bf80ee5ab0379a.js +0 -1
  739. package/assets/esri/core/workers/chunks/5359ff9492383c5bd9b1.js +0 -1
  740. package/assets/esri/core/workers/chunks/54d7f07e3348ddb6d9a2.js +0 -1
  741. package/assets/esri/core/workers/chunks/57b7e5fde972d3ad7884.js +0 -1
  742. package/assets/esri/core/workers/chunks/597aa39cdb5366ef9a74.js +0 -1
  743. package/assets/esri/core/workers/chunks/5aba23584e0b230c75f5.js +0 -1
  744. package/assets/esri/core/workers/chunks/5cb274e5759f7ca0d4ed.js +0 -1
  745. package/assets/esri/core/workers/chunks/5d8924fdcdb473d261cd.js +0 -1
  746. package/assets/esri/core/workers/chunks/62de9e83331fb10aac6a.js +0 -2
  747. package/assets/esri/core/workers/chunks/62e77e3c5ca9b4887923.js +0 -2
  748. package/assets/esri/core/workers/chunks/64114a7d2da162987958.js +0 -1
  749. package/assets/esri/core/workers/chunks/641cddee377599916de2.js +0 -2
  750. package/assets/esri/core/workers/chunks/65520a443e3811255bea.js +0 -1
  751. package/assets/esri/core/workers/chunks/65f02eca694cc1c9f5a7.js +0 -1
  752. package/assets/esri/core/workers/chunks/6821462e5c1e9c76010a.js +0 -1
  753. package/assets/esri/core/workers/chunks/6a3d207308b29651f397.js +0 -1
  754. package/assets/esri/core/workers/chunks/6f5d61f734ec40dafabb.js +0 -1
  755. package/assets/esri/core/workers/chunks/737de87bfb9b5f5a9c6c.js +0 -1
  756. package/assets/esri/core/workers/chunks/7748743d4be047094d67.js +0 -1
  757. package/assets/esri/core/workers/chunks/78c53aeb0a408ab3c80c.js +0 -1
  758. package/assets/esri/core/workers/chunks/79f2d4b3af5776ec2045.js +0 -1
  759. package/assets/esri/core/workers/chunks/7a8ed08cd173963b3112.js +0 -1
  760. package/assets/esri/core/workers/chunks/7b5c1030a7cf0f382cc4.js +0 -1
  761. package/assets/esri/core/workers/chunks/7cadb872b9ca96eedca5.js +0 -1
  762. package/assets/esri/core/workers/chunks/7cee81c5aa1e6b7d2452.js +0 -1
  763. package/assets/esri/core/workers/chunks/7ed3d6c72f23c628df3b.js +0 -1
  764. package/assets/esri/core/workers/chunks/80f4f686ce403cb2693f.js +0 -1
  765. package/assets/esri/core/workers/chunks/8351012ceb466f01b8fd.js +0 -1
  766. package/assets/esri/core/workers/chunks/859bc873e7af911a518f.js +0 -1
  767. package/assets/esri/core/workers/chunks/8e99f937fd36cf2cd05f.js +0 -1
  768. package/assets/esri/core/workers/chunks/93bd56396b8cd020f965.js +0 -1
  769. package/assets/esri/core/workers/chunks/94fac056e14caed09682.js +0 -1
  770. package/assets/esri/core/workers/chunks/957f7b8de4aecb6f644e.js +0 -1
  771. package/assets/esri/core/workers/chunks/97d2bdbea39cbcf8fd0f.js +0 -1
  772. package/assets/esri/core/workers/chunks/99101789035f1787c630.js +0 -1
  773. package/assets/esri/core/workers/chunks/9c6d34bb666f630d511f.js +0 -1
  774. package/assets/esri/core/workers/chunks/a0208e35b217808777c4.js +0 -1
  775. package/assets/esri/core/workers/chunks/a320998f18922a35899f.js +0 -1
  776. package/assets/esri/core/workers/chunks/a4e9a17dacbb52444d75.js +0 -1
  777. package/assets/esri/core/workers/chunks/a5abba59e738c3240c22.js +0 -1
  778. package/assets/esri/core/workers/chunks/a63bba226de6c5e464b0.js +0 -1
  779. package/assets/esri/core/workers/chunks/a9f29ff36a7ae5bae686.js +0 -1
  780. package/assets/esri/core/workers/chunks/aae0049c2c3e15a813e8.js +0 -1
  781. package/assets/esri/core/workers/chunks/adc32f6b45ea3026fc34.js +0 -1
  782. package/assets/esri/core/workers/chunks/af8ef6701631ed5e5b80.js +0 -1
  783. package/assets/esri/core/workers/chunks/b666027b9022fa346a79.js +0 -1
  784. package/assets/esri/core/workers/chunks/b73c146d3e550eaf07eb.js +0 -1
  785. package/assets/esri/core/workers/chunks/b803e7b0d489bb628d72.js +0 -1
  786. package/assets/esri/core/workers/chunks/bb24972603fb35dd8dcf.js +0 -1
  787. package/assets/esri/core/workers/chunks/bcc097271f5cdf0a97a7.js +0 -1
  788. package/assets/esri/core/workers/chunks/c0cbc50e5afd68bd485c.js +0 -1
  789. package/assets/esri/core/workers/chunks/c3ff2ff0a86a9143d7a5.js +0 -1
  790. package/assets/esri/core/workers/chunks/c6d0b4875b6b8d6bc25a.js +0 -1
  791. package/assets/esri/core/workers/chunks/c9a4601073e1a3eee9d0.js +0 -1
  792. package/assets/esri/core/workers/chunks/cf8ce21dc649021e97f6.js +0 -1
  793. package/assets/esri/core/workers/chunks/d78b7cac322755e87eb8.js +0 -1
  794. package/assets/esri/core/workers/chunks/dddb57ff637643ccfc87.js +0 -1
  795. package/assets/esri/core/workers/chunks/df18b0a653b328d8d052.js +0 -1
  796. package/assets/esri/core/workers/chunks/e1bf87077541da6853c6.js +0 -1
  797. package/assets/esri/core/workers/chunks/e3b713a590cce6245ee2.js +0 -1
  798. package/assets/esri/core/workers/chunks/e4406baf206b9e4c7e4f.js +0 -1
  799. package/assets/esri/core/workers/chunks/e499252cb52f7aed49a0.js +0 -1
  800. package/assets/esri/core/workers/chunks/e4e2f479c0c45ae1b2c3.js +0 -1
  801. package/assets/esri/core/workers/chunks/e656fd5ecf9ac059a87b.js +0 -1
  802. package/assets/esri/core/workers/chunks/e92698f50089484c4901.js +0 -1
  803. package/assets/esri/core/workers/chunks/e9c5c295b6bf10e942a4.js +0 -1
  804. package/assets/esri/core/workers/chunks/eb91dc957c328674e119.js +0 -1
  805. package/assets/esri/core/workers/chunks/ed3d16a5b4084ef61f8a.js +0 -1
  806. package/assets/esri/core/workers/chunks/edcde00495727d506c46.js +0 -1
  807. package/assets/esri/core/workers/chunks/efb4aa5886730ea377bd.js +0 -1
  808. package/assets/esri/core/workers/chunks/f0832b413612c77a62ca.js +0 -1
  809. package/assets/esri/core/workers/chunks/f116331c6eca937aac8e.js +0 -1
  810. package/assets/esri/core/workers/chunks/f334bf192dff5af10a70.js +0 -1
  811. package/assets/esri/core/workers/chunks/f518835b2dc89a48cfb1.js +0 -1
  812. package/assets/esri/core/workers/chunks/f5731ad4cfbbf1cc569a.js +0 -2
  813. package/assets/esri/core/workers/chunks/f76b1fc36f5606cac2c8.js +0 -1
  814. package/assets/esri/core/workers/chunks/f7fca88d120d45bb782a.js +0 -1
  815. package/assets/esri/core/workers/chunks/f819854098d63fe4ccdb.js +0 -1
  816. package/assets/esri/core/workers/chunks/f98118127469449ca145.js +0 -1
  817. package/assets/esri/core/workers/chunks/f9e22cf59e2e2782d70f.js +0 -1
  818. package/assets/esri/core/workers/chunks/fbe7dae0b4bf2d172487.js +0 -1
  819. package/assets/esri/core/workers/chunks/fea3b6bef761ef78630e.js +0 -1
  820. package/chunks/Bufferer-Dw9Qi4T1.js +0 -2
  821. package/chunks/Distance2DCalculator-CXhBP-8I.js +0 -2
  822. package/chunks/GeodeticDistanceCalculator-Ce-woMPw.js +0 -2
  823. package/layers/support/AnnotationSublayer.js +0 -2
  824. package/views/3d/analysis/LineOfSight/LineOfSightPlacementTool.js +0 -2
  825. /package/assets/esri/core/workers/chunks/{d9d4754062758789f186.js.LICENSE.txt → 05016e5a1de384994001.js.LICENSE.txt} +0 -0
  826. /package/assets/esri/core/workers/chunks/{62e77e3c5ca9b4887923.js.LICENSE.txt → 0d42322362e76f674d94.js.LICENSE.txt} +0 -0
  827. /package/assets/esri/core/workers/chunks/{62de9e83331fb10aac6a.js.LICENSE.txt → 35533c8ef541f7643497.js.LICENSE.txt} +0 -0
  828. /package/assets/esri/core/workers/chunks/{641cddee377599916de2.js.LICENSE.txt → 99c002015c2127e6cbfc.js.LICENSE.txt} +0 -0
  829. /package/assets/esri/core/workers/chunks/{f5731ad4cfbbf1cc569a.js.LICENSE.txt → c318e6dbb8651433038f.js.LICENSE.txt} +0 -0
  830. /package/chunks/{Centroid-DZi-eb9F.js → Centroid-CA-TwbbN.js} +0 -0
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1512,1550,1666,1948,3931,5611,6061,6312,7992,8125,9169,9285],{61691(t,e,n){n.d(e,{G:()=>r});class r{*[Symbol.iterator](){let t=this.next();for(;t;)yield t,t=this.next()}}},76061(t,e,n){n.d(e,{S:()=>s});var r=n(61691);class s extends r.G{m_aGeoms;m_iGeom=-1;constructor(t){super(),this.m_aGeoms=t?t.slice():[]}next(){if(this.m_iGeom<this.m_aGeoms.length-1){const t=this.m_aGeoms[++this.m_iGeom];return this.m_aGeoms[this.m_iGeom]=null,t}return null}tock(){return!1}getGeometryID(){return this.m_iGeom}getRank(){return 1}}},68925(t,e,n){n.d(e,{c:()=>u,e:()=>i});var r=n(4576),s=n(90756),o=n(78125);function i(t,e){const n=(0,o.getSpatialReference)(t);return(0,s.g)((0,o.fromGeometry)(t),(0,o.fromPolyline)(e),(0,o.fromSpatialReference)(n)).map(t=>(0,o.toGeometry)(t,n)).filter(r.Ru)}const a=(0,s.f)(),u=Object.freeze(Object.defineProperty({__proto__:null,execute:i,supportsCurves:a},Symbol.toStringTag,{value:"Module"}))},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:()=>o});const o=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:o,clone:s,create:r,fromValues:function(t,e,n,r,s,o,i,a,u,c,h,l,m,f,g,p){return[t,e,n,r,s,o,i,a,u,c,h,l,m,f,g,p]}},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 o(t,e,n){return[t,e,n]}function i(t,e,n){return[t,e,n]}function a(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 o(1,1,1)}function h(){return o(1,0,0)}function l(){return o(0,1,0)}function m(){return o(0,0,1)}n.d(e,{CN:()=>i,Cb:()=>y,Cw:()=>p,JP:()=>d,S:()=>c,Ul:()=>u,Un:()=>g,ci:()=>a,fA:()=>o,o8:()=>s,uY:()=>f,vt:()=>r});const f=[0,0,0],g=c(),p=h(),d=l(),y=m();Object.freeze(Object.defineProperty({__proto__:null,ONES:g,UNIT_X:p,UNIT_Y:d,UNIT_Z:y,ZEROS:f,clone:s,create:r,freeze:i,fromArray:a,fromValues:o,ones:c,unitX:h,unitY:l,unitZ:m,zeros:u},Symbol.toStringTag,{value:"Module"}))},35522(t,e,n){n.d(e,{$A:()=>b,Bw:()=>o,C:()=>i,Cc:()=>w,DI:()=>_,Il:()=>L,Io:()=>x,Ln:()=>y,Om:()=>P,Qr:()=>l,Re:()=>c,S8:()=>E,T9:()=>p,WQ:()=>u,Z0:()=>I,_S:()=>f,aI:()=>T,ei:()=>A,fw:()=>V,g7:()=>O,gL:()=>S,hG:()=>v,hZ:()=>a,hs:()=>d,jb:()=>N,jk:()=>g,lo:()=>X,lw:()=>h,m3:()=>M,oW:()=>Y,t2:()=>R,tn:()=>m,uE:()=>B,xg:()=>z,ze:()=>C});var r=n(51850),s=n(34304);function o(t){const e=t[0],n=t[1],r=t[2];return Math.sqrt(e*e+n*n+r*r)}function i(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function a(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 m(t,e){return t[0]=Math.abs(e[0]),t[1]=Math.abs(e[1]),t[2]=Math.abs(e[2]),t}function f(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 p(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 d(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 x(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 v(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 M(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 _(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}function E(t,e){const n=e[0],r=e[1],s=e[2];let o=n*n+r*r+s*s;return o>0&&(o=1/Math.sqrt(o),t[0]=e[0]*o,t[1]=e[1]*o,t[2]=e[2]*o),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],o=e[2],i=n[0],a=n[1],u=n[2];return t[0]=s*u-o*a,t[1]=o*i-r*u,t[2]=r*a-s*i,t}function w(t,e,n,r){const s=e[0],o=e[1],i=e[2];return t[0]=s+r*(n[0]-s),t[1]=o+r*(n[1]-o),t[2]=i+r*(n[2]-i),t}function I(t,e,n){const r=e[0],s=e[1],o=e[2];return t[0]=n[0]*r+n[4]*s+n[8]*o+n[12],t[1]=n[1]*r+n[5]*s+n[9]*o+n[13],t[2]=n[2]*r+n[6]*s+n[10]*o+n[14],t}function A(t,e,n){const r=e[0],s=e[1],o=e[2];return t[0]=r*n[0]+s*n[3]+o*n[6],t[1]=r*n[1]+s*n[4]+o*n[7],t[2]=r*n[2]+s*n[5]+o*n[8],t}function S(t,e,n){return V(t,e,n[0],n[1],n[2],n[3])}function V(t,e,n,r,s,o){const i=e[0],a=e[1],u=e[2],c=r*u-s*a,h=s*i-n*u,l=n*a-r*i,m=r*l-s*h,f=s*c-n*l,g=n*h-r*c,p=2*o;return t[0]=i+c*p+2*m,t[1]=a+h*p+2*f,t[2]=u+l*p+2*g,t}function O(t,e){E(Z,t),E(G,e);const n=P(Z,G);return n>1?0:n<-1?Math.PI:Math.acos(n)}const Z=(0,r.vt)(),G=(0,r.vt)();function R(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function T(t,e){if(t===e)return!0;const n=t[0],r=t[1],o=t[2],i=e[0],a=e[1],u=e[2],c=(0,s.FD)();return Math.abs(n-i)<=c*Math.max(1,Math.abs(n),Math.abs(i))&&Math.abs(r-a)<=c*Math.max(1,Math.abs(r),Math.abs(a))&&Math.abs(o-u)<=c*Math.max(1,Math.abs(o),Math.abs(u))}function Y(t,e,n){const r=n[0]-e[0],s=n[1]-e[1],o=n[2]-e[2];let i=r*r+s*s+o*o;return i>0?(i=1/Math.sqrt(i),t[0]=r*i,t[1]=s*i,t[2]=o*i,t):(t[0]=0,t[1]=0,t[2]=0,t)}const N=c,F=h,k=l,z=x,X=v,L=o,B=M;Object.freeze(Object.defineProperty({__proto__:null,abs:m,add:u,angle:O,bezier:function(t,e,n,r,s,o){const i=1-o,a=i*i,u=o*o,c=a*i,h=3*o*a,l=3*u*i,m=u*o;return t[0]=e[0]*c+n[0]*h+r[0]*l+s[0]*m,t[1]=e[1]*c+n[1]*h+r[1]*l+s[1]*m,t[2]=e[2]*c+n[2]*h+r[2]*l+s[2]*m,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:i,cross:b,crossAndNormalize:function(t,e,n){const r=e[0],s=e[1],o=e[2],i=n[0],a=n[1],u=n[2],c=s*u-o*a,h=o*i-r*u,l=r*a-s*i,m=Math.sqrt(c*c+h*h+l*l);return t[0]=c/m,t[1]=h/m,t[2]=l/m,t},direction:Y,dist:z,distance:x,div:k,divide:l,dot:P,equals:T,exactEquals:R,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,o){const i=o*o,a=i*(2*o-3)+1,u=i*(o-2)+o,c=i*(o-1),h=i*(3-2*o);return t[0]=e[0]*a+n[0]*u+r[0]*c+s[0]*h,t[1]=e[1]*a+n[1]*u+r[1]*c+s[1]*h,t[2]=e[2]*a+n[2]*u+r[2]*c+s[2]*h,t},inverse:_,len:L,length:o,lerp:w,max:p,min:g,mul:F,multiply:h,negate:C,normalize:E,random:function(t,e=1){const n=s.Ov,r=2*n()*Math.PI,o=2*n()-1,i=Math.sqrt(1-o*o)*e;return t[0]=Math.cos(r)*i,t[1]=Math.sin(r)*i,t[2]=o*e,t},rotateX:function(t,e,n,r){const s=[],o=[];return s[0]=e[0]-n[0],s[1]=e[1]-n[1],s[2]=e[2]-n[2],o[0]=s[0],o[1]=s[1]*Math.cos(r)-s[2]*Math.sin(r),o[2]=s[1]*Math.sin(r)+s[2]*Math.cos(r),t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t},rotateY:function(t,e,n,r){const s=[],o=[];return s[0]=e[0]-n[0],s[1]=e[1]-n[1],s[2]=e[2]-n[2],o[0]=s[2]*Math.sin(r)+s[0]*Math.cos(r),o[1]=s[1],o[2]=s[2]*Math.cos(r)-s[0]*Math.sin(r),t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t},rotateZ:function(t,e,n,r){const s=[],o=[];return s[0]=e[0]-n[0],s[1]=e[1]-n[1],s[2]=e[2]-n[2],o[0]=s[0]*Math.cos(r)-s[1]*Math.sin(r),o[1]=s[0]*Math.sin(r)+s[1]*Math.cos(r),o[2]=s[2],t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[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:d,scaleAndAdd:y,set:a,sign:f,sqrDist:X,sqrLen:B,squaredDistance:v,squaredLength:M,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:N,subtract:c,transformMat3:A,transformMat4:I,transformQuat:S,transformQuatValues:V},Symbol.toStringTag,{value:"Module"}))},69397(t,e,n){n.d(e,{Qf:()=>u,Qh:()=>i,RS:()=>s,Ul:()=>f,i5:()=>m,lM:()=>o,qK:()=>h});var r=n(34275);const s=16;function o(t){if(!t)return 0;let e=h;for(const n in t)t.hasOwnProperty(n)&&(e+=a(t[n],!1));return e}function i(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+=a(t[r]);return n}(t);let e=h;for(const n in t)t.hasOwnProperty(n)&&(e+=a(t[n]));return e}function a(t,e=!0){switch(typeof t){case"object":return e?i(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+m:Array.isArray(e)?c(e,s):0:0),0)}function c(t,e){return l+t.length*e}const h=32,l=16,m=145,f=64},87992(t,e,n){n.d(e,{JR:()=>b,ME:()=>_,MY:()=>w,NO:()=>C,Nh:()=>P,V2:()=>O,_s:()=>Z,e6:()=>R,gh:()=>E,tr:()=>Y,uX:()=>d});var r=n(5482),s=n(69397),o=n(16930),i=(n(70328),n(19419)),a=n(60408),u=n(21325),c=n(513),h=n(50954),l=n(79567),m=n(52006),f=n(49663),g=n(46068),p=n(92722);class d{constructor({type:t,spatialReference:e,vertexCount:n,vertexXY:r,vertexZ:s,vertexM:o,partCount:i,partOffsets:a,partFlags:u,segmentFlags:c,segmentIndices:h,segmentParams:l,segmentCountArc:m,segmentCountBezier:f}){this.segmentCountArc=0,this.segmentCountBezier=0,this.type=t,this.spatialReference=e,this.vertexCount=n,this.vertexXY=r,this.vertexZ=s,this.vertexM=o,this.partCount=i,this.partOffsets=a,this.partFlags=u,this.segmentFlags=c,this.segmentIndices=h,this.segmentParams=l,this.segmentCountArc=m,this.segmentCountBezier=f}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:o,segmentCountBezier:i}=this,a=O(t,e,n,r,s,this.hasCurves(),o,i);a.spatialReference=this.spatialReference;const{vertexXY:u,vertexZ:c,vertexM:h}=this;if(a.vertexXY.set(u.subarray(0,2*e),0),a.vertexZ?.set(c.subarray(0,e),0),a.vertexM?.set(h.subarray(0,e),0),this.isMultipart()){const{partOffsets:t,partFlags:e}=this;a.partFlags.set(e.subarray(0,n+1)),a.partOffsets.set(t.subarray(0,n+1))}if(this.hasCurves()){const{segmentFlags:t,segmentIndices:n,segmentParams:r,segmentParamCount:s}=this;a.segmentFlags.set(t.subarray(0,e),0),a.segmentIndices.set(n.subarray(0,e),0),a.segmentParams.set(r.subarray(0,s),0)}return a}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 x(t)}get done(){return this.value.index>=this.geometry.partCount}next(){return++this.value.index,this}[Symbol.iterator](){return this}}class x{constructor(t){this.geometry=t,this.index=-1,this._readVertex=S(t),this._segments=new v(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 v{constructor(t){this._part=t,this._partStart=0,this._partEnd=0,this._isPolygon="polygon"===t.geometry.type,this.value=new M(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 M{constructor(t){this.geometry=t,this.indexOfStartVertex=-1,this.indexOfEndVertex=-1,this._readVertex=S(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++],o=e[n++];return{b:[this.end,[t,r],[s,o]]}}const r=e[n++],s=e[n++],o=e[n++],i=e[n++],a=e[n++],u=e[n++];n++,n++;const c=e[n++],h=e[n++];if(!Boolean(4&r)&&1===o)return{c:[this.end,[c,h]]};const l=2&r?0:1,m=1&r?0:1;return{a:[this.end,[a,u],l,m,i,s,o]}}}function C(t,e){const n={stack:[],error:void 0,hasError:!1};try{return e??=(0,i.Ie)(),(0,r.mS)(n,new I(t,["vertexZ","vertexM","spatialReference"]),!1),(0,i.bx)(e,function(t){let e;const{vertexCount:n,vertexXY:s,vertexZ:o,vertexM:a}=t,u=A(t);if(t.hasCurves()){const n={stack:[],error:void 0,hasError:!1};try{(0,r.mS)(n,new I(t,["vertexZ","vertexM"]),!1);const s=(0,i.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,m.yP)(n)}const[o,a,c,h]=s;e={xmin:o,ymin:a,xmax:c,ymax:h,spatialReference:u}}catch(t){n.error=t,n.hasError=!0}finally{(0,r.hk)(n)}}else{let t,r,o,i;t=r=1/0,o=i=-1/0;for(let e=0;e<n;++e){const n=s[2*e],a=s[2*e+1];t=Math.min(t,n),o=Math.max(o,n),r=Math.min(r,a),i=Math.max(i,a)}e={xmin:t,ymin:r,xmax:o,ymax:i,spatialReference:u}}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.zmin=t,e.zmax=n}if(a){let t=1/0,n=-1/0;for(const e of a)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 _(t){let e,n,r;if((0,a.fT)(t)){r="point";const{x:s,y:o,z:i,m:a}=t,u=[s,o];null!=i&&u.push(i),null!=a&&u.push(a),n=[[u]],e=1}else(0,a.U9)(t)?(r="multipoint",n=[t.points],e=t.points.length):(0,a.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,m.yP)(e.at(-1)))&&--t),t),0));const s=O(r,e,r.includes("point")?0:n.length,(0,a.Pv)(t),(0,a.W0)(t),(0,m.Ed)(t)),{hasZ:o,hasM:i,vertexXY:u,vertexZ:c,vertexM:h}=s;function l(t){u[2*g]=t[0],u[2*g+1]=t[1],o&&(c[g]=t[2]),i&&(h[g]=t[f]),++g}s.spatialReference=t.spatialReference??void 0;const f=s.hasZ?3:2;let g=0;if(!s.isMultipart()){if(!o&&!i){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 p="polygon"===r,{partOffsets:d}=s;let y=0;if(!(0,m.Ed)(t)){for(const t of n){if(d[y++]=g,0===t.length)continue;let e=t.length;if(p&&V(t[0],t.at(-1))&&--e,o||i)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 d[y]=g,s}function x(t){const e=v+t;if(e<=(s.segmentParams?.length??0))return;let n=e*N;n=20*Math.ceil(n/20);const r=s.segmentParams;s.segmentParams=new Float64Array(n),null!=r&&s.segmentParams.set(r)}let v=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 o=g-1;(0,m.wY)(r)?(x(10),++s.segmentCountArc,v=Z(n,r,s,o,v),n=r.a[0]):(0,m.DA)(r)?(x(10),++s.segmentCountArc,v=G(n,r,s,o,v),n=r.a[0]):(0,m.aO)(r)?(x(10),++s.segmentCountArc,v=R(n,r,s,o,v),n=r.c[0]):(0,m.n1)(r)?(x(4),++s.segmentCountBezier,v=Y(0,r,s,o,v),n=r.b[0]):n=r}p&&V(e,n)||l(n)}return s.partOffsets[y]=g,s}function E(t){const e=S(t),{vertexCount:n,partCount:r,hasZ:s,hasM:o}=t,i=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:i}}let a=0;if("multipoint"===t.type){const t=[];for(;a<n;)t.push(e(a++));return{points:t,spatialReference:i,hasZ:s,hasM:o}}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],o=new Array;for(;a<r;)o.push(e(a++));u&&o.length>0&&o.push(o[0]),n.push(o)}return u?{rings:n,hasZ:s,hasM:o,spatialReference:i}:{paths:n,hasZ:s,hasM:o,spatialReference:i}}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:o,spatialReference:i}:{paths:[],curvePaths:c,hasZ:s,hasM:o,spatialReference:i}}function P(t,{lengths:e,coords:n,hasZ:r,hasM:s},o){const i=t.includes("point")?0:e.length,a="polygon"===t,u="point"===t?1:e.reduce((t,e)=>t+e,0)-(a?i:0);r??=!1,s??=!1;const c=O(t,u,i,r,s,!1,0,0);if(c.spatialReference=o??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,m=0;c.partOffsets[0]=0;for(const t of e){const e=c.partOffsets[m],o=e+t-Number(a);c.partOffsets[++m]=o;for(let t=e;t<o;++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++]);a&&(l+=h)}return c}function b({type:t,vertexCount:e,vertexXY:n,vertexZ:r,vertexM:s,partCount:o,partOffsets:i,hasZ:a,hasM:u}){const c=new p.A([],[],a,u);o=Math.max(o,1);const h="polygon"===t;let l=0;for(let t=0;t<o;++t){const o=i?.[t+1]??e,m=c.coords.length;for(let t=l;t<o;++t)c.coords.push(n[2*t],n[2*t+1]),a&&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]),a&&c.coords.push(r[t]),u&&c.coords.push(s[t])}c.lengths.push((c.coords.length-m)/c.stride),l=o}return"point"===t&&(c.lengths.length=0),c}function w(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 o=s.isCustomWkid()?0:s.getOldID();if(o<=0)return{wkt:e};let i=t.getLatestVerticalID();return(i<=0||i===o)&&(i=void 0),{wkid:n,wkt:e,latestWkid:r,vcsWkid:o,latestVcsWkid:i}}(t.getSpatialReference()),t=t.getGeometry()),new d({...t.toFlatGeometry(),spatialReference:e})}class I{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 o.A?t.toJSON():t}function S({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 O(t,e,n,r,s,o,i,a){i??=0,a??=0;const u=new d({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:i,segmentCountBezier:a});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),o&&(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),o&&(u.segmentParams=new Float64Array(h,l,u.segmentParamCount),l+=u.segmentParams.byteLength,u.segmentIndices=new Int32Array(h,l,e),u.segmentIndices.fill(F),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)),o&&(u.segmentFlags=new Int8Array(h,l,e),u.segmentFlags.fill(1),l+=u.segmentFlags.byteLength),u}function Z(t,e,{segmentFlags:n,segmentIndices:r,segmentParams:s},o,i){n[o]=4,r[o]=i;const[a,[u,c],h,l,m,f,p]=e.a;let d=4;l||(d|=1),h||(d|=2);const y=(0,g.SW)(t,e),[x,v]=(0,g.Uk)(y,.5);return s[i++]=d,s[i++]=f,s[i++]=p,s[i++]=m,s[i++]=u,s[i++]=c,s[i++]=y.u2-y.u1,s[i++]=y.u1,s[i++]=x,s[i++]=v,i}function G(t,e,{segmentFlags:n,segmentIndices:r,segmentParams:s},o,i){n[o]=4,r[o]=i;const a=(0,f.io)(t,e);return T(a,4,...(0,c.mq)(a,.5),s,i)}function R(t,e,{segmentFlags:n,segmentIndices:r,segmentParams:s},o,i){return n[o]=4,r[o]=i,T((0,h.pM)(t,e),0,...e.c[1],s,i)}function T(t,e,n,r,s,o){const{cx:i,cy:a,thetaStart:u,thetaEnd:c,radius:h}=t;return u>c||(e|=1),Math.abs(c-u)<=Math.PI||(e|=2),s[o++]=e,s[o++]=h,s[o++]=1,s[o++]=0,s[o++]=i,s[o++]=a,s[o++]=c-u,s[o++]=u,s[o++]=n,s[o++]=r,o}function Y(t,{b:[e,[n,r],[s,o]]},{segmentFlags:i,segmentIndices:a,segmentParams:u},c,h){return i[c]=2,a[c]=h,u[h++]=n,u[h++]=r,u[h++]=s,u[h++]=o,h}const N=1.61803,F=-1},37817(t,e,n){n.d(e,{execute:()=>r.e}),n(4576),n(90756),n(78125);var r=n(68925)},90756(t,e,n){n.d(e,{g:()=>m,f:()=>f});var r=n(61691),s=n(55537),o=n(88885),i=n(95213),a=n(15756),u=a.C;function c(t,e){return{m_geometry:t,m_side:e}}class h extends r.G{m_bConsiderTouch;m_cuttee;m_cutter;m_tolerance;m_cutIndex=-1;m_cuts=[];m_progressTracker;constructor(t,e,n,r,s){super(),this.m_progressTracker=s,this.m_cuttee=e.clone(),this.m_cutter=new o.a({copy:n}),this.m_bConsiderTouch=t;const a=(0,i.g)(e,n);this.m_tolerance=(0,i.c)(r,a,!0)}next(){return-1===this.m_cutIndex&&this.generateCuts(),++this.m_cutIndex<this.m_cuts.length?this.m_cuts[this.m_cutIndex]:null}getGeometryID(){return this.m_cutIndex}tock(){return!0}getRank(){return 1}generateCuts(){switch(this.m_cuttee.getGeometryType()){case s.G.enumPolyline:this.generatePolylineCuts();break;case s.G.enumPolygon:this.generatePolygonCuts()}}generatePolylineCuts(){const t=new o.a,e=new o.a,n=new o.a;this.m_cuts.length=0,this.m_cuts.push(t),this.m_cuts.push(e);const r=[];!function(t,e,n,r,s,i){if(e.isEmpty()){const t=c(e,0);return void s.push(t)}if(n.isEmpty()){const t=c(e,0);return void s.push(t)}const h=[],l=new o.E;{const o=l.createGeometryUserIndex(),m=l.addGeometry(e),f=l.addGeometry(n),g=new a.T(i);let p=0,d=null;if(l.hasCurves()){d=new u;const t=l.getEnvelope2D(i);p=(0,a.l)(r.total());const e=(0,a.k)(r.total(),t);(0,a.n)(l,e,r.total(),12e3,d,null,i)}l.dbgVerifyCurves(),g.setEditShapeCrackAndCluster(l,r),g.cut(t,o,m,f,h);for(const t of h){null!==d&&d.stitchCurves(l,t,p,!1);const e=c(l.getGeometry(t),(0,a.E)(l.getGeometryUserIndex(t,o)));s.push(e)}null!==d&&d.clearStitcher(l)}}(this.m_bConsiderTouch,this.m_cuttee,this.m_cutter,this.m_tolerance,r,this.m_progressTracker);for(let o=0;o<r.length;o++){const i=r[o];1===i.m_side?t.add(i.m_geometry,!1):2===i.m_side||4===i.m_side?e.add(i.m_geometry,!1):3===i.m_side?this.m_cuts.push(i.m_geometry):0===i.m_side?n.add(i.m_geometry,!1):(0,s.d)("")}n.isEmpty()||t.isEmpty()&&e.isEmpty()&&!(this.m_cuts.length>=3)||this.m_cuts.push(n),t.isEmpty()&&e.isEmpty()&&this.m_cuts.length<3&&(this.m_cuts.length=0)}generatePolygonCuts(){const t=new o.P,e=new o.P,n=new o.P;this.m_cuts.length=0,this.m_cuts.push(t),this.m_cuts.push(e);const r=[];!function(t,e,n,r,s,i){if(e.isEmpty()){const t=c(e,0);return void s.push(t)}if(n.isEmpty()){const t=c(e,0);return void s.push(t)}const h=[],l=new o.E;{const t=l.createGeometryUserIndex(),m=l.addGeometry(e),f=l.addGeometry(n),g=new a.T(i);let p=0,d=null;if(l.hasCurves()){d=new u;const t=l.getEnvelope2D(i);p=(0,a.l)(r.total());const e=(0,a.k)(r.total(),t);(0,a.n)(l,e,r.total(),12e3,d,null,i)}l.dbgVerifyCurves(),g.setEditShapeCrackAndCluster(l,r),g.cut(!1,t,m,f,h),null!==d&&d.stitchCurves(l,o.n,p,!0);let y=l.getGeometry(m);const x=new o.P,v=new o.P,M=[];for(let e=0;e<h.length;e++){let n=null;{const s=new o.E,u=s.addGeometry(y),c=s.addGeometry(l.getGeometry(h[e]));if(s.hasCurves()){const t=s.getEnvelope2D(i);p=(0,a.l)(r.total());const e=(0,a.k)(r.total(),t);(0,a.n)(s,e,r.total(),12e3,d,null,i)}g.setEditShapeCrackAndCluster(s,r);const m=g.intersection(u,c);if(null!==d&&d.stitchCurves(s,o.n,p,!0),n=s.getGeometry(m),n.isEmpty())continue;const f=l.getGeometryUserIndex(h[e],t);2===f?x.add(n,!1):1===f?v.add(n,!1):M.push(n)}{const t=new o.E,n=t.addGeometry(y),s=t.addGeometry(l.getGeometry(h[e]));if(t.hasCurves()){const e=t.getEnvelope2D(i);p=(0,a.l)(r.total());const n=(0,a.k)(r.total(),e);(0,a.n)(t,n,r.total(),12e3,d,null,i)}g.setEditShapeCrackAndCluster(t,r);const u=g.difference(n,s);null!==d&&d.stitchCurves(t,o.n,p,!0),y=t.getGeometry(u)}}if(!y.isEmpty()&&h.length>0&&M.push(y),x.isEmpty()&&v.isEmpty())return;if(!x.isEmpty()){const t=c(x,1);s.push(t)}if(!v.isEmpty()){const t=c(v,2);s.push(t)}for(let t=0,e=M.length;t<e;++t){const e=c(M[t],3);s.push(e)}}}(this.m_bConsiderTouch,this.m_cuttee,this.m_cutter,this.m_tolerance,r,this.m_progressTracker);for(let o=0;o<r.length;o++){const i=r[o];1===i.m_side?t.add(i.m_geometry,!1):2===i.m_side?e.add(i.m_geometry,!1):3===i.m_side?this.m_cuts.push(i.m_geometry):0===i.m_side?n.add(i.m_geometry,!1):(0,s.d)("")}(0,s.g)(n.isEmpty()||1===r.length),t.isEmpty()&&e.isEmpty()&&this.m_cuts.length<3&&(this.m_cuts.length=0)}}const l=new class{getOperatorType(){return 10005}accelerateGeometry(t,e,n){return!1}canAccelerateGeometry(t){return!1}supportsCurves(){return!0}execute(t,e,n,r,s){return new h(t,e,n,r,s)}};function m(t,e,n){const r=l.execute(!0,t,e,n,null);return Array.from(r)}function f(){return l.supportsCurves()}},78125(t,e,n){n.r(e),n.d(e,{fromExtent:()=>d,fromGeometry:()=>p,fromMultipoint:()=>y,fromPoint:()=>x,fromPolygon:()=>v,fromPolyline:()=>M,fromPolylineUsingImportOperator:()=>C,fromSpatialReference:()=>_,getSpatialReference:()=>g,toExtent:()=>P,toGeometry:()=>E,toMultipoint:()=>b,toPoint:()=>w,toPolygon:()=>I,toPolyline:()=>A});var r=n(83661),s=n(55537),o=n(95213),i=n(88885),a=n(5443),u=n(48526),c=n(86738),h=n(39829),l=n(82799),m=(n(90293),n(83299));const f="_gxVersion";function g(t){return Array.isArray(t)?t[0].spatialReference:t.spatialReference}function p(t){switch(t.type){case"point":return x(t);case"multipoint":return y(t);case"polyline":return M(t);case"polygon":return v(t);case"extent":return d(t);default:throw new Error(`Unsupported geometry type: ${t.type}`)}}function d(t){if(!t.getCacheValue(f)){const e=new o.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(f,e)}return t.getCacheValue(f)}function y(t){if(!t.getCacheValue(f)){const e=new i.M,n=new o.P,r=t.points,s=t.hasM,a=t.hasZ,u=a?3:2;for(let t=0,o=r.length;t<o;t++){const o=r[t];n.setXYCoords(o[0],o[1]),a&&n.setZ(o[2]??0),s&&n.setM(o[u]??NaN),e.add(n)}t.setCacheValue(f,e)}return t.getCacheValue(f)}function x(t){if(!t.getCacheValue(f)){const e=new o.P;e.setXYCoords(t.x,t.y),t.hasM&&e.setM(t.m),t.hasZ&&e.setZ(t.z),t.setCacheValue(f,e)}return t.getCacheValue(f)}function v(t){if(!t.getCacheValue(f)){const{curveRings:e,hasM:n,hasZ:r,rings:s}=t,o=(0,m.fromGeometryToGXGeometry)({curveRings:e,hasM:n,hasZ:r,rings:s});t.setCacheValue(f,o)}return t.getCacheValue(f)}function M(t){if(!t.getCacheValue(f)){const{curvePaths:e,hasM:n,hasZ:r,paths:s}=t,o=(0,m.fromGeometryToGXGeometry)({curvePaths:e,hasM:n,hasZ:r,paths:s});t.setCacheValue(f,o)}return t.getCacheValue(f)}function C(t){if(!t.getCacheValue(f)){const{curvePaths:e,hasM:n,hasZ:r,paths:s}=t,o=(0,m.fromGeometryToGXGeometryUsingImportOperator)({curvePaths:e,hasM:n,hasZ:r,paths:s});t.setCacheValue(f,o)}return t.getCacheValue(f)}function _(t){return t.cache?(t.cache[f]??=(0,m.fromSpatialReference)(t),t.cache[f]):(0,m.fromSpatialReference)(t)}function E(t,e){if(t)switch(t.getGeometryType()){case s.G.enumPoint:return w(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 I(t,e)}return null}function P(t,e){if(t.isEmpty())return null;const n=new a.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(f,t),n}function b(t,e){if(t.isEmpty())return null;const n=t.getDescription(),r=n.hasM(),s=n.hasZ(),i=[],a=new o.P;for(let e=0,n=t.getPointCount();e<n;e++){t.getPointByVal(e,a);const n=[a.getX(),a.getY()];s&&n.push(a.getZ()),r&&n.push(a.getM()),i.push(n)}const c=new u.A({hasM:r,hasZ:s,points:i,spatialReference:e});return c.setCacheValue(f,t),c}function w(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(f,t),n}function I(t,e){if(t.isEmpty())return null;const n=h.A.fromJSON({...(0,m.toGeometry)(t,null),spatialReference:e});return n.setCacheValue(f,t),n}function A(t,e){if(t.isEmpty())return null;const n=l.A.fromJSON({...(0,m.toGeometry)(t,null),spatialReference:e});return n.setCacheValue(f,t),n}},4197(t,e,n){n.d(e,{Vj:()=>h,cj:()=>c,jh:()=>o,l5:()=>a,yH:()=>u});var r=n(34275),s=n(9093);function o(t){return t<=r.y9?new Array(t).fill(0):new Float64Array(t)}function i(t){return((0,r.iu)(t)?t.byteLength/8:t.length)<=r.y9?Array.from(t):new Float64Array(t)}function a(t,e,n){return Array.isArray(t)?t.slice(e,e+n):t.subarray(e,e+n)}function u(t,e){if(0===e.length)return i(t);if(0===t.length)return i(e);const n=o(t.length+e.length);for(let e=0;e<t.length;++e)n[e]=t[e];for(let r=0;r<e.length;++r)n[t.length+r]=e[r];return n}function c(t){return[...t]}function h(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:()=>v,DC:()=>l,Ej:()=>f,Ie:()=>y,Jt:()=>x,Ne:()=>g,RF:()=>h,aI:()=>C,fA:()=>i,gE:()=>u,hZ:()=>d,iT:()=>m,is:()=>M,qv:()=>_,vI:()=>p,vY:()=>a,v_:()=>E,vt:()=>o,w1:()=>c}),n(35522);var r=n(5443),s=(n(19419),n(4197));function o(t=E){return[t[0],t[1],t[2],t[3],t[4],t[5]]}function i(t,e,n,r,s,i,a=o()){return a[0]=t,a[1]=e,a[2]=n,a[3]=r,a[4]=s,a[5]=i,a}function a(t,e=o()){return function(t,e,n,r=o()){return d(r,_),function(t,e,n=0,r=e.length/3){let s=t[0],o=t[1],i=t[2],a=t[3],u=t[4],c=t[5];for(let t=0;t<r;t++)s=Math.min(s,e[n+3*t]),o=Math.min(o,e[n+3*t+1]),i=Math.min(i,e[n+3*t+2]),a=Math.max(a,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]=o,t[2]=i,t[3]=a,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,o,i,a,u]=t;return e[0]=n,e[1]=r,e[2]=o,e[3]=n,e[4]=r,e[5]=u,e[6]=n,e[7]=a,e[8]=o,e[9]=n,e[10]=a,e[11]=u,e[12]=i,e[13]=r,e[14]=o,e[15]=i,e[16]=r,e[17]=u,e[18]=i,e[19]=a,e[20]=o,e[21]=i,e[22]=a,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 m(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 f(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 p(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 d(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?d(t,_):o(_)}function x(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 v(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 M(t){return 6===t.length}function C(t,e,n){if(null==t||null==e)return t===e;if(!M(t)||!M(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 _=[1/0,1/0,1/0,-1/0,-1/0,-1/0],E=[0,0,0,0,0,0];o()},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 o=n-t,i=r-e;return new s([5],[t,e,o,0,0,i,-o,0,0,-i])}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],o=this.coords[r*e+1];for(let i=1;i<n;i+=1){const n=r*(e+i),a=this.coords[n],u=this.coords[n+1];t+=-.5*(a-s)*(u+o),s=a,o=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,o=this.coords.slice(0,r*n);return t?(t.set(o),new s(e,t,this.hasZ,this.hasM)):new s(e,Array.from(o),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)}}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1550,1666,1948,2260,3931,5611,6061,6312,7992,8125,9169,9285],{61691(t,e,n){n.d(e,{G:()=>r});class r{*[Symbol.iterator](){let t=this.next();for(;t;)yield t,t=this.next()}}},76061(t,e,n){n.d(e,{S:()=>s});var r=n(61691);class s extends r.G{m_aGeoms;m_iGeom=-1;constructor(t){super(),this.m_aGeoms=t?t.slice():[]}next(){if(this.m_iGeom<this.m_aGeoms.length-1){const t=this.m_aGeoms[++this.m_iGeom];return this.m_aGeoms[this.m_iGeom]=null,t}return null}tock(){return!1}getGeometryID(){return this.m_iGeom}getRank(){return 1}}},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,o,a,u,h,c,l,f,m,g,x){return[t,e,n,r,s,i,o,a,u,h,c,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 o(t,e,n){return[t,e,n]}function a(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 h(){return i(1,1,1)}function c(){return i(1,0,0)}function l(){return i(0,1,0)}function f(){return i(0,0,1)}n.d(e,{CN:()=>o,Cb:()=>y,Cw:()=>x,JP:()=>p,S:()=>h,Ul:()=>u,Un:()=>g,ci:()=>a,fA:()=>i,o8:()=>s,uY:()=>m,vt:()=>r});const m=[0,0,0],g=h(),x=c(),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:o,fromArray:a,fromValues:i,ones:h,unitX:c,unitY:l,unitZ:f,zeros:u},Symbol.toStringTag,{value:"Module"}))},35522(t,e,n){n.d(e,{$A:()=>I,Bw:()=>i,C:()=>o,Cc:()=>b,DI:()=>E,Il:()=>L,Io:()=>d,Ln:()=>y,Om:()=>P,Qr:()=>l,Re:()=>h,S8:()=>_,T9:()=>x,WQ:()=>u,Z0:()=>A,_S:()=>m,aI:()=>N,ei:()=>V,fw:()=>O,g7:()=>w,gL:()=>Z,hG:()=>M,hZ:()=>a,hs:()=>p,jb:()=>F,jk:()=>g,lo:()=>k,lw:()=>c,m3:()=>v,oW:()=>G,t2:()=>Y,tn:()=>f,uE:()=>B,xg:()=>z,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 o(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function a(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 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 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 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 I(t,e,n){const r=e[0],s=e[1],i=e[2],o=n[0],a=n[1],u=n[2];return t[0]=s*u-i*a,t[1]=i*o-r*u,t[2]=r*a-s*o,t}function b(t,e,n,r){const s=e[0],i=e[1],o=e[2];return t[0]=s+r*(n[0]-s),t[1]=i+r*(n[1]-i),t[2]=o+r*(n[2]-o),t}function A(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 V(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 Z(t,e,n){return O(t,e,n[0],n[1],n[2],n[3])}function O(t,e,n,r,s,i){const o=e[0],a=e[1],u=e[2],h=r*u-s*a,c=s*o-n*u,l=n*a-r*o,f=r*l-s*c,m=s*h-n*l,g=n*c-r*h,x=2*i;return t[0]=o+h*x+2*f,t[1]=a+c*x+2*m,t[2]=u+l*x+2*g,t}function w(t,e){_(S,t),_(R,e);const n=P(S,R);return n>1?0:n<-1?Math.PI:Math.acos(n)}const S=(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],o=e[0],a=e[1],u=e[2],h=(0,s.FD)();return Math.abs(n-o)<=h*Math.max(1,Math.abs(n),Math.abs(o))&&Math.abs(r-a)<=h*Math.max(1,Math.abs(r),Math.abs(a))&&Math.abs(i-u)<=h*Math.max(1,Math.abs(i),Math.abs(u))}function G(t,e,n){const r=n[0]-e[0],s=n[1]-e[1],i=n[2]-e[2];let o=r*r+s*s+i*i;return o>0?(o=1/Math.sqrt(o),t[0]=r*o,t[1]=s*o,t[2]=i*o,t):(t[0]=0,t[1]=0,t[2]=0,t)}const F=h,T=c,X=l,z=d,k=M,L=i,B=v;Object.freeze(Object.defineProperty({__proto__:null,abs:f,add:u,angle:w,bezier:function(t,e,n,r,s,i){const o=1-i,a=o*o,u=i*i,h=a*o,c=3*i*a,l=3*u*o,f=u*i;return t[0]=e[0]*h+n[0]*c+r[0]*l+s[0]*f,t[1]=e[1]*h+n[1]*c+r[1]*l+s[1]*f,t[2]=e[2]*h+n[2]*c+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:o,cross:I,crossAndNormalize:function(t,e,n){const r=e[0],s=e[1],i=e[2],o=n[0],a=n[1],u=n[2],h=s*u-i*a,c=i*o-r*u,l=r*a-s*o,f=Math.sqrt(h*h+c*c+l*l);return t[0]=h/f,t[1]=c/f,t[2]=l/f,t},direction:G,dist:z,distance:d,div:X,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 o=i*i,a=o*(2*i-3)+1,u=o*(i-2)+i,h=o*(i-1),c=o*(3-2*i);return t[0]=e[0]*a+n[0]*u+r[0]*h+s[0]*c,t[1]=e[1]*a+n[1]*u+r[1]*h+s[1]*c,t[2]=e[2]*a+n[2]*u+r[2]*h+s[2]*c,t},inverse:E,len:L,length:i,lerp:b,max:x,min:g,mul:T,multiply:c,negate:C,normalize:_,random:function(t,e=1){const n=s.Ov,r=2*n()*Math.PI,i=2*n()-1,o=Math.sqrt(1-i*i)*e;return t[0]=Math.cos(r)*o,t[1]=Math.sin(r)*o,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:a,sign:m,sqrDist:k,sqrLen:B,squaredDistance:M,squaredLength:v,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:F,subtract:h,transformMat3:V,transformMat4:A,transformQuat:Z,transformQuatValues:O},Symbol.toStringTag,{value:"Module"}))},69397(t,e,n){n.d(e,{Qf:()=>u,Qh:()=>o,RS:()=>s,Ul:()=>m,i5:()=>f,lM:()=>i,qK:()=>c});var r=n(34275);const s=16;function i(t){if(!t)return 0;let e=c;for(const n in t)t.hasOwnProperty(n)&&(e+=a(t[n],!1));return e}function o(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 h(t,8);let n=l;for(let r=0;r<e;r++)n+=a(t[r]);return n}(t);let e=c;for(const n in t)t.hasOwnProperty(n)&&(e+=a(t[n]));return e}function a(t,e=!0){switch(typeof t){case"object":return e?o(t):c;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)?h(e,s):0:0),0)}function h(t,e){return l+t.length*e}const c=32,l=16,f=145,m=64},87992(t,e,n){n.d(e,{JR:()=>I,ME:()=>E,MY:()=>b,NO:()=>C,Nh:()=>P,V2:()=>w,_s:()=>S,e6:()=>Y,gh:()=>_,tr:()=>G,uX:()=>p});var r=n(5482),s=n(69397),i=n(16930),o=(n(70328),n(19419)),a=n(60408),u=n(21325),h=n(513),c=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:o,partOffsets:a,partFlags:u,segmentFlags:h,segmentIndices:c,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=o,this.partOffsets=a,this.partFlags=u,this.segmentFlags=h,this.segmentIndices=c,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:o}=this,a=w(t,e,n,r,s,this.hasCurves(),i,o);a.spatialReference=this.spatialReference;const{vertexXY:u,vertexZ:h,vertexM:c}=this;if(a.vertexXY.set(u.subarray(0,2*e),0),a.vertexZ?.set(h.subarray(0,e),0),a.vertexM?.set(c.subarray(0,e),0),this.isMultipart()){const{partOffsets:t,partFlags:e}=this;a.partFlags.set(e.subarray(0,n+1)),a.partOffsets.set(t.subarray(0,n+1))}if(this.hasCurves()){const{segmentFlags:t,segmentIndices:n,segmentParams:r,segmentParamCount:s}=this;a.segmentFlags.set(t.subarray(0,e),0),a.segmentIndices.set(n.subarray(0,e),0),a.segmentParams.set(r.subarray(0,s),0)}return a}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=Z(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=Z(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++],o=e[n++],a=e[n++],u=e[n++];n++,n++;const h=e[n++],c=e[n++];if(!Boolean(4&r)&&1===i)return{c:[this.end,[h,c]]};const l=2&r?0:1,f=1&r?0:1;return{a:[this.end,[a,u],l,f,o,s,i]}}}function C(t,e){const n={stack:[],error:void 0,hasError:!1};try{return e??=(0,o.Ie)(),(0,r.mS)(n,new A(t,["vertexZ","vertexM","spatialReference"]),!1),(0,o.bx)(e,function(t){let e;const{vertexCount:n,vertexXY:s,vertexZ:i,vertexM:a}=t,u=V(t);if(t.hasCurves()){const n={stack:[],error:void 0,hasError:!1};try{(0,r.mS)(n,new A(t,["vertexZ","vertexM"]),!1);const s=(0,o.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,a,h,c]=s;e={xmin:i,ymin:a,xmax:h,ymax:c,spatialReference:u}}catch(t){n.error=t,n.hasError=!0}finally{(0,r.hk)(n)}}else{let t,r,i,o;t=r=1/0,i=o=-1/0;for(let e=0;e<n;++e){const n=s[2*e],a=s[2*e+1];t=Math.min(t,n),i=Math.max(i,n),r=Math.min(r,a),o=Math.max(o,a)}e={xmin:t,ymin:r,xmax:i,ymax:o,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(a){let t=1/0,n=-1/0;for(const e of a)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,a.fT)(t)){r="point";const{x:s,y:i,z:o,m:a}=t,u=[s,i];null!=o&&u.push(o),null!=a&&u.push(a),n=[[u]],e=1}else(0,a.U9)(t)?(r="multipoint",n=[t.points],e=t.points.length):(0,a.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,O(e[0],(0,f.yP)(e.at(-1)))&&--t),t),0));const s=w(r,e,r.includes("point")?0:n.length,(0,a.Pv)(t),(0,a.W0)(t),(0,f.Ed)(t)),{hasZ:i,hasM:o,vertexXY:u,vertexZ:h,vertexM:c}=s;function l(t){u[2*g]=t[0],u[2*g+1]=t[1],i&&(h[g]=t[2]),o&&(c[g]=t[m]),++g}s.spatialReference=t.spatialReference??void 0;const m=s.hasZ?3:2;let g=0;if(!s.isMultipart()){if(!i&&!o){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&&O(t[0],t.at(-1))&&--e,i||o)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*F;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=S(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=G(0,r,s,i,M),n=r.b[0]):n=r}x&&O(e,n)||l(n)}return s.partOffsets[y]=g,s}function _(t){const e=Z(t),{vertexCount:n,partCount:r,hasZ:s,hasM:i}=t,o=V(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:o}}let a=0;if("multipoint"===t.type){const t=[];for(;a<n;)t.push(e(a++));return{points:t,spatialReference:o,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(;a<r;)i.push(e(a++));u&&i.length>0&&i.push(i[0]),n.push(i)}return u?{rings:n,hasZ:s,hasM:i,spatialReference:o}:{paths:n,hasZ:s,hasM:i,spatialReference:o}}const h=new Array;for(const{segments:e,startVertex:n}of t.parts){const t=[n];for(const{curve:n}of e)t.push(n);h.push(t)}return u?{rings:[],curveRings:h,hasZ:s,hasM:i,spatialReference:o}:{paths:[],curvePaths:h,hasZ:s,hasM:i,spatialReference:o}}function P(t,{lengths:e,coords:n,hasZ:r,hasM:s},i){const o=t.includes("point")?0:e.length,a="polygon"===t,u="point"===t?1:e.reduce((t,e)=>t+e,0)-(a?o:0);r??=!1,s??=!1;const h=w(t,u,o,r,s,!1,0,0);if(h.spatialReference=i??void 0,!h.isMultipart()){for(let t=0,e=0;t<u;++t)h.vertexXY[2*t]=n[e++],h.vertexXY[2*t+1]=n[e++],r&&(h.vertexZ[t]=n[e++]),s&&(h.vertexM[t]=n[e++]);return h}const c=2+Number(r)+Number(s);let l=0,f=0;h.partOffsets[0]=0;for(const t of e){const e=h.partOffsets[f],i=e+t-Number(a);h.partOffsets[++f]=i;for(let t=e;t<i;++t)h.vertexXY[2*t]=n[l++],h.vertexXY[2*t+1]=n[l++],r&&(h.vertexZ[t]=n[l++]),s&&(h.vertexM[t]=n[l++]);a&&(l+=c)}return h}function I({type:t,vertexCount:e,vertexXY:n,vertexZ:r,vertexM:s,partCount:i,partOffsets:o,hasZ:a,hasM:u}){const h=new x.A([],[],a,u);i=Math.max(i,1);const c="polygon"===t;let l=0;for(let t=0;t<i;++t){const i=o?.[t+1]??e,f=h.coords.length;for(let t=l;t<i;++t)h.coords.push(n[2*t],n[2*t+1]),a&&h.coords.push(r[t]),u&&h.coords.push(s[t]);if(c){const t=l;h.coords.push(n[2*t],n[2*t+1]),a&&h.coords.push(r[t]),u&&h.coords.push(s[t])}h.lengths.push((h.coords.length-f)/h.stride),l=i}return"point"===t&&(h.lengths.length=0),h}function b(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 o=t.getLatestVerticalID();return(o<=0||o===i)&&(o=void 0),{wkid:n,wkt:e,latestWkid:r,vcsWkid:i,latestVcsWkid:o}}(t.getSpatialReference()),t=t.getGeometry()),new p({...t.toFlatGeometry(),spatialReference:e})}class A{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 V({spatialReference:t}){return t instanceof i.A?t.toJSON():t}function Z({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 O(t,e){return t.every((t,n)=>t===e[n])}function w(t,e,n,r,s,i,o,a){o??=0,a??=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:o,segmentCountBezier:a});let h=2*Float64Array.BYTES_PER_ELEMENT*e;r&&(h+=Float64Array.BYTES_PER_ELEMENT*e),s&&(h+=Float64Array.BYTES_PER_ELEMENT*e),u.isMultipart()&&(h+=(n+1)*Int32Array.BYTES_PER_ELEMENT,h+=(n+1)*Int8Array.BYTES_PER_ELEMENT),i&&(h+=e*Int8Array.BYTES_PER_ELEMENT,h+=e*Int32Array.BYTES_PER_ELEMENT,h+=u.segmentParamCount*Float64Array.BYTES_PER_ELEMENT);const c=new ArrayBuffer(h);let l=0;return u.vertexXY=new Float64Array(c,l,2*e),l+=u.vertexXY.byteLength,r&&(u.vertexZ=new Float64Array(c,l,e),l+=u.vertexZ.byteLength),s&&(u.vertexM=new Float64Array(c,l,e),l+=u.vertexM.byteLength),i&&(u.segmentParams=new Float64Array(c,l,u.segmentParamCount),l+=u.segmentParams.byteLength,u.segmentIndices=new Int32Array(c,l,e),u.segmentIndices.fill(T),l+=u.segmentIndices.byteLength),u.isMultipart()&&(u.partOffsets=new Int32Array(c,l,n+1),l+=u.partOffsets.byteLength,u.partFlags=new Int8Array(c,l,n+1),l+=u.partFlags.byteLength,"polygon"===u.type&&u.partFlags.subarray(0,n).fill(1)),i&&(u.segmentFlags=new Int8Array(c,l,e),u.segmentFlags.fill(1),l+=u.segmentFlags.byteLength),u}function S(t,e,{segmentFlags:n,segmentIndices:r,segmentParams:s},i,o){n[i]=4,r[i]=o;const[a,[u,h],c,l,f,m,x]=e.a;let p=4;l||(p|=1),c||(p|=2);const y=(0,g.SW)(t,e),[d,M]=(0,g.Uk)(y,.5);return s[o++]=p,s[o++]=m,s[o++]=x,s[o++]=f,s[o++]=u,s[o++]=h,s[o++]=y.u2-y.u1,s[o++]=y.u1,s[o++]=d,s[o++]=M,o}function R(t,e,{segmentFlags:n,segmentIndices:r,segmentParams:s},i,o){n[i]=4,r[i]=o;const a=(0,m.io)(t,e);return N(a,4,...(0,h.mq)(a,.5),s,o)}function Y(t,e,{segmentFlags:n,segmentIndices:r,segmentParams:s},i,o){return n[i]=4,r[i]=o,N((0,c.pM)(t,e),0,...e.c[1],s,o)}function N(t,e,n,r,s,i){const{cx:o,cy:a,thetaStart:u,thetaEnd:h,radius:c}=t;return u>h||(e|=1),Math.abs(h-u)<=Math.PI||(e|=2),s[i++]=e,s[i++]=c,s[i++]=1,s[i++]=0,s[i++]=o,s[i++]=a,s[i++]=h-u,s[i++]=u,s[i++]=n,s[i++]=r,i}function G(t,{b:[e,[n,r],[s,i]]},{segmentFlags:o,segmentIndices:a,segmentParams:u},h,c){return o[h]=2,a[h]=c,u[c++]=n,u[c++]=r,u[c++]=s,u[c++]=i,c}const F=1.61803,T=-1},50647(t,e,n){n.d(e,{execute:()=>h}),n(4576),n(76061);var r=n(61691),s=n(55537);class i extends r.G{m_inputGeometryCursor;m_transformation;m_index;constructor(t,e,n){super(),this.m_index=-1,this.m_transformation=e.clone(),this.m_inputGeometryCursor=t}next(){let t;if(t=this.m_inputGeometryCursor.next()){(0,s.c)(t),this.m_index=this.m_inputGeometryCursor.getGeometryID();const e=t.clone();return e.applyTransformation(this.m_transformation),e}return null}getGeometryID(){return this.m_index}tock(){return!0}getRank(){return 1}}const o=new class{getOperatorType(){return 10303}supportsCurves(){return!0}accelerateGeometry(t,e,n){return!1}canAccelerateGeometry(t){return!1}executeMany(t,e,n){return new i(t,e,n)}execute(t,e,n){const r=t.clone();return r.applyTransformation(e),r}};function a(t,e){return o.execute(t,e,null)}var u=n(78125);function h(t,e){const n=(0,u.getSpatialReference)(t);return(0,u.toGeometry)(a((0,u.fromGeometry)(t),e.transform),n)}o.supportsCurves()},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:()=>I,toPoint:()=>b,toPolygon:()=>A,toPolyline:()=>V});var r=n(83661),s=n(55537),i=n(95213),o=n(88885),a=n(5443),u=n(48526),h=n(86738),c=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 o.M,n=new i.P,r=t.points,s=t.hasM,a=t.hasZ,u=a?3:2;for(let t=0,i=r.length;t<i;t++){const i=r[t];n.setXYCoords(i[0],i[1]),a&&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 b(t,e);case s.G.enumEnvelope:return P(t,e);case s.G.enumMultiPoint:return I(t,e);case s.G.enumPolyline:return V(t,e);case s.G.enumPolygon:return A(t,e)}return null}function P(t,e){if(t.isEmpty())return null;const n=new a.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 I(t,e){if(t.isEmpty())return null;const n=t.getDescription(),r=n.hasM(),s=n.hasZ(),o=[],a=new i.P;for(let e=0,n=t.getPointCount();e<n;e++){t.getPointByVal(e,a);const n=[a.getX(),a.getY()];s&&n.push(a.getZ()),r&&n.push(a.getM()),o.push(n)}const h=new u.A({hasM:r,hasZ:s,points:o,spatialReference:e});return h.setCacheValue(m,t),h}function b(t,e){if(t instanceof r.P)return new h.A({x:t.x,y:t.y,spatialReference:e});if(t.isEmpty())return null;const n=new h.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 A(t,e){if(t.isEmpty())return null;const n=c.A.fromJSON({...(0,f.toGeometry)(t,null),spatialReference:e});return n.setCacheValue(m,t),n}function V(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:()=>c,cj:()=>h,jh:()=>i,l5:()=>a,yH:()=>u});var r=n(34275),s=n(9093);function i(t){return t<=r.y9?new Array(t).fill(0):new Float64Array(t)}function o(t){return((0,r.iu)(t)?t.byteLength/8:t.length)<=r.y9?Array.from(t):new Float64Array(t)}function a(t,e,n){return Array.isArray(t)?t.slice(e,e+n):t.subarray(e,e+n)}function u(t,e){if(0===e.length)return o(t);if(0===t.length)return o(e);const n=i(t.length+e.length);for(let e=0;e<t.length;++e)n[e]=t[e];for(let r=0;r<e.length;++r)n[t.length+r]=e[r];return n}function h(t){return[...t]}function c(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:()=>c,aI:()=>C,fA:()=>o,gE:()=>u,hZ:()=>p,iT:()=>f,is:()=>v,qv:()=>E,vI:()=>x,vY:()=>a,v_:()=>_,vt:()=>i,w1:()=>h}),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 o(t,e,n,r,s,o,a=i()){return a[0]=t,a[1]=e,a[2]=n,a[3]=r,a[4]=s,a[5]=o,a}function a(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],o=t[2],a=t[3],u=t[4],h=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]),o=Math.min(o,e[n+3*t+2]),a=Math.max(a,e[n+3*t]),u=Math.max(u,e[n+3*t+1]),h=Math.max(h,e[n+3*t+2]);t[0]=s,t[1]=i,t[2]=o,t[3]=a,t[4]=u,t[5]=h}(r,t,e,n),r}(t,0,t.length/3,e)}function u(t,e=(0,s.jh)(24)){const[n,r,i,o,a,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]=a,e[8]=i,e[9]=n,e[10]=a,e[11]=u,e[12]=o,e[13]=r,e[14]=i,e[15]=o,e[16]=r,e[17]=u,e[18]=o,e[19]=a,e[20]=i,e[21]=o,e[22]=a,e[23]=u,e}function h(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 c(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,o=r-e;return new s([5],[t,e,i,0,0,o,-i,0,0,-o])}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 o=1;o<n;o+=1){const n=r*(e+o),a=this.coords[n],u=this.coords[n+1];t+=-.5*(a-s)*(u+i),s=a,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 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3693],{85978(e,t,n){n.d(t,{A:()=>s});var r=n(87449),i=n(11221),a=n(33325);class s extends i.t1{constructor(e){super(),this.declaredClass="esri.layers.featureset.sources.Empty",this._maxProcessing=1e3,this._parent=e.parentfeatureset,this._databaseType=0}async _queryAll(){return i.An.features}async query(e){return i.An}async queryStat(e){return await this._manualStat(e.stat,e.field,e.limit??a.gO,e.abortSignal)}async canQueryAggregate(e){return!1}async queryAggregate(e){throw new r.dr("NeverReach")}async queryAttachments(){return[]}}},3693(e,t,n){n.r(t),n.d(t,{registerFunctions:()=>Ne});var r=n(52106),i=n(66131),a=n(47609),s=n(66395),o=n(59534),l=n(85935),u=n(93833),d=n(47423),c=n(93818),f=n(78878),p=n(80672),h=n(48938),m=n(87449),y=n(11221),g=n(33325),w=n(80609),F=n(1262),I=n(89696);class b{constructor(e){this.field=e,this.sqlRewritable=!1}postInitialization(e,t){}}class A extends b{constructor(e){super(e),this.sqlRewritable=!0}extractValue(e){return e.attributes[this.field.name]}rewriteSql(e){return{rewritten:this.sqlRewritable,where:e}}}class N extends b{constructor(e,t,n){super((0,g.ke)(e)),this.originalField=e,this.sqlRewritable=!0,this.field.name=t,this.field.alias=n}rewriteSql(e,t){return{rewritten:this.sqlRewritable,where:(0,w.bD)(e,this.field.name,this.originalField.name,t.getFieldsIndex())}}extractValue(e){return e.attributes[this.originalField.name]}}class S extends b{constructor(e,t,n){super(e),this.codefield=t,this._stringToCode=n,this._codeToString={};for(const e in n)this._codeToString[n[e]]=e;this.sqlRewritable=!0}static{this.BADNESS="_!!!_BAD_LKP_!!!!"}rewriteSql(e,t){const n=this.evaluateNodeToWhereClause(e.parseTree,0,this.field.name,this.codefield instanceof I.A?(0,w.YY)(this.codefield,0):this.codefield,e.parameters);return n.includes(S.BADNESS)?{rewritten:!1,where:e}:{rewritten:this.sqlRewritable,where:I.A.create(n,{fieldsIndex:t._parent.getFieldsIndex(),timeZone:t.dateFieldsTimeZoneDefaultUTC})}}evaluateNodeToWhereClause(e,t,n=null,r=null,i){switch(e.type){case"interval":return(0,w.oj)(this.evaluateNodeToWhereClause(e.value,t,n,r,i),e.qualifier,e.op);case"case-expression":{let r=" CASE ";"simple"===e.format&&(r+=this.evaluateNodeToWhereClause(e.operand,t,n,S.BADNESS,i));for(const a of e.clauses)r+=" WHEN "+this.evaluateNodeToWhereClause(a.operand,t,n,S.BADNESS,i)+" THEN "+this.evaluateNodeToWhereClause(a.value,t,n,S.BADNESS,i);return null!==e.else&&(r+=" ELSE "+this.evaluateNodeToWhereClause(e.else,t,n,S.BADNESS,i)),r+=" END ",r}case"parameter":{const n=i[e.value.toLowerCase()];return"string"==typeof n?"'"+n.toString().replaceAll("'","''")+"'":(0,g.$P)(n)||(0,g.Lk)(n)?(0,w.bm)(n,t):(0,g.eg)(n)?(0,w.F1)(n,t):(0,g.rX)(n)?(0,w.R8)(n,t):(0,g.f0)(n)?(0,w.Nf)(n,t):Array.isArray(n)?n.map(e=>"string"==typeof e?"'"+e.toString().replaceAll("'","''")+"'":(0,g.$P)(e)||(0,g.Lk)(e)?(0,w.bm)(e,t):(0,g.eg)(e)?(0,w.F1)(e,t):(0,g.rX)(e)?(0,w.R8)(e,t):(0,g.f0)(e)?(0,w.Nf)(e,t):e.toString()):n.toString()}case"expression-list":{const a=[];for(const s of e.value)a.push(this.evaluateNodeToWhereClause(s,t,n,r,i));return a}case"unary-expression":return" ( NOT "+this.evaluateNodeToWhereClause(e.expr,t,n,S.BADNESS,i)+" ) ";case"binary-expression":switch(e.operator){case"AND":return" ("+this.evaluateNodeToWhereClause(e.left,t,n,r,i)+" AND "+this.evaluateNodeToWhereClause(e.right,t,n,r,i)+") ";case"OR":return" ("+this.evaluateNodeToWhereClause(e.left,t,n,r,i)+" OR "+this.evaluateNodeToWhereClause(e.right,t,n,r,i)+") ";case"IS":if("null"!==e.right.type)throw new F.L("UnsupportedIsRhs");return" ("+this.evaluateNodeToWhereClause(e.left,t,n,r,i)+" IS NULL )";case"ISNOT":if("null"!==e.right.type)throw new F.L("UnsupportedIsRhs");return" ("+this.evaluateNodeToWhereClause(e.left,t,n,r,i)+" IS NOT NULL )";case"IN":{if("expression-list"===e.right.type){if("column-reference"===e.left.type&&e.left.column.toUpperCase()===this.field.name.toUpperCase()){const a=[];let s=!0;for(const t of e.right.value){if("string"!==t.type){s=!1;break}if(void 0===this._stringToCode[t.value]){s=!1;break}a.push(this._stringToCode[t.value].toString())}if(s)return" ("+this.evaluateNodeToWhereClause(e.left,t,n,r,i)+" IN ("+a.join(",")+")) "}const a=this.evaluateNodeToWhereClause(e.right,t,n,r,i);return" ("+this.evaluateNodeToWhereClause(e.left,t,n,r,i)+" IN ("+a.join(",")+")) "}const a=this.evaluateNodeToWhereClause(e.right,t,n,r,i);return Array.isArray(a)?" ("+this.evaluateNodeToWhereClause(e.left,t,n,r,i)+" IN ("+a.join(",")+")) ":" ("+this.evaluateNodeToWhereClause(e.left,t,n,r,i)+" IN ("+a+")) "}case"NOT IN":{if("expression-list"===e.right.type){if("column-reference"===e.left.type&&e.left.column.toUpperCase()===this.field.name.toUpperCase()){const a=[];let s=!0;for(const t of e.right.value){if("string"!==t.type){s=!1;break}if(void 0===this._stringToCode[t.value]){s=!1;break}a.push(this._stringToCode[t.value].toString())}if(s)return" ("+this.evaluateNodeToWhereClause(e.left,t,n,r,i)+" NOT IN ("+a.join(",")+")) "}const a=this.evaluateNodeToWhereClause(e.right,t,n,r,i);return" ("+this.evaluateNodeToWhereClause(e.left,t,n,r,i)+" NOT IN ("+a.join(",")+")) "}const a=this.evaluateNodeToWhereClause(e.right,t,n,r,i);return Array.isArray(a)?" ("+this.evaluateNodeToWhereClause(e.left,t,n,r,i)+" NOT IN ("+a.join(",")+")) ":" ("+this.evaluateNodeToWhereClause(e.left,t,n,r,i)+" NOT IN ("+a+")) "}case"BETWEEN":{const r=this.evaluateNodeToWhereClause(e.right,t,n,S.BADNESS,i);return" ("+this.evaluateNodeToWhereClause(e.left,t,n,S.BADNESS,i)+" BETWEEN "+r[0]+" AND "+r[1]+" ) "}case"NOTBETWEEN":{const r=this.evaluateNodeToWhereClause(e.right,t,n,S.BADNESS,i);return" ("+this.evaluateNodeToWhereClause(e.left,t,n,S.BADNESS,i)+" NOT BETWEEN "+r[0]+" AND "+r[1]+" ) "}case"LIKE":return""!==e.escape?" ("+this.evaluateNodeToWhereClause(e.left,t,n,S.BADNESS,i)+" LIKE "+this.evaluateNodeToWhereClause(e.right,t,n,S.BADNESS,i)+" ESCAPE '"+e.escape+"') ":" ("+this.evaluateNodeToWhereClause(e.left,t,n,S.BADNESS,i)+" LIKE "+this.evaluateNodeToWhereClause(e.right,t,n,S.BADNESS,i)+") ";case"NOT LIKE":return""!==e.escape?" ("+this.evaluateNodeToWhereClause(e.left,t,n,S.BADNESS,i)+" NOT LIKE "+this.evaluateNodeToWhereClause(e.right,t,n,S.BADNESS,i)+" ESCAPE '"+e.escape+"') ":" ("+this.evaluateNodeToWhereClause(e.left,t,n,S.BADNESS,i)+" NOT LIKE "+this.evaluateNodeToWhereClause(e.right,t,n,S.BADNESS,i)+") ";case"<>":case"=":if("column-reference"===e.left.type&&"string"===e.right.type){if(e.left.column.toUpperCase()===this.field.name.toUpperCase()&&void 0!==this._stringToCode[e.right.value.toString()])return" ("+r+" "+e.operator+" "+this._stringToCode[e.right.value.toString()].toString()+") "}else if("column-reference"===e.right.type&&"string"===e.left.type&&e.right.column.toUpperCase()===this.field.name.toUpperCase())return" ("+this._stringToCode[e.left.value.toString()].toString()+" "+e.operator+" "+r+") ";return" ("+this.evaluateNodeToWhereClause(e.left,t,n,S.BADNESS,i)+" "+e.operator+" "+this.evaluateNodeToWhereClause(e.right,t,n,S.BADNESS,i)+") ";case"<":case">":case">=":case"<=":case"*":case"-":case"+":case"/":case"||":return" ("+this.evaluateNodeToWhereClause(e.left,t,n,S.BADNESS,i)+" "+e.operator+" "+this.evaluateNodeToWhereClause(e.right,t,n,S.BADNESS,i)+") "}case"null":return"null";case"boolean":return!0===e.value?"1":"0";case"string":return"'"+e.value.toString().replaceAll("'","''")+"'";case"timestamp":return`timestamp '${e.value}'`;case"date":return`date '${e.value}'`;case"time":return`time '${e.value}'`;case"number":return e.value.toString();case"current-time":return(0,w.C6)(e.mode,t);case"current-user":return"CURRENT_USER";case"column-reference":return n&&n.toLowerCase()===e.column.toLowerCase()?"("+r+")":(0,w.Kb)(e);case"data-type":return e.value;case"function":{const r=this.evaluateNodeToWhereClause(e.args,t,n,S.BADNESS,i);return(0,w.F6)(e.name,r,t)}}throw new F.L("UnsupportedSyntax",{node:e.type})}extractValue(e){if(this.codefield instanceof I.A){const t=this.codefield.calculateValueCompiled(e);return this._codeToString[I.A.convertValueToStorageFormat(t)]}return this._codeToString[e.attributes[this.codefield]]}}class T extends b{constructor(e,t){super(e),this._sql=t}rewriteSql(e,t){return{rewritten:!0,where:(0,w.bD)(e,this.field.name,(0,w.YY)(this._sql,0),t.getFieldsIndex())}}extractValue(e){return I.A.convertValueToStorageFormat(this._sql.calculateValueCompiled(e),this.field.type)}}class _ extends y.t1{static findField(e,t){for(const n of e)if(n.name.toLowerCase()===t.toString().toLowerCase())return n;return null}constructor(e){super(),this.declaredClass="esri.arcade.featureset.actions.Adapted",this._maxProcessing=30,this._parent=e.parentfeatureset,this._adaptedFields=e.adaptedFields,this._extraFilter=e.extraFilter}_initialiseFeatureSet(){this.geometryType=this._parent.geometryType,this.objectIdField=this._parent.objectIdField,this.globalIdField=this._parent.globalIdField,this.spatialReference=this._parent.spatialReference,this.hasM=this._parent.hasM,this.hasZ=this._parent.hasZ,this.typeIdField=this._parent.typeIdField,this.types=this._parent.types,this.fields=[];for(const e of this._adaptedFields)e.postInitialization(this,this._parent),this.fields.push(e.field)}async _queryAll(){return await this._ensureLoaded(),this._extraFilter?(await this.query({abortSignal:h._})).features:this._calculateFields(await this._parent.queryAll(h._))}async query(e){let t=e.where??null;const n=this._reformulateWithoutAdaptions(t),r=n.cannot;t=n.where;let i=!n.cannot,a=!1,s=e.orderBy;if(null!=s){a=!0;const e=[];for(const t of this._adaptedFields)if(!(t instanceof A)&&!0===s.scanForField(t.field.name)){if(!(t instanceof N)){s=null,a=!1,i=!1;break}e.push({field:t.field.name,newfield:t.originalField.name})}s&&e.length>0&&(s=s.replaceFields(e))}null!=t?null!=this._extraFilter&&(t=(0,w.kg)(this._extraFilter,t)):t=this._extraFilter,await this._ensureLoaded();const o=await this._parent.query({...e,where:t,orderBy:s,limit:i?e.limit:null});return(0,m.dZ)(e.abortSignal),r?{...o,filterApplied:!1,ordered:!!a&&o.ordered,features:this._calculateFields(o.features)}:{...o,ordered:!!a&&o.ordered,features:this._calculateFields(o.features)}}async*_calculateFields(e){for await(const t of e)yield t.map(e=>{const t={};for(const n of this._adaptedFields)t[n.field.name]=n.extractValue(e);return{attributes:t,geometry:e.geometry}})}async queryStat(e){let t=!1,n=e.field,r=this._reformulateWithoutAdaptions(n);t=r.cannot,n=r.where;let i=e.where??null;if(r=this._reformulateWithoutAdaptions(i),t=t||r.cannot,i=r.where,null!=i?null!==this._extraFilter&&(i=(0,w.kg)(this._extraFilter,i)):i=this._extraFilter,t)return null==i&&null==e.spatialFilter?this._manualStat(e.stat,n,e.limit??g.gO,e.abortSignal):{calculated:!1};const a=await this._parent.queryStat({...e,field:n,where:i});return a.calculated?a:null==i&&null==e.spatialFilter?this._manualStat(e.stat,n,e.limit??g.gO,e.abortSignal):{calculated:!1}}async canQueryAggregate(e){for(const t of e.groupBy)for(const e of this._adaptedFields)if(t.toLowerCase()===e.field.name.toLowerCase()&&!(e instanceof A))return!1;const t=[];for(const n of e.statistics)if(null!==n.workingexpr){const e=this._reformulateWithoutAdaptions(n.workingexpr);if(e.cannot)return!1;const r=n.clone();r.workingexpr=e.where,t.push(r)}else t.push(n);let n=e.where??null;const r=this._reformulateWithoutAdaptions(n);return!r.cannot&&(n=r.where,null!==n?null!==this._extraFilter&&(n=(0,w.kg)(this._extraFilter,n)):n=this._extraFilter,this._parent.canQueryAggregate({...e,statistics:t,where:n}))}async queryAggregate(e){const t=[];for(const n of e.statistics)if(null!==n.workingexpr){const e=this._reformulateWithoutAdaptions(n.workingexpr);if(e.cannot)throw new m.dr("NeverReach");const r=n.clone();r.workingexpr=e.where,t.push(r)}else t.push(n);let n=e.where??null;const r=this._reformulateWithoutAdaptions(n);if(r.cannot)throw new m.dr("NeverReach");return n=r.where,null!==n?null!==this._extraFilter&&(n=(0,w.kg)(this._extraFilter,n)):n=this._extraFilter,this._parent.queryAggregate({...e,statistics:t,where:n})}_reformulateWithoutAdaptions(e){const t={cannot:!1,where:e};if(null!==e)for(const n of this._adaptedFields)if(!0===(0,w.Ju)(e,n.field.name)){const r=n.rewriteSql(e,this);if(!0!==r.rewritten){t.cannot=!0,t.where=null;break}t.where=r.where}return t}}var C=n(35704),v=n(4576);class x extends y.t1{constructor(e){super(),this.declaredClass="esri.arcade.featureset.actions.OrderBy",this._maxProcessing=100,this._parent=e.parentfeatureset,this._orderByClause=e.orderbyclause}async _queryAll(){return(await this.query({abortSignal:h._})).features}async query(e){if(null!=e.orderBy)return this._parent.query(e);await this._ensureLoaded();const t=await this._parent.query({...e,orderBy:this._orderByClause});return(0,m.dZ)(e.abortSignal),!1===t.ordered?{...t,ordered:!0,features:null!=e.limit&&e.limit<=5e3?this._topNFeatures(t.features,e.limit,e.abortSignal):this._sortFeatures(t.features,e.abortSignal)}:t}async*_sortFeatures(e,t){const n=[];for await(const r of e)n.push(r),await(0,f.a5)(),(0,m.dZ)(t);const r=n.flat();this._orderByClause.order(r),yield*(0,v.Ho)(r,this._maxQueryRate())}async*_topNFeatures(e,t,n){const r=[],i=this._orderByClause.toComparator();for await(const a of e){for(const e of a)(0,v.HX)(r,e,t,i);await(0,f.a5)(),(0,m.dZ)(n)}yield*(0,v.Ho)(r,this._maxQueryRate())}async queryStat(e){const t=await this._parent.queryStat(e);return t.calculated?t:null==e.where&&null==e.spatialFilter?this._manualStat(e.stat,e.field,e.limit??g.gO,e.abortSignal):{calculated:!1}}async canQueryAggregate(e){return this._parent.canQueryAggregate(e)}async queryAggregate(e){return this._parent.queryAggregate(e)}getFieldsIndex(){return this._parent.getFieldsIndex()}}function D(e,t){return e===t?0:null===e?-1:null===t?1:e<t?-1:1}class E{constructor(e){const t=e.split(",");this._fields=[],this._directions=[];for(let e=0;e<t.length;e++){const n=t[e].match(/\S+/g);this._fields.push(n[0]),2===n.length?"asc"===n[1].toLowerCase()?this._directions.push(1):this._directions.push(0):this._directions.push(1)}}toOrderByFields(){return this._fields.map((e,t)=>e+(1===this._directions[t]?" ASC":" DESC"))}order(e){e.sort(this.toComparator())}toComparator(){return(e,t)=>{for(let n=0;n<this._fields.length;n++){const r=this.featureValue(e,this._fields[n],n),i=this.featureValue(t,this._fields[n],n);let a=0;if(a=1===this._directions[n]?D(r,i):-1*D(r,i),0!==a)return a}return 0}}scanForField(e){for(let t=0;t<this._fields.length;t++)if(this._fields[t].toLowerCase().trim()===e.toLowerCase().trim())return!0;return!1}replaceFields(e){let t="";for(let n=0;n<this._fields.length;n++){0!==n&&(t+=",");let r=this._fields[n];for(const t of e)if(r.toLowerCase()===t.field.toLowerCase()){r=t.newfield;break}t+=r,1===this._directions[n]?t+=" ASC":t+=" DESC"}return new E(t)}featureValue(e,t,n){const r=e.attributes[t];if(void 0!==r)return r;for(const r in e.attributes)if(t.toLowerCase()===r.toLowerCase())return this._fields[n]=r,e.attributes[r];return null}}class k{constructor(){this.field="",this.tofieldname="",this.typeofstat="MIN",this.workingexpr=null}clone(){const e=new k;return e.field=this.field,e.tofieldname=this.tofieldname,e.typeofstat=this.typeofstat,e.workingexpr=this.workingexpr,e}static parseStatField(e,t,n,r){const i=new k;i.field=e;const a=I.A.create(t,{fieldsIndex:n,timeZone:r}),s=function(e){if("function"===e.parseTree.type){if(0===e.parseTree.args.value.length)return{name:e.parseTree.name,expr:null};if(e.parseTree.args.value.length>1)throw new F.L("MissingStatisticParameters");const t=I.A.create((0,w.Mi)(e.parseTree.args.value[0],0,e.parameters),{fieldsIndex:e.fieldsIndex,timeZone:e.timeZone,currentUser:e.currentUser});return{name:e.parseTree.name,expr:t}}return null}(a);if(null===s)throw new F.L("UnsupportedSqlFunction",{function:""});const o=s.name.toUpperCase().trim();if("MIN"===o){if(i.typeofstat="MIN",i.workingexpr=s.expr,null===a)throw new F.L("InvalidFunctionParameters",{function:"min"})}else if("MAX"===o){if(i.typeofstat="MAX",i.workingexpr=s.expr,null===a)throw new F.L("InvalidFunctionParameters",{function:"max"})}else if("COUNT"===o)i.typeofstat="COUNT",i.workingexpr=s.expr;else if("STDEV"===o){if(i.typeofstat="STDDEV",i.workingexpr=s.expr,null===a)throw new F.L("InvalidFunctionParameters",{function:"stdev"})}else if("SUM"===o){if(i.typeofstat="SUM",i.workingexpr=s.expr,null===a)throw new F.L("InvalidFunctionParameters",{function:"sum"})}else if("MEAN"===o){if(i.typeofstat="AVG",i.workingexpr=s.expr,null===a)throw new F.L("InvalidFunctionParameters",{function:o})}else if("AVG"===o){if(i.typeofstat="AVG",i.workingexpr=s.expr,null===a)throw new F.L("InvalidFunctionParameters",{function:"avg"})}else{if("VAR"!==o)throw new F.L("UnsupportedSqlFunction",{function:o});if(i.typeofstat="VAR",i.workingexpr=s.expr,null===a)throw new F.L("InvalidFunctionParameters",{function:"var"})}return i}toStatisticsName(){switch(this.typeofstat.toUpperCase()){case"MIN":return"min";case"MAX":return"max";case"SUM":return"sum";case"COUNT":default:return"count";case"VAR":return"var";case"STDDEV":return"stddev";case"AVG":return"avg"}}}var L=n(80200),U=n(74639),Z=n(44729),$=n(55612),j=n(15032),B=n(20437);const M=new o.b(["MIN","MAX","VAR","STDDEV","COUNT","SUM","AVG"],[["VARIANCE","VAR"],["AVERAGE","AVG"],["MEAN","AVG"],["STDEV","STDDEV"]]);class W extends y.t1{constructor(e){super(),this.declaredClass="esri.arcade.featureset.actions.Aggregate",this._decodedStatsFields=[],this._decodedGroupByFields=[],this._canDoSimpleGroupBy=!0,this._physicalGroupByFields=[],this.objectIdField="ROW__ID",this._adaptedFields=[],this._uniqueIds=1,this._maxQuery=10,this._maxProcessing=10,this._parent=e.parentfeatureset,this._config=e}isTable(){return!0}_nextUniqueName(e){for(;1===e["T"+this._uniqueIds.toString()];)this._uniqueIds++;const t="T"+this._uniqueIds.toString();return e[t]=1,t}_convertToEsriFieldType(e){return e}_initialiseFeatureSet(){const e=this._parent.getFieldsIndex();this.objectIdField="ROW__ID",this.globalIdField="";let t=!1,n=1;for(;!1===t;){let e=!1;for(const t of this._config.groupbyfields)if(t.name.toLowerCase()===this.objectIdField.toLowerCase()){e=!0;break}if(!1===e)for(const t of this._config.statsfields)if(t.name.toLowerCase()===this.objectIdField.toLowerCase()){e=!0;break}!1===e?t=!0:(this.objectIdField="ROW__ID"+n.toString(),n++)}for(const t of this._config.statsfields){const n=new k;n.field=t.name,n.tofieldname=t.name,n.workingexpr=t.expression instanceof I.A?t.expression:I.A.create(t.expression,{fieldsIndex:e,timeZone:this.dateFieldsTimeZoneDefaultUTC}),n.typeofstat=M.lookup(t.statistic)??"COUNT",this._decodedStatsFields.push(n)}this._decodedGroupByFields=[];for(const t of this._config.groupbyfields){const n={name:t.name,singlefield:null,tofieldname:t.name,expression:t.expression instanceof I.A?t.expression:I.A.create(t.expression,{fieldsIndex:e,timeZone:this.dateFieldsTimeZoneDefaultUTC}),sqlType:null};this._decodedGroupByFields.push(n)}const r={};this.geometryType=this._parent.geometryType,this.spatialReference=this._parent.spatialReference,this.hasM=this._parent.hasM,this.hasZ=this._parent.hasZ,this.typeIdField="";for(const e of this._parent.fields)r[e.name.toUpperCase()]=1;this.types=null,this.subtypes=null,this.subtypeField="",this.fields=[];const i=new k;i.field=this._nextUniqueName(r),i.tofieldname=this.objectIdField,i.workingexpr=I.A.create(this._parent.objectIdField,{fieldsIndex:this._parent.getFieldsIndex(),timeZone:this.dateFieldsTimeZoneDefaultUTC}),i.typeofstat="MIN",this._decodedStatsFields.push(i);for(const e of this._decodedGroupByFields){const t=new B.A;if(e.name=this._nextUniqueName(r),t.name=e.tofieldname,t.alias=t.name,(0,w.DA)(e.expression)){const n=this._parent.getField((0,w.YY)(e.expression,0));if(!n)throw new m.dr("AggregationFieldNotFound");e.name=n.name,e.singlefield=n.name,this._physicalGroupByFields.push(n.name),t.type=n.type,e.sqlType=n.type}else{t.type=this._convertToEsriFieldType((0,w.IY)(e.expression,this._parent.fields));const n=new B.A;n.name=e.name,n.alias=n.name,this._physicalGroupByFields.push(e.name),this._adaptedFields.push(new T(n,e.expression)),this._canDoSimpleGroupBy=!1,e.sqlType=t.type}this.fields.push(t)}if(this._adaptedFields.length>0)for(const e of this._parent.fields)this._adaptedFields.push(new A(e));for(const e of this._decodedStatsFields){const t=new B.A;let n=null;e.field=this._nextUniqueName(r),t.name=e.tofieldname,t.alias=t.name;const i=null!==e.workingexpr&&(0,w.DA)(e.workingexpr)?(0,w.YY)(e.workingexpr,0):"";switch(e.typeofstat){case"SUM":if(""!==i){if(n=this._parent.getField(i),!n)throw new m.dr("AggregationFieldNotFound");t.type=n.type}else t.type="double";break;case"MIN":case"MAX":if(""!==i){if(n=this._parent.getField(i),!n)throw new m.dr("AggregationFieldNotFound");t.type=n.type}else t.type="double";break;case"COUNT":t.type="integer";break;case"STDDEV":case"VAR":case"AVG":if(""!==i&&(n=this._parent.getField(i),!n))throw new m.dr("AggregationFieldNotFound");t.type="double"}this.fields.push(t)}}async _queryAll(){return(await this.query({abortSignal:h._})).features}async query(e){if(null!=e.spatialFilter)return y.An;const t={ordered:!1,nowhereclause:!1};await this._ensureLoaded();let n=e.where;if(null!=n)for(const e of this._decodedStatsFields)if(!0===(0,w.Ju)(n,e.tofieldname)){t.nowhereclause=!0,n=null;break}let r=e.orderBy;if(null!=r){t.ordered=!0;for(const e of this._decodedStatsFields)if(!0===r.scanForField(e.tofieldname)){r=null,t.ordered=!1;break}if(null!==r)for(const e of this._decodedGroupByFields)if(null===e.singlefield&&!0===r.scanForField(e.tofieldname)){r=null,t.ordered=!1;break}}if(!1!==this._canDoSimpleGroupBy&&await this._parent.canQueryAggregate({groupBy:this._physicalGroupByFields,statistics:this._decodedStatsFields,where:null,spatialFilter:null,abortSignal:e.abortSignal})){const i=await this._parent.queryAggregate({groupBy:this._physicalGroupByFields,statistics:this._decodedStatsFields,where:n?this._reformulateWhereClauseWithoutGroupByFields(n):null,spatialFilter:null,orderBy:r?this._reformulateOrderClauseWithoutGroupByFields(r):null,abortSignal:e.abortSignal});return(0,m.dZ)(e.abortSignal),{...i,filterApplied:!t.nowhereclause&&i.filterApplied,ordered:!0===t.ordered&&i.ordered,features:this._fixAggregateAttributeNames(i.features)}}const i=this._adaptedFields.length>0?new _({parentfeatureset:this._parent,adaptedFields:this._adaptedFields,extraFilter:null}):this._parent;if(!0===t.nowhereclause){const t=new x({parentfeatureset:i,orderbyclause:new E(this._physicalGroupByFields.join(",")+","+this._parent.objectIdField+" ASC")});return{filterApplied:!1,spatialFilterApplied:!1,ordered:!1,features:this._aggregateSortedFeatureGroups((await t.query({abortSignal:e.abortSignal})).features,this._maxQuery,e.abortSignal)}}let a=i;null!=n&&(a=new C.A({parentfeatureset:a,whereclause:this._reformulateWhereClauseWithoutGroupByFields(n)}));const s=new x({parentfeatureset:a,orderbyclause:new E(this._physicalGroupByFields.join(",")+","+this._parent.objectIdField+" ASC")});return{filterApplied:!1,spatialFilterApplied:!1,ordered:!1,features:this._aggregateSortedFeatureGroups((await s.query({abortSignal:e.abortSignal})).features,this._maxQuery,e.abortSignal)}}async*_fixAggregateAttributeNames(e){for await(const t of e)yield t.map(e=>{const t={geometry:e.geometry,attributes:{}},n={};for(const t in e.attributes)n[t.toLowerCase()]=e.attributes[t];for(const e of this._decodedGroupByFields)t.attributes[e.tofieldname]=n[e.name.toLowerCase()];for(const e of this._decodedStatsFields)t.attributes[e.tofieldname]=n[e.field.toLowerCase()];return t})}async*_aggregateSortedFeatureGroups(e,t,n){let r=null,i=[];for await(const a of e){await(0,f.a5)(),(0,m.dZ)(n);for(const e of a){const t=this._generateAggregateHash(e);null==r?r={features:[e],id:t}:t!==r.id?(i.push(this._calculateAndAppendAggregateItem(r)),r={features:[e],id:t}):r.features.push(e)}i.length>=t&&(yield i,i=[])}null!=r&&(i.push(this._calculateAndAppendAggregateItem(r)),yield i)}async queryStat(e){return{calculated:!1}}async canQueryAggregate(e){return!1}async queryAggregate(e){throw new m.dr("NeverReach")}_reformulateWhereClauseWithoutStatsFields(e){for(const t of this._decodedStatsFields)e=(0,w.bD)(e,t.tofieldname,(0,w.YY)(t.workingexpr,0),this._parent.getFieldsIndex());return e}_reformulateWhereClauseWithoutGroupByFields(e){for(const t of this._decodedGroupByFields)t.tofieldname!==t.name&&(e=(0,w.bD)(e,t.tofieldname,(0,w.YY)(t.expression,0),this._parent.getFieldsIndex()));return e}_reformulateOrderClauseWithoutGroupByFields(e){const t=[];for(const e of this._decodedGroupByFields)e.tofieldname!==e.name&&t.push({field:e.tofieldname,newfield:e.name});return t.length>0?e.replaceFields(t):e}_calculateFieldStat(e,t,n){const r=[];for(const n of e.features)if(null!==t.workingexpr){const e=t.workingexpr.calculateValue(n);null!==e&&(e instanceof Z.n||e instanceof j.k?r.push(e.toNumber()):e instanceof $.g?r.push(e.toMilliseconds()):r.push(e))}else r.push(null);n.attributes[t.tofieldname]=(0,U.s)(t.typeofstat,[r])}_calculateAndAppendAggregateItem(e){const t={attributes:{}};for(const n of this._decodedGroupByFields){const r=n.singlefield?e.features[0].attributes[n.singlefield]:I.A.convertValueToStorageFormat(n.expression.calculateValue(e.features[0]),n.sqlType);t.attributes[n.tofieldname]=r}for(const n of this._decodedStatsFields)this._calculateFieldStat(e,n,t);return t}_generateAggregateHash(e){let t="";for(const n of this._decodedGroupByFields){const r=n.singlefield?e.attributes[n.singlefield]:n.expression.calculateValue(e);t+=null==r?":":":"+r.toString()}return(0,L.d)(t,L.T.String)}async getFeatureByObjectId(){throw new m.dr("NotImplemented")}}async function*R(e,t){let n=t;for await(const t of e)if(n>=t.length?(n-=t.length,yield t):(yield t.slice(0,n),n=0),n<=0)break}class q extends y.t1{constructor(e){super(),this.declaredClass="esri.arcade.featureset.actions.Top",this._maxProcessing=100,this._parent=e.parentfeatureset,this._limit=e.topnum}async _queryAll(){return(await this.query({abortSignal:h._})).features}async query(e){const t=null!=e.limit&&null==e.where&&null==e.spatialFilter&&null==e.orderBy?Math.min(e.limit,this._limit):this._limit;await this._ensureLoaded();const{features:n}=await this._parent.query({limit:t,abortSignal:e.abortSignal});return{filterApplied:null==e.where,spatialFilterApplied:null==e.spatialFilter,ordered:!1,features:R(n,t)}}async queryStat(e){return{calculated:!1}}async canQueryAggregate(e){return!1}async queryAggregate(e){throw new m.dr("NeverReach")}getFieldsIndex(){return this._parent.getFieldsIndex()}}var P=n(85978),O=n(30235),V=n(334),G=n(17676),K=n(53781),z=n(11254),H=n(51447),Q=n(53966),J=n(66552);new J.J({Clean:"clean",Dirty:"dirty",Invalid:"invalid",Deleted:"deleted"}),new J.J({Physical:"physical",Virtual:"virtual"}),new J.J({consumers:"consumers",providers:"providers","consumers and providers":"consumers-and-providers",none:"none"}),new J.J({"Start and End":"start-and-end",Start:"start",Midspan:"midspan",End:"end"}),new J.J({Available:"available",Consumed:"consumed",Reserved:"reserved"}),new J.J({startingPoint:"starting-point",barrier:"barrier",stoppingPoint:"stopping-point"}),new J.J({connected:"connected",upstream:"upstream",downstream:"downstream",shortestPath:"shortest-path",subnetwork:"subnetwork",subnetworkController:"subnetwork-controller",loops:"loops",isolation:"isolation",path:"path",circuit:"circuit"});const Y="{00000000-0000-0000-0000-000000000000}",X=new J.J({junctionJunctionConnectivity:"junction-junction-connectivity",connectivity:"connectivity",attachment:"attachment",containment:"containment",junctionEdgeFromConnectivity:"junction-edge-from-connectivity",junctionEdgeMidspanConnectivity:"junction-edge-midspan-connectivity",junctionEdgeToConnectivity:"junction-edge-to-connectivity"});new J.J({normal:"normal",rebuild:"rebuild",forceRebuild:"force-rebuild"});var ee=n(2272),te=n(5482),ne=n(25482),re=n(91429),ie=n(82799);let ae=class extends ne.o{constructor(e){super(e),this.type="networkElement",this.assetGroupCode=null,this.assetTypeCode=null,this.globalId=null,this.networkSourceId=null,this.objectId=null,this.positionFrom=null,this.positionTo=null,this.terminalId=null,this.flowDirection=null}};(0,te.Cg)([(0,re.MZ)({json:{write:!1}})],ae.prototype,"type",void 0),(0,te.Cg)([(0,re.MZ)({type:Number,json:{write:!0}})],ae.prototype,"assetGroupCode",void 0),(0,te.Cg)([(0,re.MZ)({type:Number,json:{write:!0}})],ae.prototype,"assetTypeCode",void 0),(0,te.Cg)([(0,re.MZ)({type:String,json:{write:!0}})],ae.prototype,"globalId",void 0),(0,te.Cg)([(0,re.MZ)({type:Number,json:{write:!0}})],ae.prototype,"networkSourceId",void 0),(0,te.Cg)([(0,re.MZ)({type:Number,json:{write:!0}})],ae.prototype,"objectId",void 0),(0,te.Cg)([(0,re.MZ)({type:Number,json:{write:!0}})],ae.prototype,"positionFrom",void 0),(0,te.Cg)([(0,re.MZ)({type:Number,json:{write:!0}})],ae.prototype,"positionTo",void 0),(0,te.Cg)([(0,re.MZ)({type:Number,json:{write:!0}})],ae.prototype,"terminalId",void 0),(0,te.Cg)([(0,re.MZ)({type:String,json:{write:!0}})],ae.prototype,"flowDirection",void 0),ae=(0,te.Cg)([(0,re.$K)("esri.rest.networks.support.NetworkElement")],ae);let se=class extends ae{constructor(e){super(e),this.type="telecomNetworkElement",this.firstUnit=null,this.lastUnit=null,this.terminalId=null}};(0,te.Cg)([(0,re.MZ)({json:{write:!1}})],se.prototype,"type",void 0),(0,te.Cg)([(0,re.MZ)({json:{write:!0}})],se.prototype,"firstUnit",void 0),(0,te.Cg)([(0,re.MZ)({json:{write:!0}})],se.prototype,"lastUnit",void 0),(0,te.Cg)([(0,re.MZ)({readOnly:!0})],se.prototype,"terminalId",void 0),se=(0,te.Cg)([(0,re.$K)("esri.rest.networks.support.TelecomNetworkElement")],se);var oe=n(36005),le=n(43937);let ue=class extends ne.o{constructor(e){super(e),this.globalId=null,this.associationType=null,this.fromNetworkElement=null,this.toNetworkElement=null,this.geometry=null,this.errorMessage=null,this.percentAlong=null,this.errorCode=null,this.isContentVisible=null,this.status=null}readFromNetworkElement(e,t){return t.fromFirstUnit||t.fromLastUnit?new se({globalId:t.fromGlobalId,networkSourceId:t.fromNetworkSourceId,firstUnit:t.fromFirstUnit,lastUnit:t.fromLastUnit}):new ae({globalId:t.fromGlobalId,networkSourceId:t.fromNetworkSourceId,terminalId:t.fromTerminalId})}writeFromNetworkElement(e,t){if(e&&(t.fromGlobalId=e.globalId,t.fromNetworkSourceId=e.networkSourceId,t.fromTerminalId=e.terminalId,"telecomNetworkElement"===e.type)){const n=e;t.fromFirstUnit=n.firstUnit,t.fromLastUnit=n.lastUnit}}readToNetworkElement(e,t){return t.toFirstUnit||t.toLastUnit?new se({globalId:t.toGlobalId,networkSourceId:t.toNetworkSourceId,firstUnit:t.toFirstUnit,lastUnit:t.toLastUnit}):new ae({globalId:t.toGlobalId,networkSourceId:t.toNetworkSourceId,terminalId:t.toTerminalId})}writeToNetworkElement(e,t){if(e&&(t.toGlobalId=e.globalId,t.toNetworkSourceId=e.networkSourceId,t.toTerminalId=e.terminalId,"telecomNetworkElement"===e.type)){const n=e;t.toFirstUnit=n.firstUnit,t.toLastUnit=n.lastUnit}}equals(e){if(this.globalId===Y&&e.globalId===Y){function t(e,t){return e.networkSourceId===t.networkSourceId&&e.globalId===t.globalId&&e.terminalId===t.terminalId&&e.firstUnit===t.firstUnit&&e.lastUnit===t.lastUnit}const n=this.fromNetworkElement,r=this.toNetworkElement,i=e.fromNetworkElement,a=e.toNetworkElement,s=t(n,i),o=t(r,a);return s&&o&&this.associationType===e.associationType}return null!=this.globalId&&null!=e.globalId&&this.globalId===e.globalId}};(0,te.Cg)([(0,re.MZ)({type:String,json:{write:!0}})],ue.prototype,"globalId",void 0),(0,te.Cg)([(0,re.MZ)({type:X.apiValues,json:{type:X.jsonValues,read:X.read,write:X.write}})],ue.prototype,"associationType",void 0),(0,te.Cg)([(0,re.MZ)({type:ae,json:{write:{target:{fromGlobalId:{type:String},fromNetworkSourceId:{type:Number},fromTerminalId:{type:Number},fromFirstUnit:{type:Number},fromLastUnit:{type:Number}}},read:{source:["fromGlobalId","fromNetworkSourceId","fromTerminalId","fromFirstUnit","fromLastUnit"]}}})],ue.prototype,"fromNetworkElement",void 0),(0,te.Cg)([(0,oe.w)("fromNetworkElement")],ue.prototype,"readFromNetworkElement",null),(0,te.Cg)([(0,le.K)("fromNetworkElement")],ue.prototype,"writeFromNetworkElement",null),(0,te.Cg)([(0,re.MZ)({type:ae,json:{write:{target:{toGlobalId:{type:String},toNetworkSourceId:{type:Number},toTerminalId:{type:Number},toFirstUnit:{type:Number},toLastUnit:{type:Number}}},read:{source:["toGlobalId","toNetworkSourceId","toTerminalId","toFirstUnit","toLastUnit"]}}})],ue.prototype,"toNetworkElement",void 0),(0,te.Cg)([(0,oe.w)("toNetworkElement")],ue.prototype,"readToNetworkElement",null),(0,te.Cg)([(0,le.K)("toNetworkElement")],ue.prototype,"writeToNetworkElement",null),(0,te.Cg)([(0,re.MZ)({type:ie.A,json:{write:!0}})],ue.prototype,"geometry",void 0),(0,te.Cg)([(0,re.MZ)({type:String,json:{write:!0}})],ue.prototype,"errorMessage",void 0),(0,te.Cg)([(0,re.MZ)({type:Number,json:{write:!0}})],ue.prototype,"percentAlong",void 0),(0,te.Cg)([(0,re.MZ)({type:Number,json:{write:!0}})],ue.prototype,"errorCode",void 0),(0,te.Cg)([(0,re.MZ)({type:Boolean,json:{write:!0}})],ue.prototype,"isContentVisible",void 0),(0,te.Cg)([(0,re.MZ)({type:Number,json:{write:!0}})],ue.prototype,"status",void 0),ue=(0,te.Cg)([(0,re.$K)("esri.rest.networks.support.Association")],ue);const de=ue;let ce=class extends ne.o{constructor(e){super(e),this.associations=[]}};function fe(e){const{returnDeletes:t,elements:n,gdbVersion:r,moment:i}=e.toJSON();return{returnDeletes:t,elements:JSON.stringify(n.map(e=>({globalId:e.globalId,networkSourceId:e.networkSourceId,terminalId:e.terminalId}))),types:JSON.stringify(e.types.map(e=>X.toJSON(e))).replaceAll('"connectivity"','"junctionJunctionConnectivity"'),gdbVersion:r,moment:i??Date.now()}}(0,te.Cg)([(0,re.MZ)({type:[de],json:{write:!0}})],ce.prototype,"associations",void 0),ce=(0,te.Cg)([(0,re.$K)("esri.rest.networks.support.QueryAssociationsResult")],ce);var pe,he=n(56507);let me=pe=class extends ne.o{static from(e){return(0,he.PZ)(pe,e)}constructor(e){super(e),this.returnDeletes=!1,this.elements=[],this.types=[],this.gdbVersion=null,this.moment=null}};(0,te.Cg)([(0,re.MZ)({type:Boolean,json:{write:!0}})],me.prototype,"returnDeletes",void 0),(0,te.Cg)([(0,re.MZ)({type:[ae],json:{write:!0}})],me.prototype,"elements",void 0),(0,te.Cg)([(0,re.MZ)({type:[X.apiValues],json:{type:X.jsonValues,read:X.read,write:X.write}})],me.prototype,"types",void 0),(0,te.Cg)([(0,re.MZ)({type:String,json:{write:!0}})],me.prototype,"gdbVersion",void 0),(0,te.Cg)([(0,re.MZ)({type:Date,json:{type:Number,write:{writer:(e,t)=>{t.moment=e?.getTime()}}}})],me.prototype,"moment",void 0),me=pe=(0,te.Cg)([(0,re.$K)("esri.rest.networks.support.QueryAssociationsParameters")],me);var ye=n(54218);function ge(e,t,n){const r=e.getVariables();if(r.length>0){const i={};for(const e of r)i[e]=t.evaluateIdentifier(n,{name:e});e.parameters=i}return e}function we(e,t,n=null){for(const n in e)if(n.toLowerCase()===t.toLowerCase())return e[n];return n}function Fe(e){if(null===e)return null;const t={type:we(e,"type",""),name:we(e,"name","")};if("range"===t.type)t.range=we(e,"range",[]);else{t.codedValues=[];for(const n of we(e,"codedValues",[]))t.codedValues.push({name:we(n,"name",""),code:we(n,"code",null)})}return t}function Ie(e){if(null===e)return null;const t={},n=we(e,"wkt");null!==n&&(t.wkt=n);const r=we(e,"wkid");return null!==r&&(t.wkid=r),t}function be(e){if(null===e)return null;const t={hasZ:we(e,"hasz",!1),hasM:we(e,"hasm",!1)},n=we(e,"spatialreference");null!=n&&(t.spatialReference=Ie(n));const r=we(e,"x",null);if(null!==r)return t.x=r,t.y=we(e,"y",null),t.hasZ&&(t.z=we(e,"z",null)),t.hasM&&(t.m=we(e,"m",null)),t;const i=we(e,"rings",null);if(null!==i)return t.rings=i,t;const a=we(e,"paths",null);if(null!==a)return t.paths=a,t;const s=we(e,"points",null);if(null!==s)return t.points=s,t;for(const n of["xmin","xmax","ymin","ymax","zmin","zmax","mmin","mmax"]){const r=we(e,n,null);null!==r&&(t[n]=r)}return t}function Ae(e){return"utc"===e?.toLowerCase()?"UTC":"unknown"===e?.toLowerCase()?"Unknown":e}function Ne(e){if("async"===e.mode){e.functions.timezone=function(t,n){return e.standardFunctionAsync(t,n,async(e,r,a)=>{if((0,f.B)(a,1,2,n),(0,f.g)(a[0]))return"Unknown";if((0,f.f)(a[0]))return"Unknown";if((0,f.m)(a[0])){if(await a[0].load(),1===a.length||null===a[1])return a[0].datesInUnknownTimezone?Ae("unknown"):Ae(a[0].dateFieldsTimeZone);if(!(a[1]instanceof s.A)||!1===a[1].hasField("type"))throw new l.D$("InvalidParameter",n);const e=a[1].field("type");if(!1===(0,ye.Kg)(e))throw new l.D$("InvalidParameter",n);switch((0,f.s)(e).toLowerCase()){case"preferredtimezone":return Ae(a[0].preferredTimeZone);case"editfieldsinfo":return Ae(a[0].editFieldsInfo?.timeZone??null);case"timeinfo":return Ae(a[0].timeInfo?.timeZone??null);case"field":if(a[1].hasField("fieldname")&&(0,ye.Kg)(a[1].field("fieldname")))return Ae(a[0].fieldTimeZone((0,f.s)(a[1].field("fieldname"))))}throw new l.D$("InvalidParameter",n)}const o=(0,f.U)(a[0],(0,f.P)(t));if(null===o)return null;const u=o.timeZone;return"system"===u?i.lY.systemTimeZoneCanonicalName:"utc"===u.toLowerCase()?"UTC":"unknown"===u.toLowerCase()?"Unknown":u})},e.functions.sqltimestamp=function(t,n){return e.standardFunctionAsync(t,n,async(e,t,r)=>{(0,f.B)(r,1,3,n);const i=r[0];if((0,f.e)(i)){if(1===r.length)return i.toSQLWithKeyword();if(2===r.length)return i.changeTimeZone((0,f.s)(r[1])).toSQLWithKeyword();throw new l.D$("InvalidParameter",n)}if((0,f.f)(i))return i.toSQLWithKeyword();if((0,f.m)(i)){if(3!==r.length)throw new l.D$("InvalidParameter",n);await i.load();const e=(0,f.s)(r[1]);if((0,f.f)(r[2]))return r[2].toSQLWithKeyword();if(!1===(0,f.e)(r[2]))throw new l.D$("InvalidParameter",n);const t=i.fieldTimeZone(e);return null==t?r[2].toSQLWithKeyword():r[2].changeTimeZone(t).toSQLWithKeyword()}throw new l.D$("InvalidParameter",n)})},e.signatures.push({name:"sqltimestamp",min:2,max:4}),e.functions.featuresetbyid=function(t,n){return e.standardFunctionAsync(t,n,(e,t,r)=>{if((0,f.B)(r,2,4,n),(0,f.l)(r[0])){const e=(0,f.s)(r[1]);let t=(0,f.O)(r[2],null);const i=(0,f.N)((0,f.O)(r[3],!0));if(null===t&&(t=["*"]),!1===(0,ye.cy)(t))throw new l.D$("InvalidParameter",n);return r[0].featureSetById(e,i,t)}throw new l.D$("InvalidParameter",n)})},e.signatures.push({name:"featuresetbyid",min:2,max:4});const t=new o.b(["datasource","parent","root"]);e.functions.getfeatureset=function(n,r){return e.standardFunctionAsync(n,r,async(e,i,a)=>{if((0,f.B)(a,1,2,r),(0,f.k)(a[0])){const e=null==a[1]?"datasource":t.lookup((0,f.s)(a[1]));return(0,d.convertToFeatureSet)(a[0].fullSchema(),e,n.lrucache,n.interceptor,n.spatialReference)}throw new l.D$("InvalidParameter",r)})},e.signatures.push({name:"getfeatureset",min:1,max:2}),e.functions.featuresetbyportalitem=function(t,n){return e.standardFunctionAsync(t,n,(e,r,i)=>{if((0,f.B)(i,2,5,n),null===i[0])throw new l.D$("PortalRequired",n);if(i[0]instanceof a.A){const e=(0,f.s)(i[1]),r=(0,f.s)(i[2]);let a=(0,f.O)(i[3],null);const s=(0,f.N)((0,f.O)(i[4],!0));if(null===a&&(a=["*"]),!1===(0,ye.cy)(a))throw new l.D$("InvalidParameter",n);const o=(0,p.RI)(t,i[0]);return(0,d.constructFeatureSetFromPortalItem)(e,r,t.spatialReference,a,s,o,t.lrucache,t.interceptor)}if(!1===(0,ye.Kg)(i[0]))throw new l.D$("PortalRequired",n);const s=(0,f.s)(i[0]),o=(0,f.s)(i[1]);let u=(0,f.O)(i[2],null);const c=(0,f.N)((0,f.O)(i[3],!0));if(null===u&&(u=["*"]),!1===(0,ye.cy)(u))throw new l.D$("InvalidParameter",n);return(0,d.constructFeatureSetFromPortalItem)(s,o,t.spatialReference,u,c,(0,p.Iq)(t),t.lrucache,t.interceptor)})},e.signatures.push({name:"featuresetbyportalitem",min:2,max:5}),e.functions.featuresetbyname=function(t,n){return e.standardFunctionAsync(t,n,(e,t,r)=>{if((0,f.B)(r,2,4,n),(0,f.l)(r[0])){const e=(0,f.s)(r[1]);let t=(0,f.O)(r[2],null);const i=(0,f.N)((0,f.O)(r[3],!0));if(null===t&&(t=["*"]),!1===(0,ye.cy)(t))throw new l.D$("InvalidParameter",n);return r[0].featureSetByName(e,i,t)}throw new l.D$("InvalidParameter",n)})},e.signatures.push({name:"featuresetbyname",min:2,max:4}),e.functions.featureset=function(t,n){return e.standardFunction(t,n,(e,r,i)=>{(0,f.B)(i,1,1,n);const a={layerDefinition:{geometryType:"",objectIdField:"",globalIdField:"",typeIdField:"",hasM:!1,hasZ:!1,fields:[]},featureSet:{geometryType:"",features:[]}};if((0,ye.Kg)(i[0])){const e=JSON.parse(i[0]);void 0!==e.layerDefinition?(a.layerDefinition=e.layerDefinition,a.featureSet=e.featureSet,e.layerDefinition.spatialReference&&(a.layerDefinition.spatialReference=e.layerDefinition.spatialReference)):(a.featureSet.features=e.features,a.featureSet.geometryType=e.geometryType,a.layerDefinition.geometryType=a.featureSet.geometryType,a.layerDefinition.objectIdField=e.objectIdFieldName??"",a.layerDefinition.typeIdField=e.typeIdFieldName,a.layerDefinition.globalIdField=e.globalIdFieldName,a.layerDefinition.fields=e.fields,e.spatialReference&&(a.layerDefinition.spatialReference=e.spatialReference))}else{if(!(i[0]instanceof s.A))throw new l.D$("InvalidParameter",n);{const e=JSON.parse(i[0].castToText(!0)),t=we(e,"layerdefinition");if(null!==t){a.layerDefinition.geometryType=we(t,"geometrytype",""),a.featureSet.geometryType=a.layerDefinition.geometryType,a.layerDefinition.globalIdField=we(t,"globalidfield",""),a.layerDefinition.objectIdField=we(t,"objectidfield",""),a.layerDefinition.typeIdField=we(t,"typeidfield",""),a.layerDefinition.hasZ=!0===we(t,"hasz",!1),a.layerDefinition.hasM=!0===we(t,"hasm",!1);const n=we(t,"spatialreference");n&&(a.layerDefinition.spatialReference=Ie(n));const r=[];for(const e of we(t,"fields",[])){const t={name:we(e,"name",""),alias:we(e,"alias",""),type:we(e,"type",""),nullable:we(e,"nullable",!0),editable:we(e,"editable",!0),length:we(e,"length",null),domain:Fe(we(e,"domain"))};r.push(t)}a.layerDefinition.fields=r;const i=we(e,"featureset");if(i){const e={};for(const t of r)e[t.name.toLowerCase()]=t.name;for(const t of we(i,"features",[])){const n={},r=we(t,"attributes",{});for(const t in r)n[e[t.toLowerCase()]]=r[t];a.featureSet.features.push({attributes:n,geometry:be(we(t,"geometry"))})}}}else{a.layerDefinition.hasZ=!0===we(e,"hasz",!1),a.layerDefinition.hasM=!0===we(e,"hasm",!1),a.layerDefinition.geometryType=we(e,"geometrytype",""),a.featureSet.geometryType=a.layerDefinition.geometryType,a.layerDefinition.objectIdField=we(e,"objectidfieldname",""),a.layerDefinition.typeIdField=we(e,"typeidfieldname","");const t=we(e,"spatialreference");t&&(a.layerDefinition.spatialReference=Ie(t));const r=[],i=we(e,"fields",null);if(!(0,ye.cy)(i))throw new l.D$("InvalidParameter",n);for(const e of i){const t={name:we(e,"name",""),alias:we(e,"alias",""),type:we(e,"type",""),nullable:we(e,"nullable",!0),editable:we(e,"editable",!0),length:we(e,"length",null),domain:Fe(we(e,"domain"))};r.push(t)}a.layerDefinition.fields=r;const s={};for(const e of r)s[e.name.toLowerCase()]=e.name;let o=we(e,"features",null);if((0,ye.cy)(o))for(const e of o){const t={},n=we(e,"attributes",{});for(const e in n)t[s[e.toLowerCase()]]=n[e];a.featureSet.features.push({attributes:t,geometry:be(we(e,"geometry",null))})}else o=null,a.featureSet.features=o}}}if(!1===function(e){return!!e.layerDefinition&&!!e.featureSet&&!1!==function(e){for(const t of["",null,"esriGeometryNull","esriGeometryPoint","esriGeometryPolyline","esriGeometryPolygon","esriGeometryMultipoint","esriGeometryEnvelope"])if(t===e)return!0;return!1}(e.layerDefinition.geometryType)&&!1!==(0,ye.cy)(e.layerDefinition.fields)&&!1!==(0,ye.cy)(e.featureSet.features)}(a))throw new l.D$("InvalidParameter",n);return a.layerDefinition.geometryType||(a.layerDefinition.geometryType="esriGeometryNull"),O.A.create(a,t.spatialReference)})},e.signatures.push({name:"featureset",min:1,max:1}),e.functions.filter=function(t,n){return e.standardFunctionAsync(t,n,async(r,i,a)=>{if((0,f.B)(a,2,2,n),(0,ye.cy)(a[0])||(0,f.j)(a[0])){const e=[];let r,i=a[0];if(i instanceof c.A&&(i=i.toArray()),!(0,f.i)(a[1]))throw new l.D$("InvalidParameter",n);r=a[1].createFunction(t);for(const t of i){const n=r(t);(0,G.$X)(n)?!0===await n&&e.push(t):!0===n&&e.push(t)}return e}if((0,f.m)(a[0])){const n=await a[0].load(),r=I.A.create(a[1],{fieldsIndex:n.getFieldsIndex(),timeZone:n.dateFieldsTimeZoneDefaultUTC}),i=r.getVariables();if(i.length>0){const n={};for(const r of i)n[r]=e.evaluateIdentifier(t,{name:r});r.parameters=n}return new C.A({parentfeatureset:a[0],whereclause:r})}throw new l.D$("InvalidParameter",n)})},e.signatures.push({name:"filter",min:2,max:2}),e.functions.orderby=function(t,n){return e.standardFunctionAsync(t,n,async(e,t,r)=>{if((0,f.B)(r,2,2,n),(0,f.m)(r[0])){const e=new E(r[1]);return new x({parentfeatureset:r[0],orderbyclause:e})}throw new l.D$("InvalidParameter",n)})},e.signatures.push({name:"orderby",min:2,max:2}),e.functions.top=function(t,n){return e.standardFunctionAsync(t,n,async(e,t,r)=>{if((0,f.B)(r,2,2,n),(0,f.m)(r[0]))return new q({parentfeatureset:r[0],topnum:r[1]});if((0,ye.cy)(r[0]))return(0,f.r)(r[1])>=r[0].length?r[0].slice():r[0].slice(0,(0,f.r)(r[1]));if((0,f.j)(r[0]))return(0,f.r)(r[1])>=r[0].length()?r[0].slice():r[0].slice(0,(0,f.r)(r[1]));throw new l.D$("InvalidParameter",n)})},e.signatures.push({name:"top",min:2,max:2}),e.functions.first=function(t,n){return e.standardFunctionAsync(t,n,async(e,r,i)=>{if((0,f.B)(i,1,1,n),(0,f.m)(i[0])){const n=await i[0].first(e.abortSignal);if(null!==n){const e=u.Xj.createFromGraphicLikeObject(n.geometry,n.attributes,i[0],t.timeZone);return e._underlyingGraphic=n,e}return n}return(0,ye.cy)(i[0])?0===i[0].length?null:i[0][0]:(0,f.j)(i[0])?0===i[0].length()?null:i[0].get(0):null})},e.signatures.push({name:"first",min:1,max:1}),e.functions.attachments=function(t,n){return e.standardFunctionAsync(t,n,async(e,r,i)=>{(0,f.B)(i,1,2,n);const a={minsize:-1,maxsize:-1,types:null,returnMetadata:!1};if(i.length>1)if(i[1]instanceof s.A){if(i[1].hasField("minsize")&&(a.minsize=(0,f.r)(i[1].field("minsize"))),i[1].hasField("metadata")&&(a.returnMetadata=(0,f.N)(i[1].field("metadata"))),i[1].hasField("maxsize")&&(a.maxsize=(0,f.r)(i[1].field("maxsize"))),i[1].hasField("types")){const e=(0,f.S)(i[1].field("types"),!1);e.length>0&&(a.types=e)}}else if(null!==i[1])throw new l.D$("InvalidParameter",n);if((0,f.k)(i[0])){const e=i[0]._layer;let n;if((0,f.m)(e))n=e;else{if(null==e||!(0,g.eB)(e))return[];n=(0,d.constructFeatureSet)(e,t.spatialReference,["*"],!0,t.lrucache,t.interceptor)}return await n.load(),n.queryAttachments(i[0].field(n.objectIdField),a.minsize,a.maxsize,a.types,a.returnMetadata)}if(null===i[0])return[];throw new l.D$("InvalidParameter",n)})},e.signatures.push({name:"attachments",min:1,max:2}),e.functions.featuresetbyrelationshipname=function(t,n){return e.standardFunctionAsync(t,n,async(e,r,i)=>{(0,f.B)(i,2,4,n);const a=i[0],s=(0,f.s)(i[1]);let o=(0,f.O)(i[2],null);const u=(0,f.N)((0,f.O)(i[3],!0));if(null===o&&(o=["*"]),!1===(0,ye.cy)(o))throw new l.D$("InvalidParameter",n);if(null===i[0])return null;if(!(0,f.k)(i[0]))throw new l.D$("InvalidParameter",n);const c=a._layer;let p;if((0,f.m)(c))p=c;else{if(null==c||!(0,g.eB)(c))return null;p=(0,d.constructFeatureSet)(c,t.spatialReference,["*"],!0,t.lrucache,t.interceptor)}p=await p.load();const h=p.relationshipMetadata().filter(e=>e.name===s);if(0===h.length)return null;if(void 0!==h[0].relationshipTableId&&null!==h[0].relationshipTableId&&h[0].relationshipTableId>-1)return(0,d.constructFeatureSetFromRelationship)(p,h[0],a.field(p.objectIdField),p.spatialReference,o,u,t.lrucache,t.interceptor);let m=p.serviceUrl();if(!m)return null;m=m.endsWith("/")?m+h[0].relatedTableId.toString():m+"/"+h[0].relatedTableId.toString();const y=await(0,d.constructFeatureSetFromUrl)(m,p.spatialReference,o,u,t.lrucache,t.interceptor);await y.load();let w=y.relationshipMetadata();if(w=w.filter(e=>e.id===h[0].id),!1===a.hasField(h[0].keyField)||null===a.field(h[0].keyField)){const e=await p.getFeatureByObjectId(a.field(p.objectIdField),[h[0].keyField]);if(e){const t=I.A.create(w[0].keyField+"= @id",{fieldsIndex:y.getFieldsIndex(),timeZone:y.dateFieldsTimeZoneDefaultUTC});return t.parameters={id:e.attributes[h[0].keyField]},new C.A({parentfeatureset:y,whereclause:t})}return new P.A({parentfeatureset:y})}const F=I.A.create(w[0].keyField+"= @id",{fieldsIndex:y.getFieldsIndex(),timeZone:y.dateFieldsTimeZoneDefaultUTC});return F.parameters={id:a.field(h[0].keyField)},new C.A({parentfeatureset:y,whereclause:F})})},e.signatures.push({name:"featuresetbyrelationshipname",min:2,max:4}),e.functions.featuresetbyassociation=function(t,n){return e.standardFunctionAsync(t,n,async(e,i,a)=>{(0,f.B)(a,2,3,n);const s=a[0],u=(0,o.B)((0,f.s)((0,f.O)(a[1],""))),c=(0,ye.Kg)(a[2])?(0,f.s)(a[2]):null;if(null===a[0])return null;if(!(0,f.k)(a[0]))throw new l.D$("InvalidParameter",n);const p=s._layer;let h;if((0,f.m)(p))h=p;else{if(null==p||!(0,g.eB)(p))return null;h=(0,d.constructFeatureSet)(p,t.spatialReference,["*"],!0,t.lrucache,t.interceptor)}await h.load();const m=h.serviceUrl(),y=await(0,d.constructAssociationMetaDataFeatureSetFromUrl)(m,t.spatialReference,!0);if(y.unVersion>=8)return await async function(e,t,n,i,a,s){const o=await e.getFeatureSetInfo();if(null===(o?.layerId??null))return null;if(!a.layerIdLookup.get(o.layerId))return null;const u=e.serviceUrl().replace(/\/FeatureServer/i,"/UtilityNetworkServer"),c=[];switch(n){case"connected":c.push("connectivity"),c.push("junction-edge-from-connectivity"),c.push("junction-edge-to-connectivity"),c.push("junction-edge-midspan-connectivity"),c.push("junction-junction-connectivity");break;case"container":case"content":c.push("containment");break;case"structure":case"attached":c.push("attachment");break;case"junctionedge":c.push("junction-edge-from-connectivity"),c.push("junction-edge-to-connectivity");break;case"midspan":c.push("junction-edge-midspan-connectivity");break;default:throw new l.D$("InvalidParameter",s)}let f=null,p=!1;if(null!==i&&""!==i&&void 0!==i){for(const e of a.terminals)e.terminalName===i&&(f=e.terminalId);null===f&&(p=!0)}const h=[];if(!p){const i=new ae({globalId:t.field(e.globalIdField),networkSourceId:a.layerIdLookup.get(o.layerId).sourceId,...f?{terminalId:f}:""}),s=await async function(e,t){const n=(0,ee.Dl)(e),r={...fe(t),f:"json"},i=(0,ee.lF)({...n.query,...r}),a=(0,ee.jV)(i,{method:"post"}),s=`${n.path}/associations/query`,{data:o}=await(0,z.A)(s,a),l=ce.fromJSON(o);return t.types.includes("connectivity")&&(0,H.Lx)(Q.A.getLogger("esri/rest/networks/support/QueryAssociationsParameters"),"types",{replacement:"Please use 'junction-junction-connectivity' instead of 'connectivity'.",see:"https://arcg.is/11Tr8a#types",version:"4.29",warnOnce:!0}),l}(u,new me({types:c,elements:[i]}));let l=0;for(const e of s.associations){let t=null,s="",o="";if(e.fromNetworkElement?.globalId===i.globalId?(t=e.toNetworkElement,o="to"):e.toNetworkElement?.globalId===i.globalId&&(t=e.fromNetworkElement,o="from"),!t)continue;switch(n){case"attached":if("attachment"!==e.associationType)continue;if("to"!==o)continue;break;case"structure":if("attachment"!==e.associationType)continue;if("from"!==o)continue;break;case"container":if("containment"!==e.associationType)continue;if("from"!==o)continue;break;case"content":if("containment"!==e.associationType)continue;if("to"!==o)continue;break;case"connected":break;case"junctionedge":"junction-edge-to-connectivity"===e.associationType?s="to":"junction-edge-from-connectivity"===e.associationType&&(s="from");break;case"midspan":if("junction-edge-midspan-connectivity"!==e.associationType)continue}const u=a.sourceIdLookup.get(t.networkSourceId)?.className??"";h.push(new r.A({geometry:null,attributes:{objectId:l++,globalId:t.globalId,percentAlong:e.percentAlong??0,isContentVisible:e.isContentVisible?0:1,className:u,side:s}}))}}const m=new K.default({source:h,geometryType:null,objectIdField:"objectId",globalIdField:"globalId",fields:[new B.A({name:"objectId",alias:"objectId",type:"oid"}),new B.A({name:"globalId",alias:"globalId",type:"global-id"}),new B.A({name:"percentAlong",alias:"percentAlong",type:"double"}),new B.A({name:"side",alias:"side",type:"string"}),new B.A({name:"isContentVisible",alias:"isContentVisible",type:"integer"}),new B.A({name:"className",alias:"className",type:"string"})]});return(0,d.constructFeatureSet)(m)}(h,s,u,c,y,n);const w=y.associations;if(null==w)return null;let F=null,b=null,C=!1;if(null!==c&&""!==c&&void 0!==c){for(const e of y.terminals)e.terminalName===c&&(b=e.terminalId);null===b&&(C=!0)}const v=w.getFieldsIndex(),x=v.get("TOGLOBALID").name,D=v.get("FROMGLOBALID").name,E=v.get("TOTERMINALID").name,k=v.get("FROMTERMINALID").name,L=v.get("FROMNETWORKSOURCEID").name,U=v.get("TONETWORKSOURCEID").name,Z=v.get("ASSOCIATIONTYPE").name,$=v.get("ISCONTENTVISIBLE").name,j=v.get("OBJECTID").name;for(const e of h.fields)if("global-id"===e.type){F=s.field(e.name);break}let M=null,W=new T(new B.A({name:"percentalong",alias:"percentalong",type:"double"}),I.A.create("0",{fieldsIndex:w.getFieldsIndex(),timeZone:w.dateFieldsTimeZoneDefaultUTC})),R=new T(new B.A({name:"side",alias:"side",type:"string"}),I.A.create("''",{fieldsIndex:w.getFieldsIndex(),timeZone:w.dateFieldsTimeZoneDefaultUTC}));const q="globalid",P="globalId",O={};for(const e in y.lkp)O[e]=y.lkp[e].sourceId;const V=new S(new B.A({name:"classname",alias:"classname",type:"string"}),null,O);let G="";switch(u){case"midspan":{G=`((${x}='${F}') OR ( ${D}='${F}')) AND (${Z} IN (5))`,V.codefield=I.A.create(`CASE WHEN (${x}='${F}') THEN ${L} ELSE ${U} END`,{fieldsIndex:w.getFieldsIndex(),timeZone:w.dateFieldsTimeZoneDefaultUTC});const e=(0,g.ke)(_.findField(w.fields,D));e.name=q,e.alias=q,M=new T(e,I.A.create(`CASE WHEN (${D}='${F}') THEN ${x} ELSE ${D} END`,{fieldsIndex:w.getFieldsIndex(),timeZone:w.dateFieldsTimeZoneDefaultUTC})),W=y.unVersion>=4?new A(_.findField(w.fields,v.get("PERCENTALONG").name)):new T(new B.A({name:"percentalong",alias:"percentalong",type:"double"}),I.A.create("0",{fieldsIndex:w.getFieldsIndex(),timeZone:w.dateFieldsTimeZoneDefaultUTC}));break}case"junctionedge":{G=`((${x}='${F}') OR ( ${D}='${F}')) AND (${Z} IN (4,6))`,V.codefield=I.A.create(`CASE WHEN (${x}='${F}') THEN ${L} ELSE ${U} END`,{fieldsIndex:w.getFieldsIndex(),timeZone:w.dateFieldsTimeZoneDefaultUTC});const e=(0,g.ke)(_.findField(w.fields,D));e.name=q,e.alias=q,M=new T(e,I.A.create(`CASE WHEN (${D}='${F}') THEN ${x} ELSE ${D} END`,{fieldsIndex:w.getFieldsIndex(),timeZone:w.dateFieldsTimeZoneDefaultUTC})),R=new T(new B.A({name:"side",alias:"side",type:"string"}),I.A.create(`CASE WHEN (${Z}=4) THEN 'from' ELSE 'to' END`,{fieldsIndex:w.getFieldsIndex(),timeZone:w.dateFieldsTimeZoneDefaultUTC}));break}case"connected":{let e=`${x}='@T'`,t=`${D}='@T'`;null!==b&&(e+=` AND ${E}=@A`,t+=` AND ${k}=@A`),G="(("+e+") OR ("+t+"))",G=(0,f.a1)(G,"@T",F??""),e=(0,f.a1)(e,"@T",F??""),null!==b&&(e=(0,f.a1)(e,"@A",b.toString()),G=(0,f.a1)(G,"@A",b.toString())),V.codefield=I.A.create("CASE WHEN "+e+` THEN ${L} ELSE ${U} END`,{fieldsIndex:w.getFieldsIndex(),timeZone:w.dateFieldsTimeZoneDefaultUTC});const n=(0,g.ke)(_.findField(w.fields,D));n.name=q,n.alias=q,M=new T(n,I.A.create("CASE WHEN "+e+` THEN ${D} ELSE ${x} END`,{fieldsIndex:w.getFieldsIndex(),timeZone:w.dateFieldsTimeZoneDefaultUTC}));break}case"container":G=`${x}='${F}' AND ${Z} = 2`,null!==b&&(G+=` AND ${E} = `+b.toString()),V.codefield=L,G="( "+G+" )",M=new N(_.findField(w.fields,D),q,q);break;case"content":G=`(${D}='${F}' AND ${Z} = 2)`,null!==b&&(G+=` AND ${k} = `+b.toString()),V.codefield=U,G="( "+G+" )",M=new N(_.findField(w.fields,x),q,q);break;case"structure":G=`(${x}='${F}' AND ${Z} = 3)`,null!==b&&(G+=` AND ${E} = `+b.toString()),V.codefield=L,G="( "+G+" )",M=new N(_.findField(w.fields,D),q,P);break;case"attached":G=`(${D}='${F}' AND ${Z} = 3)`,null!==b&&(G+=` AND ${k} = `+b.toString()),V.codefield=U,G="( "+G+" )",M=new N(_.findField(w.fields,x),q,P);break;default:throw new l.D$("InvalidParameter",n)}return C&&(G="1 <> 1"),new _({parentfeatureset:w,adaptedFields:[new A(_.findField(w.fields,j)),new A(_.findField(w.fields,$)),M,R,V,W],extraFilter:G?I.A.create(G,{fieldsIndex:w.getFieldsIndex(),timeZone:w.dateFieldsTimeZoneDefaultUTC}):null})})},e.signatures.push({name:"featuresetbyassociation",min:2,max:6}),e.functions.groupby=function(t,n){return e.standardFunctionAsync(t,n,async(r,i,a)=>{if((0,f.B)(a,3,3,n),!(0,f.m)(a[0]))throw new l.D$("InvalidParameter",n);const o=await a[0].load(),u=[],d=[];let c=!1,p=[];if((0,ye.Kg)(a[1]))p.push(a[1]);else if(a[1]instanceof s.A)p.push(a[1]);else if((0,ye.cy)(a[1]))p=a[1];else{if(!(0,f.j)(a[1]))throw new l.D$("InvalidParameter",n);p=a[1].toArray()}for(const e of p)if((0,ye.Kg)(e)){const t=I.A.create((0,f.s)(e),{fieldsIndex:o.getFieldsIndex(),timeZone:o.dateFieldsTimeZoneDefaultUTC}),n=!0===(0,w.DA)(t)?(0,f.s)(e):"%%%%FIELDNAME";u.push({name:n,expression:t}),"%%%%FIELDNAME"===n&&(c=!0)}else{if(!(e instanceof s.A))throw new l.D$("InvalidParameter",n);{const t=e.hasField("name")?e.field("name"):"%%%%FIELDNAME",r=e.hasField("expression")?e.field("expression"):"";if("%%%%FIELDNAME"===t&&(c=!0),!t)throw new l.D$("InvalidParameter",n);u.push({name:t,expression:I.A.create(r||t,{fieldsIndex:o.getFieldsIndex(),timeZone:o.dateFieldsTimeZoneDefaultUTC})})}}if(p=[],(0,ye.Kg)(a[2]))p.push(a[2]);else if((0,ye.cy)(a[2]))p=a[2];else if((0,f.j)(a[2]))p=a[2].toArray();else{if(!(a[2]instanceof s.A))throw new l.D$("InvalidParameter",n);p.push(a[2])}for(const e of p){if(!(e instanceof s.A))throw new l.D$("InvalidParameter",n);{const t=e.hasField("name")?e.field("name"):"",r=e.hasField("statistic")?e.field("statistic"):"",i=e.hasField("expression")?e.field("expression"):"";if(!(t&&r&&(0,ye.Kg)(r)&&i))throw new l.D$("InvalidParameter",n);d.push({name:t,statistic:r,expression:I.A.create(i,{fieldsIndex:o.getFieldsIndex(),timeZone:o.dateFieldsTimeZoneDefaultUTC})})}}if(c){const e={};for(const t of o.fields)e[t.name.toLowerCase()]=1;for(const t of u)"%%%%FIELDNAME"!==t.name&&(e[t.name.toLowerCase()]=1);for(const t of d)"%%%%FIELDNAME"!==t.name&&(e[t.name.toLowerCase()]=1);let t=0;for(const n of u)if("%%%%FIELDNAME"===n.name){for(;1===e["field_"+t.toString()];)t++;e["field_"+t.toString()]=1,n.name="FIELD_"+t.toString()}}for(const n of u)ge(n.expression,e,t);for(const n of d)ge(n.expression,e,t);return new W({parentfeatureset:a[0],groupbyfields:u,statsfields:d})})},e.signatures.push({name:"groupby",min:3,max:3}),e.functions.distinct=function(t,n){return e.standardFunctionAsync(t,n,async(r,i,a)=>{if((0,f.m)(a[0])){(0,f.B)(a,2,2,n);const r=await a[0].load(),i=[];let o=[];if((0,ye.Kg)(a[1]))o.push(a[1]);else if(a[1]instanceof s.A)o.push(a[1]);else if((0,ye.cy)(a[1]))o=a[1];else{if(!(0,f.j)(a[1]))throw new l.D$("InvalidParameter",n);o=a[1].toArray()}let u=!1;for(const e of o)if((0,ye.Kg)(e)){const t=I.A.create((0,f.s)(e),{fieldsIndex:r.getFieldsIndex(),timeZone:r.dateFieldsTimeZoneDefaultUTC}),n=!0===(0,w.DA)(t)?(0,f.s)(e):"%%%%FIELDNAME";i.push({name:n,expression:t}),"%%%%FIELDNAME"===n&&(u=!0)}else{if(!(e instanceof s.A))throw new l.D$("InvalidParameter",n);{const t=e.hasField("name")?e.field("name"):"%%%%FIELDNAME",a=e.hasField("expression")?e.field("expression"):"";if("%%%%FIELDNAME"===t&&(u=!0),!t)throw new l.D$("InvalidParameter",n);i.push({name:t,expression:I.A.create(a||t,{fieldsIndex:r.getFieldsIndex(),timeZone:r.dateFieldsTimeZoneDefaultUTC})})}}if(u){const e={};for(const t of r.fields)e[t.name.toLowerCase()]=1;for(const t of i)"%%%%FIELDNAME"!==t.name&&(e[t.name.toLowerCase()]=1);let t=0;for(const n of i)if("%%%%FIELDNAME"===n.name){for(;1===e["field_"+t.toString()];)t++;e["field_"+t.toString()]=1,n.name="FIELD_"+t.toString()}}for(const n of i)ge(n.expression,e,t);return new W({parentfeatureset:a[0],groupbyfields:i,statsfields:[]})}return function(e){if(1===e.length){if((0,ye.cy)(e[0]))return(0,V.t)("distinct",e[0],-1);if((0,f.j)(e[0]))return(0,V.t)("distinct",e[0].toArray(),-1)}return(0,V.t)("distinct",e,-1)}(a)})},e.functions.getfeaturesetinfo=function(t,n){return e.standardFunctionAsync(t,n,async(e,r,i)=>{if((0,f.B)(i,1,1,n),!(0,f.m)(i[0]))return null;const a=await i[0].getFeatureSetInfo();return a?s.A.convertObjectToArcadeDictionary({layerId:a.layerId,layerName:a.layerName,itemId:a.itemId,serviceLayerUrl:a.serviceLayerUrl,webMapLayerId:a.webMapLayerId??null,webMapLayerTitle:a.webMapLayerTitle??null,className:null,objectClassId:null},(0,f.P)(t),!1,!1):null})},e.signatures.push({name:"getfeaturesetinfo",min:1,max:1}),e.functions.filterbysubtypecode=function(t,n){return e.standardFunctionAsync(t,n,async(e,t,r)=>{if((0,f.B)(r,2,2,n),(0,f.m)(r[0])){const e=await r[0].load(),t=r[1];if(!(0,ye.Fq)(t))throw new l.D$("InvalidParameter",n);if(e.subtypeField){const t=I.A.create(`${e.subtypeField}= ${r[1]}`,{fieldsIndex:e.getFieldsIndex(),timeZone:e.dateFieldsTimeZoneDefaultUTC});return new C.A({parentfeatureset:r[0],whereclause:t})}if(null===e.typeIdField||""===e.typeIdField)throw new l.D$("FeatureSetDoesNotHaveSubtypes",n);const i=I.A.create(`${e.typeIdField}= ${r[1]}`,{fieldsIndex:e.getFieldsIndex(),timeZone:e.dateFieldsTimeZoneDefaultUTC});return new C.A({parentfeatureset:r[0],whereclause:i})}throw new l.D$("InvalidParameter",n)})},e.signatures.push({name:"filterbysubtypecode",min:2,max:2})}}}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3693],{85978(e,t,n){n.d(t,{A:()=>s});var r=n(87449),i=n(11221),a=n(33325);class s extends i.t1{constructor(e){super(),this.declaredClass="esri.layers.featureset.sources.Empty",this._maxProcessing=1e3,this._parent=e.parentfeatureset,this._databaseType=0}async _queryAll(){return i.An.features}async query(e){return i.An}async queryStat(e){return await this._manualStat(e.stat,e.field,e.limit??a.gO,e.abortSignal)}async canQueryAggregate(e){return!1}async queryAggregate(e){throw new r.dr("NeverReach")}async queryAttachments(){return[]}}},3693(e,t,n){n.r(t),n.d(t,{registerFunctions:()=>Ne});var r=n(52106),i=n(66131),a=n(47609),s=n(66395),o=n(59534),l=n(85935),u=n(93833),d=n(96685),c=n(93818),f=n(78878),p=n(80672),h=n(48938),m=n(87449),y=n(11221),g=n(33325),w=n(80609),F=n(1262),I=n(89696);class b{constructor(e){this.field=e,this.sqlRewritable=!1}postInitialization(e,t){}}class A extends b{constructor(e){super(e),this.sqlRewritable=!0}extractValue(e){return e.attributes[this.field.name]}rewriteSql(e){return{rewritten:this.sqlRewritable,where:e}}}class N extends b{constructor(e,t,n){super((0,g.ke)(e)),this.originalField=e,this.sqlRewritable=!0,this.field.name=t,this.field.alias=n}rewriteSql(e,t){return{rewritten:this.sqlRewritable,where:(0,w.bD)(e,this.field.name,this.originalField.name,t.getFieldsIndex())}}extractValue(e){return e.attributes[this.originalField.name]}}class S extends b{constructor(e,t,n){super(e),this.codefield=t,this._stringToCode=n,this._codeToString={};for(const e in n)this._codeToString[n[e]]=e;this.sqlRewritable=!0}static{this.BADNESS="_!!!_BAD_LKP_!!!!"}rewriteSql(e,t){const n=this.evaluateNodeToWhereClause(e.parseTree,0,this.field.name,this.codefield instanceof I.A?(0,w.YY)(this.codefield,0):this.codefield,e.parameters);return n.includes(S.BADNESS)?{rewritten:!1,where:e}:{rewritten:this.sqlRewritable,where:I.A.create(n,{fieldsIndex:t._parent.getFieldsIndex(),timeZone:t.dateFieldsTimeZoneDefaultUTC})}}evaluateNodeToWhereClause(e,t,n=null,r=null,i){switch(e.type){case"interval":return(0,w.oj)(this.evaluateNodeToWhereClause(e.value,t,n,r,i),e.qualifier,e.op);case"case-expression":{let r=" CASE ";"simple"===e.format&&(r+=this.evaluateNodeToWhereClause(e.operand,t,n,S.BADNESS,i));for(const a of e.clauses)r+=" WHEN "+this.evaluateNodeToWhereClause(a.operand,t,n,S.BADNESS,i)+" THEN "+this.evaluateNodeToWhereClause(a.value,t,n,S.BADNESS,i);return null!==e.else&&(r+=" ELSE "+this.evaluateNodeToWhereClause(e.else,t,n,S.BADNESS,i)),r+=" END ",r}case"parameter":{const n=i[e.value.toLowerCase()];return"string"==typeof n?"'"+n.toString().replaceAll("'","''")+"'":(0,g.$P)(n)||(0,g.Lk)(n)?(0,w.bm)(n,t):(0,g.eg)(n)?(0,w.F1)(n,t):(0,g.rX)(n)?(0,w.R8)(n,t):(0,g.f0)(n)?(0,w.Nf)(n,t):Array.isArray(n)?n.map(e=>"string"==typeof e?"'"+e.toString().replaceAll("'","''")+"'":(0,g.$P)(e)||(0,g.Lk)(e)?(0,w.bm)(e,t):(0,g.eg)(e)?(0,w.F1)(e,t):(0,g.rX)(e)?(0,w.R8)(e,t):(0,g.f0)(e)?(0,w.Nf)(e,t):e.toString()):n.toString()}case"expression-list":{const a=[];for(const s of e.value)a.push(this.evaluateNodeToWhereClause(s,t,n,r,i));return a}case"unary-expression":return" ( NOT "+this.evaluateNodeToWhereClause(e.expr,t,n,S.BADNESS,i)+" ) ";case"binary-expression":switch(e.operator){case"AND":return" ("+this.evaluateNodeToWhereClause(e.left,t,n,r,i)+" AND "+this.evaluateNodeToWhereClause(e.right,t,n,r,i)+") ";case"OR":return" ("+this.evaluateNodeToWhereClause(e.left,t,n,r,i)+" OR "+this.evaluateNodeToWhereClause(e.right,t,n,r,i)+") ";case"IS":if("null"!==e.right.type)throw new F.L("UnsupportedIsRhs");return" ("+this.evaluateNodeToWhereClause(e.left,t,n,r,i)+" IS NULL )";case"ISNOT":if("null"!==e.right.type)throw new F.L("UnsupportedIsRhs");return" ("+this.evaluateNodeToWhereClause(e.left,t,n,r,i)+" IS NOT NULL )";case"IN":{if("expression-list"===e.right.type){if("column-reference"===e.left.type&&e.left.column.toUpperCase()===this.field.name.toUpperCase()){const a=[];let s=!0;for(const t of e.right.value){if("string"!==t.type){s=!1;break}if(void 0===this._stringToCode[t.value]){s=!1;break}a.push(this._stringToCode[t.value].toString())}if(s)return" ("+this.evaluateNodeToWhereClause(e.left,t,n,r,i)+" IN ("+a.join(",")+")) "}const a=this.evaluateNodeToWhereClause(e.right,t,n,r,i);return" ("+this.evaluateNodeToWhereClause(e.left,t,n,r,i)+" IN ("+a.join(",")+")) "}const a=this.evaluateNodeToWhereClause(e.right,t,n,r,i);return Array.isArray(a)?" ("+this.evaluateNodeToWhereClause(e.left,t,n,r,i)+" IN ("+a.join(",")+")) ":" ("+this.evaluateNodeToWhereClause(e.left,t,n,r,i)+" IN ("+a+")) "}case"NOT IN":{if("expression-list"===e.right.type){if("column-reference"===e.left.type&&e.left.column.toUpperCase()===this.field.name.toUpperCase()){const a=[];let s=!0;for(const t of e.right.value){if("string"!==t.type){s=!1;break}if(void 0===this._stringToCode[t.value]){s=!1;break}a.push(this._stringToCode[t.value].toString())}if(s)return" ("+this.evaluateNodeToWhereClause(e.left,t,n,r,i)+" NOT IN ("+a.join(",")+")) "}const a=this.evaluateNodeToWhereClause(e.right,t,n,r,i);return" ("+this.evaluateNodeToWhereClause(e.left,t,n,r,i)+" NOT IN ("+a.join(",")+")) "}const a=this.evaluateNodeToWhereClause(e.right,t,n,r,i);return Array.isArray(a)?" ("+this.evaluateNodeToWhereClause(e.left,t,n,r,i)+" NOT IN ("+a.join(",")+")) ":" ("+this.evaluateNodeToWhereClause(e.left,t,n,r,i)+" NOT IN ("+a+")) "}case"BETWEEN":{const r=this.evaluateNodeToWhereClause(e.right,t,n,S.BADNESS,i);return" ("+this.evaluateNodeToWhereClause(e.left,t,n,S.BADNESS,i)+" BETWEEN "+r[0]+" AND "+r[1]+" ) "}case"NOTBETWEEN":{const r=this.evaluateNodeToWhereClause(e.right,t,n,S.BADNESS,i);return" ("+this.evaluateNodeToWhereClause(e.left,t,n,S.BADNESS,i)+" NOT BETWEEN "+r[0]+" AND "+r[1]+" ) "}case"LIKE":return""!==e.escape?" ("+this.evaluateNodeToWhereClause(e.left,t,n,S.BADNESS,i)+" LIKE "+this.evaluateNodeToWhereClause(e.right,t,n,S.BADNESS,i)+" ESCAPE '"+e.escape+"') ":" ("+this.evaluateNodeToWhereClause(e.left,t,n,S.BADNESS,i)+" LIKE "+this.evaluateNodeToWhereClause(e.right,t,n,S.BADNESS,i)+") ";case"NOT LIKE":return""!==e.escape?" ("+this.evaluateNodeToWhereClause(e.left,t,n,S.BADNESS,i)+" NOT LIKE "+this.evaluateNodeToWhereClause(e.right,t,n,S.BADNESS,i)+" ESCAPE '"+e.escape+"') ":" ("+this.evaluateNodeToWhereClause(e.left,t,n,S.BADNESS,i)+" NOT LIKE "+this.evaluateNodeToWhereClause(e.right,t,n,S.BADNESS,i)+") ";case"<>":case"=":if("column-reference"===e.left.type&&"string"===e.right.type){if(e.left.column.toUpperCase()===this.field.name.toUpperCase()&&void 0!==this._stringToCode[e.right.value.toString()])return" ("+r+" "+e.operator+" "+this._stringToCode[e.right.value.toString()].toString()+") "}else if("column-reference"===e.right.type&&"string"===e.left.type&&e.right.column.toUpperCase()===this.field.name.toUpperCase())return" ("+this._stringToCode[e.left.value.toString()].toString()+" "+e.operator+" "+r+") ";return" ("+this.evaluateNodeToWhereClause(e.left,t,n,S.BADNESS,i)+" "+e.operator+" "+this.evaluateNodeToWhereClause(e.right,t,n,S.BADNESS,i)+") ";case"<":case">":case">=":case"<=":case"*":case"-":case"+":case"/":case"||":return" ("+this.evaluateNodeToWhereClause(e.left,t,n,S.BADNESS,i)+" "+e.operator+" "+this.evaluateNodeToWhereClause(e.right,t,n,S.BADNESS,i)+") "}case"null":return"null";case"boolean":return!0===e.value?"1":"0";case"string":return"'"+e.value.toString().replaceAll("'","''")+"'";case"timestamp":return`timestamp '${e.value}'`;case"date":return`date '${e.value}'`;case"time":return`time '${e.value}'`;case"number":return e.value.toString();case"current-time":return(0,w.C6)(e.mode,t);case"current-user":return"CURRENT_USER";case"column-reference":return n&&n.toLowerCase()===e.column.toLowerCase()?"("+r+")":(0,w.Kb)(e);case"data-type":return e.value;case"function":{const r=this.evaluateNodeToWhereClause(e.args,t,n,S.BADNESS,i);return(0,w.F6)(e.name,r,t)}}throw new F.L("UnsupportedSyntax",{node:e.type})}extractValue(e){if(this.codefield instanceof I.A){const t=this.codefield.calculateValueCompiled(e);return this._codeToString[I.A.convertValueToStorageFormat(t)]}return this._codeToString[e.attributes[this.codefield]]}}class T extends b{constructor(e,t){super(e),this._sql=t}rewriteSql(e,t){return{rewritten:!0,where:(0,w.bD)(e,this.field.name,(0,w.YY)(this._sql,0),t.getFieldsIndex())}}extractValue(e){return I.A.convertValueToStorageFormat(this._sql.calculateValueCompiled(e),this.field.type)}}class _ extends y.t1{static findField(e,t){for(const n of e)if(n.name.toLowerCase()===t.toString().toLowerCase())return n;return null}constructor(e){super(),this.declaredClass="esri.arcade.featureset.actions.Adapted",this._maxProcessing=30,this._parent=e.parentfeatureset,this._adaptedFields=e.adaptedFields,this._extraFilter=e.extraFilter}_initialiseFeatureSet(){this.geometryType=this._parent.geometryType,this.objectIdField=this._parent.objectIdField,this.globalIdField=this._parent.globalIdField,this.spatialReference=this._parent.spatialReference,this.hasM=this._parent.hasM,this.hasZ=this._parent.hasZ,this.typeIdField=this._parent.typeIdField,this.types=this._parent.types,this.fields=[];for(const e of this._adaptedFields)e.postInitialization(this,this._parent),this.fields.push(e.field)}async _queryAll(){return await this._ensureLoaded(),this._extraFilter?(await this.query({abortSignal:h._})).features:this._calculateFields(await this._parent.queryAll(h._))}async query(e){let t=e.where??null;const n=this._reformulateWithoutAdaptions(t),r=n.cannot;t=n.where;let i=!n.cannot,a=!1,s=e.orderBy;if(null!=s){a=!0;const e=[];for(const t of this._adaptedFields)if(!(t instanceof A)&&!0===s.scanForField(t.field.name)){if(!(t instanceof N)){s=null,a=!1,i=!1;break}e.push({field:t.field.name,newfield:t.originalField.name})}s&&e.length>0&&(s=s.replaceFields(e))}null!=t?null!=this._extraFilter&&(t=(0,w.kg)(this._extraFilter,t)):t=this._extraFilter,await this._ensureLoaded();const o=await this._parent.query({...e,where:t,orderBy:s,limit:i?e.limit:null});return(0,m.dZ)(e.abortSignal),r?{...o,filterApplied:!1,ordered:!!a&&o.ordered,features:this._calculateFields(o.features)}:{...o,ordered:!!a&&o.ordered,features:this._calculateFields(o.features)}}async*_calculateFields(e){for await(const t of e)yield t.map(e=>{const t={};for(const n of this._adaptedFields)t[n.field.name]=n.extractValue(e);return{attributes:t,geometry:e.geometry}})}async queryStat(e){let t=!1,n=e.field,r=this._reformulateWithoutAdaptions(n);t=r.cannot,n=r.where;let i=e.where??null;if(r=this._reformulateWithoutAdaptions(i),t=t||r.cannot,i=r.where,null!=i?null!==this._extraFilter&&(i=(0,w.kg)(this._extraFilter,i)):i=this._extraFilter,t)return null==i&&null==e.spatialFilter?this._manualStat(e.stat,n,e.limit??g.gO,e.abortSignal):{calculated:!1};const a=await this._parent.queryStat({...e,field:n,where:i});return a.calculated?a:null==i&&null==e.spatialFilter?this._manualStat(e.stat,n,e.limit??g.gO,e.abortSignal):{calculated:!1}}async canQueryAggregate(e){for(const t of e.groupBy)for(const e of this._adaptedFields)if(t.toLowerCase()===e.field.name.toLowerCase()&&!(e instanceof A))return!1;const t=[];for(const n of e.statistics)if(null!==n.workingexpr){const e=this._reformulateWithoutAdaptions(n.workingexpr);if(e.cannot)return!1;const r=n.clone();r.workingexpr=e.where,t.push(r)}else t.push(n);let n=e.where??null;const r=this._reformulateWithoutAdaptions(n);return!r.cannot&&(n=r.where,null!==n?null!==this._extraFilter&&(n=(0,w.kg)(this._extraFilter,n)):n=this._extraFilter,this._parent.canQueryAggregate({...e,statistics:t,where:n}))}async queryAggregate(e){const t=[];for(const n of e.statistics)if(null!==n.workingexpr){const e=this._reformulateWithoutAdaptions(n.workingexpr);if(e.cannot)throw new m.dr("NeverReach");const r=n.clone();r.workingexpr=e.where,t.push(r)}else t.push(n);let n=e.where??null;const r=this._reformulateWithoutAdaptions(n);if(r.cannot)throw new m.dr("NeverReach");return n=r.where,null!==n?null!==this._extraFilter&&(n=(0,w.kg)(this._extraFilter,n)):n=this._extraFilter,this._parent.queryAggregate({...e,statistics:t,where:n})}_reformulateWithoutAdaptions(e){const t={cannot:!1,where:e};if(null!==e)for(const n of this._adaptedFields)if(!0===(0,w.Ju)(e,n.field.name)){const r=n.rewriteSql(e,this);if(!0!==r.rewritten){t.cannot=!0,t.where=null;break}t.where=r.where}return t}}var C=n(35704),v=n(4576);class x extends y.t1{constructor(e){super(),this.declaredClass="esri.arcade.featureset.actions.OrderBy",this._maxProcessing=100,this._parent=e.parentfeatureset,this._orderByClause=e.orderbyclause}async _queryAll(){return(await this.query({abortSignal:h._})).features}async query(e){if(null!=e.orderBy)return this._parent.query(e);await this._ensureLoaded();const t=await this._parent.query({...e,orderBy:this._orderByClause});return(0,m.dZ)(e.abortSignal),!1===t.ordered?{...t,ordered:!0,features:null!=e.limit&&e.limit<=5e3?this._topNFeatures(t.features,e.limit,e.abortSignal):this._sortFeatures(t.features,e.abortSignal)}:t}async*_sortFeatures(e,t){const n=[];for await(const r of e)n.push(r),await(0,f.a5)(),(0,m.dZ)(t);const r=n.flat();this._orderByClause.order(r),yield*(0,v.Ho)(r,this._maxQueryRate())}async*_topNFeatures(e,t,n){const r=[],i=this._orderByClause.toComparator();for await(const a of e){for(const e of a)(0,v.HX)(r,e,t,i);await(0,f.a5)(),(0,m.dZ)(n)}yield*(0,v.Ho)(r,this._maxQueryRate())}async queryStat(e){const t=await this._parent.queryStat(e);return t.calculated?t:null==e.where&&null==e.spatialFilter?this._manualStat(e.stat,e.field,e.limit??g.gO,e.abortSignal):{calculated:!1}}async canQueryAggregate(e){return this._parent.canQueryAggregate(e)}async queryAggregate(e){return this._parent.queryAggregate(e)}getFieldsIndex(){return this._parent.getFieldsIndex()}}function D(e,t){return e===t?0:null===e?-1:null===t?1:e<t?-1:1}class E{constructor(e){const t=e.split(",");this._fields=[],this._directions=[];for(let e=0;e<t.length;e++){const n=t[e].match(/\S+/g);this._fields.push(n[0]),2===n.length?"asc"===n[1].toLowerCase()?this._directions.push(1):this._directions.push(0):this._directions.push(1)}}toOrderByFields(){return this._fields.map((e,t)=>e+(1===this._directions[t]?" ASC":" DESC"))}order(e){e.sort(this.toComparator())}toComparator(){return(e,t)=>{for(let n=0;n<this._fields.length;n++){const r=this.featureValue(e,this._fields[n],n),i=this.featureValue(t,this._fields[n],n);let a=0;if(a=1===this._directions[n]?D(r,i):-1*D(r,i),0!==a)return a}return 0}}scanForField(e){for(let t=0;t<this._fields.length;t++)if(this._fields[t].toLowerCase().trim()===e.toLowerCase().trim())return!0;return!1}replaceFields(e){let t="";for(let n=0;n<this._fields.length;n++){0!==n&&(t+=",");let r=this._fields[n];for(const t of e)if(r.toLowerCase()===t.field.toLowerCase()){r=t.newfield;break}t+=r,1===this._directions[n]?t+=" ASC":t+=" DESC"}return new E(t)}featureValue(e,t,n){const r=e.attributes[t];if(void 0!==r)return r;for(const r in e.attributes)if(t.toLowerCase()===r.toLowerCase())return this._fields[n]=r,e.attributes[r];return null}}class k{constructor(){this.field="",this.tofieldname="",this.typeofstat="MIN",this.workingexpr=null}clone(){const e=new k;return e.field=this.field,e.tofieldname=this.tofieldname,e.typeofstat=this.typeofstat,e.workingexpr=this.workingexpr,e}static parseStatField(e,t,n,r){const i=new k;i.field=e;const a=I.A.create(t,{fieldsIndex:n,timeZone:r}),s=function(e){if("function"===e.parseTree.type){if(0===e.parseTree.args.value.length)return{name:e.parseTree.name,expr:null};if(e.parseTree.args.value.length>1)throw new F.L("MissingStatisticParameters");const t=I.A.create((0,w.Mi)(e.parseTree.args.value[0],0,e.parameters),{fieldsIndex:e.fieldsIndex,timeZone:e.timeZone,currentUser:e.currentUser});return{name:e.parseTree.name,expr:t}}return null}(a);if(null===s)throw new F.L("UnsupportedSqlFunction",{function:""});const o=s.name.toUpperCase().trim();if("MIN"===o){if(i.typeofstat="MIN",i.workingexpr=s.expr,null===a)throw new F.L("InvalidFunctionParameters",{function:"min"})}else if("MAX"===o){if(i.typeofstat="MAX",i.workingexpr=s.expr,null===a)throw new F.L("InvalidFunctionParameters",{function:"max"})}else if("COUNT"===o)i.typeofstat="COUNT",i.workingexpr=s.expr;else if("STDEV"===o){if(i.typeofstat="STDDEV",i.workingexpr=s.expr,null===a)throw new F.L("InvalidFunctionParameters",{function:"stdev"})}else if("SUM"===o){if(i.typeofstat="SUM",i.workingexpr=s.expr,null===a)throw new F.L("InvalidFunctionParameters",{function:"sum"})}else if("MEAN"===o){if(i.typeofstat="AVG",i.workingexpr=s.expr,null===a)throw new F.L("InvalidFunctionParameters",{function:o})}else if("AVG"===o){if(i.typeofstat="AVG",i.workingexpr=s.expr,null===a)throw new F.L("InvalidFunctionParameters",{function:"avg"})}else{if("VAR"!==o)throw new F.L("UnsupportedSqlFunction",{function:o});if(i.typeofstat="VAR",i.workingexpr=s.expr,null===a)throw new F.L("InvalidFunctionParameters",{function:"var"})}return i}toStatisticsName(){switch(this.typeofstat.toUpperCase()){case"MIN":return"min";case"MAX":return"max";case"SUM":return"sum";case"COUNT":default:return"count";case"VAR":return"var";case"STDDEV":return"stddev";case"AVG":return"avg"}}}var L=n(80200),U=n(74639),Z=n(44729),$=n(55612),j=n(15032),B=n(20437);const M=new o.b(["MIN","MAX","VAR","STDDEV","COUNT","SUM","AVG"],[["VARIANCE","VAR"],["AVERAGE","AVG"],["MEAN","AVG"],["STDEV","STDDEV"]]);class W extends y.t1{constructor(e){super(),this.declaredClass="esri.arcade.featureset.actions.Aggregate",this._decodedStatsFields=[],this._decodedGroupByFields=[],this._canDoSimpleGroupBy=!0,this._physicalGroupByFields=[],this.objectIdField="ROW__ID",this._adaptedFields=[],this._uniqueIds=1,this._maxQuery=10,this._maxProcessing=10,this._parent=e.parentfeatureset,this._config=e}isTable(){return!0}_nextUniqueName(e){for(;1===e["T"+this._uniqueIds.toString()];)this._uniqueIds++;const t="T"+this._uniqueIds.toString();return e[t]=1,t}_convertToEsriFieldType(e){return e}_initialiseFeatureSet(){const e=this._parent.getFieldsIndex();this.objectIdField="ROW__ID",this.globalIdField="";let t=!1,n=1;for(;!1===t;){let e=!1;for(const t of this._config.groupbyfields)if(t.name.toLowerCase()===this.objectIdField.toLowerCase()){e=!0;break}if(!1===e)for(const t of this._config.statsfields)if(t.name.toLowerCase()===this.objectIdField.toLowerCase()){e=!0;break}!1===e?t=!0:(this.objectIdField="ROW__ID"+n.toString(),n++)}for(const t of this._config.statsfields){const n=new k;n.field=t.name,n.tofieldname=t.name,n.workingexpr=t.expression instanceof I.A?t.expression:I.A.create(t.expression,{fieldsIndex:e,timeZone:this.dateFieldsTimeZoneDefaultUTC}),n.typeofstat=M.lookup(t.statistic)??"COUNT",this._decodedStatsFields.push(n)}this._decodedGroupByFields=[];for(const t of this._config.groupbyfields){const n={name:t.name,singlefield:null,tofieldname:t.name,expression:t.expression instanceof I.A?t.expression:I.A.create(t.expression,{fieldsIndex:e,timeZone:this.dateFieldsTimeZoneDefaultUTC}),sqlType:null};this._decodedGroupByFields.push(n)}const r={};this.geometryType=this._parent.geometryType,this.spatialReference=this._parent.spatialReference,this.hasM=this._parent.hasM,this.hasZ=this._parent.hasZ,this.typeIdField="";for(const e of this._parent.fields)r[e.name.toUpperCase()]=1;this.types=null,this.subtypes=null,this.subtypeField="",this.fields=[];const i=new k;i.field=this._nextUniqueName(r),i.tofieldname=this.objectIdField,i.workingexpr=I.A.create(this._parent.objectIdField,{fieldsIndex:this._parent.getFieldsIndex(),timeZone:this.dateFieldsTimeZoneDefaultUTC}),i.typeofstat="MIN",this._decodedStatsFields.push(i);for(const e of this._decodedGroupByFields){const t=new B.A;if(e.name=this._nextUniqueName(r),t.name=e.tofieldname,t.alias=t.name,(0,w.DA)(e.expression)){const n=this._parent.getField((0,w.YY)(e.expression,0));if(!n)throw new m.dr("AggregationFieldNotFound");e.name=n.name,e.singlefield=n.name,this._physicalGroupByFields.push(n.name),t.type=n.type,e.sqlType=n.type}else{t.type=this._convertToEsriFieldType((0,w.IY)(e.expression,this._parent.fields));const n=new B.A;n.name=e.name,n.alias=n.name,this._physicalGroupByFields.push(e.name),this._adaptedFields.push(new T(n,e.expression)),this._canDoSimpleGroupBy=!1,e.sqlType=t.type}this.fields.push(t)}if(this._adaptedFields.length>0)for(const e of this._parent.fields)this._adaptedFields.push(new A(e));for(const e of this._decodedStatsFields){const t=new B.A;let n=null;e.field=this._nextUniqueName(r),t.name=e.tofieldname,t.alias=t.name;const i=null!==e.workingexpr&&(0,w.DA)(e.workingexpr)?(0,w.YY)(e.workingexpr,0):"";switch(e.typeofstat){case"SUM":if(""!==i){if(n=this._parent.getField(i),!n)throw new m.dr("AggregationFieldNotFound");t.type=n.type}else t.type="double";break;case"MIN":case"MAX":if(""!==i){if(n=this._parent.getField(i),!n)throw new m.dr("AggregationFieldNotFound");t.type=n.type}else t.type="double";break;case"COUNT":t.type="integer";break;case"STDDEV":case"VAR":case"AVG":if(""!==i&&(n=this._parent.getField(i),!n))throw new m.dr("AggregationFieldNotFound");t.type="double"}this.fields.push(t)}}async _queryAll(){return(await this.query({abortSignal:h._})).features}async query(e){if(null!=e.spatialFilter)return y.An;const t={ordered:!1,nowhereclause:!1};await this._ensureLoaded();let n=e.where;if(null!=n)for(const e of this._decodedStatsFields)if(!0===(0,w.Ju)(n,e.tofieldname)){t.nowhereclause=!0,n=null;break}let r=e.orderBy;if(null!=r){t.ordered=!0;for(const e of this._decodedStatsFields)if(!0===r.scanForField(e.tofieldname)){r=null,t.ordered=!1;break}if(null!==r)for(const e of this._decodedGroupByFields)if(null===e.singlefield&&!0===r.scanForField(e.tofieldname)){r=null,t.ordered=!1;break}}if(!1!==this._canDoSimpleGroupBy&&await this._parent.canQueryAggregate({groupBy:this._physicalGroupByFields,statistics:this._decodedStatsFields,where:null,spatialFilter:null,abortSignal:e.abortSignal})){const i=await this._parent.queryAggregate({groupBy:this._physicalGroupByFields,statistics:this._decodedStatsFields,where:n?this._reformulateWhereClauseWithoutGroupByFields(n):null,spatialFilter:null,orderBy:r?this._reformulateOrderClauseWithoutGroupByFields(r):null,abortSignal:e.abortSignal});return(0,m.dZ)(e.abortSignal),{...i,filterApplied:!t.nowhereclause&&i.filterApplied,ordered:!0===t.ordered&&i.ordered,features:this._fixAggregateAttributeNames(i.features)}}const i=this._adaptedFields.length>0?new _({parentfeatureset:this._parent,adaptedFields:this._adaptedFields,extraFilter:null}):this._parent;if(!0===t.nowhereclause){const t=new x({parentfeatureset:i,orderbyclause:new E(this._physicalGroupByFields.join(",")+","+this._parent.objectIdField+" ASC")});return{filterApplied:!1,spatialFilterApplied:!1,ordered:!1,features:this._aggregateSortedFeatureGroups((await t.query({abortSignal:e.abortSignal})).features,this._maxQuery,e.abortSignal)}}let a=i;null!=n&&(a=new C.A({parentfeatureset:a,whereclause:this._reformulateWhereClauseWithoutGroupByFields(n)}));const s=new x({parentfeatureset:a,orderbyclause:new E(this._physicalGroupByFields.join(",")+","+this._parent.objectIdField+" ASC")});return{filterApplied:!1,spatialFilterApplied:!1,ordered:!1,features:this._aggregateSortedFeatureGroups((await s.query({abortSignal:e.abortSignal})).features,this._maxQuery,e.abortSignal)}}async*_fixAggregateAttributeNames(e){for await(const t of e)yield t.map(e=>{const t={geometry:e.geometry,attributes:{}},n={};for(const t in e.attributes)n[t.toLowerCase()]=e.attributes[t];for(const e of this._decodedGroupByFields)t.attributes[e.tofieldname]=n[e.name.toLowerCase()];for(const e of this._decodedStatsFields)t.attributes[e.tofieldname]=n[e.field.toLowerCase()];return t})}async*_aggregateSortedFeatureGroups(e,t,n){let r=null,i=[];for await(const a of e){await(0,f.a5)(),(0,m.dZ)(n);for(const e of a){const t=this._generateAggregateHash(e);null==r?r={features:[e],id:t}:t!==r.id?(i.push(this._calculateAndAppendAggregateItem(r)),r={features:[e],id:t}):r.features.push(e)}i.length>=t&&(yield i,i=[])}null!=r&&(i.push(this._calculateAndAppendAggregateItem(r)),yield i)}async queryStat(e){return{calculated:!1}}async canQueryAggregate(e){return!1}async queryAggregate(e){throw new m.dr("NeverReach")}_reformulateWhereClauseWithoutStatsFields(e){for(const t of this._decodedStatsFields)e=(0,w.bD)(e,t.tofieldname,(0,w.YY)(t.workingexpr,0),this._parent.getFieldsIndex());return e}_reformulateWhereClauseWithoutGroupByFields(e){for(const t of this._decodedGroupByFields)t.tofieldname!==t.name&&(e=(0,w.bD)(e,t.tofieldname,(0,w.YY)(t.expression,0),this._parent.getFieldsIndex()));return e}_reformulateOrderClauseWithoutGroupByFields(e){const t=[];for(const e of this._decodedGroupByFields)e.tofieldname!==e.name&&t.push({field:e.tofieldname,newfield:e.name});return t.length>0?e.replaceFields(t):e}_calculateFieldStat(e,t,n){const r=[];for(const n of e.features)if(null!==t.workingexpr){const e=t.workingexpr.calculateValue(n);null!==e&&(e instanceof Z.n||e instanceof j.k?r.push(e.toNumber()):e instanceof $.g?r.push(e.toMilliseconds()):r.push(e))}else r.push(null);n.attributes[t.tofieldname]=(0,U.s)(t.typeofstat,[r])}_calculateAndAppendAggregateItem(e){const t={attributes:{}};for(const n of this._decodedGroupByFields){const r=n.singlefield?e.features[0].attributes[n.singlefield]:I.A.convertValueToStorageFormat(n.expression.calculateValue(e.features[0]),n.sqlType);t.attributes[n.tofieldname]=r}for(const n of this._decodedStatsFields)this._calculateFieldStat(e,n,t);return t}_generateAggregateHash(e){let t="";for(const n of this._decodedGroupByFields){const r=n.singlefield?e.attributes[n.singlefield]:n.expression.calculateValue(e);t+=null==r?":":":"+r.toString()}return(0,L.d)(t,L.T.String)}async getFeatureByObjectId(){throw new m.dr("NotImplemented")}}async function*R(e,t){let n=t;for await(const t of e)if(n>=t.length?(n-=t.length,yield t):(yield t.slice(0,n),n=0),n<=0)break}class q extends y.t1{constructor(e){super(),this.declaredClass="esri.arcade.featureset.actions.Top",this._maxProcessing=100,this._parent=e.parentfeatureset,this._limit=e.topnum}async _queryAll(){return(await this.query({abortSignal:h._})).features}async query(e){const t=null!=e.limit&&null==e.where&&null==e.spatialFilter&&null==e.orderBy?Math.min(e.limit,this._limit):this._limit;await this._ensureLoaded();const{features:n}=await this._parent.query({limit:t,abortSignal:e.abortSignal});return{filterApplied:null==e.where,spatialFilterApplied:null==e.spatialFilter,ordered:!1,features:R(n,t)}}async queryStat(e){return{calculated:!1}}async canQueryAggregate(e){return!1}async queryAggregate(e){throw new m.dr("NeverReach")}getFieldsIndex(){return this._parent.getFieldsIndex()}}var P=n(85978),O=n(30235),V=n(334),G=n(17676),K=n(53781),z=n(11254),H=n(51447),Q=n(53966),J=n(66552);new J.J({Clean:"clean",Dirty:"dirty",Invalid:"invalid",Deleted:"deleted"}),new J.J({Physical:"physical",Virtual:"virtual"}),new J.J({consumers:"consumers",providers:"providers","consumers and providers":"consumers-and-providers",none:"none"}),new J.J({"Start and End":"start-and-end",Start:"start",Midspan:"midspan",End:"end"}),new J.J({Available:"available",Consumed:"consumed",Reserved:"reserved"}),new J.J({startingPoint:"starting-point",barrier:"barrier",stoppingPoint:"stopping-point"}),new J.J({connected:"connected",upstream:"upstream",downstream:"downstream",shortestPath:"shortest-path",subnetwork:"subnetwork",subnetworkController:"subnetwork-controller",loops:"loops",isolation:"isolation",path:"path",circuit:"circuit"});const Y="{00000000-0000-0000-0000-000000000000}",X=new J.J({junctionJunctionConnectivity:"junction-junction-connectivity",connectivity:"connectivity",attachment:"attachment",containment:"containment",junctionEdgeFromConnectivity:"junction-edge-from-connectivity",junctionEdgeMidspanConnectivity:"junction-edge-midspan-connectivity",junctionEdgeToConnectivity:"junction-edge-to-connectivity"});new J.J({normal:"normal",rebuild:"rebuild",forceRebuild:"force-rebuild"});var ee=n(2272),te=n(5482),ne=n(25482),re=n(91429),ie=n(82799);let ae=class extends ne.o{constructor(e){super(e),this.type="networkElement",this.assetGroupCode=null,this.assetTypeCode=null,this.globalId=null,this.networkSourceId=null,this.objectId=null,this.positionFrom=null,this.positionTo=null,this.terminalId=null,this.flowDirection=null}};(0,te.Cg)([(0,re.MZ)({json:{write:!1}})],ae.prototype,"type",void 0),(0,te.Cg)([(0,re.MZ)({type:Number,json:{write:!0}})],ae.prototype,"assetGroupCode",void 0),(0,te.Cg)([(0,re.MZ)({type:Number,json:{write:!0}})],ae.prototype,"assetTypeCode",void 0),(0,te.Cg)([(0,re.MZ)({type:String,json:{write:!0}})],ae.prototype,"globalId",void 0),(0,te.Cg)([(0,re.MZ)({type:Number,json:{write:!0}})],ae.prototype,"networkSourceId",void 0),(0,te.Cg)([(0,re.MZ)({type:Number,json:{write:!0}})],ae.prototype,"objectId",void 0),(0,te.Cg)([(0,re.MZ)({type:Number,json:{write:!0}})],ae.prototype,"positionFrom",void 0),(0,te.Cg)([(0,re.MZ)({type:Number,json:{write:!0}})],ae.prototype,"positionTo",void 0),(0,te.Cg)([(0,re.MZ)({type:Number,json:{write:!0}})],ae.prototype,"terminalId",void 0),(0,te.Cg)([(0,re.MZ)({type:String,json:{write:!0}})],ae.prototype,"flowDirection",void 0),ae=(0,te.Cg)([(0,re.$K)("esri.rest.networks.support.NetworkElement")],ae);let se=class extends ae{constructor(e){super(e),this.type="telecomNetworkElement",this.firstUnit=null,this.lastUnit=null,this.terminalId=null}};(0,te.Cg)([(0,re.MZ)({json:{write:!1}})],se.prototype,"type",void 0),(0,te.Cg)([(0,re.MZ)({json:{write:!0}})],se.prototype,"firstUnit",void 0),(0,te.Cg)([(0,re.MZ)({json:{write:!0}})],se.prototype,"lastUnit",void 0),(0,te.Cg)([(0,re.MZ)({readOnly:!0})],se.prototype,"terminalId",void 0),se=(0,te.Cg)([(0,re.$K)("esri.rest.networks.support.TelecomNetworkElement")],se);var oe=n(36005),le=n(43937);let ue=class extends ne.o{constructor(e){super(e),this.globalId=null,this.associationType=null,this.fromNetworkElement=null,this.toNetworkElement=null,this.geometry=null,this.errorMessage=null,this.percentAlong=null,this.errorCode=null,this.isContentVisible=null,this.status=null}readFromNetworkElement(e,t){return t.fromFirstUnit||t.fromLastUnit?new se({globalId:t.fromGlobalId,networkSourceId:t.fromNetworkSourceId,firstUnit:t.fromFirstUnit,lastUnit:t.fromLastUnit}):new ae({globalId:t.fromGlobalId,networkSourceId:t.fromNetworkSourceId,terminalId:t.fromTerminalId})}writeFromNetworkElement(e,t){if(e&&(t.fromGlobalId=e.globalId,t.fromNetworkSourceId=e.networkSourceId,t.fromTerminalId=e.terminalId,"telecomNetworkElement"===e.type)){const n=e;t.fromFirstUnit=n.firstUnit,t.fromLastUnit=n.lastUnit}}readToNetworkElement(e,t){return t.toFirstUnit||t.toLastUnit?new se({globalId:t.toGlobalId,networkSourceId:t.toNetworkSourceId,firstUnit:t.toFirstUnit,lastUnit:t.toLastUnit}):new ae({globalId:t.toGlobalId,networkSourceId:t.toNetworkSourceId,terminalId:t.toTerminalId})}writeToNetworkElement(e,t){if(e&&(t.toGlobalId=e.globalId,t.toNetworkSourceId=e.networkSourceId,t.toTerminalId=e.terminalId,"telecomNetworkElement"===e.type)){const n=e;t.toFirstUnit=n.firstUnit,t.toLastUnit=n.lastUnit}}equals(e){if(this.globalId===Y&&e.globalId===Y){function t(e,t){return e.networkSourceId===t.networkSourceId&&e.globalId===t.globalId&&e.terminalId===t.terminalId&&e.firstUnit===t.firstUnit&&e.lastUnit===t.lastUnit}const n=this.fromNetworkElement,r=this.toNetworkElement,i=e.fromNetworkElement,a=e.toNetworkElement,s=t(n,i),o=t(r,a);return s&&o&&this.associationType===e.associationType}return null!=this.globalId&&null!=e.globalId&&this.globalId===e.globalId}};(0,te.Cg)([(0,re.MZ)({type:String,json:{write:!0}})],ue.prototype,"globalId",void 0),(0,te.Cg)([(0,re.MZ)({type:X.apiValues,json:{type:X.jsonValues,read:X.read,write:X.write}})],ue.prototype,"associationType",void 0),(0,te.Cg)([(0,re.MZ)({type:ae,json:{write:{target:{fromGlobalId:{type:String},fromNetworkSourceId:{type:Number},fromTerminalId:{type:Number},fromFirstUnit:{type:Number},fromLastUnit:{type:Number}}},read:{source:["fromGlobalId","fromNetworkSourceId","fromTerminalId","fromFirstUnit","fromLastUnit"]}}})],ue.prototype,"fromNetworkElement",void 0),(0,te.Cg)([(0,oe.w)("fromNetworkElement")],ue.prototype,"readFromNetworkElement",null),(0,te.Cg)([(0,le.K)("fromNetworkElement")],ue.prototype,"writeFromNetworkElement",null),(0,te.Cg)([(0,re.MZ)({type:ae,json:{write:{target:{toGlobalId:{type:String},toNetworkSourceId:{type:Number},toTerminalId:{type:Number},toFirstUnit:{type:Number},toLastUnit:{type:Number}}},read:{source:["toGlobalId","toNetworkSourceId","toTerminalId","toFirstUnit","toLastUnit"]}}})],ue.prototype,"toNetworkElement",void 0),(0,te.Cg)([(0,oe.w)("toNetworkElement")],ue.prototype,"readToNetworkElement",null),(0,te.Cg)([(0,le.K)("toNetworkElement")],ue.prototype,"writeToNetworkElement",null),(0,te.Cg)([(0,re.MZ)({type:ie.A,json:{write:!0}})],ue.prototype,"geometry",void 0),(0,te.Cg)([(0,re.MZ)({type:String,json:{write:!0}})],ue.prototype,"errorMessage",void 0),(0,te.Cg)([(0,re.MZ)({type:Number,json:{write:!0}})],ue.prototype,"percentAlong",void 0),(0,te.Cg)([(0,re.MZ)({type:Number,json:{write:!0}})],ue.prototype,"errorCode",void 0),(0,te.Cg)([(0,re.MZ)({type:Boolean,json:{write:!0}})],ue.prototype,"isContentVisible",void 0),(0,te.Cg)([(0,re.MZ)({type:Number,json:{write:!0}})],ue.prototype,"status",void 0),ue=(0,te.Cg)([(0,re.$K)("esri.rest.networks.support.Association")],ue);const de=ue;let ce=class extends ne.o{constructor(e){super(e),this.associations=[]}};function fe(e){const{returnDeletes:t,elements:n,gdbVersion:r,moment:i}=e.toJSON();return{returnDeletes:t,elements:JSON.stringify(n.map(e=>({globalId:e.globalId,networkSourceId:e.networkSourceId,terminalId:e.terminalId}))),types:JSON.stringify(e.types.map(e=>X.toJSON(e))).replaceAll('"connectivity"','"junctionJunctionConnectivity"'),gdbVersion:r,moment:i??Date.now()}}(0,te.Cg)([(0,re.MZ)({type:[de],json:{write:!0}})],ce.prototype,"associations",void 0),ce=(0,te.Cg)([(0,re.$K)("esri.rest.networks.support.QueryAssociationsResult")],ce);var pe,he=n(56507);let me=pe=class extends ne.o{static from(e){return(0,he.PZ)(pe,e)}constructor(e){super(e),this.returnDeletes=!1,this.elements=[],this.types=[],this.gdbVersion=null,this.moment=null}};(0,te.Cg)([(0,re.MZ)({type:Boolean,json:{write:!0}})],me.prototype,"returnDeletes",void 0),(0,te.Cg)([(0,re.MZ)({type:[ae],json:{write:!0}})],me.prototype,"elements",void 0),(0,te.Cg)([(0,re.MZ)({type:[X.apiValues],json:{type:X.jsonValues,read:X.read,write:X.write}})],me.prototype,"types",void 0),(0,te.Cg)([(0,re.MZ)({type:String,json:{write:!0}})],me.prototype,"gdbVersion",void 0),(0,te.Cg)([(0,re.MZ)({type:Date,json:{type:Number,write:{writer:(e,t)=>{t.moment=e?.getTime()}}}})],me.prototype,"moment",void 0),me=pe=(0,te.Cg)([(0,re.$K)("esri.rest.networks.support.QueryAssociationsParameters")],me);var ye=n(54218);function ge(e,t,n){const r=e.getVariables();if(r.length>0){const i={};for(const e of r)i[e]=t.evaluateIdentifier(n,{name:e});e.parameters=i}return e}function we(e,t,n=null){for(const n in e)if(n.toLowerCase()===t.toLowerCase())return e[n];return n}function Fe(e){if(null===e)return null;const t={type:we(e,"type",""),name:we(e,"name","")};if("range"===t.type)t.range=we(e,"range",[]);else{t.codedValues=[];for(const n of we(e,"codedValues",[]))t.codedValues.push({name:we(n,"name",""),code:we(n,"code",null)})}return t}function Ie(e){if(null===e)return null;const t={},n=we(e,"wkt");null!==n&&(t.wkt=n);const r=we(e,"wkid");return null!==r&&(t.wkid=r),t}function be(e){if(null===e)return null;const t={hasZ:we(e,"hasz",!1),hasM:we(e,"hasm",!1)},n=we(e,"spatialreference");null!=n&&(t.spatialReference=Ie(n));const r=we(e,"x",null);if(null!==r)return t.x=r,t.y=we(e,"y",null),t.hasZ&&(t.z=we(e,"z",null)),t.hasM&&(t.m=we(e,"m",null)),t;const i=we(e,"rings",null);if(null!==i)return t.rings=i,t;const a=we(e,"paths",null);if(null!==a)return t.paths=a,t;const s=we(e,"points",null);if(null!==s)return t.points=s,t;for(const n of["xmin","xmax","ymin","ymax","zmin","zmax","mmin","mmax"]){const r=we(e,n,null);null!==r&&(t[n]=r)}return t}function Ae(e){return"utc"===e?.toLowerCase()?"UTC":"unknown"===e?.toLowerCase()?"Unknown":e}function Ne(e){if("async"===e.mode){e.functions.timezone=function(t,n){return e.standardFunctionAsync(t,n,async(e,r,a)=>{if((0,f.B)(a,1,2,n),(0,f.g)(a[0]))return"Unknown";if((0,f.f)(a[0]))return"Unknown";if((0,f.m)(a[0])){if(await a[0].load(),1===a.length||null===a[1])return a[0].datesInUnknownTimezone?Ae("unknown"):Ae(a[0].dateFieldsTimeZone);if(!(a[1]instanceof s.A)||!1===a[1].hasField("type"))throw new l.D$("InvalidParameter",n);const e=a[1].field("type");if(!1===(0,ye.Kg)(e))throw new l.D$("InvalidParameter",n);switch((0,f.s)(e).toLowerCase()){case"preferredtimezone":return Ae(a[0].preferredTimeZone);case"editfieldsinfo":return Ae(a[0].editFieldsInfo?.timeZone??null);case"timeinfo":return Ae(a[0].timeInfo?.timeZone??null);case"field":if(a[1].hasField("fieldname")&&(0,ye.Kg)(a[1].field("fieldname")))return Ae(a[0].fieldTimeZone((0,f.s)(a[1].field("fieldname"))))}throw new l.D$("InvalidParameter",n)}const o=(0,f.U)(a[0],(0,f.P)(t));if(null===o)return null;const u=o.timeZone;return"system"===u?i.lY.systemTimeZoneCanonicalName:"utc"===u.toLowerCase()?"UTC":"unknown"===u.toLowerCase()?"Unknown":u})},e.functions.sqltimestamp=function(t,n){return e.standardFunctionAsync(t,n,async(e,t,r)=>{(0,f.B)(r,1,3,n);const i=r[0];if((0,f.e)(i)){if(1===r.length)return i.toSQLWithKeyword();if(2===r.length)return i.changeTimeZone((0,f.s)(r[1])).toSQLWithKeyword();throw new l.D$("InvalidParameter",n)}if((0,f.f)(i))return i.toSQLWithKeyword();if((0,f.m)(i)){if(3!==r.length)throw new l.D$("InvalidParameter",n);await i.load();const e=(0,f.s)(r[1]);if((0,f.f)(r[2]))return r[2].toSQLWithKeyword();if(!1===(0,f.e)(r[2]))throw new l.D$("InvalidParameter",n);const t=i.fieldTimeZone(e);return null==t?r[2].toSQLWithKeyword():r[2].changeTimeZone(t).toSQLWithKeyword()}throw new l.D$("InvalidParameter",n)})},e.signatures.push({name:"sqltimestamp",min:2,max:4}),e.functions.featuresetbyid=function(t,n){return e.standardFunctionAsync(t,n,(e,t,r)=>{if((0,f.B)(r,2,4,n),(0,f.l)(r[0])){const e=(0,f.s)(r[1]);let t=(0,f.O)(r[2],null);const i=(0,f.N)((0,f.O)(r[3],!0));if(null===t&&(t=["*"]),!1===(0,ye.cy)(t))throw new l.D$("InvalidParameter",n);return r[0].featureSetById(e,i,t)}throw new l.D$("InvalidParameter",n)})},e.signatures.push({name:"featuresetbyid",min:2,max:4});const t=new o.b(["datasource","parent","root"]);e.functions.getfeatureset=function(n,r){return e.standardFunctionAsync(n,r,async(e,i,a)=>{if((0,f.B)(a,1,2,r),(0,f.k)(a[0])){const e=null==a[1]?"datasource":t.lookup((0,f.s)(a[1]));return(0,d.convertToFeatureSet)(a[0].fullSchema(),e,n.lrucache,n.interceptor,n.spatialReference)}throw new l.D$("InvalidParameter",r)})},e.signatures.push({name:"getfeatureset",min:1,max:2}),e.functions.featuresetbyportalitem=function(t,n){return e.standardFunctionAsync(t,n,(e,r,i)=>{if((0,f.B)(i,2,5,n),null===i[0])throw new l.D$("PortalRequired",n);if(i[0]instanceof a.A){const e=(0,f.s)(i[1]),r=(0,f.s)(i[2]);let a=(0,f.O)(i[3],null);const s=(0,f.N)((0,f.O)(i[4],!0));if(null===a&&(a=["*"]),!1===(0,ye.cy)(a))throw new l.D$("InvalidParameter",n);const o=(0,p.RI)(t,i[0]);return(0,d.constructFeatureSetFromPortalItem)(e,r,t.spatialReference,a,s,o,t.lrucache,t.interceptor)}if(!1===(0,ye.Kg)(i[0]))throw new l.D$("PortalRequired",n);const s=(0,f.s)(i[0]),o=(0,f.s)(i[1]);let u=(0,f.O)(i[2],null);const c=(0,f.N)((0,f.O)(i[3],!0));if(null===u&&(u=["*"]),!1===(0,ye.cy)(u))throw new l.D$("InvalidParameter",n);return(0,d.constructFeatureSetFromPortalItem)(s,o,t.spatialReference,u,c,(0,p.Iq)(t),t.lrucache,t.interceptor)})},e.signatures.push({name:"featuresetbyportalitem",min:2,max:5}),e.functions.featuresetbyname=function(t,n){return e.standardFunctionAsync(t,n,(e,t,r)=>{if((0,f.B)(r,2,4,n),(0,f.l)(r[0])){const e=(0,f.s)(r[1]);let t=(0,f.O)(r[2],null);const i=(0,f.N)((0,f.O)(r[3],!0));if(null===t&&(t=["*"]),!1===(0,ye.cy)(t))throw new l.D$("InvalidParameter",n);return r[0].featureSetByName(e,i,t)}throw new l.D$("InvalidParameter",n)})},e.signatures.push({name:"featuresetbyname",min:2,max:4}),e.functions.featureset=function(t,n){return e.standardFunction(t,n,(e,r,i)=>{(0,f.B)(i,1,1,n);const a={layerDefinition:{geometryType:"",objectIdField:"",globalIdField:"",typeIdField:"",hasM:!1,hasZ:!1,fields:[]},featureSet:{geometryType:"",features:[]}};if((0,ye.Kg)(i[0])){const e=JSON.parse(i[0]);void 0!==e.layerDefinition?(a.layerDefinition=e.layerDefinition,a.featureSet=e.featureSet,e.layerDefinition.spatialReference&&(a.layerDefinition.spatialReference=e.layerDefinition.spatialReference)):(a.featureSet.features=e.features,a.featureSet.geometryType=e.geometryType,a.layerDefinition.geometryType=a.featureSet.geometryType,a.layerDefinition.objectIdField=e.objectIdFieldName??"",a.layerDefinition.typeIdField=e.typeIdFieldName,a.layerDefinition.globalIdField=e.globalIdFieldName,a.layerDefinition.fields=e.fields,e.spatialReference&&(a.layerDefinition.spatialReference=e.spatialReference))}else{if(!(i[0]instanceof s.A))throw new l.D$("InvalidParameter",n);{const e=JSON.parse(i[0].castToText(!0)),t=we(e,"layerdefinition");if(null!==t){a.layerDefinition.geometryType=we(t,"geometrytype",""),a.featureSet.geometryType=a.layerDefinition.geometryType,a.layerDefinition.globalIdField=we(t,"globalidfield",""),a.layerDefinition.objectIdField=we(t,"objectidfield",""),a.layerDefinition.typeIdField=we(t,"typeidfield",""),a.layerDefinition.hasZ=!0===we(t,"hasz",!1),a.layerDefinition.hasM=!0===we(t,"hasm",!1);const n=we(t,"spatialreference");n&&(a.layerDefinition.spatialReference=Ie(n));const r=[];for(const e of we(t,"fields",[])){const t={name:we(e,"name",""),alias:we(e,"alias",""),type:we(e,"type",""),nullable:we(e,"nullable",!0),editable:we(e,"editable",!0),length:we(e,"length",null),domain:Fe(we(e,"domain"))};r.push(t)}a.layerDefinition.fields=r;const i=we(e,"featureset");if(i){const e={};for(const t of r)e[t.name.toLowerCase()]=t.name;for(const t of we(i,"features",[])){const n={},r=we(t,"attributes",{});for(const t in r)n[e[t.toLowerCase()]]=r[t];a.featureSet.features.push({attributes:n,geometry:be(we(t,"geometry"))})}}}else{a.layerDefinition.hasZ=!0===we(e,"hasz",!1),a.layerDefinition.hasM=!0===we(e,"hasm",!1),a.layerDefinition.geometryType=we(e,"geometrytype",""),a.featureSet.geometryType=a.layerDefinition.geometryType,a.layerDefinition.objectIdField=we(e,"objectidfieldname",""),a.layerDefinition.typeIdField=we(e,"typeidfieldname","");const t=we(e,"spatialreference");t&&(a.layerDefinition.spatialReference=Ie(t));const r=[],i=we(e,"fields",null);if(!(0,ye.cy)(i))throw new l.D$("InvalidParameter",n);for(const e of i){const t={name:we(e,"name",""),alias:we(e,"alias",""),type:we(e,"type",""),nullable:we(e,"nullable",!0),editable:we(e,"editable",!0),length:we(e,"length",null),domain:Fe(we(e,"domain"))};r.push(t)}a.layerDefinition.fields=r;const s={};for(const e of r)s[e.name.toLowerCase()]=e.name;let o=we(e,"features",null);if((0,ye.cy)(o))for(const e of o){const t={},n=we(e,"attributes",{});for(const e in n)t[s[e.toLowerCase()]]=n[e];a.featureSet.features.push({attributes:t,geometry:be(we(e,"geometry",null))})}else o=null,a.featureSet.features=o}}}if(!1===function(e){return!!e.layerDefinition&&!!e.featureSet&&!1!==function(e){for(const t of["",null,"esriGeometryNull","esriGeometryPoint","esriGeometryPolyline","esriGeometryPolygon","esriGeometryMultipoint","esriGeometryEnvelope"])if(t===e)return!0;return!1}(e.layerDefinition.geometryType)&&!1!==(0,ye.cy)(e.layerDefinition.fields)&&!1!==(0,ye.cy)(e.featureSet.features)}(a))throw new l.D$("InvalidParameter",n);return a.layerDefinition.geometryType||(a.layerDefinition.geometryType="esriGeometryNull"),O.A.create(a,t.spatialReference)})},e.signatures.push({name:"featureset",min:1,max:1}),e.functions.filter=function(t,n){return e.standardFunctionAsync(t,n,async(r,i,a)=>{if((0,f.B)(a,2,2,n),(0,ye.cy)(a[0])||(0,f.j)(a[0])){const e=[];let r,i=a[0];if(i instanceof c.A&&(i=i.toArray()),!(0,f.i)(a[1]))throw new l.D$("InvalidParameter",n);r=a[1].createFunction(t);for(const t of i){const n=r(t);(0,G.$X)(n)?!0===await n&&e.push(t):!0===n&&e.push(t)}return e}if((0,f.m)(a[0])){const n=await a[0].load(),r=I.A.create(a[1],{fieldsIndex:n.getFieldsIndex(),timeZone:n.dateFieldsTimeZoneDefaultUTC}),i=r.getVariables();if(i.length>0){const n={};for(const r of i)n[r]=e.evaluateIdentifier(t,{name:r});r.parameters=n}return new C.A({parentfeatureset:a[0],whereclause:r})}throw new l.D$("InvalidParameter",n)})},e.signatures.push({name:"filter",min:2,max:2}),e.functions.orderby=function(t,n){return e.standardFunctionAsync(t,n,async(e,t,r)=>{if((0,f.B)(r,2,2,n),(0,f.m)(r[0])){const e=new E(r[1]);return new x({parentfeatureset:r[0],orderbyclause:e})}throw new l.D$("InvalidParameter",n)})},e.signatures.push({name:"orderby",min:2,max:2}),e.functions.top=function(t,n){return e.standardFunctionAsync(t,n,async(e,t,r)=>{if((0,f.B)(r,2,2,n),(0,f.m)(r[0]))return new q({parentfeatureset:r[0],topnum:r[1]});if((0,ye.cy)(r[0]))return(0,f.r)(r[1])>=r[0].length?r[0].slice():r[0].slice(0,(0,f.r)(r[1]));if((0,f.j)(r[0]))return(0,f.r)(r[1])>=r[0].length()?r[0].slice():r[0].slice(0,(0,f.r)(r[1]));throw new l.D$("InvalidParameter",n)})},e.signatures.push({name:"top",min:2,max:2}),e.functions.first=function(t,n){return e.standardFunctionAsync(t,n,async(e,r,i)=>{if((0,f.B)(i,1,1,n),(0,f.m)(i[0])){const n=await i[0].first(e.abortSignal);if(null!==n){const e=u.Xj.createFromGraphicLikeObject(n.geometry,n.attributes,i[0],t.timeZone);return e._underlyingGraphic=n,e}return n}return(0,ye.cy)(i[0])?0===i[0].length?null:i[0][0]:(0,f.j)(i[0])?0===i[0].length()?null:i[0].get(0):null})},e.signatures.push({name:"first",min:1,max:1}),e.functions.attachments=function(t,n){return e.standardFunctionAsync(t,n,async(e,r,i)=>{(0,f.B)(i,1,2,n);const a={minsize:-1,maxsize:-1,types:null,returnMetadata:!1};if(i.length>1)if(i[1]instanceof s.A){if(i[1].hasField("minsize")&&(a.minsize=(0,f.r)(i[1].field("minsize"))),i[1].hasField("metadata")&&(a.returnMetadata=(0,f.N)(i[1].field("metadata"))),i[1].hasField("maxsize")&&(a.maxsize=(0,f.r)(i[1].field("maxsize"))),i[1].hasField("types")){const e=(0,f.S)(i[1].field("types"),!1);e.length>0&&(a.types=e)}}else if(null!==i[1])throw new l.D$("InvalidParameter",n);if((0,f.k)(i[0])){const e=i[0]._layer;let n;if((0,f.m)(e))n=e;else{if(null==e||!(0,g.eB)(e))return[];n=(0,d.constructFeatureSet)(e,t.spatialReference,["*"],!0,t.lrucache,t.interceptor)}return await n.load(),n.queryAttachments(i[0].field(n.objectIdField),a.minsize,a.maxsize,a.types,a.returnMetadata)}if(null===i[0])return[];throw new l.D$("InvalidParameter",n)})},e.signatures.push({name:"attachments",min:1,max:2}),e.functions.featuresetbyrelationshipname=function(t,n){return e.standardFunctionAsync(t,n,async(e,r,i)=>{(0,f.B)(i,2,4,n);const a=i[0],s=(0,f.s)(i[1]);let o=(0,f.O)(i[2],null);const u=(0,f.N)((0,f.O)(i[3],!0));if(null===o&&(o=["*"]),!1===(0,ye.cy)(o))throw new l.D$("InvalidParameter",n);if(null===i[0])return null;if(!(0,f.k)(i[0]))throw new l.D$("InvalidParameter",n);const c=a._layer;let p;if((0,f.m)(c))p=c;else{if(null==c||!(0,g.eB)(c))return null;p=(0,d.constructFeatureSet)(c,t.spatialReference,["*"],!0,t.lrucache,t.interceptor)}p=await p.load();const h=p.relationshipMetadata().filter(e=>e.name===s);if(0===h.length)return null;if(void 0!==h[0].relationshipTableId&&null!==h[0].relationshipTableId&&h[0].relationshipTableId>-1)return(0,d.constructFeatureSetFromRelationship)(p,h[0],a.field(p.objectIdField),p.spatialReference,o,u,t.lrucache,t.interceptor);let m=p.serviceUrl();if(!m)return null;m=m.endsWith("/")?m+h[0].relatedTableId.toString():m+"/"+h[0].relatedTableId.toString();const y=await(0,d.constructFeatureSetFromUrl)(m,p.spatialReference,o,u,t.lrucache,t.interceptor);await y.load();let w=y.relationshipMetadata();if(w=w.filter(e=>e.id===h[0].id),!1===a.hasField(h[0].keyField)||null===a.field(h[0].keyField)){const e=await p.getFeatureByObjectId(a.field(p.objectIdField),[h[0].keyField]);if(e){const t=I.A.create(w[0].keyField+"= @id",{fieldsIndex:y.getFieldsIndex(),timeZone:y.dateFieldsTimeZoneDefaultUTC});return t.parameters={id:e.attributes[h[0].keyField]},new C.A({parentfeatureset:y,whereclause:t})}return new P.A({parentfeatureset:y})}const F=I.A.create(w[0].keyField+"= @id",{fieldsIndex:y.getFieldsIndex(),timeZone:y.dateFieldsTimeZoneDefaultUTC});return F.parameters={id:a.field(h[0].keyField)},new C.A({parentfeatureset:y,whereclause:F})})},e.signatures.push({name:"featuresetbyrelationshipname",min:2,max:4}),e.functions.featuresetbyassociation=function(t,n){return e.standardFunctionAsync(t,n,async(e,i,a)=>{(0,f.B)(a,2,3,n);const s=a[0],u=(0,o.B)((0,f.s)((0,f.O)(a[1],""))),c=(0,ye.Kg)(a[2])?(0,f.s)(a[2]):null;if(null===a[0])return null;if(!(0,f.k)(a[0]))throw new l.D$("InvalidParameter",n);const p=s._layer;let h;if((0,f.m)(p))h=p;else{if(null==p||!(0,g.eB)(p))return null;h=(0,d.constructFeatureSet)(p,t.spatialReference,["*"],!0,t.lrucache,t.interceptor)}await h.load();const m=h.serviceUrl(),y=await(0,d.constructAssociationMetaDataFeatureSetFromUrl)(m,t.spatialReference,!0);if(y.unVersion>=8)return await async function(e,t,n,i,a,s){const o=await e.getFeatureSetInfo();if(null===(o?.layerId??null))return null;if(!a.layerIdLookup.get(o.layerId))return null;const u=e.serviceUrl().replace(/\/FeatureServer/i,"/UtilityNetworkServer"),c=[];switch(n){case"connected":c.push("connectivity"),c.push("junction-edge-from-connectivity"),c.push("junction-edge-to-connectivity"),c.push("junction-edge-midspan-connectivity"),c.push("junction-junction-connectivity");break;case"container":case"content":c.push("containment");break;case"structure":case"attached":c.push("attachment");break;case"junctionedge":c.push("junction-edge-from-connectivity"),c.push("junction-edge-to-connectivity");break;case"midspan":c.push("junction-edge-midspan-connectivity");break;default:throw new l.D$("InvalidParameter",s)}let f=null,p=!1;if(null!==i&&""!==i&&void 0!==i){for(const e of a.terminals)e.terminalName===i&&(f=e.terminalId);null===f&&(p=!0)}const h=[];if(!p){const i=new ae({globalId:t.field(e.globalIdField),networkSourceId:a.layerIdLookup.get(o.layerId).sourceId,...f?{terminalId:f}:""}),s=await async function(e,t){const n=(0,ee.Dl)(e),r={...fe(t),f:"json"},i=(0,ee.lF)({...n.query,...r}),a=(0,ee.jV)(i,{method:"post"}),s=`${n.path}/associations/query`,{data:o}=await(0,z.A)(s,a),l=ce.fromJSON(o);return t.types.includes("connectivity")&&(0,H.Lx)(Q.A.getLogger("esri/rest/networks/support/QueryAssociationsParameters"),"types",{replacement:"Please use 'junction-junction-connectivity' instead of 'connectivity'.",see:"https://arcg.is/11Tr8a#types",version:"4.29",warnOnce:!0}),l}(u,new me({types:c,elements:[i]}));let l=0;for(const e of s.associations){let t=null,s="",o="";if(e.fromNetworkElement?.globalId===i.globalId?(t=e.toNetworkElement,o="to"):e.toNetworkElement?.globalId===i.globalId&&(t=e.fromNetworkElement,o="from"),!t)continue;switch(n){case"attached":if("attachment"!==e.associationType)continue;if("to"!==o)continue;break;case"structure":if("attachment"!==e.associationType)continue;if("from"!==o)continue;break;case"container":if("containment"!==e.associationType)continue;if("from"!==o)continue;break;case"content":if("containment"!==e.associationType)continue;if("to"!==o)continue;break;case"connected":break;case"junctionedge":"junction-edge-to-connectivity"===e.associationType?s="to":"junction-edge-from-connectivity"===e.associationType&&(s="from");break;case"midspan":if("junction-edge-midspan-connectivity"!==e.associationType)continue}const u=a.sourceIdLookup.get(t.networkSourceId)?.className??"";h.push(new r.A({geometry:null,attributes:{objectId:l++,globalId:t.globalId,percentAlong:e.percentAlong??0,isContentVisible:e.isContentVisible?0:1,className:u,side:s}}))}}const m=new K.default({source:h,geometryType:null,objectIdField:"objectId",globalIdField:"globalId",fields:[new B.A({name:"objectId",alias:"objectId",type:"oid"}),new B.A({name:"globalId",alias:"globalId",type:"global-id"}),new B.A({name:"percentAlong",alias:"percentAlong",type:"double"}),new B.A({name:"side",alias:"side",type:"string"}),new B.A({name:"isContentVisible",alias:"isContentVisible",type:"integer"}),new B.A({name:"className",alias:"className",type:"string"})]});return(0,d.constructFeatureSet)(m)}(h,s,u,c,y,n);const w=y.associations;if(null==w)return null;let F=null,b=null,C=!1;if(null!==c&&""!==c&&void 0!==c){for(const e of y.terminals)e.terminalName===c&&(b=e.terminalId);null===b&&(C=!0)}const v=w.getFieldsIndex(),x=v.get("TOGLOBALID").name,D=v.get("FROMGLOBALID").name,E=v.get("TOTERMINALID").name,k=v.get("FROMTERMINALID").name,L=v.get("FROMNETWORKSOURCEID").name,U=v.get("TONETWORKSOURCEID").name,Z=v.get("ASSOCIATIONTYPE").name,$=v.get("ISCONTENTVISIBLE").name,j=v.get("OBJECTID").name;for(const e of h.fields)if("global-id"===e.type){F=s.field(e.name);break}let M=null,W=new T(new B.A({name:"percentalong",alias:"percentalong",type:"double"}),I.A.create("0",{fieldsIndex:w.getFieldsIndex(),timeZone:w.dateFieldsTimeZoneDefaultUTC})),R=new T(new B.A({name:"side",alias:"side",type:"string"}),I.A.create("''",{fieldsIndex:w.getFieldsIndex(),timeZone:w.dateFieldsTimeZoneDefaultUTC}));const q="globalid",P="globalId",O={};for(const e in y.lkp)O[e]=y.lkp[e].sourceId;const V=new S(new B.A({name:"classname",alias:"classname",type:"string"}),null,O);let G="";switch(u){case"midspan":{G=`((${x}='${F}') OR ( ${D}='${F}')) AND (${Z} IN (5))`,V.codefield=I.A.create(`CASE WHEN (${x}='${F}') THEN ${L} ELSE ${U} END`,{fieldsIndex:w.getFieldsIndex(),timeZone:w.dateFieldsTimeZoneDefaultUTC});const e=(0,g.ke)(_.findField(w.fields,D));e.name=q,e.alias=q,M=new T(e,I.A.create(`CASE WHEN (${D}='${F}') THEN ${x} ELSE ${D} END`,{fieldsIndex:w.getFieldsIndex(),timeZone:w.dateFieldsTimeZoneDefaultUTC})),W=y.unVersion>=4?new A(_.findField(w.fields,v.get("PERCENTALONG").name)):new T(new B.A({name:"percentalong",alias:"percentalong",type:"double"}),I.A.create("0",{fieldsIndex:w.getFieldsIndex(),timeZone:w.dateFieldsTimeZoneDefaultUTC}));break}case"junctionedge":{G=`((${x}='${F}') OR ( ${D}='${F}')) AND (${Z} IN (4,6))`,V.codefield=I.A.create(`CASE WHEN (${x}='${F}') THEN ${L} ELSE ${U} END`,{fieldsIndex:w.getFieldsIndex(),timeZone:w.dateFieldsTimeZoneDefaultUTC});const e=(0,g.ke)(_.findField(w.fields,D));e.name=q,e.alias=q,M=new T(e,I.A.create(`CASE WHEN (${D}='${F}') THEN ${x} ELSE ${D} END`,{fieldsIndex:w.getFieldsIndex(),timeZone:w.dateFieldsTimeZoneDefaultUTC})),R=new T(new B.A({name:"side",alias:"side",type:"string"}),I.A.create(`CASE WHEN (${Z}=4) THEN 'from' ELSE 'to' END`,{fieldsIndex:w.getFieldsIndex(),timeZone:w.dateFieldsTimeZoneDefaultUTC}));break}case"connected":{let e=`${x}='@T'`,t=`${D}='@T'`;null!==b&&(e+=` AND ${E}=@A`,t+=` AND ${k}=@A`),G="(("+e+") OR ("+t+"))",G=(0,f.a1)(G,"@T",F??""),e=(0,f.a1)(e,"@T",F??""),null!==b&&(e=(0,f.a1)(e,"@A",b.toString()),G=(0,f.a1)(G,"@A",b.toString())),V.codefield=I.A.create("CASE WHEN "+e+` THEN ${L} ELSE ${U} END`,{fieldsIndex:w.getFieldsIndex(),timeZone:w.dateFieldsTimeZoneDefaultUTC});const n=(0,g.ke)(_.findField(w.fields,D));n.name=q,n.alias=q,M=new T(n,I.A.create("CASE WHEN "+e+` THEN ${D} ELSE ${x} END`,{fieldsIndex:w.getFieldsIndex(),timeZone:w.dateFieldsTimeZoneDefaultUTC}));break}case"container":G=`${x}='${F}' AND ${Z} = 2`,null!==b&&(G+=` AND ${E} = `+b.toString()),V.codefield=L,G="( "+G+" )",M=new N(_.findField(w.fields,D),q,q);break;case"content":G=`(${D}='${F}' AND ${Z} = 2)`,null!==b&&(G+=` AND ${k} = `+b.toString()),V.codefield=U,G="( "+G+" )",M=new N(_.findField(w.fields,x),q,q);break;case"structure":G=`(${x}='${F}' AND ${Z} = 3)`,null!==b&&(G+=` AND ${E} = `+b.toString()),V.codefield=L,G="( "+G+" )",M=new N(_.findField(w.fields,D),q,P);break;case"attached":G=`(${D}='${F}' AND ${Z} = 3)`,null!==b&&(G+=` AND ${k} = `+b.toString()),V.codefield=U,G="( "+G+" )",M=new N(_.findField(w.fields,x),q,P);break;default:throw new l.D$("InvalidParameter",n)}return C&&(G="1 <> 1"),new _({parentfeatureset:w,adaptedFields:[new A(_.findField(w.fields,j)),new A(_.findField(w.fields,$)),M,R,V,W],extraFilter:G?I.A.create(G,{fieldsIndex:w.getFieldsIndex(),timeZone:w.dateFieldsTimeZoneDefaultUTC}):null})})},e.signatures.push({name:"featuresetbyassociation",min:2,max:6}),e.functions.groupby=function(t,n){return e.standardFunctionAsync(t,n,async(r,i,a)=>{if((0,f.B)(a,3,3,n),!(0,f.m)(a[0]))throw new l.D$("InvalidParameter",n);const o=await a[0].load(),u=[],d=[];let c=!1,p=[];if((0,ye.Kg)(a[1]))p.push(a[1]);else if(a[1]instanceof s.A)p.push(a[1]);else if((0,ye.cy)(a[1]))p=a[1];else{if(!(0,f.j)(a[1]))throw new l.D$("InvalidParameter",n);p=a[1].toArray()}for(const e of p)if((0,ye.Kg)(e)){const t=I.A.create((0,f.s)(e),{fieldsIndex:o.getFieldsIndex(),timeZone:o.dateFieldsTimeZoneDefaultUTC}),n=!0===(0,w.DA)(t)?(0,f.s)(e):"%%%%FIELDNAME";u.push({name:n,expression:t}),"%%%%FIELDNAME"===n&&(c=!0)}else{if(!(e instanceof s.A))throw new l.D$("InvalidParameter",n);{const t=e.hasField("name")?e.field("name"):"%%%%FIELDNAME",r=e.hasField("expression")?e.field("expression"):"";if("%%%%FIELDNAME"===t&&(c=!0),!t)throw new l.D$("InvalidParameter",n);u.push({name:t,expression:I.A.create(r||t,{fieldsIndex:o.getFieldsIndex(),timeZone:o.dateFieldsTimeZoneDefaultUTC})})}}if(p=[],(0,ye.Kg)(a[2]))p.push(a[2]);else if((0,ye.cy)(a[2]))p=a[2];else if((0,f.j)(a[2]))p=a[2].toArray();else{if(!(a[2]instanceof s.A))throw new l.D$("InvalidParameter",n);p.push(a[2])}for(const e of p){if(!(e instanceof s.A))throw new l.D$("InvalidParameter",n);{const t=e.hasField("name")?e.field("name"):"",r=e.hasField("statistic")?e.field("statistic"):"",i=e.hasField("expression")?e.field("expression"):"";if(!(t&&r&&(0,ye.Kg)(r)&&i))throw new l.D$("InvalidParameter",n);d.push({name:t,statistic:r,expression:I.A.create(i,{fieldsIndex:o.getFieldsIndex(),timeZone:o.dateFieldsTimeZoneDefaultUTC})})}}if(c){const e={};for(const t of o.fields)e[t.name.toLowerCase()]=1;for(const t of u)"%%%%FIELDNAME"!==t.name&&(e[t.name.toLowerCase()]=1);for(const t of d)"%%%%FIELDNAME"!==t.name&&(e[t.name.toLowerCase()]=1);let t=0;for(const n of u)if("%%%%FIELDNAME"===n.name){for(;1===e["field_"+t.toString()];)t++;e["field_"+t.toString()]=1,n.name="FIELD_"+t.toString()}}for(const n of u)ge(n.expression,e,t);for(const n of d)ge(n.expression,e,t);return new W({parentfeatureset:a[0],groupbyfields:u,statsfields:d})})},e.signatures.push({name:"groupby",min:3,max:3}),e.functions.distinct=function(t,n){return e.standardFunctionAsync(t,n,async(r,i,a)=>{if((0,f.m)(a[0])){(0,f.B)(a,2,2,n);const r=await a[0].load(),i=[];let o=[];if((0,ye.Kg)(a[1]))o.push(a[1]);else if(a[1]instanceof s.A)o.push(a[1]);else if((0,ye.cy)(a[1]))o=a[1];else{if(!(0,f.j)(a[1]))throw new l.D$("InvalidParameter",n);o=a[1].toArray()}let u=!1;for(const e of o)if((0,ye.Kg)(e)){const t=I.A.create((0,f.s)(e),{fieldsIndex:r.getFieldsIndex(),timeZone:r.dateFieldsTimeZoneDefaultUTC}),n=!0===(0,w.DA)(t)?(0,f.s)(e):"%%%%FIELDNAME";i.push({name:n,expression:t}),"%%%%FIELDNAME"===n&&(u=!0)}else{if(!(e instanceof s.A))throw new l.D$("InvalidParameter",n);{const t=e.hasField("name")?e.field("name"):"%%%%FIELDNAME",a=e.hasField("expression")?e.field("expression"):"";if("%%%%FIELDNAME"===t&&(u=!0),!t)throw new l.D$("InvalidParameter",n);i.push({name:t,expression:I.A.create(a||t,{fieldsIndex:r.getFieldsIndex(),timeZone:r.dateFieldsTimeZoneDefaultUTC})})}}if(u){const e={};for(const t of r.fields)e[t.name.toLowerCase()]=1;for(const t of i)"%%%%FIELDNAME"!==t.name&&(e[t.name.toLowerCase()]=1);let t=0;for(const n of i)if("%%%%FIELDNAME"===n.name){for(;1===e["field_"+t.toString()];)t++;e["field_"+t.toString()]=1,n.name="FIELD_"+t.toString()}}for(const n of i)ge(n.expression,e,t);return new W({parentfeatureset:a[0],groupbyfields:i,statsfields:[]})}return function(e){if(1===e.length){if((0,ye.cy)(e[0]))return(0,V.t)("distinct",e[0],-1);if((0,f.j)(e[0]))return(0,V.t)("distinct",e[0].toArray(),-1)}return(0,V.t)("distinct",e,-1)}(a)})},e.functions.getfeaturesetinfo=function(t,n){return e.standardFunctionAsync(t,n,async(e,r,i)=>{if((0,f.B)(i,1,1,n),!(0,f.m)(i[0]))return null;const a=await i[0].getFeatureSetInfo();return a?s.A.convertObjectToArcadeDictionary({layerId:a.layerId,layerName:a.layerName,itemId:a.itemId,serviceLayerUrl:a.serviceLayerUrl,webMapLayerId:a.webMapLayerId??null,webMapLayerTitle:a.webMapLayerTitle??null,className:null,objectClassId:null},(0,f.P)(t),!1,!1):null})},e.signatures.push({name:"getfeaturesetinfo",min:1,max:1}),e.functions.filterbysubtypecode=function(t,n){return e.standardFunctionAsync(t,n,async(e,t,r)=>{if((0,f.B)(r,2,2,n),(0,f.m)(r[0])){const e=await r[0].load(),t=r[1];if(!(0,ye.Fq)(t))throw new l.D$("InvalidParameter",n);if(e.subtypeField){const t=I.A.create(`${e.subtypeField}= ${r[1]}`,{fieldsIndex:e.getFieldsIndex(),timeZone:e.dateFieldsTimeZoneDefaultUTC});return new C.A({parentfeatureset:r[0],whereclause:t})}if(null===e.typeIdField||""===e.typeIdField)throw new l.D$("FeatureSetDoesNotHaveSubtypes",n);const i=I.A.create(`${e.typeIdField}= ${r[1]}`,{fieldsIndex:e.getFieldsIndex(),timeZone:e.dateFieldsTimeZoneDefaultUTC});return new C.A({parentfeatureset:r[0],whereclause:i})}throw new l.D$("InvalidParameter",n)})},e.signatures.push({name:"filterbysubtypecode",min:2,max:2})}}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7444],{70007(e,t,n){n.d(t,{c:()=>i});var s=n(55537);function i(e,t){const n=e.getGeometryType();return n===s.G.enumPoint?e:(0,s.n)(n)?function(e){if(function(e){for(let t=0,n=e.getPathCount();t<n;t++){const n=e.getPathSize(t);if(0===n)return!1;if(1===n){if(0===e.getSegmentCountPath(t))return!1;if(e.getSegmentType(e.getPathStart(t))===s.G.enumLine)return!1;if(!e.isClosedPath(t))return!1}}return!0}(e))return e;const t=e.createInstance();for(let n=0,i=e.getPathCount();n<i;n++){const i=e.getPathSize(n);if(0!==i){if(1===i){if(0===e.getSegmentCountPath(n))continue;if(e.getSegmentType(e.getPathStart(n))===s.G.enumLine)continue;if(!e.isClosedPath(n))continue}t.addPath(e,n,!0)}}return t}(e):n===s.G.enumMultiPoint||n===s.G.enumEnvelope?e:n===s.G.enumMultipatch?((0,s.t)("not implemented for multipatch"),e):e}},37444(e,t,n){n.r(t),n.d(t,{OperatorGeodesicBuffer:()=>k});var s=n(61691),i=n(55537),r=n(79187),m=n(15756),o=n(5482),a=n(88885),h=n(95213),c=n(11878),u=n(83661),l=n(31139),_=n(70007),f=n(5247),d=n(76061);class g{m_sr=null;m_gcs=null;m_transform=null;m_progressTracker;m_a=0;m_eSquared=0;m_rpu=0;m_radTolerance=0;m_q90=0;m_gcs90=0;m_gcs180=0;m_gcs360=0;m_gcs60=0;m_ellipticToGeodesicMaxRatio=0;m_curveType=0;m_bShapePreserving=!1;m_distance=0;m_absDistance=0;m_convergenceOffset=0;m_cornerStep=0;m_segmentStep=0;constructor(e){this.m_progressTracker=e}bufferPolygon(e){const t=new a.P,n=new G(this,e,t);return this.processGnomonicBufferPiecesCursor(!0,n)}bufferPolyline(e){const t=new G(this,e,null);return this.processGnomonicBufferPiecesCursor(!0,t)}bufferMultiPoint(e){const t=new T(this,e);return this.processGnomonicBufferPiecesCursor(!1,t)}bufferPoint(e){const t=e.getXY();t.scale(this.m_rpu);let n=new a.P;if(this.bufferPoint2D(t,!1,n)){const e=(0,h.e)(null,n,!0);n=(0,m.u)(n,e,!0,!0,-1,this.m_progressTracker,0,!1)}return n=(new m.O).foldInto360RangeGeodetic(n,this.m_gcs,2),n}processGnomonicBufferPiecesCursor(e,t){const n=t;let s=n.getGnomonic();const i=(0,m.S)((0,m.U)());let o=new m.V,a=(new m.t).executeMany(o,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=n.next());){if(p=n.getGnomonic(),p!==s){if(null!==s){let t=a.next();if(o=null,a=null,null!=t){const n=(0,h.e)(i,t,!0),r=(0,h.f)(n);t=s.unproject(t,r,this.m_progressTracker),this.putInGridCursors(e,t,i,!0,l,_,f,d,g)}}null!==p&&(o=new m.V,a=(new m.t).executeMany(o,i,this.m_progressTracker,2)),s=p}if(n.isRunningInGnomonic()){if(p.project(P),n.needsSimplify()){const e=(0,h.e)(null,P,!0);P=(0,m.u)(P,e,!0,!0,-1,this.m_progressTracker,0,!1)}o.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 s=n.m_densified;if(n.m_densified=null,null!==s){const n=new c.T;n.scale(1/this.m_rpu,1/this.m_rpu),s.applyTransformation(n),this.m_distance>0?this.putInGridCursors(e,s,i,!1,l,_,f,d,g):(this.processInGrid(e,s,!1,l,_,f,r),t=!0)}}const u=new m.V,P=(new m.t).executeMany(u,this.m_gcs,this.m_progressTracker,2);if(null!==a){let t=a.next();o=null,a=null;const n=(0,h.e)(i,t,!0),r=(0,h.f)(n);t=s.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 n=g[e].next();g[e]=null,d[e]=null,t&&null!==r[e]&&(n=(new m.B).execute(r[e],n,i,this.m_progressTracker));const s=(0,h.e)(i,n,!0),o=(0,h.f)(s);n=f[e].unproject(n,o,this.m_progressTracker),n=(new m.f).execute(n,this.m_gcs,!0,this.m_progressTracker),u.tick(D(n)),P.tock()}x=P.next()}else{let t,r=!1;if(e){let e=n.m_densified;if(n.m_densified=null,null!==e){const n=new c.T;n.scale(1/this.m_rpu,1/this.m_rpu),e.applyTransformation(n),p.project(e);const s=(0,h.e)(null,e,!0);e=(0,m.u)(e,s,!1,!0,-1,this.m_progressTracker,0,!1),this.m_distance>0?(o.tick(D(e)),a.tock()):(t=e,r=!0)}}let u=a.next();o=null,a=null,r&&(u=(new m.B).execute(t,u,i,this.m_progressTracker));const l=(0,h.e)(i,u,!0),_=(0,h.f)(l);x=s.unproject(u,_,this.m_progressTracker),x=(new m.f).execute(x,this.m_gcs,!0,this.m_progressTracker)}return x=(new m.O).foldInto360RangeGeodetic(x,this.m_gcs,2),x}putInGridCursors(e,t,n,s,i,r,o,a,h){const c=[null,null,null,null,null,null];this.processInGrid(e,t,s,i,r,o,c);for(let e=0;e<6;e++)null!==c[e]&&(null===a[e]&&(a[e]=new m.V,h[e]=(new m.t).executeMany(a[e],n,this.m_progressTracker,2)),a[e].tick(D(c[e])),h[e].tock())}processInGrid(e,t,n,s,i,r,o){const a=.01,c=this.insertGeodeticPointsAlongGrid(t,i,a);for(let e=0;e<6;e++){if(s[e])continue;const _=i[e].clone();_.inflateCoords(a,a);const f=(0,h.h)(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 n=new u.P;n.setAdd(i[e].getCenter(),t),r[e]=v(this.m_gcs,n)}r[e].project(g);const t=(0,h.e)(null,g,!0);g=(0,m.u)(g,t,n,!0,-1,this.m_progressTracker,0,!1),o[e]=g}}}insertGeodeticPointsAlongGrid(e,t,n){const s=r.Envelope2D.construct(t[3].xmin,t[3].ymin,t[2].xmax,t[2].ymax),i=(0,m.W)(this.m_gcs,s,e,!0,this.m_progressTracker),o=new a.E,h=o.addGeometry(i);return(0,m.X)(o,h,this.m_gcs,0,2,!0,t[0].xmax+n),(0,m.X)(o,h,this.m_gcs,0,2,!0,t[1].xmax+n),(0,m.X)(o,h,this.m_gcs,0,2,!1,t[1].ymin+n),0!==n&&((0,m.X)(o,h,this.m_gcs,0,2,!0,t[0].xmax-n),(0,m.X)(o,h,this.m_gcs,0,2,!0,t[1].xmax-n),(0,m.X)(o,h,this.m_gcs,0,2,!1,t[1].ymin-n)),o.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,n,s,i,r){const o=e[0],a=e.at(-1),h=o.y<a.y?o.y:a.y,c=o.y>a.y?o.y:a.y,l=m.M.q(this.m_a,this.m_eSquared,h),_=m.M.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=n-u.l,d=s+u.l,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,o,f,g,a,d,S,C),b(this.m_a,this.m_eSquared,this.m_rpu,this.m_absDistance,a,y,d,o,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 G=0;G=p(this.m_a,this.m_eSquared,this.m_rpu,this.m_absDistance,this.m_curveType,e,f,d,i,G,r),G=x(this.m_a,this.m_eSquared,this.m_rpu,this.m_absDistance,a,d,y,this.m_cornerStep,i,G,r,S[0],C[0]),G=p(this.m_a,this.m_eSquared,this.m_rpu,this.m_absDistance,this.m_curveType,I,y,P,i,G,r),G=x(this.m_a,this.m_eSquared,this.m_rpu,this.m_absDistance,o,g,f,this.m_cornerStep,i,G,r,w[0],v[0]);let T=!1;return i||(T=this.checkAndPrepForPole(r)),D||T}bufferPoint2D(e,t,n){n.setEmpty(),n.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,n);let s=!1;return t||(s=this.checkAndPrepForPole(n)),s}checkAndPrepForPole(e){const t=this.checkAndPrepForPoleTouch(e),n=this.checkAndPrepForPoleWrap(e);return t||n}checkAndPrepForPoleTouch(e){const t=new r.Envelope2D;return e.queryEnvelope(t),!(!(0,m.Y)(t.ymax,this.m_gcs90)&&!(0,m.Y)(t.ymin,-this.m_gcs90)||(this.prepPoleTouch(e),0))}checkAndPrepForPoleWrap(e){const t=e.getXY(0),n=e.getXY(e.getPointCount()-1);return Math.abs(t.x-n.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 n=e.getPathStart(0),s=e.getPathEnd(0),i=s-n;let r=-1;for(r=n;r<s;r++){const t=e.getXY(r),n=(0,m.Y)(t.y,this.m_gcs90),s=(0,m.Y)(t.y,-this.m_gcs90);if(!n&&!s)break}let o=r,h=!1,c=Number.NaN;do{const s=e.getXY(o),r=(0,m.Y)(s.y,this.m_gcs90),a=(0,m.Y)(s.y,-this.m_gcs90),l=n+(o+1-n)%i;if(r||a){let n=u.P.construct(c,s.y);t.insertPoint2D(0,-1,n);const i=e.getXY(l),r=(0,m.Y)(i.y,this.m_gcs90),o=(0,m.Y)(i.y,-this.m_gcs90);r||o||(n=u.P.construct(i.x,s.y),h?t.setXY(t.getPointCount()-1,n):t.insertPoint2D(0,-1,n)),h=!0}else t.insertPoint2D(0,-1,s),c=s.x,h=!1;o=l}while(o!==r);e.setEmpty(),e.add(t,!1)}prepSinglePoleWrap(e){const t=new a.P,n=new a.P,s=new c.T,i=e.getXY(e.getPathStart(0)),o=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>o.x?(p=-_,x=this.m_gcs90):(p=_,x=-this.m_gcs90),s.setShiftCoords(p,0),t.addPath(e,0,!0),n.add(t,!1);const b=new h.P;for(let e=0;e<P;e++)n.applyTransformation(s),n.getPointByVal(0,b),t.lineToPoint(b),t.addSegmentsFromPath(n,0,0,n.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&&(s.setShiftCoords(D*_,0),t.applyTransformation(s));const G=new a.E,T=G.addGeometry(t);(0,m.X)(G,T,this.m_gcs,0,2,!0,d.xmin),(0,m.X)(G,T,this.m_gcs,0,2,!0,d.xmax);const k=G.getGeometry(T),M=(0,h.h)(k,d);M.inflateCoords(0,1);const N=(0,h.c)(null,M,!0).total(),E=(0,l.c)(k,d,N,Number.NaN,this.m_progressTracker);e.setEmpty(),e.add(E,!1)}prepDoublePoleWrap(e){const t=this.m_gcs360,n=this.m_gcs180,s=new r.Envelope2D;s.setCoords({xmin:-this.m_gcs180,ymin:-this.m_gcs90,xmax:this.m_gcs180,ymax:this.m_gcs90});const i=s.getCenter().x,o=new r.Envelope2D;e.queryPathEnvelope(0,o);let _,f=0,d=o.getCenter().x;if(d-i>n?f=-Math.ceil((d-i-n)/t):i-d>n&&(f=Math.ceil((i-d-n)/t)),0!==f){const n=new c.T;n.setShiftCoords(f*t,0),e.getImpl().applyTransformationToPath(n,0),e.queryPathEnvelope(0,o),d=o.getCenter().x}const g=new r.Envelope2D;s.containsExclusiveEnvelope(o)?(_=!1,g.setCoords({env2D:s})):(_=!0,g.setCoords({env2D:s}),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 n=new c.T;d<i?n.setShiftCoords(t,0):n.setShiftCoords(-t,0),e.getImpl().applyTransformationToPath(n,0),P.addPath(e,0,!0);const r=new a.E,o=r.addGeometry(P);(0,m.X)(r,o,this.m_gcs,0,2,!0,s.xmin),(0,m.X)(r,o,this.m_gcs,0,2,!0,s.xmax),P=r.getGeometry(o);const u=(0,h.h)(P,s);u.inflateCoords(0,1);const _=(0,h.c)(null,u,!0).total();P=(0,l.c)(P,s,_,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 n=new u.P;n.setCoords(0,10*this.m_rpu);const s=0;let i=45*this.m_rpu;const r=(0,o.mS)(e,new u.S(new m.Z,new m.Z),!1),a=(0,o.mS)(e,new u.S(new m.Z,new m.Z),!1),h=(0,o.mS)(e,new u.S(new m.Z,new m.Z),!1),c=(0,o.mS)(e,new u.S(new m.Z,new m.Z),!1),l=new u.P,_=new u.P,f=new u.P,d=new u.P;for(m._.geodesicCoordinate(this.m_a,this.m_eSquared,n.x,n.y,t,s,r.at(0),r.at(1)),l.setCoords(r.at(0).val,r.at(1).val),m._.geodesicCoordinate(this.m_a,this.m_eSquared,n.x,n.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*(s+i);m._.geodesicCoordinate(this.m_a,this.m_eSquared,n.x,n.y,t,r,h.at(0),h.at(1)),f.setCoords(h.at(0).val,h.at(1).val);const u=(0,o.mS)(e,new m.Z,!1),g=(0,o.mS)(e,new m.Z,!1);m._.geodeticDistance(this.m_a,this.m_eSquared,l.x,l.y,_.x,_.y,u,g,null,2),m._.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,o.mS)(e,new m.Z,!1);if(m._.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,m._.geodesicCoordinate(this.m_a,this.m_eSquared,n.x,n.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,o.hk)(e)}}const g=i-s,P=2*Math.PI/Math.ceil(2*Math.PI/g);this.m_cornerStep=P}catch(t){e.error=t,e.hasError=!0}finally{(0,o.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 n=new u.P,s=new u.P;n.setCoords(0,10*this.m_rpu),s.setCoords(10*this.m_rpu,10*this.m_rpu);const i=(0,o.mS)(e,new m.Z,!1),r=(0,o.mS)(e,new m.Z,!1),a=(0,o.mS)(e,new m.Z,!1);m._.geodeticDistance(this.m_a,this.m_eSquared,n.x,n.y,s.x,s.y,a,i,r,this.m_curveType);const h=(0,o.mS)(e,new u.S(new m.Z,new m.Z),!1),c=(0,o.mS)(e,new u.S(new m.Z,new m.Z),!1),l=new u.P,_=(0,o.mS)(e,new m.Z,!1),f=(0,o.mS)(e,new u.S(new m.Z,new m.Z),!1),d=(0,o.mS)(e,new u.S(new m.Z,new m.Z),!1),g=(0,o.mS)(e,new u.S(new m.Z,new m.Z),!1),P=(0,o.mS)(e,new u.S(new m.Z,new m.Z),!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,G=a.val;for(m._.geodesicCoordinate(this.m_a,this.m_eSquared,n.x,n.y,t,D,f.at(0),f.at(1)),p.setCoords(f.at(0).val,f.at(1).val),m._.geodesicCoordinate(this.m_a,this.m_eSquared,s.x,s.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);m._.geodeticCoordinate(this.m_a,this.m_eSquared,n.x,n.y,i*G,w,h.at(0),h.at(1),this.m_curveType),l.setCoords(h.at(0).val,h.at(1).val),m._.geodeticDistance(this.m_a,this.m_eSquared,n.x,n.y,l.x,l.y,null,null,_,this.m_curveType);const r=_.val+.5*Math.PI;m._.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,o.mS)(e,new m.Z,!1),u=(0,o.mS)(e,new m.Z,!1);m._.geodeticDistance(this.m_a,this.m_eSquared,p.x,p.y,x.x,x.y,a,u,null,2),m._.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,o.mS)(e,new m.Z,!1);if(m._.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,m._.geodeticCoordinate(this.m_a,this.m_eSquared,n.x,n.y,C*G,w,c.at(0),c.at(1),this.m_curveType),s.setCoords(c.at(0).val,c.at(1).val);const i=(0,o.mS)(e,new m.Z,!1);m._.geodeticDistance(this.m_a,this.m_eSquared,n.x,n.y,s.x,s.y,null,null,i,this.m_curveType);const r=i.val+.5*Math.PI;m._.geodesicCoordinate(this.m_a,this.m_eSquared,s.x,s.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,o.hk)(e)}}}catch(t){e.error=t,e.hasError=!0}finally{(0,o.hk)(e)}}let T=C*G;T>1e5&&(T=1e5),this.m_segmentStep=T}catch(t){e.error=t,e.hasError=!0}finally{(0,o.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,n,s,o,c,l){if(e.isEmpty())return new a.P({vd:e.getDescription()});let _=e;if((0,i.l)(_)){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,m.a)(t,d.m_gcs,null);const P=(0,m.$)();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=m.M.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===n?(d.m_curveType=2,d.m_bShapePreserving=!0):(d.m_curveType=n,d.m_bShapePreserving=!1),d.m_distance=s,d.m_absDistance=Math.abs(s),Number.isNaN(o)||o<=0?d.setConvergenceOffset():d.m_convergenceOffset=Math.max(o,.001),d.m_convergenceOffset/=c;let b,y=_.getGeometryType();if((0,i.m)(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 n=(0,h.f)((0,h.c)(d.m_sr,p,!0));if(t.minDimension()<=n)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.j)(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,m.N)(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.n)(y)){const e=(0,m.N)(b,t,4,Number.NaN,d.m_convergenceOffset,l);b=(new m.O).execute(e,d.m_transform,l)}else b=(new m.O).execute(b,d.m_transform,l);if(b=(0,m.Q)(b,d.m_gcs),b.isEmpty())return new a.P({vd:b.getDescription()});!d.m_bShapePreserving&&(0,i.n)(y)&&(b=(0,m.R)(d.m_rpu,b)),b=function(e,t){const n=e.getGeometryType();let s;if(s=(0,i.n)(n)?e.getPathCount():n===i.G.enumMultiPoint?e.getPointCount():1,1===s)return e;const m=[],o=[];for(let a=0;a<s;a++){m.push(a);const s=new u.P;if((0,i.n)(n)){const t=new r.Envelope2D;e.queryPathEnvelope(a,t),s.assign(t.getCenter())}else s.assign(e.getXY(a));const h=t.toGeohash(s);o.push(h)}m.sort((e,t)=>o[e]<o[t]?-1:o[e]>o[t]?1:0);const a=e.createInstance();for(let t=0;t<s;t++){const s=m[t];(0,i.n)(n)?a.addPath(e,s,!0):a.addPoints(e,s,s+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 m.O).execute(S,d.m_transform.getInverse(),l);return C.mergeVertexDescription(b.getDescription()),C}function p(e,t,n,s,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(n));const g=(0,o.mS)(f,new m.Z,!1),P=(0,o.mS)(f,new u.S(new m.Z,new m.Z),!1),p=new u.P,x=new u.P,b=r.at(-1),S=1/n;for(let n=0;n<r.length;n++){const o=r[n];let u;0===n?u=a:n===r.length-1?u=h:(m._.geodeticDistance(e,t,b.x,b.y,o.x,o.y,null,null,g,i),u=g.val-.5*Math.PI),m._.geodesicCoordinate(e,t,o.x,o.y,s,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(o.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,o.hk)(f)}}function x(e,t,n,s,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,o.mS)(g,new u.S(new m.Z,new m.Z),!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(n));let S=Math.ceil(r/h),C=S++*h;C===r&&(C=S++*h);let w=r;const v=1/n;for(;C<a+h&&(w<f&&f<C?(C=f,S--):w<d&&d<C&&(C=d,S--),!(C>=a));)m._.geodesicCoordinate(e,t,i.x,i.y,s,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,o.hk)(g)}}function b(e,t,n,s,i,r,a,h,c,l,_){const f={stack:[],error:void 0,hasError:!1};try{const n=new u.P,d=new u.P,g=(0,o.mS)(f,new u.S(new m.Z,new m.Z),!1);m._.geodesicCoordinate(e,t,i.x,i.y,s,r,g.at(0),g.at(1)),n.setCoords(g.at(0).val,g.at(1).val),m._.geodesicCoordinate(e,t,i.x,i.y,s,a,g.at(0),g.at(1)),d.setCoords(g.at(0).val,g.at(1).val);const P=(0,o.mS)(f,new m.Z,!1);for(m._.geodeticDistance(e,t,h.x,h.y,n.x,n.y,null,P,null,0),l[0]=P.val,m._.geodeticDistance(e,t,h.x,h.y,d.x,d.y,null,P,null,0),_[0]=P.val;l[0]<=_[0];)l[0]+=u.n;for(;l[0]>_[0];)l[0]-=u.n;for(;l[0]>=c;)l[0]-=u.n,_[0]-=u.n;for(;l[0]<c;)l[0]+=u.n,_[0]+=u.n}catch(e){f.error=e,f.hasError=!0}finally{(0,o.hk)(f)}}function y(e,t,n,s){if(Number.isNaN(n)){for(;s+t-e>Math.PI;)s-=u.n;for(;e-(s+t)>Math.PI;)s+=u.n;return s}return s+t-n>Math.PI?s-=u.n:n-(s+t)>Math.PI&&(s+=u.n),s}function S(e,t,n,s,i,r){const a={stack:[],error:void 0,hasError:!1};try{if(s>=r)return!1;const h=n[0],c=n.at(-1),u=(0,o.mS)(a,new m.Z,!1),l=(0,o.mS)(a,new m.Z,!1),_=(0,o.mS)(a,new m.Z,!1);m._.greatEllipticDistance(e,t,i.x,i.y,h.x,h.y,u,null,null),m._.greatEllipticDistance(e,t,i.x,i.y,c.x,c.y,l,null,null),m._.greatEllipticDistance(e,t,h.x,h.y,c.x,c.y,_,null,null);let f=Math.min(u.val,l.val)+_.val,d=f+s;if(d<r)return!0;const g=(0,o.mS)(a,new m.Z,!1);f=Math.max(u.val,l.val);for(let s=1;s<n.length-1;s++){const r=n[s];m._.greatEllipticDistance(e,t,i.x,i.y,r.x,r.y,g,null,null),g.val>f&&(f=g.val)}return d=f+s,d<r}catch(e){a.error=e,a.hasError=!0}finally{(0,o.hk)(a)}}function C(e,t,n,s,i,r,o,a){let h;if(s.length%2==0){const e=s.length>>1,t=s[e],n=s[e-1];h=u.P.lerp(t,n,.5)}else h=s[s.length-1>>1].clone();const c=h.clone(),l=(0,m.a0)(e,t,c,75/180*Math.PI);return!!S(e,t,s,i,c,l)&&(null!==r&&(r.setCoordsPoint2D(h),r.scale(1/n)),null!==o&&o.setCoordsPoint2D(c),null!==a&&(a[0]=l),!0)}function w(e,t,n,s,i,r){const a={stack:[],error:void 0,hasError:!1};try{if(s>=r)return!1;const h=(0,o.mS)(a,new m.Z,!1);return m._.greatEllipticDistance(e,t,i.x,i.y,n.x,n.y,h,null,null),h.val+s<r}catch(e){a.error=e,a.hasError=!0}finally{(0,o.hk)(a)}}function v(e,t){return new m.a5(e,t)}function D(e){return(0,h.j)(e,0)||(0,h.s)(e,0),e}class I{m_bRunningInGnomonic=!1;m_bNeedsSimplify=!1;m_gnomonic=null;m_gnomonicCenterRad=new u.P;m_minGnomonicRadius=Number.NaN;m_progressTracker;constructor(e){this.m_progressTracker=e}isRunningInGnomonic(){return this.m_bRunningInGnomonic}needsSimplify(){return this.m_bNeedsSimplify}getGnomonic(){return this.m_gnomonic}}class G extends I{m_bufferer;m_multiPath;m_segIter=null;m_bNextSegmentCannotJoin=!1;m_currentDensifiedDelta=[0];m_currentBufferedDelta=0;m_lastAzimuth=0;m_startAzimuth=[0];m_endAzimuth=[0];m_numWinds=0;m_debugCounter=0;m_bufferHelper=new a.P;m_densifiedPoints=[];m_densified;constructor(e,t,n){super(e.m_progressTracker),this.m_bufferer=e,this.m_multiPath=t,this.m_densified=n,this.m_bNeedsSimplify=!0;const s=new r.Envelope2D;this.m_multiPath.queryEnvelope(s);const i=s.getCenter(),o=i.clone();o.scale(this.m_bufferer.m_rpu),this.m_gnomonic=v(this.m_bufferer.m_gcs,i),this.m_gnomonicCenterRad=o.clone(),this.m_minGnomonicRadius=(0,m.a0)(this.m_bufferer.m_a,this.m_bufferer.m_eSquared,o,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 n=0;const s=new u.P,i=new u.P;for(;this.m_segIter.hasNextSegment()&&this.m_numWinds<16;){const e=this.m_segIter.nextSegment();if(s.setCoordsPoint2D(e.getStartXY()),i.setCoordsPoint2D(e.getEndXY()),s.scale(this.m_bufferer.m_rpu),i.scale(this.m_bufferer.m_rpu),(0,m.a1)(s,i))s.x=i.x;else if((0,m.a2)(s,i))i.x=s.x;else{let e=-1,t=-1;const n=this.m_segIter.getPathIndex(),r=this.m_multiPath.getPathStart(n),o=this.m_multiPath.getPathEnd(n);if(e=this.m_segIter.getStartPointIndex()-1,t=this.m_segIter.getEndPointIndex()+1,e<r&&(e=this.m_multiPath.isClosedPath(n)?o-1:-1),t>o-1&&(t=this.m_multiPath.isClosedPath(n)?r:-1),-1!==e){const t=this.m_multiPath.getXY(e);t.scale(this.m_bufferer.m_rpu),(0,m.a2)(t,s)&&(s.x=t.x)}if(-1!==t){const e=this.m_multiPath.getXY(t);e.scale(this.m_bufferer.m_rpu),(0,m.a1)(i,e)&&(i.x=e.x)}}this.m_densifiedPoints.length=0;const r=(0,m.a3)(this.m_bufferer.m_a,this.m_bufferer.m_eSquared,this.m_bufferer.m_curveType,s,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===n)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,m.a4)(s,i)?(this.m_bufferHelper.setEmpty(),this.m_bufferer.bufferPoint2D(s,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),n++}if(this.m_currentDensifiedDelta=[0],n>0){const e=this.m_segIter.getStartPointIndex(),r=this.m_segIter.getPathIndex();for(;n>0;){if(this.m_segIter.previousSegment(),s.setCoordsPoint2D(this.m_multiPath.getXY(this.m_segIter.getStartPointIndex())),i.setCoordsPoint2D(this.m_multiPath.getXY(this.m_segIter.getEndPointIndex())),s.scale(this.m_bufferer.m_rpu),i.scale(this.m_bufferer.m_rpu),this.m_bRunningInGnomonic)if((0,m.a1)(s,i))s.x=i.x;else if((0,m.a2)(s,i))i.x=s.x;else{let e=-1,t=-1;const n=this.m_segIter.getPathIndex(),r=this.m_multiPath.getPathStart(n),o=this.m_multiPath.getPathEnd(n);if(e=this.m_segIter.getStartPointIndex()-1,t=this.m_segIter.getEndPointIndex()+1,e<r&&(e=this.m_multiPath.isClosedPath(n)?o-1:-1),t>o-1&&(t=this.m_multiPath.isClosedPath(n)?r:-1),-1!==e){const t=this.m_multiPath.getXY(e);t.scale(this.m_bufferer.m_rpu),(0,m.a2)(t,s)&&(s.x=t.x)}if(-1!==t){const e=this.m_multiPath.getXY(t);e.scale(this.m_bufferer.m_rpu),(0,m.a1)(i,e)&&(i.x=e.x)}}this.m_densifiedPoints.length=0,(0,m.a3)(this.m_bufferer.m_a,this.m_bufferer.m_eSquared,this.m_bufferer.m_curveType,i,s,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),n--}return s.setCoordsPoint2D(this.m_multiPath.getXY(this.m_segIter.getStartPointIndex())),s.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,s,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,n=new u.P,s=[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,n,s)?(this.m_gnomonicCenterRad.setCoordsPoint2D(n),this.m_minGnomonicRadius=s[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 n=Number.NaN,s=this.m_startAzimuth[0]-u.l;const i=this.m_endAzimuth[0]+u.l;let r=!1;if(!Number.isNaN(this.m_lastAzimuth)){this.m_lastAzimuth>=this.m_startAzimuth[0]?(n=this.m_lastAzimuth+u.l,s=n+Math.PI-(this.m_lastAzimuth-this.m_startAzimuth[0])):(n=this.m_lastAzimuth+u.l,s=n+Math.PI-(u.n-(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(s-n)<=.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.n:t.x-this.m_currentBufferedDelta>Math.PI&&(this.m_currentBufferedDelta+=u.n)}s=.5*(s+n)}else if(r){const n=new u.P;n.setCoordsPoint2D(t),n.scale(1/this.m_bufferer.m_rpu),e.insertPoint2D(0,-1,n)}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],n,s,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,s,i,this.m_bRunningInGnomonic,this.m_currentBufferedDelta,e),this.m_lastAzimuth=this.m_endAzimuth[0]}}class T extends I{m_bufferer;m_multiPoint;m_pointIndex=-1;constructor(e,t){super(e.m_progressTracker),this.m_bufferer=e,this.m_multiPoint=t,this.m_bNeedsSimplify=!1;const n=new r.Envelope2D;this.m_multiPoint.queryEnvelope(n);const s=n.getCenter(),i=s.clone();i.scale(this.m_bufferer.m_rpu),this.m_gnomonic=v(this.m_bufferer.m_gcs,s),this.m_gnomonicCenterRad=i.clone(),this.m_minGnomonicRadius=(0,m.a0)(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,n=this.m_bufferer.bufferPoint2D(e,this.m_bRunningInGnomonic,t);return this.m_bNeedsSimplify=n,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,n=new u.P,s=[0];return function(e,t,n,s,i,r,o,a){const h=(0,m.a0)(e,t,s,75/180*Math.PI);return!!w(e,t,s,i,s,h)&&(null!==r&&(r.setCoordsPoint2D(s),r.scale(1/n)),null!==o&&o.setCoordsPoint2D(s),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,n,s)?(this.m_gnomonicCenterRad.setCoordsPoint2D(n),this.m_minGnomonicRadius=s[0],this.m_gnomonic=v(this.m_bufferer.m_gcs,t),!0):(this.m_gnomonic=null,!1)}}class k{getOperatorType(){return 10110}supportsCurves(){return!0}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}executeMany(e,t,n,s,i,r,o,a){if(o){const o=new M(e,t,n,s,i,!1,r,a);return(new m.t).executeMany(o,t,a)}return new M(e,t,n,s,i,!1,r,a)}execute(e,t,n,s,r,m,o){const a=new d.S([e]),h=[s],c=this.executeMany(a,t,n,h,r,!1,m,o).next();return c||(0,i.d)("geodesic buffer null output"),c}}class M extends s.G{m_inputGeoms;m_spatialReference;m_curveType;m_progressTracker;m_distances;m_convergenceOffset;m_currentUnionEnvelope2D=new r.Envelope2D;m_bOutlineOnly;m_bUnion;m_index=-1;m_dindex=-1;constructor(e,t,n,s,r,m,o,a){super(),this.m_progressTracker=a,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=n,this.m_distances=s,this.m_convergenceOffset=r,this.m_bOutlineOnly=m,this.m_bUnion=o}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,n,s,r,m){s<Number.MAX_VALUE&&s>-Number.MAX_VALUE||(0,i.a)("Geodesic_bufferer.buffer - bad distance"),(0,i.c)(e);const o=(0,_.c)(e),a=o.getGeometryType();if((0,i.i)(a)){const e=o.getPointCount(),h=8e6;if(Math.abs(s)>h&&(e>50||a!==i.G.enumMultiPoint&&4===n&&e>2)){let e=o;const i=s>0?1:-1,a=7e6;let c=s,u=1;do{u++,c=(Math.abs(c)-a)*i}while(Math.abs(c)>h);c=s;for(let s=0;s<u-1;s++)e=P(e,t,n,a*i,r,u,m),c=(Math.abs(c)-a)*i;return e=P(e,t,n,c,r,u,m),e}}return P(o,t,n,s,r,1,m)}(e,this.m_spatialReference,this.m_curveType,t,this.m_convergenceOffset,this.m_progressTracker)}}}}]);