@arcgis/core 5.2.0-next.80 → 5.2.0-next.82

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 (495) hide show
  1. package/applications/Components/imageryUtils.d.ts +5 -3
  2. package/assets/esri/core/workers/RemoteClient.js +1 -1
  3. package/assets/esri/core/workers/chunks/004966b5bf60a8a80b8c.js +1 -0
  4. package/assets/esri/core/workers/chunks/027af54888befb209aaa.js +1 -0
  5. package/assets/esri/core/workers/chunks/03cf74b2e488eb144ad5.js +1 -0
  6. package/assets/esri/core/workers/chunks/{913fb883455aeac8582b.js → 04f5ff688785a4bd3b03.js} +1 -1
  7. package/assets/esri/core/workers/chunks/055802283f7e01ee87fb.js +1 -0
  8. package/assets/esri/core/workers/chunks/06df9ce870360cda06c7.js +1 -0
  9. package/assets/esri/core/workers/chunks/{08ec5461af74356e7570.js → 075eb62465edb9cbf907.js} +1 -1
  10. package/assets/esri/core/workers/chunks/{5fe9eea35ddb428efd8b.js → 0b26c01a1190e8fd63fb.js} +1 -1
  11. package/assets/esri/core/workers/chunks/{24729603dcdbd95fd01e.js → 0d982abff7c9496f7890.js} +1 -1
  12. package/assets/esri/core/workers/chunks/0fd7590e545864f5fff4.js +1 -0
  13. package/assets/esri/core/workers/chunks/{b9d1bb106737a05290e1.js → 104d74bc36c28c519396.js} +1 -1
  14. package/assets/esri/core/workers/chunks/10ac92dcd3738ec23dfb.js +1 -0
  15. package/assets/esri/core/workers/chunks/11d911f70bf0ca252c19.js +1 -0
  16. package/assets/esri/core/workers/chunks/1352b5c6767e5421bc02.js +1 -0
  17. package/assets/esri/core/workers/chunks/1354b8442c2c501238f1.js +1 -0
  18. package/assets/esri/core/workers/chunks/1438f571f738e83b4d1c.js +1 -0
  19. package/assets/esri/core/workers/chunks/14469f664fd5ede469fc.js +1 -0
  20. package/assets/esri/core/workers/chunks/14511c92cbbc26d80c86.js +1 -0
  21. package/assets/esri/core/workers/chunks/14be79c4cc6137c7db95.js +1 -0
  22. package/assets/esri/core/workers/chunks/{ef47a5da641cb0d33fdf.js → 197a6d561f77ac74283a.js} +1 -1
  23. package/assets/esri/core/workers/chunks/19dac19122eeeb5e36b2.js +1 -0
  24. package/assets/esri/core/workers/chunks/{e4e5a171a4874c5af4a4.js → 1a7d2912c8eac8c83c70.js} +1 -1
  25. package/assets/esri/core/workers/chunks/{b9c61b20bbc91cb63036.js → 1c3861297f65ee1ca5d0.js} +1 -1
  26. package/assets/esri/core/workers/chunks/1d1cfe0bee506d34268e.js +1 -0
  27. package/assets/esri/core/workers/chunks/20db27d9828397d0b37a.js +1 -0
  28. package/assets/esri/core/workers/chunks/2161cf64601f28bbe72d.js +1 -0
  29. package/assets/esri/core/workers/chunks/218ddad849745d652a28.js +1 -0
  30. package/assets/esri/core/workers/chunks/{5b70295da76d9227f64b.js → 22c477147421e68f7f00.js} +1 -1
  31. package/assets/esri/core/workers/chunks/24944b625ed8dcd904f0.js +1 -0
  32. package/assets/esri/core/workers/chunks/25696c194457e42b3bdc.js +1 -0
  33. package/assets/esri/core/workers/chunks/25f6d5604a7959afd5a5.js +1 -0
  34. package/assets/esri/core/workers/chunks/26c12804a0d801df29bf.js +1 -0
  35. package/assets/esri/core/workers/chunks/{67ebde34377f98d17cda.js → 26c8ed0aef59ed6d5267.js} +1 -1
  36. package/assets/esri/core/workers/chunks/{c1e5ffe9a251be5a0744.js → 278760d194203dd27fc3.js} +1 -1
  37. package/assets/esri/core/workers/chunks/28b576663ed4570ec825.js +1 -0
  38. package/assets/esri/core/workers/chunks/{841c81c280114412c95b.js → 2a4c91b006de1ceba539.js} +1 -1
  39. package/assets/esri/core/workers/chunks/2b299aec2a758bcd9731.js +1 -0
  40. package/assets/esri/core/workers/chunks/2d1c0d80a9843567df8d.js +1 -0
  41. package/assets/esri/core/workers/chunks/{b084829a3fd709dc47a8.js → 2d683ac4a993ec5fd6f6.js} +1 -1
  42. package/assets/esri/core/workers/chunks/2d6e1bf7c1981bed4357.js +1 -0
  43. package/assets/esri/core/workers/chunks/{a8ec5b85c2fa6fb4f391.js → 30b40ee875d46e6fde02.js} +1 -1
  44. package/assets/esri/core/workers/chunks/31b3744f71750e512d4e.js +1 -0
  45. package/assets/esri/core/workers/chunks/3239c7994019f15e261d.js +1 -0
  46. package/assets/esri/core/workers/chunks/{d520d407043bc52e5410.js → 3336ad383c184dd07bb3.js} +1 -1
  47. package/assets/esri/core/workers/chunks/{c29df43817278f674707.js → 33aaa5a49e396a0aca47.js} +1 -1
  48. package/assets/esri/core/workers/chunks/{7529c0fcfb83998e63db.js → 34f6093d2c00e3584037.js} +1 -1
  49. package/assets/esri/core/workers/chunks/36265e5f6d396eadf0be.js +1 -0
  50. package/assets/esri/core/workers/chunks/{0ae0483b72f5e8d00d55.js → 3715d6b295016eeb5031.js} +1 -1
  51. package/assets/esri/core/workers/chunks/3851ebf3548e2763b24f.js +1 -0
  52. package/assets/esri/core/workers/chunks/3a4b117af89dab5153eb.js +1 -0
  53. package/assets/esri/core/workers/chunks/3a9ef47122e10cecd3a4.js +1 -0
  54. package/assets/esri/core/workers/chunks/3f0625c31dd46b563160.js +1 -0
  55. package/assets/esri/core/workers/chunks/40b842d055b87e442156.js +1 -0
  56. package/assets/esri/core/workers/chunks/{c37b28f200b704ae6002.js → 4239d64f067417e0643c.js} +1 -1
  57. package/assets/esri/core/workers/chunks/43122c435497228a7583.js +1 -0
  58. package/assets/esri/core/workers/chunks/44d13f65465646e5f6e9.js +1 -0
  59. package/assets/esri/core/workers/chunks/463b7952a4825541eb13.js +1 -0
  60. package/assets/esri/core/workers/chunks/{345510a95e893fa8040a.js → 469e72ab6cd44272f474.js} +1 -1
  61. package/assets/esri/core/workers/chunks/{bd88228f781a0399d8bd.js → 49e37f653b81f9e4f7cc.js} +1 -1
  62. package/assets/esri/core/workers/chunks/4c5200e22b8a723f53f9.js +1 -0
  63. package/assets/esri/core/workers/chunks/4cf2c33494cb75942511.js +1 -0
  64. package/assets/esri/core/workers/chunks/{2bcb7e43578124538c3c.js → 4d672110aee304692f60.js} +1 -1
  65. package/assets/esri/core/workers/chunks/4f36596280142be1c666.js +1 -0
  66. package/assets/esri/core/workers/chunks/50e6e43ea98cb0d05d91.js +1 -0
  67. package/assets/esri/core/workers/chunks/{8e374ce47256a567ae11.js → 519745cf844c76452a46.js} +1 -1
  68. package/assets/esri/core/workers/chunks/52042fd36f4a572938f0.js +1 -0
  69. package/assets/esri/core/workers/chunks/{3b14ed3184743df336a6.js → 53d80202b5f43542d45b.js} +1 -1
  70. package/assets/esri/core/workers/chunks/54524cc4328f31d8c25d.js +1 -0
  71. package/assets/esri/core/workers/chunks/5515005e8893bd551aaf.js +1 -0
  72. package/assets/esri/core/workers/chunks/563a4d6788ad66b676e4.js +1 -0
  73. package/assets/esri/core/workers/chunks/{eee1fd629619021ea279.js → 56a6c7abfb4d88ea1bb5.js} +1 -1
  74. package/assets/esri/core/workers/chunks/58d10928959ae1e2e8d9.js +1 -0
  75. package/assets/esri/core/workers/chunks/598221c7054415b84904.js +1 -0
  76. package/assets/esri/core/workers/chunks/59f0a2bd40b033ce77e4.js +1 -0
  77. package/assets/esri/core/workers/chunks/{38660a8cc3623c854d88.js → 5a006ff759fad9fc25cb.js} +1 -1
  78. package/assets/esri/core/workers/chunks/{087bd698b80ca0cea71e.js → 5aadfd11df6618883c5d.js} +1 -1
  79. package/assets/esri/core/workers/chunks/5b60fc95757b2a53558a.js +1 -0
  80. package/assets/esri/core/workers/chunks/5c634b3e6dc76299b1df.js +1 -0
  81. package/assets/esri/core/workers/chunks/5d30accf1dcda0c70f95.js +1 -0
  82. package/assets/esri/core/workers/chunks/605da92d28e067f4a4c6.js +1 -0
  83. package/assets/esri/core/workers/chunks/61f230e50787abbfc8ba.js +1 -0
  84. package/assets/esri/core/workers/chunks/6270acb7545be2c5126f.js +1 -0
  85. package/assets/esri/core/workers/chunks/{f3bbebedad51f776bb98.js → 62992c3d98c20f611b7b.js} +1 -1
  86. package/assets/esri/core/workers/chunks/{ac87be2210f868524996.js → 629f60ee49e0dcfb7165.js} +1 -1
  87. package/assets/esri/core/workers/chunks/645d5db85f84b1f19b59.js +1 -0
  88. package/assets/esri/core/workers/chunks/{1f888f026b004447772c.js → 657528eb6a3d3b3cb631.js} +1 -1
  89. package/assets/esri/core/workers/chunks/66292e98b4111ea3658d.js +1 -0
  90. package/assets/esri/core/workers/chunks/680496660b2aaa710099.js +1 -0
  91. package/assets/esri/core/workers/chunks/{ee63c693f2539f3bfa17.js → 6c389e9646a48c26da20.js} +2 -2
  92. package/assets/esri/core/workers/chunks/{2d1ae18a28491b00091d.js → 6db4a4f9a9ce7cc738d0.js} +1 -1
  93. package/assets/esri/core/workers/chunks/6eb28086dc28f6d144ec.js +1 -0
  94. package/assets/esri/core/workers/chunks/{702b2381acf4d1f90094.js → 6f08c8a1e8e3ffd0a96a.js} +1 -1
  95. package/assets/esri/core/workers/chunks/6f4ee60e89d154e7b1c4.js +1 -0
  96. package/assets/esri/core/workers/chunks/7230d74ef720431cc75e.js +1 -0
  97. package/assets/esri/core/workers/chunks/73a8a3baf0fed803ef4f.js +1 -0
  98. package/assets/esri/core/workers/chunks/{4d7a3b3aaf876da0891b.js → 76e6d894c33221369895.js} +1 -1
  99. package/assets/esri/core/workers/chunks/7833a82d5bac2aed565e.js +1 -0
  100. package/assets/esri/core/workers/chunks/7a05f5b0848dd11d2f4f.js +1 -0
  101. package/assets/esri/core/workers/chunks/{4c82f5f23004f905a18f.js → 7b605ed92e65083da35f.js} +1 -1
  102. package/assets/esri/core/workers/chunks/7bd8ebb321ecf1f06496.js +1 -0
  103. package/assets/esri/core/workers/chunks/7d5877eede2f552dea9f.js +1 -0
  104. package/assets/esri/core/workers/chunks/7eb94fc75926bc739233.js +1 -0
  105. package/assets/esri/core/workers/chunks/809349086117f199b7a5.js +1 -0
  106. package/assets/esri/core/workers/chunks/82e62a54b350e7a325f7.js +1 -0
  107. package/assets/esri/core/workers/chunks/836c458a7eb96391cfda.js +1 -0
  108. package/assets/esri/core/workers/chunks/83a77d3f45c8c21cec45.js +1 -0
  109. package/assets/esri/core/workers/chunks/851a5a0262dc8dcb67eb.js +1 -0
  110. package/assets/esri/core/workers/chunks/865f9adc591056458b6b.js +1 -0
  111. package/assets/esri/core/workers/chunks/88771a75adcbd54c4fac.js +1 -0
  112. package/assets/esri/core/workers/chunks/8c6a60d96c73982febd2.js +1 -0
  113. package/assets/esri/core/workers/chunks/{619aa1381296172ff47b.js → 8e19b2ce9868a9a08da0.js} +1 -1
  114. package/assets/esri/core/workers/chunks/8ea28a4b1afe8bb2d313.js +1 -0
  115. package/assets/esri/core/workers/chunks/911f3a1b8dd4bc5c9782.js +1 -0
  116. package/assets/esri/core/workers/chunks/{40693ee558a1eb1e93f4.js → 918577ea025f67ebe372.js} +1 -1
  117. package/assets/esri/core/workers/chunks/{fe71a0604f0928113419.js → 958e161634b5bfd50625.js} +1 -1
  118. package/assets/esri/core/workers/chunks/95ff342e5c29bf91a765.js +1 -0
  119. package/assets/esri/core/workers/chunks/97162bbbedb02e42d0b8.js +1 -0
  120. package/assets/esri/core/workers/chunks/{680dd7b7638465eb33de.js → 98739b6e7904045edbab.js} +1 -1
  121. package/assets/esri/core/workers/chunks/99966339b061eb9945b8.js +1 -0
  122. package/assets/esri/core/workers/chunks/9aa41d098eeda01ded3a.js +1 -0
  123. package/assets/esri/core/workers/chunks/{315031323e11a18154e3.js → 9c04233d18a9585b5bfe.js} +1 -1
  124. package/assets/esri/core/workers/chunks/9c7afe90495766bba37f.js +1 -0
  125. package/assets/esri/core/workers/chunks/{69b9a327f23e052fced7.js → 9d5d7289a9e23efc7f73.js} +1 -1
  126. package/assets/esri/core/workers/chunks/9e49a6ce4a133476092f.js +1 -0
  127. package/assets/esri/core/workers/chunks/9e840a71906c4deef776.js +1 -0
  128. package/assets/esri/core/workers/chunks/a1bf2111fee455b16e6a.js +29 -0
  129. package/assets/esri/core/workers/chunks/{910c93bbbf8113a4a51f.js → a2a231a671ff578b7b01.js} +1 -1
  130. package/assets/esri/core/workers/chunks/a2fd945659ce052f99d2.js +1 -0
  131. package/assets/esri/core/workers/chunks/{16929524565a677db4dc.js → a406a41a2f117247f1ef.js} +1 -1
  132. package/assets/esri/core/workers/chunks/a4b63162615a485b08dc.js +1 -0
  133. package/assets/esri/core/workers/chunks/a9a1061cdf82b372835f.js +1 -0
  134. package/assets/esri/core/workers/chunks/ab10388dcc17a665ac3b.js +2 -0
  135. package/assets/esri/core/workers/chunks/ac9a3dfd02160e43fc8a.js +2 -0
  136. package/assets/esri/core/workers/chunks/af88f8dd1a53e4740aa6.js +1 -0
  137. package/assets/esri/core/workers/chunks/{2b3f76e03b7a28fc4453.js → b09e9ac5fd928e69b053.js} +1 -1
  138. package/assets/esri/core/workers/chunks/{6c982779d6d47ec99899.js → b0a9a770b735440846cd.js} +1 -1
  139. package/assets/esri/core/workers/chunks/b2d6fd436981c890152f.js +1 -0
  140. package/assets/esri/core/workers/chunks/b3034fbcbe77ef9e7c20.js +1 -0
  141. package/assets/esri/core/workers/chunks/b4b4fe06364bea9b0750.js +1 -0
  142. package/assets/esri/core/workers/chunks/b661aae7e3ce955a783e.js +1 -0
  143. package/assets/esri/core/workers/chunks/b7bcc2d0b0fa8e703c83.js +1 -0
  144. package/assets/esri/core/workers/chunks/{75fc0b1db8e2e3fd2458.js → b8548eb7680abeaf3cd1.js} +1 -1
  145. package/assets/esri/core/workers/chunks/b9db8d059c2ea39518e7.js +1 -0
  146. package/assets/esri/core/workers/chunks/ba67aaa08e4f11e1140a.js +1 -0
  147. package/assets/esri/core/workers/chunks/ba8777844fef6ed3ac2b.js +1 -0
  148. package/assets/esri/core/workers/chunks/ba99a650ea64f5024185.js +1 -0
  149. package/assets/esri/core/workers/chunks/{e421dee5d8b030e79ffb.js → bbeb61d9302323bae9fb.js} +1 -1
  150. package/assets/esri/core/workers/chunks/bbfd2b4af8e498b61af9.js +1 -0
  151. package/assets/esri/core/workers/chunks/{cada52d719c35d40958a.js → bd1c870694edd25bf8aa.js} +1 -1
  152. package/assets/esri/core/workers/chunks/c1f125594e684c1b4ffc.js +1 -0
  153. package/assets/esri/core/workers/chunks/c30b6bbabd05e4976fba.js +1 -0
  154. package/assets/esri/core/workers/chunks/c456abf5ee2a1ad5cc5b.js +1 -0
  155. package/assets/esri/core/workers/chunks/c61e94806b37ca3dd549.js +2 -0
  156. package/assets/esri/core/workers/chunks/c71368cd64f240da1743.js +1 -0
  157. package/assets/esri/core/workers/chunks/c899457f19b749516275.js +1 -0
  158. package/assets/esri/core/workers/chunks/c8d83f71326222b98608.js +1 -0
  159. package/assets/esri/core/workers/chunks/c9653a15324ca53d50e7.js +1 -0
  160. package/assets/esri/core/workers/chunks/{9937920e7993814d0b2c.js → ca695ab000a1e8765d69.js} +1 -1
  161. package/assets/esri/core/workers/chunks/cc1a00694cc9f7c606d6.js +1 -0
  162. package/assets/esri/core/workers/chunks/{b792857a178da2dd77d6.js → cc419e1c5c1dee7ec972.js} +1 -1
  163. package/assets/esri/core/workers/chunks/{2ce845c990bb4d701362.js → cc817c9d3f8e8f8c56e4.js} +1 -1
  164. package/assets/esri/core/workers/chunks/cdd4aeaa3f30bc4ea93a.js +1 -0
  165. package/assets/esri/core/workers/chunks/cf6799fd008d0d7016f7.js +1 -0
  166. package/assets/esri/core/workers/chunks/cfcb258b7e464f219434.js +1 -0
  167. package/assets/esri/core/workers/chunks/d0c8630177d3a4e316f1.js +2 -0
  168. package/assets/esri/core/workers/chunks/{ac59218847e5ef4c4160.js → d0e00f0bb7b9435e170d.js} +1 -1
  169. package/assets/esri/core/workers/chunks/{33e293836f5d28dc5d62.js → d13eeff678972a245d5d.js} +1 -1
  170. package/assets/esri/core/workers/chunks/d1aa87d846a884492b47.js +1 -0
  171. package/assets/esri/core/workers/chunks/{0179949495c87466b428.js → d3a183d90f1ccc8da2bb.js} +10 -10
  172. package/assets/esri/core/workers/chunks/d433bfa2abf2ca8239ba.js +1 -0
  173. package/assets/esri/core/workers/chunks/d4cc8eef64b8c84217a5.js +1 -0
  174. package/assets/esri/core/workers/chunks/{2740f755c3a322cbd477.js → d672c2a1c8eddd235171.js} +1 -1
  175. package/assets/esri/core/workers/chunks/{24006cea112d657f053a.js → da233362b06b6db375f1.js} +1 -1
  176. package/assets/esri/core/workers/chunks/da6134c7883531f21afe.js +1 -0
  177. package/assets/esri/core/workers/chunks/dbc36b85413fae52b56d.js +1 -0
  178. package/assets/esri/core/workers/chunks/dd91824692bec809909c.js +1 -0
  179. package/assets/esri/core/workers/chunks/dd9af4ddefa0b998aa4b.js +1 -0
  180. package/assets/esri/core/workers/chunks/e2ceddd6bcdabec77cc7.js +1 -0
  181. package/assets/esri/core/workers/chunks/e3eab61815ef1c521a6c.js +1 -0
  182. package/assets/esri/core/workers/chunks/e706c37b44e98fbcb5f7.js +1 -0
  183. package/assets/esri/core/workers/chunks/ead4143d811aab610e00.js +2 -0
  184. package/assets/esri/core/workers/chunks/ef269dd559c1c79957e5.js +1 -0
  185. package/assets/esri/core/workers/chunks/efaa455beeefbf97a4c5.js +1 -0
  186. package/assets/esri/core/workers/chunks/f0692e10af5983f6ad93.js +1 -0
  187. package/assets/esri/core/workers/chunks/f16b6cd6b325eb600e82.js +1 -0
  188. package/assets/esri/core/workers/chunks/f1d0208c6b09c1c4b248.js +1 -0
  189. package/assets/esri/core/workers/chunks/f1fa377e8fa53b02876f.js +1 -0
  190. package/assets/esri/core/workers/chunks/{ebb722118a220c92efc3.js → f248131df4eaa5291623.js} +1 -1
  191. package/assets/esri/core/workers/chunks/f762f0f6c83748d8e328.js +1 -0
  192. package/assets/esri/core/workers/chunks/{b9bdb1f05e904c3655e4.js → f834aa732c3f06525089.js} +1 -1
  193. package/assets/esri/core/workers/chunks/{fb12d3c63fcac8391e06.js → fa29b5064d6626cfc019.js} +1 -1
  194. package/assets/esri/core/workers/chunks/fa7a6906598d1002abfd.js +1 -0
  195. package/assets/esri/core/workers/chunks/{e9e4b27ba06a29e6340c.js → faf14281a74a06fa1f30.js} +1 -1
  196. package/assets/esri/core/workers/chunks/fb86b334bfca4670dcfa.js +1 -0
  197. package/assets/esri/core/workers/chunks/{1ef28d4457c8c943ad19.js → fbede01a363895b6381f.js} +1 -1
  198. package/assets/esri/core/workers/chunks/{073f1d5f89875c6aefb1.js → fc1aeea22f8c9d63864a.js} +1 -1
  199. package/assets/esri/core/workers/chunks/fcf7299e2ee904ab9882.js +1 -0
  200. package/assets/esri/core/workers/chunks/{9230ad807020fc2bbf8e.js → fe06cc2f90b2d551e4c1.js} +1 -1
  201. package/assets/esri/core/workers/chunks/{8a3289e15e0ce92e3813.js → fe335441ea233cb0fad5.js} +1 -1
  202. package/assets/esri/core/workers/chunks/{d7b6985984071e78c764.js → ffad5fd9c5e98f4fe2c3.js} +1 -1
  203. package/assets/esri/core/workers/chunks/ffe2cbfea38b92a231d6.js +1 -0
  204. package/assets/esri/geometry/support/pe-wasm.wasm +0 -0
  205. package/chunks/Bufferer-CclWhXVb.js +1 -1
  206. package/chunks/Distance2DCalculator-DjIp2uQi.js +1 -1
  207. package/chunks/EmissionComposite.glsl.js +7 -1
  208. package/chunks/Envelope.js +1 -1
  209. package/chunks/GaussianSplat.glsl.js +8 -8
  210. package/chunks/GaussianSplatDepth.glsl.js +4 -4
  211. package/chunks/GeodeticDistanceCalculator-zRp89-dW.js +1 -1
  212. package/chunks/GeodeticUtils.js +1 -1
  213. package/chunks/GeographicTransformation.js +2 -0
  214. package/chunks/Geometry.js +1 -1
  215. package/chunks/MultiPathImpl.js +1 -1
  216. package/chunks/OperatorCrosses.js +1 -1
  217. package/chunks/OperatorCut.js +1 -1
  218. package/chunks/OperatorGeodesicBuffer.js +1 -1
  219. package/chunks/OperatorGeodeticArea.js +1 -1
  220. package/chunks/OperatorGeodeticDensifyByLength.js +1 -1
  221. package/chunks/OperatorGeodeticLength.js +1 -1
  222. package/chunks/OperatorGraphicBuffer.js +1 -1
  223. package/chunks/OperatorIntegrate.js +1 -1
  224. package/chunks/OperatorIntersects.js +1 -1
  225. package/chunks/OperatorMultiPartToSinglePart.js +1 -1
  226. package/chunks/OperatorOverlaps.js +1 -1
  227. package/chunks/OperatorProject.js +1 -1
  228. package/chunks/OperatorProximity.js +1 -1
  229. package/chunks/OperatorProximityGeodesic.js +1 -1
  230. package/chunks/OperatorShapePreservingLength.js +1 -1
  231. package/chunks/OperatorShapePreservingProject.js +1 -1
  232. package/chunks/OperatorSimplifyOGC.js +1 -1
  233. package/chunks/OperatorTouches.js +1 -1
  234. package/chunks/OperatorWithin.js +1 -1
  235. package/chunks/Point2D.js +1 -1
  236. package/chunks/ProjectionTransformation.js +1 -1
  237. package/chunks/SideCalculator2D-DX0718xq.js +1 -1
  238. package/chunks/SpatialReference.js +1 -1
  239. package/chunks/UnitFactory.js +2 -0
  240. package/chunks/containsOperator.js +1 -1
  241. package/chunks/disjointOperator.js +1 -1
  242. package/chunks/equalsOperator.js +1 -1
  243. package/chunks/pe-wasm.js +1 -1
  244. package/chunks/relateOperator.js +1 -1
  245. package/config.js +1 -1
  246. package/geometry/operators/containsOperator.js +1 -1
  247. package/geometry/operators/disjointOperator.js +1 -1
  248. package/geometry/operators/gx/geodeticUtils.js +1 -1
  249. package/geometry/operators/gx/operatorAutoComplete.js +1 -1
  250. package/geometry/operators/gx/operatorBuffer.js +1 -1
  251. package/geometry/operators/gx/operatorDifference.js +1 -1
  252. package/geometry/operators/gx/operatorGeodesicBuffer.js +1 -1
  253. package/geometry/operators/gx/operatorGeodeticArea.js +1 -1
  254. package/geometry/operators/gx/operatorGeodeticDensify.js +1 -1
  255. package/geometry/operators/gx/operatorGeodeticDistance.js +1 -1
  256. package/geometry/operators/gx/operatorGeodeticLength.js +1 -1
  257. package/geometry/operators/gx/operatorIntersection.js +1 -1
  258. package/geometry/operators/gx/operatorLabelPoint.js +1 -1
  259. package/geometry/operators/gx/operatorLinesToPolygons.js +1 -1
  260. package/geometry/operators/gx/operatorPolygonOverlay.js +1 -1
  261. package/geometry/operators/gx/operatorProject.js +1 -1
  262. package/geometry/operators/gx/operatorProximityGeodesic.js +1 -1
  263. package/geometry/operators/gx/operatorShapePreservingProject.js +1 -1
  264. package/geometry/operators/gx/operatorSimplify.js +1 -1
  265. package/geometry/operators/gx/operatorSinglePartToMultiPart.js +1 -1
  266. package/geometry/operators/gx/operatorSymmetricDifference.js +1 -1
  267. package/geometry/operators/gx/operatorUnion.js +1 -1
  268. package/geometry/operators/json/containsOperator.js +1 -1
  269. package/geometry/operators/json/disjointOperator.js +1 -1
  270. package/geometry/operators/projectOperator.js +1 -1
  271. package/geometry/operators/reshapeOperator.js +1 -1
  272. package/geometry/operators/support/GeographicTransformation.d.ts +7 -0
  273. package/geometry/operators/support/GeographicTransformation.js +1 -1
  274. package/geometry/operators/support/GeographicTransformationStep.d.ts +7 -1
  275. package/geometry/operators/support/GeographicTransformationStep.js +1 -1
  276. package/geometry/operators/support/geographicTransformationUtils.d.ts +13 -2
  277. package/geometry/operators/support/geographicTransformationUtils.js +1 -1
  278. package/geometry/operators/support/initNoPeFactory.js +1 -1
  279. package/geometry/operators/support/jsonConverter.js +1 -1
  280. package/geometry/operators/support/projectionTransformation.js +1 -1
  281. package/geometry/projection/projectionUtilsState.js +2 -0
  282. package/geometry/projectionUtils.js +1 -1
  283. package/geometry/support/geometryUtils.js +1 -1
  284. package/kernel.js +1 -1
  285. package/layers/raster/datasets/MRFRaster.js +1 -1
  286. package/layers/raster/formats/JpgPlus.js +1 -1
  287. package/layers/raster/formats/RasterCodec.js +1 -1
  288. package/layers/raster/types.d.ts +65 -0
  289. package/layers/support/AggregateField.d.ts +9 -3
  290. package/layers/support/FeatureReductionCluster.d.ts +16 -6
  291. package/layers/support/I3SExtractChanges.js +2 -0
  292. package/package.json +3 -3
  293. package/renderers/support/AuthoringInfo.d.ts +8 -3
  294. package/support/revision.js +1 -1
  295. package/symbols/cim/cimAnalyzer.js +1 -1
  296. package/symbols/cim/effects/EffectRadial.js +1 -1
  297. package/views/2d/engine/vectorTiles/decluttering/SymbolRepository.js +1 -1
  298. package/views/2d/engine/webgl/mesh/templates/segmentUtils.js +1 -1
  299. package/views/2d/engine/webgl/shaderGraph/techniques/fill/FillMeshWriter.js +1 -1
  300. package/views/2d/engine/webgl/shaderGraph/techniques/fill/GradientFillMeshWriter.js +1 -1
  301. package/views/2d/engine/webgl/shaderGraph/techniques/line/LineMeshWriter.js +1 -1
  302. package/views/2d/engine/webgl/shaderGraph/techniques/mesh/MeshWriter.js +1 -1
  303. package/views/2d/layers/MediaLayerView2D.js +1 -1
  304. package/views/2d/layers/features/schema/processor/symbols/ComplexSymbolSchema.js +1 -1
  305. package/views/3d/GroundView3D.js +1 -1
  306. package/views/3d/analysis/LineOfSight/LineOfSightDrawToolRenderer.js +1 -1
  307. package/views/3d/analysis/LineOfSight/LineOfSightEditTool.js +1 -1
  308. package/views/3d/analysis/LineOfSight/LineOfSightInteractionVisuals.js +1 -1
  309. package/views/3d/analysis/LineOfSight/LineOfSightItemTool.js +1 -1
  310. package/views/3d/layers/BuildingComponentSublayerView3D.js +1 -1
  311. package/views/3d/layers/BuildingSceneLayerView3D.js +1 -1
  312. package/views/3d/layers/I3SMeshView3D.js +1 -1
  313. package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
  314. package/views/3d/layers/IntegratedMeshLayerView3D.js +1 -1
  315. package/views/3d/layers/SceneLayerGraphicsView3D.js +1 -1
  316. package/views/3d/layers/SceneLayerView3D.js +1 -1
  317. package/views/3d/layers/graphics/Graphics3DFrustumVisibility.js +1 -1
  318. package/views/3d/layers/i3s/I3SOverrides.js +1 -1
  319. package/views/3d/state/controllers/PinchAndPanControllerGlobal.js +1 -1
  320. package/views/3d/state/controllers/PinchAndPanControllerLocal.js +1 -1
  321. package/views/3d/state/controllers/RotateController.js +1 -1
  322. package/views/3d/state/controllers/ZoomControllerGlobal.js +1 -1
  323. package/views/3d/state/controllers/ZoomControllerLocal.js +1 -1
  324. package/views/3d/state/controllers/ZoomStepControllerLocal.js +1 -1
  325. package/views/3d/state/helpers/SceneIntersectionHelper.js +1 -1
  326. package/views/3d/support/PBFDecoder.js +1 -1
  327. package/views/3d/support/QualityProfile.js +1 -1
  328. package/views/3d/support/QualitySettings.js +1 -1
  329. package/views/3d/support/gaussianSplatting/GaussianSplatFadeHelper.js +1 -1
  330. package/views/3d/terrain/PlanarPatch.js +1 -1
  331. package/views/3d/terrain/Tile.js +1 -1
  332. package/views/3d/webgl-engine/Stage.js +1 -1
  333. package/views/3d/webgl-engine/lib/BasisUtil.js +1 -1
  334. package/views/3d/webgl-engine/lib/EmissionComposite.glsl.js +1 -1
  335. package/views/3d/webgl-engine/lib/EmissionComposite.js +1 -1
  336. package/views/3d/webgl-engine/lib/EmissionCompositeTechnique.js +1 -1
  337. package/views/3d/webgl-engine/lib/GaussianSplatRenderUtils.js +1 -1
  338. package/views/3d/webgl-engine/lib/GaussianSplatRenderer.js +1 -1
  339. package/views/3d/webgl-engine/shaders/GaussianSplatDepthPolicy.js +1 -1
  340. package/views/3d/webgl-engine/shaders/GaussianSplatPass.glsl.js +50 -22
  341. package/views/MapView.d.ts +0 -60
  342. package/views/View2D.d.ts +59 -1
  343. package/views/analysis/ElevationProfile/ElevationProfileController.js +1 -1
  344. package/views/draw/support/managers/InteractiveHandleManager.js +1 -1
  345. package/views/support/GroundElevationSampler.js +1 -1
  346. package/widgets/BatchAttributeForm/expressions/ExpressionsManager.js +1 -1
  347. package/widgets/BatchAttributeForm/expressions/expressionUtils.js +1 -1
  348. package/widgets/ElevationProfile/ElevationProfileViewModel.js +1 -1
  349. package/widgets/Legend/support/sizeRampUtils.js +1 -1
  350. package/widgets/Legend/support/utils.js +1 -1
  351. package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
  352. package/widgets/OrientedImageryViewer/components/ImageLocationViewModel.js +1 -1
  353. package/widgets/OrientedImageryViewer/components/ImageLocationWidget.js +1 -1
  354. package/widgets/OrientedImageryViewer.js +1 -1
  355. package/assets/esri/core/workers/chunks/04105d83556409489835.js +0 -1
  356. package/assets/esri/core/workers/chunks/05b6b2c0b76afb100e33.js +0 -1
  357. package/assets/esri/core/workers/chunks/0909816f13d25cacf250.js +0 -1
  358. package/assets/esri/core/workers/chunks/0933203eee15ea50e123.js +0 -1
  359. package/assets/esri/core/workers/chunks/0b18de5147d76b68896f.js +0 -1
  360. package/assets/esri/core/workers/chunks/0d9d33f29124d464a4cb.js +0 -1
  361. package/assets/esri/core/workers/chunks/0d9fe49812554e7d7ba7.js +0 -1
  362. package/assets/esri/core/workers/chunks/0da5b27b070ab780f8b3.js +0 -1
  363. package/assets/esri/core/workers/chunks/0e333aced8b23aa49a0e.js +0 -1
  364. package/assets/esri/core/workers/chunks/0eaa8265a4cd64297545.js +0 -1
  365. package/assets/esri/core/workers/chunks/1142f8e9c80207d6bdae.js +0 -1
  366. package/assets/esri/core/workers/chunks/118ccfa2d685764752ee.js +0 -1
  367. package/assets/esri/core/workers/chunks/12a64eca4c571926d9d4.js +0 -1
  368. package/assets/esri/core/workers/chunks/1642fa1263d8f4a45101.js +0 -1
  369. package/assets/esri/core/workers/chunks/16a04fc184728d66e6e1.js +0 -1
  370. package/assets/esri/core/workers/chunks/18e0e993c0c39c962e61.js +0 -1
  371. package/assets/esri/core/workers/chunks/19233d0016e5b154c5ce.js +0 -1
  372. package/assets/esri/core/workers/chunks/1a467da4c0b33f655199.js +0 -1
  373. package/assets/esri/core/workers/chunks/1ac8a7a129ba33e05a24.js +0 -1
  374. package/assets/esri/core/workers/chunks/1d92d53186debd52e753.js +0 -1
  375. package/assets/esri/core/workers/chunks/1dba93abe84d30f05d8d.js +0 -1
  376. package/assets/esri/core/workers/chunks/2033e6d42453e4e67048.js +0 -1
  377. package/assets/esri/core/workers/chunks/20b54e7872d967f3be32.js +0 -1
  378. package/assets/esri/core/workers/chunks/2501d9459f6d14c797e5.js +0 -1
  379. package/assets/esri/core/workers/chunks/253c231b5a52f1d2d3a5.js +0 -1
  380. package/assets/esri/core/workers/chunks/257f1e8316877f611e11.js +0 -1
  381. package/assets/esri/core/workers/chunks/28924f31f5ba8ebdc60a.js +0 -1
  382. package/assets/esri/core/workers/chunks/28b09fe50b855a1d8a3f.js +0 -1
  383. package/assets/esri/core/workers/chunks/2b0558c1716425974563.js +0 -2
  384. package/assets/esri/core/workers/chunks/2e7c830b5b1fe406169f.js +0 -1
  385. package/assets/esri/core/workers/chunks/2f4ed8a63d57636a4ebe.js +0 -1
  386. package/assets/esri/core/workers/chunks/393f79843d5a78c1cc37.js +0 -1
  387. package/assets/esri/core/workers/chunks/3958d92c737b3a2a3bc2.js +0 -1
  388. package/assets/esri/core/workers/chunks/3978f00a03e97645b276.js +0 -1
  389. package/assets/esri/core/workers/chunks/3b5c5356353f1a2303a0.js +0 -1
  390. package/assets/esri/core/workers/chunks/40e48b720d89cd067892.js +0 -1
  391. package/assets/esri/core/workers/chunks/436d51b9f1b1b5abc4bc.js +0 -1
  392. package/assets/esri/core/workers/chunks/44a786aba84918f2b247.js +0 -1
  393. package/assets/esri/core/workers/chunks/463747a822499dd933ef.js +0 -1
  394. package/assets/esri/core/workers/chunks/484b251fbcbffcb58323.js +0 -1
  395. package/assets/esri/core/workers/chunks/495f90fe3d0ad32bb82d.js +0 -1
  396. package/assets/esri/core/workers/chunks/49a3888bf9e2481642ac.js +0 -1
  397. package/assets/esri/core/workers/chunks/4ce57dd39075e8fb357c.js +0 -1
  398. package/assets/esri/core/workers/chunks/5459ba8fdeb2370bb52b.js +0 -1
  399. package/assets/esri/core/workers/chunks/55924fb0de05e727f5e3.js +0 -1
  400. package/assets/esri/core/workers/chunks/55dda957c79fb285185f.js +0 -1
  401. package/assets/esri/core/workers/chunks/56e6d8c4a9ed893ce951.js +0 -1
  402. package/assets/esri/core/workers/chunks/57159bcac86d660dcceb.js +0 -1
  403. package/assets/esri/core/workers/chunks/58026fc30d8a0ded4102.js +0 -1
  404. package/assets/esri/core/workers/chunks/5eb29f0068f1c839d05e.js +0 -1
  405. package/assets/esri/core/workers/chunks/5f553da48d0ccbbfcd3c.js +0 -2
  406. package/assets/esri/core/workers/chunks/5fb76575575fe8cfb1f0.js +0 -1
  407. package/assets/esri/core/workers/chunks/6072c63a5da4366e9942.js +0 -1
  408. package/assets/esri/core/workers/chunks/626a715fdec93e188e0c.js +0 -1
  409. package/assets/esri/core/workers/chunks/6525c925bb91facb3575.js +0 -1
  410. package/assets/esri/core/workers/chunks/6529b5cc3ac6baa29fff.js +0 -2
  411. package/assets/esri/core/workers/chunks/65d1e338612e59063eba.js +0 -1
  412. package/assets/esri/core/workers/chunks/66e60351aacbd162775f.js +0 -1
  413. package/assets/esri/core/workers/chunks/694371f51c52a7a94da4.js +0 -1
  414. package/assets/esri/core/workers/chunks/69b0dcd7bcd8ec42e2c3.js +0 -1
  415. package/assets/esri/core/workers/chunks/7260e63252fa5452dc22.js +0 -1
  416. package/assets/esri/core/workers/chunks/72eb0ac55026a4f5d6a7.js +0 -1
  417. package/assets/esri/core/workers/chunks/79429c8be5da85713200.js +0 -1
  418. package/assets/esri/core/workers/chunks/79c0a966f7d11d3c217f.js +0 -1
  419. package/assets/esri/core/workers/chunks/7b470d6ad182548b9e95.js +0 -1
  420. package/assets/esri/core/workers/chunks/7b862a074816c099b9ff.js +0 -1
  421. package/assets/esri/core/workers/chunks/7baa363b3b0a442a63d2.js +0 -1
  422. package/assets/esri/core/workers/chunks/7d8eb4dbea1916320f74.js +0 -1
  423. package/assets/esri/core/workers/chunks/7ddf9b2718dd047f15e6.js +0 -1
  424. package/assets/esri/core/workers/chunks/835af7b4fd92cb4e7af0.js +0 -1
  425. package/assets/esri/core/workers/chunks/8566449c39eba55147f5.js +0 -1
  426. package/assets/esri/core/workers/chunks/864691186c449ca2c3db.js +0 -1
  427. package/assets/esri/core/workers/chunks/88d5541679e77117bf03.js +0 -1
  428. package/assets/esri/core/workers/chunks/88fd698b940dadcc6dc5.js +0 -1
  429. package/assets/esri/core/workers/chunks/894ebc64b698e5d7604b.js +0 -1
  430. package/assets/esri/core/workers/chunks/8be707044d992ef5f1d8.js +0 -1
  431. package/assets/esri/core/workers/chunks/8c1bddc88cc5f4251021.js +0 -1
  432. package/assets/esri/core/workers/chunks/8eecc6df6511c8830f5d.js +0 -1
  433. package/assets/esri/core/workers/chunks/8f0d4aec8bd3cbfefc40.js +0 -1
  434. package/assets/esri/core/workers/chunks/8fea514aada1195c8f30.js +0 -1
  435. package/assets/esri/core/workers/chunks/9234a293d61e134f121f.js +0 -1
  436. package/assets/esri/core/workers/chunks/94bf7f0da6ad3f7ea277.js +0 -1
  437. package/assets/esri/core/workers/chunks/987594539981483a7c5e.js +0 -1
  438. package/assets/esri/core/workers/chunks/995a433936fc90d41634.js +0 -2
  439. package/assets/esri/core/workers/chunks/9bbff8237540409610b3.js +0 -1
  440. package/assets/esri/core/workers/chunks/9e1392a0c608a13ab036.js +0 -1
  441. package/assets/esri/core/workers/chunks/9f1211d2267fb7673c4d.js +0 -1
  442. package/assets/esri/core/workers/chunks/a486d99f9879f94151ba.js +0 -1
  443. package/assets/esri/core/workers/chunks/a50421fe79f264ae3619.js +0 -1
  444. package/assets/esri/core/workers/chunks/a5c115fc53edb52ce1de.js +0 -1
  445. package/assets/esri/core/workers/chunks/a739e617fc461014ad1f.js +0 -1
  446. package/assets/esri/core/workers/chunks/aa21031c8f12ca438eaa.js +0 -1
  447. package/assets/esri/core/workers/chunks/ad27689b231e282b7620.js +0 -1
  448. package/assets/esri/core/workers/chunks/aed16c3e26652960ad3f.js +0 -1
  449. package/assets/esri/core/workers/chunks/af6e8c961fd768fa7be3.js +0 -1
  450. package/assets/esri/core/workers/chunks/b3a1a93c6dc9247cb048.js +0 -1
  451. package/assets/esri/core/workers/chunks/b4abf82b8ac974a55ae1.js +0 -1
  452. package/assets/esri/core/workers/chunks/b8cd81d8fcc78d272130.js +0 -1
  453. package/assets/esri/core/workers/chunks/b9a1046ca2cd0cca5da5.js +0 -1
  454. package/assets/esri/core/workers/chunks/b9d6f89f9b8e9d1bc787.js +0 -1
  455. package/assets/esri/core/workers/chunks/bab5f4b2424b487b87ac.js +0 -1
  456. package/assets/esri/core/workers/chunks/c02b3b8b71205f6ce290.js +0 -1
  457. package/assets/esri/core/workers/chunks/c17dda6fadb8bfad0d51.js +0 -1
  458. package/assets/esri/core/workers/chunks/c21212c356f65244e34e.js +0 -1
  459. package/assets/esri/core/workers/chunks/c374e5d5980db74c4aca.js +0 -1
  460. package/assets/esri/core/workers/chunks/c6bf17b5ff6ec4b980a1.js +0 -1
  461. package/assets/esri/core/workers/chunks/c99dcc17fbd7acd2ad2e.js +0 -1
  462. package/assets/esri/core/workers/chunks/ce481eeb27ea9c1782ae.js +0 -1
  463. package/assets/esri/core/workers/chunks/cec1c87eb3749276ced4.js +0 -1
  464. package/assets/esri/core/workers/chunks/cef02ed3942c010da2e8.js +0 -29
  465. package/assets/esri/core/workers/chunks/cfdbc48f58433a3d5fc3.js +0 -1
  466. package/assets/esri/core/workers/chunks/d456520e4b119a2816b6.js +0 -1
  467. package/assets/esri/core/workers/chunks/d8da31bfe2bc4174e5aa.js +0 -1
  468. package/assets/esri/core/workers/chunks/da1c9257793c2817f40f.js +0 -1
  469. package/assets/esri/core/workers/chunks/dc0c3109b7558b4fe016.js +0 -1
  470. package/assets/esri/core/workers/chunks/ddd8f6154e265dbb6f9f.js +0 -1
  471. package/assets/esri/core/workers/chunks/de601f0d5a2a282d2efd.js +0 -1
  472. package/assets/esri/core/workers/chunks/e227eb44cd139fe2bc1b.js +0 -1
  473. package/assets/esri/core/workers/chunks/e2ddfc96ddba92302e0c.js +0 -1
  474. package/assets/esri/core/workers/chunks/e61ab8ef30bbe788b9d7.js +0 -1
  475. package/assets/esri/core/workers/chunks/e89e6eea380ca2c13b64.js +0 -1
  476. package/assets/esri/core/workers/chunks/e9d352d030dcad1619a6.js +0 -1
  477. package/assets/esri/core/workers/chunks/eb95464bd017fb839510.js +0 -1
  478. package/assets/esri/core/workers/chunks/ed4ac5568dc2815b066d.js +0 -1
  479. package/assets/esri/core/workers/chunks/ed564358cc7b3ee463a3.js +0 -1
  480. package/assets/esri/core/workers/chunks/ef2e0a014c982d9c7ca4.js +0 -1
  481. package/assets/esri/core/workers/chunks/ef9489d1dccb817460bb.js +0 -2
  482. package/assets/esri/core/workers/chunks/f086c6d229fb34a9d7f9.js +0 -1
  483. package/assets/esri/core/workers/chunks/f35e749bb5be39880cbe.js +0 -1
  484. package/assets/esri/core/workers/chunks/f4bc563c71c478d3912f.js +0 -1
  485. package/assets/esri/core/workers/chunks/f6150b51a9430691a040.js +0 -1
  486. package/assets/esri/core/workers/chunks/f6f7d885b4d6080e3f58.js +0 -1
  487. package/assets/esri/core/workers/chunks/f95870bb4d8e4e13e69e.js +0 -1
  488. package/assets/esri/core/workers/chunks/fa59f10ed0f182a2a7f3.js +0 -1
  489. package/assets/esri/core/workers/chunks/fc9065d0cd6285fe0f0d.js +0 -1
  490. /package/assets/esri/core/workers/chunks/{2b0558c1716425974563.js.LICENSE.txt → 6c389e9646a48c26da20.js.LICENSE.txt} +0 -0
  491. /package/assets/esri/core/workers/chunks/{995a433936fc90d41634.js.LICENSE.txt → ab10388dcc17a665ac3b.js.LICENSE.txt} +0 -0
  492. /package/assets/esri/core/workers/chunks/{ef9489d1dccb817460bb.js.LICENSE.txt → ac9a3dfd02160e43fc8a.js.LICENSE.txt} +0 -0
  493. /package/assets/esri/core/workers/chunks/{ee63c693f2539f3bfa17.js.LICENSE.txt → c61e94806b37ca3dd549.js.LICENSE.txt} +0 -0
  494. /package/assets/esri/core/workers/chunks/{5f553da48d0ccbbfcd3c.js.LICENSE.txt → d0c8630177d3a4e316f1.js.LICENSE.txt} +0 -0
  495. /package/assets/esri/core/workers/chunks/{6529b5cc3ac6baa29fff.js.LICENSE.txt → ead4143d811aab610e00.js.LICENSE.txt} +0 -0
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1550,1666,1948,6276,7992,8125],{61691(t,e,s){s.d(e,{G:()=>r});class r{*[Symbol.iterator](){let t=this.next();for(;t;)yield t,t=this.next()}}},64523(t,e,s){s.d(e,{O:()=>c});var r=s(5482),n=s(61691),i=s(55537),a=s(88885),o=s(95213),h=s(83661),u=s(5247);class c{getOperatorType(){return 10204}supportsCurves(){return!0}accelerateGeometry(t,e,s){return!1}canAccelerateGeometry(t){return!1}executeMany(t,e,s,r){return new l(t,e,s,r)}execute(t,e,s,r){return t||(0,i.a)("null param is not allowed."),new l(null,e,s,r).generalize(t)}}class l extends n.G{m_progressTracker;m_geoms;m_pline=null;m_point=new o.P;m_xy;m_stack=[];m_resultstack=[];m_maxDeviation;m_bRemoveDegenerateParts;m_callCount=0;constructor(t,e,s,r){super(),this.m_progressTracker=r,this.m_geoms=t,this.m_maxDeviation=e,this.m_bRemoveDegenerateParts=s}tock(){return!0}getRank(){return 1}next(){const t=this.m_geoms.next();return null===t?null:((0,i.c)(t),this.generalize(t))}getGeometryID(){return this.m_geoms.getGeometryID()}generalize(t){const e=t.getGeometryType();if((0,i.f)(e))return t;if(e===i.G.enumEnvelope){const e=new a.P({vd:t.getDescription()});return e.addEnvelope(t,!1),this.generalize(e)}if((0,i.h)(e)){const e=new a.a({vd:t.getDescription()});return e.addSegment(t,!0),this.generalize(e)}if((0,i.j)(e)||(0,i.t)(""),t.isEmpty()||this.m_maxDeviation<=0)return t;const s=(new u.O).execute(t,0,.05*this.m_maxDeviation,0,this.m_progressTracker);t.hasNonLinearSegments()&&(this.m_maxDeviation*=.95);const n=s,o=t.createInstance();o.getGeometryType()===i.G.enumPolygon&&o.setFillRule(t.getFillRule()),this.m_xy=n.getAttributeStreamRef(0);{const t={stack:[],error:void 0,hasError:!1};try{const e=new a.L;this.m_pline=e,(0,r.mS)(t,(0,h.h)(()=>{this.m_pline=null},!1),!1);for(let t=0,e=n.getPathCount();t<e;t++)this.generalizePath(n.getImpl(),t,o.getImpl())}catch(e){t.error=e,t.hasError=!0}finally{(0,r.hk)(t)}}return this.m_resultstack.length=0,this.m_stack.length=0,o}generalizePath(t,e,s){if(t.getPathSize(e)<2)return;this.m_resultstack.length=0,this.m_stack.length=0;const r=t.getPathStart(e),n=t.getPathEnd(e)-1,i=t.isClosedPath(e),a=t.isClosedPathInXYPlane(e);let o=0,u=-1;this.m_stack.push(i?r:n),this.m_stack.push(r);let c=!1,l=!1;for(!this.m_bRemoveDegenerateParts&&a&&(c=!0,l=!0);this.m_stack.length>1;){const e=this.m_stack.at(-1);this.m_stack.pop();const s=this.m_stack.at(-1);let r=t.getXY(e);this.m_pline.setStartXY(r),r=t.getXY(s),this.m_pline.setEndXY(r);const i=[Number.NaN];let a=this.findGreatestDistance(e,s,n,i);a>=0&&(c?c=!1:(l&&i[0]>o&&(o=i[0],u=a),i[0]<=this.m_maxDeviation&&(a=-1))),a>=0?(this.m_stack.push(a),this.m_stack.push(e)):this.m_resultstack.push(e)}i||this.m_resultstack.push(this.m_stack[0]);const m=this.m_resultstack.length;if(m===t.getPathSize(e)&&m===this.m_stack.length)s.addPath(t,e,!0);else if(this.m_resultstack.length>0){if(this.m_bRemoveDegenerateParts&&this.m_resultstack.length<=2){if(i||1===this.m_resultstack.length)return;if(h.P.distance(t.getXY(this.m_resultstack[0]),t.getXY(this.m_resultstack[1]))<=this.m_maxDeviation)return}if(l&&u>=0&&o<=this.m_maxDeviation){const t=this.m_resultstack.at(-1)>u;this.m_resultstack.push(u),t&&(this.m_resultstack[this.m_resultstack.length-2]=(0,h.c)(this.m_resultstack[this.m_resultstack.length-1],this.m_resultstack[this.m_resultstack.length-1]=this.m_resultstack[this.m_resultstack.length-2]))}for(let e=0,r=this.m_resultstack.length;e<r;e++)t.getPointByVal(this.m_resultstack[e],this.m_point),0===e?s.startPathPoint(this.m_point):s.lineToPoint(this.m_point);if(i){for(let t=this.m_resultstack.length;t<3;t++)s.lineToPoint(this.m_point);s.closePathWithLine()}}}findGreatestDistance(t,e,s,r){let n=e-1;e<=t&&(n=s);let i=-1,a=0;const o=new h.P;for(let e=t+1;e<=n;e++){this.m_xy.queryPoint2D(2*e,o);const t=o.x,s=o.y,r=this.m_pline.getClosestCoordinate(o,!1);o.assign(this.m_pline.getCoord2D(r)),o.x-=t,o.y-=s;const n=o.length();n>a&&(i=e,a=n),this.m_callCount++}return r[0]=a,i}}},76061(t,e,s){s.d(e,{S:()=>n});var r=s(61691);class n extends r.G{m_aGeoms;m_iGeom=-1;constructor(t){super(),this.m_aGeoms=t?t.slice():[]}next(){if(this.m_iGeom<this.m_aGeoms.length-1){const t=this.m_aGeoms[++this.m_iGeom];return this.m_aGeoms[this.m_iGeom]=null,t}return null}tock(){return!1}getGeometryID(){return this.m_iGeom}getRank(){return 1}}},92523(t,e,s){s.d(e,{e:()=>o});var r=s(4576),n=s(86211),i=s(70787),a=s(78125);function o(t,e,s={}){const{removeDegenerateParts:r=!1,unit:o}=s,h=(0,a.getSpatialReference)(t);return o&&(e=(0,n.UW)(e,o,h)),(0,a.toGeometry)((0,i.g7)((0,a.fromGeometry)(t),e,r),h)}const h=(0,i.fz)(),u=Object.freeze(Object.defineProperty({__proto__:null,execute:o,executeMany:function(t,e,s={}){const{removeDegenerateParts:o=!1,unit:h}=s,u=t.map(a.fromGeometry),c=(0,a.getSpatialReference)(t);return h&&(e=(0,n.UW)(e,h,c)),(0,i.zo)(u,e,o).map(t=>(0,a.toGeometry)(t,c)).filter(r.Ru)},supportsCurves:h},Symbol.toStringTag,{value:"Module"}));s.d(e,["g",0,u])},69397(t,e,s){s.d(e,{Qf:()=>o,Qh:()=>i,lM:()=>n});var r=s(34275);function n(t){if(!t)return 0;let e=u;for(const s in t)t.hasOwnProperty(s)&&(e+=a(t[s],!1));return e}function i(t){if(!t)return 0;if("number"==typeof t[0])return o(t);if(Array.isArray(t))return function(t){const e=t.length;if(0===e||"number"==typeof t[0])return h(t,8);let s=c;for(let r=0;r<e;r++)s+=a(t[r]);return s}(t);let e=u;for(const s in t)t.hasOwnProperty(s)&&(e+=a(t[s]));return e}function a(t,e=!0){switch(typeof t){case"object":return e?i(t):u;case"string":return function(t){return 32+t.length}(t);case"number":return 16;case"boolean":return 4;default:return 8}}function o(...t){return t.reduce((t,e)=>t+(e?(0,r.iu)(e)?e.byteLength+l:Array.isArray(e)?h(e,16):0:0),0)}function h(t,e){return c+t.length*e}const u=32,c=16,l=145},87992(t,e,s){s.d(e,{JR:()=>E,ME:()=>C,MY:()=>k,NO:()=>_,Nh:()=>P,V2:()=>Z,_s:()=>O,e6:()=>b,gh:()=>M,tr:()=>Y,uX:()=>p});var r=s(5482),n=s(16930),i=s(19419),a=s(60408),o=s(21325),h=s(513),u=s(50954),c=s(79567),l=s(52006),m=s(49663),g=s(46068),f=s(92722);class p{constructor({type:t,spatialReference:e,vertexCount:s,vertexXY:r,vertexZ:n,vertexM:i,partCount:a,partOffsets:o,partFlags:h,segmentFlags:u,segmentIndices:c,segmentParams:l,segmentCountArc:m,segmentCountBezier:g}){this.segmentCountArc=0,this.segmentCountBezier=0,this.type=t,this.spatialReference=e,this.vertexCount=s,this.vertexXY=r,this.vertexZ=n,this.vertexM=i,this.partCount=a,this.partOffsets=o,this.partFlags=h,this.segmentFlags=u,this.segmentIndices=c,this.segmentParams=l,this.segmentCountArc=m,this.segmentCountBezier=g}get segmentParamCount(){return 10*this.segmentCountArc+4*this.segmentCountBezier}get segmentCountLine(){const{segmentCount:t,segmentCountArc:e,segmentCountBezier:s}=this;return t&&t-e-s}get segmentCount(){return"polyline"===this.type?this.vertexCount-this.partCount:"polygon"===this.type?this.vertexCount:0}get hasZ(){return null!=this.vertexZ}get hasM(){return null!=this.vertexM}hasCurves(){return this.segmentCountArc+this.segmentCountBezier>0}isMultipart(){return"polyline"===this.type||"polygon"===this.type}get usedMemory(){function t(t){return t?64+t.byteLength:0}return t(this.vertexXY)+t(this.vertexZ)+t(this.vertexM)+t(this.partOffsets)+t(this.partFlags)+t(this.segmentFlags)+t(this.segmentIndices)+t(this.segmentParams)}clone(){const{type:t,vertexCount:e,partCount:s,hasZ:r,hasM:n,segmentCountArc:i,segmentCountBezier:a}=this,o=Z(t,e,s,r,n,this.hasCurves(),i,a);o.spatialReference=this.spatialReference;const{vertexXY:h,vertexZ:u,vertexM:c}=this;if(o.vertexXY.set(h.subarray(0,2*e),0),o.vertexZ?.set(u.subarray(0,e),0),o.vertexM?.set(c.subarray(0,e),0),this.isMultipart()){const{partOffsets:t,partFlags:e}=this;o.partFlags.set(e.subarray(0,s+1)),o.partOffsets.set(t.subarray(0,s+1))}if(this.hasCurves()){const{segmentFlags:t,segmentIndices:s,segmentParams:r,segmentParamCount:n}=this;o.segmentFlags.set(t.subarray(0,e),0),o.segmentIndices.set(s.subarray(0,e),0),o.segmentParams.set(r.subarray(0,n),0)}return o}equals(t){return this.equalsWithinTolerance(t,0)}equalsWithinTolerance(t,e){if(null==t)return!1;if(this===t)return!0;if(!(0,o.aI)(this.spatialReference,t.spatialReference))return!1;if(this.vertexCount!==t.vertexCount||this.partCount!==t.partCount)return!1;if(this.hasZ!==t.hasZ||this.hasM!==t.hasM)return!1;if(this.hasCurves()!==t.hasCurves()||this.segmentCountArc!==t.segmentCountArc||this.segmentCountBezier!==t.segmentCountBezier)return!1;const s=0===e?(t,e)=>t!==e||isNaN(t)!==isNaN(e):(t,s)=>Math.abs(t-s)>e||isNaN(t)!==isNaN(s);for(let e=0;e<this.vertexCount;++e)if(s(this.vertexXY[2*e],t.vertexXY[2*e])||s(this.vertexXY[2*e+1],t.vertexXY[2*e+1]))return!1;if(this.hasZ)for(let e=0;e<this.vertexCount;++e)if(s(this.vertexZ[e],t.vertexZ[e]))return!1;if(this.hasM)for(let e=0;e<this.vertexCount;++e)if(s(this.vertexM[e],t.vertexM[e]))return!1;for(let e=0;e<this.partCount;++e)if(this.partFlags[e]!==t.partFlags[e]||this.partOffsets[e]!==t.partOffsets[e])return!1;if(this.hasCurves()){for(let e=0;e<this.vertexCount;++e)if(this.segmentFlags[e]!==t.segmentFlags[e]||this.segmentIndices[e]!==t.segmentIndices[e])return!1;for(let e=0;e<this.segmentParamCount;++e)if(s(this.segmentParams[e],t.segmentParams[e]))return!1}return!0}get parts(){return this.isMultipart()?new x(this):[][Symbol.iterator]()}}class x{constructor(t){this.geometry=t,this.value=new y(t)}get done(){return this.value.index>=this.geometry.partCount}next(){return++this.value.index,this}[Symbol.iterator](){return this}}class y{constructor(t){this.geometry=t,this.index=-1,this._readVertex=S(t),this._segments=new d(this)}get segments(){return this._segments.reset(),this._segments}get startVertex(){return this._readVertex(this.geometry.partOffsets[this.index])}get vertexCount(){const t=this.geometry.partOffsets;return t[this.index+1]-t[this.index]}}class d{constructor(t){this._part=t,this._partStart=0,this._partEnd=0,this._isPolygon="polygon"===t.geometry.type,this.value=new 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=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 s=this.geometry.segmentIndices[this.indexOfStartVertex];if(2===t){const t=e[s++],r=e[s++],n=e[s++],i=e[s++];return{b:[this.end,[t,r],[n,i]]}}const r=e[s++],n=e[s++],i=e[s++],a=e[s++],o=e[s++],h=e[s++];s++,s++;const u=e[s++],c=e[s++];if(!Boolean(4&r)&&1===i)return{c:[this.end,[u,c]]};const l=2&r?0:1,m=1&r?0:1;return{a:[this.end,[o,h],l,m,a,n,i]}}}function _(t,e){const s={stack:[],error:void 0,hasError:!1};try{return e??=(0,i.Ie)(),(0,r.mS)(s,new w(t,["vertexZ","vertexM","spatialReference"]),!1),(0,i.bx)(e,function(t){let e;const{vertexCount:s,vertexXY:n,vertexZ:a,vertexM:o}=t,h=R(t);if(t.hasCurves()){const s={stack:[],error:void 0,hasError:!1};try{(0,r.mS)(s,new w(t,["vertexZ","vertexM"]),!1);const n=(0,i.Ie)();for(const e of t.parts){let t=e.startVertex;for(const{curve:s}of e.segments)(0,c.e)(n,t,s),t=(0,l.yP)(s)}const[a,o,u,m]=n;e={xmin:a,ymin:o,xmax:u,ymax:m,spatialReference:h}}catch(t){s.error=t,s.hasError=!0}finally{(0,r.hk)(s)}}else{let t,r,i,a;t=r=1/0,i=a=-1/0;for(let e=0;e<s;++e){const s=n[2*e],o=n[2*e+1];t=Math.min(t,s),i=Math.max(i,s),r=Math.min(r,o),a=Math.max(a,o)}e={xmin:t,ymin:r,xmax:i,ymax:a,spatialReference:h}}if(a){let t=1/0,s=-1/0;for(const e of a)t=Math.min(t,e),s=Math.max(s,e);e.zmin=t,e.zmax=s}if(o){let t=1/0,s=-1/0;for(const e of o)t=Math.min(t,e),s=Math.max(s,e);e.mmin=t,e.mmax=s}return e}(t)),e}catch(t){s.error=t,s.hasError=!0}finally{(0,r.hk)(s)}}function C(t){let e,s,r;if((0,a.fT)(t)){r="point";const{x:n,y:i,z:a,m:o}=t,h=[n,i];null!=a&&h.push(a),null!=o&&h.push(o),s=[[h]],e=1}else(0,a.U9)(t)?(r="multipoint",s=[t.points],e=t.points.length):(0,a.Rg)(t)?(r="polyline",s=t.curvePaths??t.paths,e=s.reduce((t,e)=>t+e.length,0)):(r="polygon",s=t.curveRings??t.rings,e=s.reduce((t,e)=>(0===e.length||(t+=e.length,V(e[0],(0,l.yP)(e.at(-1)))&&--t),t),0));const n=Z(r,e,r.includes("point")?0:s.length,(0,a.Pv)(t),(0,a.W0)(t),(0,l.Ed)(t)),{hasZ:i,hasM:o,vertexXY:h,vertexZ:u,vertexM:c}=n;function m(t){h[2*f]=t[0],h[2*f+1]=t[1],i&&(u[f]=t[2]),o&&(c[f]=t[g]),++f}n.spatialReference=t.spatialReference??void 0;const g=n.hasZ?3:2;let f=0;if(!n.isMultipart()){if(!i&&!o){for(const[t,e]of s[0])h[2*f]=t,h[2*f+1]=e,++f;return n}for(const t of s[0])m(t);return n}const p="polygon"===r,{partOffsets:x}=n;let y=0;if(!(0,l.Ed)(t)){for(const t of s){if(x[y++]=f,0===t.length)continue;let e=t.length;if(p&&V(t[0],t.at(-1))&&--e,i||o)for(let s=0;s<e;++s)m(t[s]);else for(let s=0;s<e;++s){const[e,r]=t[s];h[2*f]=e,h[2*f+1]=r,++f}}return x[y]=f,n}function d(t){const e=v+t;if(e<=(n.segmentParams?.length??0))return;let s=e*I;s=20*Math.ceil(s/20);const r=n.segmentParams;n.segmentParams=new Float64Array(s),null!=r&&n.segmentParams.set(r)}let v=0;for(const t of s){if(n.partOffsets[y++]=f,0===t.length)continue;const e=t[0];let s=e;for(let e=1;e<t.length;++e){const r=t[e];m(s);const i=f-1;(0,l.wY)(r)?(d(10),++n.segmentCountArc,v=O(s,r,n,i,v),s=r.a[0]):(0,l.DA)(r)?(d(10),++n.segmentCountArc,v=A(s,r,n,i,v),s=r.a[0]):(0,l.aO)(r)?(d(10),++n.segmentCountArc,v=b(s,r,n,i,v),s=r.c[0]):(0,l.n1)(r)?(d(4),++n.segmentCountBezier,v=Y(0,r,n,i,v),s=r.b[0]):s=r}p&&V(e,s)||m(s)}return n.partOffsets[y]=f,n}function M(t){const e=S(t),{vertexCount:s,partCount:r,hasZ:n,hasM:i}=t,a=R(t);if("point"===t.type){const[e,s]=t.vertexXY,r=t.vertexZ?.[0],n=t.vertexM?.[0];return{x:e,y:s,z:r,m:n,spatialReference:a}}let o=0;if("multipoint"===t.type){const t=[];for(;o<s;)t.push(e(o++));return{points:t,spatialReference:a,hasZ:n,hasM:i}}const h="polygon"===t.type;if(!t.hasCurves()){const s=new Array;for(let n=0;n<r;++n){const r=t.partOffsets[n+1],i=new Array;for(;o<r;)i.push(e(o++));h&&i.length>0&&i.push(i[0]),s.push(i)}return h?{rings:s,hasZ:n,hasM:i,spatialReference:a}:{paths:s,hasZ:n,hasM:i,spatialReference:a}}const u=new Array;for(const{segments:e,startVertex:s}of t.parts){const t=[s];for(const{curve:s}of e)t.push(s);u.push(t)}return h?{rings:[],curveRings:u,hasZ:n,hasM:i,spatialReference:a}:{paths:[],curvePaths:u,hasZ:n,hasM:i,spatialReference:a}}function P(t,{lengths:e,coords:s,hasZ:r,hasM:n},i){const a=t.includes("point")?0:e.length,o="polygon"===t,h="point"===t?1:e.reduce((t,e)=>t+e,0)-(o?a:0);r??=!1,n??=!1;const u=Z(t,h,a,r,n,!1,0,0);if(u.spatialReference=i??void 0,!u.isMultipart()){for(let t=0,e=0;t<h;++t)u.vertexXY[2*t]=s[e++],u.vertexXY[2*t+1]=s[e++],r&&(u.vertexZ[t]=s[e++]),n&&(u.vertexM[t]=s[e++]);return u}const c=2+Number(r)+Number(n);let l=0,m=0;u.partOffsets[0]=0;for(const t of e){const e=u.partOffsets[m],i=e+t-Number(o);u.partOffsets[++m]=i;for(let t=e;t<i;++t)u.vertexXY[2*t]=s[l++],u.vertexXY[2*t+1]=s[l++],r&&(u.vertexZ[t]=s[l++]),n&&(u.vertexM[t]=s[l++]);o&&(l+=c)}return u}function E({type:t,vertexCount:e,vertexXY:s,vertexZ:r,vertexM:n,partCount:i,partOffsets:a,hasZ:o,hasM:h}){const u=new f.A([],[],o,h);i=Math.max(i,1);const c="polygon"===t;let l=0;for(let t=0;t<i;++t){const i=a?.[t+1]??e,m=u.coords.length;for(let t=l;t<i;++t)u.coords.push(s[2*t],s[2*t+1]),o&&u.coords.push(r[t]),h&&u.coords.push(n[t]);if(c){const t=l;u.coords.push(s[2*t],s[2*t+1]),o&&u.coords.push(r[t]),h&&u.coords.push(n[t])}u.lengths.push((u.coords.length-m)/u.stride),l=i}return"point"===t&&(u.lengths.length=0),u}function k(t,e){return"getSpatialReference"in t&&(e=function(t){if(null==t)return;const e=t.getText()||void 0,s=t.isCustomWkid()?0:t.getOldID();if(s<=0)return{wkt:e};let r=t.getLatestID();(r<=0||r===s)&&(r=void 0);const n=t.getVCS();if(null==n)return{wkid:s,latestWkid:r,wkt:e};const i=n.isCustomWkid()?0:n.getOldID();if(i<=0)return{wkt:e};let a=t.getLatestVerticalID();return(a<=0||a===i)&&(a=void 0),{wkid:s,wkt:e,latestWkid:r,vcsWkid:i,latestVcsWkid:a}}(t.getSpatialReference()),t=t.getGeometry()),new p({...t.toFlatGeometry(),spatialReference:e})}class w{constructor(t,e){this.target=t,this.keys=e,this.oldValues=e.map(e=>t[e]);for(const s of e)t[s]=void 0}[Symbol.dispose](){this.keys.map((t,e)=>{this.target[t]=this.oldValues[e]})}}function R({spatialReference:t}){return t instanceof n.A?t.toJSON():t}function S({vertexXY:t,vertexZ:e,vertexM:s}){return e?s?r=>[t[2*r],t[2*r+1],e[r],s[r]]:s=>[t[2*s],t[2*s+1],e[s]]:s?e=>[t[2*e],t[2*e+1],s[e]]:e=>[t[2*e],t[2*e+1]]}function V(t,e){return t.every((t,s)=>t===e[s])}function Z(t,e,s,r,n,i,a,o){a??=0,o??=0;const h=new p({type:t,vertexCount:e,vertexXY:null,vertexZ:void 0,vertexM:void 0,partCount:s,partOffsets:void 0,partFlags:void 0,segmentFlags:void 0,segmentIndices:void 0,segmentParams:void 0,segmentCountArc:a,segmentCountBezier:o});let u=2*Float64Array.BYTES_PER_ELEMENT*e;r&&(u+=Float64Array.BYTES_PER_ELEMENT*e),n&&(u+=Float64Array.BYTES_PER_ELEMENT*e),h.isMultipart()&&(u+=(s+1)*Int32Array.BYTES_PER_ELEMENT,u+=(s+1)*Int8Array.BYTES_PER_ELEMENT),i&&(u+=e*Int8Array.BYTES_PER_ELEMENT,u+=e*Int32Array.BYTES_PER_ELEMENT,u+=h.segmentParamCount*Float64Array.BYTES_PER_ELEMENT);const c=new ArrayBuffer(u);let l=0;return h.vertexXY=new Float64Array(c,l,2*e),l+=h.vertexXY.byteLength,r&&(h.vertexZ=new Float64Array(c,l,e),l+=h.vertexZ.byteLength),n&&(h.vertexM=new Float64Array(c,l,e),l+=h.vertexM.byteLength),i&&(h.segmentParams=new Float64Array(c,l,h.segmentParamCount),l+=h.segmentParams.byteLength,h.segmentIndices=new Int32Array(c,l,e),h.segmentIndices.fill(X),l+=h.segmentIndices.byteLength),h.isMultipart()&&(h.partOffsets=new Int32Array(c,l,s+1),l+=h.partOffsets.byteLength,h.partFlags=new Int8Array(c,l,s+1),l+=h.partFlags.byteLength,"polygon"===h.type&&h.partFlags.subarray(0,s).fill(1)),i&&(h.segmentFlags=new Int8Array(c,l,e),h.segmentFlags.fill(1),l+=h.segmentFlags.byteLength),h}function O(t,e,{segmentFlags:s,segmentIndices:r,segmentParams:n},i,a){s[i]=4,r[i]=a;const[o,[h,u],c,l,m,f,p]=e.a;let x=4;l||(x|=1),c||(x|=2);const y=(0,g.SW)(t,e),[d,v]=(0,g.Uk)(y,.5);return n[a++]=x,n[a++]=f,n[a++]=p,n[a++]=m,n[a++]=h,n[a++]=u,n[a++]=y.u2-y.u1,n[a++]=y.u1,n[a++]=d,n[a++]=v,a}function A(t,e,{segmentFlags:s,segmentIndices:r,segmentParams:n},i,a){s[i]=4,r[i]=a;const o=(0,m.io)(t,e);return G(o,4,...(0,h.mq)(o,.5),n,a)}function b(t,e,{segmentFlags:s,segmentIndices:r,segmentParams:n},i,a){return s[i]=4,r[i]=a,G((0,u.pM)(t,e),0,...e.c[1],n,a)}function G(t,e,s,r,n,i){const{cx:a,cy:o,thetaStart:h,thetaEnd:u,radius:c}=t;return h>u||(e|=1),Math.abs(u-h)<=Math.PI||(e|=2),n[i++]=e,n[i++]=c,n[i++]=1,n[i++]=0,n[i++]=a,n[i++]=o,n[i++]=u-h,n[i++]=h,n[i++]=s,n[i++]=r,i}function Y(t,{b:[e,[s,r],[n,i]]},{segmentFlags:a,segmentIndices:o,segmentParams:h},u,c){return a[u]=2,o[u]=c,h[c++]=s,h[c++]=r,h[c++]=n,h[c++]=i,c}const I=1.61803,X=-1},60591(t,e,s){s.d(e,{execute:()=>r.e}),s(4576),s(86211),s(70787),s(78125);var r=s(92523)},70787(t,e,s){s.d(e,{fz:()=>o,g7:()=>i,zo:()=>a});var r=s(76061);const n=new(s(64523).O);function i(t,e,s){return n.execute(t,e,s,null)}function a(t,e,s){const i=n.executeMany(new r.S(t),e,s,null);return Array.from(i)}function o(){return n.supportsCurves()}},78125(t,e,s){s.r(e),s.d(e,{fromExtent:()=>x,fromGeometry:()=>p,fromMultipoint:()=>y,fromPoint:()=>d,fromPolygon:()=>v,fromPolyline:()=>_,fromPolylineUsingImportOperator:()=>C,fromSpatialReference:()=>M,getSpatialReference:()=>f,toExtent:()=>E,toGeometry:()=>P,toMultipoint:()=>k,toPoint:()=>w,toPolygon:()=>R,toPolyline:()=>S});var r=s(83661),n=s(55537),i=s(95213),a=s(88885),o=s(5443),h=s(48526),u=s(86738),c=s(39829),l=s(82799),m=(s(90293),s(83299));const g="_gxVersion";function f(t){return Array.isArray(t)?t[0].spatialReference:t.spatialReference}function p(t){switch(t.type){case"point":return d(t);case"multipoint":return y(t);case"polyline":return _(t);case"polygon":return v(t);case"extent":return x(t);default:throw new Error(`Unsupported geometry type: ${t.type}`)}}function x(t){if(!t.getCacheValue(g)){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(g,e)}return t.getCacheValue(g)}function y(t){if(!t.getCacheValue(g)){const e=new a.M,s=new i.P,r=t.points,n=t.hasM,o=t.hasZ,h=o?3:2;for(let t=0,i=r.length;t<i;t++){const i=r[t];s.setXYCoords(i[0],i[1]),o&&s.setZ(i[2]??0),n&&s.setM(i[h]??NaN),e.add(s)}t.setCacheValue(g,e)}return t.getCacheValue(g)}function d(t){if(!t.getCacheValue(g)){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(g,e)}return t.getCacheValue(g)}function v(t){if(!t.getCacheValue(g)){const{curveRings:e,hasM:s,hasZ:r,rings:n}=t,i=(0,m.fromGeometryToGXGeometry)({curveRings:e,hasM:s,hasZ:r,rings:n});t.setCacheValue(g,i)}return t.getCacheValue(g)}function _(t){if(!t.getCacheValue(g)){const{curvePaths:e,hasM:s,hasZ:r,paths:n}=t,i=(0,m.fromGeometryToGXGeometry)({curvePaths:e,hasM:s,hasZ:r,paths:n});t.setCacheValue(g,i)}return t.getCacheValue(g)}function C(t){if(!t.getCacheValue(g)){const{curvePaths:e,hasM:s,hasZ:r,paths:n}=t,i=(0,m.fromGeometryToGXGeometryUsingImportOperator)({curvePaths:e,hasM:s,hasZ:r,paths:n});t.setCacheValue(g,i)}return t.getCacheValue(g)}function M(t){return t.cache?(t.cache[g]??=(0,m.fromSpatialReference)(t),t.cache[g]):(0,m.fromSpatialReference)(t)}function P(t,e){if(t)switch(t.getGeometryType()){case n.G.enumPoint:return w(t,e);case n.G.enumEnvelope:return E(t,e);case n.G.enumMultiPoint:return k(t,e);case n.G.enumPolyline:return S(t,e);case n.G.enumPolygon:return R(t,e)}return null}function E(t,e){if(t.isEmpty())return null;const s=new o.A({xmin:t.getXMin(),ymin:t.getYMin(),xmax:t.getXMax(),ymax:t.getYMax(),spatialReference:e}),r=t.getDescription();if(r.hasM()){const e=t.queryInterval(2,0);s.mmin=e.vmin,s.mmax=e.vmax}if(r.hasZ()){const e=t.queryInterval(1,0);s.zmin=e.vmin,s.zmax=e.vmax}return s.setCacheValue(g,t),s}function k(t,e){if(t.isEmpty())return null;const s=t.getDescription(),r=s.hasM(),n=s.hasZ(),a=[],o=new i.P;for(let e=0,s=t.getPointCount();e<s;e++){t.getPointByVal(e,o);const s=[o.getX(),o.getY()];n&&s.push(o.getZ()),r&&s.push(o.getM()),a.push(s)}const u=new h.A({hasM:r,hasZ:n,points:a,spatialReference:e});return u.setCacheValue(g,t),u}function w(t,e){if(t instanceof r.P)return new u.A({x:t.x,y:t.y,spatialReference:e});if(t.isEmpty())return null;const s=new u.A({x:t.getX(),y:t.getY(),spatialReference:e}),n=t.getDescription();return n.hasM()&&(s.m=t.getM()),n.hasZ()&&(s.z=t.getZ()),s.setCacheValue(g,t),s}function R(t,e){if(t.isEmpty())return null;const s=c.A.fromJSON({...(0,m.toGeometry)(t,null),spatialReference:e});return s.setCacheValue(g,t),s}function S(t,e){if(t.isEmpty())return null;const s=l.A.fromJSON({...(0,m.toGeometry)(t,null),spatialReference:e});return s.setCacheValue(g,t),s}},92722(t,e,s){s.d(e,{A:()=>n});var r=s(69397);class n{constructor(t=[],e=[],s=!1,r=!1){this.lengths=t??[],this.coords=e??[],this.hasZ=s,this.hasM=r}static fromJSON({lengths:t,coords:e,hasZ:s,hasM:r}){return new n(t,e,s||!1,r||!1)}static fromRect([t,e,s,r]){const i=s-t,a=r-e;return new n([5],[t,e,i,0,0,a,-i,0,0,-a])}get isPoint(){return 0===this.lengths.length&&this.coords.length>=2}get maxLength(){return Math.max(...this.lengths)}get size(){return this.isPoint?1:this.lengths.reduce((t,e)=>t+e,0)}get usedMemory(){return 64+(0,r.Qf)(this.lengths,this.coords)}get stride(){return 2+(this.hasZ?1:0)+(this.hasM?1:0)}area(){if(this.isPoint)return 0;let t=0,e=0;for(const s of this.lengths){if(s<3)continue;const{stride:r}=this;let n=this.coords[r*e],i=this.coords[r*e+1];for(let a=1;a<s;a+=1){const s=r*(e+a),o=this.coords[s],h=this.coords[s+1];t+=-.5*(o-n)*(h+i),n=o,i=h}e+=s}return t}forEachVertex(t){let e=0;if(this.isPoint)return t(this.coords[0],this.coords[1]);const{stride:s}=this;for(const r of this.lengths){for(let n=0;n<r;n++){const r=s*(e+n);t(this.coords[r],this.coords[r+1])}e+=r}}deltaDecode(){const t=this.clone(),{coords:e,lengths:s}=t;let r=0;const{stride:n}=this;for(const t of s){for(let s=1;s<t;s++){const t=n*(r+s);e[t]+=e[t-n],e[t+1]+=e[t+1-n]}r+=t}return t}clone(t){if(this.isPoint)return new n([],Array.from(this.coords.slice(0,this.stride)),this.hasZ,this.hasM);const e=Array.from(this.lengths),{stride:s,size:r}=this,i=this.coords.slice(0,r*s);return t?(t.set(i),new n(e,t,this.hasZ,this.hasM)):new n(e,Array.from(i),this.hasZ,this.hasM)}justXY(){const{stride:t,size:e}=this;if(2===t)return this;const s=new Array(e*t);for(let e=0,r=0;e<s.length;e+=t)s[r++]=this.coords[e],s[r++]=this.coords[e+1];return new n(this.lengths,s,!1,!1)}}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[117],{68197(e,t,r){r.d(t,{A:()=>u});var i=r(40876),n=r(4576),o=r(34727),s=r(56507);function a(e){return(0,o.qE)((0,s.Vr)(e),0,255)}function l(e,t){const r=e.toString(16).padStart(2,"0");return t?r.slice(0,1):r}class u{static blendColors(e,t,r,i=new u){return i.r=Math.round(e.r+(t.r-e.r)*r),i.g=Math.round(e.g+(t.g-e.g)*r),i.b=Math.round(e.b+(t.b-e.b)*r),i.a=e.a+(t.a-e.a)*r,i._sanitize()}static fromRgb(e,t){const r=(0,i.lT)(e);return r?u.fromArray(r,t):null}static fromHex(e,t=new u){const r=(0,i.oW)(e);return r?u.fromArray(r,t):null}static fromArray(e,t=new u){return t._set(Number(e[0]),Number(e[1]),Number(e[2]),Number(e[3])),isNaN(t.a)&&(t.a=1),t._sanitize()}static fromString(e,t){const r=(0,i.Eq)(e);return r?u.fromArray(r,t):null}static fromJSON(e){return null!=e?new u([e[0],e[1],e[2],(e[3]??255)/255]):void 0}toUnitRGB(){return[this.r/255,this.g/255,this.b/255]}toUnitRGBA(e){return e??=[0,0,0,0],e[0]=this.r/255,e[1]=this.g/255,e[2]=this.b/255,e[3]=null!=this.a?this.a:1,e}constructor(e){this.r=255,this.g=255,this.b=255,this.a=1,e&&this.setColor(e)}get isBright(){return.299*this.r+.587*this.g+.114*this.b>=127}setColor(e){if("string"==typeof e)u.fromString(e,this);else if((0,n.yc)(e))u.fromArray(e,this);else{const t=e;this._set(t.r??0,t.g??0,t.b??0,t.a??1),e instanceof u||this._sanitize()}return this}toRgb(){return[this.r,this.g,this.b]}toRgba(){return[this.r,this.g,this.b,this.a]}toHex(e){const t=e?.capitalize??!1,r=e?.digits??6,i=3===r||4===r,n=4===r||8===r,o=`#${l(this.r,i)}${l(this.g,i)}${l(this.b,i)}${n?l(Math.round(255*this.a),i):""}`;return t?o.toUpperCase():o}toCss(e=!1){const t=this.r+", "+this.g+", "+this.b;return e?`rgba(${t}, ${this.a})`:`rgb(${t})`}toString(){return this.toCss(!0)}toJSON(){return this.toArray()}toArray(e=0){const t=a(this.r),r=a(this.g),i=a(this.b);return 0===e||1!==this.a?[t,r,i,a(255*this.a)]:[t,r,i]}clone(){return new u(this.toRgba())}hash(){return this.r<<24|this.g<<16|this.b<<8|255*this.a}equals(e){return null!=e&&e.r===this.r&&e.g===this.g&&e.b===this.b&&e.a===this.a}_sanitize(){return this.r=(0,i.c1)(this.r),this.g=(0,i.c1)(this.g),this.b=(0,i.c1)(this.b),this.a=(0,i.G1)(this.a),this}_set(e,t,r,i){this.r=e,this.g=t,this.b=r,this.a=i}}u.prototype.declaredClass="esri.Color"},40876(e,t,r){r.d(t,{Eq:()=>h,G1:()=>y,TS:()=>o,V6:()=>n,Vm:()=>g,ay:()=>l,c1:()=>m,c4:()=>s,j5:()=>u,lT:()=>d,oW:()=>c,xV:()=>b});const i={transparent:[0,0,0,0],black:[0,0,0,1],silver:[192,192,192,1],gray:[128,128,128,1],white:[255,255,255,1],maroon:[128,0,0,1],red:[255,0,0,1],purple:[128,0,128,1],fuchsia:[255,0,255,1],green:[0,128,0,1],lime:[0,255,0,1],olive:[128,128,0,1],yellow:[255,255,0,1],navy:[0,0,128,1],blue:[0,0,255,1],teal:[0,128,128,1],aqua:[0,255,255,1],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],blanchedalmond:[255,235,205,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],oldlace:[253,245,230,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],rebeccapurple:[102,51,153,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],whitesmoke:[245,245,245,1],yellowgreen:[154,205,50,1]};function n(e){return!!i[e]||!!i[e.toLowerCase()]}function o(e){return i[e]??i[e.toLowerCase()]}function s(e){return[...o(e)]}function a(e,t,r){r<0&&++r,r>1&&--r;const i=6*r;return i<1?e+(t-e)*i:2*r<1?t:3*r<2?e+(t-e)*(2/3-r)*6:e}function l(e,t,r,i=1){const n=(e%360+360)%360/360,o=r<=.5?r*(t+1):r+t-r*t,s=2*r-o;return[Math.round(255*a(s,o,n+1/3)),Math.round(255*a(s,o,n)),Math.round(255*a(s,o,n-1/3)),i]}function u(e){const t=e.length>5,r=t?8:4,i=(1<<r)-1,n=t?1:17,o=t?9===e.length:5===e.length;let s=Number("0x"+e.slice(1));if(isNaN(s))return null;const a=[0,0,0,1];let l;return o&&(l=s&i,s>>=r,a[3]=n*l/255),l=s&i,s>>=r,a[2]=n*l,l=s&i,s>>=r,a[1]=n*l,l=s&i,s>>=r,a[0]=n*l,a}function c(e){if(!e.startsWith("#")||isNaN(Number(`0x${e.slice(1)}`)))return null;switch(e.length){case 4:case 5:{const t=parseInt(e.slice(1,2),16),r=parseInt(e.slice(2,3),16),i=parseInt(e.slice(3,4),16),n=4===e.length?15:parseInt(e.slice(4),16);return[t+16*t,r+16*r,i+16*i,(n+16*n)/255]}case 7:case 9:return[parseInt(e.slice(1,3),16),parseInt(e.slice(3,5),16),parseInt(e.slice(5,7),16),(7===e.length?255:parseInt(e.slice(7),16))/255];default:return null}}function d(e){const t=e.toLowerCase().match(/^(rgba?|hsla?)\(([\s.\-,%0-9]+)\)/);if(t){const e=t[2].split(/\s*,\s*/),r=t[1];if("rgb"===r&&3===e.length||"rgba"===r&&4===e.length){if(e[0].endsWith("%")){const t=e.map(e=>2.56*parseFloat(e));return 4===e.length&&(t[3]=parseFloat(e[3])),p(t)}return p(e.map(e=>parseFloat(e)))}if("hsl"===r&&3===e.length||"hsla"===r&&4===e.length)return l(parseFloat(e[0]),parseFloat(e[1])/100,parseFloat(e[2])/100,parseFloat(e[3]??"1"))}return null}function p(e){return e[0]=m(e[0]),e[1]=m(e[1]),e[2]=m(e[2]),e[3]=4===e.length?y(e[3]):1,e}function h(e){let t=n(e)?o(e):null;return t??=d(e),t??=c(e),t}function g(e){const t=h(e);return null!=t?[t[0]/255,t[1]/255,t[2]/255,t[3]]:null}function y(e){return f(e,0,1)}function m(e){return Math.round(f(e,0,255))}function f(e,t,r){return e=Number(e),isNaN(e)?r:e<t?t:e>r?r:e}const v=1/2.2;function b(e){return e**v}r.d(t,["iw",0,v])},69052(e,t,r){r.d(t,{hr:()=>n});var i=r(34727);class n{constructor(e,t){this.min=e,this.max=t,this.range=t-e}normalize(e,t=0,r=!1){return o(this.range,this.min,this.max,e,t,r)}clamp(e,t=0){return(0,i.qE)(e-t,this.min,this.max)+t}monotonic(e,t,r){return e<t?t:t+s(this.range,e-t,r)}minimalMonotonic(e,t,r){return o(this.range,e,e+this.range,t,r)}center(e,t,r){return t=this.monotonic(e,t,r),this.normalize((e+t)/2,r)}diff(e,t,r){return this.monotonic(e,t,r)-e}shortestSignedDiff(e,t){e=this.normalize(e);const r=(t=this.normalize(t))-e,i=t<e?this.minimalMonotonic(e,t)-e:t-this.minimalMonotonic(t,e);return Math.abs(r)<Math.abs(i)?r:i}contains(e,t,r){return t=this.minimalMonotonic(e,t),(r=this.minimalMonotonic(e,r))>e&&r<t}}function o(e,t,r,i,n=0,o=!1){return(i-=n)<t?i+=s(e,t-i):i>r&&(i-=s(e,i-r)),o&&i===r&&(i=t),i+n}function s(e,t,r=0){return Math.ceil((t-r)/e)*e+r}const a=new n(0,2*Math.PI),l=(new n(-Math.PI,Math.PI),new n(0,360));r.d(t,["ie",0,l,"uC",0,a])},80200(e,t,r){r.d(t,{d:()=>d});const i={Base64:0,Hex:1,String:2,Raw:3};function n(e,t){const r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function o(e,t,r,i,o,s){return n(function(e,t){return e<<t|e>>>32-t}(n(n(t,e),n(i,s)),o),r)}function s(e,t,r,i,n,s,a){return o(t&r|~t&i,e,t,n,s,a)}function a(e,t,r,i,n,s,a){return o(t&i|r&~i,e,t,n,s,a)}function l(e,t,r,i,n,s,a){return o(t^r^i,e,t,n,s,a)}function u(e,t,r,i,n,s,a){return o(r^(t|~i),e,t,n,s,a)}function c(e,t){e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;let r=1732584193,i=-271733879,o=-1732584194,c=271733878;for(let t=0;t<e.length;t+=16){const d=r,p=i,h=o,g=c;r=s(r,i,o,c,e[t],7,-680876936),c=s(c,r,i,o,e[t+1],12,-389564586),o=s(o,c,r,i,e[t+2],17,606105819),i=s(i,o,c,r,e[t+3],22,-1044525330),r=s(r,i,o,c,e[t+4],7,-176418897),c=s(c,r,i,o,e[t+5],12,1200080426),o=s(o,c,r,i,e[t+6],17,-1473231341),i=s(i,o,c,r,e[t+7],22,-45705983),r=s(r,i,o,c,e[t+8],7,1770035416),c=s(c,r,i,o,e[t+9],12,-1958414417),o=s(o,c,r,i,e[t+10],17,-42063),i=s(i,o,c,r,e[t+11],22,-1990404162),r=s(r,i,o,c,e[t+12],7,1804603682),c=s(c,r,i,o,e[t+13],12,-40341101),o=s(o,c,r,i,e[t+14],17,-1502002290),i=s(i,o,c,r,e[t+15],22,1236535329),r=a(r,i,o,c,e[t+1],5,-165796510),c=a(c,r,i,o,e[t+6],9,-1069501632),o=a(o,c,r,i,e[t+11],14,643717713),i=a(i,o,c,r,e[t],20,-373897302),r=a(r,i,o,c,e[t+5],5,-701558691),c=a(c,r,i,o,e[t+10],9,38016083),o=a(o,c,r,i,e[t+15],14,-660478335),i=a(i,o,c,r,e[t+4],20,-405537848),r=a(r,i,o,c,e[t+9],5,568446438),c=a(c,r,i,o,e[t+14],9,-1019803690),o=a(o,c,r,i,e[t+3],14,-187363961),i=a(i,o,c,r,e[t+8],20,1163531501),r=a(r,i,o,c,e[t+13],5,-1444681467),c=a(c,r,i,o,e[t+2],9,-51403784),o=a(o,c,r,i,e[t+7],14,1735328473),i=a(i,o,c,r,e[t+12],20,-1926607734),r=l(r,i,o,c,e[t+5],4,-378558),c=l(c,r,i,o,e[t+8],11,-2022574463),o=l(o,c,r,i,e[t+11],16,1839030562),i=l(i,o,c,r,e[t+14],23,-35309556),r=l(r,i,o,c,e[t+1],4,-1530992060),c=l(c,r,i,o,e[t+4],11,1272893353),o=l(o,c,r,i,e[t+7],16,-155497632),i=l(i,o,c,r,e[t+10],23,-1094730640),r=l(r,i,o,c,e[t+13],4,681279174),c=l(c,r,i,o,e[t],11,-358537222),o=l(o,c,r,i,e[t+3],16,-722521979),i=l(i,o,c,r,e[t+6],23,76029189),r=l(r,i,o,c,e[t+9],4,-640364487),c=l(c,r,i,o,e[t+12],11,-421815835),o=l(o,c,r,i,e[t+15],16,530742520),i=l(i,o,c,r,e[t+2],23,-995338651),r=u(r,i,o,c,e[t],6,-198630844),c=u(c,r,i,o,e[t+7],10,1126891415),o=u(o,c,r,i,e[t+14],15,-1416354905),i=u(i,o,c,r,e[t+5],21,-57434055),r=u(r,i,o,c,e[t+12],6,1700485571),c=u(c,r,i,o,e[t+3],10,-1894986606),o=u(o,c,r,i,e[t+10],15,-1051523),i=u(i,o,c,r,e[t+1],21,-2054922799),r=u(r,i,o,c,e[t+8],6,1873313359),c=u(c,r,i,o,e[t+15],10,-30611744),o=u(o,c,r,i,e[t+6],15,-1560198380),i=u(i,o,c,r,e[t+13],21,1309151649),r=u(r,i,o,c,e[t+4],6,-145523070),c=u(c,r,i,o,e[t+11],10,-1120210379),o=u(o,c,r,i,e[t+2],15,718787259),i=u(i,o,c,r,e[t+9],21,-343485551),r=n(r,d),i=n(i,p),o=n(o,h),c=n(c,g)}return[r,i,o,c]}function d(e,t=i.Hex){const r=t||i.Base64,n=c(function(e){const t=[];for(let r=0,i=8*e.length;r<i;r+=8)t[r>>5]|=(255&e.charCodeAt(r/8))<<r%32;return t}(e),8*e.length);switch(r){case i.Raw:return n;case i.Hex:return function(e){const t="0123456789abcdef",r=[];for(let i=0,n=4*e.length;i<n;i++)r.push(t.charAt(e[i>>2]>>i%4*8+4&15)+t.charAt(e[i>>2]>>i%4*8&15));return r.join("")}(n);case i.String:return function(e){const t=[];for(let r=0,i=32*e.length;r<i;r+=8)t.push(String.fromCharCode(e[r>>5]>>>r%32&255));return t.join("")}(n);case i.Base64:return function(e){const t=[];for(let r=0,i=4*e.length;r<i;r+=3){const i=(e[r>>2]>>r%4*8&255)<<16|(e[r+1>>2]>>(r+1)%4*8&255)<<8|e[r+2>>2]>>(r+2)%4*8&255;for(let n=0;n<4;n++)8*r+6*n>32*e.length?t.push("="):t.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(i>>6*(3-n)&63))}return t.join("")}(n)}}r.d(t,["T",0,i])},87024(e,t,r){r.d(t,{P:()=>h});var i=r(49186),n=r(80200),o=r(76553),s=r(84952),a=r(13069),l=r(96156),u=r(35666),c=r(10107),d=r(85648),p=r(97159);function h(e){const t=e?.origins??[void 0];return(r,i)=>{const n=function(e,t,r){if("resource"===e?.type)return function(e,t,r){const i=(0,l.z4)(t,r);return{type:String,read:(e,t,r)=>{const n=(0,p.r)(e,t,r);return i.type===String?n:"function"==typeof i.type?new i.type({url:n}):void 0},write:{isRequired:i.json?.write?.isRequired,writer(t,n,a,l){if(!l?.resources)return"string"==typeof t?void(n[a]=(0,p.t)(t,l)):void(n[a]=t.write({},l));const c=function(e){return null==e?null:"string"==typeof e?e:e.url}(t),h=(0,p.t)(c,{...l,verifyItemRelativeUrls:l?.verifyItemRelativeUrls?{writtenUrls:l.verifyItemRelativeUrls.writtenUrls,rootPath:void 0}:void 0},1),f=i.type!==String&&(!(0,o.H)(this)||l?.origin&&this.originIdOf(r)>(0,u.aB)(l.origin)),v={object:this,propertyName:r,value:t,targetUrl:h,dest:n,targetPropertyName:a,context:l,params:e};l?.portalItem&&h&&!(0,s.oP)(h)?f&&e?.contentAddressed?g(v):f?function(e){const{context:t,targetUrl:r,params:i,value:n,dest:o,targetPropertyName:a}=e;if(!t.portalItem)return;const l=t.portalItem.resourceFromPath(r),u=m(n,r,t),c=(0,d.n)(u),p=(0,s.Zo)(l.path),h=i?.compress??!1;c===p?(t.resources&&y({...e,resource:l,content:u,compress:h,updates:t.resources.toUpdate}),o[a]=r):g(e)}(v):function({context:e,targetUrl:t,dest:r,targetPropertyName:i}){e.portalItem&&e.resources&&(e.resources.toKeep.push({resource:e.portalItem.resourceFromPath(t),compress:!1}),r[i]=t)}(v):l?.portalItem&&(null==h||null!=(0,p.i)(h)||(0,s.w8)(h)||f)?g(v):n[a]=h}}}}(e,t,r);switch(e?.type??"other"){case"other":return{read:!0,write:!0};case"url":{const{read:e,write:t}=p.b;return{read:e,write:t}}}}(e,r,i);for(const e of t){const t=(0,c.rM)(r,e,i);for(const e in n)t[e]=n[e]}}}function g(e){const{targetUrl:t,params:r,value:o,context:l,dest:u,targetPropertyName:c}=e;if(!l.portalItem)return;const h=(0,p.p)(t),g=m(o,t,l);if(r?.contentAddressed&&"json"!==g.type)return void l.messages?.push(new i.A("persistable:contentAddressingUnsupported",`Property "${c}" is trying to serializing a resource with content of type ${g.type} with content addressing. Content addressing is only supported for json resources.`,{content:g}));const f=r?.contentAddressed&&"json"===g.type?(0,n.d)(g.jsonString):h?.filename??(0,a.lk)(),v=(0,s.fj)(r?.prefix??h?.prefix,f),b=`${v}.${(0,d.n)(g)}`;if(r?.contentAddressed&&l.resources&&"json"===g.type){const e=l.resources.toKeep.find(({resource:e})=>e.path===b)??l.resources.toAdd.find(({resource:e})=>e.path===b);if(e)return void(u[c]=e.resource.itemRelativeUrl)}const M=l.portalItem.resourceFromPath(b);(0,s.w8)(t)&&l.resources&&l.resources.pendingOperations.push((0,s.tk)(t).then(e=>{M.path=`${v}.${(0,d.n)({type:"blob",blob:e})}`,u[c]=M.itemRelativeUrl}).catch(()=>{}));const S=r?.compress??!1;l.resources&&y({...e,resource:M,content:g,compress:S,updates:l.resources.toAdd}),u[c]=M.itemRelativeUrl}function y({object:e,propertyName:t,updates:r,resource:i,content:n,compress:o}){r.push({resource:i,content:n,compress:o,finish:r=>{!function(e,t,r){"string"==typeof e[t]?e[t]=r.url:e[t].url=r.url}(e,t,r)}})}function m(e,t,r){return"string"==typeof e?{type:"url",url:t}:{type:"json",jsonString:JSON.stringify(e.toJSON(r))}}},60999(e,t,r){r.d(t,{DZ:()=>g,Ke:()=>h,Tj:()=>c,UT:()=>y,aD:()=>f,jJ:()=>u});var i=r(5482),n=r(69622),o=r(97768),s=r(17676),a=r(10107),l=r(64108);function u(e,t,r){return(0,s.Lx)(e.map((e,i)=>t.apply(r,[e,i])))}async function c(e,t,r){return(await(0,s.Lx)(e.map((e,i)=>t.apply(r,[e,i])))).map(e=>e.value)}function d(e){return{ok:!0,value:e}}function p(e){return{ok:!1,error:e}}async function h(e){if(null==e)return{ok:!1,error:new Error("no promise provided")};try{return d(await e)}catch(e){return p(e)}}async function g(e){try{return d(await e)}catch(e){return(0,s.QP)(e),p(e)}}function y(e,t){return new m(e,t)}let m=class extends n.A{get value(){return null!=(e=this._result)&&!0===e.ok?e.value:null;var e}get error(){return null!=(e=this._result)&&!1===e.ok?e.error:null;var e}get finished(){return null!=this._result}constructor(e,t){super({}),this._result=null,this._abortHandle=null,this.abort=()=>{this._abortController=(0,o.DC)(this._abortController)},this.remove=this.abort,this._abortController=new AbortController;const{signal:r}=this._abortController;this.promise=e(r),this.promise.then(e=>{this._result=d(e),this._cleanup()},e=>{this._result=p(e),this._cleanup()}),this._abortHandle=(0,s.u7)(t,this.abort)}normalizeCtorArgs(){return{}}destroy(){this.abort()}_cleanup(){this._abortHandle=(0,o.xt)(this._abortHandle),this._abortController=null}};(0,i.Cg)([(0,a.MZ)()],m.prototype,"value",null),(0,i.Cg)([(0,a.MZ)()],m.prototype,"error",null),(0,i.Cg)([(0,a.MZ)()],m.prototype,"finished",null),(0,i.Cg)([(0,a.MZ)()],m.prototype,"promise",void 0),(0,i.Cg)([(0,a.MZ)()],m.prototype,"_result",void 0),m=(0,i.Cg)([(0,l.$)("esri.core.asyncUtils.ReactiveTask")],m);class f{constructor(){this._sequence=Promise.resolve()}async acquire(){let e;this._sequence=new Promise(t=>{e=this._sequence.then(()=>t,()=>t)});const t=await e;return{[Symbol.dispose]:t}}async run(e){const t={stack:[],error:void 0,hasError:!1};try{return(0,i.mS)(t,await this.acquire(),!1),await e()}catch(e){t.error=e,t.hasError=!0}finally{(0,i.hk)(t)}}}},62885(e,t,r){r.d(t,{H:()=>o,V:()=>n});var i=r(7762);function n(e,t,r=i.A){return t||(t=new r),t===e||t.destroyed||(t.removeAll(),(n=e)&&(Array.isArray(n)||"items"in n&&Array.isArray(n.items))?t.addMany(e):e&&t.add(e)),t;var n}function o(e){return e}},82534(e,t,r){function i(){return[0,0,0,1]}function n(e){return[e[0],e[1],e[2],e[3]]}r.d(t,{o8:()=>n,vt:()=>i});const o=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:o,clone:n,create:i,fromValues:function(e,t,r,i){return[e,t,r,i]}},Symbol.toStringTag,{value:"Module"})),r.d(t,["zK",0,o])},67026(e,t,r){r.d(t,{A6:()=>y,Xd:()=>c,Xr:()=>h,lw:()=>d,x8:()=>u});var i=r(29242),n=r(82534),o=r(51850),s=r(34304),a=r(35522),l=r(78955);function u(e,t,r){r*=.5;const i=Math.sin(r);return e[0]=i*t[0],e[1]=i*t[1],e[2]=i*t[2],e[3]=Math.cos(r),e}function c(e,t){const r=2*Math.acos(t[3]),i=Math.sin(r/2);return i>(0,s.FD)()?(e[0]=t[0]/i,e[1]=t[1]/i,e[2]=t[2]/i):(e[0]=1,e[1]=0,e[2]=0),r}function d(e,t,r){const i=t[0],n=t[1],o=t[2],s=t[3],a=r[0],l=r[1],u=r[2],c=r[3];return e[0]=i*c+s*a+n*u-o*l,e[1]=n*c+s*l+o*a-i*u,e[2]=o*c+s*u+i*l-n*a,e[3]=s*c-i*a-n*l-o*u,e}function p(e,t,r,i){const n=t[0],o=t[1],a=t[2],l=t[3];let u,c,d,p,h,g=r[0],y=r[1],m=r[2],f=r[3];return c=n*g+o*y+a*m+l*f,c<0&&(c=-c,g=-g,y=-y,m=-m,f=-f),1-c>(0,s.FD)()?(u=Math.acos(c),d=Math.sin(u),p=Math.sin((1-i)*u)/d,h=Math.sin(i*u)/d):(p=1-i,h=i),e[0]=p*n+h*g,e[1]=p*o+h*y,e[2]=p*a+h*m,e[3]=p*l+h*f,e}function h(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e[3]=t[3],e}function g(e,t){const r=t[0]+t[4]+t[8];let i;if(r>0)i=Math.sqrt(r+1),e[3]=.5*i,i=.5/i,e[0]=(t[5]-t[7])*i,e[1]=(t[6]-t[2])*i,e[2]=(t[1]-t[3])*i;else{let r=0;t[4]>t[0]&&(r=1),t[8]>t[3*r+r]&&(r=2);const n=(r+1)%3,o=(r+2)%3;i=Math.sqrt(t[3*r+r]-t[3*n+n]-t[3*o+o]+1),e[r]=.5*i,i=.5/i,e[3]=(t[3*n+o]-t[3*o+n])*i,e[n]=(t[3*n+r]+t[3*r+n])*i,e[o]=(t[3*o+r]+t[3*r+o])*i}return e}function y(e,t,r,i){const n=.5*Math.PI/180;t*=n,r*=n,i*=n;const o=Math.sin(t),s=Math.cos(t),a=Math.sin(r),l=Math.cos(r),u=Math.sin(i),c=Math.cos(i);return e[0]=o*l*c-s*a*u,e[1]=s*a*c+o*l*u,e[2]=s*l*u-o*a*c,e[3]=s*l*c+o*a*u,e}const m=l.C,f=l.hZ,v=l.WQ,b=d,M=l.hs,S=l.Om,w=l.Cc,C=l.Bw,x=C,A=l.m3,I=A,j=l.S8,Z=l.t2,V=l.aI,N=(0,o.vt)(),T=(0,o.fA)(1,0,0),F=(0,o.fA)(0,1,0),R=(0,n.vt)(),_=(0,n.vt)(),P=(0,i.vt)();Object.freeze(Object.defineProperty({__proto__:null,add:v,calculateW:function(e,t){const r=t[0],i=t[1],n=t[2];return e[0]=r,e[1]=i,e[2]=n,e[3]=Math.sqrt(Math.abs(1-r*r-i*i-n*n)),e},conjugate:h,copy:m,dot:S,equals:V,exactEquals:Z,fromEuler:y,fromMat3:g,getAxisAngle:c,identity:function(e){return e[0]=0,e[1]=0,e[2]=0,e[3]=1,e},invert:function(e,t){const r=t[0],i=t[1],n=t[2],o=t[3],s=r*r+i*i+n*n+o*o,a=s?1/s:0;return e[0]=-r*a,e[1]=-i*a,e[2]=-n*a,e[3]=o*a,e},len:x,length:C,lerp:w,mul:b,multiply:d,normalize:j,random:function(e){const t=s.Ov,r=t(),i=t(),n=t(),o=Math.sqrt(1-r),a=Math.sqrt(r);return e[0]=o*Math.sin(2*Math.PI*i),e[1]=o*Math.cos(2*Math.PI*i),e[2]=a*Math.sin(2*Math.PI*n),e[3]=a*Math.cos(2*Math.PI*n),e},rotateX:function(e,t,r){r*=.5;const i=t[0],n=t[1],o=t[2],s=t[3],a=Math.sin(r),l=Math.cos(r);return e[0]=i*l+s*a,e[1]=n*l+o*a,e[2]=o*l-n*a,e[3]=s*l-i*a,e},rotateY:function(e,t,r){r*=.5;const i=t[0],n=t[1],o=t[2],s=t[3],a=Math.sin(r),l=Math.cos(r);return e[0]=i*l-o*a,e[1]=n*l+s*a,e[2]=o*l+i*a,e[3]=s*l-n*a,e},rotateZ:function(e,t,r){r*=.5;const i=t[0],n=t[1],o=t[2],s=t[3],a=Math.sin(r),l=Math.cos(r);return e[0]=i*l+n*a,e[1]=n*l-i*a,e[2]=o*l+s*a,e[3]=s*l-o*a,e},rotationTo:function(e,t,r){const i=(0,a.Om)(t,r);return i<-.999999?((0,a.$A)(N,T,t),(0,a.Il)(N)<1e-6&&(0,a.$A)(N,F,t),(0,a.S8)(N,N),u(e,N,Math.PI),e):i>.999999?(e[0]=0,e[1]=0,e[2]=0,e[3]=1,e):((0,a.$A)(N,t,r),e[0]=N[0],e[1]=N[1],e[2]=N[2],e[3]=1+i,j(e,e))},scale:M,set:f,setAxes:function(e,t,r,i){const n=P;return n[0]=r[0],n[3]=r[1],n[6]=r[2],n[1]=i[0],n[4]=i[1],n[7]=i[2],n[2]=-t[0],n[5]=-t[1],n[8]=-t[2],j(e,g(e,n))},setAxisAngle:u,slerp:p,sqlerp:function(e,t,r,i,n,o){return p(R,t,n,o),p(_,r,i,o),p(e,R,_,2*o*(1-o)),e},sqrLen:I,squaredLength:A,str:function(e){return"quat("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+")"}},Symbol.toStringTag,{value:"Module"})),r.d(t,["hZ",0,f,"t2",0,Z])},35522(e,t,r){r.d(t,{$A:()=>A,Bw:()=>o,C:()=>s,Cc:()=>I,DI:()=>w,Io:()=>v,Ln:()=>f,Om:()=>x,Qr:()=>d,Re:()=>u,S8:()=>C,T9:()=>y,WQ:()=>l,Z0:()=>j,_S:()=>h,aI:()=>_,ei:()=>Z,fw:()=>N,gL:()=>V,hG:()=>b,hZ:()=>a,hs:()=>m,jk:()=>g,lw:()=>c,m3:()=>M,oW:()=>P,t2:()=>R,tn:()=>p,ze:()=>S});var i=r(51850),n=r(34304);function o(e){const t=e[0],r=e[1],i=e[2];return Math.sqrt(t*t+r*r+i*i)}function s(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function a(e,t,r,i){return e[0]=t,e[1]=r,e[2]=i,e}function l(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e[2]=t[2]+r[2],e}function u(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e[2]=t[2]-r[2],e}function c(e,t,r){return e[0]=t[0]*r[0],e[1]=t[1]*r[1],e[2]=t[2]*r[2],e}function d(e,t,r){return e[0]=t[0]/r[0],e[1]=t[1]/r[1],e[2]=t[2]/r[2],e}function p(e,t){return e[0]=Math.abs(t[0]),e[1]=Math.abs(t[1]),e[2]=Math.abs(t[2]),e}function h(e,t){return e[0]=Math.sign(t[0]),e[1]=Math.sign(t[1]),e[2]=Math.sign(t[2]),e}function g(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e[2]=Math.min(t[2],r[2]),e}function y(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e[2]=Math.max(t[2],r[2]),e}function m(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e}function f(e,t,r,i){return e[0]=t[0]+r[0]*i,e[1]=t[1]+r[1]*i,e[2]=t[2]+r[2]*i,e}function v(e,t){const r=t[0]-e[0],i=t[1]-e[1],n=t[2]-e[2];return Math.sqrt(r*r+i*i+n*n)}function b(e,t){const r=t[0]-e[0],i=t[1]-e[1],n=t[2]-e[2];return r*r+i*i+n*n}function M(e){const t=e[0],r=e[1],i=e[2];return t*t+r*r+i*i}function S(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e}function w(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e}function C(e,t){const r=t[0],i=t[1],n=t[2];let o=r*r+i*i+n*n;return o>0&&(o=1/Math.sqrt(o),e[0]=t[0]*o,e[1]=t[1]*o,e[2]=t[2]*o),e}function x(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function A(e,t,r){const i=t[0],n=t[1],o=t[2],s=r[0],a=r[1],l=r[2];return e[0]=n*l-o*a,e[1]=o*s-i*l,e[2]=i*a-n*s,e}function I(e,t,r,i){const n=t[0],o=t[1],s=t[2];return e[0]=n+i*(r[0]-n),e[1]=o+i*(r[1]-o),e[2]=s+i*(r[2]-s),e}function j(e,t,r){const i=t[0],n=t[1],o=t[2];return e[0]=r[0]*i+r[4]*n+r[8]*o+r[12],e[1]=r[1]*i+r[5]*n+r[9]*o+r[13],e[2]=r[2]*i+r[6]*n+r[10]*o+r[14],e}function Z(e,t,r){const i=t[0],n=t[1],o=t[2];return e[0]=i*r[0]+n*r[3]+o*r[6],e[1]=i*r[1]+n*r[4]+o*r[7],e[2]=i*r[2]+n*r[5]+o*r[8],e}function V(e,t,r){return N(e,t,r[0],r[1],r[2],r[3])}function N(e,t,r,i,n,o){const s=t[0],a=t[1],l=t[2],u=i*l-n*a,c=n*s-r*l,d=r*a-i*s,p=i*d-n*c,h=n*u-r*d,g=r*c-i*u,y=2*o;return e[0]=s+u*y+2*p,e[1]=a+c*y+2*h,e[2]=l+d*y+2*g,e}const T=(0,i.vt)(),F=(0,i.vt)();function R(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]}function _(e,t){if(e===t)return!0;const r=e[0],i=e[1],o=e[2],s=t[0],a=t[1],l=t[2],u=(0,n.FD)();return Math.abs(r-s)<=u*Math.max(1,Math.abs(r),Math.abs(s))&&Math.abs(i-a)<=u*Math.max(1,Math.abs(i),Math.abs(a))&&Math.abs(o-l)<=u*Math.max(1,Math.abs(o),Math.abs(l))}function P(e,t,r){const i=r[0]-t[0],n=r[1]-t[1],o=r[2]-t[2];let s=i*i+n*n+o*o;return s>0?(s=1/Math.sqrt(s),e[0]=i*s,e[1]=n*s,e[2]=o*s,e):(e[0]=0,e[1]=0,e[2]=0,e)}const z=u,q=c,L=d,E=v,O=b,D=o,U=M;Object.freeze(Object.defineProperty({__proto__:null,abs:p,add:l,angle:function(e,t){C(T,e),C(F,t);const r=x(T,F);return r>1?0:r<-1?Math.PI:Math.acos(r)},bezier:function(e,t,r,i,n,o){const s=1-o,a=s*s,l=o*o,u=a*s,c=3*o*a,d=3*l*s,p=l*o;return e[0]=t[0]*u+r[0]*c+i[0]*d+n[0]*p,e[1]=t[1]*u+r[1]*c+i[1]*d+n[1]*p,e[2]=t[2]*u+r[2]*c+i[2]*d+n[2]*p,e},ceil:function(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e[2]=Math.ceil(t[2]),e},clamp:function(e,t=0,r=1){return e[0]=Math.min(Math.max(e[0],t),r),e[1]=Math.min(Math.max(e[1],t),r),e[2]=Math.min(Math.max(e[2],t),r),e},copy:s,cross:A,crossAndNormalize:function(e,t,r){const i=t[0],n=t[1],o=t[2],s=r[0],a=r[1],l=r[2],u=n*l-o*a,c=o*s-i*l,d=i*a-n*s,p=Math.sqrt(u*u+c*c+d*d);return e[0]=u/p,e[1]=c/p,e[2]=d/p,e},direction:P,dist:E,distance:v,div:L,divide:d,dot:x,equals:_,exactEquals:R,floor:function(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e[2]=Math.floor(t[2]),e},hermite:function(e,t,r,i,n,o){const s=o*o,a=s*(2*o-3)+1,l=s*(o-2)+o,u=s*(o-1),c=s*(3-2*o);return e[0]=t[0]*a+r[0]*l+i[0]*u+n[0]*c,e[1]=t[1]*a+r[1]*l+i[1]*u+n[1]*c,e[2]=t[2]*a+r[2]*l+i[2]*u+n[2]*c,e},inverse:w,len:D,length:o,lerp:I,max:y,min:g,mul:q,multiply:c,negate:S,normalize:C,random:function(e,t=1){const r=n.Ov,i=2*r()*Math.PI,o=2*r()-1,s=Math.sqrt(1-o*o)*t;return e[0]=Math.cos(i)*s,e[1]=Math.sin(i)*s,e[2]=o*t,e},rotateX:function(e,t,r,i){const n=[],o=[];return n[0]=t[0]-r[0],n[1]=t[1]-r[1],n[2]=t[2]-r[2],o[0]=n[0],o[1]=n[1]*Math.cos(i)-n[2]*Math.sin(i),o[2]=n[1]*Math.sin(i)+n[2]*Math.cos(i),e[0]=o[0]+r[0],e[1]=o[1]+r[1],e[2]=o[2]+r[2],e},rotateY:function(e,t,r,i){const n=[],o=[];return n[0]=t[0]-r[0],n[1]=t[1]-r[1],n[2]=t[2]-r[2],o[0]=n[2]*Math.sin(i)+n[0]*Math.cos(i),o[1]=n[1],o[2]=n[2]*Math.cos(i)-n[0]*Math.sin(i),e[0]=o[0]+r[0],e[1]=o[1]+r[1],e[2]=o[2]+r[2],e},rotateZ:function(e,t,r,i){const n=[],o=[];return n[0]=t[0]-r[0],n[1]=t[1]-r[1],n[2]=t[2]-r[2],o[0]=n[0]*Math.cos(i)-n[1]*Math.sin(i),o[1]=n[0]*Math.sin(i)+n[1]*Math.cos(i),o[2]=n[2],e[0]=o[0]+r[0],e[1]=o[1]+r[1],e[2]=o[2]+r[2],e},round:function(e,t){return e[0]=Math.round(t[0]),e[1]=Math.round(t[1]),e[2]=Math.round(t[2]),e},scale:m,scaleAndAdd:f,set:a,sign:h,sqrDist:O,sqrLen:U,squaredDistance:b,squaredLength:M,str:function(e){return"vec3("+e[0]+", "+e[1]+", "+e[2]+")"},sub:z,subtract:u,transformMat3:Z,transformMat4:j,transformMat4Z:function(e,t){return t[2]*e[0]+t[6]*e[1]+t[10]*e[2]+t[14]},transformQuat:V,transformQuatValues:N},Symbol.toStringTag,{value:"Module"})),r.d(t,["Il",0,D,"jb",0,z,"lo",0,O,"uE",0,U,"xg",0,E])},78955(e,t,r){r.d(t,{Bw:()=>m,C:()=>n,Cc:()=>M,LI:()=>p,Om:()=>b,S8:()=>v,T9:()=>d,WQ:()=>s,Z0:()=>S,aI:()=>C,hG:()=>y,hZ:()=>o,hs:()=>h,jk:()=>c,m3:()=>f,t2:()=>w});var i=r(34304);function n(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}function o(e,t,r,i,n){return e[0]=t,e[1]=r,e[2]=i,e[3]=n,e}function s(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e[2]=t[2]+r[2],e[3]=t[3]+r[3],e}function a(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e[2]=t[2]-r[2],e[3]=t[3]-r[3],e}function l(e,t,r){return e[0]=t[0]*r[0],e[1]=t[1]*r[1],e[2]=t[2]*r[2],e[3]=t[3]*r[3],e}function u(e,t,r){return e[0]=t[0]/r[0],e[1]=t[1]/r[1],e[2]=t[2]/r[2],e[3]=t[3]/r[3],e}function c(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e[2]=Math.min(t[2],r[2]),e[3]=Math.min(t[3],r[3]),e}function d(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e[2]=Math.max(t[2],r[2]),e[3]=Math.max(t[3],r[3]),e}function p(e,t){return e[0]=Math.round(t[0]),e[1]=Math.round(t[1]),e[2]=Math.round(t[2]),e[3]=Math.round(t[3]),e}function h(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e[3]=t[3]*r,e}function g(e,t){const r=t[0]-e[0],i=t[1]-e[1],n=t[2]-e[2],o=t[3]-e[3];return Math.sqrt(r*r+i*i+n*n+o*o)}function y(e,t){const r=t[0]-e[0],i=t[1]-e[1],n=t[2]-e[2],o=t[3]-e[3];return r*r+i*i+n*n+o*o}function m(e){const t=e[0],r=e[1],i=e[2],n=e[3];return Math.sqrt(t*t+r*r+i*i+n*n)}function f(e){const t=e[0],r=e[1],i=e[2],n=e[3];return t*t+r*r+i*i+n*n}function v(e,t){const r=t[0],i=t[1],n=t[2],o=t[3];let s=r*r+i*i+n*n+o*o;return s>0&&(s=1/Math.sqrt(s),e[0]=r*s,e[1]=i*s,e[2]=n*s,e[3]=o*s),e}function b(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3]}function M(e,t,r,i){const n=t[0],o=t[1],s=t[2],a=t[3];return e[0]=n+i*(r[0]-n),e[1]=o+i*(r[1]-o),e[2]=s+i*(r[2]-s),e[3]=a+i*(r[3]-a),e}function S(e,t,r){const i=t[0],n=t[1],o=t[2],s=t[3];return e[0]=r[0]*i+r[4]*n+r[8]*o+r[12]*s,e[1]=r[1]*i+r[5]*n+r[9]*o+r[13]*s,e[2]=r[2]*i+r[6]*n+r[10]*o+r[14]*s,e[3]=r[3]*i+r[7]*n+r[11]*o+r[15]*s,e}function w(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]}function C(e,t){const r=e[0],n=e[1],o=e[2],s=e[3],a=t[0],l=t[1],u=t[2],c=t[3],d=(0,i.FD)();return Math.abs(r-a)<=d*Math.max(1,Math.abs(r),Math.abs(a))&&Math.abs(n-l)<=d*Math.max(1,Math.abs(n),Math.abs(l))&&Math.abs(o-u)<=d*Math.max(1,Math.abs(o),Math.abs(u))&&Math.abs(s-c)<=d*Math.max(1,Math.abs(s),Math.abs(c))}const x=a,A=l,I=u,j=g,Z=y,V=m,N=f;Object.freeze(Object.defineProperty({__proto__:null,add:s,ceil:function(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e[2]=Math.ceil(t[2]),e[3]=Math.ceil(t[3]),e},copy:n,copyVec3:function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e},dist:j,distance:g,div:I,divide:u,dot:b,equals:C,exactEquals:w,floor:function(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e[2]=Math.floor(t[2]),e[3]=Math.floor(t[3]),e},inverse:function(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e[3]=1/t[3],e},len:V,length:m,lerp:M,max:d,min:c,mul:A,multiply:l,negate:function(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e[3]=-t[3],e},normalize:v,random:function(e,t=1){const r=i.Ov;let n,o,s,a,l,u;do{n=2*r()-1,o=2*r()-1,l=n*n+o*o}while(l>=1);do{s=2*r()-1,a=2*r()-1,u=s*s+a*a}while(u>=1);const c=Math.sqrt((1-l)/u);return e[0]=t*n,e[1]=t*o,e[2]=t*s*c,e[3]=t*a*c,e},round:p,scale:h,scaleAndAdd:function(e,t,r,i){return e[0]=t[0]+r[0]*i,e[1]=t[1]+r[1]*i,e[2]=t[2]+r[2]*i,e[3]=t[3]+r[3]*i,e},set:o,sqrDist:Z,sqrLen:N,squaredDistance:y,squaredLength:f,str:function(e){return"vec4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+")"},sub:x,subtract:a,transformMat4:S,transformQuat:function(e,t,r){const i=t[0],n=t[1],o=t[2],s=r[0],a=r[1],l=r[2],u=r[3],c=u*i+a*o-l*n,d=u*n+l*i-s*o,p=u*o+s*n-a*i,h=-s*i-a*n-l*o;return e[0]=c*u+h*-s+d*-l-p*-a,e[1]=d*u+h*-a+p*-s-c*-l,e[2]=p*u+h*-l+c*-a-d*-s,e[3]=t[3],e}},Symbol.toStringTag,{value:"Module"}))},54239(e,t,r){r.d(t,{A:()=>f});var i,n=r(5482),o=r(4576),s=r(66552),a=r(25482),l=r(86211),u=r(67076),c=r(91429),d=r(97348),p=r(43937),h=r(36005);const g=(0,s.O)()({orthometric:"gravity-related-height",gravity_related_height:"gravity-related-height",ellipsoidal:"ellipsoidal"}),y=g.jsonValues.slice();(0,o.Xy)(y,"orthometric");const m=(0,s.O)()({meter:"meters",foot:"feet","us-foot":"us-feet","clarke-foot":"clarke-feet","clarke-yard":"clarke-yards","clarke-link":"clarke-links","sears-yard":"sears-yards","sears-foot":"sears-feet","sears-chain":"sears-chains","benoit-1895-b-chain":"benoit-1895-b-chains","indian-yard":"indian-yards","indian-1937-yard":"indian-1937-yards","gold-coast-foot":"gold-coast-feet","sears-1922-truncated-chain":"sears-1922-truncated-chains","50-kilometers":"50-kilometers","150-kilometers":"150-kilometers"});let f=i=class extends a.o{constructor(e){super(e),this.heightModel="gravity-related-height",this.heightUnit="meters",this.vertCRS=null}writeHeightModel(e,t,r){return g.write(e,t,r)}readHeightModel(e,t,r){return g.read(e)||(r?.messages&&r.messages.push(function(e,t){return new u.A("height-model:unsupported",`Height model of value '${e}' is not supported`,t)}(e,{context:r})),null)}readHeightUnit(e,t,r){return m.read(e)||(r?.messages&&r.messages.push(v(e,{context:r})),null)}readHeightUnitService(e,t,r){return(0,l.LA)(e)||m.read(e)||(r?.messages&&r.messages.push(v(e,{context:r})),null)}readVertCRS(e,t){return t.vertCRS||t.ellipsoid||t.geoid}clone(){return new i({heightModel:this.heightModel,heightUnit:this.heightUnit,vertCRS:this.vertCRS})}equals(e){return!!e&&(this===e||this.heightModel===e.heightModel&&this.heightUnit===e.heightUnit&&this.vertCRS===e.vertCRS)}static deriveUnitFromSR(e,t){const r=(0,l.k1)(t);return new i({heightModel:e.heightModel,heightUnit:r??void 0,vertCRS:e.vertCRS})}static fromSpatialReference(e){const{latestVcsWkid:t,vcsWkid:r}=e;if(!r)return null;const n=(null!=t?d.B.get(t):null)??d.B.get(r);return n?new i({heightModel:0===n.type?"gravity-related-height":"ellipsoidal",heightUnit:(0,l.LA)(n.unit.name),vertCRS:n.datum}):null}write(e,t){return t={origin:"web-scene",...t},super.write(e,t)}static fromJSON(e){if(!e)return null;const t=new i;return t.read(e,{origin:"web-scene"}),t}};function v(e,t){return new u.A("height-unit:unsupported",`Height unit of value '${e}' is not supported`,t)}(0,n.Cg)([(0,c.MZ)({type:g.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:y,default:"ellipsoidal",write:{isRequired:!0}}}}})],f.prototype,"heightModel",void 0),(0,n.Cg)([(0,p.K)("web-scene","heightModel")],f.prototype,"writeHeightModel",null),(0,n.Cg)([(0,h.w)(["web-scene","service"],"heightModel")],f.prototype,"readHeightModel",null),(0,n.Cg)([(0,c.MZ)({type:m.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:m.jsonValues,write:{writer:m.write,isRequired:!0}}}}})],f.prototype,"heightUnit",void 0),(0,n.Cg)([(0,h.w)("web-scene","heightUnit")],f.prototype,"readHeightUnit",null),(0,n.Cg)([(0,h.w)("service","heightUnit")],f.prototype,"readHeightUnitService",null),(0,n.Cg)([(0,c.MZ)({type:String,constructOnly:!0,json:{origins:{"web-scene":{write:!0}}}})],f.prototype,"vertCRS",void 0),(0,n.Cg)([(0,h.w)("service","vertCRS",["vertCRS","ellipsoid","geoid"])],f.prototype,"readVertCRS",null),f=i=(0,n.Cg)([(0,c.$K)("esri.geometry.HeightModelInfo")],f)},99959(e,t,r){r.d(t,{A:()=>o});var i=r(5482),n=r(91429);let o=class{};o=(0,i.Cg)([(0,n.$K)("esri.graphic.GraphicOrigin")],o)},89808(e,t,r){const i=Symbol("getSliceableSymbol");r.d(t,["Q",0,i])},21005(e,t,r){r.r(t),r.d(t,{default:()=>ke});var i=r(5482),n=r(37838),o=r(7762),s=r(49186),a=r(53966),l=r(25728),u=r(17676),c=r(91429),d=r(56507),p=r(35522),h=r(51850),g=r(5443),y=r(60950),m=r(89808),f=r(99959);const v=Symbol("isVoxelGraphicOrigin");var b;class M extends f.A{get[(b=v,y.ym)](){return this.layer}get[m.Q](){return this.layer}constructor(e){super(),this[b]=!0,this.type="voxel",this.layer=e}get id(){return this.layer.id}}var S=r(4146),w=r(52136),C=r(18768),x=r(69208),A=r(34287),I=r(8303),j=r(25036),Z=r(58947),V=r(60694),N=r(10873),T=r(20437),F=r(95466),R=r(96184),_=r(69540),P=r(69052),z=r(25482),q=r(87024),L=r(67026),E=r(82534),O=r(34304);const D=(0,h.vt)(),U=(0,E.vt)(),$=(0,E.vt)(),k=(0,E.vt)(),B=(0,h.fA)(0,0,1),H=(0,h.fA)(0,1,0),K=(0,h.fA)(1,0,0);function G(e){(0,p.C)(D,e),(0,p.S8)(D,D);const t=Math.atan2(D[1],D[0]),r=(0,L.x8)((0,E.vt)(),B,-t);(0,p.gL)(D,D,r);const i=-1*Math.atan2(D[2],D[0]);return[(0,O.ct)(t)+270,(0,O.ct)(i)+90]}function J(e,t){return(0,L.x8)($,B,(0,O.DF)(e-270)),(0,L.x8)(k,H,(0,O.DF)(t-90)),(0,L.lw)(U,$,k),(0,p.C)(D,K),(0,p.gL)(D,D,U),(0,p.S8)(D,D),[D[0],D[1],D[2]]}let W=class extends((0,_.OU)(z.o)){constructor(e){super(e),this.enabled=!0,this.label="",this.normal=null,this.point=null}get orientation(){if(!Array.isArray(this.normal)||3!==this.normal.length)return 0;const[e,t]=G(this.normal);return P.ie.normalize((0,d.GB)(e),0,!0)}set orientation(e){const t=J(e,this.tilt);this._set("normal",t),this._set("orientation",e)}get tilt(){if(!Array.isArray(this.normal)||3!==this.normal.length)return 0;const[e,t]=G(this.normal);return P.ie.normalize((0,d.GB)(t),0,!0)}set tilt(e){const t=J(this.orientation,e);this._set("normal",t),this._set("tilt",e)}};(0,i.Cg)([(0,c.MZ)({type:Boolean,json:{write:!0}})],W.prototype,"enabled",void 0),(0,i.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],W.prototype,"label",void 0),(0,i.Cg)([(0,c.MZ)({type:Number,json:{read:!1},clonable:!1,range:{min:0,max:360}}),(0,c.wg)(e=>P.ie.normalize((0,d.GB)(e),0,!0))],W.prototype,"orientation",null),(0,i.Cg)([(0,c.MZ)({type:Number,json:{read:!1},clonable:!1,range:{min:0,max:360}}),(0,c.wg)(e=>P.ie.normalize((0,d.GB)(e),0,!0))],W.prototype,"tilt",null),(0,i.Cg)([(0,c.MZ)({type:[Number],json:{write:{isRequired:!0}}})],W.prototype,"normal",void 0),(0,i.Cg)([(0,c.MZ)({type:[Number],json:{write:{isRequired:!0}}})],W.prototype,"point",void 0),W=(0,i.Cg)([(0,c.$K)("esri.layers.voxel.VoxelSlice")],W);var Q=r(97159);let Y=class extends((0,_.OU)(z.o)){constructor(){super(...arguments),this.enabled=!0,this.href=null,this.id=null,this.label="",this.normal=null,this.point=null,this.sizeInPixel=null,this.slices=null,this.timeId=0,this.variableId=null}get orientation(){if(!Array.isArray(this.normal)||3!==this.normal.length)return 0;const[e,t]=G(this.normal);return P.ie.normalize((0,d.GB)(e),0,!0)}get tilt(){if(!Array.isArray(this.normal)||3!==this.normal.length)return 0;const[e,t]=G(this.normal);return P.ie.normalize((0,d.GB)(t),0,!0)}};(0,i.Cg)([(0,c.MZ)({type:Boolean,json:{default:!0,write:!0}})],Y.prototype,"enabled",void 0),(0,i.Cg)([(0,c.MZ)({type:String,json:{origins:{service:{read:Q.r},"web-scene":{write:{isRequired:!0}}},write:!0}}),(0,q.P)({origins:["web-scene"],type:"resource",prefix:"sections",compress:!0})],Y.prototype,"href",void 0),(0,i.Cg)([(0,c.MZ)({type:d.jz,json:{write:{enabled:!0,isRequired:!0}}})],Y.prototype,"id",void 0),(0,i.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],Y.prototype,"label",void 0),(0,i.Cg)([(0,c.MZ)({type:Number,clonable:!1,readOnly:!0,range:{min:0,max:360}})],Y.prototype,"orientation",null),(0,i.Cg)([(0,c.MZ)({type:Number,clonable:!1,readOnly:!0,range:{min:0,max:360}})],Y.prototype,"tilt",null),(0,i.Cg)([(0,c.MZ)({type:[Number],json:{write:{enabled:!0,isRequired:!0}}})],Y.prototype,"normal",void 0),(0,i.Cg)([(0,c.MZ)({type:[Number],json:{write:{enabled:!0,isRequired:!0}}})],Y.prototype,"point",void 0),(0,i.Cg)([(0,c.MZ)({type:[d.jz],json:{write:{enabled:!0,isRequired:!0}}})],Y.prototype,"sizeInPixel",void 0),(0,i.Cg)([(0,c.MZ)({type:[W],json:{write:!0}})],Y.prototype,"slices",void 0),(0,i.Cg)([(0,c.MZ)({type:d.jz,json:{default:0,write:!0}})],Y.prototype,"timeId",void 0),(0,i.Cg)([(0,c.MZ)({type:d.jz,json:{write:{enabled:!0,isRequired:!0}}})],Y.prototype,"variableId",void 0),Y=(0,i.Cg)([(0,c.$K)("esri.layers.voxel.VoxelSection")],Y);let X=class extends z.o{constructor(){super(...arguments),this.diffuseFactor=.5,this.specularFactor=.5}};(0,i.Cg)([(0,c.MZ)({type:Number,range:{min:0,max:1},json:{default:.5,write:!0}})],X.prototype,"diffuseFactor",void 0),(0,i.Cg)([(0,c.MZ)({type:Number,range:{min:0,max:1},json:{default:.5,write:!0}})],X.prototype,"specularFactor",void 0),X=(0,i.Cg)([(0,c.$K)("esri.layers.voxel.VoxelSimpleShading")],X);let ee=class extends z.o{constructor(e){super(e),this.continuity=null,this.hasNoData=!1,this.noData=0,this.offset=0,this.scale=1,this.type=null}};(0,i.Cg)([(0,c.MZ)({type:["discrete","continuous"],json:{write:!0}})],ee.prototype,"continuity",void 0),(0,i.Cg)([(0,c.MZ)({type:Boolean,json:{write:!0}})],ee.prototype,"hasNoData",void 0),(0,i.Cg)([(0,c.MZ)({type:Number,json:{write:!0}})],ee.prototype,"noData",void 0),(0,i.Cg)([(0,c.MZ)({type:Number,json:{write:!0}})],ee.prototype,"offset",void 0),(0,i.Cg)([(0,c.MZ)({type:Number,json:{write:!0}})],ee.prototype,"scale",void 0),(0,i.Cg)([(0,c.MZ)({type:String,json:{write:{enabled:!0,isRequired:!0}}})],ee.prototype,"type",void 0),ee=(0,i.Cg)([(0,c.$K)("esri.layers.voxel.VoxelFormat")],ee);const te=ee;let re=class extends z.o{constructor(e){super(e),this.id=null,this.description="",this.name=null,this.originalFormat=null,this.renderingFormat=null,this.unit="",this.volumeId=0,this.type=null}};(0,i.Cg)([(0,c.MZ)({type:Number,json:{write:{enabled:!0,isRequired:!0}}})],re.prototype,"id",void 0),(0,i.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],re.prototype,"description",void 0),(0,i.Cg)([(0,c.MZ)({type:String,json:{write:{enabled:!0,isRequired:!0}}})],re.prototype,"name",void 0),(0,i.Cg)([(0,c.MZ)({type:te,json:{write:!0}})],re.prototype,"originalFormat",void 0),(0,i.Cg)([(0,c.MZ)({type:te,json:{write:{enabled:!0,isRequired:!0}}})],re.prototype,"renderingFormat",void 0),(0,i.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],re.prototype,"unit",void 0),(0,i.Cg)([(0,c.MZ)({type:Number,json:{write:!0}})],re.prototype,"volumeId",void 0),(0,i.Cg)([(0,c.MZ)({type:["stc-hot-spot-results","stc-cluster-outlier-results","stc-estimated-bin","generic-nearest-interpolated"],json:{write:!0}})],re.prototype,"type",void 0),re=(0,i.Cg)([(0,c.$K)("esri.layers.voxel.VoxelVariable")],re);const ie=re;var ne=r(4718),oe=r(68197);let se=class extends((0,_.OU)(z.o)){constructor(e){super(e),this.color=oe.A.fromArray([0,0,0,0]),this.value=0,this.enabled=!0,this.label="",this.colorLocked=!1}};(0,i.Cg)([(0,c.MZ)({type:oe.A,json:{type:[d.jz],write:{enabled:!0,isRequired:!0}}})],se.prototype,"color",void 0),(0,i.Cg)([(0,c.MZ)({type:Number,json:{write:{enabled:!0,isRequired:!0}}})],se.prototype,"value",void 0),(0,i.Cg)([(0,c.MZ)({type:Boolean,json:{default:!0,write:!0}})],se.prototype,"enabled",void 0),(0,i.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],se.prototype,"label",void 0),(0,i.Cg)([(0,c.MZ)({type:Boolean,json:{default:!1,write:!0}})],se.prototype,"colorLocked",void 0),se=(0,i.Cg)([(0,c.$K)("esri.layers.voxel.VoxelIsosurface")],se);var ae=r(62885),le=r(34727);let ue=class extends((0,_.OU)(z.o)){constructor(e){super(e),this.color=null,this.position=0}};(0,i.Cg)([(0,c.MZ)({type:oe.A,json:{type:[d.jz],write:{enabled:!0,isRequired:!0}}})],ue.prototype,"color",void 0),(0,i.Cg)([(0,c.MZ)({type:Number,json:{write:{enabled:!0,isRequired:!0}}})],ue.prototype,"position",void 0),ue=(0,i.Cg)([(0,c.$K)("esri.layers.voxel.VoxelColorStop")],ue);const ce=ue;let de=class extends((0,_.OU)(z.o)){constructor(e){super(e),this.opacity=1,this.position=0}};(0,i.Cg)([(0,c.MZ)({type:Number,json:{name:"alpha",write:{enabled:!0,isRequired:!0}}})],de.prototype,"opacity",void 0),(0,i.Cg)([(0,c.MZ)({type:Number,json:{write:{enabled:!0,isRequired:!0}}})],de.prototype,"position",void 0),de=(0,i.Cg)([(0,c.$K)("esri.layers.voxel.VoxelOpacityStop")],de);const pe=de;let he=class extends((0,_.OU)(z.o)){constructor(e){super(e),this.enabled=!1,this.range=null}};(0,i.Cg)([(0,c.MZ)({type:Boolean,json:{default:!1,write:!0}})],he.prototype,"enabled",void 0),(0,i.Cg)([(0,c.MZ)({type:[Number],json:{write:{isRequired:!0}}})],he.prototype,"range",void 0),he=(0,i.Cg)([(0,c.$K)("esri.layers.voxel.VoxelRangeFilter")],he);const ge=he;let ye=class extends((0,_.OU)(z.o)){constructor(e){super(e),this.interpolation=null,this.stretchRange=null,this.rangeFilter=null,this._colorMapSize=256,this.colorStops=new(o.A.ofType(ce)),this.opacityStops=new(o.A.ofType(pe))}set colorStops(e){this._set("colorStops",(0,ae.V)(e,this._get("colorStops"),o.A.ofType(ce)))}set opacityStops(e){this._set("opacityStops",(0,ae.V)(e,this._get("opacityStops"),o.A.ofType(pe)))}getPreviousNext(e,t,r){let i=e;for(;--i>0&&t[i].type!==r&&3!==t[i].type;);let n=e;const o=t.length;for(;++n<o&&t[n].type!==r&&3!==t[n].type;);return[i,n]}get rasterizedTransferFunction(){const e=[];if(this.colorStops.length<2)return e;const t=[],r=[];for(const t of this.colorStops){if(!t.color)return e;r.push({color:{r:t.color.r,g:t.color.g,b:t.color.b,a:Math.round(255*(1-t.color.a))},position:t.position,type:1})}if(0===this.opacityStops.length)for(const e of r)t.push({color:e.color,position:e.position});else{for(const e of this.opacityStops){const t=(0,le.qE)(e.position,0,1),i=Math.round(255*(0,le.qE)(1-e.opacity,0,1));let n=!1;for(const e of r)if(1===e.type&&Math.abs(e.position-t)<1e-5){e.color.a=i,e.type=3,n=!0;break}n||r.push({color:{r:0,g:0,b:0,a:i},position:e.position,type:2})}r.sort((e,t)=>e.position<t.position?-1:1);const e=r.length;for(let t=0;t<e;++t){const i=r[t];if(3!==i.type)if(1===i.type){const[n,o]=this.getPreviousNext(t,r,2);if(-1!==n&&o!==e){const e=(i.position-r[n].position)/(r[o].position-r[n].position);i.color.a=Math.round((0,le.Cc)(r[n].color.a,r[o].color.a,e))}else i.color.a=-1!==n?r[n].color.a:r[o].color.a}else{const[n,o]=this.getPreviousNext(t,r,1);if(-1!==n&&o!==e){const e=(i.position-r[n].position)/(r[o].position-r[n].position),t=r[n].color,s=r[o].color;fe.forEach(r=>{i.color[r]=Math.round((0,le.Cc)(t[r],s[r],e))})}else-1!==n?fe.forEach(e=>{i.color[e]=r[n].color[e]}):fe.forEach(e=>{i.color[e]=r[o].color[e]})}}for(const e of r)t.push({color:e.color,position:e.position})}t[0].position=0,t[t.length-1].position=1;let i=0,n=1;for(let r=0;r<this._colorMapSize;++r){const o=r/this._colorMapSize;for(;o>t[n].position;)i=n++;const s=(o-t[i].position)/(t[n].position-t[i].position),a=t[i].color,l=t[n].color,u=new oe.A;fe.forEach(e=>{u[e]=Math.round((0,le.Cc)(a[e],l[e],s))}),u.a=(0,le.qE)(1-(0,le.Cc)(a.a,l.a,s)/255,0,1),e.push(u)}return e}getColorForContinuousDataValue(e,t){const r=this.rasterizedTransferFunction;if(this.colorStops.length<2||!Array.isArray(this.stretchRange)||this.stretchRange.length<2||r.length<256)return null;let i=this.stretchRange[0],n=this.stretchRange[1];if(i>n){const e=i;i=n,n=e}e=(0,le.qE)(e,i,n);const o=r[Math.round((e-i)/(n-i)*(this._colorMapSize-1))].clone();return t||(o.a=1),o}};(0,i.Cg)([(0,c.MZ)({type:["linear","nearest"],json:{write:!0}})],ye.prototype,"interpolation",void 0),(0,i.Cg)([(0,c.MZ)({type:[Number],json:{write:{enabled:!0,isRequired:!0}}})],ye.prototype,"stretchRange",void 0),(0,i.Cg)([(0,c.MZ)({type:o.A.ofType(ce),json:{write:{enabled:!0,overridePolicy(){return{enabled:!!this.colorStops&&this.colorStops.length>0}}}}})],ye.prototype,"colorStops",null),(0,i.Cg)([(0,c.MZ)({type:o.A.ofType(pe),json:{read:{source:"alphaStops"},write:{enabled:!0,target:"alphaStops",overridePolicy(){return{enabled:!!this.opacityStops&&this.opacityStops.length>0}}}}})],ye.prototype,"opacityStops",null),(0,i.Cg)([(0,c.MZ)({type:ge,json:{write:!0}})],ye.prototype,"rangeFilter",void 0),(0,i.Cg)([(0,c.MZ)({type:[oe.A],clonable:!1,json:{read:!1}})],ye.prototype,"rasterizedTransferFunction",null),ye=(0,i.Cg)([(0,c.$K)("esri.layers.voxel.VoxelTransferFunctionStyle")],ye);const me=ye,fe=["r","g","b"];let ve=class extends((0,_.OU)(z.o)){constructor(e){super(e),this.color=oe.A.fromArray([0,0,0,0]),this.value=0,this.enabled=!0,this.label=""}};var be;(0,i.Cg)([(0,c.MZ)({type:oe.A,json:{type:[d.jz],write:{enabled:!0,isRequired:!0}}})],ve.prototype,"color",void 0),(0,i.Cg)([(0,c.MZ)({type:d.jz,json:{write:{enabled:!0,isRequired:!0}}})],ve.prototype,"value",void 0),(0,i.Cg)([(0,c.MZ)({type:Boolean,json:{default:!0,write:!0}})],ve.prototype,"enabled",void 0),(0,i.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],ve.prototype,"label",void 0),ve=(0,i.Cg)([(0,c.$K)("esri.layers.voxel.VoxelUniqueValue")],ve);let Me=be=class extends z.o{constructor(e){super(e),this.variableId=0,this.label="",this.transferFunction=null,this.uniqueValues=null,this.isosurfaces=null,this.uniqueValues=new(o.A.ofType(ve)),this.isosurfaces=new(o.A.ofType(se))}clone(){return new be({variableId:this.variableId,label:this.label,transferFunction:(0,ne.o8)(this.transferFunction),uniqueValues:(0,ne.o8)(this.uniqueValues),isosurfaces:(0,ne.o8)(this.isosurfaces)})}};(0,i.Cg)([(0,c.MZ)({type:d.jz,json:{write:{enabled:!0,isRequired:!0}}})],Me.prototype,"variableId",void 0),(0,i.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],Me.prototype,"label",void 0),(0,i.Cg)([(0,c.MZ)({type:me,json:{write:{enabled:!0,overridePolicy(){return{enabled:!this.uniqueValues||this.uniqueValues.length<1}}}}})],Me.prototype,"transferFunction",void 0),(0,i.Cg)([(0,c.MZ)({type:o.A.ofType(ve),json:{write:{enabled:!0,overridePolicy(){return{enabled:!!this.uniqueValues&&this.uniqueValues.length>0}}}}})],Me.prototype,"uniqueValues",void 0),(0,i.Cg)([(0,c.MZ)({type:o.A.ofType(se),json:{write:{enabled:!0,overridePolicy(){const e=!this.uniqueValues||this.uniqueValues.length<1,t=!!this.isosurfaces&&this.isosurfaces.length>0;return{enabled:e&&t}}}}})],Me.prototype,"isosurfaces",void 0),Me=be=(0,i.Cg)([(0,c.$K)("esri.layers.voxel.VoxelVariableStyle")],Me);var Se=r(88930),we=r(86738),Ce=r(16930),xe=r(21325);function Ae(e){const t=/^(days?|hours?|minutes?|seconds?|d|h|m|s) since (\d{1,4})-(\d{1,2})-(\d{1,2})[ |T](\d{1,2}):(\d{1,2}):(\d{1,2})(\.[0-9]+)?[\s|Z]?(([+|\-\s?])(\d{1,2}):(\d{1,2}))?$/i.exec(e);if(null==t)return{didParse:!1};const[,r,i,n,o,s,a,l,u,c,d,p,h]=t;let g="seconds";const y=r.charAt(0).toLowerCase();"d"===y?g="days":"h"===y?g="hours":"m"===y&&(g="minutes");const m=parseInt(i,10);if(Number.isNaN(m))return{didParse:!1};const f=parseInt(n,10);if(Number.isNaN(f)||f<1||f>12)return{didParse:!1};const v=parseInt(o,10);if(Number.isNaN(v)||v<1||v>31)return{didParse:!1};if(2===f){const e=m%4==0&&(m%100!=0||m%400==0);if(e&&v>29||!e&&v>28)return{didParse:!1}}else if((4===f||6===f||9===f||11===f)&&v>30)return{didParse:!1};const b=parseInt(s,10);if(Number.isNaN(b)||b<0||b>23)return{didParse:!1};const M=parseInt(a,10);if(Number.isNaN(M)||M<0||M>59)return{didParse:!1};const S=parseInt(l,10);if(Number.isNaN(S)||S<0||S>59)return{didParse:!1};let w=1,C=0,x=0;if(d&&(w="-"===d?-1:1),p){if(C=parseInt(p,10),Number.isNaN(C)||C<0)return{didParse:!1};if(0!==C){const e=w*C;if(e<-12||e>14)return{didParse:!1}}}if(h&&(x=parseInt(h,10),Number.isNaN(x)||x<0||x>59))return{didParse:!1};const A=`${m}`.padStart(4,"0"),I=`${f}`.padStart(2,"0"),j=`${v}`.padStart(2,"0"),Z=`${b}`.padStart(2,"0"),V=`${M}`.padStart(2,"0"),N=`${S}`.padStart(2,"0");let T="Z";return 0===C&&0===x||(T=w>0?"+":"-",T+=`${C}`.padStart(2,"0"),T+=":",T+=`${x}`.padStart(2,"0")),{didParse:!0,unit:g,reference:new Date(`${A}-${I}-${j}T${Z}:${V}:${N}.000${T}`)}}let Ie=class extends z.o{constructor(){super(...arguments),this.values=null}};(0,i.Cg)([(0,c.MZ)({type:[Number],json:{write:!0}})],Ie.prototype,"values",void 0),Ie=(0,i.Cg)([(0,c.$K)("esri.layers.voxel.VoxelIrregularSpacing")],Ie);const je=Ie;let Ze=class extends z.o{constructor(){super(...arguments),this.scale=1,this.offset=0}};(0,i.Cg)([(0,c.MZ)({type:Number,json:{write:!0}})],Ze.prototype,"scale",void 0),(0,i.Cg)([(0,c.MZ)({type:Number,json:{write:!0}})],Ze.prototype,"offset",void 0),Ze=(0,i.Cg)([(0,c.$K)("esri.layers.voxel.VoxelRegularSpacing")],Ze);const Ve=Ze;let Ne=class extends z.o{constructor(){super(...arguments),this.irregularSpacing=null,this.isPositiveUp=!0,this.isWrappedDateLine=!1,this.label=null,this.name=null,this.quantity=null,this.regularSpacing=null,this.size=0,this.unit=null}get isRegular(){return(null==this.irregularSpacing||void 0===this.irregularSpacing)&&null!==this.regularSpacing}getRange(){return this.isRegular?[this.regularSpacing.offset,this.regularSpacing.offset+this.regularSpacing.scale*(this.size-1)]:Array.isArray(this.irregularSpacing?.values)&&this.irregularSpacing.values.length>1?[this.irregularSpacing.values[0],this.irregularSpacing.values[this.irregularSpacing.values.length-1]]:[0,0]}};(0,i.Cg)([(0,c.MZ)({type:je,json:{write:!0}})],Ne.prototype,"irregularSpacing",void 0),(0,i.Cg)([(0,c.MZ)({type:Boolean,json:{write:!0}})],Ne.prototype,"isPositiveUp",void 0),(0,i.Cg)([(0,c.MZ)({type:Boolean,json:{write:!0}})],Ne.prototype,"isWrappedDateLine",void 0),(0,i.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],Ne.prototype,"label",void 0),(0,i.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],Ne.prototype,"name",void 0),(0,i.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],Ne.prototype,"quantity",void 0),(0,i.Cg)([(0,c.MZ)({type:Ve,json:{write:!0}})],Ne.prototype,"regularSpacing",void 0),(0,i.Cg)([(0,c.MZ)({type:Number,json:{write:!0}})],Ne.prototype,"size",void 0),(0,i.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],Ne.prototype,"unit",void 0),(0,i.Cg)([(0,c.MZ)({type:Boolean,json:{read:!1}})],Ne.prototype,"isRegular",null),Ne=(0,i.Cg)([(0,c.$K)("esri.layers.voxel.VoxelDimension")],Ne);const Te=Ne;let Fe=class extends z.o{constructor(e){super(e),this.id=0,this.dimensions=null,this.spatialReference=Ce.A.WGS84}get zDimension(){if(!this.dimensions)return-1;if(!Array.isArray(this.dimensions))return-1;if(4!==this.dimensions.length)return-1;for(let e=2;e<4;++e)if(this.dimensions[e].size>0)return e;return-1}get isValid(){return!(!this.dimensions||!Array.isArray(this.dimensions)||4!==this.dimensions.length||this.dimensions[0].size<1||this.dimensions[1].size<1||-1===this.zDimension||this.dimensions[this.zDimension].size<1)}get originInLayerSpace3D(){if(!this.isValid||"xyt"===this.volumeType)return[0,0,0];const e=this.dimensions[0].getRange(),t=this.dimensions[1].getRange(),r=this.dimensions[2],i=r.isRegular?r.getRange():[0,r.size];return[e[0],t[0],i[0]]}get voxelSizeInLayerSpaceSigned(){if(!this.isValid||"xyt"===this.volumeType)return[0,0,0];const e=this.dimensions[0].getRange(),t=this.dimensions[1].getRange(),r=this.dimensions[2],i=r.isRegular?r.getRange():[0,r.size],n=[this.sizeInVoxels[0],this.sizeInVoxels[1],this.sizeInVoxels[2]];for(let e=0;e<3;++e)n[e]<2?n[e]=1:n[e]-=1;return r.isRegular&&!r.isPositiveUp&&(n[2]*=-1),[(e[1]-e[0])/n[0],(t[1]-t[0])/n[1],(i[1]-i[0])/n[2]]}get volumeType(){if(this.isValid){const e=this.dimensions[2].size>0;let t=this.dimensions[3].size>0;if(t){const e=this.dimensions[3];t="time"===e.quantity,t&&null!==e.unit&&(t=Ae(e.unit).didParse)}if(!e&&t)return"xyt";if(e&&t)return"xyzt"}return"xyz"}get sizeInVoxels(){if(!this.isValid)return[0,0,0];const e=this.zDimension;return[this.dimensions[0].size,this.dimensions[1].size,this.dimensions[e].size]}get timeStops(){if("xyzt"!==this.volumeType)return[];const e=this.dimensions[3],t=[],r=Ae(e.unit);if(r.didParse)if(e.isRegular){const i=e.regularSpacing?.offset??0,n=e.regularSpacing?.scale||1;for(let o=0;o<e.size;++o){const e=i+n*o;t.push((0,Se.mi)(r.reference,e,r.unit))}}else if(Array.isArray(e.irregularSpacing?.values)&&e.irregularSpacing.values.length>0)for(let i=0;i<e.irregularSpacing.values.length;++i){const n=e.irregularSpacing.values[i];t.push((0,Se.mi)(r.reference,n,r.unit))}return t}computeVoxelSpaceLocation(e){if(!this.isValid)return[0,0,0];if("xyt"===this.volumeType)return a.A.getLogger(this).error("computeVoxelSpacePosition cannot be used with XYT volumes."),[0,0,0];if(!(0,xe.aI)(this.spatialReference,e.spatialReference))return a.A.getLogger(this).error("pos argument should have the same spatial reference as the VoxelLayer."),[0,0,0];const t=(0,h.fA)(e.x,e.y,e.z??0);(0,p.Re)(t,t,this.originInLayerSpace3D),(0,p.Qr)(t,t,this.voxelSizeInLayerSpaceSigned);const r=this.dimensions[this.zDimension];if(!r.isRegular&&Array.isArray(r.irregularSpacing?.values)&&r.irregularSpacing.values.length>1){const i=e.z??0,n=r.irregularSpacing.values,o=r.isPositiveUp?1:-1,s=n.reduce((e,t)=>Math.abs(o*t-i)<Math.abs(o*e-i)?t:e);for(let e=0;e<n.length;++e)if(n[e]===s){t[2]=e;break}}return[t[0],t[1],t[2]]}computeLayerSpaceLocation(e){if(!this.isValid)return new we.A({x:0,y:0,spatialReference:this.spatialReference});const t=(0,h.ci)(e);if((0,p.lw)(t,t,this.voxelSizeInLayerSpaceSigned),(0,p.WQ)(t,t,this.originInLayerSpace3D),"xyt"===this.volumeType)return new we.A({x:t[0],y:t[1],spatialReference:this.spatialReference});const r=this.dimensions[this.zDimension];return r.isRegular||Array.isArray(r.irregularSpacing?.values)&&(e[2]<0?t[2]=r.irregularSpacing.values[0]:e[2]<r.irregularSpacing.values.length?t[2]=r.irregularSpacing.values[e[2]]:t[2]=r.irregularSpacing.values[r.irregularSpacing.values.length-1],r.isPositiveUp||(t[2]*=-1)),new we.A({x:t[0],y:t[1],z:t[2],spatialReference:this.spatialReference})}};var Re;(0,i.Cg)([(0,c.MZ)({type:Number,json:{write:{enabled:!0,isRequired:!0}}})],Fe.prototype,"id",void 0),(0,i.Cg)([(0,c.MZ)({type:[Te],json:{write:{enabled:!0,isRequired:!0}}})],Fe.prototype,"dimensions",void 0),(0,i.Cg)([(0,c.MZ)({type:Ce.A,json:{read:{enabled:!1}}})],Fe.prototype,"spatialReference",void 0),(0,i.Cg)([(0,c.MZ)({type:Number,json:{read:!1}})],Fe.prototype,"zDimension",null),(0,i.Cg)([(0,c.MZ)({type:[Boolean],json:{read:!1}})],Fe.prototype,"isValid",null),(0,i.Cg)([(0,c.MZ)({type:[Number],json:{read:!1}})],Fe.prototype,"originInLayerSpace3D",null),(0,i.Cg)([(0,c.MZ)({type:[Number],json:{read:!1}})],Fe.prototype,"voxelSizeInLayerSpaceSigned",null),(0,i.Cg)([(0,c.MZ)({type:["xyz","xyzt","xyt"],json:{read:{enabled:!1}}})],Fe.prototype,"volumeType",null),(0,i.Cg)([(0,c.MZ)({type:[Number],json:{read:!1}})],Fe.prototype,"sizeInVoxels",null),(0,i.Cg)([(0,c.MZ)({type:[Date],json:{read:!1,write:!1}})],Fe.prototype,"timeStops",null),Fe=(0,i.Cg)([(0,c.$K)("esri.layers.voxel.VoxelVolume")],Fe);let _e=Re=class extends z.o{constructor(){super(...arguments),this.apronWidth=1,this.brickSize=[32,32,32],this.maxLodLevel=0,this.nodeSize=[4,4,4]}isValid(){const e=new Re;return e.apronWidth===this.apronWidth&&e.maxLodLevel===this.maxLodLevel&&!!this.brickSize&&!!this.nodeSize&&!(!Array.isArray(this.brickSize)||!Array.isArray(this.nodeSize))&&3===this.brickSize.length&&3===this.nodeSize.length&&32===this.brickSize[0]&&32===this.brickSize[1]&&32===this.brickSize[2]&&4===this.nodeSize[0]&&4===this.nodeSize[1]&&4===this.nodeSize[2]}};(0,i.Cg)([(0,c.MZ)({type:Number,json:{write:{enabled:!0,isRequired:!0}}})],_e.prototype,"apronWidth",void 0),(0,i.Cg)([(0,c.MZ)({type:[Number],json:{write:{enabled:!0,isRequired:!0}}})],_e.prototype,"brickSize",void 0),(0,i.Cg)([(0,c.MZ)({type:Number,json:{write:{enabled:!0,isRequired:!0}}})],_e.prototype,"maxLodLevel",void 0),(0,i.Cg)([(0,c.MZ)({type:[Number],json:{write:{enabled:!0,isRequired:!0}}})],_e.prototype,"nodeSize",void 0),_e=Re=(0,i.Cg)([(0,c.$K)("esri.layers.voxel.VoxelVolumeIndex")],_e);const Pe=_e;let ze=class extends((0,_.OU)(z.o)){constructor(e){super(e),this.enabled=!0,this.label="",this.normal=null,this.point=null}get orientation(){if(!Array.isArray(this.normal)||3!==this.normal.length)return 0;const[e,t]=G(this.normal);return P.ie.normalize((0,d.GB)(e),0,!0)}set orientation(e){const t=J(e,this.tilt);this._set("normal",t),this._set("orientation",e)}get tilt(){if(!Array.isArray(this.normal)||3!==this.normal.length)return 0;const[e,t]=G(this.normal);return P.ie.normalize((0,d.GB)(t),0,!0)}set tilt(e){const t=J(this.orientation,e);this._set("normal",t),this._set("tilt",e)}};var qe;(0,i.Cg)([(0,c.MZ)({type:Boolean,json:{default:!0,write:!0}})],ze.prototype,"enabled",void 0),(0,i.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],ze.prototype,"label",void 0),(0,i.Cg)([(0,c.MZ)({type:Number,json:{read:!1},clonable:!1,range:{min:0,max:360}}),(0,c.wg)(e=>P.ie.normalize((0,d.GB)(e),0,!0))],ze.prototype,"orientation",null),(0,i.Cg)([(0,c.MZ)({type:Number,json:{read:!1},clonable:!1,range:{min:0,max:360}}),(0,c.wg)(e=>P.ie.normalize((0,d.GB)(e),0,!0))],ze.prototype,"tilt",null),(0,i.Cg)([(0,c.MZ)({type:[Number],json:{write:{isRequired:!0}}})],ze.prototype,"normal",void 0),(0,i.Cg)([(0,c.MZ)({type:[Number],json:{write:{isRequired:!0}}})],ze.prototype,"point",void 0),ze=(0,i.Cg)([(0,c.$K)("esri.layers.voxel.VoxelDynamicSection")],ze);let Le=qe=class extends z.o{constructor(e){super(e),this.volumeId=0,this.verticalExaggeration=1,this.exaggerationMode="scale-height",this.verticalOffset=0,this.slices=new(o.A.ofType(W)),this.dynamicSections=new(o.A.ofType(ze))}set slices(e){this._set("slices",(0,ae.V)(e,this._get("slices"),o.A.ofType(W)))}set dynamicSections(e){this._set("dynamicSections",(0,ae.V)(e,this._get("dynamicSections"),o.A.ofType(ze)))}clone(){return new qe({volumeId:this.volumeId,verticalExaggeration:this.verticalExaggeration,exaggerationMode:this.exaggerationMode,verticalOffset:this.verticalOffset,slices:(0,ne.o8)(this.slices),dynamicSections:(0,ne.o8)(this.dynamicSections)})}};(0,i.Cg)([(0,c.MZ)({type:d.jz,json:{write:{enabled:!0,isRequired:!0}}})],Le.prototype,"volumeId",void 0),(0,i.Cg)([(0,c.MZ)({type:Number,json:{default:1,write:!0}})],Le.prototype,"verticalExaggeration",void 0),(0,i.Cg)([(0,c.MZ)({type:["scale-position","scale-height"],json:{default:"scale-height",write:!0}})],Le.prototype,"exaggerationMode",void 0),(0,i.Cg)([(0,c.MZ)({type:Number,json:{default:0,write:!0}})],Le.prototype,"verticalOffset",void 0),(0,i.Cg)([(0,c.MZ)({type:o.A.ofType(W),json:{write:{enabled:!0,overridePolicy(){return{enabled:!!this.slices&&this.slices.length>0}}}}})],Le.prototype,"slices",null),(0,i.Cg)([(0,c.MZ)({type:o.A.ofType(ze),json:{write:{enabled:!0,overridePolicy(){return{enabled:!!this.dynamicSections&&this.dynamicSections.length>0}}}}})],Le.prototype,"dynamicSections",null),Le=qe=(0,i.Cg)([(0,c.$K)("esri.layers.voxel.VoxelVolumeStyle")],Le);var Ee=r(30291),Oe=r(79677),De=r(10184),Ue=r(36005);let $e=class extends((0,Z.w6)((0,C.b)((0,A.q)((0,I.A)((0,j.j)((0,l.M)((0,x.d)((0,w.p)(S.A))))))))){constructor(e){super(e),this.serviceRoot="",this.operationalLayerType="Voxel",this.legendEnabled=!0,this.title=null,this.sections=null,this.currentVariableId=0,this.volumeStyles=null,this.renderMode="volume",this.variableStyles=null,this.enableSlices=!0,this.enableSections=!0,this.enableDynamicSections=!0,this.enableIsosurfaces=!0,this.graphicOrigin=new M(this),this.shading=new X,this.opacity=1,this.variables=new o.A,this.volumes=new o.A,this.index=null,this.minScale=0,this.maxScale=0,this.type="voxel",this.version={major:Number.NaN,minor:Number.NaN,versionString:""},this.fullExtent=null,this.popupEnabled=!1,this.popupTemplate=null,this.test=null,this.timeExtent=null,this.timeOffset=null,this.useViewTime=!0,this.volumeStyles=new(o.A.ofType(Le)),this.variableStyles=new(o.A.ofType(Me)),this.sections=new(o.A.ofType(Y))}normalizeCtorArgs(e){return e?.constantUpscaling&&(this.test={constantUpscaling:!0},delete e.constantUpscaling),e}set url(e){this._set("url",(0,V.Jf)(e,a.A.getLogger(this)))}load(e){const t=null!=e?e.signal:null,r=this.loadFromPortal({supportedTypes:["Scene Service"]},e).catch(u.QP).then(()=>this._fetchService(t)).then(()=>this.serviceRoot=this.url);return this.addResolvingPromise(r),Promise.resolve(this)}read(e,t){super.read(e,t),"service"===t?.origin&&this.version.major<=3&&this.version.minor<=0&&!this.getAtOrigin("popupTemplate","service")&&this.setAtOrigin("popupTemplate",this.createPopupTemplate(),"service");for(const e of this.volumes)e.spatialReference=this.spatialReference}readVersion(e,t){return super.parseVersionString(e)}validateLayer(e){if(e.layerType&&e.layerType!==this.operationalLayerType)throw new s.A("voxel-layer:layer-type-not-supported","VoxelLayer does not support this layer type",{layerType:e.layerType});if(isNaN(this.version.major)||isNaN(this.version.minor)||this.version.major<3)throw new s.A("layer:service-version-not-supported","Service version is not supported.",{serviceVersion:this.version.versionString,supportedVersions:"3.x"});if(this.version.major>3)throw new s.A("layer:service-version-too-new","Service version is too new.",{serviceVersion:this.version.versionString,supportedVersions:"3.x"})}readFullExtent(e,t,r){if(null!=e&&"object"==typeof e){const i=g.A.fromJSON(e,r);if(0===i.zmin&&0===i.zmax&&Array.isArray(t.volumes)){const e=Fe.fromJSON(t.volumes[0]);if(e.isValid&&"xyt"!==e.volumeType){const t=e.dimensions[2];if(t.isRegular){let e=t.regularSpacing.offset,r=t.regularSpacing.offset+t.regularSpacing.scale*(t.size-1);if(e>r){const t=e;e=r,r=t}i.zmin=e,i.zmax=r}}}return i}return null}get fields(){const e=[new T.A({name:"Voxel.Position",alias:"Voxel Position",domain:null,editable:!1,length:128,type:"string"}),new T.A({name:"Voxel.CurrentVariable",alias:"Current Variable",domain:null,editable:!1,length:128,type:"string"})];for(const t of this.variables){const r=new T.A({name:t.name,alias:t.description,domain:null,editable:!1,length:128,type:"discrete"===t.renderingFormat.continuity?"string":"double"});e.push(r)}const t=this.getVolume(null);if(null!=t){if("xyzt"===t.volumeType||"xyt"===t.volumeType){const t=new T.A({name:"Voxel.LocalTime",alias:"Local Time",domain:null,editable:!1,length:256,type:"date"});e.push(t);const r=new T.A({name:"Voxel.SourceTime",alias:"Source Time",domain:null,editable:!1,length:256,type:"string"});e.push(r)}if("xyt"!==t.volumeType){const t=new T.A({name:"Voxel.Depth",alias:"Depth",domain:null,editable:!1,length:128,type:"double"});e.push(t)}}return e}get fieldsIndex(){return this.loaded?new F.A(this.fields):null}getField(e){return this.fieldsIndex?.get(e)}get defaultPopupTemplate(){return this.createPopupTemplate()}createPopupTemplate(e){const t=this.fields;return(0,Ee.tn)({fields:t,title:"{Voxel.Position}"},e)}getConfiguration(){const e={layerType:this.operationalLayerType,version:this.version.versionString,name:this.title,spatialReference:this.spatialReference,fullExtent:this.fullExtent,volumes:this.volumes.toJSON(),variables:this.variables.toJSON(),index:this.index?.toJSON(),sections:this.getSections(),style:{volumeStyles:this.getVolumeStyles(),currentVariableId:this.currentVariableId,renderMode:this.renderMode,variableStyles:this.getVariableStyles(),enableSections:this.enableSections,enableDynamicSections:this.enableDynamicSections,enableIsosurfaces:this.enableIsosurfaces,enableSlices:this.enableSlices,shading:this.shading}};return e.index&&this.index?.isValid()?JSON.stringify(e):""}getVariableStyle(e){let t=-1;if(t=null!=e?e:this.currentVariableId,!this.variableStyles||-1===t)return null;const r=this.variableStyles.findIndex(e=>e.variableId===t);return r<0?null:this.variableStyles.at(r)}getVariable(e){let t=-1;if(t=null!=e?e:this.currentVariableId,!this.variables||-1===t)return null;const r=this.variables.findIndex(e=>e.id===t);return r<0?null:this.variables.at(r)}getVolume(e){const t=this.getVariable(e);return null!=t?this.volumes.find(({id:e})=>e===t.volumeId):null}get timeInfo(){const e=this.getVolume(null);if("xyzt"!==e?.volumeType)return null;const t=e.timeStops;if(!t?.length)return null;const r=new Oe.A({start:t[0],end:t.at(-1)});return new R.A({fullTimeExtent:r,stops:t})}getVolumeStyle(e){const t=this.getVariable(e);return null!=t?this.volumeStyles.find(({volumeId:e})=>e===t.volumeId):null}getColorForContinuousDataValue(e,t,r){const i=this.getVariable(e);if(null==i||"continuous"!==i.renderingFormat?.continuity)return null;if(!this.variableStyles)return null;const n=this.variableStyles.findIndex(t=>t.variableId===e);if(n<0)return null;const o=this.variableStyles.at(n);return o?.transferFunction?o.transferFunction.getColorForContinuousDataValue(t,r):null}getSections(){const e=[];for(const t of this.sections)e.push(new Y({enabled:t.enabled,href:t.href,id:t.id,label:t.label,normal:t.normal,point:t.point,sizeInPixel:t.sizeInPixel,slices:t.slices,timeId:t.timeId,variableId:t.variableId}));return e}getVariableStyles(){const e=[];for(const t of this.variableStyles){const r=this._getVariable(t);if(null!=r){const i=t.clone();i.isosurfaces.length>4&&(i.isosurfaces=i.isosurfaces.slice(0,3),a.A.getLogger(this).error("A maximum of 4 isosurfaces are supported for Voxel Layers."));for(const e of i.isosurfaces)if(!e.colorLocked){const t=this.getColorForContinuousDataValue(i.variableId,e.value,!1);null==t||t.equals(e.color)||(e.color=t)}if("continuous"===r.renderingFormat.continuity)(null===i.transferFunction||i.transferFunction.colorStops.length<2)&&a.A.getLogger(this).error(`VoxelVariableStyle for variable ${r.id} is invalid. At least 2 color stops are required in the transferFunction for continuous Voxel Layer variables.`),null!==i.transferFunction&&(Array.isArray(i.transferFunction.stretchRange)&&2===i.transferFunction.stretchRange.length||(a.A.getLogger(this).error(`VoxelVariableStyle for variable ${r.id} is invalid. The stretchRange of the transferFunction for continuous Voxel Layer variables must be of the form [minimumDataValue, maximumDataValue].`),i.transferFunction.stretchRange=[0,1],i.transferFunction.colorStops.removeAll()));else if("discrete"===r.renderingFormat.continuity)if(0===t.uniqueValues.length)a.A.getLogger(this).error(`VoxelVariableStyle for variable ${r.id} is invalid. Unique values are required for discrete Voxel Layer variables.`);else for(const e of t.uniqueValues)null!==e.label&&void 0!==e.label||null===e.value||void 0===e.value||(e.label=e.value.toString());e.push(i)}else a.A.getLogger(this).error(`VoxelVariable ID=${t.variableId} doesn't exist, VoxelVariableStyle for this VoxelVariable will be ignored.`)}return e}getVolumeStyles(){const e=[];for(const t of this.volumeStyles){const r=this._getVolumeFromVolumeId(t.volumeId);if(null!=r){const i=t.clone();for(const e of i.slices)this._isPlaneValid(e,[0,1,r.zDimension],r.dimensions)||(e.enabled=!1,e.label="invalid");for(const e of i.dynamicSections)this._isPlaneValid(e,[0,1,r.zDimension],r.dimensions)||(e.enabled=!1,e.label="invalid");e.push(i)}else a.A.getLogger(this).error(`VoxelVolume ID=${t.volumeId} doesn't exist, VoxelVolumeStyle for this VoxelVolume will be ignored.`)}return e}_getVariable(e){const t=e.variableId;for(const e of this.variables)if(e.id===t)return e;return null}_getVolumeFromVolumeId(e){for(const t of this.volumes)if(t.id===e)return t;return null}_isPlaneValid(e,t,r){if(!e.point)return!1;if(!Array.isArray(e.point)||3!==e.point.length)return!1;if(!e.normal)return!1;if(!Array.isArray(e.normal)||3!==e.normal.length)return!1;const i=(0,h.fA)(e.normal[0],e.normal[1],e.normal[2]);return(0,p.S8)(i,i),!(Math.abs(i[0])+Math.abs(i[1])+Math.abs(i[2])<1e-6||(e.normal[0]=i[0],e.normal[1]=i[1],e.normal[2]=i[2],0))}};(0,i.Cg)([(0,c.MZ)({type:["Voxel"]})],$e.prototype,"operationalLayerType",void 0),(0,i.Cg)([(0,c.MZ)(N.fV)],$e.prototype,"legendEnabled",void 0),(0,i.Cg)([(0,c.MZ)({json:{write:!0}})],$e.prototype,"title",void 0),(0,i.Cg)([(0,c.MZ)(N.OZ)],$e.prototype,"url",null),(0,i.Cg)([(0,c.MZ)({type:o.A.ofType(Y),json:{origins:{"web-scene":{name:"layerDefinition.sections",write:!0}}}})],$e.prototype,"sections",void 0),(0,i.Cg)([(0,c.MZ)({type:d.jz,json:{origins:{"web-scene":{name:"layerDefinition.style.currentVariableId",write:{enabled:!0,isRequired:!0,ignoreOrigin:!0}},service:{name:"style.currentVariableId"}}}})],$e.prototype,"currentVariableId",void 0),(0,i.Cg)([(0,c.MZ)({type:o.A.ofType(Le),json:{origins:{"web-scene":{name:"layerDefinition.style.volumeStyles",write:!0},service:{name:"style.volumeStyles"}}}})],$e.prototype,"volumeStyles",void 0),(0,i.Cg)([(0,c.MZ)({type:["volume","surfaces"],json:{origins:{"web-scene":{name:"layerDefinition.style.renderMode",write:!0},service:{name:"style.renderMode"}}}})],$e.prototype,"renderMode",void 0),(0,i.Cg)([(0,c.MZ)({type:o.A.ofType(Me),json:{origins:{"web-scene":{name:"layerDefinition.style.variableStyles",write:!0},service:{name:"style.variableStyles"}}}})],$e.prototype,"variableStyles",void 0),(0,i.Cg)([(0,c.MZ)({type:Boolean,json:{origins:{"web-scene":{name:"layerDefinition.style.enableSlices",write:!0},service:{name:"style.enableSlices"}}}})],$e.prototype,"enableSlices",void 0),(0,i.Cg)([(0,c.MZ)({type:Boolean,json:{origins:{"web-scene":{name:"layerDefinition.style.enableSections",write:!0},service:{name:"style.enableSections"}}}})],$e.prototype,"enableSections",void 0),(0,i.Cg)([(0,c.MZ)({type:Boolean,json:{origins:{"web-scene":{name:"layerDefinition.style.enableDynamicSections",write:!0},service:{name:"style.enableDynamicSections"}}}})],$e.prototype,"enableDynamicSections",void 0),(0,i.Cg)([(0,c.MZ)({type:Boolean,json:{origins:{"web-scene":{name:"layerDefinition.style.enableIsosurfaces",write:!0},service:{name:"style.enableIsosurfaces"}}}})],$e.prototype,"enableIsosurfaces",void 0),(0,i.Cg)([(0,c.MZ)({readOnly:!0})],$e.prototype,"graphicOrigin",void 0),(0,i.Cg)([(0,c.MZ)({type:X,json:{origins:{"web-scene":{name:"layerDefinition.style.shading",write:!0},service:{name:"style.shading"}}}})],$e.prototype,"shading",void 0),(0,i.Cg)([(0,c.MZ)({type:["show","hide"]})],$e.prototype,"listMode",void 0),(0,i.Cg)([(0,c.MZ)({type:Number,range:{min:0,max:1},nonNullable:!0,json:{read:!1,write:!1,origins:{"web-scene":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],$e.prototype,"opacity",void 0),(0,i.Cg)([(0,c.MZ)({type:o.A.ofType(ie)})],$e.prototype,"variables",void 0),(0,i.Cg)([(0,c.MZ)({type:o.A.ofType(Fe)})],$e.prototype,"volumes",void 0),(0,i.Cg)([(0,c.MZ)({type:Pe})],$e.prototype,"index",void 0),(0,i.Cg)([(0,c.MZ)({type:Number,json:{name:"layerDefinition.minScale",write:!0,origins:{service:{read:!1,write:!1}}}})],$e.prototype,"minScale",void 0),(0,i.Cg)([(0,c.MZ)({type:Number,json:{name:"layerDefinition.maxScale",write:!0,origins:{service:{read:!1,write:!1}}}})],$e.prototype,"maxScale",void 0),(0,i.Cg)([(0,c.MZ)({json:{read:!1},readOnly:!0})],$e.prototype,"type",void 0),(0,i.Cg)([(0,c.MZ)({readOnly:!0,json:{name:"serviceVersion"}})],$e.prototype,"version",void 0),(0,i.Cg)([(0,Ue.w)("service","version")],$e.prototype,"readVersion",null),(0,i.Cg)([(0,c.MZ)({type:g.A})],$e.prototype,"fullExtent",void 0),(0,i.Cg)([(0,Ue.w)("service","fullExtent",["fullExtent"])],$e.prototype,"readFullExtent",null),(0,i.Cg)([(0,c.MZ)({readOnly:!0,clonable:!1,json:{read:!1}})],$e.prototype,"fields",null),(0,i.Cg)([(0,c.MZ)({readOnly:!0})],$e.prototype,"fieldsIndex",null),(0,i.Cg)([(0,c.MZ)({type:Boolean,json:{name:"disablePopup",read:{reader:(e,t)=>!t.disablePopup},write:{enabled:!0,ignoreOrigin:!0,writer(e,t,r){t[r]=!e}},origins:{"portal-item":{default:!0},"web-scene":{default:!0}}}})],$e.prototype,"popupEnabled",void 0),(0,i.Cg)([(0,c.MZ)({type:n.A,json:{name:"popupInfo",write:!0}})],$e.prototype,"popupTemplate",void 0),(0,i.Cg)([(0,c.MZ)({readOnly:!0,json:{read:!1}})],$e.prototype,"defaultPopupTemplate",null),(0,i.Cg)([(0,c.MZ)({type:R.A,readOnly:!0,json:{read:!1}})],$e.prototype,"timeInfo",null),(0,i.Cg)([(0,c.MZ)({type:Oe.A,json:{read:!1}})],$e.prototype,"timeExtent",void 0),(0,i.Cg)([(0,c.MZ)({type:De.A,json:{read:!1}})],$e.prototype,"timeOffset",void 0),(0,i.Cg)([(0,c.MZ)({type:Boolean,nonNullable:!0,json:{origins:{"web-scene":{name:"timeAnimation",write:!0},service:{read:!1}}}})],$e.prototype,"useViewTime",void 0),$e=(0,i.Cg)([(0,c.$K)("esri.layers.VoxelLayer")],$e);const ke=$e},18768(e,t,r){var i=r(5482),n=r(53966),o=r(91429),s=r(60694);r.d(t,["b",0,e=>{const t=e;let r=class extends t{get title(){if(this._get("title")&&"defaults"!==this.originOf("title"))return this._get("title");if(this.url){const e=(0,s.qg)(this.url);if(e?.title)return e.title}return this._get("title")||""}set title(e){this._set("title",e)}set url(e){this._set("url",(0,s.Jf)(e,n.A.getLogger(this)))}};return(0,i.Cg)([(0,o.MZ)()],r.prototype,"title",null),(0,i.Cg)([(0,o.MZ)({type:String})],r.prototype,"url",null),r=(0,i.Cg)([(0,o.$K)("esri.layers.mixins.ArcGISService")],r),r}])},69208(e,t,r){var i=r(5482),n=r(91429);r.d(t,["d",0,e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.customParameters=null}};return(0,i.Cg)([(0,n.MZ)({type:Object,json:{write:{overridePolicy:e=>({enabled:!!(e&&Object.keys(e).length>0)})}}})],r.prototype,"customParameters",void 0),r=(0,i.Cg)([(0,n.$K)("esri.layers.mixins.CustomParametersMixin")],r),r}])},8303(e,t,r){var i=r(5482),n=r(92602),o=r(70333),s=r(11254),a=r(60999),l=r(49186),u=r(36563),c=r(53966),d=r(97768),p=r(17676),h=r(84952),g=r(91429),y=r(77548),m=r(20655),f=r(80812),v=r(41318),b=r(10407),M=r(36005),S=r(43937);const w={credential:null,user:null};r.d(t,["A",0,e=>{const t=e;let C=class extends t{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){super.destroy(),this.portalItem=(0,d.pR)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}get portalItem(){return this._get("portalItem")}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,r){if(t.itemId)return new f.default({id:t.itemId,portal:r?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem?.id)try{const{load:i}=await r.e(1204).then(r.bind(r,41204));return(0,p.Te)(t),await i({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},t)}catch(e){throw(0,p.zf)(e)||c.A.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async reloadFromPortal(e){if(!this.loaded||!this.portalItem?.id)return!1;try{const{reload:t}=await r.e(1204).then(r.bind(r,41204)),i=new AbortController,n=(0,u.rE)(i);return this.addHandles(n,"reloadFromPortal"),await t({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},{signal:i.signal})}catch(e){throw(0,p.zf)(e)||c.A.getLogger(this).warn(`Failed to reload layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}finally{this.removeHandles("reloadFromPortal")}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch(e=>((0,p.QP)(e),!0)))}async setUserPrivileges(e,t){if(!n.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:r,fullEdit:i},content:{updateItem:n}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",r),this._set("userHasFullEditingPrivileges",i),this._set("userHasUpdateItemPrivileges",n)}catch(e){(0,p.QP)(e)}}async _fetchUserPrivileges(e,t){let r=this.portalItem;if(!e||!r||!r.loaded||r.sourceUrl)return this._fetchFallbackUserPrivileges(t);const i=!o.id?.findCredential(this.url),n=e===r.id;if(n&&r.portal.user)return this._getUserPrivileges(r,i);let s,a;if(n)s=r.portal.url;else try{s=await(0,y.wI)(this.url,t)}catch(e){(0,p.QP)(e)}if(!s||!(0,h.b8)(s,r.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;a=await(o.id?.getCredential(`${s}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,p.QP)(e)}const l=!0,u=!1,c=!1;if(!a)return{features:{edit:l,fullEdit:u},content:{updateItem:c}};try{if(n?await r.reload():(r=new f.default({id:e,portal:{url:s}}),await r.load(t)),r.portal.user)return this._getUserPrivileges(r,i)}catch(e){(0,p.QP)(e)}return{features:{edit:l,fullEdit:u},content:{updateItem:c}}}_getUserPrivileges(e,t){const r=(0,b.It)(e);return t&&(r.features.edit=!0),r}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,p.QP)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){const t=this.url?o.id?.findCredential(this.url):null;if(!t)return!0;const r=w.credential===t?w.user:await this._fetchEditingUser(e);return w.credential=t,w.user=r,null==r?.privileges||r.privileges.includes("features:user:edit")}async _fetchEditingUser(e){const t=this.portalItem?.portal?.user;if(t)return t;const r=o.id?.findServerInfo(this.url??"");if(!r?.owningSystemUrl)return null;const i=`${r.owningSystemUrl}/sharing/rest`,n=m.A.getDefault();if(n&&n.loaded&&(0,h.S8)(n.restUrl)===(0,h.S8)(i))return n.user;const l=`${i}/community/self`,u=null!=e?e.signal:null,c=await(0,a.Ke)((0,s.A)(l,{authMode:"no-prompt",query:{f:"json"},signal:u}));return c.ok?v.A.fromJSON(c.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const r=t?.portal,i=this.portalItem?.id&&(this.portalItem.portal||m.A.getDefault());return r&&i&&!(0,h.ut)(i.restUrl,r.restUrl)?(t.messages&&t.messages.push(new l.A("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,i.Cg)([(0,g.MZ)({type:f.default})],C.prototype,"portalItem",null),(0,i.Cg)([(0,M.w)("web-document","portalItem",["itemId"])],C.prototype,"readPortalItem",null),(0,i.Cg)([(0,S.K)("web-document","portalItem",{itemId:{type:String}})],C.prototype,"writePortalItem",null),(0,i.Cg)([(0,g.MZ)({clonable:!1})],C.prototype,"resourceReferences",void 0),(0,i.Cg)([(0,g.MZ)({type:Boolean,readOnly:!0})],C.prototype,"userHasEditingPrivileges",void 0),(0,i.Cg)([(0,g.MZ)({type:Boolean,readOnly:!0})],C.prototype,"userHasFullEditingPrivileges",void 0),(0,i.Cg)([(0,g.MZ)({type:Boolean,readOnly:!0})],C.prototype,"userHasUpdateItemPrivileges",void 0),C=(0,i.Cg)([(0,g.$K)("esri.layers.mixins.PortalLayer")],C),C}])},25036(e,t,r){var i=r(5482),n=r(91429);r.d(t,["j",0,e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.minScale=0,this.maxScale=0}get effectiveScaleRange(){const e={minScale:this.minScale,maxScale:this.maxScale},t=this.parent;void 0!==t?.effectiveScaleRange&&function(e,t){e.minScale=e.minScale>0?t.minScale>0?Math.min(e.minScale,t.minScale):e.minScale:t.minScale,e.maxScale=e.maxScale>0?t.maxScale>0?Math.max(e.maxScale,t.maxScale):e.maxScale:t.maxScale}(e,t.effectiveScaleRange);const r=this._get("effectiveScaleRange");return r&&r.minScale===e.minScale&&r.maxScale===e.maxScale?r:e}};return(0,i.Cg)([(0,n.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],r.prototype,"minScale",void 0),(0,i.Cg)([(0,n.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],r.prototype,"maxScale",void 0),(0,i.Cg)([(0,n.MZ)({readOnly:!0})],r.prototype,"effectiveScaleRange",null),r=(0,i.Cg)([(0,n.$K)("esri.layers.mixins.ScaleRangeLayer")],r),r}])},95466(e,t,r){r.d(t,{A:()=>u});var i=r(49186),n=r(53966),o=r(12195),s=r(30524),a=r(98623),l=r(56400);class u{static fromJSON(e){return new u(e.fields,e.timeZoneByFieldName)}static fromLayer(e){return new u(e.fields??[],d(e))}static fromLayerJSON(e){return new u(e.fields??[],d(e))}constructor(e=[],t){this._fieldsMap=new Map,this._normalizedFieldsMap=new Map,this._dateFieldsSet=new Set,this._numericFieldsSet=new Set,this._requiredFields=null,this.dateFields=[],this.numericFields=[],this.fields=e||[],this._timeZoneByFieldName=t?new Map(t):null;const r=[];for(const e of this.fields){const t=e?.name,i=(0,s.GZ)(t);if(t&&i){const n=(0,s.NF)(t);this._fieldsMap.set(t,e),this._fieldsMap.set(n,e),this._normalizedFieldsMap.set(i,e),r.push(`${n}:${e.type}:${this._timeZoneByFieldName?.get(t)}`),(0,s.vE)(e)?(this.dateFields.push(e),this._dateFieldsSet.add(e)):(0,s.WA)(e)&&(this._numericFieldsSet.add(e),this.numericFields.push(e)),(0,s.te)(e)||(0,s.Xz)(e)||(e.editable=null==e.editable||!!e.editable,e.nullable=null==e.nullable||!!e.nullable)}}r.sort(),this.uid=r.join()}get requiredFields(){if(!this._requiredFields){this._requiredFields=[];for(const e of this.fields)(0,s.te)(e)||(0,s.Xz)(e)||e.nullable||void 0!==(0,s.lD)(e)||this._requiredFields.push(e)}return this._requiredFields}equals(e){return this.uid===e?.uid}has(e){return null!=this.get(e)}get(e){return(0,s.Vb)({fieldName:e,fieldsMap:this._fieldsMap,normalizedFieldsMap:this._normalizedFieldsMap})}getTimeZone(e){const t=this.get(e&&"string"!=typeof e?e.name:e);return t?this._timeZoneByFieldName?this._timeZoneByFieldName.get(t.name):"date"===t.type||"esriFieldTypeDate"===t.type?(n.A.getLogger("esri.layers.support.FieldsIndex").errorOnce(new i.A("getTimeZone:no-timezone-information",`no time zone information for field '${t.name}'`)),"UTC"):c.has(t.type)?a.L:null:null}isDateField(e){return this._dateFieldsSet.has(this.get(e))}isTimeOnlyField(e){return(0,s.OH)(this.get(e))}isNumericField(e){return this._numericFieldsSet.has(this.get(e))}normalizeFieldName(e){return this.get(e)?.name??void 0}toJSON(){return{fields:this.fields.map(e=>(0,o.W)(e)?e.toJSON():e),timeZoneByFieldName:this._timeZoneByFieldName?Array.from(this._timeZoneByFieldName.entries()):null}}}const c=new Set(["time-only","date-only","timestamp-offset","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"]);function d(e){const t=new Map;if(!e.fields)return t;const r=!0===e.datesInUnknownTimezone,{timeInfo:i,editFieldsInfo:n}=e,o=(i?"startField"in i?i.startField:i.startTimeField:"")??"",u=(i?"endField"in i?i.endField:i.endTimeField:"")??"",d=function(e){return"dateFieldsTimeZone"in e}(e)?e.dateFieldsTimeZone??null:e.dateFieldsTimeReference?(0,l.ZS)(e.dateFieldsTimeReference):null,p=n?function(e){return"timeZone"in e}(n)?n.timeZone??d:n.dateFieldsTimeReference?(0,l.ZS)(n.dateFieldsTimeReference):d??"UTC":null,h=i?function(e){return"timeZone"in e}(i)?i.timeZone??d:i.timeReference?(0,l.ZS)(i.timeReference):d:null,g=new Map([[(0,s.NF)(n?.creationDateField??""),p],[(0,s.NF)(n?.editDateField??""),p],[(0,s.NF)(o),h],[(0,s.NF)(u),h]]);for(const{name:i,type:n}of e.fields)if(c.has(n))t.set(i,a.L);else if("date"!==n&&"esriFieldTypeDate"!==n)t.set(i,null);else if(r)t.set(i,a.L);else{const e=g.get((0,s.NF)(i??""))??d;t.set(i,e)}return t}},96184(e,t,r){r.d(t,{A:()=>h});var i=r(5482),n=r(69540),o=r(25482),s=r(91429),a=r(79677),l=r(10184),u=r(56400),c=r(36005),d=r(43937);function p(e,t){return l.A.fromJSON({value:e,unit:t})}let h=class extends((0,n.OU)(o.o)){constructor(e){super(e),this.cumulative=!1,this.endField=null,this.fullTimeExtent=null,this.hasLiveData=!1,this.interval=null,this.startField=null,this.timeZone=null,this.trackIdField=null,this.useTime=!0,this.stops=null}readFullTimeExtent(e,t){return t.timeExtent&&Array.isArray(t.timeExtent)&&2===t.timeExtent.length?a.A.fromArray(t.timeExtent):null}writeFullTimeExtent(e,t){null!=e?.start&&null!=e.end?t.timeExtent=e.toArray():t.timeExtent=null}readInterval(e,t){return t.timeInterval&&t.timeIntervalUnits?p(t.timeInterval,t.timeIntervalUnits):t.defaultTimeInterval&&t.defaultTimeIntervalUnits?p(t.defaultTimeInterval,t.defaultTimeIntervalUnits):null}writeInterval(e,t){t.timeInterval=e?.toJSON().value??null,t.timeIntervalUnits=e?.toJSON().unit??null}};(0,i.Cg)([(0,s.MZ)({type:Boolean,json:{name:"exportOptions.timeDataCumulative",write:!0}})],h.prototype,"cumulative",void 0),(0,i.Cg)([(0,s.MZ)({type:String,json:{name:"endTimeField",write:{enabled:!0,allowNull:!0}}})],h.prototype,"endField",void 0),(0,i.Cg)([(0,s.MZ)({type:a.A,json:{write:{enabled:!0,allowNull:!0}}})],h.prototype,"fullTimeExtent",void 0),(0,i.Cg)([(0,c.w)("fullTimeExtent",["timeExtent"])],h.prototype,"readFullTimeExtent",null),(0,i.Cg)([(0,d.K)("fullTimeExtent")],h.prototype,"writeFullTimeExtent",null),(0,i.Cg)([(0,s.MZ)({type:Boolean,json:{write:!0}})],h.prototype,"hasLiveData",void 0),(0,i.Cg)([(0,s.MZ)({type:l.A,json:{write:{enabled:!0,allowNull:!0}}})],h.prototype,"interval",void 0),(0,i.Cg)([(0,c.w)("interval",["timeInterval","timeIntervalUnits","defaultTimeInterval","defaultTimeIntervalUnits"])],h.prototype,"readInterval",null),(0,i.Cg)([(0,d.K)("interval")],h.prototype,"writeInterval",null),(0,i.Cg)([(0,s.MZ)({type:String,json:{name:"startTimeField",write:{enabled:!0,allowNull:!0}}})],h.prototype,"startField",void 0),(0,i.Cg)([(0,s.MZ)((0,u.P6)("timeReference",!0))],h.prototype,"timeZone",void 0),(0,i.Cg)([(0,s.MZ)({type:String,json:{write:{enabled:!0,allowNull:!0}}})],h.prototype,"trackIdField",void 0),(0,i.Cg)([(0,s.MZ)({type:Boolean,json:{name:"exportOptions.useTime",write:!0}})],h.prototype,"useTime",void 0),(0,i.Cg)([(0,s.MZ)({type:[Date],json:{read:!1}})],h.prototype,"stops",void 0),h=(0,i.Cg)([(0,s.$K)("esri.layers.support.TimeInfo")],h)},73179(e,t,r){r.d(t,{b:()=>l,h:()=>u});var i=r(4718),n=r(53966),o=r(84952),s=r(60694),a=r(10873);function l(e){const{nonStandardUrlAllowed:t=!1,separator:r}=e??{},o=(0,i.o8)(a.OZ),l=o.json?.write;return"object"==typeof l&&l&&(l.writer=function(e,t,i,n){(0,s.LS)(this,e,r,t,n)}),{...o,set:function(e){if(null==e)return void this._set("url",e);const r=(0,s.HZ)({layer:this,url:e,nonStandardUrlAllowed:t,logger:n.A.getLogger(this)});this._set("url",r.url),null!=r.layerId&&this._set("layerId",r.layerId)}}}function u(e,t){const{separator:r}=t??{},i=(0,o.An)(e.url);return null!=i&&(null!=e.dynamicDataSource?i.path=(0,o.fj)(i.path,"dynamicLayer"):null!=e.layerId&&(i.path=(0,o.fj)(i.path,r??"",e.layerId.toString()))),i}},5757(e,t,r){r.d(t,{B:()=>n});const i=Symbol("PopupTemplateInstance");function n(e){return null!=e&&"object"==typeof e&&i in e}r.d(t,["P",0,i])},10407(e,t,r){r.d(t,{It:()=>h,LG:()=>s,OM:()=>u,Sm:()=>c,Y:()=>a,bK:()=>l,sQ:()=>d});var i=r(99917),n=r(16930),o=r(28735);function s(e,t){if(!a(e,t)){const r=e.typeKeywords;r?r.push(t):e.typeKeywords=[t]}}function a(e,t){return!!e.typeKeywords?.includes(t)}function l(e){return a(e,p.HOSTED_SERVICE)}function u(e,t){const r=e.typeKeywords;if(r){const e=r.indexOf(t);e>-1&&r.splice(e,1)}}function c(e,t,r){r?s(e,t):u(e,t)}async function d(e){const t=e.clone().normalize();let r;if(t.length>1)for(const e of t)r?e.width>r.width&&(r=e):r=e;else r=t[0];return async function(e){const t=e.spatialReference;if(t.isWGS84)return e.clone();if(t.isWebMercator)return(0,o.ci)(e);const r=n.A.WGS84;return await(0,i.initializeProjection)(t,r),(0,i.project)(e,r)}(r)}const p={CHARTS:"Charts",CATALOG_LAYER:"CatalogLayer",DYNAMIC:"Dynamic",DEVELOPER_BASEMAP:"DeveloperBasemap",GROUP_LAYER_MAP:"Map",HOSTED_SERVICE:"Hosted Service",JSAPI:"ArcGIS API for JavaScript",LOCAL_SCENE:"ViewingMode-Local",METADATA:"Metadata",MULTI_LAYER:"Multilayer",ORIENTED_IMAGERY_LAYER:"OrientedImageryLayer",PARCEL_FABRIC:"ParcelFabric",SINGLE_LAYER:"Singlelayer",SUBTYPE_GROUP_LAYER:"SubtypeGroupLayer",SUBTYPE_GROUP_TABLE:"SubtypeGroupTable",TABLE:"Table",TILED_IMAGERY:"Tiled Imagery",UTILITY_NETWORK:"UtilityNetwork"};function h(e){const{portal:t,isOrgItem:r,itemControl:i}=e,n=t.user?.privileges;let o=!n||n.includes("features:user:edit"),s=!!r&&!!n?.includes("features:user:fullEdit");const a="update"===i||"admin"===i;return a?s=o=!0:s&&(o=!0),{features:{edit:o,fullEdit:s},content:{updateItem:a}}}r.d(t,["mm",0,p])},85648(e,t,r){r.d(t,{n:()=>n});var i=r(84952);function n(e){return o[function(e){return"json"===e.type?"application/json":"blob"===e.type?e.blob.type:function(e){const t=(0,i.Zo)(e);return l[t]||s}(e.url)}(e)]||a}const o={},s="text/plain",a=o[s],l={png:"image/png",jpeg:"image/jpeg",jpg:"image/jpg",bmp:"image/bmp",gif:"image/gif",json:"application/json",txt:"text/plain",xml:"application/xml",svg:"image/svg+xml",zip:"application/zip",pbf:"application/vnd.mapbox-vector-tile",gz:"application/gzip","bin.gz":"application/octet-stream"};for(const e in l)o[l[e]]=e},30291(e,t,r){r.d(t,{tn:()=>u});var i=r(37838),n=r(30524),o=r(41227),s=r(89893),a=r(66159),l=r(68780);function u({displayField:e,editFieldsInfo:t,fields:r,objectIdField:l,title:u},h){if(!r)return null;const y=function(e,t){const r=t?.visibleFieldNames;return function({fields:e,ignoreFieldTypes:t,sortDisabled:r}){const i=e;return t&&(e=e.filter(e=>!t.includes(e.type))),e===i&&(e=e.slice()),!0!==r&&e.sort(d),e}({fields:e.fields??[],ignoreFieldTypes:t?.ignoreFieldTypes||g,sortDisabled:t?.sortDisabled}).map(t=>new o.A({fieldName:t.name,isEditable:(0,n.R$)(t,e),label:t.alias,format:p(t),visible:c(t,{...e,visibleFieldNames:r})}))}({editFieldsInfo:t,fields:r,objectIdField:l},h);if(!y.length)return null;const m=function(e){const t=(0,n.mB)(e),{titleBase:r}=e;return t?`${r}: {${t.trim()}}`:r??""}({titleBase:u,fields:r,displayField:e}),f=[new a.A,new s.A];return new i.A({title:m,content:f,fieldInfos:y})}const c=(e,t)=>t.visibleFieldNames?t.visibleFieldNames.has(e.name):(0,n.Bz)(e,t);function d(e,t){return"oid"===e.type?-1:"oid"===t.type?1:h(e)?-1:h(t)?1:(e.alias||e.name).toLocaleLowerCase().localeCompare((t.alias||t.name).toLocaleLowerCase())}function p(e){switch(e.type){case"small-integer":case"integer":return new l.A({digitSeparator:!0,places:0});case"single":case"double":return new l.A({digitSeparator:!0,places:2});case"string":return(0,n.JL)(e.name)?new l.A({digitSeparator:!0,places:0}):void 0;default:return}}function h(e){if("name"===(e.name&&e.name.toLowerCase()))return!0;const t=e.alias?.toLowerCase();return"name"===t}const g=["geometry","blob","raster","guid","xml"]}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2772,8325],{80200(t,e,n){n.d(e,{d:()=>h});const s={Base64:0,Hex:1,String:2,Raw:3};function i(t,e){const n=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(n>>16)<<16|65535&n}function r(t,e,n,s,r,o){return i(function(t,e){return t<<e|t>>>32-e}(i(i(e,t),i(s,o)),r),n)}function o(t,e,n,s,i,o,c){return r(e&n|~e&s,t,e,i,o,c)}function c(t,e,n,s,i,o,c){return r(e&s|n&~s,t,e,i,o,c)}function a(t,e,n,s,i,o,c){return r(e^n^s,t,e,i,o,c)}function l(t,e,n,s,i,o,c){return r(n^(e|~s),t,e,i,o,c)}function u(t,e){t[e>>5]|=128<<e%32,t[14+(e+64>>>9<<4)]=e;let n=1732584193,s=-271733879,r=-1732584194,u=271733878;for(let e=0;e<t.length;e+=16){const h=n,p=s,f=r,m=u;n=o(n,s,r,u,t[e],7,-680876936),u=o(u,n,s,r,t[e+1],12,-389564586),r=o(r,u,n,s,t[e+2],17,606105819),s=o(s,r,u,n,t[e+3],22,-1044525330),n=o(n,s,r,u,t[e+4],7,-176418897),u=o(u,n,s,r,t[e+5],12,1200080426),r=o(r,u,n,s,t[e+6],17,-1473231341),s=o(s,r,u,n,t[e+7],22,-45705983),n=o(n,s,r,u,t[e+8],7,1770035416),u=o(u,n,s,r,t[e+9],12,-1958414417),r=o(r,u,n,s,t[e+10],17,-42063),s=o(s,r,u,n,t[e+11],22,-1990404162),n=o(n,s,r,u,t[e+12],7,1804603682),u=o(u,n,s,r,t[e+13],12,-40341101),r=o(r,u,n,s,t[e+14],17,-1502002290),s=o(s,r,u,n,t[e+15],22,1236535329),n=c(n,s,r,u,t[e+1],5,-165796510),u=c(u,n,s,r,t[e+6],9,-1069501632),r=c(r,u,n,s,t[e+11],14,643717713),s=c(s,r,u,n,t[e],20,-373897302),n=c(n,s,r,u,t[e+5],5,-701558691),u=c(u,n,s,r,t[e+10],9,38016083),r=c(r,u,n,s,t[e+15],14,-660478335),s=c(s,r,u,n,t[e+4],20,-405537848),n=c(n,s,r,u,t[e+9],5,568446438),u=c(u,n,s,r,t[e+14],9,-1019803690),r=c(r,u,n,s,t[e+3],14,-187363961),s=c(s,r,u,n,t[e+8],20,1163531501),n=c(n,s,r,u,t[e+13],5,-1444681467),u=c(u,n,s,r,t[e+2],9,-51403784),r=c(r,u,n,s,t[e+7],14,1735328473),s=c(s,r,u,n,t[e+12],20,-1926607734),n=a(n,s,r,u,t[e+5],4,-378558),u=a(u,n,s,r,t[e+8],11,-2022574463),r=a(r,u,n,s,t[e+11],16,1839030562),s=a(s,r,u,n,t[e+14],23,-35309556),n=a(n,s,r,u,t[e+1],4,-1530992060),u=a(u,n,s,r,t[e+4],11,1272893353),r=a(r,u,n,s,t[e+7],16,-155497632),s=a(s,r,u,n,t[e+10],23,-1094730640),n=a(n,s,r,u,t[e+13],4,681279174),u=a(u,n,s,r,t[e],11,-358537222),r=a(r,u,n,s,t[e+3],16,-722521979),s=a(s,r,u,n,t[e+6],23,76029189),n=a(n,s,r,u,t[e+9],4,-640364487),u=a(u,n,s,r,t[e+12],11,-421815835),r=a(r,u,n,s,t[e+15],16,530742520),s=a(s,r,u,n,t[e+2],23,-995338651),n=l(n,s,r,u,t[e],6,-198630844),u=l(u,n,s,r,t[e+7],10,1126891415),r=l(r,u,n,s,t[e+14],15,-1416354905),s=l(s,r,u,n,t[e+5],21,-57434055),n=l(n,s,r,u,t[e+12],6,1700485571),u=l(u,n,s,r,t[e+3],10,-1894986606),r=l(r,u,n,s,t[e+10],15,-1051523),s=l(s,r,u,n,t[e+1],21,-2054922799),n=l(n,s,r,u,t[e+8],6,1873313359),u=l(u,n,s,r,t[e+15],10,-30611744),r=l(r,u,n,s,t[e+6],15,-1560198380),s=l(s,r,u,n,t[e+13],21,1309151649),n=l(n,s,r,u,t[e+4],6,-145523070),u=l(u,n,s,r,t[e+11],10,-1120210379),r=l(r,u,n,s,t[e+2],15,718787259),s=l(s,r,u,n,t[e+9],21,-343485551),n=i(n,h),s=i(s,p),r=i(r,f),u=i(u,m)}return[n,s,r,u]}function h(t,e=s.Hex){const n=e||s.Base64,i=u(function(t){const e=[];for(let n=0,s=8*t.length;n<s;n+=8)e[n>>5]|=(255&t.charCodeAt(n/8))<<n%32;return e}(t),8*t.length);switch(n){case s.Raw:return i;case s.Hex:return function(t){const e="0123456789abcdef",n=[];for(let s=0,i=4*t.length;s<i;s++)n.push(e.charAt(t[s>>2]>>s%4*8+4&15)+e.charAt(t[s>>2]>>s%4*8&15));return n.join("")}(i);case s.String:return function(t){const e=[];for(let n=0,s=32*t.length;n<s;n+=8)e.push(String.fromCharCode(t[n>>5]>>>n%32&255));return e.join("")}(i);case s.Base64:return function(t){const e=[];for(let n=0,s=4*t.length;n<s;n+=3){const s=(t[n>>2]>>n%4*8&255)<<16|(t[n+1>>2]>>(n+1)%4*8&255)<<8|t[n+2>>2]>>(n+2)%4*8&255;for(let i=0;i<4;i++)8*n+6*i>32*t.length?e.push("="):e.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(s>>6*(3-i)&63))}return e.join("")}(i)}}n.d(e,["T",0,s])},87024(t,e,n){n.d(e,{P:()=>f});var s=n(49186),i=n(80200),r=n(76553),o=n(84952),c=n(13069),a=n(96156),l=n(35666),u=n(10107),h=n(85648),p=n(97159);function f(t){const e=t?.origins??[void 0];return(n,s)=>{const i=function(t,e,n){if("resource"===t?.type)return function(t,e,n){const s=(0,a.z4)(e,n);return{type:String,read:(t,e,n)=>{const i=(0,p.r)(t,e,n);return s.type===String?i:"function"==typeof s.type?new s.type({url:i}):void 0},write:{isRequired:s.json?.write?.isRequired,writer(e,i,c,a){if(!a?.resources)return"string"==typeof e?void(i[c]=(0,p.t)(e,a)):void(i[c]=e.write({},a));const u=function(t){return null==t?null:"string"==typeof t?t:t.url}(e),f=(0,p.t)(u,{...a,verifyItemRelativeUrls:a?.verifyItemRelativeUrls?{writtenUrls:a.verifyItemRelativeUrls.writtenUrls,rootPath:void 0}:void 0},1),y=s.type!==String&&(!(0,r.H)(this)||a?.origin&&this.originIdOf(n)>(0,l.aB)(a.origin)),_={object:this,propertyName:n,value:e,targetUrl:f,dest:i,targetPropertyName:c,context:a,params:t};a?.portalItem&&f&&!(0,o.oP)(f)?y&&t?.contentAddressed?m(_):y?function(t){const{context:e,targetUrl:n,params:s,value:i,dest:r,targetPropertyName:c}=t;if(!e.portalItem)return;const a=e.portalItem.resourceFromPath(n),l=g(i,n,e),u=(0,h.n)(l),p=(0,o.Zo)(a.path),f=s?.compress??!1;u===p?(e.resources&&d({...t,resource:a,content:l,compress:f,updates:e.resources.toUpdate}),r[c]=n):m(t)}(_):function({context:t,targetUrl:e,dest:n,targetPropertyName:s}){t.portalItem&&t.resources&&(t.resources.toKeep.push({resource:t.portalItem.resourceFromPath(e),compress:!1}),n[s]=e)}(_):a?.portalItem&&(null==f||null!=(0,p.i)(f)||(0,o.w8)(f)||y)?m(_):i[c]=f}}}}(t,e,n);switch(t?.type??"other"){case"other":return{read:!0,write:!0};case"url":{const{read:t,write:e}=p.b;return{read:t,write:e}}}}(t,n,s);for(const t of e){const e=(0,u.rM)(n,t,s);for(const t in i)e[t]=i[t]}}}function m(t){const{targetUrl:e,params:n,value:r,context:a,dest:l,targetPropertyName:u}=t;if(!a.portalItem)return;const f=(0,p.p)(e),m=g(r,e,a);if(n?.contentAddressed&&"json"!==m.type)return void a.messages?.push(new s.A("persistable:contentAddressingUnsupported",`Property "${u}" is trying to serializing a resource with content of type ${m.type} with content addressing. Content addressing is only supported for json resources.`,{content:m}));const y=n?.contentAddressed&&"json"===m.type?(0,i.d)(m.jsonString):f?.filename??(0,c.lk)(),_=(0,o.fj)(n?.prefix??f?.prefix,y),x=`${_}.${(0,h.n)(m)}`;if(n?.contentAddressed&&a.resources&&"json"===m.type){const t=a.resources.toKeep.find(({resource:t})=>t.path===x)??a.resources.toAdd.find(({resource:t})=>t.path===x);if(t)return void(l[u]=t.resource.itemRelativeUrl)}const v=a.portalItem.resourceFromPath(x);(0,o.w8)(e)&&a.resources&&a.resources.pendingOperations.push((0,o.tk)(e).then(t=>{v.path=`${_}.${(0,h.n)({type:"blob",blob:t})}`,l[u]=v.itemRelativeUrl}).catch(()=>{}));const w=n?.compress??!1;a.resources&&d({...t,resource:v,content:m,compress:w,updates:a.resources.toAdd}),l[u]=v.itemRelativeUrl}function d({object:t,propertyName:e,updates:n,resource:s,content:i,compress:r}){n.push({resource:s,content:i,compress:r,finish:n=>{!function(t,e,n){"string"==typeof t[e]?t[e]=n.url:t[e].url=n.url}(t,e,n)}})}function g(t,e,n){return"string"==typeof t?{type:"url",url:e}:{type:"json",jsonString:JSON.stringify(t.toJSON(n))}}},83027(t,e,n){const s=n(29953).ho;n.d(e,["h",0,s])},35982(t,e,n){n.d(e,{B:()=>u});var s=n(4576),i=n(71511),r=n(36563),o=n(53966),c=n(97768),a=n(17676),l=n(83027);class u{constructor(t,e,n,s,i={}){this._mainMethod=e,this._transferLists=n,this._listeners=[],this._onClientConnectedHandle=null,this._destroyed=!1,this._promise=(0,l.h)(t,{...i,schedule:s}).then(t=>{null!=this._thread||this._destroyed?t.close():(this._thread=t,this._promise=null,this._onClientConnectedHandle=this._thread.onClientConnected(t=>{i.hasInitialize&&t.invoke("initialize",{}).catch(()=>{});for(const e of this._listeners)this._connectListenerToClient(e,t);this._onClientConnected(t)}))}),this._promise.catch(e=>o.A.getLogger("esri.core.workers.WorkerHandle").error(`Failed to initialize ${t} worker: ${e}`))}on(t,e){const n=new h(t,e);return this._listeners.push(n),this._connectListener(n),(0,r.hA)(()=>{(0,s.TF)(this._listeners,n),n.destroy()})}[Symbol.dispose](){this.destroy()}destroy(){this._onClientConnectedHandle=(0,c.xt)(this._onClientConnectedHandle),this._thread&&(this._thread.close(),this._thread=null),this._promise=null;for(const t of this._listeners)t.destroy();this._listeners.length=0,this._transferLists={},this._destroyed=!0}invoke(t,e,n){return this.invokeMethod(this._mainMethod,t,e,n)}invokeMethod(t,e,n,s){if(this._thread){const i=this._transferLists[t],r=i?i(e):[];return this._thread.invoke(t,e,{transferList:r,signal:n,jobPriority:s})}return this._promise?this._promise.then(()=>((0,a.Te)(n),this.invokeMethod(t,e,n))):Promise.reject((0,a.NK)())}broadcast(t,e){return this._thread?Promise.all(this._thread.broadcast(e,t)).then(p):this._promise?this._promise.then(()=>this.broadcast(t,e)):Promise.reject((0,a.NK)())}get promise(){return this._promise}_onClientConnected(t){}_connectListener(t){this._thread&&t.add(this._thread.on(t.eventName,t.callback))}_connectListenerToClient(t,e){t.add(e.on(t.eventName,t.callback))}}class h{constructor(t,e){this.eventName=t,this.callback=e,this._handles=new i.A}add(t){this._handles.add(t)}destroy(){this._handles.destroy()}}function p(){}},65806(t,e,n){n.d(e,{g:()=>o});var s=n(51850),i=n(91218),r=n(9762);function o(t,e,n,s){if((0,i.canProjectWithoutEngine)(t.spatialReference,n))return c[0]=t.x,c[1]=t.y,c[2]=t.z??0,(0,r.projectBuffer)(c,t.spatialReference,0,e,n,0);const o=(0,i.tryProject)(t,n,s);return!!o&&(e[0]=o.x,e[1]=o.y,e[2]=o.z??0,!0)}const c=(0,s.vt)()},27993(t,e,n){n.d(e,{F:()=>c});var s=n(91218),i=n(16930),r=n(9762),o=n(65806);function c(t,e,n,i){return!(null==e||null==i||t.length<2)&&((0,s.canProjectWithoutEngine)(e,i)?(0,r.projectBuffer)(t,e,0,n,i,0,1):(a.x=t[0],a.y=t[1],a.z=t[2],a.spatialReference=e,(0,o.g)(a,n,i)))}const a={x:0,y:0,z:0,hasZ:!0,hasM:!1,spatialReference:i.A.WGS84,type:"point"}},80754(t,e,n){n.d(e,{kS:()=>l,kd:()=>a});var s=n(82799),i=n(16930),r=n(60408),o=n(52006);const c={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new s.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:i.A.WebMercator}),minus180Line:new s.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:i.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new s.A({paths:[[[180,-180],[180,180]]],spatialReference:i.A.WGS84}),minus180Line:new s.A({paths:[[[-180,-180],[-180,180]]],spatialReference:i.A.WGS84})}};function a(t,e){return Math.ceil((t-e)/(2*e))}function l(t,e){if((0,o.Ed)(t))for(const n of function(t){return(0,r.Bi)(t)?t.curveRings:t.curvePaths}(t))for(const t of n){if((0,o.aO)(t)){const[n,s]=t.c;n[0]+=e,s[0]+=e;continue}if((0,o.FG)(t)){const[n,s]=t.a;n[0]+=e,s[0]+=e;continue}if((0,o.n1)(t)){const[n,s,i]=t.b;n[0]+=e,s[0]+=e,i[0]+=e;continue}t[0]+=e}for(const n of function(t){return(0,r.Bi)(t)?t.rings:t.paths}(t))for(const t of n)t[0]+=e;return t}n.d(e,["j7",0,c])},89056(t,e,n){n.d(e,{b3:()=>h,jZ:()=>u});var s=n(12195),i=n(19419),r=n(537),o=n(95108),c=n(60408),a=n(80754),l=n(21325);function u(t){return p(t,!0)}function h(t){return p(t,!1)}function p(t,e){if(null==t)return null;const n=t.spatialReference,i=(0,l.Vp)(n),o=(0,s.W)(t)?t.toJSON():t;if(!i)return o;const u=(0,l.K8)(n)?102100:4326,h=a.j7[u].maxX,p=a.j7[u].minX;if((0,c.fT)(o))return m(o,h,p);if((0,c.U9)(o))return o.points=o.points.map(t=>m(t,h,p)),o;if((0,c.ZC)(o))return f(o,i);if((0,c.Bi)(o)||(0,c.Rg)(o)){const t=(0,r.Rg)(v,o),n={xmin:t[0],ymin:t[1],xmax:t[2],ymax:t[3]},s=(0,a.kd)(n.xmin,p)*(2*h),i=0===s?o:(0,a.kS)(o,s);return n.xmin+=s,n.xmax+=s,n.xmax>h?_(i,h,e):n.xmin<p?_(i,p,e):i}return o}function f(t,e){if(!e)return t;const n=function(t,e){const n=[],{ymin:s,ymax:i,xmin:r,xmax:o}=t,c=t.xmax-t.xmin,[a,l]=e.valid,{x:u,frameId:h}=d(t.xmin,e),{x:p,frameId:f}=d(t.xmax,e),m=u===p&&c>0;if(c>2*l){const t={xmin:r<o?u:p,ymin:s,xmax:l,ymax:i},e={xmin:a,ymin:s,xmax:r<o?p:u,ymax:i},c={xmin:0,ymin:s,xmax:l,ymax:i},m={xmin:a,ymin:s,xmax:0,ymax:i},d=[],y=[];g(t,c)&&d.push(h),g(t,m)&&y.push(h),g(e,c)&&d.push(f),g(e,m)&&y.push(f);for(let t=h+1;t<f;t++)d.push(t),y.push(t);n.push(new x(t,[h]),new x(e,[f]),new x(c,d),new x(m,y))}else u>p||m?n.push(new x({xmin:u,ymin:s,xmax:l,ymax:i},[h]),new x({xmin:a,ymin:s,xmax:p,ymax:i},[f])):n.push(new x({xmin:u,ymin:s,xmax:p,ymax:i},[h]));return n}(t,e).map(t=>t.extent);return n.length<2?n[0]||t:n.length>2?(t.xmin=e.valid[0],t.xmax=e.valid[1],t):{rings:n.map(t=>[[t.xmin,t.ymin],[t.xmin,t.ymax],[t.xmax,t.ymax],[t.xmax,t.ymin],[t.xmin,t.ymin]])}}function m(t,e,n){if(Array.isArray(t)){const s=t[0];if(s>e){const n=(0,a.kd)(s,e);t[0]=s+n*(-2*e)}else if(s<n){const e=(0,a.kd)(s,n);t[0]=s+e*(-2*n)}}else{const s=t.x;if(s>e){const n=(0,a.kd)(s,e);t.x+=n*(-2*e)}else if(s<n){const e=(0,a.kd)(s,n);t.x+=e*(-2*n)}}return t}function d(t,e){const[n,s]=e.valid,i=2*s;let r,o=0;return t>s?(r=Math.ceil(Math.abs(t-s)/i),t-=r*i,o=r):t<n&&(r=Math.ceil(Math.abs(t-n)/i),t+=r*i,o=-r),{x:t,frameId:o}}function g(t,e){const{xmin:n,ymin:s,xmax:i,ymax:r}=e;return y(t,n,s)&&y(t,n,r)&&y(t,i,r)&&y(t,i,s)}function y(t,e,n){return e>=t.xmin&&e<=t.xmax&&n>=t.ymin&&n<=t.ymax}function _(t,e,n=!0){const s=!(0,c.Rg)(t);if(s&&(0,o.m3)(t),n)return(new w).cut(t,e);const i=s?t.rings:t.paths,r=s?4:2,a=i.length,l=-2*e;for(let t=0;t<a;t++){const e=i[t];if(e&&e.length>=r){const t=[];for(const[n,...s]of e)t.push([n+l,...s]);i.push(t)}}return s?t.rings=i:t.paths=i,t}class x{constructor(t,e){this.extent=t,this.frameIds=e}}const v=(0,i.vt)();class w{constructor(){this._linesIn=[],this._linesOut=[]}cut(t,e){let n;if(this._xCut=e,t.rings)this._closed=!0,n=t.rings,this._minPts=4;else{if(!t.paths)return null;this._closed=!1,n=t.paths,this._minPts=2}for(const t of n){if(!t||t.length<this._minPts)continue;let e=!0;for(const n of t)e?(this.moveTo(n),e=!1):this.lineTo(n);this._closed&&this.close()}this._pushLineIn(),this._pushLineOut(),n=[];for(const t of this._linesIn)t&&t.length>=this._minPts&&n.push(t);const s=-2*this._xCut;for(const t of this._linesOut)if(t&&t.length>=this._minPts){for(const e of t)e[0]+=s;n.push(t)}return this._closed?t.rings=n:t.paths=n,t}moveTo(t){this._pushLineIn(),this._pushLineOut(),this._prevSide=this._side(t[0]),this._moveTo(t,this._prevSide),this._prevPt=t,this._firstPt=t}lineTo(t){const e=this._side(t[0]);if(e*this._prevSide===-1){const n=this._intersect(this._prevPt,t);this._lineTo(n,0),this._prevSide=0,this._lineTo(t,e)}else this._lineTo(t,e);this._prevSide=e,this._prevPt=t}close(){const t=this._firstPt,e=this._prevPt;t[0]===e[0]&&t[1]===e[1]||this.lineTo(t),this._checkClosingPt(this._lineIn),this._checkClosingPt(this._lineOut)}_moveTo(t,e){this._closed?(this._lineIn.push(C(t,e<=0?t[0]:this._xCut)),this._lineOut.push(C(t,e>=0?t[0]:this._xCut))):(e<=0&&this._lineIn.push(t.slice()),e>=0&&this._lineOut.push(t.slice()))}_lineTo(t,e){this._closed?(S(this._lineIn,t,e<=0?t[0]:this._xCut),S(this._lineOut,t,e>=0?t[0]:this._xCut)):e<0?(0===this._prevSide&&this._pushLineOut(),this._lineIn.push(t.slice())):e>0?(0===this._prevSide&&this._pushLineIn(),this._lineOut.push(t.slice())):this._prevSide<0?(this._lineIn.push(t.slice()),this._lineOut.push(t.slice())):this._prevSide>0&&(this._lineOut.push(t.slice()),this._lineIn.push(t.slice()))}_checkClosingPt(t){const e=t.length;e>3&&t[0][0]===this._xCut&&t[e-2][0]===this._xCut&&t[1][0]===this._xCut&&(t[0]=t[e-2].slice(),t.pop())}_side(t){return t<this._xCut?-1:t>this._xCut?1:0}_intersect(t,e){const n=(this._xCut-t[0])/(e[0]-t[0]),s=[this._xCut,t[1]+n*(e[1]-t[1])],i=Math.min(t.length,e.length);for(let r=2;r<i;r++)s.push(t[r]+n*(e[r]-t[r]));return s}_pushLineIn(){this._lineIn&&this._lineIn.length>=this._minPts&&this._linesIn.push(this._lineIn),this._lineIn=[]}_pushLineOut(){this._lineOut&&this._lineOut.length>=this._minPts&&this._linesOut.push(this._lineOut),this._lineOut=[]}}function C(t,e){const n=t.slice();return n[0]=e,n}function S(t,e,n){const s=t.length;s>1&&t[s-1][0]===n&&t[s-2][0]===n?t[s-1]=C(e,n):t.push(C(e,n))}},58325(t,e,n){n.d(e,{A:()=>S});var s,i=n(5482),r=n(11254),o=n(7762),c=n(25482),a=n(84952),l=n(91429),u=n(4718),h=n(67076),p=n(87024),f=n(39829),m=n(91218),d=n(16930),g=n(21325),y=n(88546),_=n(72772),x=n(98697),v=n(43937);let w=s=class extends c.o{constructor(t){super(t),this.geometry=null,this.type="clip"}writeGeometry(t,e,n,s){if(this._needWGS84Conversion(s))this._doWGS84Conversion(e,n,s);else if(s.layer?.spatialReference&&!s.layer.spatialReference.equals(this.geometry.spatialReference)){if(!(0,m.canProjectWithoutEngine)(t.spatialReference,s.layer.spatialReference))return void(s?.messages&&s.messages.push(new h.A("scenemodification:unsupported","Scene modifications with incompatible spatial references are not supported",{modification:this,spatialReference:s.layer.spatialReference,context:s})));const i=new f.A;(0,m.projectPolygon)(t,i,s.layer.spatialReference),e[n]=i.toJSON(s)}else e[n]=t.toJSON(s)}_needWGS84Conversion(t){if("integrated-mesh-3dtiles"===t.layer?.type){const e=t.layer;return!e.esriCrsSpatialReference||!(0,g.aI)(e.esriCrsSpatialReference,this.geometry.spatialReference)}return!1}_doWGS84Conversion(t,e,n){let s=!0;if((0,_.isInitialized)()){const i=(0,x.Ir)(null,[this],d.A.WGS84);if(i.length>1){const r=(0,_.switchMeshModificationPolygonVCSSync)({modifications:i,inVCS:5773});if(r.success&&r.modifications){const i=[this.clone()];(0,x.H1)(r.modifications,i),1===i.length&&i[0].geometry&&(i[0].geometry.spatialReference=y.Zx,t[e]=i[0].geometry.toJSON(n),s=!1)}}}s&&n?.messages&&n.messages.push(new h.A("scenemodification:unsupported","Scene modifications with incompatible spatial references are not supported",{modification:this,spatialReference:this.geometry.spatialReference,context:n}))}clone(){return new s({geometry:(0,u.o8)(this.geometry),type:this.type})}};var C;(0,i.Cg)([(0,l.MZ)({type:f.A}),(0,p.P)()],w.prototype,"geometry",void 0),(0,i.Cg)([(0,v.K)(["web-scene","portal-item"],"geometry")],w.prototype,"writeGeometry",null),(0,i.Cg)([(0,l.MZ)({type:["clip","mask","replace"],nonNullable:!0}),(0,p.P)()],w.prototype,"type",void 0),w=s=(0,i.Cg)([(0,l.$K)("esri.layers.support.SceneModification")],w);let S=C=class extends((0,c.T)(o.A.ofType(w))){constructor(t){super(t),this.url=null}clone(){return new C({url:this.url,items:this.items.map(t=>t.clone())})}toJSON(t){return this.toArray().map(e=>e.toJSON(t)).filter(t=>!!t.geometry)}static fromJSON(t,e){const n=new C;for(const s of t)n.add(w.fromJSON(s,e));return n}static async fromUrl(t,e,n,s=!1){const i={url:(0,a.An)(t),origin:"service"},o=await(0,r.A)(t,{responseType:"json",signal:n?.signal}),c=e.toJSON(),l=[];for(const t of o.data){let e=c;s&&t.geometry.spatialReference&&(e=t.geometry.spatialReference),l.push(w.fromJSON({...t,geometry:{spatialReference:e,...t.geometry}},i))}return new C({url:t,items:l})}};(0,i.Cg)([(0,l.MZ)({type:String})],S.prototype,"url",void 0),S=C=(0,i.Cg)([(0,l.$K)("esri.layers.support.SceneModifications")],S)},85648(t,e,n){n.d(e,{n:()=>i});var s=n(84952);function i(t){return r[function(t){return"json"===t.type?"application/json":"blob"===t.type?t.blob.type:function(t){const e=(0,s.Zo)(t);return a[e]||o}(t.url)}(t)]||c}const r={},o="text/plain",c=r[o],a={png:"image/png",jpeg:"image/jpeg",jpg:"image/jpg",bmp:"image/bmp",gif:"image/gif",json:"application/json",txt:"text/plain",xml:"application/xml",svg:"image/svg+xml",zip:"application/zip",pbf:"application/vnd.mapbox-vector-tile",gz:"application/gzip","bin.gz":"application/octet-stream"};for(const t in a)r[a[t]]=t},72772(t,e,n){n.r(e),n.d(e,{addSpatialReferenceInfo:()=>a,destroyWasm:()=>u,initialize:()=>h,isInitialized:()=>p,process:()=>c,switchMeshModificationPolygonVCSSync:()=>l});var s=n(2741);function i(t){return(0,s.s)(`esri/libs/lyr3d/${t}`)}let r,o=null;async function c(t){await h();const e={status:1,error:"",jobDescJson:"",data:new Uint8Array(0),missingInputUrls:[]};if(t.inputs.length<1)return{result:e,transferList:[]};const n={ptrs:[],sizes:[]};for(const e of t.inputs){const t=o._malloc(e.byteLength);new Uint8Array(o.HEAPU8.buffer,t,e.byteLength).set(new Uint8Array(e)),n.ptrs.push(t),n.sizes.push(e.byteLength)}const s=o.process(t.jobDescJson,t.id,n,t.isMissingResourceCase);e.status=s.status,e.missingInputUrls=s.missingInputUrls.slice();const i=0===s.status&&s.data,r=2===e.status&&e.missingInputUrls.length>0;e.jobDescJson=s.jobDescJson.slice(),e.error=s.error.slice(),i?e.data=s.data.slice():r&&(e.originalInputs=t.inputs.slice());for(let t=0;t<n.ptrs.length;++t)o._free(n.ptrs[t]);const c=[];if(i)c.push(e.data.buffer);else if(r)for(const e of t.inputs)c.push(e);return{result:e,transferList:c}}async function a(t){await h(),o.add_spatial_reference_info(t.sr,t.isGCS,t.toMetersXY,t.toMetersZ)}function l(t){if(!o)return{success:!1,modifications:null};const e=o._malloc(8*t.modifications.length),n=new Float64Array(o.HEAPF64.buffer,e,t.modifications.length);n.set(t.modifications);const s=o.switch_mesh_modification_polygon_vcs(e,t.modifications.length,t.inVCS);let i=null;return s&&(i=n.slice()),o._free(e),{success:s,modifications:i}}function u(){o&&(o.uninitialize_lyr3d_worker_wasm(),o=null)}function h(){return p()?Promise.resolve():(r||(r=new Promise(t=>n.e(2343).then(n.bind(n,2343)).then(({default:e})=>{const n=e({locateFile:i,onRuntimeInitialized:()=>t(n)})})).catch(t=>{throw t}).then(t=>{o=t,o.initialize_lyr3d_worker_wasm(),r=null})),r)}function p(){return null!==o}},98697(t,e,n){n.d(e,{H1:()=>_,Ir:()=>d,_b:()=>h,sQ:()=>p});var s=n(53966),i=n(15142),r=n(51850),o=n(35982),c=n(39829),a=n(91218),l=n(27993),u=n(89056);class h{constructor(t,e,n,s,i,r){this.layout=t,this.interleavedVertexData=e,this.indices=n,this.hasColors=s,this.hasModifications=i,this.positionData=r}}class p{constructor(t,e,n,s,i,r,o,c,a){this.componentOffsets=t,this.featureIds=e,this.anchorIds=n,this.anchors=s,this.transformedGeometry=i,this.globalTrafo=r,this.obb=o,this.geometryMinElevation=c,this.geometryMaxElevation=a}}o.B;const f=new i.A({deallocator:null}),m=(0,r.vt)();function d(t,e,n,i=!1){f.clear();let r=1/0,o=1/0,l=-1/0,h=-1/0,p=!1;for(const t of e){const e="clip"===t.type?2:"mask"===t.type?1:0,m=t.geometry,d=m.spatialReference??n;if(d!==n&&!(0,a.canProjectWithoutEngine)(d,n)){s.A.getLogger("esri.views.3d.layers.SceneLayerWorkerHandle").warn("im-modification-projection-failed","Can't project modification polygon into layer spatial reference, ignoring modification",{polygon:m});continue}let _=m.rings;if(d!==n){const t=g(m.rings,d,n);if(null==t){s.A.getLogger("esri.views.3d.layers.SceneLayerWorkerHandle").warn("im-modification-projection-failed","Can't project modification polygon into layer spatial reference, ignoring modification",{polygon:m});continue}_=t}const x=_;if(i){const t=(0,u.jZ)(new c.A({rings:_,spatialReference:n}));null!=t&&(_=t.rings)}const v=1===x.length&&_.length>1?[..._.map(t=>[t]),x]:[_];if(v.some(t=>0===t.length||t.some(t=>t.length<3||t.some(t=>!y(t)))))s.A.getLogger("esri.views.3d.layers.SceneLayerWorkerHandle").warn("im-modification-invalid-polygon","Ignoring invalid modification polygon (empty ring, fewer than 3 vertices, or non-finite coordinates).",{polygon:m});else{p||=1===e;for(const t of v){f.push(e),f.push(t.length);for(const e of t){f.push(e.length);for(const t of e){const e=t[2]??0;f.push(t[0]),f.push(t[1]),f.push(e),r=Math.min(r,t[0]),o=Math.min(o,t[1]),l=Math.max(l,t[0]),h=Math.max(h,t[1])}}}}}if(null!=t)if(p){const e=1e-4;f.push(2),f.push(2),f.push(4),f.push(r-e),f.push(o-e),f.push(0),f.push(l+e),f.push(o-e),f.push(0),f.push(l+e),f.push(h+e),f.push(0),f.push(r-e),f.push(h+e),f.push(0),f.push(4),f.push(t[0]),f.push(t[1]),f.push(0),f.push(t[2]),f.push(t[1]),f.push(0),f.push(t[2]),f.push(t[3]),f.push(0),f.push(t[0]),f.push(t[3]),f.push(0)}else f.push(1),f.push(1),f.push(4),f.push(t[0]),f.push(t[1]),f.push(0),f.push(t[2]),f.push(t[1]),f.push(0),f.push(t[2]),f.push(t[3]),f.push(0),f.push(t[0]),f.push(t[3]),f.push(0);f.push(3);const m=new Float64Array(f.length);for(let t=0;t<f.length;++t)m[t]=f.at(t);return m}function g(t,e,n){const s=[];for(const i of t){const t=[];for(const s of i){if(!(0,l.F)(s,e,m,n)||!y(m))return null;t.push([m[0],m[1],m[2]])}s.push(t)}return s}function y(t){return Number.isFinite(t[0])&&Number.isFinite(t[1])&&(null==t[2]||Number.isFinite(t[2]))}function _(t,e){let n=0;for(const s of e){const e=s.geometry,i=e.rings.length,r=e.rings.some(t=>t.length<3);if(0!==i&&!r){n+=1,n+=1;for(let s=0;s<e.rings.length;++s){const i=e.rings[s];n+=1;for(let r=0;r<i.length;++r){const i=[t[n+0],t[n+1],t[n+2]];n+=3,e.setPoint(s,r,i)}}}}}}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2772,8325],{80200(t,e,n){n.d(e,{d:()=>h});const s={Base64:0,Hex:1,String:2,Raw:3};function i(t,e){const n=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(n>>16)<<16|65535&n}function r(t,e,n,s,r,o){return i(function(t,e){return t<<e|t>>>32-e}(i(i(e,t),i(s,o)),r),n)}function o(t,e,n,s,i,o,c){return r(e&n|~e&s,t,e,i,o,c)}function c(t,e,n,s,i,o,c){return r(e&s|n&~s,t,e,i,o,c)}function a(t,e,n,s,i,o,c){return r(e^n^s,t,e,i,o,c)}function l(t,e,n,s,i,o,c){return r(n^(e|~s),t,e,i,o,c)}function u(t,e){t[e>>5]|=128<<e%32,t[14+(e+64>>>9<<4)]=e;let n=1732584193,s=-271733879,r=-1732584194,u=271733878;for(let e=0;e<t.length;e+=16){const h=n,p=s,f=r,m=u;n=o(n,s,r,u,t[e],7,-680876936),u=o(u,n,s,r,t[e+1],12,-389564586),r=o(r,u,n,s,t[e+2],17,606105819),s=o(s,r,u,n,t[e+3],22,-1044525330),n=o(n,s,r,u,t[e+4],7,-176418897),u=o(u,n,s,r,t[e+5],12,1200080426),r=o(r,u,n,s,t[e+6],17,-1473231341),s=o(s,r,u,n,t[e+7],22,-45705983),n=o(n,s,r,u,t[e+8],7,1770035416),u=o(u,n,s,r,t[e+9],12,-1958414417),r=o(r,u,n,s,t[e+10],17,-42063),s=o(s,r,u,n,t[e+11],22,-1990404162),n=o(n,s,r,u,t[e+12],7,1804603682),u=o(u,n,s,r,t[e+13],12,-40341101),r=o(r,u,n,s,t[e+14],17,-1502002290),s=o(s,r,u,n,t[e+15],22,1236535329),n=c(n,s,r,u,t[e+1],5,-165796510),u=c(u,n,s,r,t[e+6],9,-1069501632),r=c(r,u,n,s,t[e+11],14,643717713),s=c(s,r,u,n,t[e],20,-373897302),n=c(n,s,r,u,t[e+5],5,-701558691),u=c(u,n,s,r,t[e+10],9,38016083),r=c(r,u,n,s,t[e+15],14,-660478335),s=c(s,r,u,n,t[e+4],20,-405537848),n=c(n,s,r,u,t[e+9],5,568446438),u=c(u,n,s,r,t[e+14],9,-1019803690),r=c(r,u,n,s,t[e+3],14,-187363961),s=c(s,r,u,n,t[e+8],20,1163531501),n=c(n,s,r,u,t[e+13],5,-1444681467),u=c(u,n,s,r,t[e+2],9,-51403784),r=c(r,u,n,s,t[e+7],14,1735328473),s=c(s,r,u,n,t[e+12],20,-1926607734),n=a(n,s,r,u,t[e+5],4,-378558),u=a(u,n,s,r,t[e+8],11,-2022574463),r=a(r,u,n,s,t[e+11],16,1839030562),s=a(s,r,u,n,t[e+14],23,-35309556),n=a(n,s,r,u,t[e+1],4,-1530992060),u=a(u,n,s,r,t[e+4],11,1272893353),r=a(r,u,n,s,t[e+7],16,-155497632),s=a(s,r,u,n,t[e+10],23,-1094730640),n=a(n,s,r,u,t[e+13],4,681279174),u=a(u,n,s,r,t[e],11,-358537222),r=a(r,u,n,s,t[e+3],16,-722521979),s=a(s,r,u,n,t[e+6],23,76029189),n=a(n,s,r,u,t[e+9],4,-640364487),u=a(u,n,s,r,t[e+12],11,-421815835),r=a(r,u,n,s,t[e+15],16,530742520),s=a(s,r,u,n,t[e+2],23,-995338651),n=l(n,s,r,u,t[e],6,-198630844),u=l(u,n,s,r,t[e+7],10,1126891415),r=l(r,u,n,s,t[e+14],15,-1416354905),s=l(s,r,u,n,t[e+5],21,-57434055),n=l(n,s,r,u,t[e+12],6,1700485571),u=l(u,n,s,r,t[e+3],10,-1894986606),r=l(r,u,n,s,t[e+10],15,-1051523),s=l(s,r,u,n,t[e+1],21,-2054922799),n=l(n,s,r,u,t[e+8],6,1873313359),u=l(u,n,s,r,t[e+15],10,-30611744),r=l(r,u,n,s,t[e+6],15,-1560198380),s=l(s,r,u,n,t[e+13],21,1309151649),n=l(n,s,r,u,t[e+4],6,-145523070),u=l(u,n,s,r,t[e+11],10,-1120210379),r=l(r,u,n,s,t[e+2],15,718787259),s=l(s,r,u,n,t[e+9],21,-343485551),n=i(n,h),s=i(s,p),r=i(r,f),u=i(u,m)}return[n,s,r,u]}function h(t,e=s.Hex){const n=e||s.Base64,i=u(function(t){const e=[];for(let n=0,s=8*t.length;n<s;n+=8)e[n>>5]|=(255&t.charCodeAt(n/8))<<n%32;return e}(t),8*t.length);switch(n){case s.Raw:return i;case s.Hex:return function(t){const e="0123456789abcdef",n=[];for(let s=0,i=4*t.length;s<i;s++)n.push(e.charAt(t[s>>2]>>s%4*8+4&15)+e.charAt(t[s>>2]>>s%4*8&15));return n.join("")}(i);case s.String:return function(t){const e=[];for(let n=0,s=32*t.length;n<s;n+=8)e.push(String.fromCharCode(t[n>>5]>>>n%32&255));return e.join("")}(i);case s.Base64:return function(t){const e=[];for(let n=0,s=4*t.length;n<s;n+=3){const s=(t[n>>2]>>n%4*8&255)<<16|(t[n+1>>2]>>(n+1)%4*8&255)<<8|t[n+2>>2]>>(n+2)%4*8&255;for(let i=0;i<4;i++)8*n+6*i>32*t.length?e.push("="):e.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(s>>6*(3-i)&63))}return e.join("")}(i)}}n.d(e,["T",0,s])},87024(t,e,n){n.d(e,{P:()=>f});var s=n(49186),i=n(80200),r=n(76553),o=n(84952),c=n(13069),a=n(96156),l=n(35666),u=n(10107),h=n(85648),p=n(97159);function f(t){const e=t?.origins??[void 0];return(n,s)=>{const i=function(t,e,n){if("resource"===t?.type)return function(t,e,n){const s=(0,a.z4)(e,n);return{type:String,read:(t,e,n)=>{const i=(0,p.r)(t,e,n);return s.type===String?i:"function"==typeof s.type?new s.type({url:i}):void 0},write:{isRequired:s.json?.write?.isRequired,writer(e,i,c,a){if(!a?.resources)return"string"==typeof e?void(i[c]=(0,p.t)(e,a)):void(i[c]=e.write({},a));const u=function(t){return null==t?null:"string"==typeof t?t:t.url}(e),f=(0,p.t)(u,{...a,verifyItemRelativeUrls:a?.verifyItemRelativeUrls?{writtenUrls:a.verifyItemRelativeUrls.writtenUrls,rootPath:void 0}:void 0},1),y=s.type!==String&&(!(0,r.H)(this)||a?.origin&&this.originIdOf(n)>(0,l.aB)(a.origin)),_={object:this,propertyName:n,value:e,targetUrl:f,dest:i,targetPropertyName:c,context:a,params:t};a?.portalItem&&f&&!(0,o.oP)(f)?y&&t?.contentAddressed?m(_):y?function(t){const{context:e,targetUrl:n,params:s,value:i,dest:r,targetPropertyName:c}=t;if(!e.portalItem)return;const a=e.portalItem.resourceFromPath(n),l=g(i,n,e),u=(0,h.n)(l),p=(0,o.Zo)(a.path),f=s?.compress??!1;u===p?(e.resources&&d({...t,resource:a,content:l,compress:f,updates:e.resources.toUpdate}),r[c]=n):m(t)}(_):function({context:t,targetUrl:e,dest:n,targetPropertyName:s}){t.portalItem&&t.resources&&(t.resources.toKeep.push({resource:t.portalItem.resourceFromPath(e),compress:!1}),n[s]=e)}(_):a?.portalItem&&(null==f||null!=(0,p.i)(f)||(0,o.w8)(f)||y)?m(_):i[c]=f}}}}(t,e,n);switch(t?.type??"other"){case"other":return{read:!0,write:!0};case"url":{const{read:t,write:e}=p.b;return{read:t,write:e}}}}(t,n,s);for(const t of e){const e=(0,u.rM)(n,t,s);for(const t in i)e[t]=i[t]}}}function m(t){const{targetUrl:e,params:n,value:r,context:a,dest:l,targetPropertyName:u}=t;if(!a.portalItem)return;const f=(0,p.p)(e),m=g(r,e,a);if(n?.contentAddressed&&"json"!==m.type)return void a.messages?.push(new s.A("persistable:contentAddressingUnsupported",`Property "${u}" is trying to serializing a resource with content of type ${m.type} with content addressing. Content addressing is only supported for json resources.`,{content:m}));const y=n?.contentAddressed&&"json"===m.type?(0,i.d)(m.jsonString):f?.filename??(0,c.lk)(),_=(0,o.fj)(n?.prefix??f?.prefix,y),x=`${_}.${(0,h.n)(m)}`;if(n?.contentAddressed&&a.resources&&"json"===m.type){const t=a.resources.toKeep.find(({resource:t})=>t.path===x)??a.resources.toAdd.find(({resource:t})=>t.path===x);if(t)return void(l[u]=t.resource.itemRelativeUrl)}const v=a.portalItem.resourceFromPath(x);(0,o.w8)(e)&&a.resources&&a.resources.pendingOperations.push((0,o.tk)(e).then(t=>{v.path=`${_}.${(0,h.n)({type:"blob",blob:t})}`,l[u]=v.itemRelativeUrl}).catch(()=>{}));const w=n?.compress??!1;a.resources&&d({...t,resource:v,content:m,compress:w,updates:a.resources.toAdd}),l[u]=v.itemRelativeUrl}function d({object:t,propertyName:e,updates:n,resource:s,content:i,compress:r}){n.push({resource:s,content:i,compress:r,finish:n=>{!function(t,e,n){"string"==typeof t[e]?t[e]=n.url:t[e].url=n.url}(t,e,n)}})}function g(t,e,n){return"string"==typeof t?{type:"url",url:e}:{type:"json",jsonString:JSON.stringify(t.toJSON(n))}}},83027(t,e,n){const s=n(29953).ho;n.d(e,["h",0,s])},35982(t,e,n){n.d(e,{B:()=>u});var s=n(4576),i=n(71511),r=n(36563),o=n(53966),c=n(97768),a=n(17676),l=n(83027);class u{constructor(t,e,n,s,i={}){this._mainMethod=e,this._transferLists=n,this._listeners=[],this._onClientConnectedHandle=null,this._destroyed=!1,this._promise=(0,l.h)(t,{...i,schedule:s}).then(t=>{null!=this._thread||this._destroyed?t.close():(this._thread=t,this._promise=null,this._onClientConnectedHandle=this._thread.onClientConnected(t=>{i.hasInitialize&&t.invoke("initialize",{}).catch(()=>{});for(const e of this._listeners)this._connectListenerToClient(e,t);this._onClientConnected(t)}))}),this._promise.catch(e=>o.A.getLogger("esri.core.workers.WorkerHandle").error(`Failed to initialize ${t} worker: ${e}`))}on(t,e){const n=new h(t,e);return this._listeners.push(n),this._connectListener(n),(0,r.hA)(()=>{(0,s.TF)(this._listeners,n),n.destroy()})}[Symbol.dispose](){this.destroy()}destroy(){this._onClientConnectedHandle=(0,c.xt)(this._onClientConnectedHandle),this._thread&&(this._thread.close(),this._thread=null),this._promise=null;for(const t of this._listeners)t.destroy();this._listeners.length=0,this._transferLists={},this._destroyed=!0}invoke(t,e,n){return this.invokeMethod(this._mainMethod,t,e,n)}invokeMethod(t,e,n,s){if(this._thread){const i=this._transferLists[t],r=i?i(e):[];return this._thread.invoke(t,e,{transferList:r,signal:n,jobPriority:s})}return this._promise?this._promise.then(()=>((0,a.Te)(n),this.invokeMethod(t,e,n))):Promise.reject((0,a.NK)())}broadcast(t,e){return this._thread?Promise.all(this._thread.broadcast(e,t)).then(p):this._promise?this._promise.then(()=>this.broadcast(t,e)):Promise.reject((0,a.NK)())}get promise(){return this._promise}_onClientConnected(t){}_connectListener(t){this._thread&&t.add(this._thread.on(t.eventName,t.callback))}_connectListenerToClient(t,e){t.add(e.on(t.eventName,t.callback))}}class h{constructor(t,e){this.eventName=t,this.callback=e,this._handles=new i.A}add(t){this._handles.add(t)}destroy(){this._handles.destroy()}}function p(){}},65806(t,e,n){n.d(e,{g:()=>o});var s=n(51850),i=n(99917),r=n(9762);function o(t,e,n,s){if((0,i.canProjectWithoutEngine)(t.spatialReference,n))return c[0]=t.x,c[1]=t.y,c[2]=t.z??0,(0,r.projectBuffer)(c,t.spatialReference,0,e,n,0);const o=(0,i.tryProject)(t,n,s);return!!o&&(e[0]=o.x,e[1]=o.y,e[2]=o.z??0,!0)}const c=(0,s.vt)()},27993(t,e,n){n.d(e,{F:()=>c});var s=n(99917),i=n(16930),r=n(9762),o=n(65806);function c(t,e,n,i){return!(null==e||null==i||t.length<2)&&((0,s.canProjectWithoutEngine)(e,i)?(0,r.projectBuffer)(t,e,0,n,i,0,1):(a.x=t[0],a.y=t[1],a.z=t[2],a.spatialReference=e,(0,o.g)(a,n,i)))}const a={x:0,y:0,z:0,hasZ:!0,hasM:!1,spatialReference:i.A.WGS84,type:"point"}},80754(t,e,n){n.d(e,{kS:()=>l,kd:()=>a});var s=n(82799),i=n(16930),r=n(60408),o=n(52006);const c={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new s.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:i.A.WebMercator}),minus180Line:new s.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:i.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new s.A({paths:[[[180,-180],[180,180]]],spatialReference:i.A.WGS84}),minus180Line:new s.A({paths:[[[-180,-180],[-180,180]]],spatialReference:i.A.WGS84})}};function a(t,e){return Math.ceil((t-e)/(2*e))}function l(t,e){if((0,o.Ed)(t))for(const n of function(t){return(0,r.Bi)(t)?t.curveRings:t.curvePaths}(t))for(const t of n){if((0,o.aO)(t)){const[n,s]=t.c;n[0]+=e,s[0]+=e;continue}if((0,o.FG)(t)){const[n,s]=t.a;n[0]+=e,s[0]+=e;continue}if((0,o.n1)(t)){const[n,s,i]=t.b;n[0]+=e,s[0]+=e,i[0]+=e;continue}t[0]+=e}for(const n of function(t){return(0,r.Bi)(t)?t.rings:t.paths}(t))for(const t of n)t[0]+=e;return t}n.d(e,["j7",0,c])},89056(t,e,n){n.d(e,{b3:()=>h,jZ:()=>u});var s=n(12195),i=n(19419),r=n(537),o=n(95108),c=n(60408),a=n(80754),l=n(21325);function u(t){return p(t,!0)}function h(t){return p(t,!1)}function p(t,e){if(null==t)return null;const n=t.spatialReference,i=(0,l.Vp)(n),o=(0,s.W)(t)?t.toJSON():t;if(!i)return o;const u=(0,l.K8)(n)?102100:4326,h=a.j7[u].maxX,p=a.j7[u].minX;if((0,c.fT)(o))return m(o,h,p);if((0,c.U9)(o))return o.points=o.points.map(t=>m(t,h,p)),o;if((0,c.ZC)(o))return f(o,i);if((0,c.Bi)(o)||(0,c.Rg)(o)){const t=(0,r.Rg)(v,o),n={xmin:t[0],ymin:t[1],xmax:t[2],ymax:t[3]},s=(0,a.kd)(n.xmin,p)*(2*h),i=0===s?o:(0,a.kS)(o,s);return n.xmin+=s,n.xmax+=s,n.xmax>h?_(i,h,e):n.xmin<p?_(i,p,e):i}return o}function f(t,e){if(!e)return t;const n=function(t,e){const n=[],{ymin:s,ymax:i,xmin:r,xmax:o}=t,c=t.xmax-t.xmin,[a,l]=e.valid,{x:u,frameId:h}=d(t.xmin,e),{x:p,frameId:f}=d(t.xmax,e),m=u===p&&c>0;if(c>2*l){const t={xmin:r<o?u:p,ymin:s,xmax:l,ymax:i},e={xmin:a,ymin:s,xmax:r<o?p:u,ymax:i},c={xmin:0,ymin:s,xmax:l,ymax:i},m={xmin:a,ymin:s,xmax:0,ymax:i},d=[],y=[];g(t,c)&&d.push(h),g(t,m)&&y.push(h),g(e,c)&&d.push(f),g(e,m)&&y.push(f);for(let t=h+1;t<f;t++)d.push(t),y.push(t);n.push(new x(t,[h]),new x(e,[f]),new x(c,d),new x(m,y))}else u>p||m?n.push(new x({xmin:u,ymin:s,xmax:l,ymax:i},[h]),new x({xmin:a,ymin:s,xmax:p,ymax:i},[f])):n.push(new x({xmin:u,ymin:s,xmax:p,ymax:i},[h]));return n}(t,e).map(t=>t.extent);return n.length<2?n[0]||t:n.length>2?(t.xmin=e.valid[0],t.xmax=e.valid[1],t):{rings:n.map(t=>[[t.xmin,t.ymin],[t.xmin,t.ymax],[t.xmax,t.ymax],[t.xmax,t.ymin],[t.xmin,t.ymin]])}}function m(t,e,n){if(Array.isArray(t)){const s=t[0];if(s>e){const n=(0,a.kd)(s,e);t[0]=s+n*(-2*e)}else if(s<n){const e=(0,a.kd)(s,n);t[0]=s+e*(-2*n)}}else{const s=t.x;if(s>e){const n=(0,a.kd)(s,e);t.x+=n*(-2*e)}else if(s<n){const e=(0,a.kd)(s,n);t.x+=e*(-2*n)}}return t}function d(t,e){const[n,s]=e.valid,i=2*s;let r,o=0;return t>s?(r=Math.ceil(Math.abs(t-s)/i),t-=r*i,o=r):t<n&&(r=Math.ceil(Math.abs(t-n)/i),t+=r*i,o=-r),{x:t,frameId:o}}function g(t,e){const{xmin:n,ymin:s,xmax:i,ymax:r}=e;return y(t,n,s)&&y(t,n,r)&&y(t,i,r)&&y(t,i,s)}function y(t,e,n){return e>=t.xmin&&e<=t.xmax&&n>=t.ymin&&n<=t.ymax}function _(t,e,n=!0){const s=!(0,c.Rg)(t);if(s&&(0,o.m3)(t),n)return(new w).cut(t,e);const i=s?t.rings:t.paths,r=s?4:2,a=i.length,l=-2*e;for(let t=0;t<a;t++){const e=i[t];if(e&&e.length>=r){const t=[];for(const[n,...s]of e)t.push([n+l,...s]);i.push(t)}}return s?t.rings=i:t.paths=i,t}class x{constructor(t,e){this.extent=t,this.frameIds=e}}const v=(0,i.vt)();class w{constructor(){this._linesIn=[],this._linesOut=[]}cut(t,e){let n;if(this._xCut=e,t.rings)this._closed=!0,n=t.rings,this._minPts=4;else{if(!t.paths)return null;this._closed=!1,n=t.paths,this._minPts=2}for(const t of n){if(!t||t.length<this._minPts)continue;let e=!0;for(const n of t)e?(this.moveTo(n),e=!1):this.lineTo(n);this._closed&&this.close()}this._pushLineIn(),this._pushLineOut(),n=[];for(const t of this._linesIn)t&&t.length>=this._minPts&&n.push(t);const s=-2*this._xCut;for(const t of this._linesOut)if(t&&t.length>=this._minPts){for(const e of t)e[0]+=s;n.push(t)}return this._closed?t.rings=n:t.paths=n,t}moveTo(t){this._pushLineIn(),this._pushLineOut(),this._prevSide=this._side(t[0]),this._moveTo(t,this._prevSide),this._prevPt=t,this._firstPt=t}lineTo(t){const e=this._side(t[0]);if(e*this._prevSide===-1){const n=this._intersect(this._prevPt,t);this._lineTo(n,0),this._prevSide=0,this._lineTo(t,e)}else this._lineTo(t,e);this._prevSide=e,this._prevPt=t}close(){const t=this._firstPt,e=this._prevPt;t[0]===e[0]&&t[1]===e[1]||this.lineTo(t),this._checkClosingPt(this._lineIn),this._checkClosingPt(this._lineOut)}_moveTo(t,e){this._closed?(this._lineIn.push(C(t,e<=0?t[0]:this._xCut)),this._lineOut.push(C(t,e>=0?t[0]:this._xCut))):(e<=0&&this._lineIn.push(t.slice()),e>=0&&this._lineOut.push(t.slice()))}_lineTo(t,e){this._closed?(S(this._lineIn,t,e<=0?t[0]:this._xCut),S(this._lineOut,t,e>=0?t[0]:this._xCut)):e<0?(0===this._prevSide&&this._pushLineOut(),this._lineIn.push(t.slice())):e>0?(0===this._prevSide&&this._pushLineIn(),this._lineOut.push(t.slice())):this._prevSide<0?(this._lineIn.push(t.slice()),this._lineOut.push(t.slice())):this._prevSide>0&&(this._lineOut.push(t.slice()),this._lineIn.push(t.slice()))}_checkClosingPt(t){const e=t.length;e>3&&t[0][0]===this._xCut&&t[e-2][0]===this._xCut&&t[1][0]===this._xCut&&(t[0]=t[e-2].slice(),t.pop())}_side(t){return t<this._xCut?-1:t>this._xCut?1:0}_intersect(t,e){const n=(this._xCut-t[0])/(e[0]-t[0]),s=[this._xCut,t[1]+n*(e[1]-t[1])],i=Math.min(t.length,e.length);for(let r=2;r<i;r++)s.push(t[r]+n*(e[r]-t[r]));return s}_pushLineIn(){this._lineIn&&this._lineIn.length>=this._minPts&&this._linesIn.push(this._lineIn),this._lineIn=[]}_pushLineOut(){this._lineOut&&this._lineOut.length>=this._minPts&&this._linesOut.push(this._lineOut),this._lineOut=[]}}function C(t,e){const n=t.slice();return n[0]=e,n}function S(t,e,n){const s=t.length;s>1&&t[s-1][0]===n&&t[s-2][0]===n?t[s-1]=C(e,n):t.push(C(e,n))}},58325(t,e,n){n.d(e,{A:()=>S});var s,i=n(5482),r=n(11254),o=n(7762),c=n(25482),a=n(84952),l=n(91429),u=n(4718),h=n(67076),p=n(87024),f=n(39829),m=n(99917),d=n(16930),g=n(21325),y=n(88546),_=n(72772),x=n(98697),v=n(43937);let w=s=class extends c.o{constructor(t){super(t),this.geometry=null,this.type="clip"}writeGeometry(t,e,n,s){if(this._needWGS84Conversion(s))this._doWGS84Conversion(e,n,s);else if(s.layer?.spatialReference&&!s.layer.spatialReference.equals(this.geometry.spatialReference)){if(!(0,m.canProjectWithoutEngine)(t.spatialReference,s.layer.spatialReference))return void(s?.messages&&s.messages.push(new h.A("scenemodification:unsupported","Scene modifications with incompatible spatial references are not supported",{modification:this,spatialReference:s.layer.spatialReference,context:s})));const i=new f.A;(0,m.projectPolygon)(t,i,s.layer.spatialReference),e[n]=i.toJSON(s)}else e[n]=t.toJSON(s)}_needWGS84Conversion(t){if("integrated-mesh-3dtiles"===t.layer?.type){const e=t.layer;return!e.esriCrsSpatialReference||!(0,g.aI)(e.esriCrsSpatialReference,this.geometry.spatialReference)}return!1}_doWGS84Conversion(t,e,n){let s=!0;if((0,_.isInitialized)()){const i=(0,x.Ir)(null,[this],d.A.WGS84);if(i.length>1){const r=(0,_.switchMeshModificationPolygonVCSSync)({modifications:i,inVCS:5773});if(r.success&&r.modifications){const i=[this.clone()];(0,x.H1)(r.modifications,i),1===i.length&&i[0].geometry&&(i[0].geometry.spatialReference=y.Zx,t[e]=i[0].geometry.toJSON(n),s=!1)}}}s&&n?.messages&&n.messages.push(new h.A("scenemodification:unsupported","Scene modifications with incompatible spatial references are not supported",{modification:this,spatialReference:this.geometry.spatialReference,context:n}))}clone(){return new s({geometry:(0,u.o8)(this.geometry),type:this.type})}};var C;(0,i.Cg)([(0,l.MZ)({type:f.A}),(0,p.P)()],w.prototype,"geometry",void 0),(0,i.Cg)([(0,v.K)(["web-scene","portal-item"],"geometry")],w.prototype,"writeGeometry",null),(0,i.Cg)([(0,l.MZ)({type:["clip","mask","replace"],nonNullable:!0}),(0,p.P)()],w.prototype,"type",void 0),w=s=(0,i.Cg)([(0,l.$K)("esri.layers.support.SceneModification")],w);let S=C=class extends((0,c.T)(o.A.ofType(w))){constructor(t){super(t),this.url=null}clone(){return new C({url:this.url,items:this.items.map(t=>t.clone())})}toJSON(t){return this.toArray().map(e=>e.toJSON(t)).filter(t=>!!t.geometry)}static fromJSON(t,e){const n=new C;for(const s of t)n.add(w.fromJSON(s,e));return n}static async fromUrl(t,e,n,s=!1){const i={url:(0,a.An)(t),origin:"service"},o=await(0,r.A)(t,{responseType:"json",signal:n?.signal}),c=e.toJSON(),l=[];for(const t of o.data){let e=c;s&&t.geometry.spatialReference&&(e=t.geometry.spatialReference),l.push(w.fromJSON({...t,geometry:{spatialReference:e,...t.geometry}},i))}return new C({url:t,items:l})}};(0,i.Cg)([(0,l.MZ)({type:String})],S.prototype,"url",void 0),S=C=(0,i.Cg)([(0,l.$K)("esri.layers.support.SceneModifications")],S)},85648(t,e,n){n.d(e,{n:()=>i});var s=n(84952);function i(t){return r[function(t){return"json"===t.type?"application/json":"blob"===t.type?t.blob.type:function(t){const e=(0,s.Zo)(t);return a[e]||o}(t.url)}(t)]||c}const r={},o="text/plain",c=r[o],a={png:"image/png",jpeg:"image/jpeg",jpg:"image/jpg",bmp:"image/bmp",gif:"image/gif",json:"application/json",txt:"text/plain",xml:"application/xml",svg:"image/svg+xml",zip:"application/zip",pbf:"application/vnd.mapbox-vector-tile",gz:"application/gzip","bin.gz":"application/octet-stream"};for(const t in a)r[a[t]]=t},72772(t,e,n){n.r(e),n.d(e,{addSpatialReferenceInfo:()=>a,destroyWasm:()=>u,initialize:()=>h,isInitialized:()=>p,process:()=>c,switchMeshModificationPolygonVCSSync:()=>l});var s=n(2741);function i(t){return(0,s.s)(`esri/libs/lyr3d/${t}`)}let r,o=null;async function c(t){await h();const e={status:1,error:"",jobDescJson:"",data:new Uint8Array(0),missingInputUrls:[]};if(t.inputs.length<1)return{result:e,transferList:[]};const n={ptrs:[],sizes:[]};for(const e of t.inputs){const t=o._malloc(e.byteLength);new Uint8Array(o.HEAPU8.buffer,t,e.byteLength).set(new Uint8Array(e)),n.ptrs.push(t),n.sizes.push(e.byteLength)}const s=o.process(t.jobDescJson,t.id,n,t.isMissingResourceCase);e.status=s.status,e.missingInputUrls=s.missingInputUrls.slice();const i=0===s.status&&s.data,r=2===e.status&&e.missingInputUrls.length>0;e.jobDescJson=s.jobDescJson.slice(),e.error=s.error.slice(),i?e.data=s.data.slice():r&&(e.originalInputs=t.inputs.slice());for(let t=0;t<n.ptrs.length;++t)o._free(n.ptrs[t]);const c=[];if(i)c.push(e.data.buffer);else if(r)for(const e of t.inputs)c.push(e);return{result:e,transferList:c}}async function a(t){await h(),o.add_spatial_reference_info(t.sr,t.isGCS,t.toMetersXY,t.toMetersZ)}function l(t){if(!o)return{success:!1,modifications:null};const e=o._malloc(8*t.modifications.length),n=new Float64Array(o.HEAPF64.buffer,e,t.modifications.length);n.set(t.modifications);const s=o.switch_mesh_modification_polygon_vcs(e,t.modifications.length,t.inVCS);let i=null;return s&&(i=n.slice()),o._free(e),{success:s,modifications:i}}function u(){o&&(o.uninitialize_lyr3d_worker_wasm(),o=null)}function h(){return p()?Promise.resolve():(r||(r=new Promise(t=>n.e(2343).then(n.bind(n,2343)).then(({default:e})=>{const n=e({locateFile:i,onRuntimeInitialized:()=>t(n)})})).catch(t=>{throw t}).then(t=>{o=t,o.initialize_lyr3d_worker_wasm(),r=null})),r)}function p(){return null!==o}},98697(t,e,n){n.d(e,{H1:()=>_,Ir:()=>d,_b:()=>h,sQ:()=>p});var s=n(53966),i=n(15142),r=n(51850),o=n(35982),c=n(39829),a=n(99917),l=n(27993),u=n(89056);class h{constructor(t,e,n,s,i,r){this.layout=t,this.interleavedVertexData=e,this.indices=n,this.hasColors=s,this.hasModifications=i,this.positionData=r}}class p{constructor(t,e,n,s,i,r,o,c,a){this.componentOffsets=t,this.featureIds=e,this.anchorIds=n,this.anchors=s,this.transformedGeometry=i,this.globalTrafo=r,this.obb=o,this.geometryMinElevation=c,this.geometryMaxElevation=a}}o.B;const f=new i.A({deallocator:null}),m=(0,r.vt)();function d(t,e,n,i=!1){f.clear();let r=1/0,o=1/0,l=-1/0,h=-1/0,p=!1;for(const t of e){const e="clip"===t.type?2:"mask"===t.type?1:0,m=t.geometry,d=m.spatialReference??n;if(d!==n&&!(0,a.canProjectWithoutEngine)(d,n)){s.A.getLogger("esri.views.3d.layers.SceneLayerWorkerHandle").warn("im-modification-projection-failed","Can't project modification polygon into layer spatial reference, ignoring modification",{polygon:m});continue}let _=m.rings;if(d!==n){const t=g(m.rings,d,n);if(null==t){s.A.getLogger("esri.views.3d.layers.SceneLayerWorkerHandle").warn("im-modification-projection-failed","Can't project modification polygon into layer spatial reference, ignoring modification",{polygon:m});continue}_=t}const x=_;if(i){const t=(0,u.jZ)(new c.A({rings:_,spatialReference:n}));null!=t&&(_=t.rings)}const v=1===x.length&&_.length>1?[..._.map(t=>[t]),x]:[_];if(v.some(t=>0===t.length||t.some(t=>t.length<3||t.some(t=>!y(t)))))s.A.getLogger("esri.views.3d.layers.SceneLayerWorkerHandle").warn("im-modification-invalid-polygon","Ignoring invalid modification polygon (empty ring, fewer than 3 vertices, or non-finite coordinates).",{polygon:m});else{p||=1===e;for(const t of v){f.push(e),f.push(t.length);for(const e of t){f.push(e.length);for(const t of e){const e=t[2]??0;f.push(t[0]),f.push(t[1]),f.push(e),r=Math.min(r,t[0]),o=Math.min(o,t[1]),l=Math.max(l,t[0]),h=Math.max(h,t[1])}}}}}if(null!=t)if(p){const e=1e-4;f.push(2),f.push(2),f.push(4),f.push(r-e),f.push(o-e),f.push(0),f.push(l+e),f.push(o-e),f.push(0),f.push(l+e),f.push(h+e),f.push(0),f.push(r-e),f.push(h+e),f.push(0),f.push(4),f.push(t[0]),f.push(t[1]),f.push(0),f.push(t[2]),f.push(t[1]),f.push(0),f.push(t[2]),f.push(t[3]),f.push(0),f.push(t[0]),f.push(t[3]),f.push(0)}else f.push(1),f.push(1),f.push(4),f.push(t[0]),f.push(t[1]),f.push(0),f.push(t[2]),f.push(t[1]),f.push(0),f.push(t[2]),f.push(t[3]),f.push(0),f.push(t[0]),f.push(t[3]),f.push(0);f.push(3);const m=new Float64Array(f.length);for(let t=0;t<f.length;++t)m[t]=f.at(t);return m}function g(t,e,n){const s=[];for(const i of t){const t=[];for(const s of i){if(!(0,l.F)(s,e,m,n)||!y(m))return null;t.push([m[0],m[1],m[2]])}s.push(t)}return s}function y(t){return Number.isFinite(t[0])&&Number.isFinite(t[1])&&(null==t[2]||Number.isFinite(t[2]))}function _(t,e){let n=0;for(const s of e){const e=s.geometry,i=e.rings.length,r=e.rings.some(t=>t.length<3);if(0!==i&&!r){n+=1,n+=1;for(let s=0;s<e.rings.length;++s){const i=e.rings[s];n+=1;for(let r=0;r<i.length;++r){const i=[t[n+0],t[n+1],t[n+2]];n+=3,e.setPoint(s,r,i)}}}}}}}]);