@arcgis/core 5.2.0-next.101 → 5.2.0-next.103

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (240) hide show
  1. package/applications/Components/graphicOriginUtils.d.ts +17 -0
  2. package/applications/Components/graphicOriginUtils.js +2 -0
  3. package/arcgisGlobal.d.ts +1 -0
  4. package/assets/esri/core/workers/RemoteClient.js +1 -1
  5. package/assets/esri/core/workers/chunks/01fb22542820b7a8b848.js +1 -0
  6. package/assets/esri/core/workers/chunks/{4d13c1a04788e5222678.js → 03601be8b0763f82e88f.js} +1 -1
  7. package/assets/esri/core/workers/chunks/{6e804bd6bb4b0ee44fa9.js → 045ff98313b06a2188b7.js} +1 -1
  8. package/assets/esri/core/workers/chunks/05584d8828ae7bca0fc5.js +1 -0
  9. package/assets/esri/core/workers/chunks/{eb222dc01344ed07719e.js → 056af594a1ef87066187.js} +1 -1
  10. package/assets/esri/core/workers/chunks/{e1682e94cc714197ebb4.js → 05731c8bc8f63b388d72.js} +1 -1
  11. package/assets/esri/core/workers/chunks/{32aa1529e84b839d051d.js → 058d4c927486a361e633.js} +1 -1
  12. package/assets/esri/core/workers/chunks/{2524e2385f61a6898411.js → 06e7411c5bed0a414031.js} +1 -1
  13. package/assets/esri/core/workers/chunks/{de95dee8db92cf8f796f.js → 09a40fd0e462144c4640.js} +1 -1
  14. package/assets/esri/core/workers/chunks/0bd067a5c0bac96caeb5.js +1 -0
  15. package/assets/esri/core/workers/chunks/0bff8d589312be6588fe.js +1 -0
  16. package/assets/esri/core/workers/chunks/{4237a29c4ed5f86a15c2.js → 0c63d953f2dd1d5cc03d.js} +1 -1
  17. package/assets/esri/core/workers/chunks/{09cd91e56c856db6e01a.js → 0c74cf91b6b5292d32b8.js} +1 -1
  18. package/assets/esri/core/workers/chunks/{e934ef66d130c212c05b.js → 0cdaba3ed074c06e225f.js} +1 -1
  19. package/assets/esri/core/workers/chunks/{6aaefd61505027267c9b.js → 0d69a18146722f792b5b.js} +1 -1
  20. package/assets/esri/core/workers/chunks/{900dad076347443b3ad9.js → 0de90b1ad8118457fd5a.js} +1 -1
  21. package/assets/esri/core/workers/chunks/{c0e073a77484b0dfd383.js → 0e1a067ab243900d0371.js} +1 -1
  22. package/assets/esri/core/workers/chunks/{33041e50ea02d99480b0.js → 0ee6109e6578395a7900.js} +1 -1
  23. package/assets/esri/core/workers/chunks/{8da08198c29acaabda6e.js → 0f1d5faddf8ef752470b.js} +1 -1
  24. package/assets/esri/core/workers/chunks/0f86c8a67c87f840fd39.js +1 -0
  25. package/assets/esri/core/workers/chunks/{6134a2c6983792787184.js → 0ff13f7a18b0123d253e.js} +1 -1
  26. package/assets/esri/core/workers/chunks/10fa8fbade8ae084c307.js +1 -0
  27. package/assets/esri/core/workers/chunks/1559213657665c053f8e.js +1 -0
  28. package/assets/esri/core/workers/chunks/{9c7fc1c97125ea2a7b7e.js → 164c604c1b2f728f32f2.js} +1 -1
  29. package/assets/esri/core/workers/chunks/19ac6f4664f97fb3821c.js +1 -0
  30. package/assets/esri/core/workers/chunks/{fd4d124c5bf810d9e352.js → 1a2f51d795b803d969c9.js} +1 -1
  31. package/assets/esri/core/workers/chunks/1eafb214519d8fc63ccb.js +1 -0
  32. package/assets/esri/core/workers/chunks/2165493d36c85b7c9a04.js +1 -0
  33. package/assets/esri/core/workers/chunks/{52422500ca3d6cf2e596.js → 2256036d5b91fa537805.js} +1 -1
  34. package/assets/esri/core/workers/chunks/{ad2b2214496e5a07db43.js → 2350f1eb70819cc06bb6.js} +1 -1
  35. package/assets/esri/core/workers/chunks/240bee7d0dc5e5dab826.js +1 -0
  36. package/assets/esri/core/workers/chunks/{822a5020afbca21df7f7.js → 25c5e1b14b184b1228a3.js} +1 -1
  37. package/assets/esri/core/workers/chunks/25c90092def215949db9.js +1 -0
  38. package/assets/esri/core/workers/chunks/{dd99bad9f91b0b62ba7c.js → 2a8168e109caa87d596f.js} +1 -1
  39. package/assets/esri/core/workers/chunks/{39254fdc41aaf61f23b0.js → 2b06e8507d71c4d9b5b5.js} +1 -1
  40. package/assets/esri/core/workers/chunks/{839feb913d1b6138fc78.js → 2b11e15bfa319dd32218.js} +1 -1
  41. package/assets/esri/core/workers/chunks/2d52386d69c218e29887.js +1 -0
  42. package/assets/esri/core/workers/chunks/{dda269a088275c823b40.js → 307297e025eed110095f.js} +1 -1
  43. package/assets/esri/core/workers/chunks/{05eb064f9b543890ae24.js → 33ba86b80426ddc88186.js} +1 -1
  44. package/assets/esri/core/workers/chunks/349e9f3d3e3267d02988.js +1 -0
  45. package/assets/esri/core/workers/chunks/{79088d5c9c2e6a780929.js → 34e04b24942da2b9b87c.js} +1 -1
  46. package/assets/esri/core/workers/chunks/3be33a129d3ae7dc4f06.js +1 -0
  47. package/assets/esri/core/workers/chunks/3daddcb106a7009c5a70.js +1 -0
  48. package/assets/esri/core/workers/chunks/{eae51e827f629ab37207.js → 3de6e54b6ed0feae1940.js} +1 -1
  49. package/assets/esri/core/workers/chunks/{9fe1db0762ab3326eab4.js → 3f5094828fbae7844117.js} +1 -1
  50. package/assets/esri/core/workers/chunks/{e02f02040b63d9c2e654.js → 3fb3b9fd06f78ee5cee6.js} +1 -1
  51. package/assets/esri/core/workers/chunks/{26e33c28028bf33936fc.js → 43436c7ccc6baefc885d.js} +1 -1
  52. package/assets/esri/core/workers/chunks/434c5b54e89ace974cbd.js +29 -0
  53. package/assets/esri/core/workers/chunks/472f3b80e1f26e09114a.js +1 -0
  54. package/assets/esri/core/workers/chunks/{dd8d19eb6b8e955c8067.js → 477136b747e02312abc4.js} +1 -1
  55. package/assets/esri/core/workers/chunks/{278e4d885ab03a51ef72.js → 47866b0b8604bf05c5ba.js} +1 -1
  56. package/assets/esri/core/workers/chunks/{b0ba081533100b021090.js → 48a53bfeef11c32dadcc.js} +1 -1
  57. package/assets/esri/core/workers/chunks/4a73f73f1698fad2df20.js +1 -0
  58. package/assets/esri/core/workers/chunks/4b0e3f83a5f2d3b0478a.js +1 -0
  59. package/assets/esri/core/workers/chunks/{4fbf4390c7eb0e11e3c9.js → 4b80c84fbd3d8dd90ca6.js} +1 -1
  60. package/assets/esri/core/workers/chunks/{a78781f79d828fc678a3.js → 4ba2276751083589570a.js} +1 -1
  61. package/assets/esri/core/workers/chunks/{20feca2fdd304b3e9664.js → 4c9df8ae9238454969b8.js} +1 -1
  62. package/assets/esri/core/workers/chunks/{0ffb5a1275d07dcd9115.js → 4c9e9925c02db48fa177.js} +1 -1
  63. package/assets/esri/core/workers/chunks/{60b1af54e7fc20fd9588.js → 546213fb53fa921a3928.js} +1 -1
  64. package/assets/esri/core/workers/chunks/{f6aa10a709017ac815a7.js → 547a073c789fdfb78310.js} +1 -1
  65. package/assets/esri/core/workers/chunks/{93c1d1e7c0935242071e.js → 54bb3678570ca032f051.js} +1 -1
  66. package/assets/esri/core/workers/chunks/{53a6bfebf3904dd7cad9.js → 55e40d3b460bacd200e6.js} +1 -1
  67. package/assets/esri/core/workers/chunks/567fb6a9b72bb232306d.js +1 -0
  68. package/assets/esri/core/workers/chunks/571cf99c3eab8e517542.js +1 -0
  69. package/assets/esri/core/workers/chunks/{abdcc224c8a8c72c86c4.js → 572d45353d74dcda1f09.js} +1 -1
  70. package/assets/esri/core/workers/chunks/{5bb8d9d887dd4211afd2.js → 573e8fa0af8711ffec45.js} +1 -1
  71. package/assets/esri/core/workers/chunks/{486f1a3b7269ce6c3911.js → 58528ccb7f72ae76d52b.js} +1 -1
  72. package/assets/esri/core/workers/chunks/{8599d2f2eb0fbb4a8bf5.js → 5c7f6721b37a4355e97a.js} +1 -1
  73. package/assets/esri/core/workers/chunks/{a10188c4d1904965898a.js → 5e1699d361d237bf0937.js} +1 -1
  74. package/assets/esri/core/workers/chunks/{aa7cb1531da1ccae8492.js → 5eb726317b6602f1e206.js} +1 -1
  75. package/assets/esri/core/workers/chunks/{42b5533f94ebcdc4befe.js → 5ed56ade84a0bea4a0c8.js} +1 -1
  76. package/assets/esri/core/workers/chunks/{bb8089929ded0613d8e7.js → 6010799e05d239073de0.js} +1 -1
  77. package/assets/esri/core/workers/chunks/{1de1cc0ed0f169a58aff.js → 60ad12fb732d529a4018.js} +1 -1
  78. package/assets/esri/core/workers/chunks/6395b3ec61b6550859a4.js +1 -0
  79. package/assets/esri/core/workers/chunks/{0e11bee9b56a7f51b012.js → 63f7141c71f29dbe8270.js} +1 -1
  80. package/assets/esri/core/workers/chunks/{7bb3411a86cdd736d555.js → 665e1901ec8dc182ba7a.js} +1 -1
  81. package/assets/esri/core/workers/chunks/{bc7ca87d3bfe8a4aec81.js → 66c46c5a7147550ea3ed.js} +1 -1
  82. package/assets/esri/core/workers/chunks/{762e9a15b2638475a2b4.js → 69921d068add041b5dcb.js} +1 -1
  83. package/assets/esri/core/workers/chunks/{486f1277fe834c0fc4c1.js → 6b5332e167c0553b1e6b.js} +1 -1
  84. package/assets/esri/core/workers/chunks/{d00c25ef8a378b24378d.js → 6cf881f793fd0ec93981.js} +1 -1
  85. package/assets/esri/core/workers/chunks/6e6cdff4bbe1ff2f44ac.js +1 -0
  86. package/assets/esri/core/workers/chunks/6e75f09fb9452bd5f9fb.js +1 -0
  87. package/assets/esri/core/workers/chunks/{601e44839fd46e449aa8.js → 6ef372f52a6ebd9aeb4a.js} +1 -1
  88. package/assets/esri/core/workers/chunks/{1a9f17781e0a3bc5106f.js → 718ed36a9f23993e1460.js} +1 -1
  89. package/assets/esri/core/workers/chunks/{f1f78bb3d34f973c19de.js → 719f0012f297a9a55d70.js} +1 -1
  90. package/assets/esri/core/workers/chunks/7261bbdbd084b4bb44f8.js +1 -0
  91. package/assets/esri/core/workers/chunks/{dd26a37f061ff658c5bd.js → 727dba20e01423c6ea77.js} +1 -1
  92. package/assets/esri/core/workers/chunks/{db8deb37048c71884575.js → 7285a37cd5359aa4bac5.js} +1 -1
  93. package/assets/esri/core/workers/chunks/{6e12e3c99b149cd7f567.js → 7ad62d16b380d80f7f3e.js} +1 -1
  94. package/assets/esri/core/workers/chunks/7adff63fd66fab505ae6.js +1 -0
  95. package/assets/esri/core/workers/chunks/7e42be27ead91a4cc0f1.js +1 -0
  96. package/assets/esri/core/workers/chunks/{94f62ff81cc6fb83e73f.js → 80cca2a377d51926e1a2.js} +1 -1
  97. package/assets/esri/core/workers/chunks/{9246e2468528650bdc7c.js → 80f16f5f15518013f7d0.js} +1 -1
  98. package/assets/esri/core/workers/chunks/{eb167f9f6132a6348d2e.js → 8328f79f064a68f3c1a3.js} +1 -1
  99. package/assets/esri/core/workers/chunks/847781aefed049493444.js +1 -0
  100. package/assets/esri/core/workers/chunks/84dc2afd89263a311b81.js +1 -0
  101. package/assets/esri/core/workers/chunks/8628c027198982baed7c.js +1 -0
  102. package/assets/esri/core/workers/chunks/{9d3cdfa08ef4d2805625.js → 88610ebfdf9c93ada781.js} +1 -1
  103. package/assets/esri/core/workers/chunks/{ed5ac1efd3cba49be756.js → 8bd187b48a4e4296e3d8.js} +1 -1
  104. package/assets/esri/core/workers/chunks/{862f7090ba4a56c07093.js → 8e102a2e134ce6ce0724.js} +1 -1
  105. package/assets/esri/core/workers/chunks/{3c0421a4a0ee3a3c63f8.js → 8edac3bbac401c8d6ecb.js} +1 -1
  106. package/assets/esri/core/workers/chunks/{22c477147421e68f7f00.js → 8fb4aa967d67abb6aba9.js} +1 -1
  107. package/assets/esri/core/workers/chunks/{e1c8767143f9f9d1f049.js → 93375f5f5bb754eca35f.js} +1 -1
  108. package/assets/esri/core/workers/chunks/{ea77654c8964cc39b9a6.js → 956432c9d45940983bc2.js} +1 -1
  109. package/assets/esri/core/workers/chunks/{b17a9853250ab626d58d.js → 96ebf76661b12128ddd5.js} +1 -1
  110. package/assets/esri/core/workers/chunks/98414a10f6de21107a03.js +1 -0
  111. package/assets/esri/core/workers/chunks/{4047208f9559e06d7102.js → 9a084a12afd6f0bbabce.js} +1 -1
  112. package/assets/esri/core/workers/chunks/9acaabe950319d031f2e.js +1 -0
  113. package/assets/esri/core/workers/chunks/{a24cecf2f775eaa69cf4.js → a10df3f51fe26d782aff.js} +1 -1
  114. package/assets/esri/core/workers/chunks/a34eee4c9d4c1c2b8c49.js +1 -0
  115. package/assets/esri/core/workers/chunks/a3f4818f4190fa92331d.js +1 -0
  116. package/assets/esri/core/workers/chunks/{680bef5e8237cc3bdd84.js → ac02df176f9ea94278bb.js} +1 -1
  117. package/assets/esri/core/workers/chunks/{5efc66be4576c6f67064.js → b1c1b7f98ee218f52b56.js} +1 -1
  118. package/assets/esri/core/workers/chunks/b4e5027c121d848c3d5a.js +1 -0
  119. package/assets/esri/core/workers/chunks/{d86044dbcd64323ff9f2.js → b7809ef3e1dabd921339.js} +1 -1
  120. package/assets/esri/core/workers/chunks/b9023cc3298ee4fddea7.js +1 -0
  121. package/assets/esri/core/workers/chunks/{63c43ebf46964c283b4d.js → b92b7d6c1e693c97a3eb.js} +1 -1
  122. package/assets/esri/core/workers/chunks/{fa91cece6daab2bec0e4.js → b941ec028abd44734902.js} +1 -1
  123. package/assets/esri/core/workers/chunks/{44ca13c874b5aa0ed5a0.js → bba3eb07a2a0065759f9.js} +1 -1
  124. package/assets/esri/core/workers/chunks/{4f89da01b67b66a92c01.js → be3421ffb5b391bca02e.js} +1 -1
  125. package/assets/esri/core/workers/chunks/be69e2dda75b079362b2.js +1 -0
  126. package/assets/esri/core/workers/chunks/{3721153202bd43c7fe0e.js → c116bd04e8910b5649d1.js} +1 -1
  127. package/assets/esri/core/workers/chunks/{fbf2d90240d36f8b423f.js → c2d19bb097d074a1ef21.js} +1 -1
  128. package/assets/esri/core/workers/chunks/c517e732cab41093b2e0.js +1 -0
  129. package/assets/esri/core/workers/chunks/{b0da2b089a89d643df1e.js → c53ecbdb47952eb47516.js} +1 -1
  130. package/assets/esri/core/workers/chunks/{cded34b161fcc790e672.js → c582441200ee1cdf51a7.js} +1 -1
  131. package/assets/esri/core/workers/chunks/{16f55c5d642a23c2547e.js → c63b0055a5008b1e5005.js} +1 -1
  132. package/assets/esri/core/workers/chunks/{33641947c388ce28b563.js → c6e771eff0603ece5d30.js} +1 -1
  133. package/assets/esri/core/workers/chunks/c7e6b5594fed5bb16691.js +1 -0
  134. package/assets/esri/core/workers/chunks/{d2387906b52624b4f7f1.js → c85fc0a9412e7debf166.js} +1 -1
  135. package/assets/esri/core/workers/chunks/{d7659d2b2aea0dd1202d.js → c91905b5808b8049f96d.js} +146 -126
  136. package/assets/esri/core/workers/chunks/cbd94998c619093b6426.js +1 -0
  137. package/assets/esri/core/workers/chunks/{86c3d3c7015f1cd55fac.js → ce3fb992f6c6ae7378a3.js} +1 -1
  138. package/assets/esri/core/workers/chunks/{e7fdad0c07beb3614b60.js → d13cf2e8b24e978ea77c.js} +1 -1
  139. package/assets/esri/core/workers/chunks/{c7f69d010f1cb32f5d37.js → d33d08cb6856cd2eb35e.js} +1 -1
  140. package/assets/esri/core/workers/chunks/d5defba320f2e49a377f.js +1 -0
  141. package/assets/esri/core/workers/chunks/{006146ad6d4a5cbf1a1f.js → d710c9d206bf46e031e8.js} +1 -1
  142. package/assets/esri/core/workers/chunks/{da6134c7883531f21afe.js → d922c54ea492cc771f63.js} +1 -1
  143. package/assets/esri/core/workers/chunks/{cf49a13522d61da31d8f.js → d9270f4935eb0d044db3.js} +1 -1
  144. package/assets/esri/core/workers/chunks/{8837fbcc0d484659b79c.js → da77257b517119578088.js} +1 -1
  145. package/assets/esri/core/workers/chunks/{3ca6ecdf9bdd84fef4d5.js → deb408bee61ca192b2ce.js} +1 -1
  146. package/assets/esri/core/workers/chunks/{d92540d3ffc4af980dd8.js → df79c00b5ddbef7148a0.js} +1 -1
  147. package/assets/esri/core/workers/chunks/e0f417992889a6c41095.js +1 -0
  148. package/assets/esri/core/workers/chunks/{c511af7afe08a78e2a4d.js → e18b8646c7378213b618.js} +1 -1
  149. package/assets/esri/core/workers/chunks/{a7e6382ecc91c876117f.js → e26be75ae40acb7473ee.js} +1 -1
  150. package/assets/esri/core/workers/chunks/e4d98eaa89d2c88c5139.js +1 -0
  151. package/assets/esri/core/workers/chunks/e5c88090d16459f55cb8.js +1 -0
  152. package/assets/esri/core/workers/chunks/{cc73ac8404615dc392d2.js → e6a4cef0af9be30ffe3d.js} +1 -1
  153. package/assets/esri/core/workers/chunks/{a40566a78d801b223d3d.js → ea068c797e3e462f4518.js} +1 -1
  154. package/assets/esri/core/workers/chunks/eab969d5c7d81f351250.js +1 -0
  155. package/assets/esri/core/workers/chunks/{3a9c6f58a1a065c14017.js → eaf1d38f09744b7e84f5.js} +1 -1
  156. package/assets/esri/core/workers/chunks/ebe7ba2557b50e18e547.js +1 -0
  157. package/assets/esri/core/workers/chunks/{1e3b07cf0e608431a277.js → ec5542d6ecc0622f7705.js} +1 -1
  158. package/assets/esri/core/workers/chunks/{0a4092578dc7578bcf76.js → f5a988bb850f7a7af143.js} +1 -1
  159. package/assets/esri/core/workers/chunks/{248df6fda489a9de5852.js → f5e8ccbd6b4c0a386903.js} +1 -1
  160. package/assets/esri/core/workers/chunks/f60d5ce49c173d5381ec.js +1 -0
  161. package/assets/esri/core/workers/chunks/{000f91a18c22377f8525.js → f94170f1e8c11c861e7b.js} +1 -1
  162. package/assets/esri/core/workers/chunks/{35d0a7597473d46866de.js → f9e5740b05de24ba81be.js} +1 -1
  163. package/assets/esri/core/workers/chunks/{10f4c5533f50c3693318.js → fa869977ac2abb063925.js} +1 -1
  164. package/assets/esri/core/workers/chunks/fae14e30fa7d81bf706e.js +1 -0
  165. package/assets/esri/core/workers/chunks/{ab3a6ce7bc2a27b92469.js → fb6f1b562ee0983c8c6e.js} +1 -1
  166. package/assets/esri/core/workers/chunks/{a26916de4c105859621e.js → fd808d38ae2d475ac442.js} +1 -1
  167. package/assets/esri/core/workers/chunks/{d6f7aa280f1bd201d4ef.js → ff673ea8e3291d12689e.js} +1 -1
  168. package/chunks/GlobalIllumination.glsl.js +8 -13
  169. package/config.js +1 -1
  170. package/core/libs/gl-matrix-2/math/quat.js +1 -1
  171. package/kernel.js +1 -1
  172. package/layers/IntegratedMeshLayer.d.ts +12 -0
  173. package/layers/IntegratedMeshLayer.js +1 -1
  174. package/layers/support/I3SIntegratedMeshElevationQuery.js +2 -0
  175. package/package.json +2 -2
  176. package/support/revision.js +1 -1
  177. package/views/3d/analysis/LineOfSight/LineOfSightEditTool.js +1 -1
  178. package/views/3d/analysis/LineOfSight/LineOfSightManipulators.js +1 -1
  179. package/views/3d/analysis/LineOfSight/LineOfSightTool.js +1 -1
  180. package/views/3d/interactive/editingTools/manipulatorUtils.js +1 -1
  181. package/views/3d/layers/i3s/I3SIndex.js +1 -1
  182. package/views/3d/layers/i3s/I3SNode.js +1 -1
  183. package/views/3d/webgl-engine/core/shaderLibrary/shading/EvaluateSceneLighting.glsl.js +29 -19
  184. package/views/3d/webgl-engine/core/shaderLibrary/shading/ScreenSpaceRayMarching.glsl.js +24 -9
  185. package/views/3d/webgl-engine/lib/BufferObject3D.js +2 -0
  186. package/views/3d/webgl-engine/lib/Intersector.js +1 -1
  187. package/views/3d/webgl-engine/lib/ModelDirtySet.js +1 -1
  188. package/views/3d/webgl-engine/lib/Object3D.js +1 -1
  189. package/views/3d/webgl-engine/lib/depthRangeUtils.js +1 -1
  190. package/views/3d/webgl-engine/parts/Model.js +1 -1
  191. package/views/analysis/ElevationProfile/ElevationProfileLineQueryComputation.js +1 -1
  192. package/views/support/Scheduler.js +1 -1
  193. package/assets/esri/core/workers/chunks/014eaccf2c2d357981f0.js +0 -1
  194. package/assets/esri/core/workers/chunks/0a242e76bc293b0ad04b.js +0 -1
  195. package/assets/esri/core/workers/chunks/0e65869a5dd5a3917da7.js +0 -1
  196. package/assets/esri/core/workers/chunks/0f15468ffefd3e9a17b8.js +0 -29
  197. package/assets/esri/core/workers/chunks/16ffbe484f6cd4736f79.js +0 -1
  198. package/assets/esri/core/workers/chunks/24a6b28db94e07a702a4.js +0 -1
  199. package/assets/esri/core/workers/chunks/2bd4b536e329112591c4.js +0 -1
  200. package/assets/esri/core/workers/chunks/3328a65c2bf1a0cbdb9d.js +0 -1
  201. package/assets/esri/core/workers/chunks/34f82b4ab11ff5642555.js +0 -1
  202. package/assets/esri/core/workers/chunks/3a9435569ba460ff7e3d.js +0 -1
  203. package/assets/esri/core/workers/chunks/3dd57a07c7a28e50d76e.js +0 -1
  204. package/assets/esri/core/workers/chunks/428f991c14ac12ae1b2c.js +0 -1
  205. package/assets/esri/core/workers/chunks/4717831effb1ac6d5f5d.js +0 -1
  206. package/assets/esri/core/workers/chunks/4d7f6c92041d52cc8732.js +0 -1
  207. package/assets/esri/core/workers/chunks/545a828002fd7da86c19.js +0 -1
  208. package/assets/esri/core/workers/chunks/58a52adc42fbe5cd12c6.js +0 -1
  209. package/assets/esri/core/workers/chunks/58b93f13316196d2e97d.js +0 -1
  210. package/assets/esri/core/workers/chunks/58f98bd89b644cfdafae.js +0 -1
  211. package/assets/esri/core/workers/chunks/625a692f00357629f609.js +0 -1
  212. package/assets/esri/core/workers/chunks/69688d521d5ba117e31c.js +0 -1
  213. package/assets/esri/core/workers/chunks/6f6ae6cf7f6e30b29013.js +0 -1
  214. package/assets/esri/core/workers/chunks/7fd54fa2f91cdab44ab3.js +0 -1
  215. package/assets/esri/core/workers/chunks/862eabda80ddb9e7a332.js +0 -1
  216. package/assets/esri/core/workers/chunks/8b24feffd5e084af2fa9.js +0 -1
  217. package/assets/esri/core/workers/chunks/925f83be3c1eb4b5c6af.js +0 -1
  218. package/assets/esri/core/workers/chunks/97aaff86e06380a68df8.js +0 -1
  219. package/assets/esri/core/workers/chunks/989937c120bdd676ec1e.js +0 -1
  220. package/assets/esri/core/workers/chunks/9cc14a41d4a90f6d626e.js +0 -1
  221. package/assets/esri/core/workers/chunks/a03e7333e3328036f478.js +0 -1
  222. package/assets/esri/core/workers/chunks/a34cadd486e7fcc79063.js +0 -1
  223. package/assets/esri/core/workers/chunks/a72983c3621810d4b1af.js +0 -1
  224. package/assets/esri/core/workers/chunks/a88aa26a7bee1fe7aea2.js +0 -1
  225. package/assets/esri/core/workers/chunks/a8e9aa5461c71c88e2e5.js +0 -1
  226. package/assets/esri/core/workers/chunks/a8f70cece5ce2b095cdd.js +0 -1
  227. package/assets/esri/core/workers/chunks/abd2f8fae6b918fbdd6d.js +0 -1
  228. package/assets/esri/core/workers/chunks/b2e5a89aca245263901c.js +0 -1
  229. package/assets/esri/core/workers/chunks/b2e692f52b9f02210e10.js +0 -1
  230. package/assets/esri/core/workers/chunks/b5fcf4165ac72654742d.js +0 -1
  231. package/assets/esri/core/workers/chunks/ba77a8892cb23c7a297d.js +0 -1
  232. package/assets/esri/core/workers/chunks/bf357afbabaa8dec4d75.js +0 -1
  233. package/assets/esri/core/workers/chunks/c07d2fb9940b2c6eda9f.js +0 -1
  234. package/assets/esri/core/workers/chunks/d179ec37d2612d65624f.js +0 -1
  235. package/assets/esri/core/workers/chunks/d2865c604849ce79183f.js +0 -1
  236. package/assets/esri/core/workers/chunks/e5d114f2b57d2b8e2f1c.js +0 -1
  237. package/assets/esri/core/workers/chunks/f2cbcd1b0e77e733a8e0.js +0 -1
  238. package/assets/esri/core/workers/chunks/f331c24247d132589859.js +0 -1
  239. package/assets/esri/core/workers/chunks/f8a6d8cdcabcd1d511b6.js +0 -1
  240. package/assets/esri/core/workers/chunks/ffa35ecc681ec1c4739a.js +0 -1
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7821,8768,9397],{66344(t,e,i){i.d(e,{q:()=>o});const s=!!(0,i(44208).A)("esri-tests-disable-gpu-memory-measurements");Symbol.iterator;class r{get size(){return this._size}constructor(t=10485760,e=.3){this._maxSize=t,this._maxClientSizeRatio=e,this._db=new Map,this._size=0,this._hit=0,this._miss=0,this._clients=new Map,this._sizeLimits=new Map}destroy(){this.clearAll(),this._sizeLimits.clear(),this._clients.clear(),this._db.clear()}register(t){this._clients.set(t.id.slice(0,-1),t)}deregister(t){this.clear(t),this._sizeLimits.delete(t),this._clients.delete(t.id.slice(0,-1))}get maxSize(){return this._maxSize}set maxSize(t){this._maxSize=Math.max(t,-1),this._checkSize()}get _maxClientSize(){return this._maxSize*this._maxClientSizeRatio}getSize(t,e){const i=this._db.get(t.id+e);return i?.size??0}put(t,e,i,r,l){e=t.id+e;const o=this._db.get(e);if(o&&(this._size-=o.size,t.size-=o.size,this._db.delete(e),o.entry!==i&&this._notifyRemove(e,o.entry,o.size,0)),r>this._maxSize)return void this._notifyRemove(e,i,r,0);if(void 0===i)return void console.warn("Refusing to cache undefined entry ");if(!r||r<0)return s||console.warn(`Refusing to cache entry with size ${r} for key ${e}`),void this._notifyRemove(e,i,0,0);const a=1+Math.max(l,-4)- -3;this._db.set(e,new n(i,r,a)),this._size+=r,t.size+=r,this._checkSize()}updateSize(t,e){e=t.id+e;const i=this._db.get(e);if(!i)return;this._size-=i.size,t.size-=i.size;let s=i.entry.usedMemory;for(;s>this._maxSize;){const t=this._notifyRemove(e,i.entry,s,1);if(!(null!=t&&t>0))return void this._db.delete(e);s=t}i.size=s,this._size+=s,t.size+=s,this._checkSize()}pop(t,e){e=t.id+e;const i=this._db.get(e);if(i)return this._size-=i.size,t.size-=i.size,this._db.delete(e),++this._hit,i.entry;++this._miss}get(t,e){e=t.id+e;const i=this._db.get(e);if(void 0!==i)return this._db.delete(e),i.lives=i.lifetime,this._db.set(e,i),++this._hit,i.entry;++this._miss}peek(t,e){const i=this._db.get(t.id+e);return i?++this._hit:++this._miss,i?.entry}get performanceInfo(){const t={Size:Math.round(this._size/1048576)+"/"+Math.round(this._maxSize/1048576)+"MB","Hit rate":Math.round(100*this._getHitRate())+"%",Entries:this._db.size.toString()},e={},i=new Array;this._db.forEach((t,s)=>{const r=t.lifetime;i[r]=(i[r]||0)+t.size,this._clients.forEach(i=>{const{id:r,name:n}=i;if(s.startsWith(r)){const i=e[n]||0;e[n]=i+t.size}})});const s={};this._clients.forEach(t=>{const i=t.name;if("hitRate"in t&&"number"==typeof t.hitRate&&!isNaN(t.hitRate)&&t.hitRate>0){const r=e[i]||0;e[i]=r,s[i]=Math.round(100*t.hitRate)+"%"}else s[i]="0%"});const r=Object.keys(e);r.sort((t,i)=>e[i]-e[t]),r.forEach(i=>t[i]=Math.round(e[i]/2**20)+"MB / "+s[i]);for(let e=i.length-1;e>=0;--e){const s=i[e];s&&(t["Priority "+(e+-3-1)]=Math.round(s/this._size*100)+"%")}return t}resetStats(){this._hit=this._miss=0,this._clients.forEach(t=>t.resetHitRate())}clear(t){const e=t.id;this._db.forEach((t,i)=>{i.startsWith(e)&&(this._size-=t.size,this._db.delete(i),this._notifyRemove(i,t.entry,t.size,0))}),t.size=0}clearAll(){this._db.forEach((t,e)=>this._notifyRemove(e,t.entry,t.size,0)),this._clients.forEach(t=>t.size=0),this._size=0,this._db.clear()}*values(t){for(const[e,i]of this._db)e.startsWith(t.id)&&(yield i.entry)}_getHitRate(){return this._hit/(this._hit+this._miss)}_notifyRemove(t,e,i,s){const r=this._clients.get(t.split(l)[0])?.removeFunc,n=r?.(e,s,i);return"number"==typeof n?n:null}_checkSize(){this._sizeLimits.forEach((t,e)=>this._checkSizeLimits(t,e)),this._clients.forEach(t=>this._checkSizeLimits(this._maxClientSize,t)),this._checkSizeLimits(this.maxSize)}setMaxClientSize(t,e){null==e||e<=0?this._sizeLimits.delete(t):this._sizeLimits.set(t,e)}_checkSizeLimits(t,e){const i=e??this;if(i.size<=t)return;const s=e?.id;let r=!0;for(;r;){r=!1;for(const[n,o]of this._db)if(0===o.lifetime&&(!s||n.startsWith(s))){const s=e??this._clients.get(n.split(l)[0]);if(this._purgeItem(n,o,s),i.size<=.9*t)return;r||=this._db.has(n)}}for(const[r,n]of this._db)if(!s||r.startsWith(s)){const s=e??this._clients.get(r.split(l)[0]);if(this._purgeItem(r,n,s),i.size<=.9*t)return}}_purgeItem(t,e,i){if(this._db.delete(t),e.lives<=1){this._size-=e.size,i&&(i.size-=e.size);const s=this._notifyRemove(t,e.entry,e.size,1);null!=s&&s>0&&(this._size+=s,i&&(i.size+=s),e.lives=e.lifetime,e.size=s,this._db.set(t,e))}else--e.lives,this._db.set(t,e)}}new r(0);class n{constructor(t,e,i){this.entry=t,this.size=e,this.lifetime=i,this.lives=i}}const l=":";class o{constructor(t,e){this.removeFunc=e,this.id="",this.name="",this.size=0,this._storage=new r(t,1),this._storage.register(this)}destroy(){this._storage.deregister(this),this._storage.destroy()}put(t,e,i=1){this._storage.put(this,t,e,i,1)}pop(t){return this._storage.pop(this,t)}get(t){return this._storage.get(this,t)}clear(){this._storage.clearAll()}get maxSize(){return this._storage.maxSize}set maxSize(t){this._storage.maxSize=t}resetHitRate(){}}},60999(t,e,i){i.d(e,{DZ:()=>d,Ke:()=>y,Tj:()=>u,UT:()=>f,aD:()=>g,jJ:()=>h});var s=i(32198),r=i(69622),n=i(97768),l=i(17676),o=i(10107),a=i(64108);function h(t,e,i){return(0,l.Lx)(t.map((t,s)=>e.apply(i,[t,s])))}async function u(t,e,i){return(await(0,l.Lx)(t.map((t,s)=>e.apply(i,[t,s])))).map(t=>t.value)}function c(t){return{ok:!0,value:t}}function p(t){return{ok:!1,error:t}}async function y(t){if(null==t)return{ok:!1,error:new Error("no promise provided")};try{return c(await t)}catch(t){return p(t)}}async function d(t){try{return c(await t)}catch(t){return(0,l.QP)(t),p(t)}}function f(t,e){return new m(t,e)}let m=class extends r.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,n.DC)(this._abortController)},this.remove=this.abort,this._abortController=new AbortController;const{signal:i}=this._abortController;this.promise=t(i),this.promise.then(t=>{this._result=c(t),this._cleanup()},t=>{this._result=p(t),this._cleanup()}),this._abortHandle=(0,l.u7)(e,this.abort)}normalizeCtorArgs(){return{}}destroy(){this.abort()}_cleanup(){this._abortHandle=(0,n.xt)(this._abortHandle),this._abortController=null}};(0,s.Cg)([(0,o.MZ)()],m.prototype,"value",null),(0,s.Cg)([(0,o.MZ)()],m.prototype,"error",null),(0,s.Cg)([(0,o.MZ)()],m.prototype,"finished",null),(0,s.Cg)([(0,o.MZ)()],m.prototype,"promise",void 0),(0,s.Cg)([(0,o.MZ)()],m.prototype,"_result",void 0),m=(0,s.Cg)([(0,a.$)("esri.core.asyncUtils.ReactiveTask")],m);class g{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,s.mS)(e,await this.acquire(),!1),await t()}catch(t){e.error=t,e.hasError=!0}finally{(0,s.hk)(e)}}}},69397(t,e,i){i.d(e,{Qf:()=>o,Qh:()=>n,lM:()=>r});var s=i(34275);function r(t){if(!t)return 0;let e=h;for(const i in t)t.hasOwnProperty(i)&&(e+=l(t[i],!1));return e}function n(t){if(!t)return 0;if("number"==typeof t[0])return o(t);if(Array.isArray(t))return function(t){const e=t.length;if(0===e||"number"==typeof t[0])return a(t,8);let i=u;for(let s=0;s<e;s++)i+=l(t[s]);return i}(t);let e=h;for(const i in t)t.hasOwnProperty(i)&&(e+=l(t[i]));return e}function l(t,e=!0){switch(typeof t){case"object":return e?n(t):h;case"string":return function(t){return 32+t.length}(t);case"number":return 16;case"boolean":return 4;default:return 8}}function o(...t){return t.reduce((t,e)=>t+(e?(0,s.iu)(e)?e.byteLength+c:Array.isArray(e)?a(e,16):0:0),0)}function a(t,e){return u+t.length*e}const h=32,u=16,c=145},90629(t,e,i){i.d(e,{Lz:()=>r,PN:()=>n,cr:()=>l,gs:()=>a,r_:()=>h,tc:()=>o}),i(39829);const s=/^-?(\d+(\.\d+)?)\s*((px)|(pt))?$/i;function r(t){return t?t/72*96:0}function n(t){return t?72*t/96:0}function l(t){if("string"==typeof t){const e=t.match(s);if(e){const i=Number(e[1]),s=e[3]&&e[3].toLowerCase(),r=t.startsWith("-"),l="px"===s?n(i):i;return r?-l:l}return console.warn("screenUtils.toPt: input not recognized!"),null}return t}function o(t=0,e=0){return{x:t,y:e}}function a(t=0,e=0){return[t,e]}function h(t=0,e=0,i=0){return[t,e,i]}},83027(t,e,i){const s=i(29953).ho;i.d(e,["h",0,s])},48526(t,e,i){i.d(e,{A:()=>m});var s,r=i(32198),n=i(4576),l=i(4718),o=i(91429),a=i(5443),h=i(91075),u=i(86738),c=i(16930),p=i(90634),y=i(47610),d=i(56993),f=i(43937);let m=s=class extends h.A{constructor(t){super(function(t){if(!t)return;let{points:e,hasM:i,hasZ:s,spatialReference:r}=t;switch(e??=[],e?.at(0)?.length){case 4:s??=!0,i??=!0;break;case 3:s??=!0!==i,i??=!s;break;default:s??=!1,i??=!1}return r??=c.A.WGS84,{...t,hasM:i,hasZ:s,points:e,spatialReference:r}}(t)),this.points=[],this.type="multipoint"}get cache(){return this.commitProperty("points"),this.commitProperty("hasZ"),this.commitProperty("hasM"),this.commitProperty("spatialReference"),{}}get extent(){const t=(0,p.ge)(this);return t?new a.A({...t,spatialReference:this.spatialReference}):null}writePoints(t,e){e.points=(0,l.o8)(this.points)}clone(){const{points:t,spatialReference:e,hasM:i,hasZ:r}=this;return new s({points:(0,l.o8)(t),spatialReference:e.clone(),hasM:i,hasZ:r})}equals(t){if(this===t)return!0;if(null==t)return!1;const e=this.spatialReference,i=t.spatialReference;return null!=e==(null!=i)&&!(null!=e&&null!=i&&!e.equals(i))&&(0,n.aI)(this.points,t.points,y.v6)}addPoint(t){return(0,d.h)(this,t),Array.isArray(t)?this.points.push(t):this.points.push(t.toArray()),this.notifyChange("points"),this}getPoint(t){if(!this._validateInputs(t))return null;const e=this.points[t],i={x:e[0],y:e[1],spatialReference:this.spatialReference};let s=2;return this.hasZ&&(i.z=e[2],s=3),this.hasM&&(i.m=e[s]),new u.A(i)}removePoint(t){if(!this._validateInputs(t))return null;const e=new u.A(this.points.splice(t,1)[0],this.spatialReference);return this.notifyChange("points"),e}setPoint(t,e){return this._validateInputs(t)?((0,d.h)(this,e),Array.isArray(e)||(e=e.toArray()),this.points[t]=e,this.notifyChange("points"),this):this}toJSON(t){return this.write({},t)}_validateInputs(t){return null!=t&&t>=0&&t<this.points.length}};(0,r.Cg)([(0,o.MZ)({readOnly:!0})],m.prototype,"cache",null),(0,r.Cg)([(0,o.MZ)({readOnly:!0})],m.prototype,"extent",null),(0,r.Cg)([(0,o.MZ)({type:[[Number]],json:{write:{isRequired:!0}}})],m.prototype,"points",void 0),(0,r.Cg)([(0,f.K)("points")],m.prototype,"writePoints",null),m=s=(0,r.Cg)([(0,o.$K)("esri.geometry.Multipoint")],m),m.prototype.toJSON.isDefaultToJSON=!0},82799(t,e,i){i.d(e,{A:()=>d});var s,r=i(32198),n=i(4718),l=i(91429),o=i(5443),a=i(91075),h=i(86738),u=i(16930),c=i(90634),p=i(56993),y=i(43937);let d=s=class extends a.A{constructor(t){super(function(t){if(!t)return;let{paths:e,hasM:i,hasZ:s,spatialReference:r}=t;switch(e??=[],function(t){return"number"==typeof t[0]?.[0]}(e)&&(e=[e]),e[0]?.[0]?.length){case 4:s??=!0,i??=!0;break;case 3:s??=!0!==i,i??=!s;break;default:s??=!1,i??=!1}return r??=u.A.WGS84,{...t,hasM:i,hasZ:s,paths:e,spatialReference:r}}(t)),this.curvePaths=void 0,this.paths=[],this.type="polyline"}get cache(){return this.commitProperty("curvePaths"),this.commitProperty("hasM"),this.commitProperty("hasZ"),this.commitProperty("paths"),this.commitProperty("spatialReference"),{}}writeCurvePaths(t,e){e.curvePaths=(0,n.o8)(t)}get extent(){const t=(0,c.Z3)(this),{spatialReference:e}=this;return t?new o.A({...t,spatialReference:e}):null}writePaths(t,e){e.paths=(0,n.o8)(this.paths)}addPath(t){if(!t)return;const e=this.paths,i=e.length;if(function(t){return!Array.isArray(t[0])}(t)){const s=[];for(let e=0,i=t.length;e<i;e++)s[e]=t[e].toArray();e[i]=s}else e[i]=t.slice();return this.notifyChange("paths"),this}clone(){const t=new s;return t.spatialReference=this.spatialReference,t.paths=(0,n.o8)(this.paths),t.curvePaths=(0,n.o8)(this.curvePaths),t.hasZ=this.hasZ,t.hasM=this.hasM,t}getPoint(t,e){if(!this._validateInputs(t,e))return null;const i=this.paths[t][e],s=this.hasZ,r=this.hasM;return s&&!r?new h.A(i[0],i[1],i[2],void 0,this.spatialReference):r&&!s?new h.A(i[0],i[1],void 0,i[2],this.spatialReference):s&&r?new h.A(i[0],i[1],i[2],i[3],this.spatialReference):new h.A(i[0],i[1],this.spatialReference)}insertPoint(t,e,i){return this._validateInputs(t,e,!0)?((0,p.h)(this,i),Array.isArray(i)||(i=i.toArray()),this.paths[t].splice(e,0,i),this.notifyChange("paths"),this):this}removePath(t){if(!this._validateInputs(t,null))return null;const e=this.paths.splice(t,1)[0],i=this.spatialReference,s=e.map(t=>new h.A(t,i));return this.notifyChange("paths"),s}removePoint(t,e){if(!this._validateInputs(t,e))return null;const i=new h.A(this.paths[t].splice(e,1)[0],this.spatialReference);return this.notifyChange("paths"),i}setPoint(t,e,i){return this._validateInputs(t,e)?((0,p.h)(this,i),Array.isArray(i)||(i=i.toArray()),this.paths[t][e]=i,this.notifyChange("paths"),this):this}_validateInputs(t,e,i=!1){if(null==t||t<0||t>=this.paths.length)return!1;if(null!=e){const s=this.paths[t];if(i&&(e<0||e>s.length))return!1;if(!i&&(e<0||e>=s.length))return!1}return!0}toJSON(t){return this.write({},t)}};(0,r.Cg)([(0,l.MZ)({readOnly:!0})],d.prototype,"cache",null),(0,r.Cg)([(0,l.MZ)({json:{write:!0,origins:{"portal-item":{write:!1},"web-map":{write:!1},"web-scene":{write:!1}}}})],d.prototype,"curvePaths",void 0),(0,r.Cg)([(0,y.K)("curvePaths")],d.prototype,"writeCurvePaths",null),(0,r.Cg)([(0,l.MZ)({readOnly:!0})],d.prototype,"extent",null),(0,r.Cg)([(0,l.MZ)({type:[[[Number]]],json:{write:{isRequired:!0}}})],d.prototype,"paths",void 0),(0,r.Cg)([(0,y.K)("paths")],d.prototype,"writePaths",null),d=s=(0,r.Cg)([(0,l.$K)("esri.geometry.Polyline")],d),d.prototype.toJSON.isDefaultToJSON=!0},6774(t,e,i){i.d(e,{O3:()=>n,Ox:()=>l,bR:()=>s});class s{constructor(t,e){this.x=t,this.y=e}static fromArray(t){return new s(t[0],t[1])}clone(){return new s(this.x,this.y)}equals(t,e){return t===this.x&&e===this.y}isEqual(t){return t.x===this.x&&t.y===this.y}setCoords(t,e){return this.x=t,this.y=e,this}normalize(){const t=this.x,e=this.y,i=Math.sqrt(t*t+e*e);return this.x/=i,this.y/=i,this}rightPerpendicular(){const t=this.x;return this.x=this.y,this.y=-t,this}leftPerpendicular(){const t=this.x;return this.x=-this.y,this.y=t,this}move(t,e){return this.x+=t,this.y+=e,this}assign(t){return this.x=t.x,this.y=t.y,this}assignAdd(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this}assignSub(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this}rotate(t,e){const i=this.x,s=this.y;return this.x=i*t-s*e,this.y=i*e+s*t,this}rotateReverse(t,e){const i=this.x,s=this.y;return this.x=i*t+s*e,this.y=-i*e+s*t,this}scale(t){return this.x*=t,this.y*=t,this}length(){const t=this.x,e=this.y;return Math.sqrt(t*t+e*e)}sub(t){return this.x-=t.x,this.y-=t.y,this}add(t){return this.x+=t.x,this.y+=t.y,this}static distance(t,e){const i=e.x-t.x,s=e.y-t.y;return Math.sqrt(i*i+s*s)}static add(t,e){return new s(t.x+e.x,t.y+e.y)}static sub(t,e){return new s(t.x-e.x,t.y-e.y)}}class r{constructor(t,e,i){this.ratio=t,this.x=e,this.y=i}}class n{constructor(t,e,i,s=8,r=8){this._lines=[],this._starts=[],this.validateTessellation=!0,this._pixelRatio=s,this._pixelMargin=r,this._tileSize=512*s,this._dz=t,this._yPos=e,this._xPos=i}setPixelMargin(t){t!==this._pixelMargin&&(this._pixelMargin=t,this.setExtent(this._extent))}setExtent(t){this._extent=t,this._finalRatio=this._tileSize/t*(1<<this._dz);let e=this._pixelRatio*this._pixelMargin;e/=this._finalRatio;const i=t>>this._dz;e>i&&(e=i),this._margin=e,this._xmin=i*this._xPos-e,this._ymin=i*this._yPos-e,this._xmax=this._xmin+i+2*e,this._ymax=this._ymin+i+2*e}reset(t){this._type=t,this._lines=[],this._starts=[],this._line=null,this._start=0}moveTo(t,e){this._pushLine(),this._prevIsIn=this._isIn(t,e),this._moveTo(t,e,this._prevIsIn),this._prevPt=new s(t,e),this._firstPt=new s(t,e),this._dist=0}lineTo(t,e){const i=this._isIn(t,e),n=new s(t,e),l=s.distance(this._prevPt,n);let o,a,h,u,c,p,y,d;if(i)this._prevIsIn?this._lineTo(t,e,!0):(o=this._prevPt,a=n,h=this._intersect(a,o),this._start=this._dist+l*(1-this._r),this._lineTo(h.x,h.y,!0),this._lineTo(a.x,a.y,!0));else if(this._prevIsIn)a=this._prevPt,o=n,h=this._intersect(a,o),this._lineTo(h.x,h.y,!0),this._lineTo(o.x,o.y,!1);else{const t=this._prevPt,e=n;if(t.x<=this._xmin&&e.x<=this._xmin||t.x>=this._xmax&&e.x>=this._xmax||t.y<=this._ymin&&e.y<=this._ymin||t.y>=this._ymax&&e.y>=this._ymax)this._lineTo(e.x,e.y,!1);else{const i=[];if((t.x<this._xmin&&e.x>this._xmin||t.x>this._xmin&&e.x<this._xmin)&&(u=(this._xmin-t.x)/(e.x-t.x),d=t.y+u*(e.y-t.y),d<=this._ymin?p=!1:d>=this._ymax?p=!0:i.push(new r(u,this._xmin,d))),(t.x<this._xmax&&e.x>this._xmax||t.x>this._xmax&&e.x<this._xmax)&&(u=(this._xmax-t.x)/(e.x-t.x),d=t.y+u*(e.y-t.y),d<=this._ymin?p=!1:d>=this._ymax?p=!0:i.push(new r(u,this._xmax,d))),(t.y<this._ymin&&e.y>this._ymin||t.y>this._ymin&&e.y<this._ymin)&&(u=(this._ymin-t.y)/(e.y-t.y),y=t.x+u*(e.x-t.x),y<=this._xmin?c=!1:y>=this._xmax?c=!0:i.push(new r(u,y,this._ymin))),(t.y<this._ymax&&e.y>this._ymax||t.y>this._ymax&&e.y<this._ymax)&&(u=(this._ymax-t.y)/(e.y-t.y),y=t.x+u*(e.x-t.x),y<=this._xmin?c=!1:y>=this._xmax?c=!0:i.push(new r(u,y,this._ymax))),0===i.length)c?p?this._lineTo(this._xmax,this._ymax,!0):this._lineTo(this._xmax,this._ymin,!0):p?this._lineTo(this._xmin,this._ymax,!0):this._lineTo(this._xmin,this._ymin,!0);else if(i.length>1&&i[0].ratio>i[1].ratio)this._start=this._dist+l*i[1].ratio,this._lineTo(i[1].x,i[1].y,!0),this._lineTo(i[0].x,i[0].y,!0);else{this._start=this._dist+l*i[0].ratio;for(let t=0;t<i.length;t++)this._lineTo(i[t].x,i[t].y,!0)}this._lineTo(e.x,e.y,!1)}}this._dist+=l,this._prevIsIn=i,this._prevPt=n}close(){if(this._line.length>2){const t=this._firstPt,e=this._prevPt;t.x===e.x&&t.y===e.y||this.lineTo(t.x,t.y);const i=this._line;let s=i.length;for(;s>=4&&(i[0].x===i[1].x&&i[0].x===i[s-2].x||i[0].y===i[1].y&&i[0].y===i[s-2].y);)i.pop(),i[0].x=i[s-2].x,i[0].y=i[s-2].y,--s}}result(t=!0){return this._pushLine(),0===this._lines.length?null:(3===this._type&&t&&o.simplify(this._tileSize,this._margin*this._finalRatio,this._lines),this._lines)}resultWithStarts(){if(2!==this._type)throw new Error("Only valid for lines");this._pushLine();const t=this._lines,e=t.length;if(0===e)return null;const i=[];for(let s=0;s<e;s++)i.push({line:t[s],start:this._starts[s]||0});return i}_isIn(t,e){return t>=this._xmin&&t<=this._xmax&&e>=this._ymin&&e<=this._ymax}_intersect(t,e){let i,r,n;if(e.x>=this._xmin&&e.x<=this._xmax)r=e.y<=this._ymin?this._ymin:this._ymax,n=(r-t.y)/(e.y-t.y),i=t.x+n*(e.x-t.x);else if(e.y>=this._ymin&&e.y<=this._ymax)i=e.x<=this._xmin?this._xmin:this._xmax,n=(i-t.x)/(e.x-t.x),r=t.y+n*(e.y-t.y);else{r=e.y<=this._ymin?this._ymin:this._ymax,i=e.x<=this._xmin?this._xmin:this._xmax;const s=(i-t.x)/(e.x-t.x),l=(r-t.y)/(e.y-t.y);s<l?(n=s,r=t.y+s*(e.y-t.y)):(n=l,i=t.x+l*(e.x-t.x))}return this._r=n,new s(i,r)}_pushLine(){this._line&&(1===this._type?this._line.length>0&&(this._lines.push(this._line),this._starts.push(this._start)):2===this._type?this._line.length>1&&(this._lines.push(this._line),this._starts.push(this._start)):3===this._type&&this._line.length>3&&(this._lines.push(this._line),this._starts.push(this._start))),this._line=[],this._start=0}_moveTo(t,e,i){3!==this._type?i&&(t=Math.round((t-(this._xmin+this._margin))*this._finalRatio),e=Math.round((e-(this._ymin+this._margin))*this._finalRatio),this._line.push(new s(t,e))):(i||(t<this._xmin&&(t=this._xmin),t>this._xmax&&(t=this._xmax),e<this._ymin&&(e=this._ymin),e>this._ymax&&(e=this._ymax)),t=Math.round((t-(this._xmin+this._margin))*this._finalRatio),e=Math.round((e-(this._ymin+this._margin))*this._finalRatio),this._line.push(new s(t,e)),this._isH=!1,this._isV=!1)}_lineTo(t,e,i){let r,n;if(3!==this._type)if(i){if(t=Math.round((t-(this._xmin+this._margin))*this._finalRatio),e=Math.round((e-(this._ymin+this._margin))*this._finalRatio),this._line.length>0&&(r=this._line[this._line.length-1],r.equals(t,e)))return;this._line.push(new s(t,e))}else this._line&&this._line.length>0&&this._pushLine();else if(i||(t<this._xmin&&(t=this._xmin),t>this._xmax&&(t=this._xmax),e<this._ymin&&(e=this._ymin),e>this._ymax&&(e=this._ymax)),t=Math.round((t-(this._xmin+this._margin))*this._finalRatio),e=Math.round((e-(this._ymin+this._margin))*this._finalRatio),this._line&&this._line.length>0){r=this._line[this._line.length-1];const i=r.x===t,l=r.y===e;if(i&&l)return;this._isH&&i||this._isV&&l?(r.x=t,r.y=e,n=this._line[this._line.length-2],n.x===t&&n.y===e?(this._line.pop(),this._line.length<=1?(this._isH=!1,this._isV=!1):(n=this._line[this._line.length-2],this._isH=n.x===t,this._isV=n.y===e)):(this._isH=n.x===t,this._isV=n.y===e)):(this._line.push(new s(t,e)),this._isH=i,this._isV=l)}else this._line.push(new s(t,e))}}class l{setExtent(t){this._ratio=4096===t?1:4096/t}get validateTessellation(){return this._ratio<1}reset(t){this._lines=[],this._line=null}moveTo(t,e){this._line&&this._lines.push(this._line),this._line=[];const i=this._ratio;this._line.push(new s(t*i,e*i))}lineTo(t,e){const i=this._ratio;this._line.push(new s(t*i,e*i))}close(){const t=this._line;t&&!t[0].isEqual(t[t.length-1])&&t.push(t[0])}result(){return this._line&&this._lines.push(this._line),0===this._lines.length?null:this._lines}}class o{static simplify(t,e,i){if(!i)return;const s=-e,r=t+e,n=-e,l=t+e,a=[],h=[],u=i.length;for(let t=0;t<u;++t){const e=i[t];if(!e||e.length<2)continue;let o,u=e[0];const c=e.length;for(let i=1;i<c;++i)o=e[i],u.x===o.x&&(u.x<=s&&(u.y>o.y?(a.push(t),a.push(i),a.push(0),a.push(-1)):(h.push(t),h.push(i),h.push(0),h.push(-1))),u.x>=r&&(u.y<o.y?(a.push(t),a.push(i),a.push(1),a.push(-1)):(h.push(t),h.push(i),h.push(1),h.push(-1)))),u.y===o.y&&(u.y<=n&&(u.x<o.x?(a.push(t),a.push(i),a.push(2),a.push(-1)):(h.push(t),h.push(i),h.push(2),h.push(-1))),u.y>=l&&(u.x>o.x?(a.push(t),a.push(i),a.push(3),a.push(-1)):(h.push(t),h.push(i),h.push(3),h.push(-1)))),u=o}if(0===a.length||0===h.length)return;o.fillParent(i,h,a),o.fillParent(i,a,h);const c=[];o.calcDeltas(c,h,a),o.calcDeltas(c,a,h),o.addDeltas(c,i)}static fillParent(t,e,i){const s=i.length,r=e.length;for(let n=0;n<r;n+=4){const r=e[n],l=e[n+1],o=e[n+2],h=t[r][l-1],u=t[r][l];let c=8092,p=-1;for(let e=0;e<s;e+=4){if(i[e+2]!==o)continue;const s=i[e],r=i[e+1],n=t[s][r-1],l=t[s][r];switch(o){case 0:case 1:if(a(h.y,n.y,l.y)&&a(u.y,n.y,l.y)){const t=Math.abs(l.y-n.y);t<c&&(c=t,p=e)}break;case 2:case 3:if(a(h.x,n.x,l.x)&&a(u.x,n.x,l.x)){const t=Math.abs(l.x-n.x);t<c&&(c=t,p=e)}}}e[n+3]=p}}static calcDeltas(t,e,i){const s=e.length;for(let r=0;r<s;r+=4){const s=[],n=o.calcDelta(r,e,i,s);t.push(e[r]),t.push(e[r+1]),t.push(e[r+2]),t.push(n)}}static calcDelta(t,e,i,s){const r=e[t+3];if(-1===r)return 0;const n=s.length;return n>1&&s[n-2]===r?0:(s.push(r),o.calcDelta(r,i,e,s)+1)}static addDeltas(t,e){const i=t.length;let s=0;for(let e=0;e<i;e+=4){const i=t[e+3];i>s&&(s=i)}for(let r=0;r<i;r+=4){const i=e[t[r]],n=t[r+1],l=s-t[r+3];switch(t[r+2]){case 0:i[n-1].x-=l,i[n].x-=l,1===n&&(i[i.length-1].x-=l),n===i.length-1&&(i[0].x-=l);break;case 1:i[n-1].x+=l,i[n].x+=l,1===n&&(i[i.length-1].x+=l),n===i.length-1&&(i[0].x+=l);break;case 2:i[n-1].y-=l,i[n].y-=l,1===n&&(i[i.length-1].y-=l),n===i.length-1&&(i[0].y-=l);break;case 3:i[n-1].y+=l,i[n].y+=l,1===n&&(i[i.length-1].y+=l),n===i.length-1&&(i[0].y+=l)}}}}const a=(t,e,i)=>t>=e&&t<=i||t>=i&&t<=e},50638(t,e,i){i.r(e),i.d(e,{default:()=>St});var s=i(32198),r=i(11254),n=i(60999),l=i(4718),o=i(25728),a=i(17676),h=i(84952),u=i(91429),c=i(5443),p=i(16930),y=i(4146),d=i(52136),f=i(89186),m=i(18768),g=i(63074),_=i(69208),v=i(34287),x=i(8303),w=i(54310),A=i(25036),S=i(10873);let b=null;var M=i(49186),I=i(53966),C=i(34275);class P{constructor(t,e){this._spriteSource=t,this._maxTextureSize=e,this.devicePixelRatio=1,this._spriteImageFormat="png",this._isRetina=!1,this._spritesData={},this.image=null,this.width=null,this.height=null,this.loadStatus="not-loaded","url"===t.type&&t.spriteFormat&&(this._spriteImageFormat=t.spriteFormat),t.pixelRatio&&(this.devicePixelRatio=t.pixelRatio),this.baseURL=t.spriteUrl}get spriteNames(){const t=[];for(const e in this._spritesData)t.push(e);return t.sort(),t}getSpriteInfo(t){return this._spritesData?this._spritesData[t]:null}async load(t){if(this.baseURL){this.loadStatus="loading";try{await this._loadSprites(t),this.loadStatus="loaded"}catch{this.loadStatus="failed"}}else this.loadStatus="failed"}async _loadSprites(t){this._isRetina=this.devicePixelRatio>1.15;const{width:e,height:i,data:s,json:r}=await this._getSpriteData(this._spriteSource,t),n=Object.keys(r);if(!n||0===n.length||!s)return this._spritesData=this.image=null,void(this.width=this.height=0);this._spritesData=r,this.width=e,this.height=i;const l=Math.max(this._maxTextureSize,4096);if(e>l||i>l){const t=`Sprite resource for style ${this.baseURL} is bigger than the maximum allowed of ${l} pixels}`;throw I.A.getLogger("esri.layers.support.SpriteSource").error(t),new M.A("SpriteSource",t)}let o;for(let t=0;t<s.length;t+=4)o=s[t+3]/255,s[t]=s[t]*o,s[t+1]=s[t+1]*o,s[t+2]=s[t+2]*o;this.image=s}async _getSpriteData(t,e){if("image"===t.type){let e,i;if(this.devicePixelRatio<1.15){if(!t.spriteSource1x)throw new M.A("SpriteSource","no image data provided for low resolution sprites!");e=t.spriteSource1x.image,i=t.spriteSource1x.json}else{if(!t.spriteSource2x)throw new M.A("SpriteSource","no image data provided for high resolution sprites!");e=t.spriteSource2x.image,i=t.spriteSource2x.json}return"width"in e&&"height"in e&&"data"in e&&((0,C.mw)(e.data)||(0,C.UR)(e.data))?{width:e.width,height:e.height,data:new Uint8Array(e.data),json:i}:{...R(e),json:i}}const i=(0,h.An)(this.baseURL),s=i.query?"?"+(0,h.x0)(i.query):"",n=this._isRetina?"@2x":"",l=`${i.path}${n}.${this._spriteImageFormat}${s}`,o=`${i.path}${n}.json${s}`,[a,u]=await Promise.all([(0,r.A)(o,e),(0,r.A)(l,{responseType:"image",...e})]);return{...R(u.data),json:a.data}}}function R(t){const e=document.createElement("canvas"),i=e.getContext("2d");e.width=t.width,e.height=t.height,i.drawImage(t,0,0,t.width,t.height);const s=i.getImageData(0,0,t.width,t.height);return{width:t.width,height:t.height,data:new Uint8Array(s.data)}}var T=i(87045),z=i(25943),L=i(21325),O=i(28735),E=i(83027);class U{constructor(t,e,i){this.tileServers=[],this.tilemap=null,this.tileInfo=null,this.capabilities=null,this.fullExtent=null,this.initialExtent=null,this.name=t,this.sourceUrl=e;const s=(0,l.o8)(i),r=i.capabilities&&i.capabilities.split(",").map(t=>t.toLowerCase().trim()),n=!0===i?.exportTilesAllowed,o=!0===r?.includes("tilemap"),a=n&&i.hasOwnProperty("maxExportTilesCount")?i.maxExportTilesCount:0;this.capabilities={operations:{supportsExportTiles:n,supportsTileMap:o},exportTiles:n?{maxExportTilesCount:+a}:null},this.tileInfo=T.A.fromJSON(s.tileInfo),this.fullExtent=c.A.fromJSON(i.fullExtent),this.initialExtent=c.A.fromJSON(i.initialExtent)}destroy(){this.tilemap?.destroy()}async getRefKey(t,e){return this.tilemap?this.tilemap.dataKey(t,e):t}isCompatibleWith(t){const e=this.tileInfo,i=t.tileInfo;if(!e.spatialReference.equals(i.spatialReference))return!1;if(!e.origin.equals(i.origin))return!1;if(Math.round(e.dpi)!==Math.round(i.dpi))return!1;const s=e.lods,r=i.lods,n=Math.min(s.length,r.length);for(let t=0;t<n;t++){const e=s[t],i=r[t];if(e.level!==i.level||Math.round(e.scale)!==Math.round(i.scale))return!1}return!0}}var D=i(44159);class Z extends U{static async create(t,e,i,s,r){if(!0===s.cluster)throw new Error("Clustered GeoJSON vector tile sources are not supported.");if(null==s.data)throw new Error(`GeoJSON source '${t}' must define a data property.`);const n=s.maxzoom??18,l=await(0,E.h)("GeoJSONVectorTileSourceWorker",{signal:r?.signal,strategy:"dedicated"});let o;try{o=await l.invoke("initialize",{definition:s,name:t,requestOptions:$(r)},{signal:r?.signal}),(0,a.Te)(r)}catch(t){throw l.close(),t}return new Z(t,e,i,l,s.minzoom??0,n,o.geometryTypes)}constructor(t,e,i,s,r,n,l){super(t,e,i),this._connection=s,this._minZoom=r,this._maxZoom=n,this.geometryTypes=l}destroy(){super.destroy(),this._connection?.close(),this._connection=null}async getRefKey(t,e){if((0,a.Te)(e),t.level<this._minZoom)return null;if(t.level<=this._maxZoom)return t;const i=t.level-this._maxZoom;return new D.A(this._maxZoom,t.row>>i,t.col>>i,t.world)}requestTile(t,e,i,s){return(0,a.Te)(s),this._connection?this._connection.invoke("requestTile",{col:i,level:t,row:e},s):Promise.reject((0,a.NK)())}}function $(t){if(!t)return{};const{signal:e,...i}=t;return i}class j{constructor(t){this.url=t}destroy(){this._tileIndexPromise=null}async fetchTileIndex(){return this._tileIndexPromise||(this._tileIndexPromise=(0,r.A)(this.url).then(t=>t.data.index)),this._tileIndexPromise}async dataKey(t,e){const i=await this.fetchTileIndex();return(0,a.Te)(e),this._getIndexedDataKey(i,t)}_getIndexedDataKey(t,e){const i=[e];if(e.level<0||e.row<0||e.col<0||e.row>>e.level>0||e.col>>e.level>0)return null;let s=e;for(;0!==s.level;)s=new D.A(s.level-1,s.row>>1,s.col>>1,s.world),i.push(s);let r,n,l=t,o=i.pop();if(1===l)return o;for(;i.length;)if(r=i.pop(),n=(1&r.col)+((1&r.row)<<1),l){if(0===l[n]){o=null;break}if(1===l[n]){o=r;break}o=r,l=l[n]}return o}}var N=i(97768);class k{constructor(t,e){this._tilemap=t,this._tileIndexUrl=e}destroy(){this._tilemap=(0,N.pR)(this._tilemap),this._tileIndexPromise=null}async fetchTileIndex(t){return this._tileIndexPromise||(this._tileIndexPromise=(0,r.A)(this._tileIndexUrl,{query:{...t?.query}}).then(t=>t.data.index)),this._tileIndexPromise}dataKey(t,e){const{level:i,row:s,col:r}=t,n=new D.A(t);return this._tilemap.fetchAvailabilityUpsample(i,s,r,n,e).then(()=>(n.world=t.world,n)).catch(t=>{if((0,a.zf)(t))throw t;return null})}}var K=i(91869);class q{constructor(t){this._tileUrl=t,this._promise=null,this._abortController=null,this._abortOptions=[]}getData(t){(null==this._promise||(0,a.G4)(this._abortController?.signal))&&(this._promise=this._makeRequest(this._tileUrl));const e=this._abortOptions;return e.push(t),(0,a.u7)(t,()=>{e.every(t=>(0,a.G4)(t))&&this._abortController.abort()}),this._promise.then(t=>(0,l.o8)(t))}async _makeRequest(t){this._abortController=new AbortController;const{data:e}=await(0,r.A)(t,{responseType:"array-buffer",signal:this._abortController.signal});return e}}const F=new Map;function G(t,e){return(0,K.tE)(F,t,()=>new q(t)).getData(e).finally(()=>F.delete(t))}class B extends U{constructor(t,e,i){super(t,e,i);const s=(0,h.An)(this.sourceUrl),r=(0,l.o8)(i),n=r.tiles;if(s)for(let t=0;t<n.length;t++){const e=(0,h.An)(n[t]);e&&((0,h.oP)(e.path)||(e.path=(0,h.fj)(s.path,e.path)),n[t]=(0,h.a6)(e.path,{...s.query,...e.query}))}this.tileServers=n;const o=i.tileMap&&s?(0,h.a6)((0,h.fj)(s.path,i.tileMap),s.query??{}):null;this.capabilities.operations.supportsTileMap?(this.type="vector-tile",this.tilemap=new k(new z.d({layer:{parsedUrl:s,tileInfo:this.tileInfo},minLOD:r.minLOD??this.tileInfo.lods[0].level,maxLOD:r.maxLOD??this.tileInfo.lods[this.tileInfo.lods.length-1].level}),o)):o&&(this.tilemap=new j(o))}requestTile(t,e,i,s){return function(t,e,i,s,r){const n=(0,h.An)(t),l=n.query;if(l)for(const[t,r]of Object.entries(l))switch(r){case"{x}":l[t]=s.toString();break;case"{y}":l[t]=i.toString();break;case"{z}":l[t]=e.toString()}const o=n.path;return G((0,h.a6)(o.replaceAll(/\{z\}/gi,e.toString()).replaceAll(/\{y\}/gi,i.toString()).replaceAll(/\{x\}/gi,s.toString()),{...n.query}),r)}(this.tileServers[e%this.tileServers.length],t,e,i,s)}}function H(...t){let e;for(const i of t)if(null!=i)if((0,h.BQ)(i)){if(e){const t=e.split("://")[0];e=t+":"+i.trim()}}else e=(0,h.oP)(i)?i:(0,h.fj)(e,i);return e?(0,h.UC)(e):void 0}async function V(t,e,i,s,n){let l,o,u;if((0,a.Te)(n),"string"==typeof i){const t=(0,h.S8)(i);u=await(0,r.A)(t,{...n,responseType:"json",query:{f:"json",...n?.query}}),u.ssl&&(l&&(l=l.replace(/^http:/i,"https:")),o&&(o=o.replace(/^http:/i,"https:"))),l=t,o=t}else null!=i&&(u={data:i},l=i.jsonUrl||null,o=s);const c=u?.data;switch(c?.type){case"Feature":case"FeatureCollection":return t.sourceUrl=l||null,Q(t,function(t){return{version:8,sprite:"",glyphs:"",sources:{geojson:{type:"geojson",data:t}},layers:[]}}(c),o,n)}if(W(c))return t.styleUrl=l||null,Q(t,c,o,n);if(function(t){return!!t&&!W(t)}(c))return t.primarySourceName?tt(t,c,o,!1,e,n):(t.sourceUrl=l||null,J(c)&&null==t.style&&(e="tilejson"),tt(t,c,o,!0,e,n));throw new Error("You must specify the URL or the JSON for a service or for a style.")}function J(t){return"object"==typeof t&&!!t&&"tilejson"in t&&null!=t.tilejson}function W(t){return!!t&&"sources"in t&&!!t.sources}async function Q(t,e,i,s){const r=i?(0,h.nM)(i):(0,h.gd)(),n=null==e.layers||0===e.layers.length,l=n?{...e,layers:[]}:e;t.styleBase=r,t.style=l,"webp"===l["sprite-format"]?.toLowerCase()&&(t.spriteFormat="webp");const o=[];if(l.sources&&l.sources.esri&&"geojson"!==l.sources.esri.type){const e=l.sources.esri;e.url?await V(t,"esri",H(r,e.url),void 0,s):o.push(V(t,"esri",e,r,s))}for(const e of Object.keys(l.sources))"esri"!==e&&"tilejson"!==e&&"vector"===l.sources[e].type&&(l.sources[e].url?o.push(V(t,e,H(r,l.sources[e].url),void 0,s)):l.sources[e].tiles&&o.push(V(t,e,l.sources[e],r,s)));await Promise.all(o);for(const e of Object.keys(l.sources)){const i=l.sources[e];if("geojson"===i.type){const o=await Y(t,e,i,r,s);n&&l.layers.push(...X(e,o.geometryTypes))}}}async function Y(t,e,i,s,r){if(null==i.data)throw new Error(`GeoJSON source '${e}' must define a data property.`);const n={...i,type:"geojson",data:"string"==typeof i.data?H(s,i.data):i.data},l=it({maxzoom:n.maxzoom,minzoom:n.minzoom},t),o=await Z.create(e,s,l,n,r);return et(t,e,i,l,o,!t.primarySourceName,s),o}function X(t,e){return e.map(e=>{switch(e){case"polygon":return{id:`${t}_polygon`,type:"fill",source:t,filter:["==","$type","Polygon"],paint:{"fill-color":"#808080"}};case"line":return{id:`${t}_line`,type:"line",source:t,filter:["==","$type","LineString"],paint:{"line-color":"#808080","line-width":1}};case"point":return{id:`${t}_point`,type:"circle",source:t,filter:["==","$type","Point"],paint:{"circle-color":"#808080","circle-radius":3}}}})}async function tt(t,e,i,s,r,n){const l=i?(0,h.UC)(i)+"/":(0,h.gd)(),o=it(e,t);if(et(t,r,e,o,new B(r,(0,h.a6)(l,n?.query??{}),o),s,l),!J(t)&&"defaultStyles"in e&&!t.style){if(null==e.defaultStyles)throw new Error;return"string"==typeof e.defaultStyles?V(t,"",H(l,e.defaultStyles,"root.json"),void 0,n):V(t,"",e.defaultStyles,H(l,"root.json"),n)}if(J(e)&&null==t.style&&o.defaultStyles)return V(t,"",o.defaultStyles,H(l,"root.json"),n)}function et(t,e,i,s,r,n,l){if(!n&&t.primarySourceName in t.sourceNameToSource){const i=t.sourceNameToSource[t.primarySourceName];if(!i.isCompatibleWith(r))return I.A.getLogger("esri.layers.support.vectorTileLayerLoader").warn(`Ignoring source '${e}' because its tiling scheme is incompatible with the primary source '${t.primarySourceName}'.`),void r.destroy();null!=r.fullExtent&&(null!=i.fullExtent?i.fullExtent.union(r.fullExtent):i.fullExtent=r.fullExtent.clone()),i.tileInfo&&r.tileInfo&&i.tileInfo.lods.length<r.tileInfo.lods.length&&(i.tileInfo=r.tileInfo)}n&&(t.sourceBase=l,t.source=i,t.validatedSource=s,t.primarySourceName=e),t.sourceNameToSource[e]=r}function it(t,e){const i=512;if(function(t){return t.hasOwnProperty("tileInfo")}(t)){const e=t?.tileInfo;return null!=e&&(null==e.rows&&(e.rows=i),null==e.cols&&(e.cols=i)),t}const s={xmin:-20037507.067161843,ymin:-20037507.067161843,xmax:20037507.067161843,ymax:20037507.067161843,spatialReference:{wkid:102100,latestWkid:3857}};let r,n=null;if(J(t)){const{bounds:i,vector_layers:s}=t;if(i){const t=(0,O.Gh)({x:i[0],y:i[1],spatialReference:(0,l.o8)(L.KK)}),e=(0,O.Gh)({x:i[2],y:i[3],spatialReference:(0,l.o8)(L.KK)});n={xmin:t.x,ymin:t.y,xmax:e.x,ymax:e.y,spatialReference:(0,l.o8)(L.ch)}}if(s&&s.length>0)r={version:8,sprite:"",glyphs:"",sources:{tilejson:{type:"vector",url:t.tilejson}},layers:st(s)};else if(null==e.style)throw new Error("The TileJSON source does not contain any vector_layers. This VectorTileLayer cannot be loaded.")}null===n&&(n=s);let o=78271.51696400007,a=295828763.7957775;const h=[],u=t.hasOwnProperty("maxzoom")&&null!=t.maxzoom?Math.abs(+t.maxzoom):22;for(let t=0;t<=u;t++)h.push({level:t,scale:a,resolution:o}),o/=2,a/=2;return{capabilities:"TilesOnly",initialExtent:n,fullExtent:s,minScale:0,maxScale:0,tiles:t.tiles,tileInfo:{rows:i,cols:i,dpi:96,format:"pbf",origin:{x:-20037508.342787,y:20037508.342787},lods:h,spatialReference:(0,l.o8)(L.ch)},defaultStyles:r}}function st(t){const e=[];for(const i of t)i.geometry_type?e.push(rt(i.geometry_type.toLowerCase(),i,!1)):(e.push(rt("polygon",i,!0)),e.push(rt("line",i,!0)),e.push(rt("circle",i,!0)));return e}function rt(t,e,i){const{id:s,minzoom:r,maxzoom:n}=e,l={type:"polygon"===t||"polygons"===t?"fill":"line"===t||"lines"===t?"line":"circle",id:s,source:"tilejson","source-layer":s,minzoom:r,maxzoom:n};switch(t){case"fill":i&&(l.id+="_polygon",l.filter='(["==", "$type", "Polygon"])'),l.paint={"fill-color":"#808080"};break;case"line":i&&(l.id+="_line",l.filter='(["==", "$type", "LineString"])');break;case"circle":i&&(l.id+="_point",l.filter='(["==", "$type", "Point"])')}return l}var nt=i(88788),lt=i(39131),ot=i(97159),at=i(86738),ht=i(91806);const ut=1e-6;function ct(t,e){if(t===e)return!0;if(null==t&&null!=e)return!1;if(null!=t&&null==e)return!1;if(null==t||null==e)return!1;if(!t.spatialReference.equals(e.spatialReference)||t.dpi!==e.dpi)return!1;const i=t.origin,s=e.origin;if(Math.abs(i.x-s.x)>=ut||Math.abs(i.y-s.y)>=ut)return!1;let r,n;t.lods[0].scale>e.lods[0].scale?(r=t,n=e):(n=t,r=e);for(let t=r.lods[0].scale;t>=n.lods[n.lods.length-1].scale-ut;t/=2)if(Math.abs(t-n.lods[0].scale)<ut)return!0;return!1}function pt(t,e){if(t===e)return t;if(null==t&&null!=e)return e;if(null!=t&&null==e)return t;if(null==t||null==e)return null;const i=t.size[0],s=t.format,r=t.dpi,n=new at.A({x:t.origin.x,y:t.origin.y}),l=t.spatialReference,o=t.lods[0].scale>e.lods[0].scale?t.lods[0]:e.lods[0],a=t.lods[t.lods.length-1].scale<=e.lods[e.lods.length-1].scale?t.lods[t.lods.length-1]:e.lods[e.lods.length-1],h=o.scale,u=o.resolution,c=a.scale,p=[];let y=h,d=u,f=0;for(;y>=c;)p.push(new ht.A({level:f,resolution:d,scale:y})),f++,y/=2,d/=2;return new T.A({size:[i,i],dpi:r,format:s||"pbf",origin:n,lods:p,spatialReference:l})}var yt=i(45013);class dt{constructor(t){this.getUnmaskedRenderer=t}}function ft(t){const e=t.getExtension("WEBGL_debug_renderer_info");return e?new dt(()=>t.getParameter(e.UNMASKED_RENDERER_WEBGL)):null}let mt;function gt(){return mt??=function(){const t=new _t,e=function(t){if("undefined"==typeof WebGL2RenderingContext)return null;const e=document.createElement("canvas");if(!e)return null;let i=e.getContext("webgl2",{failIfMajorPerformanceCaveat:!0});if(null==i&&(i=e.getContext("webgl2"),null!=i&&(t.majorPerformanceCaveat=!0,t.unmaskedRenderer=ft(i)?.getUnmaskedRenderer()??"unknown")),null==i)return i;t.available=!0,t.maxTextureSize=i.getParameter(i.MAX_TEXTURE_SIZE),t.supportsVertexShaderSamplers=i.getParameter(i.MAX_VERTEX_TEXTURE_IMAGE_UNITS)>0;const s=i.getShaderPrecisionFormat(i.FRAGMENT_SHADER,i.HIGH_FLOAT);return s&&(t.supportsHighPrecisionFragment=s.precision>0),i}(t);return null==e||(t.supportsColorBufferFloat=null!==e.getExtension("EXT_color_buffer_float"),t.supportsColorBufferFloatBlend=null!==e.getExtension("EXT_float_blend"),t.supportsColorBufferHalfFloat=t.supportsColorBufferFloat||null!==e.getExtension("EXT_color_buffer_half_float")),t}(),mt}class _t{constructor(){this.available=!1,this.majorPerformanceCaveat=!1,this.maxTextureSize=0,this.supportsVertexShaderSamplers=!1,this.supportsHighPrecisionFragment=!1,this.supportsColorBufferFloat=!1,this.supportsColorBufferFloatBlend=!1,this.supportsColorBufferHalfFloat=!1,this.unmaskedRenderer="unloaded"}}var vt=i(59923),xt=i(43937),wt=i(36005);let At=class extends((0,g.dM)((0,A.j)((0,w.J)((0,f.f)((0,m.b)((0,v.q)((0,x.A)((0,_.d)((0,d.p)((0,o.M)(y.A))))))))))){constructor(...t){super(...t),this._spriteSourceMap=new Map,this.currentStyleInfo=null,this.isReference=null,this.operationalLayerType="VectorTileLayer",this.path=null,this.refreshInterval=0,this.style=null,this.tilemapCache=null,this.type="vector-tile",this.graphicOrigin=null}normalizeCtorArgs(t,e){return"string"==typeof t?{url:t,...e}:t}destroy(){if(this.sourceNameToSource)for(const t of Object.values(this.sourceNameToSource))t?.destroy();this.primarySource?.destroy(),this._spriteSourceMap.clear()}async prefetchResources(t){await this.loadSpriteSource(globalThis.devicePixelRatio||1,t)}load(t){const e=this.loadFromPortal({supportedTypes:["Vector Tile Service"],supportsData:!1},t).catch(a.QP).then(async()=>{if(!this.portalItem?.id)return;const e=`${this.portalItem.itemCdnUrl}/resources/styles/root.json`;(await(0,r.A)(e,{...t,query:{f:"json",...this.customParameters,token:this.apiKey},authMode:this.portalItem.portal.authMode})).data&&this.read({url:e},(0,nt.v)(this.portalItem,"portal-item"))}).catch(a.QP).then(()=>this._loadStyle(t));return this.addResolvingPromise(e),Promise.resolve(this)}get apiKey(){return super.apiKey}set apiKey(t){super.apiKey=t}get portalItem(){return super.portalItem}set portalItem(t){super.portalItem=t}get attributionDataUrl(){const t=this.currentStyleInfo,e=t?.serviceUrl&&(0,h.An)(t.serviceUrl);if(!e)return null;const i=this._getDefaultAttribution(e.path);return i?(0,h.a6)(i,{...this.customParameters,token:this.apiKey}):null}get capabilities(){const t=this.primarySource;return t?t.capabilities:{operations:{supportsExportTiles:!1,supportsTileMap:!1},exportTiles:null}}get fullExtent(){return this.primarySource?.fullExtent||null}get initialExtent(){return this.primarySource?.initialExtent||null}get parsedUrl(){return this.serviceUrl?(0,h.An)(this.serviceUrl):null}get serviceUrl(){return this.currentStyleInfo?.serviceUrl||null}get spatialReference(){return this.tileInfo?.spatialReference??null}get styleUrl(){return this.currentStyleInfo?.styleUrl||null}writeStyleUrl(t,e){t&&(0,h.BQ)(t)&&(t=`https:${t}`);const i=(0,lt.py)(t);e.styleUrl=(0,ot.e)(t,i)}get tileInfo(){const t=[];for(const e in this.sourceNameToSource)t.push(this.sourceNameToSource[e]);let e=this.primarySource?.tileInfo||new T.A;if(t.length>1)for(let i=0;i<t.length;i++)ct(e,t[i].tileInfo)&&(e=pt(e,t[i].tileInfo));return e}readTilemapCache(t,e){const i=e.capabilities?.includes("Tilemap");return i?new z.d({layer:this}):null}set url(t){if(!t)return void this._set("url",t);const e=(0,h.An)(t);this._set("url",e.path),e.query&&(this.customParameters={...this.customParameters,...e.query})}readVersion(t,e){return e.version?parseFloat(e.version):parseFloat(e.currentVersion)}async loadSpriteSource(t=1,e){if(!this._spriteSourceMap.has(t)){const i=gt().maxTextureSize,s=this.currentStyleInfo?.spriteUrl?(0,h.a6)(this.currentStyleInfo.spriteUrl,{...this.customParameters,token:this.apiKey}):null,r=new P({type:"url",spriteUrl:s,pixelRatio:t,spriteFormat:this.currentStyleInfo?.spriteFormat},i);await r.load(e),this._spriteSourceMap.set(t,r)}return this._spriteSourceMap.get(t)}async setSpriteSource(t,e){if(!t)return null;const i=gt().maxTextureSize,s=t.spriteUrl,r=s?(0,h.a6)(s,{...this.customParameters,token:this.apiKey}):null;if(!r&&"url"===t.type)return null;const n=new P(t,i);try{await n.load(e);const i=t.pixelRatio||1;return this._spriteSourceMap.clear(),this._spriteSourceMap.set(i,n),r&&this.currentStyleInfo&&(this.currentStyleInfo.spriteUrl=r),this.emit("spriteSource-change",{spriteSource:n}),n}catch(t){(0,a.QP)(t)}return null}async loadStyle(t,e){const i=t||this.style||this.url;return this._loadingTask&&"string"==typeof i&&this.url===i||(this._loadingTask?.abort(),this._loadingTask=(0,n.UT)(t=>(this._spriteSourceMap.clear(),this._getSourceAndStyle(i,{signal:t})),e)),this._loadingTask.promise}getStyleLayerId(t){return this.styleRepository.getStyleLayerId(t)}getStyleLayerIndex(t){return this.styleRepository.getStyleLayerIndex(t)}getPaintProperties(t){return(0,l.o8)(this.styleRepository?.getPaintProperties(t))}setPaintProperties(t,e){const i=this.styleRepository.isPainterDataDriven(t);this.styleRepository.setPaintProperties(t,e);const s=this.styleRepository.isPainterDataDriven(t);this.emit("paint-change",{layer:t,paint:e,isDataDriven:i||s})}getStyleLayer(t){return(0,l.o8)(this.styleRepository.getStyleLayer(t))}setStyleLayer(t,e){this.styleRepository.setStyleLayer(t,e),this.emit("style-layer-change",{layer:t,index:e})}deleteStyleLayer(t){this.styleRepository.deleteStyleLayer(t),this.emit("delete-style-layer",{layer:t})}getLayoutProperties(t){return(0,l.o8)(this.styleRepository.getLayoutProperties(t))}setLayoutProperties(t,e){this.styleRepository.setLayoutProperties(t,e),this.emit("layout-change",{layer:t,layout:e})}setStyleLayerVisibility(t,e){this.styleRepository.setStyleLayerVisibility(t,e),this.emit("style-layer-visibility-change",{layer:t,visibility:e})}getStyleLayerVisibility(t){return this.styleRepository.getStyleLayerVisibility(t)?"visible":"none"}write(t,e){return e?.origin&&!this.styleUrl?((0,vt.U4)(e,this,"style defined by JSON only are not supported"),null):super.write(t,e)}getTileUrl(t,e,i){return null}async _getSourceAndStyle(t,e){if(!t)throw new Error("invalid style!");const i=await async function(t,e){const i={source:null,sourceBase:null,sourceUrl:null,validatedSource:null,style:null,styleBase:null,styleUrl:null,sourceNameToSource:{},primarySourceName:"",spriteFormat:"png"},[s,r]="string"==typeof t?[t,null]:[null,t.jsonUrl];return await V(i,"esri",t,r,e),{layerDefinition:i.validatedSource,url:s,serviceUrl:i.sourceUrl,style:i.style,styleUrl:i.styleUrl,spriteUrl:i.style&&i.style.sprite&&H(i.styleBase,i.style.sprite),spriteFormat:i.spriteFormat,glyphsUrl:i.style&&i.style.glyphs&&H(i.styleBase,i.style.glyphs),sourceNameToSource:i.sourceNameToSource,primarySourceName:i.primarySourceName}}(t,{...e,query:{...this.customParameters,token:this.apiKey}});"webp"===i.spriteFormat&&(await function(){if(b)return b;const t={lossy:"UklGRiIAAABXRUJQVlA4IBYAAAAwAQCdASoBAAEADsD+JaQAA3AAAAAA",lossless:"UklGRhoAAABXRUJQVlA4TA0AAAAvAAAAEAcQERGIiP4HAA==",alpha:"UklGRkoAAABXRUJQVlA4WAoAAAAQAAAAAAAAAAAAQUxQSAwAAAARBxAR/Q9ERP8DAABWUDggGAAAABQBAJ0BKgEAAQAAAP4AAA3AAP7mtQAAAA==",animation:"UklGRlIAAABXRUJQVlA4WAoAAAASAAAAAAAAAAAAQU5JTQYAAAD/////AABBTk1GJgAAAAAAAAAAAAAAAAAAAGQAAABWUDhMDQAAAC8AAAAQBxAREYiI/gcA"};return b=new Promise(e=>{const i=new Image;i.onload=()=>{i.onload=i.onerror=null,e(i.width>0&&i.height>0)},i.onerror=()=>{i.onload=i.onerror=null,e(!1)},i.src="data:image/webp;base64,"+t.lossy}),b}()||(i.spriteFormat="png")),this._set("currentStyleInfo",{...i}),"string"==typeof t?(this.url=t,this.style=null):(this.url=null,this.style=t),this._set("sourceNameToSource",i.sourceNameToSource),this._set("primarySource",i.sourceNameToSource[i.primarySourceName]),this._set("styleRepository",new yt.A(i.style,!1)),this.read(i.layerDefinition,{origin:"service"}),this.emit("load-style")}_getDefaultAttribution(t){const e=t.match(/^https?:\/\/(?:basemaps|basemapsbeta|basemapsdev)(?:-api)?\.arcgis\.com(\/[^/]+)?\/arcgis\/rest\/services\/([^/]+(\/[^/]+)*)\/vectortileserver/i),i=["OpenBasemap_v2","OpenBasemap_GCS_v2","OpenStreetMap_v2","OpenStreetMap_Daylight_v2","OpenStreetMap_Export_v2","OpenStreetMap_FTS_v2","OpenStreetMap_GCS_v2","World_Basemap","World_Basemap_v2","World_Basemap_Export_v2","World_Basemap_GCS_v2","World_Basemap_WGS84","World_Contours_v2","World_Hillshade_v2"];if(!e)return;const s=e[2]&&e[2].toLowerCase();if(!s)return;const r=e[1]||"";for(const t of i)if(t.toLowerCase().includes(s))return(0,h.S8)(`//static.arcgis.com/attribution/Vector${r}/${t}`)}async _loadStyle(t){return this._loadingTask?.promise??this.loadStyle(null,t)}};(0,s.Cg)([(0,u.MZ)({readOnly:!0})],At.prototype,"attributionDataUrl",null),(0,s.Cg)([(0,u.MZ)({type:["show","hide"]})],At.prototype,"listMode",void 0),(0,s.Cg)([(0,u.MZ)({json:{read:!0,write:!0}})],At.prototype,"blendMode",void 0),(0,s.Cg)([(0,u.MZ)({readOnly:!0,json:{read:!1}})],At.prototype,"capabilities",null),(0,s.Cg)([(0,u.MZ)({readOnly:!0})],At.prototype,"currentStyleInfo",void 0),(0,s.Cg)([(0,u.MZ)({json:{read:!1},readOnly:!0,type:c.A})],At.prototype,"fullExtent",null),(0,s.Cg)([(0,u.MZ)({json:{read:!1},readOnly:!0,type:c.A})],At.prototype,"initialExtent",null),(0,s.Cg)([(0,u.MZ)({type:Boolean,json:{read:!1,write:{enabled:!0,overridePolicy:()=>({enabled:!1})}}})],At.prototype,"isReference",void 0),(0,s.Cg)([(0,u.MZ)({type:["VectorTileLayer"]})],At.prototype,"operationalLayerType",void 0),(0,s.Cg)([(0,u.MZ)({readOnly:!0})],At.prototype,"parsedUrl",null),(0,s.Cg)([(0,u.MZ)({type:String,json:{origins:{"web-scene":{read:!0,write:!0}},read:!1}})],At.prototype,"path",void 0),(0,s.Cg)([(0,u.MZ)({type:Number,json:{write:!1,origins:{"web-map":{write:!1},"web-scene":{write:!1},"portal-item":{write:!1}}}})],At.prototype,"refreshInterval",void 0),(0,s.Cg)([(0,u.MZ)()],At.prototype,"style",void 0),(0,s.Cg)([(0,u.MZ)({readOnly:!0})],At.prototype,"serviceUrl",null),(0,s.Cg)([(0,u.MZ)({type:p.A,readOnly:!0})],At.prototype,"spatialReference",null),(0,s.Cg)([(0,u.MZ)({readOnly:!0})],At.prototype,"styleRepository",void 0),(0,s.Cg)([(0,u.MZ)({readOnly:!0})],At.prototype,"sourceNameToSource",void 0),(0,s.Cg)([(0,u.MZ)({readOnly:!0})],At.prototype,"primarySource",void 0),(0,s.Cg)([(0,u.MZ)({type:String,readOnly:!0,json:{write:{ignoreOrigin:!0},origins:{"web-document":{write:{ignoreOrigin:!0,isRequired:!0}}}}})],At.prototype,"styleUrl",null),(0,s.Cg)([(0,xt.K)(["portal-item","web-document"],"styleUrl")],At.prototype,"writeStyleUrl",null),(0,s.Cg)([(0,u.MZ)({json:{read:!1,origins:{service:{read:!1}}},readOnly:!0,type:T.A})],At.prototype,"tileInfo",null),(0,s.Cg)([(0,u.MZ)()],At.prototype,"tilemapCache",void 0),(0,s.Cg)([(0,wt.w)("service","tilemapCache",["capabilities","tileInfo"])],At.prototype,"readTilemapCache",null),(0,s.Cg)([(0,u.MZ)({json:{read:!1},readOnly:!0,value:"vector-tile"})],At.prototype,"type",void 0),(0,s.Cg)([(0,u.MZ)({readOnly:!0,clonable:!1})],At.prototype,"graphicOrigin",void 0),(0,s.Cg)([(0,u.MZ)({json:{origins:{"web-document":{read:{source:"styleUrl"}},"portal-item":{read:{source:"url"}}},write:!1,read:!1}}),(0,u.MZ)(S.OZ)],At.prototype,"url",null),(0,s.Cg)([(0,u.MZ)({readOnly:!0})],At.prototype,"version",void 0),(0,s.Cg)([(0,wt.w)("version",["version","currentVersion"])],At.prototype,"readVersion",null),At=(0,s.Cg)([(0,u.$K)("esri.layers.VectorTileLayer")],At);const St=At},52136(t,e,i){var s=i(32198),r=i(91429);i.d(e,["p",0,t=>{const e=t;let i=class extends e{get apiKey(){return this._isOverridden("apiKey")?this._get("apiKey"):"portalItem"in this?this.portalItem?.apiKey:null}set apiKey(t){null!=t?this._override("apiKey",t):(this._clearOverride("apiKey"),this.clear("apiKey","user"))}};return(0,s.Cg)([(0,r.MZ)({type:String})],i.prototype,"apiKey",null),i=(0,s.Cg)([(0,r.$K)("esri.layers.mixins.APIKeyMixin")],i),i}])},89186(t,e,i){var s=i(32198),r=i(91429),n=i(16930),l=i(87045),o=i(65509),a=i(25943),h=i(36005);i.d(e,["f",0,t=>{const e=t;let i=class extends e{constructor(){super(...arguments),this.copyright=null,this.minScale=0,this.maxScale=0,this.spatialReference=null,this.tileInfo=null,this.tilemapCache=null}destroy(){this.tilemapCache?.destroy?.()}readMinScale(t,e){return null!=e.minLOD&&null!=e.maxLOD?t:0}readMaxScale(t,e){return null!=e.minLOD&&null!=e.maxLOD?t:0}get supportsBlankTile(){return this.version>=10.2}readTilemapCache(t,e,i){const s=e.capabilities?.toLowerCase().includes("tilemap");let{minLOD:r,maxLOD:n,minScale:h,maxScale:u}=e;if(null==r&&null==n&&(0!==h||0!==u)){const t=t=>Math.round(1e4*t)/1e4;h=t(h||e.tileInfo.lods[0].scale),u=t(u||e.tileInfo.lods[e.tileInfo.lods.length-1].scale);for(const i of e.tileInfo.lods){const e=t(i.scale);r=e>=h?i.level:r,n=e>=u?i.level:n}}if(s)return new a.d({layer:this,minLOD:r,maxLOD:n});if(e.tileInfo){const t=new l.A;return t.read(e.tileInfo,i),new o.A(t,r,n)}return null}};return(0,s.Cg)([(0,r.MZ)({json:{read:{source:"copyrightText"}}})],i.prototype,"copyright",void 0),(0,s.Cg)([(0,r.MZ)()],i.prototype,"minScale",void 0),(0,s.Cg)([(0,h.w)("service","minScale")],i.prototype,"readMinScale",null),(0,s.Cg)([(0,r.MZ)()],i.prototype,"maxScale",void 0),(0,s.Cg)([(0,h.w)("service","maxScale")],i.prototype,"readMaxScale",null),(0,s.Cg)([(0,r.MZ)({type:n.A})],i.prototype,"spatialReference",void 0),(0,s.Cg)([(0,r.MZ)({readOnly:!0})],i.prototype,"supportsBlankTile",null),(0,s.Cg)([(0,r.MZ)({type:l.A})],i.prototype,"tileInfo",void 0),(0,s.Cg)([(0,r.MZ)()],i.prototype,"tilemapCache",void 0),(0,s.Cg)([(0,h.w)("service","tilemapCache",["capabilities","tileInfo"])],i.prototype,"readTilemapCache",null),(0,s.Cg)([(0,r.MZ)()],i.prototype,"version",void 0),i=(0,s.Cg)([(0,r.$K)("esri.layers.mixins.ArcGISCachedService")],i),i}])},18768(t,e,i){var s=i(32198),r=i(53966),n=i(91429),l=i(60694);i.d(e,["b",0,t=>{const e=t;let i=class extends e{get title(){if(this._get("title")&&"defaults"!==this.originOf("title"))return this._get("title");if(this.url){const t=(0,l.qg)(this.url);if(t?.title)return t.title}return this._get("title")||""}set title(t){this._set("title",t)}set url(t){this._set("url",(0,l.Jf)(t,r.A.getLogger(this)))}};return(0,s.Cg)([(0,n.MZ)()],i.prototype,"title",null),(0,s.Cg)([(0,n.MZ)({type:String})],i.prototype,"url",null),i=(0,s.Cg)([(0,n.$K)("esri.layers.mixins.ArcGISService")],i),i}])},69208(t,e,i){var s=i(32198),r=i(91429);i.d(e,["d",0,t=>{const e=t;let i=class extends e{constructor(){super(...arguments),this.customParameters=null}};return(0,s.Cg)([(0,r.MZ)({type:Object,json:{write:{overridePolicy:t=>({enabled:!!(t&&Object.keys(t).length>0)})}}})],i.prototype,"customParameters",void 0),i=(0,s.Cg)([(0,r.$K)("esri.layers.mixins.CustomParametersMixin")],i),i}])},8303(t,e,i){var s=i(32198),r=i(92602),n=i(70333),l=i(11254),o=i(60999),a=i(49186),h=i(36563),u=i(53966),c=i(97768),p=i(17676),y=i(84952),d=i(91429),f=i(77548),m=i(20655),g=i(80812),_=i(41318),v=i(10407),x=i(36005),w=i(43937);const A={credential:null,user:null};i.d(e,["A",0,t=>{const e=t;let S=class extends e{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){super.destroy(),this.portalItem=(0,c.pR)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}get portalItem(){return this._get("portalItem")}set portalItem(t){t!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",t))}readPortalItem(t,e,i){if(e.itemId)return new g.default({id:e.itemId,portal:i?.portal})}writePortalItem(t,e){t?.id&&(e.itemId=t.id)}async loadFromPortal(t,e){if(this.portalItem?.id)try{const{load:s}=await i.e(1204).then(()=>i(41204));return(0,p.Te)(e),await s({instance:this,supportedTypes:t.supportedTypes,validateItem:t.validateItem,supportsData:t.supportsData,layerModuleTypeMap:t.layerModuleTypeMap,populateGroupLayer:t.populateGroupLayer},e)}catch(t){throw(0,p.zf)(t)||u.A.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${t}`),t}}async reloadFromPortal(t){if(!this.loaded||!this.portalItem?.id)return!1;try{const{reload:e}=await i.e(1204).then(()=>i(41204)),s=new AbortController,r=(0,h.rE)(s);return this.addHandles(r,"reloadFromPortal"),await e({instance:this,supportedTypes:t.supportedTypes,validateItem:t.validateItem,supportsData:t.supportsData,layerModuleTypeMap:t.layerModuleTypeMap,populateGroupLayer:t.populateGroupLayer},{signal:s.signal})}catch(t){throw(0,p.zf)(t)||u.A.getLogger(this).warn(`Failed to reload layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${t}`),t}finally{this.removeHandles("reloadFromPortal")}}async finishLoadEditablePortalLayer(t){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(t).catch(t=>((0,p.QP)(t),!0)))}async setUserPrivileges(t,e){if(!r.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(e);if(this.url)try{const{features:{edit:i,fullEdit:s},content:{updateItem:r}}=await this._fetchUserPrivileges(t,e);this._set("userHasEditingPrivileges",i),this._set("userHasFullEditingPrivileges",s),this._set("userHasUpdateItemPrivileges",r)}catch(t){(0,p.QP)(t)}}async _fetchUserPrivileges(t,e){let i=this.portalItem;if(!t||!i||!i.loaded||i.sourceUrl)return this._fetchFallbackUserPrivileges(e);const s=!n.id?.findCredential(this.url),r=t===i.id;if(r&&i.portal.user)return this._getUserPrivileges(i,s);let l,o;if(r)l=i.portal.url;else try{l=await(0,f.wI)(this.url,e)}catch(t){(0,p.QP)(t)}if(!l||!(0,y.b8)(l,i.portal.url))return this._fetchFallbackUserPrivileges(e);try{const t=null!=e?e.signal:null;o=await(n.id?.getCredential(`${l}/sharing`,{prompt:!1,signal:t}))}catch(t){(0,p.QP)(t)}const a=!0,h=!1,u=!1;if(!o)return{features:{edit:a,fullEdit:h},content:{updateItem:u}};try{if(r?await i.reload():(i=new g.default({id:t,portal:{url:l}}),await i.load(e)),i.portal.user)return this._getUserPrivileges(i,s)}catch(t){(0,p.QP)(t)}return{features:{edit:a,fullEdit:h},content:{updateItem:u}}}_getUserPrivileges(t,e){const i=(0,v.It)(t);return e&&(i.features.edit=!0),i}async _fetchFallbackUserPrivileges(t){let e=!0;try{e=await this._fetchUserHasEditingPrivileges(t)}catch(t){(0,p.QP)(t)}return{features:{edit:e,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(t){const e=this.url?n.id?.findCredential(this.url):null;if(!e)return!0;const i=A.credential===e?A.user:await this._fetchEditingUser(t);return A.credential=e,A.user=i,null==i?.privileges||i.privileges.includes("features:user:edit")}async _fetchEditingUser(t){const e=this.portalItem?.portal?.user;if(e)return e;const i=n.id?.findServerInfo(this.url??"");if(!i?.owningSystemUrl)return null;const s=`${i.owningSystemUrl}/sharing/rest`,r=m.A.getDefault();if(r&&r.loaded&&(0,y.S8)(r.restUrl)===(0,y.S8)(s))return r.user;const a=`${s}/community/self`,h=null!=t?t.signal:null,u=await(0,o.Ke)((0,l.A)(a,{authMode:"no-prompt",query:{f:"json"},signal:h}));return u.ok?_.A.fromJSON(u.value.data):null}read(t,e){e&&(e.layer=this),super.read(t,e)}write(t,e){const i=e?.portal,s=this.portalItem?.id&&(this.portalItem.portal||m.A.getDefault());return i&&s&&!(0,y.ut)(s.restUrl,i.restUrl)?(e.messages&&e.messages.push(new a.A("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(t,{...e,layer:this})}};return(0,s.Cg)([(0,d.MZ)({type:g.default})],S.prototype,"portalItem",null),(0,s.Cg)([(0,x.w)("web-document","portalItem",["itemId"])],S.prototype,"readPortalItem",null),(0,s.Cg)([(0,w.K)("web-document","portalItem",{itemId:{type:String}})],S.prototype,"writePortalItem",null),(0,s.Cg)([(0,d.MZ)({clonable:!1})],S.prototype,"resourceReferences",void 0),(0,s.Cg)([(0,d.MZ)({type:Boolean,readOnly:!0})],S.prototype,"userHasEditingPrivileges",void 0),(0,s.Cg)([(0,d.MZ)({type:Boolean,readOnly:!0})],S.prototype,"userHasFullEditingPrivileges",void 0),(0,s.Cg)([(0,d.MZ)({type:Boolean,readOnly:!0})],S.prototype,"userHasUpdateItemPrivileges",void 0),S=(0,s.Cg)([(0,d.$K)("esri.layers.mixins.PortalLayer")],S),S}])},91806(t,e,i){i.d(e,{A:()=>a});var s,r=i(32198),n=i(25482),l=i(91429),o=i(56507);let a=class extends n.o{static{s=this}constructor(t){super(t),this.cols=null,this.level=0,this.levelValue=null,this.origin=null,this.resolution=0,this.rows=null,this.scale=0}clone(){return new s({cols:this.cols,level:this.level,levelValue:this.levelValue,resolution:this.resolution,rows:this.rows,scale:this.scale})}};(0,r.Cg)([(0,l.MZ)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],a.prototype,"cols",void 0),(0,r.Cg)([(0,l.MZ)({type:o.jz,json:{write:!0}})],a.prototype,"level",void 0),(0,r.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],a.prototype,"levelValue",void 0),(0,r.Cg)([(0,l.MZ)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],a.prototype,"origin",void 0),(0,r.Cg)([(0,l.MZ)({type:Number,json:{write:!0}})],a.prototype,"resolution",void 0),(0,r.Cg)([(0,l.MZ)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],a.prototype,"rows",void 0),(0,r.Cg)([(0,l.MZ)({type:Number,json:{write:!0}})],a.prototype,"scale",void 0),a=s=(0,r.Cg)([(0,l.$K)("esri.layers.support.LOD")],a)},87045(t,e,i){i.d(e,{A:()=>v});var s,r=i(32198),n=i(66552),l=i(25482),o=i(86211),a=i(91429),h=i(56507),u=i(86738),c=i(16930),p=i(21325),y=i(28735),d=i(91806),f=i(72802),m=i(36005),g=i(43937);const _=new n.J({PNG:"png",PNG8:"png8",PNG24:"png24",PNG32:"png32",JPEG:"jpg",JPG:"jpg",DIB:"dib",TIFF:"tiff",EMF:"emf",PS:"ps",PDF:"pdf",GIF:"gif",SVG:"svg",SVGZ:"svgz",Mixed:"mixed",MIXED:"mixed",LERC:"lerc",LERC2D:"lerc2d",RAW:"raw",pbf:"pbf"});let v=class extends l.o{static{s=this}static create(t={}){const{resolutionFactor:e=1,scales:i,size:r=256,spatialReference:n=c.A.WebMercator,numLODs:l=24}=t;if(!(0,p.fn)(n)){const t=[];if(i)for(let e=0;e<i.length;e++){const s=i[e];t.push(new d.A({level:e,scale:s,resolution:s}))}else{let e=5e-4;for(let i=l-1;i>=0;i--)t.unshift(new d.A({level:i,scale:e,resolution:e})),e*=2}return new s({dpi:96,lods:t,origin:new u.A(0,0,n),size:[r,r],spatialReference:n})}const a=(0,p.Vp)(n),h=t.origin?new u.A({x:t.origin.x,y:t.origin.y,spatialReference:n}):new u.A(a?{x:a.origin[0],y:a.origin[1],spatialReference:n}:{x:0,y:0,spatialReference:n}),y=1/(39.37*(0,o.GA)(n)*96),f=[];if(i)for(let t=0;t<i.length;t++){const e=i[t],s=e*y;f.push(new d.A({level:t,scale:e,resolution:s}))}else{let t=(0,p.EA)(n)?512/r*591657527.5917094:256/r*591657527.591555;const i=Math.ceil(l/e);f.push(new d.A({level:0,scale:t,resolution:t*y}));for(let s=1;s<i;s++){const i=t/2**e,r=i*y;f.push(new d.A({level:s,scale:i,resolution:r})),t=i}}return new s({dpi:96,lods:f,origin:h,size:[r,r],spatialReference:n})}constructor(t){super(t),this.dpi=96,this.format=null,this.origin=null,this.size=null,this.spatialReference=null}get isWrappable(){const{spatialReference:t,origin:e}=this;if(t&&e){const i=(0,p.Vp)(t);return t.isWrappable&&!!i&&Math.abs(i.origin[0]-e.x)<=i.dx}return!1}readOrigin(t,e){return u.A.fromJSON({spatialReference:e.spatialReference,...t})}set lods(t){let e=0,i=0;const s=[],r=this._levelToLOD={};t&&(e=-1/0,i=1/0,t.forEach(t=>{s.push(t.scale),e=t.scale>e?t.scale:e,i=t.scale<i?t.scale:i,r[t.level]=t})),this._set("scales",s),this._set("lods",t),this._initializeUpsampleLevels()}readSize(t,e){return[e.cols,e.rows]}writeSize(t,e){e.cols=t[0],e.rows=t[1]}zoomToScale(t){const e=this.scales;if(t<=0)return e[0];if(t>=e.length-1)return e[e.length-1];const i=Math.floor(t),s=i+1;return e[i]/(e[i]/e[s])**(t-i)}scaleToZoom(t){const e=this.scales,i=e.length-1;let s=0;for(;s<i;s++){const i=e[s],r=e[s+1];if(i<=t)return s;if(r===t)return s+1;if(i>t&&r<t)return s+Math.log(i/t)/Math.log(i/r)}return s}tileAt(t,e,i,s){const r=this.lodAt(t);if(!r)return null;let n,l;if("number"==typeof e)n=e,l=i;else if((0,p.aI)(e.spatialReference,this.spatialReference))n=e.x,l=e.y,s=i;else{const t=(0,y.Cv)(e,this.spatialReference);if(null==t)return null;n=t.x,l=t.y,s=i}const o=r.resolution*this.size[0],a=r.resolution*this.size[1];return s??=new f.U(0,0,0),s.level=t,s.row=Math.floor((this.origin.y-l)/a+.001),s.col=Math.floor((n-this.origin.x)/o+.001),this.updateTileInfo(s),s}updateTileInfo(t,e=0){if(!("extent"in t))return!1;let i=this.lodAt(t.level);if(!i&&1===e){const e=this.lods[this.lods.length-1];e.level<t.level&&(i=e)}if(!i)return!1;const s=t.level-i.level,r=i.resolution*this.size[0]/2**s,n=i.resolution*this.size[1]/2**s;return t.extent[0]=this.origin.x+t.col*r,t.extent[1]=this.origin.y-(t.row+1)*n,t.extent[2]=t.extent[0]+r,t.extent[3]=t.extent[1]+n,!0}upsampleTile(t){const e=this._upsampleLevels[t.level];return!(!e||-1===e.parentLevel||(t.level=e.parentLevel,t.row=Math.floor(t.row/e.factor+.001),t.col=Math.floor(t.col/e.factor+.001),this.updateTileInfo(t),0))}getTileBounds(t,e){const i=this.lodAt(e.level);if(null==i)return null;const{resolution:s}=i,r=s*this.size[0],n=s*this.size[1];return t[0]=this.origin.x+e.col*r,t[1]=this.origin.y-(e.row+1)*n,t[2]=t[0]+r,t[3]=t[1]+n,t}lodAt(t){return this._levelToLOD?.[t]??null}clone(){return s.fromJSON(this.write({}))}getCompatibleForVTL(t){if(this.size[0]!==this.size[1]||256===this.size[0]&&512===t)return null;const e=(512===this.size[0]&&256===t?-1:0)+(this.spatialReference.isGeographic?1:0);if(this.size[0]===t&&0===e)return this;const i=[],r=this.lods.length-e;for(let t=0;t<r;t++){const s=t+e,{scale:r,resolution:n}=s>=0?this.lods[s]:{scale:2*this.lods[0].scale,resolution:2*this.lods[0].resolution};i.push(new d.A({level:t,scale:r,resolution:n}))}return new s({size:[t,t],dpi:this.dpi,format:this.format,compressionQuality:this.compressionQuality,origin:this.origin,spatialReference:this.spatialReference,lods:i})}_initializeUpsampleLevels(){const t=this.lods;this._upsampleLevels=[];let e=null;for(let i=0;i<t.length;i++){const s=t[i];this._upsampleLevels[s.level]={parentLevel:e?e.level:-1,factor:e?e.resolution/s.resolution:0},e=s}}};(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"compressionQuality",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"dpi",void 0),(0,r.Cg)([(0,a.MZ)({type:String,json:{read:_.read,write:_.write,origins:{"web-scene":{read:!1,write:!1}}}})],v.prototype,"format",void 0),(0,r.Cg)([(0,a.MZ)({readOnly:!0})],v.prototype,"isWrappable",null),(0,r.Cg)([(0,a.MZ)({type:u.A,json:{write:!0}})],v.prototype,"origin",void 0),(0,r.Cg)([(0,m.w)("origin")],v.prototype,"readOrigin",null),(0,r.Cg)([(0,a.MZ)({type:[d.A],value:null,json:{write:!0}})],v.prototype,"lods",null),(0,r.Cg)([(0,a.MZ)({readOnly:!0})],v.prototype,"scales",void 0),(0,r.Cg)([(0,a.MZ)({cast:t=>Array.isArray(t)?t:"number"==typeof t?[t,t]:[256,256]})],v.prototype,"size",void 0),(0,r.Cg)([(0,m.w)("size",["rows","cols"])],v.prototype,"readSize",null),(0,r.Cg)([(0,g.K)("size",{cols:{type:h.jz},rows:{type:h.jz}})],v.prototype,"writeSize",null),(0,r.Cg)([(0,a.MZ)({type:c.A,json:{write:!0}})],v.prototype,"spatialReference",void 0),v=s=(0,r.Cg)([(0,a.$K)("esri.layers.support.TileInfo")],v)},65509(t,e,i){i.d(e,{A:()=>n});var s=i(49186),r=i(17676);class n{constructor(t,e=0,i=t.lods[t.lods.length-1].level){this.tileInfo=t,this.minLOD=e,this.maxLOD=i,t.lodAt(e)||(this.minLOD=t.lods[0].level),t.lodAt(i)||(this.maxLOD=t.lods[t.lods.length-1].level)}get effectiveMinLOD(){return this.minLOD??this.tileInfo.lods[0].level}get effectiveMaxLOD(){return this.maxLOD??this.tileInfo.lods[this.tileInfo.lods.length-1].level}getAvailability(t,e,i){const s=this.tileInfo?.lodAt(t);return!s||t<this.minLOD||t>this.maxLOD?"unavailable":s.cols&&s.rows?i>=s.cols[0]&&i<=s.cols[1]&&e>=s.rows[0]&&e<=s.rows[1]?"unknown":"unavailable":"unknown"}async fetchAvailability(t,e,i,n){await(0,r.NO)(n);const l=this.getAvailability(t,e,i);if("unavailable"===l)throw new s.A("tile-map:tile-unavailable","Tile is not available",{level:t,row:e,col:i});return l}async fetchAvailabilityUpsample(t,e,i,s,n){await(0,r.NO)(n),s.level=t,s.row=e,s.col=i;const l=this.tileInfo;return l.updateTileInfo(s),this.fetchAvailability(t,e,i,n).catch(t=>{if((0,r.zf)(t))throw t;if(l.upsampleTile(s))return this.fetchAvailabilityUpsample(s.level,s.row,s.col,s,n);throw t})}}},72802(t,e,i){i.d(e,{U:()=>r});var s=i(19419);class r{constructor(t,e,i,r=(0,s.vt)()){this._level=t,this._row=e,this._col=i,this.extent=r}get id(){return this._id??=`${this.level}/${this.row}/${this.col}`,this._id}get level(){return this._level}set level(t){this._level=t,this._id=null}get row(){return this._row}set row(t){this._row=t,this._id=null}get col(){return this._col}set col(t){this._col=t,this._id=null}toJSON(){return{level:this._level,row:this._row,col:this._col,extent:this.extent}}static fromJSON(t){return new r(t.level,t.row,t.col,t.extent)}}},25943(t,e,i){i.d(e,{d:()=>A});var s,r=i(32198),n=i(11254),l=i(69622),o=i(49186),a=i(36563),h=(i(44208),i(66344)),u=i(15142),c=i(17676),p=i(36708),y=i(76030),d=i(84952),f=i(91429),m=i(72802),g=i(4718),_=i(69397);class v{constructor(t){!function(t){if(!t?.location)throw new o.A("tilemap:missing-location","Location missing from tilemap response");if(!1===t.valid)throw new o.A("tilemap:invalid","Tilemap response was marked as invalid");if(!t.data)throw new o.A("tilemap:missing-data","Data missing from tilemap response");if(!Array.isArray(t.data))throw new o.A("tilemap:data-mismatch","Data must be an array of numbers");if(t.data.length!==t.location.width*t.location.height)throw new o.A("tilemap:data-mismatch","Number of data items does not match width/height of tilemap")}(t);const{location:e,data:i}=t;this.location=Object.freeze((0,g.o8)(e));const s=this.location.width,r=this.location.height;let n=!0,l=!0;const a=function(t,e=!1){return t<=1024?e?new Array(t).fill(0):new Array(t):new Uint32Array(t)}(Math.ceil(s*r/32));let h=0;for(let t=0;t<i.length;t++){const e=t%32;i[t]?(l=!1,a[h]|=1<<e):n=!1,31===e&&++h}l?(this._availability="unavailable",this.byteSize=40):n?(this._availability="available",this.byteSize=40):(this._availability=a,this.byteSize=40+(0,_.Qf)(a))}getAvailability(t,e){if("unavailable"===this._availability||"available"===this._availability)return this._availability;const i=(t-this.location.top)*this.location.width+(e-this.location.left),s=i%32,r=i>>5,n=this._availability;return r<0||r>n.length?"unknown":n[r]&1<<s?"available":"unavailable"}static fromDefinition(t,e){const i=t.service.request||n.A,{row:s,col:r,width:l,height:a}=t,h={query:{f:"json"}};return e=e?{...h,...e}:h,i(function(t){let e;if(t.service.tileServers?.length){const i=t.service.tileServers;e=`${i&&i.length?i[t.row%i.length]:t.service.url}/tilemap/${t.level}/${t.row}/${t.col}/${t.width}/${t.height}`}else e=`${t.service.url}/tilemap/${t.level}/${t.row}/${t.col}/${t.width}/${t.height}`;const i=t.service.query;return i&&(e=`${e}?${i}`),e}(t),e).then(t=>t.data).catch(t=>{if(422===t?.details?.httpStatus)return{location:{top:s,left:r,width:l,height:a},valid:!0,data:new Array(l*a).fill(0)};throw t}).then(t=>{if(t.location&&(t.location.top!==s||t.location.left!==r||t.location.width!==l||t.location.height!==a))throw new o.A("tilemap:location-mismatch","Tilemap response for different location than requested",{response:t,definition:{top:s,left:r,width:l,height:a}});return v.fromJSON(t)})}static fromJSON(t){return Object.freeze(new v(t))}}function x(t){return`${t.level}/${t.row}/${t.col}/${t.width}/${t.height}`}function w(t,e,i){return new o.A("tile-map:tile-unavailable","Tile is not available",{level:t,row:e,col:i})}let A=class extends l.A{static{s=this}constructor(t){super(t),this._pendingTilemapRequests={},this.request=n.A,this.size=32,this._prefetchingEnabled=!0}initialize(){this._tilemapCache=new h.q(2097152),this.addHandles((0,p.wB)(()=>{const{layer:t}=this;return[t?.parsedUrl,t?.tileServers,t?.apiKey,t?.customParameters]},()=>this._initializeTilemapDefinition(),p.Vh))}get effectiveMinLOD(){return this.minLOD??this.layer.tileInfo.lods[0].level}get effectiveMaxLOD(){return this.maxLOD??this.layer.tileInfo.lods[this.layer.tileInfo.lods.length-1].level}getAvailability(t,e,i){if(!this.layer.tileInfo.lodAt(t)||t<this.effectiveMinLOD||t>this.effectiveMaxLOD)return"unavailable";const s=this._tilemapFromCache(t,e,i,this._tmpTilemapDefinition);return s?s.getAvailability(e,i):"unknown"}fetchAvailability(t,e,i,s){return!this.layer.tileInfo.lodAt(t)||t<this.effectiveMinLOD||t>this.effectiveMaxLOD?Promise.reject(w(t,e,i)):this._fetchTilemap(t,e,i,s).catch(t=>t).then(s=>{if(s instanceof v){const r=s.getAvailability(e,i);if("unavailable"===r)throw w(t,e,i);return r}if((0,c.zf)(s))throw s;return"unknown"})}fetchAvailabilityUpsample(t,e,i,s,r){s.level=t,s.row=e,s.col=i;const n=this.layer.tileInfo;n.updateTileInfo(s);const l=this.fetchAvailability(t,e,i,r).catch(t=>{if((0,c.zf)(t))throw t;if(n.upsampleTile(s))return this.fetchAvailabilityUpsample(s.level,s.row,s.col,s,r);throw t});return this._fetchAvailabilityUpsamplePrefetch(t,e,i,r,l),l}async _fetchAvailabilityUpsamplePrefetch(t,e,i,r,n){if(!this._prefetchingEnabled)return;const l=`prefetch-${t}-${e}-${i}`;if(this.hasHandles(l))return;const o=new AbortController;n.then(()=>o.abort(),()=>o.abort());let h=!1;const u=(0,a.hA)(()=>{h||(h=!0,o.abort())});if(this.addHandles(u,l),await(0,y.md)(10,o.signal).catch(()=>{}),h||(h=!0,this.removeHandles(l)),(0,c.G4)(o))return;const p=new m.U(t,e,i),d={...r,signal:o.signal},f=this.layer.tileInfo;for(let t=0;s._prefetches.length<s._maxPrefetch&&f.upsampleTile(p);++t){const t=this.fetchAvailability(p.level,p.row,p.col,d);s._prefetches.push(t);const e=()=>{s._prefetches.removeUnordered(t)};t.then(e,e)}}static{this._maxPrefetch=4}static{this._prefetches=new u.A({initialSize:s._maxPrefetch})}static cleanupTilemapCache(){this._prefetches.prune()}_fetchTilemap(t,e,i,s){if(!this.layer.tileInfo.lodAt(t)||t<this.effectiveMinLOD||t>this.effectiveMaxLOD)return Promise.reject(new o.A("tilemap-cache:level-unavailable",`Level ${t} is unavailable in the service`));const r=this._tmpTilemapDefinition,n=this._tilemapFromCache(t,e,i,r);if(n)return Promise.resolve(n);const l=s?.signal;return s={...s,signal:null},new Promise((t,e)=>{(0,c.u7)(l,()=>e((0,c.NK)()));const i=x(r);let n=this._pendingTilemapRequests[i];if(!n){n=v.fromDefinition(r,s).then(t=>(this._tilemapCache.put(i,t,t.byteSize),t));const t=()=>{delete this._pendingTilemapRequests[i]};this._pendingTilemapRequests[i]=n,n.then(t,t)}n.then(t,e)})}_initializeTilemapDefinition(){if(!this.layer.parsedUrl)return;const{parsedUrl:t,apiKey:e,customParameters:i}=this.layer;this._tilemapCache.clear(),this._tmpTilemapDefinition={service:{url:t.path,query:(0,d.x0)({...t.query,...i,token:e??t.query?.token}),tileServers:this.layer.tileServers,request:this.request},width:this.size,height:this.size,level:0,row:0,col:0}}_tilemapFromCache(t,e,i,s){s.level=t,s.row=e-e%this.size,s.col=i-i%this.size;const r=x(s);return this._tilemapCache.get(r)}get test(){}};(0,r.Cg)([(0,f.MZ)({constructOnly:!0})],A.prototype,"layer",void 0),(0,r.Cg)([(0,f.MZ)({constructOnly:!0})],A.prototype,"minLOD",void 0),(0,r.Cg)([(0,f.MZ)({constructOnly:!0})],A.prototype,"maxLOD",void 0),(0,r.Cg)([(0,f.MZ)({constructOnly:!0})],A.prototype,"request",void 0),(0,r.Cg)([(0,f.MZ)({constructOnly:!0})],A.prototype,"size",void 0),A=s=(0,r.Cg)([(0,f.$K)("esri.layers.support.TilemapCache")],A)},88788(t,e,i){i.d(e,{m:()=>l,v:()=>n});var s=i(84952),r=i(20655);function n(t,e){return{...o(t,e),readResourcePaths:[]}}function l(t,e,i){const r=(0,s.An)(i?.forceNewItemContext?null:t.itemUrl);return{...o(t,e,i),messages:[],writtenProperties:[],blockedRelativeUrls:[],verifyItemRelativeUrls:r?{rootPath:r.path,writtenUrls:[]}:null,resources:i?.withResources?{toAdd:[],toUpdate:[],toKeep:[],pendingOperations:[]}:null}}function o(t,e,i){return{origin:e,url:(0,s.An)(i?.forceNewItemContext?null:t.itemUrl),portal:t.portal||r.A.getDefault(),portalItem:t}}},10407(t,e,i){i.d(e,{It:()=>y,LG:()=>l,OM:()=>h,Sm:()=>u,Y:()=>o,bK:()=>a,sQ:()=>c});var s=i(99917),r=i(16930),n=i(28735);function l(t,e){if(!o(t,e)){const i=t.typeKeywords;i?i.push(e):t.typeKeywords=[e]}}function o(t,e){return!!t.typeKeywords?.includes(e)}function a(t){return o(t,p.HOSTED_SERVICE)}function h(t,e){const i=t.typeKeywords;if(i){const t=i.indexOf(e);t>-1&&i.splice(t,1)}}function u(t,e,i){i?l(t,e):h(t,e)}async function c(t){const e=t.clone().normalize();let i;if(e.length>1)for(const t of e)i?t.width>i.width&&(i=t):i=t;else i=e[0];return async function(t){const e=t.spatialReference;if(e.isWGS84)return t.clone();if(e.isWebMercator)return(0,n.ci)(t);const i=r.A.WGS84;return await(0,s.initializeProjection)(e,i),(0,s.project)(t,i)}(i)}const p={CHARTS:"Charts",CATALOG_LAYER:"CatalogLayer",DYNAMIC:"Dynamic",DEVELOPER_BASEMAP:"DeveloperBasemap",GROUP_LAYER_MAP:"Map",HOSTED_SERVICE:"Hosted Service",JSAPI:"ArcGIS API for JavaScript",LOCAL_SCENE:"ViewingMode-Local",METADATA:"Metadata",MULTI_LAYER:"Multilayer",ORIENTED_IMAGERY_LAYER:"OrientedImageryLayer",PARCEL_FABRIC:"ParcelFabric",SINGLE_LAYER:"Singlelayer",SUBTYPE_GROUP_LAYER:"SubtypeGroupLayer",SUBTYPE_GROUP_TABLE:"SubtypeGroupTable",TABLE:"Table",TILED_IMAGERY:"Tiled Imagery",UTILITY_NETWORK:"UtilityNetwork"};function y(t){const{portal:e,isOrgItem:i,itemControl:s}=t,r=e.user?.privileges;let n=!r||r.includes("features:user:edit"),l=!!i&&!!r?.includes("features:user:fullEdit");const o="update"===s||"admin"===s;return o?l=n=!0:l&&(n=!0),{features:{edit:n,fullEdit:l},content:{updateItem:o}}}i.d(e,["mm",0,p])},13195(t,e,i){i.d(e,{GW:()=>m,IU:()=>g,Wh:()=>p,cP:()=>x,p6:()=>f,ru:()=>v,s3:()=>_,wV:()=>d,yM:()=>w,z0:()=>y});var s=i(95108),r=i(6774);const n=Number.POSITIVE_INFINITY,l=Math.PI,o=2*l,a=128/l,h=256/360,u=l/180,c=1/Math.LN2;function p(t,e){return(t%=e)>=0?t:t+e}function y(t){return p(t*a,256)}function d(t){return p(t*h,256)}function f(t){return Math.log(t)*c}function m(t,e,i){return t*(1-i)+e*i}function g(t){return 8+Math.max(16*(t-14),0)}function _(t,e,i){let s,r,n,l=0;for(const o of i){s=o.length;for(let i=1;i<s;++i)r=o[i-1],n=o[i],r.y>e!=n.y>e&&((n.x-r.x)*(e-r.y)-(n.y-r.y)*(t-r.x)>0?l++:l--)}return 0!==l}function v(t,e,i,r){let n,l,o,a;const h=r*r;for(const r of i){const i=r.length;if(!(i<2)){n=r[0].x,l=r[0].y;for(let u=1;u<i;++u){if(o=r[u].x,a=r[u].y,(0,s.Ng)(t,e,n,l,o,a)<h)return!0;n=o,l=a}}}return!1}function x(t,e){if(0===e||Number.isNaN(e))return t;const i=[],s=new r.bR(0,0),n=new r.bR(0,0),l=new r.bR(0,0);for(let o=0;o<t.length;o++){const a=t[o],h=[];for(let t=0;t<a.length;t++){const i=a[t-1],o=a[t],u=a[t+1];0===t?s.setCoords(0,0):s.assignSub(o,i).normalize().rightPerpendicular(),t===a.length-1?n.setCoords(0,0):n.assignSub(u,o).normalize().rightPerpendicular(),l.assignAdd(s,n).normalize();const c=l.x*n.x+l.y*n.y;0!==c&&l.scale(1/c),h.push(r.bR.add(o,l.scale(e)))}i.push(h)}return i}function w(t,e,i,s){const n=new r.bR(t[0],t[1]);if(n.scale(s),"viewport"===e){const t=-i*(Math.PI/180),e=Math.cos(t),s=Math.sin(t);n.rotate(e,s)}return n}i.d(e,["Jo",0,l,"MG",0,n,"aA",0,h,"os",0,u,"pJ",0,o])},44159(t,e,i){i.d(e,{A:()=>r});var s=i(93687);class r{static{this.pool=new s.A(()=>new r(""),null,null,25,50)}static getId(t,e,i,s){return"object"==typeof t?`${t.level}/${t.row}/${t.col}/${t.world}`:`${t}/${e}/${i}/${s}`}constructor(t,e,i,s){this.set(t,e,i,s)}get key(){return this}get id(){return this.toString()}get normalizedId(){return`${this.level}/${this.row}/${this.col}`}set id(t){this.set(t)}get hash(){const t=4095&this.row,e=4095&this.col,i=63&this.level;return(3&this.world)<<30|e<<22|t<<8|i}acquire(t,e,i,s){this.set(t,e,i,s)}contains(t){const e=t.level-this.level;return e>=0&&this.row===t.row>>e&&this.col===t.col>>e&&this.world===t.world}containsChild(t){const e=t.level-this.level;return e>0&&this.row===t.row>>e&&this.col===t.col>>e&&this.world===t.world}equals(t){return this.level===t.level&&this.row===t.row&&this.col===t.col&&this.world===t.world}clone(){return new r(this)}release(){this.level=0,this.row=0,this.col=0,this.world=0}set(t,e,i,s){if(null==t)this.level=0,this.row=0,this.col=0,this.world=0;else if("object"==typeof t)this.level=t.level||0,this.row=t.row||0,this.col=t.col||0,this.world=t.world||0;else if("string"==typeof t){const[e,i,s,r]=t.split("/");this.level=parseFloat(e),this.row=parseFloat(i),this.col=parseFloat(s),this.world=parseFloat(r)}else this.level=+t,this.row=+e,this.col=+i,this.world=+s||0;return this}toString(){return`${this.level}/${this.row}/${this.col}/${this.world}`}getParentKey(){return this.level<=0?null:new r(this.level-1,this.row>>1,this.col>>1,this.world)}getNormalizedNeighbor(t,e,i){const s=this.clone();return s.col+=t,s.row+=e,i.normalizeKey(s),s}getChildKeys(){const t=this.level+1,e=this.row<<1,i=this.col<<1,s=this.world;return[new r(t,e,i,s),new r(t,e,i+1,s),new r(t,e+1,i,s),new r(t,e+1,i+1,s)]}compareRowMajor(t){return this.row<t.row?-1:this.row>t.row?1:this.col<t.col?-1:this.col>t.col?1:0}}},78553(t,e,i){i.d(e,{D:()=>n,p:()=>r});var s=i(56507);function r(t){const e=(0,s.Vr)(100*(1-t));return Math.max(0,Math.min(e,100))}function n(t){const e=1-t/100;return Math.max(0,Math.min(e,1))}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7464],{74660(e,t,i){i.r(t);var o=i(32198),r=i(69540),n=i(49186),s=i(53966),a=i(25728),l=i(17676),d=i(36708),p=i(91429),y=i(87024),h=i(4146),c=i(52136),u=i(18768),g=i(69208),f=i(34287),m=i(8303),v=i(25036),w=i(58947),S=i(10873),M=i(50805),_=i(58325),C=i(24212),I=i(97159),b=i(36005);let L=class extends((0,w.w6)((0,u.b)((0,f.q)((0,m.A)((0,v.j)((0,a.M)((0,g.d)((0,c.p)((0,r.OU)(h.A)))))))))){constructor(...e){super(...e),this.geometryType="mesh",this.operationalLayerType="IntegratedMeshLayer",this.type="integrated-mesh",this.nodePages=null,this.materialDefinitions=null,this.textureSetDefinitions=null,this.geometryDefinitions=null,this.serviceUpdateTimeStamp=null,this.profile="mesh-pyramids",this.modifications=null,this._modificationsSource=null,this.path=null,this.definitionExpression=null}initialize(){this.addHandles((0,d.on)(()=>this.modifications,"after-changes",()=>this.modifications=this.modifications,d.OH))}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}readModifications(e,t,i){this._modificationsSource={url:(0,I.f)(e,i),context:i}}set elevationInfo(e){null!=e&&"absolute-height"!==e.mode||this._set("elevationInfo",e),this._validateElevationInfo(e)}async load(e){return this.addResolvingPromise(this._doLoad(e)),this}async _doLoad(e){const t=e?.signal;try{await this.loadFromPortal({supportedTypes:["Scene Service"]},e)}catch(e){(0,l.QP)(e)}if(await this._fetchService(t),null!=this._modificationsSource){const t=await _.A.fromUrl(this._modificationsSource.url,this.spatialReference,e);this.setAtOrigin("modifications",t,this._modificationsSource.context.origin),this._modificationsSource=null}await this._fetchIndexAndUpdateExtent(this.nodePages,t)}beforeSave(){if(null!=this._modificationsSource)return this.load().then(()=>{},()=>{})}async saveAs(e,t){return this._debouncedSaveOperations(1,{...t,getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"integrated-mesh"},e)}async save(){const e={getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"integrated-mesh"};return this._debouncedSaveOperations(0,e)}validateLayer(e){if(e.layerType&&"IntegratedMesh"!==e.layerType)throw new n.A("integrated-mesh-layer:layer-type-not-supported","IntegratedMeshLayer does not support this layer type",{layerType:e.layerType});if(isNaN(this.version.major)||isNaN(this.version.minor))throw new n.A("layer:service-version-not-supported","Service version is not supported.",{serviceVersion:this.version.versionString,supportedVersions:"1.x"});if(this.version.major>1)throw new n.A("layer:service-version-too-new","Service version is too new.",{serviceVersion:this.version.versionString,supportedVersions:"1.x"})}_getTypeKeywords(){return["IntegratedMeshLayer"]}_validateElevationInfo(e){const t="Integrated mesh layers";(0,C.XF)(s.A.getLogger(this),(0,C.B)(t,"absolute-height",e)),(0,C.XF)(s.A.getLogger(this),(0,C.tW)(t,e))}};(0,o.Cg)([(0,p.MZ)({type:String,readOnly:!0})],L.prototype,"geometryType",void 0),(0,o.Cg)([(0,p.MZ)({type:["show","hide"]})],L.prototype,"listMode",void 0),(0,o.Cg)([(0,p.MZ)({type:["IntegratedMeshLayer"]})],L.prototype,"operationalLayerType",void 0),(0,o.Cg)([(0,p.MZ)({json:{read:!1},readOnly:!0})],L.prototype,"type",void 0),(0,o.Cg)([(0,p.MZ)({type:M.W4,readOnly:!0,clonable:!1})],L.prototype,"nodePages",void 0),(0,o.Cg)([(0,p.MZ)({type:[M.uV],readOnly:!0,clonable:!1})],L.prototype,"materialDefinitions",void 0),(0,o.Cg)([(0,p.MZ)({type:[M.Ot],readOnly:!0,clonable:!1})],L.prototype,"textureSetDefinitions",void 0),(0,o.Cg)([(0,p.MZ)({type:[M.L0],readOnly:!0,clonable:!1})],L.prototype,"geometryDefinitions",void 0),(0,o.Cg)([(0,p.MZ)({readOnly:!0})],L.prototype,"serviceUpdateTimeStamp",void 0),(0,o.Cg)([(0,p.MZ)({type:_.A,clonable:e=>e?.clone()??e}),(0,y.P)({origins:["web-scene","portal-item"],type:"resource",prefix:"modifications"})],L.prototype,"modifications",void 0),(0,o.Cg)([(0,p.MZ)({clonable:e=>e?{...e}:null})],L.prototype,"_modificationsSource",void 0),(0,o.Cg)([(0,b.w)(["web-scene","portal-item"],"modifications")],L.prototype,"readModifications",null),(0,o.Cg)([(0,p.MZ)(S.Yj)],L.prototype,"elevationInfo",null),(0,o.Cg)([(0,p.MZ)({type:String,json:{origins:{"web-scene":{read:!0,write:!0},"portal-item":{read:!0,write:!0}},read:!1}})],L.prototype,"path",void 0),L=(0,o.Cg)([(0,p.$K)("esri.layers.IntegratedMeshLayer")],L);const T=L;i.d(t,["default",0,T])},73179(e,t,i){i.d(t,{b:()=>l,h:()=>d});var o=i(4718),r=i(53966),n=i(84952),s=i(60694),a=i(10873);function l(e){const{nonStandardUrlAllowed:t=!1,separator:i}=e??{},n=(0,o.o8)(a.OZ),l=n.json?.write;return"object"==typeof l&&l&&(l.writer=function(e,t,o,r){(0,s.LS)(this,e,i,t,r)}),{...n,set:function(e){if(null==e)return void this._set("url",e);const i=(0,s.HZ)({layer:this,url:e,nonStandardUrlAllowed:t,logger:r.A.getLogger(this)});this._set("url",i.url),null!=i.layerId&&this._set("layerId",i.layerId)}}}function d(e,t){const{separator:i}=t??{},o=(0,n.An)(e.url);return null!=o&&(null!=e.dynamicDataSource?o.path=(0,n.fj)(o.path,"dynamicLayer"):null!=e.layerId&&(o.path=(0,n.fj)(o.path,i??"",e.layerId.toString()))),o}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[491],{32198(t,n,e){function r(t,n,e,r){var i,o=arguments.length,s=o<3?n:null===r?r=Object.getOwnPropertyDescriptor(n,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,n,e,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(n,e,s):i(n,e))||s);return o>3&&s&&Object.defineProperty(n,e,s),s}function i(t,n,e){if(null!=n){if("object"!=typeof n&&"function"!=typeof n)throw new TypeError("Object expected.");var r,i;if(e){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=n[Symbol.asyncDispose]}if(void 0===r){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=n[Symbol.dispose],e&&(i=r)}if("function"!=typeof r)throw new TypeError("Object not disposable.");i&&(r=function(){try{i.call(this)}catch(t){return Promise.reject(t)}}),t.stack.push({value:n,dispose:r,async:e})}else e&&t.stack.push({async:!0});return n}e.d(n,{Cg:()=>r,hk:()=>s,mS:()=>i}),Object.create,Object.create;var o="function"==typeof SuppressedError?SuppressedError:function(t,n,e){var r=new Error(e);return r.name="SuppressedError",r.error=t,r.suppressed=n,r};function s(t){function n(n){t.error=t.hasError?new o(n,t.error,"An error was suppressed during disposal."):n,t.hasError=!0}var e,r=0;return function i(){for(;e=t.stack.pop();)try{if(!e.async&&1===r)return r=0,t.stack.push(e),Promise.resolve().then(i);if(e.dispose){var o=e.dispose.call(e.value);if(e.async)return r|=2,Promise.resolve(o).then(i,function(t){return n(t),i()})}else r|=1}catch(t){n(t)}if(1===r)return t.hasError?Promise.reject(t.error):Promise.resolve();if(t.hasError)throw t.error}()}},4341(t,n,e){e.d(n,{I:()=>i});var r=e(26390);class i{constructor(t){this._allocator=t,this._items=[],this._itemsPtr=0,this._grow()}get(){return 0===this._itemsPtr&&(0,r.d)(()=>this._reset()),this._itemsPtr===this._items.length&&this._grow(),this._items[this._itemsPtr++]}_reset(){const t=Math.min(3*Math.max(8,this._itemsPtr),this._itemsPtr+3*o);this._items.length=Math.min(t,this._items.length),this._itemsPtr=0}_grow(){for(let t=0;t<Math.max(8,Math.min(this._items.length,o));t++)this._items.push(this._allocator())}}const o=1024},29242(t,n,e){function r(){return[1,0,0,0,1,0,0,0,1]}function i(t,n,e,r,i,o,s,a,c){return[t,n,e,r,i,o,s,a,c]}e.d(n,{fA:()=>i,vt:()=>r});const o=[1,0,0,0,1,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:o,clone:function(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8]]},create:r,fromValues:i},Symbol.toStringTag,{value:"Module"})),e.d(n,["zK",0,o])},9093(t,n,e){function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function i(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]]}e.d(n,{o8:()=>i,vt:()=>r});const o=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:o,clone:i,create:r,fromValues:function(t,n,e,r,i,o,s,a,c,u,h,f,l,d,m,M){return[t,n,e,r,i,o,s,a,c,u,h,f,l,d,m,M]}},Symbol.toStringTag,{value:"Module"})),e.d(n,["zK",0,o])},82534(t,n,e){function r(){return[0,0,0,1]}function i(t){return[t[0],t[1],t[2],t[3]]}e.d(n,{o8:()=>i,vt:()=>r});const o=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:o,clone:i,create:r,fromValues:function(t,n,e,r){return[t,n,e,r]}},Symbol.toStringTag,{value:"Module"})),e.d(n,["zK",0,o])},77690(t,n,e){e.d(n,{B8:()=>a,Ge:()=>d,I0:()=>l,KC:()=>c,a4:()=>u,hZ:()=>o,hs:()=>f,lw:()=>h,mg:()=>s,z0:()=>i});var r=e(34304);function i(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[4],t[4]=n[5],t[5]=n[6],t[6]=n[8],t[7]=n[9],t[8]=n[10],t}function o(t,n,e,r,i,o,s,a,c,u){return t[0]=n,t[1]=e,t[2]=r,t[3]=i,t[4]=o,t[5]=s,t[6]=a,t[7]=c,t[8]=u,t}function s(t,n){if(t===n){const e=n[1],r=n[2],i=n[5];t[1]=n[3],t[2]=n[6],t[3]=e,t[5]=n[7],t[6]=r,t[7]=i}else t[0]=n[0],t[1]=n[3],t[2]=n[6],t[3]=n[1],t[4]=n[4],t[5]=n[7],t[6]=n[2],t[7]=n[5],t[8]=n[8];return t}function a(t,n){const e=n[0],r=n[1],i=n[2],o=n[3],s=n[4],a=n[5],c=n[6],u=n[7],h=n[8],f=h*s-a*u,l=-h*o+a*c,d=u*o-s*c;let m=e*f+r*l+i*d;return m?(m=1/m,t[0]=f*m,t[1]=(-h*r+i*u)*m,t[2]=(a*r-i*s)*m,t[3]=l*m,t[4]=(h*e-i*c)*m,t[5]=(-a*e+i*o)*m,t[6]=d*m,t[7]=(-u*e+r*c)*m,t[8]=(s*e-r*o)*m,t):null}function c(t,n){const e=n[0],r=n[1],i=n[2],o=n[3],s=n[4],a=n[5],c=n[6],u=n[7],h=n[8];return t[0]=s*h-a*u,t[1]=i*u-r*h,t[2]=r*a-i*s,t[3]=a*c-o*h,t[4]=e*h-i*c,t[5]=i*o-e*a,t[6]=o*u-s*c,t[7]=r*c-e*u,t[8]=e*s-r*o,t}function u(t){const n=t[0],e=t[1],r=t[2],i=t[3],o=t[4],s=t[5],a=t[6],c=t[7],u=t[8];return n*(u*o-s*c)+e*(-u*i+s*a)+r*(c*i-o*a)}function h(t,n,e){const r=n[0],i=n[1],o=n[2],s=n[3],a=n[4],c=n[5],u=n[6],h=n[7],f=n[8],l=e[0],d=e[1],m=e[2],M=e[3],b=e[4],g=e[5],_=e[6],p=e[7],v=e[8];return t[0]=l*r+d*s+m*u,t[1]=l*i+d*a+m*h,t[2]=l*o+d*c+m*f,t[3]=M*r+b*s+g*u,t[4]=M*i+b*a+g*h,t[5]=M*o+b*c+g*f,t[6]=_*r+p*s+v*u,t[7]=_*i+p*a+v*h,t[8]=_*o+p*c+v*f,t}function f(t,n,e){const r=e[0],i=e[1],o=e[2];return t[0]=r*n[0],t[1]=r*n[1],t[2]=r*n[2],t[3]=i*n[3],t[4]=i*n[4],t[5]=i*n[5],t[6]=o*n[6],t[7]=o*n[7],t[8]=o*n[8],t}function l(t,n){const e=n[0],r=n[1],i=n[2],o=n[3],s=e+e,a=r+r,c=i+i,u=e*s,h=r*s,f=r*a,l=i*s,d=i*a,m=i*c,M=o*s,b=o*a,g=o*c;return t[0]=1-f-m,t[3]=h-g,t[6]=l+b,t[1]=h+g,t[4]=1-u-m,t[7]=d-M,t[2]=l-b,t[5]=d+M,t[8]=1-u-f,t}function d(t,n){const e=n[0],r=n[1],i=n[2],o=n[3],s=n[4],a=n[5],c=n[6],u=n[7],h=n[8],f=n[9],l=n[10],d=n[11],m=n[12],M=n[13],b=n[14],g=n[15],_=e*a-r*s,p=e*c-i*s,v=e*u-o*s,y=r*c-i*a,S=r*u-o*a,x=i*u-o*c,w=h*M-f*m,A=h*b-l*m,j=h*g-d*m,T=f*b-l*M,O=f*g-d*M,I=l*g-d*b;let E=_*I-p*O+v*T+y*j-S*A+x*w;return E?(E=1/E,t[0]=(a*I-c*O+u*T)*E,t[1]=(c*j-s*I-u*A)*E,t[2]=(s*O-a*j+u*w)*E,t[3]=(i*O-r*I-o*T)*E,t[4]=(e*I-i*j+o*A)*E,t[5]=(r*j-e*O-o*w)*E,t[6]=(M*x-b*S+g*y)*E,t[7]=(b*v-m*x-g*p)*E,t[8]=(m*S-M*v+g*_)*E,t):null}function m(t,n,e){return t[0]=n[0]-e[0],t[1]=n[1]-e[1],t[2]=n[2]-e[2],t[3]=n[3]-e[3],t[4]=n[4]-e[4],t[5]=n[5]-e[5],t[6]=n[6]-e[6],t[7]=n[7]-e[7],t[8]=n[8]-e[8],t}const M=h,b=m;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2],t[3]=n[3]+e[3],t[4]=n[4]+e[4],t[5]=n[5]+e[5],t[6]=n[6]+e[6],t[7]=n[7]+e[7],t[8]=n[8]+e[8],t},adjoint:c,copy:function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],t},determinant:u,equals:function(t,n){const e=t[0],i=t[1],o=t[2],s=t[3],a=t[4],c=t[5],u=t[6],h=t[7],f=t[8],l=n[0],d=n[1],m=n[2],M=n[3],b=n[4],g=n[5],_=n[6],p=n[7],v=n[8],y=(0,r.FD)();return Math.abs(e-l)<=y*Math.max(1,Math.abs(e),Math.abs(l))&&Math.abs(i-d)<=y*Math.max(1,Math.abs(i),Math.abs(d))&&Math.abs(o-m)<=y*Math.max(1,Math.abs(o),Math.abs(m))&&Math.abs(s-M)<=y*Math.max(1,Math.abs(s),Math.abs(M))&&Math.abs(a-b)<=y*Math.max(1,Math.abs(a),Math.abs(b))&&Math.abs(c-g)<=y*Math.max(1,Math.abs(c),Math.abs(g))&&Math.abs(u-_)<=y*Math.max(1,Math.abs(u),Math.abs(_))&&Math.abs(h-p)<=y*Math.max(1,Math.abs(h),Math.abs(p))&&Math.abs(f-v)<=y*Math.max(1,Math.abs(f),Math.abs(v))},exactEquals:function(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]&&t[4]===n[4]&&t[5]===n[5]&&t[6]===n[6]&&t[7]===n[7]&&t[8]===n[8]},frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+t[6]**2+t[7]**2+t[8]**2)},fromMat2d:function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=0,t[3]=n[2],t[4]=n[3],t[5]=0,t[6]=n[4],t[7]=n[5],t[8]=1,t},fromMat4:i,fromQuat:l,fromRotation:function(t,n){const e=Math.sin(n),r=Math.cos(n);return t[0]=r,t[1]=e,t[2]=0,t[3]=-e,t[4]=r,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromScaling:function(t,n){return t[0]=n[0],t[1]=0,t[2]=0,t[3]=0,t[4]=n[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromTranslation:function(t,n){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=n[0],t[7]=n[1],t[8]=1,t},identity:function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},invert:a,isOrthoNormal:function(t){const n=(0,r.FD)(),e=t[0],i=t[1],o=t[2],s=t[3],a=t[4],c=t[5],u=t[6],h=t[7],f=t[8];return Math.abs(1-(e*e+s*s+u*u))<=n&&Math.abs(1-(i*i+a*a+h*h))<=n&&Math.abs(1-(o*o+c*c+f*f))<=n},mul:M,multiply:h,multiplyScalar:function(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t[3]=n[3]*e,t[4]=n[4]*e,t[5]=n[5]*e,t[6]=n[6]*e,t[7]=n[7]*e,t[8]=n[8]*e,t},multiplyScalarAndAdd:function(t,n,e,r){return t[0]=n[0]+e[0]*r,t[1]=n[1]+e[1]*r,t[2]=n[2]+e[2]*r,t[3]=n[3]+e[3]*r,t[4]=n[4]+e[4]*r,t[5]=n[5]+e[5]*r,t[6]=n[6]+e[6]*r,t[7]=n[7]+e[7]*r,t[8]=n[8]+e[8]*r,t},normalFromMat4:d,normalFromMat4Legacy:function(t,n){const e=n[0],r=n[1],i=n[2],o=n[4],s=n[5],a=n[6],c=n[8],u=n[9],h=n[10],f=h*s-a*u,l=-h*o+a*c,d=u*o-s*c,m=e*f+r*l+i*d;if(!m)return null;const M=1/m;return t[0]=f*M,t[1]=(-h*r+i*u)*M,t[2]=(a*r-i*s)*M,t[3]=l*M,t[4]=(h*e-i*c)*M,t[5]=(-a*e+i*o)*M,t[6]=d*M,t[7]=(-u*e+r*c)*M,t[8]=(s*e-r*o)*M,t},projection:function(t,n,e){return t[0]=2/n,t[1]=0,t[2]=0,t[3]=0,t[4]=-2/e,t[5]=0,t[6]=-1,t[7]=1,t[8]=1,t},rotate:function(t,n,e){const r=n[0],i=n[1],o=n[2],s=n[3],a=n[4],c=n[5],u=n[6],h=n[7],f=n[8],l=Math.sin(e),d=Math.cos(e);return t[0]=d*r+l*s,t[1]=d*i+l*a,t[2]=d*o+l*c,t[3]=d*s-l*r,t[4]=d*a-l*i,t[5]=d*c-l*o,t[6]=u,t[7]=h,t[8]=f,t},scale:f,scaleByVec2:function(t,n,e){const r=e[0],i=e[1];return t[0]=r*n[0],t[1]=r*n[1],t[2]=r*n[2],t[3]=i*n[3],t[4]=i*n[4],t[5]=i*n[5],t},set:o,str:function(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"},sub:b,subtract:m,translate:function(t,n,e){const r=n[0],i=n[1],o=n[2],s=n[3],a=n[4],c=n[5],u=n[6],h=n[7],f=n[8],l=e[0],d=e[1];return t[0]=r,t[1]=i,t[2]=o,t[3]=s,t[4]=a,t[5]=c,t[6]=l*r+d*s+u,t[7]=l*i+d*a+h,t[8]=l*o+d*c+f,t},transpose:s},Symbol.toStringTag,{value:"Module"}))},58083(t,n,e){e.d(n,{$0:()=>g,$h:()=>T,B8:()=>h,C:()=>o,D_:()=>a,N9:()=>p,O7:()=>j,Qw:()=>u,Tl:()=>l,X_:()=>x,e$:()=>m,eL:()=>M,hM:()=>_,hZ:()=>s,hs:()=>d,kN:()=>b,l:()=>w,lw:()=>f,mg:()=>c,o1:()=>A,sC:()=>S,t2:()=>E,t5:()=>O,tZ:()=>N,ut:()=>C});var r=e(51850),i=e(34304);function o(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],t[9]=n[9],t[10]=n[10],t[11]=n[11],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15],t}function s(t,n,e,r,i,o,s,a,c,u,h,f,l,d,m,M,b){return t[0]=n,t[1]=e,t[2]=r,t[3]=i,t[4]=o,t[5]=s,t[6]=a,t[7]=c,t[8]=u,t[9]=h,t[10]=f,t[11]=l,t[12]=d,t[13]=m,t[14]=M,t[15]=b,t}function a(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function c(t,n){if(t===n){const e=n[1],r=n[2],i=n[3],o=n[6],s=n[7],a=n[11];t[1]=n[4],t[2]=n[8],t[3]=n[12],t[4]=e,t[6]=n[9],t[7]=n[13],t[8]=r,t[9]=o,t[11]=n[14],t[12]=i,t[13]=s,t[14]=a}else t[0]=n[0],t[1]=n[4],t[2]=n[8],t[3]=n[12],t[4]=n[1],t[5]=n[5],t[6]=n[9],t[7]=n[13],t[8]=n[2],t[9]=n[6],t[10]=n[10],t[11]=n[14],t[12]=n[3],t[13]=n[7],t[14]=n[11],t[15]=n[15];return t}function u(t,n){return h(t,n)||a(t),t}function h(t,n){const e=n[0],r=n[1],i=n[2],o=n[3],s=n[4],a=n[5],c=n[6],u=n[7],h=n[8],f=n[9],l=n[10],d=n[11],m=n[12],M=n[13],b=n[14],g=n[15],_=e*a-r*s,p=e*c-i*s,v=e*u-o*s,y=r*c-i*a,S=r*u-o*a,x=i*u-o*c,w=h*M-f*m,A=h*b-l*m,j=h*g-d*m,T=f*b-l*M,O=f*g-d*M,I=l*g-d*b;let E=_*I-p*O+v*T+y*j-S*A+x*w;return E?(E=1/E,t[0]=(a*I-c*O+u*T)*E,t[1]=(i*O-r*I-o*T)*E,t[2]=(M*x-b*S+g*y)*E,t[3]=(l*S-f*x-d*y)*E,t[4]=(c*j-s*I-u*A)*E,t[5]=(e*I-i*j+o*A)*E,t[6]=(b*v-m*x-g*p)*E,t[7]=(h*x-l*v+d*p)*E,t[8]=(s*O-a*j+u*w)*E,t[9]=(r*j-e*O-o*w)*E,t[10]=(m*S-M*v+g*_)*E,t[11]=(f*v-h*S-d*_)*E,t[12]=(a*A-s*T-c*w)*E,t[13]=(e*T-r*A+i*w)*E,t[14]=(M*p-m*y-b*_)*E,t[15]=(h*y-f*p+l*_)*E,t):null}function f(t,n,e){const r=n[0],i=n[1],o=n[2],s=n[3],a=n[4],c=n[5],u=n[6],h=n[7],f=n[8],l=n[9],d=n[10],m=n[11],M=n[12],b=n[13],g=n[14],_=n[15];let p=e[0],v=e[1],y=e[2],S=e[3];return t[0]=p*r+v*a+y*f+S*M,t[1]=p*i+v*c+y*l+S*b,t[2]=p*o+v*u+y*d+S*g,t[3]=p*s+v*h+y*m+S*_,p=e[4],v=e[5],y=e[6],S=e[7],t[4]=p*r+v*a+y*f+S*M,t[5]=p*i+v*c+y*l+S*b,t[6]=p*o+v*u+y*d+S*g,t[7]=p*s+v*h+y*m+S*_,p=e[8],v=e[9],y=e[10],S=e[11],t[8]=p*r+v*a+y*f+S*M,t[9]=p*i+v*c+y*l+S*b,t[10]=p*o+v*u+y*d+S*g,t[11]=p*s+v*h+y*m+S*_,p=e[12],v=e[13],y=e[14],S=e[15],t[12]=p*r+v*a+y*f+S*M,t[13]=p*i+v*c+y*l+S*b,t[14]=p*o+v*u+y*d+S*g,t[15]=p*s+v*h+y*m+S*_,t}function l(t,n,e){const r=e[0],i=e[1],o=e[2];if(n===t)t[12]=n[0]*r+n[4]*i+n[8]*o+n[12],t[13]=n[1]*r+n[5]*i+n[9]*o+n[13],t[14]=n[2]*r+n[6]*i+n[10]*o+n[14],t[15]=n[3]*r+n[7]*i+n[11]*o+n[15];else{const e=n[0],s=n[1],a=n[2],c=n[3],u=n[4],h=n[5],f=n[6],l=n[7],d=n[8],m=n[9],M=n[10],b=n[11];t[0]=e,t[1]=s,t[2]=a,t[3]=c,t[4]=u,t[5]=h,t[6]=f,t[7]=l,t[8]=d,t[9]=m,t[10]=M,t[11]=b,t[12]=e*r+u*i+d*o+n[12],t[13]=s*r+h*i+m*o+n[13],t[14]=a*r+f*i+M*o+n[14],t[15]=c*r+l*i+b*o+n[15]}return t}function d(t,n,e){const r=e[0],i=e[1],o=e[2];return t[0]=n[0]*r,t[1]=n[1]*r,t[2]=n[2]*r,t[3]=n[3]*r,t[4]=n[4]*i,t[5]=n[5]*i,t[6]=n[6]*i,t[7]=n[7]*i,t[8]=n[8]*o,t[9]=n[9]*o,t[10]=n[10]*o,t[11]=n[11]*o,t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15],t}function m(t,n,e,r){let s=r[0],a=r[1],c=r[2],u=Math.sqrt(s*s+a*a+c*c);if(u<=(0,i.FD)())return void o(t,n);u=1/u,s*=u,a*=u,c*=u;const h=Math.sin(e),f=Math.cos(e),l=1-f,d=n[0],m=n[1],M=n[2],b=n[3],g=n[4],_=n[5],p=n[6],v=n[7],y=n[8],S=n[9],x=n[10],w=n[11],A=s*s*l+f,j=a*s*l+c*h,T=c*s*l-a*h,O=s*a*l-c*h,I=a*a*l+f,E=c*a*l+s*h,C=s*c*l+a*h,N=a*c*l-s*h,P=c*c*l+f;t[0]=d*A+g*j+y*T,t[1]=m*A+_*j+S*T,t[2]=M*A+p*j+x*T,t[3]=b*A+v*j+w*T,t[4]=d*O+g*I+y*E,t[5]=m*O+_*I+S*E,t[6]=M*O+p*I+x*E,t[7]=b*O+v*I+w*E,t[8]=d*C+g*N+y*P,t[9]=m*C+_*N+S*P,t[10]=M*C+p*N+x*P,t[11]=b*C+v*N+w*P,n!==t&&(t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15])}function M(t,n,e){const r=Math.sin(e),i=Math.cos(e),o=n[4],s=n[5],a=n[6],c=n[7],u=n[8],h=n[9],f=n[10],l=n[11];return n!==t&&(t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15]),t[4]=o*i+u*r,t[5]=s*i+h*r,t[6]=a*i+f*r,t[7]=c*i+l*r,t[8]=u*i-o*r,t[9]=h*i-s*r,t[10]=f*i-a*r,t[11]=l*i-c*r,t}function b(t,n){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}function g(t,n,e){if(0===n)return a(t);let r=e[0],o=e[1],s=e[2],c=Math.sqrt(r*r+o*o+s*s);if(c<=(0,i.FD)())return null;c=1/c,r*=c,o*=c,s*=c;const u=Math.sin(n),h=Math.cos(n),f=1-h;return t[0]=r*r*f+h,t[1]=o*r*f+s*u,t[2]=s*r*f-o*u,t[3]=0,t[4]=r*o*f-s*u,t[5]=o*o*f+h,t[6]=s*o*f+r*u,t[7]=0,t[8]=r*s*f+o*u,t[9]=o*s*f-r*u,t[10]=s*s*f+h,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function _(t,n){const e=Math.sin(n),r=Math.cos(n);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=r,t[6]=e,t[7]=0,t[8]=0,t[9]=-e,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function p(t,n){const e=Math.sin(n),r=Math.cos(n);return t[0]=r,t[1]=e,t[2]=0,t[3]=0,t[4]=-e,t[5]=r,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function v(t,n,e){const r=n[0],i=n[1],o=n[2],s=n[3],a=r+r,c=i+i,u=o+o,h=r*a,f=r*c,l=r*u,d=i*c,m=i*u,M=o*u,b=s*a,g=s*c,_=s*u;return t[0]=1-(d+M),t[1]=f+_,t[2]=l-g,t[3]=0,t[4]=f-_,t[5]=1-(h+M),t[6]=m+b,t[7]=0,t[8]=l+g,t[9]=m-b,t[10]=1-(h+d),t[11]=0,t[12]=e[0],t[13]=e[1],t[14]=e[2],t[15]=1,t}const y=(0,r.vt)();function S(t,n){return t[0]=n[12],t[1]=n[13],t[2]=n[14],t}function x(t,n){const e=n[0],r=n[1],i=n[2],o=n[4],s=n[5],a=n[6],c=n[8],u=n[9],h=n[10];return t[0]=Math.sqrt(e*e+r*r+i*i),t[1]=Math.sqrt(o*o+s*s+a*a),t[2]=Math.sqrt(c*c+u*u+h*h),t}function w(t,n){const e=n[0]+n[5]+n[10];let r=0;return e>0?(r=2*Math.sqrt(e+1),t[3]=.25*r,t[0]=(n[6]-n[9])/r,t[1]=(n[8]-n[2])/r,t[2]=(n[1]-n[4])/r):n[0]>n[5]&&n[0]>n[10]?(r=2*Math.sqrt(1+n[0]-n[5]-n[10]),t[3]=(n[6]-n[9])/r,t[0]=.25*r,t[1]=(n[1]+n[4])/r,t[2]=(n[8]+n[2])/r):n[5]>n[10]?(r=2*Math.sqrt(1+n[5]-n[0]-n[10]),t[3]=(n[8]-n[2])/r,t[0]=(n[1]+n[4])/r,t[1]=.25*r,t[2]=(n[6]+n[9])/r):(r=2*Math.sqrt(1+n[10]-n[0]-n[5]),t[3]=(n[1]-n[4])/r,t[0]=(n[8]+n[2])/r,t[1]=(n[6]+n[9])/r,t[2]=.25*r),t}function A(t,n,e,r){const i=n[0],o=n[1],s=n[2],a=n[3],c=i+i,u=o+o,h=s+s,f=i*c,l=i*u,d=i*h,m=o*u,M=o*h,b=s*h,g=a*c,_=a*u,p=a*h,v=r[0],y=r[1],S=r[2];return t[0]=(1-(m+b))*v,t[1]=(l+p)*v,t[2]=(d-_)*v,t[3]=0,t[4]=(l-p)*y,t[5]=(1-(f+b))*y,t[6]=(M+g)*y,t[7]=0,t[8]=(d+_)*S,t[9]=(M-g)*S,t[10]=(1-(f+m))*S,t[11]=0,t[12]=e[0],t[13]=e[1],t[14]=e[2],t[15]=1,t}function j(t,n,e,r,i){const o=n[0],s=n[1],a=n[2],c=n[3],u=o+o,h=s+s,f=a+a,l=o*u,d=o*h,m=o*f,M=s*h,b=s*f,g=a*f,_=c*u,p=c*h,v=c*f,y=r[0],S=r[1],x=r[2],w=i[0],A=i[1],j=i[2],T=(1-(M+g))*y,O=(d+v)*y,I=(m-p)*y,E=(d-v)*S,C=(1-(l+g))*S,N=(b+_)*S,P=(m+p)*x,q=(b-_)*x,R=(1-(l+M))*x;return t[0]=T,t[1]=O,t[2]=I,t[3]=0,t[4]=E,t[5]=C,t[6]=N,t[7]=0,t[8]=P,t[9]=q,t[10]=R,t[11]=0,t[12]=e[0]+w-(T*w+E*A+P*j),t[13]=e[1]+A-(O*w+C*A+q*j),t[14]=e[2]+j-(I*w+N*A+R*j),t[15]=1,t}function T(t,n,e,r,i,o,s){const a=1/(e-n),c=1/(i-r),u=1/(o-s);return t[0]=2*o*a,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*o*c,t[6]=0,t[7]=0,t[8]=(e+n)*a,t[9]=(i+r)*c,t[10]=(s+o)*u,t[11]=-1,t[12]=0,t[13]=0,t[14]=s*o*2*u,t[15]=0,t}function O(t,n,e,r){const o=n[0],s=n[1],c=n[2];let u=o-e[0],h=s-e[1],f=c-e[2];const l=(0,i.FD)();if(Math.abs(u)<l&&Math.abs(h)<l&&Math.abs(f)<l)return void a(t);let d=1/Math.sqrt(u*u+h*h+f*f);u*=d,h*=d,f*=d;const m=r[0],M=r[1],b=r[2];let g=M*f-b*h,_=b*u-m*f,p=m*h-M*u;d=Math.sqrt(g*g+_*_+p*p),d?(d=1/d,g*=d,_*=d,p*=d):(g=0,_=0,p=0);let v=h*p-f*_,y=f*g-u*p,S=u*_-h*g;d=Math.sqrt(v*v+y*y+S*S),d?(d=1/d,v*=d,y*=d,S*=d):(v=0,y=0,S=0),t[0]=g,t[1]=v,t[2]=u,t[3]=0,t[4]=_,t[5]=y,t[6]=h,t[7]=0,t[8]=p,t[9]=S,t[10]=f,t[11]=0,t[12]=-(g*o+_*s+p*c),t[13]=-(v*o+y*s+S*c),t[14]=-(u*o+h*s+f*c),t[15]=1}function I(t,n,e){return t[0]=n[0]-e[0],t[1]=n[1]-e[1],t[2]=n[2]-e[2],t[3]=n[3]-e[3],t[4]=n[4]-e[4],t[5]=n[5]-e[5],t[6]=n[6]-e[6],t[7]=n[7]-e[7],t[8]=n[8]-e[8],t[9]=n[9]-e[9],t[10]=n[10]-e[10],t[11]=n[11]-e[11],t[12]=n[12]-e[12],t[13]=n[13]-e[13],t[14]=n[14]-e[14],t[15]=n[15]-e[15],t}function E(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]&&t[4]===n[4]&&t[5]===n[5]&&t[6]===n[6]&&t[7]===n[7]&&t[8]===n[8]&&t[9]===n[9]&&t[10]===n[10]&&t[11]===n[11]&&t[12]===n[12]&&t[13]===n[13]&&t[14]===n[14]&&t[15]===n[15]}function C(t){const n=(0,i.FD)(),e=t[0],r=t[1],o=t[2],s=t[4],a=t[5],c=t[6],u=t[8],h=t[9],f=t[10];return Math.abs(1-(e*e+s*s+u*u))<=n&&Math.abs(1-(r*r+a*a+h*h))<=n&&Math.abs(1-(o*o+c*c+f*f))<=n}function N(t){return 1===t[0]&&0===t[1]&&0===t[2]&&0===t[4]&&1===t[5]&&0===t[6]&&0===t[8]&&0===t[9]&&1===t[10]}const P=f,q=I;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2],t[3]=n[3]+e[3],t[4]=n[4]+e[4],t[5]=n[5]+e[5],t[6]=n[6]+e[6],t[7]=n[7]+e[7],t[8]=n[8]+e[8],t[9]=n[9]+e[9],t[10]=n[10]+e[10],t[11]=n[11]+e[11],t[12]=n[12]+e[12],t[13]=n[13]+e[13],t[14]=n[14]+e[14],t[15]=n[15]+e[15],t},adjoint:function(t,n){const e=n[0],r=n[1],i=n[2],o=n[3],s=n[4],a=n[5],c=n[6],u=n[7],h=n[8],f=n[9],l=n[10],d=n[11],m=n[12],M=n[13],b=n[14],g=n[15];return t[0]=a*(l*g-d*b)-f*(c*g-u*b)+M*(c*d-u*l),t[1]=-(r*(l*g-d*b)-f*(i*g-o*b)+M*(i*d-o*l)),t[2]=r*(c*g-u*b)-a*(i*g-o*b)+M*(i*u-o*c),t[3]=-(r*(c*d-u*l)-a*(i*d-o*l)+f*(i*u-o*c)),t[4]=-(s*(l*g-d*b)-h*(c*g-u*b)+m*(c*d-u*l)),t[5]=e*(l*g-d*b)-h*(i*g-o*b)+m*(i*d-o*l),t[6]=-(e*(c*g-u*b)-s*(i*g-o*b)+m*(i*u-o*c)),t[7]=e*(c*d-u*l)-s*(i*d-o*l)+h*(i*u-o*c),t[8]=s*(f*g-d*M)-h*(a*g-u*M)+m*(a*d-u*f),t[9]=-(e*(f*g-d*M)-h*(r*g-o*M)+m*(r*d-o*f)),t[10]=e*(a*g-u*M)-s*(r*g-o*M)+m*(r*u-o*a),t[11]=-(e*(a*d-u*f)-s*(r*d-o*f)+h*(r*u-o*a)),t[12]=-(s*(f*b-l*M)-h*(a*b-c*M)+m*(a*l-c*f)),t[13]=e*(f*b-l*M)-h*(r*b-i*M)+m*(r*l-i*f),t[14]=-(e*(a*b-c*M)-s*(r*b-i*M)+m*(r*c-i*a)),t[15]=e*(a*l-c*f)-s*(r*l-i*f)+h*(r*c-i*a),t},copy:o,determinant:function(t){const n=t[0],e=t[1],r=t[2],i=t[3],o=t[4],s=t[5],a=t[6],c=t[7],u=t[8],h=t[9],f=t[10],l=t[11],d=t[12],m=t[13],M=t[14],b=t[15];return(n*s-e*o)*(f*b-l*M)-(n*a-r*o)*(h*b-l*m)+(n*c-i*o)*(h*M-f*m)+(e*a-r*s)*(u*b-l*d)-(e*c-i*s)*(u*M-f*d)+(r*c-i*a)*(u*m-h*d)},equals:function(t,n){if(t===n)return!0;const e=t[0],r=t[1],o=t[2],s=t[3],a=t[4],c=t[5],u=t[6],h=t[7],f=t[8],l=t[9],d=t[10],m=t[11],M=t[12],b=t[13],g=t[14],_=t[15],p=n[0],v=n[1],y=n[2],S=n[3],x=n[4],w=n[5],A=n[6],j=n[7],T=n[8],O=n[9],I=n[10],E=n[11],C=n[12],N=n[13],P=n[14],q=n[15],R=(0,i.FD)();return Math.abs(e-p)<=R*Math.max(1,Math.abs(e),Math.abs(p))&&Math.abs(r-v)<=R*Math.max(1,Math.abs(r),Math.abs(v))&&Math.abs(o-y)<=R*Math.max(1,Math.abs(o),Math.abs(y))&&Math.abs(s-S)<=R*Math.max(1,Math.abs(s),Math.abs(S))&&Math.abs(a-x)<=R*Math.max(1,Math.abs(a),Math.abs(x))&&Math.abs(c-w)<=R*Math.max(1,Math.abs(c),Math.abs(w))&&Math.abs(u-A)<=R*Math.max(1,Math.abs(u),Math.abs(A))&&Math.abs(h-j)<=R*Math.max(1,Math.abs(h),Math.abs(j))&&Math.abs(f-T)<=R*Math.max(1,Math.abs(f),Math.abs(T))&&Math.abs(l-O)<=R*Math.max(1,Math.abs(l),Math.abs(O))&&Math.abs(d-I)<=R*Math.max(1,Math.abs(d),Math.abs(I))&&Math.abs(m-E)<=R*Math.max(1,Math.abs(m),Math.abs(E))&&Math.abs(M-C)<=R*Math.max(1,Math.abs(M),Math.abs(C))&&Math.abs(b-N)<=R*Math.max(1,Math.abs(b),Math.abs(N))&&Math.abs(g-P)<=R*Math.max(1,Math.abs(g),Math.abs(P))&&Math.abs(_-q)<=R*Math.max(1,Math.abs(_),Math.abs(q))},exactEquals:E,frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+t[6]**2+t[7]**2+t[8]**2+t[9]**2+t[10]**2+t[11]**2+t[12]**2+t[13]**2+t[14]**2+t[15]**2)},fromQuat:function(t,n){const e=n[0],r=n[1],i=n[2],o=n[3],s=e+e,a=r+r,c=i+i,u=e*s,h=r*s,f=r*a,l=i*s,d=i*a,m=i*c,M=o*s,b=o*a,g=o*c;return t[0]=1-f-m,t[1]=h+g,t[2]=l-b,t[3]=0,t[4]=h-g,t[5]=1-u-m,t[6]=d+M,t[7]=0,t[8]=l+b,t[9]=d-M,t[10]=1-u-f,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromQuat2:function(t,n){const e=y,r=-n[0],i=-n[1],o=-n[2],s=n[3],a=n[4],c=n[5],u=n[6],h=n[7],f=r*r+i*i+o*o+s*s;return f>0?(e[0]=2*(a*s+h*r+c*o-u*i)/f,e[1]=2*(c*s+h*i+u*r-a*o)/f,e[2]=2*(u*s+h*o+a*i-c*r)/f):(e[0]=2*(a*s+h*r+c*o-u*i),e[1]=2*(c*s+h*i+u*r-a*o),e[2]=2*(u*s+h*o+a*i-c*r)),v(t,n,e),t},fromRotation:g,fromRotationTranslation:v,fromRotationTranslationScale:A,fromRotationTranslationScaleOrigin:j,fromScaling:function(t,n){return t[0]=n[0],t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=n[1],t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=n[2],t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromTranslation:b,fromXRotation:_,fromYRotation:function(t,n){const e=Math.sin(n),r=Math.cos(n);return t[0]=r,t[1]=0,t[2]=-e,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=e,t[9]=0,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromZRotation:p,frustum:T,getRotation:w,getScale:x,getTranslation:S,hasIdentityRotation:N,identity:a,invert:h,invertOrIdentity:u,isOrthoNormal:C,lookAt:O,mul:P,multiply:f,multiplyScalar:function(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t[3]=n[3]*e,t[4]=n[4]*e,t[5]=n[5]*e,t[6]=n[6]*e,t[7]=n[7]*e,t[8]=n[8]*e,t[9]=n[9]*e,t[10]=n[10]*e,t[11]=n[11]*e,t[12]=n[12]*e,t[13]=n[13]*e,t[14]=n[14]*e,t[15]=n[15]*e,t},multiplyScalarAndAdd:function(t,n,e,r){return t[0]=n[0]+e[0]*r,t[1]=n[1]+e[1]*r,t[2]=n[2]+e[2]*r,t[3]=n[3]+e[3]*r,t[4]=n[4]+e[4]*r,t[5]=n[5]+e[5]*r,t[6]=n[6]+e[6]*r,t[7]=n[7]+e[7]*r,t[8]=n[8]+e[8]*r,t[9]=n[9]+e[9]*r,t[10]=n[10]+e[10]*r,t[11]=n[11]+e[11]*r,t[12]=n[12]+e[12]*r,t[13]=n[13]+e[13]*r,t[14]=n[14]+e[14]*r,t[15]=n[15]+e[15]*r,t},ortho:function(t,n,e,r,i,o,s){const a=1/(n-e),c=1/(r-i),u=1/(o-s);return t[0]=-2*a,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*c,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*u,t[11]=0,t[12]=(n+e)*a,t[13]=(i+r)*c,t[14]=(s+o)*u,t[15]=1,t},perspective:function(t,n,e,r,i){const o=1/Math.tan(n/2);let s;return t[0]=o/e,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=o,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=i&&i!==1/0?(s=1/(r-i),t[10]=(i+r)*s,t[14]=2*i*r*s):(t[10]=-1,t[14]=-2*r),t},perspectiveFromFieldOfView:function(t,n,e,r){const i=Math.tan(n.upDegrees*Math.PI/180),o=Math.tan(n.downDegrees*Math.PI/180),s=Math.tan(n.leftDegrees*Math.PI/180),a=Math.tan(n.rightDegrees*Math.PI/180),c=2/(s+a),u=2/(i+o);return t[0]=c,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=u,t[6]=0,t[7]=0,t[8]=-(s-a)*c*.5,t[9]=(i-o)*u*.5,t[10]=r/(e-r),t[11]=-1,t[12]=0,t[13]=0,t[14]=r*e/(e-r),t[15]=0,t},rotate:m,rotateX:M,rotateY:function(t,n,e){const r=Math.sin(e),i=Math.cos(e),o=n[0],s=n[1],a=n[2],c=n[3],u=n[8],h=n[9],f=n[10],l=n[11];return n!==t&&(t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15]),t[0]=o*i-u*r,t[1]=s*i-h*r,t[2]=a*i-f*r,t[3]=c*i-l*r,t[8]=o*r+u*i,t[9]=s*r+h*i,t[10]=a*r+f*i,t[11]=c*r+l*i,t},rotateZ:function(t,n,e){const r=Math.sin(e),i=Math.cos(e),o=n[0],s=n[1],a=n[2],c=n[3],u=n[4],h=n[5],f=n[6],l=n[7];return n!==t&&(t[8]=n[8],t[9]=n[9],t[10]=n[10],t[11]=n[11],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15]),t[0]=o*i+u*r,t[1]=s*i+h*r,t[2]=a*i+f*r,t[3]=c*i+l*r,t[4]=u*i-o*r,t[5]=h*i-s*r,t[6]=f*i-a*r,t[7]=l*i-c*r,t},scale:d,set:s,str:function(t){return"mat4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+", "+t[9]+", "+t[10]+", "+t[11]+", "+t[12]+", "+t[13]+", "+t[14]+", "+t[15]+")"},sub:q,subtract:I,targetTo:function(t,n,e,r){const i=n[0],o=n[1],s=n[2],a=r[0],c=r[1],u=r[2];let h=i-e[0],f=o-e[1],l=s-e[2],d=h*h+f*f+l*l;d>0&&(d=1/Math.sqrt(d),h*=d,f*=d,l*=d);let m=c*l-u*f,M=u*h-a*l,b=a*f-c*h;return d=m*m+M*M+b*b,d>0&&(d=1/Math.sqrt(d),m*=d,M*=d,b*=d),t[0]=m,t[1]=M,t[2]=b,t[3]=0,t[4]=f*b-l*M,t[5]=l*m-h*b,t[6]=h*M-f*m,t[7]=0,t[8]=h,t[9]=f,t[10]=l,t[11]=0,t[12]=i,t[13]=o,t[14]=s,t[15]=1,t},translate:l,transpose:c},Symbol.toStringTag,{value:"Module"}))},4197(t,n,e){e.d(n,{Vj:()=>h,cj:()=>u,jh:()=>o,l5:()=>a,yH:()=>c});var r=e(34275),i=e(9093);function o(t){return t<=1024?new Array(t).fill(0):new Float64Array(t)}function s(t){return((0,r.iu)(t)?t.byteLength/8:t.length)<=1024?Array.from(t):new Float64Array(t)}function a(t,n,e){return Array.isArray(t)?t.slice(n,n+e):t.subarray(n,n+e)}function c(t,n){if(0===n.length)return s(t);if(0===t.length)return s(n);const e=o(t.length+n.length);for(let n=0;n<t.length;++n)e[n]=t[n];for(let r=0;r<n.length;++r)e[t.length+r]=n[r];return e}function u(t){return[...t]}function h(t){const n=(0,i.vt)();for(let e=0;e<16;++e)n[e]=t[e];return n}},70328(t,n,e){e.d(n,{BI:()=>T,C:()=>s,DC:()=>l,Ej:()=>p,Ie:()=>A,Jt:()=>j,Lu:()=>y,Ne:()=>S,RF:()=>f,TF:()=>g,VL:()=>m,aI:()=>I,fA:()=>a,gE:()=>u,gX:()=>_,hZ:()=>w,iT:()=>d,is:()=>O,pg:()=>v,uJ:()=>b,vI:()=>x,vY:()=>c,vt:()=>o,w1:()=>h,yr:()=>M}),e(35522);var r=e(5443),i=(e(19419),e(4197));function o(t=C){return[t[0],t[1],t[2],t[3],t[4],t[5]]}function s(t,n){for(let e=0;e<6;e++)t[e]=n[e];return t}function a(t,n,e,r,i,s,a=o()){return a[0]=t,a[1]=n,a[2]=e,a[3]=r,a[4]=i,a[5]=s,a}function c(t,n=o()){return function(t,n,e,r=o()){return w(r,E),function(t,n,e=0,r=n.length/3){let i=t[0],o=t[1],s=t[2],a=t[3],c=t[4],u=t[5];for(let t=0;t<r;t++)i=Math.min(i,n[e+3*t]),o=Math.min(o,n[e+3*t+1]),s=Math.min(s,n[e+3*t+2]),a=Math.max(a,n[e+3*t]),c=Math.max(c,n[e+3*t+1]),u=Math.max(u,n[e+3*t+2]);t[0]=i,t[1]=o,t[2]=s,t[3]=a,t[4]=c,t[5]=u}(r,t,n,e),r}(t,0,t.length/3,n)}function u(t,n=(0,i.jh)(24)){const[e,r,o,s,a,c]=t;return n[0]=e,n[1]=r,n[2]=o,n[3]=e,n[4]=r,n[5]=c,n[6]=e,n[7]=a,n[8]=o,n[9]=e,n[10]=a,n[11]=c,n[12]=s,n[13]=r,n[14]=o,n[15]=s,n[16]=r,n[17]=c,n[18]=s,n[19]=a,n[20]=o,n[21]=s,n[22]=a,n[23]=c,n}function h(t,n){const e=isFinite(t[2])||isFinite(t[5]);return new r.A(e?{xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],zmin:t[2],zmax:t[5],spatialReference:n}:{xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],spatialReference:n})}function f(t,n,e=t){e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e[2]=Math.min(t[2],n[2]),e[3]=Math.max(t[3],n[3]),e[4]=Math.max(t[4],n[4]),e[5]=Math.max(t[5],n[5])}function l(t,n){t[0]=Math.min(t[0],n[0]),t[1]=Math.min(t[1],n[1]),t[3]=Math.max(t[3],n[2]),t[4]=Math.max(t[4],n[3])}function d(t,[n,e,r]){!function(t,n,e,r){t[0]=Math.min(t[0],n),t[1]=Math.min(t[1],e),t[2]=Math.min(t[2],r),t[3]=Math.max(t[3],n),t[4]=Math.max(t[4],e),t[5]=Math.max(t[5],r)}(t,n,e,r)}function m(t){return t[0]>=t[3]?0:t[3]-t[0]}function M(t){return t[1]>=t[4]?0:t[4]-t[1]}function b(t){return t[2]>=t[5]?0:t[5]-t[2]}function g(t){const n=m(t),e=b(t),r=M(t);return n*n+e*e+r*r}function _(t,n=[0,0,0]){return n[0]=t[0]+m(t)/2,n[1]=t[1]+M(t)/2,n[2]=t[2]+b(t)/2,n}function p(t,n=[0,0,0]){return n[0]=m(t),n[1]=M(t),n[2]=b(t),n}function v(t,n){return n[0]=t[0],n[1]=t[1],n[2]=t[2],n}function y(t,n){return n[0]=t[3],n[1]=t[4],n[2]=t[5],n}function S(t,n,e=t){return e[0]=n[0],e[1]=n[1],e[2]=n[2],e!==t&&(e[3]=t[3],e[4]=t[4],e[5]=t[5]),e}function x(t,n,e=t){return e[3]=n[0],e[4]=n[1],e[5]=n[2],e!==t&&(e[0]=t[0],e[1]=t[1],e[2]=t[2]),t}function w(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t}function A(t){return t?w(t,E):o(E)}function j(t,n){return t[0]=n[0],t[1]=n[1],t[2]=Number.NEGATIVE_INFINITY,t[3]=n[2],t[4]=n[3],t[5]=Number.POSITIVE_INFINITY,t}function T(t,n,e,r,i){return t[0]=n,t[1]=e,t[2]=Number.NEGATIVE_INFINITY,t[3]=r,t[4]=i,t[5]=Number.POSITIVE_INFINITY,t}function O(t){return 6===t.length}function I(t,n,e){if(null==t||null==n)return t===n;if(!O(t)||!O(n))return!1;if(e){for(let r=0;r<t.length;r++)if(!e(t[r],n[r]))return!1}else for(let e=0;e<t.length;e++)if(t[e]!==n[e])return!1;return!0}const E=[1/0,1/0,1/0,-1/0,-1/0,-1/0],C=[0,0,0,0,0,0];o(),e.d(n,["qv",0,E,"v_",0,C])},65720(t,n,e){e.d(n,{C:()=>g,vt:()=>M,Qy:()=>b,ui:()=>_,ST:()=>w,bU:()=>j,pw:()=>x,m7:()=>p,ZU:()=>v,GH:()=>S,Pi:()=>y,LJ:()=>A,c8:()=>I});var r=e(4341),i=e(58083),o=e(35522),s=e(51850),a=e(78955),c=e(91829),u=e(70328),h=e(71351);function f(t){return t?{ray:(0,h.vt)(t.ray),c0:t.c0,c1:t.c1}:{ray:(0,h.vt)(),c0:0,c1:Number.MAX_VALUE}}new r.I(()=>f());var l=e(27921);function d(t,n,e,r){let{t0:i,t1:o}=r;const s=(0,l.mN)(t,n),a=(0,l.mN)(t,e);if(s>=0&&a>=0)return!1;if(s<0&&a>=0){const t=-s/(a-s);if(t<i)return!1;t<o&&(o=t)}else if(s>=0&&a<0){const t=s/(s-a);if(t>o)return!1;t>i&&(i=t)}return r.t0=i,r.t1=o,!0}var m=e(32114);function M(t){return t?[(0,l.vt)(t[0]),(0,l.vt)(t[1]),(0,l.vt)(t[2]),(0,l.vt)(t[3]),(0,l.vt)(t[4]),(0,l.vt)(t[5])]:[(0,l.vt)(),(0,l.vt)(),(0,l.vt)(),(0,l.vt)(),(0,l.vt)(),(0,l.vt)()]}function b(){return[(0,s.vt)(),(0,s.vt)(),(0,s.vt)(),(0,s.vt)(),(0,s.vt)(),(0,s.vt)(),(0,s.vt)(),(0,s.vt)()]}function g(t,n){for(let e=0;e<E;e++)(0,l.C)(t[e],n[e]);return t}function _(t,n,e,r=q){const s=(0,i.lw)(m.Rc.get(),n,t);(0,i.B8)(s,s);for(let t=0;t<C;++t){const n=(0,a.Z0)(m.Km.get(),N[t],s);(0,o.hZ)(r[t],n[0]/n[3],n[1]/n[3],n[2]/n[3])}!function(t,n){(0,l.Cr)(n[4],n[0],n[3],t[0]),(0,l.Cr)(n[1],n[5],n[6],t[1]),(0,l.Cr)(n[4],n[5],n[1],t[2]),(0,l.Cr)(n[3],n[2],n[6],t[3]),(0,l.Cr)(n[0],n[1],n[2],t[4]),(0,l.Cr)(n[5],n[4],n[7],t[5])}(e,r)}function p(t,n){return v(t,n.center,n.radius)}function v(t,n,e){for(let r=0;r<E;r++){const i=t[r];if(i[0]*n[0]+i[1]*n[1]+i[2]*n[2]+i[3]>=e)return!1}return!0}function y(t,n,e){for(const r of O)if((0,l.wE)(t[r],n,e))return!0;return!1}function S(t,n,e){const r=(0,u.gX)(n,R),i=(0,u.VL)(n)/2,s=(0,u.yr)(n)/2,a=(0,u.uJ)(n)/2;return e?function(t,n,e,r,i,s){const a=(0,o.Z0)(F,n,s);for(let n=0;n<E;n++){const o=t[n];if(o[0]*a[0]+o[1]*a[1]+o[2]*a[2]+o[3]-(Math.abs(o[0]*s[0]+o[1]*s[1]+o[2]*s[2])*e+Math.abs(o[0]*s[4]+o[1]*s[5]+o[2]*s[6])*r+Math.abs(o[0]*s[8]+o[1]*s[9]+o[2]*s[10])*i)>0)return!1}return!0}(t,r,i,s,a,e):function(t,n,e,r,i){for(let o=0;o<E;o++){const s=t[o];if(s[0]*n[0]+s[1]*n[1]+s[2]*n[2]+s[3]-(Math.abs(s[0])*e+Math.abs(s[1])*r+Math.abs(s[2])*i)>0)return!1}return!0}(t,r,i,s,a)}function x(t,n){return T(t,function(t,n=f()){return(0,h.C)(t,n.ray),n.c0=0,n.c1=Number.MAX_VALUE,n}(n,P.get()))}function w(t,n,e){return T(t,function(t,n,e=f()){const r=(0,o.Bw)(t.vector);return(0,h.fA)(t.origin,n,e.ray),e.c0=0,e.c1=r,e}(n,e,P.get()))}function A(t,n,e){return function(t,n,e,r){const i={t0:0,t1:1};for(const o of n)if(!d(t[o],e,r,i))return!1;return i.t0<i.t1}(t,O,n,e)}function j(t,n){for(let e=0;e<E;e++)if((0,l.mN)(t[e],n)>0)return!1;return!0}function T(t,n){for(let e=0;e<E;e++)if(!(0,l.$Q)(t[e],n))return!1;return!0}const O=[0,1,2,3,5],I={bottom:[5,1,0,4],near:[0,1,2,3],far:[5,4,7,6],right:[1,5,6,2],left:[4,0,3,7],top:[7,3,2,6]},E=6,C=8,N=[(0,c.fA)(-1,-1,-1,1),(0,c.fA)(1,-1,-1,1),(0,c.fA)(1,1,-1,1),(0,c.fA)(-1,1,-1,1),(0,c.fA)(-1,-1,1,1),(0,c.fA)(1,-1,1,1),(0,c.fA)(1,1,1,1),(0,c.fA)(-1,1,1,1)],P=new r.I(f),q=b(),R=(0,s.vt)(),F=(0,s.vt)()},11964(t,n,e){e.d(n,{Cr:()=>h,LV:()=>u,_I:()=>f,vt:()=>c});var r=e(34727),i=e(4341),o=e(35522),s=e(51850),a=e(32114);function c(t){return t?{origin:(0,s.o8)(t.origin),vector:(0,s.o8)(t.vector)}:{origin:(0,s.vt)(),vector:(0,s.vt)()}}function u(t,n){const e=l.get();return e.origin=t,e.vector=n,e}function h(t,n,e=c()){return(0,o.C)(e.origin,t),(0,o.Re)(e.vector,n,t),e}function f(t,n,e){return function(t,n,e,i,s){const{vector:c,origin:u}=t,h=(0,o.Re)(a.rq.get(),n,u),f=(0,o.Om)(c,h)/(0,o.m3)(c);return(0,o.hs)(s,c,(0,r.qE)(f,0,1)),(0,o.WQ)(s,s,t.origin)}(t,n,0,0,e)}(0,s.vt)(),(0,s.vt)();const l=new i.I(()=>c())},27921(t,n,e){e.d(n,{$Q:()=>y,BX:()=>v,C:()=>a,Cr:()=>h,H:()=>x,O_:()=>u,Qj:()=>c,T7:()=>_,lU:()=>f,mN:()=>w,vE:()=>j,vt:()=>s,wE:()=>A});var r=e(34727),i=e(35522),o=e(51850);function s(t=T){return[t[0],t[1],t[2],t[3]]}function a(t,n){return function(t,n,e,r,i=s()){return i[0]=t,i[1]=n,i[2]=e,i[3]=r,i}(n[0],n[1],n[2],n[3],t)}function c(t){return t}function u(t,n,e){const r=n[0]*n[0]+n[1]*n[1]+n[2]*n[2],i=Math.abs(r-1)>1e-5&&r>1e-12?1/Math.sqrt(r):1;return e[0]=n[0]*i,e[1]=n[1]*i,e[2]=n[2]*i,e[3]=-(e[0]*t[0]+e[1]*t[1]+e[2]*t[2]),e}function h(t,n,e,r=s()){const i=e[0]-n[0],o=e[1]-n[1],a=e[2]-n[2],c=t[0]-n[0],u=t[1]-n[1],h=t[2]-n[2],f=o*h-a*u,l=a*c-i*h,d=i*u-o*c,m=f*f+l*l+d*d,M=Math.abs(m-1)>1e-5&&m>1e-12?1/Math.sqrt(m):1;return r[0]=f*M,r[1]=l*M,r[2]=d*M,r[3]=-(r[0]*t[0]+r[1]*t[1]+r[2]*t[2]),r}function f(t,n,e,r=0,o=Math.floor(e*(1/3)),s=Math.floor(e*(2/3))){if(e<3)return!1;n(d,r);let a=o,c=!1;for(;a<e-1&&!c;)n(m,a),a++,c=!(0,i.t2)(d,m);if(!c)return!1;for(a=Math.max(a,s),c=!1;a<e&&!c;)n(M,a),a++,(0,i.Re)(b,d,m),(0,i.S8)(b,b),(0,i.Re)(g,m,M),(0,i.S8)(g,g),c=!(0,i.t2)(d,M)&&!(0,i.t2)(m,M)&&Math.abs((0,i.Om)(b,g))<l;return c?(h(d,m,M,t),!0):(0!==r||1!==o||2!==s)&&f(t,n,e,0,1,2)}e(78955),e(44280),e(32114),e(32728);const l=.99619469809,d=(0,o.vt)(),m=(0,o.vt)(),M=(0,o.vt)(),b=(0,o.vt)(),g=(0,o.vt)();function _(t,n,e){return function(t){return 0===t||1===t}(j(t,n.origin,n.vector,0,e))}function p(t,n){return w(t,n)<=0}function v(t,n){return w(t,n)>=0}function y(t,n){return function(t,n,e,r,o,s,a){const c=(0,i.Om)(t,e),u=w(t,n);if(c>-1e-6&&c<1e-6)return S(u,o,s);const h=-u/c,f=S(c,o,!1);return!(a&&!f&&!S(u,o,s))&&(f?h>r.c0&&(r.c0=h):h<r.c1&&(r.c1=h),r.c0<=r.c1)}(t,n.ray.origin,n.ray.direction,n,!1,!1,!0)}function S(t,n,e){return e?n?t>=0:t<=0:n?t>0:t<0}function x(t,n,e,r=!1){let o=n.at(-1),s=w(t,o),a=r?s>0:s<=0;for(let c=0;c<n.length;c++){const u=n.at(c),h=w(t,u),f=r?h>0:h<=0;a!==f&&(0,i.Cc)(e(),o,u,s/(s-h)),f&&(0,i.C)(e(),u),o=u,s=h,a=f}}function w(t,n){return(0,i.Om)(t,n)+t[3]}function A(t,n,e){for(let r=0;r<e;++r)if(p(t,n[r]))return!1;return!0}function j(t,n,e,o,s){const a=(0,i.Om)(t,e),c=w(t,n);if(0===a)return c>=0?2:3;let u=-c/a;return 1&o&&(u=(0,r.qE)(u,0,1)),!(4&o)&&u<0||!(8&o)&&u>1?c>=0?2:3:((0,i.WQ)(s,n,(0,i.hs)(s,e,u)),c>=0?0:1)}const T=[0,0,1,0];(0,o.vt)()},71351(t,n,e){e.d(n,{C:()=>h,Cr:()=>f,LV:()=>u,fA:()=>l,vt:()=>a}),e(4576);var r=e(4341),i=(e(77690),e(29242)),o=e(35522),s=e(51850);function a(t){return t?c((0,s.o8)(t.origin),(0,s.o8)(t.direction)):c((0,s.vt)(),(0,s.vt)())}function c(t,n){return{origin:t,direction:n}}function u(t,n){const e=d.get();return e.origin=t,e.direction=n,e}function h(t,n=a()){return l(t.origin,t.direction,n)}function f(t,n,e=a()){return(0,o.C)(e.origin,t),(0,o.Re)(e.direction,n,t),e}function l(t,n,e=a()){return(0,o.C)(e.origin,t),(0,o.C)(e.direction,n),e}e(32114);const d=new r.I(()=>a());(0,s.vt)(),(0,s.vt)(),(0,s.vt)(),(0,i.vt)()},94008(t,n,e){e.d(n,{iy:()=>d}),e(44208),e(53966);var r=e(34727),i=e(34304),o=e(58083),s=e(35522),a=e(51850),c=e(91829),u=e(34275);var h=e(71351),f=e(44280),l=e(32114);class d{constructor(t=0,n=0,e=0,r=0){this.radius=r,"number"==typeof t?this._center=(0,a.fA)(t,n,e):function(t){return n=t,(0,u.vZ)(n)&&n.length>=3||function(t){return((0,u.aI)(t)||Array.isArray(t))&&t.length>=3}(t);var n}(t)||function(t){return(n=t)instanceof Float32Array&&n.length>=4||function(t){return Array.isArray(t)&&t.length>=4}(t);var n}(t)?(this._center=(0,a.ci)(t),this.radius=4===t.length?t[3]:n):(this._center=(0,a.o8)(t.center),this.radius=t.radius)}get isValid(){return this.radius>=0}invalidate(){this.radius=-1}get center(){return this._center}set center(t){(0,s.C)(this.center,t)}exactEquals(t){return(0,s.aI)(this._center,t.center)&&this.radius===t.radius}copyFrom(t){return t!==this&&((0,s.C)(this._center,t.center),this.radius=t.radius),this}clone(){return new d(this.center,this.radius)}toVec4(){return(0,c.fA)(this.center[0],this.center[1],this.center[2],this.radius)}contains(t){return(0,s.hG)(this.center,t)<=this.radius**2}intersects(t){const n=this.radius+t.radius;return(0,s.hG)(this.center,t.center)<=n*n}intersectRay(t,n){if(null==t)return!1;if(!this._intersect(t,m))return!1;let{t0:e,t1:r}=m;if((e<0||r<e&&r>0)&&(e=r),e<0)return!1;if(n){const{origin:r,direction:i}=t;n[0]=r[0]+i[0]*e,n[1]=r[1]+i[1]*e,n[2]=r[2]+i[2]*e}return!0}intersectLine(t,n){const e=(0,h.Cr)(t,n);if(!this._intersect(e,m))return[];const{origin:r,direction:o}=e,{t0:c,t1:u}=m,f=t=>{const n=(0,a.vt)();return(0,s.Ln)(n,r,o,t),this.projectPoint(n,n)};return Math.abs(c-u)<(0,i.FD)()?[f(c)]:[f(c),f(u)]}_intersect(t,n){const{origin:e,direction:r}=t,i=M;i[0]=e[0]-this.center[0],i[1]=e[1]-this.center[1],i[2]=e[2]-this.center[2];const o=r[0]*r[0]+r[1]*r[1]+r[2]*r[2];if(0===o)return!1;const s=2*(r[0]*i[0]+r[1]*i[1]+r[2]*i[2]),a=s*s-4*o*(i[0]*i[0]+i[1]*i[1]+i[2]*i[2]-this.radius**2);if(a<0)return!1;const c=Math.sqrt(a);return n.t0=(-s-c)/(2*o),n.t1=(-s+c)/(2*o),!0}projectPoint(t,n){const e=(0,s.Re)(l.rq.get(),t,this.center),r=(0,s.hs)(l.rq.get(),e,this.radius/(0,s.Bw)(e));return(0,s.WQ)(n,r,this.center)}closestPointOnSilhouette(t,n){const e=l.rq.get(),r=l.Rc.get();(0,s.$A)(e,t.origin,t.direction),(0,s.$A)(n,e,t.origin),(0,s.hs)(n,n,1/(0,s.Bw)(n)*this.radius);const i=this._angleToSilhouette(t.origin),a=(0,f.g7)(t.origin,n);return(0,o.$0)(r,a+i,e),(0,s.Z0)(n,n,r),n}frustumCoverage(t,n,e){const r=this.radius,i=r*r,o=t+.5*Math.PI,s=n*n+i-2*Math.cos(o)*n*r,a=Math.sqrt(s),c=s-i;if(c<=0)return.5;const u=Math.sqrt(c),h=Math.acos(u/a)-Math.asin(r/(a/Math.sin(o)));return Math.min(1,(h+.5*e)/e)}_angleToSilhouette(t){const n=(0,s.Re)(l.rq.get(),t,this.center),e=(0,s.Bw)(n),i=this.radius,o=i+Math.abs(i-e);return(0,r.XM)(i/o)}union(t){const n=(0,s.Io)(this._center,t.center),e=this.radius,r=t.radius;return n+r<e?this:n+e<r?(this.copyFrom(t),this):((0,s.Cc)(this._center,this._center,t.center,(n+r-e)/(2*n)),this.radius=(n+e+r)/2,this)}toJSON(){return{center:this.center,radius:this.radius}}signedDistanceToPlane(t){const{center:n,radius:e}=this,r=t[0]*n[0]+t[1]*n[1]+t[2]*n[2]+t[3];return r<0?Math.min(r+e,0):Math.max(r-e,0)}}new d;const m={t0:0,t1:0},M=(0,a.vt)();(0,a.vt)(),(0,a.vt)()},44280(t,n,e){e.d(n,{g7:()=>a,gr:()=>s});var r=e(34727),i=e(35522),o=e(51850);function s(t,n){return(0,i.Om)(t,n)/(0,i.Bw)(t)}function a(t,n){const e=(0,i.Om)(t,n)/((0,i.Bw)(t)*(0,i.Bw)(n));return-(0,r.XM)(e)}(0,o.vt)(),(0,o.vt)()},32114(t,n,e){e.d(n,{Rc:()=>d,rq:()=>f,Km:()=>l}),e(44208);var r=e(26390),i=e(29242),o=e(9093),s=e(82534),a=e(48163),c=e(51850),u=e(91829);class h{constructor(t){this._create=t,this._items=new Array,this._itemsPtr=0}get(){return 0===this._itemsPtr&&(0,r.d)(()=>this._reset()),this._itemsPtr>=this._items.length&&this._items.push(this._create()),this._items[this._itemsPtr++]}_reset(){const t=2*this._itemsPtr;this._items.length>t&&(this._items.length=t),this._itemsPtr=0}static createVec2f64(){return new h(a.vt)}static createVec3f64(){return new h(c.vt)}static createVec4f64(){return new h(u.vt)}static createMat3f64(){return new h(i.vt)}static createMat4f64(){return new h(o.vt)}static createQuatf64(){return new h(s.vt)}get test(){}}h.createVec2f64();const f=h.createVec3f64(),l=h.createVec4f64(),d=(h.createMat3f64(),h.createMat4f64());h.createQuatf64()},32728(t,n,e){e.d(n,{YH:()=>s,nu:()=>a,wp:()=>o}),e(34727);var r=e(35522),i=e(51850);function o(t,n){const e=Math.sqrt(n[0]*n[0]+n[4]*n[4]+n[8]*n[8]),i=Math.sqrt(n[1]*n[1]+n[5]*n[5]+n[9]*n[9]),o=Math.sqrt(n[2]*n[2]+n[6]*n[6]+n[10]*n[10]);return(0,r.hZ)(t,e,i,o),t}function s(t,n,e){e=e||t;const i=(0,r.Om)(t,n);(0,r.hZ)(e,t[0]-i*n[0],t[1]-i*n[1],t[2]-i*n[2]),(0,r.S8)(e,e)}function a(t,n,e,o=(0,i.vt)()){const s=(0,r.Bw)(t),a=(0,r.Bw)(n),h=(0,r.Om)(t,n)/(s*a);if(h<.9999999999999999){const i=Math.acos(h),f=((1-e)*s+e*a)/Math.sin(i),l=f/s*Math.sin((1-e)*i),d=f/a*Math.sin(e*i);return(0,r.hs)(c,t,l),(0,r.hs)(u,n,d),(0,r.WQ)(o,c,u)}return(0,r.Cc)(o,t,n,e)}(0,i.vt)(),(0,i.vt)(),(0,i.vt)();const c=(0,i.vt)(),u=(0,i.vt)()},70491(t,n,e){e.r(n),e.d(n,{default:()=>J});var r=e(32198),i=e(17676),o=e(24326),s=e(91429),a=e(35522),c=e(51850),u=e(11964),h=e(94008),f=e(93687),l=e(15142),d=e(65720),m=e(71351),M=e(620);class b{get bounds(){return this._root.bounds}get halfSize(){return this._root.halfSize}get root(){return this._root.node}get maximumObjectsPerNode(){return this._maximumObjectsPerNode}get maximumDepth(){return this._maximumDepth}get objectCount(){return this._objectCount}constructor(t,n){this.objectToBoundingSphere=t,this._maximumObjectsPerNode=10,this._maximumDepth=20,this._degenerateObjects=new Set,this._root=new g,this._objectCount=0,n&&(void 0!==n.maximumObjectsPerNode&&(this._maximumObjectsPerNode=n.maximumObjectsPerNode),void 0!==n.maximumDepth&&(this._maximumDepth=n.maximumDepth))}destroy(){this._degenerateObjects.clear(),g.clearPool(),q[0]=null,D.prune(),Z.prune()}add(t){const n=Array.from(t);this._grow(n);const e=g.acquire();for(const t of n)++this._objectCount,this._isDegenerate(t)?this._degenerateObjects.add(t):(e.init(this._root),this._add(t,e));g.release(e)}remove(t,n=null){this._objectCount-=t.length;const e=g.acquire();for(const r of t){const t=n??this.objectToBoundingSphere(r);E(t.radius)?(e.init(this._root),y(r,t,e)):this._degenerateObjects.delete(r)}g.release(e),this._shrink()}update(t,n){if(!E(n.radius)&&this._isDegenerate(t))return;const e=function(t){return q[0]=t,q}(t);this.remove(e,n),this.add(e)}forEachAlongRay(t,n,e){const r=(0,m.LV)(t,n);p(this._root,t=>{if(!function(t,n){return j(n.bounds.center,2*-n.halfSize,z),j(n.bounds.center,2*n.halfSize,V),(0,M.O_)(t.origin,t.direction,z,V)}(r,t))return!1;const n=t.node;return n.terminals.forAll(t=>{this._intersectsObject(r,t)&&e(t)}),null!==n.residents&&n.residents.forAll(t=>{this._intersectsObject(r,t)&&e(t)}),!0})}forEachAlongRayWithVerticalOffset(t,n,e,r){const i=(0,m.LV)(t,n);p(this._root,t=>{if(!function(t,n,e){return j(n.bounds.center,2*-n.halfSize,z),j(n.bounds.center,2*n.halfSize,V),e.applyToMinMax(z,V),(0,M.O_)(t.origin,t.direction,z,V)}(i,t,r))return!1;const n=t.node;return n.terminals.forAll(t=>{this._intersectsObjectWithOffset(i,t,r)&&e(t)}),null!==n.residents&&n.residents.forAll(t=>{this._intersectsObjectWithOffset(i,t,r)&&e(t)}),!0})}forEach(t){for(const n of this.values())t(n)}*values(){for(const t of this._nodeIteratorValues()){const n=t.node;yield*n.terminals,null!==n.residents&&(yield*n.residents)}yield*this.degenerateObjectValues()}forEachDegenerateObject(t){this._degenerateObjects.forEach(t)}*degenerateObjectValues(){yield*this._degenerateObjects.values()}findClosest(t,n,e,r=()=>!0,i=1/0){let o=1/0,s=1/0,c=null;const u=O(t,n),h=a=>{if(--i,!r(a))return;const u=this.objectToBoundingSphere(a);if(!(0,d.m7)(e,u))return;const h=I(t,n,u.center),f=h-u.radius,l=h+u.radius;f<o&&(o=f,s=l,c=a)};return v(this._root,r=>{if(i<=0||!(0,d.ZU)(e,r.bounds.center,2*r.bounds.radius))return!1;if((0,a.hs)(F,u,2*r.halfSize),(0,a.WQ)(F,F,r.bounds.center),I(t,n,F)>s)return!1;const o=r.node;return o.terminals.forAll(t=>h(t)),null!==o.residents&&o.residents.forAll(t=>h(t)),!0},t,n),c}forEachInDepthRange(t,n,e,r,i,o,s){let c=-1/0,u=1/0;const h={setRange:t=>{1===e?(c=Math.max(c,t.near),u=Math.min(u,t.far)):(c=Math.max(c,-t.far),u=Math.min(u,-t.near))}};h.setRange(r);const f=I(n,e,t),l=O(n,e),m=O(n,-e),M=t=>{if(!s(t))return;const r=this.objectToBoundingSphere(t),a=I(n,e,r.center)-f,l=a-r.radius,m=a+r.radius;l>u||m<c||!(0,d.m7)(o,r)||i(t,h)};v(this._root,t=>{if(!(0,d.ZU)(o,t.bounds.center,2*t.bounds.radius))return!1;if((0,a.hs)(F,l,2*t.halfSize),(0,a.WQ)(F,F,t.bounds.center),I(n,e,F)-f>u)return!1;if((0,a.hs)(F,m,2*t.halfSize),(0,a.WQ)(F,F,t.bounds.center),I(n,e,F)-f<c)return!1;const r=t.node;return r.terminals.forAll(t=>M(t)),null!==r.residents&&r.residents.forAll(t=>M(t)),!0},n,e)}forEachNode(t){p(this._root,n=>t(n.node,n.bounds,n.halfSize,n.depth))}forEachIntersectingFrustum(t,n,e=()=>!0){for(const r of this.intersectingFrustumValues(t,e))n(r)}*intersectingFrustumValues(t,n=()=>!0){for(const e of this._nodeIteratorValues(n=>(0,d.ZU)(t,n.bounds.center,2*n.bounds.radius))){const r=e.node;for(const e of r.terminals)n(e)&&(0,d.m7)(t,this.objectToBoundingSphere(e))&&(yield e);if(null!==r.residents)for(const e of r.residents)n(e)&&(0,d.m7)(t,this.objectToBoundingSphere(e))&&(yield e)}}*_nodeIteratorValues(t=()=>!0){yield*_(this._root,t)}forEachNeighbor(t,n){const e=n.radius,r=n.center,i=e=>{const r=this.objectToBoundingSphere(e);return!n.intersects(r)||t(e)};let o=!0;const s=t=>{o&&(o=i(t))};p(this._root,t=>{const n=2*t.bounds.radius,i=e+n;if((0,a.hG)(t.bounds.center,r)-i*i>0)return!1;const c=t.node;return c.terminals.forAll(s),o&&null!==c.residents&&c.residents.forAll(s),o}),o&&this.forEachDegenerateObject(s)}_intersectsObject(t,n){const e=this.objectToBoundingSphere(n);return!(e.radius>0)||e.intersectRay(t)}_intersectsObjectWithOffset(t,n,e){const r=this.objectToBoundingSphere(n);return!(r.radius>0)||e.applyToBoundingSphere(r).intersectRay(t)}_add(t,n){n.advanceTo(this.objectToBoundingSphere(t))?n.node.terminals.push(t):(n.node.residents.push(t),n.node.residents.length>this._maximumObjectsPerNode&&n.depth<this._maximumDepth&&this._split(n))}_split(t){const n=t.node.residents;t.node.residents=null;for(let e=0;e<n.length;e++){const r=g.acquire().init(t);this._add(n.at(e),r),g.release(r)}}_grow(t){if(T(t,t=>this.objectToBoundingSphere(t),B),E(B.radius)&&!this._fitsInsideTree(B))if(x(this._root.node))this._root.bounds.copyFrom(B),this._root.halfSize=1.25*this._root.bounds.radius,this._root.updateBoundsRadiusFromHalfSize();else{const t=this._rootBoundsForRootAsSubNode(B);this._placingRootViolatesMaxDepth(t)?this._rebuildTree(B,t):this._growRootAsSubNode(t),g.release(t)}}_rebuildTree(t,n){L.center=n.bounds.center,L.radius=n.halfSize,T([t,L],t=>t,k);const e=g.acquire().init(this._root);this._root.initFrom(null,k,k.radius),this._root.increaseHalfSize(1.25),p(e,t=>(this.add(t.node.terminals.data),null!==t.node.residents&&this.add(t.node.residents.data),!0)),g.release(e)}_placingRootViolatesMaxDepth(t){const n=Math.log(t.halfSize/this._root.halfSize)*Math.LOG2E;let e=0;return p(this._root,t=>(e=Math.max(e,t.depth),e+n<=this._maximumDepth)),e+n>this._maximumDepth}_rootBoundsForRootAsSubNode(t){const n=t.radius,e=t.center;let r=-1/0;const i=this._root.bounds.center,o=this._root.halfSize;for(let t=0;t<3;t++){const s=i[t]-o-(e[t]-n),a=e[t]+n-(i[t]+o),c=Math.max(0,Math.ceil(s/(2*o))),u=Math.max(0,Math.ceil(a/(2*o)))+1,h=2**Math.ceil(Math.log(c+u)*Math.LOG2E);r=Math.max(r,h),Q[t].min=c,Q[t].max=u}for(let t=0;t<3;t++){let n=Q[t].min,e=Q[t].max;const s=(r-(n+e))/2;n+=Math.ceil(s),e+=Math.floor(s);const a=i[t]-o-n*o*2;R.center[t]=a+(e+n)*o}const s=r*o;return R.radius=s*P,g.acquire().initFrom(null,R,s,0)}_growRootAsSubNode(t){const n=this._root.node;B.center=this._root.bounds.center,B.radius=this._root.halfSize,this._root.init(t),t.advanceTo(B,null,!0),t.node.children=n.children,t.node.residents=n.residents,t.node.terminals=n.terminals}_shrink(){for(;;){const t=this._findShrinkIndex();if(-1===t)break;this._root.advance(t),this._root.depth=0}}_findShrinkIndex(){if(0!==this._root.node.terminals.length||this._root.isLeaf())return-1;let t=null;const n=this._root.node.children;let e=0,r=0;for(;r<n.length&&null==t;)e=r++,t=n[e];for(;r<n.length;)if(n[r++])return-1;return e}_isDegenerate(t){return!E(this.objectToBoundingSphere(t).radius)}_fitsInsideTree(t){const n=this._root.bounds,e=this._root.halfSize;return t.radius<=e&&t.center[0]>=n.center[0]-e&&t.center[0]<=n.center[0]+e&&t.center[1]>=n.center[1]-e&&t.center[1]<=n.center[1]+e&&t.center[2]>=n.center[2]-e&&t.center[2]<=n.center[2]+e}_nodeToJSON(t){const n=t.children.map(t=>t?this._nodeToJSON(t):null),e=t.residents?.map(t=>this.objectToBoundingSphere(t)),r=t.terminals?.map(t=>this.objectToBoundingSphere(t));return{children:n,residents:e,terminals:r}}}class g{constructor(){this.bounds=new h.iy,this.halfSize=0,this.initFrom(null,null,0,0)}init(t){return this.initFrom(t.node,t.bounds,t.halfSize,t.depth)}initFrom(t,n,e,r=this.depth){return this.node=null!=t?t:g.createEmptyNode(),n&&this.bounds.copyFrom(n),this.halfSize=e,this.depth=r,this}increaseHalfSize(t){this.halfSize*=t,this.updateBoundsRadiusFromHalfSize()}updateBoundsRadiusFromHalfSize(){this.bounds.radius=this.halfSize*P}advance(t){let n=this.node.children[t];n||(n=g.createEmptyNode(),this.node.children[t]=n),this.node=n,this.halfSize/=2,this.depth++;const e=C[t];return this.bounds.center[0]+=e[0]*this.halfSize,this.bounds.center[1]+=e[1]*this.halfSize,this.bounds.center[2]+=e[2]*this.halfSize,this.updateBoundsRadiusFromHalfSize(),this}advanceTo(t,n,e=!1){for(;;){if(this.isTerminalFor(t))return n?.(this,-1),!0;if(this.isLeaf()){if(!e)return n?.(this,-1),!1;this.node.residents=null}const r=this._childIndex(t);n?.(this,r),this.advance(r)}}isLeaf(){return null!=this.node.residents}isTerminalFor(t){return t.radius>this.halfSize/2}_childIndex(t){const n=this.bounds.center;return(n[0]<t.center[0]?1:0)+(n[1]<t.center[1]?2:0)+(n[2]<t.center[2]?4:0)}static createEmptyNode(){return{children:[null,null,null,null,null,null,null,null],terminals:new l.A({shrink:!0}),residents:new l.A({shrink:!0})}}static{this._pool=new f.A(()=>new g)}static acquire(){return g._pool.acquire()}static release(t){g._pool.release(t)}static clearPool(){g._pool.prune()}}function*_(t,n=()=>!0){const e=[g.acquire().init(t)];for(;0!==e.length;){const t=e.pop();if(n(t)){if(yield t,!t.isLeaf())for(let n=0;n<t.node.children.length;n++)t.node.children[n]&&e.push(g.acquire().init(t).advance(n));g.release(t)}}}function p(t,n){const e=_(t,n);for(const t of e);}function v(t,n,e,r=1){let i=g.acquire().init(t);const o=[i];for(function(t,n,e){if(!Z.length)for(let t=0;t<8;++t)Z.push({index:0,distance:0});for(let e=0;e<8;++e){const r=C[e];Z.data[e].index=e,Z.data[e].distance=I(t,n,r)}Z.sort((t,n)=>t.distance-n.distance);for(let t=0;t<8;++t)e[t]=Z.data[t].index}(e,r,W);0!==o.length;){if(i=o.pop(),n(i)&&!i.isLeaf())for(let t=7;t>=0;--t){const n=W[t];i.node.children[n]&&o.push(g.acquire().init(i).advance(n))}g.release(i)}}function y(t,n,e){D.clear();const r=e.advanceTo(n,(t,n)=>{D.push(t.node),D.push(n)})?e.node.terminals:e.node.residents;if(r.removeUnordered(t),0===r.length)for(let t=D.length-2;t>=0&&S(D.data[t],D.data[t+1]);t-=2);}function S(t,n){return n>=0&&(t.children[n]=null),!!x(t)&&(null===t.residents&&(t.residents=new l.A({shrink:!0})),!0)}function x(t){if(0!==t.terminals.length)return!1;if(null!==t.residents)return 0===t.residents.length;for(let n=0;n<t.children.length;n++)if(t.children[n])return!1;return!0}function w(t,n){t[0]=Math.min(t[0],n.center[0]-n.radius),t[1]=Math.min(t[1],n.center[1]-n.radius),t[2]=Math.min(t[2],n.center[2]-n.radius)}function A(t,n){t[0]=Math.max(t[0],n.center[0]+n.radius),t[1]=Math.max(t[1],n.center[1]+n.radius),t[2]=Math.max(t[2],n.center[2]+n.radius)}function j(t,n,e){e[0]=t[0]+n,e[1]=t[1]+n,e[2]=t[2]+n}function T(t,n,e){z[0]=1/0,z[1]=1/0,z[2]=1/0,V[0]=-1/0,V[1]=-1/0,V[2]=-1/0;for(const e of t){const t=n(e);E(t.radius)&&(w(z,t),A(V,t))}(0,a.Cc)(e.center,z,V,.5),e.radius=Math.max(V[0]-z[0],V[1]-z[1],V[2]-z[2])/2}function O(t,n){let e,r=1/0;for(let i=0;i<8;++i){const o=I(t,n,N[i]);o<r&&(r=o,e=N[i])}return e}function I(t,n,e){return n*(t[0]*e[0]+t[1]*e[1]+t[2]*e[2])}function E(t){return!isNaN(t)&&t!==-1/0&&t!==1/0&&t>0}const C=[(0,c.fA)(-1,-1,-1),(0,c.fA)(1,-1,-1),(0,c.fA)(-1,1,-1),(0,c.fA)(1,1,-1),(0,c.fA)(-1,-1,1),(0,c.fA)(1,-1,1),(0,c.fA)(-1,1,1),(0,c.fA)(1,1,1)],N=[(0,c.fA)(-1,-1,-1),(0,c.fA)(-1,-1,1),(0,c.fA)(-1,1,-1),(0,c.fA)(-1,1,1),(0,c.fA)(1,-1,-1),(0,c.fA)(1,-1,1),(0,c.fA)(1,1,-1),(0,c.fA)(1,1,1)],P=Math.sqrt(3),q=[null],R=new h.iy,F=(0,c.vt)(),z=(0,c.vt)(),V=(0,c.vt)(),D=new l.A,B=new h.iy,L=new h.iy,k=new h.iy,Q=[{min:0,max:0},{min:0,max:0},{min:0,max:0}],Z=new l.A,W=[0,0,0,0,0,0,0,0];var Y=e(44801);function H(t,n,e){const r=new h.iy;return(0,a.hs)(r.center,t,.5),(0,a.Ln)(r.center,r.center,n,.5),r.radius=(0,a.Io)(r.center,t),(0,a.WQ)(r.center,r.center,e),r}class X{constructor(t,n,e){this.objectId=t,this.target=n,this.distance=e}}class G extends X{constructor(t,n,e){super(t,n,e),this.type="vertex"}}class U extends X{constructor(t,n,e,r,i){super(t,n,e),this.start=r,this.end=i,this.type="edge"}}let $=class{constructor(){this._idToComponent=new Map,this._components=new b(t=>t.bounds),this._edges=new b(t=>t.bounds),this._tmpLineSegment=(0,u.vt)(),this._tmpP1=(0,c.vt)(),this._tmpP2=(0,c.vt)(),this._tmpP3=(0,c.vt)(),this.remoteClient=null}async fetchCandidates(t,n){await Promise.resolve(),(0,i.Te)(n);const e=t;e.mbs=new h.iy(t.mbsJSON),await this._ensureEdgeLocations(e,n);const r=[];return this._edges.forEachNeighbor(t=>(this._addCandidates(e,t,r),r.length<1e3),e.mbs),{result:{candidates:r}}}async _ensureEdgeLocations(t,n){const e=[];if(this._components.forEachNeighbor(t=>{if(null==t.info){const{id:n,uid:r}=t;e.push({id:n,uid:r})}return!0},t.mbs),!e.length)return;const r={components:e},i=await this.remoteClient.invoke("fetchAllEdgeLocations",r,n??{});for(const t of i.components)this._setFetchEdgeLocations(t)}async add(t){const n=new tt(t.id,new h.iy(t.bounds));return this._idToComponent.set(n.id,n),this._components.add([n]),{result:{}}}async remove(t){const n=this._idToComponent.get(t.id);if(n){const t=[];this._edges.forEachNeighbor(e=>(e.component===n&&t.push(e),!0),n.bounds),this._edges.remove(t),this._components.remove([n]),this._idToComponent.delete(n.id)}return{result:{}}}_setFetchEdgeLocations(t){const n=this._idToComponent.get(t.id);if(null==n||t.uid!==n.uid)return;const e=Y.HY.createView(t.locations),r=new Array(e.count),i=(0,c.vt)(),o=(0,c.vt)();for(let s=0;s<e.count;s++){e.position0.getVec(s,i),e.position1.getVec(s,o);const a=H(i,o,t.origin),c=new nt(n,s,a);r[s]=c}this._edges.add(r);const{objectIds:s,origin:a}=t;n.info={locations:e,objectIds:s,origin:a}}_addCandidates(t,n,e){const{info:r}=n.component,{origin:i,objectIds:o}=r,s=r.locations,c=s.position0.getVec(n.index,this._tmpP1),u=s.position1.getVec(n.index,this._tmpP2);(0,a.WQ)(c,c,i),(0,a.WQ)(u,u,i);const h=o[s.componentIndex.get(n.index)];this._addEdgeCandidate(t,h,c,u,e),K(t,h,c,e),K(t,h,u,e)}_addEdgeCandidate(t,n,e,r,i){if(!t.returnEdge)return;const o=t.mbs.center,s=(0,u.Cr)(e,r,this._tmpLineSegment),h=(0,u._I)(s,o,this._tmpP3);t.mbs.contains(h)&&i.push(new U(n,(0,c.o8)(h),(0,a.Io)(o,h),(0,c.o8)(e),(0,c.o8)(r)))}};$=(0,r.Cg)([(0,s.$K)("esri.views.interactive.snapping.featureSources.sceneLayerSource.SceneLayerSnappingSourceWorker")],$);const J=$;function K(t,n,e,r){t.returnVertex&&t.mbs.contains(e)&&r.push(new G(n,(0,c.o8)(e),(0,a.Io)(t.mbs.center,e)))}class tt{constructor(t,n){this.id=t,this.bounds=n,this.info=null,this.uid=(0,o.c)()}}class nt{constructor(t,n,e){this.component=t,this.index=n,this.bounds=e}}}}]);