@arcgis/core 6.0.0-next.34 → 6.0.0-next.36

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 (232) hide show
  1. package/Basemap.d.ts +2 -2
  2. package/analysis/ShadowCastAnalysis.d.ts +11 -5
  3. package/arcgisGlobal.d.ts +1 -0
  4. package/assets/esri/core/libs/libtess/libtess-f32.wasm +0 -0
  5. package/assets/esri/core/libs/libtess/libtess-f64.wasm +0 -0
  6. package/assets/esri/core/workers/RemoteClient.js +1 -1
  7. package/assets/esri/core/workers/chunks/01f55004d64309f8538b.js +1 -0
  8. package/assets/esri/core/workers/chunks/0202eb8c2b2865f99981.js +1 -0
  9. package/assets/esri/core/workers/chunks/{67e533748435253aaba6.js → 0284f608d25c654fcc11.js} +1 -1
  10. package/assets/esri/core/workers/chunks/{7810586c35dfe1437516.js → 06102715e9a8f218e07c.js} +1 -1
  11. package/assets/esri/core/workers/chunks/{6029773458ab98600f67.js → 07e5482e1fc69be5de09.js} +1 -1
  12. package/assets/esri/core/workers/chunks/08140725277de5d2e41a.js +1 -0
  13. package/assets/esri/core/workers/chunks/{2d9a1f23ec6ce90723ac.js → 0d99bfb75dcb9fa29080.js} +1 -1
  14. package/assets/esri/core/workers/chunks/10ad7b35b6800d40444e.js +1 -0
  15. package/assets/esri/core/workers/chunks/1132e28aaa5825b10b6e.js +1 -0
  16. package/assets/esri/core/workers/chunks/{dd30b02c5978c1c5f511.js → 155861fbd0e5fc2db80c.js} +1 -1
  17. package/assets/esri/core/workers/chunks/165ca7a97b611c8f26c4.js +1 -0
  18. package/assets/esri/core/workers/chunks/1ae0c9345626e70affd3.js +2 -0
  19. package/assets/esri/core/workers/chunks/{cd355baab983033c3ef0.js → 1ec772eaa63eb6937231.js} +1 -1
  20. package/assets/esri/core/workers/chunks/{5c04835b0b52461183cd.js → 1fd82fcba2758741996a.js} +1 -1
  21. package/assets/esri/core/workers/chunks/21e1d423ee33f916547e.js +1 -0
  22. package/assets/esri/core/workers/chunks/{e8e54faf947a582b4cf7.js → 247617c0dbae2386ab3b.js} +1 -1
  23. package/assets/esri/core/workers/chunks/{97ec46605f16333144b7.js → 26ea39dfdf887f357fce.js} +1 -1
  24. package/assets/esri/core/workers/chunks/{85de980c5b296ec69323.js → 279089a6a3f08022c678.js} +1 -1
  25. package/assets/esri/core/workers/chunks/{b657363113f4a37e634b.js → 3223f9fbc76ba9ef8d13.js} +1 -1
  26. package/assets/esri/core/workers/chunks/322b22a5d54e404bebd5.js +1 -0
  27. package/assets/esri/core/workers/chunks/{122e75b21699a4e83b15.js → 338d800d4efcc91cead1.js} +1 -1
  28. package/assets/esri/core/workers/chunks/3537fe95b83a13b156cc.js +1 -0
  29. package/assets/esri/core/workers/chunks/{f09bc86cd52224febfcb.js → 3b380e64566a6cce59e2.js} +1 -1
  30. package/assets/esri/core/workers/chunks/{a1e8209d00809c9520a0.js → 3fe4c89acd325d36618d.js} +1 -1
  31. package/assets/esri/core/workers/chunks/449a2dee17b54946f245.js +1 -0
  32. package/assets/esri/core/workers/chunks/{311e4969f19df63451dd.js → 4e5405134d079bdf9b7a.js} +1 -1
  33. package/assets/esri/core/workers/chunks/{d070fcb73ce274ab80e4.js → 5504ec9bd9ee4d10af07.js} +1 -1
  34. package/assets/esri/core/workers/chunks/552c36b40e5a5ec117fb.js +1 -0
  35. package/assets/esri/core/workers/chunks/5622f3faa59434772857.js +1 -0
  36. package/assets/esri/core/workers/chunks/59a1b637d2c107504a04.js +1 -0
  37. package/assets/esri/core/workers/chunks/59a88dd53f8806bbec06.js +1 -0
  38. package/assets/esri/core/workers/chunks/5c2fe67527c9d7b4dba3.js +1 -0
  39. package/assets/esri/core/workers/chunks/5d781c2c6204cffffd0d.js +1 -0
  40. package/assets/esri/core/workers/chunks/61d36730564c5ac5edab.js +1 -0
  41. package/assets/esri/core/workers/chunks/6604272ef6fe85279032.js +1 -0
  42. package/assets/esri/core/workers/chunks/{90c1d10eae7ae71889b0.js → 7400b8c454b47ee4fb3c.js} +1 -1
  43. package/assets/esri/core/workers/chunks/796c6195b6bf59dcc9bd.js +1 -0
  44. package/assets/esri/core/workers/chunks/7b45ac83e279fe9516a5.js +1 -0
  45. package/assets/esri/core/workers/chunks/{2de077c7b971f2c215a6.js → 7ddbde8fdd1cf3c53f50.js} +1 -1
  46. package/assets/esri/core/workers/chunks/804606b194dc9e71d088.js +1 -0
  47. package/assets/esri/core/workers/chunks/8102f0bf5707c3be3310.js +1 -0
  48. package/assets/esri/core/workers/chunks/{676c8c0329d68f9f3ac4.js → 81bcc495e6eaf2cf7474.js} +1 -1
  49. package/assets/esri/core/workers/chunks/{d1d6154b4af1c9cc497b.js → 934e1f2153e6fad6ed23.js} +1 -1
  50. package/assets/esri/core/workers/chunks/{e096c1d9d53af74d3207.js → 990e96139b5a1dccb061.js} +1 -1
  51. package/assets/esri/core/workers/chunks/{f28b63c1179366dac8a2.js → 9e2c30b67bab5795306e.js} +1 -1
  52. package/assets/esri/core/workers/chunks/{9184c947cdefe06bf551.js → a18c3cbe505a19d29569.js} +1 -1
  53. package/assets/esri/core/workers/chunks/aa6ee2aa4ff6e6d41efb.js +1 -0
  54. package/assets/esri/core/workers/chunks/{3fd5c3cd8457ddc68798.js → aa779896fd9e5c341349.js} +1 -1
  55. package/assets/esri/core/workers/chunks/ac10c7d2c4829a150037.js +1 -0
  56. package/assets/esri/core/workers/chunks/{e0a7a75709121a26f255.js → afc8a9847f31bb66b13b.js} +1 -1
  57. package/assets/esri/core/workers/chunks/c7adb7b77721c75891f4.js +1 -0
  58. package/assets/esri/core/workers/chunks/{bead830a677690eeb6fb.js → ce8ef2eec290e1df6b2a.js} +1 -1
  59. package/assets/esri/core/workers/chunks/d3369ffed19f4c264dcd.js +1 -0
  60. package/assets/esri/core/workers/chunks/d3412518a7b518860fbb.js +1 -0
  61. package/assets/esri/core/workers/chunks/{3048e74e6246324ce6fc.js → d5916500514a41a4758f.js} +1 -1
  62. package/assets/esri/core/workers/chunks/{c034c30e577d620b8e28.js → dac69c0047488fdf986d.js} +1 -1
  63. package/assets/esri/core/workers/chunks/dcc782e4bf9e8a8202f9.js +1 -0
  64. package/assets/esri/core/workers/chunks/dcdf837a452dc0cac582.js +1 -0
  65. package/assets/esri/core/workers/chunks/{19a4fa965b70fc6f78f6.js → e209cb1f3f14bf576ebe.js} +1 -1
  66. package/assets/esri/core/workers/chunks/e67ea2f1714e5abeae44.js +1 -0
  67. package/assets/esri/core/workers/chunks/e8fb2ba7b7a4f0916325.js +1 -0
  68. package/assets/esri/core/workers/chunks/efcd38aad9aa667001b2.js +1 -0
  69. package/assets/esri/core/workers/chunks/{3aafdb905c697bc9b1ad.js → f372f4eb5527238c46f5.js} +1 -1
  70. package/assets/esri/core/workers/chunks/f497968055af459c5da4.js +1 -0
  71. package/assets/esri/core/workers/chunks/f7123ba1286f64e13e91.js +1 -0
  72. package/assets/esri/core/workers/chunks/fcb4707c2e95099b9f30.js +1 -0
  73. package/assets/esri/libs/lyr3d/lyr3DMain.wasm +0 -0
  74. package/assets/esri/libs/lyr3d/lyr3DWorker.wasm +0 -0
  75. package/chunks/BlurEmission.glsl.js +9 -4
  76. package/chunks/RibbonLine.glsl.js +158 -84
  77. package/chunks/Terrain.glsl.js +9 -9
  78. package/chunks/libtess-f32.js +1 -1
  79. package/chunks/libtess-f64.js +1 -1
  80. package/chunks/lyr3DMain.js +1 -1
  81. package/chunks/lyr3DWorker.js +2 -2
  82. package/config.d.ts +3 -3
  83. package/config.js +1 -1
  84. package/core/mathUtils.js +1 -1
  85. package/form/FormTemplate.d.ts +1 -1
  86. package/geometry/libtess.js +1 -1
  87. package/geometry/projection/projectors.js +1 -1
  88. package/identity/Credential.d.ts +1 -1
  89. package/identity/IdentityManager.d.ts +1 -1
  90. package/identity/OAuthInfo.d.ts +1 -1
  91. package/identity/ServerInfo.d.ts +1 -1
  92. package/kernel.js +1 -1
  93. package/layers/CSVLayer.js +1 -1
  94. package/layers/GaussianSplatLayer.js +1 -1
  95. package/layers/IntegratedMesh3DTilesLayer.js +1 -1
  96. package/layers/Lyr3DWasmPerSceneView.js +1 -1
  97. package/layers/VectorTileLayer.d.ts +2 -2
  98. package/layers/VideoLayer.js +1 -1
  99. package/layers/graphics/controllers/I3SOnDemandController.js +1 -1
  100. package/layers/graphics/sources/CSVSource.js +1 -1
  101. package/layers/graphics/sources/GeoJSONSource.js +1 -1
  102. package/layers/graphics/sources/MemorySource.js +2 -2
  103. package/layers/graphics/sources/support/ParquetSourceWorker.js +1 -1
  104. package/layers/graphics/sources/support/QueryTask.js +1 -1
  105. package/layers/graphics/sources/support/timeQueryUtils.js +2 -0
  106. package/layers/mixins/APIKeyMixin.d.ts +1 -1
  107. package/layers/ogc/types.d.ts +1 -1
  108. package/layers/support/TelemetryData.d.ts +28 -4
  109. package/layers/support/TimeInformation.js +1 -1
  110. package/layers/support/tiles3DUtils.js +1 -1
  111. package/layers/support/timeInfoUtils.js +2 -0
  112. package/layers/video/videoUtils.js +1 -1
  113. package/package.json +2 -2
  114. package/rest/query/executeAttributeBinsQuery.js +1 -1
  115. package/rest/query/executeForExtent.js +1 -1
  116. package/rest/query/executeForTopCount.js +1 -1
  117. package/rest/query/executeForTopExtents.js +1 -1
  118. package/rest/query/executeForTopIds.js +1 -1
  119. package/rest/query/executeTopFeaturesQuery.js +1 -1
  120. package/rest/query/operations/query.js +1 -1
  121. package/rest/query/operations/queryAttributeBins.js +1 -1
  122. package/rest/query/operations/queryTopFeatures.js +1 -1
  123. package/rest/support/timeUtils.js +1 -1
  124. package/support/timeUtils.js +1 -1
  125. package/views/2d/engine/webgl/FeatureDisplayList.js +1 -1
  126. package/views/2d/engine/webgl/GlyphMosaic.js +1 -1
  127. package/views/2d/engine/webgl/GlyphWorker.js +1 -1
  128. package/views/2d/engine/webgl/TextureManager.js +1 -1
  129. package/views/2d/engine/webgl/materialKeyUtils.js +2 -0
  130. package/views/2d/engine/webgl/mesh/MeshData.js +1 -1
  131. package/views/2d/engine/webgl/mesh/templates/shapingUtils.js +1 -1
  132. package/views/2d/engine/webgl/shaderGraph/techniques/animated/AnimatedMarkerMeshWriter.js +1 -1
  133. package/views/2d/engine/webgl/shaderGraph/techniques/animated/AnimatedPolyMeshWriters.js +1 -1
  134. package/views/2d/engine/webgl/shaderGraph/techniques/fill/ComplexOutlineFillMeshWriter.js +1 -1
  135. package/views/2d/engine/webgl/shaderGraph/techniques/fill/GradientFillMeshWriter.js +1 -1
  136. package/views/2d/engine/webgl/shaderGraph/techniques/fill/PatternFillMeshWriter.js +1 -1
  137. package/views/2d/engine/webgl/shaderGraph/techniques/fill/PatternOutlineFillMeshWriter.js +1 -1
  138. package/views/2d/engine/webgl/shaderGraph/techniques/labels/LabelMeshWriter.js +1 -1
  139. package/views/2d/engine/webgl/shaderGraph/techniques/line/GradientStrokeMeshWriter.js +1 -1
  140. package/views/2d/engine/webgl/shaderGraph/techniques/line/TexturedLineMeshWriter.js +1 -1
  141. package/views/2d/engine/webgl/shaderGraph/techniques/markers/MarkerMeshWriter.js +1 -1
  142. package/views/2d/engine/webgl/shaderGraph/techniques/text/TextMeshWriter.js +1 -1
  143. package/views/2d/layers/VideoLayerView2D.js +1 -1
  144. package/views/3d/analysis/LineOfSight/LineOfSightController.js +1 -1
  145. package/views/3d/analysis/LineOfSight/placementUtils.js +1 -1
  146. package/views/3d/analysis/ShadowCast/ShadowCastError.d.ts +40 -0
  147. package/views/3d/analysis/ShadowCast/ShadowCastError.js +2 -0
  148. package/views/3d/analysis/ShadowCast/sunlightUtils.js +2 -0
  149. package/views/3d/analysis/ShadowCastAnalysisView3D.d.ts +16 -1
  150. package/views/3d/analysis/ShadowCastAnalysisView3D.js +1 -1
  151. package/views/3d/analysis/Viewshed/placementUtils.js +1 -1
  152. package/views/3d/camera/constraintUtils/surfaceCollision.js +1 -1
  153. package/views/3d/camera/intersectionUtils.js +1 -1
  154. package/views/3d/interactive/Manipulator3D.js +1 -1
  155. package/views/3d/interactive/editingTools/draw/DrawGraphicTool3D.js +1 -1
  156. package/views/3d/interactive/editingTools/originGeometryVisualElementUtils.js +1 -1
  157. package/views/3d/layers/GaussianSplatLayerView3D.js +1 -1
  158. package/views/3d/layers/I3SMeshView3D.js +1 -1
  159. package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
  160. package/views/3d/layers/Lyr3DWorker.js +1 -1
  161. package/views/3d/layers/i3s/I3SIndex.js +1 -1
  162. package/views/3d/layers/i3s/I3SViewportQueries.js +1 -1
  163. package/views/3d/layers/i3s/LayerElevationProvider.js +1 -1
  164. package/views/3d/layers/support/FeatureMemory.js +1 -1
  165. package/views/3d/layers/support/FeatureTile.js +1 -1
  166. package/views/3d/layers/support/Tiles3DBVH.js +1 -1
  167. package/views/3d/layers/support/Tiles3DMeshIntersectionHandler.js +1 -1
  168. package/views/3d/navigation/modes/GroundNavigationMode3D.js +1 -1
  169. package/views/3d/state/Constraints.js +1 -1
  170. package/views/3d/state/NearFarHeuristic.js +1 -1
  171. package/views/3d/state/utils/groundNavigationUtils.js +1 -1
  172. package/views/3d/support/gaussianSplatting/GaussianSplatFadeHelper.js +1 -1
  173. package/views/3d/support/gaussianSplatting/GaussianSplatIntersectionHandler.js +1 -1
  174. package/views/3d/support/gaussianSplatting/GaussianSplatTextureAtlas.js +1 -1
  175. package/views/3d/support/gaussianSplatting/GaussianTile.js +1 -1
  176. package/views/3d/support/orientedBoundingBox.js +1 -1
  177. package/views/3d/support/pointsOfInterest/SurfaceGeometryUpdates.js +1 -1
  178. package/views/3d/support/sphereExtentUtils.js +1 -1
  179. package/views/3d/terrain/TerrainSurface.js +1 -1
  180. package/views/3d/terrain/TileRenderer.js +1 -1
  181. package/views/3d/terrain/tileUtils.js +1 -1
  182. package/views/3d/webgl-engine/collections/Component/ComponentObject.js +1 -1
  183. package/views/3d/webgl-engine/lib/Renderer.js +1 -1
  184. package/views/3d/webgl-engine/lib/TextTextureAtlas.js +1 -1
  185. package/views/3d/webgl-engine/lib/lodRendering/LodRenderer.js +1 -1
  186. package/views/3d/webgl.d.ts +1 -1
  187. package/views/draw/DrawTool.js +1 -1
  188. package/views/support/Scheduler.js +1 -1
  189. package/widgets/Directions.d.ts +1 -1
  190. package/widgets/OrientedImageryViewer/navigation/NavigationManager.js +1 -1
  191. package/widgets/OrientedImageryViewer/navigation/queries.js +1 -1
  192. package/widgets/OrientedImageryViewer/navigation/utils.js +1 -1
  193. package/widgets/OrientedImageryViewer.js +2 -2
  194. package/assets/esri/core/workers/chunks/0f6c0d42100c21367e5c.js +0 -1
  195. package/assets/esri/core/workers/chunks/176d0a06ebff5a29dedf.js +0 -1
  196. package/assets/esri/core/workers/chunks/18776a130d96879a68b1.js +0 -1
  197. package/assets/esri/core/workers/chunks/20a698709c3c11ff2c16.js +0 -1
  198. package/assets/esri/core/workers/chunks/24ada9511b074dc5ae27.js +0 -1
  199. package/assets/esri/core/workers/chunks/277263466837e1673f56.js +0 -1
  200. package/assets/esri/core/workers/chunks/2c8ca43563c4f3e94535.js +0 -1
  201. package/assets/esri/core/workers/chunks/379ef56f6b32494832a6.js +0 -1
  202. package/assets/esri/core/workers/chunks/38d852676677e5697864.js +0 -1
  203. package/assets/esri/core/workers/chunks/38df7b1d58c4bcf693d0.js +0 -1
  204. package/assets/esri/core/workers/chunks/507ecc3692e6d0700958.js +0 -1
  205. package/assets/esri/core/workers/chunks/5a9b7eb26f936f03d02e.js +0 -1
  206. package/assets/esri/core/workers/chunks/5f07f52bb8b7721f08d3.js +0 -1
  207. package/assets/esri/core/workers/chunks/661847f1b7044f21600f.js +0 -1
  208. package/assets/esri/core/workers/chunks/6b5c073dddd89d06ed80.js +0 -1
  209. package/assets/esri/core/workers/chunks/6ddc29a144640acb1192.js +0 -1
  210. package/assets/esri/core/workers/chunks/6ebe73f69ae822053b70.js +0 -1
  211. package/assets/esri/core/workers/chunks/6f6d1873753a9c6994aa.js +0 -1
  212. package/assets/esri/core/workers/chunks/7582654a0fc70910731c.js +0 -1
  213. package/assets/esri/core/workers/chunks/7e211d8a8ad6c6a7cf3e.js +0 -1
  214. package/assets/esri/core/workers/chunks/849f446c718e892f39ce.js +0 -1
  215. package/assets/esri/core/workers/chunks/8517d96fc8ba7b21d845.js +0 -2
  216. package/assets/esri/core/workers/chunks/a107f16cd004626b5018.js +0 -1
  217. package/assets/esri/core/workers/chunks/a65951f1d5702cfd996e.js +0 -1
  218. package/assets/esri/core/workers/chunks/bf62be00f3040f91aaee.js +0 -1
  219. package/assets/esri/core/workers/chunks/c570b90995c65bbb2e14.js +0 -1
  220. package/assets/esri/core/workers/chunks/c576bef77e34920af188.js +0 -1
  221. package/assets/esri/core/workers/chunks/caad4f475d6eb01c2850.js +0 -1
  222. package/assets/esri/core/workers/chunks/cf1ec61eb2ad147bb931.js +0 -1
  223. package/assets/esri/core/workers/chunks/daae21cf77864f3293ef.js +0 -1
  224. package/assets/esri/core/workers/chunks/dc2f93453dfa40f623ab.js +0 -1
  225. package/assets/esri/core/workers/chunks/e81173724e8de8c1e65b.js +0 -1
  226. package/assets/esri/core/workers/chunks/e83f9abee611c5b80009.js +0 -1
  227. package/assets/esri/core/workers/chunks/ec8b7476eac4718eb0ac.js +0 -1
  228. package/assets/esri/core/workers/chunks/f45064066e1ab041a0b2.js +0 -1
  229. package/assets/esri/core/workers/chunks/ffe49d9e7df081bef4a5.js +0 -1
  230. package/views/2d/engine/webgl/hashMosaic.js +0 -2
  231. package/views/3d/webgl-engine/lib/GaussianSplatPrepassDepthRenderer.js +0 -2
  232. /package/assets/esri/core/workers/chunks/{8517d96fc8ba7b21d845.js.LICENSE.txt → 1ae0c9345626e70affd3.js.LICENSE.txt} +0 -0
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[737,7420,8169],{52106(e,t,i){i.d(t,{A:()=>I});var r,s,o=i(32198),l=i(40124),n=i(69540),a=i(51447),d=i(25482),u=i(53966),p=i(36708),h=i(24326),y=i(91429),c=i(12195),g=i(65864),m=i(50498),f=i(55156),b=i(60950),v=i(54339),M=i(94128),S=i(33910);const C=Symbol("meshGeometryHandles");function w(e){if(null==e)return null;let t={};for(let i in e){let r=e[i];r&&(t[i]=r.toJSON())}return 0===Object.keys(t).length?null:t}let I=class extends((0,n.OU)(d.o)){static{r=M.Z}static{s=this}constructor(e){super(e),this[r]=!0,this.distance=null,this.isAggregate=!1,this.layer=null,this.origin=null,this.sourceLayer=null,this.statisticsAggregatedIds=void 0,this._version=0,Object.defineProperty(this,"uid",{value:(0,h.c)(),configurable:!0}),Object.defineProperty(this,"_lastMeshTransform",{value:{},configurable:!0,writable:!0,enumerable:!1}),arguments.length>1&&(0,a.eF)(u.A.getLogger(this),"Graphic",{version:"4.30"})}set aggregateGeometries(e){let t=this._get("aggregateGeometries");JSON.stringify(t)!==JSON.stringify(e)&&this._set("aggregateGeometries",e)}set attributes(e){let t=this._get("attributes");t!==e&&(this._set("attributes",e),this._notifyLayer("attributes",t,e))}set geometry(e){let t=this._get("geometry");t!==e&&(this._set("geometry",e),this._watchMeshGeometryChanges(),this._notifyLayer("geometry",t,e))}set popupTemplate(e){let t=this._get("popupTemplate");t!==e&&(this._set("popupTemplate",e),this._notifyLayer("popupTemplate",t,e))}set symbol(e){let t=this._get("symbol");t!==e&&(this._set("symbol",e),this._notifyLayer("symbol",t,e))}get version(){return this._version}set visible(e){let t=this._get("visible");t!==e&&(this._set("visible",e),this._notifyLayer("visible",t,e))}cloneShallow(){return new s({aggregateGeometries:this.aggregateGeometries,statisticsAggregatedIds:this.statisticsAggregatedIds,attributes:this.attributes,geometry:this.geometry,isAggregate:this.isAggregate,layer:this.layer,popupTemplate:this.popupTemplate,sourceLayer:this.sourceLayer,symbol:this.symbol,visible:this.visible,origin:this.origin})}getEffectivePopupTemplate(e=!1){if(this.popupTemplate)return this.popupTemplate;let t=(0,b.E_)(this.origin);if(t)return t.popupTemplate??(e?t.defaultPopupTemplate:null)??null;let i=this.origin&&"layer"in this.origin?this.origin.layer:null;for(let t of[i,this.sourceLayer,this.layer])if(t&&"object"==typeof t){if("popupTemplate"in t&&t.popupTemplate)return t.popupTemplate;if(e&&"defaultPopupTemplate"in t&&null!=t.defaultPopupTemplate)return t.defaultPopupTemplate}return null}getAttribute(e){return this.attributes?.[e]}setAttribute(e,t){if(this.attributes){let i=this.getAttribute(e);this.attributes[e]=t,this._notifyLayer("attributes",i,t,e)}else this.attributes={[e]:t}}getObjectId(){let e=(0,f.I)(this.origin);if(e)return(0,v.r)(this,e);let t=this.sourceLayer??this.layer;return t?(0,v.r)(this,t):null}getGlobalId(){let e=(0,f.I)(this.origin);if(e?.globalIdField)return this.getAttribute(e.globalIdField);let t=this.sourceLayer??this.layer;return t&&"globalIdField"in t&&t.globalIdField?this.getAttribute(t.globalIdField):null}toJSON(){let e={aggregateGeometries:w(this.aggregateGeometries),geometry:this.geometry?.toJSON()??null,symbol:this.symbol?.toJSON()??null,attributes:(0,c.W)(this.attributes)?this.attributes.toJSON():{...this.attributes},popupTemplate:this.popupTemplate?.toJSON()??null};return this.statisticsAggregatedIds?.length&&(e.aggregateIds=[...this.statisticsAggregatedIds]),null!=this.distance&&(e.distance=this.distance),e}notifyMeshTransformChanged(e={}){let{geometry:t}=this;if("mesh"===t?.type){let i={origin:t.origin,transform:t.transform};this._notifyLayer("origin-transform",i,i,e.action)}}_notifyLayer(e,t,i,r){if(this._version++,!this.layer||!("graphicChanged"in this.layer))return;let s={graphic:this,property:e,oldValue:t,newValue:i};"origin-transform"===e&&(s.action=r),"attributes"===e&&(s.attributeName=r),this.layer.graphicChanged(s)}_watchMeshGeometryChanges(){this.removeHandles(C);let e=this.geometry;"mesh"===e?.type&&this.addHandles([(0,p.z7)(()=>e.vertexSpace.origin?{localMatrix:e.transform?.localMatrix,origin:e.vertexSpace.origin}:void 0,({localMatrix:e,origin:t})=>{(this._lastMeshTransform.localMatrix!==e||this._lastMeshTransform.origin!==t)&&(this._lastMeshTransform.localMatrix=e,this._lastMeshTransform.origin=t,this.notifyMeshTransformChanged())}),(0,p.z7)(()=>({vertexAttributes:e.vertexAttributes}),()=>{e.vertexSpace.origin?(this._lastMeshTransform.localMatrix=e.transform?.localMatrix,this._lastMeshTransform.origin=e.vertexSpace.origin):(this._lastMeshTransform.localMatrix=void 0,this._lastMeshTransform.origin=void 0),this._notifyLayer("geometry",e,e)},{equals:(e,t)=>e===t,sync:!0})],C)}};(0,o.Cg)([(0,y.MZ)({value:null,json:{read:function(e){if(!e)return null;let t={};for(let i in e){let r=(0,g.rS)(e[i]);r&&(t[i]=r)}return 0===Object.keys(t).length?null:t}}})],I.prototype,"aggregateGeometries",null),(0,o.Cg)([(0,y.MZ)({value:null})],I.prototype,"attributes",null),(0,o.Cg)([(0,y.MZ)({value:null,types:m.yR,json:{read:g.rS}})],I.prototype,"geometry",null),(0,o.Cg)([(0,y.MZ)()],I.prototype,"distance",void 0),(0,o.Cg)([(0,y.MZ)({type:Boolean})],I.prototype,"isAggregate",void 0),(0,o.Cg)([(0,y.MZ)({clonable:!1})],I.prototype,"layer",void 0),(0,o.Cg)([(0,y.MZ)({clonable:"reference"})],I.prototype,"origin",void 0),(0,o.Cg)([(0,y.MZ)({type:l.A,value:null})],I.prototype,"popupTemplate",null),(0,o.Cg)([(0,y.MZ)({clonable:"reference"})],I.prototype,"sourceLayer",void 0),(0,o.Cg)([(0,y.MZ)({json:{name:"aggregateIds",read:e=>e?.map(e=>Array.isArray(e)?JSON.stringify(e):e)}})],I.prototype,"statisticsAggregatedIds",void 0),(0,o.Cg)([(0,y.MZ)({value:null,types:S.Es})],I.prototype,"symbol",null),(0,o.Cg)([(0,y.MZ)({clonable:!1,json:{read:!1,write:!1}})],I.prototype,"_version",void 0),(0,o.Cg)([(0,y.MZ)({type:Boolean,value:!0})],I.prototype,"visible",null),I=s=(0,o.Cg)([(0,y.$K)("esri.Graphic")],I)},6797(e,t,i){i.d(t,{Ui:()=>h});var r=i(69622),s=i(7762),o=i(88620);const l=new Set(["esri.Color","esri.portal.Portal","esri.symbols.support.Symbol3DAnchorPosition2D","esri.symbols.support.Symbol3DAnchorPosition3D"]);function n(e){return e instanceof r.A}function a(e){return e instanceof s.A?Object.keys(e.items):n(e)?(0,o.oY)(e).keys():e?Object.keys(e):[]}function d(e,t){return e instanceof s.A?e.items[t]:e[t]}function u(e){return e?e.declaredClass:null}function p(e,t){let i=e.diff;if(i&&"function"==typeof i)return i(e,t);let r=a(e),s=a(t);if(0===r.length&&0===s.length)return;if(!r.length||!s.length||function(e,t){return!(!Array.isArray(e)||!Array.isArray(t))&&e.length!==t.length}(e,t))return{type:"complete",oldValue:e,newValue:t};let o=s.filter(e=>!r.includes(e)),h=r.filter(e=>!s.includes(e)),y=r.filter(i=>s.includes(i)&&d(e,i)!==d(t,i)).concat(o,h).sort(),c=u(e);if(c&&l.has(c)&&y.length)return{type:"complete",oldValue:e,newValue:t};let g,m=n(e)&&n(t);for(let r of y){let s,o=d(e,r),l=d(t,r);if((m||"function"!=typeof o&&"function"!=typeof l)&&o!==l&&(null!=o||null!=l)){if(i&&i[r]&&"function"==typeof i[r])s=i[r]?.(o,l);else if(o instanceof Date&&l instanceof Date){if(o.getTime()===l.getTime())continue;s={type:"complete",oldValue:o,newValue:l}}else s="object"==typeof o&&"object"==typeof l&&u(o)===u(l)?p(o,l):{type:"complete",oldValue:o,newValue:l};null!=s&&(null==g?g={type:"partial",diff:{[r]:s}}:g.diff[r]=s)}}return g}function h(e,t){if("function"!=typeof e&&"function"!=typeof t&&(null!=e||null!=t))return null==e||null==t||"object"==typeof e&&"object"==typeof t&&u(e)!==u(t)?{type:"complete",oldValue:e,newValue:t}:p(e,t)}},55156(e,t,i){i.d(t,{I:()=>s});const r=Symbol("idFieldsProviderSymbol");function s(e){return(t=e)&&r in t?e[r]:void 0;var t}i.d(t,["e",0,r])},20737(e,t,i){i.r(t),i.d(t,{default:()=>ie});var r=i(32198),s=i(40124),o=i(56507),l=i(69540),n=i(7762),a=i(49186),d=i(36563),u=i(25728),p=i(17676),h=i(36708),y=i(91429),c=i(16930),g=i(41910),m=i(55156),f=i(60950),b=i(89808),v=i(99959);const M=Symbol("isAnnotationFeatureGraphicOrigin");var S;class C extends v.A{get[(S=M,f.ym)](){return this.layer}get[m.e](){return this.layer}get[b.Q](){return this.layer}get[g.e7](){return this.layer}constructor(e,t){super(),this[S]=!0,this.type="annotation-feature",this.layer=e,this.sublayer=t}get id(){return`${this.layer.id}:__${this.sublayer?.subtypeCode??null}__`}}var w=i(4146),I=i(52136),F=i(18768),A=i(63074),T=i(69208),Z=i(40775),j=i(47685),_=i(10086),O=i(34287),L=i(8303),x=i(54310),E=i(23502),P=i(25036),D=i(82935),k=i(4902),R=i(25482),V=i(4718),z=i(92474),N=i(10873);let q=0,G=class extends((0,R.T)((0,l.OU)((0,k.s)(z.x_)))){constructor(e){super(e),this.id=`${Date.now().toString(16)}-annotation-feature-sublayer-${q++}`,this.layerType="ArcGISAnnotationSubLayer",this.maxScale=0,this.minScale=0,this.parent=null,this.subtypeCode=null,this.type="annotation-feature-sublayer",this.visible=!0}get graphicOrigin(){return new C(this.parent,this)}get title(){return this._isOverridden("title")?this._get("title"):this.parent?.subtypes?.find(e=>e.code===this.subtypeCode)?.name??this.subtypeCode?.toString()??null}set title(e){this._override("title",e)}clone(){let e=super.clone();return this._isOverridden("title")&&(e.title=this.title),e}};(0,r.Cg)([(0,y.MZ)({readOnly:!0,clonable:!1})],G.prototype,"graphicOrigin",null),(0,r.Cg)([(0,y.MZ)({type:String,nonNullable:!0,clonable:!1,json:{write:{isRequired:!0}}})],G.prototype,"id",void 0),(0,r.Cg)([(0,y.MZ)({type:["ArcGISAnnotationSubLayer"],readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],G.prototype,"layerType",void 0),(0,r.Cg)([(0,y.MZ)((()=>{let e=(0,V.o8)(N.hG);return e.json??={},e.json.default=0,e})())],G.prototype,"maxScale",void 0),(0,r.Cg)([(0,y.MZ)((()=>{let e=(0,V.o8)(N.hn);return e.json??={},e.json.default=0,e})())],G.prototype,"minScale",void 0),(0,r.Cg)([(0,y.MZ)({clonable:!1})],G.prototype,"parent",void 0),(0,r.Cg)([(0,y.MZ)({type:Number,nonNullable:!0,json:{name:"subLayerId",write:{isRequired:!0}}})],G.prototype,"subtypeCode",void 0),(0,r.Cg)([(0,y.MZ)({type:String,nonNullable:!0,clonable:!1,json:{write:{isRequired:!0}}})],G.prototype,"title",null),(0,r.Cg)([(0,y.MZ)({readOnly:!0,json:{read:!1}})],G.prototype,"type",void 0),(0,r.Cg)([(0,y.MZ)({type:Boolean,nonNullable:!0,json:{default:!0,name:"visibility",write:!0}})],G.prototype,"visible",void 0),G=(0,r.Cg)([(0,y.$K)("esri.layers.support.AnnotationFeatureSublayer")],G);var J=i(60694),K=i(15426),$=i(17036),H=i(30524),U=i(91908),B=i(97552),W=i(30291),Q=i(36005);const Y="annotation-feature-layer",X=(0,$.p)(),ee=n.A.ofType(G);let te=class extends((0,E.Z)((0,Z.I)((0,_.j)((0,A.dM)((0,D.e)((0,j.w6)((0,P.j)((0,x.J)((0,F.b)((0,O.q)((0,L.A)((0,u.M)((0,T.d)((0,I.p)((0,l.OU)(w.A)))))))))))))))){constructor(e){super(e),this._sublayerLookup=new Map,this.barrierWeight="high",this.elementField="element",this.fields=null,this.fieldsIndex=null,this.graphicOrigin=new C(this,null),this.operationalLayerType="ArcGISAnnotationLayer",this.outFields=null,this.popupEnabled=!0,this.popupTemplate=null,this.referenceScale=0,this.source=null,this.statusField="status",this.sublayers=new ee,this.sublayerTitleMode="item-title",this.supportedPortalItemTypes=["Feature Service"],this.supportedSourceTypes=new Set(["Annotation Layer"]),this.symbolCollection=null,this.type="annotation-feature",this.unplacedAnnotationsVisible=!1,this._debouncedSaveOperations=(0,p.sg)(async(e,t,r)=>{let{save:s,saveAs:o}=await i.e(5740).then(()=>i(33359));switch(e){case 0:return s(this,t);case 1:return o(this,r,t)}}),this.addHandles((0,h.wB)(()=>this.sublayers,(e,t)=>this._handleSublayersChange(e,t),h.OH))}destroy(){this.source?.destroy()}load(e){let t=e?.signal,i=this.loadFromPortal({supportedTypes:this.supportedPortalItemTypes},e).catch(p.QP).then(async()=>{if(this.url&&null==this.layerId&&/FeatureServer|MapServer\/*$/i.test(this.url)){let e=await this._fetchFirstValidLayerId(t);null!=e&&(this.layerId=e)}if(!this.url)throw new a.A(`${Y}:missing-url`,"AnnotationFeatureLayer must be created with a url");return Promise.all([this.loadDataElement(e).then(()=>{if(!this.symbolCollection)throw new a.A(`${Y}:missing-symbol-collection`,"Invalid service with no symbol collection")}),this.initLayerProperties(await this.createGraphicsSource(t))])}).then(()=>(0,K.VA)(this,"load",e));return this.addResolvingPromise(i),Promise.resolve(this)}get editingEnabled(){return this._isOverridden("editingEnabled")?this._get("editingEnabled"):this.loaded&&null!=this.capabilities&&this.capabilities.operations.supportsEditing&&this.userHasEditingPrivileges}set editingEnabled(e){this._overrideIfSome("editingEnabled",e)}get effectiveEditingEnabled(){return!1}get defaultPopupTemplate(){return this.createPopupTemplate()}readSublayers(e,t){let i=new ee(t.subtypes.map(({code:e})=>new G({subtypeCode:e})).reverse());if(this.visibleLayers){let e=new Set(this.visibleLayers);i.forEach(t=>{t.visible=e.has(t.subtypeCode)})}return i}readTitleFromService(e,t){let{url:i}=this,r=t.name||(0,J.qg)(i)?.title;switch(this.sublayerTitleMode){case"item-title":if(i)return(0,J.yG)(i,r);break;case"item-title-and-service-name":{let e=this.portalItem?.title;if(e&&e!==r)return e=(0,J.cr)(e),r?`${e} - ${(0,J.cr)(r)}`:e;break}}return r?(0,J.cr)(r):void 0}readTitleFromPortalItem(e){return"item-title"===this.sublayerTitleMode?e:void 0}get visibleLayers(){return 0===this.sublayers.length?this._get("visibleLayers")??null:Array.from(new Set(function(e){return e.sublayers?.toArray().filter(e=>e.visible).map(e=>e.subtypeCode).sort((e,t)=>e-t)??null}(this)))}set visibleLayers(e){this._set("visibleLayers",e)}createPopupTemplate(e){return(0,W.tn)(this,e)}async createGraphicsSource(e){let t={stack:[],error:void 0,hasError:!1};try{let{default:s}=await(0,p.qr)(Promise.all([i.e(893),i.e(7),i.e(154)]).then(()=>i(60845)),e),o=new s({layer:this,supportedSourceTypes:this.supportedSourceTypes});return(0,r.mS)(t,(0,d.Bf)((0,p.u7)(e,()=>o.cancelLoad())??(0,d.hA)()),!1),await o.load({signal:e}),o}catch(e){t.error=e,t.hasError=!0}finally{(0,r.hk)(t)}}createQuery(){let e=(0,K.VZ)(this);return e.where=this.definitionExpression||"1=1",e}findSublayerForFeature(e){let t=this.fieldsIndex.get(this.subtypeField),i=e.attributes[t.name];return this.findSublayerForSubtypeCode(i)}findSublayerForSubtypeCode(e){return this._sublayerLookup.get(e)}getFieldDomain(e,t){return(0,K.Vq)(this,e,t,this.getField(e)?.domain??null)}async queryFeatures(e,t){let i=await this.load(),r=await i.source.queryFeatures(B.A.from(e)??i.createQuery(),t);if(r?.features)for(let e of r.features)e.origin=this.findSublayerForFeature(e)?.graphicOrigin??this.graphicOrigin,e.layer=e.sourceLayer=this;return r}async queryObjectIds(e,t){let i=await this.load();return i.source.queryObjectIds(B.A.from(e)??i.createQuery(),t)}async queryFeatureCount(e,t){let i=await this.load();return i.source.queryFeatureCount(B.A.from(e)??i.createQuery(),t)}async queryExtent(e,t){let i=await this.load();return i.source.queryExtent(B.A.from(e)??i.createQuery(),t)}async save(e){return this._debouncedSaveOperations(0,e)}async saveAs(e,t){return this._debouncedSaveOperations(1,t,e)}serviceSupportsSpatialReference(e){return this.loaded&&(0,U.D)(this,e)}async initLayerProperties(e){this._set("source",e),e.sourceJSON&&(this.sourceJSON=e.sourceJSON,this.read(e.sourceJSON,{origin:"service",portalItem:this.portalItem,portal:this.portalItem?.portal,url:this.parsedUrl})),this._verifySource(),(0,H.sv)(this.timeInfo,this.fieldsIndex)}async reloadFromService(e){let t=this.source;await Promise.all([t.reload({signal:e}),this.loadDataElement({signal:e})]),await this.initLayerProperties(t)}async hasDataChanged(){return(0,K.jp)(this)}_verifySource(){if(this.version&&this.version<10.8)throw new a.A(Y+":unsupported-version","The feature service must be version 10.8 or above.");let e=["ZOrder","AnnotationClassID","Element","SymbolID","Status"],t=e.filter(e=>!this.fieldsIndex.has(e));if(!this.fieldsIndex.has("FeatureID")&&!this.fieldsIndex.has("FeatureGlobalID")&&t.unshift("FeatureID","FeatureGlobalID"),t.length)throw new a.A(Y+":missing-fields","There are missing fields to operate properly",{requiredFields:e,missingFields:t})}_fetchFirstValidLayerId(e){return(0,o.A)(this.url??"",{query:{f:"json",...this.customParameters,token:this.apiKey},responseType:"json",signal:e}).then(e=>{let t=e.data;return t?(this.applyPreferredHost(t),[...t.layers||[],...t.tables||[]].find(({type:e})=>!e||this.supportedSourceTypes.has(e))?.id):void 0})}_handleSublayersChange(e,t){t&&(t.forEach(e=>{e.parent=null}),this.removeHandles("sublayers-owner"),this._sublayerLookup.clear()),e&&(e.forEach(e=>{e.parent=this,this._sublayerLookup.set(e.subtypeCode,e)}),this.addHandles([e.on("after-add",({item:e})=>{e.parent=this,this._sublayerLookup.set(e.subtypeCode,e)}),e.on("after-remove",({item:e})=>{e.parent=null,this._sublayerLookup.delete(e.subtypeCode)})],"sublayers-owner"))}};(0,r.Cg)([(0,y.MZ)({type:c.A,json:{origins:{service:{read:{source:"sourceSpatialReference"}}}}})],te.prototype,"attributeSpatialReference",void 0),(0,r.Cg)([(0,y.MZ)(N.es)],te.prototype,"barrierWeight",void 0),(0,r.Cg)([(0,y.MZ)({nonNullable:!0,json:{name:"enableEditing",write:!0}})],te.prototype,"editingEnabled",null),(0,r.Cg)([(0,y.MZ)({readOnly:!0})],te.prototype,"effectiveEditingEnabled",null),(0,r.Cg)([(0,y.MZ)({readOnly:!0})],te.prototype,"elementField",void 0),(0,r.Cg)([(0,y.MZ)({...X.fields,readOnly:!0,json:{read:!1,origins:{service:{read:!0}}}})],te.prototype,"fields",void 0),(0,r.Cg)([(0,y.MZ)(X.fieldsIndex)],te.prototype,"fieldsIndex",void 0),(0,r.Cg)([(0,y.MZ)({readOnly:!0,clonable:!1})],te.prototype,"graphicOrigin",void 0),(0,r.Cg)([(0,y.MZ)(N.id)],te.prototype,"id",void 0),(0,r.Cg)([(0,y.MZ)({type:["show","hide","hide-children"],json:{origins:{"portal-item":{read:!1,write:!1}}}})],te.prototype,"listMode",void 0),(0,r.Cg)([(0,y.MZ)({type:["ArcGISAnnotationLayer"],json:{origins:{"portal-item":{name:"layerType",write:{enabled:!0,ignoreOrigin:!0,isRequired:!0}}}}})],te.prototype,"operationalLayerType",void 0),(0,r.Cg)([(0,y.MZ)(X.outFields)],te.prototype,"outFields",void 0),(0,r.Cg)([(0,y.MZ)(N.M6)],te.prototype,"popupEnabled",void 0),(0,r.Cg)([(0,y.MZ)({type:s.A,json:{name:"popupInfo",write:!0}})],te.prototype,"popupTemplate",void 0),(0,r.Cg)([(0,y.MZ)({readOnly:!0})],te.prototype,"defaultPopupTemplate",null),(0,r.Cg)([(0,y.MZ)({readOnly:!0})],te.prototype,"referenceScale",void 0),(0,r.Cg)([(0,y.MZ)({clonable:!1,readOnly:!0})],te.prototype,"source",void 0),(0,r.Cg)([(0,y.MZ)({readOnly:!0})],te.prototype,"statusField",void 0),(0,r.Cg)([(0,y.MZ)({type:ee,json:{name:"layers",write:{ignoreOrigin:!0}}})],te.prototype,"sublayers",void 0),(0,r.Cg)([(0,Q.w)("service","sublayers",["subtypes"])],te.prototype,"readSublayers",null),(0,r.Cg)([(0,y.MZ)({type:String})],te.prototype,"sublayerTitleMode",void 0),(0,r.Cg)([(0,y.MZ)({readOnly:!0})],te.prototype,"symbolCollection",void 0),(0,r.Cg)([(0,Q.w)("service","title",["name"])],te.prototype,"readTitleFromService",null),(0,r.Cg)([(0,Q.w)("portal-item","title")],te.prototype,"readTitleFromPortalItem",null),(0,r.Cg)([(0,y.MZ)({json:{read:!1},value:"annotation-feature",readOnly:!0})],te.prototype,"type",void 0),(0,r.Cg)([(0,y.MZ)()],te.prototype,"unplacedAnnotationsVisible",void 0),(0,r.Cg)([(0,y.MZ)({type:[Number]})],te.prototype,"visibleLayers",null),te=(0,r.Cg)([(0,y.$K)("esri.layers.AnnotationFeatureLayer")],te);const ie=te},54339(e,t,i){function r(e,t){switch(t.type){case"object-id":case"unique-id-simple":return e.attributes[t.fieldName];case"unique-id-composite":{let i=[];for(let r of t.fieldNames)i.push(e.attributes[r]??null);return JSON.stringify(i)}}}function s(e,t){if("uniqueIdFields"in t&&t.uniqueIdFields?.length){if(1===t.uniqueIdFields.length)return e.attributes?.[t.uniqueIdFields[0]];let i=t.uniqueIdFields.map(t=>e.attributes?.[t]);return JSON.stringify(i)}return"objectIdField"in t&&t.objectIdField?e.attributes?.[t.objectIdField]:null}i.d(t,{W:()=>r,r:()=>s})},52136(e,t,i){var r=i(32198),s=i(91429);i.d(t,["p",0,e=>{let t=e,i=class extends t{get apiKey(){return this._isOverridden("apiKey")?this._get("apiKey"):"portalItem"in this?this.portalItem?.apiKey:null}set apiKey(e){null==e?(this._clearOverride("apiKey"),this.clear("apiKey","user")):this._override("apiKey",e)}};return(0,r.Cg)([(0,s.MZ)({type:String})],i.prototype,"apiKey",null),i=(0,r.Cg)([(0,s.$K)("esri.layers.mixins.APIKeyMixin")],i),i}])},40775(e,t,i){var r=i(32198),s=i(56507),o=i(49186),l=i(84952),n=i(91429),a=i(95250);function d(e,t){let i=e.indexOf(t);return-1===i?void 0:e[i+1]}function u(e,t){let i=d(e,t);return i&&"string"==typeof i?JSON.parse(i):null}function p(e){let t=d(e,"ReferenceScale")??0;return"string"==typeof t?parseFloat(t):t}function h(e){return u(e,"SymbolCollection")??void 0}function y(e){return u(e,"StyleCollection")??void 0}i.d(t,["I",0,e=>{let t=e,i=class extends t{async loadDataElement(e){if(!this.url||null==this.layerId)throw new o.A("fetchDataElement:missing-url-or-layerId","The layer must have a url and a layerId to fetch the data element.");let t=(0,l.fj)(this.url,"queryDataElements"),i={f:"json",layers:this.layerId},{data:r}=await(0,s.A)(t,{...e,responseType:"json",query:i}),n=r.layerDataElements.find(e=>e.layerId===this.layerId)?.dataElement;if(!n)throw new o.A("fetchDataElement:not-available","A data element for this layer could not be retrieved.");let d=n.extensionProperties?.propertySetItems??[],u=p(d),c=(0,a.S)(h(d)),g=(0,a.S)(y(d));this.read({referenceScale:u,symbolCollection:c,styleCollection:g},{origin:"service"})}};return i=(0,r.Cg)([(0,n.$K)("esri.layers.mixins.DataElementMixin")],i),i}])},47685(e,t,i){i.d(t,{Mk:()=>y,Zk:()=>p});var r=i(32198),s=i(65529),o=i(4718),l=i(91429),n=i(20816);const a=new s.bk;function d(e){return a.on("apply-edits",new WeakRef(e))}function u(e){return a.on("update-moment",new WeakRef(e))}function p(e,t,i=null,r=!1){let s=Promise.withResolvers();return r=null==t||r,a.emit("apply-edits",{serviceUrl:e,layerId:t,gdbVersion:i,mayReceiveServiceEdits:r,result:s.promise}),s}const h=Symbol();function y(e){return"object"==typeof e&&!!e&&h in e}function c(e){return"object"==typeof e&&!!e&&"gdbVersion"in e}function g(e,t,i){let r=new URL(e).host,s=n.Z3.get(r),o=e=>!e||e===s;return o(t)&&o(i)||t===i}i.d(t,["w6",0,e=>{var t;let i=e,s=class extends i{static{t=h}constructor(...e){super(...e),this[t]=!0,this._applyEditsHandler=e=>{let{serviceUrl:t,layerId:i,gdbVersion:r,mayReceiveServiceEdits:s,result:l}=e,n=t===this.url,a=null!=i&&null!=this.layerId&&i===this.layerId,d=null!=i&&this.relationships?.some(e=>e.relatedTableId===i),u=c(this),p=c(this)&&g(t,r,this.gdbVersion);if(!n||u&&!p||!a&&!d&&!s)return;let h=l.then(e=>{if(this.lastEditsEventDate=new Date,a&&(e.addedFeatures.length||e.updatedFeatures.length||e.deletedFeatures.length||e.addedAttachments.length||e.updatedAttachments.length||e.deletedAttachments.length))return this.emit("edits",(0,o.o8)(e)),e;let i=e.editedFeatures?.find(({layerId:e})=>e===this.layerId);if(i){let{adds:t,updates:r,deletes:s}=i.editedFeatures,l={edits:null,addedAttachments:[],deletedAttachments:[],updatedAttachments:[],addedFeatures:t?t.map(({attributes:e})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]})):[],deletedFeatures:s?s.map(({attributes:e})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]})):[],updatedFeatures:r?r.map(({current:{attributes:e}})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]})):[],editedFeatures:(0,o.o8)(e.editedFeatures),exceededTransferLimit:!1,historicMoment:(0,o.o8)(e.historicMoment)};return this.emit("edits",l),l}let s={edits:null,addedAttachments:[],deletedAttachments:[],updatedAttachments:[],addedFeatures:[],deletedFeatures:[],updatedFeatures:[],editedFeatures:(0,o.o8)(e.editedFeatures),exceededTransferLimit:!1,historicMoment:(0,o.o8)(e.historicMoment)};return"historicMoment"in this&&this._shouldUpdateHistoricMoment(t,r,s.historicMoment)&&this.emit("edits",s),s}).then(e=>("historicMoment"in this&&this._shouldUpdateHistoricMoment(t,r,e.historicMoment)&&(this.historicMoment=e.historicMoment),e));h.catch(()=>{}),this.emit("apply-edits",{result:h})},this._updateMomentHandler=e=>{let{serviceUrl:t,gdbVersion:i,moment:r}=e,s=t===this.url,o=c(this),l=c(this)&&g(t,i,this.gdbVersion),n=c(this)&&!g(t,this.gdbVersion,null);s&&o&&l&&n&&"historicMoment"in this&&this.historicMoment!==r&&(this.historicMoment=r)},this.when().then(()=>{this.addHandles(d(this._applyEditsHandler)),"historicMoment"in this&&this.addHandles(u(this._updateMomentHandler))},()=>{})}_shouldUpdateHistoricMoment(e,t,i){return"historicMoment"in this&&this.historicMoment!==i&&(0,n.w5)(e,t)}};return(0,r.Cg)([(0,l.MZ)()],s.prototype,"lastEditsEventDate",void 0),s=(0,r.Cg)([(0,l.$K)("esri.layers.mixins.EditBusLayer")],s),s}])},28032(e,t,i){i.d(t,{A:()=>a});var r=i(32198),s=i(69540),o=i(25482),l=i(91429),n=i(56400);let a=class extends((0,s.OU)(o.o)){constructor(e){super(e),this.creatorField=null,this.creationDateField=null,this.editorField=null,this.editDateField=null,this.realm=null,this.timeZone=null}};(0,r.Cg)([(0,l.MZ)()],a.prototype,"creatorField",void 0),(0,r.Cg)([(0,l.MZ)()],a.prototype,"creationDateField",void 0),(0,r.Cg)([(0,l.MZ)()],a.prototype,"editorField",void 0),(0,r.Cg)([(0,l.MZ)()],a.prototype,"editDateField",void 0),(0,r.Cg)([(0,l.MZ)()],a.prototype,"realm",void 0),(0,r.Cg)([(0,l.MZ)((0,n.P6)("dateFieldsTimeReference",!0))],a.prototype,"timeZone",void 0),a=(0,r.Cg)([(0,l.$K)("esri.layers.support.EditFieldsInfo")],a)},37352(e,t,i){i.d(t,{A:()=>a});var r,s=i(32198),o=i(7762),l=i(25482),n=i(91429);let a=r=class extends l.o{constructor(e){super(e),this.floorField=null,this.viewAllMode=!1,this.viewAllLevelIds=new o.A}clone(){return new r({floorField:this.floorField,viewAllMode:this.viewAllMode,viewAllLevelIds:this.viewAllLevelIds})}};(0,s.Cg)([(0,n.MZ)({type:String,json:{write:{isRequired:!0}}})],a.prototype,"floorField",void 0),(0,s.Cg)([(0,n.MZ)({json:{read:!1,write:!1}})],a.prototype,"viewAllMode",void 0),(0,s.Cg)([(0,n.MZ)({json:{read:!1,write:!1}})],a.prototype,"viewAllLevelIds",void 0),a=r=(0,s.Cg)([(0,n.$K)("esri.layers.support.LayerFloorInfo")],a)},45067(e,t,i){i.d(t,{A:()=>u});var r=i(32198),s=i(69540),o=i(66552),l=i(25482),n=i(91429);const a=new o.J({esriRelCardinalityOneToOne:"one-to-one",esriRelCardinalityOneToMany:"one-to-many",esriRelCardinalityManyToMany:"many-to-many"}),d=new o.J({esriRelRoleOrigin:"origin",esriRelRoleDestination:"destination"});let u=class extends((0,s.OU)(l.o)){constructor(e){super(e),this.cardinality=null,this.catalogId=null,this.composite=null,this.id=null,this.keyField=null,this.keyFieldInRelationshipTable=null,this.name=null,this.relatedTableId=null,this.relationshipTableId=null,this.role=null}};(0,r.Cg)([(0,n.MZ)({json:{read:a.read,write:a.write}})],u.prototype,"cardinality",void 0),(0,r.Cg)([(0,n.MZ)({json:{name:"catalogID"}})],u.prototype,"catalogId",void 0),(0,r.Cg)([(0,n.MZ)({json:{read:!0,write:!0}})],u.prototype,"composite",void 0),(0,r.Cg)([(0,n.MZ)({json:{read:!0,write:!0}})],u.prototype,"id",void 0),(0,r.Cg)([(0,n.MZ)({json:{read:!0,write:!0}})],u.prototype,"keyField",void 0),(0,r.Cg)([(0,n.MZ)({json:{read:!0,write:!0}})],u.prototype,"keyFieldInRelationshipTable",void 0),(0,r.Cg)([(0,n.MZ)({json:{read:!0,write:!0}})],u.prototype,"name",void 0),(0,r.Cg)([(0,n.MZ)({json:{read:!0,write:!0}})],u.prototype,"relatedTableId",void 0),(0,r.Cg)([(0,n.MZ)({json:{read:!0,write:!0}})],u.prototype,"relationshipTableId",void 0),(0,r.Cg)([(0,n.MZ)({json:{read:d.read,write:d.write}})],u.prototype,"role",void 0),u=(0,r.Cg)([(0,n.$K)("esri.layers.support.Relationship")],u)},41366(e,t,i){var r=i(32198),s=i(66552),o=i(53966),l=i(91429),n=i(93223);const a=(0,s.O)()({naturalLog:"natural-log",squareRoot:"square-root",percentOfTotal:"percent-of-total",log:"log",field:"field"}),d="percent-of-total",u="field";i.d(t,["K",0,e=>{let t=e,i=class extends t{constructor(){super(...arguments),this.normalizationField=null,this.normalizationMaxValue=null,this.normalizationMinValue=null,this.normalizationTotal=null}get normalizationType(){let e=this._get("normalizationType"),t=!!this.normalizationField,i=null!=this.normalizationTotal;return t||i?(e=t&&u||i&&d||null,t&&i&&o.A.getLogger(this).warn("warning: both normalizationField and normalizationTotal are set!")):(e===u||e===d)&&(e=null),e}set normalizationType(e){this._set("normalizationType",e)}};return(0,r.Cg)([(0,l.MZ)({type:String,json:{name:"parameters.normalizationField",write:!0}})],i.prototype,"normalizationField",void 0),(0,r.Cg)([(0,l.MZ)({type:Number,json:{name:"parameters.normalizationMaxValue",write:!0}})],i.prototype,"normalizationMaxValue",void 0),(0,r.Cg)([(0,l.MZ)({type:Number,json:{name:"parameters.normalizationMinValue",write:!0}})],i.prototype,"normalizationMinValue",void 0),(0,r.Cg)([(0,l.MZ)({type:Number,json:{name:"parameters.normalizationTotal",write:!0}})],i.prototype,"normalizationTotal",void 0),(0,r.Cg)([(0,n.e)(a,{name:"parameters.normalizationType"})],i.prototype,"normalizationType",null),i=(0,r.Cg)([(0,l.$K)("esri.rest.support.NormalizationBinParametersMixin")],i),i},"Q",0,a])},95250(e,t,i){function r(e){return s(e,{CIMRGBColor:o,CIMCharacterMarker:l})}function s(e,t){if(null==e)return e;if(Array.isArray(e))return e.map(e=>s(e,t));if("object"==typeof e){if("type"in e&&"string"==typeof e.type&&t[e.type])return t[e.type](e);let i={};for(let[r,o]of Object.entries(e))i[r]=s(o,t);return i}return e}function o(e){let[t,i,r,s]=e.values;return[t,i,r,255*s/100]}function l(){return{type:"CIMVectorMarker",enable:!0,size:40,colorLocked:!1,anchorPointUnits:"Relative",frame:{xmin:-10,ymin:-10,xmax:10,ymax:10},markerGraphics:[{type:"CIMMarkerGraphic",textString:"■",geometry:{x:0,y:0},symbol:{type:"CIMTextSymbol",underline:!1,blockProgression:"TTB",depth3D:0,extrapolateBaselines:!0,flipAngle:90,fontEffects:"Normal",fontEncoding:"Unicode",haloSize:0,height:8,hinting:"Default",horizontalAlignment:"Center",kerning:!0,letterSpacing:10,letterWidth:100,ligatures:!1,lineGapType:"ExtraLeading",symbol:{type:"CIMPolygonSymbol",symbolLayers:[{type:"CIMSolidFill",enable:!0,color:[0,0,0,255]}]},symbol3DProperties:{type:"CIM3DSymbolProperties",dominantSizeAxis3D:"Z",rotationOrder3D:"XYZ",scaleZ:1,scaleY:1},textCase:"Normal",textDirection:"LTR",verticalAlignment:"Center",verticalGlyphOrientation:"Right",wordSpacing:100,billboardMode3D:"FaceNearPlane"}}],scaleSymbolsProportionally:!0,respectFrame:!0}}i.d(t,{S:()=>r})},93470(e,t,i){const r=[252,146,31,255],s={type:"esriSMS",style:"esriSMSCircle",size:6,color:r,outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[153,153,153,255]}},o={type:"esriSLS",style:"esriSLSSolid",width:.75,color:r};i.d(t,["Cb",0,s,"HW",0,{type:"esriSLS",style:"esriSLSSolid",color:[0,0,0,255],width:1.5},"JR",0,[153,153,153,255],"JZ",0,{type:"esriTS",color:[255,255,255,255],font:{family:"arial-unicode-ms",size:10,weight:"bold"},horizontalAlignment:"center",kerning:!0,haloColor:[0,0,0,255],haloSize:1,rotated:!1,text:"",xoffset:0,yoffset:0,angle:0},"WR",0,{type:"esriSFS",style:"esriSFSSolid",color:[252,146,31,196],outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[255,255,255,191]}},"b6",0,{type:"esriSFS",style:"esriSFSSolid",color:[0,0,0,255],outline:null},"fT",0,r,"nC",0,{type:"esriSMS",style:"esriSMSCircle",color:[0,0,0,255],outline:null,size:10.5},"yM",0,o])},20816(e,t,i){i.d(t,{We:()=>n,ZJ:()=>a,w5:()=>d});var r=i(56507);const s=(0,i(13069).vD)(),o=new Map,l=new Map;async function n(e,t,i){if(!e||!i)return!1;if(!t)return!0;let s=new URL(e).host,l=o.get(s);if(!l){let t=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,"");l=(await(0,r.A)(t,{responseType:"json",query:{f:"json"}})).data.defaultVersionName}return l===t}async function a(e,t,r=!1){if(!e||!t)return!0;let o=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,""),n=l.get(o)?.entries();if(n)for(let[e,l]of n)if(l.name===t){let t=!l.stack?.hasForwardEdits();if(!t&&r){let[{deleteForwardEdits:t},{default:r}]=await Promise.all([i.e(2186).then(()=>i(32186)),i.e(2558).then(()=>i(32558))]),n=await t(o,e,new r({sessionId:s,moment:l.moment}));return n.success&&l.stack?.clearForwardEdits(),n.success}return t}return!0}function d(e,t){if(!e)return!1;let i=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,""),r=l.get(i)?.entries();if(r)for(let[e,i]of r)if(i.name===t)return"edit"===i.lockType;return!1}new Map,i.d(t,["TA",0,s,"Z3",0,o])}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1969],{83349(t,e,n){n.d(e,{e:()=>l});const r=new Set;let i=!1;function l(t,e,n=2){let i=e&&e.length,l=i?e[0]*n:t.length;r.size&&r.clear();let s=x(t,0,l,n,!0),y=[];if(!s||s.next===s.prev)return y;let a=0,u=0,h=0;if(i&&(s=c(t,e,s,n)),t.length>80*n){a=t[0],u=t[1];let e=a,r=u;for(let i=n;i<l;i+=n){let n=t[i],l=t[i+1];n<a&&(a=n),l<u&&(u=l),n>e&&(e=n),l>r&&(r=l)}h=Math.max(e-a,r-u),h=0===h?0:32767/h}return o(s,y,a,u,h),y}function x(t,e,n,r,i){let l=null;if(i===D(t,e,n,r)>0)for(let i=e;i<n;i+=r)l=$(i/r|0,t[i],t[i+1],l);else for(let i=n-r;i>=e;i-=r)l=$(i/r|0,t[i],t[i+1],l);return l&&L(l,l.next)&&(W(l),l=l.next),l}function s(t,e=t){let n,l=e===t,x=t;do{n=!1,x===x.next||0!==r.size&&r.has(x)||!L(x,x.next)&&0!==z(x.prev,x,x.next)?(l||x!==e)&&(x=x.next,n=!l):((l||x===e)&&(e=x.prev),i=!0,W(x),x=x.prev,n=!0)}while(n||x!==e);return e}function o(t,e,n,r,l){l&&function(t,e,n,r){let i=t,l=0;do{i.z=P(i.x,i.y,e,n,r),A[l++]=i,i=i.next}while(i!==t);!function(t){if(t<=32)for(let e=1;e<t;e++){let t=A[e],n=t.z,r=e-1;for(;r>=0&&A[r].z>n;)A[r+1]=A[r],r--;A[r+1]=t}else{E.length<t&&(E=new Uint32Array(t),V=new Uint32Array(t),k=Array(t));for(let e=0;e<t;e++)E[e]=A[e].z;U(t,A,E,k,V,0),U(t,k,V,A,E,8),U(t,A,E,k,V,16),U(t,k,V,A,E,24)}}(l);let x=null;for(let t=0;t<l;t++){let e=A[t];e.prevZ=x,x&&(x.nextZ=e),x=e}x.nextZ=null,A.fill(null,0,l),k.fill(null,0,l)}(t,n,r,l);let x=t,o=!1;for(;t.prev!==t.next;){let f=t.prev,c=t.next;if(z(f,t,c)<0&&(l?a(t,n,r,l):y(t)))e.push(f.i,t.i,c.i),W(t),t=c,x=c;else if((t=c)===x){if(i=!1,t=s(t),i){x=t;continue}if(!o){x=t=u(t,e),o=!0;continue}h(t,e,n,r,l);break}}}function y(t){let e=t.prev,n=t,r=t.next,i=e.x,l=n.x,x=r.x,s=e.y,o=n.y,y=r.y,a=Math.min(i,l,x),u=Math.min(s,o,y),h=Math.max(i,l,x),f=Math.max(s,o,y),c=r.next;for(;c!==e;){if(c.x>=a&&c.x<=h&&c.y>=u&&c.y<=f&&(i!==c.x||s!==c.y)&&C(i,s,l,o,x,y,c.x,c.y)&&z(c.prev,c,c.next)>=0)return!1;c=c.next}return!0}function a(t,e,n,r){let i=t.prev,l=t,x=t.next,s=i.x,o=l.x,y=x.x,a=i.y,u=l.y,h=x.y,f=Math.min(s,o,y),c=Math.min(a,u,h),d=Math.max(s,o,y),_=Math.max(a,u,h),v=P(f,c,e,n,r),p=P(d,_,e,n,r),w=t.prevZ;for(;w&&w.z>=v;){if(w.x>=f&&w.x<=d&&w.y>=c&&w.y<=_&&w!==x&&(s!==w.x||a!==w.y)&&C(s,a,o,u,y,h,w.x,w.y)&&z(w.prev,w,w.next)>=0)return!1;w=w.prevZ}let g=t.nextZ;for(;g&&g.z<=p;){if(g.x>=f&&g.x<=d&&g.y>=c&&g.y<=_&&g!==x&&(s!==g.x||a!==g.y)&&C(s,a,o,u,y,h,g.x,g.y)&&z(g.prev,g,g.next)>=0)return!1;g=g.nextZ}return!0}function u(t,e){let n=t,r=!1;do{let i=n.prev,l=n.next.next;F(i,n,n.next,l,!1)&&I(i,l)&&I(l,i)&&(e.push(i.i,n.i,l.i),W(n),W(n.next),n=t=l,r=!0),n=n.next}while(n!==t);return r?s(n):n}function h(t,e,n,r,i){let l=t;do{let t=l.next.next;for(;t!==l.prev;){if(l.i!==t.i&&S(l,t)){let x=R(l,t);return l=s(l,l.next),x=s(x,x.next),o(l,e,n,r,i),void o(x,e,n,r,i)}t=t.next}l=l.next}while(l!==t)}let f=!1;function c(t,e,n,i){let l=[];for(let n=0,s=e.length;n<s;n++){let o=x(t,e[n]*i,n<s-1?e[n+1]*i:t.length,i,!1);o===o.next&&r.add(o),l.push(Z(o))}l.sort(d),function(t,e){let n=Math.ceil((t+2*e)/16)+e+2;v.length<4*n&&(v=new Float64Array(4*n)),p=0}(t.length/i,e.length),m(n,n),f=!0;for(let t=0;t<l.length;t++)n=_(l[t],n);return f=!1,s(n)}function d(t,e){return t.x-e.x||t.y-e.y||(t.next.y-t.y)/(t.next.x-t.x)-(e.next.y-e.y)/(e.next.x-e.x)}function _(t,e){let n=function(t,e){let n,r=e,i=t.x,l=t.y,x=-1/0;if(L(t,r))return r;for(let e=0,s=0;e<p;e++,s+=4){if(l<v[s+1]||l>v[s+3]||v[s]>i||v[s+2]<=x)continue;let o=b(e);r=M(e);do{if(r.prev.next===r){if(L(t,r.next))return r.next;if(l<=r.y&&l>=r.next.y&&r.next.y!==r.y){let t=r.x+(l-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(t<=i&&t>x&&(x=t,n=r.x<r.next.x?r:r.next,t===i))return n}}r=r.next}while(r!==o)}if(!n)return null;let s=n.x,o=n.y,y=Math.min(l,o),a=Math.max(l,o),u=1/0;for(let e=0,h=0;e<p;e++,h+=4){if(v[h+2]<s||v[h]>i||v[h+3]<y||v[h+1]>a)continue;let f=b(e);r=M(e);do{if(r.prev.next===r&&i>=r.x&&r.x>=s&&i!==r.x&&C(l<o?i:x,l,s,o,l<o?x:i,l,r.x,r.y)){let e=Math.abs(l-r.y)/(i-r.x);(I(r,t)||r.y===l&&r.next.y===l&&r.next.x>i)&&(e<u||e===u&&(r.x>n.x||r.x===n.x&&T(n,r)))&&(n=r,u=e)}r=r.next}while(r!==f)}return n}(t,e);if(!n)return e;let r=R(n,t);return m(n,r.next.next),s(r,r.next),s(n,n.next)}let v=new Float64Array,p=0;const w=[],g=[];function m(t,e){let n=t;do{let t=p++;w[t]=n;let r=1/0,i=1/0,l=-1/0,x=-1/0,s=0;do{let e=n.next;n.z=t,n.x<r&&(r=n.x),n.x>l&&(l=n.x),n.y<i&&(i=n.y),n.y>x&&(x=n.y),e.x<r&&(r=e.x),e.x>l&&(l=e.x),e.y<i&&(i=e.y),e.y>x&&(x=e.y),n=e}while(++s<16&&n!==e);g[t]=n;let o=4*t;v[o]=r,v[o+1]=i,v[o+2]=l,v[o+3]=x}while(n!==e)}function b(t){let e=g[t];for(;e.prev.next!==e;)e=e.next;return g[t]=e,e}function M(t){let e=w[t];for(;e.prev.next!==e;)e=e.next;return w[t]=e,e}function T(t,e){return z(t.prev,t,e.prev)<0&&z(e.next,t,t.next)<0}const A=[];let k=[],E=new Uint32Array,V=new Uint32Array;const N=new Uint32Array(256);function U(t,e,n,r,i,l){N.fill(0);for(let e=0;e<t;e++)N[n[e]>>>l&255]++;let x=0;for(let t=0;t<256;t++){let e=N[t];N[t]=x,x+=e}for(let x=0;x<t;x++){let t=n[x],s=N[t>>>l&255]++;r[s]=e[x],i[s]=t}}function P(t,e,n,r,i){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=(t-n)*i|0)|t<<8))|t<<4))|t<<2))|t<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=(e-r)*i|0)|e<<8))|e<<4))|e<<2))|e<<1))<<1}function Z(t){let e=t,n=t;do{(e.x<n.x||e.x===n.x&&e.y<n.y)&&(n=e),e=e.next}while(e!==t);return n}function C(t,e,n,r,i,l,x,s){return(i-x)*(e-s)>=(t-x)*(l-s)&&(t-x)*(r-s)>=(n-x)*(e-s)&&(n-x)*(l-s)>=(i-x)*(r-s)}function S(t,e){let n=L(t,e)&&z(t.prev,t,t.next)>0&&z(e.prev,e,e.next)>0;return t.next.i!==e.i&&(n||I(t,e)&&I(e,t)&&(0!==z(t.prev,t,e.prev)||0!==z(t,e.prev,e)))&&!function(t,e){let n=Math.min(t.x,e.x),r=Math.max(t.x,e.x),i=Math.min(t.y,e.y),l=Math.max(t.y,e.y),x=t;do{let s=x.next;if(x.x>r&&s.x>r||x.x<n&&s.x<n||x.y>l&&s.y>l||x.y<i&&s.y<i)x=s;else{if(x.i!==t.i&&s.i!==t.i&&x.i!==e.i&&s.i!==e.i&&F(x,s,t,e))return!0;x=s}}while(x!==t);return!1}(t,e)&&(n||function(t,e){let n=t,r=!1,i=(t.x+e.x)/2,l=(t.y+e.y)/2;do{let t=n.next;n.y>l!=t.y>l&&i<(t.x-n.x)*(l-n.y)/(t.y-n.y)+n.x&&(r=!r),n=t}while(n!==t);return r}(t,e))}function z(t,e,n){return(e.y-t.y)*(n.x-e.x)-(e.x-t.x)*(n.y-e.y)}function L(t,e){return t.x===e.x&&t.y===e.y}function F(t,e,n,r,i=!0){let l=z(t,e,n),x=z(t,e,r),s=z(n,r,t),o=z(n,r,e);return(l>0&&x<0||l<0&&x>0)&&(s>0&&o<0||s<0&&o>0)||!!i&&!!(0===l&&B(t,n,e)||0===x&&B(t,r,e)||0===s&&B(n,t,r)||0===o&&B(n,e,r))}function B(t,e,n){return e.x<=Math.max(t.x,n.x)&&e.x>=Math.min(t.x,n.x)&&e.y<=Math.max(t.y,n.y)&&e.y>=Math.min(t.y,n.y)}function I(t,e){return z(t.prev,t,t.next)<0?z(t,e,t.next)>=0&&z(t,t.prev,e)>=0:z(t,e,t.prev)<0||z(t,t.next,e)<0}function R(t,e){let n=j(t.i,t.x,t.y),r=j(e.i,e.x,e.y),i=t.next,l=e.prev;return t.next=e,e.prev=t,n.next=i,i.prev=n,r.next=n,n.prev=r,l.next=r,r.prev=l,r}function $(t,e,n,r){let i=j(t,e,n);return r?(i.next=r.next,i.prev=r,r.next.prev=i,r.next=i):(i.prev=i,i.next=i),i}function W(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ),f&&function(t,e){let n=4*t.z;e.x<v[n]&&(v[n]=e.x),e.y<v[n+1]&&(v[n+1]=e.y),e.x>v[n+2]&&(v[n+2]=e.x),e.y>v[n+3]&&(v[n+3]=e.y)}(t.prev,t.next)}function j(t,e,n){return{i:t,x:e,y:n,prev:null,next:null,z:0,prevZ:null,nextZ:null}}function D(t,e,n,r){let i=0;for(let l=e,x=n-r;l<n;l+=r)i+=(t[x]-t[l])*(t[l+1]+t[x+1]),x=l;return i}let H,q,O,X,Y,Q=0,G=0;function J(t,e,n,r,i,l){return(n-t)*(l-e)-(r-e)*(i-t)}function K(t,e,n,r,i,l,x,s){let o=t-x,y=e-s,a=n-x,u=r-s,h=i-x,f=l-s,c=o*o+y*y,d=a*a+u*u,_=h*h+f*f,v=c+d+_;return o*(u*_-d*f)-y*(a*_-d*h)+c*(a*f-u*h)<=1e-13*v*v}function tt(t){return t-t%3+(t+1)%3}l.deviation=function(t,e,n,r){let i=e&&e.length,l=i?e[0]*n:t.length,x=Math.abs(D(t,0,l,n));if(i)for(let r=0,i=e.length;r<i;r++){let l=e[r]*n,s=r<i-1?e[r+1]*n:t.length;x-=Math.abs(D(t,l,s,n))}let s=0;for(let e=0;e<r.length;e+=3){let i=r[e]*n,l=r[e+1]*n,x=r[e+2]*n;s+=Math.abs((t[i]-t[x])*(t[l+1]-t[i+1])-(t[i]-t[l])*(t[x+1]-t[i+1]))}return 0===x&&0===s?0:Math.abs((s-x)/x)},l.flatten=function(t){let e=[],n=[],r=t[0][0].length,i=0,l=0;for(let x of t){for(let t of x)for(let n=0;n<r;n++)e.push(t[n]);l&&(i+=l,n.push(i)),l=x.length}return{vertices:e,holes:n,dimensions:r}},l.refine=function(t,e,n=2){let r=t,i=r.length;if(i<6)return;(function(t){(!H||H.length<t)&&(H=new Int32Array(t)),(!q||q.length<t)&&(q=new Int32Array(t)),(!Y||Y.length<t)&&(Y=new Uint8Array(t));let e=1;for(;e<4*t;)e<<=1;(!O||O.length<e)&&(O=new Int32Array(e),X=new Uint32Array(e)),Q=e-1})(i),G++,q.fill(-1,0,i);let l=0;for(let t=0;t<i;t++){let e=r[t],n=r[tt(t)],i=e<n?e:n,x=e<n?n:e,s=(Math.imul(i,2654435761)^Math.imul(x,2246822507))&Q;for(;X[s]===G;){let e=O[s];if(-1!==e){let n=r[e],o=r[tt(e)];if(n===i&&o===x||n===x&&o===i){q[t]=e,q[e]=t,O[s]=-1,Y[e]=1,H[l++]=e;break}}s=s+1&Q}X[s]!==G&&(O[s]=t,X[s]=G)}for(;l>0;){let t=H[--l];Y[t]=0;let i=q[t];if(-1===i)continue;let x=t-t%3,s=i-i%3,o=x+(t+2)%3,y=x+(t+1)%3,a=s+(i+2)%3,u=s+(i+1)%3,h=r[o],f=r[t],c=r[y],d=r[a],_=e[h*n],v=e[h*n+1],p=e[f*n],w=e[f*n+1],g=e[c*n],m=e[c*n+1],b=e[d*n],M=e[d*n+1];if(!K(_,v,p,w,g,m,b,M)&&J(_,v,p,w,b,M)>0&&J(_,v,b,M,g,m)>0){r[t]=d,r[i]=h;let e=q[a],n=q[o];q[t]=e,-1!==e&&(q[e]=t),q[i]=n,-1!==n&&(q[n]=i),q[o]=a,q[a]=o,-1!==e&&0===Y[t]&&(Y[t]=1,H[l++]=t),-1!==n&&0===Y[i]&&(Y[i]=1,H[l++]=i),-1!==q[y]&&0===Y[y]&&(Y[y]=1,H[l++]=y),-1!==q[u]&&0===Y[u]&&(Y[u]=1,H[l++]=u)}}}},15585(t,e,n){n.d(e,{If:()=>f,QT:()=>c});var r=n(32198),i=n(2741),l=n(49186),x=n(44208),s=n(53966);n(34727);class o{constructor(t,e){this.precision=t,this.importFactory=e,this.loading=null,this.exports=null,this.compiled=null,this.evictionTimer=null}}const y=new o("f32",async()=>(await n.e(2997).then(()=>n(42997))).default);function a(t){null!==t.evictionTimer&&(clearTimeout(t.evictionTimer),t.evictionTimer=null)}function u(t){a(t);let e=t.exports;null===e||e.HEAP8.byteLength<10485760||(t.evictionTimer=setTimeout(()=>{t.evictionTimer=null,async function(t,e){try{let n=t.compiled;if(null===n)return;let r=await t.importFactory();if(t.exports!==e)return;let i=await r(h(n));t.exports===e&&(a(t),t.exports=i)}catch(e){s.A.getLogger("esri.geometry.libtess").error("libtess:recycle-failed",`Failed to recycle libtess${t.precision.toUpperCase()}`,e)}}(t,e)},1e4))}function h(t){return{locateFile:t=>(0,i.s)(`esri/core/libs/libtess/${t}`),instantiateWasm:(e,n)=>(n(new WebAssembly.Instance(t,e),t),{})}}function f(){return function(t){if(null!==t.exports)return u(t),Promise.resolve();if(null!==t.loading)return t.loading;let e=async function(t){let e=await t.importFactory(),n=t.compiled??await async function(t){let e=`libtess-${t}.wasm`,n=(0,i.s)(`esri/core/libs/libtess/${e}`),r=await fetch(n,{credentials:"same-origin"});if(!r.ok)throw Error(`${r.status} : ${r.url}`);return WebAssembly.compile(await r.arrayBuffer())}(t.precision);t.compiled??=n,t.exports=await e(h(n)),u(t)}(t);t.loading=e;let n=()=>{t.loading===e&&(t.loading=null)};return e.then(n,n),e}(y)}function c(t,e,n=2){return function(t,e){a(t);try{return e()}finally{u(t)}}(y,()=>function(t,e,n=2){let i={stack:[],error:void 0,hasError:!1};try{let s=y.exports;if(!s)throw new l.A("libtess:not-loaded","libtessF32 not loaded");let o=(0,r.mS)(i,v.from(s,t),!1),a=(0,r.mS)(i,p.from(s,e),!1),u=t.length/n*4,h=(0,r.mS)(i,new v(s,u*n),!1),f=s.triangulate(o.ptr,a.ptr,a.size,n,h.ptr,u);if((0,x.A)("esri-tessellation-debug")){let t=s.getError();0!==t&&console.warn("libtess:triangulation",function(t){switch(t){case 100903:return"Insufficient output buffer";case 100902:return"Out of memory";case 100151:return"Missing begin polygon";case 100152:return"Missing begin contour";case 100153:return"Missing end polygon";case 100154:return"Missing end countour";case 100155:return"Coordinates too large";case 100156:return"Missing combine callback";default:return`Unknown: ${t}`}}(t))}return{buffer:h.slice(0,f*n),vertexCount:f}}catch(t){i.error=t,i.hasError=!0}finally{(0,r.hk)(i)}}(t,e,n))}function d(t){return t.HEAPF32}function _(t){return t.HEAP32}new o("f64",async()=>(await n.e(9134).then(()=>n(99134))).default),new Float32Array,new Uint32Array,new Uint32Array,new Uint32Array,new Float64Array,new Uint32Array,new Uint32Array,new Uint32Array;class v{static from(t,e){let n=new v(t,e.length);return n.set(e),n}constructor(t,e){this._libtess=t,this.size=e,this.ptr=t.allocateCoordinateArray(e)}destroy(){this._libtess.destroyCoordinateArray(this.ptr)}[Symbol.dispose](){this.destroy()}get bytesPerCoordinate(){return Float32Array.BYTES_PER_ELEMENT}set(t){d(this._libtess).set(t,this.ptr/this.bytesPerCoordinate)}slice(t,e){let n=this.ptr/this.bytesPerCoordinate;return d(this._libtess).slice(n+t,n+e)}}Symbol.dispose;class p{static from(t,e){let n=new p(t,e.length);return n.set(e),n}constructor(t,e){this._libtess=t,this.size=e,this.ptr=t.allocateLengthsArray(e)}destroy(){this._libtess.destroyLengthsArray(this.ptr)}[Symbol.dispose](){this.destroy()}get bytesPerCoordinate(){return Int32Array.BYTES_PER_ELEMENT}set(t){_(this._libtess).set(t,this.ptr/this.bytesPerCoordinate)}slice(t,e){let n=this.ptr/this.bytesPerCoordinate;return function(t){let e=_(t);return new Uint32Array(e.buffer,e.byteOffset,e.length)}(this._libtess).slice(n+t,n+e)}}},83773(t,e,n){function r(t,e){return t.x===e.x&&t.y===e.y}function i(t){if(!t)return;let e=t.length;if(e<=1)return;let n=0;for(let i=1;i<e;i++)!r(t[i],t[n])&&++n!==i&&(t[n]=t[i]);t.length=n+1}function l(t,e){return t.x=e.y,t.y=-e.x,t}function x(t,e){return t.x=-e.y,t.y=e.x,t}function s(t,e){return t.x=e.x,t.y=e.y,t}function o(t,e){return t.x=-e.x,t.y=-e.y,t}function y(t){return Math.sqrt(t.x*t.x+t.y*t.y)}function a(t,e){return t.x*e.y-t.y*e.x}function u(t,e){return t.x*e.x+t.y*e.y}function h(t,e,n,r){return t.x=e.x*n+e.y*r,t.y=e.x*r-e.y*n,t}n.d(e,{i:()=>f});class f{constructor(t,e,n){this._writeVertex=t,this._writeTriangle=e,this._canUseThinTessellation=n,this._prevNormal={x:void 0,y:void 0},this._nextNormal={x:void 0,y:void 0},this._textureNormalLeft={x:0,y:1},this._textureNormalRight={x:0,y:-1},this._textureNormal={x:void 0,y:void 0},this._joinNormal={x:void 0,y:void 0},this._inner={x:void 0,y:void 0},this._outer={x:void 0,y:void 0},this._roundStart={x:void 0,y:void 0},this._roundEnd={x:void 0,y:void 0},this._startBreak={x:void 0,y:void 0},this._endBreak={x:void 0,y:void 0},this._innerPrev={x:void 0,y:void 0},this._innerNext={x:void 0,y:void 0},this._bevelStart={x:void 0,y:void 0},this._bevelEnd={x:void 0,y:void 0},this._bevelMiddle={x:void 0,y:void 0}}tessellate(t,e,n=this._canUseThinTessellation){i(t),n&&e.halfWidth<1.05&&!e.offset?this._tessellateThin(t,e):this._tessellate(t,e)}_tessellateThin(t,e){if(t.length<2)return;let n=e.wrapDistance||65535,r=e.initialDistance||0,i=!1,l=t[0].x,x=t[0].y,s=t.length;for(let e=1;e<s;++e){i&&(i=!1,r=0);let s=t[e].x,o=t[e].y,y=s-l,a=o-x,u=Math.sqrt(y*y+a*a);if(y/=u,a/=u,r+u>n){i=!0;let t=(n-r)/u;u=n-r,s=(1-t)*l+t*s,o=(1-t)*x+t*o,--e}let h=this._writeVertex(l,x,0,0,y,a,a,-y,0,-1,r),f=this._writeVertex(l,x,0,0,y,a,-a,y,0,1,r);r+=u;let c=this._writeVertex(s,o,0,0,y,a,a,-y,0,-1,r),d=this._writeVertex(s,o,0,0,y,a,-a,y,0,1,r);this._writeTriangle(h,f,c),this._writeTriangle(f,c,d),l=s,x=o}}_tessellate(t,e){let n=t[0],i=t[t.length-1],f=r(n,i),c=f?3:2;if(t.length<c)return;let d,_,v,p,w,g=e.pixelCoordRatio,m=null==e.capType?0:e.capType,b=null==e.joinType?2:e.joinType,M=null==e.miterLimit?2:Math.min(e.miterLimit,4),T=null==e.roundLimit?1.05:Math.min(e.roundLimit,1.05),A=null==e.halfWidth?2:e.halfWidth,k=!!e.textured,E=null,V=this._prevNormal,N=this._nextNormal,U=-1,P=-1,Z=this._joinNormal,C=this._textureNormalLeft,S=this._textureNormalRight,z=this._textureNormal,L=-1,F=-1,B=e.wrapDistance||65535,I=e.initialDistance||0,R=this._writeVertex,$=this._writeTriangle,W=(t,e,n,r,i,l)=>{let x=R(_,v,p,w,n,r,t,e,i,l,I);return L>=0&&F>=0&&x>=0&&$(L,F,x),L=F,F=x,x};f&&(d=t[t.length-2],N.x=i.x-d.x,N.y=i.y-d.y,P=y(N),N.x/=P,N.y/=P);let j=!1;for(let e=0;e<t.length;++e){if(j&&(j=!1,I=0),d&&(V.x=-N.x,V.y=-N.y,U=P,I+U>B&&(j=!0)),j){let n=(B-I)/U;U=B-I,d={x:(1-n)*d.x+n*t[e].x,y:(1-n)*d.y+n*t[e].y},--e}else d=t[e];_=d.x,v=d.y;let n=e<=0&&!j,r=e===t.length-1;if(n||(I+=U),E=r?f?t[1]:null:t[e+1],E?(N.x=E.x-_,N.y=E.y-v,P=y(N),N.x/=P,N.y/=P):(N.x=void 0,N.y=void 0),!f){if(n){x(Z,N),p=Z.x,w=Z.y,2===m&&(W(-N.y-N.x,N.x-N.y,N.x,N.y,0,-1),W(N.y-N.x,-N.x-N.y,N.x,N.y,0,1)),1===m&&(W(-N.y-N.x,N.x-N.y,N.x,N.y,-1,-1),W(N.y-N.x,-N.x-N.y,N.x,N.y,-1,1)),(1===m||0===m)&&(W(-N.y,N.x,N.x,N.y,0,-1),W(N.y,-N.x,N.x,N.y,0,1));continue}if(r){l(Z,V),p=Z.x,w=Z.y,(1===m||0===m)&&(W(V.y,-V.x,-V.x,-V.y,0,-1),W(-V.y,V.x,-V.x,-V.y,0,1)),2===m&&(W(V.y-V.x,-V.x-V.y,-V.x,-V.y,0,-1),W(-V.y-V.x,V.x-V.y,-V.x,-V.y,0,1)),1===m&&(W(V.y-V.x,-V.x-V.y,-V.x,-V.y,1,-1),W(-V.y-V.x,V.x-V.y,-V.x,-V.y,1,1));continue}}let i,c,R=-a(V,N);if(Math.abs(R)<.01)u(V,N)>0?(Z.x=V.x,Z.y=V.y,R=1,i=Number.MAX_VALUE,c=!0):(x(Z,N),R=1,i=1,c=!1);else{Z.x=(V.x+N.x)/R,Z.y=(V.y+N.y)/R,i=y(Z);let t=(i-1)*A*g;c=i>4||t>U&&t>P}p=Z.x,w=Z.y;let $=b;switch(b){case 0:i<1.05&&($=2);break;case 1:i<T&&($=2);break;case 2:i>M&&($=0)}switch($){case 2:if(W(Z.x,Z.y,-V.x,-V.y,0,-1),W(-Z.x,-Z.y,-V.x,-V.y,0,1),r)break;if(k){let t=j?0:I;L=this._writeVertex(_,v,p,w,N.x,N.y,Z.x,Z.y,0,-1,t),F=this._writeVertex(_,v,p,w,N.x,N.y,-Z.x,-Z.y,0,1,t)}break;case 0:{let t,e,n,i,y=R<0;if(y){let n=L;L=F,F=n,t=C,e=S}else t=S,e=C;if(c)n=y?x(this._innerPrev,V):l(this._innerPrev,V),i=y?l(this._innerNext,N):x(this._innerNext,N);else{let t=y?o(this._inner,Z):s(this._inner,Z);n=t,i=t}let a=y?l(this._bevelStart,V):x(this._bevelStart,V);W(n.x,n.y,-V.x,-V.y,t.x,t.y);let u=W(a.x,a.y,-V.x,-V.y,e.x,e.y);if(r)break;let f=y?x(this._bevelEnd,N):l(this._bevelEnd,N);if(c){let n=this._writeVertex(_,v,p,w,-V.x,-V.y,0,0,0,0,I);L=this._writeVertex(_,v,p,w,N.x,N.y,i.x,i.y,t.x,t.y,I),F=this._writeVertex(_,v,p,w,N.x,N.y,f.x,f.y,e.x,e.y,I),this._writeTriangle(u,n,F)}else{if(k){let e=this._bevelMiddle;e.x=(a.x+f.x)/2,e.y=(a.y+f.y)/2,h(z,e,-V.x,-V.y),W(e.x,e.y,-V.x,-V.y,z.x,z.y),h(z,e,N.x,N.y),L=this._writeVertex(_,v,p,w,N.x,N.y,e.x,e.y,z.x,z.y,I),F=this._writeVertex(_,v,p,w,N.x,N.y,i.x,i.y,t.x,t.y,I)}else{let t=L;L=F,F=t}W(f.x,f.y,N.x,N.y,e.x,e.y)}if(y){let t=L;L=F,F=t}break}case 1:{let t,e,n=R<0;if(n){let n=L;L=F,F=n,t=C,e=S}else t=S,e=C;let y,a,f=n?o(this._inner,Z):s(this._inner,Z);c?(y=n?x(this._innerPrev,V):l(this._innerPrev,V),a=n?l(this._innerNext,N):x(this._innerNext,N)):(y=f,a=f);let d=n?l(this._roundStart,V):x(this._roundStart,V),g=n?x(this._roundEnd,N):l(this._roundEnd,N),m=W(y.x,y.y,-V.x,-V.y,t.x,t.y),b=W(d.x,d.y,-V.x,-V.y,e.x,e.y);if(r)break;let M=this._writeVertex(_,v,p,w,-V.x,-V.y,0,0,0,0,I);c||this._writeTriangle(L,F,M);let T,A,E=o(this._outer,f),U=this._writeVertex(_,v,p,w,N.x,N.y,g.x,g.y,e.x,e.y,I),P=i>2;if(P){let t;i===Number.MAX_VALUE?t=-1:(E.x/=i,E.y/=i,t=u(V,E),t=(i*(t*t-1)+1)/t),T=n?l(this._startBreak,V):x(this._startBreak,V),T.x+=V.x*t,T.y+=V.y*t,A=n?x(this._endBreak,N):l(this._endBreak,N),A.x+=N.x*t,A.y+=N.y*t}h(z,E,-V.x,-V.y);let B=this._writeVertex(_,v,p,w,-V.x,-V.y,E.x,E.y,z.x,z.y,I);h(z,E,N.x,N.y);let $=k?this._writeVertex(_,v,p,w,N.x,N.y,E.x,E.y,z.x,z.y,I):B,j=M,D=k?this._writeVertex(_,v,p,w,N.x,N.y,0,0,0,0,I):M,H=-1,q=-1;if(P&&(h(z,T,-V.x,-V.y),H=this._writeVertex(_,v,p,w,-V.x,-V.y,T.x,T.y,z.x,z.y,I),h(z,A,N.x,N.y),q=this._writeVertex(_,v,p,w,N.x,N.y,A.x,A.y,z.x,z.y,I)),k?P?(this._writeTriangle(j,b,H),this._writeTriangle(j,H,B),this._writeTriangle(D,$,q),this._writeTriangle(D,q,U)):(this._writeTriangle(j,b,B),this._writeTriangle(D,$,U)):P?(this._writeTriangle(M,b,H),this._writeTriangle(M,H,q),this._writeTriangle(M,q,U)):(this._writeTriangle(M,b,B),this._writeTriangle(M,$,U)),c?(L=this._writeVertex(_,v,p,w,N.x,N.y,a.x,a.y,t.x,t.y,I),F=U):(L=k?this._writeVertex(_,v,p,w,N.x,N.y,a.x,a.y,t.x,t.y,I):m,this._writeTriangle(L,D,U),F=U),n){let t=L;L=F,F=t}break}}}}}}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2772,6451],{80200(e,t,i){i.d(t,{d:()=>c});const n={Base64:0,Hex:1,String:2,Raw:3};function s(e,t){let i=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(i>>16)<<16|65535&i}function r(e,t,i,n,r,o){return s(function(e,t){return e<<t|e>>>32-t}(s(s(t,e),s(n,o)),r),i)}function o(e,t,i,n,s,o,l){return r(t&i|~t&n,e,t,s,o,l)}function l(e,t,i,n,s,o,l){return r(t&n|i&~n,e,t,s,o,l)}function a(e,t,i,n,s,o,l){return r(t^i^n,e,t,s,o,l)}function h(e,t,i,n,s,o,l){return r(i^(t|~n),e,t,s,o,l)}function u(e,t){e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;let i=1732584193,n=-271733879,r=-1732584194,u=271733878;for(let t=0;t<e.length;t+=16){let c=i,p=n,f=r,m=u;i=o(i,n,r,u,e[t],7,-680876936),u=o(u,i,n,r,e[t+1],12,-389564586),r=o(r,u,i,n,e[t+2],17,606105819),n=o(n,r,u,i,e[t+3],22,-1044525330),i=o(i,n,r,u,e[t+4],7,-176418897),u=o(u,i,n,r,e[t+5],12,1200080426),r=o(r,u,i,n,e[t+6],17,-1473231341),n=o(n,r,u,i,e[t+7],22,-45705983),i=o(i,n,r,u,e[t+8],7,1770035416),u=o(u,i,n,r,e[t+9],12,-1958414417),r=o(r,u,i,n,e[t+10],17,-42063),n=o(n,r,u,i,e[t+11],22,-1990404162),i=o(i,n,r,u,e[t+12],7,1804603682),u=o(u,i,n,r,e[t+13],12,-40341101),r=o(r,u,i,n,e[t+14],17,-1502002290),n=o(n,r,u,i,e[t+15],22,1236535329),i=l(i,n,r,u,e[t+1],5,-165796510),u=l(u,i,n,r,e[t+6],9,-1069501632),r=l(r,u,i,n,e[t+11],14,643717713),n=l(n,r,u,i,e[t],20,-373897302),i=l(i,n,r,u,e[t+5],5,-701558691),u=l(u,i,n,r,e[t+10],9,38016083),r=l(r,u,i,n,e[t+15],14,-660478335),n=l(n,r,u,i,e[t+4],20,-405537848),i=l(i,n,r,u,e[t+9],5,568446438),u=l(u,i,n,r,e[t+14],9,-1019803690),r=l(r,u,i,n,e[t+3],14,-187363961),n=l(n,r,u,i,e[t+8],20,1163531501),i=l(i,n,r,u,e[t+13],5,-1444681467),u=l(u,i,n,r,e[t+2],9,-51403784),r=l(r,u,i,n,e[t+7],14,1735328473),n=l(n,r,u,i,e[t+12],20,-1926607734),i=a(i,n,r,u,e[t+5],4,-378558),u=a(u,i,n,r,e[t+8],11,-2022574463),r=a(r,u,i,n,e[t+11],16,1839030562),n=a(n,r,u,i,e[t+14],23,-35309556),i=a(i,n,r,u,e[t+1],4,-1530992060),u=a(u,i,n,r,e[t+4],11,1272893353),r=a(r,u,i,n,e[t+7],16,-155497632),n=a(n,r,u,i,e[t+10],23,-1094730640),i=a(i,n,r,u,e[t+13],4,681279174),u=a(u,i,n,r,e[t],11,-358537222),r=a(r,u,i,n,e[t+3],16,-722521979),n=a(n,r,u,i,e[t+6],23,76029189),i=a(i,n,r,u,e[t+9],4,-640364487),u=a(u,i,n,r,e[t+12],11,-421815835),r=a(r,u,i,n,e[t+15],16,530742520),n=a(n,r,u,i,e[t+2],23,-995338651),i=h(i,n,r,u,e[t],6,-198630844),u=h(u,i,n,r,e[t+7],10,1126891415),r=h(r,u,i,n,e[t+14],15,-1416354905),n=h(n,r,u,i,e[t+5],21,-57434055),i=h(i,n,r,u,e[t+12],6,1700485571),u=h(u,i,n,r,e[t+3],10,-1894986606),r=h(r,u,i,n,e[t+10],15,-1051523),n=h(n,r,u,i,e[t+1],21,-2054922799),i=h(i,n,r,u,e[t+8],6,1873313359),u=h(u,i,n,r,e[t+15],10,-30611744),r=h(r,u,i,n,e[t+6],15,-1560198380),n=h(n,r,u,i,e[t+13],21,1309151649),i=h(i,n,r,u,e[t+4],6,-145523070),u=h(u,i,n,r,e[t+11],10,-1120210379),r=h(r,u,i,n,e[t+2],15,718787259),n=h(n,r,u,i,e[t+9],21,-343485551),i=s(i,c),n=s(n,p),r=s(r,f),u=s(u,m)}return[i,n,r,u]}function c(e,t=n.Hex){let i=t||n.Base64,s=u(function(e){let t=[];for(let i=0,n=8*e.length;i<n;i+=8)t[i>>5]|=(255&e.charCodeAt(i/8))<<i%32;return t}(e),8*e.length);switch(i){case n.Raw:return s;case n.Hex:return function(e){let t="0123456789abcdef",i=[];for(let n=0,s=4*e.length;n<s;n++)i.push(t.charAt(e[n>>2]>>n%4*8+4&15)+t.charAt(e[n>>2]>>n%4*8&15));return i.join("")}(s);case n.String:return function(e){let t=[];for(let i=0,n=32*e.length;i<n;i+=8)t.push(String.fromCharCode(e[i>>5]>>>i%32&255));return t.join("")}(s);case n.Base64:return function(e){let t=[];for(let i=0,n=4*e.length;i<n;i+=3){let n=(e[i>>2]>>i%4*8&255)<<16|(e[i+1>>2]>>(i+1)%4*8&255)<<8|e[i+2>>2]>>(i+2)%4*8&255;for(let s=0;s<4;s++)8*i+6*s>32*e.length?t.push("="):t.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(n>>6*(3-s)&63))}return t.join("")}(s)}}i.d(t,["T",0,n])},87024(e,t,i){i.d(t,{P:()=>f});var n=i(49186),s=i(80200),r=i(76553),o=i(84952),l=i(13069),a=i(96156),h=i(35666),u=i(10107),c=i(85648),p=i(97159);function f(e){let t=e?.origins??[void 0];return(i,n)=>{let s=function(e,t,i){if("resource"===e?.type)return function(e,t,i){let n=(0,a.z4)(t,i);return{type:String,read:(e,t,i)=>{let s=(0,p.r)(e,t,i);return n.type===String?s:"function"==typeof n.type?new n.type({url:s}):void 0},write:{isRequired:n.json?.write?.isRequired,writer(t,s,l,a){if(!a?.resources)return"string"==typeof t?void(s[l]=(0,p.t)(t,a)):void(s[l]=t.write({},a));let u=function(e){return null==e?null:"string"==typeof e?e:e.url}(t),f=(0,p.t)(u,{...a,verifyItemRelativeUrls:a?.verifyItemRelativeUrls?{writtenUrls:a.verifyItemRelativeUrls.writtenUrls,rootPath:void 0}:void 0},1),y=n.type!==String&&(!(0,r.H)(this)||a?.origin&&this.originIdOf(i)>(0,h.aB)(a.origin)),_={object:this,propertyName:i,value:t,targetUrl:f,dest:s,targetPropertyName:l,context:a,params:e};a?.portalItem&&f&&!(0,o.oP)(f)?y&&e?.contentAddressed?m(_):y?function(e){let{context:t,targetUrl:i,params:n,value:s,dest:r,targetPropertyName:l}=e;if(!t.portalItem)return;let a=t.portalItem.resourceFromPath(i),h=g(s,i,t),u=(0,c.n)(h),p=(0,o.Zo)(a.path),f=n?.compress??!1;u===p?(t.resources&&d({...e,resource:a,content:h,compress:f,updates:t.resources.toUpdate}),r[l]=i):m(e)}(_):function({context:e,targetUrl:t,dest:i,targetPropertyName:n}){e.portalItem&&e.resources&&(e.resources.toKeep.push({resource:e.portalItem.resourceFromPath(t),compress:!1}),i[n]=t)}(_):a?.portalItem&&(null==f||null!=(0,p.i)(f)||(0,o.w8)(f)||y)?m(_):s[l]=f}}}}(e,t,i);switch(e?.type??"other"){case"other":return{read:!0,write:!0};case"url":{let{read:e,write:t}=p.b;return{read:e,write:t}}}}(e,i,n);for(let e of t){let t=(0,u.rM)(i,e,n);for(let e in s)t[e]=s[e]}}}function m(e){let{targetUrl:t,params:i,value:r,context:a,dest:h,targetPropertyName:u}=e;if(!a.portalItem)return;let f=(0,p.p)(t),m=g(r,t,a);if(i?.contentAddressed&&"json"!==m.type)return void a.messages?.push(new n.A("persistable:contentAddressingUnsupported",`Property "${u}" is trying to serializing a resource with content of type ${m.type} with content addressing. Content addressing is only supported for json resources.`,{content:m}));let y=i?.contentAddressed&&"json"===m.type?(0,s.d)(m.jsonString):f?.filename??(0,l.lk)(),_=i?.prefix??f?.prefix,x=(0,o.fj)(_,y),v=`${x}.${(0,c.n)(m)}`;if(i?.contentAddressed&&a.resources&&"json"===m.type){let e=a.resources.toKeep.find(({resource:e})=>e.path===v)??a.resources.toAdd.find(({resource:e})=>e.path===v);if(e)return void(h[u]=e.resource.itemRelativeUrl)}let C=a.portalItem.resourceFromPath(v);(0,o.w8)(t)&&a.resources&&a.resources.pendingOperations.push((0,o.tk)(t).then(e=>{C.path=`${x}.${(0,c.n)({type:"blob",blob:e})}`,h[u]=C.itemRelativeUrl}).catch(()=>{}));let w=i?.compress??!1;a.resources&&d({...e,resource:C,content:m,compress:w,updates:a.resources.toAdd}),h[u]=C.itemRelativeUrl}function d({object:e,propertyName:t,updates:i,resource:n,content:s,compress:r}){i.push({resource:n,content:s,compress:r,finish:i=>{!function(e,t,i){"string"==typeof e[t]?e[t]=i.url:e[t].url=i.url}(e,t,i)}})}function g(e,t,i){return"string"==typeof e?{type:"url",url:t}:{type:"json",jsonString:JSON.stringify(e.toJSON(i))}}},83027(e,t,i){const n=i(29953).ho;i.d(t,["h",0,n])},35982(e,t,i){i.d(t,{B:()=>u});var n=i(4576),s=i(71511),r=i(36563),o=i(53966),l=i(97768),a=i(17676),h=i(83027);class u{constructor(e,t,i,n,s={}){this._mainMethod=t,this._transferLists=i,this._listeners=[],this._onClientConnectedHandle=null,this._destroyed=!1,this._promise=(0,h.h)(e,{...s,schedule:n}).then(e=>{null!=this._thread||this._destroyed?e.close():(this._thread=e,this._promise=null,this._onClientConnectedHandle=this._thread.onClientConnected(e=>{s.hasInitialize&&e.invoke("initialize",{}).catch(()=>{});for(let t of this._listeners)this._connectListenerToClient(t,e);this._onClientConnected(e)}))}),this._promise.catch(t=>o.A.getLogger("esri.core.workers.WorkerHandle").error(`Failed to initialize ${e} worker: ${t}`))}on(e,t){let i=new c(e,t);return this._listeners.push(i),this._connectListener(i),(0,r.hA)(()=>{(0,n.TF)(this._listeners,i),i.destroy()})}[Symbol.dispose](){this.destroy()}destroy(){this._onClientConnectedHandle=(0,l.xt)(this._onClientConnectedHandle),this._thread&&=(this._thread.close(),null),this._promise=null;for(let e of this._listeners)e.destroy();this._listeners.length=0,this._transferLists={},this._destroyed=!0}invoke(e,t,i){return this.invokeMethod(this._mainMethod,e,t,i)}invokeMethod(e,t,i,n){return this._invokeMethod(e,[t],i,n)}invokeMethodWithArgs(e,t,i,n){return this._invokeMethod(e,t,i,n)}_invokeMethod(e,t,i,n){if(this._thread){let s=this._transferLists[e],r=s?s(...t):[];return this._thread.apply(e,t,{transferList:r,signal:i,jobPriority:n})}return this._promise?this._promise.then(()=>((0,a.Te)(i),this._invokeMethod(e,t,i,n))):Promise.reject((0,a.NK)())}broadcast(e,t){return this._thread?Promise.all(this._thread.broadcast(t,e)).then(p):this._promise?this._promise.then(()=>this.broadcast(e,t)):Promise.reject((0,a.NK)())}get promise(){return this._promise}_onClientConnected(e){}_connectListener(e){this._thread&&e.add(this._thread.on(e.eventName,e.callback))}_connectListenerToClient(e,t){e.add(t.on(e.eventName,e.callback))}}class c{constructor(e,t){this.eventName=e,this.callback=t,this._handles=new s.A}add(e){this._handles.add(e)}destroy(){this._handles.destroy()}}function p(){}},89056(e,t,i){i.d(t,{b3:()=>c,jZ:()=>u});var n=i(12195),s=i(19419),r=i(537),o=i(95108),l=i(60408),a=i(80754),h=i(21325);function u(e){return p(e,!0)}function c(e){return p(e,!1)}function p(e,t){if(null==e)return null;let i=e.spatialReference,s=(0,h.Vp)(i),o=(0,n.W)(e)?e.toJSON():e;if(!s)return o;let u=(0,h.K8)(i)?102100:4326,c=a.j7[u].maxX,p=a.j7[u].minX;if((0,l.fT)(o))return m(o,c,p);if((0,l.U9)(o))return o.points=o.points.map(e=>m(e,c,p)),o;if((0,l.ZC)(o))return f(o,s);if((0,l.Bi)(o)||(0,l.Rg)(o)){let e=(0,r.Rg)(v,o),i={xmin:e[0],ymin:e[1],xmax:e[2],ymax:e[3]},n=(0,a.kd)(i.xmin,p),s=2*c*n,l=0===s?o:(0,a.kS)(o,s);return i.xmin+=s,i.xmax+=s,i.xmax>c?_(l,c,t):i.xmin<p?_(l,p,t):l}return o}function f(e,t){if(!t)return e;let i=function(e,t){let i=[],{ymin:n,ymax:s,xmin:r,xmax:o}=e,l=e.xmax-e.xmin,[a,h]=t.valid,{x:u,frameId:c}=d(e.xmin,t),{x:p,frameId:f}=d(e.xmax,t),m=u===p&&l>0;if(l>2*h){let e={xmin:r<o?u:p,ymin:n,xmax:h,ymax:s},t={xmin:a,ymin:n,xmax:r<o?p:u,ymax:s},l={xmin:0,ymin:n,xmax:h,ymax:s},m={xmin:a,ymin:n,xmax:0,ymax:s},d=[],y=[];g(e,l)&&d.push(c),g(e,m)&&y.push(c),g(t,l)&&d.push(f),g(t,m)&&y.push(f);for(let e=c+1;e<f;e++)d.push(e),y.push(e);i.push(new x(e,[c]),new x(t,[f]),new x(l,d),new x(m,y))}else u>p||m?i.push(new x({xmin:u,ymin:n,xmax:h,ymax:s},[c]),new x({xmin:a,ymin:n,xmax:p,ymax:s},[f])):i.push(new x({xmin:u,ymin:n,xmax:p,ymax:s},[c]));return i}(e,t).map(e=>e.extent);return i.length<2?i[0]||e:i.length>2?(e.xmin=t.valid[0],e.xmax=t.valid[1],e):{rings:i.map(e=>[[e.xmin,e.ymin],[e.xmin,e.ymax],[e.xmax,e.ymax],[e.xmax,e.ymin],[e.xmin,e.ymin]])}}function m(e,t,i){if(Array.isArray(e)){let n=e[0];if(n>t){let i=(0,a.kd)(n,t);e[0]=n+-2*t*i}else if(n<i){let t=(0,a.kd)(n,i);e[0]=n+-2*i*t}}else{let n=e.x;if(n>t){let i=(0,a.kd)(n,t);e.x+=-2*t*i}else if(n<i){let t=(0,a.kd)(n,i);e.x+=-2*i*t}}return e}function d(e,t){let i,[n,s]=t.valid,r=2*s,o=0;return e>s?(i=Math.ceil(Math.abs(e-s)/r),e-=i*r,o=i):e<n&&(i=Math.ceil(Math.abs(e-n)/r),e+=i*r,o=-i),{x:e,frameId:o}}function g(e,t){let{xmin:i,ymin:n,xmax:s,ymax:r}=t;return y(e,i,n)&&y(e,i,r)&&y(e,s,r)&&y(e,s,n)}function y(e,t,i){return t>=e.xmin&&t<=e.xmax&&i>=e.ymin&&i<=e.ymax}function _(e,t,i=!0){let n=!(0,l.Rg)(e);if(n&&(0,o.m3)(e),i)return(new C).cut(e,t);let s=n?e.rings:e.paths,r=n?4:2,a=s.length,h=-2*t;for(let e=0;e<a;e++){let t=s[e];if(t&&t.length>=r){let e=[];for(let[i,...n]of t)e.push([i+h,...n]);s.push(e)}}return n?e.rings=s:e.paths=s,e}class x{constructor(e,t){this.extent=e,this.frameIds=t}}const v=(0,s.vt)();class C{constructor(){this._linesIn=[],this._linesOut=[]}cut(e,t){let i;if(this._xCut=t,e.rings)this._closed=!0,i=e.rings,this._minPts=4;else{if(!e.paths)return null;this._closed=!1,i=e.paths,this._minPts=2}for(let e of i){if(!e||e.length<this._minPts)continue;let t=!0;for(let i of e)t?(this.moveTo(i),t=!1):this.lineTo(i);this._closed&&this.close()}this._pushLineIn(),this._pushLineOut(),i=[];for(let e of this._linesIn)e&&e.length>=this._minPts&&i.push(e);let n=-2*this._xCut;for(let e of this._linesOut)if(e&&e.length>=this._minPts){for(let t of e)t[0]+=n;i.push(e)}return this._closed?e.rings=i:e.paths=i,e}moveTo(e){this._pushLineIn(),this._pushLineOut(),this._prevSide=this._side(e[0]),this._moveTo(e,this._prevSide),this._prevPt=e,this._firstPt=e}lineTo(e){let t=this._side(e[0]);if(t*this._prevSide===-1){let i=this._intersect(this._prevPt,e);this._lineTo(i,0),this._prevSide=0,this._lineTo(e,t)}else this._lineTo(e,t);this._prevSide=t,this._prevPt=e}close(){let e=this._firstPt,t=this._prevPt;(e[0]!==t[0]||e[1]!==t[1])&&this.lineTo(e),this._checkClosingPt(this._lineIn),this._checkClosingPt(this._lineOut)}_moveTo(e,t){this._closed?(this._lineIn.push(w(e,t<=0?e[0]:this._xCut)),this._lineOut.push(w(e,t>=0?e[0]:this._xCut))):(t<=0&&this._lineIn.push(e.slice()),t>=0&&this._lineOut.push(e.slice()))}_lineTo(e,t){this._closed?(S(this._lineIn,e,t<=0?e[0]:this._xCut),S(this._lineOut,e,t>=0?e[0]:this._xCut)):t<0?(0===this._prevSide&&this._pushLineOut(),this._lineIn.push(e.slice())):t>0?(0===this._prevSide&&this._pushLineIn(),this._lineOut.push(e.slice())):this._prevSide<0?(this._lineIn.push(e.slice()),this._lineOut.push(e.slice())):this._prevSide>0&&(this._lineOut.push(e.slice()),this._lineIn.push(e.slice()))}_checkClosingPt(e){let t=e.length;t>3&&e[0][0]===this._xCut&&e[t-2][0]===this._xCut&&e[1][0]===this._xCut&&(e[0]=e[t-2].slice(),e.pop())}_side(e){return e<this._xCut?-1:+(e>this._xCut)}_intersect(e,t){let i=(this._xCut-e[0])/(t[0]-e[0]),n=[this._xCut,e[1]+i*(t[1]-e[1])],s=Math.min(e.length,t.length);for(let r=2;r<s;r++)n.push(e[r]+i*(t[r]-e[r]));return n}_pushLineIn(){this._lineIn&&this._lineIn.length>=this._minPts&&this._linesIn.push(this._lineIn),this._lineIn=[]}_pushLineOut(){this._lineOut&&this._lineOut.length>=this._minPts&&this._linesOut.push(this._lineOut),this._lineOut=[]}}function w(e,t){let i=e.slice();return i[0]=t,i}function S(e,t,i){let n=e.length;n>1&&e[n-1][0]===i&&e[n-2][0]===i?e[n-1]=w(t,i):e.push(w(t,i))}},58325(e,t,i){i.d(t,{A:()=>S});var n,s=i(32198),r=i(56507),o=i(7762),l=i(25482),a=i(84952),h=i(91429),u=i(4718),c=i(67076),p=i(87024),f=i(39829),m=i(99917),d=i(16930),g=i(21325),y=i(88546),_=i(72772),x=i(98697),v=i(43937);let C=n=class extends l.o{constructor(e){super(e),this.geometry=null,this.type="clip"}writeGeometry(e,t,i,n){if(this._needWGS84Conversion(n))this._doWGS84Conversion(t,i,n);else if(n.layer?.spatialReference&&!n.layer.spatialReference.equals(this.geometry.spatialReference)){if(!(0,m.canProjectWithoutEngine)(e.spatialReference,n.layer.spatialReference))return void(n?.messages&&n.messages.push(new c.A("scenemodification:unsupported","Scene modifications with incompatible spatial references are not supported",{modification:this,spatialReference:n.layer.spatialReference,context:n})));let s=new f.A;(0,m.projectPolygon)(e,s,n.layer.spatialReference),t[i]=s.toJSON(n)}else t[i]=e.toJSON(n)}_needWGS84Conversion(e){if("integrated-mesh-3dtiles"===e.layer?.type){let t=e.layer;return!t.esriCrsSpatialReference||!(0,g.aI)(t.esriCrsSpatialReference,this.geometry.spatialReference)}return!1}_doWGS84Conversion(e,t,i){let n=!0;if((0,_.isInitialized)()){let s=[this],r=(0,x.Ir)(null,s,d.A.WGS84);if(r.length>1){let s=(0,_.switchMeshModificationPolygonVCSSync)({modifications:r,inVCS:5773});if(s.success&&s.modifications){let r=[this.clone()];(0,x.H1)(s.modifications,r),1===r.length&&r[0].geometry&&(r[0].geometry.spatialReference=y.Zx,e[t]=r[0].geometry.toJSON(i),n=!1)}}}n&&i?.messages&&i.messages.push(new c.A("scenemodification:unsupported","Scene modifications with incompatible spatial references are not supported",{modification:this,spatialReference:this.geometry.spatialReference,context:i}))}clone(){return new n({geometry:(0,u.o8)(this.geometry),type:this.type})}};var w;(0,s.Cg)([(0,h.MZ)({type:f.A}),(0,p.P)()],C.prototype,"geometry",void 0),(0,s.Cg)([(0,v.K)(["web-scene","portal-item"],"geometry")],C.prototype,"writeGeometry",null),(0,s.Cg)([(0,h.MZ)({type:["clip","mask","replace"],nonNullable:!0}),(0,p.P)()],C.prototype,"type",void 0),C=n=(0,s.Cg)([(0,h.$K)("esri.layers.support.SceneModification")],C);let S=w=class extends((0,l.T)(o.A.ofType(C))){constructor(e){super(e),this.url=null}clone(){return new w({url:this.url,items:this.items.map(e=>e.clone())})}toJSON(e){return this.toArray().map(t=>t.toJSON(e)).filter(e=>!!e.geometry)}static fromJSON(e,t){let i=new w;for(let n of e)i.add(C.fromJSON(n,t));return i}static async fromUrl(e,t,i,n=!1){let s={url:(0,a.An)(e),origin:"service"},o=await(0,r.A)(e,{responseType:"json",signal:i?.signal}),l=t.toJSON(),h=[];for(let e of o.data){let t=l;n&&e.geometry.spatialReference&&(t=e.geometry.spatialReference),h.push(C.fromJSON({...e,geometry:{spatialReference:t,...e.geometry}},s))}return new w({url:e,items:h})}};(0,s.Cg)([(0,h.MZ)({type:String})],S.prototype,"url",void 0),S=w=(0,s.Cg)([(0,h.$K)("esri.layers.support.SceneModifications")],S)},85648(e,t,i){i.d(t,{n:()=>s});var n=i(84952);function s(e){return r[function(e){return"json"===e.type?"application/json":"blob"===e.type?e.blob.type:function(e){let t=(0,n.Zo)(e);return a[t]||o}(e.url)}(e)]||l}const r={},o="text/plain",l=r[o],a={png:"image/png",jpeg:"image/jpeg",jpg:"image/jpg",bmp:"image/bmp",gif:"image/gif",json:"application/json",txt:"text/plain",xml:"application/xml",svg:"image/svg+xml",zip:"application/zip",pbf:"application/vnd.mapbox-vector-tile",gz:"application/gzip","bin.gz":"application/octet-stream"};for(let e in a)r[a[e]]=e},80215(e,t,i){i.d(t,{Q:()=>s});const n=Symbol("GroundInstance");function s(e){return"object"==typeof e&&!!e&&n in e}},72772(e,t,i){i.r(t),i.d(t,{addSpatialReferenceInfo:()=>a,destroyWasm:()=>u,initialize:()=>c,isInitialized:()=>p,process:()=>l,switchMeshModificationPolygonVCSSync:()=>h});var n=i(2741);function s(e){return(0,n.s)(`esri/libs/lyr3d/${e}`)}i(49186),new Map;let r,o=null;async function l(e){await c();let t={status:1,error:"",jobDescJson:"",data:new Uint8Array,missingInputUrls:[]};if(e.inputs.length<1)return{result:t,transferList:[]};let i={ptrs:[],sizes:[]};for(let t of e.inputs){let e=o._malloc(t.byteLength);new Uint8Array(o.HEAPU8.buffer,e,t.byteLength).set(new Uint8Array(t)),i.ptrs.push(e),i.sizes.push(t.byteLength)}let n=o.process(e.jobDescJson,e.id,i,e.isMissingResourceCase);t.status=n.status,t.missingInputUrls=n.missingInputUrls.slice();let s=0===n.status&&n.data,r=2===t.status&&t.missingInputUrls.length>0;t.jobDescJson=n.jobDescJson.slice(),t.error=n.error.slice(),s?t.data=n.data.slice():r&&(t.originalInputs=e.inputs.slice());for(let e=0;e<i.ptrs.length;++e)o._free(i.ptrs[e]);let l=[];if(s)l.push(t.data.buffer);else if(r)for(let t of e.inputs)l.push(t);return{result:t,transferList:l}}async function a(e){await c(),o.add_spatial_reference_info(e.sr,e.isGCS,e.toMetersXY,e.toMetersZ)}function h(e){if(!o)return{success:!1,modifications:null};let t=o._malloc(8*e.modifications.length),i=new Float64Array(o.HEAPF64.buffer,t,e.modifications.length);i.set(e.modifications);let n=o.switch_mesh_modification_polygon_vcs(t,e.modifications.length,e.inVCS),s=null;return n&&(s=i.slice()),o._free(t),{success:n,modifications:s}}function u(){o&&=(o.uninitialize_lyr3d_worker_wasm(),null)}function c(){return p()?Promise.resolve():(r||=async function(){let{default:e}=await i.e(2343).then(()=>i(2343));return async function(e,t){return t({locateFile:s})}(0,e)}().then(e=>{o=e,o.initialize_lyr3d_worker_wasm(),r=null}),r)}function p(){return null!==o}},98697(e,t,i){i.d(t,{Cm:()=>f,H1:()=>x,Ir:()=>g,_b:()=>c,sQ:()=>p});var n=i(53966),s=i(15142),r=i(51850),o=i(35982),l=i(39829),a=i(99917),h=i(27993),u=i(89056);class c{constructor(e,t,i,n,s,r){this.layout=e,this.interleavedVertexData=t,this.indices=i,this.hasColors=n,this.hasModifications=s,this.positionData=r}}class p{constructor(e,t,i,n,s,r,o,l,a){this.componentOffsets=e,this.featureIds=t,this.anchorIds=i,this.anchors=n,this.transformedGeometry=s,this.globalTrafo=r,this.obb=o,this.geometryMinElevation=l,this.geometryMaxElevation=a}}class f extends o.B{constructor(e){super("SceneLayerWorker","process",{process:e=>[e.geometryBuffer],project:e=>[e.positions.buffer],transformNormals:e=>[e.normals.buffer]},e,{hasInitialize:!0}),this._schemasByContext=new Map,this._modificationsByContext=new Map}_onClientConnected(e){for(let[t,i]of this._schemasByContext)e.invoke("setLegacySchema",{context:t,jsonSchema:i}).catch(()=>{});for(let t of this._modificationsByContext.values())e.invoke("setModifications",t).catch(()=>{})}setModifications(e,t,i){let n={context:e,modifications:t,isGeodetic:i};return this._modificationsByContext.set(e,n),this.broadcast(n,"setModifications")}setLegacySchema(e,t){let i=JSON.stringify(t);return this._schemasByContext.set(e,i),this.broadcast({context:e,jsonSchema:i},"setLegacySchema")}destroyContext(e){return this._schemasByContext.delete(e),this._modificationsByContext.delete(e),this.broadcast(e,"destroyContext")}async destroyContextAndSelf(e){await this.destroyContext(e),this.destroy()}project(e,t){return this.invokeMethod("project",e,t)}transformNormals(e,t){return this.invokeMethod("transformNormals",e,t)}}const m=new s.A({deallocator:null}),d=(0,r.vt)();function g(e,t,i,s=!1){m.clear();let r=1/0,o=1/0,h=-1/0,c=-1/0,p=!1;for(let e of t){let t="clip"===e.type?2:+("mask"===e.type),f=e.geometry,d=f.spatialReference??i;if(d!==i&&!(0,a.canProjectWithoutEngine)(d,i)){n.A.getLogger("esri.views.3d.layers.SceneLayerWorkerHandle").warn("im-modification-projection-failed","Can't project modification polygon into layer spatial reference, ignoring modification",{polygon:f});continue}let g=f.rings;if(d!==i){let e=y(f.rings,d,i);if(null==e){n.A.getLogger("esri.views.3d.layers.SceneLayerWorkerHandle").warn("im-modification-projection-failed","Can't project modification polygon into layer spatial reference, ignoring modification",{polygon:f});continue}g=e}let x=g;if(s){let e=(0,u.jZ)(new l.A({rings:g,spatialReference:i}));null!=e&&(g=e.rings)}let v=1===x.length&&g.length>1?[...g.map(e=>[e]),x]:[g];if(v.some(e=>0===e.length||e.some(e=>e.length<3||e.some(e=>!_(e)))))n.A.getLogger("esri.views.3d.layers.SceneLayerWorkerHandle").warn("im-modification-invalid-polygon","Ignoring invalid modification polygon (empty ring, fewer than 3 vertices, or non-finite coordinates).",{polygon:f});else{p||=1===t;for(let e of v){m.push(t),m.push(e.length);for(let t of e){m.push(t.length);for(let e of t){let t=e[2]??0;m.push(e[0]),m.push(e[1]),m.push(t),r=Math.min(r,e[0]),o=Math.min(o,e[1]),h=Math.max(h,e[0]),c=Math.max(c,e[1])}}}}}if(null!=e)if(p){let t=1e-4;m.push(2),m.push(2),m.push(4),m.push(r-t),m.push(o-t),m.push(0),m.push(h+t),m.push(o-t),m.push(0),m.push(h+t),m.push(c+t),m.push(0),m.push(r-t),m.push(c+t),m.push(0),m.push(4),m.push(e[0]),m.push(e[1]),m.push(0),m.push(e[2]),m.push(e[1]),m.push(0),m.push(e[2]),m.push(e[3]),m.push(0),m.push(e[0]),m.push(e[3]),m.push(0)}else m.push(1),m.push(1),m.push(4),m.push(e[0]),m.push(e[1]),m.push(0),m.push(e[2]),m.push(e[1]),m.push(0),m.push(e[2]),m.push(e[3]),m.push(0),m.push(e[0]),m.push(e[3]),m.push(0);m.push(3);let f=new Float64Array(m.length);for(let e=0;e<m.length;++e)f[e]=m.at(e);return f}function y(e,t,i){let n=[];for(let s of e){let e=[];for(let n of s){if(!(0,h.F)(n,t,d,i)||!_(d))return null;e.push([d[0],d[1],d[2]])}n.push(e)}return n}function _(e){return Number.isFinite(e[0])&&Number.isFinite(e[1])&&(null==e[2]||Number.isFinite(e[2]))}function x(e,t){let i=0;for(let n of t){let t=n.geometry,s=t.rings.length,r=t.rings.some(e=>e.length<3);if(0!==s&&!r){i+=1,i+=1;for(let n=0;n<t.rings.length;++n){let s=t.rings[n];i+=1;for(let r=0;r<s.length;++r){let s=[e[i+0],e[i+1],e[i+2]];i+=3,t.setPoint(n,r,s)}}}}}}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2772,6451],{80200(e,t,i){i.d(t,{d:()=>c});const n={Base64:0,Hex:1,String:2,Raw:3};function s(e,t){let i=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(i>>16)<<16|65535&i}function r(e,t,i,n,r,o){return s(function(e,t){return e<<t|e>>>32-t}(s(s(t,e),s(n,o)),r),i)}function o(e,t,i,n,s,o,l){return r(t&i|~t&n,e,t,s,o,l)}function l(e,t,i,n,s,o,l){return r(t&n|i&~n,e,t,s,o,l)}function a(e,t,i,n,s,o,l){return r(t^i^n,e,t,s,o,l)}function h(e,t,i,n,s,o,l){return r(i^(t|~n),e,t,s,o,l)}function u(e,t){e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;let i=1732584193,n=-271733879,r=-1732584194,u=271733878;for(let t=0;t<e.length;t+=16){let c=i,p=n,f=r,m=u;i=o(i,n,r,u,e[t],7,-680876936),u=o(u,i,n,r,e[t+1],12,-389564586),r=o(r,u,i,n,e[t+2],17,606105819),n=o(n,r,u,i,e[t+3],22,-1044525330),i=o(i,n,r,u,e[t+4],7,-176418897),u=o(u,i,n,r,e[t+5],12,1200080426),r=o(r,u,i,n,e[t+6],17,-1473231341),n=o(n,r,u,i,e[t+7],22,-45705983),i=o(i,n,r,u,e[t+8],7,1770035416),u=o(u,i,n,r,e[t+9],12,-1958414417),r=o(r,u,i,n,e[t+10],17,-42063),n=o(n,r,u,i,e[t+11],22,-1990404162),i=o(i,n,r,u,e[t+12],7,1804603682),u=o(u,i,n,r,e[t+13],12,-40341101),r=o(r,u,i,n,e[t+14],17,-1502002290),n=o(n,r,u,i,e[t+15],22,1236535329),i=l(i,n,r,u,e[t+1],5,-165796510),u=l(u,i,n,r,e[t+6],9,-1069501632),r=l(r,u,i,n,e[t+11],14,643717713),n=l(n,r,u,i,e[t],20,-373897302),i=l(i,n,r,u,e[t+5],5,-701558691),u=l(u,i,n,r,e[t+10],9,38016083),r=l(r,u,i,n,e[t+15],14,-660478335),n=l(n,r,u,i,e[t+4],20,-405537848),i=l(i,n,r,u,e[t+9],5,568446438),u=l(u,i,n,r,e[t+14],9,-1019803690),r=l(r,u,i,n,e[t+3],14,-187363961),n=l(n,r,u,i,e[t+8],20,1163531501),i=l(i,n,r,u,e[t+13],5,-1444681467),u=l(u,i,n,r,e[t+2],9,-51403784),r=l(r,u,i,n,e[t+7],14,1735328473),n=l(n,r,u,i,e[t+12],20,-1926607734),i=a(i,n,r,u,e[t+5],4,-378558),u=a(u,i,n,r,e[t+8],11,-2022574463),r=a(r,u,i,n,e[t+11],16,1839030562),n=a(n,r,u,i,e[t+14],23,-35309556),i=a(i,n,r,u,e[t+1],4,-1530992060),u=a(u,i,n,r,e[t+4],11,1272893353),r=a(r,u,i,n,e[t+7],16,-155497632),n=a(n,r,u,i,e[t+10],23,-1094730640),i=a(i,n,r,u,e[t+13],4,681279174),u=a(u,i,n,r,e[t],11,-358537222),r=a(r,u,i,n,e[t+3],16,-722521979),n=a(n,r,u,i,e[t+6],23,76029189),i=a(i,n,r,u,e[t+9],4,-640364487),u=a(u,i,n,r,e[t+12],11,-421815835),r=a(r,u,i,n,e[t+15],16,530742520),n=a(n,r,u,i,e[t+2],23,-995338651),i=h(i,n,r,u,e[t],6,-198630844),u=h(u,i,n,r,e[t+7],10,1126891415),r=h(r,u,i,n,e[t+14],15,-1416354905),n=h(n,r,u,i,e[t+5],21,-57434055),i=h(i,n,r,u,e[t+12],6,1700485571),u=h(u,i,n,r,e[t+3],10,-1894986606),r=h(r,u,i,n,e[t+10],15,-1051523),n=h(n,r,u,i,e[t+1],21,-2054922799),i=h(i,n,r,u,e[t+8],6,1873313359),u=h(u,i,n,r,e[t+15],10,-30611744),r=h(r,u,i,n,e[t+6],15,-1560198380),n=h(n,r,u,i,e[t+13],21,1309151649),i=h(i,n,r,u,e[t+4],6,-145523070),u=h(u,i,n,r,e[t+11],10,-1120210379),r=h(r,u,i,n,e[t+2],15,718787259),n=h(n,r,u,i,e[t+9],21,-343485551),i=s(i,c),n=s(n,p),r=s(r,f),u=s(u,m)}return[i,n,r,u]}function c(e,t=n.Hex){let i=t||n.Base64,s=u(function(e){let t=[];for(let i=0,n=8*e.length;i<n;i+=8)t[i>>5]|=(255&e.charCodeAt(i/8))<<i%32;return t}(e),8*e.length);switch(i){case n.Raw:return s;case n.Hex:return function(e){let t="0123456789abcdef",i=[];for(let n=0,s=4*e.length;n<s;n++)i.push(t.charAt(e[n>>2]>>n%4*8+4&15)+t.charAt(e[n>>2]>>n%4*8&15));return i.join("")}(s);case n.String:return function(e){let t=[];for(let i=0,n=32*e.length;i<n;i+=8)t.push(String.fromCharCode(e[i>>5]>>>i%32&255));return t.join("")}(s);case n.Base64:return function(e){let t=[];for(let i=0,n=4*e.length;i<n;i+=3){let n=(e[i>>2]>>i%4*8&255)<<16|(e[i+1>>2]>>(i+1)%4*8&255)<<8|e[i+2>>2]>>(i+2)%4*8&255;for(let s=0;s<4;s++)8*i+6*s>32*e.length?t.push("="):t.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(n>>6*(3-s)&63))}return t.join("")}(s)}}i.d(t,["T",0,n])},87024(e,t,i){i.d(t,{P:()=>f});var n=i(49186),s=i(80200),r=i(76553),o=i(84952),l=i(13069),a=i(96156),h=i(35666),u=i(10107),c=i(85648),p=i(97159);function f(e){let t=e?.origins??[void 0];return(i,n)=>{let s=function(e,t,i){if("resource"===e?.type)return function(e,t,i){let n=(0,a.z4)(t,i);return{type:String,read:(e,t,i)=>{let s=(0,p.r)(e,t,i);return n.type===String?s:"function"==typeof n.type?new n.type({url:s}):void 0},write:{isRequired:n.json?.write?.isRequired,writer(t,s,l,a){if(!a?.resources)return"string"==typeof t?void(s[l]=(0,p.t)(t,a)):void(s[l]=t.write({},a));let u=function(e){return null==e?null:"string"==typeof e?e:e.url}(t),f=(0,p.t)(u,{...a,verifyItemRelativeUrls:a?.verifyItemRelativeUrls?{writtenUrls:a.verifyItemRelativeUrls.writtenUrls,rootPath:void 0}:void 0},1),y=n.type!==String&&(!(0,r.H)(this)||a?.origin&&this.originIdOf(i)>(0,h.aB)(a.origin)),_={object:this,propertyName:i,value:t,targetUrl:f,dest:s,targetPropertyName:l,context:a,params:e};a?.portalItem&&f&&!(0,o.oP)(f)?y&&e?.contentAddressed?m(_):y?function(e){let{context:t,targetUrl:i,params:n,value:s,dest:r,targetPropertyName:l}=e;if(!t.portalItem)return;let a=t.portalItem.resourceFromPath(i),h=g(s,i,t),u=(0,c.n)(h),p=(0,o.Zo)(a.path),f=n?.compress??!1;u===p?(t.resources&&d({...e,resource:a,content:h,compress:f,updates:t.resources.toUpdate}),r[l]=i):m(e)}(_):function({context:e,targetUrl:t,dest:i,targetPropertyName:n}){e.portalItem&&e.resources&&(e.resources.toKeep.push({resource:e.portalItem.resourceFromPath(t),compress:!1}),i[n]=t)}(_):a?.portalItem&&(null==f||null!=(0,p.i)(f)||(0,o.w8)(f)||y)?m(_):s[l]=f}}}}(e,t,i);switch(e?.type??"other"){case"other":return{read:!0,write:!0};case"url":{let{read:e,write:t}=p.b;return{read:e,write:t}}}}(e,i,n);for(let e of t){let t=(0,u.rM)(i,e,n);for(let e in s)t[e]=s[e]}}}function m(e){let{targetUrl:t,params:i,value:r,context:a,dest:h,targetPropertyName:u}=e;if(!a.portalItem)return;let f=(0,p.p)(t),m=g(r,t,a);if(i?.contentAddressed&&"json"!==m.type)return void a.messages?.push(new n.A("persistable:contentAddressingUnsupported",`Property "${u}" is trying to serializing a resource with content of type ${m.type} with content addressing. Content addressing is only supported for json resources.`,{content:m}));let y=i?.contentAddressed&&"json"===m.type?(0,s.d)(m.jsonString):f?.filename??(0,l.lk)(),_=i?.prefix??f?.prefix,x=(0,o.fj)(_,y),v=`${x}.${(0,c.n)(m)}`;if(i?.contentAddressed&&a.resources&&"json"===m.type){let e=a.resources.toKeep.find(({resource:e})=>e.path===v)??a.resources.toAdd.find(({resource:e})=>e.path===v);if(e)return void(h[u]=e.resource.itemRelativeUrl)}let C=a.portalItem.resourceFromPath(v);(0,o.w8)(t)&&a.resources&&a.resources.pendingOperations.push((0,o.tk)(t).then(e=>{C.path=`${x}.${(0,c.n)({type:"blob",blob:e})}`,h[u]=C.itemRelativeUrl}).catch(()=>{}));let w=i?.compress??!1;a.resources&&d({...e,resource:C,content:m,compress:w,updates:a.resources.toAdd}),h[u]=C.itemRelativeUrl}function d({object:e,propertyName:t,updates:i,resource:n,content:s,compress:r}){i.push({resource:n,content:s,compress:r,finish:i=>{!function(e,t,i){"string"==typeof e[t]?e[t]=i.url:e[t].url=i.url}(e,t,i)}})}function g(e,t,i){return"string"==typeof e?{type:"url",url:t}:{type:"json",jsonString:JSON.stringify(e.toJSON(i))}}},83027(e,t,i){const n=i(29953).ho;i.d(t,["h",0,n])},35982(e,t,i){i.d(t,{B:()=>u});var n=i(4576),s=i(71511),r=i(36563),o=i(53966),l=i(97768),a=i(17676),h=i(83027);class u{constructor(e,t,i,n,s={}){this._mainMethod=t,this._transferLists=i,this._listeners=[],this._onClientConnectedHandle=null,this._destroyed=!1,this._promise=(0,h.h)(e,{...s,schedule:n}).then(e=>{null!=this._thread||this._destroyed?e.close():(this._thread=e,this._promise=null,this._onClientConnectedHandle=this._thread.onClientConnected(e=>{s.hasInitialize&&e.invoke("initialize",{}).catch(()=>{});for(let t of this._listeners)this._connectListenerToClient(t,e);this._onClientConnected(e)}))}),this._promise.catch(t=>o.A.getLogger("esri.core.workers.WorkerHandle").error(`Failed to initialize ${e} worker: ${t}`))}on(e,t){let i=new c(e,t);return this._listeners.push(i),this._connectListener(i),(0,r.hA)(()=>{(0,n.TF)(this._listeners,i),i.destroy()})}[Symbol.dispose](){this.destroy()}destroy(){this._onClientConnectedHandle=(0,l.xt)(this._onClientConnectedHandle),this._thread&&=(this._thread.close(),null),this._promise=null;for(let e of this._listeners)e.destroy();this._listeners.length=0,this._transferLists={},this._destroyed=!0}invoke(e,t,i){return this.invokeMethod(this._mainMethod,e,t,i)}invokeMethod(e,t,i,n){return this._invokeMethod(e,[t],i,n)}invokeMethodWithArgs(e,t,i,n){return this._invokeMethod(e,t,i,n)}_invokeMethod(e,t,i,n){if(this._thread){let s=this._transferLists[e],r=s?s(...t):[];return this._thread.apply(e,t,{transferList:r,signal:i,jobPriority:n})}return this._promise?this._promise.then(()=>((0,a.Te)(i),this._invokeMethod(e,t,i,n))):Promise.reject((0,a.NK)())}broadcast(e,t){return this._thread?Promise.all(this._thread.broadcast(t,e)).then(p):this._promise?this._promise.then(()=>this.broadcast(e,t)):Promise.reject((0,a.NK)())}get promise(){return this._promise}_onClientConnected(e){}_connectListener(e){this._thread&&e.add(this._thread.on(e.eventName,e.callback))}_connectListenerToClient(e,t){e.add(t.on(e.eventName,e.callback))}}class c{constructor(e,t){this.eventName=e,this.callback=t,this._handles=new s.A}add(e){this._handles.add(e)}destroy(){this._handles.destroy()}}function p(){}},89056(e,t,i){i.d(t,{b3:()=>c,jZ:()=>u});var n=i(12195),s=i(19419),r=i(537),o=i(95108),l=i(60408),a=i(80754),h=i(21325);function u(e){return p(e,!0)}function c(e){return p(e,!1)}function p(e,t){if(null==e)return null;let i=e.spatialReference,s=(0,h.Vp)(i),o=(0,n.W)(e)?e.toJSON():e;if(!s)return o;let u=(0,h.K8)(i)?102100:4326,c=a.j7[u].maxX,p=a.j7[u].minX;if((0,l.fT)(o))return m(o,c,p);if((0,l.U9)(o))return o.points=o.points.map(e=>m(e,c,p)),o;if((0,l.ZC)(o))return f(o,s);if((0,l.Bi)(o)||(0,l.Rg)(o)){let e=(0,r.Rg)(v,o),i={xmin:e[0],ymin:e[1],xmax:e[2],ymax:e[3]},n=(0,a.kd)(i.xmin,p),s=2*c*n,l=0===s?o:(0,a.kS)(o,s);return i.xmin+=s,i.xmax+=s,i.xmax>c?_(l,c,t):i.xmin<p?_(l,p,t):l}return o}function f(e,t){if(!t)return e;let i=function(e,t){let i=[],{ymin:n,ymax:s,xmin:r,xmax:o}=e,l=e.xmax-e.xmin,[a,h]=t.valid,{x:u,frameId:c}=d(e.xmin,t),{x:p,frameId:f}=d(e.xmax,t),m=u===p&&l>0;if(l>2*h){let e={xmin:r<o?u:p,ymin:n,xmax:h,ymax:s},t={xmin:a,ymin:n,xmax:r<o?p:u,ymax:s},l={xmin:0,ymin:n,xmax:h,ymax:s},m={xmin:a,ymin:n,xmax:0,ymax:s},d=[],y=[];g(e,l)&&d.push(c),g(e,m)&&y.push(c),g(t,l)&&d.push(f),g(t,m)&&y.push(f);for(let e=c+1;e<f;e++)d.push(e),y.push(e);i.push(new x(e,[c]),new x(t,[f]),new x(l,d),new x(m,y))}else u>p||m?i.push(new x({xmin:u,ymin:n,xmax:h,ymax:s},[c]),new x({xmin:a,ymin:n,xmax:p,ymax:s},[f])):i.push(new x({xmin:u,ymin:n,xmax:p,ymax:s},[c]));return i}(e,t).map(e=>e.extent);return i.length<2?i[0]||e:i.length>2?(e.xmin=t.valid[0],e.xmax=t.valid[1],e):{rings:i.map(e=>[[e.xmin,e.ymin],[e.xmin,e.ymax],[e.xmax,e.ymax],[e.xmax,e.ymin],[e.xmin,e.ymin]])}}function m(e,t,i){if(Array.isArray(e)){let n=e[0];if(n>t){let i=(0,a.kd)(n,t);e[0]=n+-2*t*i}else if(n<i){let t=(0,a.kd)(n,i);e[0]=n+-2*i*t}}else{let n=e.x;if(n>t){let i=(0,a.kd)(n,t);e.x+=-2*t*i}else if(n<i){let t=(0,a.kd)(n,i);e.x+=-2*i*t}}return e}function d(e,t){let i,[n,s]=t.valid,r=2*s,o=0;return e>s?(i=Math.ceil(Math.abs(e-s)/r),e-=i*r,o=i):e<n&&(i=Math.ceil(Math.abs(e-n)/r),e+=i*r,o=-i),{x:e,frameId:o}}function g(e,t){let{xmin:i,ymin:n,xmax:s,ymax:r}=t;return y(e,i,n)&&y(e,i,r)&&y(e,s,r)&&y(e,s,n)}function y(e,t,i){return t>=e.xmin&&t<=e.xmax&&i>=e.ymin&&i<=e.ymax}function _(e,t,i=!0){let n=!(0,l.Rg)(e);if(n&&(0,o.m3)(e),i)return(new C).cut(e,t);let s=n?e.rings:e.paths,r=n?4:2,a=s.length,h=-2*t;for(let e=0;e<a;e++){let t=s[e];if(t&&t.length>=r){let e=[];for(let[i,...n]of t)e.push([i+h,...n]);s.push(e)}}return n?e.rings=s:e.paths=s,e}class x{constructor(e,t){this.extent=e,this.frameIds=t}}const v=(0,s.vt)();class C{constructor(){this._linesIn=[],this._linesOut=[]}cut(e,t){let i;if(this._xCut=t,e.rings)this._closed=!0,i=e.rings,this._minPts=4;else{if(!e.paths)return null;this._closed=!1,i=e.paths,this._minPts=2}for(let e of i){if(!e||e.length<this._minPts)continue;let t=!0;for(let i of e)t?(this.moveTo(i),t=!1):this.lineTo(i);this._closed&&this.close()}this._pushLineIn(),this._pushLineOut(),i=[];for(let e of this._linesIn)e&&e.length>=this._minPts&&i.push(e);let n=-2*this._xCut;for(let e of this._linesOut)if(e&&e.length>=this._minPts){for(let t of e)t[0]+=n;i.push(e)}return this._closed?e.rings=i:e.paths=i,e}moveTo(e){this._pushLineIn(),this._pushLineOut(),this._prevSide=this._side(e[0]),this._moveTo(e,this._prevSide),this._prevPt=e,this._firstPt=e}lineTo(e){let t=this._side(e[0]);if(t*this._prevSide===-1){let i=this._intersect(this._prevPt,e);this._lineTo(i,0),this._prevSide=0,this._lineTo(e,t)}else this._lineTo(e,t);this._prevSide=t,this._prevPt=e}close(){let e=this._firstPt,t=this._prevPt;(e[0]!==t[0]||e[1]!==t[1])&&this.lineTo(e),this._checkClosingPt(this._lineIn),this._checkClosingPt(this._lineOut)}_moveTo(e,t){this._closed?(this._lineIn.push(w(e,t<=0?e[0]:this._xCut)),this._lineOut.push(w(e,t>=0?e[0]:this._xCut))):(t<=0&&this._lineIn.push(e.slice()),t>=0&&this._lineOut.push(e.slice()))}_lineTo(e,t){this._closed?(S(this._lineIn,e,t<=0?e[0]:this._xCut),S(this._lineOut,e,t>=0?e[0]:this._xCut)):t<0?(0===this._prevSide&&this._pushLineOut(),this._lineIn.push(e.slice())):t>0?(0===this._prevSide&&this._pushLineIn(),this._lineOut.push(e.slice())):this._prevSide<0?(this._lineIn.push(e.slice()),this._lineOut.push(e.slice())):this._prevSide>0&&(this._lineOut.push(e.slice()),this._lineIn.push(e.slice()))}_checkClosingPt(e){let t=e.length;t>3&&e[0][0]===this._xCut&&e[t-2][0]===this._xCut&&e[1][0]===this._xCut&&(e[0]=e[t-2].slice(),e.pop())}_side(e){return e<this._xCut?-1:+(e>this._xCut)}_intersect(e,t){let i=(this._xCut-e[0])/(t[0]-e[0]),n=[this._xCut,e[1]+i*(t[1]-e[1])],s=Math.min(e.length,t.length);for(let r=2;r<s;r++)n.push(e[r]+i*(t[r]-e[r]));return n}_pushLineIn(){this._lineIn&&this._lineIn.length>=this._minPts&&this._linesIn.push(this._lineIn),this._lineIn=[]}_pushLineOut(){this._lineOut&&this._lineOut.length>=this._minPts&&this._linesOut.push(this._lineOut),this._lineOut=[]}}function w(e,t){let i=e.slice();return i[0]=t,i}function S(e,t,i){let n=e.length;n>1&&e[n-1][0]===i&&e[n-2][0]===i?e[n-1]=w(t,i):e.push(w(t,i))}},58325(e,t,i){i.d(t,{A:()=>S});var n,s=i(32198),r=i(56507),o=i(7762),l=i(25482),a=i(84952),h=i(91429),u=i(4718),c=i(67076),p=i(87024),f=i(39829),m=i(99917),d=i(16930),g=i(21325),y=i(88546),_=i(72772),x=i(98697),v=i(43937);let C=n=class extends l.o{constructor(e){super(e),this.geometry=null,this.type="clip"}writeGeometry(e,t,i,n){if(this._needWGS84Conversion(n))this._doWGS84Conversion(t,i,n);else if(n.layer?.spatialReference&&!n.layer.spatialReference.equals(this.geometry.spatialReference)){if(!(0,m.canProjectWithoutEngine)(e.spatialReference,n.layer.spatialReference))return void(n?.messages&&n.messages.push(new c.A("scenemodification:unsupported","Scene modifications with incompatible spatial references are not supported",{modification:this,spatialReference:n.layer.spatialReference,context:n})));let s=new f.A;(0,m.projectPolygon)(e,s,n.layer.spatialReference),t[i]=s.toJSON(n)}else t[i]=e.toJSON(n)}_needWGS84Conversion(e){if("integrated-mesh-3dtiles"===e.layer?.type){let t=e.layer;return!t.esriCrsSpatialReference||!(0,g.aI)(t.esriCrsSpatialReference,this.geometry.spatialReference)}return!1}_doWGS84Conversion(e,t,i){let n=!0;if((0,_.isInitialized)()){let s=[this],r=(0,x.Ir)(null,s,d.A.WGS84);if(r.length>1){let s=(0,_.switchMeshModificationPolygonVCSSync)({modifications:r,inVCS:5773});if(s.success&&s.modifications){let r=[this.clone()];(0,x.H1)(s.modifications,r),1===r.length&&r[0].geometry&&(r[0].geometry.spatialReference=y.Zx,e[t]=r[0].geometry.toJSON(i),n=!1)}}}n&&i?.messages&&i.messages.push(new c.A("scenemodification:unsupported","Scene modifications with incompatible spatial references are not supported",{modification:this,spatialReference:this.geometry.spatialReference,context:i}))}clone(){return new n({geometry:(0,u.o8)(this.geometry),type:this.type})}};var w;(0,s.Cg)([(0,h.MZ)({type:f.A}),(0,p.P)()],C.prototype,"geometry",void 0),(0,s.Cg)([(0,v.K)(["web-scene","portal-item"],"geometry")],C.prototype,"writeGeometry",null),(0,s.Cg)([(0,h.MZ)({type:["clip","mask","replace"],nonNullable:!0}),(0,p.P)()],C.prototype,"type",void 0),C=n=(0,s.Cg)([(0,h.$K)("esri.layers.support.SceneModification")],C);let S=w=class extends((0,l.T)(o.A.ofType(C))){constructor(e){super(e),this.url=null}clone(){return new w({url:this.url,items:this.items.map(e=>e.clone())})}toJSON(e){return this.toArray().map(t=>t.toJSON(e)).filter(e=>!!e.geometry)}static fromJSON(e,t){let i=new w;for(let n of e)i.add(C.fromJSON(n,t));return i}static async fromUrl(e,t,i,n=!1){let s={url:(0,a.An)(e),origin:"service"},o=await(0,r.A)(e,{responseType:"json",signal:i?.signal}),l=t.toJSON(),h=[];for(let e of o.data){let t=l;n&&e.geometry.spatialReference&&(t=e.geometry.spatialReference),h.push(C.fromJSON({...e,geometry:{spatialReference:t,...e.geometry}},s))}return new w({url:e,items:h})}};(0,s.Cg)([(0,h.MZ)({type:String})],S.prototype,"url",void 0),S=w=(0,s.Cg)([(0,h.$K)("esri.layers.support.SceneModifications")],S)},85648(e,t,i){i.d(t,{n:()=>s});var n=i(84952);function s(e){return r[function(e){return"json"===e.type?"application/json":"blob"===e.type?e.blob.type:function(e){let t=(0,n.Zo)(e);return a[t]||o}(e.url)}(e)]||l}const r={},o="text/plain",l=r[o],a={png:"image/png",jpeg:"image/jpeg",jpg:"image/jpg",bmp:"image/bmp",gif:"image/gif",json:"application/json",txt:"text/plain",xml:"application/xml",svg:"image/svg+xml",zip:"application/zip",pbf:"application/vnd.mapbox-vector-tile",gz:"application/gzip","bin.gz":"application/octet-stream"};for(let e in a)r[a[e]]=e},80215(e,t,i){i.d(t,{Q:()=>s});const n=Symbol("GroundInstance");function s(e){return"object"==typeof e&&!!e&&n in e}},72772(e,t,i){i.r(t),i.d(t,{addSpatialReferenceInfo:()=>a,destroyWasm:()=>u,initialize:()=>c,isInitialized:()=>p,process:()=>l,switchMeshModificationPolygonVCSSync:()=>h});var n=i(2741);function s(e){return(0,n.s)(`esri/libs/lyr3d/${e}`)}i(49186),new Map;let r,o=null;async function l(e){await c();let t={status:1,error:"",jobDescJson:"",data:new Uint8Array,missingInputs:[]};if(e.inputs.length<1)return{result:t,transferList:[]};let i={ptrs:[],sizes:[]};for(let t of e.inputs){let e=o._malloc(t.byteLength);new Uint8Array(o.HEAPU8.buffer,e,t.byteLength).set(new Uint8Array(t)),i.ptrs.push(e),i.sizes.push(t.byteLength)}let n=o.process(e.jobDescJson,e.id,i,e.isMissingResourceCase);t.status=n.status,t.missingInputs=n.missingInputs.slice();let s=0===n.status&&n.data,r=2===t.status&&t.missingInputs.length>0;t.jobDescJson=n.jobDescJson.slice(),t.error=n.error.slice(),s?t.data=n.data.slice():r&&(t.originalInputs=e.inputs.slice());for(let e=0;e<i.ptrs.length;++e)o._free(i.ptrs[e]);let l=[];if(s)l.push(t.data.buffer);else if(r)for(let t of e.inputs)l.push(t);return{result:t,transferList:l}}async function a(e){await c(),o.add_spatial_reference_info(e.sr,e.isGCS,e.toMetersXY,e.toMetersZ)}function h(e){if(!o)return{success:!1,modifications:null};let t=o._malloc(8*e.modifications.length),i=new Float64Array(o.HEAPF64.buffer,t,e.modifications.length);i.set(e.modifications);let n=o.switch_mesh_modification_polygon_vcs(t,e.modifications.length,e.inVCS),s=null;return n&&(s=i.slice()),o._free(t),{success:n,modifications:s}}function u(){o&&=(o.uninitialize_lyr3d_worker_wasm(),null)}function c(){return p()?Promise.resolve():(r||=async function(){let{default:e}=await i.e(2343).then(()=>i(2343));return async function(e,t){return t({locateFile:s})}(0,e)}().then(e=>{o=e,o.initialize_lyr3d_worker_wasm(),r=null}),r)}function p(){return null!==o}},98697(e,t,i){i.d(t,{Cm:()=>f,H1:()=>x,Ir:()=>g,_b:()=>c,sQ:()=>p});var n=i(53966),s=i(15142),r=i(51850),o=i(35982),l=i(39829),a=i(99917),h=i(27993),u=i(89056);class c{constructor(e,t,i,n,s,r){this.layout=e,this.interleavedVertexData=t,this.indices=i,this.hasColors=n,this.hasModifications=s,this.positionData=r}}class p{constructor(e,t,i,n,s,r,o,l,a){this.componentOffsets=e,this.featureIds=t,this.anchorIds=i,this.anchors=n,this.transformedGeometry=s,this.globalTrafo=r,this.obb=o,this.geometryMinElevation=l,this.geometryMaxElevation=a}}class f extends o.B{constructor(e){super("SceneLayerWorker","process",{process:e=>[e.geometryBuffer],project:e=>[e.positions.buffer],transformNormals:e=>[e.normals.buffer]},e,{hasInitialize:!0}),this._schemasByContext=new Map,this._modificationsByContext=new Map}_onClientConnected(e){for(let[t,i]of this._schemasByContext)e.invoke("setLegacySchema",{context:t,jsonSchema:i}).catch(()=>{});for(let t of this._modificationsByContext.values())e.invoke("setModifications",t).catch(()=>{})}setModifications(e,t,i){let n={context:e,modifications:t,isGeodetic:i};return this._modificationsByContext.set(e,n),this.broadcast(n,"setModifications")}setLegacySchema(e,t){let i=JSON.stringify(t);return this._schemasByContext.set(e,i),this.broadcast({context:e,jsonSchema:i},"setLegacySchema")}destroyContext(e){return this._schemasByContext.delete(e),this._modificationsByContext.delete(e),this.broadcast(e,"destroyContext")}async destroyContextAndSelf(e){await this.destroyContext(e),this.destroy()}project(e,t){return this.invokeMethod("project",e,t)}transformNormals(e,t){return this.invokeMethod("transformNormals",e,t)}}const m=new s.A({deallocator:null}),d=(0,r.vt)();function g(e,t,i,s=!1){m.clear();let r=1/0,o=1/0,h=-1/0,c=-1/0,p=!1;for(let e of t){let t="clip"===e.type?2:+("mask"===e.type),f=e.geometry,d=f.spatialReference??i;if(d!==i&&!(0,a.canProjectWithoutEngine)(d,i)){n.A.getLogger("esri.views.3d.layers.SceneLayerWorkerHandle").warn("im-modification-projection-failed","Can't project modification polygon into layer spatial reference, ignoring modification",{polygon:f});continue}let g=f.rings;if(d!==i){let e=y(f.rings,d,i);if(null==e){n.A.getLogger("esri.views.3d.layers.SceneLayerWorkerHandle").warn("im-modification-projection-failed","Can't project modification polygon into layer spatial reference, ignoring modification",{polygon:f});continue}g=e}let x=g;if(s){let e=(0,u.jZ)(new l.A({rings:g,spatialReference:i}));null!=e&&(g=e.rings)}let v=1===x.length&&g.length>1?[...g.map(e=>[e]),x]:[g];if(v.some(e=>0===e.length||e.some(e=>e.length<3||e.some(e=>!_(e)))))n.A.getLogger("esri.views.3d.layers.SceneLayerWorkerHandle").warn("im-modification-invalid-polygon","Ignoring invalid modification polygon (empty ring, fewer than 3 vertices, or non-finite coordinates).",{polygon:f});else{p||=1===t;for(let e of v){m.push(t),m.push(e.length);for(let t of e){m.push(t.length);for(let e of t){let t=e[2]??0;m.push(e[0]),m.push(e[1]),m.push(t),r=Math.min(r,e[0]),o=Math.min(o,e[1]),h=Math.max(h,e[0]),c=Math.max(c,e[1])}}}}}if(null!=e)if(p){let t=1e-4;m.push(2),m.push(2),m.push(4),m.push(r-t),m.push(o-t),m.push(0),m.push(h+t),m.push(o-t),m.push(0),m.push(h+t),m.push(c+t),m.push(0),m.push(r-t),m.push(c+t),m.push(0),m.push(4),m.push(e[0]),m.push(e[1]),m.push(0),m.push(e[2]),m.push(e[1]),m.push(0),m.push(e[2]),m.push(e[3]),m.push(0),m.push(e[0]),m.push(e[3]),m.push(0)}else m.push(1),m.push(1),m.push(4),m.push(e[0]),m.push(e[1]),m.push(0),m.push(e[2]),m.push(e[1]),m.push(0),m.push(e[2]),m.push(e[3]),m.push(0),m.push(e[0]),m.push(e[3]),m.push(0);m.push(3);let f=new Float64Array(m.length);for(let e=0;e<m.length;++e)f[e]=m.at(e);return f}function y(e,t,i){let n=[];for(let s of e){let e=[];for(let n of s){if(!(0,h.F)(n,t,d,i)||!_(d))return null;e.push([d[0],d[1],d[2]])}n.push(e)}return n}function _(e){return Number.isFinite(e[0])&&Number.isFinite(e[1])&&(null==e[2]||Number.isFinite(e[2]))}function x(e,t){let i=0;for(let n of t){let t=n.geometry,s=t.rings.length,r=t.rings.some(e=>e.length<3);if(0!==s&&!r){i+=1,i+=1;for(let n=0;n<t.rings.length;++n){let s=t.rings[n];i+=1;for(let r=0;r<s.length;++r){let s=[e[i+0],e[i+1],e[i+2]];i+=3,t.setPoint(n,r,s)}}}}}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5356,5613],{22429(e,a,r){r.d(a,{v:()=>n});var t=r(7861);class n{constructor(){this._serviceMetadatas=new Map,this._itemDatas=new Map}async fetchServiceMetadata(e,a){let r=this._serviceMetadatas.get(e);if(r)return r;let n=await(0,t.L)(e,a);return this._serviceMetadatas.set(e,n),n}async fetchItemData(e){let{id:a}=e;if(!a)return null;let{_itemDatas:r}=this;if(r.has(a))return r.get(a);let t=await e.fetchData();return r.set(a,t),t}async fetchCustomParameters(e,a){let r=await this.fetchItemData(e);return r&&"object"==typeof r&&(a?a(r):r.customParameters)||null}}},92009(e,a,r){r.d(a,{L:()=>u});var t=r(70333),n=r(56507),i=r(49186),l=r(17676),s=r(60694),y=r(20655),c=r(80812);async function u(e,a){let r=(0,s.qg)(e);if(!r)throw new i.A("invalid-url","Invalid scene service url");let u={...a,sceneServerUrl:r.url.path,layerId:r.sublayer??void 0};if(u.sceneLayerItem??=await async function(e){let a=(await o(e)).serviceItemId;if(!a)return null;let r=new c.default({id:a,apiKey:e.apiKey}),i=await async function(e){let a=t.id?.findServerInfo(e.sceneServerUrl);if(a?.owningSystemUrl)return a.owningSystemUrl;let r=e.sceneServerUrl.replace(/(.*\/rest)\/.*/i,"$1")+"/info";try{let a=(await(0,n.A)(r,{query:{f:"json"},responseType:"json",signal:e.signal})).data.owningSystemUrl;if(a)return a}catch(e){(0,l.QP)(e)}return null}(e);null!=i&&(r.portal=new y.A({url:i}));try{return await r.load({signal:e.signal})}catch(e){return(0,l.QP)(e),null}}(u),null==u.sceneLayerItem)return L(u.sceneServerUrl.replace("/SceneServer","/FeatureServer"),u);let d=await async function({sceneLayerItem:e,signal:a}){if(!e)return null;try{let r=(await e.fetchRelatedItems({relationshipType:"Service2Service",direction:"reverse"},{signal:a})).find(e=>"Feature Service"===e.type)||null;if(!r)return null;let t=new c.default({portal:r.portal,id:r.id});return await t.load(),t}catch(e){return(0,l.QP)(e),null}}(u);if(!d?.url)throw new i.A("related-service-not-found","Could not find feature service through portal item relationship");u.featureServiceItem=d;let f=await L(d.url,u);return f.portalItem=d,f}async function o(e){if(e.rootDocument)return e.rootDocument;let a={query:{f:"json",...e.customParameters,token:e.apiKey},responseType:"json",signal:e.signal};try{e.rootDocument=(await(0,n.A)(e.sceneServerUrl,a)).data}catch{e.rootDocument={}}return e.rootDocument}async function L(e,a){let r=(0,s.qg)(e);if(!r)throw new i.A("invalid-feature-service-url","Invalid feature service url");let t=r.url.path,l=a.layerId;if(null==l)return{serverUrl:t};let y=o(a),c=a.featureServiceItem?await a.featureServiceItem.fetchData("json"):null,u=(c?.layers?.[0]||c?.tables?.[0])?.customParameters,L=e=>{let r={query:{f:"json",...u},responseType:"json",authMode:e,signal:a.signal};return(0,n.A)(t,r)},d=L("anonymous").catch(()=>L("no-prompt")),[f,m]=await Promise.all([d,y]),p=m?.layers,S=f.data&&f.data.layers;if(!Array.isArray(S))throw Error("expected layers array");if(Array.isArray(p)){for(let e=0;e<Math.min(p.length,S.length);e++)if(p[e].id===l)return{serverUrl:t,layerId:S[e].id}}else if(null!=l&&l<S.length)return{serverUrl:t,layerId:S[l].id};throw Error("could not find matching associated sublayer")}},23154(e,a,r){r.d(a,{A6:()=>s,Aq:()=>m,Jo:()=>f,QM:()=>l});var t=r(77548),n=r(7861);const i=new Set(["Annotation Layer","Catalog Layer","Dimension Layer","Feature Layer","Oriented Imagery Layer"]);async function l(e,a){let{serviceJSON:r,layersJSON:t,...n}=await s(e,a);u(r);let i={serviceJSON:r,...n};return t&&(u(t),i.layersJSON=t),i}async function s(e,a){let{loadContext:r,...i}=a||{},l=r?await r.fetchServiceMetadata(e,i):await(0,n.L)(e,i),s=(0,t.G$)();d(l);let y={serviceJSON:l,preferredHost:s};if((l.currentVersion??0)<10.5)return y;let c=`${(0,t.$x)()??e}/layers`,u=r?await r.fetchServiceMetadata(c,i):await(0,n.L)(c,i);return d(u),y.layersJSON={layers:u.layers,tables:u.tables},y}function y(e){return i.has(e.type)}function c(e){return"Table"===e.type}function u(e){e.layers=e.layers?.filter(y),e.tables=e.tables?.filter(c)}function o(e){e.type||="Feature Layer"}function L(e){e.type||="Table"}function d(e){e.layers?.forEach(o),e.tables?.forEach(L)}function f(e){if(!e)return"FeatureLayer";switch(e){case"Feature Layer":case"Table":return"FeatureLayer";case"Oriented Imagery Layer":return"OrientedImageryLayer";case"Catalog Layer":return"CatalogLayer";case"Dimension Layer":return"DimensionFeatureLayer";case"Annotation Layer":return"AnnotationFeatureLayer"}return null}function m(e,a){if(!e)return a?"Table":"ArcGISFeatureLayer";switch(e){case"Annotation Layer":return"ArcGISAnnotationLayer";case"Catalog Layer":return"CatalogLayer";case"Dimension Layer":return"ArcGISDimensionLayer";case"Feature Layer":return"ArcGISFeatureLayer";case"Oriented Imagery Layer":return"OrientedImageryLayer";case"Parcel Layer":return"ParcelLayer";case"Table":return"Table";case"Topology Layer":return"TopologyLayer";case"Trace Network Layer":return"TraceNetworkLayer";case"Utility Network Layer":return"UtilityNetworkLayer";default:return null}}},75356(e,a,r){r.d(a,{N:()=>p,populateOperationalLayers:()=>L});var t=r(7762),n=r(44208),i=r(22429),l=r(2976),s=r(6345),y=r(80812);function c(e,a){return!(!e.layerType||"ArcGISFeatureLayer"!==e.layerType)&&e.featureCollectionType===a}var u=r(45613),o=r(8947);async function L(e,a,r){if(!a)return;let t=a.map(e=>async function(e,a){return async function(e,a,r){let t=new e;return t.read(a,r.context),"group"===t.type&&("GroupLayer"===a.layerType?await p(t,a,r):m(a)?function(e,a,r){a.itemId&&(e.portalItem=new y.default({id:a.itemId,portal:r?.portal}),e.when(()=>{let t=t=>{let n=t.layerId;S(t,e,a,n,r);let i=a.featureCollection?.layers?.[n];i&&t.read(i,r)};e.layers?.forEach(t),e.tables?.forEach(t)}))}(t,a,r.context):f(a)&&await async function(e,a,r){let t=l.U.FeatureLayer,n=await t(),i=a.featureCollection,s=i?.showLegend,y=i?.layers?.map((t,i)=>{let l=new n;l.read(t,r);let y={...r,ignoreDefaults:!0};return S(l,e,a,i,y),null!=s&&l.read({showLegend:s},y),l});e.layers.addMany(y??[])}(t,a,r.context)),await(0,o.L)(t,r.context),t}(await d(e,a),e,a)}(e,r)),n=await Promise.allSettled(t);for(let a of n)"rejected"===a.status||a.value&&e.add(a.value)}async function d(e,a){let r=a.context,t=(e.layerType||e.type)??a.defaultLayerType;switch(t){case"Feature Collection":case"ArcGISFeatureLayer":if(function(e){return c(e,"notes")}(e)||function(e){return c(e,"markup")}(e))return(0,n.A)("sketch-layer-enabled")?l.U.SketchLayer():l.U.MapNotesLayer();if(function(e){return c(e,"route")}(e))return l.U.RouteLayer();if(m(e)){let a=r?.portal;if(e.itemId){let r=new y.default({id:e.itemId,portal:a});await r.load();let t=(await(0,u.n)(r,new i.v)).className||"UnknownLayer";return l.U[t]()}return l.U.UnknownLayer()}return f(e)?l.U.GroupLayer():l.U.FeatureLayer();case"WebTiledLayer":return e.wmtsInfo?.url&&e.wmtsInfo.layerIdentifier?l.U.WMTSLayer():l.U.WebTileLayer();case"WFS":return"2.0.0"===e.wfsInfo?.version?l.U.WFSLayer():l.U.UnsupportedLayer();default:{let e=(0,s.VH)(r,t);return(0,l.U[e])()}}}function f(e){return"ArcGISFeatureLayer"===e.layerType&&!m(e)&&(e.featureCollection?.layers?.length??0)>1}function m(e){return"Feature Collection"===e.type}async function p(e,a,r){let n=new t.A,i=L(n,Array.isArray(a.layers)?a.layers:[],r);try{try{if(await i,"group"===e.type)return e.layers.addMany(n),e}catch(a){e.destroy();for(let e of n)e.destroy();throw a}}catch(e){throw e}}function S(e,a,r,t,n){e.read({id:`${a.id}-sublayer-${t}`,visibility:r.visibleLayers?.includes(t)??!0},n)}},2976(e,a,r){const t={AnnotationFeatureLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(7865),r.e(6554),r.e(9407),r.e(3910),r.e(5128),r.e(5566),r.e(7552),r.e(2889),r.e(4674),r.e(5087),r.e(7420)]).then(()=>r(20737))).default,BingMapsLayer:async()=>(await Promise.all([r.e(8278),r.e(7865),r.e(6554),r.e(6684)]).then(()=>r(17029))).default,BuildingSceneLayer:async()=>(await Promise.all([r.e(8673),r.e(9917),r.e(8278),r.e(7865),r.e(6554),r.e(9407),r.e(9953),r.e(3910),r.e(5128),r.e(5566),r.e(1722),r.e(7552),r.e(1214),r.e(2889),r.e(6263),r.e(8247),r.e(4674),r.e(5087),r.e(8589),r.e(7005),r.e(9480),r.e(3080),r.e(9459)]).then(()=>r(82411))).default,CSVLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(7865),r.e(6554),r.e(9407),r.e(9953),r.e(3910),r.e(5128),r.e(5566),r.e(1722),r.e(7552),r.e(1214),r.e(2889),r.e(6263),r.e(4935)]).then(()=>r(68695))).default,CatalogLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(7865),r.e(6554),r.e(9407),r.e(3910),r.e(5128),r.e(5566),r.e(1722),r.e(7552),r.e(1214),r.e(2889),r.e(8247),r.e(4674),r.e(5087),r.e(893),r.e(7),r.e(9031),r.e(8305)]).then(()=>r(83508))).default,DimensionFeatureLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(7865),r.e(6554),r.e(9407),r.e(3910),r.e(5128),r.e(5566),r.e(7552),r.e(2889),r.e(4674),r.e(5087),r.e(8826)]).then(()=>r(25077))).default,DimensionLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(3813)]).then(()=>r(71493))).default,ElevationLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(9953),r.e(6874)]).then(()=>r(38732))).default,FeatureLayer:async()=>(await Promise.all([r.e(8673),r.e(9917),r.e(8278),r.e(7865),r.e(6554),r.e(9407),r.e(9953),r.e(3910),r.e(5128),r.e(5566),r.e(1722),r.e(7552),r.e(1214),r.e(2889),r.e(6263),r.e(8247),r.e(4674),r.e(5087),r.e(8589),r.e(7366)]).then(()=>r(18589))).default,GaussianSplatLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(9177),r.e(6475)]).then(()=>r(36475))).default,GeoJSONLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(7865),r.e(6554),r.e(9407),r.e(9953),r.e(3910),r.e(5128),r.e(5566),r.e(1722),r.e(7552),r.e(1214),r.e(2889),r.e(6263),r.e(8801)]).then(()=>r(15481))).default,GeoRSSLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(7865),r.e(6554),r.e(9657)]).then(()=>r(63201))).default,GroupLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(7865),r.e(6569)]).then(()=>r(85989))).default,ImageryLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(7865),r.e(6554),r.e(9407),r.e(9953),r.e(3910),r.e(5128),r.e(5566),r.e(7552),r.e(893),r.e(1697),r.e(9800),r.e(3242)]).then(()=>r(87772))).default,ImageryTileLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(7865),r.e(6554),r.e(9407),r.e(9953),r.e(3910),r.e(5128),r.e(5566),r.e(1697),r.e(9800),r.e(9235),r.e(8595),r.e(1137)]).then(()=>r(11137))).default,IntegratedMesh3DTilesLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(9953),r.e(9177),r.e(6451),r.e(8241)]).then(()=>r(61528))).default,IntegratedMeshLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(9953),r.e(7552),r.e(1843),r.e(7005),r.e(9480),r.e(9177),r.e(6319),r.e(6451),r.e(7915)]).then(()=>r(42521))).default,KMLLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(7865),r.e(6554),r.e(9407),r.e(3910),r.e(5128),r.e(5566),r.e(1722),r.e(1214),r.e(1504)]).then(()=>r(162))).default,KnowledgeGraphLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(7865),r.e(6554),r.e(9407),r.e(9953),r.e(3910),r.e(5128),r.e(5566),r.e(1722),r.e(7552),r.e(1214),r.e(2889),r.e(6263),r.e(8247),r.e(8245),r.e(6744),r.e(3902),r.e(4934),r.e(8692)]).then(()=>r(28692))).default,LineOfSightLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(1588),r.e(9695)]).then(()=>r(49695))).default,LinkChartLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(7865),r.e(6554),r.e(9407),r.e(9953),r.e(3910),r.e(5128),r.e(5566),r.e(1722),r.e(7552),r.e(1214),r.e(2889),r.e(6263),r.e(8247),r.e(8245),r.e(6744),r.e(3902),r.e(4934),r.e(3309)]).then(()=>r(93309))).default,MapImageLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(7865),r.e(6554),r.e(9407),r.e(3910),r.e(5128),r.e(5566),r.e(1722),r.e(7552),r.e(1214),r.e(2889),r.e(4674),r.e(893),r.e(2486),r.e(6023)]).then(()=>r(7656))).default,MapNotesLayer:async()=>(await Promise.all([r.e(8673),r.e(9917),r.e(8278),r.e(7865),r.e(6554),r.e(9407),r.e(9953),r.e(3910),r.e(5128),r.e(5566),r.e(1722),r.e(7552),r.e(1214),r.e(2889),r.e(6263),r.e(8247),r.e(4674),r.e(5087),r.e(8589),r.e(6744),r.e(2257)]).then(()=>r(96299))).default,MediaLayer:async()=>(await Promise.all([r.e(8673),r.e(9917),r.e(8278),r.e(7865),r.e(9894),r.e(2491)]).then(()=>r(90182))).default,OGCFeatureLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(7865),r.e(6554),r.e(9407),r.e(3910),r.e(5128),r.e(5566),r.e(1722),r.e(7552),r.e(1214),r.e(2889),r.e(6263),r.e(3080),r.e(9856)]).then(()=>r(65977))).default,OpenStreetMapLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(7865),r.e(6554),r.e(7269),r.e(349)]).then(()=>r(40349))).default,OrientedImageryLayer:async()=>(await Promise.all([r.e(8673),r.e(9917),r.e(8278),r.e(7865),r.e(6554),r.e(9407),r.e(9953),r.e(3910),r.e(5128),r.e(5566),r.e(1722),r.e(7552),r.e(1214),r.e(2889),r.e(6263),r.e(8247),r.e(4674),r.e(5087),r.e(8589),r.e(4506),r.e(8169)]).then(()=>r(9352))).default,ParquetLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(7865),r.e(6554),r.e(9407),r.e(9953),r.e(3910),r.e(5128),r.e(5566),r.e(1722),r.e(7552),r.e(1214),r.e(2889),r.e(6263),r.e(3819),r.e(5952),r.e(4085)]).then(()=>r(99680))).default,PointCloudLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(9407),r.e(7984),r.e(7885)]).then(()=>r(77885))).default,RouteLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(7865),r.e(9407),r.e(3910),r.e(5128),r.e(5566),r.e(1722),r.e(1214),r.e(7380)]).then(()=>r(39622))).default,SceneLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(9407),r.e(3910),r.e(5128),r.e(5566),r.e(1722),r.e(7552),r.e(1214),r.e(2889),r.e(7005),r.e(9480),r.e(3080),r.e(4844)]).then(()=>r(2e4))).default,SketchLayer:async()=>(await Promise.all([r.e(8673),r.e(9917),r.e(8278),r.e(7865),r.e(6554),r.e(9407),r.e(9953),r.e(3910),r.e(5128),r.e(5566),r.e(1722),r.e(7552),r.e(1214),r.e(2889),r.e(6263),r.e(8247),r.e(4674),r.e(5087),r.e(8589),r.e(6744),r.e(1630)]).then(()=>r(15056))).default,StreamLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(7865),r.e(6554),r.e(9407),r.e(3910),r.e(5128),r.e(5566),r.e(1722),r.e(7552),r.e(1214),r.e(2889),r.e(6263),r.e(8915)]).then(()=>r(79457))).default,SubtypeGroupLayer:async()=>(await Promise.all([r.e(8673),r.e(9917),r.e(8278),r.e(7865),r.e(6554),r.e(9407),r.e(3910),r.e(5128),r.e(5566),r.e(7552),r.e(2889),r.e(8247),r.e(4674),r.e(5087),r.e(4780)]).then(()=>r(97483))).default,TileLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(7865),r.e(6554),r.e(9407),r.e(3910),r.e(5128),r.e(5566),r.e(1722),r.e(7552),r.e(1214),r.e(2889),r.e(4674),r.e(893),r.e(2486),r.e(2223)]).then(()=>r(71756))).default,UnknownLayer:async()=>(await Promise.all([r.e(9917),r.e(146)]).then(()=>r(146))).default,UnsupportedLayer:async()=>(await Promise.all([r.e(9917),r.e(5165)]).then(()=>r(45165))).default,VectorTileLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(7865),r.e(6554),r.e(9953),r.e(5228),r.e(7499),r.e(700)]).then(()=>r(67190))).default,VideoLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(7865),r.e(3910),r.e(5128),r.e(4674),r.e(9894),r.e(6875)]).then(()=>r(86875))).default,ViewshedLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(1588),r.e(6650)]).then(()=>r(96650))).default,VoxelLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(9407),r.e(167)]).then(()=>r(90167))).default,WCSLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(7865),r.e(6554),r.e(9407),r.e(9953),r.e(3910),r.e(5128),r.e(5566),r.e(1697),r.e(9800),r.e(9235),r.e(8595),r.e(521)]).then(()=>r(20521))).default,WFSLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(7865),r.e(6554),r.e(9407),r.e(9953),r.e(3910),r.e(5128),r.e(5566),r.e(1722),r.e(7552),r.e(1214),r.e(2889),r.e(6263),r.e(3997)]).then(()=>r(21901))).default,WMSLayer:async()=>(await Promise.all([r.e(8673),r.e(9917),r.e(8278),r.e(7865),r.e(6554),r.e(9407),r.e(3910),r.e(5128),r.e(1904)]).then(()=>r(51904))).default,WMTSLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(7865),r.e(6554),r.e(7269),r.e(309)]).then(()=>r(20309))).default,WebTileLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(7865),r.e(6554),r.e(7269)]).then(()=>r(47314))).default};r.d(a,["U",0,t])},6345(e,a,r){r.d(a,{Bu:()=>h,VH:()=>w});var t=r(44208);const n={ArcGISImageServiceLayer:"ImageryLayer",ArcGISImageServiceVectorLayer:"ImageryLayer",ArcGISMapServiceLayer:"MapImageLayer",ArcGISTiledImageServiceLayer:"ImageryTileLayer",ArcGISTiledMapServiceLayer:"TileLayer",BingMapsAerial:"BingMapsLayer",BingMapsHybrid:"BingMapsLayer",BingMapsRoad:"BingMapsLayer",OpenStreetMap:"OpenStreetMapLayer",VectorTileLayer:"VectorTileLayer",WCS:"WCSLayer",WMS:"WMSLayer",WebTiledLayer:"WebTileLayer"},i={ArcGISAnnotationLayer:"AnnotationFeatureLayer",ArcGISDimensionLayer:"DimensionFeatureLayer",ArcGISFeatureLayer:"FeatureLayer",ArcGISImageServiceLayer:"ImageryLayer",ArcGISImageServiceVectorLayer:"ImageryLayer",ArcGISMapServiceLayer:"MapImageLayer",ArcGISStreamLayer:"StreamLayer",ArcGISTiledImageServiceLayer:"ImageryTileLayer",ArcGISTiledMapServiceLayer:"TileLayer",ArcGISVideoLayer:"VideoLayer",BingMapsAerial:"BingMapsLayer",BingMapsHybrid:"BingMapsLayer",BingMapsRoad:"BingMapsLayer",CatalogLayer:"CatalogLayer",CSV:"CSVLayer",GeoJSON:"GeoJSONLayer",GeoRSS:"GeoRSSLayer",GroupLayer:"GroupLayer",KML:"KMLLayer",KnowledgeGraphLayer:"KnowledgeGraphLayer",MediaLayer:"MediaLayer",OGCFeatureLayer:"OGCFeatureLayer",OrientedImageryLayer:"OrientedImageryLayer",get ParquetLayer(){return(0,t.A)("parquetlayer-persistence-enabled")?"ParquetLayer":"UnsupportedLayer"},SubtypeGroupLayer:"SubtypeGroupLayer",VectorTileLayer:"VectorTileLayer",WCS:"WCSLayer",WFS:"WFSLayer",WMS:"WMSLayer",WebTiledLayer:"WebTileLayer"},l={ArcGISFeatureLayer:"FeatureLayer",SubtypeGroupTable:"SubtypeGroupLayer"},s={ArcGISImageServiceLayer:"UnsupportedLayer",ArcGISMapServiceLayer:"UnsupportedLayer",ArcGISSceneServiceLayer:"SceneLayer",ArcGISTiledImageServiceLayer:"ImageryTileLayer",ArcGISTiledMapServiceLayer:"TileLayer",OpenStreetMap:"OpenStreetMapLayer",VectorTileLayer:"VectorTileLayer",WCS:"UnsupportedLayer",WMS:"UnsupportedLayer",WebTiledLayer:"WebTileLayer"},y={IntegratedMesh3DTilesLayer:"IntegratedMesh3DTilesLayer"},c={ArcGISTiledElevationServiceLayer:"ElevationLayer",RasterDataElevationLayer:"UnsupportedLayer"},u={ArcGISDimensionLayer:"DimensionLayer",ArcGISFeatureLayer:"FeatureLayer",ArcGISImageServiceLayer:"ImageryLayer",ArcGISMapServiceLayer:"MapImageLayer",ArcGISSceneServiceLayer:"SceneLayer",ArcGISTiledElevationServiceLayer:"ElevationLayer",ArcGISTiledImageServiceLayer:"ImageryTileLayer",ArcGISTiledMapServiceLayer:"TileLayer",BuildingSceneLayer:"BuildingSceneLayer",CSV:"CSVLayer",CatalogLayer:"CatalogLayer",GaussianSplatLayer:"GaussianSplatLayer",GeoJSON:"GeoJSONLayer",GroupLayer:"GroupLayer",IntegratedMesh3DTilesLayer:"IntegratedMesh3DTilesLayer",IntegratedMeshLayer:"IntegratedMeshLayer",KML:"KMLLayer",LineOfSightLayer:"LineOfSightLayer",MediaLayer:"MediaLayer",OGCFeatureLayer:"OGCFeatureLayer",Object3DTilesLayer:"UnsupportedLayer",OrientedImageryLayer:"OrientedImageryLayer",PointCloudLayer:"PointCloudLayer",RasterDataLayer:"UnsupportedLayer",VectorTileLayer:"VectorTileLayer",ViewshedLayer:"ViewshedLayer",Voxel:"VoxelLayer",WCS:"WCSLayer",WFS:"WFSLayer",WMS:"WMSLayer",WebTiledLayer:"WebTileLayer"},o={ArcGISFeatureLayer:"FeatureLayer"},L={...i,LinkChartLayer:"LinkChartLayer"},d=n,f=l,m={ArcGISAnnotationLayer:"AnnotationFeatureLayer",ArcGISDimensionLayer:"DimensionFeatureLayer",ArcGISFeatureLayer:"FeatureLayer",ArcGISImageServiceLayer:"ImageryLayer",ArcGISMapServiceLayer:"MapImageLayer",ArcGISSceneServiceLayer:"SceneLayer",ArcGISStreamLayer:"StreamLayer",ArcGISTiledImageServiceLayer:"ImageryTileLayer",BuildingSceneLayer:"BuildingSceneLayer",IntegratedMesh3DTilesLayer:"IntegratedMesh3DTilesLayer",IntegratedMeshLayer:"IntegratedMeshLayer",MediaLayer:"MediaLayer",OrientedImageryLayer:"OrientedImageryLayer",ParquetLayer:"ParquetLayer",PointCloudLayer:"PointCloudLayer",SubtypeGroupLayer:"SubtypeGroupLayer",WCS:"WCSLayer"},p=l;function S(e){switch(e.origin){case"web-scene":switch(e.layerContainerType){case"basemap-base-layers":return s;case"basemap-ground-layers":return y;case"ground":return c;case"tables":return o;default:return u}case"link-chart":switch(e.layerContainerType){case"basemap-base-layers":return d;case"tables":return f;default:return L}default:switch(e.layerContainerType){case"basemap-base-layers":return n;case"tables":return l;case"ground":case"basemap-ground-layers":return;default:return i}}}function w(e,a){if(!a)return"UnknownLayer";if("DefaultTileLayer"===a){let a="UnknownLayer";if("web-scene"===e.origin)switch(e.layerContainerType){case"operational-layers":case"basemap-base-layers":a="TileLayer";break;case"ground":a="ElevationLayer"}else switch(e.layerContainerType){case"basemap-base-layers":case"operational-layers":a="TileLayer"}return a}return S(e)?.[a]??"UnknownLayer"}function h(e,a,r){if(!e?.origin)return!1;switch(e.origin){case"web-map":case"link-chart":if("operational-layers"===e.layerContainerType&&"ArcGISDimensionLayer"===a&&"dimension-feature"!==r)return!1;break;case"web-scene":if("operational-layers"===e.layerContainerType)switch(a){case"ArcGISDimensionLayer":if("dimension"!==r)return!1;break;case"ArcGISTiledElevationServiceLayer":return!1}break;case"portal-item":if("ArcGISDimensionLayer"===a&&"dimension-feature"!==r)return!1}let t=function(e){if("portal-item"===e.origin)switch(e.layerContainerType){case"basemap-base-layers":case"ground":case"basemap-ground-layers":return;case"tables":return p;default:return m}return S(e)}(e)?.[a];return null!=t&&"UnknownLayer"!==t&&"UnsupportedLayer"!==t}},66964(e,a,r){r.d(a,{Ju:()=>S,K8:()=>A,XH:()=>w,Y5:()=>p,_r:()=>s,bO:()=>c,l:()=>g,nu:()=>T,pJ:()=>u,rc:()=>o});var t=r(60694),n=r(92009),i=r(23154),l=r(77548);function s(e,a){let{id:r,name:t}=e,n={id:r,name:t};return y(n,e,a),n}function y(e,a,r){let t=(0,i.Aq)(a.type,r);t&&(e.layerType=t)}async function c(e,a,r){let t,n;if(function(e){return!!e&&Array.isArray(e.layers)&&Array.isArray(e.tables)}(e)&&L(e))n=e;else{let i=await r.fetchServiceMetadata(a,{customParameters:u(e)?.customParameters});t=(0,l.G$)(),n=d(e,i),f(n,i)}return m(n),{data:n,preferredHost:t}}function u(e){if(!e)return null;let{layers:a,tables:r}=e;return a?.[0]??r?.[0]??null}function o(e,a){return null==a?null:[...e.layers??[],...e.tables??[]].find(e=>e.id===a)}function L(e){return[...e.layers??[],...e.tables??[]].every(e=>!!e.layerType)}function d(e,a){return{...e,layers:e?.layers??a.layers?.map(e=>s(e))??[],tables:e?.tables??a.tables?.map(e=>s(e,!0))??[]}}function f(e,a){let r=e.layers??[],t=e.tables??[],n=[...a.layers??[],...a.tables??[]];for(let e of[...r,...t]){let{id:a,layerType:r}=e;if(r)continue;let i=n.find(({id:e})=>e===a);i&&y(e,i,t.includes(e))}}function m(e){e.layers=e.layers?.filter(I),e.tables=e.tables?.filter(I)}async function p(e,a,r){if(e?.layers?.length||e?.tables?.length){if(!L(e)){let n=(0,t.qg)(a)?.url.path;if(!n)return;f(e,await r.fetchServiceMetadata(n,{customParameters:u(e)?.customParameters}))}m(e)}}function S(e,a){return[...e.layers??[],...e.tables??[]].filter(({layerType:e})=>e?a.includes(e):a.includes("ArcGISFeatureLayer"))}function w(e){return(e?.layers?.length??0)+(e?.tables?.length??0)}const h=new Set(["ArcGISAnnotationLayer","ArcGISDimensionLayer","ArcGISFeatureLayer","CatalogLayer","OrientedImageryLayer","SubtypeGroupLayer","SubtypeGroupTable","Table"]);function I(e){return!!e.layerType&&h.has(e.layerType)}function g(e){switch(e){case"annotation-feature":return["ArcGISAnnotationLayer"];case"catalog":return["CatalogLayer"];case"dimension-feature":return["ArcGISDimensionLayer"];case"feature":return["ArcGISFeatureLayer","Table"];case"oriented-imagery":return["OrientedImageryLayer"];case"subtype-group":return["SubtypeGroupLayer","SubtypeGroupTable"]}return null}function A(e){switch(e){case"ArcGISAnnotationLayer":return"AnnotationFeatureLayer";case"ArcGISDimensionLayer":return"DimensionFeatureLayer";case"ArcGISFeatureLayer":case"Table":return"FeatureLayer";case"CatalogLayer":return"CatalogLayer";case"OrientedImageryLayer":return"OrientedImageryLayer";case"SubtypeGroupLayer":case"SubtypeGroupTable":return"SubtypeGroupLayer"}return null}async function T(e,a,r){if(!e?.url)return a??{};if(a??={},!a.layers){let t=await r.fetchServiceMetadata(e.url);a.layers=t.layers?.map(e=>s(e))}let{serverUrl:t,portalItem:i}=await(0,n.L)(e.url,{sceneLayerItem:e,customParameters:u(a)?.customParameters}).catch(()=>({serverUrl:null,portalItem:null}));if(null==t)return a.tables=[],a;if(!a.tables&&i){let e=await i.fetchData().catch(()=>null);if(e?.tables)a.tables=e.tables.map(({id:e,name:a})=>({id:e,name:a}));else{let n=await r.fetchServiceMetadata(t,{customParameters:u(e)?.customParameters}).catch(()=>null);a.tables=n?.tables?.map(e=>s(e,!0))}}if(a.tables)for(let e of a.tables)e.url=`${t}/${e.id}`;return a}},10407(e,a,r){r.d(a,{It:()=>d,LG:()=>l,OM:()=>c,Sm:()=>u,Y:()=>s,bK:()=>y,sQ:()=>o});var t=r(99917),n=r(16930),i=r(28735);function l(e,a){if(!s(e,a)){let r=e.typeKeywords;r?r.push(a):e.typeKeywords=[a]}}function s(e,a){return!!e.typeKeywords?.includes(a)}function y(e){return s(e,L.HOSTED_SERVICE)}function c(e,a){let r=e.typeKeywords;if(r){let e=r.indexOf(a);e>-1&&r.splice(e,1)}}function u(e,a,r){r?l(e,a):c(e,a)}async function o(e){let a,r=e.clone().normalize();if(r.length>1)for(let e of r)a?e.width>a.width&&(a=e):a=e;else a=r[0];return async function(e){let a=e.spatialReference;if(a.isWGS84)return e.clone();if(a.isWebMercator)return(0,i.ci)(e);let r=n.A.WGS84;return await(0,t.initializeProjection)(a,r),(0,t.project)(e,r)}(a)}const L={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 d(e){let{portal:a,isOrgItem:r,itemControl:t}=e,n=a.user?.privileges,i=!n||n.includes("features:user:edit"),l=!!r&&!!n?.includes("features:user:fullEdit"),s="update"===t||"admin"===t;return s?l=i=!0:l&&(i=!0),{features:{edit:i,fullEdit:l},content:{updateItem:s}}}r.d(a,["mm",0,L])},45613(e,a,r){r.d(a,{fromItem:()=>d,n:()=>f});var t=r(49186),n=r(44208),i=r(92009),l=r(23154),s=r(22429),y=r(2976),c=r(77548),u=r(80812),o=r(66964),L=r(10407);async function d(e){let{portalItem:a}=e;a&&!(a instanceof u.default)&&(a=new u.default(a));let r=await async function(e){return await e.load(),async function(e){let a=e.className,r=y.U[a];return{constructor:await r(),properties:e.properties}}(await f(e,new s.v))}(a);return new(0,r.constructor)({portalItem:a,...r.properties})}async function f(e,a){switch(e.type){case"3DTiles Service":return e.typeKeywords.includes("3DObject")?{className:"UnsupportedLayer"}:e.typeKeywords.includes("GaussianSplat")?{className:"GaussianSplatLayer"}:{className:"IntegratedMesh3DTilesLayer"};case"CSV":return{className:"CSVLayer"};case"Feature Collection":return async function(e){await e.load();let a=(0,L.Y)(e,"Map Notes"),r=(0,L.Y)(e,"Markup");if(a||r)return{className:(0,n.A)("sketch-layer-enabled")?"SketchLayer":"MapNotesLayer"};if((0,L.Y)(e,"Route Layer"))return{className:"RouteLayer"};let t=await e.fetchData();return 1===(0,o.XH)(t)?{className:"FeatureLayer"}:{className:"GroupLayer"}}(e);case"Feature Service":return async function(e,a){let r=await m(e,a);if("object"==typeof r){let{sourceJSON:e,className:a}=r,t={sourceJSON:e};return null!=r.id&&(t.layerId=r.id),{className:a||"FeatureLayer",properties:t}}return{className:"GroupLayer"}}(e,a);case"Feed":case"Stream Service":return{className:"StreamLayer"};case"GeoJson":return{className:"GeoJSONLayer"};case"Group Layer":return{className:"GroupLayer"};case"Image Service":return async function(e,a){await e.load();let r=e.typeKeywords?.map(e=>e.toLowerCase())??[];if(r.includes("elevation 3d layer"))return{className:"ElevationLayer"};if(r.includes("tiled imagery"))return{className:"ImageryTileLayer"};let t=(await a.fetchItemData(e))?.layerType;if("ArcGISTiledImageServiceLayer"===t)return{className:"ImageryTileLayer"};if("ArcGISImageServiceLayer"===t)return{className:"ImageryLayer"};let n=await a.fetchServiceMetadata(e.url,{customParameters:await a.fetchCustomParameters(e)}),i=n.cacheType?.toLowerCase(),l=n.capabilities?.toLowerCase().includes("tilesonly"),s=n.tileInfo?.format?.toLowerCase()??"",y=null==i&&["jpg","jpeg","png","png8","png24","png32","mixed"].includes(s);return"map"===i||y||l?{className:"ImageryTileLayer"}:{className:"ImageryLayer"}}(e,a);case"KML":return{className:"KMLLayer"};case"Knowledge Graph Layer":return{className:"KnowledgeGraphLayer"};case"Map Service":return async function(e,a){return await async function(e,a){let{tileInfo:r}=await a.fetchServiceMetadata(e.url,{customParameters:await a.fetchCustomParameters(e)});return r}(e,a)?{className:"TileLayer"}:{className:"MapImageLayer"}}(e,a);case"Media Layer":return{className:"MediaLayer"};case"Parquet Feature Layer":return{className:"ParquetLayer"};case"Scene Service":return async function(e,a){let r=await m(e,a,async()=>{try{if(!e.url)return[];let{serverUrl:r}=await(0,i.L)(e.url,{sceneLayerItem:e});return(await a.fetchServiceMetadata(r))?.tables??[]}catch{return[]}});if("object"==typeof r){let t,n={};if(null==r.id?t=e.url:(n.layerId=r.id,t=`${e.url}/layers/${r.id}`),e.typeKeywords?.length)for(let a of Object.keys(c.XX))if(e.typeKeywords.includes(a))return{className:c.XX[a]};let i=await a.fetchServiceMetadata(t,{customParameters:await a.fetchCustomParameters(e,e=>(0,o.pJ)(e)?.customParameters)});return{className:c.XX[i?.layerType]||"SceneLayer",properties:n}}return!1===r&&"Voxel"===(await a.fetchServiceMetadata(e.url))?.layerType?{className:"VoxelLayer"}:{className:"GroupLayer"}}(e,a);case"Video Service":return async function(e,a){return"object"==typeof await m(e,a)?{className:"VideoLayer"}:{className:"GroupLayer"}}(e,a);case"Vector Tile Service":return{className:"VectorTileLayer"};case"WCS":return{className:"WCSLayer"};case"WFS":return{className:"WFSLayer"};case"WMS":return{className:"WMSLayer"};case"WMTS":return{className:"WMTSLayer"};default:throw new t.A("portal:unknown-item-type","Unknown item type '${type}'",{type:e.type})}}async function m(e,a,r){let{url:n,type:i}=e,s="Feature Service"===i;if(!n)return{};if(/\/\d+$/.test(n)){if(s){let r=await a.fetchServiceMetadata(n,{customParameters:await a.fetchCustomParameters(e,e=>(0,o.pJ)(e)?.customParameters)});(0,c.Gh)(e,(0,c.G$)());let{id:i,type:s}=r,y=(0,l.Jo)(s);if(!y)throw new t.A("from-portal-item:unsupported",`'${n}' has unsupported type: '${s}'`);return{id:i,className:y,sourceJSON:r}}return{}}if("Video Service"===i)return!(((await a.fetchServiceMetadata(n)).layers?.length??0)>1)&&{};await e.load();let y=await a.fetchItemData(e);if(s){let{data:r,preferredHost:i}=await(0,o.bO)(y,n,a);if(0===(0,o.XH)(r))throw new t.A("from-portal-item:no-data",`The feature service '${n}' does not have any supported layers or tables`);(0,c.Gh)(e,i);let l=p(r);if("object"==typeof l){let e=(0,o.rc)(r,l.id);return{id:l.id,className:(0,o.K8)(e?.layerType)}}return l}if("Scene Service"===i&&(y=await(0,o.nu)(e,y,a)),(0,o.XH)(y)>0)return p(y);let u=await a.fetchServiceMetadata(n);return r&&(u.tables=await r()),p(u)}function p(e){return 1===(0,o.XH)(e)&&{id:(0,o.pJ)(e)?.id}}},8947(e,a,r){r.d(a,{L:()=>l});var t=r(60999),n=r(17676),i=r(67076);async function l(e,a,r){let l=e&&e.getAtOrigin&&e.getAtOrigin("renderer",a.origin);if(l&&"unique-value"===l.type&&l.styleOrigin){let s=await(0,t.Ke)(l.populateFromStyle());if((0,n.Te)(r),!1===s.ok){let r=s.error;a?.messages&&a.messages.push(new i.A("renderer:style-reference",`Failed to create unique value renderer from style reference: ${r.message}`,{error:r,context:a})),e.clear("renderer",a?.origin)}}}},7861(e,a,r){r.d(a,{L:()=>n});var t=r(56507);async function n(e,a){return(await(0,t.A)(e,{responseType:"json",query:{f:"json",...a?.customParameters,token:a?.apiKey}})).data}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5077,8169,8826],{52106(e,t,i){i.d(t,{A:()=>I});var r,o,l=i(32198),s=i(40124),n=i(69540),a=i(51447),u=i(25482),p=i(53966),d=i(36708),y=i(24326),h=i(91429),c=i(12195),g=i(65864),m=i(50498),f=i(55156),v=i(60950),b=i(54339),M=i(94128),S=i(33910);const T=Symbol("meshGeometryHandles");function C(e){if(null==e)return null;let t={};for(let i in e){let r=e[i];r&&(t[i]=r.toJSON())}return 0===Object.keys(t).length?null:t}let I=class extends((0,n.OU)(u.o)){static{r=M.Z}static{o=this}constructor(e){super(e),this[r]=!0,this.distance=null,this.isAggregate=!1,this.layer=null,this.origin=null,this.sourceLayer=null,this.statisticsAggregatedIds=void 0,this._version=0,Object.defineProperty(this,"uid",{value:(0,y.c)(),configurable:!0}),Object.defineProperty(this,"_lastMeshTransform",{value:{},configurable:!0,writable:!0,enumerable:!1}),arguments.length>1&&(0,a.eF)(p.A.getLogger(this),"Graphic",{version:"4.30"})}set aggregateGeometries(e){let t=this._get("aggregateGeometries");JSON.stringify(t)!==JSON.stringify(e)&&this._set("aggregateGeometries",e)}set attributes(e){let t=this._get("attributes");t!==e&&(this._set("attributes",e),this._notifyLayer("attributes",t,e))}set geometry(e){let t=this._get("geometry");t!==e&&(this._set("geometry",e),this._watchMeshGeometryChanges(),this._notifyLayer("geometry",t,e))}set popupTemplate(e){let t=this._get("popupTemplate");t!==e&&(this._set("popupTemplate",e),this._notifyLayer("popupTemplate",t,e))}set symbol(e){let t=this._get("symbol");t!==e&&(this._set("symbol",e),this._notifyLayer("symbol",t,e))}get version(){return this._version}set visible(e){let t=this._get("visible");t!==e&&(this._set("visible",e),this._notifyLayer("visible",t,e))}cloneShallow(){return new o({aggregateGeometries:this.aggregateGeometries,statisticsAggregatedIds:this.statisticsAggregatedIds,attributes:this.attributes,geometry:this.geometry,isAggregate:this.isAggregate,layer:this.layer,popupTemplate:this.popupTemplate,sourceLayer:this.sourceLayer,symbol:this.symbol,visible:this.visible,origin:this.origin})}getEffectivePopupTemplate(e=!1){if(this.popupTemplate)return this.popupTemplate;let t=(0,v.E_)(this.origin);if(t)return t.popupTemplate??(e?t.defaultPopupTemplate:null)??null;let i=this.origin&&"layer"in this.origin?this.origin.layer:null;for(let t of[i,this.sourceLayer,this.layer])if(t&&"object"==typeof t){if("popupTemplate"in t&&t.popupTemplate)return t.popupTemplate;if(e&&"defaultPopupTemplate"in t&&null!=t.defaultPopupTemplate)return t.defaultPopupTemplate}return null}getAttribute(e){return this.attributes?.[e]}setAttribute(e,t){if(this.attributes){let i=this.getAttribute(e);this.attributes[e]=t,this._notifyLayer("attributes",i,t,e)}else this.attributes={[e]:t}}getObjectId(){let e=(0,f.I)(this.origin);if(e)return(0,b.r)(this,e);let t=this.sourceLayer??this.layer;return t?(0,b.r)(this,t):null}getGlobalId(){let e=(0,f.I)(this.origin);if(e?.globalIdField)return this.getAttribute(e.globalIdField);let t=this.sourceLayer??this.layer;return t&&"globalIdField"in t&&t.globalIdField?this.getAttribute(t.globalIdField):null}toJSON(){let e={aggregateGeometries:C(this.aggregateGeometries),geometry:this.geometry?.toJSON()??null,symbol:this.symbol?.toJSON()??null,attributes:(0,c.W)(this.attributes)?this.attributes.toJSON():{...this.attributes},popupTemplate:this.popupTemplate?.toJSON()??null};return this.statisticsAggregatedIds?.length&&(e.aggregateIds=[...this.statisticsAggregatedIds]),null!=this.distance&&(e.distance=this.distance),e}notifyMeshTransformChanged(e={}){let{geometry:t}=this;if("mesh"===t?.type){let i={origin:t.origin,transform:t.transform};this._notifyLayer("origin-transform",i,i,e.action)}}_notifyLayer(e,t,i,r){if(this._version++,!this.layer||!("graphicChanged"in this.layer))return;let o={graphic:this,property:e,oldValue:t,newValue:i};"origin-transform"===e&&(o.action=r),"attributes"===e&&(o.attributeName=r),this.layer.graphicChanged(o)}_watchMeshGeometryChanges(){this.removeHandles(T);let e=this.geometry;"mesh"===e?.type&&this.addHandles([(0,d.z7)(()=>e.vertexSpace.origin?{localMatrix:e.transform?.localMatrix,origin:e.vertexSpace.origin}:void 0,({localMatrix:e,origin:t})=>{(this._lastMeshTransform.localMatrix!==e||this._lastMeshTransform.origin!==t)&&(this._lastMeshTransform.localMatrix=e,this._lastMeshTransform.origin=t,this.notifyMeshTransformChanged())}),(0,d.z7)(()=>({vertexAttributes:e.vertexAttributes}),()=>{e.vertexSpace.origin?(this._lastMeshTransform.localMatrix=e.transform?.localMatrix,this._lastMeshTransform.origin=e.vertexSpace.origin):(this._lastMeshTransform.localMatrix=void 0,this._lastMeshTransform.origin=void 0),this._notifyLayer("geometry",e,e)},{equals:(e,t)=>e===t,sync:!0})],T)}};(0,l.Cg)([(0,h.MZ)({value:null,json:{read:function(e){if(!e)return null;let t={};for(let i in e){let r=(0,g.rS)(e[i]);r&&(t[i]=r)}return 0===Object.keys(t).length?null:t}}})],I.prototype,"aggregateGeometries",null),(0,l.Cg)([(0,h.MZ)({value:null})],I.prototype,"attributes",null),(0,l.Cg)([(0,h.MZ)({value:null,types:m.yR,json:{read:g.rS}})],I.prototype,"geometry",null),(0,l.Cg)([(0,h.MZ)()],I.prototype,"distance",void 0),(0,l.Cg)([(0,h.MZ)({type:Boolean})],I.prototype,"isAggregate",void 0),(0,l.Cg)([(0,h.MZ)({clonable:!1})],I.prototype,"layer",void 0),(0,l.Cg)([(0,h.MZ)({clonable:"reference"})],I.prototype,"origin",void 0),(0,l.Cg)([(0,h.MZ)({type:s.A,value:null})],I.prototype,"popupTemplate",null),(0,l.Cg)([(0,h.MZ)({clonable:"reference"})],I.prototype,"sourceLayer",void 0),(0,l.Cg)([(0,h.MZ)({json:{name:"aggregateIds",read:e=>e?.map(e=>Array.isArray(e)?JSON.stringify(e):e)}})],I.prototype,"statisticsAggregatedIds",void 0),(0,l.Cg)([(0,h.MZ)({value:null,types:S.Es})],I.prototype,"symbol",null),(0,l.Cg)([(0,h.MZ)({clonable:!1,json:{read:!1,write:!1}})],I.prototype,"_version",void 0),(0,l.Cg)([(0,h.MZ)({type:Boolean,value:!0})],I.prototype,"visible",null),I=o=(0,l.Cg)([(0,h.$K)("esri.Graphic")],I)},6797(e,t,i){i.d(t,{Ui:()=>y});var r=i(69622),o=i(7762),l=i(88620);const s=new Set(["esri.Color","esri.portal.Portal","esri.symbols.support.Symbol3DAnchorPosition2D","esri.symbols.support.Symbol3DAnchorPosition3D"]);function n(e){return e instanceof r.A}function a(e){return e instanceof o.A?Object.keys(e.items):n(e)?(0,l.oY)(e).keys():e?Object.keys(e):[]}function u(e,t){return e instanceof o.A?e.items[t]:e[t]}function p(e){return e?e.declaredClass:null}function d(e,t){let i=e.diff;if(i&&"function"==typeof i)return i(e,t);let r=a(e),o=a(t);if(0===r.length&&0===o.length)return;if(!r.length||!o.length||function(e,t){return!(!Array.isArray(e)||!Array.isArray(t))&&e.length!==t.length}(e,t))return{type:"complete",oldValue:e,newValue:t};let l=o.filter(e=>!r.includes(e)),y=r.filter(e=>!o.includes(e)),h=r.filter(i=>o.includes(i)&&u(e,i)!==u(t,i)).concat(l,y).sort(),c=p(e);if(c&&s.has(c)&&h.length)return{type:"complete",oldValue:e,newValue:t};let g,m=n(e)&&n(t);for(let r of h){let o,l=u(e,r),s=u(t,r);if((m||"function"!=typeof l&&"function"!=typeof s)&&l!==s&&(null!=l||null!=s)){if(i&&i[r]&&"function"==typeof i[r])o=i[r]?.(l,s);else if(l instanceof Date&&s instanceof Date){if(l.getTime()===s.getTime())continue;o={type:"complete",oldValue:l,newValue:s}}else o="object"==typeof l&&"object"==typeof s&&p(l)===p(s)?d(l,s):{type:"complete",oldValue:l,newValue:s};null!=o&&(null==g?g={type:"partial",diff:{[r]:o}}:g.diff[r]=o)}}return g}function y(e,t){if("function"!=typeof e&&"function"!=typeof t&&(null!=e||null!=t))return null==e||null==t||"object"==typeof e&&"object"==typeof t&&p(e)!==p(t)?{type:"complete",oldValue:e,newValue:t}:d(e,t)}},55156(e,t,i){i.d(t,{I:()=>o});const r=Symbol("idFieldsProviderSymbol");function o(e){return(t=e)&&r in t?e[r]:void 0;var t}i.d(t,["e",0,r])},25077(e,t,i){i.r(t),i.d(t,{default:()=>Y});var r=i(32198),o=i(40124),l=i(56507),s=i(69540),n=i(49186),a=i(36563),u=i(25728),p=i(17676),d=i(91429),y=i(16930),h=i(41910),c=i(55156),g=i(60950),m=i(89808),f=i(99959);const v=Symbol("isDimensionFeatureGraphicOrigin");var b;class M extends f.A{get[(b=v,g.ym)](){return this.layer}get[c.e](){return this.layer}get[m.Q](){return this.layer}get[h.e7](){return this.layer}constructor(e){super(),this[b]=!0,this.type="dimension-feature",this.layer=e}get id(){return this.layer.id}}var S=i(4146),T=i(52136),C=i(18768),I=i(63074),w=i(69208),A=i(40775),F=i(10086),E=i(34287),L=i(8303),Z=i(54310),O=i(23502),D=i(25036),j=i(82935),x=i(60694),_=i(10873),P=i(15426),N=i(17036),G=i(30524),z=i(91908),R=i(97552),q=i(30291),k=i(36005);const V="dimension-feature-layer",K=(0,N.p)();let J=class extends((0,O.Z)((0,A.I)((0,F.j)((0,I.dM)((0,j.e)((0,D.j)((0,Z.J)((0,C.b)((0,E.q)((0,L.A)((0,u.M)((0,w.d)((0,T.p)((0,s.OU)(S.A))))))))))))))){constructor(e){super(e),this.barrierWeight="high",this.fields=null,this.fieldsIndex=null,this.graphicOrigin=new M(this),this.operationalLayerType="ArcGISDimensionLayer",this.outFields=null,this.popupEnabled=!0,this.popupTemplate=null,this.referenceScale=0,this.source=null,this.styleCollection=null,this.sublayerTitleMode="item-title",this.supportedPortalItemTypes=["Feature Service"],this.supportedSourceTypes=new Set(["Dimension Layer"]),this.symbolFields=["STYLEID","BEGINX","BEGINY","ENDX","ENDY","DIMDISPLAY","EXTDISPLAY","MARKERDISPLAY","DIMX","DIMY","TEXTX","TEXTY","DIMLENGTH","DIMTYPE","EXTANGLE","TEXTANGLE","USECUSTOMLENGTH","CUSTOMLENGTH "],this.type="dimension-feature",this._debouncedSaveOperations=(0,p.sg)(async(e,t,r)=>{let{save:o,saveAs:l}=await i.e(5740).then(()=>i(33359));switch(e){case 0:return o(this,t);case 1:return l(this,r,t)}})}destroy(){this.source?.destroy()}load(e){let t=e?.signal,i=this.loadFromPortal({supportedTypes:this.supportedPortalItemTypes},e).catch(p.QP).then(async()=>{if(this.url&&null==this.layerId&&/FeatureServer|MapServer\/*$/i.test(this.url)){let e=await this._fetchFirstValidLayerId(t);null!=e&&(this.layerId=e)}if(!this.url)throw new n.A(`${V}:missing-url`,"DimensionFeatureLayer must be created with a url");return Promise.all([this.loadDataElement(e).then(()=>{if(!this.styleCollection)throw new n.A(`${V}:missing-style-collection`,"Invalid service with no style collection")}),this.initLayerProperties(await this.createGraphicsSource(t))])}).then(()=>(0,P.VA)(this,"load",e));return this.addResolvingPromise(i),Promise.resolve(this)}get editingEnabled(){return this._isOverridden("editingEnabled")?this._get("editingEnabled"):this.loaded&&null!=this.capabilities&&this.capabilities.operations.supportsEditing&&this.userHasEditingPrivileges}set editingEnabled(e){this._overrideIfSome("editingEnabled",e)}get effectiveEditingEnabled(){return!1}get defaultPopupTemplate(){return this.createPopupTemplate()}readTitleFromService(e,t){let{url:i}=this,r=t.name||(0,x.qg)(i)?.title;switch(this.sublayerTitleMode){case"item-title":if(i)return(0,x.yG)(i,r);break;case"item-title-and-service-name":{let e=this.portalItem?.title;if(e&&e!==r)return e=(0,x.cr)(e),r?`${e} - ${(0,x.cr)(r)}`:e;break}}return r?(0,x.cr)(r):void 0}readTitleFromPortalItem(e){return"item-title"===this.sublayerTitleMode?e:void 0}createPopupTemplate(e){return(0,q.tn)(this,e)}async createGraphicsSource(e){let t={stack:[],error:void 0,hasError:!1};try{let{default:o}=await(0,p.qr)(Promise.all([i.e(893),i.e(7),i.e(3283)]).then(()=>i(60845)),e),l=new o({layer:this,supportedSourceTypes:this.supportedSourceTypes});return(0,r.mS)(t,(0,a.Bf)((0,p.u7)(e,()=>l.cancelLoad())??(0,a.hA)()),!1),await l.load({signal:e}),l}catch(e){t.error=e,t.hasError=!0}finally{(0,r.hk)(t)}}createQuery(){let e=(0,P.VZ)(this);return e.where=this.definitionExpression||"1=1",e}getFieldDomain(e,t){return(0,P.Vq)(this,e,t,this.getField(e)?.domain??null)}async queryFeatures(e,t){let i=await this.load(),r=await i.source.queryFeatures(R.A.from(e)??i.createQuery(),t),o=this.graphicOrigin;if(r?.features)for(let e of r.features)e.layer=e.sourceLayer=i,e.origin=o;return r}async queryObjectIds(e,t){let i=await this.load();return i.source.queryObjectIds(R.A.from(e)??i.createQuery(),t)}async queryFeatureCount(e,t){let i=await this.load();return i.source.queryFeatureCount(R.A.from(e)??i.createQuery(),t)}async queryExtent(e,t){let i=await this.load();return i.source.queryExtent(R.A.from(e)??i.createQuery(),t)}async save(e){return this._debouncedSaveOperations(0,e)}async saveAs(e,t){return this._debouncedSaveOperations(1,t,e)}serviceSupportsSpatialReference(e){return this.loaded&&(0,z.D)(this,e)}async initLayerProperties(e){this._set("source",e),e.sourceJSON&&(this.sourceJSON=e.sourceJSON,this.read(e.sourceJSON,{origin:"service",portalItem:this.portalItem,portal:this.portalItem?.portal,url:this.parsedUrl})),this._verifySource(),(0,G.sv)(this.timeInfo,this.fieldsIndex)}async reloadFromService(e){let t=this.source;await Promise.all([t.reload({signal:e}),this.loadDataElement({signal:e})]),await this.initLayerProperties(t)}async hasDataChanged(){return(0,P.jp)(this)}_verifySource(){if(this.version&&this.version<10.8)throw new n.A(V+":unsupported-version","The feature service must be version 10.8 or above.");let e=["DIMLENGTH","BEGINX","BEGINY","ENDX","ENDY","DIMX","DIMY","TEXTX","TEXTY","DIMTYPE","EXTANGLE","STYLEID","USECUSTOMLENGTH","CUSTOMLENGTH","DIMDISPLAY","EXTDISPLAY","MARKERDISPLAY","TEXTANGLE"],t=e.filter(e=>!this.fieldsIndex.has(e));if(t.length)throw new n.A(V+":missing-fields","There are missing fields to operate properly",{requiredFields:e,missingFields:t})}_fetchFirstValidLayerId(e){return(0,l.A)(this.url??"",{query:{f:"json",...this.customParameters,token:this.apiKey},responseType:"json",signal:e}).then(e=>{let t=e.data;return t?(this.applyPreferredHost(t),[...t.layers||[],...t.tables||[]].find(({type:e})=>!e||this.supportedSourceTypes.has(e))?.id):void 0})}};(0,r.Cg)([(0,d.MZ)({type:y.A,json:{origins:{service:{read:{source:"sourceSpatialReference"}}}}})],J.prototype,"attributeSpatialReference",void 0),(0,r.Cg)([(0,d.MZ)(_.es)],J.prototype,"barrierWeight",void 0),(0,r.Cg)([(0,d.MZ)({nonNullable:!0,json:{name:"enableEditing",write:!0}})],J.prototype,"editingEnabled",null),(0,r.Cg)([(0,d.MZ)({readOnly:!0})],J.prototype,"effectiveEditingEnabled",null),(0,r.Cg)([(0,d.MZ)({...K.fields,readOnly:!0,json:{read:!1,origins:{service:{read:!0}}}})],J.prototype,"fields",void 0),(0,r.Cg)([(0,d.MZ)(K.fieldsIndex)],J.prototype,"fieldsIndex",void 0),(0,r.Cg)([(0,d.MZ)({readOnly:!0,clonable:!1})],J.prototype,"graphicOrigin",void 0),(0,r.Cg)([(0,d.MZ)(_.id)],J.prototype,"id",void 0),(0,r.Cg)([(0,d.MZ)({type:["show","hide"],json:{origins:{"portal-item":{read:!1,write:!1}}}})],J.prototype,"listMode",void 0),(0,r.Cg)([(0,d.MZ)({type:["ArcGISDimensionLayer"],json:{origins:{"portal-item":{name:"layerType",write:{enabled:!0,ignoreOrigin:!0,isRequired:!0}}}}})],J.prototype,"operationalLayerType",void 0),(0,r.Cg)([(0,d.MZ)(K.outFields)],J.prototype,"outFields",void 0),(0,r.Cg)([(0,d.MZ)(_.M6)],J.prototype,"popupEnabled",void 0),(0,r.Cg)([(0,d.MZ)({type:o.A,json:{name:"popupInfo",write:!0}})],J.prototype,"popupTemplate",void 0),(0,r.Cg)([(0,d.MZ)({readOnly:!0})],J.prototype,"defaultPopupTemplate",null),(0,r.Cg)([(0,d.MZ)({readOnly:!0})],J.prototype,"referenceScale",void 0),(0,r.Cg)([(0,d.MZ)({clonable:!1,readOnly:!0})],J.prototype,"source",void 0),(0,r.Cg)([(0,d.MZ)()],J.prototype,"styleCollection",void 0),(0,r.Cg)([(0,d.MZ)({type:String})],J.prototype,"sublayerTitleMode",void 0),(0,r.Cg)([(0,d.MZ)({readOnly:!0})],J.prototype,"symbolFields",void 0),(0,r.Cg)([(0,k.w)("service","title",["name"])],J.prototype,"readTitleFromService",null),(0,r.Cg)([(0,k.w)("portal-item","title")],J.prototype,"readTitleFromPortalItem",null),(0,r.Cg)([(0,d.MZ)({json:{read:!1},value:"dimension-feature",readOnly:!0})],J.prototype,"type",void 0),J=(0,r.Cg)([(0,d.$K)("esri.layers.DimensionFeatureLayer")],J);const Y=J},54339(e,t,i){function r(e,t){switch(t.type){case"object-id":case"unique-id-simple":return e.attributes[t.fieldName];case"unique-id-composite":{let i=[];for(let r of t.fieldNames)i.push(e.attributes[r]??null);return JSON.stringify(i)}}}function o(e,t){if("uniqueIdFields"in t&&t.uniqueIdFields?.length){if(1===t.uniqueIdFields.length)return e.attributes?.[t.uniqueIdFields[0]];let i=t.uniqueIdFields.map(t=>e.attributes?.[t]);return JSON.stringify(i)}return"objectIdField"in t&&t.objectIdField?e.attributes?.[t.objectIdField]:null}i.d(t,{W:()=>r,r:()=>o})},52136(e,t,i){var r=i(32198),o=i(91429);i.d(t,["p",0,e=>{let t=e,i=class extends t{get apiKey(){return this._isOverridden("apiKey")?this._get("apiKey"):"portalItem"in this?this.portalItem?.apiKey:null}set apiKey(e){null==e?(this._clearOverride("apiKey"),this.clear("apiKey","user")):this._override("apiKey",e)}};return(0,r.Cg)([(0,o.MZ)({type:String})],i.prototype,"apiKey",null),i=(0,r.Cg)([(0,o.$K)("esri.layers.mixins.APIKeyMixin")],i),i}])},40775(e,t,i){var r=i(32198),o=i(56507),l=i(49186),s=i(84952),n=i(91429),a=i(95250);function u(e,t){let i=e.indexOf(t);return-1===i?void 0:e[i+1]}function p(e,t){let i=u(e,t);return i&&"string"==typeof i?JSON.parse(i):null}function d(e){let t=u(e,"ReferenceScale")??0;return"string"==typeof t?parseFloat(t):t}function y(e){return p(e,"SymbolCollection")??void 0}function h(e){return p(e,"StyleCollection")??void 0}i.d(t,["I",0,e=>{let t=e,i=class extends t{async loadDataElement(e){if(!this.url||null==this.layerId)throw new l.A("fetchDataElement:missing-url-or-layerId","The layer must have a url and a layerId to fetch the data element.");let t=(0,s.fj)(this.url,"queryDataElements"),i={f:"json",layers:this.layerId},{data:r}=await(0,o.A)(t,{...e,responseType:"json",query:i}),n=r.layerDataElements.find(e=>e.layerId===this.layerId)?.dataElement;if(!n)throw new l.A("fetchDataElement:not-available","A data element for this layer could not be retrieved.");let u=n.extensionProperties?.propertySetItems??[],p=d(u),c=(0,a.S)(y(u)),g=(0,a.S)(h(u));this.read({referenceScale:p,symbolCollection:c,styleCollection:g},{origin:"service"})}};return i=(0,r.Cg)([(0,n.$K)("esri.layers.mixins.DataElementMixin")],i),i}])},28032(e,t,i){i.d(t,{A:()=>a});var r=i(32198),o=i(69540),l=i(25482),s=i(91429),n=i(56400);let a=class extends((0,o.OU)(l.o)){constructor(e){super(e),this.creatorField=null,this.creationDateField=null,this.editorField=null,this.editDateField=null,this.realm=null,this.timeZone=null}};(0,r.Cg)([(0,s.MZ)()],a.prototype,"creatorField",void 0),(0,r.Cg)([(0,s.MZ)()],a.prototype,"creationDateField",void 0),(0,r.Cg)([(0,s.MZ)()],a.prototype,"editorField",void 0),(0,r.Cg)([(0,s.MZ)()],a.prototype,"editDateField",void 0),(0,r.Cg)([(0,s.MZ)()],a.prototype,"realm",void 0),(0,r.Cg)([(0,s.MZ)((0,n.P6)("dateFieldsTimeReference",!0))],a.prototype,"timeZone",void 0),a=(0,r.Cg)([(0,s.$K)("esri.layers.support.EditFieldsInfo")],a)},37352(e,t,i){i.d(t,{A:()=>a});var r,o=i(32198),l=i(7762),s=i(25482),n=i(91429);let a=r=class extends s.o{constructor(e){super(e),this.floorField=null,this.viewAllMode=!1,this.viewAllLevelIds=new l.A}clone(){return new r({floorField:this.floorField,viewAllMode:this.viewAllMode,viewAllLevelIds:this.viewAllLevelIds})}};(0,o.Cg)([(0,n.MZ)({type:String,json:{write:{isRequired:!0}}})],a.prototype,"floorField",void 0),(0,o.Cg)([(0,n.MZ)({json:{read:!1,write:!1}})],a.prototype,"viewAllMode",void 0),(0,o.Cg)([(0,n.MZ)({json:{read:!1,write:!1}})],a.prototype,"viewAllLevelIds",void 0),a=r=(0,o.Cg)([(0,n.$K)("esri.layers.support.LayerFloorInfo")],a)},45067(e,t,i){i.d(t,{A:()=>p});var r=i(32198),o=i(69540),l=i(66552),s=i(25482),n=i(91429);const a=new l.J({esriRelCardinalityOneToOne:"one-to-one",esriRelCardinalityOneToMany:"one-to-many",esriRelCardinalityManyToMany:"many-to-many"}),u=new l.J({esriRelRoleOrigin:"origin",esriRelRoleDestination:"destination"});let p=class extends((0,o.OU)(s.o)){constructor(e){super(e),this.cardinality=null,this.catalogId=null,this.composite=null,this.id=null,this.keyField=null,this.keyFieldInRelationshipTable=null,this.name=null,this.relatedTableId=null,this.relationshipTableId=null,this.role=null}};(0,r.Cg)([(0,n.MZ)({json:{read:a.read,write:a.write}})],p.prototype,"cardinality",void 0),(0,r.Cg)([(0,n.MZ)({json:{name:"catalogID"}})],p.prototype,"catalogId",void 0),(0,r.Cg)([(0,n.MZ)({json:{read:!0,write:!0}})],p.prototype,"composite",void 0),(0,r.Cg)([(0,n.MZ)({json:{read:!0,write:!0}})],p.prototype,"id",void 0),(0,r.Cg)([(0,n.MZ)({json:{read:!0,write:!0}})],p.prototype,"keyField",void 0),(0,r.Cg)([(0,n.MZ)({json:{read:!0,write:!0}})],p.prototype,"keyFieldInRelationshipTable",void 0),(0,r.Cg)([(0,n.MZ)({json:{read:!0,write:!0}})],p.prototype,"name",void 0),(0,r.Cg)([(0,n.MZ)({json:{read:!0,write:!0}})],p.prototype,"relatedTableId",void 0),(0,r.Cg)([(0,n.MZ)({json:{read:!0,write:!0}})],p.prototype,"relationshipTableId",void 0),(0,r.Cg)([(0,n.MZ)({json:{read:u.read,write:u.write}})],p.prototype,"role",void 0),p=(0,r.Cg)([(0,n.$K)("esri.layers.support.Relationship")],p)},41366(e,t,i){var r=i(32198),o=i(66552),l=i(53966),s=i(91429),n=i(93223);const a=(0,o.O)()({naturalLog:"natural-log",squareRoot:"square-root",percentOfTotal:"percent-of-total",log:"log",field:"field"}),u="percent-of-total",p="field";i.d(t,["K",0,e=>{let t=e,i=class extends t{constructor(){super(...arguments),this.normalizationField=null,this.normalizationMaxValue=null,this.normalizationMinValue=null,this.normalizationTotal=null}get normalizationType(){let e=this._get("normalizationType"),t=!!this.normalizationField,i=null!=this.normalizationTotal;return t||i?(e=t&&p||i&&u||null,t&&i&&l.A.getLogger(this).warn("warning: both normalizationField and normalizationTotal are set!")):(e===p||e===u)&&(e=null),e}set normalizationType(e){this._set("normalizationType",e)}};return(0,r.Cg)([(0,s.MZ)({type:String,json:{name:"parameters.normalizationField",write:!0}})],i.prototype,"normalizationField",void 0),(0,r.Cg)([(0,s.MZ)({type:Number,json:{name:"parameters.normalizationMaxValue",write:!0}})],i.prototype,"normalizationMaxValue",void 0),(0,r.Cg)([(0,s.MZ)({type:Number,json:{name:"parameters.normalizationMinValue",write:!0}})],i.prototype,"normalizationMinValue",void 0),(0,r.Cg)([(0,s.MZ)({type:Number,json:{name:"parameters.normalizationTotal",write:!0}})],i.prototype,"normalizationTotal",void 0),(0,r.Cg)([(0,n.e)(a,{name:"parameters.normalizationType"})],i.prototype,"normalizationType",null),i=(0,r.Cg)([(0,s.$K)("esri.rest.support.NormalizationBinParametersMixin")],i),i},"Q",0,a])},95250(e,t,i){function r(e){return o(e,{CIMRGBColor:l,CIMCharacterMarker:s})}function o(e,t){if(null==e)return e;if(Array.isArray(e))return e.map(e=>o(e,t));if("object"==typeof e){if("type"in e&&"string"==typeof e.type&&t[e.type])return t[e.type](e);let i={};for(let[r,l]of Object.entries(e))i[r]=o(l,t);return i}return e}function l(e){let[t,i,r,o]=e.values;return[t,i,r,255*o/100]}function s(){return{type:"CIMVectorMarker",enable:!0,size:40,colorLocked:!1,anchorPointUnits:"Relative",frame:{xmin:-10,ymin:-10,xmax:10,ymax:10},markerGraphics:[{type:"CIMMarkerGraphic",textString:"■",geometry:{x:0,y:0},symbol:{type:"CIMTextSymbol",underline:!1,blockProgression:"TTB",depth3D:0,extrapolateBaselines:!0,flipAngle:90,fontEffects:"Normal",fontEncoding:"Unicode",haloSize:0,height:8,hinting:"Default",horizontalAlignment:"Center",kerning:!0,letterSpacing:10,letterWidth:100,ligatures:!1,lineGapType:"ExtraLeading",symbol:{type:"CIMPolygonSymbol",symbolLayers:[{type:"CIMSolidFill",enable:!0,color:[0,0,0,255]}]},symbol3DProperties:{type:"CIM3DSymbolProperties",dominantSizeAxis3D:"Z",rotationOrder3D:"XYZ",scaleZ:1,scaleY:1},textCase:"Normal",textDirection:"LTR",verticalAlignment:"Center",verticalGlyphOrientation:"Right",wordSpacing:100,billboardMode3D:"FaceNearPlane"}}],scaleSymbolsProportionally:!0,respectFrame:!0}}i.d(t,{S:()=>r})},93470(e,t,i){const r=[252,146,31,255],o={type:"esriSMS",style:"esriSMSCircle",size:6,color:r,outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[153,153,153,255]}},l={type:"esriSLS",style:"esriSLSSolid",width:.75,color:r};i.d(t,["Cb",0,o,"HW",0,{type:"esriSLS",style:"esriSLSSolid",color:[0,0,0,255],width:1.5},"JR",0,[153,153,153,255],"JZ",0,{type:"esriTS",color:[255,255,255,255],font:{family:"arial-unicode-ms",size:10,weight:"bold"},horizontalAlignment:"center",kerning:!0,haloColor:[0,0,0,255],haloSize:1,rotated:!1,text:"",xoffset:0,yoffset:0,angle:0},"WR",0,{type:"esriSFS",style:"esriSFSSolid",color:[252,146,31,196],outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[255,255,255,191]}},"b6",0,{type:"esriSFS",style:"esriSFSSolid",color:[0,0,0,255],outline:null},"fT",0,r,"nC",0,{type:"esriSMS",style:"esriSMSCircle",color:[0,0,0,255],outline:null,size:10.5},"yM",0,l])}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7005],{82534(t,e,r){function n(){return[0,0,0,1]}function a(t){return[t[0],t[1],t[2],t[3]]}r.d(e,{o8:()=>a,vt:()=>n});const i=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:i,clone:a,create:n,fromValues:function(t,e,r,n){return[t,e,r,n]}},Symbol.toStringTag,{value:"Module"})),r.d(e,["zK",0,i])},67026(t,e,r){r.d(e,{A6:()=>M,Xd:()=>u,Xr:()=>d,lw:()=>c,x8:()=>l});var n=r(29242),a=r(82534),i=r(51850),s=r(34304),h=r(35522),o=r(78955);function l(t,e,r){r*=.5;let n=Math.sin(r);return t[0]=n*e[0],t[1]=n*e[1],t[2]=n*e[2],t[3]=Math.cos(r),t}function u(t,e){let r=2*Math.acos(e[3]),n=Math.sin(r/2);return n>(0,s.FD)()?(t[0]=e[0]/n,t[1]=e[1]/n,t[2]=e[2]/n):(t[0]=1,t[1]=0,t[2]=0),r}function c(t,e,r){let n=e[0],a=e[1],i=e[2],s=e[3],h=r[0],o=r[1],l=r[2],u=r[3];return t[0]=n*u+s*h+a*l-i*o,t[1]=a*u+s*o+i*h-n*l,t[2]=i*u+s*l+n*o-a*h,t[3]=s*u-n*h-a*o-i*l,t}function f(t,e,r,n){let a,i,h,o,l,u=e[0],c=e[1],f=e[2],d=e[3],m=r[0],M=r[1],v=r[2],_=r[3];return i=u*m+c*M+f*v+d*_,i<0&&(i=-i,m=-m,M=-M,v=-v,_=-_),1-i>(0,s.FD)()?(a=Math.acos(i),h=Math.sin(a),o=Math.sin((1-n)*a)/h,l=Math.sin(n*a)/h):(o=1-n,l=n),t[0]=o*u+l*m,t[1]=o*c+l*M,t[2]=o*f+l*v,t[3]=o*d+l*_,t}function d(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=e[3],t}function m(t,e){let r,n=e[0]+e[4]+e[8];if(n>0)r=Math.sqrt(n+1),t[3]=.5*r,r=.5/r,t[0]=(e[5]-e[7])*r,t[1]=(e[6]-e[2])*r,t[2]=(e[1]-e[3])*r;else{let n=0;e[4]>e[0]&&(n=1),e[8]>e[3*n+n]&&(n=2);let a=(n+1)%3,i=(n+2)%3;r=Math.sqrt(e[3*n+n]-e[3*a+a]-e[3*i+i]+1),t[n]=.5*r,r=.5/r,t[3]=(e[3*a+i]-e[3*i+a])*r,t[a]=(e[3*a+n]+e[3*n+a])*r,t[i]=(e[3*i+n]+e[3*n+i])*r}return t}function M(t,e,r,n){let a=.5*Math.PI/180;e*=a,r*=a,n*=a;let i=Math.sin(e),s=Math.cos(e),h=Math.sin(r),o=Math.cos(r),l=Math.sin(n),u=Math.cos(n);return t[0]=i*o*u-s*h*l,t[1]=s*h*u+i*o*l,t[2]=s*o*l-i*h*u,t[3]=s*o*u+i*h*l,t}const v=o.C,_=o.hZ,g=o.WQ,b=c,P=o.hs,j=o.Om,p=o.Cc,x=o.Bw,w=x,C=o.m3,z=C,A=o.S8,S=o.t2,y=o.aI,Q=(0,i.vt)(),q=(0,i.fA)(1,0,0),O=(0,i.fA)(0,1,0),V=(0,a.vt)(),H=(0,a.vt)(),R=(0,n.vt)();Object.freeze(Object.defineProperty({__proto__:null,add:g,calculateW:function(t,e){let r=e[0],n=e[1],a=e[2];return t[0]=r,t[1]=n,t[2]=a,t[3]=Math.sqrt(Math.abs(1-r*r-n*n-a*a)),t},conjugate:d,copy:v,dot:j,equals:y,exactEquals:S,fromEuler:M,fromMat3:m,getAxisAngle:u,identity:function(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t},invert:function(t,e){let r=e[0],n=e[1],a=e[2],i=e[3],s=r*r+n*n+a*a+i*i,h=s?1/s:0;return t[0]=-r*h,t[1]=-n*h,t[2]=-a*h,t[3]=i*h,t},len:w,length:x,lerp:p,mul:b,multiply:c,normalize:A,random:function(t){let e=s.Ov,r=e(),n=e(),a=e(),i=Math.sqrt(1-r),h=Math.sqrt(r);return t[0]=i*Math.sin(2*Math.PI*n),t[1]=i*Math.cos(2*Math.PI*n),t[2]=h*Math.sin(2*Math.PI*a),t[3]=h*Math.cos(2*Math.PI*a),t},rotateX:function(t,e,r){r*=.5;let n=e[0],a=e[1],i=e[2],s=e[3],h=Math.sin(r),o=Math.cos(r);return t[0]=n*o+s*h,t[1]=a*o+i*h,t[2]=i*o-a*h,t[3]=s*o-n*h,t},rotateY:function(t,e,r){r*=.5;let n=e[0],a=e[1],i=e[2],s=e[3],h=Math.sin(r),o=Math.cos(r);return t[0]=n*o-i*h,t[1]=a*o+s*h,t[2]=i*o+n*h,t[3]=s*o-a*h,t},rotateZ:function(t,e,r){r*=.5;let n=e[0],a=e[1],i=e[2],s=e[3],h=Math.sin(r),o=Math.cos(r);return t[0]=n*o+a*h,t[1]=a*o-n*h,t[2]=i*o+s*h,t[3]=s*o-i*h,t},rotationTo:function(t,e,r){let n=(0,h.Om)(e,r);return n<-.999999?((0,h.$A)(Q,q,e),(0,h.Il)(Q)<1e-6&&(0,h.$A)(Q,O,e),(0,h.S8)(Q,Q),l(t,Q,Math.PI),t):n>.999999?(t[0]=0,t[1]=0,t[2]=0,t[3]=1,t):((0,h.$A)(Q,e,r),t[0]=Q[0],t[1]=Q[1],t[2]=Q[2],t[3]=1+n,A(t,t))},scale:P,set:_,setAxes:function(t,e,r,n){let a=R;return a[0]=r[0],a[3]=r[1],a[6]=r[2],a[1]=n[0],a[4]=n[1],a[7]=n[2],a[2]=-e[0],a[5]=-e[1],a[8]=-e[2],A(t,m(t,a))},setAxisAngle:l,slerp:f,sqlerp:function(t,e,r,n,a,i){return f(V,e,a,i),f(H,r,n,i),f(t,V,H,2*i*(1-i)),t},sqrLen:z,squaredLength:C,str:function(t){return"quat("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"}},Symbol.toStringTag,{value:"Module"})),r.d(e,["hZ",0,_,"t2",0,S])},48353(t,e,r){r.d(e,{l:()=>l});var n=r(34727),a=r(58083),i=r(51850);function s(t,e,r){let n=Math.sin(t),a=Math.cos(t),i=Math.sin(e),s=Math.cos(e),h=r;return h[0]=-n,h[4]=-i*a,h[8]=s*a,h[12]=0,h[1]=a,h[5]=-i*n,h[9]=s*n,h[13]=0,h[2]=0,h[6]=s,h[10]=i,h[14]=0,h[3]=0,h[7]=0,h[11]=0,h[15]=1,h}var h=r(37539),o=r(21325);function l(t,e,r,n){let i=(0,h.Tp)(t,n);if(null==i)return!1;let l=i.source.spatialReferenceId,m=i.dest.spatialReferenceId;if(l===m&&!u(m)&&(0!==l||(0,o.aI)(t,n)))return(0,a.kN)(r,e),!0;if(u(m)){let t=h.w5[l][10],n=h.w5[10][m];return null!=t&&null!=n&&(t(e,0,f,0),n(f,0,d,0),s(c*f[0],c*f[1],r),r[12]=d[0],r[13]=d[1],r[14]=d[2],!0)}let M=u(l);if((3===m||11===m||2===m||5===m)&&(2===l||M||3===l||5===l)){let t=h.w5[l][10],n=h.w5[10][m];return null!=t&&null!=n&&(t(e,0,f,0),n(f,0,d,0),M?function(t,e,r){s(t,e,r),(0,a.mg)(r,r)}(c*f[0],c*f[1],r):(0,a.D_)(r),r[12]=d[0],r[13]=d[1],r[14]=d[2],!0)}return!1}function u(t){return 1===t||6===t||8===t||4===t}const c=(0,n.kU)(1),f=(0,i.vt)(),d=(0,i.vt)()},27921(t,e,r){r.d(e,{$Q:()=>m,BX:()=>d,C:()=>h,Cr:()=>u,H:()=>v,O_:()=>l,Qj:()=>o,T7:()=>c,mN:()=>_,vE:()=>b,vt:()=>s,wE:()=>g});var n=r(34727),a=r(35522),i=r(51850);function s(t=P){return[t[0],t[1],t[2],t[3]]}function h(t,e){return function(t,e,r,n,a=s()){return a[0]=t,a[1]=e,a[2]=r,a[3]=n,a}(e[0],e[1],e[2],e[3],t)}function o(t){return t}function l(t,e,r){let n=e[0]*e[0]+e[1]*e[1]+e[2]*e[2],a=Math.abs(n-1)>1e-5&&n>1e-12?1/Math.sqrt(n):1;return r[0]=e[0]*a,r[1]=e[1]*a,r[2]=e[2]*a,r[3]=-(r[0]*t[0]+r[1]*t[1]+r[2]*t[2]),r}function u(t,e,r,n=s()){let a=r[0]-e[0],i=r[1]-e[1],h=r[2]-e[2],o=t[0]-e[0],l=t[1]-e[1],u=t[2]-e[2],c=i*u-h*l,f=h*o-a*u,d=a*l-i*o,m=c*c+f*f+d*d,M=Math.abs(m-1)>1e-5&&m>1e-12?1/Math.sqrt(m):1;return n[0]=c*M,n[1]=f*M,n[2]=d*M,n[3]=-(n[0]*t[0]+n[1]*t[1]+n[2]*t[2]),n}function c(t,e,r){return function(t){return 0===t||1===t}(b(t,e.origin,e.vector,0,r))}function f(t,e){return _(t,e)<=0}function d(t,e){return _(t,e)>=0}function m(t,e){return function(t,e,r,n,i,s,h,o){let l=(0,a.Om)(t,r),u=_(t,e);if(l>=-o&&l<=o)return M(u,i,s);let c=-u/l,f=M(l,i,!1);return!(h&&!f&&!M(u,i,s))&&(f?c>n.c0&&(n.c0=c):c<n.c1&&(n.c1=c),n.c0<=n.c1)}(t,e.ray.origin,e.ray.direction,e,!1,!1,!0,1e-6)}function M(t,e,r){return r?e?t>=0:t<=0:e?t>0:t<0}function v(t,e,r,n=!1){let i=e.at(-1),s=_(t,i),h=n?s>0:s<=0;for(let o=0;o<e.length;o++){let l=e.at(o),u=_(t,l),c=n?u>0:u<=0;h!==c&&(0,a.Cc)(r(),i,l,s/(s-u)),c&&(0,a.C)(r(),l),i=l,s=u,h=c}}function _(t,e){return(0,a.Om)(t,e)+t[3]}function g(t,e,r){for(let n=0;n<r;++n)if(f(t,e[n]))return!1;return!0}function b(t,e,r,i,s){let h=(0,a.Om)(t,r),o=_(t,e);if(0===h)return o>=0?2:3;let l=-o/h;return 1&i&&(l=(0,n.qE)(l,0,1)),!(4&i)&&l<0||!(8&i)&&l>1?o>=0?2:3:((0,a.WQ)(s,e,(0,a.hs)(s,r,l)),o>=0?0:1)}r(78955),r(44280),r(32114),r(32728),(0,i.vt)(),(0,i.vt)(),(0,i.vt)(),(0,i.vt)(),(0,i.vt)();const P=[0,0,1,0];(0,i.vt)()},44280(t,e,r){r.d(e,{g7:()=>h,gr:()=>s});var n=r(34727),a=r(35522),i=r(51850);function s(t,e){return(0,a.Om)(t,e)/(0,a.Bw)(t)}function h(t,e){let r=(0,a.Om)(t,e)/((0,a.Bw)(t)*(0,a.Bw)(e));return-(0,n.XM)(r)}(0,i.vt)(),(0,i.vt)()},32114(t,e,r){r.d(e,{Rc:()=>d,rq:()=>c,Km:()=>f}),r(44208);var n=r(26390),a=r(29242),i=r(9093),s=r(82534),h=r(48163),o=r(51850),l=r(91829);class u{constructor(t){this._create=t,this._items=[],this._itemsPtr=0}get(){return 0===this._itemsPtr&&(0,n.d)(()=>this._reset()),this._itemsPtr>=this._items.length&&this._items.push(this._create()),this._items[this._itemsPtr++]}_reset(){let t=2*this._itemsPtr;this._items.length>t&&(this._items.length=t),this._itemsPtr=0}static createVec2f64(){return new u(h.vt)}static createVec3f64(){return new u(o.vt)}static createVec4f64(){return new u(l.vt)}static createMat3f64(){return new u(a.vt)}static createMat4f64(){return new u(i.vt)}static createQuatf64(){return new u(s.vt)}get test(){}}u.createVec2f64();const c=u.createVec3f64(),f=u.createVec4f64(),d=(u.createMat3f64(),u.createMat4f64());u.createQuatf64()},32728(t,e,r){r.d(e,{YH:()=>s,nu:()=>h,wp:()=>i}),r(34727);var n=r(35522),a=r(51850);function i(t,e){let r=Math.sqrt(e[0]*e[0]+e[4]*e[4]+e[8]*e[8]),a=Math.sqrt(e[1]*e[1]+e[5]*e[5]+e[9]*e[9]),i=Math.sqrt(e[2]*e[2]+e[6]*e[6]+e[10]*e[10]);return(0,n.hZ)(t,r,a,i),t}function s(t,e,r){r||=t;let a=(0,n.Om)(t,e);(0,n.hZ)(r,t[0]-a*e[0],t[1]-a*e[1],t[2]-a*e[2]),(0,n.S8)(r,r)}function h(t,e,r,i=(0,a.vt)()){let s=(0,n.Bw)(t),h=(0,n.Bw)(e),u=(0,n.Om)(t,e)/(s*h);if(u<.9999999999999999){let a=Math.acos(u),c=((1-r)*s+r*h)/Math.sin(a),f=c/s*Math.sin((1-r)*a),d=c/h*Math.sin(r*a);return(0,n.hs)(o,t,f),(0,n.hs)(l,e,d),(0,n.WQ)(i,o,l)}return(0,n.Cc)(i,t,e,r)}(0,a.vt)(),(0,a.vt)(),(0,a.vt)();const o=(0,a.vt)(),l=(0,a.vt)()},57005(t,e,r){r.d(e,{ab:()=>gt,gm:()=>At});var n=r(77690),a=r(29242),i=r(9093),s=r(67026),h=r(82534),o=r(35522),l=r(51850),u=r(78955),c=r(91829),f=r(73941),d=r(98764),m=r(48353),M=r(9762),v=r(37539),_=r(27921),g=r(21325),b=r(48163),P=r(46610);const j=1e-6,p=(0,l.vt)(),x=(0,l.vt)();function w(t,e,r,n,a,i,s,h,o,l){return function(t,e,r){let n=vt(t.maxVert[0],t.minVert[0]),a=0;for(let e=1;e<7;++e){let r=vt(t.maxVert[e],t.minVert[e]);r>n&&(n=r,a=e)}ft(e,t.minVert[a]),ft(r,t.maxVert[a])}(t,n,a),vt(n,a)<j?1:(ut(s,n,a),mt(s,s),function(t,e,r,n){let{data:a,size:i}=t,s=-1/0,h=0;for(let t=0;t<a.length;t+=i){H[0]=a[t]-e[0],H[1]=a[t+1]-e[1],H[2]=a[t+2]-e[2];let n=r[0]*H[0]+r[1]*H[1]+r[2]*H[2],i=r[0]*r[0]+r[1]*r[1]+r[2]*r[2],o=H[0]*H[0]+H[1]*H[1]+H[2]*H[2]-n*n/i;o>s&&(s=o,h=t)}return ft(n,a,h),s}(e,n,s,i)<j?2:(ut(h,a,i),mt(h,h),ut(o,i,n),mt(o,o),dt(r,h,s),mt(r,r),W(e,r,s,h,o,l),0))}const C=(0,l.vt)(),z=(0,l.vt)(),A=(0,l.vt)(),S=(0,l.vt)(),y=(0,l.vt)(),Q=(0,l.vt)(),q=(0,l.vt)(),O=(0,l.vt)();function V(t,e,r,n,a,i,s,h,o){(function(t,e,r,n,a){!function(t,e,r,n,a){let{data:i,size:s}=t;ft(n,i),ft(a,n),r[0]=_t(X,e),r[1]=r[0];for(let t=s;t<i.length;t+=s){let s=i[t]*e[0]+i[t+1]*e[1]+i[t+2]*e[2];s<r[0]&&(r[0]=s,ft(n,i,t)),s>r[1]&&(r[1]=s,ft(a,i,t))}}(t,e,R,a,n);let i=_t(r,e);R[1]-j<=i&&(n[0]=void 0),R[0]+j>=i&&(a[0]=void 0)})(t,e,r,C,z),void 0!==C[0]&&(ut(A,C,r),mt(A,A),ut(S,C,n),mt(S,S),ut(y,C,a),mt(y,y),dt(Q,S,i),mt(Q,Q),dt(q,y,s),mt(q,q),dt(O,A,h),mt(O,O),W(t,Q,i,S,A,o),W(t,q,s,y,S,o),W(t,O,h,A,y,o)),void 0!==z[0]&&(ut(A,z,r),mt(A,A),ut(S,z,n),mt(S,S),ut(y,z,a),mt(y,y),dt(Q,S,i),mt(Q,Q),dt(q,y,s),mt(q,q),dt(O,A,h),mt(O,O),W(t,Q,i,S,A,o),W(t,q,s,y,S,o),W(t,O,h,A,y,o))}const H=[0,0,0],R=(0,b.vt)(),I=(0,l.vt)(),L=(0,l.vt)(),B=(0,l.vt)(),D=(0,l.vt)(),F=(0,l.vt)(),Z=(0,l.vt)();function W(t,e,r,n,a,i){if(Mt(e)<j)return;dt(I,r,e),dt(L,n,e),dt(B,a,e),k(t,e,R),F[1]=R[0],D[1]=R[1],Z[1]=D[1]-F[1];let s=[r,n,a],h=[I,L,B];for(let r=0;r<3;++r){k(t,s[r],R),F[0]=R[0],D[0]=R[1],k(t,h[r],R),F[2]=R[0],D[2]=R[1],Z[0]=D[0]-F[0],Z[2]=D[2]-F[2];let n=ot(Z);n<i.quality&&(ft(i.b0,s[r]),ft(i.b1,e),ft(i.b2,h[r]),i.quality=n)}}const X=(0,l.vt)();function k(t,e,r){let{data:n,size:a}=t,i=1/0,s=-1/0,h=e[0],o=e[1],l=e[2];for(let t=0;t<n.length;t+=a){let e=n[t]*h+n[t+1]*o+n[t+2]*l;i=Math.min(i,e),s=Math.max(s,e)}r[0]=i,r[1]=s}function T(t,e,r){r.setCenter(t),r.setHalfSize((0,o.hs)(e,e,.5)),r.setQuaternion(h.zK)}const K=(0,l.vt)(),Y=(0,l.vt)(),E=(0,l.vt)(),N=(0,l.vt)(),$=(0,l.vt)(),G=(0,l.vt)();function J(t,e,r){ft(K,e),Math.abs(e[0])>Math.abs(e[1])&&Math.abs(e[0])>Math.abs(e[2])?K[0]=0:Math.abs(e[1])>Math.abs(e[2])?K[1]=0:K[2]=0,Mt(K)<j&&(K[0]=K[1]=K[2]=1),dt(Y,e,K),mt(Y,Y),dt(E,e,Y),mt(E,E),U(t,e,Y,E,N,$),ut(G,$,N),it(e,Y,E,N,$,G,r)}function U(t,e,r,n,a,i){k(t,e,R),a[0]=R[0],i[0]=R[1],k(t,r,R),a[1]=R[0],i[1]=R[1],k(t,n,R),a[2]=R[0],i[2]=R[1]}const tt=(0,l.vt)(),et=(0,l.vt)(),rt=(0,l.vt)(),nt=(0,a.fA)(1,0,0,0,1,0,0,0,1),at=(0,h.vt)();function it(t,e,r,n,a,i,s){nt[0]=t[0],nt[1]=t[1],nt[2]=t[2],nt[3]=e[0],nt[4]=e[1],nt[5]=e[2],nt[6]=r[0],nt[7]=r[1],nt[8]=r[2],s.setQuaternion(function(t,e){let r=e[0]+e[4]+e[8];if(r>0){let n=Math.sqrt(r+1);t[3]=.5*n,n=.5/n,t[0]=(e[5]-e[7])*n,t[1]=(e[6]-e[2])*n,t[2]=(e[1]-e[3])*n}else{let r=0;e[4]>e[0]&&(r=1),e[8]>e[3*r+r]&&(r=2);let n=(r+1)%3,a=(r+2)%3,i=Math.sqrt(e[3*r+r]-e[3*n+n]-e[3*a+a]+1);t[r]=.5*i,i=.5/i,t[3]=(e[3*n+a]-e[3*a+n])*i,t[n]=(e[3*n+r]+e[3*r+n])*i,t[a]=(e[3*a+r]+e[3*r+a])*i}return t}(at,nt)),lt(tt,n,a),ct(tt,tt,.5),ct(et,t,tt[0]),ct(rt,e,tt[1]),lt(et,et,rt),ct(rt,r,tt[2]),s.setCenter((0,o.WQ)(et,et,rt)),s.setHalfSize((0,o.hs)(tt,i,.5))}class st{constructor(t){this.minVert=Array(7),this.maxVert=Array(7),this.buffer=new ArrayBuffer(448);let e=0;this.minProj=new Float64Array(this.buffer,e,7),e+=56,this.maxProj=new Float64Array(this.buffer,e,7),e+=56;for(let t=0;t<7;++t)this.minVert[t]=new Float64Array(this.buffer,e,3),e+=24;for(let t=0;t<7;++t)this.maxVert[t]=new Float64Array(this.buffer,e,3),e+=24;for(let t=0;t<7;++t)this.minProj[t]=1/0,this.maxProj[t]=-1/0;let r=Array(7),n=Array(7),{data:a,size:i}=t;for(let t=0;t<a.length;t+=i){let e=a[t];e<this.minProj[0]&&(this.minProj[0]=e,r[0]=t),e>this.maxProj[0]&&(this.maxProj[0]=e,n[0]=t),e=a[t+1],e<this.minProj[1]&&(this.minProj[1]=e,r[1]=t),e>this.maxProj[1]&&(this.maxProj[1]=e,n[1]=t),e=a[t+2],e<this.minProj[2]&&(this.minProj[2]=e,r[2]=t),e>this.maxProj[2]&&(this.maxProj[2]=e,n[2]=t),e=a[t]+a[t+1]+a[t+2],e<this.minProj[3]&&(this.minProj[3]=e,r[3]=t),e>this.maxProj[3]&&(this.maxProj[3]=e,n[3]=t),e=a[t]+a[t+1]-a[t+2],e<this.minProj[4]&&(this.minProj[4]=e,r[4]=t),e>this.maxProj[4]&&(this.maxProj[4]=e,n[4]=t),e=a[t]-a[t+1]+a[t+2],e<this.minProj[5]&&(this.minProj[5]=e,r[5]=t),e>this.maxProj[5]&&(this.maxProj[5]=e,n[5]=t),e=a[t]-a[t+1]-a[t+2],e<this.minProj[6]&&(this.minProj[6]=e,r[6]=t),e>this.maxProj[6]&&(this.maxProj[6]=e,n[6]=t)}for(let t=0;t<7;++t){let e=r[t];ft(this.minVert[t],a,e),e=n[t],ft(this.maxVert[t],a,e)}}}class ht{constructor(){this.b0=(0,l.fA)(1,0,0),this.b1=(0,l.fA)(0,1,0),this.b2=(0,l.fA)(0,0,1),this.quality=0}}function ot(t){return t[0]*t[1]+t[0]*t[2]+t[1]*t[2]}function lt(t,e,r){t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2]}function ut(t,e,r){t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2]}function ct(t,e,r){t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r}function ft(t,e,r=0){t[0]=e[r],t[1]=e[r+1],t[2]=e[r+2]}function dt(t,e,r){let n=e[0],a=e[1],i=e[2],s=r[0],h=r[1],o=r[2];t[0]=a*o-i*h,t[1]=i*s-n*o,t[2]=n*h-a*s}function mt(t,e){let r=e[0]*e[0]+e[1]*e[1]+e[2]*e[2];if(r>0){let n=1/Math.sqrt(r);t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n}}function Mt(t){return t[0]*t[0]+t[1]*t[1]+t[2]*t[2]}function vt(t,e){let r=e[0]-t[0],n=e[1]-t[1],a=e[2]-t[2];return r*r+n*n+a*a}function _t(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}class gt{constructor(t=l.uY,e=yt,r=h.zK){this._data=[t[0],t[1],t[2],e[0],e[1],e[2],r[0],r[1],r[2],r[3]]}clone(){return gt.fromData(this._data)}invalidate(){this._data[3]=-1}get isValid(){return this._data[3]>=0}static fromData(t){let e=new gt;return e._copyFromData(t),e}static fromJSON(t){return new gt(t.center,t.halfSize,t.quaternion)}copy(t){this._copyFromData(t.data)}_copyFromData(t){for(let e=0;e<10;++e)this._data[e]=t[e]}get centerX(){return this._data[0]}get centerY(){return this._data[1]}get centerZ(){return this._data[2]}getCenter(t){return t[0]=this._data[0],t[1]=this._data[1],t[2]=this._data[2],t}setCenter(t){this._data[0]=t[0],this._data[1]=t[1],this._data[2]=t[2]}setCenterFromValues(t,e,r){this._data[0]=t,this._data[1]=e,this._data[2]=r}get halfSizeX(){return this._data[3]}get halfSizeY(){return this._data[4]}get halfSizeZ(){return this._data[5]}getHalfSize(t){return t[0]=this._data[3],t[1]=this._data[4],t[2]=this._data[5],t}setHalfSize(t){this._data[3]=t[0],this._data[4]=t[1],this._data[5]=t[2]}setHalfSizeFromValues(t,e,r){this._data[3]=t,this._data[4]=e,this._data[5]=r}getQuaternion(t){return t[0]=this._data[6],t[1]=this._data[7],t[2]=this._data[8],t[3]=this._data[9],t}getQuaternionConjugate(t){return t[0]=-this._data[6],t[1]=-this._data[7],t[2]=-this._data[8],t[3]=this._data[9],t}setQuaternion(t){this._data[6]=t[0],this._data[7]=t[1],this._data[8]=t[2],this._data[9]=t[3]}get data(){return this._data}getCorners(t){let e=this._data,r=(0,s.hZ)(bt,e[6],e[7],e[8],e[9]);for(let n=0;n<8;++n){let a=t[n];a[0]=(1&n?-1:1)*e[3],a[1]=(2&n?-1:1)*e[4],a[2]=(4&n?-1:1)*e[5],(0,o.gL)(a,a,r),a[0]+=e[0],a[1]+=e[1],a[2]+=e[2]}return t}getAxes(t){let e=this._data,r=(0,s.hZ)(bt,e[6],e[7],e[8],e[9]);return(0,o.gL)(t[0],[1,0,0],r),(0,o.gL)(t[1],[0,1,0],r),(0,o.gL)(t[2],[0,0,1],r),t}intersectsFrustum(t){let{centerX:e,centerY:r,centerZ:n}=this,a=t.planes;for(let t of a){let a=(0,_.Qj)(t),i=this.projectedRadius(a);if(e*a[0]+r*a[1]+n*a[2]+t[3]-i>0)return!1}let i=this.getAxes(Bt),s=t.points,h=this.getHalfSize(Ht);for(let t=0;t<3;++t){let a=i[t],l=-a[0]*e-a[1]*r-a[2]*n,u=h[t],c=!0,f=!0;for(let t of s){let e=(0,o.Om)(t,a)+l;c&&=e>u,f&&=e<-u}if(c||f)return!1}if(this.getCorners(Lt).some(e=>t.intersectsPoint(e)))return!0;let l=Xt;for(let t=0;t<3;++t){let a=i[t];l[t]=a[0]*e+a[1]*r+a[2]*n}if(t.points.some(t=>(t=>{for(let e=0;e<3;++e){let r=i[e],n=h[e],a=r[0]*t[0]+r[1]*t[1]+r[2]*t[2]-l[e];if(a>n||a<-n)return!1}return!0})(t)))return!0;let u=t.lines,c=Wt;for(let t=0;t<8;++t){let a=u[t].direction;for(let t of i){(0,o.$A)(c,a,t);let i=(0,o.Il)(c);if(!(i>0))continue;(0,o.hs)(c,c,1/i);let h=this.projectedRadius(c),l=c[0]*e+c[1]*r+c[2]*n,u=l-h,f=l+h,d=!1,m=!1,M=!0;for(let t of s){let e=(0,o.Om)(c,t);if(e>f){if(m){M=!1;break}d=!0}else{if(!(e<u)){M=!1;break}if(d){M=!1;break}m=!0}}if(M)return!1}}return!0}intersectsFrustumConservativeApproximation(t){return this.intersectPlane(t[0])<=0&&this.intersectPlane(t[1])<=0&&this.intersectPlane(t[2])<=0&&this.intersectPlane(t[3])<=0&&this.intersectPlane(t[4])<=0&&this.intersectPlane(t[5])<=0}intersectsFrustumConservativeApproximationWithMargin(t,e){return this.signedDistanceRangePlane(t[0]).min<=e&&this.signedDistanceRangePlane(t[1]).min<=e&&this.signedDistanceRangePlane(t[2]).min<=e&&this.signedDistanceRangePlane(t[3]).min<=e&&this.signedDistanceRangePlane(t[4]).min<=e&&this.signedDistanceRangePlane(t[5]).min<=e}get radius(){let t=this._data[3],e=this._data[4],r=this._data[5];return Math.sqrt(t*t+e*e+r*r)}intersectsPoint(t){let e=this.getAxes(Bt),r=this.getHalfSize(Ht),n=this.getCenter(Vt);for(let a=0;a<3;++a){let i=e[a],s=r[a],h=(0,o.Om)(i,t)-(0,o.Om)(i,n);if(h>s||h<-s)return!1}return!0}intersectSphere(t){let{center:e,radius:r}=t,n=this._data,a=n[3],i=n[4],s=n[5],h=a+i+s+r,o=n[0]-e[0];if(Math.abs(o)>h)return!1;let l=n[1]-e[1];if(Math.abs(l)>h)return!1;let u=n[2]-e[2];if(Math.abs(u)>h)return!1;let c=-n[6],f=-n[7],d=-n[8],m=f*u-d*l,M=d*o-c*u,v=c*l-f*o,_=f*v-d*M,g=d*m-c*v,b=c*M-f*m,P=2*n[9],j=Math.abs(o+m*P+2*_),p=Math.abs(l+M*P+2*g),x=Math.abs(u+v*P+2*b),w=j-Math.min(j,a),C=p-Math.min(p,i),z=x-Math.min(x,s);return w*w+C*C+z*z<=r*r}intersectSphereWithMBS(t,e=this.radius){let r=this._data,{center:n,radius:a}=t,i=e+a,s=r[0]-n[0];if(s>i)return!1;let h=r[1]-n[1];if(h>i)return!1;let o=r[2]-n[2];if(o>i||s*s+h*h+o*o>i*i)return!1;let l=-r[6],u=-r[7],c=-r[8],f=u*o-c*h,d=c*s-l*o,m=l*h-u*s,M=u*m-c*d,v=c*f-l*m,_=l*d-u*f,g=2*r[9],b=Math.abs(s+f*g+2*M),P=Math.abs(h+d*g+2*v),j=Math.abs(o+m*g+2*_),p=b-Math.min(b,r[3]),x=P-Math.min(P,r[4]),w=j-Math.min(j,r[5]);return p*p+x*x+w*w<a*a}intersectPlane(t){let e=t[0]*this._data[0]+t[1]*this._data[1]+t[2]*this._data[2]+t[3],r=this.projectedRadius((0,_.Qj)(t));return e>r?1:e<-r?-1:0}intersectRay(t,e,r=0){let n=this._data,a=bt;a[0]=-n[6],a[1]=-n[7],a[2]=-n[8],a[3]=n[9],pt[0]=t[0]-n[0],pt[1]=t[1]-n[1],pt[2]=t[2]-n[2];let i=(0,o.gL)(pt,pt,bt),s=(0,o.gL)(xt,e,bt),h=-1/0,l=1/0,u=this.getHalfSize(Ht);for(let t=0;t<3;t++){let e=i[t],n=s[t],a=u[t]+r;if(Math.abs(n)>1e-6){let t=(a-e)/n,r=(-a-e)/n;h=Math.max(h,Math.min(t,r)),l=Math.min(l,Math.max(t,r))}else if(e>a||e<-a)return!1}return h<=l}projectedArea(t,e,r,a){let i=this.getQuaternion(Pt);(0,s.Xr)(bt,i),pt[0]=t[0]-this._data[0],pt[1]=t[1]-this._data[1],pt[2]=t[2]-this._data[2],(0,o.gL)(pt,pt,bt);let h=this.getHalfSize(Ht),l=pt[0]<-h[0]?-1:+(pt[0]>h[0]),c=pt[1]<-h[1]?-1:+(pt[1]>h[1]),f=pt[2]<-h[2]?-1:+(pt[2]>h[2]),d=Math.abs(l)+Math.abs(c)+Math.abs(f);if(0===d)return 1/0;let m=1===d?4:6,M=6*(l+3*c+9*f+13);(0,n.I0)(Rt,i),(0,n.hs)(Rt,Rt,h);let v=this.getCenter(Vt);for(let t=0;t<m;t++){let r=zt[M+t];(0,o.hZ)(pt,((1&r)<<1)-1,(2&r)-1,((4&r)>>1)-1),(0,o.ei)(pt,pt,Rt),(0,o.WQ)(wt,v,pt),wt[3]=1,(0,u.Z0)(wt,wt,e);let n=1/Math.max(1e-6,wt[3]);Ct[2*t]=wt[0]*n,Ct[2*t+1]=wt[1]*n}let _=2*m-2,g=Ct[0]*(Ct[3]-Ct[_+1])+Ct[_]*(Ct[1]-Ct[_-1]);for(let t=2;t<_;t+=2)g+=Ct[t]*(Ct[t+3]-Ct[t-1]);return Math.abs(g)*r*a*.125}projectedRadius(t){let e=this._data;return(0,o.fw)(pt,t,-e[6],-e[7],-e[8],e[9]),Math.abs(pt[0]*e[3])+Math.abs(pt[1]*e[4])+Math.abs(pt[2]*e[5])}signedDistancePlane(t,e){let r=this._data,n=t[0]*r[0]+t[1]*r[1]+t[2]*r[2]+e,a=this.projectedRadius(t);return n>a?n-a:n<-a?n+a:0}signedDistanceRangePlane(t){let e=t[0]*this._data[0]+t[1]*this._data[1]+t[2]*this._data[2]+t[3],r=this.projectedRadius((0,_.Qj)(t));return{min:e-r,max:e+r}}toAaBoundingBox(t){let e=this.getQuaternion(Pt),r=(0,n.I0)(Rt,e),a=this._data[3]*Math.abs(r[0])+this._data[4]*Math.abs(r[3])+this._data[5]*Math.abs(r[6]),i=this._data[3]*Math.abs(r[1])+this._data[4]*Math.abs(r[4])+this._data[5]*Math.abs(r[7]),s=this._data[3]*Math.abs(r[2])+this._data[4]*Math.abs(r[5])+this._data[5]*Math.abs(r[8]);t[0]=this._data[0]-a,t[1]=this._data[1]-i,t[2]=this._data[2]-s,t[3]=this._data[0]+a,t[4]=this._data[1]+i,t[5]=this._data[2]+s}transform(t,e,r,n=0,a=(0,d.lO)(r),i=(0,d.lO)(e),h=(0,v.jd)(e,i)){if(r===a)e.isGeographic?function(t,e,r,n,a=(0,d.lO)(r)){let i=(0,f.tO)(r),h=1+Math.max(0,n)/(i.radius+t.centerZ);t.getCenter(Ot),Ot[2]+=n,(0,M.projectBuffer)(Ot,r,0,Ot,a,0),e.setCenter(Ot);let l=t.getQuaternion(Pt);e.setQuaternion(l),(0,s.Xr)(bt,l),(0,o.hZ)(Dt,0,0,1),(0,o.gL)(Dt,Dt,bt);let u=t.getHalfSize(Ht);(0,o.hZ)(Dt,u[0]*Math.abs(Dt[0]),u[1]*Math.abs(Dt[1]),u[2]*Math.abs(Dt[2])),(0,o.hs)(Dt,Dt,i.inverseFlattening),(0,o.WQ)(Dt,u,Dt),e.setHalfSize((0,o.hs)(Dt,Dt,h))}(this,t,e,n,i):function(t,e,r,n,a=(0,d.lO)(r),i=(0,v.jd)(r,a)){t.getCorners(Lt);let h=t.getCenter(Vt);h[2]+=n,(0,m.l)(r,h,It,a),e.setCenterFromValues(It[12],It[13],It[14]);let l=2*Math.sqrt(1+It[0]+It[5]+It[10]);bt[0]=(It[6]-It[9])/l,bt[1]=(It[8]-It[2])/l,bt[2]=(It[1]-It[4])/l,bt[3]=.25*l;let u=t.getQuaternion(Pt);e.setQuaternion((0,s.lw)(bt,bt,u)),(0,s.Xr)(bt,bt),(0,o.hZ)(Ft,0,0,0);let c=e.getCenter(Vt);for(let t of Lt)t[2]+=n,i(t,0,t,0),(0,o.jb)(Dt,t,c),(0,o.gL)(Dt,Dt,bt),(0,o.tn)(Dt,Dt),(0,o.T9)(Ft,Ft,Dt);e.setHalfSize(Ft)}(this,t,e,n,i,h);else if(e.isGeographic&&(r.isWebMercator||(0,g.r1)(r)))!function(t,e,r,n,a){let i=e.getCenter(Vt);i[2]+=a;let s=(0,d.lO)(r);(0,M.projectBuffer)(i,t,0,i,s,0),St(s,e,i,r,n)}(e,this,r,t,n);else if(e.isWebMercator&&(0,g.r1)(r))!function(t,e,r,n,a){let i=e.getCenter(Vt);i[2]+=a,St(t,e,i,r,n)}(e,this,r,t,n);else{let a=this.getCenter(Vt);a[2]+=n,(0,M.projectBuffer)(a,e,0,a,r,0),t.setCenter(a),this!==t&&(t.setQuaternion(this.getQuaternion(Pt)),t.setHalfSize(this.getHalfSize(Ht)))}}}const bt=(0,h.vt)(),Pt=(0,h.vt)(),jt=(0,h.vt)(),pt=(0,l.vt)(),xt=(0,l.vt)(),wt=(0,c.vt)();const Ct=[.1,.2,.3,.4,.5,.6,.7,.8,.9,1,1.1,1.2],zt=(()=>{let t=new Int8Array(162),e=0,r=r=>{for(let n=0;n<r.length;n++)t[e+n]=r[n];e+=6};return r([6,2,3,1,5,4]),r([0,2,3,1,5,4]),r([0,2,3,7,5,4]),r([0,1,3,2,6,4]),r([0,1,3,2,0,0]),r([0,1,5,7,3,2]),r([0,1,3,7,6,4]),r([0,1,3,7,6,2]),r([0,1,5,7,6,2]),r([0,1,5,4,6,2]),r([0,1,5,4,0,0]),r([0,1,3,7,5,4]),r([0,2,6,4,0,0]),r([0,0,0,0,0,0]),r([1,3,7,5,0,0]),r([2,3,7,6,4,0]),r([2,3,7,6,0,0]),r([2,3,1,5,7,6]),r([0,1,5,7,6,2]),r([0,1,5,7,6,4]),r([0,1,3,7,6,4]),r([4,5,7,6,2,0]),r([4,5,7,6,0,0]),r([4,5,1,3,7,6]),r([0,2,3,7,5,4]),r([6,2,3,7,5,4]),r([6,2,3,1,5,4]),t})();function At(t,e,r,n,a){let i=t.getQuaternion(Pt);a.setQuaternion(i),(0,s.Xr)(bt,i);let h=t.getCenter(Vt),u=t.getHalfSize(Ht);if(1===n){(0,o.gL)(Dt,h,bt),(0,o.tn)(Ft,Dt),(0,o.jk)(Zt,Ft,u),(0,o.jb)(Zt,Ft,Zt);let n=(0,o.Bw)(Zt);(0,o.WQ)(Zt,Ft,u);let i=(0,o.Bw)(Zt);if(n<r)a.setCenter(h),(0,o.hZ)(Dt,r,r,r),a.setHalfSize((0,o.WQ)(Dt,u,Dt));else{let s=i>0?1+e/i:1,h=n>0?1+r/n:1,l=(h+s)/2,c=(h-s)/2;(0,o.hs)(Zt,Ft,c),a.setHalfSize((0,o.Ln)(Zt,Zt,u,l)),(0,o.hs)(Zt,Ft,l),(0,o.Ln)(Zt,Zt,u,c),(0,o._S)(Dt,Dt),(0,o.lw)(Dt,Zt,Dt);let f=t.getQuaternion(jt);a.setCenter((0,o.gL)(Dt,Dt,f))}}else{a.setCenter((0,o.Ln)(Dt,h,l.Cb,(r+e)/2));let t=(0,o.gL)(Dt,l.Cb,bt);(0,o.tn)(t,t),a.setHalfSize((0,o.Ln)(Ft,u,t,(r-e)/2))}return a}function St(t,e,r,a,i){let s=e.getQuaternion(Pt),h=(0,n.I0)(Rt,s),o=e.getHalfSize(Ht);for(let t=0;t<8;++t){for(let e=0;e<3;++e)Ot[e]=o[e]*(t&1<<e?-1:1);for(let e=0;e<3;++e){let n=r[e];for(let t=0;t<3;++t)n+=Ot[t]*h[3*t+e];Qt[3*t+e]=n}}(0,M.projectBuffer)(Qt,t,0,Qt,a,0,8),function(t,e=new gt){(function(t,e){let{data:r,size:n}=t,a=r.length/n;if(a<=0)return;let i=new st(t);lt(p,i.minProj,i.maxProj),ct(p,p,.5),ut(x,i.maxProj,i.minProj);let s=ot(x),h=new ht;h.quality=s,a<14&&(t=new P.K(new Float64Array(i.buffer,112,42),3));let o=(0,l.vt)(),u=(0,l.vt)(),c=(0,l.vt)(),f=(0,l.vt)(),d=(0,l.vt)(),m=(0,l.vt)(),M=(0,l.vt)();switch(w(i,t,M,o,u,c,f,d,m,h)){case 1:return void T(p,x,e);case 2:return void J(t,f,e)}V(t,M,o,u,c,f,d,m,h),U(t,h.b0,h.b1,h.b2,N,$);let v=(0,l.vt)();ut(v,$,N),h.quality=ot(v),h.quality<s?it(h.b0,h.b1,h.b2,N,$,v,e):T(p,x,e)})(t,e)}(qt,i)}const yt=(0,l.CN)(-1,-1,-1),Qt=Array(24),qt=new P.K(Qt,3),Ot=(0,l.vt)(),Vt=(0,l.vt)(),Ht=(0,l.vt)(),Rt=(0,a.vt)(),It=(0,i.vt)(),Lt=[[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0]],Bt=[(0,l.vt)(),(0,l.vt)(),(0,l.vt)()],Dt=(0,l.vt)(),Ft=(0,l.vt)(),Zt=(0,l.vt)(),Wt=(0,l.vt)(),Xt=[0,0,0]},46610(t,e,r){r.d(e,{K:()=>n,n:()=>a});class n{constructor(t,e,r=e){this.data=t,this.size=e,this.stride=r}}class a extends n{constructor(t,e,r,n=!1,a=r){super(t,r,a),this.indices=e,this.exclusive=n}}}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7005],{82534(t,e,r){function n(){return[0,0,0,1]}function a(t){return[t[0],t[1],t[2],t[3]]}r.d(e,{o8:()=>a,vt:()=>n});const i=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:i,clone:a,create:n,fromValues:function(t,e,r,n){return[t,e,r,n]}},Symbol.toStringTag,{value:"Module"})),r.d(e,["zK",0,i])},67026(t,e,r){r.d(e,{A6:()=>M,Xd:()=>u,Xr:()=>d,lw:()=>c,x8:()=>l});var n=r(29242),a=r(82534),i=r(51850),s=r(34304),h=r(35522),o=r(78955);function l(t,e,r){r*=.5;let n=Math.sin(r);return t[0]=n*e[0],t[1]=n*e[1],t[2]=n*e[2],t[3]=Math.cos(r),t}function u(t,e){let r=2*Math.acos(e[3]),n=Math.sin(r/2);return n>(0,s.FD)()?(t[0]=e[0]/n,t[1]=e[1]/n,t[2]=e[2]/n):(t[0]=1,t[1]=0,t[2]=0),r}function c(t,e,r){let n=e[0],a=e[1],i=e[2],s=e[3],h=r[0],o=r[1],l=r[2],u=r[3];return t[0]=n*u+s*h+a*l-i*o,t[1]=a*u+s*o+i*h-n*l,t[2]=i*u+s*l+n*o-a*h,t[3]=s*u-n*h-a*o-i*l,t}function f(t,e,r,n){let a,i,h,o,l,u=e[0],c=e[1],f=e[2],d=e[3],m=r[0],M=r[1],v=r[2],g=r[3];return i=u*m+c*M+f*v+d*g,i<0&&(i=-i,m=-m,M=-M,v=-v,g=-g),1-i>(0,s.FD)()?(a=Math.acos(i),h=Math.sin(a),o=Math.sin((1-n)*a)/h,l=Math.sin(n*a)/h):(o=1-n,l=n),t[0]=o*u+l*m,t[1]=o*c+l*M,t[2]=o*f+l*v,t[3]=o*d+l*g,t}function d(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=e[3],t}function m(t,e){let r,n=e[0]+e[4]+e[8];if(n>0)r=Math.sqrt(n+1),t[3]=.5*r,r=.5/r,t[0]=(e[5]-e[7])*r,t[1]=(e[6]-e[2])*r,t[2]=(e[1]-e[3])*r;else{let n=0;e[4]>e[0]&&(n=1),e[8]>e[3*n+n]&&(n=2);let a=(n+1)%3,i=(n+2)%3;r=Math.sqrt(e[3*n+n]-e[3*a+a]-e[3*i+i]+1),t[n]=.5*r,r=.5/r,t[3]=(e[3*a+i]-e[3*i+a])*r,t[a]=(e[3*a+n]+e[3*n+a])*r,t[i]=(e[3*i+n]+e[3*n+i])*r}return t}function M(t,e,r,n){let a=.5*Math.PI/180;e*=a,r*=a,n*=a;let i=Math.sin(e),s=Math.cos(e),h=Math.sin(r),o=Math.cos(r),l=Math.sin(n),u=Math.cos(n);return t[0]=i*o*u-s*h*l,t[1]=s*h*u+i*o*l,t[2]=s*o*l-i*h*u,t[3]=s*o*u+i*h*l,t}const v=o.C,g=o.hZ,_=o.WQ,b=c,P=o.hs,j=o.Om,p=o.Cc,x=o.Bw,w=x,C=o.m3,S=C,z=o.S8,A=o.t2,y=o.aI,Q=(0,i.vt)(),q=(0,i.fA)(1,0,0),O=(0,i.fA)(0,1,0),V=(0,a.vt)(),H=(0,a.vt)(),R=(0,n.vt)();Object.freeze(Object.defineProperty({__proto__:null,add:_,calculateW:function(t,e){let r=e[0],n=e[1],a=e[2];return t[0]=r,t[1]=n,t[2]=a,t[3]=Math.sqrt(Math.abs(1-r*r-n*n-a*a)),t},conjugate:d,copy:v,dot:j,equals:y,exactEquals:A,fromEuler:M,fromMat3:m,getAxisAngle:u,identity:function(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t},invert:function(t,e){let r=e[0],n=e[1],a=e[2],i=e[3],s=r*r+n*n+a*a+i*i,h=s?1/s:0;return t[0]=-r*h,t[1]=-n*h,t[2]=-a*h,t[3]=i*h,t},len:w,length:x,lerp:p,mul:b,multiply:c,normalize:z,random:function(t){let e=s.Ov,r=e(),n=e(),a=e(),i=Math.sqrt(1-r),h=Math.sqrt(r);return t[0]=i*Math.sin(2*Math.PI*n),t[1]=i*Math.cos(2*Math.PI*n),t[2]=h*Math.sin(2*Math.PI*a),t[3]=h*Math.cos(2*Math.PI*a),t},rotateX:function(t,e,r){r*=.5;let n=e[0],a=e[1],i=e[2],s=e[3],h=Math.sin(r),o=Math.cos(r);return t[0]=n*o+s*h,t[1]=a*o+i*h,t[2]=i*o-a*h,t[3]=s*o-n*h,t},rotateY:function(t,e,r){r*=.5;let n=e[0],a=e[1],i=e[2],s=e[3],h=Math.sin(r),o=Math.cos(r);return t[0]=n*o-i*h,t[1]=a*o+s*h,t[2]=i*o+n*h,t[3]=s*o-a*h,t},rotateZ:function(t,e,r){r*=.5;let n=e[0],a=e[1],i=e[2],s=e[3],h=Math.sin(r),o=Math.cos(r);return t[0]=n*o+a*h,t[1]=a*o-n*h,t[2]=i*o+s*h,t[3]=s*o-i*h,t},rotationTo:function(t,e,r){let n=(0,h.Om)(e,r);return n<-.999999?((0,h.$A)(Q,q,e),(0,h.Il)(Q)<1e-6&&(0,h.$A)(Q,O,e),(0,h.S8)(Q,Q),l(t,Q,Math.PI),t):n>.999999?(t[0]=0,t[1]=0,t[2]=0,t[3]=1,t):((0,h.$A)(Q,e,r),t[0]=Q[0],t[1]=Q[1],t[2]=Q[2],t[3]=1+n,z(t,t))},scale:P,set:g,setAxes:function(t,e,r,n){let a=R;return a[0]=r[0],a[3]=r[1],a[6]=r[2],a[1]=n[0],a[4]=n[1],a[7]=n[2],a[2]=-e[0],a[5]=-e[1],a[8]=-e[2],z(t,m(t,a))},setAxisAngle:l,slerp:f,sqlerp:function(t,e,r,n,a,i){return f(V,e,a,i),f(H,r,n,i),f(t,V,H,2*i*(1-i)),t},sqrLen:S,squaredLength:C,str:function(t){return"quat("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"}},Symbol.toStringTag,{value:"Module"})),r.d(e,["hZ",0,g,"t2",0,A])},48353(t,e,r){r.d(e,{l:()=>l});var n=r(34727),a=r(58083),i=r(51850);function s(t,e,r){let n=Math.sin(t),a=Math.cos(t),i=Math.sin(e),s=Math.cos(e),h=r;return h[0]=-n,h[4]=-i*a,h[8]=s*a,h[12]=0,h[1]=a,h[5]=-i*n,h[9]=s*n,h[13]=0,h[2]=0,h[6]=s,h[10]=i,h[14]=0,h[3]=0,h[7]=0,h[11]=0,h[15]=1,h}var h=r(37539),o=r(21325);function l(t,e,r,n){let i=(0,h.Tp)(t,n);if(null==i)return!1;let l=i.source.spatialReferenceId,m=i.dest.spatialReferenceId;if(l===m&&!u(m)&&(0!==l||(0,o.aI)(t,n)))return(0,a.kN)(r,e),!0;if(u(m)){let t=h.w5[l][10],n=h.w5[10][m];return null!=t&&null!=n&&(t(e,0,f,0),n(f,0,d,0),s(c*f[0],c*f[1],r),r[12]=d[0],r[13]=d[1],r[14]=d[2],!0)}let M=u(l);if((3===m||11===m||2===m||5===m)&&(2===l||M||3===l||5===l)){let t=h.w5[l][10],n=h.w5[10][m];return null!=t&&null!=n&&(t(e,0,f,0),n(f,0,d,0),M?function(t,e,r){s(t,e,r),(0,a.mg)(r,r)}(c*f[0],c*f[1],r):(0,a.D_)(r),r[12]=d[0],r[13]=d[1],r[14]=d[2],!0)}return!1}function u(t){return 1===t||6===t||8===t||4===t}const c=(0,n.kU)(1),f=(0,i.vt)(),d=(0,i.vt)()},27921(t,e,r){r.d(e,{$Q:()=>m,BX:()=>d,C:()=>h,Cr:()=>u,H:()=>v,O_:()=>l,Qj:()=>o,T7:()=>c,mN:()=>g,vE:()=>b,vt:()=>s,wE:()=>_});var n=r(34727),a=r(35522),i=r(51850);function s(t=P){return[t[0],t[1],t[2],t[3]]}function h(t,e){return function(t,e,r,n,a=s()){return a[0]=t,a[1]=e,a[2]=r,a[3]=n,a}(e[0],e[1],e[2],e[3],t)}function o(t){return t}function l(t,e,r){let n=e[0]*e[0]+e[1]*e[1]+e[2]*e[2],a=Math.abs(n-1)>1e-5&&n>1e-12?1/Math.sqrt(n):1;return r[0]=e[0]*a,r[1]=e[1]*a,r[2]=e[2]*a,r[3]=-(r[0]*t[0]+r[1]*t[1]+r[2]*t[2]),r}function u(t,e,r,n=s()){let a=r[0]-e[0],i=r[1]-e[1],h=r[2]-e[2],o=t[0]-e[0],l=t[1]-e[1],u=t[2]-e[2],c=i*u-h*l,f=h*o-a*u,d=a*l-i*o,m=c*c+f*f+d*d,M=Math.abs(m-1)>1e-5&&m>1e-12?1/Math.sqrt(m):1;return n[0]=c*M,n[1]=f*M,n[2]=d*M,n[3]=-(n[0]*t[0]+n[1]*t[1]+n[2]*t[2]),n}function c(t,e,r){return function(t){return 0===t||1===t}(b(t,e.origin,e.vector,0,r))}function f(t,e){return g(t,e)<=0}function d(t,e){return g(t,e)>=0}function m(t,e){return function(t,e,r,n,i,s,h,o){let l=(0,a.Om)(t,r),u=g(t,e);if(l>=-o&&l<=o)return M(u,i,s);let c=-u/l,f=M(l,i,!1);return!(h&&!f&&!M(u,i,s))&&(f?c>n.c0&&(n.c0=c):c<n.c1&&(n.c1=c),n.c0<=n.c1)}(t,e.ray.origin,e.ray.direction,e,!1,!1,!0,1e-6)}function M(t,e,r){return r?e?t>=0:t<=0:e?t>0:t<0}function v(t,e,r,n=!1){let i=e.at(-1),s=g(t,i),h=n?s>0:s<=0;for(let o=0;o<e.length;o++){let l=e.at(o),u=g(t,l),c=n?u>0:u<=0;h!==c&&(0,a.Cc)(r(),i,l,s/(s-u)),c&&(0,a.C)(r(),l),i=l,s=u,h=c}}function g(t,e){return(0,a.Om)(t,e)+t[3]}function _(t,e,r){for(let n=0;n<r;++n)if(f(t,e[n]))return!1;return!0}function b(t,e,r,i,s){let h=(0,a.Om)(t,r),o=g(t,e);if(0===h)return o>=0?2:3;let l=-o/h;return 1&i&&(l=(0,n.qE)(l,0,1)),!(4&i)&&l<0||!(8&i)&&l>1?o>=0?2:3:((0,a.WQ)(s,e,(0,a.hs)(s,r,l)),o>=0?0:1)}r(78955),r(44280),r(32114),r(32728),(0,i.vt)(),(0,i.vt)(),(0,i.vt)(),(0,i.vt)(),(0,i.vt)();const P=[0,0,1,0];(0,i.vt)()},44280(t,e,r){r.d(e,{g7:()=>h,gr:()=>s});var n=r(34727),a=r(35522),i=r(51850);function s(t,e){return(0,a.Om)(t,e)/(0,a.Bw)(t)}function h(t,e){let r=(0,a.Om)(t,e)/((0,a.Bw)(t)*(0,a.Bw)(e));return-(0,n.XM)(r)}(0,i.vt)(),(0,i.vt)()},32114(t,e,r){r.d(e,{Rc:()=>d,rq:()=>c,Km:()=>f}),r(44208);var n=r(26390),a=r(29242),i=r(9093),s=r(82534),h=r(48163),o=r(51850),l=r(91829);class u{constructor(t){this._create=t,this._items=[],this._itemsPtr=0}get(){return 0===this._itemsPtr&&(0,n.d)(()=>this._reset()),this._itemsPtr>=this._items.length&&this._items.push(this._create()),this._items[this._itemsPtr++]}_reset(){let t=2*this._itemsPtr;this._items.length>t&&(this._items.length=t),this._itemsPtr=0}static createVec2f64(){return new u(h.vt)}static createVec3f64(){return new u(o.vt)}static createVec4f64(){return new u(l.vt)}static createMat3f64(){return new u(a.vt)}static createMat4f64(){return new u(i.vt)}static createQuatf64(){return new u(s.vt)}get test(){}}u.createVec2f64();const c=u.createVec3f64(),f=u.createVec4f64(),d=(u.createMat3f64(),u.createMat4f64());u.createQuatf64()},32728(t,e,r){r.d(e,{YH:()=>s,nu:()=>h,wp:()=>i}),r(34727);var n=r(35522),a=r(51850);function i(t,e){let r=Math.sqrt(e[0]*e[0]+e[4]*e[4]+e[8]*e[8]),a=Math.sqrt(e[1]*e[1]+e[5]*e[5]+e[9]*e[9]),i=Math.sqrt(e[2]*e[2]+e[6]*e[6]+e[10]*e[10]);return(0,n.hZ)(t,r,a,i),t}function s(t,e,r){r||=t;let a=(0,n.Om)(t,e);(0,n.hZ)(r,t[0]-a*e[0],t[1]-a*e[1],t[2]-a*e[2]),(0,n.S8)(r,r)}function h(t,e,r,i=(0,a.vt)()){let s=(0,n.Bw)(t),h=(0,n.Bw)(e),u=(0,n.Om)(t,e)/(s*h);if(u<.9999999999999999){let a=Math.acos(u),c=((1-r)*s+r*h)/Math.sin(a),f=c/s*Math.sin((1-r)*a),d=c/h*Math.sin(r*a);return(0,n.hs)(o,t,f),(0,n.hs)(l,e,d),(0,n.WQ)(i,o,l)}return(0,n.Cc)(i,t,e,r)}(0,a.vt)(),(0,a.vt)(),(0,a.vt)();const o=(0,a.vt)(),l=(0,a.vt)()},57005(t,e,r){r.d(e,{ab:()=>_t,gm:()=>zt});var n=r(77690),a=r(29242),i=r(9093),s=r(67026),h=r(82534),o=r(35522),l=r(51850),u=r(78955),c=r(91829),f=r(73941),d=r(98764),m=r(48353),M=r(9762),v=r(37539),g=r(27921),_=r(21325),b=r(48163),P=r(46610);const j=1e-6,p=(0,l.vt)(),x=(0,l.vt)();function w(t,e,r,n,a,i,s,h,o,l){return function(t,e,r){let n=vt(t.maxVert[0],t.minVert[0]),a=0;for(let e=1;e<7;++e){let r=vt(t.maxVert[e],t.minVert[e]);r>n&&(n=r,a=e)}ft(e,t.minVert[a]),ft(r,t.maxVert[a])}(t,n,a),vt(n,a)<j?1:(ut(s,n,a),mt(s,s),function(t,e,r,n){let{data:a,size:i}=t,s=-1/0,h=0;for(let t=0;t<a.length;t+=i){H[0]=a[t]-e[0],H[1]=a[t+1]-e[1],H[2]=a[t+2]-e[2];let n=r[0]*H[0]+r[1]*H[1]+r[2]*H[2],i=r[0]*r[0]+r[1]*r[1]+r[2]*r[2],o=H[0]*H[0]+H[1]*H[1]+H[2]*H[2]-n*n/i;o>s&&(s=o,h=t)}return ft(n,a,h),s}(e,n,s,i)<j?2:(ut(h,a,i),mt(h,h),ut(o,i,n),mt(o,o),dt(r,h,s),mt(r,r),W(e,r,s,h,o,l),0))}const C=(0,l.vt)(),S=(0,l.vt)(),z=(0,l.vt)(),A=(0,l.vt)(),y=(0,l.vt)(),Q=(0,l.vt)(),q=(0,l.vt)(),O=(0,l.vt)();function V(t,e,r,n,a,i,s,h,o){(function(t,e,r,n,a){!function(t,e,r,n,a){let{data:i,size:s}=t;ft(n,i),ft(a,n),r[0]=gt(X,e),r[1]=r[0];for(let t=s;t<i.length;t+=s){let s=i[t]*e[0]+i[t+1]*e[1]+i[t+2]*e[2];s<r[0]&&(r[0]=s,ft(n,i,t)),s>r[1]&&(r[1]=s,ft(a,i,t))}}(t,e,R,a,n);let i=gt(r,e);R[1]-j<=i&&(n[0]=void 0),R[0]+j>=i&&(a[0]=void 0)})(t,e,r,C,S),void 0!==C[0]&&(ut(z,C,r),mt(z,z),ut(A,C,n),mt(A,A),ut(y,C,a),mt(y,y),dt(Q,A,i),mt(Q,Q),dt(q,y,s),mt(q,q),dt(O,z,h),mt(O,O),W(t,Q,i,A,z,o),W(t,q,s,y,A,o),W(t,O,h,z,y,o)),void 0!==S[0]&&(ut(z,S,r),mt(z,z),ut(A,S,n),mt(A,A),ut(y,S,a),mt(y,y),dt(Q,A,i),mt(Q,Q),dt(q,y,s),mt(q,q),dt(O,z,h),mt(O,O),W(t,Q,i,A,z,o),W(t,q,s,y,A,o),W(t,O,h,z,y,o))}const H=[0,0,0],R=(0,b.vt)(),I=(0,l.vt)(),L=(0,l.vt)(),B=(0,l.vt)(),D=(0,l.vt)(),F=(0,l.vt)(),Z=(0,l.vt)();function W(t,e,r,n,a,i){if(Mt(e)<j)return;dt(I,r,e),dt(L,n,e),dt(B,a,e),k(t,e,R),F[1]=R[0],D[1]=R[1],Z[1]=D[1]-F[1];let s=[r,n,a],h=[I,L,B];for(let r=0;r<3;++r){k(t,s[r],R),F[0]=R[0],D[0]=R[1],k(t,h[r],R),F[2]=R[0],D[2]=R[1],Z[0]=D[0]-F[0],Z[2]=D[2]-F[2];let n=ot(Z);n<i.quality&&(ft(i.b0,s[r]),ft(i.b1,e),ft(i.b2,h[r]),i.quality=n)}}const X=(0,l.vt)();function k(t,e,r){let{data:n,size:a}=t,i=1/0,s=-1/0,h=e[0],o=e[1],l=e[2];for(let t=0;t<n.length;t+=a){let e=n[t]*h+n[t+1]*o+n[t+2]*l;i=Math.min(i,e),s=Math.max(s,e)}r[0]=i,r[1]=s}function T(t,e,r){r.setCenter(t),r.setHalfSize((0,o.hs)(e,e,.5)),r.setQuaternion(h.zK)}const K=(0,l.vt)(),Y=(0,l.vt)(),E=(0,l.vt)(),N=(0,l.vt)(),$=(0,l.vt)(),G=(0,l.vt)();function J(t,e,r){ft(K,e),Math.abs(e[0])>Math.abs(e[1])&&Math.abs(e[0])>Math.abs(e[2])?K[0]=0:Math.abs(e[1])>Math.abs(e[2])?K[1]=0:K[2]=0,Mt(K)<j&&(K[0]=K[1]=K[2]=1),dt(Y,e,K),mt(Y,Y),dt(E,e,Y),mt(E,E),U(t,e,Y,E,N,$),ut(G,$,N),it(e,Y,E,N,$,G,r)}function U(t,e,r,n,a,i){k(t,e,R),a[0]=R[0],i[0]=R[1],k(t,r,R),a[1]=R[0],i[1]=R[1],k(t,n,R),a[2]=R[0],i[2]=R[1]}const tt=(0,l.vt)(),et=(0,l.vt)(),rt=(0,l.vt)(),nt=(0,a.fA)(1,0,0,0,1,0,0,0,1),at=(0,h.vt)();function it(t,e,r,n,a,i,s){nt[0]=t[0],nt[1]=t[1],nt[2]=t[2],nt[3]=e[0],nt[4]=e[1],nt[5]=e[2],nt[6]=r[0],nt[7]=r[1],nt[8]=r[2],s.setQuaternion(function(t,e){let r=e[0]+e[4]+e[8];if(r>0){let n=Math.sqrt(r+1);t[3]=.5*n,n=.5/n,t[0]=(e[5]-e[7])*n,t[1]=(e[6]-e[2])*n,t[2]=(e[1]-e[3])*n}else{let r=0;e[4]>e[0]&&(r=1),e[8]>e[3*r+r]&&(r=2);let n=(r+1)%3,a=(r+2)%3,i=Math.sqrt(e[3*r+r]-e[3*n+n]-e[3*a+a]+1);t[r]=.5*i,i=.5/i,t[3]=(e[3*n+a]-e[3*a+n])*i,t[n]=(e[3*n+r]+e[3*r+n])*i,t[a]=(e[3*a+r]+e[3*r+a])*i}return t}(at,nt)),lt(tt,n,a),ct(tt,tt,.5),ct(et,t,tt[0]),ct(rt,e,tt[1]),lt(et,et,rt),ct(rt,r,tt[2]),s.setCenter((0,o.WQ)(et,et,rt)),s.setHalfSize((0,o.hs)(tt,i,.5))}class st{constructor(t){this.minVert=Array(7),this.maxVert=Array(7),this.buffer=new ArrayBuffer(448);let e=0;this.minProj=new Float64Array(this.buffer,e,7),e+=56,this.maxProj=new Float64Array(this.buffer,e,7),e+=56;for(let t=0;t<7;++t)this.minVert[t]=new Float64Array(this.buffer,e,3),e+=24;for(let t=0;t<7;++t)this.maxVert[t]=new Float64Array(this.buffer,e,3),e+=24;for(let t=0;t<7;++t)this.minProj[t]=1/0,this.maxProj[t]=-1/0;let r=Array(7),n=Array(7),{data:a,size:i}=t;for(let t=0;t<a.length;t+=i){let e=a[t];e<this.minProj[0]&&(this.minProj[0]=e,r[0]=t),e>this.maxProj[0]&&(this.maxProj[0]=e,n[0]=t),e=a[t+1],e<this.minProj[1]&&(this.minProj[1]=e,r[1]=t),e>this.maxProj[1]&&(this.maxProj[1]=e,n[1]=t),e=a[t+2],e<this.minProj[2]&&(this.minProj[2]=e,r[2]=t),e>this.maxProj[2]&&(this.maxProj[2]=e,n[2]=t),e=a[t]+a[t+1]+a[t+2],e<this.minProj[3]&&(this.minProj[3]=e,r[3]=t),e>this.maxProj[3]&&(this.maxProj[3]=e,n[3]=t),e=a[t]+a[t+1]-a[t+2],e<this.minProj[4]&&(this.minProj[4]=e,r[4]=t),e>this.maxProj[4]&&(this.maxProj[4]=e,n[4]=t),e=a[t]-a[t+1]+a[t+2],e<this.minProj[5]&&(this.minProj[5]=e,r[5]=t),e>this.maxProj[5]&&(this.maxProj[5]=e,n[5]=t),e=a[t]-a[t+1]-a[t+2],e<this.minProj[6]&&(this.minProj[6]=e,r[6]=t),e>this.maxProj[6]&&(this.maxProj[6]=e,n[6]=t)}for(let t=0;t<7;++t){let e=r[t];ft(this.minVert[t],a,e),e=n[t],ft(this.maxVert[t],a,e)}}}class ht{constructor(){this.b0=(0,l.fA)(1,0,0),this.b1=(0,l.fA)(0,1,0),this.b2=(0,l.fA)(0,0,1),this.quality=0}}function ot(t){return t[0]*t[1]+t[0]*t[2]+t[1]*t[2]}function lt(t,e,r){t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2]}function ut(t,e,r){t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2]}function ct(t,e,r){t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r}function ft(t,e,r=0){t[0]=e[r],t[1]=e[r+1],t[2]=e[r+2]}function dt(t,e,r){let n=e[0],a=e[1],i=e[2],s=r[0],h=r[1],o=r[2];t[0]=a*o-i*h,t[1]=i*s-n*o,t[2]=n*h-a*s}function mt(t,e){let r=e[0]*e[0]+e[1]*e[1]+e[2]*e[2];if(r>0){let n=1/Math.sqrt(r);t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n}}function Mt(t){return t[0]*t[0]+t[1]*t[1]+t[2]*t[2]}function vt(t,e){let r=e[0]-t[0],n=e[1]-t[1],a=e[2]-t[2];return r*r+n*n+a*a}function gt(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}class _t{constructor(t=l.uY,e=yt,r=h.zK){this._data=[t[0],t[1],t[2],e[0],e[1],e[2],r[0],r[1],r[2],r[3]]}clone(){return _t.fromData(this._data)}invalidate(){this._data[3]=-1}get isValid(){return this._data[3]>=0}static fromData(t){let e=new _t;return e._copyFromData(t),e}static fromJSON(t){return new _t(t.center,t.halfSize,t.quaternion)}copy(t){this._copyFromData(t.data)}_copyFromData(t){for(let e=0;e<10;++e)this._data[e]=t[e]}get centerX(){return this._data[0]}get centerY(){return this._data[1]}get centerZ(){return this._data[2]}getCenter(t){return t[0]=this._data[0],t[1]=this._data[1],t[2]=this._data[2],t}setCenter(t){this._data[0]=t[0],this._data[1]=t[1],this._data[2]=t[2]}setCenterFromValues(t,e,r){this._data[0]=t,this._data[1]=e,this._data[2]=r}get halfSizeX(){return this._data[3]}get halfSizeY(){return this._data[4]}get halfSizeZ(){return this._data[5]}getHalfSize(t){return t[0]=this._data[3],t[1]=this._data[4],t[2]=this._data[5],t}setHalfSize(t){this._data[3]=t[0],this._data[4]=t[1],this._data[5]=t[2]}setHalfSizeFromValues(t,e,r){this._data[3]=t,this._data[4]=e,this._data[5]=r}getQuaternion(t){return t[0]=this._data[6],t[1]=this._data[7],t[2]=this._data[8],t[3]=this._data[9],t}getQuaternionConjugate(t){return t[0]=-this._data[6],t[1]=-this._data[7],t[2]=-this._data[8],t[3]=this._data[9],t}setQuaternion(t){this._data[6]=t[0],this._data[7]=t[1],this._data[8]=t[2],this._data[9]=t[3]}get data(){return this._data}getCorners(t){let e=this._data,r=(0,s.hZ)(bt,e[6],e[7],e[8],e[9]);for(let n=0;n<8;++n){let a=t[n];a[0]=(1&n?-1:1)*e[3],a[1]=(2&n?-1:1)*e[4],a[2]=(4&n?-1:1)*e[5],(0,o.gL)(a,a,r),a[0]+=e[0],a[1]+=e[1],a[2]+=e[2]}return t}getAxes(t){let e=this._data,r=(0,s.hZ)(bt,e[6],e[7],e[8],e[9]);return(0,o.gL)(t[0],[1,0,0],r),(0,o.gL)(t[1],[0,1,0],r),(0,o.gL)(t[2],[0,0,1],r),t}intersectsFrustum(t){let{centerX:e,centerY:r,centerZ:n}=this,a=t.planes;for(let t of a){let a=(0,g.Qj)(t),i=this.projectedRadius(a);if(e*a[0]+r*a[1]+n*a[2]+t[3]-i>0)return!1}let i=this.getAxes(Dt),s=t.points,h=this.getHalfSize(Rt);for(let t=0;t<3;++t){let a=i[t],l=-a[0]*e-a[1]*r-a[2]*n,u=h[t],c=!0,f=!0;for(let t of s){let e=(0,o.Om)(t,a)+l;c&&=e>u,f&&=e<-u}if(c||f)return!1}if(this.getCorners(Bt).some(e=>t.intersectsPoint(e)))return!0;let l=kt;for(let t=0;t<3;++t){let a=i[t];l[t]=a[0]*e+a[1]*r+a[2]*n}if(t.points.some(t=>(t=>{for(let e=0;e<3;++e){let r=i[e],n=h[e],a=r[0]*t[0]+r[1]*t[1]+r[2]*t[2]-l[e];if(a>n||a<-n)return!1}return!0})(t)))return!0;let u=t.lines,c=Xt;for(let t=0;t<8;++t){let a=u[t].direction;for(let t of i){(0,o.$A)(c,a,t);let i=(0,o.Il)(c);if(!(i>0))continue;(0,o.hs)(c,c,1/i);let h=this.projectedRadius(c),l=c[0]*e+c[1]*r+c[2]*n,u=l-h,f=l+h,d=!1,m=!1,M=!0;for(let t of s){let e=(0,o.Om)(c,t);if(e>f){if(m){M=!1;break}d=!0}else{if(!(e<u)){M=!1;break}if(d){M=!1;break}m=!0}}if(M)return!1}}return!0}intersectsFrustumConservativeApproximation(t){return this.intersectPlane(t[0])<=0&&this.intersectPlane(t[1])<=0&&this.intersectPlane(t[2])<=0&&this.intersectPlane(t[3])<=0&&this.intersectPlane(t[4])<=0&&this.intersectPlane(t[5])<=0}intersectsFrustumConservativeApproximationWithMargin(t,e){return this.signedDistanceRangePlane(t[0]).min<=e&&this.signedDistanceRangePlane(t[1]).min<=e&&this.signedDistanceRangePlane(t[2]).min<=e&&this.signedDistanceRangePlane(t[3]).min<=e&&this.signedDistanceRangePlane(t[4]).min<=e&&this.signedDistanceRangePlane(t[5]).min<=e}get radius(){let t=this._data[3],e=this._data[4],r=this._data[5];return Math.sqrt(t*t+e*e+r*r)}intersectsPoint(t){let e=this.getAxes(Dt),r=this.getHalfSize(Rt),n=this.getCenter(Ht);for(let a=0;a<3;++a){let i=e[a],s=r[a],h=(0,o.Om)(i,t)-(0,o.Om)(i,n);if(h>s||h<-s)return!1}return!0}intersectSphere(t){let{center:e,radius:r}=t,n=this._data,a=n[3],i=n[4],s=n[5],h=a+i+s+r,o=n[0]-e[0];if(Math.abs(o)>h)return!1;let l=n[1]-e[1];if(Math.abs(l)>h)return!1;let u=n[2]-e[2];if(Math.abs(u)>h)return!1;let c=-n[6],f=-n[7],d=-n[8],m=f*u-d*l,M=d*o-c*u,v=c*l-f*o,g=f*v-d*M,_=d*m-c*v,b=c*M-f*m,P=2*n[9],j=Math.abs(o+m*P+2*g),p=Math.abs(l+M*P+2*_),x=Math.abs(u+v*P+2*b),w=j-Math.min(j,a),C=p-Math.min(p,i),S=x-Math.min(x,s);return w*w+C*C+S*S<=r*r}intersectSphereWithMBS(t,e=this.radius){let r=this._data,{center:n,radius:a}=t,i=e+a,s=r[0]-n[0];if(s>i)return!1;let h=r[1]-n[1];if(h>i)return!1;let o=r[2]-n[2];if(o>i||s*s+h*h+o*o>i*i)return!1;let l=-r[6],u=-r[7],c=-r[8],f=u*o-c*h,d=c*s-l*o,m=l*h-u*s,M=u*m-c*d,v=c*f-l*m,g=l*d-u*f,_=2*r[9],b=Math.abs(s+f*_+2*M),P=Math.abs(h+d*_+2*v),j=Math.abs(o+m*_+2*g),p=b-Math.min(b,r[3]),x=P-Math.min(P,r[4]),w=j-Math.min(j,r[5]);return p*p+x*x+w*w<a*a}intersectPlane(t){let e=t[0]*this._data[0]+t[1]*this._data[1]+t[2]*this._data[2]+t[3],r=this.projectedRadius((0,g.Qj)(t));return e>r?1:e<-r?-1:0}intersectRay(t,e,r=0,n=-1/0,a=1/0){let i=this._data,s=bt;s[0]=-i[6],s[1]=-i[7],s[2]=-i[8],s[3]=i[9],pt[0]=t[0]-i[0],pt[1]=t[1]-i[1],pt[2]=t[2]-i[2];let h=(0,o.gL)(pt,pt,bt),l=(0,o.gL)(xt,e,bt),u=n,c=a,f=this.getHalfSize(Rt);for(let t=0;t<3;t++){let e=h[t],n=l[t],a=f[t]+r;if(Math.abs(n)>1e-6){let t=(a-e)/n,r=(-a-e)/n;u=Math.max(u,Math.min(t,r)),c=Math.min(c,Math.max(t,r))}else if(e>a||e<-a)return!1}return u<=c}intersectSegment(t,e,r=0){let n=(0,o.Io)(t,e);return(0,o.oW)(Qt,t,e),this.intersectRay(t,Qt,r,0,n)}projectedArea(t,e,r,a){let i=this.getQuaternion(Pt);(0,s.Xr)(bt,i),pt[0]=t[0]-this._data[0],pt[1]=t[1]-this._data[1],pt[2]=t[2]-this._data[2],(0,o.gL)(pt,pt,bt);let h=this.getHalfSize(Rt),l=pt[0]<-h[0]?-1:+(pt[0]>h[0]),c=pt[1]<-h[1]?-1:+(pt[1]>h[1]),f=pt[2]<-h[2]?-1:+(pt[2]>h[2]),d=Math.abs(l)+Math.abs(c)+Math.abs(f);if(0===d)return 1/0;let m=1===d?4:6,M=6*(l+3*c+9*f+13);(0,n.I0)(It,i),(0,n.hs)(It,It,h);let v=this.getCenter(Ht);for(let t=0;t<m;t++){let r=St[M+t];(0,o.hZ)(pt,((1&r)<<1)-1,(2&r)-1,((4&r)>>1)-1),(0,o.ei)(pt,pt,It),(0,o.WQ)(wt,v,pt),wt[3]=1,(0,u.Z0)(wt,wt,e);let n=1/Math.max(1e-6,wt[3]);Ct[2*t]=wt[0]*n,Ct[2*t+1]=wt[1]*n}let g=2*m-2,_=Ct[0]*(Ct[3]-Ct[g+1])+Ct[g]*(Ct[1]-Ct[g-1]);for(let t=2;t<g;t+=2)_+=Ct[t]*(Ct[t+3]-Ct[t-1]);return Math.abs(_)*r*a*.125}projectedRadius(t){let e=this._data;return(0,o.fw)(pt,t,-e[6],-e[7],-e[8],e[9]),Math.abs(pt[0]*e[3])+Math.abs(pt[1]*e[4])+Math.abs(pt[2]*e[5])}signedDistancePlane(t,e){let r=this._data,n=t[0]*r[0]+t[1]*r[1]+t[2]*r[2]+e,a=this.projectedRadius(t);return n>a?n-a:n<-a?n+a:0}signedDistanceRangePlane(t){let e=t[0]*this._data[0]+t[1]*this._data[1]+t[2]*this._data[2]+t[3],r=this.projectedRadius((0,g.Qj)(t));return{min:e-r,max:e+r}}toAaBoundingBox(t){let e=this.getQuaternion(Pt),r=(0,n.I0)(It,e),a=this._data[3]*Math.abs(r[0])+this._data[4]*Math.abs(r[3])+this._data[5]*Math.abs(r[6]),i=this._data[3]*Math.abs(r[1])+this._data[4]*Math.abs(r[4])+this._data[5]*Math.abs(r[7]),s=this._data[3]*Math.abs(r[2])+this._data[4]*Math.abs(r[5])+this._data[5]*Math.abs(r[8]);t[0]=this._data[0]-a,t[1]=this._data[1]-i,t[2]=this._data[2]-s,t[3]=this._data[0]+a,t[4]=this._data[1]+i,t[5]=this._data[2]+s}transform(t,e,r,n=0,a=(0,d.lO)(r),i=(0,d.lO)(e),h=(0,v.jd)(e,i)){if(r===a)e.isGeographic?function(t,e,r,n,a=(0,d.lO)(r)){let i=(0,f.tO)(r),h=1+Math.max(0,n)/(i.radius+t.centerZ);t.getCenter(Vt),Vt[2]+=n,(0,M.projectBuffer)(Vt,r,0,Vt,a,0),e.setCenter(Vt);let l=t.getQuaternion(Pt);e.setQuaternion(l),(0,s.Xr)(bt,l),(0,o.hZ)(Ft,0,0,1),(0,o.gL)(Ft,Ft,bt);let u=t.getHalfSize(Rt);(0,o.hZ)(Ft,u[0]*Math.abs(Ft[0]),u[1]*Math.abs(Ft[1]),u[2]*Math.abs(Ft[2])),(0,o.hs)(Ft,Ft,i.inverseFlattening),(0,o.WQ)(Ft,u,Ft),e.setHalfSize((0,o.hs)(Ft,Ft,h))}(this,t,e,n,i):function(t,e,r,n,a=(0,d.lO)(r),i=(0,v.jd)(r,a)){t.getCorners(Bt);let h=t.getCenter(Ht);h[2]+=n,(0,m.l)(r,h,Lt,a),e.setCenterFromValues(Lt[12],Lt[13],Lt[14]);let l=2*Math.sqrt(1+Lt[0]+Lt[5]+Lt[10]);bt[0]=(Lt[6]-Lt[9])/l,bt[1]=(Lt[8]-Lt[2])/l,bt[2]=(Lt[1]-Lt[4])/l,bt[3]=.25*l;let u=t.getQuaternion(Pt);e.setQuaternion((0,s.lw)(bt,bt,u)),(0,s.Xr)(bt,bt),(0,o.hZ)(Zt,0,0,0);let c=e.getCenter(Ht);for(let t of Bt)t[2]+=n,i(t,0,t,0),(0,o.jb)(Ft,t,c),(0,o.gL)(Ft,Ft,bt),(0,o.tn)(Ft,Ft),(0,o.T9)(Zt,Zt,Ft);e.setHalfSize(Zt)}(this,t,e,n,i,h);else if(e.isGeographic&&(r.isWebMercator||(0,_.r1)(r)))!function(t,e,r,n,a){let i=e.getCenter(Ht);i[2]+=a;let s=(0,d.lO)(r);(0,M.projectBuffer)(i,t,0,i,s,0),At(s,e,i,r,n)}(e,this,r,t,n);else if(e.isWebMercator&&(0,_.r1)(r))!function(t,e,r,n,a){let i=e.getCenter(Ht);i[2]+=a,At(t,e,i,r,n)}(e,this,r,t,n);else{let a=this.getCenter(Ht);a[2]+=n,(0,M.projectBuffer)(a,e,0,a,r,0),t.setCenter(a),this!==t&&(t.setQuaternion(this.getQuaternion(Pt)),t.setHalfSize(this.getHalfSize(Rt)))}}}const bt=(0,h.vt)(),Pt=(0,h.vt)(),jt=(0,h.vt)(),pt=(0,l.vt)(),xt=(0,l.vt)(),wt=(0,c.vt)();const Ct=[.1,.2,.3,.4,.5,.6,.7,.8,.9,1,1.1,1.2],St=(()=>{let t=new Int8Array(162),e=0,r=r=>{for(let n=0;n<r.length;n++)t[e+n]=r[n];e+=6};return r([6,2,3,1,5,4]),r([0,2,3,1,5,4]),r([0,2,3,7,5,4]),r([0,1,3,2,6,4]),r([0,1,3,2,0,0]),r([0,1,5,7,3,2]),r([0,1,3,7,6,4]),r([0,1,3,7,6,2]),r([0,1,5,7,6,2]),r([0,1,5,4,6,2]),r([0,1,5,4,0,0]),r([0,1,3,7,5,4]),r([0,2,6,4,0,0]),r([0,0,0,0,0,0]),r([1,3,7,5,0,0]),r([2,3,7,6,4,0]),r([2,3,7,6,0,0]),r([2,3,1,5,7,6]),r([0,1,5,7,6,2]),r([0,1,5,7,6,4]),r([0,1,3,7,6,4]),r([4,5,7,6,2,0]),r([4,5,7,6,0,0]),r([4,5,1,3,7,6]),r([0,2,3,7,5,4]),r([6,2,3,7,5,4]),r([6,2,3,1,5,4]),t})();function zt(t,e,r,n,a){let i=t.getQuaternion(Pt);a.setQuaternion(i),(0,s.Xr)(bt,i);let h=t.getCenter(Ht),u=t.getHalfSize(Rt);if(1===n){(0,o.gL)(Ft,h,bt),(0,o.tn)(Zt,Ft),(0,o.jk)(Wt,Zt,u),(0,o.jb)(Wt,Zt,Wt);let n=(0,o.Bw)(Wt);(0,o.WQ)(Wt,Zt,u);let i=(0,o.Bw)(Wt);if(n<r)a.setCenter(h),(0,o.hZ)(Ft,r,r,r),a.setHalfSize((0,o.WQ)(Ft,u,Ft));else{let s=i>0?1+e/i:1,h=n>0?1+r/n:1,l=(h+s)/2,c=(h-s)/2;(0,o.hs)(Wt,Zt,c),a.setHalfSize((0,o.Ln)(Wt,Wt,u,l)),(0,o.hs)(Wt,Zt,l),(0,o.Ln)(Wt,Wt,u,c),(0,o._S)(Ft,Ft),(0,o.lw)(Ft,Wt,Ft);let f=t.getQuaternion(jt);a.setCenter((0,o.gL)(Ft,Ft,f))}}else{a.setCenter((0,o.Ln)(Ft,h,l.Cb,(r+e)/2));let t=(0,o.gL)(Ft,l.Cb,bt);(0,o.tn)(t,t),a.setHalfSize((0,o.Ln)(Zt,u,t,(r-e)/2))}return a}function At(t,e,r,a,i){let s=e.getQuaternion(Pt),h=(0,n.I0)(It,s),o=e.getHalfSize(Rt);for(let t=0;t<8;++t){for(let e=0;e<3;++e)Vt[e]=o[e]*(t&1<<e?-1:1);for(let e=0;e<3;++e){let n=r[e];for(let t=0;t<3;++t)n+=Vt[t]*h[3*t+e];qt[3*t+e]=n}}(0,M.projectBuffer)(qt,t,0,qt,a,0,8),function(t,e=new _t){(function(t,e){let{data:r,size:n}=t,a=r.length/n;if(a<=0)return;let i=new st(t);lt(p,i.minProj,i.maxProj),ct(p,p,.5),ut(x,i.maxProj,i.minProj);let s=ot(x),h=new ht;h.quality=s,a<14&&(t=new P.K(new Float64Array(i.buffer,112,42),3));let o=(0,l.vt)(),u=(0,l.vt)(),c=(0,l.vt)(),f=(0,l.vt)(),d=(0,l.vt)(),m=(0,l.vt)(),M=(0,l.vt)();switch(w(i,t,M,o,u,c,f,d,m,h)){case 1:return void T(p,x,e);case 2:return void J(t,f,e)}V(t,M,o,u,c,f,d,m,h),U(t,h.b0,h.b1,h.b2,N,$);let v=(0,l.vt)();ut(v,$,N),h.quality=ot(v),h.quality<s?it(h.b0,h.b1,h.b2,N,$,v,e):T(p,x,e)})(t,e)}(Ot,i)}const yt=(0,l.CN)(-1,-1,-1),Qt=(0,l.vt)(),qt=Array(24),Ot=new P.K(qt,3),Vt=(0,l.vt)(),Ht=(0,l.vt)(),Rt=(0,l.vt)(),It=(0,a.vt)(),Lt=(0,i.vt)(),Bt=[[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0]],Dt=[(0,l.vt)(),(0,l.vt)(),(0,l.vt)()],Ft=(0,l.vt)(),Zt=(0,l.vt)(),Wt=(0,l.vt)(),Xt=(0,l.vt)(),kt=[0,0,0]},46610(t,e,r){r.d(e,{K:()=>n,n:()=>a});class n{constructor(t,e,r=e){this.data=t,this.size=e,this.stride=r}}class a extends n{constructor(t,e,r,n=!1,a=r){super(t,r,a),this.indices=e,this.exclusive=n}}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9917],{159(e,n,t){t.d(n,{A:()=>s});var r,l=t(32198),a=t(69540),o=t(25482),i=t(91429),u=t(99157);let s=r=class extends((0,a.OU)(o.o)){constructor(e){super(e),this.steps=[]}get isUsable(){let e=!0;for(let n=0;n<this.steps.length;n++){let t=this.steps[n];if(null==t.isUsable)return t.isUsable;e&&=t.isUsable}return e}getInverse(){let e=new r;for(let n=this.steps.length-1;n>=0;n--){let t=this.steps[n];e.steps.push(t.getInverse())}return e}};(0,l.Cg)([(0,i.MZ)()],s.prototype,"isUsable",null),(0,l.Cg)([(0,i.MZ)({type:[u.A],nonNullable:!0,json:{name:"geoTransforms"}})],s.prototype,"steps",void 0),s=r=(0,l.Cg)([(0,i.$K)("esri.geometry.operators.support.GeographicTransformation")],s)},99157(e,n,t){t.d(n,{A:()=>u});var r,l=t(32198),a=t(69540),o=t(25482),i=t(91429);let u=r=class extends((0,a.OU)(o.o)){constructor(e){super(e),this.isInverse=!1,this.wkt=null,this.wkid=null}getInverse(){return new r({isInverse:!this.isInverse,wkid:this.wkid,wkt:this.wkt})}};(0,l.Cg)([(0,i.MZ)({json:{name:"transformForward",read:e=>!e,write:(e,n,t)=>{n[t]=!e}}})],u.prototype,"isInverse",void 0),(0,l.Cg)([(0,i.MZ)()],u.prototype,"isUsable",void 0),(0,l.Cg)([(0,i.MZ)({json:{write:!0}})],u.prototype,"wkt",void 0),(0,l.Cg)([(0,i.MZ)({json:{write:!0}})],u.prototype,"wkid",void 0),u=r=(0,l.Cg)([(0,i.$K)("esri.geometry.operators.support.GeographicTransformationStep")],u)},9762(e,n,t){t.r(n),t.d(n,{projectBuffer:()=>l});var r=t(37539);function l(e,n,t,l,a,o,i=Math.floor(e.length/3)){let u=(0,r.jd)(n,a);if(null==u)return!1;if(u===r.pO){if(e===l&&t===o)return!0;let n=t+3*i;for(let r=t,a=o;r<n;r++,a++)l[a]=e[r]??0;return!0}let s=t+3*i;for(let n=t,r=o;n<s;n+=3,r+=3)u(e,n,l,r);return!0}},37539(e,n,t){t.d(n,{pO:()=>m,jd:()=>p,Tp:()=>h,wy:()=>d,w5:()=>f,s7:()=>y});var r=t(34727),l=t(86211),a=t(73941),o=t(79258);Math.PI;const i=o.$O.radius,u=o.$O.eccentricitySquared,s={a1:i*u,a2:i*u*i*u,a3:i*u*u/2,a4:i*u*i*u*2.5,a5:i*u+i*u*u/2,a6:1-u};o.$O.radius,o.$O.flattening,o.Sw.radius,o.Sw.flattening,o.sH.radius,o.sH.flattening,o.sH.radius;var c=t(21325);const f={2:{5:m,7:null,9:null,10:m,1:E,6:null,8:null,0:null,3:y,11:R,2:m,4:F},5:{5:m,7:null,9:null,10:m,1:E,6:null,8:null,0:null,3:y,11:R,2:m,4:F},7:{5:null,7:m,9:null,10:m,1:null,6:A,8:null,0:null,3:null,11:null,2:null,4:null},9:{5:null,7:null,9:m,10:m,1:null,6:null,8:v,0:null,3:null,11:null,2:null,4:null},3:{5:w,7:null,9:null,10:w,1:M,6:null,8:null,0:null,3:m,11:T,2:w,4:j},4:{5:U,7:null,9:null,10:U,1:Z,6:null,8:null,0:null,3:G,11:function(e,n,t,r){U(e,n,t,r),R(t,r,t,r)},2:U,4:m},1:{5:x,7:null,9:null,10:x,1:m,6:null,8:null,0:null,3:I,11:function(e,n,t,r){x(e,n,t,r),R(t,r,t,r)},2:x,4:b},6:{5:null,7:k,9:null,10:k,1:null,6:m,8:null,0:null,3:null,11:null,2:null,4:null},8:{5:null,7:null,9:S,10:S,1:null,6:null,8:m,0:null,3:null,11:null,2:null,4:null},0:{5:null,7:null,9:null,10:null,1:null,6:null,8:null,0:m,3:null,11:null,2:null,4:null},10:{5:m,7:m,9:m,10:m,1:E,6:A,8:v,0:null,3:y,11:R,2:m,4:F},11:{5:P,7:null,9:null,10:P,1:function(e,n,t,r){P(e,n,t,r),E(t,r,t,r)},6:null,8:null,0:null,3:function(e,n,t,r){P(e,n,t,r),y(t,r,t,r)},11:m,2:P,4:function(e,n,t,r){P(e,n,t,r),F(t,r,t,r)}}};function p(e,n){return h(e,n)?.projector}function h(e,n){if(null==e||null==n)return null;if(L.source.spatialReference===e&&L.dest.spatialReference===n)return L;let t=g(e,L.source),r=g(n,L.dest);return 0===t&&0===r?(0,c.aI)(e,n)?L.projector=m:L.projector=null:L.projector=f[t][r],L}function d(e,n){switch(p(e,n)){case m:return"copy3";case E:return"wgs84ToSphericalECEF";case y:return"wgs84ToWebMercator";case R:return"wgs84ToPlateCarree";case F:return"wgs84ToWGS84ECEF";case w:return"webMercatorToWGS84";case M:return"webMercatorToSphericalECEF";case j:return"webMercatorToWGS84ECEF";case T:return"webMercatorToPlateCarree";case U:return"wgs84ECEFToWGS84";case Z:return"wgs84ECEFToSphericalECEF";case G:return"wgs84ECEFToWebMercator";case x:return"sphericalECEFToWGS84";case I:return"sphericalECEFToWebMercator";case k:return"sphericalMarsPCPFToMars2000";case S:return"sphericalMoonPCPFToMoon2000";case b:return"sphericalECEFToWGS84ECEF";case A:return"mars2000ToSphericalPCPF";case v:return"moon2000ToSphericalPCPF";default:return null}}function g(e,n){return e?n.spatialReference===e?n.spatialReferenceId:(n.spatialReference=e,"metersPerUnit"in n&&(n.metersPerUnit=(0,c.EA)(e)?1:(0,l.GA)(e,1)),n.spatialReferenceId=(0,a.jA)(e)?1:(0,c.oT)(e)?2:(0,c.K8)(e)?3:(0,c.r1)(e)?11:e.wkt===a.Ro.wkt?4:4490===e.wkid?5:e.wkt===a.FY.wkt?6:e.wkt===a.LJ.wkt?8:(0,a.q8)(e)?7:(0,a.KQ)(e)?9:0):0}function m(e,n,t,r){e!==t&&(t[r++]=e[n++],t[r++]=e[n++],t[r]=e[n]??0)}function w(e,n,t,r){t[r]=q*(e[n]/z),t[r+1]=q*($-2*Math.atan(Math.exp(-e[n+1]/z))),t[r+2]=e[n+2]??0}function M(e,n,t,r){let l=e[n]/z,a=$-2*Math.atan(Math.exp(-e[n+1]/z)),o=z+(e[n+2]??0),i=Math.cos(a)*o;t[r]=Math.cos(l)*i,t[r+1]=Math.sin(l)*i,t[r+2]=Math.sin(a)*o}function j(e,n,t,r){w(e,n,t,r),F(t,r,t,r)}function y(e,n,t,l){!function(e,n,t,l,a){let o=.4999999*Math.PI,i=(0,r.qE)(W*e[n+1],-o,o),u=Math.sin(i);t[l++]=W*e[n]*a.radius,t[l++]=a.halfSemiMajorAxis*Math.log((1+u)/(1-u)),t[l]=e[n+2]??0}(e,n,t,l,o.$O)}function R(e,n,t,r){t[r]=e[n]*B,t[r+1]=e[n+1]*B,t[r+2]=e[n+2]??0}function P(e,n,t,r){t[r]=e[n]*K,t[r+1]=e[n+1]*K,t[r+2]=e[n+2]??0}function T(e,n,t,r){w(e,n,t,r),R(t,r,t,r)}function C(e,n,t,r,l){let a=l+(e[n+2]??0),o=W*e[n],i=W*e[n+1],u=Math.cos(i)*a;t[r]=Math.cos(o)*u,t[r+1]=Math.sin(o)*u,t[r+2]=Math.sin(i)*a}function v(e,n,t,r){C(e,n,t,r,o.Sw.radius)}function A(e,n,t,r){C(e,n,t,r,o.sH.radius)}function E(e,n,t,r){C(e,n,t,r,o.$O.radius)}function O(e,n,t,l,a){let o=e[n],i=e[n+1],u=e[n+2]??0,s=Math.sqrt(o*o+i*i+u*u),c=(0,r.YN)(u/(0===s?1:s)),f=Math.atan2(i,o);t[l++]=q*f,t[l++]=q*c,t[l]=s-a}function S(e,n,t,r){O(e,n,t,r,o.Sw.radius)}function k(e,n,t,r){O(e,n,t,r,o.sH.radius)}function x(e,n,t,r){O(e,n,t,r,o.$O.radius)}function I(e,n,t,r){x(e,n,t,r),y(t,r,t,r)}function b(e,n,t,r){x(e,n,t,r),F(t,r,t,r)}function F(e,n,t,r){!function(e,n,t,r,l){let a=W*e[n],o=W*e[n+1],i=e[n+2]??0,u=Math.sin(o),s=Math.cos(o),c=l.radius/Math.sqrt(1-l.eccentricitySquared*u*u);t[r++]=(c+i)*s*Math.cos(a),t[r++]=(c+i)*s*Math.sin(a),t[r++]=(c*(1-l.eccentricitySquared)+i)*u}(e,n,t,r,o.$O)}function U(e,n,t,r){let l,a,i,u,c,f,p,h,d,g,m,w,M,j,y,R,P,T,C,v,A,E=s,O=e[n],S=e[n+1],k=e[n+2]??0;l=Math.abs(k),a=O*O+S*S,i=Math.sqrt(a),u=a+k*k,c=Math.sqrt(u),v=Math.atan2(S,O),f=k*k/u,p=a/u,j=E.a2/c,y=E.a3-E.a4/c,p>.3?(h=l/c*(1+p*(E.a1+j+f*y)/c),C=Math.asin(h),g=h*h,d=Math.sqrt(1-g)):(d=i/c*(1-f*(E.a5-j-p*y)/c),C=Math.acos(d),g=1-d*d,h=Math.sqrt(g)),m=1-o.$O.eccentricitySquared*g,w=o.$O.radius/Math.sqrt(m),M=E.a6*w,j=i-w*d,y=l-M*h,P=d*j+h*y,R=d*y-h*j,T=R/(M/m+P),C+=T,A=P+R*T/2,k<0&&(C=-C),t[r++]=q*v,t[r++]=q*C,t[r]=A}function Z(e,n,t,r){U(e,n,t,r),E(t,r,t,r)}function G(e,n,t,r){U(e,n,t,r),y(t,r,t,r)}const L={source:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},projector:m},W=(0,r.kU)(1),q=(0,r.KJ)(1),$=.5*Math.PI,z=o.$O.radius,B=z*Math.PI/180,K=180/(z*Math.PI)},99917(e,n,t){t.r(n),t.d(n,{canProjectWithoutEngine:()=>z,initializeProjection:()=>K,isEqualBaseGCS:()=>B,isLoaded:()=>S,isLoadedOrLoad:()=>k,isLoadedOrLoadFor:()=>x,load:()=>b,project:()=>F,projectAsync:()=>$,projectExtent:()=>ee,projectMany:()=>U,projectMultipoint:()=>N,projectOrLoad:()=>G,projectOrLoadMany:()=>L,projectPoint:()=>D,projectPolygon:()=>X,projectPolyline:()=>Q,projectWithoutEngine:()=>H,requiresLoad:()=>I,test:()=>q,tryProject:()=>Z});var r=t(49186),l=t(17676),a=t(62788),o=t(95488),i=t(51850),u=t(21276),s=t(73941),c=t(5443),f=t(91075),p=t(48526),h=t(86738),d=t(39829),g=t(82799),m=t(16930),w=t(98764),M=t(159),j=t(9762);const y={loadPromise:null,projectOperator:null,jsonProjectOperator:null,geographicTransformationUtils:null,defaultTransformations:{}};var R=t(37539);function P(e,n,t,r,l,a){return T[0]=e,T[1]=n,T[2]=t,(0,j.projectBuffer)(T,r,0,l,a,0)}const T=(0,i.vt)();var C=t(60408),v=t(65864),A=t(21325),E=t(52006);const O=new o.I;function S(){let{projectOperator:e,jsonProjectOperator:n,geographicTransformationUtils:t}=y;return!!(e?.projectIsLoaded()&&n?.projectIsLoaded()&&t?.isLoaded())}function k(){return!!S()||((0,a.gc)(O),b(),!1)}function x(e,n){return!e||!n||z(e,n)||k()}function I(e,n){return!z(e,n)&&!S()}async function b(e){y.loadPromise??(y.loadPromise=Promise.all([t.e(3276).then(()=>t(83276)).then(e=>(y.projectOperator=e,e.projectLoad())),t.e(8377).then(()=>t(8377)).then(e=>(y.jsonProjectOperator=e,e.projectLoad())),t.e(2158).then(()=>t(12158)).then(e=>(y.geographicTransformationUtils=e,e.load()))])),await y.loadPromise,(0,l.Te)(e),O.notify()}function F(e,n,t){return Array.isArray(e)?0===e.length?[]:((0,u.H)(e),U(e,e[0].spatialReference,n,t)):((0,u.f)(e),U([e],e.spatialReference,n,t)[0])}function U(e,n,t,r){if(null==n||null==t)return e.map(e=>(0,v.rS)(e));if(z(n,t,r))return e.map(e=>H(e,n,t));if(null==r?.geographicTransformation&&(0,s.jA)(n))return U(e.map(e=>H(e,n,m.A.WGS84)),m.A.WGS84,t,{zConversionDisabled:r?.zConversionDisabled});if(null==r?.geographicTransformation&&(0,s.jA)(t))return U(e,n,m.A.WGS84).map(e=>H(e,m.A.WGS84,t));if(!S())throw new W;let{geographicTransformationUtils:l,defaultTransformations:a}=y;if(!r?.geographicTransformation)if(r?.extendedParams)r={...r,geographicTransformation:l.getTransformation(n,t,r.areaOfInterestExtent)||new M.A};else if(!r?.areaOfInterestExtent){let e=function(e,n){return[e.wkid?.toString()??"-1",e.wkt?.toString()??"",e.wkt2?.toString()??"",n.wkid?.toString()??"-1",n.wkt?.toString()??"",n.wkt2?.toString()??""].join()}(n,t),o=a[e];o||(o=l.getTransformation(n,t)||new M.A,a[e]=o),r={geographicTransformation:o,zConversionDisabled:r?.zConversionDisabled}}return e[0].spatialReference||(e[0].spatialReference=n),e[0]instanceof f.A?y.projectOperator.projectExecuteMany(e,t,r):y.jsonProjectOperator.projectExecuteMany(e,t,r)}function Z(e,n,t){try{return F(e,n,t)}catch{return null}}function G(e,n){let t=L([e],n);return null==t.pending?null==t.geometries?{pending:null,geometry:null}:{pending:null,geometry:t.geometries[0]}:{pending:t.pending,geometry:null}}function L(e,n,t){if(!S())for(let t of e)if(null!=t&&!(0,A.aI)(t.spatialReference,n)&&(0,A.fn)(t.spatialReference)&&(0,A.fn)(n)&&!z(t.spatialReference,n))return(0,a.gc)(O),{pending:b(),geometries:null};return{pending:null,geometries:e.map(e=>null==e?null:(0,A.aI)(e.spatialReference,n)?(0,v.rS)(e):(0,A.fn)(e.spatialReference)&&(0,A.fn)(n)?F(e,n,t):null)}}class W extends r.A{constructor(){super("projection:not-loaded","projection engine not fully loaded yet, please call load()")}}const q={get loadPromise(){return y.loadPromise}};async function $(e,n,t){if((0,l.Te)(t),!e)return e;let r=L(Array.isArray(e)?e:[e],n,t);if(r.pending)return await r.pending,(0,l.Te)(t),$(e,n,t);let a=r.geometries??[];return Array.isArray(e)?a:a[0]}function z(e,n,t){return!(t?.areaOfInterestExtent||t?.extendedParams||t?.geographicTransformation)&&(!!(0,A.aI)(e,n)||(0,A.fn)(e)&&(0,A.fn)(n)&&!!(0,R.jd)(e,n))}function B(e,n){if((0,A.aI)(e,n))return!0;if(!(0,A.fn)(e)||!(0,A.fn)(n))return!1;let t=(0,A.oT)(e)||(0,A.K8)(e)||(0,A.x1)(e),r=(0,A.oT)(n)||(0,A.K8)(n)||(0,A.x1)(n);return t&&r}async function K(e,n,t,r){if(S())return(0,l.NO)(r);if(Array.isArray(e)){for(let{source:n,dest:t,options:l}of e)if(n&&t&&!z(n,t,l))return b(r)}else if(e&&n&&!z(e,n,t))return b(r);return(0,l.NO)(r)}function H(e,n,t){return e?(0,C.fT)(e)?Y(e,n,new h.A,t,0):(0,C.ZC)(e)?ne(e,n,new c.A,t,0):(0,C.Bi)(e)?_(e,n,new d.A,t,0):(0,C.Rg)(e)?V(e,n,new g.A,t,0):(0,C.U9)(e)?J(e,n,new p.A,t,0):null:null}function D(e,n,t=n.spatialReference,r=0){return null!=t&&null!=e.spatialReference&&null!=Y(e,e.spatialReference,n,t,r)}function Y(e,n,t,r,l){ae[0]=e.x,ae[1]=e.y;let a=e.z;return ae[2]=void 0===a?l:a,(0,j.projectBuffer)(ae,n,0,ae,r,0)?(t.x=ae[0],t.y=ae[1],t.spatialReference=r,void 0!==a||(0,s.xP)(r)?(t.z=ae[2],t.hasZ=!0):(t.z=void 0,t.hasZ=!1),void 0===e.m?(t.m=void 0,t.hasM=!1):(t.m=e.m,t.hasM=!0),t):null}function N(e,n,t=n.spatialReference,r=0){return null!=e.spatialReference&&null!=t&&null!=J(e,e.spatialReference,n,t,r)}function J(e,n,t,r,l){let{points:a,hasZ:o,hasM:i}=e,u=[],s=a.length,c=[];for(let e of a)c.push(e[0],e[1],o?e[2]:l);if(!(0,j.projectBuffer)(c,n,0,c,r,0,s))return null;let f=le(o,r);for(let e=0;e<s;++e){let n=3*e,t=c[n],r=c[n+1];f&&i?u.push([t,r,c[n+2],a[e][3]]):f?u.push([t,r,c[n+2]]):i?u.push([t,r,a[e][2]]):u.push([t,r])}return t.points=u,t.spatialReference=r,t.hasZ=o,t.hasM=i,t}function Q(e,n,t=n.spatialReference,r=0){return null!=e.spatialReference&&null!=t&&null!=V(e,e.spatialReference,n,t,r)}function V(e,n,t,r,l){let{curvePaths:a,paths:o,hasZ:i,hasM:u}=e;if(!(a?re(a,i??!1,u??!1,n,t.curvePaths=[],r,l):te(o,i??!1,u??!1,n,t.paths,r,l)))return null;let s=le(i,r);return t.spatialReference=r,t.hasZ=s,t.hasM=u,t}function X(e,n,t=n.spatialReference,r=0){return null!=e.spatialReference&&null!=t&&null!=_(e,e.spatialReference,n,t,r)}function _(e,n,t,r,l){let{curveRings:a,rings:o,hasZ:i,hasM:u}=e;return(a?re(a,i??!1,u??!1,n,t.curveRings=[],r,l):te(o,i??!1,u??!1,n,t.rings,r,l))?(t.spatialReference=r,t.hasZ=le(i,r),t.hasM=u,t):null}function ee(e,n,t=n.spatialReference,r=0){return null!=e.spatialReference&&null!=t&&null!=ne(e,e.spatialReference,n,t,r)}function ne(e,n,t,r,l){let{xmin:a,ymin:o,xmax:i,ymax:u,hasZ:s,hasM:c}=e;if(!P(a,o,s?e.zmin:l,n,ae,r))return null;let f=le(s,r);return t.xmin=ae[0],t.ymin=ae[1],f&&(t.zmin=ae[2]),P(i,u,s?e.zmax:l,n,ae,r)?(t.xmax=ae[0],t.ymax=ae[1],f&&(t.zmax=ae[2]),c&&(t.mmin=e.mmin,t.mmax=e.mmax),t.spatialReference=r,t):null}function te(e,n,t,r,l,a,o=0){let i=[];for(let t of e)for(let e of t)i.push(e[0],e[1],n?e[2]:o);if(!(0,j.projectBuffer)(i,r,0,i,a,0))return!1;let u=0;l.length=0;let s=n?3:2,c=le(n,a);for(let n of e){let e=[];for(let r of n){let n=i.slice(u,u+=3);c||n.pop(),t&&n.push(r[s]),e.push(n)}l.push(e)}return!0}function re(e,n,t,r,l,a,o=0){let i=[];for(let t of e)for(let e of t){if((0,E.FG)(e))return!1;if((0,E.aO)(e)){let[t,r]=e.c;i.push(t[0],t[1],n?t[2]:o,r[0],r[1],o);continue}if((0,E.n1)(e)){let[t,r,l]=e.b;i.push(t[0],t[1],n?t[2]:o,r[0],r[1],o,l[0],l[1],o);continue}let t=e;i.push(t[0],t[1],n?t[2]:o)}if(!(0,j.projectBuffer)(i,r,0,i,a,0))return!1;let u=0;l.length=0;let s=n?3:2,c=le(n,a);for(let n of e){let e=[];for(let r of n){let n=i.slice(u,u+=3);if(c||n.pop(),t&&n.push((0,E.yP)(r)[s]),(0,E.FG)(r))return!1;if((0,E.aO)(r)){let t=i[u++],r=i[u++];++u,e.push({c:[n,[t,r]]})}else if((0,E.n1)(r)){let t=i[u++],r=i[u++];++u;let l=i[u++],a=i[u++];++u,e.push({b:[n,[t,r],[l,a]]})}else e.push(n)}l.push(e)}return!0}function le(e,n){return e||(0,s.xP)(n)||(0,A.aI)(n,w.Y0)}const ae=(0,i.vt)()},98764(e,n,t){t.d(n,{lO:()=>c});var r=t(73941),l=t(16930),a=t(21325);const o=new l.A(r.fv),i=new l.A(r.FY),u=new l.A(r.LJ),s=new l.A(r.Ro);function c(e){let n=f.get(e);if(n)return n;let t=o;if(e)if(e===i)t=i;else if(e===u)t=u;else{let n=e.wkid,r=e.latestWkid;if(null!=n||null!=r)(0,a.tl)(n)||(0,a.tl)(r)?t=i:((0,a.ZL)(n)||(0,a.ZL)(r))&&(t=u);else{let n=e.wkt2??e.wkt;if(n){let e=n.toUpperCase();e===p?t=i:e===h&&(t=u)}}}return f.set(e,t),t}const f=new Map,p=i.wkt.toUpperCase(),h=u.wkt.toUpperCase();t.d(n,["GD",0,o,"Y0",0,s])}}]);