@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([[2158],{12158(e,n,t){t.r(n),t.d(n,{getTransformation:()=>d,getTransformations:()=>h,isLoaded:()=>m,isTransformationUsable:()=>p,load:()=>b});var s=t(83290),i=t(159),r=t(99157);let o,a,l,c,u,f;function m(){return!!l&&(0,s.i)()}async function b(){if(!m()){const[e,n,i,r,m]=await Promise.all([Promise.all([t.e(9187),t.e(8885),t.e(9117),t.e(1491)]).then(t.bind(t,37091)).then(({create:e,createFromWKT:n})=>({create:e,createFromWKT:n})),t.e(9187).then(t.bind(t,79187)),Promise.all([t.e(9187),t.e(8885),t.e(9117),t.e(353)]).then(t.bind(t,12189)).then(({queryTransformationList:e})=>e),Promise.all([t.e(9187),t.e(8885),t.e(9117),t.e(8344)]).then(t.bind(t,15756)).then(({injectPe:e})=>e),Promise.all([t.e(9187),t.e(8885),t.e(9117),t.e(3299),t.e(1550)]).then(t.bind(t,78125)),(0,s.l)()]);o=e.create,a=e.createFromWKT,u=n.Envelope2D.construct,f=n.Envelope2D.constructEmpty(),l=i,r(s.p),c=m.fromSpatialReference}}function d(e,n,t=null,s=!1){const i=t?w(t):f,r=l(0,c(e),c(n),i,1,!s);return r.length>0?k(r[0]):null}function h(e,n,t=null,s=!1){const i=t?w(t):f;return l(0,c(e),c(n),i,0,!s).map(e=>k(e))}function p(e){if(null!=e.isUsable)return e.isUsable;let n=!0;const t=e instanceof i.A?e.steps:[e];for(const e of t){if(null==e.isUsable){const n=e.wkid?o(e.wkid,e.isInverse):a(e.wkt,e.isInverse);e.isUsable=!n.referencesMissingData()}n&&=e.isUsable}return n}function w(e){return u(e.xmin,e.ymin,e.xmax,e.ymax)}function k(e){const n=new i.A;for(let t=0;t<e.count();t++){const s=e.getStep(t);n.steps.push(new r.A({wkid:s.getID(),isInverse:s.isInverted(),isUsable:!s.referencesMissingData()}))}return n}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1060,1948,7992,8679],{61691(t,e,s){s.d(e,{G:()=>r});class r{*[Symbol.iterator](){let t=this.next();for(;t;)yield t,t=this.next()}}},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}}},69397(t,e,s){s.d(e,{Qf:()=>a,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+=o(t[s],!1));return e}function i(t){if(!t)return 0;if("number"==typeof t[0])return a(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+=o(t[r]);return s}(t);let e=u;for(const s in t)t.hasOwnProperty(s)&&(e+=o(t[s]));return e}function o(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 a(...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:()=>P,ME:()=>C,MY:()=>_,NO:()=>M,Nh:()=>O,V2:()=>b,_s:()=>R,e6:()=>Y,gh:()=>E,tr:()=>I,uX:()=>x});var r=s(5482),n=s(16930),i=s(19419),o=s(60408),a=s(21325),h=s(513),u=s(50954),c=s(79567),l=s(52006),g=s(49663),f=s(46068),m=s(92722);class x{constructor({type:t,spatialReference:e,vertexCount:s,vertexXY:r,vertexZ:n,vertexM:i,partCount:o,partOffsets:a,partFlags:h,segmentFlags:u,segmentIndices:c,segmentParams:l,segmentCountArc:g,segmentCountBezier:f}){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=o,this.partOffsets=a,this.partFlags=h,this.segmentFlags=u,this.segmentIndices=c,this.segmentParams=l,this.segmentCountArc=g,this.segmentCountBezier=f}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:o}=this,a=b(t,e,s,r,n,this.hasCurves(),i,o);a.spatialReference=this.spatialReference;const{vertexXY:h,vertexZ:u,vertexM:c}=this;if(a.vertexXY.set(h.subarray(0,2*e),0),a.vertexZ?.set(u.subarray(0,e),0),a.vertexM?.set(c.subarray(0,e),0),this.isMultipart()){const{partOffsets:t,partFlags:e}=this;a.partFlags.set(e.subarray(0,s+1)),a.partOffsets.set(t.subarray(0,s+1))}if(this.hasCurves()){const{segmentFlags:t,segmentIndices:s,segmentParams:r,segmentParamCount:n}=this;a.segmentFlags.set(t.subarray(0,e),0),a.segmentIndices.set(s.subarray(0,e),0),a.segmentParams.set(r.subarray(0,n),0)}return a}equals(t){return this.equalsWithinTolerance(t,0)}equalsWithinTolerance(t,e){if(null==t)return!1;if(this===t)return!0;if(!(0,a.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 d(this):[][Symbol.iterator]()}}class d{constructor(t){this.geometry=t,this.value=new p(t)}get done(){return this.value.index>=this.geometry.partCount}next(){return++this.value.index,this}[Symbol.iterator](){return this}}class p{constructor(t){this.geometry=t,this.index=-1,this._readVertex=Z(t),this._segments=new v(this)}get segments(){return this._segments.reset(),this._segments}get startVertex(){return this._readVertex(this.geometry.partOffsets[this.index])}get vertexCount(){const t=this.geometry.partOffsets;return t[this.index+1]-t[this.index]}}class v{constructor(t){this._part=t,this._partStart=0,this._partEnd=0,this._isPolygon="polygon"===t.geometry.type,this.value=new y(t.geometry)}get done(){return this.value.indexOfStartVertex>this._partEnd}next(){++this.value.indexOfStartVertex;const t=this.value.indexOfStartVertex>=this._partEnd;return this.value.indexOfEndVertex=t&&this._isPolygon?this._partStart:this.value.indexOfStartVertex+1,this}[Symbol.iterator](){return this}reset(){const{index:t}=this._part,e=this._part.geometry.partOffsets;this._partStart=e[t],this._partEnd=e[t+1]-(this._isPolygon?1:2),this.value.indexOfStartVertex=this._partStart-1}}class y{constructor(t){this.geometry=t,this.indexOfStartVertex=-1,this.indexOfEndVertex=-1,this._readVertex=Z(t)}get xStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex]}get yStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex+1]}get zStart(){return this.geometry.vertexZ[this.indexOfStartVertex]}get mStart(){return this.geometry.vertexM[this.indexOfStartVertex]}get xEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex]}get yEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex+1]}get zEnd(){return this.geometry.vertexZ[this.indexOfEndVertex]}get mEnd(){return this.geometry.vertexM[this.indexOfEndVertex]}get start(){return this._readVertex(this.indexOfStartVertex)}get end(){return this._readVertex(this.indexOfEndVertex)}get curve(){const t=this.geometry.segmentFlags?.[this.indexOfStartVertex]??1;if(1===t)return this.end;const e=this.geometry.segmentParams;let 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++],o=e[s++],a=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,g=1&r?0:1;return{a:[this.end,[a,h],l,g,o,n,i]}}}function M(t,e){const s={stack:[],error:void 0,hasError:!1};try{return e??=(0,i.Ie)(),(0,r.mS)(s,new A(t,["vertexZ","vertexM","spatialReference"]),!1),(0,i.bx)(e,function(t){let e;const{vertexCount:s,vertexXY:n,vertexZ:o,vertexM:a}=t,h=S(t);if(t.hasCurves()){const s={stack:[],error:void 0,hasError:!1};try{(0,r.mS)(s,new A(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[o,a,u,g]=n;e={xmin:o,ymin:a,xmax:u,ymax:g,spatialReference:h}}catch(t){s.error=t,s.hasError=!0}finally{(0,r.hk)(s)}}else{let t,r,i,o;t=r=1/0,i=o=-1/0;for(let e=0;e<s;++e){const s=n[2*e],a=n[2*e+1];t=Math.min(t,s),i=Math.max(i,s),r=Math.min(r,a),o=Math.max(o,a)}e={xmin:t,ymin:r,xmax:i,ymax:o,spatialReference:h}}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.zmin=t,e.zmax=s}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.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,o.fT)(t)){r="point";const{x:n,y:i,z:o,m:a}=t,h=[n,i];null!=o&&h.push(o),null!=a&&h.push(a),s=[[h]],e=1}else(0,o.U9)(t)?(r="multipoint",s=[t.points],e=t.points.length):(0,o.Rg)(t)?(r="polyline",s=t.curvePaths??t.paths,e=s.reduce((t,e)=>t+e.length,0)):(r="polygon",s=t.curveRings??t.rings,e=s.reduce((t,e)=>(0===e.length||(t+=e.length,w(e[0],(0,l.yP)(e.at(-1)))&&--t),t),0));const n=b(r,e,r.includes("point")?0:s.length,(0,o.Pv)(t),(0,o.W0)(t),(0,l.Ed)(t)),{hasZ:i,hasM:a,vertexXY:h,vertexZ:u,vertexM:c}=n;function g(t){h[2*m]=t[0],h[2*m+1]=t[1],i&&(u[m]=t[2]),a&&(c[m]=t[f]),++m}n.spatialReference=t.spatialReference??void 0;const f=n.hasZ?3:2;let m=0;if(!n.isMultipart()){if(!i&&!a){for(const[t,e]of s[0])h[2*m]=t,h[2*m+1]=e,++m;return n}for(const t of s[0])g(t);return n}const x="polygon"===r,{partOffsets:d}=n;let p=0;if(!(0,l.Ed)(t)){for(const t of s){if(d[p++]=m,0===t.length)continue;let e=t.length;if(x&&w(t[0],t.at(-1))&&--e,i||a)for(let s=0;s<e;++s)g(t[s]);else for(let s=0;s<e;++s){const[e,r]=t[s];h[2*m]=e,h[2*m+1]=r,++m}}return d[p]=m,n}function v(t){const e=y+t;if(e<=(n.segmentParams?.length??0))return;let s=e*X;s=20*Math.ceil(s/20);const r=n.segmentParams;n.segmentParams=new Float64Array(s),null!=r&&n.segmentParams.set(r)}let y=0;for(const t of s){if(n.partOffsets[p++]=m,0===t.length)continue;const e=t[0];let s=e;for(let e=1;e<t.length;++e){const r=t[e];g(s);const i=m-1;(0,l.wY)(r)?(v(10),++n.segmentCountArc,y=R(s,r,n,i,y),s=r.a[0]):(0,l.DA)(r)?(v(10),++n.segmentCountArc,y=F(s,r,n,i,y),s=r.a[0]):(0,l.aO)(r)?(v(10),++n.segmentCountArc,y=Y(s,r,n,i,y),s=r.c[0]):(0,l.n1)(r)?(v(4),++n.segmentCountBezier,y=I(0,r,n,i,y),s=r.b[0]):s=r}x&&w(e,s)||g(s)}return n.partOffsets[p]=m,n}function E(t){const e=Z(t),{vertexCount:s,partCount:r,hasZ:n,hasM:i}=t,o=S(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:o}}let a=0;if("multipoint"===t.type){const t=[];for(;a<s;)t.push(e(a++));return{points:t,spatialReference:o,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(;a<r;)i.push(e(a++));h&&i.length>0&&i.push(i[0]),s.push(i)}return h?{rings:s,hasZ:n,hasM:i,spatialReference:o}:{paths:s,hasZ:n,hasM:i,spatialReference:o}}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:o}:{paths:[],curvePaths:u,hasZ:n,hasM:i,spatialReference:o}}function O(t,{lengths:e,coords:s,hasZ:r,hasM:n},i){const o=t.includes("point")?0:e.length,a="polygon"===t,h="point"===t?1:e.reduce((t,e)=>t+e,0)-(a?o:0);r??=!1,n??=!1;const u=b(t,h,o,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,g=0;u.partOffsets[0]=0;for(const t of e){const e=u.partOffsets[g],i=e+t-Number(a);u.partOffsets[++g]=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++]);a&&(l+=c)}return u}function P({type:t,vertexCount:e,vertexXY:s,vertexZ:r,vertexM:n,partCount:i,partOffsets:o,hasZ:a,hasM:h}){const u=new m.A([],[],a,h);i=Math.max(i,1);const c="polygon"===t;let l=0;for(let t=0;t<i;++t){const i=o?.[t+1]??e,g=u.coords.length;for(let t=l;t<i;++t)u.coords.push(s[2*t],s[2*t+1]),a&&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]),a&&u.coords.push(r[t]),h&&u.coords.push(n[t])}u.lengths.push((u.coords.length-g)/u.stride),l=i}return"point"===t&&(u.lengths.length=0),u}function _(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 o=t.getLatestVerticalID();return(o<=0||o===i)&&(o=void 0),{wkid:s,wkt:e,latestWkid:r,vcsWkid:i,latestVcsWkid:o}}(t.getSpatialReference()),t=t.getGeometry()),new x({...t.toFlatGeometry(),spatialReference:e})}class A{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 S({spatialReference:t}){return t instanceof n.A?t.toJSON():t}function Z({vertexXY:t,vertexZ:e,vertexM:s}){return e?s?r=>[t[2*r],t[2*r+1],e[r],s[r]]:s=>[t[2*s],t[2*s+1],e[s]]:s?e=>[t[2*e],t[2*e+1],s[e]]:e=>[t[2*e],t[2*e+1]]}function w(t,e){return t.every((t,s)=>t===e[s])}function b(t,e,s,r,n,i,o,a){o??=0,a??=0;const h=new x({type:t,vertexCount:e,vertexXY:null,vertexZ:void 0,vertexM:void 0,partCount:s,partOffsets:void 0,partFlags:void 0,segmentFlags:void 0,segmentIndices:void 0,segmentParams:void 0,segmentCountArc:o,segmentCountBezier:a});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(k),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 R(t,e,{segmentFlags:s,segmentIndices:r,segmentParams:n},i,o){s[i]=4,r[i]=o;const[a,[h,u],c,l,g,m,x]=e.a;let d=4;l||(d|=1),c||(d|=2);const p=(0,f.SW)(t,e),[v,y]=(0,f.Uk)(p,.5);return n[o++]=d,n[o++]=m,n[o++]=x,n[o++]=g,n[o++]=h,n[o++]=u,n[o++]=p.u2-p.u1,n[o++]=p.u1,n[o++]=v,n[o++]=y,o}function F(t,e,{segmentFlags:s,segmentIndices:r,segmentParams:n},i,o){s[i]=4,r[i]=o;const a=(0,g.io)(t,e);return V(a,4,...(0,h.mq)(a,.5),n,o)}function Y(t,e,{segmentFlags:s,segmentIndices:r,segmentParams:n},i,o){return s[i]=4,r[i]=o,V((0,u.pM)(t,e),0,...e.c[1],n,o)}function V(t,e,s,r,n,i){const{cx:o,cy:a,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++]=o,n[i++]=a,n[i++]=u-h,n[i++]=h,n[i++]=s,n[i++]=r,i}function I(t,{b:[e,[s,r],[n,i]]},{segmentFlags:o,segmentIndices:a,segmentParams:h},u,c){return o[u]=2,a[u]=c,h[c++]=s,h[c++]=r,h[c++]=n,h[c++]=i,c}const X=1.61803,k=-1},51190(t,e,s){s.r(e),s.d(e,{execute:()=>i});var r=s(86211),n=s(83299);function i(t,e={}){const{unit:s}=e;let i=(0,n.fromGeometryToGXGeometry)(t).calculateLength2D();const o=(0,n.getSpatialReference)(t);return i&&s&&o&&(i=(0,r.PQ)(i,o,s)),i}},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,o=r-e;return new n([5],[t,e,i,0,0,o,-i,0,0,-o])}get isPoint(){return 0===this.lengths.length&&this.coords.length>=2}get maxLength(){return Math.max(...this.lengths)}get size(){return this.isPoint?1:this.lengths.reduce((t,e)=>t+e,0)}get usedMemory(){return 64+(0,r.Qf)(this.lengths,this.coords)}get stride(){return 2+(this.hasZ?1:0)+(this.hasM?1:0)}area(){if(this.isPoint)return 0;let t=0,e=0;for(const 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 o=1;o<s;o+=1){const s=r*(e+o),a=this.coords[s],h=this.coords[s+1];t+=-.5*(a-n)*(h+i),n=a,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)}}}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[118],{83349(e,t,n){function r(e,t,n){n=n||2;var r,i,a,l,u,c,p,h=t&&t.length,g=h?t[0]*n:e.length,d=o(e,0,g,n,!0),y=[];if(!d||d.next===d.prev)return y;if(h&&(d=f(e,t,d,n)),e.length>80*n){r=a=e[0],i=l=e[1];for(var m=n;m<g;m+=n)(u=e[m])<r&&(r=u),(c=e[m+1])<i&&(i=c),u>a&&(a=u),c>l&&(l=c);p=0!==(p=Math.max(a-r,l-i))?1/p:0}return s(d,y,n,r,i,p),y}function o(e,t,n,r,o){var i,s;if(o===U(e,t,n,r)>0)for(i=t;i<n;i+=r)s=E(i,e[i],e[i+1],s);else for(i=n-r;i>=t;i-=r)s=E(i,e[i],e[i+1],s);if(s&&b(s,s.next)){var a=s.next;L(s),s=a}return s}function i(e,t){if(!e)return e;t||(t=e);var n,r=e;do{if(n=!1,r.steiner||!b(r,r.next)&&0!==A(r.prev,r,r.next))r=r.next;else{var o=r.prev;if(L(r),(r=t=o)===r.next)break;n=!0}}while(n||r!==t);return t}function s(e,t,n,r,o,f,p){if(e){!p&&f&&y(e,r,o,f);for(var h,g,d=e;e.prev!==e.next;)if(h=e.prev,g=e.next,f?l(e,r,o,f):a(e))t.push(h.i/n),t.push(e.i/n),t.push(g.i/n),L(e),e=g.next,d=g.next;else if((e=g)===d){p?1===p?s(e=u(i(e),t,n),t,n,r,o,f,2):2===p&&c(e,t,n,r,o,f):s(i(e),t,n,r,o,f,1);break}}}function a(e){var t=e.prev,n=e,r=e.next;if(A(t,n,r)>=0)return!1;for(var o=e.next.next;o!==e.prev;){if(v(t.x,t.y,n.x,n.y,r.x,r.y,o.x,o.y)&&A(o.prev,o,o.next)>=0)return!1;o=o.next}return!0}function l(e,t,n,r){var o=e.prev,i=e,s=e.next;if(A(o,i,s)>=0)return!1;for(var a=o.x<i.x?o.x<s.x?o.x:s.x:i.x<s.x?i.x:s.x,l=o.y<i.y?o.y<s.y?o.y:s.y:i.y<s.y?i.y:s.y,u=o.x>i.x?o.x>s.x?o.x:s.x:i.x>s.x?i.x:s.x,c=o.y>i.y?o.y>s.y?o.y:s.y:i.y>s.y?i.y:s.y,f=m(a,l,t,n,r),p=m(u,c,t,n,r),h=e.prevZ,g=e.nextZ;h&&h.z>=f&&g&&g.z<=p;){if(h!==e.prev&&h!==e.next&&v(o.x,o.y,i.x,i.y,s.x,s.y,h.x,h.y)&&A(h.prev,h,h.next)>=0)return!1;if(h=h.prevZ,g!==e.prev&&g!==e.next&&v(o.x,o.y,i.x,i.y,s.x,s.y,g.x,g.y)&&A(g.prev,g,g.next)>=0)return!1;g=g.nextZ}for(;h&&h.z>=f;){if(h!==e.prev&&h!==e.next&&v(o.x,o.y,i.x,i.y,s.x,s.y,h.x,h.y)&&A(h.prev,h,h.next)>=0)return!1;h=h.prevZ}for(;g&&g.z<=p;){if(g!==e.prev&&g!==e.next&&v(o.x,o.y,i.x,i.y,s.x,s.y,g.x,g.y)&&A(g.prev,g,g.next)>=0)return!1;g=g.nextZ}return!0}function u(e,t,n){var r=e;do{var o=r.prev,s=r.next.next;!b(o,s)&&C(o,r,r.next,s)&&R(o,s)&&R(s,o)&&(t.push(o.i/n),t.push(r.i/n),t.push(s.i/n),L(r),L(r.next),r=e=s),r=r.next}while(r!==e);return i(r)}function c(e,t,n,r,o,a){var l=e;do{for(var u=l.next.next;u!==l.prev;){if(l.i!==u.i&&w(l,u)){var c=S(l,u);return l=i(l,l.next),c=i(c,c.next),s(l,t,n,r,o,a),void s(c,t,n,r,o,a)}u=u.next}l=l.next}while(l!==e)}function f(e,t,n,r){var s,a,l,u=[];for(s=0,a=t.length;s<a;s++)(l=o(e,t[s]*r,s<a-1?t[s+1]*r:e.length,r,!1))===l.next&&(l.steiner=!0),u.push(x(l));for(u.sort(p),s=0;s<u.length;s++)n=i(n=g(u[s],n),n.next);return n}function p(e,t){return e.x-t.x}function h(e){if(e.next.prev===e)return e;let t=e;for(;;){const n=t.next;if(n.prev===t||n===t||n===e)break;t=n}return t}function g(e,t){var n=function(e,t){var n,r=t,o=e.x,i=e.y,s=-1/0;do{if(i<=r.y&&i>=r.next.y&&r.next.y!==r.y){var a=r.x+(i-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(a<=o&&a>s){if(s=a,a===o){if(i===r.y)return r;if(i===r.next.y)return r.next}n=r.x<r.next.x?r:r.next}}r=r.next}while(r!==t);if(!n)return null;if(o===s)return n;var l,u=n,c=n.x,f=n.y,p=1/0;r=n;do{o>=r.x&&r.x>=c&&o!==r.x&&v(i<f?o:s,i,c,f,i<f?s:o,i,r.x,r.y)&&(l=Math.abs(i-r.y)/(o-r.x),R(r,e)&&(l<p||l===p&&(r.x>n.x||r.x===n.x&&d(n,r)))&&(n=r,p=l)),r=r.next}while(r!==u);return n}(e,t);if(!n)return t;var r=S(n,e),o=i(n,n.next);let s=h(r);return i(s,s.next),o=h(o),h(t===n?o:t)}function d(e,t){return A(e.prev,e,t.prev)<0&&A(t.next,e,e.next)<0}function y(e,t,n,r){var o=e;do{null===o.z&&(o.z=m(o.x,o.y,t,n,r)),o.prevZ=o.prev,o.nextZ=o.next,o=o.next}while(o!==e);o.prevZ.nextZ=null,o.prevZ=null,function(e){var t,n,r,o,i,s,a,l,u=1;do{for(n=e,e=null,i=null,s=0;n;){for(s++,r=n,a=0,t=0;t<u&&(a++,r=r.nextZ);t++);for(l=u;a>0||l>0&&r;)0!==a&&(0===l||!r||n.z<=r.z)?(o=n,n=n.nextZ,a--):(o=r,r=r.nextZ,l--),i?i.nextZ=o:e=o,o.prevZ=i,i=o;n=r}i.nextZ=null,u*=2}while(s>1)}(o)}function m(e,t,n,r,o){return(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=32767*(e-n)*o)|e<<8))|e<<4))|e<<2))|e<<1))|(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=32767*(t-r)*o)|t<<8))|t<<4))|t<<2))|t<<1))<<1}function x(e){var t=e,n=e;do{(t.x<n.x||t.x===n.x&&t.y<n.y)&&(n=t),t=t.next}while(t!==e);return n}function v(e,t,n,r,o,i,s,a){return(o-s)*(t-a)-(e-s)*(i-a)>=0&&(e-s)*(r-a)-(n-s)*(t-a)>=0&&(n-s)*(i-a)-(o-s)*(r-a)>=0}function w(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!function(e,t){var n=e;do{if(n.i!==e.i&&n.next.i!==e.i&&n.i!==t.i&&n.next.i!==t.i&&C(n,n.next,e,t))return!0;n=n.next}while(n!==e);return!1}(e,t)&&(R(e,t)&&R(t,e)&&function(e,t){var n=e,r=!1,o=(e.x+t.x)/2,i=(e.y+t.y)/2;do{n.y>i!=n.next.y>i&&n.next.y!==n.y&&o<(n.next.x-n.x)*(i-n.y)/(n.next.y-n.y)+n.x&&(r=!r),n=n.next}while(n!==e);return r}(e,t)&&(A(e.prev,e,t.prev)||A(e,t.prev,t))||b(e,t)&&A(e.prev,e,e.next)>0&&A(t.prev,t,t.next)>0)}function A(e,t,n){return(t.y-e.y)*(n.x-t.x)-(t.x-e.x)*(n.y-t.y)}function b(e,t){return e.x===t.x&&e.y===t.y}function C(e,t,n,r){var o=T(A(e,t,n)),i=T(A(e,t,r)),s=T(A(n,r,e)),a=T(A(n,r,t));return o!==i&&s!==a||!(0!==o||!M(e,n,t))||!(0!==i||!M(e,r,t))||!(0!==s||!M(n,e,r))||!(0!==a||!M(n,t,r))}function M(e,t,n){return t.x<=Math.max(e.x,n.x)&&t.x>=Math.min(e.x,n.x)&&t.y<=Math.max(e.y,n.y)&&t.y>=Math.min(e.y,n.y)}function T(e){return e>0?1:e<0?-1:0}function R(e,t){return A(e.prev,e,e.next)<0?A(e,t,e.next)>=0&&A(e,e.prev,t)>=0:A(e,t,e.prev)<0||A(e,e.next,t)<0}function S(e,t){var n=new Z(e.i,e.x,e.y),r=new Z(t.i,t.x,t.y),o=e.next,i=t.prev;return e.next=t,t.prev=e,n.next=o,o.prev=n,r.next=n,n.prev=r,i.next=r,r.prev=i,r}function E(e,t,n,r){var o=new Z(e,t,n);return r?(o.next=r.next,o.prev=r,r.next.prev=o,r.next=o):(o.prev=o,o.next=o),o}function L(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function Z(e,t,n){this.i=e,this.x=t,this.y=n,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function U(e,t,n,r){for(var o=0,i=t,s=n-r;i<n;i+=r)o+=(e[s]-e[i])*(e[i+1]+e[s+1]),s=i;return o}n.d(t,{e:()=>r}),r.deviation=function(e,t,n,r){var o=t&&t.length,i=o?t[0]*n:e.length,s=Math.abs(U(e,0,i,n));if(o)for(var a=0,l=t.length;a<l;a++){var u=t[a]*n,c=a<l-1?t[a+1]*n:e.length;s-=Math.abs(U(e,u,c,n))}var f=0;for(a=0;a<r.length;a+=3){var p=r[a]*n,h=r[a+1]*n,g=r[a+2]*n;f+=Math.abs((e[p]-e[g])*(e[h+1]-e[p+1])-(e[p]-e[h])*(e[g+1]-e[p+1]))}return 0===s&&0===f?0:Math.abs((f-s)/s)},r.flatten=function(e){for(var t=e[0][0].length,n={vertices:[],holes:[],dimensions:t},r=0,o=0;o<e.length;o++){for(var i=0;i<e[o].length;i++)for(var s=0;s<t;s++)n.vertices.push(e[o][i][s]);o>0&&(r+=e[o-1].length,n.holes.push(r))}return n}},21287(e,t,n){n.d(t,{M5:()=>f,eV:()=>c});var r=n(11254),o=n(49186),i=n(17676),s=n(84952),a=n(26306);let l=null,u=!0;function c(e,t,n,r){if(!t||!n)throw new Error("Cannot construct image data without dimensions");if(u)try{return new ImageData(e,t,n)}catch(e){u=!1}const o=function(e,t,n){return n||(l||(l=document.createElement("canvas"),l.width=1,l.height=1),n=l),n.getContext("2d").createImageData(e,t)}(t,n,r);return o.data.set(e,0),o}async function f(e,t){const{arrayBuffer:l,mediaType:u}=await async function(e,t){const n=(0,s.r$)(e);if(n?.isBase64)return{arrayBuffer:(0,a.M)(n.data),mediaType:n.mediaType};const o=await(0,r.A)(e,{responseType:"array-buffer",...t});return{arrayBuffer:o.data,mediaType:o.getHeader?.("Content-Type")??""}}(e,t),c="image/png"===u;if("image/gif"===u){const{isAnimatedGIF:e,parseGif:r}=await n.e(820).then(n.bind(n,10820));if(e(l))return r(l,t)}if(c){const{isAnimatedPNG:e,parseApng:r}=await n.e(2390).then(n.bind(n,22390));if(e(l))return r(l,t)}return async function(e,t){const n=window.URL.createObjectURL(e);try{const{data:e}=await(0,r.A)(n,{...t,responseType:"image"});return e}catch(e){if(!(0,i.zf)(e))throw new o.A("invalid-image",`Could not fetch requested image at ${n}`);throw e}finally{window.URL.revokeObjectURL(n)}}(new Blob([l],{type:u}),t)}},83300(e,t,n){n.r(t),n.d(t,{default:()=>Le});var r=n(5482),o=n(69540),i=n(92474),s=n(53966),a=n(61893),l=n(17676),u=n(36708),c=n(91429),f=n(51850),p=n(91075),h=n(86738),g=n(39829),d=n(70328),y=n(24770),m=n(16939),x=n(49186);const v="Expected location to be a Point instance";class w extends x.A{constructor(){super("invalid-input:location",v)}}var A=n(95696),b=n(18251),C=n(73836),M=n(1193),T=n(27615),R=n(35522),S=n(65806);function E(e,t){switch(e.type){case"georeferenced":return t.isGeographic;case"local":return t.isGeographic||t.isWebMercator}}var L=n(22141),Z=n(72258);const U=()=>s.A.getLogger("esri.geometry.support.meshUtils.centerAt");const _=(0,f.vt)(),N=(0,f.vt)(),I=(0,f.vt)();var F=n(9093),O=n(5443),j=n(91218),B=n(98764),P=n(48353),$=n(9762),z=n(4197),D=n(73354);const H=(0,F.vt)(),k=(0,z.jh)(24);var G=n(84952);function K(e){const t=(0,G.nM)(e.url);return n=>{const r=(0,G.V1)(n,t,t),o=r?r.replace(/^ *\.\//,""):null;return(o?e.files.get(o):null)??n}}async function V(e,t){switch(e.type){case"client":return Array.isArray(e.files)?function(e){if(!e.length)throw new x.A("mesh-load-external:missing-assets","There must be at least one file to load");return ee(e.map(e=>({name:e.name,mimeType:e.type,source:Y(e)})))}(e.files):Y(e.files);case"service":return async function(e,t){if(!e.length)throw new x.A("mesh-load-external:missing-assets","There must be at least one file to load");const n=await(0,l.nA)(e.map(async e=>{const n=await async function(e,t){const{parts:n,assetMimeType:r,assetName:o}=e;if(1===n.length)return new te(n[0].partUrl);const i=await e.toBlob(t);return(0,l.Te)(t),te.fromBlob(i,ne(o,r))}(e);return(0,l.Te)(t),{name:e.assetName,mimeType:e.assetMimeType,source:n}}));if((0,l.G4)(t))throw n.forEach(e=>e.source.dispose()),(0,l.NK)();return ee(n)}(e.assets,t);default:throw new x.A("mesh-load-external:invalid-source","Invalid source type")}}function Y(e){return te.fromBlob(e,ne(e.name,e.type))}const q=/^model\/gltf\+json$/,W=/^model\/gltf-binary$/,X=/\.gltf$/i,J=/\.glb$/i;function Q({mimeType:e,source:t,name:n}){return q.test(e)||X.test(n)?{url:t.url,type:"gltf"}:W.test(e)||J.test(n)?{url:t.url,type:"glb"}:null}function ee(e){const t=new Map;let n=null,r=null;for(const o of e){const{source:e,name:i}=o;n??=Q(o),"ESRI3DO_NORM.glb"===i&&(r=Q(o)),t.set(i,e.url),e.files.forEach((e,n)=>t.set(n,e))}const o=r??n;if(null==o)throw new x.A("mesh-load-external:missing-files","Missing files to load external mesh source");return new te(o.url,()=>e.forEach(({source:e})=>e.dispose()),t,o.type)}class te{constructor(e,t=()=>{},n=new Map,r){this.url=e,this.dispose=t,this.files=n,this.type=r}static fromBlob(e,t){const n=URL.createObjectURL(e);return new te(n,()=>URL.revokeObjectURL(n),void 0,t)}}function ne(e,t){return q.test(t)||X.test(e)?"gltf":W.test(t)||X.test(e)?"glb":void 0}var re=n(66895),oe=n(29461),ie=n(15070),se=n(77690),ae=n(29242),le=n(58083),ue=n(67026),ce=n(82534);const fe=()=>s.A.getLogger("esri.geometry.support.meshUtils.rotate");function pe(e,t,n,r=f.uY){if(null!=e){(0,le.$0)(ye,(0,y.$I)(t),(0,y.yo)(t));for(let t=0;t<e.length;t+=n){for(let n=0;n<3;n++)he[n]=e[t+n]-r[n];(0,R.Z0)(he,he,ye);for(let n=0;n<3;n++)e[t+n]=he[n]+r[n]}}}const he=(0,f.vt)(),ge=(0,F.vt)(),de=(0,y.vt)(),ye=(0,F.vt)(),me=(0,ae.vt)(),xe=(0,f.vt)(),ve=(0,ce.vt)(),we=()=>s.A.getLogger("esri.geometry.support.meshUtils.scale");function Ae(e,t,n=f.uY){if(e)for(let r=0;r<e.length;r+=3){for(let t=0;t<3;t++)be[t]=e[r+t]-n[t];(0,R.hs)(be,be,t);for(let t=0;t<3;t++)e[r+t]=be[t]+n[t]}}const be=(0,f.vt)(),Ce=(0,f.vt)(),Me=(0,F.vt)(),Te=(0,f.vt)();var Re,Se=n(41618);const Ee={base:null,key:"type",defaultKeyValue:"georeferenced",typeMap:{georeferenced:A.A,local:b.A}};let Le=Re=class extends((0,o.OU)((0,i.WV)((0,a.g)(p.A)))){constructor(e){super(e),this.components=null,this.vertexSpace=new A.A,this.transform=null,this.metadata=new oe.O,this.hasZ=!0,this.hasM=!1,this.vertexAttributes=new M.default,this.type="mesh"}initialize(){(0===this.metadata.externalSources.length||this.vertexAttributes.position.length)&&(this.loadStatus="loaded"),this.when(()=>{this.addHandles((0,u.wB)(()=>({vertexAttributes:this.vertexAttributes,components:this.components?.map(e=>e.clone())}),()=>this._clearSources(),{once:!0,sync:!0}))}).catch(()=>{})}get hasExtent(){return this.loaded?this.vertexAttributes.position.length>0&&(!this.components||this.components.length>0):null!=this.metadata.displaySource?.extent}get _transformedExtent(){const{spatialReference:e,vertexSpace:t}=this,n=this;return function(e){const{spatialReference:t,vertexSpace:n,untransformedBounds:r}=e,o=(0,d.gE)(r,k);if((0,T.Hq)(n)&&e.transform&&(0,D.t)(o,o,e.transform.localMatrix),"georeferenced"===n.type){const e=n.origin;return e&&(0,D.a)(o,o,e),(0,d.w1)((0,d.vY)(o),t)}const i=(0,B.lO)(t),s=n.origin;if(!(0,j.canProjectWithoutEngine)(i,t)){const[e,n,r]=s;return new O.A({xmin:e,ymin:n,zmin:r,xmax:e,ymax:n,zmax:r,spatialReference:t})}return(0,P.l)(t,s,H,i),(0,D.t)(o,o,H),(0,$.projectBuffer)(o,i,0,o,t,0),(0,d.w1)((0,d.vY)(o),t)}({get transform(){return n.transform},vertexSpace:t,spatialReference:e,untransformedBounds:this._untransformedBounds})}get _untransformedBounds(){const{vertexAttributes:{position:e},components:t}=this;return 0===e.length||0===t?.length?(0,d.vt)(d.v_):(0,d.vY)(e)}get origin(){const e=(0,T.MW)(this.vertexSpace,this.spatialReference);if(null!=e)return e;const{center:t,zmin:n}=this._transformedExtent;return new h.A({x:t.x,y:t.y,z:n,spatialReference:this.spatialReference})}get extent(){return this.loaded||null==this.metadata?.displaySource?.extent?this._transformedExtent:this.metadata.displaySource.extent.clone()}addComponent(e){this._checkIfLoaded("addComponent()")&&(this.components||(this.components=[]),this.components.push(m.default.from(e)),this.notifyChange("components"))}removeComponent(e){if(this._checkIfLoaded("removeComponent()")){if(this.components){const t=this.components.indexOf(e);if(-1!==t)return this.components.splice(t,1),void this.notifyChange("components")}s.A.getLogger(this).error("removeComponent()","Provided component is not part of the list of components")}}rotate(e,t,n,r){return(0,y.AU)(e,t,n,Ze),function(e,t,n){if(!e.vertexAttributes?.position||0===t[3])return;const{spatialReference:r,vertexSpace:o}=e,i=n?.origin??e.origin;(0,T.CK)(e)?function(e,t,n){e.transform??=new C.A;const{vertexSpace:r,transform:o,spatialReference:i}=e,[s,a,l]=r.origin,u=new h.A({x:s,y:a,z:l,spatialReference:i}),c=he;if(u.equals(n))(0,R.hZ)(c,0,0,0);else if(!(0,Z.p5)(c,n,e))return void(0,L.CN)(fe(),n.spatialReference,i,L.JP);(0,ue.x8)(ve,(0,y.yo)(t),(0,y.$I)(t));const p=(0,le.O7)(ge,ve,f.uY,f.Un,c),{localMatrix:g}=o,d=(0,le.lw)(ge,p,g);o.scale=(0,le.X_)((0,f.vt)(),d),(0,le.hs)(d,d,(0,R.DI)(he,o.scale));const m=o.rotationAxis;o.rotation=(0,y.ui)(d),0===o.rotationAngle&&(o.rotationAxis=m),o.translation=(0,le.sC)((0,f.vt)(),d)}(e,t,i):E(o,r)?function(e,t,n){const r=e.spatialReference,o=(0,B.lO)(r),i=xe;if(!(0,S.g)(n,i,o)&&((0,L.CN)(fe(),n.spatialReference,o,"Falling back to mesh origin"),!(0,S.g)(e.origin,i,o)))return void(0,L.CN)(fe(),e.origin.spatialReference,o);const s=e.vertexAttributes.position,a=e.vertexAttributes.normal,l=e.vertexAttributes.tangent,u=new Float64Array(s.length),c=null!=a?new Float32Array(a.length):null,f=null!=l?new Float32Array(l.length):null;(0,P.l)(o,i,ye,o),(0,se.z0)(me,ye);const p=de;(0,R.ei)((0,y.yo)(de),(0,y.yo)(t),me),p[3]=t[3],!(0,L.gr)(s,r,u,o)||null!=a&&null!=c&&!(0,L.X4)(a,s,r,u,o,c)||null!=l&&null!=f&&!(0,L.xA)(l,s,r,u,o,f)?(0,L.CN)(fe(),r,o):(pe(u,p,3,i),!(0,L.$5)(u,o,s,r)||null!=a&&null!=c&&(pe(c,p,3),!(0,L.si)(c,s,r,u,o,a))||null!=l&&null!=f&&(pe(f,p,4),!(0,L.Mv)(f,s,r,u,o,l))?(0,L.CN)(fe(),o,r):e.vertexAttributesChanged())}(e,t,i):function(e,t,n){const r=xe;if(!(0,S.g)(n,r,e.spatialReference)){const t=e.origin;return r[0]=t.x,r[1]=t.y,r[2]=t.z,void(0,L.CN)(fe(),n.spatialReference,e.spatialReference,L.JP)}pe(e.vertexAttributes.position,t,3,r),pe(e.vertexAttributes.normal,t,3),pe(e.vertexAttributes.tangent,t,4),e.vertexAttributesChanged()}(e,t,i)}(this,Ze,r),this}offset(e,t,n){if(!this._checkIfLoaded("offset()"))return this;const{vertexSpace:r,vertexAttributes:o}=this,i=o?.position;if(!i)return this;if((0,T.Hq)(r)){const[o,i,s]=r.origin;r.origin=(0,f.fA)(o+e,i+t,s+n)}else{for(let r=0;r<i.length;r+=3)i[r]+=e,i[r+1]+=t,i[r+2]+=n;this.vertexAttributesChanged()}return this}scale(e,t){return this._checkIfLoaded("scale()")?(function(e,t,n){if(!e.vertexAttributes?.position)return;const{vertexSpace:r,spatialReference:o}=e,i=n?.origin??e.origin;(0,T.CK)(e)?function(e,t,n){e.transform??=new C.A;const{vertexSpace:r,transform:o,spatialReference:i}=e,[s,a,l]=r.origin,u=new h.A({x:s,y:a,z:l,spatialReference:i}),c=be;if(u.equals(n))(0,R.hZ)(c,0,0,0);else if(!(0,Z.p5)(c,n,e))return void(0,L.CN)(we(),n.spatialReference,i,L.JP);const p=(0,R.hZ)(Ce,t,t,t),g=(0,le.O7)(Me,ce.zK,f.uY,p,c),{localMatrix:d}=o,m=(0,le.lw)(Me,g,d);o.scale=(0,le.X_)((0,f.vt)(),m),(0,le.hs)(m,m,(0,R.DI)(be,o.scale));const x=o.rotationAxis;o.rotation=(0,y.ui)(m),0===o.rotationAngle&&(o.rotationAxis=x),o.translation=(0,le.sC)((0,f.vt)(),m)}(e,t,i):E(r,o)?function(e,t,n){const r=e.spatialReference,o=(0,B.lO)(r),i=Te;if(!(0,S.g)(n,i,o)&&((0,L.CN)(we(),n.spatialReference,o,"Falling back to mesh origin"),!(0,S.g)(e.origin,i,o)))return void(0,L.CN)(we(),e.origin.spatialReference,o);const s=e.vertexAttributes.position,a=e.vertexAttributes.normal,l=e.vertexAttributes.tangent,u=new Float64Array(s.length),c=null!=a?new Float32Array(a.length):null,f=null!=l?new Float32Array(l.length):null;!(0,L.gr)(s,r,u,o)||null!=a&&null!=c&&!(0,L.X4)(a,s,r,u,o,c)||null!=l&&null!=f&&!(0,L.xA)(l,s,r,u,o,f)?(0,L.CN)(we(),r,o):(Ae(u,t,i),!(0,L.$5)(u,o,s,r)||null!=a&&null!=c&&!(0,L.si)(c,s,r,u,o,a)||null!=l&&null!=f&&!(0,L.Mv)(f,s,r,u,o,l)?(0,L.CN)(we(),o,r):e.vertexAttributesChanged())}(e,t,i):function(e,t,n){const r=Te;if(!(0,S.g)(n,r,e.spatialReference)){const t=e.origin;return r[0]=t.x,r[1]=t.y,r[2]=t.z,void(0,L.CN)(we(),n.spatialReference,e.spatialReference,L.JP)}Ae(e.vertexAttributes.position,t,r),e.vertexAttributesChanged()}(e,t,i)}(this,e,t),this):this}centerAt(e,t){return this._checkIfLoaded("centerAt()")?(function(e,t,n){if(!e.vertexAttributes?.position)return;const{vertexSpace:r}=e,o=n?.origin??e.origin;(0,T.Hq)(r)?function(e,t,n){const{vertexSpace:r}=e;if(!(0,T.Hq)(r))return;const o=N,i=_;if(!(0,S.g)(t,i,e.spatialReference))return void(0,L.CN)(U(),t.spatialReference,e.spatialReference,L.JP);if(!(0,S.g)(n,o,e.spatialReference))return void(0,L.CN)(U(),n.spatialReference,e.spatialReference,L.JP);const s=(0,R.Re)(I,i,o);r.origin=(0,R.WQ)((0,f.vt)(),r.origin,s)}(e,t,o):E(r,o.spatialReference)?function(e,t,n){const r=(0,f.fA)(n.x,n.y,n.z??0),o=(0,Z.UR)(e,new b.A({origin:r}));if(!o)return;const i=(0,f.fA)(t.x,t.y,t.z??0),s=(0,Z.UR)({vertexAttributes:o,spatialReference:e.spatialReference,vertexSpace:new b.A({origin:i})},A.A.absolute);if(!s)return;const{position:a,normal:l,tangent:u}=s;e.vertexAttributes.position=a,e.vertexAttributes.normal=l,e.vertexAttributes.tangent=u,e.vertexAttributesChanged()}(e,t,o):function(e,t,n){const r=N,o=_;if((0,S.g)(t,o,e.spatialReference)){if(!(0,S.g)(n,r,e.spatialReference)){const t=e.origin;return r[0]=t.x,r[1]=t.y,r[2]=t.z,void(0,L.CN)(U(),n.spatialReference,e.spatialReference,L.JP)}(function(e,t,n){if(e)for(let r=0;r<e.length;r+=3)for(let o=0;o<3;o++)e[r+o]+=t[o]-n[o]})(e.vertexAttributes.position,o,r),e.vertexAttributesChanged()}else(0,L.CN)(U(),t.spatialReference,e.spatialReference,L.JP)}(e,t,o)}(this,e,t),this):this}load(e){const{metadata:{displaySource:t}}=this;return t&&this.addResolvingPromise(async function(e,t,r){switch(t.source.type){case"client":case"service":return async function(e,t,r){const{source:o}=t,{loadGLTFMesh:i}=await(0,l.qr)(n.e(5841).then(n.bind(n,35841)),r),s=await V(o,r);(0,l.Te)(r);const a=i(new h.A({x:0,y:0,z:0,spatialReference:e.spatialReference}),s.url,{resolveFile:K(s),signal:r?.signal,expectedType:s.type,unitConversionDisabled:t.unitConversionDisabled}),{mesh:{vertexAttributes:u,components:c},meta:{isDracoDecompressed:f}}=await a.finally(()=>s.dispose());if(f)throw new x.A("mesh-load-external:draco-not-supported","The provided mesh uses Draco compression which is not supported.");e.vertexAttributes=u,e.components=c}(e,t,r);case"loadable":return t.source.load(e,r);default:t.source}}(this,t,e)),Promise.resolve(this)}addExternalSources(e){this.metadata.externalSources.addMany(e)}updateDisplaySource(e){this.metadata.displaySource=e}clone(e){return super.clone((0,re.WO)((0,re.QN)(e)))}cloneShallow(){return new Re({components:this.components,spatialReference:this.spatialReference,vertexAttributes:this.vertexAttributes,vertexSpace:this.vertexSpace.clone(),transform:this.transform,metadata:this.metadata})}vertexAttributesChanged(){this.notifyChange("vertexAttributes")}async toBinaryGLTF(e){const[{toBinaryGLTF:t}]=await Promise.all([n.e(4038).then(n.bind(n,84038)),this.load(e)]);return(0,l.Te)(e),await t(this,e)}get usedMemory(){return this.components?this.components.reduce((e,t)=>e+t.memoryUsage,this.vertexAttributes.usedMemory):this.vertexAttributes.usedMemory}_clearSources(){this.metadata.clearSources()}_checkIfLoaded(e){return!!this.loaded||(s.A.getLogger(this).error(e,"Mesh must be loaded before applying operations"),!1)}static createBox(e,t){if(!(e instanceof h.A))return s.A.getLogger(this.prototype).error(".createBox()",v),null;const n=new Re((0,ie.UG)((0,ie.H8)(),e,t));return t?.imageFace&&"all"!==t.imageFace?(0,ie.bQ)(n,t.imageFace):n}static createSphere(e,t){return e instanceof h.A?new Re((0,ie.UG)((0,ie.Dk)(t?.densificationFactor||0),e,t)):(s.A.getLogger(this.prototype).error(".createSphere()",v),null)}static createCylinder(e,t){return e instanceof h.A?new Re((0,ie.UG)((0,ie.ai)(t?.densificationFactor||0),e,t)):(s.A.getLogger(this.prototype).error(".createCylinder()",v),null)}static createPlane(e,t){if(!(e instanceof h.A))return s.A.getLogger(this.prototype).error(".createPlane()",v),null;const n=t?.facing??"up",r=(0,ie.uF)(n,t?.size);return new Re((0,ie.UG)((0,ie.Uh)(n),e,{...t,size:r}))}static createFromPolygon(e,t){if(!(e instanceof g.A))return s.A.getLogger(this.prototype).error(".createFromPolygon()","Expected polygon to be a Polygon instance"),null;const n=(0,Se.uM)(e,{method:"earcut"}),r=(0,l.$X)(n)?null:n,o=r?.positions??[],i=r?.polygonIndices??[];return new Re({vertexAttributes:new M.default({position:o}),components:[new m.default({faces:i,shading:"flat",material:t?.material??null})],spatialReference:e.spatialReference,vertexSpace:new A.A})}static async createFromGLTF(e,t,r){if(!(e instanceof h.A)){const e=new w;throw s.A.getLogger(this.prototype).error(".createfromGLTF()",e.message),e}const{loadGLTFMesh:o}=await(0,l.qr)(n.e(5841).then(n.bind(n,35841)),r);return new Re((await o(e,t,r)).mesh)}};(0,r.Cg)([(0,c.MZ)({type:[m.default],json:{write:!0}})],Le.prototype,"components",void 0),(0,r.Cg)([(0,c.MZ)({nonNullable:!0,types:Ee,constructOnly:!0,json:{write:!0},clonable:(e,t)=>(0,re.o2)(t)?.vertexSpace??e.clone(t)})],Le.prototype,"vertexSpace",void 0),(0,r.Cg)([(0,c.MZ)({type:C.A,clonable:(e,t)=>{const n=(0,re.o2)(t);return n&&"transform"in n?n.transform:e?.clone()??e},json:{write:!0}})],Le.prototype,"transform",void 0),(0,r.Cg)([(0,c.MZ)({constructOnly:!0,type:oe.O,clonable:(e,t)=>(0,re.o2)(t)?.metadata??e.clone()})],Le.prototype,"metadata",void 0),(0,r.Cg)([(0,c.MZ)()],Le.prototype,"hasExtent",null),(0,r.Cg)([(0,c.MZ)()],Le.prototype,"_transformedExtent",null),(0,r.Cg)([(0,c.MZ)()],Le.prototype,"_untransformedBounds",null),(0,r.Cg)([(0,c.MZ)()],Le.prototype,"origin",null),(0,r.Cg)([(0,c.MZ)({readOnly:!0,json:{read:!1}})],Le.prototype,"extent",null),(0,r.Cg)([(0,c.MZ)({readOnly:!0,json:{read:!1,write:!0,default:!0}})],Le.prototype,"hasZ",void 0),(0,r.Cg)([(0,c.MZ)({readOnly:!0,json:{read:!1,write:!0,default:!1}})],Le.prototype,"hasM",void 0),(0,r.Cg)([(0,c.MZ)({type:M.default,nonNullable:!0,json:{write:!0},clonable:(e,t)=>(0,re.o2)(t)?.vertexAttributes??e.clone(t)})],Le.prototype,"vertexAttributes",void 0),Le=Re=(0,r.Cg)([(0,c.$K)("esri.geometry.Mesh")],Le);const Ze=(0,y.vt)()},15585(e,t,n){n.d(t,{If:()=>h,O5:()=>m,O9:()=>d,QT:()=>y,l3:()=>g});var r=n(5482),o=n(2741),i=n(49186),s=n(44208),a=n(34727);let l=null,u=null,c=null,f=null;const p=(new Float32Array(0),new Uint32Array(0),new Uint32Array(0),new Uint32Array(0),{vertices:new Float64Array(0),indices:new Uint32Array(0),outlineIndices:new Uint32Array(0),outlineRingLengths:new Uint32Array(0),vertexCount:0,indexCount:0,outlineIndexCount:0,outlineRingCount:0});async function h(){return l??=async function(){const e=await n.e(2997).then(n.bind(n,42997)),t=await e.default({locateFile:e=>(0,o.s)(`esri/core/libs/libtess/${e}`)});c=t}(),l}async function g(){return u??=async function(){const e=await n.e(9134).then(n.bind(n,99134)),t=await e.default({locateFile:e=>(0,o.s)(`esri/core/libs/libtess/${e}`)});f=t}(),u}function d(){return null!==f}function y(e,t,n=2){const o={stack:[],error:void 0,hasError:!1};try{const a=c;if(!a)throw new i.A("libtess:not-loaded","libtessF32 not loaded");const l=(0,r.mS)(o,A.from(a,e),!1),u=(0,r.mS)(o,C.from(a,t),!1),f=e.length/n*4,p=(0,r.mS)(o,new A(a,f*n),!1),h=a.triangulate(l.ptr,u.ptr,u.size,n,p.ptr,f);if((0,s.A)("esri-tessellation-debug")){const e=a.getError();0!==e&&console.warn("libtess:triangulation",M(e))}return{buffer:p.slice(0,h*n),vertexCount:h}}catch(e){o.error=e,o.hasError=!0}finally{(0,r.hk)(o)}}function m(e,t,n=2,o=!0){const l={stack:[],error:void 0,hasError:!1};try{const u=f;if(!u)throw new i.A("libtess:not-loaded","libtessF64 not loaded");const c=(0,r.mS)(l,b.from(u,e),!1),h=(0,r.mS)(l,C.from(u,t),!1),g=(0,r.mS)(l,new C(u,1),!1),d=(0,r.mS)(l,new C(u,1),!1),y=(0,r.mS)(l,new C(u,1),!1),m=(0,r.mS)(l,new C(u,1),!1),{maxVertexCount:x,maxIndexCount:v,maxOutlineIndexCount:A,maxOutlineRingCount:T}=function(e,t){const n=e.reduce((e,t)=>e+t,0),r=e.length,o=Math.max(0,e.length-1),i=Math.max(0,n+2*o-2),s=Math.max(0,Math.ceil(2*n)),l=Math.max(0,Math.ceil(3*i*2)),u=(0,a.mP)(l,3),c=n>0?Math.max(2,Math.ceil(.25*n)):0,f=n>0?Math.max(1,Math.ceil(c/3)):0;return{maxVertexCount:s,maxIndexCount:u,maxOutlineIndexCount:t?Math.max(0,n+r+c):0,maxOutlineRingCount:t?Math.max(0,r+f):0}}(t,o);let R=0,S=0,E=0,L=0,Z=0;{const e={stack:[],error:void 0,hasError:!1};try{const t=(0,r.mS)(e,new b(u,x*n),!1),i=(0,r.mS)(e,new C(u,v),!1),s=(0,r.mS)(e,o?new C(u,A):null,!1),a=(0,r.mS)(e,o?new C(u,T):null,!1);if(u.triangulateIndexed(c.ptr,h.ptr,h.size,n,t.ptr,x,n,i.ptr,v,g.ptr,d.ptr,s?.ptr??0,A,a?.ptr??0,T,y.ptr,m.ptr),Z=u.getError(),R=w(u)[g.ptr/Int32Array.BYTES_PER_ELEMENT],S=w(u)[d.ptr/Int32Array.BYTES_PER_ELEMENT],E=w(u)[y.ptr/Int32Array.BYTES_PER_ELEMENT],L=w(u)[m.ptr/Int32Array.BYTES_PER_ELEMENT],0===Z){const e=t.slice(0,R*n);return{vertices:e,indices:i.slice(0,S),outlineIndices:o&&s?s.slice(0,E):p.outlineIndices,outlineRingLengths:o&&a?a.slice(0,L):p.outlineRingLengths,vertexCount:R,indexCount:S,outlineIndexCount:o?E:0,outlineRingCount:o?L:0}}}catch(t){e.error=t,e.hasError=!0}finally{(0,r.hk)(e)}}if(100903!==Z)return(0,s.A)("esri-tessellation-debug")&&console.warn("libtess:triangulation",M(Z)),p;const U=(0,r.mS)(l,new b(u,R*n),!1),_=(0,r.mS)(l,new C(u,S),!1),N=(0,r.mS)(l,o?new C(u,E):null,!1),I=(0,r.mS)(l,o?new C(u,L):null,!1);if(u.triangulateIndexed(c.ptr,h.ptr,h.size,n,U.ptr,R,n,_.ptr,S,g.ptr,d.ptr,N?.ptr??0,o?E:0,I?.ptr??0,o?L:0,y.ptr,m.ptr),Z=u.getError(),0!==Z)return(0,s.A)("esri-tessellation-debug")&&console.warn("libtess:triangulation",M(Z)),p;const F=w(u)[g.ptr/Int32Array.BYTES_PER_ELEMENT],O=w(u)[d.ptr/Int32Array.BYTES_PER_ELEMENT],j=w(u)[y.ptr/Int32Array.BYTES_PER_ELEMENT],B=w(u)[m.ptr/Int32Array.BYTES_PER_ELEMENT],P=U.slice(0,F*n);return{vertices:P,indices:_.slice(0,O),outlineIndices:o&&N?N.slice(0,j):p.outlineIndices,outlineRingLengths:o&&I?I.slice(0,B):p.outlineRingLengths,vertexCount:F,indexCount:O,outlineIndexCount:o?j:0,outlineRingCount:o?B:0}}catch(e){l.error=e,l.hasError=!0}finally{(0,r.hk)(l)}}function x(e){return e.HEAPF64}function v(e){return e.HEAPF32}function w(e){return e.HEAP32}class A{static from(e,t){const n=new A(e,t.length);return n.set(t),n}constructor(e,t){this._libtess=e,this.size=t,this.ptr=e.allocateCoordinateArray(t)}destroy(){this._libtess.destroyCoordinateArray(this.ptr)}[Symbol.dispose](){this.destroy()}get bytesPerCoordinate(){return Float32Array.BYTES_PER_ELEMENT}set(e){v(this._libtess).set(e,this.ptr/this.bytesPerCoordinate)}slice(e,t){const n=this.ptr/this.bytesPerCoordinate;return v(this._libtess).slice(n+e,n+t)}}class b{static from(e,t){const n=new b(e,t.length);return n.set(t),n}constructor(e,t){this._libtess=e,this.size=t,this.ptr=e.allocateCoordinateArray(t)}destroy(){this._libtess.destroyCoordinateArray(this.ptr)}[Symbol.dispose](){this.destroy()}get bytesPerCoordinate(){return Float64Array.BYTES_PER_ELEMENT}set(e){x(this._libtess).set(e,this.ptr/this.bytesPerCoordinate)}slice(e,t){const n=this.ptr/this.bytesPerCoordinate;return x(this._libtess).slice(n+e,n+t)}}class C{static from(e,t){const n=new C(e,t.length);return n.set(t),n}constructor(e,t){this._libtess=e,this.size=t,this.ptr=e.allocateLengthsArray(t)}destroy(){this._libtess.destroyLengthsArray(this.ptr)}[Symbol.dispose](){this.destroy()}get bytesPerCoordinate(){return Int32Array.BYTES_PER_ELEMENT}set(e){w(this._libtess).set(e,this.ptr/this.bytesPerCoordinate)}slice(e,t){const n=this.ptr/this.bytesPerCoordinate;return function(e){const t=w(e);return new Uint32Array(t.buffer,t.byteOffset,t.length)}(this._libtess).slice(n+e,n+t)}}function M(e){switch(e){case 100903:return"Insufficient output buffer";case 100902:return"Out of memory";case 100151:return"Missing begin polygon";case 100152:return"Missing begin contour";case 100153:return"Missing end polygon";case 100154:return"Missing end countour";case 100155:return"Coordinates too large";case 100156:return"Missing combine callback";default:return`Unknown: ${e}`}}},97146(e,t,n){n.d(t,{Dg:()=>i,lC:()=>a,my:()=>s,tM:()=>f,uW:()=>o});var r=n(34275);function o(e){return i(e,!0)}function i(e,t){if(Array.isArray(e)){if(e.length<1024)return e}else if(e.length<1024)return Array.from(e);let n=!0,o=!0;return e.some((e,t)=>(n=n&&0===e,o=o&&e===t,!n&&!o)),n?function(e){if(1===e)return u;if(e<1024)return new Array(e).fill(0);if(e>h.length){const t=Math.max(2*h.length,e);h=new Uint8Array(t)}return new Uint8Array(h.buffer,0,e)}(e.length):o?f(e.length):(0,r.iu)(e)&&e.BYTES_PER_ELEMENT===Uint16Array.BYTES_PER_ELEMENT?e:function(e,t){for(const n of e){if(n>=65536)return(0,r.iu)(e)?e:new Uint32Array(e);n>=256&&(t=!1)}return t?new Uint8Array(e):new Uint16Array(e)}(e,!t)}function s(e,t=e){return e<=1024?new Array(e):t<=65536?new Uint16Array(e):new Uint32Array(e)}function a(e,t,n){if(0===t.length)return e.slice();if(0===e.length)return t.slice();const r=s(e.length+t.length,n);for(let t=0;t<e.length;++t)r[t]=e[t];for(let n=0;n<t.length;++n)r[e.length+n]=t[n];return r}let l=p(131072);const u=[0],c=(()=>{const e=new Uint16Array(65536);for(let t=0;t<e.length;++t)e[t]=t;return e})();function f(e){return 1===e?u:e<1024?Array.from(new Uint16Array(c.buffer,0,e)):e<c.length?new Uint16Array(c.buffer,0,e):(e>l.length&&(l=p(Math.max(2*l.length,e))),new Uint32Array(l.buffer,0,e))}function p(e){const t=new Uint32Array(e);for(let e=0;e<t.length;e++)t[e]=e;return t}let h=new Uint8Array(65536)},16939(e,t,n){n.r(t),n.d(t,{default:()=>h});var r,o=n(5482),i=n(69540),s=n(25482),a=n(53966),l=n(91429),u=n(56507),c=n(19211),f=n(80882),p=n(31199);let h=r=class extends((0,i.OU)(s.o)){static from(e){return(0,u.PZ)(r,e)}constructor(e){super(e),this.material=null,this.name=void 0,this.shading="source",this.trustSourceNormals=!1}get faces(){return this._get("faces")??null}set faces(e){this._set("faces",(0,p.b)(e,Uint32Array,[Uint16Array],{loggerTag:".faces=",stride:3},a.A.getLogger(this)))}castMaterial(e){return(0,u.PZ)(e&&"object"==typeof e&&("metallic"in e||"roughness"in e||"metallicRoughnessTexture"in e)?f.A:c.default,e)}get memoryUsage(){let e=0;return null!=this.faces&&(e+=this.faces.byteLength),null!=this.material&&(e+=this.material.memoryUsage),e}};(0,o.Cg)([(0,l.MZ)({json:{write:p.B}})],h.prototype,"faces",null),(0,o.Cg)([(0,l.MZ)({type:c.default,json:{write:!0}})],h.prototype,"material",void 0),(0,o.Cg)([(0,l.wg)("material")],h.prototype,"castMaterial",null),(0,o.Cg)([(0,l.MZ)({json:{write:!0}})],h.prototype,"name",void 0),(0,o.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],h.prototype,"shading",void 0),(0,o.Cg)([(0,l.MZ)({type:Boolean})],h.prototype,"trustSourceNormals",void 0),h=r=(0,o.Cg)([(0,l.$K)("esri.geometry.support.MeshComponent")],h)},95696(e,t,n){n.d(t,{A:()=>u});var r,o=n(5482),i=n(69540),s=n(25482),a=n(91429),l=n(93223);let u=class extends((0,i.OU)(s.o)){static{r=this}constructor(e){super(e),this.type="georeferenced",this.origin=null}static{this.absolute=new r}};(0,o.Cg)([(0,l.e)({georeferenced:"georeferenced"},{readOnly:!0})],u.prototype,"type",void 0),(0,o.Cg)([(0,a.MZ)({type:[Number],nonNullable:!1,json:{write:!0}})],u.prototype,"origin",void 0),u=r=(0,o.Cg)([(0,a.$K)("esri.geometry.support.MeshGeoreferencedVertexSpace")],u)},18251(e,t,n){n.d(t,{A:()=>u});var r=n(5482),o=n(69540),i=n(25482),s=n(91429),a=n(51850),l=n(93223);let u=class extends((0,o.OU)(i.o)){constructor(e){super(e),this.type="local",this.origin=(0,a.vt)()}};(0,r.Cg)([(0,l.e)({local:"local"},{readOnly:!0})],u.prototype,"type",void 0),(0,r.Cg)([(0,s.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],u.prototype,"origin",void 0),u=(0,r.Cg)([(0,s.$K)("esri.geometry.support.MeshLocalVertexSpace")],u)},19211(e,t,n){n.r(t),n.d(t,{default:()=>f});var r=n(5482),o=n(68197),i=n(69540),s=n(25482),a=n(91429),l=n(35063),u=n(51147),c=n(66895);let f=class extends((0,i.OU)(s.o)){constructor(e){super(e),this.color=null,this.colorTextureTransform=null,this.normalTextureTransform=void 0,this.alphaMode="auto",this.alphaCutoff=.5,this.doubleSided=!0}get colorTexture(){return this._get("colorTexture")}set colorTexture(e){this._set("colorTexture",null==e?null:l.default.from(e))}get normalTexture(){return this._get("normalTexture")}set normalTexture(e){this._set("normalTexture",null==e?null:l.default.from(e))}clone(e){const t=(0,c.hz)(e),n=t?.materialMap?.get(this);if(n)return n;const r=super.clone((0,c.QN)(e));return t?.materialMap?.set(this,r),r}get memoryUsage(){return this.getMemoryUsage()}getMemoryUsage(){let e=0;return e+=null!=this.color?16:0,null!=this.colorTexture&&(e+=this.colorTexture.memoryUsage),e+=null!=this.colorTextureTransform?20:0,null!=this.normalTexture&&(e+=this.normalTexture.memoryUsage),e+=null!=this.normalTextureTransform?20:0,e}};(0,r.Cg)([(0,a.MZ)({type:o.A,json:{write:!0}})],f.prototype,"color",void 0),(0,r.Cg)([(0,a.MZ)({type:l.default,json:{write:!0},value:null})],f.prototype,"colorTexture",null),(0,r.Cg)([(0,a.MZ)({type:u.A,json:{write:!0}})],f.prototype,"colorTextureTransform",void 0),(0,r.Cg)([(0,a.MZ)({type:l.default,json:{write:!0},value:null})],f.prototype,"normalTexture",null),(0,r.Cg)([(0,a.MZ)({type:u.A,json:{write:!0}})],f.prototype,"normalTextureTransform",void 0),(0,r.Cg)([(0,a.MZ)({nonNullable:!0,json:{write:!0}})],f.prototype,"alphaMode",void 0),(0,r.Cg)([(0,a.MZ)({nonNullable:!0,json:{write:!0}})],f.prototype,"alphaCutoff",void 0),(0,r.Cg)([(0,a.MZ)({nonNullable:!0,json:{write:!0}})],f.prototype,"doubleSided",void 0),f=(0,r.Cg)([(0,a.$K)("esri.geometry.support.MeshMaterial")],f)},80882(e,t,n){n.d(t,{A:()=>u});var r=n(5482),o=n(68197),i=n(91429),s=n(19211),a=n(35063),l=n(51147);let u=class extends s.default{constructor(e){super(e),this.emissiveColor=null,this.emissiveStrength=null,this.emissiveTextureTransform=void 0,this.occlusionTextureTransform=void 0,this.metallic=1,this.roughness=1,this.metallicRoughnessTextureTransform=void 0,this.unlit=!1}get emissiveTexture(){return this._get("emissiveTexture")}set emissiveTexture(e){this._set("emissiveTexture",null==e?null:a.default.from(e))}get occlusionTexture(){return this._get("occlusionTexture")}set occlusionTexture(e){this._set("occlusionTexture",null==e?null:a.default.from(e))}get metallicRoughnessTexture(){return this._get("metallicRoughnessTexture")}set metallicRoughnessTexture(e){this._set("metallicRoughnessTexture",null==e?null:a.default.from(e))}getMemoryUsage(){let e=super.getMemoryUsage();return e+=null!=this.emissiveColor?16:0,null!=this.emissiveTexture&&(e+=this.emissiveTexture.memoryUsage),e+=null!=this.emissiveTextureTransform?20:0,null!=this.occlusionTexture&&(e+=this.occlusionTexture.memoryUsage),e+=null!=this.occlusionTextureTransform?20:0,null!=this.metallicRoughnessTexture&&(e+=this.metallicRoughnessTexture.memoryUsage),e+=null!=this.metallicRoughnessTextureTransform?20:0,e}};(0,r.Cg)([(0,i.MZ)({type:o.A,json:{write:!0}})],u.prototype,"emissiveColor",void 0),(0,r.Cg)([(0,i.MZ)({json:{write:!0}})],u.prototype,"emissiveStrength",void 0),(0,r.Cg)([(0,i.MZ)({type:a.default,json:{write:!0},value:null})],u.prototype,"emissiveTexture",null),(0,r.Cg)([(0,i.MZ)({type:l.A,json:{write:!0}})],u.prototype,"emissiveTextureTransform",void 0),(0,r.Cg)([(0,i.MZ)({type:a.default,json:{write:!0},value:null})],u.prototype,"occlusionTexture",null),(0,r.Cg)([(0,i.MZ)({type:l.A,json:{write:!0}})],u.prototype,"occlusionTextureTransform",void 0),(0,r.Cg)([(0,i.MZ)({type:Number,nonNullable:!0,json:{write:!0},range:{min:0,max:1}})],u.prototype,"metallic",void 0),(0,r.Cg)([(0,i.MZ)({type:Number,nonNullable:!0,json:{write:!0},range:{min:0,max:1}})],u.prototype,"roughness",void 0),(0,r.Cg)([(0,i.MZ)({type:a.default,json:{write:!0},value:null})],u.prototype,"metallicRoughnessTexture",null),(0,r.Cg)([(0,i.MZ)({type:l.A,json:{write:!0}})],u.prototype,"metallicRoughnessTextureTransform",void 0),(0,r.Cg)([(0,i.MZ)({type:Boolean,nonNullable:!0,json:{write:!0}})],u.prototype,"unlit",void 0),u=(0,r.Cg)([(0,i.$K)("esri.geometry.support.MeshMaterialMetallicRoughness")],u)},35063(e,t,n){n.r(t),n.d(t,{default:()=>y});var r,o=n(5482),i=n(69540),s=n(21287),a=n(25482),l=n(91429),u=n(56507),c=n(66895),f=n(97159),p=n(43937),h=n(36005);const g=new WeakMap;let d=0,y=class extends((0,i.OU)(a.o)){static{r=this}constructor(e){super(e),this.wrap="repeat"}get url(){return this._get("url")||null}set url(e){this._set("url",e),e&&this._set("data",null)}get data(){return this._get("data")||null}set data(e){this._set("data",e),e&&this._set("url",null)}writeData(e,t,n,r){if(e instanceof HTMLImageElement){const o={type:"image-element",src:(0,f.t)(e.src,r),crossOrigin:e.crossOrigin};t[n]=o}else if(e instanceof HTMLCanvasElement){const r={type:"canvas-element",imageData:m(e.getContext("2d").getImageData(0,0,e.width,e.height))};t[n]=r}else if(e instanceof HTMLVideoElement){const o={type:"video-element",src:(0,f.t)(e.src,r),autoplay:e.autoplay,loop:e.loop,muted:e.muted,crossOrigin:e.crossOrigin,preload:e.preload};t[n]=o}else if(e instanceof ImageData){const r={type:"image-data",imageData:m(e)};t[n]=r}}readData(e){switch(e.type){case"image-element":{const t=new Image;return t.src=e.src,t.crossOrigin=e.crossOrigin,t}case"canvas-element":{const t=x(e.imageData),n=document.createElement("canvas");return n.width=t.width,n.height=t.height,n.getContext("2d").putImageData(t,0,0),n}case"image-data":return x(e.imageData);case"video-element":{const t=document.createElement("video");return t.src=e.src,t.crossOrigin=e.crossOrigin,t.autoplay=e.autoplay,t.loop=e.loop,t.muted=e.muted,t.preload=e.preload,t}default:return}}get transparent(){const{data:e,url:t}=this,n=e=>e?.toLowerCase().endsWith(".png")||e?.toLocaleLowerCase().startsWith("data:image/png;");return e instanceof HTMLCanvasElement?v(e.getContext("2d").getImageData(0,0,e.width,e.height)):e instanceof ImageData?v(e):!(!t||!n(t))||!!(e instanceof HTMLImageElement&&n(e.src))}set transparent(e){this._overrideIfSome("transparent",e)}get contentHash(){const e="string"==typeof this.wrap?this.wrap:"object"==typeof this.wrap?`${this.wrap.horizontal}/${this.wrap.vertical}`:"",t=(t="")=>`d:${t},t:${this.transparent},w:${e}`;return null!=this.url?t(this.url):null!=this.data?this.data instanceof HTMLImageElement||this.data instanceof HTMLVideoElement?t(this.data.src):(g.has(this.data)||g.set(this.data,++d),t(g.get(this.data))):t()}get memoryUsage(){let e=0;if(e+=null!=this.url?this.url.length:0,null!=this.data){const t=this.data;"data"in t?e+=t.data.byteLength:t instanceof HTMLImageElement?e+=t.naturalWidth*t.naturalHeight*3:t instanceof HTMLCanvasElement&&(e+=t.width*t.height*3)}return e}clone(e){const t=(0,c.$N)(e),n=t?.textureMap?.get(this);if(n)return n;const r=super.clone(e);return t?.textureMap?.set(this,r),r}static from(e){return"string"==typeof e?new r({url:e}):e instanceof HTMLImageElement||e instanceof HTMLCanvasElement||e instanceof ImageData||e instanceof HTMLVideoElement?new r({data:e}):(0,u.PZ)(r,e)}};function m(e){let t="";for(let n=0;n<e.data.length;n++)t+=String.fromCharCode(e.data[n]);return{data:btoa(t),width:e.width,height:e.height}}function x(e){const t=atob(e.data),n=new Uint8ClampedArray(t.length);for(let e=0;e<t.length;e++)n[e]=t.charCodeAt(e);return(0,s.eV)(n,e.width,e.height)}function v(e){for(let t=3;t<e.data.length;t+=4)if(255!==e.data[t])return!0;return!1}(0,o.Cg)([(0,l.MZ)({type:String,json:{write:f.w}})],y.prototype,"url",null),(0,o.Cg)([(0,l.MZ)({clonable:"reference",json:{write:{overridePolicy(){return{enabled:!this.url}}}}})],y.prototype,"data",null),(0,o.Cg)([(0,p.K)("data")],y.prototype,"writeData",null),(0,o.Cg)([(0,h.w)("data")],y.prototype,"readData",null),(0,o.Cg)([(0,l.MZ)({type:Boolean,json:{write:{overridePolicy(){return{enabled:this._isOverridden("transparent")}}}}})],y.prototype,"transparent",null),(0,o.Cg)([(0,l.MZ)({json:{write:!0}})],y.prototype,"wrap",void 0),(0,o.Cg)([(0,l.MZ)({readOnly:!0})],y.prototype,"contentHash",null),y=r=(0,o.Cg)([(0,l.$K)("esri.geometry.support.MeshTexture")],y)},51147(e,t,n){n.d(t,{A:()=>a});var r=n(5482),o=n(69540),i=n(25482),s=n(91429);let a=class extends((0,o.OU)(i.o)){constructor(e){super(e),this.offset=[0,0],this.rotation=0,this.scale=[1,1]}};(0,r.Cg)([(0,s.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],a.prototype,"offset",void 0),(0,r.Cg)([(0,s.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],a.prototype,"rotation",void 0),(0,r.Cg)([(0,s.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],a.prototype,"scale",void 0),a=(0,r.Cg)([(0,s.$K)("esri.geometry.support.MeshTextureTransform")],a)},1193(e,t,n){n.r(t),n.d(t,{default:()=>f});var r,o=n(5482),i=n(69540),s=n(25482),a=n(4718),l=n(53966),u=n(91429),c=n(31199);let f=r=class extends((0,i.OU)(s.o)){constructor(e){super(e),this.color=null,this.position=new Float64Array(0),this.uv=null,this.normal=null,this.tangent=null}castColor(e){return(0,c.b)(e,Uint8Array,[Uint8ClampedArray],{loggerTag:".color=",stride:4},l.A.getLogger(this))}castPosition(e){return e&&e instanceof Float32Array&&l.A.getLogger(this).warn(".position=","Setting position attribute from a Float32Array may cause precision problems. Consider storing data in a Float64Array or a regular number array"),(0,c.b)(e,Float64Array,[Float32Array],{loggerTag:".position=",stride:3},l.A.getLogger(this))}castUv(e){return(0,c.b)(e,Float32Array,[Float64Array],{loggerTag:".uv=",stride:2},l.A.getLogger(this))}castNormal(e){return(0,c.b)(e,Float32Array,[Float64Array],{loggerTag:".normal=",stride:3},l.A.getLogger(this))}castTangent(e){return(0,c.b)(e,Float32Array,[Float64Array],{loggerTag:".tangent=",stride:4},l.A.getLogger(this))}clonePositional(){const e={position:(0,a.o8)(this.position),normal:(0,a.o8)(this.normal),tangent:(0,a.o8)(this.tangent),uv:this.uv,color:this.color};return new r(e)}get usedMemory(){return this.position.byteLength+(this.uv?.byteLength??0)+(this.normal?.byteLength??0)+(this.tangent?.byteLength??0)+(this.color?.byteLength??0)}};(0,o.Cg)([(0,u.MZ)({json:{write:c.B}})],f.prototype,"color",void 0),(0,o.Cg)([(0,u.wg)("color")],f.prototype,"castColor",null),(0,o.Cg)([(0,u.MZ)({nonNullable:!0,json:{write:c.B}})],f.prototype,"position",void 0),(0,o.Cg)([(0,u.wg)("position")],f.prototype,"castPosition",null),(0,o.Cg)([(0,u.MZ)({json:{write:c.B}})],f.prototype,"uv",void 0),(0,o.Cg)([(0,u.wg)("uv")],f.prototype,"castUv",null),(0,o.Cg)([(0,u.MZ)({json:{write:c.B}})],f.prototype,"normal",void 0),(0,o.Cg)([(0,u.wg)("normal")],f.prototype,"castNormal",null),(0,o.Cg)([(0,u.MZ)({json:{write:c.B}})],f.prototype,"tangent",void 0),(0,o.Cg)([(0,u.wg)("tangent")],f.prototype,"castTangent",null),f=r=(0,o.Cg)([(0,u.$K)("esri.geometry.support.MeshVertexAttributes")],f)},31199(e,t,n){function r(e,t,n,r){const{loggerTag:o,stride:i}=t;return e.length%i!==0?(r.error(o,`Invalid array length, expected a multiple of ${i}`),new n([])):e}function o(e,t,n,o,i){if(!e)return e;if(e instanceof t)return r(e,o,t,i);for(const s of n)if(e instanceof s)return r(new t(e),o,t,i);if(Array.isArray(e))return r(new t(e),o,t,i);{const r=n.map(e=>`'${e.name}'`);return i.error(`Failed to set property, expected one of ${r}, but got ${e.constructor.name}`),new t([])}}function i(e,t,n){t[n]=function(e){const t=new Array(e.length);for(let n=0;n<e.length;n++)t[n]=e[n];return t}(e)}n.d(t,{B:()=>i,b:()=>o})},40118(e,t,n){n.d(t,{H5:()=>f,wh:()=>u,createWithExternalSource:()=>c});var r=n(49186),o=(n(17676),n(83300)),i=(n(16939),n(95696),n(73836)),s=(n(1193),n(27615));n(53966),n(35522),n(51850),n(66895),n(72258);var a=n(29461),l=n(15070);function u(e,t){return new o.default((0,l.UG)((0,l.Dk)(t?.densificationFactor||0),e,t))}function c(e,t,n){const r=n?.extent??null,{spatialReference:l}=e,u=n?.transform?.clone()??new i.A,c=(0,s.TE)(e,n),f=n?.unitConversionDisabled,p={source:t,extent:r,unitConversionDisabled:f},h=new a.O;return h.externalSources.push(p),new o.default({metadata:h,transform:u,vertexSpace:c,spatialReference:l})}function f(e,t){const{spatialReference:n}=e,a=t?.transform?.clone()??new i.A,l=(0,s.TE)(e,t),u=new o.default({transform:a,vertexSpace:l,spatialReference:n});return u.addResolvingPromise(Promise.reject(new r.A("mesh-incomplete","Mesh resources are not complete"))),u}n(41618)},63579(e,t,n){n.d(t,{Bq:()=>l,Qp:()=>a,WN:()=>y,dK:()=>m,eN:()=>h,fH:()=>d,in:()=>g,yr:()=>u});var r=n(11254),o=n(4576),i=n(17676),s=n(20557);class a{constructor(e,t,n){this.assetName=e,this.assetMimeType=t,this.parts=n}equals(e){return this===e||this.assetName===e.assetName&&this.assetMimeType===e.assetMimeType&&(0,o.aI)(this.parts,e.parts,(e,t)=>e.equals(t))}isOnService(e){return this.parts.every(t=>t.isOnService(e))}makeHash(){let e="";for(const t of this.parts)e+=t.partHash;return e}async toBlob(e){const{parts:t}=this;if(1===t.length)return t[0].toBlob(e);const n=await Promise.all(t.map(t=>t.toBlob(e)));return(0,i.Te)(e),new Blob(n)}}class l{constructor(e,t){this.partUrl=e,this.partHash=t}equals(e){return this===e||this.partUrl===e.partUrl&&this.partHash===e.partHash}isOnService(e){return this.partUrl.startsWith(`${e.path}/assets/`)}async toBlob(e){const{data:t}=await(0,r.A)(this.partUrl,{responseType:"blob"});return(0,i.Te)(e),t}}function u(e){return function(e){switch(e?.type){case"client":return Array.isArray(e.files)?e.files.some(p):p(e.files);case"service":return e.assets.some(p);case"loadable":return!0;default:return!1}}(e?.source)}const c=/^(model\/gltf\+json)|(model\/gltf-binary)$/,f=/\.(gltf|glb)/i;function p(e){if(e instanceof File){const{type:t,name:n}=e;return c.test(t)||f.test(n)}return c.test(e.assetMimeType)||f.test(e.assetName)}function h(e,t){if(!e)return!1;const{source:n}=e;return function(e,t){return"service"===e.type&&e.assets.every(e=>e.isOnService(t))}(n,t)}function g(e,t){if(e===t)return!0;const{source:n}=e,{source:r}=t;if(n===r)return!0;if("service"===n.type&&"service"===r.type){if(n.assets.length!==r.assets.length)return!1;const e=(e,t)=>e.assetName<t.assetName?-1:e.assetName>t.assetName?1:0,t=[...n.assets].sort(e),o=[...r.assets].sort(e);for(let e=0;e<t.length;++e)if(!t[e].equals(o[e]))return!1;return!0}return!1}function d(e,t){return e instanceof File?(0,s.rq)(e,t):(0,s.z$)(e.assetMimeType,e.assetName,t)}function y(e){switch(e.type){case"client":return Array.isArray(e.files)?e.files:[e.files];case"service":return e.assets;case"loadable":return}}function m(e){return!!e.original}},29461(e,t,n){n.d(t,{O:()=>u});var r=n(5482),o=n(69540),i=n(7762),s=n(36708),a=n(91429),l=n(63579);let u=class extends o.Pw{constructor(e){super(e),this.externalSources=new i.A,this._explicitDisplaySource=null,this.addHandles((0,s.on)(()=>this.externalSources,"after-remove",({item:e})=>{e===this._explicitDisplaySource&&(this._explicitDisplaySource=null)},{sync:!0,onListenerRemove:()=>this._explicitDisplaySource=null}))}get displaySource(){return this._explicitDisplaySource??this._implicitDisplaySource}set displaySource(e){if(null!=e&&!(0,l.yr)(e))throw new Error("Cannot use this source for display: it is not in a supported format.");this._explicitDisplaySource=e,e&&this.externalSources.every(t=>!(0,l.in)(t,e))&&this.externalSources.add(e)}clearSources(){this.externalSources.removeAll()}getExternalSourcesOnService(e){return this.externalSources.items.filter(t=>(0,l.eN)(t,e))}get _implicitDisplaySource(){return this.externalSources.find(l.yr)}};(0,r.Cg)([(0,a.MZ)()],u.prototype,"externalSources",void 0),(0,r.Cg)([(0,a.MZ)()],u.prototype,"displaySource",null),(0,r.Cg)([(0,a.MZ)()],u.prototype,"_implicitDisplaySource",null),(0,r.Cg)([(0,a.MZ)()],u.prototype,"_explicitDisplaySource",void 0),u=(0,r.Cg)([(0,a.$K)("esri.geometry.support.meshUtils.Metadata")],u)},66895(e,t,n){n.d(t,{$N:()=>c,Lz:()=>i,QN:()=>f,WO:()=>l,hz:()=>a,o2:()=>o});const r=Symbol("meshContext");function o(e){return e&&"object"==typeof e&&r in e?e[r]:void 0}function i(e,t){const n=o(e);return{...e,[r]:{...n,...t}}}const s=Symbol("meshMaterialContext");function a(e){return e&&"object"==typeof e&&s in e?e[s]:void 0}function l(e){const t=a(e);if(t?.materialMap)return e;const n={materialMap:new Map};return{...e,[s]:n}}const u=Symbol("meshTextureContext");function c(e){return e&&"object"==typeof e&&u in e?e[u]:void 0}function f(e){const t=c(e);if(t?.textureMap)return e;const n={textureMap:new Map};return{...e,[u]:n}}},15070(e,t,n){n.d(t,{Dk:()=>p,H8:()=>c,UG:()=>m,Uh:()=>d,ai:()=>h,bQ:()=>f,uF:()=>g});var r=n(29242),o=n(35522),i=n(51850),s=n(16939),a=n(1193),l=n(27615),u=n(72258);function c(){const{faceDescriptions:e,faceVertexOffsets:t,uvScales:n}=x,r=4*e.length,o=new Float64Array(3*r),i=new Float32Array(3*r),s=new Float32Array(2*r),a=new Uint32Array(2*e.length*3);let l=0,u=0,c=0,f=0;for(let r=0;r<e.length;r++){const p=e[r],h=l/3;for(const e of t)a[f++]=h+e;const g=p.corners;for(let e=0;e<4;e++){const t=g[e];let r=0;s[c++]=.25*n[e][0]+p.uvOrigin[0],s[c++]=p.uvOrigin[1]-.25*n[e][1];for(let e=0;e<3;e++)0!==p.axis[e]?(o[l++]=.5*p.axis[e],i[u++]=p.axis[e]):(o[l++]=.5*t[r++],i[u++]=0)}}return{position:o,normal:i,uv:s,faces:a}}function f(e,t){const n=e.components[0],r=n.faces,o=v[t],i=6*o,a=new Array(6),l=new Array(r.length-6);let u=0,c=0;for(let e=0;e<r.length;e++)e>=i&&e<i+6?a[u++]=r[e]:l[c++]=r[e];if(null!=e.vertexAttributes.uv){const t=new Float32Array(e.vertexAttributes.uv),n=4*o*2,r=[0,1,1,1,1,0,0,0];for(let e=0;e<r.length;e++)t[n+e]=r[e];e.vertexAttributes.uv=t}return e.components=[new s.default({faces:a,material:n.material}),new s.default({faces:l})],e}function p(e=0){const t=Math.round(8*2**e),n=2*t,r=(t-1)*(n+1)+2*n,o=new Float64Array(3*r),i=new Float32Array(3*r),s=new Float32Array(2*r),a=new Uint32Array((t-1)*n*2*3);let l=0,u=0,c=0,f=0;for(let e=0;e<=t;e++){const r=e/t*Math.PI+.5*Math.PI,p=Math.cos(r),h=Math.sin(r);w[2]=h;const g=0===e||e===t,d=g?n-1:n;for(let r=0;r<=d;r++){const h=r/d*2*Math.PI;w[0]=-Math.sin(h)*p,w[1]=Math.cos(h)*p;for(let e=0;e<3;e++)o[l]=.5*w[e],i[l]=w[e],++l;s[u++]=(r+(g?.5:0))/n,s[u++]=e/t,0!==e&&r!==n&&(e!==t&&(a[c++]=f,a[c++]=f+1,a[c++]=f-n),1!==e&&(a[c++]=f,a[c++]=f-n,a[c++]=f-n-1)),f++}}return{position:o,normal:i,uv:s,faces:a}}function h(e=0){const t=Math.round(16*2**e),n=4*(t+1)+2*t,r=new Float64Array(3*n),o=new Float32Array(3*n),i=new Float32Array(2*n),s=new Uint32Array(4*t*3);let a=0,l=0,u=0,c=0,f=0;for(let e=0;e<=5;e++){const n=0===e||5===e,p=e<=1||e>=4,h=2===e||4===e,g=n?t-1:t;for(let d=0;d<=g;d++){const y=d/g*2*Math.PI,m=n?0:.5;w[0]=m*Math.sin(y),w[1]=m*-Math.cos(y),w[2]=e<=2?.5:-.5;for(let t=0;t<3;t++)r[a++]=w[t],o[l++]=p?2===t?e<=1?1:-1:0:2===t?0:w[t]/m;i[u++]=(d+(n?.5:0))/t,i[u++]=e<=1?1*e/3:e<=3?1*(e-2)/3+1/3:1*(e-4)/3+2/3,h||0===e||d===t||(5!==e&&(s[c++]=f,s[c++]=f+1,s[c++]=f-t),1!==e&&(s[c++]=f,s[c++]=f-t,s[c++]=f-t-1)),f++}}return{position:r,normal:o,uv:i,faces:s}}function g(e,t){const n="number"==typeof t?t:null!=t?t.width:1,r="number"==typeof t?t:null!=t?t.height:1;switch(e){case"up":case"down":return{width:n,depth:r};case"north":case"south":return{width:n,height:r};case"east":case"west":return{depth:n,height:r}}}function d(e){const t=y.facingAxisOrderSwap[e],n=y.position,r=y.normal,o=new Float64Array(n.length),i=new Float32Array(r.length);let s=0;for(let e=0;e<4;e++){const e=s;for(let a=0;a<3;a++){const l=t[a],u=Math.abs(l)-1,c=l>=0?1:-1;o[s]=n[e+u]*c,i[s]=r[e+u]*c,s++}}return{position:o,normal:i,uv:new Float32Array(y.uv),faces:new Uint32Array(y.faces),isPlane:!0}}const y={position:[-.5,-.5,0,.5,-.5,0,.5,.5,0,-.5,.5,0],normal:[0,0,1,0,0,1,0,0,1,0,0,1],uv:[0,1,1,1,1,0,0,0],faces:[0,1,2,0,2,3],facingAxisOrderSwap:{east:[3,1,2],west:[-3,-1,2],north:[-1,3,2],south:[1,-3,2],up:[1,2,3],down:[1,-2,-3]}};function m(e,t,n){e.isPlane||function(e){for(let t=0;t<e.position.length;t+=3)e.position[t+2]+=.5}(e),function(e,t){if(null!=t){A[0]=t[0],A[4]=t[1],A[8]=t[2];for(let t=0;t<e.position.length;t+=3){for(let n=0;n<3;n++)w[n]=e.position[t+n];(0,o.ei)(w,w,A);for(let n=0;n<3;n++)e.position[t+n]=w[n]}if(t[0]!==t[1]||t[1]!==t[2]){A[0]=1/t[0],A[4]=1/t[1],A[8]=1/t[2];for(let t=0;t<e.normal.length;t+=3){for(let n=0;n<3;n++)w[n]=e.normal[t+n];(0,o.ei)(w,w,A),(0,o.S8)(w,w);for(let n=0;n<3;n++)e.normal[t+n]=w[n]}}}}(e,function(e,t,n){const r=(0,u.xK)(t,n);if(null==e&&1===r)return null;if(null==e)return[r,r,r];if("number"==typeof e){const t=e*r;return[t,t,t]}return[null!=e.width?e.width*r:r,null!=e.depth?e.depth*r:r,null!=e.height?e.height*r:r]}(n?.size,n?.unit,t.spatialReference));const r=(0,l.TE)(t,n),i=t.spatialReference.isGeographic?(0,l.TE)(t):r,c=(0,u.UR)({vertexAttributes:e,vertexSpace:i,spatialReference:t.spatialReference},r,{allowBufferReuse:!0});return{vertexAttributes:new a.default({...c,uv:e.uv}),vertexSpace:r,components:[new s.default({faces:e.faces,material:n?.material||null})],spatialReference:t.spatialReference}}const x={faceDescriptions:[{axis:[0,-1,0],uvOrigin:[0,.625],corners:[[-1,-1],[1,-1],[1,1],[-1,1]]},{axis:[1,0,0],uvOrigin:[.25,.625],corners:[[-1,-1],[1,-1],[1,1],[-1,1]]},{axis:[0,1,0],uvOrigin:[.5,.625],corners:[[1,-1],[-1,-1],[-1,1],[1,1]]},{axis:[-1,0,0],uvOrigin:[.75,.625],corners:[[1,-1],[-1,-1],[-1,1],[1,1]]},{axis:[0,0,1],uvOrigin:[0,.375],corners:[[-1,-1],[1,-1],[1,1],[-1,1]]},{axis:[0,0,-1],uvOrigin:[0,.875],corners:[[-1,1],[1,1],[1,-1],[-1,-1]]}],uvScales:[[0,0],[1,0],[1,1],[0,1]],faceVertexOffsets:[0,1,2,0,2,3]},v={south:0,east:1,north:2,west:3,up:4,down:5},w=(0,i.vt)(),A=(0,r.vt)()},22141(e,t,n){n.d(t,{$5:()=>b,CN:()=>x,KM:()=>M,Mv:()=>R,X4:()=>v,gr:()=>A,qs:()=>C,si:()=>w,xA:()=>T});var r=n(34727),o=n(77690),i=n(29242),s=n(58083),a=n(9093),l=n(35522),u=n(51850),c=n(73941),f=n(48353),p=n(9762),h=(n(79258),n(21325)),g=n(28735),d=n(13030),y=n(73354),m=n(50867);function x(e,t,n,r){e.error(`Failed to project from (wkid:${t.wkid}) to (wkid:${n.wkid}).${r?" ":""}${r}`)}function v(e,t,n,r,o,i){return E(0,d.xs.fromTypedArray(e),0,d.Xm.fromTypedArray(t),n,d.Xm.fromTypedArray(r),o,d.xs.fromTypedArray(i))?i:null}function w(e,t,n,r,o,i){return E(1,d.xs.fromTypedArray(e),0,d.Xm.fromTypedArray(t),n,d.Xm.fromTypedArray(r),o,d.xs.fromTypedArray(i))?i:null}function A(e,t,n,r){return(0,p.projectBuffer)(e,t,0,n,r,0)?n:null}function b(e,t,n,r){return(0,p.projectBuffer)(e,t,0,n,r,0)?n:null}function C(e,t,n){return(0,o.Ge)(_,n),(0,y.b)(t,e,_),(0,r.or)(_)&&(0,y.n)(t,t),t}function M(e,t,n){return(0,o.z0)(_,n),(0,m.t)(t,e,_),(0,r.or)(_)&&(0,y.n)(t,t,4),t}function T(e,t,n,r,o,i){if(!E(0,d.xs.fromTypedArray(e,4*Float32Array.BYTES_PER_ELEMENT),1,d.Xm.fromTypedArray(t),n,d.Xm.fromTypedArray(r),o,d.xs.fromTypedArray(i,4*Float32Array.BYTES_PER_ELEMENT)))return null;for(let t=3;t<e.length;t+=4)i[t]=e[t];return i}function R(e,t,n,r,o,i){if(!E(1,d.xs.fromTypedArray(e,16),1,d.Xm.fromTypedArray(t),n,d.Xm.fromTypedArray(r),o,d.xs.fromTypedArray(i,16)))return null;for(let t=3;t<e.length;t+=4)i[t]=e[t];return i}function S(e,t,n,r,i){switch((0,f.l)(r,n,U,r),1===e&&(0,s.B8)(U,U),t){case 0:return(0,o.Ge)(i,U);case 1:return(0,o.z0)(i,U)}}function E(e,t,n,r,o,i,s,a){if(!t)return;const u=r.count;if(function(e){return e.isWGS84||(0,h.x1)(e)||(0,c.q8)(e)||(0,c.KQ)(e)}(o))for(let r=0;r<u;r++)i.getVec(r,L),t.getVec(r,Z),(0,l.ei)(Z,Z,S(e,n,L,s,_)),a.setVec(r,Z);else for(let o=0;o<u;o++){i.getVec(o,L),t.getVec(o,Z);const u=(0,g.jg)(r.get(o,1));let c=Math.cos(u);1===n!=(0===e)&&(c=1/c),S(e,n,L,s,_),0===e?(_[0]*=c,_[1]*=c,_[2]*=c,_[3]*=c,_[4]*=c,_[5]*=c):(_[0]*=c,_[3]*=c,_[6]*=c,_[1]*=c,_[4]*=c,_[7]*=c),(0,l.ei)(Z,Z,_),(0,l.S8)(Z,Z),a.setVec(o,Z)}return a}const L=(0,u.vt)(),Z=(0,u.vt)(),U=(0,a.vt)(),_=(0,i.vt)();n.d(t,["JP",0,"Projection may be possible after calling projection.load()."])},72258(e,t,n){n.d(t,{UR:()=>A,p5:()=>w,xK:()=>S});var r=n(53966),o=n(34727),i=n(86211),s=n(77690),a=n(29242),l=n(58083),u=n(9093),c=n(35522),f=n(51850),p=n(73941),h=n(98764),g=n(48353),d=n(65806),y=n(27615),m=n(73354),x=n(22141);const v=()=>r.A.getLogger("esri.geometry.support.meshUtils.vertexSpaceConversion");function w(e,t,{vertexSpace:n,spatialReference:r}){if("georeferenced"===n.type){const o=e;if(!(0,d.g)(t,o,r))return!1;const{origin:i}=n;return(0,c.Re)(e,o,i),!0}const o=(0,h.lO)(r),i=e;if(!(0,d.g)(t,i,o))return!1;const{origin:s}=n,a=_;if(!(0,g.l)(r,s,a,o))return!1;const u=(0,l.B8)(_,a);return null!=u&&((0,c.Z0)(e,i,u),!0)}function A(e,t,n){const{vertexSpace:r,transform:o,vertexAttributes:i}=e,a=(0,y.Hq)(r)?o:null,f=T(e.spatialReference,n,3);if((0,y.yJ)(r,t)&&(!a||(0,l.t2)(a.localMatrix,u.zK))&&R(f)){const{position:e,normal:t,tangent:r}=i,o=n?.allowBufferReuse;return{position:o?e:e.slice(),normal:o?t:t?.slice(),tangent:o?r:r?.slice()}}switch(e.vertexSpace.type){case"local":return"local"===t.type?function({vertexAttributes:e,spatialReference:t,transform:n},{origin:r},o,i){const s=b(t,i);if(!(0,g.l)(t,r,E,s))return(0,x.CN)(v(),t,s),null;if(n&&(0,l.lw)(E,E,n.localMatrix),!(0,g.l)(t,o,L,s))return(0,x.CN)(v(),s,t),null;(0,l.B8)(L,L);const a=(0,l.lw)(E,L,E);return M(a,t,i,3),C(e,a)}(e,e.vertexSpace,t.origin,n):function({spatialReference:e,vertexAttributes:t,transform:n},{origin:r},o,i){const s=b(e,i);if(!(0,g.l)(e,r,E,s))return(0,x.CN)(v(),e,s),null;n&&(0,l.lw)(E,E,n.localMatrix),M(E,e,i,1);const a=new Float64Array(t.position.length),u=function(e,t,n,r,o){(0,m.t)(r,e,t);const i=new Float64Array(e.length);return(0,x.$5)(r,o,i,n)?i:((0,x.CN)(v(),o,n),null)}(t.position,E,e,a,s);if(!u)return null;const f=function(e,t,n,r,o,i){if(null==o)return null;const s=new Float32Array(o.length);return(0,x.qs)(o,s,i),(0,x.si)(s,e,t,n,r,s)?s:((0,x.CN)(v(),r,t),null)}(u,e,a,s,t.normal,E);if(t.normal&&!f)return null;const p=function(e,t,n,r,o,i){if(null==o)return null;const s=new Float32Array(o.length);return(0,x.KM)(o,s,i),(0,x.Mv)(s,e,t,n,r,s)?s:((0,x.CN)(v(),r,t),null)}(u,e,a,s,t.tangent,E);if(t.tangent&&!p)return null;if(o){const e=(0,c.ze)(U,o);(0,m.a)(u,u,e)}return{position:u,normal:f,tangent:p}}(e,e.vertexSpace,t.origin,n);case"georeferenced":return"local"===t.type?function({vertexAttributes:e,spatialReference:t,transform:n},{origin:r},o,i){const a=b(t,i);if(!(0,g.l)(t,o,E,a))return(0,x.CN)(v(),t,a),null;const u=1/T(t,i,2);(0,l.hs)(E,E,[u,u,u]);const c=(0,l.B8)(L,E),{position:f,normal:p,tangent:h}=function(e,t,n){if(!t)return e;if(!n){const{position:n,normal:r,tangent:o}=e;return{position:(0,m.a)(new Float64Array(n.length),n,t),tangent:o,normal:r}}const r=C(e,n.localMatrix);return(0,m.a)(r.position,r.position,t),r}(e,r,n),d=new Float64Array(f.length),y=function(e,t,n,r,o){const i=(0,x.gr)(e,t,r,o);if(!i)return(0,x.CN)(v(),t,o),null;const s=new Float64Array(i.length);return(0,m.t)(s,i,n),s}(f,t,c,d,a);if(!y)return null;const w=(0,s.Ge)(Z,c),A=function(e,t,n,r,o,i,s){if(null==e)return null;const a=s??new Float32Array(e.length);return(0,x.X4)(e,t,n,r,o,a)?((0,m.b)(a,a,i),a):((0,x.CN)(v(),n,o),null)}(p,f,t,d,a,w,p!==e.normal?p:void 0);if(!A&&p)return null;const M=function(e,t,n,r,o,i,s){if(null==e)return null;const a=s??new Float32Array(e.length);return(0,x.xA)(e,t,n,r,o,a)?((0,m.b)(a,a,i,4),a):((0,x.CN)(v(),n,o),null)}(h,f,t,d,a,w,h!==e.tangent?h:void 0);return!M&&h?null:{position:y,normal:A,tangent:M}}(e,e.vertexSpace,t.origin,n):function({vertexAttributes:e,transform:t,spatialReference:n},{origin:r},o,i){const s=T(n,i,3),a=r||!R(s)?(0,l.C)(E,t?.localMatrix??u.zK):null;a&&M(a,n,i,3);const{position:f,normal:p,tangent:h}=a?C(e,a):e,g=i?.allowBufferReuse,d=g?f:new Float64Array(f.length);let y=f;if(r&&(y=(0,m.a)(d,y,r)),o){const e=(0,c.ze)(U,o);y=(0,m.a)(d,y,e)}return{position:y!==e.position||g?y:y.slice(),normal:p!==e.normal||g?p:p?.slice(),tangent:h!==e.tangent||g?h:h?.slice()}}(e,e.vertexSpace,t.origin,n)}}function b(e,t){return t?.useEllipsoid&&(0,p.B3)(e)?h.Y0:(0,h.lO)(e)}function C(e,t){const n=new Float64Array(e.position.length);(0,m.t)(n,e.position,t);const r=e.normal?new Float32Array(e.normal.length):null,o=e.tangent?new Float32Array(e.tangent.length):null;return r&&e.normal&&(0,x.qs)(e.normal,r,t),o&&e.tangent&&(0,x.KM)(e.tangent,o,t),{position:n,normal:r,tangent:o}}function M(e,t,n,r){const o=T(t,n,r);R(o)||(0,l.hs)(e,e,[o,o,o])}function T(e,t,n){const r=!!(1&n),o=!!(2&n),i=t?.sourceUnit,s=t?.targetUnit;if(!i&&!s)return 1;let a=S(i,e);r||!i||R(a)||(v().warn("source unit conversion not supported"),a=1);let l=1/S(s,e);return o||!s||R(l)||(v().warn("target unit conversion not supported"),l=1),a*l}function R(e){return(0,o.Io)(e,1)}function S(e,t){if(null==e)return 1;const n=(0,i.KX)(t);return 1/(0,i.oU)(n,"meters",e)}const E=(0,u.vt)(),L=(0,u.vt)(),Z=(0,a.vt)(),U=(0,f.vt)(),_=(0,u.vt)()},27615(e,t,n){n.d(t,{CK:()=>l,Hq:()=>a,MW:()=>u,TE:()=>c,yJ:()=>f});var r=n(35522),o=n(86738),i=n(95696),s=n(18251);function a(e){return null!=e.origin}function l(e){return a(e.vertexSpace)}function u(e,t){if(!a(e))return null;const[n,r,i]=e.origin;return new o.A({x:n,y:r,z:i,spatialReference:t})}function c(e,t){const{x:n,y:r,z:o,spatialReference:a}=e,l=[n,r,o??0];return"local"===(t?.vertexSpace??function(e){return e.isGeographic||e.isWebMercator?"local":"georeferenced"}(a))?new s.A({origin:l}):new i.A({origin:l})}function f(e,t){return e.type===t.type&&(e.origin===t.origin||null!=e.origin&&null!=t.origin&&(0,r.t2)(e.origin,t.origin))}},41618(e,t,n){n.d(t,{uM:()=>_});var r=n(17676),o=(n(9762),n(4197)),i=(n(58083),n(9093)),s=n(51850);n(48353),(0,i.vt)(),new class{constructor(){this.verticalDistanceToGround=0,this.sampledElevation=0,this.z=0}},(0,s.vt)(),n(44208),n(53966);var a=n(62788),l=n(95488),u=n(83349),c=n(15585),f=n(95108),p=n(97146),h=n(34727),g=n(86211),d=n(35522),y=n(27921);function m(e,t,n){const r=function(e,t,n,r){const o=(e=>!Array.isArray(e[0]))(t)?(e,n)=>t[3*e+n]:(e,n)=>t[e][n],i=(0,g.GA)(r)/(0,g.G9)(r);return(0,y.lU)(e,(e,t)=>(0,d.hZ)(e,o(t,0)*i,o(t,1)*i,o(t,2)),n)}(x,e,t,n)?(0,y.Qj)(x):[0,0,1];return Math.abs(r[2])>Math.cos((0,h.kU)(80))?2:Math.abs(r[1])>Math.abs(r[0])?1:0}const x=(0,y.vt)();function v(e,t,n){if(!t)return 2;let r=null;for(const o of e){const e=E(o,t),i=e<3?2:m(o,e,n);if(r??=i,i!==r)return 2}return r??2}function w(e,t,n){if(!t)return!(0,f.$3)(e);if(e.length<3)return!1;switch(n){case 0:return!(0,f.$3)(e,1,2);case 1:return!(0,f.$3)(e,0,2);case 2:return!(0,f.$3)(e,0,1)}}const A=new l.I;let b=new WeakSet;function C(e,t){if(!(0,c.O9)())return L("libtess-not-loaded");const n=null!=t.outlines,{positions:r,mergedPathLengths:i}=function(e){const t=function(e){const t=e.reduce((e,t)=>e+t.pathLengths.length,0),n=new Array(t);let r=0;for(let t=0;t<e.length;t++){const o=e[t].pathLengths;for(let e=0;e<o.length;e++)n[r++]=o[e]}return n}(e.polygons),n=3*e.polygonVertexCount;return n===e.positions.length?{positions:e.positions,mergedPathLengths:t}:{positions:(0,o.l5)(e.positions,0,n),mergedPathLengths:t}}(e),s=performance.now(),{vertices:a,indices:l,outlineIndices:u,outlineRingLengths:f}=(0,c.O5)(r,i,3,n),h=performance.now()-s;if(null!=t.owner&&h>250&&b.add(t.owner),a.length%3!=0)return L("positions-not-multiple-of-3");const{positions:g,outlineIndexBuffer:d,mergedOutlineRingLengths:y}=n?function(e,t,n,r,i){const s=e.polygonVertexCount,a=n.length/3,l=(t??[]).values().filter(e=>e.index>=s).map(e=>({index:a+e.index-s,count:e.count})).toArray();if(0===l.length)return{positions:n,outlineIndexBuffer:r,mergedOutlineRingLengths:i};const u=3*s,c=(0,o.l5)(e.positions,u,e.positions.length-u),f=(0,o.yH)(n,c),{outlineIndexBuffer:h,outlineRingLengths:g}=T(l,f);return{positions:f,outlineIndexBuffer:(0,p.lC)(r,h,f.length/3),mergedOutlineRingLengths:(0,p.lC)(i,g,i.length+g.length)}}(e,t.outlines,a,u,f):{positions:a,outlineIndexBuffer:void 0,mergedOutlineRingLengths:void 0};return{succeeded:!0,positions:g,indices:l,outlineIndexBuffer:d,outlineRingLengths:y,vertexCount:g.length/3,method:"libtess"}}function M(e,t,n){for(let r=0;r<e.length;r+=3){const o=e[r+t];e[r+t]=e[r+n],e[r+n]=o}}function T(e,t){const n=(0,p.my)(e.length);let r=0;for(let o=0;o<e.length;o++){const i=e[o],s=i.count;if(s<=0){n[o]=0;continue}const a=3*i.index,l=3*(i.index+s-1),u=s>1&&t[a]===t[l]&&t[a+1]===t[l+1]&&t[a+2]===t[l+2]?s-1:s,c=u>0?u+1:0;n[o]=c,r+=c}const o=(0,p.my)(r,t.length/3);let i=0;for(let t=0;t<e.length;t++){const r=n[t];if(0===r)continue;const s=e[t].index,a=r-1;for(let e=0;e<a;e++)o[i++]=s+e;o[i++]=s}return{outlineIndexBuffer:o,outlineRingLengths:n}}function R(e,{index:t,count:n}){return(0,o.l5)(e,3*t,3*n)}function S(e,t,n,r,o,i){let s=i?e.length-1:0;const a=i?-1:1;n*=3;for(let i=0;i<r;++i){const r=e[s];t[n++]=r[0],t[n++]=r[1],t[n++]=o&&null!=r[2]?r[2]:0,s+=a}return n/3}function E(e,t){return function(e,t){const n=e.length;if(n<2)return!1;const r=e[0],o=e[n-1];return r[0]===o[0]&&r[1]===o[1]&&(!t||r[2]===o[2])}(e,t)?e.length-1:e.length}function L(e){return{succeeded:!1,message:e}}class Z{constructor(e,t,n,r){this.positions=e,this.polygonIndices=t,this.outline=n,this.projectionSuccess=r,this.count=e.length/3}get vertexCount(){return this.positions.length/3}get polygonIndexCount(){return this.polygonIndices.length}get outlineIndexCount(){const{outline:e}=this;if("tessellated-indices"!==e.output)return 0;let t=0;for(let n=0;n<e.outlineIndices.length;n++)t+=I(e.outlineIndices[n]);return t}get outlineSegmentCount(){const{outline:e}=this;if("tessellated-indices"!==e.output)return 0;let t=0;for(let n=0;n<e.outlineIndices.length;n++)t+=I(e.outlineIndices[n]);return t}}class U extends Z{}function _(e,t){const{projectIfNearlyVertical:n=!1,outlineOutput:i="none",method:s,owner:l}=t??{},f="tessellated-indices"===i,h=v(e.rings,!!e.hasZ,e.spatialReference),g=function(e,t){const{hasZ:n,ccwRingsAsHoles:r,spatialReference:i}=t,s=t.axis??v(e,n,i),a=e.length,l=[],u=[],c=[],f=[],p=e.reduce((e,t)=>e+t.length,0);let h=0;const g=(0,o.jh)(3*p);let d=0;const y=r&&e[0]&&w(e[0],n,s);for(let t=a-1;t>=0;t--){const o=e[t],i=E(o,n);if(i<3){i>1&&f.push(o);continue}const a=!!r&&w(o,n,s);if(y?!a:a)l[h++]=o;else{let e=o.length;for(let t=0;t<h;++t)e+=l[t].length;const t={index:d,pathLengths:new Array(h+1),count:e,holeIndices:new Array(h)};t.pathLengths[0]=o.length,o.length>0&&c.push({index:d,count:o.length}),d=S(o,g,d,o.length,n,y);for(let e=0;e<h;++e){const r=l[e];t.holeIndices[e]=d,t.pathLengths[e+1]=r.length,r.length>0&&c.push({index:d,count:r.length}),d=S(r,g,d,r.length,n,y)}h=0,t.count>0&&u.push(t)}}const m=d;for(const e of f)c.push({index:d,count:e.length}),d=S(e,g,d,e.length,n,y);return{positions:3*d===g.length?g:(0,o.l5)(g,0,3*d),polygonVertexCount:m,polygons:u,outlines:c}}(e.rings,{hasZ:!!e.hasZ,ccwRingsAsHoles:!0,spatialReference:e.spatialReference,axis:h}),d=function(e,t){const n=function(e,t){const n={method:t?.method??"auto",projectionAxis:t?.projectionAxis??void 0,outlines:t?.outlines??void 0,owner:t?.owner??void 0},{projectionAxis:r}=n,o=null!=r&&2!==r;o&&M(e.positions,r,2);const i=function(e,t){if("libtess"===t.method)return C(e,t);const n=function(e,t){const n=null!=t.owner&&b.has(t.owner);return"auto"===t.method&&!(n&&e.polygonVertexCount>=1e4)}(e,t),r=Array();let o=0;for(const i of e.polygons){const s=R(e.positions,i),a=(i.holeIndices??[]).map(e=>e-i.index),l=a.length>0?a:null,c=(0,u.e)(s,l,3),f=u.e.deviation(s,a,3,c);if(n&&f>1e-5)return C(e,t);for(let e=0;e<c.length;e++)r.push(c[e]+i.index);o=Math.max(o,f)}const{outlineIndexBuffer:i,outlineRingLengths:s}=null!=t.outlines?T(t.outlines,e.positions):{outlineIndexBuffer:void 0,outlineRingLengths:void 0};return{succeeded:!0,positions:e.positions,indices:(0,p.uW)(r),outlineIndexBuffer:i,outlineRingLengths:s,vertexCount:e.positions.length/3,method:"earcut",deviation:o}}(e,n);if(o){const t=i.succeeded?i.positions:null;null!=t&&t!==e.positions&&M(t,2,r),M(e.positions,2,r)}return i}(e,t);return n.succeeded?n:"libtess-not-loaded"===n.message?((0,a.gc)(A),async function(){try{await(0,c.l3)(),A.notify()}catch(e){throw e}}()):n}(g,{projectionAxis:n?h:void 0,outlines:f?g.outlines:void 0,method:s,owner:l});if((0,r.$X)(d))return d;if(!d.succeeded)return null;let y={output:"none"};if("vertex-data"===i){const e=d.positions!==g.positions?g.positions:g.positions.slice();y={output:"vertex-data",outlines:N(g.outlines,e)}}else"tessellated-indices"===i&&(y=function(e){const{outlineIndexBuffer:t,outlineRingLengths:n}=e;if(null==t||null==n)return{output:"none"};const r=new Array(n.length);let o=0;for(let e=0;e<n.length;e++){const i=n[e],s=t.slice(o,o+i);r[e]=s,o+=i}return{output:"tessellated-indices",outlineIndices:r}}(d));return new U(d.positions,d.indices,y,!0)}function N(e,t,n=null){return e.values().filter(({count:e})=>e>1).map(({index:e,count:r})=>{const i=3*e,s=3*r;return null!=n?new O(e,r,(0,o.l5)(t,i,s),(0,o.l5)(n,i,s)):new F(e,r,(0,o.l5)(t,i,s))}).toArray()}function I(e,t=0,n=e.length){return n>1&&e[t]===e[t+n-1]?n-1:n}class F{constructor(e,t,n){this.index=e,this.count=t,this.position=n}}class O extends F{constructor(e,t,n,r){super(e,t,n),this.mapPositions=r}}}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[118],{83349(e,t,n){function r(e,t,n){n=n||2;var r,i,a,l,u,c,p,h=t&&t.length,g=h?t[0]*n:e.length,d=o(e,0,g,n,!0),y=[];if(!d||d.next===d.prev)return y;if(h&&(d=f(e,t,d,n)),e.length>80*n){r=a=e[0],i=l=e[1];for(var m=n;m<g;m+=n)(u=e[m])<r&&(r=u),(c=e[m+1])<i&&(i=c),u>a&&(a=u),c>l&&(l=c);p=0!==(p=Math.max(a-r,l-i))?1/p:0}return s(d,y,n,r,i,p),y}function o(e,t,n,r,o){var i,s;if(o===U(e,t,n,r)>0)for(i=t;i<n;i+=r)s=E(i,e[i],e[i+1],s);else for(i=n-r;i>=t;i-=r)s=E(i,e[i],e[i+1],s);if(s&&b(s,s.next)){var a=s.next;L(s),s=a}return s}function i(e,t){if(!e)return e;t||(t=e);var n,r=e;do{if(n=!1,r.steiner||!b(r,r.next)&&0!==A(r.prev,r,r.next))r=r.next;else{var o=r.prev;if(L(r),(r=t=o)===r.next)break;n=!0}}while(n||r!==t);return t}function s(e,t,n,r,o,f,p){if(e){!p&&f&&y(e,r,o,f);for(var h,g,d=e;e.prev!==e.next;)if(h=e.prev,g=e.next,f?l(e,r,o,f):a(e))t.push(h.i/n),t.push(e.i/n),t.push(g.i/n),L(e),e=g.next,d=g.next;else if((e=g)===d){p?1===p?s(e=u(i(e),t,n),t,n,r,o,f,2):2===p&&c(e,t,n,r,o,f):s(i(e),t,n,r,o,f,1);break}}}function a(e){var t=e.prev,n=e,r=e.next;if(A(t,n,r)>=0)return!1;for(var o=e.next.next;o!==e.prev;){if(v(t.x,t.y,n.x,n.y,r.x,r.y,o.x,o.y)&&A(o.prev,o,o.next)>=0)return!1;o=o.next}return!0}function l(e,t,n,r){var o=e.prev,i=e,s=e.next;if(A(o,i,s)>=0)return!1;for(var a=o.x<i.x?o.x<s.x?o.x:s.x:i.x<s.x?i.x:s.x,l=o.y<i.y?o.y<s.y?o.y:s.y:i.y<s.y?i.y:s.y,u=o.x>i.x?o.x>s.x?o.x:s.x:i.x>s.x?i.x:s.x,c=o.y>i.y?o.y>s.y?o.y:s.y:i.y>s.y?i.y:s.y,f=m(a,l,t,n,r),p=m(u,c,t,n,r),h=e.prevZ,g=e.nextZ;h&&h.z>=f&&g&&g.z<=p;){if(h!==e.prev&&h!==e.next&&v(o.x,o.y,i.x,i.y,s.x,s.y,h.x,h.y)&&A(h.prev,h,h.next)>=0)return!1;if(h=h.prevZ,g!==e.prev&&g!==e.next&&v(o.x,o.y,i.x,i.y,s.x,s.y,g.x,g.y)&&A(g.prev,g,g.next)>=0)return!1;g=g.nextZ}for(;h&&h.z>=f;){if(h!==e.prev&&h!==e.next&&v(o.x,o.y,i.x,i.y,s.x,s.y,h.x,h.y)&&A(h.prev,h,h.next)>=0)return!1;h=h.prevZ}for(;g&&g.z<=p;){if(g!==e.prev&&g!==e.next&&v(o.x,o.y,i.x,i.y,s.x,s.y,g.x,g.y)&&A(g.prev,g,g.next)>=0)return!1;g=g.nextZ}return!0}function u(e,t,n){var r=e;do{var o=r.prev,s=r.next.next;!b(o,s)&&C(o,r,r.next,s)&&R(o,s)&&R(s,o)&&(t.push(o.i/n),t.push(r.i/n),t.push(s.i/n),L(r),L(r.next),r=e=s),r=r.next}while(r!==e);return i(r)}function c(e,t,n,r,o,a){var l=e;do{for(var u=l.next.next;u!==l.prev;){if(l.i!==u.i&&w(l,u)){var c=S(l,u);return l=i(l,l.next),c=i(c,c.next),s(l,t,n,r,o,a),void s(c,t,n,r,o,a)}u=u.next}l=l.next}while(l!==e)}function f(e,t,n,r){var s,a,l,u=[];for(s=0,a=t.length;s<a;s++)(l=o(e,t[s]*r,s<a-1?t[s+1]*r:e.length,r,!1))===l.next&&(l.steiner=!0),u.push(x(l));for(u.sort(p),s=0;s<u.length;s++)n=i(n=g(u[s],n),n.next);return n}function p(e,t){return e.x-t.x}function h(e){if(e.next.prev===e)return e;let t=e;for(;;){const n=t.next;if(n.prev===t||n===t||n===e)break;t=n}return t}function g(e,t){var n=function(e,t){var n,r=t,o=e.x,i=e.y,s=-1/0;do{if(i<=r.y&&i>=r.next.y&&r.next.y!==r.y){var a=r.x+(i-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(a<=o&&a>s){if(s=a,a===o){if(i===r.y)return r;if(i===r.next.y)return r.next}n=r.x<r.next.x?r:r.next}}r=r.next}while(r!==t);if(!n)return null;if(o===s)return n;var l,u=n,c=n.x,f=n.y,p=1/0;r=n;do{o>=r.x&&r.x>=c&&o!==r.x&&v(i<f?o:s,i,c,f,i<f?s:o,i,r.x,r.y)&&(l=Math.abs(i-r.y)/(o-r.x),R(r,e)&&(l<p||l===p&&(r.x>n.x||r.x===n.x&&d(n,r)))&&(n=r,p=l)),r=r.next}while(r!==u);return n}(e,t);if(!n)return t;var r=S(n,e),o=i(n,n.next);let s=h(r);return i(s,s.next),o=h(o),h(t===n?o:t)}function d(e,t){return A(e.prev,e,t.prev)<0&&A(t.next,e,e.next)<0}function y(e,t,n,r){var o=e;do{null===o.z&&(o.z=m(o.x,o.y,t,n,r)),o.prevZ=o.prev,o.nextZ=o.next,o=o.next}while(o!==e);o.prevZ.nextZ=null,o.prevZ=null,function(e){var t,n,r,o,i,s,a,l,u=1;do{for(n=e,e=null,i=null,s=0;n;){for(s++,r=n,a=0,t=0;t<u&&(a++,r=r.nextZ);t++);for(l=u;a>0||l>0&&r;)0!==a&&(0===l||!r||n.z<=r.z)?(o=n,n=n.nextZ,a--):(o=r,r=r.nextZ,l--),i?i.nextZ=o:e=o,o.prevZ=i,i=o;n=r}i.nextZ=null,u*=2}while(s>1)}(o)}function m(e,t,n,r,o){return(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=32767*(e-n)*o)|e<<8))|e<<4))|e<<2))|e<<1))|(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=32767*(t-r)*o)|t<<8))|t<<4))|t<<2))|t<<1))<<1}function x(e){var t=e,n=e;do{(t.x<n.x||t.x===n.x&&t.y<n.y)&&(n=t),t=t.next}while(t!==e);return n}function v(e,t,n,r,o,i,s,a){return(o-s)*(t-a)-(e-s)*(i-a)>=0&&(e-s)*(r-a)-(n-s)*(t-a)>=0&&(n-s)*(i-a)-(o-s)*(r-a)>=0}function w(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!function(e,t){var n=e;do{if(n.i!==e.i&&n.next.i!==e.i&&n.i!==t.i&&n.next.i!==t.i&&C(n,n.next,e,t))return!0;n=n.next}while(n!==e);return!1}(e,t)&&(R(e,t)&&R(t,e)&&function(e,t){var n=e,r=!1,o=(e.x+t.x)/2,i=(e.y+t.y)/2;do{n.y>i!=n.next.y>i&&n.next.y!==n.y&&o<(n.next.x-n.x)*(i-n.y)/(n.next.y-n.y)+n.x&&(r=!r),n=n.next}while(n!==e);return r}(e,t)&&(A(e.prev,e,t.prev)||A(e,t.prev,t))||b(e,t)&&A(e.prev,e,e.next)>0&&A(t.prev,t,t.next)>0)}function A(e,t,n){return(t.y-e.y)*(n.x-t.x)-(t.x-e.x)*(n.y-t.y)}function b(e,t){return e.x===t.x&&e.y===t.y}function C(e,t,n,r){var o=T(A(e,t,n)),i=T(A(e,t,r)),s=T(A(n,r,e)),a=T(A(n,r,t));return o!==i&&s!==a||!(0!==o||!M(e,n,t))||!(0!==i||!M(e,r,t))||!(0!==s||!M(n,e,r))||!(0!==a||!M(n,t,r))}function M(e,t,n){return t.x<=Math.max(e.x,n.x)&&t.x>=Math.min(e.x,n.x)&&t.y<=Math.max(e.y,n.y)&&t.y>=Math.min(e.y,n.y)}function T(e){return e>0?1:e<0?-1:0}function R(e,t){return A(e.prev,e,e.next)<0?A(e,t,e.next)>=0&&A(e,e.prev,t)>=0:A(e,t,e.prev)<0||A(e,e.next,t)<0}function S(e,t){var n=new Z(e.i,e.x,e.y),r=new Z(t.i,t.x,t.y),o=e.next,i=t.prev;return e.next=t,t.prev=e,n.next=o,o.prev=n,r.next=n,n.prev=r,i.next=r,r.prev=i,r}function E(e,t,n,r){var o=new Z(e,t,n);return r?(o.next=r.next,o.prev=r,r.next.prev=o,r.next=o):(o.prev=o,o.next=o),o}function L(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function Z(e,t,n){this.i=e,this.x=t,this.y=n,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function U(e,t,n,r){for(var o=0,i=t,s=n-r;i<n;i+=r)o+=(e[s]-e[i])*(e[i+1]+e[s+1]),s=i;return o}n.d(t,{e:()=>r}),r.deviation=function(e,t,n,r){var o=t&&t.length,i=o?t[0]*n:e.length,s=Math.abs(U(e,0,i,n));if(o)for(var a=0,l=t.length;a<l;a++){var u=t[a]*n,c=a<l-1?t[a+1]*n:e.length;s-=Math.abs(U(e,u,c,n))}var f=0;for(a=0;a<r.length;a+=3){var p=r[a]*n,h=r[a+1]*n,g=r[a+2]*n;f+=Math.abs((e[p]-e[g])*(e[h+1]-e[p+1])-(e[p]-e[h])*(e[g+1]-e[p+1]))}return 0===s&&0===f?0:Math.abs((f-s)/s)},r.flatten=function(e){for(var t=e[0][0].length,n={vertices:[],holes:[],dimensions:t},r=0,o=0;o<e.length;o++){for(var i=0;i<e[o].length;i++)for(var s=0;s<t;s++)n.vertices.push(e[o][i][s]);o>0&&(r+=e[o-1].length,n.holes.push(r))}return n}},21287(e,t,n){n.d(t,{M5:()=>f,eV:()=>c});var r=n(11254),o=n(49186),i=n(17676),s=n(84952),a=n(26306);let l=null,u=!0;function c(e,t,n,r){if(!t||!n)throw new Error("Cannot construct image data without dimensions");if(u)try{return new ImageData(e,t,n)}catch(e){u=!1}const o=function(e,t,n){return n||(l||(l=document.createElement("canvas"),l.width=1,l.height=1),n=l),n.getContext("2d").createImageData(e,t)}(t,n,r);return o.data.set(e,0),o}async function f(e,t){const{arrayBuffer:l,mediaType:u}=await async function(e,t){const n=(0,s.r$)(e);if(n?.isBase64)return{arrayBuffer:(0,a.M)(n.data),mediaType:n.mediaType};const o=await(0,r.A)(e,{responseType:"array-buffer",...t});return{arrayBuffer:o.data,mediaType:o.getHeader?.("Content-Type")??""}}(e,t),c="image/png"===u;if("image/gif"===u){const{isAnimatedGIF:e,parseGif:r}=await n.e(820).then(n.bind(n,10820));if(e(l))return r(l,t)}if(c){const{isAnimatedPNG:e,parseApng:r}=await n.e(2390).then(n.bind(n,22390));if(e(l))return r(l,t)}return async function(e,t){const n=window.URL.createObjectURL(e);try{const{data:e}=await(0,r.A)(n,{...t,responseType:"image"});return e}catch(e){if(!(0,i.zf)(e))throw new o.A("invalid-image",`Could not fetch requested image at ${n}`);throw e}finally{window.URL.revokeObjectURL(n)}}(new Blob([l],{type:u}),t)}},83300(e,t,n){n.r(t),n.d(t,{default:()=>Le});var r=n(5482),o=n(69540),i=n(92474),s=n(53966),a=n(61893),l=n(17676),u=n(36708),c=n(91429),f=n(51850),p=n(91075),h=n(86738),g=n(39829),d=n(70328),y=n(24770),m=n(16939),x=n(49186);const v="Expected location to be a Point instance";class w extends x.A{constructor(){super("invalid-input:location",v)}}var A=n(95696),b=n(18251),C=n(73836),M=n(1193),T=n(27615),R=n(35522),S=n(65806);function E(e,t){switch(e.type){case"georeferenced":return t.isGeographic;case"local":return t.isGeographic||t.isWebMercator}}var L=n(22141),Z=n(72258);const U=()=>s.A.getLogger("esri.geometry.support.meshUtils.centerAt");const _=(0,f.vt)(),N=(0,f.vt)(),I=(0,f.vt)();var F=n(9093),O=n(5443),j=n(99917),B=n(98764),P=n(48353),$=n(9762),z=n(4197),D=n(73354);const H=(0,F.vt)(),k=(0,z.jh)(24);var G=n(84952);function K(e){const t=(0,G.nM)(e.url);return n=>{const r=(0,G.V1)(n,t,t),o=r?r.replace(/^ *\.\//,""):null;return(o?e.files.get(o):null)??n}}async function V(e,t){switch(e.type){case"client":return Array.isArray(e.files)?function(e){if(!e.length)throw new x.A("mesh-load-external:missing-assets","There must be at least one file to load");return ee(e.map(e=>({name:e.name,mimeType:e.type,source:Y(e)})))}(e.files):Y(e.files);case"service":return async function(e,t){if(!e.length)throw new x.A("mesh-load-external:missing-assets","There must be at least one file to load");const n=await(0,l.nA)(e.map(async e=>{const n=await async function(e,t){const{parts:n,assetMimeType:r,assetName:o}=e;if(1===n.length)return new te(n[0].partUrl);const i=await e.toBlob(t);return(0,l.Te)(t),te.fromBlob(i,ne(o,r))}(e);return(0,l.Te)(t),{name:e.assetName,mimeType:e.assetMimeType,source:n}}));if((0,l.G4)(t))throw n.forEach(e=>e.source.dispose()),(0,l.NK)();return ee(n)}(e.assets,t);default:throw new x.A("mesh-load-external:invalid-source","Invalid source type")}}function Y(e){return te.fromBlob(e,ne(e.name,e.type))}const q=/^model\/gltf\+json$/,W=/^model\/gltf-binary$/,X=/\.gltf$/i,J=/\.glb$/i;function Q({mimeType:e,source:t,name:n}){return q.test(e)||X.test(n)?{url:t.url,type:"gltf"}:W.test(e)||J.test(n)?{url:t.url,type:"glb"}:null}function ee(e){const t=new Map;let n=null,r=null;for(const o of e){const{source:e,name:i}=o;n??=Q(o),"ESRI3DO_NORM.glb"===i&&(r=Q(o)),t.set(i,e.url),e.files.forEach((e,n)=>t.set(n,e))}const o=r??n;if(null==o)throw new x.A("mesh-load-external:missing-files","Missing files to load external mesh source");return new te(o.url,()=>e.forEach(({source:e})=>e.dispose()),t,o.type)}class te{constructor(e,t=()=>{},n=new Map,r){this.url=e,this.dispose=t,this.files=n,this.type=r}static fromBlob(e,t){const n=URL.createObjectURL(e);return new te(n,()=>URL.revokeObjectURL(n),void 0,t)}}function ne(e,t){return q.test(t)||X.test(e)?"gltf":W.test(t)||X.test(e)?"glb":void 0}var re=n(66895),oe=n(29461),ie=n(15070),se=n(77690),ae=n(29242),le=n(58083),ue=n(67026),ce=n(82534);const fe=()=>s.A.getLogger("esri.geometry.support.meshUtils.rotate");function pe(e,t,n,r=f.uY){if(null!=e){(0,le.$0)(ye,(0,y.$I)(t),(0,y.yo)(t));for(let t=0;t<e.length;t+=n){for(let n=0;n<3;n++)he[n]=e[t+n]-r[n];(0,R.Z0)(he,he,ye);for(let n=0;n<3;n++)e[t+n]=he[n]+r[n]}}}const he=(0,f.vt)(),ge=(0,F.vt)(),de=(0,y.vt)(),ye=(0,F.vt)(),me=(0,ae.vt)(),xe=(0,f.vt)(),ve=(0,ce.vt)(),we=()=>s.A.getLogger("esri.geometry.support.meshUtils.scale");function Ae(e,t,n=f.uY){if(e)for(let r=0;r<e.length;r+=3){for(let t=0;t<3;t++)be[t]=e[r+t]-n[t];(0,R.hs)(be,be,t);for(let t=0;t<3;t++)e[r+t]=be[t]+n[t]}}const be=(0,f.vt)(),Ce=(0,f.vt)(),Me=(0,F.vt)(),Te=(0,f.vt)();var Re,Se=n(41618);const Ee={base:null,key:"type",defaultKeyValue:"georeferenced",typeMap:{georeferenced:A.A,local:b.A}};let Le=Re=class extends((0,o.OU)((0,i.WV)((0,a.g)(p.A)))){constructor(e){super(e),this.components=null,this.vertexSpace=new A.A,this.transform=null,this.metadata=new oe.O,this.hasZ=!0,this.hasM=!1,this.vertexAttributes=new M.default,this.type="mesh"}initialize(){(0===this.metadata.externalSources.length||this.vertexAttributes.position.length)&&(this.loadStatus="loaded"),this.when(()=>{this.addHandles((0,u.wB)(()=>({vertexAttributes:this.vertexAttributes,components:this.components?.map(e=>e.clone())}),()=>this._clearSources(),{once:!0,sync:!0}))}).catch(()=>{})}get hasExtent(){return this.loaded?this.vertexAttributes.position.length>0&&(!this.components||this.components.length>0):null!=this.metadata.displaySource?.extent}get _transformedExtent(){const{spatialReference:e,vertexSpace:t}=this,n=this;return function(e){const{spatialReference:t,vertexSpace:n,untransformedBounds:r}=e,o=(0,d.gE)(r,k);if((0,T.Hq)(n)&&e.transform&&(0,D.t)(o,o,e.transform.localMatrix),"georeferenced"===n.type){const e=n.origin;return e&&(0,D.a)(o,o,e),(0,d.w1)((0,d.vY)(o),t)}const i=(0,B.lO)(t),s=n.origin;if(!(0,j.canProjectWithoutEngine)(i,t)){const[e,n,r]=s;return new O.A({xmin:e,ymin:n,zmin:r,xmax:e,ymax:n,zmax:r,spatialReference:t})}return(0,P.l)(t,s,H,i),(0,D.t)(o,o,H),(0,$.projectBuffer)(o,i,0,o,t,0),(0,d.w1)((0,d.vY)(o),t)}({get transform(){return n.transform},vertexSpace:t,spatialReference:e,untransformedBounds:this._untransformedBounds})}get _untransformedBounds(){const{vertexAttributes:{position:e},components:t}=this;return 0===e.length||0===t?.length?(0,d.vt)(d.v_):(0,d.vY)(e)}get origin(){const e=(0,T.MW)(this.vertexSpace,this.spatialReference);if(null!=e)return e;const{center:t,zmin:n}=this._transformedExtent;return new h.A({x:t.x,y:t.y,z:n,spatialReference:this.spatialReference})}get extent(){return this.loaded||null==this.metadata?.displaySource?.extent?this._transformedExtent:this.metadata.displaySource.extent.clone()}addComponent(e){this._checkIfLoaded("addComponent()")&&(this.components||(this.components=[]),this.components.push(m.default.from(e)),this.notifyChange("components"))}removeComponent(e){if(this._checkIfLoaded("removeComponent()")){if(this.components){const t=this.components.indexOf(e);if(-1!==t)return this.components.splice(t,1),void this.notifyChange("components")}s.A.getLogger(this).error("removeComponent()","Provided component is not part of the list of components")}}rotate(e,t,n,r){return(0,y.AU)(e,t,n,Ze),function(e,t,n){if(!e.vertexAttributes?.position||0===t[3])return;const{spatialReference:r,vertexSpace:o}=e,i=n?.origin??e.origin;(0,T.CK)(e)?function(e,t,n){e.transform??=new C.A;const{vertexSpace:r,transform:o,spatialReference:i}=e,[s,a,l]=r.origin,u=new h.A({x:s,y:a,z:l,spatialReference:i}),c=he;if(u.equals(n))(0,R.hZ)(c,0,0,0);else if(!(0,Z.p5)(c,n,e))return void(0,L.CN)(fe(),n.spatialReference,i,L.JP);(0,ue.x8)(ve,(0,y.yo)(t),(0,y.$I)(t));const p=(0,le.O7)(ge,ve,f.uY,f.Un,c),{localMatrix:g}=o,d=(0,le.lw)(ge,p,g);o.scale=(0,le.X_)((0,f.vt)(),d),(0,le.hs)(d,d,(0,R.DI)(he,o.scale));const m=o.rotationAxis;o.rotation=(0,y.ui)(d),0===o.rotationAngle&&(o.rotationAxis=m),o.translation=(0,le.sC)((0,f.vt)(),d)}(e,t,i):E(o,r)?function(e,t,n){const r=e.spatialReference,o=(0,B.lO)(r),i=xe;if(!(0,S.g)(n,i,o)&&((0,L.CN)(fe(),n.spatialReference,o,"Falling back to mesh origin"),!(0,S.g)(e.origin,i,o)))return void(0,L.CN)(fe(),e.origin.spatialReference,o);const s=e.vertexAttributes.position,a=e.vertexAttributes.normal,l=e.vertexAttributes.tangent,u=new Float64Array(s.length),c=null!=a?new Float32Array(a.length):null,f=null!=l?new Float32Array(l.length):null;(0,P.l)(o,i,ye,o),(0,se.z0)(me,ye);const p=de;(0,R.ei)((0,y.yo)(de),(0,y.yo)(t),me),p[3]=t[3],!(0,L.gr)(s,r,u,o)||null!=a&&null!=c&&!(0,L.X4)(a,s,r,u,o,c)||null!=l&&null!=f&&!(0,L.xA)(l,s,r,u,o,f)?(0,L.CN)(fe(),r,o):(pe(u,p,3,i),!(0,L.$5)(u,o,s,r)||null!=a&&null!=c&&(pe(c,p,3),!(0,L.si)(c,s,r,u,o,a))||null!=l&&null!=f&&(pe(f,p,4),!(0,L.Mv)(f,s,r,u,o,l))?(0,L.CN)(fe(),o,r):e.vertexAttributesChanged())}(e,t,i):function(e,t,n){const r=xe;if(!(0,S.g)(n,r,e.spatialReference)){const t=e.origin;return r[0]=t.x,r[1]=t.y,r[2]=t.z,void(0,L.CN)(fe(),n.spatialReference,e.spatialReference,L.JP)}pe(e.vertexAttributes.position,t,3,r),pe(e.vertexAttributes.normal,t,3),pe(e.vertexAttributes.tangent,t,4),e.vertexAttributesChanged()}(e,t,i)}(this,Ze,r),this}offset(e,t,n){if(!this._checkIfLoaded("offset()"))return this;const{vertexSpace:r,vertexAttributes:o}=this,i=o?.position;if(!i)return this;if((0,T.Hq)(r)){const[o,i,s]=r.origin;r.origin=(0,f.fA)(o+e,i+t,s+n)}else{for(let r=0;r<i.length;r+=3)i[r]+=e,i[r+1]+=t,i[r+2]+=n;this.vertexAttributesChanged()}return this}scale(e,t){return this._checkIfLoaded("scale()")?(function(e,t,n){if(!e.vertexAttributes?.position)return;const{vertexSpace:r,spatialReference:o}=e,i=n?.origin??e.origin;(0,T.CK)(e)?function(e,t,n){e.transform??=new C.A;const{vertexSpace:r,transform:o,spatialReference:i}=e,[s,a,l]=r.origin,u=new h.A({x:s,y:a,z:l,spatialReference:i}),c=be;if(u.equals(n))(0,R.hZ)(c,0,0,0);else if(!(0,Z.p5)(c,n,e))return void(0,L.CN)(we(),n.spatialReference,i,L.JP);const p=(0,R.hZ)(Ce,t,t,t),g=(0,le.O7)(Me,ce.zK,f.uY,p,c),{localMatrix:d}=o,m=(0,le.lw)(Me,g,d);o.scale=(0,le.X_)((0,f.vt)(),m),(0,le.hs)(m,m,(0,R.DI)(be,o.scale));const x=o.rotationAxis;o.rotation=(0,y.ui)(m),0===o.rotationAngle&&(o.rotationAxis=x),o.translation=(0,le.sC)((0,f.vt)(),m)}(e,t,i):E(r,o)?function(e,t,n){const r=e.spatialReference,o=(0,B.lO)(r),i=Te;if(!(0,S.g)(n,i,o)&&((0,L.CN)(we(),n.spatialReference,o,"Falling back to mesh origin"),!(0,S.g)(e.origin,i,o)))return void(0,L.CN)(we(),e.origin.spatialReference,o);const s=e.vertexAttributes.position,a=e.vertexAttributes.normal,l=e.vertexAttributes.tangent,u=new Float64Array(s.length),c=null!=a?new Float32Array(a.length):null,f=null!=l?new Float32Array(l.length):null;!(0,L.gr)(s,r,u,o)||null!=a&&null!=c&&!(0,L.X4)(a,s,r,u,o,c)||null!=l&&null!=f&&!(0,L.xA)(l,s,r,u,o,f)?(0,L.CN)(we(),r,o):(Ae(u,t,i),!(0,L.$5)(u,o,s,r)||null!=a&&null!=c&&!(0,L.si)(c,s,r,u,o,a)||null!=l&&null!=f&&!(0,L.Mv)(f,s,r,u,o,l)?(0,L.CN)(we(),o,r):e.vertexAttributesChanged())}(e,t,i):function(e,t,n){const r=Te;if(!(0,S.g)(n,r,e.spatialReference)){const t=e.origin;return r[0]=t.x,r[1]=t.y,r[2]=t.z,void(0,L.CN)(we(),n.spatialReference,e.spatialReference,L.JP)}Ae(e.vertexAttributes.position,t,r),e.vertexAttributesChanged()}(e,t,i)}(this,e,t),this):this}centerAt(e,t){return this._checkIfLoaded("centerAt()")?(function(e,t,n){if(!e.vertexAttributes?.position)return;const{vertexSpace:r}=e,o=n?.origin??e.origin;(0,T.Hq)(r)?function(e,t,n){const{vertexSpace:r}=e;if(!(0,T.Hq)(r))return;const o=N,i=_;if(!(0,S.g)(t,i,e.spatialReference))return void(0,L.CN)(U(),t.spatialReference,e.spatialReference,L.JP);if(!(0,S.g)(n,o,e.spatialReference))return void(0,L.CN)(U(),n.spatialReference,e.spatialReference,L.JP);const s=(0,R.Re)(I,i,o);r.origin=(0,R.WQ)((0,f.vt)(),r.origin,s)}(e,t,o):E(r,o.spatialReference)?function(e,t,n){const r=(0,f.fA)(n.x,n.y,n.z??0),o=(0,Z.UR)(e,new b.A({origin:r}));if(!o)return;const i=(0,f.fA)(t.x,t.y,t.z??0),s=(0,Z.UR)({vertexAttributes:o,spatialReference:e.spatialReference,vertexSpace:new b.A({origin:i})},A.A.absolute);if(!s)return;const{position:a,normal:l,tangent:u}=s;e.vertexAttributes.position=a,e.vertexAttributes.normal=l,e.vertexAttributes.tangent=u,e.vertexAttributesChanged()}(e,t,o):function(e,t,n){const r=N,o=_;if((0,S.g)(t,o,e.spatialReference)){if(!(0,S.g)(n,r,e.spatialReference)){const t=e.origin;return r[0]=t.x,r[1]=t.y,r[2]=t.z,void(0,L.CN)(U(),n.spatialReference,e.spatialReference,L.JP)}(function(e,t,n){if(e)for(let r=0;r<e.length;r+=3)for(let o=0;o<3;o++)e[r+o]+=t[o]-n[o]})(e.vertexAttributes.position,o,r),e.vertexAttributesChanged()}else(0,L.CN)(U(),t.spatialReference,e.spatialReference,L.JP)}(e,t,o)}(this,e,t),this):this}load(e){const{metadata:{displaySource:t}}=this;return t&&this.addResolvingPromise(async function(e,t,r){switch(t.source.type){case"client":case"service":return async function(e,t,r){const{source:o}=t,{loadGLTFMesh:i}=await(0,l.qr)(n.e(5841).then(n.bind(n,35841)),r),s=await V(o,r);(0,l.Te)(r);const a=i(new h.A({x:0,y:0,z:0,spatialReference:e.spatialReference}),s.url,{resolveFile:K(s),signal:r?.signal,expectedType:s.type,unitConversionDisabled:t.unitConversionDisabled}),{mesh:{vertexAttributes:u,components:c},meta:{isDracoDecompressed:f}}=await a.finally(()=>s.dispose());if(f)throw new x.A("mesh-load-external:draco-not-supported","The provided mesh uses Draco compression which is not supported.");e.vertexAttributes=u,e.components=c}(e,t,r);case"loadable":return t.source.load(e,r);default:t.source}}(this,t,e)),Promise.resolve(this)}addExternalSources(e){this.metadata.externalSources.addMany(e)}updateDisplaySource(e){this.metadata.displaySource=e}clone(e){return super.clone((0,re.WO)((0,re.QN)(e)))}cloneShallow(){return new Re({components:this.components,spatialReference:this.spatialReference,vertexAttributes:this.vertexAttributes,vertexSpace:this.vertexSpace.clone(),transform:this.transform,metadata:this.metadata})}vertexAttributesChanged(){this.notifyChange("vertexAttributes")}async toBinaryGLTF(e){const[{toBinaryGLTF:t}]=await Promise.all([n.e(4038).then(n.bind(n,84038)),this.load(e)]);return(0,l.Te)(e),await t(this,e)}get usedMemory(){return this.components?this.components.reduce((e,t)=>e+t.memoryUsage,this.vertexAttributes.usedMemory):this.vertexAttributes.usedMemory}_clearSources(){this.metadata.clearSources()}_checkIfLoaded(e){return!!this.loaded||(s.A.getLogger(this).error(e,"Mesh must be loaded before applying operations"),!1)}static createBox(e,t){if(!(e instanceof h.A))return s.A.getLogger(this.prototype).error(".createBox()",v),null;const n=new Re((0,ie.UG)((0,ie.H8)(),e,t));return t?.imageFace&&"all"!==t.imageFace?(0,ie.bQ)(n,t.imageFace):n}static createSphere(e,t){return e instanceof h.A?new Re((0,ie.UG)((0,ie.Dk)(t?.densificationFactor||0),e,t)):(s.A.getLogger(this.prototype).error(".createSphere()",v),null)}static createCylinder(e,t){return e instanceof h.A?new Re((0,ie.UG)((0,ie.ai)(t?.densificationFactor||0),e,t)):(s.A.getLogger(this.prototype).error(".createCylinder()",v),null)}static createPlane(e,t){if(!(e instanceof h.A))return s.A.getLogger(this.prototype).error(".createPlane()",v),null;const n=t?.facing??"up",r=(0,ie.uF)(n,t?.size);return new Re((0,ie.UG)((0,ie.Uh)(n),e,{...t,size:r}))}static createFromPolygon(e,t){if(!(e instanceof g.A))return s.A.getLogger(this.prototype).error(".createFromPolygon()","Expected polygon to be a Polygon instance"),null;const n=(0,Se.uM)(e,{method:"earcut"}),r=(0,l.$X)(n)?null:n,o=r?.positions??[],i=r?.polygonIndices??[];return new Re({vertexAttributes:new M.default({position:o}),components:[new m.default({faces:i,shading:"flat",material:t?.material??null})],spatialReference:e.spatialReference,vertexSpace:new A.A})}static async createFromGLTF(e,t,r){if(!(e instanceof h.A)){const e=new w;throw s.A.getLogger(this.prototype).error(".createfromGLTF()",e.message),e}const{loadGLTFMesh:o}=await(0,l.qr)(n.e(5841).then(n.bind(n,35841)),r);return new Re((await o(e,t,r)).mesh)}};(0,r.Cg)([(0,c.MZ)({type:[m.default],json:{write:!0}})],Le.prototype,"components",void 0),(0,r.Cg)([(0,c.MZ)({nonNullable:!0,types:Ee,constructOnly:!0,json:{write:!0},clonable:(e,t)=>(0,re.o2)(t)?.vertexSpace??e.clone(t)})],Le.prototype,"vertexSpace",void 0),(0,r.Cg)([(0,c.MZ)({type:C.A,clonable:(e,t)=>{const n=(0,re.o2)(t);return n&&"transform"in n?n.transform:e?.clone()??e},json:{write:!0}})],Le.prototype,"transform",void 0),(0,r.Cg)([(0,c.MZ)({constructOnly:!0,type:oe.O,clonable:(e,t)=>(0,re.o2)(t)?.metadata??e.clone()})],Le.prototype,"metadata",void 0),(0,r.Cg)([(0,c.MZ)()],Le.prototype,"hasExtent",null),(0,r.Cg)([(0,c.MZ)()],Le.prototype,"_transformedExtent",null),(0,r.Cg)([(0,c.MZ)()],Le.prototype,"_untransformedBounds",null),(0,r.Cg)([(0,c.MZ)()],Le.prototype,"origin",null),(0,r.Cg)([(0,c.MZ)({readOnly:!0,json:{read:!1}})],Le.prototype,"extent",null),(0,r.Cg)([(0,c.MZ)({readOnly:!0,json:{read:!1,write:!0,default:!0}})],Le.prototype,"hasZ",void 0),(0,r.Cg)([(0,c.MZ)({readOnly:!0,json:{read:!1,write:!0,default:!1}})],Le.prototype,"hasM",void 0),(0,r.Cg)([(0,c.MZ)({type:M.default,nonNullable:!0,json:{write:!0},clonable:(e,t)=>(0,re.o2)(t)?.vertexAttributes??e.clone(t)})],Le.prototype,"vertexAttributes",void 0),Le=Re=(0,r.Cg)([(0,c.$K)("esri.geometry.Mesh")],Le);const Ze=(0,y.vt)()},15585(e,t,n){n.d(t,{If:()=>h,O5:()=>m,O9:()=>d,QT:()=>y,l3:()=>g});var r=n(5482),o=n(2741),i=n(49186),s=n(44208),a=n(34727);let l=null,u=null,c=null,f=null;const p=(new Float32Array(0),new Uint32Array(0),new Uint32Array(0),new Uint32Array(0),{vertices:new Float64Array(0),indices:new Uint32Array(0),outlineIndices:new Uint32Array(0),outlineRingLengths:new Uint32Array(0),vertexCount:0,indexCount:0,outlineIndexCount:0,outlineRingCount:0});async function h(){return l??=async function(){const e=await n.e(2997).then(n.bind(n,42997)),t=await e.default({locateFile:e=>(0,o.s)(`esri/core/libs/libtess/${e}`)});c=t}(),l}async function g(){return u??=async function(){const e=await n.e(9134).then(n.bind(n,99134)),t=await e.default({locateFile:e=>(0,o.s)(`esri/core/libs/libtess/${e}`)});f=t}(),u}function d(){return null!==f}function y(e,t,n=2){const o={stack:[],error:void 0,hasError:!1};try{const a=c;if(!a)throw new i.A("libtess:not-loaded","libtessF32 not loaded");const l=(0,r.mS)(o,A.from(a,e),!1),u=(0,r.mS)(o,C.from(a,t),!1),f=e.length/n*4,p=(0,r.mS)(o,new A(a,f*n),!1),h=a.triangulate(l.ptr,u.ptr,u.size,n,p.ptr,f);if((0,s.A)("esri-tessellation-debug")){const e=a.getError();0!==e&&console.warn("libtess:triangulation",M(e))}return{buffer:p.slice(0,h*n),vertexCount:h}}catch(e){o.error=e,o.hasError=!0}finally{(0,r.hk)(o)}}function m(e,t,n=2,o=!0){const l={stack:[],error:void 0,hasError:!1};try{const u=f;if(!u)throw new i.A("libtess:not-loaded","libtessF64 not loaded");const c=(0,r.mS)(l,b.from(u,e),!1),h=(0,r.mS)(l,C.from(u,t),!1),g=(0,r.mS)(l,new C(u,1),!1),d=(0,r.mS)(l,new C(u,1),!1),y=(0,r.mS)(l,new C(u,1),!1),m=(0,r.mS)(l,new C(u,1),!1),{maxVertexCount:x,maxIndexCount:v,maxOutlineIndexCount:A,maxOutlineRingCount:T}=function(e,t){const n=e.reduce((e,t)=>e+t,0),r=e.length,o=Math.max(0,e.length-1),i=Math.max(0,n+2*o-2),s=Math.max(0,Math.ceil(2*n)),l=Math.max(0,Math.ceil(3*i*2)),u=(0,a.mP)(l,3),c=n>0?Math.max(2,Math.ceil(.25*n)):0,f=n>0?Math.max(1,Math.ceil(c/3)):0;return{maxVertexCount:s,maxIndexCount:u,maxOutlineIndexCount:t?Math.max(0,n+r+c):0,maxOutlineRingCount:t?Math.max(0,r+f):0}}(t,o);let R=0,S=0,E=0,L=0,Z=0;{const e={stack:[],error:void 0,hasError:!1};try{const t=(0,r.mS)(e,new b(u,x*n),!1),i=(0,r.mS)(e,new C(u,v),!1),s=(0,r.mS)(e,o?new C(u,A):null,!1),a=(0,r.mS)(e,o?new C(u,T):null,!1);if(u.triangulateIndexed(c.ptr,h.ptr,h.size,n,t.ptr,x,n,i.ptr,v,g.ptr,d.ptr,s?.ptr??0,A,a?.ptr??0,T,y.ptr,m.ptr),Z=u.getError(),R=w(u)[g.ptr/Int32Array.BYTES_PER_ELEMENT],S=w(u)[d.ptr/Int32Array.BYTES_PER_ELEMENT],E=w(u)[y.ptr/Int32Array.BYTES_PER_ELEMENT],L=w(u)[m.ptr/Int32Array.BYTES_PER_ELEMENT],0===Z){const e=t.slice(0,R*n);return{vertices:e,indices:i.slice(0,S),outlineIndices:o&&s?s.slice(0,E):p.outlineIndices,outlineRingLengths:o&&a?a.slice(0,L):p.outlineRingLengths,vertexCount:R,indexCount:S,outlineIndexCount:o?E:0,outlineRingCount:o?L:0}}}catch(t){e.error=t,e.hasError=!0}finally{(0,r.hk)(e)}}if(100903!==Z)return(0,s.A)("esri-tessellation-debug")&&console.warn("libtess:triangulation",M(Z)),p;const U=(0,r.mS)(l,new b(u,R*n),!1),_=(0,r.mS)(l,new C(u,S),!1),N=(0,r.mS)(l,o?new C(u,E):null,!1),I=(0,r.mS)(l,o?new C(u,L):null,!1);if(u.triangulateIndexed(c.ptr,h.ptr,h.size,n,U.ptr,R,n,_.ptr,S,g.ptr,d.ptr,N?.ptr??0,o?E:0,I?.ptr??0,o?L:0,y.ptr,m.ptr),Z=u.getError(),0!==Z)return(0,s.A)("esri-tessellation-debug")&&console.warn("libtess:triangulation",M(Z)),p;const F=w(u)[g.ptr/Int32Array.BYTES_PER_ELEMENT],O=w(u)[d.ptr/Int32Array.BYTES_PER_ELEMENT],j=w(u)[y.ptr/Int32Array.BYTES_PER_ELEMENT],B=w(u)[m.ptr/Int32Array.BYTES_PER_ELEMENT],P=U.slice(0,F*n);return{vertices:P,indices:_.slice(0,O),outlineIndices:o&&N?N.slice(0,j):p.outlineIndices,outlineRingLengths:o&&I?I.slice(0,B):p.outlineRingLengths,vertexCount:F,indexCount:O,outlineIndexCount:o?j:0,outlineRingCount:o?B:0}}catch(e){l.error=e,l.hasError=!0}finally{(0,r.hk)(l)}}function x(e){return e.HEAPF64}function v(e){return e.HEAPF32}function w(e){return e.HEAP32}class A{static from(e,t){const n=new A(e,t.length);return n.set(t),n}constructor(e,t){this._libtess=e,this.size=t,this.ptr=e.allocateCoordinateArray(t)}destroy(){this._libtess.destroyCoordinateArray(this.ptr)}[Symbol.dispose](){this.destroy()}get bytesPerCoordinate(){return Float32Array.BYTES_PER_ELEMENT}set(e){v(this._libtess).set(e,this.ptr/this.bytesPerCoordinate)}slice(e,t){const n=this.ptr/this.bytesPerCoordinate;return v(this._libtess).slice(n+e,n+t)}}class b{static from(e,t){const n=new b(e,t.length);return n.set(t),n}constructor(e,t){this._libtess=e,this.size=t,this.ptr=e.allocateCoordinateArray(t)}destroy(){this._libtess.destroyCoordinateArray(this.ptr)}[Symbol.dispose](){this.destroy()}get bytesPerCoordinate(){return Float64Array.BYTES_PER_ELEMENT}set(e){x(this._libtess).set(e,this.ptr/this.bytesPerCoordinate)}slice(e,t){const n=this.ptr/this.bytesPerCoordinate;return x(this._libtess).slice(n+e,n+t)}}class C{static from(e,t){const n=new C(e,t.length);return n.set(t),n}constructor(e,t){this._libtess=e,this.size=t,this.ptr=e.allocateLengthsArray(t)}destroy(){this._libtess.destroyLengthsArray(this.ptr)}[Symbol.dispose](){this.destroy()}get bytesPerCoordinate(){return Int32Array.BYTES_PER_ELEMENT}set(e){w(this._libtess).set(e,this.ptr/this.bytesPerCoordinate)}slice(e,t){const n=this.ptr/this.bytesPerCoordinate;return function(e){const t=w(e);return new Uint32Array(t.buffer,t.byteOffset,t.length)}(this._libtess).slice(n+e,n+t)}}function M(e){switch(e){case 100903:return"Insufficient output buffer";case 100902:return"Out of memory";case 100151:return"Missing begin polygon";case 100152:return"Missing begin contour";case 100153:return"Missing end polygon";case 100154:return"Missing end countour";case 100155:return"Coordinates too large";case 100156:return"Missing combine callback";default:return`Unknown: ${e}`}}},97146(e,t,n){n.d(t,{Dg:()=>i,lC:()=>a,my:()=>s,tM:()=>f,uW:()=>o});var r=n(34275);function o(e){return i(e,!0)}function i(e,t){if(Array.isArray(e)){if(e.length<1024)return e}else if(e.length<1024)return Array.from(e);let n=!0,o=!0;return e.some((e,t)=>(n=n&&0===e,o=o&&e===t,!n&&!o)),n?function(e){if(1===e)return u;if(e<1024)return new Array(e).fill(0);if(e>h.length){const t=Math.max(2*h.length,e);h=new Uint8Array(t)}return new Uint8Array(h.buffer,0,e)}(e.length):o?f(e.length):(0,r.iu)(e)&&e.BYTES_PER_ELEMENT===Uint16Array.BYTES_PER_ELEMENT?e:function(e,t){for(const n of e){if(n>=65536)return(0,r.iu)(e)?e:new Uint32Array(e);n>=256&&(t=!1)}return t?new Uint8Array(e):new Uint16Array(e)}(e,!t)}function s(e,t=e){return e<=1024?new Array(e):t<=65536?new Uint16Array(e):new Uint32Array(e)}function a(e,t,n){if(0===t.length)return e.slice();if(0===e.length)return t.slice();const r=s(e.length+t.length,n);for(let t=0;t<e.length;++t)r[t]=e[t];for(let n=0;n<t.length;++n)r[e.length+n]=t[n];return r}let l=p(131072);const u=[0],c=(()=>{const e=new Uint16Array(65536);for(let t=0;t<e.length;++t)e[t]=t;return e})();function f(e){return 1===e?u:e<1024?Array.from(new Uint16Array(c.buffer,0,e)):e<c.length?new Uint16Array(c.buffer,0,e):(e>l.length&&(l=p(Math.max(2*l.length,e))),new Uint32Array(l.buffer,0,e))}function p(e){const t=new Uint32Array(e);for(let e=0;e<t.length;e++)t[e]=e;return t}let h=new Uint8Array(65536)},16939(e,t,n){n.r(t),n.d(t,{default:()=>h});var r,o=n(5482),i=n(69540),s=n(25482),a=n(53966),l=n(91429),u=n(56507),c=n(19211),f=n(80882),p=n(31199);let h=r=class extends((0,i.OU)(s.o)){static from(e){return(0,u.PZ)(r,e)}constructor(e){super(e),this.material=null,this.name=void 0,this.shading="source",this.trustSourceNormals=!1}get faces(){return this._get("faces")??null}set faces(e){this._set("faces",(0,p.b)(e,Uint32Array,[Uint16Array],{loggerTag:".faces=",stride:3},a.A.getLogger(this)))}castMaterial(e){return(0,u.PZ)(e&&"object"==typeof e&&("metallic"in e||"roughness"in e||"metallicRoughnessTexture"in e)?f.A:c.default,e)}get memoryUsage(){let e=0;return null!=this.faces&&(e+=this.faces.byteLength),null!=this.material&&(e+=this.material.memoryUsage),e}};(0,o.Cg)([(0,l.MZ)({json:{write:p.B}})],h.prototype,"faces",null),(0,o.Cg)([(0,l.MZ)({type:c.default,json:{write:!0}})],h.prototype,"material",void 0),(0,o.Cg)([(0,l.wg)("material")],h.prototype,"castMaterial",null),(0,o.Cg)([(0,l.MZ)({json:{write:!0}})],h.prototype,"name",void 0),(0,o.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],h.prototype,"shading",void 0),(0,o.Cg)([(0,l.MZ)({type:Boolean})],h.prototype,"trustSourceNormals",void 0),h=r=(0,o.Cg)([(0,l.$K)("esri.geometry.support.MeshComponent")],h)},95696(e,t,n){n.d(t,{A:()=>u});var r,o=n(5482),i=n(69540),s=n(25482),a=n(91429),l=n(93223);let u=class extends((0,i.OU)(s.o)){static{r=this}constructor(e){super(e),this.type="georeferenced",this.origin=null}static{this.absolute=new r}};(0,o.Cg)([(0,l.e)({georeferenced:"georeferenced"},{readOnly:!0})],u.prototype,"type",void 0),(0,o.Cg)([(0,a.MZ)({type:[Number],nonNullable:!1,json:{write:!0}})],u.prototype,"origin",void 0),u=r=(0,o.Cg)([(0,a.$K)("esri.geometry.support.MeshGeoreferencedVertexSpace")],u)},18251(e,t,n){n.d(t,{A:()=>u});var r=n(5482),o=n(69540),i=n(25482),s=n(91429),a=n(51850),l=n(93223);let u=class extends((0,o.OU)(i.o)){constructor(e){super(e),this.type="local",this.origin=(0,a.vt)()}};(0,r.Cg)([(0,l.e)({local:"local"},{readOnly:!0})],u.prototype,"type",void 0),(0,r.Cg)([(0,s.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],u.prototype,"origin",void 0),u=(0,r.Cg)([(0,s.$K)("esri.geometry.support.MeshLocalVertexSpace")],u)},19211(e,t,n){n.r(t),n.d(t,{default:()=>f});var r=n(5482),o=n(68197),i=n(69540),s=n(25482),a=n(91429),l=n(35063),u=n(51147),c=n(66895);let f=class extends((0,i.OU)(s.o)){constructor(e){super(e),this.color=null,this.colorTextureTransform=null,this.normalTextureTransform=void 0,this.alphaMode="auto",this.alphaCutoff=.5,this.doubleSided=!0}get colorTexture(){return this._get("colorTexture")}set colorTexture(e){this._set("colorTexture",null==e?null:l.default.from(e))}get normalTexture(){return this._get("normalTexture")}set normalTexture(e){this._set("normalTexture",null==e?null:l.default.from(e))}clone(e){const t=(0,c.hz)(e),n=t?.materialMap?.get(this);if(n)return n;const r=super.clone((0,c.QN)(e));return t?.materialMap?.set(this,r),r}get memoryUsage(){return this.getMemoryUsage()}getMemoryUsage(){let e=0;return e+=null!=this.color?16:0,null!=this.colorTexture&&(e+=this.colorTexture.memoryUsage),e+=null!=this.colorTextureTransform?20:0,null!=this.normalTexture&&(e+=this.normalTexture.memoryUsage),e+=null!=this.normalTextureTransform?20:0,e}};(0,r.Cg)([(0,a.MZ)({type:o.A,json:{write:!0}})],f.prototype,"color",void 0),(0,r.Cg)([(0,a.MZ)({type:l.default,json:{write:!0},value:null})],f.prototype,"colorTexture",null),(0,r.Cg)([(0,a.MZ)({type:u.A,json:{write:!0}})],f.prototype,"colorTextureTransform",void 0),(0,r.Cg)([(0,a.MZ)({type:l.default,json:{write:!0},value:null})],f.prototype,"normalTexture",null),(0,r.Cg)([(0,a.MZ)({type:u.A,json:{write:!0}})],f.prototype,"normalTextureTransform",void 0),(0,r.Cg)([(0,a.MZ)({nonNullable:!0,json:{write:!0}})],f.prototype,"alphaMode",void 0),(0,r.Cg)([(0,a.MZ)({nonNullable:!0,json:{write:!0}})],f.prototype,"alphaCutoff",void 0),(0,r.Cg)([(0,a.MZ)({nonNullable:!0,json:{write:!0}})],f.prototype,"doubleSided",void 0),f=(0,r.Cg)([(0,a.$K)("esri.geometry.support.MeshMaterial")],f)},80882(e,t,n){n.d(t,{A:()=>u});var r=n(5482),o=n(68197),i=n(91429),s=n(19211),a=n(35063),l=n(51147);let u=class extends s.default{constructor(e){super(e),this.emissiveColor=null,this.emissiveStrength=null,this.emissiveTextureTransform=void 0,this.occlusionTextureTransform=void 0,this.metallic=1,this.roughness=1,this.metallicRoughnessTextureTransform=void 0,this.unlit=!1}get emissiveTexture(){return this._get("emissiveTexture")}set emissiveTexture(e){this._set("emissiveTexture",null==e?null:a.default.from(e))}get occlusionTexture(){return this._get("occlusionTexture")}set occlusionTexture(e){this._set("occlusionTexture",null==e?null:a.default.from(e))}get metallicRoughnessTexture(){return this._get("metallicRoughnessTexture")}set metallicRoughnessTexture(e){this._set("metallicRoughnessTexture",null==e?null:a.default.from(e))}getMemoryUsage(){let e=super.getMemoryUsage();return e+=null!=this.emissiveColor?16:0,null!=this.emissiveTexture&&(e+=this.emissiveTexture.memoryUsage),e+=null!=this.emissiveTextureTransform?20:0,null!=this.occlusionTexture&&(e+=this.occlusionTexture.memoryUsage),e+=null!=this.occlusionTextureTransform?20:0,null!=this.metallicRoughnessTexture&&(e+=this.metallicRoughnessTexture.memoryUsage),e+=null!=this.metallicRoughnessTextureTransform?20:0,e}};(0,r.Cg)([(0,i.MZ)({type:o.A,json:{write:!0}})],u.prototype,"emissiveColor",void 0),(0,r.Cg)([(0,i.MZ)({json:{write:!0}})],u.prototype,"emissiveStrength",void 0),(0,r.Cg)([(0,i.MZ)({type:a.default,json:{write:!0},value:null})],u.prototype,"emissiveTexture",null),(0,r.Cg)([(0,i.MZ)({type:l.A,json:{write:!0}})],u.prototype,"emissiveTextureTransform",void 0),(0,r.Cg)([(0,i.MZ)({type:a.default,json:{write:!0},value:null})],u.prototype,"occlusionTexture",null),(0,r.Cg)([(0,i.MZ)({type:l.A,json:{write:!0}})],u.prototype,"occlusionTextureTransform",void 0),(0,r.Cg)([(0,i.MZ)({type:Number,nonNullable:!0,json:{write:!0},range:{min:0,max:1}})],u.prototype,"metallic",void 0),(0,r.Cg)([(0,i.MZ)({type:Number,nonNullable:!0,json:{write:!0},range:{min:0,max:1}})],u.prototype,"roughness",void 0),(0,r.Cg)([(0,i.MZ)({type:a.default,json:{write:!0},value:null})],u.prototype,"metallicRoughnessTexture",null),(0,r.Cg)([(0,i.MZ)({type:l.A,json:{write:!0}})],u.prototype,"metallicRoughnessTextureTransform",void 0),(0,r.Cg)([(0,i.MZ)({type:Boolean,nonNullable:!0,json:{write:!0}})],u.prototype,"unlit",void 0),u=(0,r.Cg)([(0,i.$K)("esri.geometry.support.MeshMaterialMetallicRoughness")],u)},35063(e,t,n){n.r(t),n.d(t,{default:()=>y});var r,o=n(5482),i=n(69540),s=n(21287),a=n(25482),l=n(91429),u=n(56507),c=n(66895),f=n(97159),p=n(43937),h=n(36005);const g=new WeakMap;let d=0,y=class extends((0,i.OU)(a.o)){static{r=this}constructor(e){super(e),this.wrap="repeat"}get url(){return this._get("url")||null}set url(e){this._set("url",e),e&&this._set("data",null)}get data(){return this._get("data")||null}set data(e){this._set("data",e),e&&this._set("url",null)}writeData(e,t,n,r){if(e instanceof HTMLImageElement){const o={type:"image-element",src:(0,f.t)(e.src,r),crossOrigin:e.crossOrigin};t[n]=o}else if(e instanceof HTMLCanvasElement){const r={type:"canvas-element",imageData:m(e.getContext("2d").getImageData(0,0,e.width,e.height))};t[n]=r}else if(e instanceof HTMLVideoElement){const o={type:"video-element",src:(0,f.t)(e.src,r),autoplay:e.autoplay,loop:e.loop,muted:e.muted,crossOrigin:e.crossOrigin,preload:e.preload};t[n]=o}else if(e instanceof ImageData){const r={type:"image-data",imageData:m(e)};t[n]=r}}readData(e){switch(e.type){case"image-element":{const t=new Image;return t.src=e.src,t.crossOrigin=e.crossOrigin,t}case"canvas-element":{const t=x(e.imageData),n=document.createElement("canvas");return n.width=t.width,n.height=t.height,n.getContext("2d").putImageData(t,0,0),n}case"image-data":return x(e.imageData);case"video-element":{const t=document.createElement("video");return t.src=e.src,t.crossOrigin=e.crossOrigin,t.autoplay=e.autoplay,t.loop=e.loop,t.muted=e.muted,t.preload=e.preload,t}default:return}}get transparent(){const{data:e,url:t}=this,n=e=>e?.toLowerCase().endsWith(".png")||e?.toLocaleLowerCase().startsWith("data:image/png;");return e instanceof HTMLCanvasElement?v(e.getContext("2d").getImageData(0,0,e.width,e.height)):e instanceof ImageData?v(e):!(!t||!n(t))||!!(e instanceof HTMLImageElement&&n(e.src))}set transparent(e){this._overrideIfSome("transparent",e)}get contentHash(){const e="string"==typeof this.wrap?this.wrap:"object"==typeof this.wrap?`${this.wrap.horizontal}/${this.wrap.vertical}`:"",t=(t="")=>`d:${t},t:${this.transparent},w:${e}`;return null!=this.url?t(this.url):null!=this.data?this.data instanceof HTMLImageElement||this.data instanceof HTMLVideoElement?t(this.data.src):(g.has(this.data)||g.set(this.data,++d),t(g.get(this.data))):t()}get memoryUsage(){let e=0;if(e+=null!=this.url?this.url.length:0,null!=this.data){const t=this.data;"data"in t?e+=t.data.byteLength:t instanceof HTMLImageElement?e+=t.naturalWidth*t.naturalHeight*3:t instanceof HTMLCanvasElement&&(e+=t.width*t.height*3)}return e}clone(e){const t=(0,c.$N)(e),n=t?.textureMap?.get(this);if(n)return n;const r=super.clone(e);return t?.textureMap?.set(this,r),r}static from(e){return"string"==typeof e?new r({url:e}):e instanceof HTMLImageElement||e instanceof HTMLCanvasElement||e instanceof ImageData||e instanceof HTMLVideoElement?new r({data:e}):(0,u.PZ)(r,e)}};function m(e){let t="";for(let n=0;n<e.data.length;n++)t+=String.fromCharCode(e.data[n]);return{data:btoa(t),width:e.width,height:e.height}}function x(e){const t=atob(e.data),n=new Uint8ClampedArray(t.length);for(let e=0;e<t.length;e++)n[e]=t.charCodeAt(e);return(0,s.eV)(n,e.width,e.height)}function v(e){for(let t=3;t<e.data.length;t+=4)if(255!==e.data[t])return!0;return!1}(0,o.Cg)([(0,l.MZ)({type:String,json:{write:f.w}})],y.prototype,"url",null),(0,o.Cg)([(0,l.MZ)({clonable:"reference",json:{write:{overridePolicy(){return{enabled:!this.url}}}}})],y.prototype,"data",null),(0,o.Cg)([(0,p.K)("data")],y.prototype,"writeData",null),(0,o.Cg)([(0,h.w)("data")],y.prototype,"readData",null),(0,o.Cg)([(0,l.MZ)({type:Boolean,json:{write:{overridePolicy(){return{enabled:this._isOverridden("transparent")}}}}})],y.prototype,"transparent",null),(0,o.Cg)([(0,l.MZ)({json:{write:!0}})],y.prototype,"wrap",void 0),(0,o.Cg)([(0,l.MZ)({readOnly:!0})],y.prototype,"contentHash",null),y=r=(0,o.Cg)([(0,l.$K)("esri.geometry.support.MeshTexture")],y)},51147(e,t,n){n.d(t,{A:()=>a});var r=n(5482),o=n(69540),i=n(25482),s=n(91429);let a=class extends((0,o.OU)(i.o)){constructor(e){super(e),this.offset=[0,0],this.rotation=0,this.scale=[1,1]}};(0,r.Cg)([(0,s.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],a.prototype,"offset",void 0),(0,r.Cg)([(0,s.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],a.prototype,"rotation",void 0),(0,r.Cg)([(0,s.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],a.prototype,"scale",void 0),a=(0,r.Cg)([(0,s.$K)("esri.geometry.support.MeshTextureTransform")],a)},1193(e,t,n){n.r(t),n.d(t,{default:()=>f});var r,o=n(5482),i=n(69540),s=n(25482),a=n(4718),l=n(53966),u=n(91429),c=n(31199);let f=r=class extends((0,i.OU)(s.o)){constructor(e){super(e),this.color=null,this.position=new Float64Array(0),this.uv=null,this.normal=null,this.tangent=null}castColor(e){return(0,c.b)(e,Uint8Array,[Uint8ClampedArray],{loggerTag:".color=",stride:4},l.A.getLogger(this))}castPosition(e){return e&&e instanceof Float32Array&&l.A.getLogger(this).warn(".position=","Setting position attribute from a Float32Array may cause precision problems. Consider storing data in a Float64Array or a regular number array"),(0,c.b)(e,Float64Array,[Float32Array],{loggerTag:".position=",stride:3},l.A.getLogger(this))}castUv(e){return(0,c.b)(e,Float32Array,[Float64Array],{loggerTag:".uv=",stride:2},l.A.getLogger(this))}castNormal(e){return(0,c.b)(e,Float32Array,[Float64Array],{loggerTag:".normal=",stride:3},l.A.getLogger(this))}castTangent(e){return(0,c.b)(e,Float32Array,[Float64Array],{loggerTag:".tangent=",stride:4},l.A.getLogger(this))}clonePositional(){const e={position:(0,a.o8)(this.position),normal:(0,a.o8)(this.normal),tangent:(0,a.o8)(this.tangent),uv:this.uv,color:this.color};return new r(e)}get usedMemory(){return this.position.byteLength+(this.uv?.byteLength??0)+(this.normal?.byteLength??0)+(this.tangent?.byteLength??0)+(this.color?.byteLength??0)}};(0,o.Cg)([(0,u.MZ)({json:{write:c.B}})],f.prototype,"color",void 0),(0,o.Cg)([(0,u.wg)("color")],f.prototype,"castColor",null),(0,o.Cg)([(0,u.MZ)({nonNullable:!0,json:{write:c.B}})],f.prototype,"position",void 0),(0,o.Cg)([(0,u.wg)("position")],f.prototype,"castPosition",null),(0,o.Cg)([(0,u.MZ)({json:{write:c.B}})],f.prototype,"uv",void 0),(0,o.Cg)([(0,u.wg)("uv")],f.prototype,"castUv",null),(0,o.Cg)([(0,u.MZ)({json:{write:c.B}})],f.prototype,"normal",void 0),(0,o.Cg)([(0,u.wg)("normal")],f.prototype,"castNormal",null),(0,o.Cg)([(0,u.MZ)({json:{write:c.B}})],f.prototype,"tangent",void 0),(0,o.Cg)([(0,u.wg)("tangent")],f.prototype,"castTangent",null),f=r=(0,o.Cg)([(0,u.$K)("esri.geometry.support.MeshVertexAttributes")],f)},31199(e,t,n){function r(e,t,n,r){const{loggerTag:o,stride:i}=t;return e.length%i!==0?(r.error(o,`Invalid array length, expected a multiple of ${i}`),new n([])):e}function o(e,t,n,o,i){if(!e)return e;if(e instanceof t)return r(e,o,t,i);for(const s of n)if(e instanceof s)return r(new t(e),o,t,i);if(Array.isArray(e))return r(new t(e),o,t,i);{const r=n.map(e=>`'${e.name}'`);return i.error(`Failed to set property, expected one of ${r}, but got ${e.constructor.name}`),new t([])}}function i(e,t,n){t[n]=function(e){const t=new Array(e.length);for(let n=0;n<e.length;n++)t[n]=e[n];return t}(e)}n.d(t,{B:()=>i,b:()=>o})},40118(e,t,n){n.d(t,{H5:()=>f,wh:()=>u,createWithExternalSource:()=>c});var r=n(49186),o=(n(17676),n(83300)),i=(n(16939),n(95696),n(73836)),s=(n(1193),n(27615));n(53966),n(35522),n(51850),n(66895),n(72258);var a=n(29461),l=n(15070);function u(e,t){return new o.default((0,l.UG)((0,l.Dk)(t?.densificationFactor||0),e,t))}function c(e,t,n){const r=n?.extent??null,{spatialReference:l}=e,u=n?.transform?.clone()??new i.A,c=(0,s.TE)(e,n),f=n?.unitConversionDisabled,p={source:t,extent:r,unitConversionDisabled:f},h=new a.O;return h.externalSources.push(p),new o.default({metadata:h,transform:u,vertexSpace:c,spatialReference:l})}function f(e,t){const{spatialReference:n}=e,a=t?.transform?.clone()??new i.A,l=(0,s.TE)(e,t),u=new o.default({transform:a,vertexSpace:l,spatialReference:n});return u.addResolvingPromise(Promise.reject(new r.A("mesh-incomplete","Mesh resources are not complete"))),u}n(41618)},63579(e,t,n){n.d(t,{Bq:()=>l,Qp:()=>a,WN:()=>y,dK:()=>m,eN:()=>h,fH:()=>d,in:()=>g,yr:()=>u});var r=n(11254),o=n(4576),i=n(17676),s=n(20557);class a{constructor(e,t,n){this.assetName=e,this.assetMimeType=t,this.parts=n}equals(e){return this===e||this.assetName===e.assetName&&this.assetMimeType===e.assetMimeType&&(0,o.aI)(this.parts,e.parts,(e,t)=>e.equals(t))}isOnService(e){return this.parts.every(t=>t.isOnService(e))}makeHash(){let e="";for(const t of this.parts)e+=t.partHash;return e}async toBlob(e){const{parts:t}=this;if(1===t.length)return t[0].toBlob(e);const n=await Promise.all(t.map(t=>t.toBlob(e)));return(0,i.Te)(e),new Blob(n)}}class l{constructor(e,t){this.partUrl=e,this.partHash=t}equals(e){return this===e||this.partUrl===e.partUrl&&this.partHash===e.partHash}isOnService(e){return this.partUrl.startsWith(`${e.path}/assets/`)}async toBlob(e){const{data:t}=await(0,r.A)(this.partUrl,{responseType:"blob"});return(0,i.Te)(e),t}}function u(e){return function(e){switch(e?.type){case"client":return Array.isArray(e.files)?e.files.some(p):p(e.files);case"service":return e.assets.some(p);case"loadable":return!0;default:return!1}}(e?.source)}const c=/^(model\/gltf\+json)|(model\/gltf-binary)$/,f=/\.(gltf|glb)/i;function p(e){if(e instanceof File){const{type:t,name:n}=e;return c.test(t)||f.test(n)}return c.test(e.assetMimeType)||f.test(e.assetName)}function h(e,t){if(!e)return!1;const{source:n}=e;return function(e,t){return"service"===e.type&&e.assets.every(e=>e.isOnService(t))}(n,t)}function g(e,t){if(e===t)return!0;const{source:n}=e,{source:r}=t;if(n===r)return!0;if("service"===n.type&&"service"===r.type){if(n.assets.length!==r.assets.length)return!1;const e=(e,t)=>e.assetName<t.assetName?-1:e.assetName>t.assetName?1:0,t=[...n.assets].sort(e),o=[...r.assets].sort(e);for(let e=0;e<t.length;++e)if(!t[e].equals(o[e]))return!1;return!0}return!1}function d(e,t){return e instanceof File?(0,s.rq)(e,t):(0,s.z$)(e.assetMimeType,e.assetName,t)}function y(e){switch(e.type){case"client":return Array.isArray(e.files)?e.files:[e.files];case"service":return e.assets;case"loadable":return}}function m(e){return!!e.original}},29461(e,t,n){n.d(t,{O:()=>u});var r=n(5482),o=n(69540),i=n(7762),s=n(36708),a=n(91429),l=n(63579);let u=class extends o.Pw{constructor(e){super(e),this.externalSources=new i.A,this._explicitDisplaySource=null,this.addHandles((0,s.on)(()=>this.externalSources,"after-remove",({item:e})=>{e===this._explicitDisplaySource&&(this._explicitDisplaySource=null)},{sync:!0,onListenerRemove:()=>this._explicitDisplaySource=null}))}get displaySource(){return this._explicitDisplaySource??this._implicitDisplaySource}set displaySource(e){if(null!=e&&!(0,l.yr)(e))throw new Error("Cannot use this source for display: it is not in a supported format.");this._explicitDisplaySource=e,e&&this.externalSources.every(t=>!(0,l.in)(t,e))&&this.externalSources.add(e)}clearSources(){this.externalSources.removeAll()}getExternalSourcesOnService(e){return this.externalSources.items.filter(t=>(0,l.eN)(t,e))}get _implicitDisplaySource(){return this.externalSources.find(l.yr)}};(0,r.Cg)([(0,a.MZ)()],u.prototype,"externalSources",void 0),(0,r.Cg)([(0,a.MZ)()],u.prototype,"displaySource",null),(0,r.Cg)([(0,a.MZ)()],u.prototype,"_implicitDisplaySource",null),(0,r.Cg)([(0,a.MZ)()],u.prototype,"_explicitDisplaySource",void 0),u=(0,r.Cg)([(0,a.$K)("esri.geometry.support.meshUtils.Metadata")],u)},66895(e,t,n){n.d(t,{$N:()=>c,Lz:()=>i,QN:()=>f,WO:()=>l,hz:()=>a,o2:()=>o});const r=Symbol("meshContext");function o(e){return e&&"object"==typeof e&&r in e?e[r]:void 0}function i(e,t){const n=o(e);return{...e,[r]:{...n,...t}}}const s=Symbol("meshMaterialContext");function a(e){return e&&"object"==typeof e&&s in e?e[s]:void 0}function l(e){const t=a(e);if(t?.materialMap)return e;const n={materialMap:new Map};return{...e,[s]:n}}const u=Symbol("meshTextureContext");function c(e){return e&&"object"==typeof e&&u in e?e[u]:void 0}function f(e){const t=c(e);if(t?.textureMap)return e;const n={textureMap:new Map};return{...e,[u]:n}}},15070(e,t,n){n.d(t,{Dk:()=>p,H8:()=>c,UG:()=>m,Uh:()=>d,ai:()=>h,bQ:()=>f,uF:()=>g});var r=n(29242),o=n(35522),i=n(51850),s=n(16939),a=n(1193),l=n(27615),u=n(72258);function c(){const{faceDescriptions:e,faceVertexOffsets:t,uvScales:n}=x,r=4*e.length,o=new Float64Array(3*r),i=new Float32Array(3*r),s=new Float32Array(2*r),a=new Uint32Array(2*e.length*3);let l=0,u=0,c=0,f=0;for(let r=0;r<e.length;r++){const p=e[r],h=l/3;for(const e of t)a[f++]=h+e;const g=p.corners;for(let e=0;e<4;e++){const t=g[e];let r=0;s[c++]=.25*n[e][0]+p.uvOrigin[0],s[c++]=p.uvOrigin[1]-.25*n[e][1];for(let e=0;e<3;e++)0!==p.axis[e]?(o[l++]=.5*p.axis[e],i[u++]=p.axis[e]):(o[l++]=.5*t[r++],i[u++]=0)}}return{position:o,normal:i,uv:s,faces:a}}function f(e,t){const n=e.components[0],r=n.faces,o=v[t],i=6*o,a=new Array(6),l=new Array(r.length-6);let u=0,c=0;for(let e=0;e<r.length;e++)e>=i&&e<i+6?a[u++]=r[e]:l[c++]=r[e];if(null!=e.vertexAttributes.uv){const t=new Float32Array(e.vertexAttributes.uv),n=4*o*2,r=[0,1,1,1,1,0,0,0];for(let e=0;e<r.length;e++)t[n+e]=r[e];e.vertexAttributes.uv=t}return e.components=[new s.default({faces:a,material:n.material}),new s.default({faces:l})],e}function p(e=0){const t=Math.round(8*2**e),n=2*t,r=(t-1)*(n+1)+2*n,o=new Float64Array(3*r),i=new Float32Array(3*r),s=new Float32Array(2*r),a=new Uint32Array((t-1)*n*2*3);let l=0,u=0,c=0,f=0;for(let e=0;e<=t;e++){const r=e/t*Math.PI+.5*Math.PI,p=Math.cos(r),h=Math.sin(r);w[2]=h;const g=0===e||e===t,d=g?n-1:n;for(let r=0;r<=d;r++){const h=r/d*2*Math.PI;w[0]=-Math.sin(h)*p,w[1]=Math.cos(h)*p;for(let e=0;e<3;e++)o[l]=.5*w[e],i[l]=w[e],++l;s[u++]=(r+(g?.5:0))/n,s[u++]=e/t,0!==e&&r!==n&&(e!==t&&(a[c++]=f,a[c++]=f+1,a[c++]=f-n),1!==e&&(a[c++]=f,a[c++]=f-n,a[c++]=f-n-1)),f++}}return{position:o,normal:i,uv:s,faces:a}}function h(e=0){const t=Math.round(16*2**e),n=4*(t+1)+2*t,r=new Float64Array(3*n),o=new Float32Array(3*n),i=new Float32Array(2*n),s=new Uint32Array(4*t*3);let a=0,l=0,u=0,c=0,f=0;for(let e=0;e<=5;e++){const n=0===e||5===e,p=e<=1||e>=4,h=2===e||4===e,g=n?t-1:t;for(let d=0;d<=g;d++){const y=d/g*2*Math.PI,m=n?0:.5;w[0]=m*Math.sin(y),w[1]=m*-Math.cos(y),w[2]=e<=2?.5:-.5;for(let t=0;t<3;t++)r[a++]=w[t],o[l++]=p?2===t?e<=1?1:-1:0:2===t?0:w[t]/m;i[u++]=(d+(n?.5:0))/t,i[u++]=e<=1?1*e/3:e<=3?1*(e-2)/3+1/3:1*(e-4)/3+2/3,h||0===e||d===t||(5!==e&&(s[c++]=f,s[c++]=f+1,s[c++]=f-t),1!==e&&(s[c++]=f,s[c++]=f-t,s[c++]=f-t-1)),f++}}return{position:r,normal:o,uv:i,faces:s}}function g(e,t){const n="number"==typeof t?t:null!=t?t.width:1,r="number"==typeof t?t:null!=t?t.height:1;switch(e){case"up":case"down":return{width:n,depth:r};case"north":case"south":return{width:n,height:r};case"east":case"west":return{depth:n,height:r}}}function d(e){const t=y.facingAxisOrderSwap[e],n=y.position,r=y.normal,o=new Float64Array(n.length),i=new Float32Array(r.length);let s=0;for(let e=0;e<4;e++){const e=s;for(let a=0;a<3;a++){const l=t[a],u=Math.abs(l)-1,c=l>=0?1:-1;o[s]=n[e+u]*c,i[s]=r[e+u]*c,s++}}return{position:o,normal:i,uv:new Float32Array(y.uv),faces:new Uint32Array(y.faces),isPlane:!0}}const y={position:[-.5,-.5,0,.5,-.5,0,.5,.5,0,-.5,.5,0],normal:[0,0,1,0,0,1,0,0,1,0,0,1],uv:[0,1,1,1,1,0,0,0],faces:[0,1,2,0,2,3],facingAxisOrderSwap:{east:[3,1,2],west:[-3,-1,2],north:[-1,3,2],south:[1,-3,2],up:[1,2,3],down:[1,-2,-3]}};function m(e,t,n){e.isPlane||function(e){for(let t=0;t<e.position.length;t+=3)e.position[t+2]+=.5}(e),function(e,t){if(null!=t){A[0]=t[0],A[4]=t[1],A[8]=t[2];for(let t=0;t<e.position.length;t+=3){for(let n=0;n<3;n++)w[n]=e.position[t+n];(0,o.ei)(w,w,A);for(let n=0;n<3;n++)e.position[t+n]=w[n]}if(t[0]!==t[1]||t[1]!==t[2]){A[0]=1/t[0],A[4]=1/t[1],A[8]=1/t[2];for(let t=0;t<e.normal.length;t+=3){for(let n=0;n<3;n++)w[n]=e.normal[t+n];(0,o.ei)(w,w,A),(0,o.S8)(w,w);for(let n=0;n<3;n++)e.normal[t+n]=w[n]}}}}(e,function(e,t,n){const r=(0,u.xK)(t,n);if(null==e&&1===r)return null;if(null==e)return[r,r,r];if("number"==typeof e){const t=e*r;return[t,t,t]}return[null!=e.width?e.width*r:r,null!=e.depth?e.depth*r:r,null!=e.height?e.height*r:r]}(n?.size,n?.unit,t.spatialReference));const r=(0,l.TE)(t,n),i=t.spatialReference.isGeographic?(0,l.TE)(t):r,c=(0,u.UR)({vertexAttributes:e,vertexSpace:i,spatialReference:t.spatialReference},r,{allowBufferReuse:!0});return{vertexAttributes:new a.default({...c,uv:e.uv}),vertexSpace:r,components:[new s.default({faces:e.faces,material:n?.material||null})],spatialReference:t.spatialReference}}const x={faceDescriptions:[{axis:[0,-1,0],uvOrigin:[0,.625],corners:[[-1,-1],[1,-1],[1,1],[-1,1]]},{axis:[1,0,0],uvOrigin:[.25,.625],corners:[[-1,-1],[1,-1],[1,1],[-1,1]]},{axis:[0,1,0],uvOrigin:[.5,.625],corners:[[1,-1],[-1,-1],[-1,1],[1,1]]},{axis:[-1,0,0],uvOrigin:[.75,.625],corners:[[1,-1],[-1,-1],[-1,1],[1,1]]},{axis:[0,0,1],uvOrigin:[0,.375],corners:[[-1,-1],[1,-1],[1,1],[-1,1]]},{axis:[0,0,-1],uvOrigin:[0,.875],corners:[[-1,1],[1,1],[1,-1],[-1,-1]]}],uvScales:[[0,0],[1,0],[1,1],[0,1]],faceVertexOffsets:[0,1,2,0,2,3]},v={south:0,east:1,north:2,west:3,up:4,down:5},w=(0,i.vt)(),A=(0,r.vt)()},22141(e,t,n){n.d(t,{$5:()=>b,CN:()=>x,KM:()=>M,Mv:()=>R,X4:()=>v,gr:()=>A,qs:()=>C,si:()=>w,xA:()=>T});var r=n(34727),o=n(77690),i=n(29242),s=n(58083),a=n(9093),l=n(35522),u=n(51850),c=n(73941),f=n(48353),p=n(9762),h=(n(79258),n(21325)),g=n(28735),d=n(13030),y=n(73354),m=n(50867);function x(e,t,n,r){e.error(`Failed to project from (wkid:${t.wkid}) to (wkid:${n.wkid}).${r?" ":""}${r}`)}function v(e,t,n,r,o,i){return E(0,d.xs.fromTypedArray(e),0,d.Xm.fromTypedArray(t),n,d.Xm.fromTypedArray(r),o,d.xs.fromTypedArray(i))?i:null}function w(e,t,n,r,o,i){return E(1,d.xs.fromTypedArray(e),0,d.Xm.fromTypedArray(t),n,d.Xm.fromTypedArray(r),o,d.xs.fromTypedArray(i))?i:null}function A(e,t,n,r){return(0,p.projectBuffer)(e,t,0,n,r,0)?n:null}function b(e,t,n,r){return(0,p.projectBuffer)(e,t,0,n,r,0)?n:null}function C(e,t,n){return(0,o.Ge)(_,n),(0,y.b)(t,e,_),(0,r.or)(_)&&(0,y.n)(t,t),t}function M(e,t,n){return(0,o.z0)(_,n),(0,m.t)(t,e,_),(0,r.or)(_)&&(0,y.n)(t,t,4),t}function T(e,t,n,r,o,i){if(!E(0,d.xs.fromTypedArray(e,4*Float32Array.BYTES_PER_ELEMENT),1,d.Xm.fromTypedArray(t),n,d.Xm.fromTypedArray(r),o,d.xs.fromTypedArray(i,4*Float32Array.BYTES_PER_ELEMENT)))return null;for(let t=3;t<e.length;t+=4)i[t]=e[t];return i}function R(e,t,n,r,o,i){if(!E(1,d.xs.fromTypedArray(e,16),1,d.Xm.fromTypedArray(t),n,d.Xm.fromTypedArray(r),o,d.xs.fromTypedArray(i,16)))return null;for(let t=3;t<e.length;t+=4)i[t]=e[t];return i}function S(e,t,n,r,i){switch((0,f.l)(r,n,U,r),1===e&&(0,s.B8)(U,U),t){case 0:return(0,o.Ge)(i,U);case 1:return(0,o.z0)(i,U)}}function E(e,t,n,r,o,i,s,a){if(!t)return;const u=r.count;if(function(e){return e.isWGS84||(0,h.x1)(e)||(0,c.q8)(e)||(0,c.KQ)(e)}(o))for(let r=0;r<u;r++)i.getVec(r,L),t.getVec(r,Z),(0,l.ei)(Z,Z,S(e,n,L,s,_)),a.setVec(r,Z);else for(let o=0;o<u;o++){i.getVec(o,L),t.getVec(o,Z);const u=(0,g.jg)(r.get(o,1));let c=Math.cos(u);1===n!=(0===e)&&(c=1/c),S(e,n,L,s,_),0===e?(_[0]*=c,_[1]*=c,_[2]*=c,_[3]*=c,_[4]*=c,_[5]*=c):(_[0]*=c,_[3]*=c,_[6]*=c,_[1]*=c,_[4]*=c,_[7]*=c),(0,l.ei)(Z,Z,_),(0,l.S8)(Z,Z),a.setVec(o,Z)}return a}const L=(0,u.vt)(),Z=(0,u.vt)(),U=(0,a.vt)(),_=(0,i.vt)();n.d(t,["JP",0,"Projection may be possible after calling projection.load()."])},72258(e,t,n){n.d(t,{UR:()=>A,p5:()=>w,xK:()=>S});var r=n(53966),o=n(34727),i=n(86211),s=n(77690),a=n(29242),l=n(58083),u=n(9093),c=n(35522),f=n(51850),p=n(73941),h=n(98764),g=n(48353),d=n(65806),y=n(27615),m=n(73354),x=n(22141);const v=()=>r.A.getLogger("esri.geometry.support.meshUtils.vertexSpaceConversion");function w(e,t,{vertexSpace:n,spatialReference:r}){if("georeferenced"===n.type){const o=e;if(!(0,d.g)(t,o,r))return!1;const{origin:i}=n;return(0,c.Re)(e,o,i),!0}const o=(0,h.lO)(r),i=e;if(!(0,d.g)(t,i,o))return!1;const{origin:s}=n,a=_;if(!(0,g.l)(r,s,a,o))return!1;const u=(0,l.B8)(_,a);return null!=u&&((0,c.Z0)(e,i,u),!0)}function A(e,t,n){const{vertexSpace:r,transform:o,vertexAttributes:i}=e,a=(0,y.Hq)(r)?o:null,f=T(e.spatialReference,n,3);if((0,y.yJ)(r,t)&&(!a||(0,l.t2)(a.localMatrix,u.zK))&&R(f)){const{position:e,normal:t,tangent:r}=i,o=n?.allowBufferReuse;return{position:o?e:e.slice(),normal:o?t:t?.slice(),tangent:o?r:r?.slice()}}switch(e.vertexSpace.type){case"local":return"local"===t.type?function({vertexAttributes:e,spatialReference:t,transform:n},{origin:r},o,i){const s=b(t,i);if(!(0,g.l)(t,r,E,s))return(0,x.CN)(v(),t,s),null;if(n&&(0,l.lw)(E,E,n.localMatrix),!(0,g.l)(t,o,L,s))return(0,x.CN)(v(),s,t),null;(0,l.B8)(L,L);const a=(0,l.lw)(E,L,E);return M(a,t,i,3),C(e,a)}(e,e.vertexSpace,t.origin,n):function({spatialReference:e,vertexAttributes:t,transform:n},{origin:r},o,i){const s=b(e,i);if(!(0,g.l)(e,r,E,s))return(0,x.CN)(v(),e,s),null;n&&(0,l.lw)(E,E,n.localMatrix),M(E,e,i,1);const a=new Float64Array(t.position.length),u=function(e,t,n,r,o){(0,m.t)(r,e,t);const i=new Float64Array(e.length);return(0,x.$5)(r,o,i,n)?i:((0,x.CN)(v(),o,n),null)}(t.position,E,e,a,s);if(!u)return null;const f=function(e,t,n,r,o,i){if(null==o)return null;const s=new Float32Array(o.length);return(0,x.qs)(o,s,i),(0,x.si)(s,e,t,n,r,s)?s:((0,x.CN)(v(),r,t),null)}(u,e,a,s,t.normal,E);if(t.normal&&!f)return null;const p=function(e,t,n,r,o,i){if(null==o)return null;const s=new Float32Array(o.length);return(0,x.KM)(o,s,i),(0,x.Mv)(s,e,t,n,r,s)?s:((0,x.CN)(v(),r,t),null)}(u,e,a,s,t.tangent,E);if(t.tangent&&!p)return null;if(o){const e=(0,c.ze)(U,o);(0,m.a)(u,u,e)}return{position:u,normal:f,tangent:p}}(e,e.vertexSpace,t.origin,n);case"georeferenced":return"local"===t.type?function({vertexAttributes:e,spatialReference:t,transform:n},{origin:r},o,i){const a=b(t,i);if(!(0,g.l)(t,o,E,a))return(0,x.CN)(v(),t,a),null;const u=1/T(t,i,2);(0,l.hs)(E,E,[u,u,u]);const c=(0,l.B8)(L,E),{position:f,normal:p,tangent:h}=function(e,t,n){if(!t)return e;if(!n){const{position:n,normal:r,tangent:o}=e;return{position:(0,m.a)(new Float64Array(n.length),n,t),tangent:o,normal:r}}const r=C(e,n.localMatrix);return(0,m.a)(r.position,r.position,t),r}(e,r,n),d=new Float64Array(f.length),y=function(e,t,n,r,o){const i=(0,x.gr)(e,t,r,o);if(!i)return(0,x.CN)(v(),t,o),null;const s=new Float64Array(i.length);return(0,m.t)(s,i,n),s}(f,t,c,d,a);if(!y)return null;const w=(0,s.Ge)(Z,c),A=function(e,t,n,r,o,i,s){if(null==e)return null;const a=s??new Float32Array(e.length);return(0,x.X4)(e,t,n,r,o,a)?((0,m.b)(a,a,i),a):((0,x.CN)(v(),n,o),null)}(p,f,t,d,a,w,p!==e.normal?p:void 0);if(!A&&p)return null;const M=function(e,t,n,r,o,i,s){if(null==e)return null;const a=s??new Float32Array(e.length);return(0,x.xA)(e,t,n,r,o,a)?((0,m.b)(a,a,i,4),a):((0,x.CN)(v(),n,o),null)}(h,f,t,d,a,w,h!==e.tangent?h:void 0);return!M&&h?null:{position:y,normal:A,tangent:M}}(e,e.vertexSpace,t.origin,n):function({vertexAttributes:e,transform:t,spatialReference:n},{origin:r},o,i){const s=T(n,i,3),a=r||!R(s)?(0,l.C)(E,t?.localMatrix??u.zK):null;a&&M(a,n,i,3);const{position:f,normal:p,tangent:h}=a?C(e,a):e,g=i?.allowBufferReuse,d=g?f:new Float64Array(f.length);let y=f;if(r&&(y=(0,m.a)(d,y,r)),o){const e=(0,c.ze)(U,o);y=(0,m.a)(d,y,e)}return{position:y!==e.position||g?y:y.slice(),normal:p!==e.normal||g?p:p?.slice(),tangent:h!==e.tangent||g?h:h?.slice()}}(e,e.vertexSpace,t.origin,n)}}function b(e,t){return t?.useEllipsoid&&(0,p.B3)(e)?h.Y0:(0,h.lO)(e)}function C(e,t){const n=new Float64Array(e.position.length);(0,m.t)(n,e.position,t);const r=e.normal?new Float32Array(e.normal.length):null,o=e.tangent?new Float32Array(e.tangent.length):null;return r&&e.normal&&(0,x.qs)(e.normal,r,t),o&&e.tangent&&(0,x.KM)(e.tangent,o,t),{position:n,normal:r,tangent:o}}function M(e,t,n,r){const o=T(t,n,r);R(o)||(0,l.hs)(e,e,[o,o,o])}function T(e,t,n){const r=!!(1&n),o=!!(2&n),i=t?.sourceUnit,s=t?.targetUnit;if(!i&&!s)return 1;let a=S(i,e);r||!i||R(a)||(v().warn("source unit conversion not supported"),a=1);let l=1/S(s,e);return o||!s||R(l)||(v().warn("target unit conversion not supported"),l=1),a*l}function R(e){return(0,o.Io)(e,1)}function S(e,t){if(null==e)return 1;const n=(0,i.KX)(t);return 1/(0,i.oU)(n,"meters",e)}const E=(0,u.vt)(),L=(0,u.vt)(),Z=(0,a.vt)(),U=(0,f.vt)(),_=(0,u.vt)()},27615(e,t,n){n.d(t,{CK:()=>l,Hq:()=>a,MW:()=>u,TE:()=>c,yJ:()=>f});var r=n(35522),o=n(86738),i=n(95696),s=n(18251);function a(e){return null!=e.origin}function l(e){return a(e.vertexSpace)}function u(e,t){if(!a(e))return null;const[n,r,i]=e.origin;return new o.A({x:n,y:r,z:i,spatialReference:t})}function c(e,t){const{x:n,y:r,z:o,spatialReference:a}=e,l=[n,r,o??0];return"local"===(t?.vertexSpace??function(e){return e.isGeographic||e.isWebMercator?"local":"georeferenced"}(a))?new s.A({origin:l}):new i.A({origin:l})}function f(e,t){return e.type===t.type&&(e.origin===t.origin||null!=e.origin&&null!=t.origin&&(0,r.t2)(e.origin,t.origin))}},41618(e,t,n){n.d(t,{uM:()=>_});var r=n(17676),o=(n(9762),n(4197)),i=(n(58083),n(9093)),s=n(51850);n(48353),(0,i.vt)(),new class{constructor(){this.verticalDistanceToGround=0,this.sampledElevation=0,this.z=0}},(0,s.vt)(),n(44208),n(53966);var a=n(62788),l=n(95488),u=n(83349),c=n(15585),f=n(95108),p=n(97146),h=n(34727),g=n(86211),d=n(35522),y=n(27921);function m(e,t,n){const r=function(e,t,n,r){const o=(e=>!Array.isArray(e[0]))(t)?(e,n)=>t[3*e+n]:(e,n)=>t[e][n],i=(0,g.GA)(r)/(0,g.G9)(r);return(0,y.lU)(e,(e,t)=>(0,d.hZ)(e,o(t,0)*i,o(t,1)*i,o(t,2)),n)}(x,e,t,n)?(0,y.Qj)(x):[0,0,1];return Math.abs(r[2])>Math.cos((0,h.kU)(80))?2:Math.abs(r[1])>Math.abs(r[0])?1:0}const x=(0,y.vt)();function v(e,t,n){if(!t)return 2;let r=null;for(const o of e){const e=E(o,t),i=e<3?2:m(o,e,n);if(r??=i,i!==r)return 2}return r??2}function w(e,t,n){if(!t)return!(0,f.$3)(e);if(e.length<3)return!1;switch(n){case 0:return!(0,f.$3)(e,1,2);case 1:return!(0,f.$3)(e,0,2);case 2:return!(0,f.$3)(e,0,1)}}const A=new l.I;let b=new WeakSet;function C(e,t){if(!(0,c.O9)())return L("libtess-not-loaded");const n=null!=t.outlines,{positions:r,mergedPathLengths:i}=function(e){const t=function(e){const t=e.reduce((e,t)=>e+t.pathLengths.length,0),n=new Array(t);let r=0;for(let t=0;t<e.length;t++){const o=e[t].pathLengths;for(let e=0;e<o.length;e++)n[r++]=o[e]}return n}(e.polygons),n=3*e.polygonVertexCount;return n===e.positions.length?{positions:e.positions,mergedPathLengths:t}:{positions:(0,o.l5)(e.positions,0,n),mergedPathLengths:t}}(e),s=performance.now(),{vertices:a,indices:l,outlineIndices:u,outlineRingLengths:f}=(0,c.O5)(r,i,3,n),h=performance.now()-s;if(null!=t.owner&&h>250&&b.add(t.owner),a.length%3!=0)return L("positions-not-multiple-of-3");const{positions:g,outlineIndexBuffer:d,mergedOutlineRingLengths:y}=n?function(e,t,n,r,i){const s=e.polygonVertexCount,a=n.length/3,l=(t??[]).values().filter(e=>e.index>=s).map(e=>({index:a+e.index-s,count:e.count})).toArray();if(0===l.length)return{positions:n,outlineIndexBuffer:r,mergedOutlineRingLengths:i};const u=3*s,c=(0,o.l5)(e.positions,u,e.positions.length-u),f=(0,o.yH)(n,c),{outlineIndexBuffer:h,outlineRingLengths:g}=T(l,f);return{positions:f,outlineIndexBuffer:(0,p.lC)(r,h,f.length/3),mergedOutlineRingLengths:(0,p.lC)(i,g,i.length+g.length)}}(e,t.outlines,a,u,f):{positions:a,outlineIndexBuffer:void 0,mergedOutlineRingLengths:void 0};return{succeeded:!0,positions:g,indices:l,outlineIndexBuffer:d,outlineRingLengths:y,vertexCount:g.length/3,method:"libtess"}}function M(e,t,n){for(let r=0;r<e.length;r+=3){const o=e[r+t];e[r+t]=e[r+n],e[r+n]=o}}function T(e,t){const n=(0,p.my)(e.length);let r=0;for(let o=0;o<e.length;o++){const i=e[o],s=i.count;if(s<=0){n[o]=0;continue}const a=3*i.index,l=3*(i.index+s-1),u=s>1&&t[a]===t[l]&&t[a+1]===t[l+1]&&t[a+2]===t[l+2]?s-1:s,c=u>0?u+1:0;n[o]=c,r+=c}const o=(0,p.my)(r,t.length/3);let i=0;for(let t=0;t<e.length;t++){const r=n[t];if(0===r)continue;const s=e[t].index,a=r-1;for(let e=0;e<a;e++)o[i++]=s+e;o[i++]=s}return{outlineIndexBuffer:o,outlineRingLengths:n}}function R(e,{index:t,count:n}){return(0,o.l5)(e,3*t,3*n)}function S(e,t,n,r,o,i){let s=i?e.length-1:0;const a=i?-1:1;n*=3;for(let i=0;i<r;++i){const r=e[s];t[n++]=r[0],t[n++]=r[1],t[n++]=o&&null!=r[2]?r[2]:0,s+=a}return n/3}function E(e,t){return function(e,t){const n=e.length;if(n<2)return!1;const r=e[0],o=e[n-1];return r[0]===o[0]&&r[1]===o[1]&&(!t||r[2]===o[2])}(e,t)?e.length-1:e.length}function L(e){return{succeeded:!1,message:e}}class Z{constructor(e,t,n,r){this.positions=e,this.polygonIndices=t,this.outline=n,this.projectionSuccess=r,this.count=e.length/3}get vertexCount(){return this.positions.length/3}get polygonIndexCount(){return this.polygonIndices.length}get outlineIndexCount(){const{outline:e}=this;if("tessellated-indices"!==e.output)return 0;let t=0;for(let n=0;n<e.outlineIndices.length;n++)t+=I(e.outlineIndices[n]);return t}get outlineSegmentCount(){const{outline:e}=this;if("tessellated-indices"!==e.output)return 0;let t=0;for(let n=0;n<e.outlineIndices.length;n++)t+=I(e.outlineIndices[n]);return t}}class U extends Z{}function _(e,t){const{projectIfNearlyVertical:n=!1,outlineOutput:i="none",method:s,owner:l}=t??{},f="tessellated-indices"===i,h=v(e.rings,!!e.hasZ,e.spatialReference),g=function(e,t){const{hasZ:n,ccwRingsAsHoles:r,spatialReference:i}=t,s=t.axis??v(e,n,i),a=e.length,l=[],u=[],c=[],f=[],p=e.reduce((e,t)=>e+t.length,0);let h=0;const g=(0,o.jh)(3*p);let d=0;const y=r&&e[0]&&w(e[0],n,s);for(let t=a-1;t>=0;t--){const o=e[t],i=E(o,n);if(i<3){i>1&&f.push(o);continue}const a=!!r&&w(o,n,s);if(y?!a:a)l[h++]=o;else{let e=o.length;for(let t=0;t<h;++t)e+=l[t].length;const t={index:d,pathLengths:new Array(h+1),count:e,holeIndices:new Array(h)};t.pathLengths[0]=o.length,o.length>0&&c.push({index:d,count:o.length}),d=S(o,g,d,o.length,n,y);for(let e=0;e<h;++e){const r=l[e];t.holeIndices[e]=d,t.pathLengths[e+1]=r.length,r.length>0&&c.push({index:d,count:r.length}),d=S(r,g,d,r.length,n,y)}h=0,t.count>0&&u.push(t)}}const m=d;for(const e of f)c.push({index:d,count:e.length}),d=S(e,g,d,e.length,n,y);return{positions:3*d===g.length?g:(0,o.l5)(g,0,3*d),polygonVertexCount:m,polygons:u,outlines:c}}(e.rings,{hasZ:!!e.hasZ,ccwRingsAsHoles:!0,spatialReference:e.spatialReference,axis:h}),d=function(e,t){const n=function(e,t){const n={method:t?.method??"auto",projectionAxis:t?.projectionAxis??void 0,outlines:t?.outlines??void 0,owner:t?.owner??void 0},{projectionAxis:r}=n,o=null!=r&&2!==r;o&&M(e.positions,r,2);const i=function(e,t){if("libtess"===t.method)return C(e,t);const n=function(e,t){const n=null!=t.owner&&b.has(t.owner);return"auto"===t.method&&!(n&&e.polygonVertexCount>=1e4)}(e,t),r=Array();let o=0;for(const i of e.polygons){const s=R(e.positions,i),a=(i.holeIndices??[]).map(e=>e-i.index),l=a.length>0?a:null,c=(0,u.e)(s,l,3),f=u.e.deviation(s,a,3,c);if(n&&f>1e-5)return C(e,t);for(let e=0;e<c.length;e++)r.push(c[e]+i.index);o=Math.max(o,f)}const{outlineIndexBuffer:i,outlineRingLengths:s}=null!=t.outlines?T(t.outlines,e.positions):{outlineIndexBuffer:void 0,outlineRingLengths:void 0};return{succeeded:!0,positions:e.positions,indices:(0,p.uW)(r),outlineIndexBuffer:i,outlineRingLengths:s,vertexCount:e.positions.length/3,method:"earcut",deviation:o}}(e,n);if(o){const t=i.succeeded?i.positions:null;null!=t&&t!==e.positions&&M(t,2,r),M(e.positions,2,r)}return i}(e,t);return n.succeeded?n:"libtess-not-loaded"===n.message?((0,a.gc)(A),async function(){try{await(0,c.l3)(),A.notify()}catch(e){throw e}}()):n}(g,{projectionAxis:n?h:void 0,outlines:f?g.outlines:void 0,method:s,owner:l});if((0,r.$X)(d))return d;if(!d.succeeded)return null;let y={output:"none"};if("vertex-data"===i){const e=d.positions!==g.positions?g.positions:g.positions.slice();y={output:"vertex-data",outlines:N(g.outlines,e)}}else"tessellated-indices"===i&&(y=function(e){const{outlineIndexBuffer:t,outlineRingLengths:n}=e;if(null==t||null==n)return{output:"none"};const r=new Array(n.length);let o=0;for(let e=0;e<n.length;e++){const i=n[e],s=t.slice(o,o+i);r[e]=s,o+=i}return{output:"tessellated-indices",outlineIndices:r}}(d));return new U(d.positions,d.indices,y,!0)}function N(e,t,n=null){return e.values().filter(({count:e})=>e>1).map(({index:e,count:r})=>{const i=3*e,s=3*r;return null!=n?new O(e,r,(0,o.l5)(t,i,s),(0,o.l5)(n,i,s)):new F(e,r,(0,o.l5)(t,i,s))}).toArray()}function I(e,t=0,n=e.length){return n>1&&e[t]===e[t+n-1]?n-1:n}class F{constructor(e,t,n){this.index=e,this.count=t,this.position=n}}class O extends F{constructor(e,t,n,r){super(e,t,n),this.mapPositions=r}}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3734],{60999(t,e,n){n.d(e,{DZ:()=>m,Ke:()=>p,Tj:()=>l,UT:()=>d,aD:()=>y,jJ:()=>s});var r=n(5482),a=n(69622),o=n(97768),u=n(17676),i=n(10107),c=n(64108);function s(t,e,n){return(0,u.Lx)(t.map((t,r)=>e.apply(n,[t,r])))}async function l(t,e,n){return(await(0,u.Lx)(t.map((t,r)=>e.apply(n,[t,r])))).map(t=>t.value)}function f(t){return{ok:!0,value:t}}function h(t){return{ok:!1,error:t}}async function p(t){if(null==t)return{ok:!1,error:new Error("no promise provided")};try{return f(await t)}catch(t){return h(t)}}async function m(t){try{return f(await t)}catch(t){return(0,u.QP)(t),h(t)}}function d(t,e){return new g(t,e)}let g=class extends a.A{get value(){return null!=(t=this._result)&&!0===t.ok?t.value:null;var t}get error(){return null!=(t=this._result)&&!1===t.ok?t.error:null;var t}get finished(){return null!=this._result}constructor(t,e){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:n}=this._abortController;this.promise=t(n),this.promise.then(t=>{this._result=f(t),this._cleanup()},t=>{this._result=h(t),this._cleanup()}),this._abortHandle=(0,u.u7)(e,this.abort)}normalizeCtorArgs(){return{}}destroy(){this.abort()}_cleanup(){this._abortHandle=(0,o.xt)(this._abortHandle),this._abortController=null}};(0,r.Cg)([(0,i.MZ)()],g.prototype,"value",null),(0,r.Cg)([(0,i.MZ)()],g.prototype,"error",null),(0,r.Cg)([(0,i.MZ)()],g.prototype,"finished",null),(0,r.Cg)([(0,i.MZ)()],g.prototype,"promise",void 0),(0,r.Cg)([(0,i.MZ)()],g.prototype,"_result",void 0),g=(0,r.Cg)([(0,c.$)("esri.core.asyncUtils.ReactiveTask")],g);class y{constructor(){this._sequence=Promise.resolve()}async acquire(){let t;this._sequence=new Promise(e=>{t=this._sequence.then(()=>e,()=>e)});const e=await t;return{[Symbol.dispose]:e}}async run(t){const e={stack:[],error:void 0,hasError:!1};try{return(0,r.mS)(e,await this.acquire(),!1),await t()}catch(t){e.error=t,e.hasError=!0}finally{(0,r.hk)(e)}}}},35522(t,e,n){n.d(e,{$A:()=>S,Bw:()=>o,C:()=>u,Cc:()=>$,DI:()=>w,Io:()=>v,Ln:()=>y,Om:()=>C,Qr:()=>f,Re:()=>s,S8:()=>A,T9:()=>d,WQ:()=>c,Z0:()=>_,_S:()=>p,aI:()=>Z,ei:()=>E,fw:()=>P,gL:()=>F,hG:()=>M,hZ:()=>i,hs:()=>g,jk:()=>m,lw:()=>l,m3:()=>b,oW:()=>R,t2:()=>q,tn:()=>h,ze:()=>x});var r=n(51850),a=n(34304);function o(t){const e=t[0],n=t[1],r=t[2];return Math.sqrt(e*e+n*n+r*r)}function u(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function i(t,e,n,r){return t[0]=e,t[1]=n,t[2]=r,t}function c(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t}function s(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function l(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t}function f(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t}function h(t,e){return t[0]=Math.abs(e[0]),t[1]=Math.abs(e[1]),t[2]=Math.abs(e[2]),t}function p(t,e){return t[0]=Math.sign(e[0]),t[1]=Math.sign(e[1]),t[2]=Math.sign(e[2]),t}function m(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t}function d(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t}function g(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t}function y(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t}function v(t,e){const n=e[0]-t[0],r=e[1]-t[1],a=e[2]-t[2];return Math.sqrt(n*n+r*r+a*a)}function M(t,e){const n=e[0]-t[0],r=e[1]-t[1],a=e[2]-t[2];return n*n+r*r+a*a}function b(t){const e=t[0],n=t[1],r=t[2];return e*e+n*n+r*r}function x(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}function w(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}function A(t,e){const n=e[0],r=e[1],a=e[2];let o=n*n+r*r+a*a;return o>0&&(o=1/Math.sqrt(o),t[0]=e[0]*o,t[1]=e[1]*o,t[2]=e[2]*o),t}function C(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function S(t,e,n){const r=e[0],a=e[1],o=e[2],u=n[0],i=n[1],c=n[2];return t[0]=a*c-o*i,t[1]=o*u-r*c,t[2]=r*i-a*u,t}function $(t,e,n,r){const a=e[0],o=e[1],u=e[2];return t[0]=a+r*(n[0]-a),t[1]=o+r*(n[1]-o),t[2]=u+r*(n[2]-u),t}function _(t,e,n){const r=e[0],a=e[1],o=e[2];return t[0]=n[0]*r+n[4]*a+n[8]*o+n[12],t[1]=n[1]*r+n[5]*a+n[9]*o+n[13],t[2]=n[2]*r+n[6]*a+n[10]*o+n[14],t}function E(t,e,n){const r=e[0],a=e[1],o=e[2];return t[0]=r*n[0]+a*n[3]+o*n[6],t[1]=r*n[1]+a*n[4]+o*n[7],t[2]=r*n[2]+a*n[5]+o*n[8],t}function F(t,e,n){return P(t,e,n[0],n[1],n[2],n[3])}function P(t,e,n,r,a,o){const u=e[0],i=e[1],c=e[2],s=r*c-a*i,l=a*u-n*c,f=n*i-r*u,h=r*f-a*l,p=a*s-n*f,m=n*l-r*s,d=2*o;return t[0]=u+s*d+2*h,t[1]=i+l*d+2*p,t[2]=c+f*d+2*m,t}const j=(0,r.vt)(),k=(0,r.vt)();function q(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function Z(t,e){if(t===e)return!0;const n=t[0],r=t[1],o=t[2],u=e[0],i=e[1],c=e[2],s=(0,a.FD)();return Math.abs(n-u)<=s*Math.max(1,Math.abs(n),Math.abs(u))&&Math.abs(r-i)<=s*Math.max(1,Math.abs(r),Math.abs(i))&&Math.abs(o-c)<=s*Math.max(1,Math.abs(o),Math.abs(c))}function R(t,e,n){const r=n[0]-e[0],a=n[1]-e[1],o=n[2]-e[2];let u=r*r+a*a+o*o;return u>0?(u=1/Math.sqrt(u),t[0]=r*u,t[1]=a*u,t[2]=o*u,t):(t[0]=0,t[1]=0,t[2]=0,t)}const z=s,L=l,N=f,O=v,T=M,I=o,D=b;Object.freeze(Object.defineProperty({__proto__:null,abs:h,add:c,angle:function(t,e){A(j,t),A(k,e);const n=C(j,k);return n>1?0:n<-1?Math.PI:Math.acos(n)},bezier:function(t,e,n,r,a,o){const u=1-o,i=u*u,c=o*o,s=i*u,l=3*o*i,f=3*c*u,h=c*o;return t[0]=e[0]*s+n[0]*l+r[0]*f+a[0]*h,t[1]=e[1]*s+n[1]*l+r[1]*f+a[1]*h,t[2]=e[2]*s+n[2]*l+r[2]*f+a[2]*h,t},ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t},clamp:function(t,e=0,n=1){return t[0]=Math.min(Math.max(t[0],e),n),t[1]=Math.min(Math.max(t[1],e),n),t[2]=Math.min(Math.max(t[2],e),n),t},copy:u,cross:S,crossAndNormalize:function(t,e,n){const r=e[0],a=e[1],o=e[2],u=n[0],i=n[1],c=n[2],s=a*c-o*i,l=o*u-r*c,f=r*i-a*u,h=Math.sqrt(s*s+l*l+f*f);return t[0]=s/h,t[1]=l/h,t[2]=f/h,t},direction:R,dist:O,distance:v,div:N,divide:f,dot:C,equals:Z,exactEquals:q,floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t},hermite:function(t,e,n,r,a,o){const u=o*o,i=u*(2*o-3)+1,c=u*(o-2)+o,s=u*(o-1),l=u*(3-2*o);return t[0]=e[0]*i+n[0]*c+r[0]*s+a[0]*l,t[1]=e[1]*i+n[1]*c+r[1]*s+a[1]*l,t[2]=e[2]*i+n[2]*c+r[2]*s+a[2]*l,t},inverse:w,len:I,length:o,lerp:$,max:d,min:m,mul:L,multiply:l,negate:x,normalize:A,random:function(t,e=1){const n=a.Ov,r=2*n()*Math.PI,o=2*n()-1,u=Math.sqrt(1-o*o)*e;return t[0]=Math.cos(r)*u,t[1]=Math.sin(r)*u,t[2]=o*e,t},rotateX:function(t,e,n,r){const a=[],o=[];return a[0]=e[0]-n[0],a[1]=e[1]-n[1],a[2]=e[2]-n[2],o[0]=a[0],o[1]=a[1]*Math.cos(r)-a[2]*Math.sin(r),o[2]=a[1]*Math.sin(r)+a[2]*Math.cos(r),t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t},rotateY:function(t,e,n,r){const a=[],o=[];return a[0]=e[0]-n[0],a[1]=e[1]-n[1],a[2]=e[2]-n[2],o[0]=a[2]*Math.sin(r)+a[0]*Math.cos(r),o[1]=a[1],o[2]=a[2]*Math.cos(r)-a[0]*Math.sin(r),t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t},rotateZ:function(t,e,n,r){const a=[],o=[];return a[0]=e[0]-n[0],a[1]=e[1]-n[1],a[2]=e[2]-n[2],o[0]=a[0]*Math.cos(r)-a[1]*Math.sin(r),o[1]=a[0]*Math.sin(r)+a[1]*Math.cos(r),o[2]=a[2],t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t},round:function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t},scale:g,scaleAndAdd:y,set:i,sign:p,sqrDist:T,sqrLen:D,squaredDistance:M,squaredLength:b,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:z,subtract:s,transformMat3:E,transformMat4:_,transformMat4Z:function(t,e){return e[2]*t[0]+e[6]*t[1]+e[10]*t[2]+e[14]},transformQuat:F,transformQuatValues:P},Symbol.toStringTag,{value:"Module"})),n.d(e,["Il",0,I,"jb",0,z,"lo",0,T,"uE",0,D,"xg",0,O])},60408(t,e,n){function r(t){return void 0!==t.xmin&&void 0!==t.ymin&&void 0!==t.xmax&&void 0!==t.ymax}function a(t){return void 0!==t.points}function o(t){return void 0!==t.x&&void 0!==t.y}function u(t){return void 0!==t.paths||void 0!==t.curvePaths}function i(t){return void 0!==t.rings||void 0!==t.curveRings}function c(t){return"object"==typeof t&&"vertexAttributes"in t}function s(t){return t?o(t)?"esriGeometryPoint":u(t)?"esriGeometryPolyline":i(t)?"esriGeometryPolygon":r(t)?"esriGeometryEnvelope":a(t)?"esriGeometryMultipoint":null:null}function l(t){return null!=t&&("hasZ"in t&&t.hasZ||"z"in t&&null!=t.z)}function f(t){return null!=t&&("hasM"in t&&t.hasM||"m"in t&&null!=t.m)}n.d(e,{$B:()=>s,Bi:()=>i,Pv:()=>l,Rg:()=>u,U9:()=>a,W0:()=>f,ZC:()=>r,fT:()=>o,uW:()=>c})},76369(t,e,n){n.d(e,{LF:()=>w,M9:()=>A});var r=n(49186),a=n(93637),o=n(40876),u=n(59247),i=n(27865);class c extends SyntaxError{constructor(t,e,n,r){super(t),this.expected=e,this.found=n,this.location=r,this.name="SyntaxError"}format(t){let e="Error: "+this.message;if(this.location){let n=null;const r=t.find(t=>t.source===this.location.source);r&&(n=r.text.split(/\r\n|\n|\r/g));const a=this.location.start,o=this.location.source&&"function"==typeof this.location.source.offset?this.location.source.offset(a):a,u=this.location.source+":"+o.line+":"+o.column;if(n){const t=this.location.end,r="".padEnd(o.line.toString().length," "),i=n[a.line-1],c=(a.line===t.line?t.column:i.length+1)-a.column||1;e+="\n --\x3e "+u+"\n"+r+" |\n"+o.line+" | "+i+"\n"+r+" | "+"".padEnd(a.column-1," ")+"".padEnd(c,"^")}else e+="\n at "+u}return e}static buildMessage(t,e){function n(t){return t.codePointAt(0).toString(16).toUpperCase()}const r=Object.prototype.hasOwnProperty.call(RegExp.prototype,"unicode")?new RegExp("[\\p{C}\\p{Mn}\\p{Mc}]","gu"):null;function a(t){return r?t.replace(r,t=>"\\u{"+n(t)+"}"):t}function o(t){return a(t.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,t=>"\\x0"+n(t)).replace(/[\x10-\x1F\x7F-\x9F]/g,t=>"\\x"+n(t)))}function u(t){return a(t.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,t=>"\\x0"+n(t)).replace(/[\x10-\x1F\x7F-\x9F]/g,t=>"\\x"+n(t)))}const i={literal:t=>'"'+o(t.text)+'"',class(t){const e=t.parts.map(t=>Array.isArray(t)?u(t[0])+"-"+u(t[1]):u(t));return"["+(t.inverted?"^":"")+e.join("")+"]"+(t.unicode?"u":"")},any:()=>"any character",end:()=>"end of input",other:t=>t.description};function c(t){return i[t.type](t)}return"Expected "+function(t){const e=t.map(c);if(e.sort(),e.length>0){let t=1;for(let n=1;n<e.length;n++)e[n-1]!==e[n]&&(e[t]=e[n],t++);e.length=t}switch(e.length){case 1:return e[0];case 2:return e[0]+" or "+e[1];default:return e.slice(0,-1).join(", ")+", or "+e[e.length-1]}}(t)+" but "+function(t){return t?'"'+o(t)+'"':"end of input"}(e)+" found."}}function s(t){if(!t||0===t.length)return null;if("string"==typeof t){const e=l(t);return e&&0!==e.length?e:null}const e=t.map(t=>{if(!Number.isFinite(t.scale)||t.scale<=0)throw new r.A("effect:invalid-scale","scale must be finite and greater than 0",{stop:t});return{scale:t.scale,effects:l(t.value)}});e.sort((t,e)=>e.effects.length-t.effects.length);for(let t=0;t<e.length-1;t++){if(!(0,i.mj)(e[t].effects,e[t+1].effects))throw new r.A("effect:interpolation-impossible","Cannot interpolate by scale between 2 lists of mixed effects",{a:e[t].effects,b:e[t+1].effects});(0,i.O9)(e[t].effects,e[t+1].effects)}return e.sort((t,e)=>e.scale-t.scale),e}function l(t){let e;if(!t)return[];try{e=function(t,e){const n={},r=(e=void 0!==e?e:{}).grammarSource,a={start:xt};let o=xt;const u="none",i=")",s=",",l="(",f="%",h="px",p="cm",m="mm",d="in",g="pt",y="pc",v="deg",M="rad",b="grad",x="turn",w="#",A=".",C="e",S=/^[ \t\n\r]/,$=/^[a-z\-]/,_=/^[0-9a-fA-F]/,E=/^[+\-]/,F=/^[0-9]/,P=yt("none"),j=dt("none",!1),k=dt(")",!1),q=dt(",",!1),Z=gt([" ","\t","\n","\r"],!1,!1,!1),R=yt("function"),z=dt("(",!1),L=yt("identifier"),N=gt([["a","z"],"-"],!1,!1,!1),O=yt("percentage"),T=dt("%",!1),I=yt("length"),D=dt("px",!1),G=dt("cm",!1),K=dt("mm",!1),B=dt("in",!1),Q=dt("pt",!1),U=dt("pc",!1),H=yt("angle"),W=dt("deg",!1),J=dt("rad",!1),V=dt("grad",!1),X=dt("turn",!1),Y=yt("number"),tt=yt("color"),et=dt("#",!1),nt=gt([["0","9"],["a","f"],["A","F"]],!1,!1,!1),rt=gt(["+","-"],!1,!1,!1),at=gt([["0","9"]],!1,!1,!1),ot=dt(".",!1),ut=dt("e",!1);let it=0|e.peg$currPos,ct=it;const st=[{line:1,column:1}];let lt,ft=it,ht=e.peg$maxFailExpected||[],pt=0|e.peg$silentFails;if(e.startRule){if(!(e.startRule in a))throw new Error("Can't start parsing from rule \""+e.startRule+'".');o=a[e.startRule]}function mt(){return t.substring(ct,it)}function dt(t,e){return{type:"literal",text:t,ignoreCase:e}}function gt(t,e,n,r){return{type:"class",parts:t,inverted:e,ignoreCase:n,unicode:r}}function yt(t){return{type:"other",description:t}}function vt(e){let n,r=st[e];if(r)return r;if(e>=st.length)n=st.length-1;else for(n=e;!st[--n];);for(r=st[n],r={line:r.line,column:r.column};n<e;)10===t.charCodeAt(n)?(r.line++,r.column=1):r.column++,n++;return st[e]=r,r}function Mt(t,e,n){const a=vt(t),o=vt(e);return{source:r,start:{offset:t,line:a.line,column:a.column},end:{offset:e,line:o.line,column:o.column}}}function bt(t){it<ft||(it>ft&&(ft=it,ht=[]),ht.push(t))}function xt(){let t;return t=wt(),t===n&&(t=function(){let t,e;if(t=[],e=At(),e!==n)for(;e!==n;)t.push(e),e=At();else t=n;return t}()),t}function wt(){let e,r;return pt++,e=it,St(),t.substr(it,4)===u?(r=u,it+=4):(r=n,0===pt&&bt(j)),r!==n?(St(),ct=e,e=[]):(it=e,e=n),pt--,e===n&&0===pt&&bt(P),e}function At(){let e,r,a,o;return e=it,St(),r=function(){let e,r,a;return pt++,e=it,r=$t(),r!==n?(40===t.charCodeAt(it)?(a=l,it++):(a=n,0===pt&&bt(z)),a!==n?(ct=e,e=r):(it=e,e=n)):(it=e,e=n),pt--,e===n&&(r=n,0===pt&&bt(R)),e}(),r!==n?(St(),a=function(){let e,r,a,o,u,i,c,l;if(e=it,r=Ct(),r!==n){for(a=[],o=it,u=St(),44===t.charCodeAt(it)?(i=s,it++):(i=n,0===pt&&bt(q)),i===n&&(i=null),c=St(),l=Ct(),l!==n?(u=[u,i,c,l],o=u):(it=o,o=n);o!==n;)a.push(o),o=it,u=St(),44===t.charCodeAt(it)?(i=s,it++):(i=n,0===pt&&bt(q)),i===n&&(i=null),c=St(),l=Ct(),l!==n?(u=[u,i,c,l],o=u):(it=o,o=n);ct=e,e=function(t,e){return e.length>0?function(t,e){return[t].concat(function(t){return t.map(function(t){return t[3]})}(e))}(t,e):[t]}(r,a)}else it=e,e=n;return e}(),a===n&&(a=null),St(),41===t.charCodeAt(it)?(o=i,it++):(o=n,0===pt&&bt(k)),o!==n?(St(),ct=e,e=function(t,e){return{type:"function",name:t,parameters:e||[]}}(r,a)):(it=e,e=n)):(it=e,e=n),e}function Ct(){let t,e;return t=it,e=_t(),e===n&&(e=Et(),e===n&&(e=Ft(),e===n&&(e=function(){let t,e;return pt++,t=it,St(),e=jt(),e!==n?(ct=t,t=function(t){return{value:t,unit:null}}(e)):(it=t,t=n),pt--,t===n&&0===pt&&bt(Y),t}()))),e!==n&&(ct=t,e=function(t){return{type:"quantity",value:t.value,unit:t.unit}}(e)),t=e,t===n&&(t=it,e=Pt(),e!==n&&(ct=t,e=function(t){return{type:"color",colorType:t.type,value:t.value}}(e)),t=e),t}function St(){let e,r;for(pt++,e=[],r=t.charAt(it),S.test(r)?it++:(r=n,0===pt&&bt(Z));r!==n;)e.push(r),r=t.charAt(it),S.test(r)?it++:(r=n,0===pt&&bt(Z));return pt--,e}function $t(){let e,r,a;if(pt++,e=it,r=[],a=t.charAt(it),$.test(a)?it++:(a=n,0===pt&&bt(N)),a!==n)for(;a!==n;)r.push(a),a=t.charAt(it),$.test(a)?it++:(a=n,0===pt&&bt(N));else r=n;return r!==n&&(ct=e,r=mt()),e=r,pt--,e===n&&(r=n,0===pt&&bt(L)),e}function _t(){let e,r,a;return pt++,e=it,St(),r=jt(),r!==n?(37===t.charCodeAt(it)?(a=f,it++):(a=n,0===pt&&bt(T)),a!==n?(ct=e,e=function(t){return{value:t,unit:"%"}}(r)):(it=e,e=n)):(it=e,e=n),pt--,e===n&&0===pt&&bt(O),e}function Et(){let e,r,a;return pt++,e=it,St(),r=jt(),r!==n?(t.substr(it,2)===h?(a=h,it+=2):(a=n,0===pt&&bt(D)),a!==n?(ct=e,e=function(t){return{value:t,unit:"px"}}(r)):(it=e,e=n)):(it=e,e=n),e===n&&(e=it,St(),r=jt(),r!==n?(t.substr(it,2)===p?(a=p,it+=2):(a=n,0===pt&&bt(G)),a!==n?(ct=e,e=function(t){return{value:t,unit:"cm"}}(r)):(it=e,e=n)):(it=e,e=n),e===n&&(e=it,St(),r=jt(),r!==n?(t.substr(it,2)===m?(a=m,it+=2):(a=n,0===pt&&bt(K)),a!==n?(ct=e,e=function(t){return{value:t,unit:"mm"}}(r)):(it=e,e=n)):(it=e,e=n),e===n&&(e=it,St(),r=jt(),r!==n?(t.substr(it,2)===d?(a=d,it+=2):(a=n,0===pt&&bt(B)),a!==n?(ct=e,e=function(t){return{value:t,unit:"in"}}(r)):(it=e,e=n)):(it=e,e=n),e===n&&(e=it,St(),r=jt(),r!==n?(t.substr(it,2)===g?(a=g,it+=2):(a=n,0===pt&&bt(Q)),a!==n?(ct=e,e=function(t){return{value:t,unit:"pt"}}(r)):(it=e,e=n)):(it=e,e=n),e===n&&(e=it,St(),r=jt(),r!==n?(t.substr(it,2)===y?(a=y,it+=2):(a=n,0===pt&&bt(U)),a!==n?(ct=e,e=function(t){return{value:t,unit:"pc"}}(r)):(it=e,e=n)):(it=e,e=n)))))),pt--,e===n&&0===pt&&bt(I),e}function Ft(){let e,r,a;return pt++,e=it,r=jt(),r!==n?(t.substr(it,3)===v?(a=v,it+=3):(a=n,0===pt&&bt(W)),a!==n?(ct=e,e=function(t){return{value:t,unit:"deg"}}(r)):(it=e,e=n)):(it=e,e=n),e===n&&(e=it,r=jt(),r!==n?(t.substr(it,3)===M?(a=M,it+=3):(a=n,0===pt&&bt(J)),a!==n?(ct=e,e=function(t){return{value:t,unit:"rad"}}(r)):(it=e,e=n)):(it=e,e=n),e===n&&(e=it,r=jt(),r!==n?(t.substr(it,4)===b?(a=b,it+=4):(a=n,0===pt&&bt(V)),a!==n?(ct=e,e=function(t){return{value:t,unit:"grad"}}(r)):(it=e,e=n)):(it=e,e=n),e===n&&(e=it,r=jt(),r!==n?(t.substr(it,4)===x?(a=x,it+=4):(a=n,0===pt&&bt(X)),a!==n?(ct=e,e=function(t){return{value:t,unit:"turn"}}(r)):(it=e,e=n)):(it=e,e=n)))),pt--,e===n&&(r=n,0===pt&&bt(H)),e}function Pt(){let e,r,a,o;if(pt++,e=it,35===t.charCodeAt(it)?(r=w,it++):(r=n,0===pt&&bt(et)),r!==n){if(a=[],o=t.charAt(it),_.test(o)?it++:(o=n,0===pt&&bt(nt)),o!==n)for(;o!==n;)a.push(o),o=t.charAt(it),_.test(o)?it++:(o=n,0===pt&&bt(nt));else a=n;a!==n?(ct=e,e={type:"hex",value:mt()}):(it=e,e=n)}else it=e,e=n;return e===n&&(e=it,r=At(),r!==n&&(ct=e,r=function(t){return{type:"function",value:t}}(r)),e=r,e===n&&(e=it,r=$t(),r!==n&&(ct=e,r={type:"named",value:mt()}),e=r)),pt--,e===n&&(r=n,0===pt&&bt(tt)),e}function jt(){let e,r,a,o,u,i,c,s;for(e=it,r=t.charAt(it),E.test(r)?it++:(r=n,0===pt&&bt(rt)),r===n&&(r=null),a=it,o=[],u=t.charAt(it),F.test(u)?it++:(u=n,0===pt&&bt(at));u!==n;)o.push(u),u=t.charAt(it),F.test(u)?it++:(u=n,0===pt&&bt(at));if(46===t.charCodeAt(it)?(u=A,it++):(u=n,0===pt&&bt(ot)),u!==n){if(i=[],c=t.charAt(it),F.test(c)?it++:(c=n,0===pt&&bt(at)),c!==n)for(;c!==n;)i.push(c),c=t.charAt(it),F.test(c)?it++:(c=n,0===pt&&bt(at));else i=n;i!==n?(o=[o,u,i],a=o):(it=a,a=n)}else it=a,a=n;if(a===n)if(a=[],o=t.charAt(it),F.test(o)?it++:(o=n,0===pt&&bt(at)),o!==n)for(;o!==n;)a.push(o),o=t.charAt(it),F.test(o)?it++:(o=n,0===pt&&bt(at));else a=n;if(a!==n){if(o=it,101===t.charCodeAt(it)?(u=C,it++):(u=n,0===pt&&bt(ut)),u!==n){if(i=t.charAt(it),E.test(i)?it++:(i=n,0===pt&&bt(rt)),i===n&&(i=null),c=[],s=t.charAt(it),F.test(s)?it++:(s=n,0===pt&&bt(at)),s!==n)for(;s!==n;)c.push(s),s=t.charAt(it),F.test(s)?it++:(s=n,0===pt&&bt(at));else c=n;c!==n?(u=[u,i,c],o=u):(it=o,o=n)}else it=o,o=n;o===n&&(o=null),ct=e,e=parseFloat(mt())}else it=e,e=n;return e}lt=o();const kt=lt!==n&&it===t.length;function qt(){throw lt!==n&&it<t.length&&bt({type:"end"}),function(t,e,n){return new c(c.buildMessage(t,e),t,e,n)}(ht,ft<t.length?function(e=it){const n=t.codePointAt(e);return void 0===n?"":String.fromCodePoint(n)}(ft):null,ft<t.length?Mt(ft,ft+1):Mt(ft,ft))}return e.peg$library?{peg$result:lt,peg$currPos:it,peg$FAILED:n,peg$maxFailExpected:ht,peg$maxFailPos:ft,peg$success:kt,peg$throw:kt?void 0:qt}:kt?lt:void qt()}(t)}catch(e){throw new r.A("effect:invalid-syntax","Invalid effect syntax",{value:t,error:e})}return e.map(t=>function(t){try{switch(t.name){case"grayscale":case"sepia":case"saturate":case"invert":case"brightness":case"contrast":return function(t){let e=1;return f(t.parameters,1),1===t.parameters.length&&(e=g(t.parameters[0])),new u.yG(t.name,e)}(t);case"opacity":return function(t){let e=1;return f(t.parameters,1),1===t.parameters.length&&(e=g(t.parameters[0])),new u.jm(e)}(t);case"hue-rotate":return function(t){let e=0;return f(t.parameters,1),1===t.parameters.length&&(e=function(t){return function(t){if("quantity"!==t.type||!(0===t.value&&null===t.unit||t.unit&&null!=m[t.unit]))throw new r.A("effect:type-error",`Expected <angle>, Actual: ${h(t)}`,{term:t})}(t),t.value*m[t.unit]||0}(t.parameters[0])),new u.Nd(e)}(t);case"blur":return function(t){let e=0;return f(t.parameters,1),1===t.parameters.length&&(e=y(t.parameters[0]),p(e,t.parameters[0])),new u.Fk(e)}(t);case"drop-shadow":return function(t){const e=[];let n=null;for(const a of t.parameters)if("color"===a.type){if(e.length&&Object.freeze(e),n)throw new r.A("effect:type-error","Accepts only one color",{});n=v(a)}else{const t=y(a);if(Object.isFrozen(e))throw new r.A("effect:type-error","<length> parameters not consecutive",{lengths:e});e.push(t),3===e.length&&p(t,a)}if(e.length<2||e.length>3)throw new r.A("effect:type-error",`Expected <length>{2,3}, Actual: <length>{${e.length}}`,{lengths:e});return new u.$b(e[0],e[1],e[2]||0,n||M("black"))}(t);case"bloom":return function(t){let e=1,n=0,r=0;return f(t.parameters,3),t.parameters[0]&&(e=g(t.parameters[0])),t.parameters[1]&&(n=y(t.parameters[1]),p(n,t.parameters[1])),t.parameters[2]&&(r=g(t.parameters[2])),new u.bv(e,n,r)}(t)}}catch(e){throw e.details.filter=t,e}throw new r.A("effect:unknown-effect",`Effect '${t.name}' is not supported`,{effect:t})}(t))}function f(t,e){if(t.length>e)throw new r.A("effect:type-error",`Function supports up to ${e} parameters, Actual: ${t.length}`,{parameters:t})}function h(t){if("color"===t.type)return"<color>";if(t.unit){if(t.unit in d)return"<length>";if(t.unit in m)return"<angle>";if("%"===t.unit)return"<percentage>"}return"<double>"}function p(t,e){if(t<0)throw new r.A("effect:type-error",`Negative values are not allowed, Actual: ${t}`,{term:e})}const m={deg:1,grad:.9,rad:180/Math.PI,turn:360},d={px:1,cm:96/2.54,mm:96/2.54/10,in:96,pc:16,pt:96/72};function g(t){!function(t){if("quantity"!==t.type||null!==t.unit&&"%"!==t.unit)throw new r.A("effect:type-error",`Expected <double> or <percentage>, Actual: ${h(t)}`,{term:t})}(t);const e=t.value;return p(e,t),"%"===t.unit?.01*e:e}function y(t){return function(t){if("quantity"!==t.type||!(0===t.value&&null===t.unit||t.unit&&null!=d[t.unit]))throw new r.A("effect:type-error",`Expected <length>, Actual: ${h(t)}`,{term:t})}(t),t.value*d[t.unit]||0}function v(t){switch(t.colorType){case"hex":return(0,o.j5)(t.value);case"named":return M(t.value);case"function":return function(t){if(f(t.parameters,4),b.test(t.name))return[g(t.parameters[0]),g(t.parameters[1]),g(t.parameters[2]),t.parameters[3]?g(t.parameters[3]):1];if(x.test(t.name))return(0,o.ay)(function(t){return function(t){if("quantity"!==t.type||null!==t.unit)throw new r.A("effect:type-error",`Expected <double>, Actual: ${h(t)}`,{term:t})}(t),p(t.value,t),t.value}(t.parameters[0]),g(t.parameters[1]),g(t.parameters[2]),t.parameters[3]?g(t.parameters[3]):1);throw new r.A("effect:syntax-error",`Invalid color function '${t.name}'`,{colorFunction:t})}(t.value)}}function M(t){if(!(0,o.V6)(t))throw new r.A("effect:unknown-color",`color '${t}' isn't valid`,{namedColor:t});return(0,o.c4)(t)}const b=/^rgba?/i,x=/^hsla?/i;function w(t,e,n){try{return function(t){if(!t||0===t.length)return null;if(function(t){const e=t[0];return!!e&&"scale"in e}(t)){const e=[];for(const n of t)e.push({scale:n.scale,value:C(n.value)});return e}return C(t)}(t)}catch(t){n?.messages?.push(t)}return null}function A(t,e,n,r){try{const r=function(t){const e=s(t);return e?(0,i.dw)(e)?e.map(t=>t.toJSON()):e.map(({scale:t,effects:e})=>({scale:t,value:e.map(t=>t.toJSON())})):null}(t);(0,a.sM)(n,r,e)}catch(t){r.messages&&r.messages.push(t)}}function C(t){if(!t?.length)return"";const e=[];for(const n of t){let t=[];switch(n.type){case"grayscale":case"sepia":case"saturate":case"invert":case"brightness":case"contrast":case"opacity":t=[S(n,"amount")];break;case"blur":t=[S(n,"radius","pt")];break;case"hue-rotate":t=[S(n,"angle","deg")];break;case"drop-shadow":t=[S(n,"xoffset","pt"),S(n,"yoffset","pt"),S(n,"blurRadius","pt"),$(n,"color")];break;case"bloom":t=[S(n,"strength"),S(n,"radius","pt"),S(n,"threshold")]}const r=`${n.type}(${t.filter(Boolean).join(" ")})`;s(r),e.push(r)}return e.join(" ")}function S(t,e,n){if(null==t[e])throw new r.A("effect:missing-parameter",`Missing parameter '${e}' in ${t.type} effect`,{effect:t});return n?t[e]+n:""+t[e]}function $(t,e){if(null==t[e])throw new r.A("effect:missing-parameter",`Missing parameter '${e}' in ${t.type} effect`,{effect:t});const n=t[e];return`rgba(${n[0]||0}, ${n[1]||0}, ${n[2]||0}, ${n[3]/255||0})`}},63074(t,e,n){var r=n(5482),a=n(91429),o=n(89317),u=n(76369);const i={type:["average","color-burn","color-dodge","color","darken","destination-atop","destination-in","destination-out","destination-over","difference","exclusion","hard-light","hue","invert","lighten","lighter","luminosity","minus","multiply","normal","overlay","plus","reflect","saturation","screen","soft-light","source-atop","source-in","source-out","vivid-light","xor"],nonNullable:!0,json:{read:!1,write:!1,origins:{"web-map":{read:!0,write:{layerContainerTypes:o.K}},"portal-item":{read:!0,write:{layerContainerTypes:o.K}}}}},c={read:{reader:u.LF},write:{allowNull:!0,writer:u.M9,layerContainerTypes:o.K}},s={json:{read:!1,write:!1,origins:{"web-map":c,"portal-item":c}}};n.d(e,["LF",0,s,"dM",0,t=>{const e=t;let n=class extends e{constructor(){super(...arguments),this.blendMode="normal",this.effect=null}};return(0,r.Cg)([(0,a.MZ)(i)],n.prototype,"blendMode",void 0),(0,r.Cg)([(0,a.MZ)(s)],n.prototype,"effect",void 0),n=(0,r.Cg)([(0,a.$K)("esri.layers.mixins.BlendLayer")],n),n},"sU",0,i])},25036(t,e,n){var r=n(5482),a=n(91429);n.d(e,["j",0,t=>{const e=t;let n=class extends e{constructor(){super(...arguments),this.minScale=0,this.maxScale=0}get effectiveScaleRange(){const t={minScale:this.minScale,maxScale:this.maxScale},e=this.parent;void 0!==e?.effectiveScaleRange&&function(t,e){t.minScale=t.minScale>0?e.minScale>0?Math.min(t.minScale,e.minScale):t.minScale:e.minScale,t.maxScale=t.maxScale>0?e.maxScale>0?Math.max(t.maxScale,e.maxScale):t.maxScale:e.maxScale}(t,e.effectiveScaleRange);const n=this._get("effectiveScaleRange");return n&&n.minScale===t.minScale&&n.maxScale===t.maxScale?n:t}};return(0,r.Cg)([(0,a.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],n.prototype,"minScale",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],n.prototype,"maxScale",void 0),(0,r.Cg)([(0,a.MZ)({readOnly:!0})],n.prototype,"effectiveScaleRange",null),n=(0,r.Cg)([(0,a.$K)("esri.layers.mixins.ScaleRangeLayer")],n),n}])},56560(t,e,n){n.d(e,{A:()=>i});var r=n(5482),a=n(69540),o=n(91429),u=n(86738);let i=class extends a.Pw{constructor(t){super(t),this.sourcePoint=null,this.mapPoint=null}};(0,r.Cg)([(0,o.MZ)()],i.prototype,"sourcePoint",void 0),(0,r.Cg)([(0,o.MZ)({type:u.A})],i.prototype,"mapPoint",void 0),i=(0,r.Cg)([(0,o.$K)("esri.layers.support.ControlPoint")],i)},78553(t,e,n){n.d(e,{D:()=>o,p:()=>a});var r=n(56507);function a(t){const e=(0,r.Vr)(100*(1-t));return Math.max(0,Math.min(e,100))}function o(t){const e=1-t/100;return Math.max(0,Math.min(e,1))}}}]);