@arcgis/core 5.0.0-next.60 → 5.0.0-next.61

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 (192) hide show
  1. package/analysis/VolumeMeasurement/volumeMeasurementConfiguration.js +1 -1
  2. package/assets/esri/core/workers/RemoteClient.js +1 -1
  3. package/assets/esri/core/workers/chunks/{1e8ceed33a3657ac02b3.js → 153ff2ceefccd946498b.js} +1 -1
  4. package/assets/esri/core/workers/chunks/{7147fc7502b385b302b2.js → 23b623637126f8411a30.js} +1 -1
  5. package/assets/esri/core/workers/chunks/{a7aa87e2c4197ba595ef.js → 2abc205f81f26fc4852b.js} +2 -2
  6. package/assets/esri/core/workers/chunks/{492d575894c7905bb70c.js → 3d49c6427120edc8eac9.js} +1 -1
  7. package/assets/esri/core/workers/chunks/{23a9dd9454d5249bbd59.js → 3da53c017f9c5d2d778a.js} +1 -1
  8. package/assets/esri/core/workers/chunks/{60362c5651ef41fa7e5f.js → 4cf2bec636dd8ceecf0c.js} +1 -1
  9. package/assets/esri/core/workers/chunks/{3d1a5a3467f3a6585b3e.js → 4f03d19a70dca6c507be.js} +1 -1
  10. package/assets/esri/core/workers/chunks/{5d31fbabaa875f8627c0.js → 631a11a2b2001c708527.js} +1 -1
  11. package/assets/esri/core/workers/chunks/{fa95c9248fbfab338f2e.js → 63b8cd7d5cafbaeed894.js} +1 -1
  12. package/assets/esri/core/workers/chunks/6b4a24248182245167ca.js +1 -0
  13. package/assets/esri/core/workers/chunks/{352c674730c7b7258ae3.js → 76086517591d0eb35156.js} +1 -1
  14. package/assets/esri/core/workers/chunks/{436f206898306df019ac.js → 7c47fefbf4c93b63200f.js} +1 -1
  15. package/assets/esri/core/workers/chunks/7e8573749a02e1f54fb1.js +1 -0
  16. package/assets/esri/core/workers/chunks/{424daef7b5dec1b99aba.js → af3e93a4ac3ff2addc90.js} +1 -1
  17. package/assets/esri/core/workers/chunks/{bf82bb1cdd8b31e7f2aa.js → bb08359610a41e304b55.js} +1 -1
  18. package/assets/esri/core/workers/chunks/{495b11fdecc3ba90d454.js → bfc063d4431bfa162160.js} +1 -1
  19. package/assets/esri/core/workers/chunks/d13b2ce8a89938b0472b.js +1 -0
  20. package/assets/esri/core/workers/chunks/{0483a2cfdb8c7158e73a.js → e85da52d9cc7d9396872.js} +1 -1
  21. package/assets/esri/core/workers/chunks/{1ced78750c61600b2d4e.js → f351007cdcd0938d3b6c.js} +1 -1
  22. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_ar.json +1 -1
  23. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_bg.json +1 -1
  24. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_bs.json +1 -1
  25. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_ca.json +1 -1
  26. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_cs.json +1 -1
  27. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_da.json +1 -1
  28. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_de.json +1 -1
  29. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_el.json +1 -1
  30. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_es.json +1 -1
  31. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_et.json +1 -1
  32. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_fi.json +1 -1
  33. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_fr.json +1 -1
  34. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_he.json +1 -1
  35. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_hr.json +1 -1
  36. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_hu.json +1 -1
  37. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_id.json +1 -1
  38. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_it.json +1 -1
  39. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_ja.json +1 -1
  40. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_ko.json +1 -1
  41. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_lt.json +1 -1
  42. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_lv.json +1 -1
  43. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_nl.json +1 -1
  44. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_no.json +1 -1
  45. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_pl.json +1 -1
  46. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_pt-BR.json +1 -1
  47. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_pt-PT.json +1 -1
  48. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_ro.json +1 -1
  49. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_ru.json +1 -1
  50. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_sk.json +1 -1
  51. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_sl.json +1 -1
  52. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_sr.json +1 -1
  53. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_sv.json +1 -1
  54. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_th.json +1 -1
  55. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_tr.json +1 -1
  56. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_uk.json +1 -1
  57. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_vi.json +1 -1
  58. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_zh-CN.json +1 -1
  59. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_zh-HK.json +1 -1
  60. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_zh-TW.json +1 -1
  61. package/chunks/CutFillDepth.glsl.js +13 -10
  62. package/chunks/CutFillReduction.glsl.js +14 -8
  63. package/chunks/GaussianSplat.glsl.js +1 -1
  64. package/chunks/Laserlines.glsl.js +2 -2
  65. package/chunks/boundedPlane.js +1 -1
  66. package/chunks/cameraUtilsSpherical.js +1 -1
  67. package/chunks/vec32.js +1 -1
  68. package/config.js +1 -1
  69. package/core/libs/gl-matrix-2/math/vec3.js +1 -1
  70. package/effects/FocusAreas.d.ts +1 -1
  71. package/geometry/support/lineSegment.js +1 -1
  72. package/geometry/support/meshUtils/merge.js +1 -1
  73. package/geometry/support/sphere.js +1 -1
  74. package/kernel.js +1 -1
  75. package/layers/VoxelWasmPerSceneView.js +1 -1
  76. package/layers/orientedImagery/transformations/worldToImage.js +1 -1
  77. package/layers/support/FieldsIndex.d.ts +2 -1
  78. package/layers/support/tiles3DUtils.js +1 -1
  79. package/layers/voxel/VoxelVolume.js +1 -1
  80. package/package.json +1 -1
  81. package/support/revision.js +1 -1
  82. package/views/2d/engine/flow/dataUtils.js +1 -1
  83. package/views/2d/engine/flow/utils.js +1 -1
  84. package/views/2d/engine/vectorTiles/shaders/sources/shaderRepository.js +1 -1
  85. package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
  86. package/views/2d/interactive/SegmentLabels2D.js +1 -1
  87. package/views/3d/analysis/AreaMeasurement/support/AreaMeasurementVisualization.js +1 -1
  88. package/views/3d/analysis/AreaMeasurement/support/MeasurementData.js +1 -1
  89. package/views/3d/analysis/Dimension/lengthDimensionConstraintUtils.js +1 -1
  90. package/views/3d/analysis/Dimension/lengthDimensionUtils.js +1 -1
  91. package/views/3d/analysis/LineOfSight/LineOfSightController.js +1 -1
  92. package/views/3d/analysis/LineOfSight/LineOfSightIntersectionResult.js +1 -1
  93. package/views/3d/analysis/Slice/sliceToolUtils.js +1 -1
  94. package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementCutFillComputation.js +1 -1
  95. package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementCutFillController.js +1 -1
  96. package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementCutFillVisualization.js +1 -1
  97. package/views/3d/analysis/VolumeMeasurementAnalysisView3D.js +1 -1
  98. package/views/3d/animation/pointToPoint/Camera.js +1 -1
  99. package/views/3d/camera/constraintUtils/distance.js +1 -1
  100. package/views/3d/camera/constraintUtils/tilt.js +1 -1
  101. package/views/3d/environment/ChapmanApproximation.glsl.js +1 -1
  102. package/views/3d/environment/CloudsParameters.js +1 -1
  103. package/views/3d/environment/EnvironmentManager.js +1 -1
  104. package/views/3d/environment/MarsAtmosphere.js +1 -1
  105. package/views/3d/interactive/SegmentLabels3D.js +1 -1
  106. package/views/3d/interactive/editingTools/manipulations/MoveZManipulation.js +1 -1
  107. package/views/3d/interactive/editingTools/media/MediaElementManipulator3D.js +1 -1
  108. package/views/3d/interactive/editingTools/reshape/edgeOffsetUtils.js +1 -1
  109. package/views/3d/interactive/visualElements/LabelVisualElement.js +1 -1
  110. package/views/3d/interactive/visualElements/RightAngleQuadVisualElement.js +1 -1
  111. package/views/3d/layers/FlowSubView3D.js +1 -1
  112. package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
  113. package/views/3d/layers/graphics/Graphics3DObjectSymbolLayer.js +1 -1
  114. package/views/3d/layers/graphics/objectResourceUtils.js +1 -1
  115. package/views/3d/layers/i3s/I3SViewportQueries.js +1 -1
  116. package/views/3d/layers/i3s/PointCloudRenderer.js +1 -1
  117. package/views/3d/layers/support/FeatureTileMeasurements3D.js +1 -1
  118. package/views/3d/layers/support/FeatureTileVisibility3D.js +1 -1
  119. package/views/3d/state/Frustum.js +1 -1
  120. package/views/3d/state/controllers/FovController.js +1 -1
  121. package/views/3d/state/controllers/GamepadKeyboardController.js +1 -1
  122. package/views/3d/state/controllers/momentum/ZoomPlanarMomentumController.js +1 -1
  123. package/views/3d/support/FrustumExtentIntersection.js +1 -1
  124. package/views/3d/support/cameraUtils.js +1 -1
  125. package/views/3d/support/engineContent/line.js +1 -1
  126. package/views/3d/support/flow/FlowWorker.js +1 -1
  127. package/views/3d/support/flow/StreamlineResources3D.js +1 -1
  128. package/views/3d/support/flow/constants.js +1 -1
  129. package/views/3d/support/flow/geometryUtils.js +1 -1
  130. package/views/3d/support/gaussianSplatting/GaussianSplatDataStore.js +1 -1
  131. package/views/3d/support/gaussianSplatting/GaussianSplatTextureAtlas.js +1 -1
  132. package/views/3d/support/intersectionUtils.js +1 -1
  133. package/views/3d/support/orientedBoundingBox.js +1 -1
  134. package/views/3d/support/pointsOfInterest/CameraOnSurface.js +1 -1
  135. package/views/3d/support/pointsOfInterest/CenterOnSurface.js +1 -1
  136. package/views/3d/support/pointsOfInterest/Focus.js +1 -1
  137. package/views/3d/support/viewpointUtils.js +1 -1
  138. package/views/3d/terrain/OverlayManager.js +1 -1
  139. package/views/3d/terrain/OverlayRenderer.js +1 -1
  140. package/views/3d/terrain/PatchRenderData.js +1 -1
  141. package/views/3d/terrain/SphericalPatch.js +1 -1
  142. package/views/3d/terrain/Tile.js +1 -1
  143. package/views/3d/webgl/RenderCamera.js +1 -1
  144. package/views/3d/webgl-engine/core/FBOCache.js +1 -1
  145. package/views/3d/webgl-engine/core/FBOCacheFormats.js +1 -1
  146. package/views/3d/webgl-engine/effects/focusArea/FocusAreaMaskNode.js +1 -1
  147. package/views/3d/webgl-engine/effects/geometry/RenderOccludedRenderNode.js +1 -1
  148. package/views/3d/webgl-engine/lib/CutFillDepth.js +1 -1
  149. package/views/3d/webgl-engine/lib/GPUPointOcclusionQuery.js +1 -1
  150. package/views/3d/webgl-engine/lib/GaussianSplatRenderNode.js +1 -1
  151. package/views/3d/webgl-engine/lib/MainFramebuffer.js +1 -1
  152. package/views/3d/webgl-engine/lib/Object3D.js +1 -1
  153. package/views/3d/webgl-engine/lib/Renderer.js +1 -1
  154. package/views/3d/webgl-engine/lib/ShadowAccumulator.js +1 -1
  155. package/views/3d/webgl-engine/lib/ShadowMap.js +1 -1
  156. package/views/3d/webgl-engine/lib/Viewshed.js +1 -1
  157. package/views/3d/webgl-engine/lib/ViewshedShadowMap.js +1 -1
  158. package/views/3d/webgl-engine/lib/edgeRendering/edgePreprocessing.js +1 -1
  159. package/views/3d/webgl-engine/lib/geometryDataUtils.js +1 -1
  160. package/views/3d/webgl-engine/lib/triangleIntersectionUtils.js +1 -1
  161. package/views/3d/webgl-engine/materials/HUDMaterial.js +1 -1
  162. package/views/3d/webgl-engine/materials/LineMarkerMaterial.js +1 -1
  163. package/views/3d/webgl-engine/materials/MeasurementArrowMaterial.js +1 -1
  164. package/views/3d/webgl-engine/materials/NativeLineMaterial.js +1 -1
  165. package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
  166. package/views/3d/webgl-engine/shaders/AnimatedLine.glsl.js +13 -12
  167. package/views/3d/webgl-engine/shaders/CutFillDepthTechniqueConfiguration.js +5 -0
  168. package/views/3d/webgl-engine/shaders/CutFillReductionTechniqueConfiguration.js +5 -0
  169. package/views/3d/webgl-engine/shaders/RibbonLineTechniqueConfiguration.js +1 -1
  170. package/views/3d/webgl-engine/shaders/SphereDepthInterpolate.glsl.js +1 -1
  171. package/views/interactive/GraphicManipulator.js +1 -1
  172. package/views/interactive/coordinateHelper.js +1 -1
  173. package/views/interactive/editGeometry/operations/OffsetEdgeVertex.js +1 -1
  174. package/views/interactive/sketch/constraints.js +1 -1
  175. package/views/interactive/snapping/featureSources/sceneLayerSource/SceneLayerSnappingSourceWorker.js +1 -1
  176. package/views/interactive/snapping/featureSources/sceneLayerSource/sceneLayerSnappingUtils.js +1 -1
  177. package/views/interactive/snapping/hints/LineSnappingHint.js +1 -1
  178. package/views/interactive/tooltip/tooltipCommonUtils.js +1 -1
  179. package/views/navigation/PanSphericalMomentumEstimator.js +1 -1
  180. package/views/support/Scheduler.js +1 -1
  181. package/views/support/euclideanAreaMeasurementUtils.js +1 -1
  182. package/views/support/euclideanLengthMeasurementUtils.js +1 -1
  183. package/views/support/geometry3dUtils.js +1 -1
  184. package/webdoc/widgets/FloorFilter.js +1 -1
  185. package/widgets/Expand/ExpandViewModel.d.ts +1 -0
  186. package/widgets/Expand/ExpandViewModel.js +1 -1
  187. package/widgets/Expand.js +1 -1
  188. package/widgets/FloorFilter/FloorFilterViewModel.js +1 -1
  189. package/assets/esri/core/workers/chunks/1e17ad6cdffa5016a3db.js +0 -1
  190. package/assets/esri/core/workers/chunks/21ebd234cf32ae52b3ea.js +0 -1
  191. package/assets/esri/core/workers/chunks/262c5794650853457acc.js +0 -1
  192. /package/effects/{FocusAreaStyle.d.ts → types.d.ts} +0 -0
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[784],{9093:(t,e,n)=>{function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function o(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]]}n.d(e,{o8:()=>o,vt:()=>r,zK:()=>i});const i=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:i,clone:o,create:r,fromValues:function(t,e,n,r,o,i,s,a,c,u,h,d,l,f,m,p){return[t,e,n,r,o,i,s,a,c,u,h,d,l,f,m,p]}},Symbol.toStringTag,{value:"Module"}))},27921:(t,e,n)=>{n.d(e,{$Q:()=>T,C:()=>u,Cr:()=>f,LV:()=>c,O_:()=>l,Qj:()=>h,T7:()=>x,Tj:()=>O,Ui:()=>y,_I:()=>A,fA:()=>d,gv:()=>w,lU:()=>m,mN:()=>E,mP:()=>v,mR:()=>j,vE:()=>P,vt:()=>a});var r=n(34727),o=n(38954),i=n(51850),s=(n(87317),n(44280),n(32114));function a(t=N){return[t[0],t[1],t[2],t[3]]}function c(t=N[0],e=N[1],n=N[2],r=N[3]){return d(t,e,n,r,s.Km.get())}function u(t,e){return d(e[0],e[1],e[2],e[3],t)}function h(t){return t}function d(t,e,n,r,o=a()){return o[0]=t,o[1]=e,o[2]=n,o[3]=r,o}function l(t,e,n){const r=e[0]*e[0]+e[1]*e[1]+e[2]*e[2],o=Math.abs(r-1)>1e-5&&r>1e-12?1/Math.sqrt(r):1;return n[0]=e[0]*o,n[1]=e[1]*o,n[2]=e[2]*o,n[3]=-(n[0]*t[0]+n[1]*t[1]+n[2]*t[2]),n}function f(t,e,n,r=a()){const o=n[0]-e[0],i=n[1]-e[1],s=n[2]-e[2],c=t[0]-e[0],u=t[1]-e[1],h=t[2]-e[2],d=i*h-s*u,l=s*c-o*h,f=o*u-i*c,m=d*d+l*l+f*f,p=Math.abs(m-1)>1e-5&&m>1e-12?1/Math.sqrt(m):1;return r[0]=d*p,r[1]=l*p,r[2]=f*p,r[3]=-(r[0]*t[0]+r[1]*t[1]+r[2]*t[2]),r}function m(t,e,n,r=0,i=Math.floor(n*(1/3)),s=Math.floor(n*(2/3))){if(n<3)return!1;e(b,r);let a=i,c=!1;for(;a<n-1&&!c;)e(_,a),a++,c=!(0,o.m)(b,_);if(!c)return!1;for(a=Math.max(a,s),c=!1;a<n&&!c;)e(g,a),a++,(0,o.e)(M,b,_),(0,o.n)(M,M),(0,o.e)(S,_,g),(0,o.n)(S,S),c=!(0,o.m)(b,g)&&!(0,o.m)(_,g)&&Math.abs((0,o.g)(M,S))<p;return c?(f(b,_,g,t),!0):(0!==r||1!==i||2!==s)&&m(t,e,n,0,1,2)}n(32728);const p=.99619469809,b=(0,i.vt)(),_=(0,i.vt)(),g=(0,i.vt)(),M=(0,i.vt)(),S=(0,i.vt)();function v(t,e,n){return e!==t&&u(t,e),t[3]=-(0,o.g)(t,n),t}function j(t,e,n,r){return(0,o.f)(g,e,t),l(n,g,r)}function y(t,e,n){return null!=e&&z(P(t,e.origin,e.direction,D,n))}function x(t,e,n){return z(P(t,e.origin,e.vector,0,n))}function w(t,e,n){return z(P(t,e.origin,e.vector,1,n))}function O(t,e){return E(t,e)>=0}function T(t,e){const n=(0,o.g)(t,e.ray.direction),r=-E(t,e.ray.origin);if(r<0&&n>=0)return!1;if(n>-1e-6&&n<1e-6)return r>0;if((r<0||n<0)&&!(r<0&&n<0))return!0;const i=r/n;return n>0?i<e.c1&&(e.c1=i):i>e.c0&&(e.c0=i),e.c0<=e.c1}function A(t,e,n){const r=(0,o.j)(s.rq.get(),t,-t[3]),i=function(t,e,n){const r=(0,o.j)(s.rq.get(),t,(0,o.g)(t,e));return(0,o.e)(n,e,r),n}(t,(0,o.e)(s.rq.get(),e,r),s.rq.get());return(0,o.i)(n,i,r),n}function E(t,e){return(0,o.g)(t,e)+t[3]}function z(t){return 0===t||1===t}function P(t,e,n,i,s){const a=(0,o.g)(t,n),c=E(t,e);if(0===a)return c>=0?2:3;let u=-c/a;return 1&i&&(u=(0,r.qE)(u,0,1)),!(4&i)&&u<0||!(8&i)&&u>1?c>=0?2:3:((0,o.i)(s,e,(0,o.j)(s,n,u)),c>=0?0:1)}const N=[0,0,1,0],D=8},29242:(t,e,n)=>{function r(){return[1,0,0,0,1,0,0,0,1]}function o(t,e,n,r,o,i,s,a,c){return[t,e,n,r,o,i,s,a,c]}n.d(e,{fA:()=>o,vt:()=>r,zK:()=>i});const i=[1,0,0,0,1,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:i,clone:function(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8]]},create:r,fromValues:o},Symbol.toStringTag,{value:"Module"}))},31635:(t,e,n)=>{function r(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s}function o(t,e,n){if(null!=e){if("object"!=typeof e&&"function"!=typeof e)throw new TypeError("Object expected.");var r,o;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=e[Symbol.asyncDispose]}if(void 0===r){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=e[Symbol.dispose],n&&(o=r)}if("function"!=typeof r)throw new TypeError("Object not disposable.");o&&(r=function(){try{o.call(this)}catch(t){return Promise.reject(t)}}),t.stack.push({value:e,dispose:r,async:n})}else n&&t.stack.push({async:!0});return e}n.d(e,{Cg:()=>r,hk:()=>s,mS:()=>o}),Object.create,Object.create;var i="function"==typeof SuppressedError?SuppressedError:function(t,e,n){var r=new Error(n);return r.name="SuppressedError",r.error=t,r.suppressed=e,r};function s(t){function e(e){t.error=t.hasError?new i(e,t.error,"An error was suppressed during disposal."):e,t.hasError=!0}var n,r=0;return function o(){for(;n=t.stack.pop();)try{if(!n.async&&1===r)return r=0,t.stack.push(n),Promise.resolve().then(o);if(n.dispose){var i=n.dispose.call(n.value);if(n.async)return r|=2,Promise.resolve(i).then(o,function(t){return e(t),o()})}else r|=1}catch(t){e(t)}if(1===r)return t.hasError?Promise.reject(t.error):Promise.resolve();if(t.hasError)throw t.error}()}},32114:(t,e,n)=>{n.d(e,{Rc:()=>f,J8:()=>m,rq:()=>d,Km:()=>l}),n(44208);var r=n(26390),o=n(29242),i=n(9093),s=n(82534),a=n(48163),c=n(51850),u=n(91829);class h{constructor(t){this._create=t,this._items=new Array,this._itemsPtr=0}get(){return 0===this._itemsPtr&&(0,r.d)(()=>this._reset()),this._itemsPtr>=this._items.length&&this._items.push(this._create()),this._items[this._itemsPtr++]}_reset(){const t=2*this._itemsPtr;this._items.length>t&&(this._items.length=t),this._itemsPtr=0}static createVec2f64(){return new h(a.vt)}static createVec3f64(){return new h(c.vt)}static createVec4f64(){return new h(u.vt)}static createMat3f64(){return new h(o.vt)}static createMat4f64(){return new h(i.vt)}static createQuatf64(){return new h(s.vt)}get test(){}}h.createVec2f64();const d=h.createVec3f64(),l=h.createVec4f64(),f=(h.createMat3f64(),h.createMat4f64()),m=h.createQuatf64()},32728:(t,e,n)=>{n.d(e,{nu:()=>s,wp:()=>i}),n(34727);var r=n(38954),o=n(51850);function i(t,e){const n=Math.sqrt(e[0]*e[0]+e[4]*e[4]+e[8]*e[8]),o=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,r.h)(t,n,o,i),t}function s(t,e,n,i=(0,o.vt)()){const s=(0,r.b)(t),u=(0,r.b)(e),h=(0,r.g)(t,e)/(s*u);if(h<.9999999999999999){const o=Math.acos(h),d=((1-n)*s+n*u)/Math.sin(o),l=d/s*Math.sin((1-n)*o),f=d/u*Math.sin(n*o);return(0,r.j)(a,t,l),(0,r.j)(c,e,f),(0,r.i)(i,a,c)}return(0,r.l)(i,t,e,n)}(0,o.vt)(),(0,o.vt)(),(0,o.vt)();const a=(0,o.vt)(),c=(0,o.vt)()},44280:(t,e,n)=>{n.d(e,{EJ:()=>c,g7:()=>a,gr:()=>s});var r=n(34727),o=n(38954),i=n(51850);function s(t,e){return(0,o.g)(t,e)/(0,o.b)(t)}function a(t,e){const n=(0,o.g)(t,e)/((0,o.b)(t)*(0,o.b)(e));return-(0,r.XM)(n)}function c(t,e,n){(0,o.n)(u,t),(0,o.n)(h,e);const i=(0,o.g)(u,h),s=(0,r.XM)(i),a=(0,o.f)(u,u,h);return(0,o.g)(a,n)<0?2*Math.PI-s:s}const u=(0,i.vt)(),h=(0,i.vt)()},70491:(t,e,n)=>{n.r(e),n.d(e,{default:()=>X});var r=n(31635),o=n(74887),i=n(24326),s=n(91429),a=n(38954),c=n(51850),u=n(11964),h=n(94008),d=n(93687),l=n(15142),f=n(82919),m=n(71351),p=n(620);class b{get bounds(){return this._root.bounds}get halfSize(){return this._root.halfSize}get root(){return this._root.node}get maximumObjectsPerNode(){return this._maximumObjectsPerNode}get maximumDepth(){return this._maximumDepth}get objectCount(){return this._objectCount}constructor(t,e){this.objectToBoundingSphere=t,this._maximumObjectsPerNode=10,this._maximumDepth=20,this._degenerateObjects=new Set,this._root=new _,this._objectCount=0,e&&(void 0!==e.maximumObjectsPerNode&&(this._maximumObjectsPerNode=e.maximumObjectsPerNode),void 0!==e.maximumDepth&&(this._maximumDepth=e.maximumDepth))}destroy(){this._degenerateObjects.clear(),_.clearPool(),D[0]=null,F.prune(),J.prune()}add(t){const e=Array.from(t);this._grow(e);const n=_.acquire();for(const t of e)++this._objectCount,this._isDegenerate(t)?this._degenerateObjects.add(t):(n.init(this._root),this._add(t,n));_.release(n)}remove(t,e=null){this._objectCount-=t.length;const n=_.acquire();for(const r of t){const t=e??this.objectToBoundingSphere(r);E(t.radius)?(n.init(this._root),S(r,t,n)):this._degenerateObjects.delete(r)}_.release(n),this._shrink()}update(t,e){if(!E(e.radius)&&this._isDegenerate(t))return;const n=function(t){return D[0]=t,D}(t);this.remove(n,e),this.add(n)}forEachAlongRay(t,e,n){const r=(0,m.LV)(t,e);g(this._root,t=>{if(!function(t,e){return w(e.bounds.center,2*-e.halfSize,R),w(e.bounds.center,2*e.halfSize,B),(0,p.O_)(t.origin,t.direction,R,B)}(r,t))return!1;const e=t.node;return e.terminals.forAll(t=>{this._intersectsObject(r,t)&&n(t)}),null!==e.residents&&e.residents.forAll(t=>{this._intersectsObject(r,t)&&n(t)}),!0})}forEachAlongRayWithVerticalOffset(t,e,n,r){const o=(0,m.LV)(t,e);g(this._root,t=>{if(!function(t,e,n){return w(e.bounds.center,2*-e.halfSize,R),w(e.bounds.center,2*e.halfSize,B),n.applyToMinMax(R,B),(0,p.O_)(t.origin,t.direction,R,B)}(o,t,r))return!1;const e=t.node;return e.terminals.forAll(t=>{this._intersectsObjectWithOffset(o,t,r)&&n(t)}),null!==e.residents&&e.residents.forAll(t=>{this._intersectsObjectWithOffset(o,t,r)&&n(t)}),!0})}forEach(t){g(this._root,e=>{const n=e.node;return n.terminals.forAll(t),null!==n.residents&&n.residents.forAll(t),!0}),this._degenerateObjects.forEach(t)}forEachDegenerateObject(t){this._degenerateObjects.forEach(t)}findClosest(t,e,n,r=()=>!0,o=1/0){let i=1/0,s=1/0,c=null;const u=T(t,e),h=a=>{if(--o,!r(a))return;const u=this.objectToBoundingSphere(a);if(!(0,f.m7)(n,u))return;const h=A(t,e,u.center),d=h-u.radius,l=h+u.radius;d<i&&(i=d,s=l,c=a)};return M(this._root,r=>{if(o<=0||!(0,f.m7)(n,r.bounds))return!1;if((0,a.j)(q,u,r.halfSize),(0,a.i)(q,q,r.bounds.center),A(t,e,q)>s)return!1;const i=r.node;return i.terminals.forAll(t=>h(t)),null!==i.residents&&i.residents.forAll(t=>h(t)),!0},t,e),c}forEachInDepthRange(t,e,n,r,o,i,s){let c=-1/0,u=1/0;const h={setRange:t=>{1===n?(c=Math.max(c,t.near),u=Math.min(u,t.far)):(c=Math.max(c,-t.far),u=Math.min(u,-t.near))}};h.setRange(r);const d=A(e,n,t),l=T(e,n),m=T(e,-n),p=t=>{if(!s(t))return;const r=this.objectToBoundingSphere(t),a=A(e,n,r.center)-d,l=a-r.radius,m=a+r.radius;l>u||m<c||!(0,f.m7)(i,r)||o(t,h)};M(this._root,t=>{if(!(0,f.m7)(i,t.bounds))return!1;if((0,a.j)(q,l,t.halfSize),(0,a.i)(q,q,t.bounds.center),A(e,n,q)-d>u)return!1;if((0,a.j)(q,m,t.halfSize),(0,a.i)(q,q,t.bounds.center),A(e,n,q)-d<c)return!1;const r=t.node;return r.terminals.forAll(t=>p(t)),null!==r.residents&&r.residents.forAll(t=>p(t)),!0},e,n)}forEachNode(t){g(this._root,e=>t(e.node,e.bounds,e.halfSize,e.depth))}forEachNeighbor(t,e){const n=e.radius,r=e.center,o=e=>{const o=this.objectToBoundingSphere(e),i=o.radius,s=n+i;return!((0,a.s)(o.center,r)-s*s<=0)||t(e)};let i=!0;const s=t=>{i&&(i=o(t))};g(this._root,t=>{const e=t.bounds.radius,o=n+e;if((0,a.s)(t.bounds.center,r)-o*o>0)return!1;const c=t.node;return c.terminals.forAll(s),i&&null!==c.residents&&c.residents.forAll(s),i}),i&&this.forEachDegenerateObject(s)}_intersectsObject(t,e){const n=this.objectToBoundingSphere(e);return!(n.radius>0)||n.intersectRay(t)}_intersectsObjectWithOffset(t,e,n){const r=this.objectToBoundingSphere(e);return!(r.radius>0)||n.applyToBoundingSphere(r).intersectRay(t)}_add(t,e){e.advanceTo(this.objectToBoundingSphere(t))?e.node.terminals.push(t):(e.node.residents.push(t),e.node.residents.length>this._maximumObjectsPerNode&&e.depth<this._maximumDepth&&this._split(e))}_split(t){const e=t.node.residents;t.node.residents=null;for(let n=0;n<e.length;n++){const r=_.acquire().init(t);this._add(e.at(n),r),_.release(r)}}_grow(t){if(O(t,t=>this.objectToBoundingSphere(t),I),E(I.radius)&&!this._fitsInsideTree(I))if(j(this._root.node))this._root.bounds.copyFrom(I),this._root.halfSize=1.25*this._root.bounds.radius,this._root.updateBoundsRadiusFromHalfSize();else{const t=this._rootBoundsForRootAsSubNode(I);this._placingRootViolatesMaxDepth(t)?this._rebuildTree(I,t):this._growRootAsSubNode(t),_.release(t)}}_rebuildTree(t,e){V.center=e.bounds.center,V.radius=e.halfSize,O([t,V],t=>t,L);const n=_.acquire().init(this._root);this._root.initFrom(null,L,L.radius),this._root.increaseHalfSize(1.25),g(n,t=>(this.add(t.node.terminals.data),null!==t.node.residents&&this.add(t.node.residents.data),!0)),_.release(n)}_placingRootViolatesMaxDepth(t){const e=Math.log(t.halfSize/this._root.halfSize)*Math.LOG2E;let n=0;return g(this._root,t=>(n=Math.max(n,t.depth),n+e<=this._maximumDepth)),n+e>this._maximumDepth}_rootBoundsForRootAsSubNode(t){const e=t.radius,n=t.center;let r=-1/0;const o=this._root.bounds.center,i=this._root.halfSize;for(let t=0;t<3;t++){const s=o[t]-i-(n[t]-e),a=n[t]+e-(o[t]+i),c=Math.max(0,Math.ceil(s/(2*i))),u=Math.max(0,Math.ceil(a/(2*i)))+1,h=2**Math.ceil(Math.log(c+u)*Math.LOG2E);r=Math.max(r,h),k[t].min=c,k[t].max=u}for(let t=0;t<3;t++){let e=k[t].min,n=k[t].max;const s=(r-(e+n))/2;e+=Math.ceil(s),n+=Math.floor(s);const a=o[t]-i-e*i*2;C.center[t]=a+(n+e)*i}const s=r*i;return C.radius=s*N,_.acquire().initFrom(null,C,s,0)}_growRootAsSubNode(t){const e=this._root.node;I.center=this._root.bounds.center,I.radius=this._root.halfSize,this._root.init(t),t.advanceTo(I,null,!0),t.node.children=e.children,t.node.residents=e.residents,t.node.terminals=e.terminals}_shrink(){for(;;){const t=this._findShrinkIndex();if(-1===t)break;this._root.advance(t),this._root.depth=0}}_findShrinkIndex(){if(0!==this._root.node.terminals.length||this._root.isLeaf())return-1;let t=null;const e=this._root.node.children;let n=0,r=0;for(;r<e.length&&null==t;)n=r++,t=e[n];for(;r<e.length;)if(e[r++])return-1;return n}_isDegenerate(t){return!E(this.objectToBoundingSphere(t).radius)}_fitsInsideTree(t){const e=this._root.bounds,n=this._root.halfSize;return t.radius<=n&&t.center[0]>=e.center[0]-n&&t.center[0]<=e.center[0]+n&&t.center[1]>=e.center[1]-n&&t.center[1]<=e.center[1]+n&&t.center[2]>=e.center[2]-n&&t.center[2]<=e.center[2]+n}toJSON(){const{maximumDepth:t,maximumObjectsPerNode:e,_objectCount:n}=this,r=this._nodeToJSON(this._root.node);return{maximumDepth:t,maximumObjectsPerNode:e,objectCount:n,root:{bounds:this._root.bounds,halfSize:this._root.halfSize,depth:this._root.depth,node:r}}}_nodeToJSON(t){const e=t.children.map(t=>t?this._nodeToJSON(t):null),n=t.residents?.map(t=>this.objectToBoundingSphere(t)),r=t.terminals?.map(t=>this.objectToBoundingSphere(t));return{children:e,residents:n,terminals:r}}static fromJSON(t){const e=new b(t=>t,{maximumDepth:t.maximumDepth,maximumObjectsPerNode:t.maximumObjectsPerNode});return e._objectCount=t.objectCount,e._root.initFrom(t.root.node,t.root.bounds,t.root.halfSize,t.root.depth),e}}class _{constructor(){this.bounds=new h.iy,this.halfSize=0,this.initFrom(null,null,0,0)}init(t){return this.initFrom(t.node,t.bounds,t.halfSize,t.depth)}initFrom(t,e,n,r=this.depth){return this.node=null!=t?t:_.createEmptyNode(),e&&this.bounds.copyFrom(e),this.halfSize=n,this.depth=r,this}increaseHalfSize(t){this.halfSize*=t,this.updateBoundsRadiusFromHalfSize()}updateBoundsRadiusFromHalfSize(){this.bounds.radius=this.halfSize*N}advance(t){let e=this.node.children[t];e||(e=_.createEmptyNode(),this.node.children[t]=e),this.node=e,this.halfSize/=2,this.depth++;const n=z[t];return this.bounds.center[0]+=n[0]*this.halfSize,this.bounds.center[1]+=n[1]*this.halfSize,this.bounds.center[2]+=n[2]*this.halfSize,this.updateBoundsRadiusFromHalfSize(),this}advanceTo(t,e,n=!1){for(;;){if(this.isTerminalFor(t))return e?.(this,-1),!0;if(this.isLeaf()){if(!n)return e?.(this,-1),!1;this.node.residents=null}const r=this._childIndex(t);e?.(this,r),this.advance(r)}}isLeaf(){return null!=this.node.residents}isTerminalFor(t){return t.radius>this.halfSize/2}_childIndex(t){const e=this.bounds.center;return(e[0]<t.center[0]?1:0)+(e[1]<t.center[1]?2:0)+(e[2]<t.center[2]?4:0)}static createEmptyNode(){return{children:[null,null,null,null,null,null,null,null],terminals:new l.A({shrink:!0}),residents:new l.A({shrink:!0})}}static{this._pool=new d.A(()=>new _)}static acquire(){return _._pool.acquire()}static release(t){_._pool.release(t)}static clearPool(){_._pool.prune()}}function g(t,e){let n=_.acquire().init(t);const r=[n];for(;0!==r.length;){if(n=r.pop(),e(n)&&!n.isLeaf())for(let t=0;t<n.node.children.length;t++)n.node.children[t]&&r.push(_.acquire().init(n).advance(t));_.release(n)}}function M(t,e,n,r=1){let o=_.acquire().init(t);const i=[o];for(function(t,e,n){if(!J.length)for(let t=0;t<8;++t)J.push({index:0,distance:0});for(let n=0;n<8;++n){const r=z[n];J.data[n].index=n,J.data[n].distance=A(t,e,r)}J.sort((t,e)=>t.distance-e.distance);for(let t=0;t<8;++t)n[t]=J.data[t].index}(n,r,H);0!==i.length;){if(o=i.pop(),e(o)&&!o.isLeaf())for(let t=7;t>=0;--t){const e=H[t];o.node.children[e]&&i.push(_.acquire().init(o).advance(e))}_.release(o)}}function S(t,e,n){F.clear();const r=n.advanceTo(e,(t,e)=>{F.push(t.node),F.push(e)})?n.node.terminals:n.node.residents;if(r.removeUnordered(t),0===r.length)for(let t=F.length-2;t>=0&&v(F.data[t],F.data[t+1]);t-=2);}function v(t,e){return e>=0&&(t.children[e]=null),!!j(t)&&(null===t.residents&&(t.residents=new l.A({shrink:!0})),!0)}function j(t){if(0!==t.terminals.length)return!1;if(null!==t.residents)return 0===t.residents.length;for(let e=0;e<t.children.length;e++)if(t.children[e])return!1;return!0}function y(t,e){t[0]=Math.min(t[0],e.center[0]-e.radius),t[1]=Math.min(t[1],e.center[1]-e.radius),t[2]=Math.min(t[2],e.center[2]-e.radius)}function x(t,e){t[0]=Math.max(t[0],e.center[0]+e.radius),t[1]=Math.max(t[1],e.center[1]+e.radius),t[2]=Math.max(t[2],e.center[2]+e.radius)}function w(t,e,n){n[0]=t[0]+e,n[1]=t[1]+e,n[2]=t[2]+e}function O(t,e,n){R[0]=1/0,R[1]=1/0,R[2]=1/0,B[0]=-1/0,B[1]=-1/0,B[2]=-1/0;for(const n of t){const t=e(n);E(t.radius)&&(y(R,t),x(B,t))}(0,a.l)(n.center,R,B,.5),n.radius=Math.max(B[0]-R[0],B[1]-R[1],B[2]-R[2])/2}function T(t,e){let n,r=1/0;for(let o=0;o<8;++o){const i=A(t,e,P[o]);i<r&&(r=i,n=P[o])}return n}function A(t,e,n){return e*(t[0]*n[0]+t[1]*n[1]+t[2]*n[2])}function E(t){return!isNaN(t)&&t!==-1/0&&t!==1/0&&t>0}const z=[(0,c.fA)(-1,-1,-1),(0,c.fA)(1,-1,-1),(0,c.fA)(-1,1,-1),(0,c.fA)(1,1,-1),(0,c.fA)(-1,-1,1),(0,c.fA)(1,-1,1),(0,c.fA)(-1,1,1),(0,c.fA)(1,1,1)],P=[(0,c.fA)(-1,-1,-1),(0,c.fA)(-1,-1,1),(0,c.fA)(-1,1,-1),(0,c.fA)(-1,1,1),(0,c.fA)(1,-1,-1),(0,c.fA)(1,-1,1),(0,c.fA)(1,1,-1),(0,c.fA)(1,1,1)],N=Math.sqrt(3),D=[null],C=new h.iy,q=(0,c.vt)(),R=(0,c.vt)(),B=(0,c.vt)(),F=new l.A,I=new h.iy,V=new h.iy,L=new h.iy,k=[{min:0,max:0},{min:0,max:0},{min:0,max:0}],J=new l.A,H=[0,0,0,0,0,0,0,0];var K=n(431);function Q(t,e,n){const r=new h.iy;return(0,a.j)(r.center,t,.5),(0,a.c)(r.center,r.center,e,.5),r.radius=(0,a.D)(r.center,t),(0,a.i)(r.center,r.center,n),r}class W{constructor(t,e,n){this.objectId=t,this.target=e,this.distance=n}}class Y extends W{constructor(t,e,n){super(t,e,n),this.type="vertex"}}class G extends W{constructor(t,e,n,r,o){super(t,e,n),this.start=r,this.end=o,this.type="edge"}}let U=class{constructor(){this._idToComponent=new Map,this._components=new b(t=>t.bounds),this._edges=new b(t=>t.bounds),this._tmpLineSegment=(0,u.vt)(),this._tmpP1=(0,c.vt)(),this._tmpP2=(0,c.vt)(),this._tmpP3=(0,c.vt)(),this.remoteClient=null}async fetchCandidates(t,e){await Promise.resolve(),(0,o.Te)(e);const n=t;n.mbs=new h.iy(t.mbsJSON),await this._ensureEdgeLocations(n,e);const r=[];return this._edges.forEachNeighbor(t=>(this._addCandidates(n,t,r),r.length<1e3),n.mbs),{result:{candidates:r}}}async _ensureEdgeLocations(t,e){const n=[];if(this._components.forEachNeighbor(t=>{if(null==t.info){const{id:e,uid:r}=t;n.push({id:e,uid:r})}return!0},t.mbs),!n.length)return;const r={components:n},o=await this.remoteClient.invoke("fetchAllEdgeLocations",r,e??{});for(const t of o.components)this._setFetchEdgeLocations(t)}async add(t){const e=new Z(t.id,new h.iy(t.bounds));return this._idToComponent.set(e.id,e),this._components.add([e]),{result:{}}}async remove(t){const e=this._idToComponent.get(t.id);if(e){const t=[];this._edges.forEachNeighbor(n=>(n.component===e&&t.push(n),!0),e.bounds),this._edges.remove(t),this._components.remove([e]),this._idToComponent.delete(e.id)}return{result:{}}}_setFetchEdgeLocations(t){const e=this._idToComponent.get(t.id);if(null==e||t.uid!==e.uid)return;const n=K.HY.createView(t.locations),r=new Array(n.count),o=(0,c.vt)(),i=(0,c.vt)();for(let s=0;s<n.count;s++){n.position0.getVec(s,o),n.position1.getVec(s,i);const a=Q(o,i,t.origin),c=new tt(e,s,a);r[s]=c}this._edges.add(r);const{objectIds:s,origin:a}=t;e.info={locations:n,objectIds:s,origin:a}}_addCandidates(t,e,n){const{info:r}=e.component,{origin:o,objectIds:i}=r,s=r.locations,c=s.position0.getVec(e.index,this._tmpP1),u=s.position1.getVec(e.index,this._tmpP2);(0,a.i)(c,c,o),(0,a.i)(u,u,o);const h=i[s.componentIndex.get(e.index)];this._addEdgeCandidate(t,h,c,u,n),$(t,h,c,n),$(t,h,u,n)}_addEdgeCandidate(t,e,n,r,o){if(!t.returnEdge)return;const i=t.mbs.center,s=(0,u.Cr)(n,r,this._tmpLineSegment),h=(0,u._I)(s,i,this._tmpP3);t.mbs.contains(h)&&o.push(new G(e,(0,c.o8)(h),(0,a.D)(i,h),(0,c.o8)(n),(0,c.o8)(r)))}};U=(0,r.Cg)([(0,s.$K)("esri.views.interactive.snapping.featureSources.sceneLayerSource.SceneLayerSnappingSourceWorker")],U);const X=U;function $(t,e,n,r){t.returnVertex&&t.mbs.contains(n)&&r.push(new Y(e,(0,c.o8)(n),(0,a.D)(t.mbs.center,n)))}class Z{constructor(t,e){this.id=t,this.bounds=e,this.info=null,this.uid=(0,i.c)()}}class tt{constructor(t,e,n){this.component=t,this.index=e,this.bounds=n}}},77690:(t,e,n)=>{n.d(e,{B8:()=>a,Ge:()=>f,I0:()=>l,KC:()=>c,a4:()=>u,hZ:()=>i,hs:()=>d,lw:()=>h,mg:()=>s,z0:()=>o});var r=n(34304);function o(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[4],t[4]=e[5],t[5]=e[6],t[6]=e[8],t[7]=e[9],t[8]=e[10],t}function i(t,e,n,r,o,i,s,a,c,u){return t[0]=e,t[1]=n,t[2]=r,t[3]=o,t[4]=i,t[5]=s,t[6]=a,t[7]=c,t[8]=u,t}function s(t,e){if(t===e){const n=e[1],r=e[2],o=e[5];t[1]=e[3],t[2]=e[6],t[3]=n,t[5]=e[7],t[6]=r,t[7]=o}else t[0]=e[0],t[1]=e[3],t[2]=e[6],t[3]=e[1],t[4]=e[4],t[5]=e[7],t[6]=e[2],t[7]=e[5],t[8]=e[8];return t}function a(t,e){const n=e[0],r=e[1],o=e[2],i=e[3],s=e[4],a=e[5],c=e[6],u=e[7],h=e[8],d=h*s-a*u,l=-h*i+a*c,f=u*i-s*c;let m=n*d+r*l+o*f;return m?(m=1/m,t[0]=d*m,t[1]=(-h*r+o*u)*m,t[2]=(a*r-o*s)*m,t[3]=l*m,t[4]=(h*n-o*c)*m,t[5]=(-a*n+o*i)*m,t[6]=f*m,t[7]=(-u*n+r*c)*m,t[8]=(s*n-r*i)*m,t):null}function c(t,e){const n=e[0],r=e[1],o=e[2],i=e[3],s=e[4],a=e[5],c=e[6],u=e[7],h=e[8];return t[0]=s*h-a*u,t[1]=o*u-r*h,t[2]=r*a-o*s,t[3]=a*c-i*h,t[4]=n*h-o*c,t[5]=o*i-n*a,t[6]=i*u-s*c,t[7]=r*c-n*u,t[8]=n*s-r*i,t}function u(t){const e=t[0],n=t[1],r=t[2],o=t[3],i=t[4],s=t[5],a=t[6],c=t[7],u=t[8];return e*(u*i-s*c)+n*(-u*o+s*a)+r*(c*o-i*a)}function h(t,e,n){const r=e[0],o=e[1],i=e[2],s=e[3],a=e[4],c=e[5],u=e[6],h=e[7],d=e[8],l=n[0],f=n[1],m=n[2],p=n[3],b=n[4],_=n[5],g=n[6],M=n[7],S=n[8];return t[0]=l*r+f*s+m*u,t[1]=l*o+f*a+m*h,t[2]=l*i+f*c+m*d,t[3]=p*r+b*s+_*u,t[4]=p*o+b*a+_*h,t[5]=p*i+b*c+_*d,t[6]=g*r+M*s+S*u,t[7]=g*o+M*a+S*h,t[8]=g*i+M*c+S*d,t}function d(t,e,n){const r=n[0],o=n[1],i=n[2];return t[0]=r*e[0],t[1]=r*e[1],t[2]=r*e[2],t[3]=o*e[3],t[4]=o*e[4],t[5]=o*e[5],t[6]=i*e[6],t[7]=i*e[7],t[8]=i*e[8],t}function l(t,e){const n=e[0],r=e[1],o=e[2],i=e[3],s=n+n,a=r+r,c=o+o,u=n*s,h=r*s,d=r*a,l=o*s,f=o*a,m=o*c,p=i*s,b=i*a,_=i*c;return t[0]=1-d-m,t[3]=h-_,t[6]=l+b,t[1]=h+_,t[4]=1-u-m,t[7]=f-p,t[2]=l-b,t[5]=f+p,t[8]=1-u-d,t}function f(t,e){const n=e[0],r=e[1],o=e[2],i=e[3],s=e[4],a=e[5],c=e[6],u=e[7],h=e[8],d=e[9],l=e[10],f=e[11],m=e[12],p=e[13],b=e[14],_=e[15],g=n*a-r*s,M=n*c-o*s,S=n*u-i*s,v=r*c-o*a,j=r*u-i*a,y=o*u-i*c,x=h*p-d*m,w=h*b-l*m,O=h*_-f*m,T=d*b-l*p,A=d*_-f*p,E=l*_-f*b;let z=g*E-M*A+S*T+v*O-j*w+y*x;return z?(z=1/z,t[0]=(a*E-c*A+u*T)*z,t[1]=(c*O-s*E-u*w)*z,t[2]=(s*A-a*O+u*x)*z,t[3]=(o*A-r*E-i*T)*z,t[4]=(n*E-o*O+i*w)*z,t[5]=(r*O-n*A-i*x)*z,t[6]=(p*y-b*j+_*v)*z,t[7]=(b*S-m*y-_*M)*z,t[8]=(m*j-p*S+_*g)*z,t):null}function m(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t[6]=e[6]-n[6],t[7]=e[7]-n[7],t[8]=e[8]-n[8],t}const p=h,b=m;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t[8]=e[8]+n[8],t},adjoint:c,copy:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t},determinant:u,equals:function(t,e){const n=t[0],o=t[1],i=t[2],s=t[3],a=t[4],c=t[5],u=t[6],h=t[7],d=t[8],l=e[0],f=e[1],m=e[2],p=e[3],b=e[4],_=e[5],g=e[6],M=e[7],S=e[8],v=(0,r.FD)();return Math.abs(n-l)<=v*Math.max(1,Math.abs(n),Math.abs(l))&&Math.abs(o-f)<=v*Math.max(1,Math.abs(o),Math.abs(f))&&Math.abs(i-m)<=v*Math.max(1,Math.abs(i),Math.abs(m))&&Math.abs(s-p)<=v*Math.max(1,Math.abs(s),Math.abs(p))&&Math.abs(a-b)<=v*Math.max(1,Math.abs(a),Math.abs(b))&&Math.abs(c-_)<=v*Math.max(1,Math.abs(c),Math.abs(_))&&Math.abs(u-g)<=v*Math.max(1,Math.abs(u),Math.abs(g))&&Math.abs(h-M)<=v*Math.max(1,Math.abs(h),Math.abs(M))&&Math.abs(d-S)<=v*Math.max(1,Math.abs(d),Math.abs(S))},exactEquals:function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]},frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+t[6]**2+t[7]**2+t[8]**2)},fromMat2d:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=0,t[3]=e[2],t[4]=e[3],t[5]=0,t[6]=e[4],t[7]=e[5],t[8]=1,t},fromMat4:o,fromQuat:l,fromRotation:function(t,e){const n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=n,t[2]=0,t[3]=-n,t[4]=r,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromScaling:function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=e[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromTranslation:function(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=e[0],t[7]=e[1],t[8]=1,t},identity:function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},invert:a,isOrthoNormal:function(t){const e=(0,r.FD)(),n=t[0],o=t[1],i=t[2],s=t[3],a=t[4],c=t[5],u=t[6],h=t[7],d=t[8];return Math.abs(1-(n*n+s*s+u*u))<=e&&Math.abs(1-(o*o+a*a+h*h))<=e&&Math.abs(1-(i*i+c*c+d*d))<=e},mul:p,multiply:h,multiplyScalar:function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*n,t},multiplyScalarAndAdd:function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t[4]=e[4]+n[4]*r,t[5]=e[5]+n[5]*r,t[6]=e[6]+n[6]*r,t[7]=e[7]+n[7]*r,t[8]=e[8]+n[8]*r,t},normalFromMat4:f,normalFromMat4Legacy:function(t,e){const n=e[0],r=e[1],o=e[2],i=e[4],s=e[5],a=e[6],c=e[8],u=e[9],h=e[10],d=h*s-a*u,l=-h*i+a*c,f=u*i-s*c,m=n*d+r*l+o*f;if(!m)return null;const p=1/m;return t[0]=d*p,t[1]=(-h*r+o*u)*p,t[2]=(a*r-o*s)*p,t[3]=l*p,t[4]=(h*n-o*c)*p,t[5]=(-a*n+o*i)*p,t[6]=f*p,t[7]=(-u*n+r*c)*p,t[8]=(s*n-r*i)*p,t},projection:function(t,e,n){return t[0]=2/e,t[1]=0,t[2]=0,t[3]=0,t[4]=-2/n,t[5]=0,t[6]=-1,t[7]=1,t[8]=1,t},rotate:function(t,e,n){const r=e[0],o=e[1],i=e[2],s=e[3],a=e[4],c=e[5],u=e[6],h=e[7],d=e[8],l=Math.sin(n),f=Math.cos(n);return t[0]=f*r+l*s,t[1]=f*o+l*a,t[2]=f*i+l*c,t[3]=f*s-l*r,t[4]=f*a-l*o,t[5]=f*c-l*i,t[6]=u,t[7]=h,t[8]=d,t},scale:d,scaleByVec2:function(t,e,n){const r=n[0],o=n[1];return t[0]=r*e[0],t[1]=r*e[1],t[2]=r*e[2],t[3]=o*e[3],t[4]=o*e[4],t[5]=o*e[5],t},set:i,str:function(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"},sub:b,subtract:m,translate:function(t,e,n){const r=e[0],o=e[1],i=e[2],s=e[3],a=e[4],c=e[5],u=e[6],h=e[7],d=e[8],l=n[0],f=n[1];return t[0]=r,t[1]=o,t[2]=i,t[3]=s,t[4]=a,t[5]=c,t[6]=l*r+f*s+u,t[7]=l*o+f*a+h,t[8]=l*i+f*c+d,t},transpose:s},Symbol.toStringTag,{value:"Module"}))},82534:(t,e,n)=>{function r(){return[0,0,0,1]}function o(t){return[t[0],t[1],t[2],t[3]]}n.d(e,{o8:()=>o,vt:()=>r,zK:()=>i});const i=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:i,clone:o,create:r,fromValues:function(t,e,n,r){return[t,e,n,r]}},Symbol.toStringTag,{value:"Module"}))},91869:(t,e,n)=>{function r(t,e){for(const n of t.values())if(e(n))return!0;return!1}function o(t,e,n){const r=t.get(e);if(void 0!==r)return r;const o=n();return t.set(e,o),o}function i(t){const e=new Map;return n=>(e.has(n)||e.set(n,t(n)),e.get(n))}n.d(e,{Bj:()=>i,Bs:()=>r,tE:()=>o})}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[784],{9093:(t,e,n)=>{function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function o(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]]}n.d(e,{o8:()=>o,vt:()=>r,zK:()=>i});const i=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:i,clone:o,create:r,fromValues:function(t,e,n,r,o,i,s,a,c,u,h,d,l,f,m,p){return[t,e,n,r,o,i,s,a,c,u,h,d,l,f,m,p]}},Symbol.toStringTag,{value:"Module"}))},27921:(t,e,n)=>{n.d(e,{$Q:()=>T,C:()=>u,Cr:()=>f,LV:()=>c,O_:()=>l,Qj:()=>h,T7:()=>x,Tj:()=>O,Ui:()=>y,_I:()=>A,fA:()=>d,gv:()=>w,lU:()=>m,mN:()=>E,mP:()=>v,mR:()=>j,vE:()=>P,vt:()=>a});var r=n(34727),o=n(38954),i=n(51850),s=(n(87317),n(44280),n(32114));function a(t=N){return[t[0],t[1],t[2],t[3]]}function c(t=N[0],e=N[1],n=N[2],r=N[3]){return d(t,e,n,r,s.Km.get())}function u(t,e){return d(e[0],e[1],e[2],e[3],t)}function h(t){return t}function d(t,e,n,r,o=a()){return o[0]=t,o[1]=e,o[2]=n,o[3]=r,o}function l(t,e,n){const r=e[0]*e[0]+e[1]*e[1]+e[2]*e[2],o=Math.abs(r-1)>1e-5&&r>1e-12?1/Math.sqrt(r):1;return n[0]=e[0]*o,n[1]=e[1]*o,n[2]=e[2]*o,n[3]=-(n[0]*t[0]+n[1]*t[1]+n[2]*t[2]),n}function f(t,e,n,r=a()){const o=n[0]-e[0],i=n[1]-e[1],s=n[2]-e[2],c=t[0]-e[0],u=t[1]-e[1],h=t[2]-e[2],d=i*h-s*u,l=s*c-o*h,f=o*u-i*c,m=d*d+l*l+f*f,p=Math.abs(m-1)>1e-5&&m>1e-12?1/Math.sqrt(m):1;return r[0]=d*p,r[1]=l*p,r[2]=f*p,r[3]=-(r[0]*t[0]+r[1]*t[1]+r[2]*t[2]),r}function m(t,e,n,r=0,i=Math.floor(n*(1/3)),s=Math.floor(n*(2/3))){if(n<3)return!1;e(b,r);let a=i,c=!1;for(;a<n-1&&!c;)e(_,a),a++,c=!(0,o.m)(b,_);if(!c)return!1;for(a=Math.max(a,s),c=!1;a<n&&!c;)e(g,a),a++,(0,o.e)(M,b,_),(0,o.n)(M,M),(0,o.e)(S,_,g),(0,o.n)(S,S),c=!(0,o.m)(b,g)&&!(0,o.m)(_,g)&&Math.abs((0,o.g)(M,S))<p;return c?(f(b,_,g,t),!0):(0!==r||1!==i||2!==s)&&m(t,e,n,0,1,2)}n(32728);const p=.99619469809,b=(0,i.vt)(),_=(0,i.vt)(),g=(0,i.vt)(),M=(0,i.vt)(),S=(0,i.vt)();function v(t,e,n){return e!==t&&u(t,e),t[3]=-(0,o.g)(t,n),t}function j(t,e,n,r){return(0,o.f)(g,e,t),l(n,g,r)}function y(t,e,n){return null!=e&&z(P(t,e.origin,e.direction,C,n))}function x(t,e,n){return z(P(t,e.origin,e.vector,0,n))}function w(t,e,n){return z(P(t,e.origin,e.vector,1,n))}function O(t,e){return E(t,e)>=0}function T(t,e){const n=(0,o.g)(t,e.ray.direction),r=-E(t,e.ray.origin);if(r<0&&n>=0)return!1;if(n>-1e-6&&n<1e-6)return r>0;if((r<0||n<0)&&!(r<0&&n<0))return!0;const i=r/n;return n>0?i<e.c1&&(e.c1=i):i>e.c0&&(e.c0=i),e.c0<=e.c1}function A(t,e,n){const r=(0,o.j)(s.rq.get(),t,-t[3]),i=function(t,e,n){const r=(0,o.j)(s.rq.get(),t,(0,o.g)(t,e));return(0,o.e)(n,e,r),n}(t,(0,o.e)(s.rq.get(),e,r),s.rq.get());return(0,o.i)(n,i,r),n}function E(t,e){return(0,o.g)(t,e)+t[3]}function z(t){return 0===t||1===t}function P(t,e,n,i,s){const a=(0,o.g)(t,n),c=E(t,e);if(0===a)return c>=0?2:3;let u=-c/a;return 1&i&&(u=(0,r.qE)(u,0,1)),!(4&i)&&u<0||!(8&i)&&u>1?c>=0?2:3:((0,o.i)(s,e,(0,o.j)(s,n,u)),c>=0?0:1)}const N=[0,0,1,0],C=8},29242:(t,e,n)=>{function r(){return[1,0,0,0,1,0,0,0,1]}function o(t,e,n,r,o,i,s,a,c){return[t,e,n,r,o,i,s,a,c]}n.d(e,{fA:()=>o,vt:()=>r,zK:()=>i});const i=[1,0,0,0,1,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:i,clone:function(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8]]},create:r,fromValues:o},Symbol.toStringTag,{value:"Module"}))},31635:(t,e,n)=>{function r(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s}function o(t,e,n){if(null!=e){if("object"!=typeof e&&"function"!=typeof e)throw new TypeError("Object expected.");var r,o;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=e[Symbol.asyncDispose]}if(void 0===r){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=e[Symbol.dispose],n&&(o=r)}if("function"!=typeof r)throw new TypeError("Object not disposable.");o&&(r=function(){try{o.call(this)}catch(t){return Promise.reject(t)}}),t.stack.push({value:e,dispose:r,async:n})}else n&&t.stack.push({async:!0});return e}n.d(e,{Cg:()=>r,hk:()=>s,mS:()=>o}),Object.create,Object.create;var i="function"==typeof SuppressedError?SuppressedError:function(t,e,n){var r=new Error(n);return r.name="SuppressedError",r.error=t,r.suppressed=e,r};function s(t){function e(e){t.error=t.hasError?new i(e,t.error,"An error was suppressed during disposal."):e,t.hasError=!0}var n,r=0;return function o(){for(;n=t.stack.pop();)try{if(!n.async&&1===r)return r=0,t.stack.push(n),Promise.resolve().then(o);if(n.dispose){var i=n.dispose.call(n.value);if(n.async)return r|=2,Promise.resolve(i).then(o,function(t){return e(t),o()})}else r|=1}catch(t){e(t)}if(1===r)return t.hasError?Promise.reject(t.error):Promise.resolve();if(t.hasError)throw t.error}()}},32114:(t,e,n)=>{n.d(e,{Rc:()=>f,J8:()=>m,rq:()=>d,Km:()=>l}),n(44208);var r=n(26390),o=n(29242),i=n(9093),s=n(82534),a=n(48163),c=n(51850),u=n(91829);class h{constructor(t){this._create=t,this._items=new Array,this._itemsPtr=0}get(){return 0===this._itemsPtr&&(0,r.d)(()=>this._reset()),this._itemsPtr>=this._items.length&&this._items.push(this._create()),this._items[this._itemsPtr++]}_reset(){const t=2*this._itemsPtr;this._items.length>t&&(this._items.length=t),this._itemsPtr=0}static createVec2f64(){return new h(a.vt)}static createVec3f64(){return new h(c.vt)}static createVec4f64(){return new h(u.vt)}static createMat3f64(){return new h(o.vt)}static createMat4f64(){return new h(i.vt)}static createQuatf64(){return new h(s.vt)}get test(){}}h.createVec2f64();const d=h.createVec3f64(),l=h.createVec4f64(),f=(h.createMat3f64(),h.createMat4f64()),m=h.createQuatf64()},32728:(t,e,n)=>{n.d(e,{nu:()=>s,wp:()=>i}),n(34727);var r=n(38954),o=n(51850);function i(t,e){const n=Math.sqrt(e[0]*e[0]+e[4]*e[4]+e[8]*e[8]),o=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,r.h)(t,n,o,i),t}function s(t,e,n,i=(0,o.vt)()){const s=(0,r.b)(t),u=(0,r.b)(e),h=(0,r.g)(t,e)/(s*u);if(h<.9999999999999999){const o=Math.acos(h),d=((1-n)*s+n*u)/Math.sin(o),l=d/s*Math.sin((1-n)*o),f=d/u*Math.sin(n*o);return(0,r.j)(a,t,l),(0,r.j)(c,e,f),(0,r.i)(i,a,c)}return(0,r.l)(i,t,e,n)}(0,o.vt)(),(0,o.vt)(),(0,o.vt)();const a=(0,o.vt)(),c=(0,o.vt)()},44280:(t,e,n)=>{n.d(e,{EJ:()=>c,g7:()=>a,gr:()=>s});var r=n(34727),o=n(38954),i=n(51850);function s(t,e){return(0,o.g)(t,e)/(0,o.b)(t)}function a(t,e){const n=(0,o.g)(t,e)/((0,o.b)(t)*(0,o.b)(e));return-(0,r.XM)(n)}function c(t,e,n){(0,o.n)(u,t),(0,o.n)(h,e);const i=(0,o.g)(u,h),s=(0,r.XM)(i),a=(0,o.f)(u,u,h);return(0,o.g)(a,n)<0?2*Math.PI-s:s}const u=(0,i.vt)(),h=(0,i.vt)()},70491:(t,e,n)=>{n.r(e),n.d(e,{default:()=>X});var r=n(31635),o=n(74887),i=n(24326),s=n(91429),a=n(38954),c=n(51850),u=n(11964),h=n(94008),d=n(93687),l=n(15142),f=n(82919),m=n(71351),p=n(620);class b{get bounds(){return this._root.bounds}get halfSize(){return this._root.halfSize}get root(){return this._root.node}get maximumObjectsPerNode(){return this._maximumObjectsPerNode}get maximumDepth(){return this._maximumDepth}get objectCount(){return this._objectCount}constructor(t,e){this.objectToBoundingSphere=t,this._maximumObjectsPerNode=10,this._maximumDepth=20,this._degenerateObjects=new Set,this._root=new _,this._objectCount=0,e&&(void 0!==e.maximumObjectsPerNode&&(this._maximumObjectsPerNode=e.maximumObjectsPerNode),void 0!==e.maximumDepth&&(this._maximumDepth=e.maximumDepth))}destroy(){this._degenerateObjects.clear(),_.clearPool(),C[0]=null,F.prune(),J.prune()}add(t){const e=Array.from(t);this._grow(e);const n=_.acquire();for(const t of e)++this._objectCount,this._isDegenerate(t)?this._degenerateObjects.add(t):(n.init(this._root),this._add(t,n));_.release(n)}remove(t,e=null){this._objectCount-=t.length;const n=_.acquire();for(const r of t){const t=e??this.objectToBoundingSphere(r);E(t.radius)?(n.init(this._root),S(r,t,n)):this._degenerateObjects.delete(r)}_.release(n),this._shrink()}update(t,e){if(!E(e.radius)&&this._isDegenerate(t))return;const n=function(t){return C[0]=t,C}(t);this.remove(n,e),this.add(n)}forEachAlongRay(t,e,n){const r=(0,m.LV)(t,e);g(this._root,t=>{if(!function(t,e){return w(e.bounds.center,2*-e.halfSize,B),w(e.bounds.center,2*e.halfSize,R),(0,p.O_)(t.origin,t.direction,B,R)}(r,t))return!1;const e=t.node;return e.terminals.forAll(t=>{this._intersectsObject(r,t)&&n(t)}),null!==e.residents&&e.residents.forAll(t=>{this._intersectsObject(r,t)&&n(t)}),!0})}forEachAlongRayWithVerticalOffset(t,e,n,r){const o=(0,m.LV)(t,e);g(this._root,t=>{if(!function(t,e,n){return w(e.bounds.center,2*-e.halfSize,B),w(e.bounds.center,2*e.halfSize,R),n.applyToMinMax(B,R),(0,p.O_)(t.origin,t.direction,B,R)}(o,t,r))return!1;const e=t.node;return e.terminals.forAll(t=>{this._intersectsObjectWithOffset(o,t,r)&&n(t)}),null!==e.residents&&e.residents.forAll(t=>{this._intersectsObjectWithOffset(o,t,r)&&n(t)}),!0})}forEach(t){g(this._root,e=>{const n=e.node;return n.terminals.forAll(t),null!==n.residents&&n.residents.forAll(t),!0}),this._degenerateObjects.forEach(t)}forEachDegenerateObject(t){this._degenerateObjects.forEach(t)}findClosest(t,e,n,r=()=>!0,o=1/0){let i=1/0,s=1/0,c=null;const u=T(t,e),h=a=>{if(--o,!r(a))return;const u=this.objectToBoundingSphere(a);if(!(0,f.m7)(n,u))return;const h=A(t,e,u.center),d=h-u.radius,l=h+u.radius;d<i&&(i=d,s=l,c=a)};return M(this._root,r=>{if(o<=0||!(0,f.m7)(n,r.bounds))return!1;if((0,a.j)(q,u,r.halfSize),(0,a.i)(q,q,r.bounds.center),A(t,e,q)>s)return!1;const i=r.node;return i.terminals.forAll(t=>h(t)),null!==i.residents&&i.residents.forAll(t=>h(t)),!0},t,e),c}forEachInDepthRange(t,e,n,r,o,i,s){let c=-1/0,u=1/0;const h={setRange:t=>{1===n?(c=Math.max(c,t.near),u=Math.min(u,t.far)):(c=Math.max(c,-t.far),u=Math.min(u,-t.near))}};h.setRange(r);const d=A(e,n,t),l=T(e,n),m=T(e,-n),p=t=>{if(!s(t))return;const r=this.objectToBoundingSphere(t),a=A(e,n,r.center)-d,l=a-r.radius,m=a+r.radius;l>u||m<c||!(0,f.m7)(i,r)||o(t,h)};M(this._root,t=>{if(!(0,f.m7)(i,t.bounds))return!1;if((0,a.j)(q,l,t.halfSize),(0,a.i)(q,q,t.bounds.center),A(e,n,q)-d>u)return!1;if((0,a.j)(q,m,t.halfSize),(0,a.i)(q,q,t.bounds.center),A(e,n,q)-d<c)return!1;const r=t.node;return r.terminals.forAll(t=>p(t)),null!==r.residents&&r.residents.forAll(t=>p(t)),!0},e,n)}forEachNode(t){g(this._root,e=>t(e.node,e.bounds,e.halfSize,e.depth))}forEachNeighbor(t,e){const n=e.radius,r=e.center,o=e=>{const o=this.objectToBoundingSphere(e),i=o.radius,s=n+i;return!((0,a.s)(o.center,r)-s*s<=0)||t(e)};let i=!0;const s=t=>{i&&(i=o(t))};g(this._root,t=>{const e=t.bounds.radius,o=n+e;if((0,a.s)(t.bounds.center,r)-o*o>0)return!1;const c=t.node;return c.terminals.forAll(s),i&&null!==c.residents&&c.residents.forAll(s),i}),i&&this.forEachDegenerateObject(s)}_intersectsObject(t,e){const n=this.objectToBoundingSphere(e);return!(n.radius>0)||n.intersectRay(t)}_intersectsObjectWithOffset(t,e,n){const r=this.objectToBoundingSphere(e);return!(r.radius>0)||n.applyToBoundingSphere(r).intersectRay(t)}_add(t,e){e.advanceTo(this.objectToBoundingSphere(t))?e.node.terminals.push(t):(e.node.residents.push(t),e.node.residents.length>this._maximumObjectsPerNode&&e.depth<this._maximumDepth&&this._split(e))}_split(t){const e=t.node.residents;t.node.residents=null;for(let n=0;n<e.length;n++){const r=_.acquire().init(t);this._add(e.at(n),r),_.release(r)}}_grow(t){if(O(t,t=>this.objectToBoundingSphere(t),I),E(I.radius)&&!this._fitsInsideTree(I))if(j(this._root.node))this._root.bounds.copyFrom(I),this._root.halfSize=1.25*this._root.bounds.radius,this._root.updateBoundsRadiusFromHalfSize();else{const t=this._rootBoundsForRootAsSubNode(I);this._placingRootViolatesMaxDepth(t)?this._rebuildTree(I,t):this._growRootAsSubNode(t),_.release(t)}}_rebuildTree(t,e){V.center=e.bounds.center,V.radius=e.halfSize,O([t,V],t=>t,L);const n=_.acquire().init(this._root);this._root.initFrom(null,L,L.radius),this._root.increaseHalfSize(1.25),g(n,t=>(this.add(t.node.terminals.data),null!==t.node.residents&&this.add(t.node.residents.data),!0)),_.release(n)}_placingRootViolatesMaxDepth(t){const e=Math.log(t.halfSize/this._root.halfSize)*Math.LOG2E;let n=0;return g(this._root,t=>(n=Math.max(n,t.depth),n+e<=this._maximumDepth)),n+e>this._maximumDepth}_rootBoundsForRootAsSubNode(t){const e=t.radius,n=t.center;let r=-1/0;const o=this._root.bounds.center,i=this._root.halfSize;for(let t=0;t<3;t++){const s=o[t]-i-(n[t]-e),a=n[t]+e-(o[t]+i),c=Math.max(0,Math.ceil(s/(2*i))),u=Math.max(0,Math.ceil(a/(2*i)))+1,h=2**Math.ceil(Math.log(c+u)*Math.LOG2E);r=Math.max(r,h),k[t].min=c,k[t].max=u}for(let t=0;t<3;t++){let e=k[t].min,n=k[t].max;const s=(r-(e+n))/2;e+=Math.ceil(s),n+=Math.floor(s);const a=o[t]-i-e*i*2;D.center[t]=a+(n+e)*i}const s=r*i;return D.radius=s*N,_.acquire().initFrom(null,D,s,0)}_growRootAsSubNode(t){const e=this._root.node;I.center=this._root.bounds.center,I.radius=this._root.halfSize,this._root.init(t),t.advanceTo(I,null,!0),t.node.children=e.children,t.node.residents=e.residents,t.node.terminals=e.terminals}_shrink(){for(;;){const t=this._findShrinkIndex();if(-1===t)break;this._root.advance(t),this._root.depth=0}}_findShrinkIndex(){if(0!==this._root.node.terminals.length||this._root.isLeaf())return-1;let t=null;const e=this._root.node.children;let n=0,r=0;for(;r<e.length&&null==t;)n=r++,t=e[n];for(;r<e.length;)if(e[r++])return-1;return n}_isDegenerate(t){return!E(this.objectToBoundingSphere(t).radius)}_fitsInsideTree(t){const e=this._root.bounds,n=this._root.halfSize;return t.radius<=n&&t.center[0]>=e.center[0]-n&&t.center[0]<=e.center[0]+n&&t.center[1]>=e.center[1]-n&&t.center[1]<=e.center[1]+n&&t.center[2]>=e.center[2]-n&&t.center[2]<=e.center[2]+n}toJSON(){const{maximumDepth:t,maximumObjectsPerNode:e,_objectCount:n}=this,r=this._nodeToJSON(this._root.node);return{maximumDepth:t,maximumObjectsPerNode:e,objectCount:n,root:{bounds:this._root.bounds,halfSize:this._root.halfSize,depth:this._root.depth,node:r}}}_nodeToJSON(t){const e=t.children.map(t=>t?this._nodeToJSON(t):null),n=t.residents?.map(t=>this.objectToBoundingSphere(t)),r=t.terminals?.map(t=>this.objectToBoundingSphere(t));return{children:e,residents:n,terminals:r}}static fromJSON(t){const e=new b(t=>t,{maximumDepth:t.maximumDepth,maximumObjectsPerNode:t.maximumObjectsPerNode});return e._objectCount=t.objectCount,e._root.initFrom(t.root.node,t.root.bounds,t.root.halfSize,t.root.depth),e}}class _{constructor(){this.bounds=new h.iy,this.halfSize=0,this.initFrom(null,null,0,0)}init(t){return this.initFrom(t.node,t.bounds,t.halfSize,t.depth)}initFrom(t,e,n,r=this.depth){return this.node=null!=t?t:_.createEmptyNode(),e&&this.bounds.copyFrom(e),this.halfSize=n,this.depth=r,this}increaseHalfSize(t){this.halfSize*=t,this.updateBoundsRadiusFromHalfSize()}updateBoundsRadiusFromHalfSize(){this.bounds.radius=this.halfSize*N}advance(t){let e=this.node.children[t];e||(e=_.createEmptyNode(),this.node.children[t]=e),this.node=e,this.halfSize/=2,this.depth++;const n=z[t];return this.bounds.center[0]+=n[0]*this.halfSize,this.bounds.center[1]+=n[1]*this.halfSize,this.bounds.center[2]+=n[2]*this.halfSize,this.updateBoundsRadiusFromHalfSize(),this}advanceTo(t,e,n=!1){for(;;){if(this.isTerminalFor(t))return e?.(this,-1),!0;if(this.isLeaf()){if(!n)return e?.(this,-1),!1;this.node.residents=null}const r=this._childIndex(t);e?.(this,r),this.advance(r)}}isLeaf(){return null!=this.node.residents}isTerminalFor(t){return t.radius>this.halfSize/2}_childIndex(t){const e=this.bounds.center;return(e[0]<t.center[0]?1:0)+(e[1]<t.center[1]?2:0)+(e[2]<t.center[2]?4:0)}static createEmptyNode(){return{children:[null,null,null,null,null,null,null,null],terminals:new l.A({shrink:!0}),residents:new l.A({shrink:!0})}}static{this._pool=new d.A(()=>new _)}static acquire(){return _._pool.acquire()}static release(t){_._pool.release(t)}static clearPool(){_._pool.prune()}}function g(t,e){let n=_.acquire().init(t);const r=[n];for(;0!==r.length;){if(n=r.pop(),e(n)&&!n.isLeaf())for(let t=0;t<n.node.children.length;t++)n.node.children[t]&&r.push(_.acquire().init(n).advance(t));_.release(n)}}function M(t,e,n,r=1){let o=_.acquire().init(t);const i=[o];for(function(t,e,n){if(!J.length)for(let t=0;t<8;++t)J.push({index:0,distance:0});for(let n=0;n<8;++n){const r=z[n];J.data[n].index=n,J.data[n].distance=A(t,e,r)}J.sort((t,e)=>t.distance-e.distance);for(let t=0;t<8;++t)n[t]=J.data[t].index}(n,r,H);0!==i.length;){if(o=i.pop(),e(o)&&!o.isLeaf())for(let t=7;t>=0;--t){const e=H[t];o.node.children[e]&&i.push(_.acquire().init(o).advance(e))}_.release(o)}}function S(t,e,n){F.clear();const r=n.advanceTo(e,(t,e)=>{F.push(t.node),F.push(e)})?n.node.terminals:n.node.residents;if(r.removeUnordered(t),0===r.length)for(let t=F.length-2;t>=0&&v(F.data[t],F.data[t+1]);t-=2);}function v(t,e){return e>=0&&(t.children[e]=null),!!j(t)&&(null===t.residents&&(t.residents=new l.A({shrink:!0})),!0)}function j(t){if(0!==t.terminals.length)return!1;if(null!==t.residents)return 0===t.residents.length;for(let e=0;e<t.children.length;e++)if(t.children[e])return!1;return!0}function y(t,e){t[0]=Math.min(t[0],e.center[0]-e.radius),t[1]=Math.min(t[1],e.center[1]-e.radius),t[2]=Math.min(t[2],e.center[2]-e.radius)}function x(t,e){t[0]=Math.max(t[0],e.center[0]+e.radius),t[1]=Math.max(t[1],e.center[1]+e.radius),t[2]=Math.max(t[2],e.center[2]+e.radius)}function w(t,e,n){n[0]=t[0]+e,n[1]=t[1]+e,n[2]=t[2]+e}function O(t,e,n){B[0]=1/0,B[1]=1/0,B[2]=1/0,R[0]=-1/0,R[1]=-1/0,R[2]=-1/0;for(const n of t){const t=e(n);E(t.radius)&&(y(B,t),x(R,t))}(0,a.l)(n.center,B,R,.5),n.radius=Math.max(R[0]-B[0],R[1]-B[1],R[2]-B[2])/2}function T(t,e){let n,r=1/0;for(let o=0;o<8;++o){const i=A(t,e,P[o]);i<r&&(r=i,n=P[o])}return n}function A(t,e,n){return e*(t[0]*n[0]+t[1]*n[1]+t[2]*n[2])}function E(t){return!isNaN(t)&&t!==-1/0&&t!==1/0&&t>0}const z=[(0,c.fA)(-1,-1,-1),(0,c.fA)(1,-1,-1),(0,c.fA)(-1,1,-1),(0,c.fA)(1,1,-1),(0,c.fA)(-1,-1,1),(0,c.fA)(1,-1,1),(0,c.fA)(-1,1,1),(0,c.fA)(1,1,1)],P=[(0,c.fA)(-1,-1,-1),(0,c.fA)(-1,-1,1),(0,c.fA)(-1,1,-1),(0,c.fA)(-1,1,1),(0,c.fA)(1,-1,-1),(0,c.fA)(1,-1,1),(0,c.fA)(1,1,-1),(0,c.fA)(1,1,1)],N=Math.sqrt(3),C=[null],D=new h.iy,q=(0,c.vt)(),B=(0,c.vt)(),R=(0,c.vt)(),F=new l.A,I=new h.iy,V=new h.iy,L=new h.iy,k=[{min:0,max:0},{min:0,max:0},{min:0,max:0}],J=new l.A,H=[0,0,0,0,0,0,0,0];var K=n(431);function Q(t,e,n){const r=new h.iy;return(0,a.j)(r.center,t,.5),(0,a.c)(r.center,r.center,e,.5),r.radius=(0,a.B)(r.center,t),(0,a.i)(r.center,r.center,n),r}class W{constructor(t,e,n){this.objectId=t,this.target=e,this.distance=n}}class Y extends W{constructor(t,e,n){super(t,e,n),this.type="vertex"}}class G extends W{constructor(t,e,n,r,o){super(t,e,n),this.start=r,this.end=o,this.type="edge"}}let U=class{constructor(){this._idToComponent=new Map,this._components=new b(t=>t.bounds),this._edges=new b(t=>t.bounds),this._tmpLineSegment=(0,u.vt)(),this._tmpP1=(0,c.vt)(),this._tmpP2=(0,c.vt)(),this._tmpP3=(0,c.vt)(),this.remoteClient=null}async fetchCandidates(t,e){await Promise.resolve(),(0,o.Te)(e);const n=t;n.mbs=new h.iy(t.mbsJSON),await this._ensureEdgeLocations(n,e);const r=[];return this._edges.forEachNeighbor(t=>(this._addCandidates(n,t,r),r.length<1e3),n.mbs),{result:{candidates:r}}}async _ensureEdgeLocations(t,e){const n=[];if(this._components.forEachNeighbor(t=>{if(null==t.info){const{id:e,uid:r}=t;n.push({id:e,uid:r})}return!0},t.mbs),!n.length)return;const r={components:n},o=await this.remoteClient.invoke("fetchAllEdgeLocations",r,e??{});for(const t of o.components)this._setFetchEdgeLocations(t)}async add(t){const e=new Z(t.id,new h.iy(t.bounds));return this._idToComponent.set(e.id,e),this._components.add([e]),{result:{}}}async remove(t){const e=this._idToComponent.get(t.id);if(e){const t=[];this._edges.forEachNeighbor(n=>(n.component===e&&t.push(n),!0),e.bounds),this._edges.remove(t),this._components.remove([e]),this._idToComponent.delete(e.id)}return{result:{}}}_setFetchEdgeLocations(t){const e=this._idToComponent.get(t.id);if(null==e||t.uid!==e.uid)return;const n=K.HY.createView(t.locations),r=new Array(n.count),o=(0,c.vt)(),i=(0,c.vt)();for(let s=0;s<n.count;s++){n.position0.getVec(s,o),n.position1.getVec(s,i);const a=Q(o,i,t.origin),c=new tt(e,s,a);r[s]=c}this._edges.add(r);const{objectIds:s,origin:a}=t;e.info={locations:n,objectIds:s,origin:a}}_addCandidates(t,e,n){const{info:r}=e.component,{origin:o,objectIds:i}=r,s=r.locations,c=s.position0.getVec(e.index,this._tmpP1),u=s.position1.getVec(e.index,this._tmpP2);(0,a.i)(c,c,o),(0,a.i)(u,u,o);const h=i[s.componentIndex.get(e.index)];this._addEdgeCandidate(t,h,c,u,n),$(t,h,c,n),$(t,h,u,n)}_addEdgeCandidate(t,e,n,r,o){if(!t.returnEdge)return;const i=t.mbs.center,s=(0,u.Cr)(n,r,this._tmpLineSegment),h=(0,u._I)(s,i,this._tmpP3);t.mbs.contains(h)&&o.push(new G(e,(0,c.o8)(h),(0,a.B)(i,h),(0,c.o8)(n),(0,c.o8)(r)))}};U=(0,r.Cg)([(0,s.$K)("esri.views.interactive.snapping.featureSources.sceneLayerSource.SceneLayerSnappingSourceWorker")],U);const X=U;function $(t,e,n,r){t.returnVertex&&t.mbs.contains(n)&&r.push(new Y(e,(0,c.o8)(n),(0,a.B)(t.mbs.center,n)))}class Z{constructor(t,e){this.id=t,this.bounds=e,this.info=null,this.uid=(0,i.c)()}}class tt{constructor(t,e,n){this.component=t,this.index=e,this.bounds=n}}},77690:(t,e,n)=>{n.d(e,{B8:()=>a,Ge:()=>f,I0:()=>l,KC:()=>c,a4:()=>u,hZ:()=>i,hs:()=>d,lw:()=>h,mg:()=>s,z0:()=>o});var r=n(34304);function o(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[4],t[4]=e[5],t[5]=e[6],t[6]=e[8],t[7]=e[9],t[8]=e[10],t}function i(t,e,n,r,o,i,s,a,c,u){return t[0]=e,t[1]=n,t[2]=r,t[3]=o,t[4]=i,t[5]=s,t[6]=a,t[7]=c,t[8]=u,t}function s(t,e){if(t===e){const n=e[1],r=e[2],o=e[5];t[1]=e[3],t[2]=e[6],t[3]=n,t[5]=e[7],t[6]=r,t[7]=o}else t[0]=e[0],t[1]=e[3],t[2]=e[6],t[3]=e[1],t[4]=e[4],t[5]=e[7],t[6]=e[2],t[7]=e[5],t[8]=e[8];return t}function a(t,e){const n=e[0],r=e[1],o=e[2],i=e[3],s=e[4],a=e[5],c=e[6],u=e[7],h=e[8],d=h*s-a*u,l=-h*i+a*c,f=u*i-s*c;let m=n*d+r*l+o*f;return m?(m=1/m,t[0]=d*m,t[1]=(-h*r+o*u)*m,t[2]=(a*r-o*s)*m,t[3]=l*m,t[4]=(h*n-o*c)*m,t[5]=(-a*n+o*i)*m,t[6]=f*m,t[7]=(-u*n+r*c)*m,t[8]=(s*n-r*i)*m,t):null}function c(t,e){const n=e[0],r=e[1],o=e[2],i=e[3],s=e[4],a=e[5],c=e[6],u=e[7],h=e[8];return t[0]=s*h-a*u,t[1]=o*u-r*h,t[2]=r*a-o*s,t[3]=a*c-i*h,t[4]=n*h-o*c,t[5]=o*i-n*a,t[6]=i*u-s*c,t[7]=r*c-n*u,t[8]=n*s-r*i,t}function u(t){const e=t[0],n=t[1],r=t[2],o=t[3],i=t[4],s=t[5],a=t[6],c=t[7],u=t[8];return e*(u*i-s*c)+n*(-u*o+s*a)+r*(c*o-i*a)}function h(t,e,n){const r=e[0],o=e[1],i=e[2],s=e[3],a=e[4],c=e[5],u=e[6],h=e[7],d=e[8],l=n[0],f=n[1],m=n[2],p=n[3],b=n[4],_=n[5],g=n[6],M=n[7],S=n[8];return t[0]=l*r+f*s+m*u,t[1]=l*o+f*a+m*h,t[2]=l*i+f*c+m*d,t[3]=p*r+b*s+_*u,t[4]=p*o+b*a+_*h,t[5]=p*i+b*c+_*d,t[6]=g*r+M*s+S*u,t[7]=g*o+M*a+S*h,t[8]=g*i+M*c+S*d,t}function d(t,e,n){const r=n[0],o=n[1],i=n[2];return t[0]=r*e[0],t[1]=r*e[1],t[2]=r*e[2],t[3]=o*e[3],t[4]=o*e[4],t[5]=o*e[5],t[6]=i*e[6],t[7]=i*e[7],t[8]=i*e[8],t}function l(t,e){const n=e[0],r=e[1],o=e[2],i=e[3],s=n+n,a=r+r,c=o+o,u=n*s,h=r*s,d=r*a,l=o*s,f=o*a,m=o*c,p=i*s,b=i*a,_=i*c;return t[0]=1-d-m,t[3]=h-_,t[6]=l+b,t[1]=h+_,t[4]=1-u-m,t[7]=f-p,t[2]=l-b,t[5]=f+p,t[8]=1-u-d,t}function f(t,e){const n=e[0],r=e[1],o=e[2],i=e[3],s=e[4],a=e[5],c=e[6],u=e[7],h=e[8],d=e[9],l=e[10],f=e[11],m=e[12],p=e[13],b=e[14],_=e[15],g=n*a-r*s,M=n*c-o*s,S=n*u-i*s,v=r*c-o*a,j=r*u-i*a,y=o*u-i*c,x=h*p-d*m,w=h*b-l*m,O=h*_-f*m,T=d*b-l*p,A=d*_-f*p,E=l*_-f*b;let z=g*E-M*A+S*T+v*O-j*w+y*x;return z?(z=1/z,t[0]=(a*E-c*A+u*T)*z,t[1]=(c*O-s*E-u*w)*z,t[2]=(s*A-a*O+u*x)*z,t[3]=(o*A-r*E-i*T)*z,t[4]=(n*E-o*O+i*w)*z,t[5]=(r*O-n*A-i*x)*z,t[6]=(p*y-b*j+_*v)*z,t[7]=(b*S-m*y-_*M)*z,t[8]=(m*j-p*S+_*g)*z,t):null}function m(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t[6]=e[6]-n[6],t[7]=e[7]-n[7],t[8]=e[8]-n[8],t}const p=h,b=m;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t[8]=e[8]+n[8],t},adjoint:c,copy:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t},determinant:u,equals:function(t,e){const n=t[0],o=t[1],i=t[2],s=t[3],a=t[4],c=t[5],u=t[6],h=t[7],d=t[8],l=e[0],f=e[1],m=e[2],p=e[3],b=e[4],_=e[5],g=e[6],M=e[7],S=e[8],v=(0,r.FD)();return Math.abs(n-l)<=v*Math.max(1,Math.abs(n),Math.abs(l))&&Math.abs(o-f)<=v*Math.max(1,Math.abs(o),Math.abs(f))&&Math.abs(i-m)<=v*Math.max(1,Math.abs(i),Math.abs(m))&&Math.abs(s-p)<=v*Math.max(1,Math.abs(s),Math.abs(p))&&Math.abs(a-b)<=v*Math.max(1,Math.abs(a),Math.abs(b))&&Math.abs(c-_)<=v*Math.max(1,Math.abs(c),Math.abs(_))&&Math.abs(u-g)<=v*Math.max(1,Math.abs(u),Math.abs(g))&&Math.abs(h-M)<=v*Math.max(1,Math.abs(h),Math.abs(M))&&Math.abs(d-S)<=v*Math.max(1,Math.abs(d),Math.abs(S))},exactEquals:function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]},frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+t[6]**2+t[7]**2+t[8]**2)},fromMat2d:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=0,t[3]=e[2],t[4]=e[3],t[5]=0,t[6]=e[4],t[7]=e[5],t[8]=1,t},fromMat4:o,fromQuat:l,fromRotation:function(t,e){const n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=n,t[2]=0,t[3]=-n,t[4]=r,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromScaling:function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=e[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromTranslation:function(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=e[0],t[7]=e[1],t[8]=1,t},identity:function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},invert:a,isOrthoNormal:function(t){const e=(0,r.FD)(),n=t[0],o=t[1],i=t[2],s=t[3],a=t[4],c=t[5],u=t[6],h=t[7],d=t[8];return Math.abs(1-(n*n+s*s+u*u))<=e&&Math.abs(1-(o*o+a*a+h*h))<=e&&Math.abs(1-(i*i+c*c+d*d))<=e},mul:p,multiply:h,multiplyScalar:function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*n,t},multiplyScalarAndAdd:function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t[4]=e[4]+n[4]*r,t[5]=e[5]+n[5]*r,t[6]=e[6]+n[6]*r,t[7]=e[7]+n[7]*r,t[8]=e[8]+n[8]*r,t},normalFromMat4:f,normalFromMat4Legacy:function(t,e){const n=e[0],r=e[1],o=e[2],i=e[4],s=e[5],a=e[6],c=e[8],u=e[9],h=e[10],d=h*s-a*u,l=-h*i+a*c,f=u*i-s*c,m=n*d+r*l+o*f;if(!m)return null;const p=1/m;return t[0]=d*p,t[1]=(-h*r+o*u)*p,t[2]=(a*r-o*s)*p,t[3]=l*p,t[4]=(h*n-o*c)*p,t[5]=(-a*n+o*i)*p,t[6]=f*p,t[7]=(-u*n+r*c)*p,t[8]=(s*n-r*i)*p,t},projection:function(t,e,n){return t[0]=2/e,t[1]=0,t[2]=0,t[3]=0,t[4]=-2/n,t[5]=0,t[6]=-1,t[7]=1,t[8]=1,t},rotate:function(t,e,n){const r=e[0],o=e[1],i=e[2],s=e[3],a=e[4],c=e[5],u=e[6],h=e[7],d=e[8],l=Math.sin(n),f=Math.cos(n);return t[0]=f*r+l*s,t[1]=f*o+l*a,t[2]=f*i+l*c,t[3]=f*s-l*r,t[4]=f*a-l*o,t[5]=f*c-l*i,t[6]=u,t[7]=h,t[8]=d,t},scale:d,scaleByVec2:function(t,e,n){const r=n[0],o=n[1];return t[0]=r*e[0],t[1]=r*e[1],t[2]=r*e[2],t[3]=o*e[3],t[4]=o*e[4],t[5]=o*e[5],t},set:i,str:function(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"},sub:b,subtract:m,translate:function(t,e,n){const r=e[0],o=e[1],i=e[2],s=e[3],a=e[4],c=e[5],u=e[6],h=e[7],d=e[8],l=n[0],f=n[1];return t[0]=r,t[1]=o,t[2]=i,t[3]=s,t[4]=a,t[5]=c,t[6]=l*r+f*s+u,t[7]=l*o+f*a+h,t[8]=l*i+f*c+d,t},transpose:s},Symbol.toStringTag,{value:"Module"}))},82534:(t,e,n)=>{function r(){return[0,0,0,1]}function o(t){return[t[0],t[1],t[2],t[3]]}n.d(e,{o8:()=>o,vt:()=>r,zK:()=>i});const i=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:i,clone:o,create:r,fromValues:function(t,e,n,r){return[t,e,n,r]}},Symbol.toStringTag,{value:"Module"}))},91869:(t,e,n)=>{function r(t,e){for(const n of t.values())if(e(n))return!0;return!1}function o(t,e,n){const r=t.get(e);if(void 0!==r)return r;const o=n();return t.set(e,o),o}function i(t){const e=new Map;return n=>(e.has(n)||e.set(n,t(n)),e.get(n))}n.d(e,{Bj:()=>i,Bs:()=>r,tE:()=>o})}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5066],{24770:(t,n,r)=>{r.d(n,{$I:()=>p,AU:()=>M,g7:()=>g,i4:()=>f,ui:()=>l,up:()=>v,vt:()=>c,yo:()=>m});var e=r(34727),o=r(58083),s=r(67026),a=r(82534),i=r(38954),u=r(51850);function c(t=v){return[t[0],t[1],t[2],t[3]]}function f(t,n,r=c()){return(0,i.d)(r,t),r[3]=n,r}function l(t,n=c()){const r=(0,o.l)(b,t);return d(n,(0,e.KJ)((0,s.Xd)(n,r))),n}function h(t,n,r=c()){return(0,s.x8)(b,t,p(t)),(0,s.x8)(y,n,p(n)),(0,s.lw)(b,y,b),d(r,(0,e.KJ)((0,s.Xd)(r,b)))}function M(t,n,r,e=c()){return f(u.Cw,t,w),f(u.JP,n,A),f(u.Cb,r,x),h(w,A,w),h(w,x,e),e}function m(t){return t}function g(t){return t[3]}function p(t){return(0,e.kU)(t[3])}function d(t,n){return t[3]=n,t}const v=[0,0,1,0],b=(0,a.vt)(),y=(0,a.vt)(),w=(c(),c()),A=c(),x=c()},27921:(t,n,r)=>{r.d(n,{$Q:()=>I,C:()=>c,Cr:()=>M,LV:()=>u,O_:()=>h,Qj:()=>f,T7:()=>q,Tj:()=>S,Ui:()=>x,_I:()=>j,fA:()=>l,gv:()=>_,lU:()=>m,mN:()=>P,mP:()=>w,mR:()=>A,vE:()=>N,vt:()=>i});var e=r(34727),o=r(38954),s=r(51850),a=(r(87317),r(44280),r(32114));function i(t=C){return[t[0],t[1],t[2],t[3]]}function u(t=C[0],n=C[1],r=C[2],e=C[3]){return l(t,n,r,e,a.Km.get())}function c(t,n){return l(n[0],n[1],n[2],n[3],t)}function f(t){return t}function l(t,n,r,e,o=i()){return o[0]=t,o[1]=n,o[2]=r,o[3]=e,o}function h(t,n,r){const e=n[0]*n[0]+n[1]*n[1]+n[2]*n[2],o=Math.abs(e-1)>1e-5&&e>1e-12?1/Math.sqrt(e):1;return r[0]=n[0]*o,r[1]=n[1]*o,r[2]=n[2]*o,r[3]=-(r[0]*t[0]+r[1]*t[1]+r[2]*t[2]),r}function M(t,n,r,e=i()){const o=r[0]-n[0],s=r[1]-n[1],a=r[2]-n[2],u=t[0]-n[0],c=t[1]-n[1],f=t[2]-n[2],l=s*f-a*c,h=a*u-o*f,M=o*c-s*u,m=l*l+h*h+M*M,g=Math.abs(m-1)>1e-5&&m>1e-12?1/Math.sqrt(m):1;return e[0]=l*g,e[1]=h*g,e[2]=M*g,e[3]=-(e[0]*t[0]+e[1]*t[1]+e[2]*t[2]),e}function m(t,n,r,e=0,s=Math.floor(r*(1/3)),a=Math.floor(r*(2/3))){if(r<3)return!1;n(p,e);let i=s,u=!1;for(;i<r-1&&!u;)n(d,i),i++,u=!(0,o.m)(p,d);if(!u)return!1;for(i=Math.max(i,a),u=!1;i<r&&!u;)n(v,i),i++,(0,o.e)(b,p,d),(0,o.n)(b,b),(0,o.e)(y,d,v),(0,o.n)(y,y),u=!(0,o.m)(p,v)&&!(0,o.m)(d,v)&&Math.abs((0,o.g)(b,y))<g;return u?(M(p,d,v,t),!0):(0!==e||1!==s||2!==a)&&m(t,n,r,0,1,2)}r(32728);const g=.99619469809,p=(0,s.vt)(),d=(0,s.vt)(),v=(0,s.vt)(),b=(0,s.vt)(),y=(0,s.vt)();function w(t,n,r){return n!==t&&c(t,n),t[3]=-(0,o.g)(t,r),t}function A(t,n,r,e){return(0,o.f)(v,n,t),h(r,v,e)}function x(t,n,r){return null!=n&&Z(N(t,n.origin,n.direction,X,r))}function q(t,n,r){return Z(N(t,n.origin,n.vector,0,r))}function _(t,n,r){return Z(N(t,n.origin,n.vector,1,r))}function S(t,n){return P(t,n)>=0}function I(t,n){const r=(0,o.g)(t,n.ray.direction),e=-P(t,n.ray.origin);if(e<0&&r>=0)return!1;if(r>-1e-6&&r<1e-6)return e>0;if((e<0||r<0)&&!(e<0&&r<0))return!0;const s=e/r;return r>0?s<n.c1&&(n.c1=s):s>n.c0&&(n.c0=s),n.c0<=n.c1}function j(t,n,r){const e=(0,o.j)(a.rq.get(),t,-t[3]),s=function(t,n,r){const e=(0,o.j)(a.rq.get(),t,(0,o.g)(t,n));return(0,o.e)(r,n,e),r}(t,(0,o.e)(a.rq.get(),n,e),a.rq.get());return(0,o.i)(r,s,e),r}function P(t,n){return(0,o.g)(t,n)+t[3]}function Z(t){return 0===t||1===t}function N(t,n,r,s,a){const i=(0,o.g)(t,r),u=P(t,n);if(0===i)return u>=0?2:3;let c=-u/i;return 1&s&&(c=(0,e.qE)(c,0,1)),!(4&s)&&c<0||!(8&s)&&c>1?u>=0?2:3:((0,o.i)(a,n,(0,o.j)(a,r,c)),u>=0?0:1)}const C=[0,0,1,0],X=8},32114:(t,n,r)=>{r.d(n,{Rc:()=>M,J8:()=>m,rq:()=>l,Km:()=>h}),r(44208);var e=r(26390),o=r(29242),s=r(9093),a=r(82534),i=r(48163),u=r(51850),c=r(91829);class f{constructor(t){this._create=t,this._items=new Array,this._itemsPtr=0}get(){return 0===this._itemsPtr&&(0,e.d)(()=>this._reset()),this._itemsPtr>=this._items.length&&this._items.push(this._create()),this._items[this._itemsPtr++]}_reset(){const t=2*this._itemsPtr;this._items.length>t&&(this._items.length=t),this._itemsPtr=0}static createVec2f64(){return new f(i.vt)}static createVec3f64(){return new f(u.vt)}static createVec4f64(){return new f(c.vt)}static createMat3f64(){return new f(o.vt)}static createMat4f64(){return new f(s.vt)}static createQuatf64(){return new f(a.vt)}get test(){}}f.createVec2f64();const l=f.createVec3f64(),h=f.createVec4f64(),M=(f.createMat3f64(),f.createMat4f64()),m=f.createQuatf64()},32728:(t,n,r)=>{r.d(n,{nu:()=>a,wp:()=>s}),r(34727);var e=r(38954),o=r(51850);function s(t,n){const r=Math.sqrt(n[0]*n[0]+n[4]*n[4]+n[8]*n[8]),o=Math.sqrt(n[1]*n[1]+n[5]*n[5]+n[9]*n[9]),s=Math.sqrt(n[2]*n[2]+n[6]*n[6]+n[10]*n[10]);return(0,e.h)(t,r,o,s),t}function a(t,n,r,s=(0,o.vt)()){const a=(0,e.b)(t),c=(0,e.b)(n),f=(0,e.g)(t,n)/(a*c);if(f<.9999999999999999){const o=Math.acos(f),l=((1-r)*a+r*c)/Math.sin(o),h=l/a*Math.sin((1-r)*o),M=l/c*Math.sin(r*o);return(0,e.j)(i,t,h),(0,e.j)(u,n,M),(0,e.i)(s,i,u)}return(0,e.l)(s,t,n,r)}(0,o.vt)(),(0,o.vt)(),(0,o.vt)();const i=(0,o.vt)(),u=(0,o.vt)()},38954:(t,n,r)=>{r.d(n,{A:()=>M,B:()=>f,C:()=>l,D:()=>v,E:()=>O,F:()=>y,G:()=>X,H:()=>R,a:()=>T,b:()=>s,c:()=>d,d:()=>a,e:()=>c,f:()=>_,g:()=>q,h:()=>i,i:()=>u,j:()=>p,l:()=>S,m:()=>C,n:()=>x,o:()=>A,p:()=>I,q:()=>w,r:()=>P,s:()=>b,t:()=>j,u:()=>F,v:()=>h,w:()=>z,x:()=>k,y:()=>g,z:()=>m});var e=r(51850),o=r(34304);function s(t){const n=t[0],r=t[1],e=t[2];return Math.sqrt(n*n+r*r+e*e)}function a(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t}function i(t,n,r,e){return t[0]=n,t[1]=r,t[2]=e,t}function u(t,n,r){return t[0]=n[0]+r[0],t[1]=n[1]+r[1],t[2]=n[2]+r[2],t}function c(t,n,r){return t[0]=n[0]-r[0],t[1]=n[1]-r[1],t[2]=n[2]-r[2],t}function f(t,n,r){return t[0]=n[0]*r[0],t[1]=n[1]*r[1],t[2]=n[2]*r[2],t}function l(t,n,r){return t[0]=n[0]/r[0],t[1]=n[1]/r[1],t[2]=n[2]/r[2],t}function h(t,n){return t[0]=Math.abs(n[0]),t[1]=Math.abs(n[1]),t[2]=Math.abs(n[2]),t}function M(t,n){return t[0]=Math.sign(n[0]),t[1]=Math.sign(n[1]),t[2]=Math.sign(n[2]),t}function m(t,n,r){return t[0]=Math.min(n[0],r[0]),t[1]=Math.min(n[1],r[1]),t[2]=Math.min(n[2],r[2]),t}function g(t,n,r){return t[0]=Math.max(n[0],r[0]),t[1]=Math.max(n[1],r[1]),t[2]=Math.max(n[2],r[2]),t}function p(t,n,r){return t[0]=n[0]*r,t[1]=n[1]*r,t[2]=n[2]*r,t}function d(t,n,r,e){return t[0]=n[0]+r[0]*e,t[1]=n[1]+r[1]*e,t[2]=n[2]+r[2]*e,t}function v(t,n){const r=n[0]-t[0],e=n[1]-t[1],o=n[2]-t[2];return Math.sqrt(r*r+e*e+o*o)}function b(t,n){const r=n[0]-t[0],e=n[1]-t[1],o=n[2]-t[2];return r*r+e*e+o*o}function y(t){const n=t[0],r=t[1],e=t[2];return n*n+r*r+e*e}function w(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t}function A(t,n){return t[0]=1/n[0],t[1]=1/n[1],t[2]=1/n[2],t}function x(t,n){const r=n[0],e=n[1],o=n[2];let s=r*r+e*e+o*o;return s>0&&(s=1/Math.sqrt(s),t[0]=n[0]*s,t[1]=n[1]*s,t[2]=n[2]*s),t}function q(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}function _(t,n,r){const e=n[0],o=n[1],s=n[2],a=r[0],i=r[1],u=r[2];return t[0]=o*u-s*i,t[1]=s*a-e*u,t[2]=e*i-o*a,t}function S(t,n,r,e){const o=n[0],s=n[1],a=n[2];return t[0]=o+e*(r[0]-o),t[1]=s+e*(r[1]-s),t[2]=a+e*(r[2]-a),t}function I(t,n,r){const e=n[0],o=n[1],s=n[2];return t[0]=r[0]*e+r[4]*o+r[8]*s+r[12],t[1]=r[1]*e+r[5]*o+r[9]*s+r[13],t[2]=r[2]*e+r[6]*o+r[10]*s+r[14],t}function j(t,n,r){const e=n[0],o=n[1],s=n[2];return t[0]=e*r[0]+o*r[3]+s*r[6],t[1]=e*r[1]+o*r[4]+s*r[7],t[2]=e*r[2]+o*r[5]+s*r[8],t}function P(t,n,r){const e=r[0],o=r[1],s=r[2],a=r[3],i=n[0],u=n[1],c=n[2],f=o*c-s*u,l=s*i-e*c,h=e*u-o*i,M=o*h-s*l,m=s*f-e*h,g=e*l-o*f,p=2*a;return t[0]=i+f*p+2*M,t[1]=u+l*p+2*m,t[2]=c+h*p+2*g,t}const Z=(0,e.vt)(),N=(0,e.vt)();function C(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]}function X(t,n){if(t===n)return!0;const r=t[0],e=t[1],s=t[2],a=n[0],i=n[1],u=n[2],c=(0,o.FD)();return Math.abs(r-a)<=c*Math.max(1,Math.abs(r),Math.abs(a))&&Math.abs(e-i)<=c*Math.max(1,Math.abs(e),Math.abs(i))&&Math.abs(s-u)<=c*Math.max(1,Math.abs(s),Math.abs(u))}function O(t,n,r){const e=r[0]-n[0],o=r[1]-n[1],s=r[2]-n[2];let a=e*e+o*o+s*s;return a>0?(a=1/Math.sqrt(a),t[0]=e*a,t[1]=o*a,t[2]=s*a,t):(t[0]=0,t[1]=0,t[2]=0,t)}const T=c,Y=f,E=l,R=v,z=b,F=s,k=y;Object.freeze(Object.defineProperty({__proto__:null,abs:h,add:u,angle:function(t,n){x(Z,t),x(N,n);const r=q(Z,N);return r>1?0:r<-1?Math.PI:Math.acos(r)},bezier:function(t,n,r,e,o,s){const a=1-s,i=a*a,u=s*s,c=i*a,f=3*s*i,l=3*u*a,h=u*s;return t[0]=n[0]*c+r[0]*f+e[0]*l+o[0]*h,t[1]=n[1]*c+r[1]*f+e[1]*l+o[1]*h,t[2]=n[2]*c+r[2]*f+e[2]*l+o[2]*h,t},ceil:function(t,n){return t[0]=Math.ceil(n[0]),t[1]=Math.ceil(n[1]),t[2]=Math.ceil(n[2]),t},clamp:function(t,n=0,r=1){return t[0]=Math.min(Math.max(t[0],n),r),t[1]=Math.min(Math.max(t[1],n),r),t[2]=Math.min(Math.max(t[2],n),r),t},copy:a,cross:_,crossAndNormalize:function(t,n,r){const e=n[0],o=n[1],s=n[2],a=r[0],i=r[1],u=r[2],c=o*u-s*i,f=s*a-e*u,l=e*i-o*a,h=Math.sqrt(c*c+f*f+l*l);return t[0]=c/h,t[1]=f/h,t[2]=l/h,t},direction:O,dist:R,distance:v,div:E,divide:l,dot:q,equals:X,exactEquals:C,floor:function(t,n){return t[0]=Math.floor(n[0]),t[1]=Math.floor(n[1]),t[2]=Math.floor(n[2]),t},hermite:function(t,n,r,e,o,s){const a=s*s,i=a*(2*s-3)+1,u=a*(s-2)+s,c=a*(s-1),f=a*(3-2*s);return t[0]=n[0]*i+r[0]*u+e[0]*c+o[0]*f,t[1]=n[1]*i+r[1]*u+e[1]*c+o[1]*f,t[2]=n[2]*i+r[2]*u+e[2]*c+o[2]*f,t},inverse:A,len:F,length:s,lerp:S,max:g,min:m,mul:Y,multiply:f,negate:w,normalize:x,random:function(t,n=1){const r=o.Ov,e=2*r()*Math.PI,s=2*r()-1,a=Math.sqrt(1-s*s)*n;return t[0]=Math.cos(e)*a,t[1]=Math.sin(e)*a,t[2]=s*n,t},rotateX:function(t,n,r,e){const o=[],s=[];return o[0]=n[0]-r[0],o[1]=n[1]-r[1],o[2]=n[2]-r[2],s[0]=o[0],s[1]=o[1]*Math.cos(e)-o[2]*Math.sin(e),s[2]=o[1]*Math.sin(e)+o[2]*Math.cos(e),t[0]=s[0]+r[0],t[1]=s[1]+r[1],t[2]=s[2]+r[2],t},rotateY:function(t,n,r,e){const o=[],s=[];return o[0]=n[0]-r[0],o[1]=n[1]-r[1],o[2]=n[2]-r[2],s[0]=o[2]*Math.sin(e)+o[0]*Math.cos(e),s[1]=o[1],s[2]=o[2]*Math.cos(e)-o[0]*Math.sin(e),t[0]=s[0]+r[0],t[1]=s[1]+r[1],t[2]=s[2]+r[2],t},rotateZ:function(t,n,r,e){const o=[],s=[];return o[0]=n[0]-r[0],o[1]=n[1]-r[1],o[2]=n[2]-r[2],s[0]=o[0]*Math.cos(e)-o[1]*Math.sin(e),s[1]=o[0]*Math.sin(e)+o[1]*Math.cos(e),s[2]=o[2],t[0]=s[0]+r[0],t[1]=s[1]+r[1],t[2]=s[2]+r[2],t},round:function(t,n){return t[0]=Math.round(n[0]),t[1]=Math.round(n[1]),t[2]=Math.round(n[2]),t},scale:p,scaleAndAdd:d,set:i,sign:M,sqrDist:z,sqrLen:k,squaredDistance:b,squaredLength:y,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:T,subtract:c,transformMat3:j,transformMat4:I,transformQuat:P},Symbol.toStringTag,{value:"Module"}))},40050:(t,n,r)=>{r.r(n),r.d(n,{assetMapFromAssetMapsJSON:()=>p,extractMesh:()=>g,meshFeatureSetFromJSON:()=>m});var e=r(52106),o=r(53966),s=r(91869),a=r(5443),i=r(40036),u=r(16930),c=r(63579),f=r(20557),l=r(22671),h=r(77793);const M=()=>o.A.getLogger("esri.rest.support.meshFeatureSet");function m(t,n,r){const o=r.features;r.features=[],delete r.geometryType;const s=l.A.fromJSON(r);if(s.geometryType="mesh",!r.assetMaps)return s;const a=p(n,r.assetMaps),i=t.sourceSpatialReference??u.A.WGS84,c=r.globalIdFieldName,{outFields:f}=t,h=null!=f&&f.length>0?(M=f.includes("*")?null:new Set(f),({attributes:t})=>{if(!t)return{};if(!M)return t;for(const n in t)M.has(n)||delete t[n];return t}):()=>({});var M;for(const t of o){const r=g(t,c,i,n,a);s.features.push(new e.A({geometry:r,attributes:h(t)}))}return s}function g(t,n,r,e,o){const s=t.attributes[n],u=o.get(s);if(null==u||!t.geometry)return null;const f=(0,h.V)(t.attributes,r,e.transformFieldRoles),l=a.A.fromJSON(t.geometry);l.spatialReference=r;const M=(0,h.f)(t.attributes,e.transformFieldRoles),m=r.isGeographic?"local":"georeferenced",g=function(t){const n=Array.from(t.files.values()),r=new Array;for(const t of n){if(2!==t.status)return null;const n=new Array;for(const r of t.parts){if(!r)return null;n.push(new c.Bq(r.url,r.hash))}r.push(new c.Qp(t.name,t.mimeType,n))}return{type:"service",assets:r}}(u);return g?i.default.createWithExternalSource(f,g,{extent:l,transform:M,vertexSpace:m,unitConversionDisabled:!0}):i.default.createIncomplete(f,{extent:l,transform:M,vertexSpace:m})}function p(t,n){const r=new Map;for(const e of n){const n=e.parentGlobalId;if(null==n)continue;const o=e.assetName,a=e.assetType,i=e.assetHash,u=e.assetURL,c=e.conversionStatus,l=e.seqNo,h=(0,f.Fm)(a,t.supportedFormats);if(!h){M().error("mesh-feature-set:unknown-format",`Service returned an asset of type ${a}, but it does not list it as a supported type`);continue}const m=(0,s.tE)(r,n,()=>({files:new Map}));(0,s.tE)(m.files,o,()=>({name:o,type:a,mimeType:h,status:d(c),parts:[]})).parts[l]={hash:i,url:u}}return r}function d(t){switch(t){case"COMPLETED":case"SUBMITTED":return 2;case"INPROGRESS":return 1;default:return 0}}},44280:(t,n,r)=>{r.d(n,{EJ:()=>u,g7:()=>i,gr:()=>a});var e=r(34727),o=r(38954),s=r(51850);function a(t,n){return(0,o.g)(t,n)/(0,o.b)(t)}function i(t,n){const r=(0,o.g)(t,n)/((0,o.b)(t)*(0,o.b)(n));return-(0,e.XM)(r)}function u(t,n,r){(0,o.n)(c,t),(0,o.n)(f,n);const s=(0,o.g)(c,f),a=(0,e.XM)(s),i=(0,o.f)(c,c,f);return(0,o.g)(i,r)<0?2*Math.PI-a:a}const c=(0,s.vt)(),f=(0,s.vt)()},48163:(t,n,r)=>{function e(){return[0,0]}function o(t){return[t[0],t[1]]}function s(t,n){return[t,n]}function a(){return s(1,1)}function i(){return s(1,0)}function u(){return s(0,1)}r.d(n,{Un:()=>c,fA:()=>s,o8:()=>o,vt:()=>e});const c=a(),f=i(),l=u();Object.freeze(Object.defineProperty({__proto__:null,ONES:c,UNIT_X:f,UNIT_Y:l,ZEROS:[0,0],clone:o,create:e,freeze:function(t,n){return[t,n]},fromArray:function(t,n=[0,0]){const r=Math.min(2,t.length);for(let e=0;e<r;++e)n[e]=t[e];return n},fromValues:s,ones:a,unitX:i,unitY:u,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"}))},48353:(t,n,r)=>{r.d(n,{l:()=>c});var e=r(34727),o=r(58083),s=r(51850);function a(t,n,r){const e=Math.sin(t),o=Math.cos(t),s=Math.sin(n),a=Math.cos(n),i=r;return i[0]=-e,i[4]=-s*o,i[8]=a*o,i[12]=0,i[1]=o,i[5]=-s*e,i[9]=a*e,i[13]=0,i[2]=0,i[6]=a,i[10]=s,i[14]=0,i[3]=0,i[7]=0,i[11]=0,i[15]=1,i}var i=r(37539),u=r(21325);function c(t,n,r,e){const s=(0,i.Tp)(t,e);if(null==s)return!1;const c=s.source.spatialReferenceId,m=s.dest.spatialReferenceId;if(c===m&&!f(m)&&(0!==c||(0,u.aI)(t,e)))return(0,o.kN)(r,n),!0;if(f(m)){const t=i.w5[c][10],e=i.w5[10][m];return null!=t&&null!=e&&(t(n,0,h,0),e(h,0,M,0),a(l*h[0],l*h[1],r),r[12]=M[0],r[13]=M[1],r[14]=M[2],!0)}const g=f(c);if((3===m||11===m||2===m||5===m)&&(2===c||g||3===c||5===c)){const t=i.w5[c][10],e=i.w5[10][m];return null!=t&&null!=e&&(t(n,0,h,0),e(h,0,M,0),g?function(t,n,r){a(t,n,r),(0,o.mg)(r,r)}(l*h[0],l*h[1],r):(0,o.D_)(r),r[12]=M[0],r[13]=M[1],r[14]=M[2],!0)}return!1}function f(t){return 1===t||6===t||8===t||4===t}const l=(0,e.kU)(1),h=(0,s.vt)(),M=(0,s.vt)()},65806:(t,n,r)=>{r.d(n,{g:()=>a});var e=r(51850),o=r(91218),s=r(9762);function a(t,n,r,e){if((0,o.canProjectWithoutEngine)(t.spatialReference,r))return i[0]=t.x,i[1]=t.y,i[2]=t.z??0,(0,s.projectBuffer)(i,t.spatialReference,0,n,r,0);const a=(0,o.tryProject)(t,r,e);return!!a&&(n[0]=a.x,n[1]=a.y,n[2]=a.z??0,!0)}const i=(0,e.vt)()},67026:(t,n,r)=>{r.d(n,{A6:()=>g,Xd:()=>f,Xr:()=>M,hZ:()=>d,lw:()=>l,t2:()=>j,x8:()=>c});var e=r(29242),o=r(82534),s=r(51850),a=r(34304),i=r(38954),u=r(87317);function c(t,n,r){r*=.5;const e=Math.sin(r);return t[0]=e*n[0],t[1]=e*n[1],t[2]=e*n[2],t[3]=Math.cos(r),t}function f(t,n){const r=2*Math.acos(n[3]),e=Math.sin(r/2);return e>(0,a.FD)()?(t[0]=n[0]/e,t[1]=n[1]/e,t[2]=n[2]/e):(t[0]=1,t[1]=0,t[2]=0),r}function l(t,n,r){const e=n[0],o=n[1],s=n[2],a=n[3],i=r[0],u=r[1],c=r[2],f=r[3];return t[0]=e*f+a*i+o*c-s*u,t[1]=o*f+a*u+s*i-e*c,t[2]=s*f+a*c+e*u-o*i,t[3]=a*f-e*i-o*u-s*c,t}function h(t,n,r,e){const o=n[0],s=n[1],i=n[2],u=n[3];let c,f,l,h,M,m=r[0],g=r[1],p=r[2],d=r[3];return f=o*m+s*g+i*p+u*d,f<0&&(f=-f,m=-m,g=-g,p=-p,d=-d),1-f>(0,a.FD)()?(c=Math.acos(f),l=Math.sin(c),h=Math.sin((1-e)*c)/l,M=Math.sin(e*c)/l):(h=1-e,M=e),t[0]=h*o+M*m,t[1]=h*s+M*g,t[2]=h*i+M*p,t[3]=h*u+M*d,t}function M(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t[3]=n[3],t}function m(t,n){const r=n[0]+n[4]+n[8];let e;if(r>0)e=Math.sqrt(r+1),t[3]=.5*e,e=.5/e,t[0]=(n[5]-n[7])*e,t[1]=(n[6]-n[2])*e,t[2]=(n[1]-n[3])*e;else{let r=0;n[4]>n[0]&&(r=1),n[8]>n[3*r+r]&&(r=2);const o=(r+1)%3,s=(r+2)%3;e=Math.sqrt(n[3*r+r]-n[3*o+o]-n[3*s+s]+1),t[r]=.5*e,e=.5/e,t[3]=(n[3*o+s]-n[3*s+o])*e,t[o]=(n[3*o+r]+n[3*r+o])*e,t[s]=(n[3*s+r]+n[3*r+s])*e}return t}function g(t,n,r,e){const o=.5*Math.PI/180;n*=o,r*=o,e*=o;const s=Math.sin(n),a=Math.cos(n),i=Math.sin(r),u=Math.cos(r),c=Math.sin(e),f=Math.cos(e);return t[0]=s*u*f-a*i*c,t[1]=a*i*f+s*u*c,t[2]=a*u*c-s*i*f,t[3]=a*u*f+s*i*c,t}const p=u.f,d=u.c,v=u.i,b=l,y=u.s,w=u.h,A=u.l,x=u.j,q=x,_=u.d,S=_,I=u.n,j=u.a,P=u.e,Z=(0,s.vt)(),N=(0,s.fA)(1,0,0),C=(0,s.fA)(0,1,0),X=(0,o.vt)(),O=(0,o.vt)(),T=(0,e.vt)();Object.freeze(Object.defineProperty({__proto__:null,add:v,calculateW:function(t,n){const r=n[0],e=n[1],o=n[2];return t[0]=r,t[1]=e,t[2]=o,t[3]=Math.sqrt(Math.abs(1-r*r-e*e-o*o)),t},conjugate:M,copy:p,dot:w,equals:P,exactEquals:j,fromEuler:g,fromMat3:m,getAxisAngle:f,identity:function(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t},invert:function(t,n){const r=n[0],e=n[1],o=n[2],s=n[3],a=r*r+e*e+o*o+s*s,i=a?1/a:0;return t[0]=-r*i,t[1]=-e*i,t[2]=-o*i,t[3]=s*i,t},len:q,length:x,lerp:A,mul:b,multiply:l,normalize:I,random:function(t){const n=a.Ov,r=n(),e=n(),o=n(),s=Math.sqrt(1-r),i=Math.sqrt(r);return t[0]=s*Math.sin(2*Math.PI*e),t[1]=s*Math.cos(2*Math.PI*e),t[2]=i*Math.sin(2*Math.PI*o),t[3]=i*Math.cos(2*Math.PI*o),t},rotateX:function(t,n,r){r*=.5;const e=n[0],o=n[1],s=n[2],a=n[3],i=Math.sin(r),u=Math.cos(r);return t[0]=e*u+a*i,t[1]=o*u+s*i,t[2]=s*u-o*i,t[3]=a*u-e*i,t},rotateY:function(t,n,r){r*=.5;const e=n[0],o=n[1],s=n[2],a=n[3],i=Math.sin(r),u=Math.cos(r);return t[0]=e*u-s*i,t[1]=o*u+a*i,t[2]=s*u+e*i,t[3]=a*u-o*i,t},rotateZ:function(t,n,r){r*=.5;const e=n[0],o=n[1],s=n[2],a=n[3],i=Math.sin(r),u=Math.cos(r);return t[0]=e*u+o*i,t[1]=o*u-e*i,t[2]=s*u+a*i,t[3]=a*u-s*i,t},rotationTo:function(t,n,r){const e=(0,i.g)(n,r);return e<-.999999?((0,i.f)(Z,N,n),(0,i.u)(Z)<1e-6&&(0,i.f)(Z,C,n),(0,i.n)(Z,Z),c(t,Z,Math.PI),t):e>.999999?(t[0]=0,t[1]=0,t[2]=0,t[3]=1,t):((0,i.f)(Z,n,r),t[0]=Z[0],t[1]=Z[1],t[2]=Z[2],t[3]=1+e,I(t,t))},scale:y,set:d,setAxes:function(t,n,r,e){const o=T;return o[0]=r[0],o[3]=r[1],o[6]=r[2],o[1]=e[0],o[4]=e[1],o[7]=e[2],o[2]=-n[0],o[5]=-n[1],o[8]=-n[2],I(t,m(t,o))},setAxisAngle:c,slerp:h,sqlerp:function(t,n,r,e,o,s){return h(X,n,o,s),h(O,r,e,s),h(t,X,O,2*s*(1-s)),t},sqrLen:S,squaredLength:_,str:function(t){return"quat("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"}},Symbol.toStringTag,{value:"Module"}))},73836:(t,n,r)=>{r.d(n,{A:()=>M});var e=r(31635),o=r(69540),s=r(25482),a=r(91429),i=r(58083),u=r(9093),c=r(67026),f=r(82534),l=r(51850),h=r(24770);let M=class extends((0,o.OU)(s.o)){constructor(t){super(t),this.translation=(0,l.vt)(),this.rotationAxis=(0,l.ci)(h.up),this.rotationAngle=0,this.scale=(0,l.fA)(1,1,1)}get rotation(){return(0,h.i4)(this.rotationAxis,this.rotationAngle)}set rotation(t){this.rotationAxis=(0,l.o8)((0,h.yo)(t)),this.rotationAngle=(0,h.g7)(t)}get localMatrix(){const t=(0,u.vt)();return(0,c.x8)(m,(0,h.yo)(this.rotation),(0,h.$I)(this.rotation)),(0,i.o1)(t,m,this.translation,this.scale),t}get localMatrixInverse(){return(0,i.B8)((0,u.vt)(),this.localMatrix)}equals(t){return this===t||null!=t&&(0,i.t2)(this.localMatrix,t.localMatrix)}};(0,e.Cg)([(0,a.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],M.prototype,"translation",void 0),(0,e.Cg)([(0,a.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],M.prototype,"rotationAxis",void 0),(0,e.Cg)([(0,a.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],M.prototype,"rotationAngle",void 0),(0,e.Cg)([(0,a.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],M.prototype,"scale",void 0),(0,e.Cg)([(0,a.MZ)()],M.prototype,"rotation",null),(0,e.Cg)([(0,a.MZ)()],M.prototype,"localMatrix",null),(0,e.Cg)([(0,a.MZ)()],M.prototype,"localMatrixInverse",null),M=(0,e.Cg)([(0,a.$K)("esri.geometry.support.MeshTransform")],M);const m=(0,f.vt)()},77793:(t,n,r)=>{r.d(n,{V:()=>s,f:()=>a});var e=r(86738),o=r(73836);function s(t,n,r=i){return new e.A({x:t[r.originX],y:t[r.originY],z:t[r.originZ],spatialReference:n})}function a(t,n=i){return new o.A({translation:[t[n.translationX],-t[n.translationZ],t[n.translationY]],rotationAxis:[t[n.rotationX],-t[n.rotationZ],t[n.rotationY]],rotationAngle:t[n.rotationDeg],scale:[t[n.scaleX],t[n.scaleZ],t[n.scaleY]]})}const i={originX:"originX",originY:"originY",originZ:"originZ",translationX:"translationX",translationY:"translationY",translationZ:"translationZ",scaleX:"scaleX",scaleY:"scaleY",scaleZ:"scaleZ",rotationX:"rotationX",rotationY:"rotationY",rotationZ:"rotationZ",rotationDeg:"rotationDeg"}},82534:(t,n,r)=>{function e(){return[0,0,0,1]}function o(t){return[t[0],t[1],t[2],t[3]]}r.d(n,{o8:()=>o,vt:()=>e,zK:()=>s});const s=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:o,create:e,fromValues:function(t,n,r,e){return[t,n,r,e]}},Symbol.toStringTag,{value:"Module"}))},98764:(t,n,r)=>{r.d(n,{Y0:()=>c,lO:()=>f});var e=r(73941),o=r(16930),s=r(21325);const a=new o.A(e.fv),i=new o.A(e.FY),u=new o.A(e.LJ),c=new o.A(e.Ro);function f(t){const n=l.get(t);if(n)return n;let r=a;if(t)if(t===i)r=i;else if(t===u)r=u;else{const n=t.wkid,e=t.latestWkid;if(null!=n||null!=e)(0,s.tl)(n)||(0,s.tl)(e)?r=i:((0,s.ZL)(n)||(0,s.ZL)(e))&&(r=u);else{const n=t.wkt2??t.wkt;if(n){const t=n.toUpperCase();t===h?r=i:t===M&&(r=u)}}}return l.set(t,r),r}const l=new Map,h=i.wkt.toUpperCase(),M=u.wkt.toUpperCase()}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5066],{24770:(t,n,r)=>{r.d(n,{$I:()=>p,AU:()=>M,g7:()=>g,i4:()=>f,ui:()=>l,up:()=>v,vt:()=>c,yo:()=>m});var e=r(34727),o=r(58083),s=r(67026),a=r(82534),i=r(38954),u=r(51850);function c(t=v){return[t[0],t[1],t[2],t[3]]}function f(t,n,r=c()){return(0,i.d)(r,t),r[3]=n,r}function l(t,n=c()){const r=(0,o.l)(b,t);return d(n,(0,e.KJ)((0,s.Xd)(n,r))),n}function h(t,n,r=c()){return(0,s.x8)(b,t,p(t)),(0,s.x8)(y,n,p(n)),(0,s.lw)(b,y,b),d(r,(0,e.KJ)((0,s.Xd)(r,b)))}function M(t,n,r,e=c()){return f(u.Cw,t,w),f(u.JP,n,A),f(u.Cb,r,x),h(w,A,w),h(w,x,e),e}function m(t){return t}function g(t){return t[3]}function p(t){return(0,e.kU)(t[3])}function d(t,n){return t[3]=n,t}const v=[0,0,1,0],b=(0,a.vt)(),y=(0,a.vt)(),w=(c(),c()),A=c(),x=c()},27921:(t,n,r)=>{r.d(n,{$Q:()=>I,C:()=>c,Cr:()=>M,LV:()=>u,O_:()=>h,Qj:()=>f,T7:()=>q,Tj:()=>S,Ui:()=>x,_I:()=>j,fA:()=>l,gv:()=>_,lU:()=>m,mN:()=>P,mP:()=>w,mR:()=>A,vE:()=>N,vt:()=>i});var e=r(34727),o=r(38954),s=r(51850),a=(r(87317),r(44280),r(32114));function i(t=C){return[t[0],t[1],t[2],t[3]]}function u(t=C[0],n=C[1],r=C[2],e=C[3]){return l(t,n,r,e,a.Km.get())}function c(t,n){return l(n[0],n[1],n[2],n[3],t)}function f(t){return t}function l(t,n,r,e,o=i()){return o[0]=t,o[1]=n,o[2]=r,o[3]=e,o}function h(t,n,r){const e=n[0]*n[0]+n[1]*n[1]+n[2]*n[2],o=Math.abs(e-1)>1e-5&&e>1e-12?1/Math.sqrt(e):1;return r[0]=n[0]*o,r[1]=n[1]*o,r[2]=n[2]*o,r[3]=-(r[0]*t[0]+r[1]*t[1]+r[2]*t[2]),r}function M(t,n,r,e=i()){const o=r[0]-n[0],s=r[1]-n[1],a=r[2]-n[2],u=t[0]-n[0],c=t[1]-n[1],f=t[2]-n[2],l=s*f-a*c,h=a*u-o*f,M=o*c-s*u,m=l*l+h*h+M*M,g=Math.abs(m-1)>1e-5&&m>1e-12?1/Math.sqrt(m):1;return e[0]=l*g,e[1]=h*g,e[2]=M*g,e[3]=-(e[0]*t[0]+e[1]*t[1]+e[2]*t[2]),e}function m(t,n,r,e=0,s=Math.floor(r*(1/3)),a=Math.floor(r*(2/3))){if(r<3)return!1;n(p,e);let i=s,u=!1;for(;i<r-1&&!u;)n(d,i),i++,u=!(0,o.m)(p,d);if(!u)return!1;for(i=Math.max(i,a),u=!1;i<r&&!u;)n(v,i),i++,(0,o.e)(b,p,d),(0,o.n)(b,b),(0,o.e)(y,d,v),(0,o.n)(y,y),u=!(0,o.m)(p,v)&&!(0,o.m)(d,v)&&Math.abs((0,o.g)(b,y))<g;return u?(M(p,d,v,t),!0):(0!==e||1!==s||2!==a)&&m(t,n,r,0,1,2)}r(32728);const g=.99619469809,p=(0,s.vt)(),d=(0,s.vt)(),v=(0,s.vt)(),b=(0,s.vt)(),y=(0,s.vt)();function w(t,n,r){return n!==t&&c(t,n),t[3]=-(0,o.g)(t,r),t}function A(t,n,r,e){return(0,o.f)(v,n,t),h(r,v,e)}function x(t,n,r){return null!=n&&Z(N(t,n.origin,n.direction,X,r))}function q(t,n,r){return Z(N(t,n.origin,n.vector,0,r))}function _(t,n,r){return Z(N(t,n.origin,n.vector,1,r))}function S(t,n){return P(t,n)>=0}function I(t,n){const r=(0,o.g)(t,n.ray.direction),e=-P(t,n.ray.origin);if(e<0&&r>=0)return!1;if(r>-1e-6&&r<1e-6)return e>0;if((e<0||r<0)&&!(e<0&&r<0))return!0;const s=e/r;return r>0?s<n.c1&&(n.c1=s):s>n.c0&&(n.c0=s),n.c0<=n.c1}function j(t,n,r){const e=(0,o.j)(a.rq.get(),t,-t[3]),s=function(t,n,r){const e=(0,o.j)(a.rq.get(),t,(0,o.g)(t,n));return(0,o.e)(r,n,e),r}(t,(0,o.e)(a.rq.get(),n,e),a.rq.get());return(0,o.i)(r,s,e),r}function P(t,n){return(0,o.g)(t,n)+t[3]}function Z(t){return 0===t||1===t}function N(t,n,r,s,a){const i=(0,o.g)(t,r),u=P(t,n);if(0===i)return u>=0?2:3;let c=-u/i;return 1&s&&(c=(0,e.qE)(c,0,1)),!(4&s)&&c<0||!(8&s)&&c>1?u>=0?2:3:((0,o.i)(a,n,(0,o.j)(a,r,c)),u>=0?0:1)}const C=[0,0,1,0],X=8},32114:(t,n,r)=>{r.d(n,{Rc:()=>M,J8:()=>m,rq:()=>l,Km:()=>h}),r(44208);var e=r(26390),o=r(29242),s=r(9093),a=r(82534),i=r(48163),u=r(51850),c=r(91829);class f{constructor(t){this._create=t,this._items=new Array,this._itemsPtr=0}get(){return 0===this._itemsPtr&&(0,e.d)(()=>this._reset()),this._itemsPtr>=this._items.length&&this._items.push(this._create()),this._items[this._itemsPtr++]}_reset(){const t=2*this._itemsPtr;this._items.length>t&&(this._items.length=t),this._itemsPtr=0}static createVec2f64(){return new f(i.vt)}static createVec3f64(){return new f(u.vt)}static createVec4f64(){return new f(c.vt)}static createMat3f64(){return new f(o.vt)}static createMat4f64(){return new f(s.vt)}static createQuatf64(){return new f(a.vt)}get test(){}}f.createVec2f64();const l=f.createVec3f64(),h=f.createVec4f64(),M=(f.createMat3f64(),f.createMat4f64()),m=f.createQuatf64()},32728:(t,n,r)=>{r.d(n,{nu:()=>a,wp:()=>s}),r(34727);var e=r(38954),o=r(51850);function s(t,n){const r=Math.sqrt(n[0]*n[0]+n[4]*n[4]+n[8]*n[8]),o=Math.sqrt(n[1]*n[1]+n[5]*n[5]+n[9]*n[9]),s=Math.sqrt(n[2]*n[2]+n[6]*n[6]+n[10]*n[10]);return(0,e.h)(t,r,o,s),t}function a(t,n,r,s=(0,o.vt)()){const a=(0,e.b)(t),c=(0,e.b)(n),f=(0,e.g)(t,n)/(a*c);if(f<.9999999999999999){const o=Math.acos(f),l=((1-r)*a+r*c)/Math.sin(o),h=l/a*Math.sin((1-r)*o),M=l/c*Math.sin(r*o);return(0,e.j)(i,t,h),(0,e.j)(u,n,M),(0,e.i)(s,i,u)}return(0,e.l)(s,t,n,r)}(0,o.vt)(),(0,o.vt)(),(0,o.vt)();const i=(0,o.vt)(),u=(0,o.vt)()},38954:(t,n,r)=>{r.d(n,{A:()=>l,B:()=>v,C:()=>O,D:()=>y,E:()=>X,F:()=>R,G:()=>z,H:()=>k,a:()=>T,b:()=>s,c:()=>d,d:()=>a,e:()=>c,f:()=>_,g:()=>q,h:()=>i,i:()=>u,j:()=>p,l:()=>S,m:()=>C,n:()=>x,o:()=>A,p:()=>I,q:()=>w,r:()=>P,s:()=>b,t:()=>j,u:()=>F,v:()=>h,w:()=>g,x:()=>m,y:()=>M,z:()=>f});var e=r(51850),o=r(34304);function s(t){const n=t[0],r=t[1],e=t[2];return Math.sqrt(n*n+r*r+e*e)}function a(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t}function i(t,n,r,e){return t[0]=n,t[1]=r,t[2]=e,t}function u(t,n,r){return t[0]=n[0]+r[0],t[1]=n[1]+r[1],t[2]=n[2]+r[2],t}function c(t,n,r){return t[0]=n[0]-r[0],t[1]=n[1]-r[1],t[2]=n[2]-r[2],t}function f(t,n,r){return t[0]=n[0]*r[0],t[1]=n[1]*r[1],t[2]=n[2]*r[2],t}function l(t,n,r){return t[0]=n[0]/r[0],t[1]=n[1]/r[1],t[2]=n[2]/r[2],t}function h(t,n){return t[0]=Math.abs(n[0]),t[1]=Math.abs(n[1]),t[2]=Math.abs(n[2]),t}function M(t,n){return t[0]=Math.sign(n[0]),t[1]=Math.sign(n[1]),t[2]=Math.sign(n[2]),t}function m(t,n,r){return t[0]=Math.min(n[0],r[0]),t[1]=Math.min(n[1],r[1]),t[2]=Math.min(n[2],r[2]),t}function g(t,n,r){return t[0]=Math.max(n[0],r[0]),t[1]=Math.max(n[1],r[1]),t[2]=Math.max(n[2],r[2]),t}function p(t,n,r){return t[0]=n[0]*r,t[1]=n[1]*r,t[2]=n[2]*r,t}function d(t,n,r,e){return t[0]=n[0]+r[0]*e,t[1]=n[1]+r[1]*e,t[2]=n[2]+r[2]*e,t}function v(t,n){const r=n[0]-t[0],e=n[1]-t[1],o=n[2]-t[2];return Math.sqrt(r*r+e*e+o*o)}function b(t,n){const r=n[0]-t[0],e=n[1]-t[1],o=n[2]-t[2];return r*r+e*e+o*o}function y(t){const n=t[0],r=t[1],e=t[2];return n*n+r*r+e*e}function w(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t}function A(t,n){return t[0]=1/n[0],t[1]=1/n[1],t[2]=1/n[2],t}function x(t,n){const r=n[0],e=n[1],o=n[2];let s=r*r+e*e+o*o;return s>0&&(s=1/Math.sqrt(s),t[0]=n[0]*s,t[1]=n[1]*s,t[2]=n[2]*s),t}function q(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}function _(t,n,r){const e=n[0],o=n[1],s=n[2],a=r[0],i=r[1],u=r[2];return t[0]=o*u-s*i,t[1]=s*a-e*u,t[2]=e*i-o*a,t}function S(t,n,r,e){const o=n[0],s=n[1],a=n[2];return t[0]=o+e*(r[0]-o),t[1]=s+e*(r[1]-s),t[2]=a+e*(r[2]-a),t}function I(t,n,r){const e=n[0],o=n[1],s=n[2];return t[0]=r[0]*e+r[4]*o+r[8]*s+r[12],t[1]=r[1]*e+r[5]*o+r[9]*s+r[13],t[2]=r[2]*e+r[6]*o+r[10]*s+r[14],t}function j(t,n,r){const e=n[0],o=n[1],s=n[2];return t[0]=e*r[0]+o*r[3]+s*r[6],t[1]=e*r[1]+o*r[4]+s*r[7],t[2]=e*r[2]+o*r[5]+s*r[8],t}function P(t,n,r){const e=r[0],o=r[1],s=r[2],a=r[3],i=n[0],u=n[1],c=n[2],f=o*c-s*u,l=s*i-e*c,h=e*u-o*i,M=o*h-s*l,m=s*f-e*h,g=e*l-o*f,p=2*a;return t[0]=i+f*p+2*M,t[1]=u+l*p+2*m,t[2]=c+h*p+2*g,t}const Z=(0,e.vt)(),N=(0,e.vt)();function C(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]}function X(t,n){if(t===n)return!0;const r=t[0],e=t[1],s=t[2],a=n[0],i=n[1],u=n[2],c=(0,o.FD)();return Math.abs(r-a)<=c*Math.max(1,Math.abs(r),Math.abs(a))&&Math.abs(e-i)<=c*Math.max(1,Math.abs(e),Math.abs(i))&&Math.abs(s-u)<=c*Math.max(1,Math.abs(s),Math.abs(u))}function O(t,n,r){const e=r[0]-n[0],o=r[1]-n[1],s=r[2]-n[2];let a=e*e+o*o+s*s;return a>0?(a=1/Math.sqrt(a),t[0]=e*a,t[1]=o*a,t[2]=s*a,t):(t[0]=0,t[1]=0,t[2]=0,t)}const T=c,Y=f,E=l,R=v,z=b,F=s,k=y;Object.freeze(Object.defineProperty({__proto__:null,abs:h,add:u,angle:function(t,n){x(Z,t),x(N,n);const r=q(Z,N);return r>1?0:r<-1?Math.PI:Math.acos(r)},bezier:function(t,n,r,e,o,s){const a=1-s,i=a*a,u=s*s,c=i*a,f=3*s*i,l=3*u*a,h=u*s;return t[0]=n[0]*c+r[0]*f+e[0]*l+o[0]*h,t[1]=n[1]*c+r[1]*f+e[1]*l+o[1]*h,t[2]=n[2]*c+r[2]*f+e[2]*l+o[2]*h,t},ceil:function(t,n){return t[0]=Math.ceil(n[0]),t[1]=Math.ceil(n[1]),t[2]=Math.ceil(n[2]),t},clamp:function(t,n=0,r=1){return t[0]=Math.min(Math.max(t[0],n),r),t[1]=Math.min(Math.max(t[1],n),r),t[2]=Math.min(Math.max(t[2],n),r),t},copy:a,cross:_,crossAndNormalize:function(t,n,r){const e=n[0],o=n[1],s=n[2],a=r[0],i=r[1],u=r[2],c=o*u-s*i,f=s*a-e*u,l=e*i-o*a,h=Math.sqrt(c*c+f*f+l*l);return t[0]=c/h,t[1]=f/h,t[2]=l/h,t},direction:O,dist:R,distance:v,div:E,divide:l,dot:q,equals:X,exactEquals:C,floor:function(t,n){return t[0]=Math.floor(n[0]),t[1]=Math.floor(n[1]),t[2]=Math.floor(n[2]),t},hermite:function(t,n,r,e,o,s){const a=s*s,i=a*(2*s-3)+1,u=a*(s-2)+s,c=a*(s-1),f=a*(3-2*s);return t[0]=n[0]*i+r[0]*u+e[0]*c+o[0]*f,t[1]=n[1]*i+r[1]*u+e[1]*c+o[1]*f,t[2]=n[2]*i+r[2]*u+e[2]*c+o[2]*f,t},inverse:A,len:F,length:s,lerp:S,max:g,min:m,mul:Y,multiply:f,negate:w,normalize:x,random:function(t,n=1){const r=o.Ov,e=2*r()*Math.PI,s=2*r()-1,a=Math.sqrt(1-s*s)*n;return t[0]=Math.cos(e)*a,t[1]=Math.sin(e)*a,t[2]=s*n,t},rotateX:function(t,n,r,e){const o=[],s=[];return o[0]=n[0]-r[0],o[1]=n[1]-r[1],o[2]=n[2]-r[2],s[0]=o[0],s[1]=o[1]*Math.cos(e)-o[2]*Math.sin(e),s[2]=o[1]*Math.sin(e)+o[2]*Math.cos(e),t[0]=s[0]+r[0],t[1]=s[1]+r[1],t[2]=s[2]+r[2],t},rotateY:function(t,n,r,e){const o=[],s=[];return o[0]=n[0]-r[0],o[1]=n[1]-r[1],o[2]=n[2]-r[2],s[0]=o[2]*Math.sin(e)+o[0]*Math.cos(e),s[1]=o[1],s[2]=o[2]*Math.cos(e)-o[0]*Math.sin(e),t[0]=s[0]+r[0],t[1]=s[1]+r[1],t[2]=s[2]+r[2],t},rotateZ:function(t,n,r,e){const o=[],s=[];return o[0]=n[0]-r[0],o[1]=n[1]-r[1],o[2]=n[2]-r[2],s[0]=o[0]*Math.cos(e)-o[1]*Math.sin(e),s[1]=o[0]*Math.sin(e)+o[1]*Math.cos(e),s[2]=o[2],t[0]=s[0]+r[0],t[1]=s[1]+r[1],t[2]=s[2]+r[2],t},round:function(t,n){return t[0]=Math.round(n[0]),t[1]=Math.round(n[1]),t[2]=Math.round(n[2]),t},scale:p,scaleAndAdd:d,set:i,sign:M,sqrDist:z,sqrLen:k,squaredDistance:b,squaredLength:y,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:T,subtract:c,transformMat3:j,transformMat4:I,transformQuat:P},Symbol.toStringTag,{value:"Module"}))},40050:(t,n,r)=>{r.r(n),r.d(n,{assetMapFromAssetMapsJSON:()=>p,extractMesh:()=>g,meshFeatureSetFromJSON:()=>m});var e=r(52106),o=r(53966),s=r(91869),a=r(5443),i=r(40036),u=r(16930),c=r(63579),f=r(20557),l=r(22671),h=r(77793);const M=()=>o.A.getLogger("esri.rest.support.meshFeatureSet");function m(t,n,r){const o=r.features;r.features=[],delete r.geometryType;const s=l.A.fromJSON(r);if(s.geometryType="mesh",!r.assetMaps)return s;const a=p(n,r.assetMaps),i=t.sourceSpatialReference??u.A.WGS84,c=r.globalIdFieldName,{outFields:f}=t,h=null!=f&&f.length>0?(M=f.includes("*")?null:new Set(f),({attributes:t})=>{if(!t)return{};if(!M)return t;for(const n in t)M.has(n)||delete t[n];return t}):()=>({});var M;for(const t of o){const r=g(t,c,i,n,a);s.features.push(new e.A({geometry:r,attributes:h(t)}))}return s}function g(t,n,r,e,o){const s=t.attributes[n],u=o.get(s);if(null==u||!t.geometry)return null;const f=(0,h.V)(t.attributes,r,e.transformFieldRoles),l=a.A.fromJSON(t.geometry);l.spatialReference=r;const M=(0,h.f)(t.attributes,e.transformFieldRoles),m=r.isGeographic?"local":"georeferenced",g=function(t){const n=Array.from(t.files.values()),r=new Array;for(const t of n){if(2!==t.status)return null;const n=new Array;for(const r of t.parts){if(!r)return null;n.push(new c.Bq(r.url,r.hash))}r.push(new c.Qp(t.name,t.mimeType,n))}return{type:"service",assets:r}}(u);return g?i.default.createWithExternalSource(f,g,{extent:l,transform:M,vertexSpace:m,unitConversionDisabled:!0}):i.default.createIncomplete(f,{extent:l,transform:M,vertexSpace:m})}function p(t,n){const r=new Map;for(const e of n){const n=e.parentGlobalId;if(null==n)continue;const o=e.assetName,a=e.assetType,i=e.assetHash,u=e.assetURL,c=e.conversionStatus,l=e.seqNo,h=(0,f.Fm)(a,t.supportedFormats);if(!h){M().error("mesh-feature-set:unknown-format",`Service returned an asset of type ${a}, but it does not list it as a supported type`);continue}const m=(0,s.tE)(r,n,()=>({files:new Map}));(0,s.tE)(m.files,o,()=>({name:o,type:a,mimeType:h,status:d(c),parts:[]})).parts[l]={hash:i,url:u}}return r}function d(t){switch(t){case"COMPLETED":case"SUBMITTED":return 2;case"INPROGRESS":return 1;default:return 0}}},44280:(t,n,r)=>{r.d(n,{EJ:()=>u,g7:()=>i,gr:()=>a});var e=r(34727),o=r(38954),s=r(51850);function a(t,n){return(0,o.g)(t,n)/(0,o.b)(t)}function i(t,n){const r=(0,o.g)(t,n)/((0,o.b)(t)*(0,o.b)(n));return-(0,e.XM)(r)}function u(t,n,r){(0,o.n)(c,t),(0,o.n)(f,n);const s=(0,o.g)(c,f),a=(0,e.XM)(s),i=(0,o.f)(c,c,f);return(0,o.g)(i,r)<0?2*Math.PI-a:a}const c=(0,s.vt)(),f=(0,s.vt)()},48163:(t,n,r)=>{function e(){return[0,0]}function o(t){return[t[0],t[1]]}function s(t,n){return[t,n]}function a(){return s(1,1)}function i(){return s(1,0)}function u(){return s(0,1)}r.d(n,{Un:()=>c,fA:()=>s,o8:()=>o,vt:()=>e});const c=a(),f=i(),l=u();Object.freeze(Object.defineProperty({__proto__:null,ONES:c,UNIT_X:f,UNIT_Y:l,ZEROS:[0,0],clone:o,create:e,freeze:function(t,n){return[t,n]},fromArray:function(t,n=[0,0]){const r=Math.min(2,t.length);for(let e=0;e<r;++e)n[e]=t[e];return n},fromValues:s,ones:a,unitX:i,unitY:u,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"}))},48353:(t,n,r)=>{r.d(n,{l:()=>c});var e=r(34727),o=r(58083),s=r(51850);function a(t,n,r){const e=Math.sin(t),o=Math.cos(t),s=Math.sin(n),a=Math.cos(n),i=r;return i[0]=-e,i[4]=-s*o,i[8]=a*o,i[12]=0,i[1]=o,i[5]=-s*e,i[9]=a*e,i[13]=0,i[2]=0,i[6]=a,i[10]=s,i[14]=0,i[3]=0,i[7]=0,i[11]=0,i[15]=1,i}var i=r(37539),u=r(21325);function c(t,n,r,e){const s=(0,i.Tp)(t,e);if(null==s)return!1;const c=s.source.spatialReferenceId,m=s.dest.spatialReferenceId;if(c===m&&!f(m)&&(0!==c||(0,u.aI)(t,e)))return(0,o.kN)(r,n),!0;if(f(m)){const t=i.w5[c][10],e=i.w5[10][m];return null!=t&&null!=e&&(t(n,0,h,0),e(h,0,M,0),a(l*h[0],l*h[1],r),r[12]=M[0],r[13]=M[1],r[14]=M[2],!0)}const g=f(c);if((3===m||11===m||2===m||5===m)&&(2===c||g||3===c||5===c)){const t=i.w5[c][10],e=i.w5[10][m];return null!=t&&null!=e&&(t(n,0,h,0),e(h,0,M,0),g?function(t,n,r){a(t,n,r),(0,o.mg)(r,r)}(l*h[0],l*h[1],r):(0,o.D_)(r),r[12]=M[0],r[13]=M[1],r[14]=M[2],!0)}return!1}function f(t){return 1===t||6===t||8===t||4===t}const l=(0,e.kU)(1),h=(0,s.vt)(),M=(0,s.vt)()},65806:(t,n,r)=>{r.d(n,{g:()=>a});var e=r(51850),o=r(91218),s=r(9762);function a(t,n,r,e){if((0,o.canProjectWithoutEngine)(t.spatialReference,r))return i[0]=t.x,i[1]=t.y,i[2]=t.z??0,(0,s.projectBuffer)(i,t.spatialReference,0,n,r,0);const a=(0,o.tryProject)(t,r,e);return!!a&&(n[0]=a.x,n[1]=a.y,n[2]=a.z??0,!0)}const i=(0,e.vt)()},67026:(t,n,r)=>{r.d(n,{A6:()=>g,Xd:()=>f,Xr:()=>M,hZ:()=>d,lw:()=>l,t2:()=>j,x8:()=>c});var e=r(29242),o=r(82534),s=r(51850),a=r(34304),i=r(38954),u=r(87317);function c(t,n,r){r*=.5;const e=Math.sin(r);return t[0]=e*n[0],t[1]=e*n[1],t[2]=e*n[2],t[3]=Math.cos(r),t}function f(t,n){const r=2*Math.acos(n[3]),e=Math.sin(r/2);return e>(0,a.FD)()?(t[0]=n[0]/e,t[1]=n[1]/e,t[2]=n[2]/e):(t[0]=1,t[1]=0,t[2]=0),r}function l(t,n,r){const e=n[0],o=n[1],s=n[2],a=n[3],i=r[0],u=r[1],c=r[2],f=r[3];return t[0]=e*f+a*i+o*c-s*u,t[1]=o*f+a*u+s*i-e*c,t[2]=s*f+a*c+e*u-o*i,t[3]=a*f-e*i-o*u-s*c,t}function h(t,n,r,e){const o=n[0],s=n[1],i=n[2],u=n[3];let c,f,l,h,M,m=r[0],g=r[1],p=r[2],d=r[3];return f=o*m+s*g+i*p+u*d,f<0&&(f=-f,m=-m,g=-g,p=-p,d=-d),1-f>(0,a.FD)()?(c=Math.acos(f),l=Math.sin(c),h=Math.sin((1-e)*c)/l,M=Math.sin(e*c)/l):(h=1-e,M=e),t[0]=h*o+M*m,t[1]=h*s+M*g,t[2]=h*i+M*p,t[3]=h*u+M*d,t}function M(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t[3]=n[3],t}function m(t,n){const r=n[0]+n[4]+n[8];let e;if(r>0)e=Math.sqrt(r+1),t[3]=.5*e,e=.5/e,t[0]=(n[5]-n[7])*e,t[1]=(n[6]-n[2])*e,t[2]=(n[1]-n[3])*e;else{let r=0;n[4]>n[0]&&(r=1),n[8]>n[3*r+r]&&(r=2);const o=(r+1)%3,s=(r+2)%3;e=Math.sqrt(n[3*r+r]-n[3*o+o]-n[3*s+s]+1),t[r]=.5*e,e=.5/e,t[3]=(n[3*o+s]-n[3*s+o])*e,t[o]=(n[3*o+r]+n[3*r+o])*e,t[s]=(n[3*s+r]+n[3*r+s])*e}return t}function g(t,n,r,e){const o=.5*Math.PI/180;n*=o,r*=o,e*=o;const s=Math.sin(n),a=Math.cos(n),i=Math.sin(r),u=Math.cos(r),c=Math.sin(e),f=Math.cos(e);return t[0]=s*u*f-a*i*c,t[1]=a*i*f+s*u*c,t[2]=a*u*c-s*i*f,t[3]=a*u*f+s*i*c,t}const p=u.f,d=u.c,v=u.i,b=l,y=u.s,w=u.h,A=u.l,x=u.j,q=x,_=u.d,S=_,I=u.n,j=u.a,P=u.e,Z=(0,s.vt)(),N=(0,s.fA)(1,0,0),C=(0,s.fA)(0,1,0),X=(0,o.vt)(),O=(0,o.vt)(),T=(0,e.vt)();Object.freeze(Object.defineProperty({__proto__:null,add:v,calculateW:function(t,n){const r=n[0],e=n[1],o=n[2];return t[0]=r,t[1]=e,t[2]=o,t[3]=Math.sqrt(Math.abs(1-r*r-e*e-o*o)),t},conjugate:M,copy:p,dot:w,equals:P,exactEquals:j,fromEuler:g,fromMat3:m,getAxisAngle:f,identity:function(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t},invert:function(t,n){const r=n[0],e=n[1],o=n[2],s=n[3],a=r*r+e*e+o*o+s*s,i=a?1/a:0;return t[0]=-r*i,t[1]=-e*i,t[2]=-o*i,t[3]=s*i,t},len:q,length:x,lerp:A,mul:b,multiply:l,normalize:I,random:function(t){const n=a.Ov,r=n(),e=n(),o=n(),s=Math.sqrt(1-r),i=Math.sqrt(r);return t[0]=s*Math.sin(2*Math.PI*e),t[1]=s*Math.cos(2*Math.PI*e),t[2]=i*Math.sin(2*Math.PI*o),t[3]=i*Math.cos(2*Math.PI*o),t},rotateX:function(t,n,r){r*=.5;const e=n[0],o=n[1],s=n[2],a=n[3],i=Math.sin(r),u=Math.cos(r);return t[0]=e*u+a*i,t[1]=o*u+s*i,t[2]=s*u-o*i,t[3]=a*u-e*i,t},rotateY:function(t,n,r){r*=.5;const e=n[0],o=n[1],s=n[2],a=n[3],i=Math.sin(r),u=Math.cos(r);return t[0]=e*u-s*i,t[1]=o*u+a*i,t[2]=s*u+e*i,t[3]=a*u-o*i,t},rotateZ:function(t,n,r){r*=.5;const e=n[0],o=n[1],s=n[2],a=n[3],i=Math.sin(r),u=Math.cos(r);return t[0]=e*u+o*i,t[1]=o*u-e*i,t[2]=s*u+a*i,t[3]=a*u-s*i,t},rotationTo:function(t,n,r){const e=(0,i.g)(n,r);return e<-.999999?((0,i.f)(Z,N,n),(0,i.u)(Z)<1e-6&&(0,i.f)(Z,C,n),(0,i.n)(Z,Z),c(t,Z,Math.PI),t):e>.999999?(t[0]=0,t[1]=0,t[2]=0,t[3]=1,t):((0,i.f)(Z,n,r),t[0]=Z[0],t[1]=Z[1],t[2]=Z[2],t[3]=1+e,I(t,t))},scale:y,set:d,setAxes:function(t,n,r,e){const o=T;return o[0]=r[0],o[3]=r[1],o[6]=r[2],o[1]=e[0],o[4]=e[1],o[7]=e[2],o[2]=-n[0],o[5]=-n[1],o[8]=-n[2],I(t,m(t,o))},setAxisAngle:c,slerp:h,sqlerp:function(t,n,r,e,o,s){return h(X,n,o,s),h(O,r,e,s),h(t,X,O,2*s*(1-s)),t},sqrLen:S,squaredLength:_,str:function(t){return"quat("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"}},Symbol.toStringTag,{value:"Module"}))},73836:(t,n,r)=>{r.d(n,{A:()=>M});var e=r(31635),o=r(69540),s=r(25482),a=r(91429),i=r(58083),u=r(9093),c=r(67026),f=r(82534),l=r(51850),h=r(24770);let M=class extends((0,o.OU)(s.o)){constructor(t){super(t),this.translation=(0,l.vt)(),this.rotationAxis=(0,l.ci)(h.up),this.rotationAngle=0,this.scale=(0,l.fA)(1,1,1)}get rotation(){return(0,h.i4)(this.rotationAxis,this.rotationAngle)}set rotation(t){this.rotationAxis=(0,l.o8)((0,h.yo)(t)),this.rotationAngle=(0,h.g7)(t)}get localMatrix(){const t=(0,u.vt)();return(0,c.x8)(m,(0,h.yo)(this.rotation),(0,h.$I)(this.rotation)),(0,i.o1)(t,m,this.translation,this.scale),t}get localMatrixInverse(){return(0,i.B8)((0,u.vt)(),this.localMatrix)}equals(t){return this===t||null!=t&&(0,i.t2)(this.localMatrix,t.localMatrix)}};(0,e.Cg)([(0,a.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],M.prototype,"translation",void 0),(0,e.Cg)([(0,a.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],M.prototype,"rotationAxis",void 0),(0,e.Cg)([(0,a.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],M.prototype,"rotationAngle",void 0),(0,e.Cg)([(0,a.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],M.prototype,"scale",void 0),(0,e.Cg)([(0,a.MZ)()],M.prototype,"rotation",null),(0,e.Cg)([(0,a.MZ)()],M.prototype,"localMatrix",null),(0,e.Cg)([(0,a.MZ)()],M.prototype,"localMatrixInverse",null),M=(0,e.Cg)([(0,a.$K)("esri.geometry.support.MeshTransform")],M);const m=(0,f.vt)()},77793:(t,n,r)=>{r.d(n,{V:()=>s,f:()=>a});var e=r(86738),o=r(73836);function s(t,n,r=i){return new e.A({x:t[r.originX],y:t[r.originY],z:t[r.originZ],spatialReference:n})}function a(t,n=i){return new o.A({translation:[t[n.translationX],-t[n.translationZ],t[n.translationY]],rotationAxis:[t[n.rotationX],-t[n.rotationZ],t[n.rotationY]],rotationAngle:t[n.rotationDeg],scale:[t[n.scaleX],t[n.scaleZ],t[n.scaleY]]})}const i={originX:"originX",originY:"originY",originZ:"originZ",translationX:"translationX",translationY:"translationY",translationZ:"translationZ",scaleX:"scaleX",scaleY:"scaleY",scaleZ:"scaleZ",rotationX:"rotationX",rotationY:"rotationY",rotationZ:"rotationZ",rotationDeg:"rotationDeg"}},82534:(t,n,r)=>{function e(){return[0,0,0,1]}function o(t){return[t[0],t[1],t[2],t[3]]}r.d(n,{o8:()=>o,vt:()=>e,zK:()=>s});const s=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:o,create:e,fromValues:function(t,n,r,e){return[t,n,r,e]}},Symbol.toStringTag,{value:"Module"}))},98764:(t,n,r)=>{r.d(n,{Y0:()=>c,lO:()=>f});var e=r(73941),o=r(16930),s=r(21325);const a=new o.A(e.fv),i=new o.A(e.FY),u=new o.A(e.LJ),c=new o.A(e.Ro);function f(t){const n=l.get(t);if(n)return n;let r=a;if(t)if(t===i)r=i;else if(t===u)r=u;else{const n=t.wkid,e=t.latestWkid;if(null!=n||null!=e)(0,s.tl)(n)||(0,s.tl)(e)?r=i:((0,s.ZL)(n)||(0,s.ZL)(e))&&(r=u);else{const n=t.wkt2??t.wkt;if(n){const t=n.toUpperCase();t===h?r=i:t===M&&(r=u)}}}return l.set(t,r),r}const l=new Map,h=i.wkt.toUpperCase(),M=u.wkt.toUpperCase()}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7005],{27921:(t,n,e)=>{e.d(n,{$Q:()=>z,C:()=>u,Cr:()=>M,LV:()=>c,O_:()=>l,Qj:()=>h,T7:()=>x,Tj:()=>A,Ui:()=>q,_I:()=>I,fA:()=>f,gv:()=>w,lU:()=>d,mN:()=>y,mP:()=>P,mR:()=>p,vE:()=>C,vt:()=>o});var r=e(34727),a=e(38954),s=e(51850),i=(e(87317),e(44280),e(32114));function o(t=N){return[t[0],t[1],t[2],t[3]]}function c(t=N[0],n=N[1],e=N[2],r=N[3]){return f(t,n,e,r,i.Km.get())}function u(t,n){return f(n[0],n[1],n[2],n[3],t)}function h(t){return t}function f(t,n,e,r,a=o()){return a[0]=t,a[1]=n,a[2]=e,a[3]=r,a}function l(t,n,e){const r=n[0]*n[0]+n[1]*n[1]+n[2]*n[2],a=Math.abs(r-1)>1e-5&&r>1e-12?1/Math.sqrt(r):1;return e[0]=n[0]*a,e[1]=n[1]*a,e[2]=n[2]*a,e[3]=-(e[0]*t[0]+e[1]*t[1]+e[2]*t[2]),e}function M(t,n,e,r=o()){const a=e[0]-n[0],s=e[1]-n[1],i=e[2]-n[2],c=t[0]-n[0],u=t[1]-n[1],h=t[2]-n[2],f=s*h-i*u,l=i*c-a*h,M=a*u-s*c,d=f*f+l*l+M*M,m=Math.abs(d-1)>1e-5&&d>1e-12?1/Math.sqrt(d):1;return r[0]=f*m,r[1]=l*m,r[2]=M*m,r[3]=-(r[0]*t[0]+r[1]*t[1]+r[2]*t[2]),r}function d(t,n,e,r=0,s=Math.floor(e*(1/3)),i=Math.floor(e*(2/3))){if(e<3)return!1;n(_,r);let o=s,c=!1;for(;o<e-1&&!c;)n(v,o),o++,c=!(0,a.m)(_,v);if(!c)return!1;for(o=Math.max(o,i),c=!1;o<e&&!c;)n(g,o),o++,(0,a.e)(b,_,v),(0,a.n)(b,b),(0,a.e)(j,v,g),(0,a.n)(j,j),c=!(0,a.m)(_,g)&&!(0,a.m)(v,g)&&Math.abs((0,a.g)(b,j))<m;return c?(M(_,v,g,t),!0):(0!==r||1!==s||2!==i)&&d(t,n,e,0,1,2)}e(32728);const m=.99619469809,_=(0,s.vt)(),v=(0,s.vt)(),g=(0,s.vt)(),b=(0,s.vt)(),j=(0,s.vt)();function P(t,n,e){return n!==t&&u(t,n),t[3]=-(0,a.g)(t,e),t}function p(t,n,e,r){return(0,a.f)(g,n,t),l(e,g,r)}function q(t,n,e){return null!=n&&S(C(t,n.origin,n.direction,V,e))}function x(t,n,e){return S(C(t,n.origin,n.vector,0,e))}function w(t,n,e){return S(C(t,n.origin,n.vector,1,e))}function A(t,n){return y(t,n)>=0}function z(t,n){const e=(0,a.g)(t,n.ray.direction),r=-y(t,n.ray.origin);if(r<0&&e>=0)return!1;if(e>-1e-6&&e<1e-6)return r>0;if((r<0||e<0)&&!(r<0&&e<0))return!0;const s=r/e;return e>0?s<n.c1&&(n.c1=s):s>n.c0&&(n.c0=s),n.c0<=n.c1}function I(t,n,e){const r=(0,a.j)(i.rq.get(),t,-t[3]),s=function(t,n,e){const r=(0,a.j)(i.rq.get(),t,(0,a.g)(t,n));return(0,a.e)(e,n,r),e}(t,(0,a.e)(i.rq.get(),n,r),i.rq.get());return(0,a.i)(e,s,r),e}function y(t,n){return(0,a.g)(t,n)+t[3]}function S(t){return 0===t||1===t}function C(t,n,e,s,i){const o=(0,a.g)(t,e),c=y(t,n);if(0===o)return c>=0?2:3;let u=-c/o;return 1&s&&(u=(0,r.qE)(u,0,1)),!(4&s)&&u<0||!(8&s)&&u>1?c>=0?2:3:((0,a.i)(i,n,(0,a.j)(i,e,u)),c>=0?0:1)}const N=[0,0,1,0],V=8},32114:(t,n,e)=>{e.d(n,{Rc:()=>M,J8:()=>d,rq:()=>f,Km:()=>l}),e(44208);var r=e(26390),a=e(29242),s=e(9093),i=e(82534),o=e(48163),c=e(51850),u=e(91829);class h{constructor(t){this._create=t,this._items=new Array,this._itemsPtr=0}get(){return 0===this._itemsPtr&&(0,r.d)(()=>this._reset()),this._itemsPtr>=this._items.length&&this._items.push(this._create()),this._items[this._itemsPtr++]}_reset(){const t=2*this._itemsPtr;this._items.length>t&&(this._items.length=t),this._itemsPtr=0}static createVec2f64(){return new h(o.vt)}static createVec3f64(){return new h(c.vt)}static createVec4f64(){return new h(u.vt)}static createMat3f64(){return new h(a.vt)}static createMat4f64(){return new h(s.vt)}static createQuatf64(){return new h(i.vt)}get test(){}}h.createVec2f64();const f=h.createVec3f64(),l=h.createVec4f64(),M=(h.createMat3f64(),h.createMat4f64()),d=h.createQuatf64()},32728:(t,n,e)=>{e.d(n,{nu:()=>i,wp:()=>s}),e(34727);var r=e(38954),a=e(51850);function s(t,n){const e=Math.sqrt(n[0]*n[0]+n[4]*n[4]+n[8]*n[8]),a=Math.sqrt(n[1]*n[1]+n[5]*n[5]+n[9]*n[9]),s=Math.sqrt(n[2]*n[2]+n[6]*n[6]+n[10]*n[10]);return(0,r.h)(t,e,a,s),t}function i(t,n,e,s=(0,a.vt)()){const i=(0,r.b)(t),u=(0,r.b)(n),h=(0,r.g)(t,n)/(i*u);if(h<.9999999999999999){const a=Math.acos(h),f=((1-e)*i+e*u)/Math.sin(a),l=f/i*Math.sin((1-e)*a),M=f/u*Math.sin(e*a);return(0,r.j)(o,t,l),(0,r.j)(c,n,M),(0,r.i)(s,o,c)}return(0,r.l)(s,t,n,e)}(0,a.vt)(),(0,a.vt)(),(0,a.vt)();const o=(0,a.vt)(),c=(0,a.vt)()},38954:(t,n,e)=>{e.d(n,{A:()=>f,B:()=>g,C:()=>O,D:()=>j,E:()=>V,F:()=>E,G:()=>k,H:()=>R,a:()=>T,b:()=>s,c:()=>v,d:()=>i,e:()=>u,f:()=>w,g:()=>x,h:()=>o,i:()=>c,j:()=>_,l:()=>A,m:()=>N,n:()=>q,o:()=>p,p:()=>z,q:()=>P,r:()=>y,s:()=>b,t:()=>I,u:()=>D,v:()=>l,w:()=>m,x:()=>d,y:()=>M,z:()=>h});var r=e(51850),a=e(34304);function s(t){const n=t[0],e=t[1],r=t[2];return Math.sqrt(n*n+e*e+r*r)}function i(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t}function o(t,n,e,r){return t[0]=n,t[1]=e,t[2]=r,t}function c(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2],t}function u(t,n,e){return t[0]=n[0]-e[0],t[1]=n[1]-e[1],t[2]=n[2]-e[2],t}function h(t,n,e){return t[0]=n[0]*e[0],t[1]=n[1]*e[1],t[2]=n[2]*e[2],t}function f(t,n,e){return t[0]=n[0]/e[0],t[1]=n[1]/e[1],t[2]=n[2]/e[2],t}function l(t,n){return t[0]=Math.abs(n[0]),t[1]=Math.abs(n[1]),t[2]=Math.abs(n[2]),t}function M(t,n){return t[0]=Math.sign(n[0]),t[1]=Math.sign(n[1]),t[2]=Math.sign(n[2]),t}function d(t,n,e){return t[0]=Math.min(n[0],e[0]),t[1]=Math.min(n[1],e[1]),t[2]=Math.min(n[2],e[2]),t}function m(t,n,e){return t[0]=Math.max(n[0],e[0]),t[1]=Math.max(n[1],e[1]),t[2]=Math.max(n[2],e[2]),t}function _(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t}function v(t,n,e,r){return t[0]=n[0]+e[0]*r,t[1]=n[1]+e[1]*r,t[2]=n[2]+e[2]*r,t}function g(t,n){const e=n[0]-t[0],r=n[1]-t[1],a=n[2]-t[2];return Math.sqrt(e*e+r*r+a*a)}function b(t,n){const e=n[0]-t[0],r=n[1]-t[1],a=n[2]-t[2];return e*e+r*r+a*a}function j(t){const n=t[0],e=t[1],r=t[2];return n*n+e*e+r*r}function P(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t}function p(t,n){return t[0]=1/n[0],t[1]=1/n[1],t[2]=1/n[2],t}function q(t,n){const e=n[0],r=n[1],a=n[2];let s=e*e+r*r+a*a;return s>0&&(s=1/Math.sqrt(s),t[0]=n[0]*s,t[1]=n[1]*s,t[2]=n[2]*s),t}function x(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}function w(t,n,e){const r=n[0],a=n[1],s=n[2],i=e[0],o=e[1],c=e[2];return t[0]=a*c-s*o,t[1]=s*i-r*c,t[2]=r*o-a*i,t}function A(t,n,e,r){const a=n[0],s=n[1],i=n[2];return t[0]=a+r*(e[0]-a),t[1]=s+r*(e[1]-s),t[2]=i+r*(e[2]-i),t}function z(t,n,e){const r=n[0],a=n[1],s=n[2];return t[0]=e[0]*r+e[4]*a+e[8]*s+e[12],t[1]=e[1]*r+e[5]*a+e[9]*s+e[13],t[2]=e[2]*r+e[6]*a+e[10]*s+e[14],t}function I(t,n,e){const r=n[0],a=n[1],s=n[2];return t[0]=r*e[0]+a*e[3]+s*e[6],t[1]=r*e[1]+a*e[4]+s*e[7],t[2]=r*e[2]+a*e[5]+s*e[8],t}function y(t,n,e){const r=e[0],a=e[1],s=e[2],i=e[3],o=n[0],c=n[1],u=n[2],h=a*u-s*c,f=s*o-r*u,l=r*c-a*o,M=a*l-s*f,d=s*h-r*l,m=r*f-a*h,_=2*i;return t[0]=o+h*_+2*M,t[1]=c+f*_+2*d,t[2]=u+l*_+2*m,t}const S=(0,r.vt)(),C=(0,r.vt)();function N(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]}function V(t,n){if(t===n)return!0;const e=t[0],r=t[1],s=t[2],i=n[0],o=n[1],c=n[2],u=(0,a.FD)();return Math.abs(e-i)<=u*Math.max(1,Math.abs(e),Math.abs(i))&&Math.abs(r-o)<=u*Math.max(1,Math.abs(r),Math.abs(o))&&Math.abs(s-c)<=u*Math.max(1,Math.abs(s),Math.abs(c))}function O(t,n,e){const r=e[0]-n[0],a=e[1]-n[1],s=e[2]-n[2];let i=r*r+a*a+s*s;return i>0?(i=1/Math.sqrt(i),t[0]=r*i,t[1]=a*i,t[2]=s*i,t):(t[0]=0,t[1]=0,t[2]=0,t)}const T=u,F=h,Q=f,E=g,k=b,D=s,R=j;Object.freeze(Object.defineProperty({__proto__:null,abs:l,add:c,angle:function(t,n){q(S,t),q(C,n);const e=x(S,C);return e>1?0:e<-1?Math.PI:Math.acos(e)},bezier:function(t,n,e,r,a,s){const i=1-s,o=i*i,c=s*s,u=o*i,h=3*s*o,f=3*c*i,l=c*s;return t[0]=n[0]*u+e[0]*h+r[0]*f+a[0]*l,t[1]=n[1]*u+e[1]*h+r[1]*f+a[1]*l,t[2]=n[2]*u+e[2]*h+r[2]*f+a[2]*l,t},ceil:function(t,n){return t[0]=Math.ceil(n[0]),t[1]=Math.ceil(n[1]),t[2]=Math.ceil(n[2]),t},clamp:function(t,n=0,e=1){return t[0]=Math.min(Math.max(t[0],n),e),t[1]=Math.min(Math.max(t[1],n),e),t[2]=Math.min(Math.max(t[2],n),e),t},copy:i,cross:w,crossAndNormalize:function(t,n,e){const r=n[0],a=n[1],s=n[2],i=e[0],o=e[1],c=e[2],u=a*c-s*o,h=s*i-r*c,f=r*o-a*i,l=Math.sqrt(u*u+h*h+f*f);return t[0]=u/l,t[1]=h/l,t[2]=f/l,t},direction:O,dist:E,distance:g,div:Q,divide:f,dot:x,equals:V,exactEquals:N,floor:function(t,n){return t[0]=Math.floor(n[0]),t[1]=Math.floor(n[1]),t[2]=Math.floor(n[2]),t},hermite:function(t,n,e,r,a,s){const i=s*s,o=i*(2*s-3)+1,c=i*(s-2)+s,u=i*(s-1),h=i*(3-2*s);return t[0]=n[0]*o+e[0]*c+r[0]*u+a[0]*h,t[1]=n[1]*o+e[1]*c+r[1]*u+a[1]*h,t[2]=n[2]*o+e[2]*c+r[2]*u+a[2]*h,t},inverse:p,len:D,length:s,lerp:A,max:m,min:d,mul:F,multiply:h,negate:P,normalize:q,random:function(t,n=1){const e=a.Ov,r=2*e()*Math.PI,s=2*e()-1,i=Math.sqrt(1-s*s)*n;return t[0]=Math.cos(r)*i,t[1]=Math.sin(r)*i,t[2]=s*n,t},rotateX:function(t,n,e,r){const a=[],s=[];return a[0]=n[0]-e[0],a[1]=n[1]-e[1],a[2]=n[2]-e[2],s[0]=a[0],s[1]=a[1]*Math.cos(r)-a[2]*Math.sin(r),s[2]=a[1]*Math.sin(r)+a[2]*Math.cos(r),t[0]=s[0]+e[0],t[1]=s[1]+e[1],t[2]=s[2]+e[2],t},rotateY:function(t,n,e,r){const a=[],s=[];return a[0]=n[0]-e[0],a[1]=n[1]-e[1],a[2]=n[2]-e[2],s[0]=a[2]*Math.sin(r)+a[0]*Math.cos(r),s[1]=a[1],s[2]=a[2]*Math.cos(r)-a[0]*Math.sin(r),t[0]=s[0]+e[0],t[1]=s[1]+e[1],t[2]=s[2]+e[2],t},rotateZ:function(t,n,e,r){const a=[],s=[];return a[0]=n[0]-e[0],a[1]=n[1]-e[1],a[2]=n[2]-e[2],s[0]=a[0]*Math.cos(r)-a[1]*Math.sin(r),s[1]=a[0]*Math.sin(r)+a[1]*Math.cos(r),s[2]=a[2],t[0]=s[0]+e[0],t[1]=s[1]+e[1],t[2]=s[2]+e[2],t},round:function(t,n){return t[0]=Math.round(n[0]),t[1]=Math.round(n[1]),t[2]=Math.round(n[2]),t},scale:_,scaleAndAdd:v,set:o,sign:M,sqrDist:k,sqrLen:R,squaredDistance:b,squaredLength:j,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:T,subtract:u,transformMat3:I,transformMat4:z,transformQuat:y},Symbol.toStringTag,{value:"Module"}))},44280:(t,n,e)=>{e.d(n,{EJ:()=>c,g7:()=>o,gr:()=>i});var r=e(34727),a=e(38954),s=e(51850);function i(t,n){return(0,a.g)(t,n)/(0,a.b)(t)}function o(t,n){const e=(0,a.g)(t,n)/((0,a.b)(t)*(0,a.b)(n));return-(0,r.XM)(e)}function c(t,n,e){(0,a.n)(u,t),(0,a.n)(h,n);const s=(0,a.g)(u,h),i=(0,r.XM)(s),o=(0,a.f)(u,u,h);return(0,a.g)(o,e)<0?2*Math.PI-i:i}const u=(0,s.vt)(),h=(0,s.vt)()},46610:(t,n,e)=>{e.d(n,{K:()=>r,n:()=>a});class r{constructor(t,n,e=n){this.data=t,this.size=n,this.stride=e}}class a extends r{constructor(t,n,e,r=!1,a=e){super(t,e,a),this.indices=n,this.exclusive=r}}},48163:(t,n,e)=>{function r(){return[0,0]}function a(t){return[t[0],t[1]]}function s(t,n){return[t,n]}function i(){return s(1,1)}function o(){return s(1,0)}function c(){return s(0,1)}e.d(n,{Un:()=>u,fA:()=>s,o8:()=>a,vt:()=>r});const u=i(),h=o(),f=c();Object.freeze(Object.defineProperty({__proto__:null,ONES:u,UNIT_X:h,UNIT_Y:f,ZEROS:[0,0],clone:a,create:r,freeze:function(t,n){return[t,n]},fromArray:function(t,n=[0,0]){const e=Math.min(2,t.length);for(let r=0;r<e;++r)n[r]=t[r];return n},fromValues:s,ones:i,unitX:o,unitY:c,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"}))},48353:(t,n,e)=>{e.d(n,{l:()=>u});var r=e(34727),a=e(58083),s=e(51850);function i(t,n,e){const r=Math.sin(t),a=Math.cos(t),s=Math.sin(n),i=Math.cos(n),o=e;return o[0]=-r,o[4]=-s*a,o[8]=i*a,o[12]=0,o[1]=a,o[5]=-s*r,o[9]=i*r,o[13]=0,o[2]=0,o[6]=i,o[10]=s,o[14]=0,o[3]=0,o[7]=0,o[11]=0,o[15]=1,o}var o=e(37539),c=e(21325);function u(t,n,e,r){const s=(0,o.Tp)(t,r);if(null==s)return!1;const u=s.source.spatialReferenceId,d=s.dest.spatialReferenceId;if(u===d&&!h(d)&&(0!==u||(0,c.aI)(t,r)))return(0,a.kN)(e,n),!0;if(h(d)){const t=o.w5[u][10],r=o.w5[10][d];return null!=t&&null!=r&&(t(n,0,l,0),r(l,0,M,0),i(f*l[0],f*l[1],e),e[12]=M[0],e[13]=M[1],e[14]=M[2],!0)}const m=h(u);if((3===d||11===d||2===d||5===d)&&(2===u||m||3===u||5===u)){const t=o.w5[u][10],r=o.w5[10][d];return null!=t&&null!=r&&(t(n,0,l,0),r(l,0,M,0),m?function(t,n,e){i(t,n,e),(0,a.mg)(e,e)}(f*l[0],f*l[1],e):(0,a.D_)(e),e[12]=M[0],e[13]=M[1],e[14]=M[2],!0)}return!1}function h(t){return 1===t||6===t||8===t||4===t}const f=(0,r.kU)(1),l=(0,s.vt)(),M=(0,s.vt)()},57005:(t,n,e)=>{e.d(n,{ab:()=>bt,gm:()=>yt});var r=e(77690),a=e(29242),s=e(9093),i=e(67026),o=e(82534),c=e(38954),u=e(51850),h=e(87317),f=e(91829),l=e(73941),M=e(98764),d=e(48353),m=e(9762),_=e(37539),v=e(27921),g=e(21325),b=e(32114),j=e(48163),P=e(46610);const p=1e-6,q=(0,u.vt)(),x=(0,u.vt)();function w(t,n,e,r,a,s,i,o,c,u){return function(t,n,e){let r=vt(t.maxVert[0],t.minVert[0]),a=0;for(let n=1;n<7;++n){const e=vt(t.maxVert[n],t.minVert[n]);e>r&&(r=e,a=n)}Mt(n,t.minVert[a]),Mt(e,t.maxVert[a])}(t,r,a),vt(r,a)<p?1:(ft(i,r,a),mt(i,i),function(t,n,e,r){const{data:a,size:s}=t;let i=Number.NEGATIVE_INFINITY,o=0;for(let t=0;t<a.length;t+=s){T[0]=a[t]-n[0],T[1]=a[t+1]-n[1],T[2]=a[t+2]-n[2];const r=e[0]*T[0]+e[1]*T[1]+e[2]*T[2],s=e[0]*e[0]+e[1]*e[1]+e[2]*e[2],c=T[0]*T[0]+T[1]*T[1]+T[2]*T[2]-r*r/s;c>i&&(i=c,o=t)}return Mt(r,a,o),i}(n,r,i,s)<p?2:(ft(o,a,s),mt(o,o),ft(c,s,r),mt(c,c),dt(e,o,i),mt(e,e),Y(n,e,i,o,c,u),0))}const A=(0,u.vt)(),z=(0,u.vt)(),I=(0,u.vt)(),y=(0,u.vt)(),S=(0,u.vt)(),C=(0,u.vt)(),N=(0,u.vt)(),V=(0,u.vt)();function O(t,n,e,r,a,s,i,o,c){(function(t,n,e,r,a){!function(t,n,e,r,a){const{data:s,size:i}=t;Mt(r,s),Mt(a,r),e[0]=gt(Z,n),e[1]=e[0];for(let t=i;t<s.length;t+=i){const i=s[t]*n[0]+s[t+1]*n[1]+s[t+2]*n[2];i<e[0]&&(e[0]=i,Mt(r,s,t)),i>e[1]&&(e[1]=i,Mt(a,s,t))}}(t,n,F,a,r);const s=gt(e,n);F[1]-p<=s&&(r[0]=void 0),F[0]+p>=s&&(a[0]=void 0)})(t,n,e,A,z),void 0!==A[0]&&(ft(I,A,e),mt(I,I),ft(y,A,r),mt(y,y),ft(S,A,a),mt(S,S),dt(C,y,s),mt(C,C),dt(N,S,i),mt(N,N),dt(V,I,o),mt(V,V),Y(t,C,s,y,I,c),Y(t,N,i,S,y,c),Y(t,V,o,I,S,c)),void 0!==z[0]&&(ft(I,z,e),mt(I,I),ft(y,z,r),mt(y,y),ft(S,z,a),mt(S,S),dt(C,y,s),mt(C,C),dt(N,S,i),mt(N,N),dt(V,I,o),mt(V,V),Y(t,C,s,y,I,c),Y(t,N,i,S,y,c),Y(t,V,o,I,S,c))}const T=[0,0,0],F=(0,j.vt)(),Q=(0,u.vt)(),E=(0,u.vt)(),k=(0,u.vt)(),D=(0,u.vt)(),R=(0,u.vt)(),X=(0,u.vt)();function Y(t,n,e,r,a,s){if(_t(n)<p)return;dt(Q,e,n),dt(E,r,n),dt(k,a,n),B(t,n,F),R[1]=F[0],D[1]=F[1],X[1]=D[1]-R[1];const i=[e,r,a],o=[Q,E,k];for(let e=0;e<3;++e){B(t,i[e],F),R[0]=F[0],D[0]=F[1],B(t,o[e],F),R[2]=F[0],D[2]=F[1],X[0]=D[0]-R[0],X[2]=D[2]-R[2];const r=ut(X);r<s.quality&&(Mt(s.b0,i[e]),Mt(s.b1,n),Mt(s.b2,o[e]),s.quality=r)}}const Z=(0,u.vt)();function B(t,n,e){const{data:r,size:a}=t;e[0]=Number.POSITIVE_INFINITY,e[1]=Number.NEGATIVE_INFINITY;for(let t=0;t<r.length;t+=a){const a=r[t]*n[0]+r[t+1]*n[1]+r[t+2]*n[2];e[0]=Math.min(e[0],a),e[1]=Math.max(e[1],a)}}function U(t,n,e){e.center=t,e.halfSize=(0,c.j)(n,n,.5),e.quaternion=o.zK}const H=(0,u.vt)(),K=(0,u.vt)(),L=(0,u.vt)(),G=(0,u.vt)(),W=(0,u.vt)(),J=(0,u.vt)();function $(t,n,e){Mt(H,n),Math.abs(n[0])>Math.abs(n[1])&&Math.abs(n[0])>Math.abs(n[2])?H[0]=0:Math.abs(n[1])>Math.abs(n[2])?H[1]=0:H[2]=0,_t(H)<p&&(H[0]=H[1]=H[2]=1),dt(K,n,H),mt(K,K),dt(L,n,K),mt(L,L),tt(t,n,K,L,G,W),ft(J,W,G),it(n,K,L,G,W,J,e)}function tt(t,n,e,r,a,s){B(t,n,F),a[0]=F[0],s[0]=F[1],B(t,e,F),a[1]=F[0],s[1]=F[1],B(t,r,F),a[2]=F[0],s[2]=F[1]}const nt=(0,u.vt)(),et=(0,u.vt)(),rt=(0,u.vt)(),at=(0,a.fA)(1,0,0,0,1,0,0,0,1),st=(0,o.vt)();function it(t,n,e,r,a,s,i){at[0]=t[0],at[1]=t[1],at[2]=t[2],at[3]=n[0],at[4]=n[1],at[5]=n[2],at[6]=e[0],at[7]=e[1],at[8]=e[2],i.quaternion=function(t,n){const e=n[0]+n[4]+n[8];if(e>0){let r=Math.sqrt(e+1);t[3]=.5*r,r=.5/r,t[0]=(n[5]-n[7])*r,t[1]=(n[6]-n[2])*r,t[2]=(n[1]-n[3])*r}else{let e=0;n[4]>n[0]&&(e=1),n[8]>n[3*e+e]&&(e=2);const r=(e+1)%3,a=(e+2)%3;let s=Math.sqrt(n[3*e+e]-n[3*r+r]-n[3*a+a]+1);t[e]=.5*s,s=.5/s,t[3]=(n[3*r+a]-n[3*a+r])*s,t[r]=(n[3*r+e]+n[3*e+r])*s,t[a]=(n[3*a+e]+n[3*e+a])*s}return t}(st,at),ht(nt,r,a),lt(nt,nt,.5),lt(et,t,nt[0]),lt(rt,n,nt[1]),ht(et,et,rt),lt(rt,e,nt[2]),i.center=(0,c.i)(et,et,rt),i.halfSize=(0,c.j)(nt,s,.5)}class ot{constructor(t){this.minVert=new Array(7),this.maxVert=new Array(7),this.buffer=new ArrayBuffer(448);let n=0;this.minProj=new Float64Array(this.buffer,n,7),n+=56,this.maxProj=new Float64Array(this.buffer,n,7),n+=56;for(let t=0;t<7;++t)this.minVert[t]=new Float64Array(this.buffer,n,3),n+=24;for(let t=0;t<7;++t)this.maxVert[t]=new Float64Array(this.buffer,n,3),n+=24;for(let t=0;t<7;++t)this.minProj[t]=Number.POSITIVE_INFINITY,this.maxProj[t]=Number.NEGATIVE_INFINITY;const e=new Array(7),r=new Array(7),{data:a,size:s}=t;for(let t=0;t<a.length;t+=s){let n=a[t];n<this.minProj[0]&&(this.minProj[0]=n,e[0]=t),n>this.maxProj[0]&&(this.maxProj[0]=n,r[0]=t),n=a[t+1],n<this.minProj[1]&&(this.minProj[1]=n,e[1]=t),n>this.maxProj[1]&&(this.maxProj[1]=n,r[1]=t),n=a[t+2],n<this.minProj[2]&&(this.minProj[2]=n,e[2]=t),n>this.maxProj[2]&&(this.maxProj[2]=n,r[2]=t),n=a[t]+a[t+1]+a[t+2],n<this.minProj[3]&&(this.minProj[3]=n,e[3]=t),n>this.maxProj[3]&&(this.maxProj[3]=n,r[3]=t),n=a[t]+a[t+1]-a[t+2],n<this.minProj[4]&&(this.minProj[4]=n,e[4]=t),n>this.maxProj[4]&&(this.maxProj[4]=n,r[4]=t),n=a[t]-a[t+1]+a[t+2],n<this.minProj[5]&&(this.minProj[5]=n,e[5]=t),n>this.maxProj[5]&&(this.maxProj[5]=n,r[5]=t),n=a[t]-a[t+1]-a[t+2],n<this.minProj[6]&&(this.minProj[6]=n,e[6]=t),n>this.maxProj[6]&&(this.maxProj[6]=n,r[6]=t)}for(let t=0;t<7;++t){let n=e[t];Mt(this.minVert[t],a,n),n=r[t],Mt(this.maxVert[t],a,n)}}}class ct{constructor(){this.b0=(0,u.fA)(1,0,0),this.b1=(0,u.fA)(0,1,0),this.b2=(0,u.fA)(0,0,1),this.quality=0}}function ut(t){return t[0]*t[1]+t[0]*t[2]+t[1]*t[2]}function ht(t,n,e){t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2]}function ft(t,n,e){t[0]=n[0]-e[0],t[1]=n[1]-e[1],t[2]=n[2]-e[2]}function lt(t,n,e){t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e}function Mt(t,n,e=0){t[0]=n[e],t[1]=n[e+1],t[2]=n[e+2]}function dt(t,n,e){const r=n[0],a=n[1],s=n[2],i=e[0],o=e[1],c=e[2];t[0]=a*c-s*o,t[1]=s*i-r*c,t[2]=r*o-a*i}function mt(t,n){const e=n[0]*n[0]+n[1]*n[1]+n[2]*n[2];if(e>0){const r=1/Math.sqrt(e);t[0]=n[0]*r,t[1]=n[1]*r,t[2]=n[2]*r}}function _t(t){return t[0]*t[0]+t[1]*t[1]+t[2]*t[2]}function vt(t,n){const e=n[0]-t[0],r=n[1]-t[1],a=n[2]-t[2];return e*e+r*r+a*a}function gt(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}class bt{constructor(t=u.uY,n=Zt,e=o.zK){this._data=[t[0],t[1],t[2],n[0],n[1],n[2],e[0],e[1],e[2],e[3]]}clone(){return bt.fromData(this._data)}invalidate(){this._data[3]=-1}get isValid(){return this._data[3]>=0}static fromData(t){const n=new bt;return n._copyFromData(t),n}static fromJSON(t){return new bt(t.center,t.halfSize,t.quaternion)}copy(t){this._copyFromData(t.data)}_copyFromData(t){for(let n=0;n<10;++n)this._data[n]=t[n]}get center(){return(0,c.h)(b.rq.get(),this._data[0],this._data[1],this._data[2])}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}set center(t){this._data[0]=t[0],this._data[1]=t[1],this._data[2]=t[2]}setCenter(t,n,e){this._data[0]=t,this._data[1]=n,this._data[2]=e}get halfSize(){return(0,c.h)(b.rq.get(),this._data[3],this._data[4],this._data[5])}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}set halfSize(t){this._data[3]=t[0],this._data[4]=t[1],this._data[5]=t[2]}get quaternion(){return(0,i.hZ)(b.J8.get(),this._data[6],this._data[7],this._data[8],this._data[9])}getQuaternion(t){return t[0]=this._data[6],t[1]=this._data[7],t[2]=this._data[8],t[3]=this._data[9],t}set quaternion(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){const n=this._data,e=(0,i.hZ)(jt,n[6],n[7],n[8],n[9]);for(let r=0;r<8;++r){const a=t[r];a[0]=(1&r?-1:1)*n[3],a[1]=(2&r?-1:1)*n[4],a[2]=(4&r?-1:1)*n[5],(0,c.r)(a,a,e),a[0]+=n[0],a[1]+=n[1],a[2]+=n[2]}return t}getAxes(t){const n=this._data,e=(0,i.hZ)(jt,n[6],n[7],n[8],n[9]);return(0,c.r)(t[0],[1,0,0],e),(0,c.r)(t[1],[0,1,0],e),(0,c.r)(t[2],[0,0,1],e),t}intersectsFrustum(t){const n=this.center,e=t.planes;for(const t of e){const e=(0,v.Qj)(t),r=this.projectedRadius(e);if((0,c.g)(e,n)+t[3]-r>0)return!1}const r=this.getAxes(Dt),a=t.points,s=this.halfSize;for(let t=0;t<3;++t){const e=r[t],i=-(0,c.g)(e,n),o=s[t];let u=!0,h=!0;for(const t of a){const n=(0,c.g)(t,e)+i;u&&=n>o,h&&=n<-o}if(u||h)return!1}if(this.getCorners(kt).some(n=>t.intersectsPoint(n)))return!0;const i=Ut;for(let t=0;t<3;++t){const e=r[t];i[t]=(0,c.g)(e,n)}if(t.points.some(t=>(t=>{for(let n=0;n<3;++n){const e=r[n],a=s[n],o=(0,c.g)(e,t)-i[n];if(o>a||o<-a)return!1}return!0})(t)))return!0;const o=t.lines,u=Bt;for(let t=0;t<8;++t){const e=o[t].direction;for(const t of r){(0,c.f)(u,e,t);const r=(0,c.u)(u);if(!(r>0))continue;(0,c.j)(u,u,1/r);const s=this.projectedRadius(u),i=(0,c.g)(n,u),o=i-s,h=i+s;let f=!1,l=!1,M=!0;for(const t of a){const n=(0,c.g)(u,t);if(n>h){if(l){M=!1;break}f=!0}else{if(!(n<o)){M=!1;break}if(f){M=!1;break}l=!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}get radius(){const t=this._data[3],n=this._data[4],e=this._data[5];return Math.sqrt(t*t+n*n+e*e)}intersectsPoint(t){const n=this.getAxes(Dt),e=this.halfSize,{center:r}=this;for(let a=0;a<3;++a){const s=n[a],i=e[a],o=(0,c.g)(s,t)-(0,c.g)(s,r);if(o>i||o<-i)return!1}return!0}intersectSphere(t){const{center:n,radius:e}=t,r=this._data,a=r[3],s=r[4],i=r[5],o=Math.max(a,s,i)+e,c=r[0]-n[0];if(c>o)return!1;const u=r[1]-n[1];if(u>o)return!1;const h=r[2]-n[2];if(h>o)return!1;const f=-r[6],l=-r[7],M=-r[8],d=l*h-M*u,m=M*c-f*h,_=f*u-l*c,v=l*_-M*m,g=M*d-f*_,b=f*m-l*d,j=2*r[9],P=Math.abs(c+d*j+2*v),p=Math.abs(u+m*j+2*g),q=Math.abs(h+_*j+2*b),x=P-Math.min(P,a),w=p-Math.min(p,s),A=q-Math.min(q,i);return x*x+w*w+A*A<e*e}intersectSphereWithMBS(t,n=this.radius){const e=this._data,{center:r,radius:a}=t,s=n+a,i=e[0]-r[0];if(i>s)return!1;const o=e[1]-r[1];if(o>s)return!1;const c=e[2]-r[2];if(c>s)return!1;if(i*i+o*o+c*c>s*s)return!1;const u=-e[6],h=-e[7],f=-e[8],l=h*c-f*o,M=f*i-u*c,d=u*o-h*i,m=h*d-f*M,_=f*l-u*d,v=u*M-h*l,g=2*e[9],b=Math.abs(i+l*g+2*m),j=Math.abs(o+M*g+2*_),P=Math.abs(c+d*g+2*v),p=b-Math.min(b,e[3]),q=j-Math.min(j,e[4]),x=P-Math.min(P,e[5]);return p*p+q*q+x*x<a*a}intersectPlane(t){const n=t[0]*this._data[0]+t[1]*this._data[1]+t[2]*this._data[2]+t[3],e=this.projectedRadius((0,v.Qj)(t));return n>e?1:n<-e?-1:0}intersectRay(t,n,e=0){const r=this._data,a=jt;a[0]=-r[6],a[1]=-r[7],a[2]=-r[8],a[3]=r[9],qt[0]=t[0]-r[0],qt[1]=t[1]-r[1],qt[2]=t[2]-r[2];const s=(0,c.r)(qt,qt,jt),i=(0,c.r)(xt,n,jt);let o=-1/0,u=1/0;const h=this.getHalfSize(Ft);for(let t=0;t<3;t++){const n=s[t],r=i[t],a=h[t]+e;if(Math.abs(r)>1e-6){const t=(a-n)/r,e=(-a-n)/r;o=Math.max(o,Math.min(t,e)),u=Math.min(u,Math.max(t,e))}else if(n>a||n<-a)return!1}return o<=u}projectedArea(t,n,e,a){const s=this.getQuaternion(Pt);(0,i.Xr)(jt,s),qt[0]=t[0]-this._data[0],qt[1]=t[1]-this._data[1],qt[2]=t[2]-this._data[2],(0,c.r)(qt,qt,jt);const o=this.getHalfSize(Ft),u=qt[0]<-o[0]?-1:qt[0]>o[0]?1:0,f=qt[1]<-o[1]?-1:qt[1]>o[1]?1:0,l=qt[2]<-o[2]?-1:qt[2]>o[2]?1:0,M=Math.abs(u)+Math.abs(f)+Math.abs(l);if(0===M)return 1/0;const d=1===M?4:6,m=6*(u+3*f+9*l+13);(0,r.I0)(Qt,s),(0,r.hs)(Qt,Qt,o);const _=this.getCenter(Ot);for(let t=0;t<d;t++){const e=It[m+t];(0,c.h)(qt,((1&e)<<1)-1,(2&e)-1,((4&e)>>1)-1),(0,c.t)(qt,qt,Qt),(0,c.i)(wt,_,qt),wt[3]=1,(0,h.t)(wt,wt,n);const r=1/Math.max(1e-6,wt[3]);zt[2*t]=wt[0]*r,zt[2*t+1]=wt[1]*r}const v=2*d-2;let g=zt[0]*(zt[3]-zt[v+1])+zt[v]*(zt[1]-zt[v-1]);for(let t=2;t<v;t+=2)g+=zt[t]*(zt[t+3]-zt[t-1]);return Math.abs(g)*e*a*.125}projectedRadius(t){const n=this.getQuaternion(Pt);return(0,i.Xr)(jt,n),(0,c.r)(qt,t,jt),Math.abs(qt[0]*this._data[3])+Math.abs(qt[1]*this._data[4])+Math.abs(qt[2]*this._data[5])}minimumDistancePlane(t){return t[0]*this._data[0]+t[1]*this._data[1]+t[2]*this._data[2]+t[3]-this.projectedRadius((0,v.Qj)(t))}maximumDistancePlane(t){return t[0]*this._data[0]+t[1]*this._data[1]+t[2]*this._data[2]+t[3]+this.projectedRadius((0,v.Qj)(t))}toAaBoundingBox(t){const n=this.getQuaternion(Pt),e=(0,r.I0)(Qt,n),a=this._data[3]*Math.abs(e[0])+this._data[4]*Math.abs(e[3])+this._data[5]*Math.abs(e[6]),s=this._data[3]*Math.abs(e[1])+this._data[4]*Math.abs(e[4])+this._data[5]*Math.abs(e[7]),i=this._data[3]*Math.abs(e[2])+this._data[4]*Math.abs(e[5])+this._data[5]*Math.abs(e[8]);t[0]=this._data[0]-a,t[1]=this._data[1]-s,t[2]=this._data[2]-i,t[3]=this._data[0]+a,t[4]=this._data[1]+s,t[5]=this._data[2]+i}transform(t,n,e,r=0,a=(0,M.lO)(e),s=(0,M.lO)(n),o=(0,_.jd)(n,s)){if(e===a)n.isGeographic?function(t,n,e,r,a=(0,M.lO)(e)){const s=(0,l.tO)(e),o=1+Math.max(0,r)/(s.radius+t.centerZ);t.getCenter(Vt),Vt[2]+=r,(0,m.projectBuffer)(Vt,e,0,Vt,a,0),n.center=Vt;const u=t.getQuaternion(Pt);n.quaternion=u,(0,i.Xr)(jt,u),(0,c.h)(Rt,0,0,1),(0,c.r)(Rt,Rt,jt);const h=t.getHalfSize(Ft);(0,c.h)(Rt,h[0]*Math.abs(Rt[0]),h[1]*Math.abs(Rt[1]),h[2]*Math.abs(Rt[2])),(0,c.j)(Rt,Rt,s.inverseFlattening),(0,c.i)(Rt,h,Rt),n.halfSize=(0,c.j)(Rt,Rt,o)}(this,t,n,r,s):function(t,n,e,r,a=(0,M.lO)(e),s=(0,_.jd)(e,a)){t.getCorners(kt),t.getCenter(Vt),Vt[2]+=r,(0,d.l)(e,Vt,Et,a),n.setCenter(Et[12],Et[13],Et[14]);const o=2*Math.sqrt(1+Et[0]+Et[5]+Et[10]);jt[0]=(Et[6]-Et[9])/o,jt[1]=(Et[8]-Et[2])/o,jt[2]=(Et[1]-Et[4])/o,jt[3]=.25*o;const u=t.getQuaternion(Pt);n.quaternion=(0,i.lw)(jt,jt,u),(0,i.Xr)(jt,jt),(0,c.h)(Xt,0,0,0);const h=n.getCenter(Tt);for(const t of kt)t[2]+=r,s(t,0,t,0),(0,c.a)(Rt,t,h),(0,c.r)(Rt,Rt,jt),(0,c.v)(Rt,Rt),(0,c.w)(Xt,Xt,Rt);n.halfSize=Xt}(this,t,n,r,s,o);else if(n.isWGS84&&(e.isWebMercator||(0,g.r1)(e)))!function(t,n,e,r,a){n.getCenter(Ot),Ot[2]+=a;const s=(0,M.lO)(e);(0,m.projectBuffer)(Ot,t,0,Ot,s,0),St(s,n,Ot,e,r)}(n,this,e,t,r);else if(n.isWebMercator&&(0,g.r1)(e))!function(t,n,e,r,a){n.getCenter(Ot),Ot[2]+=a,St(t,n,Ot,e,r)}(n,this,e,t,r);else{const a=this.getCenter(Ot);a[2]+=r,(0,m.projectBuffer)(a,n,0,a,e,0),t.center=a,this!==t&&(t.quaternion=this.getQuaternion(Pt),t.halfSize=this.getHalfSize(Ft))}}}const jt=(0,o.vt)(),Pt=(0,o.vt)(),pt=(0,o.vt)(),qt=(0,u.vt)(),xt=(0,u.vt)(),wt=(0,f.vt)();function At(t,n=new bt){return function(t,n){const{data:e,size:r}=t,a=e.length/r;if(a<=0)return;const s=new ot(t);ht(q,s.minProj,s.maxProj),lt(q,q,.5),ft(x,s.maxProj,s.minProj);const i=ut(x),o=new ct;o.quality=i,a<14&&(t=new P.K(new Float64Array(s.buffer,112,42),3));const c=(0,u.vt)(),h=(0,u.vt)(),f=(0,u.vt)(),l=(0,u.vt)(),M=(0,u.vt)(),d=(0,u.vt)(),m=(0,u.vt)();switch(w(s,t,m,c,h,f,l,M,d,o)){case 1:return void U(q,x,n);case 2:return void $(t,l,n)}O(t,m,c,h,f,l,M,d,o),tt(t,o.b0,o.b1,o.b2,G,W);const _=(0,u.vt)();ft(_,W,G),o.quality=ut(_),o.quality<i?it(o.b0,o.b1,o.b2,G,W,_,n):U(q,x,n)}(t,n),n}const zt=[.1,.2,.3,.4,.5,.6,.7,.8,.9,1,1.1,1.2],It=(()=>{const t=new Int8Array(162);let n=0;const e=e=>{for(let r=0;r<e.length;r++)t[n+r]=e[r];n+=6};return e([6,2,3,1,5,4]),e([0,2,3,1,5,4]),e([0,2,3,7,5,4]),e([0,1,3,2,6,4]),e([0,1,3,2,0,0]),e([0,1,5,7,3,2]),e([0,1,3,7,6,4]),e([0,1,3,7,6,2]),e([0,1,5,7,6,2]),e([0,1,5,4,6,2]),e([0,1,5,4,0,0]),e([0,1,3,7,5,4]),e([0,2,6,4,0,0]),e([0,0,0,0,0,0]),e([1,3,7,5,0,0]),e([2,3,7,6,4,0]),e([2,3,7,6,0,0]),e([2,3,1,5,7,6]),e([0,1,5,7,6,2]),e([0,1,5,7,6,4]),e([0,1,3,7,6,4]),e([4,5,7,6,2,0]),e([4,5,7,6,0,0]),e([4,5,1,3,7,6]),e([0,2,3,7,5,4]),e([6,2,3,7,5,4]),e([6,2,3,1,5,4]),t})();function yt(t,n,e,r,a){const s=t.getQuaternion(Pt);a.quaternion=s,(0,i.Xr)(jt,s);const o=t.getCenter(Ot),h=t.getHalfSize(Ft);if(1===r){(0,c.r)(Rt,o,jt),(0,c.v)(Xt,Rt),(0,c.x)(Yt,Xt,h),(0,c.a)(Yt,Xt,Yt);const r=(0,c.b)(Yt);(0,c.i)(Yt,Xt,h);const s=(0,c.b)(Yt);if(r<e)a.center=o,(0,c.h)(Rt,e,e,e),a.halfSize=(0,c.i)(Rt,h,Rt);else{const i=s>0?1+n/s:1,o=r>0?1+e/r:1,u=(o+i)/2,f=(o-i)/2;(0,c.j)(Yt,Xt,f),a.halfSize=(0,c.c)(Yt,Yt,h,u),(0,c.j)(Yt,Xt,u),(0,c.c)(Yt,Yt,h,f),(0,c.y)(Rt,Rt),(0,c.z)(Rt,Yt,Rt);const l=t.getQuaternion(pt);a.center=(0,c.r)(Rt,Rt,l)}}else{a.center=(0,c.c)(Rt,o,u.Cb,(e+n)/2);const t=(0,c.r)(Rt,u.Cb,jt);(0,c.v)(t,t),a.halfSize=(0,c.c)(Xt,h,t,(e-n)/2)}return a}function St(t,n,e,a,s){const i=n.getQuaternion(Pt),o=(0,r.I0)(Qt,i),c=n.getHalfSize(Ft);for(let t=0;t<8;++t){for(let n=0;n<3;++n)Vt[n]=c[n]*(t&1<<n?-1:1);for(let n=0;n<3;++n){let r=e[n];for(let t=0;t<3;++t)r+=Vt[t]*o[3*t+n];Ct[3*t+n]=r}}(0,m.projectBuffer)(Ct,t,0,Ct,a,0,8),At(Nt,s)}const Ct=new Array(24),Nt=new P.K(Ct,3),Vt=(0,u.vt)(),Ot=(0,u.vt)(),Tt=(0,u.vt)(),Ft=(0,u.vt)(),Qt=(0,a.vt)(),Et=(0,s.vt)(),kt=[[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,u.vt)(),(0,u.vt)(),(0,u.vt)()],Rt=(0,u.vt)(),Xt=(0,u.vt)(),Yt=(0,u.vt)(),Zt=(0,u.CN)(-1,-1,-1),Bt=(0,u.vt)(),Ut=[0,0,0]},67026:(t,n,e)=>{e.d(n,{A6:()=>m,Xd:()=>h,Xr:()=>M,hZ:()=>v,lw:()=>f,t2:()=>I,x8:()=>u});var r=e(29242),a=e(82534),s=e(51850),i=e(34304),o=e(38954),c=e(87317);function u(t,n,e){e*=.5;const r=Math.sin(e);return t[0]=r*n[0],t[1]=r*n[1],t[2]=r*n[2],t[3]=Math.cos(e),t}function h(t,n){const e=2*Math.acos(n[3]),r=Math.sin(e/2);return r>(0,i.FD)()?(t[0]=n[0]/r,t[1]=n[1]/r,t[2]=n[2]/r):(t[0]=1,t[1]=0,t[2]=0),e}function f(t,n,e){const r=n[0],a=n[1],s=n[2],i=n[3],o=e[0],c=e[1],u=e[2],h=e[3];return t[0]=r*h+i*o+a*u-s*c,t[1]=a*h+i*c+s*o-r*u,t[2]=s*h+i*u+r*c-a*o,t[3]=i*h-r*o-a*c-s*u,t}function l(t,n,e,r){const a=n[0],s=n[1],o=n[2],c=n[3];let u,h,f,l,M,d=e[0],m=e[1],_=e[2],v=e[3];return h=a*d+s*m+o*_+c*v,h<0&&(h=-h,d=-d,m=-m,_=-_,v=-v),1-h>(0,i.FD)()?(u=Math.acos(h),f=Math.sin(u),l=Math.sin((1-r)*u)/f,M=Math.sin(r*u)/f):(l=1-r,M=r),t[0]=l*a+M*d,t[1]=l*s+M*m,t[2]=l*o+M*_,t[3]=l*c+M*v,t}function M(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t[3]=n[3],t}function d(t,n){const e=n[0]+n[4]+n[8];let r;if(e>0)r=Math.sqrt(e+1),t[3]=.5*r,r=.5/r,t[0]=(n[5]-n[7])*r,t[1]=(n[6]-n[2])*r,t[2]=(n[1]-n[3])*r;else{let e=0;n[4]>n[0]&&(e=1),n[8]>n[3*e+e]&&(e=2);const a=(e+1)%3,s=(e+2)%3;r=Math.sqrt(n[3*e+e]-n[3*a+a]-n[3*s+s]+1),t[e]=.5*r,r=.5/r,t[3]=(n[3*a+s]-n[3*s+a])*r,t[a]=(n[3*a+e]+n[3*e+a])*r,t[s]=(n[3*s+e]+n[3*e+s])*r}return t}function m(t,n,e,r){const a=.5*Math.PI/180;n*=a,e*=a,r*=a;const s=Math.sin(n),i=Math.cos(n),o=Math.sin(e),c=Math.cos(e),u=Math.sin(r),h=Math.cos(r);return t[0]=s*c*h-i*o*u,t[1]=i*o*h+s*c*u,t[2]=i*c*u-s*o*h,t[3]=i*c*h+s*o*u,t}const _=c.f,v=c.c,g=c.i,b=f,j=c.s,P=c.h,p=c.l,q=c.j,x=q,w=c.d,A=w,z=c.n,I=c.a,y=c.e,S=(0,s.vt)(),C=(0,s.fA)(1,0,0),N=(0,s.fA)(0,1,0),V=(0,a.vt)(),O=(0,a.vt)(),T=(0,r.vt)();Object.freeze(Object.defineProperty({__proto__:null,add:g,calculateW:function(t,n){const e=n[0],r=n[1],a=n[2];return t[0]=e,t[1]=r,t[2]=a,t[3]=Math.sqrt(Math.abs(1-e*e-r*r-a*a)),t},conjugate:M,copy:_,dot:P,equals:y,exactEquals:I,fromEuler:m,fromMat3:d,getAxisAngle:h,identity:function(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t},invert:function(t,n){const e=n[0],r=n[1],a=n[2],s=n[3],i=e*e+r*r+a*a+s*s,o=i?1/i:0;return t[0]=-e*o,t[1]=-r*o,t[2]=-a*o,t[3]=s*o,t},len:x,length:q,lerp:p,mul:b,multiply:f,normalize:z,random:function(t){const n=i.Ov,e=n(),r=n(),a=n(),s=Math.sqrt(1-e),o=Math.sqrt(e);return t[0]=s*Math.sin(2*Math.PI*r),t[1]=s*Math.cos(2*Math.PI*r),t[2]=o*Math.sin(2*Math.PI*a),t[3]=o*Math.cos(2*Math.PI*a),t},rotateX:function(t,n,e){e*=.5;const r=n[0],a=n[1],s=n[2],i=n[3],o=Math.sin(e),c=Math.cos(e);return t[0]=r*c+i*o,t[1]=a*c+s*o,t[2]=s*c-a*o,t[3]=i*c-r*o,t},rotateY:function(t,n,e){e*=.5;const r=n[0],a=n[1],s=n[2],i=n[3],o=Math.sin(e),c=Math.cos(e);return t[0]=r*c-s*o,t[1]=a*c+i*o,t[2]=s*c+r*o,t[3]=i*c-a*o,t},rotateZ:function(t,n,e){e*=.5;const r=n[0],a=n[1],s=n[2],i=n[3],o=Math.sin(e),c=Math.cos(e);return t[0]=r*c+a*o,t[1]=a*c-r*o,t[2]=s*c+i*o,t[3]=i*c-s*o,t},rotationTo:function(t,n,e){const r=(0,o.g)(n,e);return r<-.999999?((0,o.f)(S,C,n),(0,o.u)(S)<1e-6&&(0,o.f)(S,N,n),(0,o.n)(S,S),u(t,S,Math.PI),t):r>.999999?(t[0]=0,t[1]=0,t[2]=0,t[3]=1,t):((0,o.f)(S,n,e),t[0]=S[0],t[1]=S[1],t[2]=S[2],t[3]=1+r,z(t,t))},scale:j,set:v,setAxes:function(t,n,e,r){const a=T;return a[0]=e[0],a[3]=e[1],a[6]=e[2],a[1]=r[0],a[4]=r[1],a[7]=r[2],a[2]=-n[0],a[5]=-n[1],a[8]=-n[2],z(t,d(t,a))},setAxisAngle:u,slerp:l,sqlerp:function(t,n,e,r,a,s){return l(V,n,a,s),l(O,e,r,s),l(t,V,O,2*s*(1-s)),t},sqrLen:A,squaredLength:w,str:function(t){return"quat("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"}},Symbol.toStringTag,{value:"Module"}))},82534:(t,n,e)=>{function r(){return[0,0,0,1]}function a(t){return[t[0],t[1],t[2],t[3]]}e.d(n,{o8:()=>a,vt:()=>r,zK:()=>s});const s=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:a,create:r,fromValues:function(t,n,e,r){return[t,n,e,r]}},Symbol.toStringTag,{value:"Module"}))},98764:(t,n,e)=>{e.d(n,{Y0:()=>u,lO:()=>h});var r=e(73941),a=e(16930),s=e(21325);const i=new a.A(r.fv),o=new a.A(r.FY),c=new a.A(r.LJ),u=new a.A(r.Ro);function h(t){const n=f.get(t);if(n)return n;let e=i;if(t)if(t===o)e=o;else if(t===c)e=c;else{const n=t.wkid,r=t.latestWkid;if(null!=n||null!=r)(0,s.tl)(n)||(0,s.tl)(r)?e=o:((0,s.ZL)(n)||(0,s.ZL)(r))&&(e=c);else{const n=t.wkt2??t.wkt;if(n){const t=n.toUpperCase();t===l?e=o:t===M&&(e=c)}}}return f.set(t,e),e}const f=new Map,l=o.wkt.toUpperCase(),M=c.wkt.toUpperCase()}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1224],{4197:(t,n,e)=>{e.d(n,{Vj:()=>u,cj:()=>c,jh:()=>s,l5:()=>o,xm:()=>a});var r=e(34275),i=e(9093);function s(t){return t<=r.y9?new Array(t).fill(0):new Float64Array(t)}function a(t){return((0,r.iu)(t)?t.byteLength/8:t.length)<=r.y9?Array.from(t):new Float64Array(t)}function o(t,n,e){return Array.isArray(t)?t.slice(n,n+e):t.subarray(n,n+e)}function c(t){return[...t]}function u(t){const n=(0,i.vt)();for(let e=0;e<16;++e)n[e]=t[e];return n}},4341:(t,n,e)=>{e.d(n,{I:()=>i});var r=e(26390);class i{constructor(t){this._allocator=t,this._items=[],this._itemsPtr=0,this._grow()}get(){return 0===this._itemsPtr&&(0,r.d)(()=>this._reset()),this._itemsPtr===this._items.length&&this._grow(),this._items[this._itemsPtr++]}_reset(){const t=Math.min(3*Math.max(8,this._itemsPtr),this._itemsPtr+3*s);this._items.length=Math.min(t,this._items.length),this._itemsPtr=0}_grow(){for(let t=0;t<Math.max(8,Math.min(this._items.length,s));t++)this._items.push(this._allocator())}}const s=1024},6867:(t,n,e)=>{e.d(n,{i:()=>l});var r=e(58083),i=e(9093),s=e(38954),a=e(51850),o=e(87317),c=e(91829),u=e(71351);class l{get ray(){return this._ray}get distanceInRenderSpace(){return null==this.distance?null:((0,s.j)(f,this.ray.direction,this.distance),(0,s.b)(f))}withinDistance(t){return!!h(this)&&this.distanceInRenderSpace<=t}getIntersectionPoint(t){return!!h(this)&&((0,s.j)(f,this.ray.direction,this.distance),(0,s.i)(t,this.ray.origin,f),!0)}getTransformedNormal(t){return(0,s.d)(d,this.normal),d[3]=0,(0,o.t)(d,d,this.transformation),(0,s.d)(t,d),(0,s.n)(t,t)}constructor(t){this.intersector=4,this.normal=(0,a.vt)(),this.transformation=(0,i.vt)(),this._ray=(0,u.vt)(),this.init(t)}init(t){this.distance=this.target=this.drapedLayerOrder=this.renderPriority=null,this.intersector=4,(0,u.C)(t,this._ray)}set(t,n,e,o,c,u,l){this.intersector=t,this.distance=e,(0,s.d)(this.normal,o??a.Cb),(0,r.C)(this.transformation,c??i.zK),this.target=n,this.drapedLayerOrder=u,this.renderPriority=l}copy(t){(0,u.C)(t.ray,this._ray),this.intersector=t.intersector,this.distance=t.distance,this.target=t.target,this.drapedLayerOrder=t.drapedLayerOrder,this.renderPriority=t.renderPriority,(0,s.d)(this.normal,t.normal),(0,r.C)(this.transformation,t.transformation)}}function h(t){return null!=t?.distance}const f=(0,a.vt)(),d=(0,c.vt)()},9093:(t,n,e)=>{function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function i(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]]}e.d(n,{o8:()=>i,vt:()=>r,zK:()=>s});const s=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:i,create:r,fromValues:function(t,n,e,r,i,s,a,o,c,u,l,h,f,d,m,M){return[t,n,e,r,i,s,a,o,c,u,l,h,f,d,m,M]}},Symbol.toStringTag,{value:"Module"}))},29133:(t,n,e)=>{e.d(n,{xH:()=>a,N1:()=>c}),e(38954);var r=e(51850),i=e(71351),s=(e(58083),e(70328),e(6867),e(65215));function a(t,n){return o(t)===o(n)}function o(t){if(null==t)return null;const n=null!=t.layer?t.layer.id:"";let e=null;return e=null!=t.objectId?t.objectId:null!=t.layer&&"objectIdField"in t.layer&&null!=t.layer.objectIdField&&null!=t.attributes?t.attributes[t.layer.objectIdField]:t.uid,null==e?null:`o-${n}-${e}`}s.R,s.R,s.H,s.R,s.R,e(49718),e(87582),(0,r.vt)();const c={json:{write:{writer:function(t,n){null!=t?.layer?.objectIdField&&null!=t.attributes&&(n.feature={layerId:t.layer.id,objectId:t.attributes[t.layer.objectIdField]})},target:{"feature.layerId":{type:[Number,String],isRequired:!0},"feature.objectId":{type:[Number,String],isRequired:!0}}},origins:{"web-scene":{read:function(t){if(null!=t.layerId&&null!=t.objectId)return{uid:null,layer:{id:t.layerId,objectIdField:"ObjectId"},attributes:{ObjectId:t.objectId}}}}}},clonable:"reference"};(0,i.vt)(),(0,r.vt)()},32114:(t,n,e)=>{e.d(n,{Rc:()=>d,J8:()=>m,rq:()=>h,Km:()=>f}),e(44208);var r=e(26390),i=e(29242),s=e(9093),a=e(82534),o=e(48163),c=e(51850),u=e(91829);class l{constructor(t){this._create=t,this._items=new Array,this._itemsPtr=0}get(){return 0===this._itemsPtr&&(0,r.d)(()=>this._reset()),this._itemsPtr>=this._items.length&&this._items.push(this._create()),this._items[this._itemsPtr++]}_reset(){const t=2*this._itemsPtr;this._items.length>t&&(this._items.length=t),this._itemsPtr=0}static createVec2f64(){return new l(o.vt)}static createVec3f64(){return new l(c.vt)}static createVec4f64(){return new l(u.vt)}static createMat3f64(){return new l(i.vt)}static createMat4f64(){return new l(s.vt)}static createQuatf64(){return new l(a.vt)}get test(){}}l.createVec2f64();const h=l.createVec3f64(),f=l.createVec4f64(),d=(l.createMat3f64(),l.createMat4f64()),m=l.createQuatf64()},38954:(t,n,e)=>{e.d(n,{A:()=>d,B:()=>l,C:()=>h,D:()=>b,E:()=>V,F:()=>_,G:()=>S,H:()=>E,a:()=>F,b:()=>s,c:()=>g,d:()=>a,e:()=>u,f:()=>j,g:()=>w,h:()=>o,i:()=>c,j:()=>y,l:()=>A,m:()=>T,n:()=>x,o:()=>I,p:()=>P,q:()=>v,r:()=>N,s:()=>p,t:()=>O,u:()=>D,v:()=>f,w:()=>Y,x:()=>L,y:()=>M,z:()=>m});var r=e(51850),i=e(34304);function s(t){const n=t[0],e=t[1],r=t[2];return Math.sqrt(n*n+e*e+r*r)}function a(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t}function o(t,n,e,r){return t[0]=n,t[1]=e,t[2]=r,t}function c(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2],t}function u(t,n,e){return t[0]=n[0]-e[0],t[1]=n[1]-e[1],t[2]=n[2]-e[2],t}function l(t,n,e){return t[0]=n[0]*e[0],t[1]=n[1]*e[1],t[2]=n[2]*e[2],t}function h(t,n,e){return t[0]=n[0]/e[0],t[1]=n[1]/e[1],t[2]=n[2]/e[2],t}function f(t,n){return t[0]=Math.abs(n[0]),t[1]=Math.abs(n[1]),t[2]=Math.abs(n[2]),t}function d(t,n){return t[0]=Math.sign(n[0]),t[1]=Math.sign(n[1]),t[2]=Math.sign(n[2]),t}function m(t,n,e){return t[0]=Math.min(n[0],e[0]),t[1]=Math.min(n[1],e[1]),t[2]=Math.min(n[2],e[2]),t}function M(t,n,e){return t[0]=Math.max(n[0],e[0]),t[1]=Math.max(n[1],e[1]),t[2]=Math.max(n[2],e[2]),t}function y(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t}function g(t,n,e,r){return t[0]=n[0]+e[0]*r,t[1]=n[1]+e[1]*r,t[2]=n[2]+e[2]*r,t}function b(t,n){const e=n[0]-t[0],r=n[1]-t[1],i=n[2]-t[2];return Math.sqrt(e*e+r*r+i*i)}function p(t,n){const e=n[0]-t[0],r=n[1]-t[1],i=n[2]-t[2];return e*e+r*r+i*i}function _(t){const n=t[0],e=t[1],r=t[2];return n*n+e*e+r*r}function v(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t}function I(t,n){return t[0]=1/n[0],t[1]=1/n[1],t[2]=1/n[2],t}function x(t,n){const e=n[0],r=n[1],i=n[2];let s=e*e+r*r+i*i;return s>0&&(s=1/Math.sqrt(s),t[0]=n[0]*s,t[1]=n[1]*s,t[2]=n[2]*s),t}function w(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}function j(t,n,e){const r=n[0],i=n[1],s=n[2],a=e[0],o=e[1],c=e[2];return t[0]=i*c-s*o,t[1]=s*a-r*c,t[2]=r*o-i*a,t}function A(t,n,e,r){const i=n[0],s=n[1],a=n[2];return t[0]=i+r*(e[0]-i),t[1]=s+r*(e[1]-s),t[2]=a+r*(e[2]-a),t}function P(t,n,e){const r=n[0],i=n[1],s=n[2];return t[0]=e[0]*r+e[4]*i+e[8]*s+e[12],t[1]=e[1]*r+e[5]*i+e[9]*s+e[13],t[2]=e[2]*r+e[6]*i+e[10]*s+e[14],t}function O(t,n,e){const r=n[0],i=n[1],s=n[2];return t[0]=r*e[0]+i*e[3]+s*e[6],t[1]=r*e[1]+i*e[4]+s*e[7],t[2]=r*e[2]+i*e[5]+s*e[8],t}function N(t,n,e){const r=e[0],i=e[1],s=e[2],a=e[3],o=n[0],c=n[1],u=n[2],l=i*u-s*c,h=s*o-r*u,f=r*c-i*o,d=i*f-s*h,m=s*l-r*f,M=r*h-i*l,y=2*a;return t[0]=o+l*y+2*d,t[1]=c+h*y+2*m,t[2]=u+f*y+2*M,t}const C=(0,r.vt)(),q=(0,r.vt)();function T(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]}function S(t,n){if(t===n)return!0;const e=t[0],r=t[1],s=t[2],a=n[0],o=n[1],c=n[2],u=(0,i.FD)();return Math.abs(e-a)<=u*Math.max(1,Math.abs(e),Math.abs(a))&&Math.abs(r-o)<=u*Math.max(1,Math.abs(r),Math.abs(o))&&Math.abs(s-c)<=u*Math.max(1,Math.abs(s),Math.abs(c))}function V(t,n,e){const r=e[0]-n[0],i=e[1]-n[1],s=e[2]-n[2];let a=r*r+i*i+s*s;return a>0?(a=1/Math.sqrt(a),t[0]=r*a,t[1]=i*a,t[2]=s*a,t):(t[0]=0,t[1]=0,t[2]=0,t)}const F=u,R=l,z=h,E=b,Y=p,D=s,L=_;Object.freeze(Object.defineProperty({__proto__:null,abs:f,add:c,angle:function(t,n){x(C,t),x(q,n);const e=w(C,q);return e>1?0:e<-1?Math.PI:Math.acos(e)},bezier:function(t,n,e,r,i,s){const a=1-s,o=a*a,c=s*s,u=o*a,l=3*s*o,h=3*c*a,f=c*s;return t[0]=n[0]*u+e[0]*l+r[0]*h+i[0]*f,t[1]=n[1]*u+e[1]*l+r[1]*h+i[1]*f,t[2]=n[2]*u+e[2]*l+r[2]*h+i[2]*f,t},ceil:function(t,n){return t[0]=Math.ceil(n[0]),t[1]=Math.ceil(n[1]),t[2]=Math.ceil(n[2]),t},clamp:function(t,n=0,e=1){return t[0]=Math.min(Math.max(t[0],n),e),t[1]=Math.min(Math.max(t[1],n),e),t[2]=Math.min(Math.max(t[2],n),e),t},copy:a,cross:j,crossAndNormalize:function(t,n,e){const r=n[0],i=n[1],s=n[2],a=e[0],o=e[1],c=e[2],u=i*c-s*o,l=s*a-r*c,h=r*o-i*a,f=Math.sqrt(u*u+l*l+h*h);return t[0]=u/f,t[1]=l/f,t[2]=h/f,t},direction:V,dist:E,distance:b,div:z,divide:h,dot:w,equals:S,exactEquals:T,floor:function(t,n){return t[0]=Math.floor(n[0]),t[1]=Math.floor(n[1]),t[2]=Math.floor(n[2]),t},hermite:function(t,n,e,r,i,s){const a=s*s,o=a*(2*s-3)+1,c=a*(s-2)+s,u=a*(s-1),l=a*(3-2*s);return t[0]=n[0]*o+e[0]*c+r[0]*u+i[0]*l,t[1]=n[1]*o+e[1]*c+r[1]*u+i[1]*l,t[2]=n[2]*o+e[2]*c+r[2]*u+i[2]*l,t},inverse:I,len:D,length:s,lerp:A,max:M,min:m,mul:R,multiply:l,negate:v,normalize:x,random:function(t,n=1){const e=i.Ov,r=2*e()*Math.PI,s=2*e()-1,a=Math.sqrt(1-s*s)*n;return t[0]=Math.cos(r)*a,t[1]=Math.sin(r)*a,t[2]=s*n,t},rotateX:function(t,n,e,r){const i=[],s=[];return i[0]=n[0]-e[0],i[1]=n[1]-e[1],i[2]=n[2]-e[2],s[0]=i[0],s[1]=i[1]*Math.cos(r)-i[2]*Math.sin(r),s[2]=i[1]*Math.sin(r)+i[2]*Math.cos(r),t[0]=s[0]+e[0],t[1]=s[1]+e[1],t[2]=s[2]+e[2],t},rotateY:function(t,n,e,r){const i=[],s=[];return i[0]=n[0]-e[0],i[1]=n[1]-e[1],i[2]=n[2]-e[2],s[0]=i[2]*Math.sin(r)+i[0]*Math.cos(r),s[1]=i[1],s[2]=i[2]*Math.cos(r)-i[0]*Math.sin(r),t[0]=s[0]+e[0],t[1]=s[1]+e[1],t[2]=s[2]+e[2],t},rotateZ:function(t,n,e,r){const i=[],s=[];return i[0]=n[0]-e[0],i[1]=n[1]-e[1],i[2]=n[2]-e[2],s[0]=i[0]*Math.cos(r)-i[1]*Math.sin(r),s[1]=i[0]*Math.sin(r)+i[1]*Math.cos(r),s[2]=i[2],t[0]=s[0]+e[0],t[1]=s[1]+e[1],t[2]=s[2]+e[2],t},round:function(t,n){return t[0]=Math.round(n[0]),t[1]=Math.round(n[1]),t[2]=Math.round(n[2]),t},scale:y,scaleAndAdd:g,set:o,sign:d,sqrDist:Y,sqrLen:L,squaredDistance:p,squaredLength:_,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:F,subtract:u,transformMat3:O,transformMat4:P,transformQuat:N},Symbol.toStringTag,{value:"Module"}))},48163:(t,n,e)=>{function r(){return[0,0]}function i(t){return[t[0],t[1]]}function s(t,n){return[t,n]}function a(){return s(1,1)}function o(){return s(1,0)}function c(){return s(0,1)}e.d(n,{Un:()=>u,fA:()=>s,o8:()=>i,vt:()=>r});const u=a(),l=o(),h=c();Object.freeze(Object.defineProperty({__proto__:null,ONES:u,UNIT_X:l,UNIT_Y:h,ZEROS:[0,0],clone:i,create:r,freeze:function(t,n){return[t,n]},fromArray:function(t,n=[0,0]){const e=Math.min(2,t.length);for(let r=0;r<e;++r)n[r]=t[r];return n},fromValues:s,ones:a,unitX:o,unitY:c,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"}))},49718:(t,n,e)=>{e(51850),e(6867).i},62885:(t,n,e)=>{e.d(n,{H:()=>s,V:()=>i});var r=e(7762);function i(t,n,e=r.A){return n||(n=new e),n===t||n.destroyed||(n.removeAll(),(i=t)&&(Array.isArray(i)||"items"in i&&Array.isArray(i.items))?n.addMany(t):t&&n.add(t)),n;var i}function s(t){return t}},65215:(t,n,e)=>{e.d(n,{H:()=>r,R:()=>i});class r{constructor(t){this.layerViewUid=t}}class i extends r{constructor(t,n){super(t),this.graphicUid=n}}},69540:(t,n,e)=>{e.d(n,{OU:()=>l,Pw:()=>h});var r=e(31635),i=e(69622),s=(e(44208),e(4718)),a=(e(53966),e(97768)),o=e(88620),c=e(64108);const u=Symbol("ClonableMixin"),l=t=>{var n;const e=t;let i=class extends e{constructor(){super(...arguments),this[n]=!0}static{n=u}clone(t){const n=(0,o.oY)(this);(0,a.Lw)(n,"unable to clone instance of non-accessor class");const e=n.metadata,r=n.store,i={},c=new Map;for(const n in e){const a=e[n],o=r?.originOf(n),u=a.clonable;if(a.readOnly||!1===u||7!==o&&0!==o&&5!==o&&4!==o)continue;const l=this[n];let h=null;if("function"==typeof u)h=u(l,t);else if("reference"===u)h=l;else if(h=(0,s.TU)(l,t),null!=l&&null==h)continue;0===o?c.set(n,h):i[n]=h}const u=new(0,Object.getPrototypeOf(this).constructor)(i);if(c.size){const t=(0,o.oY)(u)?.store;if(t)for(const[n,e]of c)t.set(n,e,0)}return u}};return i=(0,r.Cg)([(0,c.$)("esri.core.Clonable")],i),i},h=l(i.A)},70328:(t,n,e)=>{e.d(n,{BI:()=>p,DC:()=>h,Ej:()=>d,Ie:()=>g,Jt:()=>b,Ne:()=>m,RF:()=>l,aI:()=>v,fA:()=>a,gE:()=>c,hZ:()=>y,iT:()=>f,is:()=>_,qv:()=>I,vI:()=>M,vY:()=>o,v_:()=>x,vt:()=>s,w1:()=>u});var r=e(5443),i=(e(19419),e(4197));function s(t=x){return[t[0],t[1],t[2],t[3],t[4],t[5]]}function a(t,n,e,r,i,a,o=s()){return o[0]=t,o[1]=n,o[2]=e,o[3]=r,o[4]=i,o[5]=a,o}function o(t,n=s()){return function(t,n,e,r=s()){return y(r,I),function(t,n,e=0,r=n.length/3){let i=t[0],s=t[1],a=t[2],o=t[3],c=t[4],u=t[5];for(let t=0;t<r;t++)i=Math.min(i,n[e+3*t]),s=Math.min(s,n[e+3*t+1]),a=Math.min(a,n[e+3*t+2]),o=Math.max(o,n[e+3*t]),c=Math.max(c,n[e+3*t+1]),u=Math.max(u,n[e+3*t+2]);t[0]=i,t[1]=s,t[2]=a,t[3]=o,t[4]=c,t[5]=u}(r,t,n,e),r}(t,0,t.length/3,n)}function c(t,n=(0,i.jh)(24)){const[e,r,s,a,o,c]=t;return n[0]=e,n[1]=r,n[2]=s,n[3]=e,n[4]=r,n[5]=c,n[6]=e,n[7]=o,n[8]=s,n[9]=e,n[10]=o,n[11]=c,n[12]=a,n[13]=r,n[14]=s,n[15]=a,n[16]=r,n[17]=c,n[18]=a,n[19]=o,n[20]=s,n[21]=a,n[22]=o,n[23]=c,n}function u(t,n){const e=isFinite(t[2])||isFinite(t[5]);return new r.A(e?{xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],zmin:t[2],zmax:t[5],spatialReference:n}:{xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],spatialReference:n})}function l(t,n){t[0]=Math.min(t[0],n[0]),t[1]=Math.min(t[1],n[1]),t[2]=Math.min(t[2],n[2]),t[3]=Math.max(t[3],n[3]),t[4]=Math.max(t[4],n[4]),t[5]=Math.max(t[5],n[5])}function h(t,n){t[0]=Math.min(t[0],n[0]),t[1]=Math.min(t[1],n[1]),t[3]=Math.max(t[3],n[2]),t[4]=Math.max(t[4],n[3])}function f(t,n){t[0]=Math.min(t[0],n[0]),t[1]=Math.min(t[1],n[1]),t[2]=Math.min(t[2],n[2]),t[3]=Math.max(t[3],n[0]),t[4]=Math.max(t[4],n[1]),t[5]=Math.max(t[5],n[2])}function d(t,n=[0,0,0]){return n[0]=function(t){return t[0]>=t[3]?0:t[3]-t[0]}(t),n[1]=function(t){return t[1]>=t[4]?0:t[4]-t[1]}(t),n[2]=function(t){return t[2]>=t[5]?0:t[5]-t[2]}(t),n}function m(t,n,e=t){return e[0]=n[0],e[1]=n[1],e[2]=n[2],e!==t&&(e[3]=t[3],e[4]=t[4],e[5]=t[5]),e}function M(t,n,e=t){return e[3]=n[0],e[4]=n[1],e[5]=n[2],e!==t&&(e[0]=t[0],e[1]=t[1],e[2]=t[2]),t}function y(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t}function g(t){return t?y(t,I):s(I)}function b(t,n){return t[0]=n[0],t[1]=n[1],t[2]=Number.NEGATIVE_INFINITY,t[3]=n[2],t[4]=n[3],t[5]=Number.POSITIVE_INFINITY,t}function p(t,n,e,r,i){return t[0]=n,t[1]=e,t[2]=Number.NEGATIVE_INFINITY,t[3]=r,t[4]=i,t[5]=Number.POSITIVE_INFINITY,t}function _(t){return 6===t.length}function v(t,n,e){if(null==t||null==n)return t===n;if(!_(t)||!_(n))return!1;if(e){for(let r=0;r<t.length;r++)if(!e(t[r],n[r]))return!1}else for(let e=0;e<t.length;e++)if(t[e]!==n[e])return!1;return!0}const I=[1/0,1/0,1/0,-1/0,-1/0,-1/0],x=[0,0,0,0,0,0];s()},71351:(t,n,e)=>{e.d(n,{C:()=>h,Cr:()=>f,LV:()=>l,fA:()=>d,kb:()=>m,oC:()=>M,vt:()=>c}),e(4576);var r=e(4341),i=(e(77690),e(29242)),s=e(38954),a=e(51850),o=e(32114);function c(t){return t?u((0,a.o8)(t.origin),(0,a.o8)(t.direction)):u((0,a.vt)(),(0,a.vt)())}function u(t,n){return{origin:t,direction:n}}function l(t,n){const e=y.get();return e.origin=t,e.direction=n,e}function h(t,n=c()){return d(t.origin,t.direction,n)}function f(t,n,e=c()){return(0,s.d)(e.origin,t),(0,s.e)(e.direction,n,t),e}function d(t,n,e=c()){return(0,s.d)(e.origin,t),(0,s.d)(e.direction,n),e}function m(t,n){const e=(0,s.f)(o.rq.get(),(0,s.n)(o.rq.get(),t.direction),(0,s.e)(o.rq.get(),n,t.origin));return(0,s.g)(e,e)}function M(t,n,e){const r=(0,s.g)(t.direction,(0,s.e)(e,n,t.origin));return(0,s.i)(e,t.origin,(0,s.j)(e,t.direction,r)),e}const y=new r.I(()=>c());(0,a.vt)(),(0,a.vt)(),(0,a.vt)(),(0,i.vt)()},78553:(t,n,e)=>{e.d(n,{D:()=>s,p:()=>i});var r=e(56507);function i(t){const n=(0,r.Vr)(100*(1-t));return Math.max(0,Math.min(n,100))}function s(t){const n=1-t/100;return Math.max(0,Math.min(n,1))}},79608:(t,n,e)=>{e.d(n,{A:()=>f});var r=e(31635),i=e(69540),s=e(91429);let a=class extends i.Pw{constructor(t){super(t),this.type="web-scene"}equals(t){return this.type===t.type}};(0,r.Cg)([(0,s.MZ)()],a.prototype,"type",void 0),a=(0,r.Cg)([(0,s.$K)("esri.analysis.support.AnalysisOriginWebScene")],a);const o=a;var c=e(69622),u=e(4902),l=e(25482);let h=0,f=class extends((0,l.T)((0,i.OU)((0,u.s)(c.A)))){constructor(t){super(t),this.id=`${Date.now().toString(16)}-analysis-${h++}`,this.origin=null}get parent(){return this._get("parent")}set parent(t){const n=this.parent;if(null!=n)switch(n.type){case"line-of-sight":case"dimension":case"viewshed":n.releaseAnalysis(this);break;case"2d":case"3d":n.analyses.includes(this)&&n.analyses.remove(this)}this._set("parent",t)}equals(t){return this.type===t.type}};(0,r.Cg)([(0,s.MZ)({type:String,constructOnly:!0,clonable:!1})],f.prototype,"id",void 0),(0,r.Cg)([(0,s.MZ)({clonable:!1,value:null})],f.prototype,"parent",null),(0,r.Cg)([(0,s.MZ)({types:{key:"type",base:null,typeMap:{"web-scene":o}}})],f.prototype,"origin",void 0),f=(0,r.Cg)([(0,s.$K)("esri.analysis.Analysis")],f)},82534:(t,n,e)=>{function r(){return[0,0,0,1]}function i(t){return[t[0],t[1],t[2],t[3]]}e.d(n,{o8:()=>i,vt:()=>r,zK:()=>s});const s=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:i,create:r,fromValues:function(t,n,e,r){return[t,n,e,r]}},Symbol.toStringTag,{value:"Module"}))},87582:(t,n,e)=>{e(6867),e(65215).R}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1224],{4197:(t,n,e)=>{e.d(n,{Vj:()=>u,cj:()=>c,jh:()=>s,l5:()=>o,xm:()=>a});var r=e(34275),i=e(9093);function s(t){return t<=r.y9?new Array(t).fill(0):new Float64Array(t)}function a(t){return((0,r.iu)(t)?t.byteLength/8:t.length)<=r.y9?Array.from(t):new Float64Array(t)}function o(t,n,e){return Array.isArray(t)?t.slice(n,n+e):t.subarray(n,n+e)}function c(t){return[...t]}function u(t){const n=(0,i.vt)();for(let e=0;e<16;++e)n[e]=t[e];return n}},4341:(t,n,e)=>{e.d(n,{I:()=>i});var r=e(26390);class i{constructor(t){this._allocator=t,this._items=[],this._itemsPtr=0,this._grow()}get(){return 0===this._itemsPtr&&(0,r.d)(()=>this._reset()),this._itemsPtr===this._items.length&&this._grow(),this._items[this._itemsPtr++]}_reset(){const t=Math.min(3*Math.max(8,this._itemsPtr),this._itemsPtr+3*s);this._items.length=Math.min(t,this._items.length),this._itemsPtr=0}_grow(){for(let t=0;t<Math.max(8,Math.min(this._items.length,s));t++)this._items.push(this._allocator())}}const s=1024},6867:(t,n,e)=>{e.d(n,{i:()=>l});var r=e(58083),i=e(9093),s=e(38954),a=e(51850),o=e(87317),c=e(91829),u=e(71351);class l{get ray(){return this._ray}get distanceInRenderSpace(){return null==this.distance?null:((0,s.j)(f,this.ray.direction,this.distance),(0,s.b)(f))}withinDistance(t){return!!h(this)&&this.distanceInRenderSpace<=t}getIntersectionPoint(t){return!!h(this)&&((0,s.j)(f,this.ray.direction,this.distance),(0,s.i)(t,this.ray.origin,f),!0)}getTransformedNormal(t){return(0,s.d)(d,this.normal),d[3]=0,(0,o.t)(d,d,this.transformation),(0,s.d)(t,d),(0,s.n)(t,t)}constructor(t){this.intersector=4,this.normal=(0,a.vt)(),this.transformation=(0,i.vt)(),this._ray=(0,u.vt)(),this.init(t)}init(t){this.distance=this.target=this.drapedLayerOrder=this.renderPriority=null,this.intersector=4,(0,u.C)(t,this._ray)}set(t,n,e,o,c,u,l){this.intersector=t,this.distance=e,(0,s.d)(this.normal,o??a.Cb),(0,r.C)(this.transformation,c??i.zK),this.target=n,this.drapedLayerOrder=u,this.renderPriority=l}copy(t){(0,u.C)(t.ray,this._ray),this.intersector=t.intersector,this.distance=t.distance,this.target=t.target,this.drapedLayerOrder=t.drapedLayerOrder,this.renderPriority=t.renderPriority,(0,s.d)(this.normal,t.normal),(0,r.C)(this.transformation,t.transformation)}}function h(t){return null!=t?.distance}const f=(0,a.vt)(),d=(0,c.vt)()},9093:(t,n,e)=>{function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function i(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]]}e.d(n,{o8:()=>i,vt:()=>r,zK:()=>s});const s=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:i,create:r,fromValues:function(t,n,e,r,i,s,a,o,c,u,l,h,f,d,m,M){return[t,n,e,r,i,s,a,o,c,u,l,h,f,d,m,M]}},Symbol.toStringTag,{value:"Module"}))},29133:(t,n,e)=>{e.d(n,{xH:()=>a,N1:()=>c}),e(38954);var r=e(51850),i=e(71351),s=(e(58083),e(70328),e(6867),e(65215));function a(t,n){return o(t)===o(n)}function o(t){if(null==t)return null;const n=null!=t.layer?t.layer.id:"";let e=null;return e=null!=t.objectId?t.objectId:null!=t.layer&&"objectIdField"in t.layer&&null!=t.layer.objectIdField&&null!=t.attributes?t.attributes[t.layer.objectIdField]:t.uid,null==e?null:`o-${n}-${e}`}s.R,s.R,s.H,s.R,s.R,e(49718),e(87582),(0,r.vt)();const c={json:{write:{writer:function(t,n){null!=t?.layer?.objectIdField&&null!=t.attributes&&(n.feature={layerId:t.layer.id,objectId:t.attributes[t.layer.objectIdField]})},target:{"feature.layerId":{type:[Number,String],isRequired:!0},"feature.objectId":{type:[Number,String],isRequired:!0}}},origins:{"web-scene":{read:function(t){if(null!=t.layerId&&null!=t.objectId)return{uid:null,layer:{id:t.layerId,objectIdField:"ObjectId"},attributes:{ObjectId:t.objectId}}}}}},clonable:"reference"};(0,i.vt)(),(0,r.vt)()},32114:(t,n,e)=>{e.d(n,{Rc:()=>d,J8:()=>m,rq:()=>h,Km:()=>f}),e(44208);var r=e(26390),i=e(29242),s=e(9093),a=e(82534),o=e(48163),c=e(51850),u=e(91829);class l{constructor(t){this._create=t,this._items=new Array,this._itemsPtr=0}get(){return 0===this._itemsPtr&&(0,r.d)(()=>this._reset()),this._itemsPtr>=this._items.length&&this._items.push(this._create()),this._items[this._itemsPtr++]}_reset(){const t=2*this._itemsPtr;this._items.length>t&&(this._items.length=t),this._itemsPtr=0}static createVec2f64(){return new l(o.vt)}static createVec3f64(){return new l(c.vt)}static createVec4f64(){return new l(u.vt)}static createMat3f64(){return new l(i.vt)}static createMat4f64(){return new l(s.vt)}static createQuatf64(){return new l(a.vt)}get test(){}}l.createVec2f64();const h=l.createVec3f64(),f=l.createVec4f64(),d=(l.createMat3f64(),l.createMat4f64()),m=l.createQuatf64()},38954:(t,n,e)=>{e.d(n,{A:()=>h,B:()=>b,C:()=>V,D:()=>_,E:()=>S,F:()=>E,G:()=>Y,H:()=>L,a:()=>F,b:()=>s,c:()=>g,d:()=>a,e:()=>u,f:()=>j,g:()=>w,h:()=>o,i:()=>c,j:()=>y,l:()=>A,m:()=>T,n:()=>x,o:()=>I,p:()=>P,q:()=>v,r:()=>N,s:()=>p,t:()=>O,u:()=>D,v:()=>f,w:()=>M,x:()=>m,y:()=>d,z:()=>l});var r=e(51850),i=e(34304);function s(t){const n=t[0],e=t[1],r=t[2];return Math.sqrt(n*n+e*e+r*r)}function a(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t}function o(t,n,e,r){return t[0]=n,t[1]=e,t[2]=r,t}function c(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2],t}function u(t,n,e){return t[0]=n[0]-e[0],t[1]=n[1]-e[1],t[2]=n[2]-e[2],t}function l(t,n,e){return t[0]=n[0]*e[0],t[1]=n[1]*e[1],t[2]=n[2]*e[2],t}function h(t,n,e){return t[0]=n[0]/e[0],t[1]=n[1]/e[1],t[2]=n[2]/e[2],t}function f(t,n){return t[0]=Math.abs(n[0]),t[1]=Math.abs(n[1]),t[2]=Math.abs(n[2]),t}function d(t,n){return t[0]=Math.sign(n[0]),t[1]=Math.sign(n[1]),t[2]=Math.sign(n[2]),t}function m(t,n,e){return t[0]=Math.min(n[0],e[0]),t[1]=Math.min(n[1],e[1]),t[2]=Math.min(n[2],e[2]),t}function M(t,n,e){return t[0]=Math.max(n[0],e[0]),t[1]=Math.max(n[1],e[1]),t[2]=Math.max(n[2],e[2]),t}function y(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t}function g(t,n,e,r){return t[0]=n[0]+e[0]*r,t[1]=n[1]+e[1]*r,t[2]=n[2]+e[2]*r,t}function b(t,n){const e=n[0]-t[0],r=n[1]-t[1],i=n[2]-t[2];return Math.sqrt(e*e+r*r+i*i)}function p(t,n){const e=n[0]-t[0],r=n[1]-t[1],i=n[2]-t[2];return e*e+r*r+i*i}function _(t){const n=t[0],e=t[1],r=t[2];return n*n+e*e+r*r}function v(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t}function I(t,n){return t[0]=1/n[0],t[1]=1/n[1],t[2]=1/n[2],t}function x(t,n){const e=n[0],r=n[1],i=n[2];let s=e*e+r*r+i*i;return s>0&&(s=1/Math.sqrt(s),t[0]=n[0]*s,t[1]=n[1]*s,t[2]=n[2]*s),t}function w(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}function j(t,n,e){const r=n[0],i=n[1],s=n[2],a=e[0],o=e[1],c=e[2];return t[0]=i*c-s*o,t[1]=s*a-r*c,t[2]=r*o-i*a,t}function A(t,n,e,r){const i=n[0],s=n[1],a=n[2];return t[0]=i+r*(e[0]-i),t[1]=s+r*(e[1]-s),t[2]=a+r*(e[2]-a),t}function P(t,n,e){const r=n[0],i=n[1],s=n[2];return t[0]=e[0]*r+e[4]*i+e[8]*s+e[12],t[1]=e[1]*r+e[5]*i+e[9]*s+e[13],t[2]=e[2]*r+e[6]*i+e[10]*s+e[14],t}function O(t,n,e){const r=n[0],i=n[1],s=n[2];return t[0]=r*e[0]+i*e[3]+s*e[6],t[1]=r*e[1]+i*e[4]+s*e[7],t[2]=r*e[2]+i*e[5]+s*e[8],t}function N(t,n,e){const r=e[0],i=e[1],s=e[2],a=e[3],o=n[0],c=n[1],u=n[2],l=i*u-s*c,h=s*o-r*u,f=r*c-i*o,d=i*f-s*h,m=s*l-r*f,M=r*h-i*l,y=2*a;return t[0]=o+l*y+2*d,t[1]=c+h*y+2*m,t[2]=u+f*y+2*M,t}const C=(0,r.vt)(),q=(0,r.vt)();function T(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]}function S(t,n){if(t===n)return!0;const e=t[0],r=t[1],s=t[2],a=n[0],o=n[1],c=n[2],u=(0,i.FD)();return Math.abs(e-a)<=u*Math.max(1,Math.abs(e),Math.abs(a))&&Math.abs(r-o)<=u*Math.max(1,Math.abs(r),Math.abs(o))&&Math.abs(s-c)<=u*Math.max(1,Math.abs(s),Math.abs(c))}function V(t,n,e){const r=e[0]-n[0],i=e[1]-n[1],s=e[2]-n[2];let a=r*r+i*i+s*s;return a>0?(a=1/Math.sqrt(a),t[0]=r*a,t[1]=i*a,t[2]=s*a,t):(t[0]=0,t[1]=0,t[2]=0,t)}const F=u,R=l,z=h,E=b,Y=p,D=s,L=_;Object.freeze(Object.defineProperty({__proto__:null,abs:f,add:c,angle:function(t,n){x(C,t),x(q,n);const e=w(C,q);return e>1?0:e<-1?Math.PI:Math.acos(e)},bezier:function(t,n,e,r,i,s){const a=1-s,o=a*a,c=s*s,u=o*a,l=3*s*o,h=3*c*a,f=c*s;return t[0]=n[0]*u+e[0]*l+r[0]*h+i[0]*f,t[1]=n[1]*u+e[1]*l+r[1]*h+i[1]*f,t[2]=n[2]*u+e[2]*l+r[2]*h+i[2]*f,t},ceil:function(t,n){return t[0]=Math.ceil(n[0]),t[1]=Math.ceil(n[1]),t[2]=Math.ceil(n[2]),t},clamp:function(t,n=0,e=1){return t[0]=Math.min(Math.max(t[0],n),e),t[1]=Math.min(Math.max(t[1],n),e),t[2]=Math.min(Math.max(t[2],n),e),t},copy:a,cross:j,crossAndNormalize:function(t,n,e){const r=n[0],i=n[1],s=n[2],a=e[0],o=e[1],c=e[2],u=i*c-s*o,l=s*a-r*c,h=r*o-i*a,f=Math.sqrt(u*u+l*l+h*h);return t[0]=u/f,t[1]=l/f,t[2]=h/f,t},direction:V,dist:E,distance:b,div:z,divide:h,dot:w,equals:S,exactEquals:T,floor:function(t,n){return t[0]=Math.floor(n[0]),t[1]=Math.floor(n[1]),t[2]=Math.floor(n[2]),t},hermite:function(t,n,e,r,i,s){const a=s*s,o=a*(2*s-3)+1,c=a*(s-2)+s,u=a*(s-1),l=a*(3-2*s);return t[0]=n[0]*o+e[0]*c+r[0]*u+i[0]*l,t[1]=n[1]*o+e[1]*c+r[1]*u+i[1]*l,t[2]=n[2]*o+e[2]*c+r[2]*u+i[2]*l,t},inverse:I,len:D,length:s,lerp:A,max:M,min:m,mul:R,multiply:l,negate:v,normalize:x,random:function(t,n=1){const e=i.Ov,r=2*e()*Math.PI,s=2*e()-1,a=Math.sqrt(1-s*s)*n;return t[0]=Math.cos(r)*a,t[1]=Math.sin(r)*a,t[2]=s*n,t},rotateX:function(t,n,e,r){const i=[],s=[];return i[0]=n[0]-e[0],i[1]=n[1]-e[1],i[2]=n[2]-e[2],s[0]=i[0],s[1]=i[1]*Math.cos(r)-i[2]*Math.sin(r),s[2]=i[1]*Math.sin(r)+i[2]*Math.cos(r),t[0]=s[0]+e[0],t[1]=s[1]+e[1],t[2]=s[2]+e[2],t},rotateY:function(t,n,e,r){const i=[],s=[];return i[0]=n[0]-e[0],i[1]=n[1]-e[1],i[2]=n[2]-e[2],s[0]=i[2]*Math.sin(r)+i[0]*Math.cos(r),s[1]=i[1],s[2]=i[2]*Math.cos(r)-i[0]*Math.sin(r),t[0]=s[0]+e[0],t[1]=s[1]+e[1],t[2]=s[2]+e[2],t},rotateZ:function(t,n,e,r){const i=[],s=[];return i[0]=n[0]-e[0],i[1]=n[1]-e[1],i[2]=n[2]-e[2],s[0]=i[0]*Math.cos(r)-i[1]*Math.sin(r),s[1]=i[0]*Math.sin(r)+i[1]*Math.cos(r),s[2]=i[2],t[0]=s[0]+e[0],t[1]=s[1]+e[1],t[2]=s[2]+e[2],t},round:function(t,n){return t[0]=Math.round(n[0]),t[1]=Math.round(n[1]),t[2]=Math.round(n[2]),t},scale:y,scaleAndAdd:g,set:o,sign:d,sqrDist:Y,sqrLen:L,squaredDistance:p,squaredLength:_,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:F,subtract:u,transformMat3:O,transformMat4:P,transformQuat:N},Symbol.toStringTag,{value:"Module"}))},48163:(t,n,e)=>{function r(){return[0,0]}function i(t){return[t[0],t[1]]}function s(t,n){return[t,n]}function a(){return s(1,1)}function o(){return s(1,0)}function c(){return s(0,1)}e.d(n,{Un:()=>u,fA:()=>s,o8:()=>i,vt:()=>r});const u=a(),l=o(),h=c();Object.freeze(Object.defineProperty({__proto__:null,ONES:u,UNIT_X:l,UNIT_Y:h,ZEROS:[0,0],clone:i,create:r,freeze:function(t,n){return[t,n]},fromArray:function(t,n=[0,0]){const e=Math.min(2,t.length);for(let r=0;r<e;++r)n[r]=t[r];return n},fromValues:s,ones:a,unitX:o,unitY:c,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"}))},49718:(t,n,e)=>{e(51850),e(6867).i},62885:(t,n,e)=>{e.d(n,{H:()=>s,V:()=>i});var r=e(7762);function i(t,n,e=r.A){return n||(n=new e),n===t||n.destroyed||(n.removeAll(),(i=t)&&(Array.isArray(i)||"items"in i&&Array.isArray(i.items))?n.addMany(t):t&&n.add(t)),n;var i}function s(t){return t}},65215:(t,n,e)=>{e.d(n,{H:()=>r,R:()=>i});class r{constructor(t){this.layerViewUid=t}}class i extends r{constructor(t,n){super(t),this.graphicUid=n}}},69540:(t,n,e)=>{e.d(n,{OU:()=>l,Pw:()=>h});var r=e(31635),i=e(69622),s=(e(44208),e(4718)),a=(e(53966),e(97768)),o=e(88620),c=e(64108);const u=Symbol("ClonableMixin"),l=t=>{var n;const e=t;let i=class extends e{constructor(){super(...arguments),this[n]=!0}static{n=u}clone(t){const n=(0,o.oY)(this);(0,a.Lw)(n,"unable to clone instance of non-accessor class");const e=n.metadata,r=n.store,i={},c=new Map;for(const n in e){const a=e[n],o=r?.originOf(n),u=a.clonable;if(a.readOnly||!1===u||7!==o&&0!==o&&5!==o&&4!==o)continue;const l=this[n];let h=null;if("function"==typeof u)h=u(l,t);else if("reference"===u)h=l;else if(h=(0,s.TU)(l,t),null!=l&&null==h)continue;0===o?c.set(n,h):i[n]=h}const u=new(0,Object.getPrototypeOf(this).constructor)(i);if(c.size){const t=(0,o.oY)(u)?.store;if(t)for(const[n,e]of c)t.set(n,e,0)}return u}};return i=(0,r.Cg)([(0,c.$)("esri.core.Clonable")],i),i},h=l(i.A)},70328:(t,n,e)=>{e.d(n,{BI:()=>p,DC:()=>h,Ej:()=>d,Ie:()=>g,Jt:()=>b,Ne:()=>m,RF:()=>l,aI:()=>v,fA:()=>a,gE:()=>c,hZ:()=>y,iT:()=>f,is:()=>_,qv:()=>I,vI:()=>M,vY:()=>o,v_:()=>x,vt:()=>s,w1:()=>u});var r=e(5443),i=(e(19419),e(4197));function s(t=x){return[t[0],t[1],t[2],t[3],t[4],t[5]]}function a(t,n,e,r,i,a,o=s()){return o[0]=t,o[1]=n,o[2]=e,o[3]=r,o[4]=i,o[5]=a,o}function o(t,n=s()){return function(t,n,e,r=s()){return y(r,I),function(t,n,e=0,r=n.length/3){let i=t[0],s=t[1],a=t[2],o=t[3],c=t[4],u=t[5];for(let t=0;t<r;t++)i=Math.min(i,n[e+3*t]),s=Math.min(s,n[e+3*t+1]),a=Math.min(a,n[e+3*t+2]),o=Math.max(o,n[e+3*t]),c=Math.max(c,n[e+3*t+1]),u=Math.max(u,n[e+3*t+2]);t[0]=i,t[1]=s,t[2]=a,t[3]=o,t[4]=c,t[5]=u}(r,t,n,e),r}(t,0,t.length/3,n)}function c(t,n=(0,i.jh)(24)){const[e,r,s,a,o,c]=t;return n[0]=e,n[1]=r,n[2]=s,n[3]=e,n[4]=r,n[5]=c,n[6]=e,n[7]=o,n[8]=s,n[9]=e,n[10]=o,n[11]=c,n[12]=a,n[13]=r,n[14]=s,n[15]=a,n[16]=r,n[17]=c,n[18]=a,n[19]=o,n[20]=s,n[21]=a,n[22]=o,n[23]=c,n}function u(t,n){const e=isFinite(t[2])||isFinite(t[5]);return new r.A(e?{xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],zmin:t[2],zmax:t[5],spatialReference:n}:{xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],spatialReference:n})}function l(t,n){t[0]=Math.min(t[0],n[0]),t[1]=Math.min(t[1],n[1]),t[2]=Math.min(t[2],n[2]),t[3]=Math.max(t[3],n[3]),t[4]=Math.max(t[4],n[4]),t[5]=Math.max(t[5],n[5])}function h(t,n){t[0]=Math.min(t[0],n[0]),t[1]=Math.min(t[1],n[1]),t[3]=Math.max(t[3],n[2]),t[4]=Math.max(t[4],n[3])}function f(t,n){t[0]=Math.min(t[0],n[0]),t[1]=Math.min(t[1],n[1]),t[2]=Math.min(t[2],n[2]),t[3]=Math.max(t[3],n[0]),t[4]=Math.max(t[4],n[1]),t[5]=Math.max(t[5],n[2])}function d(t,n=[0,0,0]){return n[0]=function(t){return t[0]>=t[3]?0:t[3]-t[0]}(t),n[1]=function(t){return t[1]>=t[4]?0:t[4]-t[1]}(t),n[2]=function(t){return t[2]>=t[5]?0:t[5]-t[2]}(t),n}function m(t,n,e=t){return e[0]=n[0],e[1]=n[1],e[2]=n[2],e!==t&&(e[3]=t[3],e[4]=t[4],e[5]=t[5]),e}function M(t,n,e=t){return e[3]=n[0],e[4]=n[1],e[5]=n[2],e!==t&&(e[0]=t[0],e[1]=t[1],e[2]=t[2]),t}function y(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t}function g(t){return t?y(t,I):s(I)}function b(t,n){return t[0]=n[0],t[1]=n[1],t[2]=Number.NEGATIVE_INFINITY,t[3]=n[2],t[4]=n[3],t[5]=Number.POSITIVE_INFINITY,t}function p(t,n,e,r,i){return t[0]=n,t[1]=e,t[2]=Number.NEGATIVE_INFINITY,t[3]=r,t[4]=i,t[5]=Number.POSITIVE_INFINITY,t}function _(t){return 6===t.length}function v(t,n,e){if(null==t||null==n)return t===n;if(!_(t)||!_(n))return!1;if(e){for(let r=0;r<t.length;r++)if(!e(t[r],n[r]))return!1}else for(let e=0;e<t.length;e++)if(t[e]!==n[e])return!1;return!0}const I=[1/0,1/0,1/0,-1/0,-1/0,-1/0],x=[0,0,0,0,0,0];s()},71351:(t,n,e)=>{e.d(n,{C:()=>h,Cr:()=>f,LV:()=>l,fA:()=>d,kb:()=>m,oC:()=>M,vt:()=>c}),e(4576);var r=e(4341),i=(e(77690),e(29242)),s=e(38954),a=e(51850),o=e(32114);function c(t){return t?u((0,a.o8)(t.origin),(0,a.o8)(t.direction)):u((0,a.vt)(),(0,a.vt)())}function u(t,n){return{origin:t,direction:n}}function l(t,n){const e=y.get();return e.origin=t,e.direction=n,e}function h(t,n=c()){return d(t.origin,t.direction,n)}function f(t,n,e=c()){return(0,s.d)(e.origin,t),(0,s.e)(e.direction,n,t),e}function d(t,n,e=c()){return(0,s.d)(e.origin,t),(0,s.d)(e.direction,n),e}function m(t,n){const e=(0,s.f)(o.rq.get(),(0,s.n)(o.rq.get(),t.direction),(0,s.e)(o.rq.get(),n,t.origin));return(0,s.g)(e,e)}function M(t,n,e){const r=(0,s.g)(t.direction,(0,s.e)(e,n,t.origin));return(0,s.i)(e,t.origin,(0,s.j)(e,t.direction,r)),e}const y=new r.I(()=>c());(0,a.vt)(),(0,a.vt)(),(0,a.vt)(),(0,i.vt)()},78553:(t,n,e)=>{e.d(n,{D:()=>s,p:()=>i});var r=e(56507);function i(t){const n=(0,r.Vr)(100*(1-t));return Math.max(0,Math.min(n,100))}function s(t){const n=1-t/100;return Math.max(0,Math.min(n,1))}},79608:(t,n,e)=>{e.d(n,{A:()=>f});var r=e(31635),i=e(69540),s=e(91429);let a=class extends i.Pw{constructor(t){super(t),this.type="web-scene"}equals(t){return this.type===t.type}};(0,r.Cg)([(0,s.MZ)()],a.prototype,"type",void 0),a=(0,r.Cg)([(0,s.$K)("esri.analysis.support.AnalysisOriginWebScene")],a);const o=a;var c=e(69622),u=e(4902),l=e(25482);let h=0,f=class extends((0,l.T)((0,i.OU)((0,u.s)(c.A)))){constructor(t){super(t),this.id=`${Date.now().toString(16)}-analysis-${h++}`,this.origin=null}get parent(){return this._get("parent")}set parent(t){const n=this.parent;if(null!=n)switch(n.type){case"line-of-sight":case"dimension":case"viewshed":n.releaseAnalysis(this);break;case"2d":case"3d":n.analyses.includes(this)&&n.analyses.remove(this)}this._set("parent",t)}equals(t){return this.type===t.type}};(0,r.Cg)([(0,s.MZ)({type:String,constructOnly:!0,clonable:!1})],f.prototype,"id",void 0),(0,r.Cg)([(0,s.MZ)({clonable:!1,value:null})],f.prototype,"parent",null),(0,r.Cg)([(0,s.MZ)({types:{key:"type",base:null,typeMap:{"web-scene":o}}})],f.prototype,"origin",void 0),f=(0,r.Cg)([(0,s.$K)("esri.analysis.Analysis")],f)},82534:(t,n,e)=>{function r(){return[0,0,0,1]}function i(t){return[t[0],t[1],t[2],t[3]]}e.d(n,{o8:()=>i,vt:()=>r,zK:()=>s});const s=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:i,create:r,fromValues:function(t,n,e,r){return[t,n,e,r]}},Symbol.toStringTag,{value:"Module"}))},87582:(t,n,e)=>{e(6867),e(65215).R}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[387],{1843:(t,e,r)=>{r.d(e,{BP:()=>f,l5:()=>_});var n=r(20498),i=r(13030),s=r(90239),o=r(4431),c=r(620),u=r(85079);class a{constructor(t,e){this.layout=t,this.buffer="number"==typeof e?new ArrayBuffer(e*t.stride):e;for(const e of t.fields.keys()){const r=t.fields.get(e);this[e]=new r.constructor(this.buffer,r.offset,this.stride)}}get stride(){return this.layout.stride}get count(){return this.buffer.byteLength/this.stride}get byteLength(){return this.buffer.byteLength}getField(t,e){const r=this[t];return r&&r.elementCount===e.ElementCount&&r.elementType===e.ElementType?r:null}slice(t,e){return new a(this.layout,this.buffer.slice(t*this.stride,e*this.stride))}copyFrom(t,e=0,r=0,n=t.count){const i=this.stride;if(i%4==0){const s=new Uint32Array(t.buffer,e*i,n*i/4);new Uint32Array(this.buffer,r*i,n*i/4).set(s)}else{const s=new Uint8Array(t.buffer,e*i,n*i);new Uint8Array(this.buffer,r*i,n*i).set(s)}return this}get usedMemory(){return this.byteLength}dispose(){}}class h{constructor(t){this._stride=0,this._fields=new Map,t&&(this._stride=t.stride,t.fields.forEach(t=>this._fields.set(t[0],{...t[1],constructor:E(t[1].constructor)})))}freeze(){return this}get locations(){return(0,u.Xk)((0,o.U)(this))}vec2f16(t,e){return this._appendField(t,n.SX?i.ZD:i.gH,e),this}vec2f(t,e){return this._appendField(t,i.gH,e),this}vec2f64(t,e){return this._appendField(t,i.si,e),this}vec3f16(t,e){return this._appendField(t,n.SX?i.EC:i.xs,e),this}vec3f(t,e){return this._appendField(t,i.xs,e),this}vec3f64(t,e){return this._appendField(t,i.Xm,e),this}vec4f16(t,e){return this._appendField(t,n.SX?i.jz:i.Eq,e),this}vec4f(t,e){return this._appendField(t,i.Eq,e),this}vec4f64(t,e){return this._appendField(t,i.Aj,e),this}mat3f(t,e){return this._appendField(t,i.jZ,e),this}mat3f64(t,e){return this._appendField(t,i.j0,e),this}mat4f(t,e){return this._appendField(t,i.Sx,e),this}mat4f64(t,e){return this._appendField(t,i.E$,e),this}vec4u8(t,e){return this._appendField(t,i.XP,e),this}f16(t,e){return this._appendField(t,n.SX?i.XW:i.Y$,e),this}f32(t,e){return this._appendField(t,i.Y$,e),this}f64(t,e){return this._appendField(t,i.qB,e),this}u8(t,e){return this._appendField(t,i.SL,e),this}u16(t,e){return this._appendField(t,i.h,e),this}i8(t,e){return this._appendField(t,i.bf,e),this}vec2i8(t,e){return this._appendField(t,i.D6,e),this}vec2i16(t,e){return this._appendField(t,i.mJ,e),this}vec2u8(t,e){return this._appendField(t,i.LC,e),this}vec2u16(t,e){return this._appendField(t,i.Yi,e),this}vec4u16(t,e){return this._appendField(t,i.Uz,e),this}vec4i16(t,e){return this._appendField(t,i.E7,e),this}u32(t,e){return this._appendField(t,i.P,e),this}_appendField(t,e,r){this._fields.has(t)&&(0,c.vA)(!1,`${t} already added to vertex buffer layout`);const n=e.ElementCount*(0,s.GJ)(e.ElementType),i=this._stride;this._fields.set(t,{constructor:e,size:n,offset:i,optional:r}),this._alignFields()}_alignFields(){let t=0,e=1;this._fields.forEach(r=>{const n=(0,s.GJ)(r.constructor.ElementType);t=Math.floor((t+n-1)/n)*n,r.offset=t,t+=r.size,e=Math.max(e,n)}),t=Math.floor((t+e-1)/e)*e,this._stride=t}createBuffer(t){return new a(this,t)}createView(t){return new a(this,t)}clone(){const t=new h;return t._stride=this._stride,t._fields=new Map,this._fields.forEach((e,r)=>t._fields.set(r,e)),t.BufferType=this.BufferType,t}get stride(){return this._stride}get fields(){return this._fields}}function f(){return new h}class _{constructor(t){this.fields=new Array,t.fields.forEach((t,e)=>{const r={...t,constructor:l(t.constructor)};this.fields.push([e,r])}),this.stride=t.stride}}const d=[i.Y$,i.gH,i.xs,i.Eq,i.jZ,i.Sx,i.qB,i.si,i.Xm,i.Aj,i.j0,i.E$,i.SL,i.LC,i.eI,i.XP,i.h,i.Yi,i.nS,i.Uz,i.P,i.An,i.H$,i.ml,i.bf,i.D6,i.m8,i.TX,i.Qt,i.mJ,i.Vp,i.E7,i.My,i.UL,i.zD,i.Y4];function l(t){return`${t.ElementType}_${t.ElementCount}`}function E(t){return R.get(t)}const R=new Map;d.forEach(t=>R.set(l(t),t))},4341:(t,e,r)=>{r.d(e,{I:()=>i});var n=r(26390);class i{constructor(t){this._allocator=t,this._items=[],this._itemsPtr=0,this._grow()}get(){return 0===this._itemsPtr&&(0,n.d)(()=>this._reset()),this._itemsPtr===this._items.length&&this._grow(),this._items[this._itemsPtr++]}_reset(){const t=Math.min(3*Math.max(8,this._itemsPtr),this._itemsPtr+3*s);this._items.length=Math.min(t,this._items.length),this._itemsPtr=0}_grow(){for(let t=0;t<Math.max(8,Math.min(this._items.length,s));t++)this._items.push(this._allocator())}}const s=1024},4431:(t,e,r)=>{r.d(e,{U:()=>s}),r(44208);var n=r(63907),i=r(74038);function s(t,e=0){const r=t.stride;return Array.from(t.fields.keys()).map(s=>{const o=t.fields.get(s),c=o.constructor.ElementCount,u=function(t){switch(t){case"u8":return n.pe.UNSIGNED_BYTE;case"u16":return n.pe.UNSIGNED_SHORT;case"u32":return n.pe.UNSIGNED_INT;case"i8":return n.pe.BYTE;case"i16":return n.pe.SHORT;case"i32":return n.pe.INT;case"f16":return n.pe.HALF_FLOAT;case"f32":return n.pe.FLOAT;default:throw new Error("BufferType not supported in WebGL")}}(o.constructor.ElementType),a=o.offset,h=o.optional?.glNormalized??!1,f=o.optional?.integer??!1;return new i._(s,c,u,a,r,h,e,f)})}},11868:(t,e,r)=>{r.d(e,{Wz:()=>s,oe:()=>i});var n=r(34275);function i(t,e=!1){return t<=n.y9?e?new Array(t).fill(0):new Array(t):new Float32Array(t)}function s(t){return(Array.isArray(t)?t.length:t.byteLength/8)<=n.y9?Array.from(t):new Float32Array(t)}},11964:(t,e,r)=>{r.d(e,{Cr:()=>h,H6:()=>d,LV:()=>a,_I:()=>_,kb:()=>f,vt:()=>u});var n=r(34727),i=r(4341),s=r(38954),o=r(51850),c=r(32114);function u(t){return t?{origin:(0,o.o8)(t.origin),vector:(0,o.o8)(t.vector)}:{origin:(0,o.vt)(),vector:(0,o.vt)()}}function a(t,e){const r=l.get();return r.origin=t,r.vector=e,r}function h(t,e,r=u()){return(0,s.d)(r.origin,t),(0,s.e)(r.vector,e,t),r}function f(t,e){const r=(0,s.e)(c.rq.get(),e,t.origin),i=(0,s.g)(t.vector,r),o=(0,s.g)(t.vector,t.vector),u=(0,n.qE)(i/o,0,1),a=(0,s.e)(c.rq.get(),(0,s.j)(c.rq.get(),t.vector,u),r);return(0,s.g)(a,a)}function _(t,e,r){return d(t,e,0,1,r)}function d(t,e,r,i,o){const{vector:u,origin:a}=t,h=(0,s.e)(c.rq.get(),e,a),f=(0,s.g)(u,h)/(0,s.F)(u);return(0,s.j)(o,u,(0,n.qE)(f,r,i)),(0,s.i)(o,o,t.origin)}(0,o.vt)(),(0,o.vt)();const l=new i.I(()=>u())},63907:(t,e,r)=>{r.d(e,{$0:()=>f,CQ:()=>R,Fq:()=>l,H0:()=>s,SB:()=>u,WR:()=>n,XN:()=>o,iE:()=>c,ld:()=>a,nI:()=>E,pe:()=>i,r6:()=>_,vt:()=>h,yI:()=>d});const n={POINTS:0,LINES:1,LINE_LOOP:2,LINE_STRIP:3,TRIANGLES:4,TRIANGLE_STRIP:5,TRIANGLE_FAN:6},i={BYTE:5120,UNSIGNED_BYTE:5121,SHORT:5122,UNSIGNED_SHORT:5123,INT:5124,UNSIGNED_INT:5125,FLOAT:5126,HALF_FLOAT:5131},s={RGBA4:32854,R16F:33325,RG16F:33327,RGB32F:34837,RGBA16F:34842,R32F:33326,RG32F:33328,RGBA32F:34836,R11F_G11F_B10F:35898,RGB8:32849,RGBA8:32856,RGB5_A1:32855,R8:33321,RG8:33323,R8I:33329,R8UI:33330,R16I:33331,R16UI:33332,R32I:33333,R32UI:33334,RG8I:33335,RG8UI:33336,RG16I:33337,RG16UI:33338,RG32I:33339,RG32UI:33340,RGB16F:34843,RGB9_E5:35901,SRGB8:35905,SRGB8_ALPHA8:35907,RGB565:36194,RGBA32UI:36208,RGB32UI:36209,RGBA16UI:36214,RGB16UI:36215,RGBA8UI:36220,RGB8UI:36221,RGBA32I:36226,RGB32I:36227,RGBA16I:36232,RGB16I:36233,RGBA8I:36238,RGB8I:36239,R8_SNORM:36756,RG8_SNORM:36757,RGB8_SNORM:36758,RGBA8_SNORM:36759,RGB10_A2:32857,RGB10_A2UI:36975},o=Object.values(s),c={DEPTH24_STENCIL8:35056,DEPTH32F_STENCIL8:36013},u={DEPTH_COMPONENT16:33189,DEPTH_COMPONENT24:33190,DEPTH_COMPONENT32F:36012},a={FLOAT:i.FLOAT,UNSIGNED_BYTE:i.UNSIGNED_BYTE,UNSIGNED_INT_24_8:34042,UNSIGNED_SHORT_4_4_4_4:32819,UNSIGNED_SHORT_5_5_5_1:32820,UNSIGNED_SHORT_5_6_5:33635,BYTE:i.BYTE,UNSIGNED_SHORT:i.UNSIGNED_SHORT,SHORT:i.SHORT,UNSIGNED_INT:i.UNSIGNED_INT,INT:i.INT,HALF_FLOAT:5131,UNSIGNED_INT_2_10_10_10_REV:33640,UNSIGNED_INT_10F_11F_11F_REV:35899,UNSIGNED_INT_5_9_9_9_REV:35902,FLOAT_32_UNSIGNED_INT_24_8_REV:36269},h={Texture:0,TileTexture:1,BufferObject:2,VertexArrayObject:3,Shader:4,Program:5,FramebufferObject:6,Renderbuffer:7,TransformFeedback:8,Sync:9,UNCOUNTED:10,LinesOfCode:10,Uniform:11,COUNT:12},f=0,_=36064,d=36065,l=36066,E=33306,R={COMPRESSED_RGB_S3TC_DXT1_EXT:33776,COMPRESSED_RGBA_S3TC_DXT1_EXT:33777,COMPRESSED_RGBA_S3TC_DXT3_EXT:33778,COMPRESSED_RGBA_S3TC_DXT5_EXT:33779,COMPRESSED_R11_EAC:37488,COMPRESSED_SIGNED_R11_EAC:37489,COMPRESSED_RG11_EAC:37490,COMPRESSED_SIGNED_RG11_EAC:37491,COMPRESSED_RGB8_ETC2:37492,COMPRESSED_SRGB8_ETC2:37493,COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2:37494,COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2:37495,COMPRESSED_RGBA8_ETC2_EAC:37496,COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:37497}},71351:(t,e,r)=>{r.d(e,{C:()=>f,Cr:()=>_,LV:()=>h,fA:()=>d,kb:()=>l,oC:()=>E,vt:()=>u}),r(4576);var n=r(4341),i=(r(77690),r(29242)),s=r(38954),o=r(51850),c=r(32114);function u(t){return t?a((0,o.o8)(t.origin),(0,o.o8)(t.direction)):a((0,o.vt)(),(0,o.vt)())}function a(t,e){return{origin:t,direction:e}}function h(t,e){const r=R.get();return r.origin=t,r.direction=e,r}function f(t,e=u()){return d(t.origin,t.direction,e)}function _(t,e,r=u()){return(0,s.d)(r.origin,t),(0,s.e)(r.direction,e,t),r}function d(t,e,r=u()){return(0,s.d)(r.origin,t),(0,s.d)(r.direction,e),r}function l(t,e){const r=(0,s.f)(c.rq.get(),(0,s.n)(c.rq.get(),t.direction),(0,s.e)(c.rq.get(),e,t.origin));return(0,s.g)(r,r)}function E(t,e,r){const n=(0,s.g)(t.direction,(0,s.e)(r,e,t.origin));return(0,s.i)(r,t.origin,(0,s.j)(r,t.direction,n)),r}const R=new n.I(()=>u());(0,o.vt)(),(0,o.vt)(),(0,o.vt)(),(0,i.vt)()},74038:(t,e,r)=>{r.d(e,{_:()=>n});class n{constructor(t,e,r,n,i,s=!1,o=0,c=!1){this.name=t,this.count=e,this.type=r,this.offset=n,this.stride=i,this.normalized=s,this.divisor=o,this.integer=c}}},82919:(t,e,r)=>{r.d(e,{DV:()=>g,C:()=>E,vt:()=>d,Qy:()=>l,ui:()=>R,ST:()=>S,bU:()=>T,pw:()=>p,m7:()=>A,c8:()=>v});var n=r(4341),i=r(58083),s=r(38954),o=r(51850),c=r(87317),u=r(91829),a=r(71351);function h(t){return t?{ray:(0,a.vt)(t.ray),c0:t.c0,c1:t.c1}:{ray:(0,a.vt)(),c0:0,c1:Number.MAX_VALUE}}new n.I(()=>h());var f=r(27921),_=r(32114);function d(t){return t?[(0,f.vt)(t[0]),(0,f.vt)(t[1]),(0,f.vt)(t[2]),(0,f.vt)(t[3]),(0,f.vt)(t[4]),(0,f.vt)(t[5])]:[(0,f.vt)(),(0,f.vt)(),(0,f.vt)(),(0,f.vt)(),(0,f.vt)(),(0,f.vt)()]}function l(){return[(0,o.vt)(),(0,o.vt)(),(0,o.vt)(),(0,o.vt)(),(0,o.vt)(),(0,o.vt)(),(0,o.vt)(),(0,o.vt)()]}function E(t,e){for(let r=0;r<N;r++)(0,f.C)(t[r],e[r]);return t}function R(t,e,r,n=F){const o=(0,i.lw)(_.Rc.get(),e,t);(0,i.B8)(o,o);for(let t=0;t<G;++t){const e=(0,c.t)(_.Km.get(),I[t],o);(0,s.h)(n[t],e[0]/e[3],e[1]/e[3],e[2]/e[3])}g(r,n)}function g(t,e){(0,f.Cr)(e[4],e[0],e[3],t[0]),(0,f.Cr)(e[1],e[5],e[6],t[1]),(0,f.Cr)(e[4],e[5],e[1],t[2]),(0,f.Cr)(e[3],e[2],e[6],t[3]),(0,f.Cr)(e[0],e[1],e[2],t[4]),(0,f.Cr)(e[5],e[4],e[7],t[5])}function A(t,e){for(let r=0;r<N;r++){const n=t[r];if(n[0]*e.center[0]+n[1]*e.center[1]+n[2]*e.center[2]+n[3]>=e.radius)return!1}return!0}function p(t,e){return y(t,function(t,e=h()){return(0,a.C)(t,e.ray),e.c0=0,e.c1=Number.MAX_VALUE,e}(e,m.get()))}function S(t,e,r){return y(t,function(t,e,r=h()){const n=(0,s.b)(t.vector);return(0,a.fA)(t.origin,e,r.ray),r.c0=0,r.c1=n,r}(e,r,m.get()))}function T(t,e){for(let r=0;r<N;r++)if((0,f.mN)(t[r],e)>0)return!1;return!0}function y(t,e){for(let r=0;r<N;r++)if(!(0,f.$Q)(t[r],e))return!1;return!0}const v={bottom:[5,1,0,4],near:[0,1,2,3],far:[5,4,7,6],right:[1,5,6,2],left:[4,0,3,7],top:[7,3,2,6]},N=6,G=8,I=[(0,u.fA)(-1,-1,-1,1),(0,u.fA)(1,-1,-1,1),(0,u.fA)(1,1,-1,1),(0,u.fA)(-1,1,-1,1),(0,u.fA)(-1,-1,1,1),(0,u.fA)(1,-1,1,1),(0,u.fA)(1,1,1,1),(0,u.fA)(-1,1,1,1)],m=new n.I(h),F=l()},85079:(t,e,r)=>{r.d(e,{Xk:()=>i,_u:()=>s});var n=r(21818);function i(t){let e=0;return(0,n.zI)(new Map(t.map(({name:t,count:r})=>{const n=[t,e];return 16===r?e+=4:9===r?e+=3:++e,n})))}function s(t){const e=new Map;let r=0;return t.forEach(t=>t.forEach(({name:t,count:n})=>{e.set(t,r),16===n?r+=4:9===n?r+=3:++r})),e}},90239:(t,e,r)=>{function n(t){switch(t){case"u8":case"i8":return 1;case"u16":case"i16":case"f16":return 2;case"u32":case"i32":case"f32":return 4;case"f64":return 8}}r.d(e,{GJ:()=>n})},94008:(t,e,r)=>{r.d(e,{iy:()=>l,XG:()=>E}),r(44208),r(53966);var n=r(34727),i=r(34304),s=r(58083),o=r(38954),c=r(51850),u=r(91829),a=r(34275);var h=r(71351);function f(t,e){const r=(0,o.b)(t),i=(0,n.YN)(t[2]/r),s=Math.atan2(t[1]/r,t[0]/r);return(0,o.h)(e,r,i,s),e}var _=r(44280),d=r(32114);class l{constructor(t=0,e=0,r=0,n=0){this.radius=n,"number"==typeof t?this._center=(0,c.fA)(t,e,r):function(t){return e=t,(0,a.vZ)(e)&&e.length>=3||function(t){return((0,a.aI)(t)||Array.isArray(t))&&t.length>=3}(t);var e}(t)||function(t){return(e=t)instanceof Float32Array&&e.length>=4||function(t){return Array.isArray(t)&&t.length>=4}(t);var e}(t)?(this._center=(0,c.ci)(t),this.radius=4===t.length?t[3]:e):(this._center=(0,c.o8)(t.center),this.radius=t.radius)}get isValid(){return this.radius>=0}invalidate(){this.radius=-1}get center(){return this._center}set center(t){(0,o.d)(this.center,t)}exactEquals(t){return(0,o.G)(this._center,t.center)&&this.radius===t.radius}copyFrom(t){return t!==this&&((0,o.d)(this._center,t.center),this.radius=t.radius),this}clone(){return new l(this.center,this.radius)}toVec4(){return(0,u.fA)(this.center[0],this.center[1],this.center[2],this.radius)}contains(t){return(0,o.s)(this.center,t)<=this.radius**2}intersectRay(t,e){if(null==t)return!1;if(!this._intersect(t,R))return!1;let{t0:r,t1:n}=R;if((r<0||n<r&&n>0)&&(r=n),r<0)return!1;if(e){const{origin:n,direction:i}=t;e[0]=n[0]+i[0]*r,e[1]=n[1]+i[1]*r,e[2]=n[2]+i[2]*r}return!0}intersectLine(t,e){const r=(0,h.Cr)(t,e);if(!this._intersect(r,R))return[];const{origin:n,direction:s}=r,{t0:u,t1:a}=R,f=t=>{const e=(0,c.vt)();return(0,o.c)(e,n,s,t),this.projectPoint(e,e)};return Math.abs(u-a)<(0,i.FD)()?[f(u)]:[f(u),f(a)]}_intersect(t,e){const{origin:r,direction:n}=t,i=g;i[0]=r[0]-this.center[0],i[1]=r[1]-this.center[1],i[2]=r[2]-this.center[2];const s=n[0]*n[0]+n[1]*n[1]+n[2]*n[2];if(0===s)return!1;const o=2*(n[0]*i[0]+n[1]*i[1]+n[2]*i[2]),c=o*o-4*s*(i[0]*i[0]+i[1]*i[1]+i[2]*i[2]-this.radius**2);if(c<0)return!1;const u=Math.sqrt(c);return e.t0=(-o-u)/(2*s),e.t1=(-o+u)/(2*s),!0}projectPoint(t,e){const r=(0,o.e)(d.rq.get(),t,this.center),n=(0,o.j)(d.rq.get(),r,this.radius/(0,o.b)(r));return(0,o.i)(e,n,this.center)}closestPointOnSilhouette(t,e){const r=d.rq.get(),n=d.Rc.get();(0,o.f)(r,t.origin,t.direction),(0,o.f)(e,r,t.origin),(0,o.j)(e,e,1/(0,o.b)(e)*this.radius);const i=this._angleToSilhouette(t.origin),c=(0,_.g7)(t.origin,e);return(0,s.$0)(n,c+i,r),(0,o.p)(e,e,n),e}frustumCoverage(t,e,r){const n=this.radius,i=n*n,s=t+.5*Math.PI,o=e*e+i-2*Math.cos(s)*e*n,c=Math.sqrt(o),u=o-i;if(u<=0)return.5;const a=Math.sqrt(u),h=Math.acos(a/c)-Math.asin(n/(c/Math.sin(s)));return Math.min(1,(h+.5*r)/r)}_angleToSilhouette(t){const e=(0,o.e)(d.rq.get(),t,this.center),r=(0,o.b)(e),i=this.radius,s=i+Math.abs(i-r);return(0,n.XM)(i/s)}union(t){const e=(0,o.D)(this._center,t.center),r=this.radius,n=t.radius;return e+n<r?this:e+r<n?(this.copyFrom(t),this):((0,o.l)(this._center,this._center,t.center,(e+n-r)/(2*e)),this.radius=(e+r+n)/2,this)}toJSON(){return{center:this.center,radius:this.radius}}}const E={create:t=>new l(t),copy:(t,e)=>e.copyFrom(t),setExtent:(t,e,r)=>r.copyFrom(t),getExtent:(t,e)=>e,elevate:(t,e,r)=>(r.copyFrom(t),r.radius+=e,r),axisAt(t,e,r,n){const i=(0,o.e)(A,e,t.center);switch(r){case 0:{const t=f(i,A)[2];return(0,o.h)(n,-Math.sin(t),Math.cos(t),0)}case 1:{const t=f(i,A),e=t[1],r=t[2],s=Math.sin(e);return(0,o.h)(n,-s*Math.cos(r),-s*Math.sin(r),Math.cos(e))}case 2:return(0,o.n)(n,i);default:return}},altitudeAt(t,e){const r=(0,o.e)(p,e,t.center);return(0,o.b)(r)-t.radius},setAltitudeAt(t,e,r,n){const i=E.altitudeAt(t,e),s=E.axisAt(t,e,2,p),c=(0,o.j)(p,s,r-i);return(0,o.i)(n,e,c)},intersectRay:(t,e,r)=>t.intersectRay(e,r),closestPoint:(t,e,r)=>t.intersectRay(e,r)?r:((0,h.oC)(e,t.center,r),t.projectPoint(r,r)),intersectRayClosestSilhouette(t,e,r){if(t.intersectRay(e,r))return r;const n=t.closestPointOnSilhouette(e,d.rq.get());return(0,o.i)(r,e.origin,(0,o.j)(d.rq.get(),e.direction,(0,o.D)(e.origin,n)/(0,o.b)(e.direction))),r},closestPointOnSilhouette:(t,e,r)=>t.closestPointOnSilhouette(e,r),distanceToSilhouette(t,e){const r=(0,o.e)(d.rq.get(),e,t.center),n=(0,o.F)(r),i=t.radius**2;return Math.sqrt(Math.abs(n-i))}},R=(new l,{t0:0,t1:0}),g=(0,c.vt)(),A=(0,c.vt)(),p=(0,c.vt)()},97146:(t,e,r)=>{r.d(e,{Dg:()=>s,my:()=>o,tM:()=>h,uW:()=>i});var n=r(34275);function i(t){return s(t,!0)}function s(t,e){if(Array.isArray(t)){if(t.length<n.y9)return t}else if(t.length<n.y9)return Array.from(t);let r=!0,i=!0;return t.some((t,e)=>(r=r&&0===t,i=i&&t===e,!r&&!i)),r?function(t){if(1===t)return u;if(t<n.y9)return new Array(t).fill(0);if(t>_.length){const e=Math.max(2*_.length,t);_=new Uint8Array(e)}return new Uint8Array(_.buffer,0,t)}(t.length):i?h(t.length):(0,n.iu)(t)&&t.BYTES_PER_ELEMENT===Uint16Array.BYTES_PER_ELEMENT?t:function(t,e){for(const r of t){if(r>=65536)return(0,n.iu)(t)?t:new Uint32Array(t);r>=256&&(e=!1)}return e?new Uint8Array(t):new Uint16Array(t)}(t,!e)}function o(t){return t<=n.y9?new Array(t):t<=65536?new Uint16Array(t):new Uint32Array(t)}let c=f(131072);const u=[0],a=(()=>{const t=new Uint16Array(65536);for(let e=0;e<t.length;++e)t[e]=e;return t})();function h(t){return 1===t?u:t<n.y9?Array.from(new Uint16Array(a.buffer,0,t)):t<a.length?new Uint16Array(a.buffer,0,t):(t>c.length&&(c=f(Math.max(2*c.length,t))),new Uint32Array(c.buffer,0,t))}function f(t){const e=new Uint32Array(t);for(let t=0;t<e.length;t++)e[t]=t;return e}let _=new Uint8Array(65536)}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[387],{1843:(t,e,r)=>{r.d(e,{BP:()=>f,l5:()=>_});var n=r(20498),i=r(13030),s=r(90239),o=r(4431),c=r(620),u=r(85079);class a{constructor(t,e){this.layout=t,this.buffer="number"==typeof e?new ArrayBuffer(e*t.stride):e;for(const e of t.fields.keys()){const r=t.fields.get(e);this[e]=new r.constructor(this.buffer,r.offset,this.stride)}}get stride(){return this.layout.stride}get count(){return this.buffer.byteLength/this.stride}get byteLength(){return this.buffer.byteLength}getField(t,e){const r=this[t];return r&&r.elementCount===e.ElementCount&&r.elementType===e.ElementType?r:null}slice(t,e){return new a(this.layout,this.buffer.slice(t*this.stride,e*this.stride))}copyFrom(t,e=0,r=0,n=t.count){const i=this.stride;if(i%4==0){const s=new Uint32Array(t.buffer,e*i,n*i/4);new Uint32Array(this.buffer,r*i,n*i/4).set(s)}else{const s=new Uint8Array(t.buffer,e*i,n*i);new Uint8Array(this.buffer,r*i,n*i).set(s)}return this}get usedMemory(){return this.byteLength}dispose(){}}class h{constructor(t){this._stride=0,this._fields=new Map,t&&(this._stride=t.stride,t.fields.forEach(t=>this._fields.set(t[0],{...t[1],constructor:E(t[1].constructor)})))}freeze(){return this}get locations(){return(0,u.Xk)((0,o.U)(this))}vec2f16(t,e){return this._appendField(t,n.SX?i.ZD:i.gH,e),this}vec2f(t,e){return this._appendField(t,i.gH,e),this}vec2f64(t,e){return this._appendField(t,i.si,e),this}vec3f16(t,e){return this._appendField(t,n.SX?i.EC:i.xs,e),this}vec3f(t,e){return this._appendField(t,i.xs,e),this}vec3f64(t,e){return this._appendField(t,i.Xm,e),this}vec4f16(t,e){return this._appendField(t,n.SX?i.jz:i.Eq,e),this}vec4f(t,e){return this._appendField(t,i.Eq,e),this}vec4f64(t,e){return this._appendField(t,i.Aj,e),this}mat3f(t,e){return this._appendField(t,i.jZ,e),this}mat3f64(t,e){return this._appendField(t,i.j0,e),this}mat4f(t,e){return this._appendField(t,i.Sx,e),this}mat4f64(t,e){return this._appendField(t,i.E$,e),this}vec4u8(t,e){return this._appendField(t,i.XP,e),this}f16(t,e){return this._appendField(t,n.SX?i.XW:i.Y$,e),this}f32(t,e){return this._appendField(t,i.Y$,e),this}f64(t,e){return this._appendField(t,i.qB,e),this}u8(t,e){return this._appendField(t,i.SL,e),this}u16(t,e){return this._appendField(t,i.h,e),this}i8(t,e){return this._appendField(t,i.bf,e),this}vec2i8(t,e){return this._appendField(t,i.D6,e),this}vec2i16(t,e){return this._appendField(t,i.mJ,e),this}vec2u8(t,e){return this._appendField(t,i.LC,e),this}vec2u16(t,e){return this._appendField(t,i.Yi,e),this}vec4u16(t,e){return this._appendField(t,i.Uz,e),this}vec4i16(t,e){return this._appendField(t,i.E7,e),this}u32(t,e){return this._appendField(t,i.P,e),this}_appendField(t,e,r){this._fields.has(t)&&(0,c.vA)(!1,`${t} already added to vertex buffer layout`);const n=e.ElementCount*(0,s.GJ)(e.ElementType),i=this._stride;this._fields.set(t,{constructor:e,size:n,offset:i,optional:r}),this._alignFields()}_alignFields(){let t=0,e=1;this._fields.forEach(r=>{const n=(0,s.GJ)(r.constructor.ElementType);t=Math.floor((t+n-1)/n)*n,r.offset=t,t+=r.size,e=Math.max(e,n)}),t=Math.floor((t+e-1)/e)*e,this._stride=t}createBuffer(t){return new a(this,t)}createView(t){return new a(this,t)}clone(){const t=new h;return t._stride=this._stride,t._fields=new Map,this._fields.forEach((e,r)=>t._fields.set(r,e)),t.BufferType=this.BufferType,t}get stride(){return this._stride}get fields(){return this._fields}}function f(){return new h}class _{constructor(t){this.fields=new Array,t.fields.forEach((t,e)=>{const r={...t,constructor:l(t.constructor)};this.fields.push([e,r])}),this.stride=t.stride}}const d=[i.Y$,i.gH,i.xs,i.Eq,i.jZ,i.Sx,i.qB,i.si,i.Xm,i.Aj,i.j0,i.E$,i.SL,i.LC,i.eI,i.XP,i.h,i.Yi,i.nS,i.Uz,i.P,i.An,i.H$,i.ml,i.bf,i.D6,i.m8,i.TX,i.Qt,i.mJ,i.Vp,i.E7,i.My,i.UL,i.zD,i.Y4];function l(t){return`${t.ElementType}_${t.ElementCount}`}function E(t){return R.get(t)}const R=new Map;d.forEach(t=>R.set(l(t),t))},4341:(t,e,r)=>{r.d(e,{I:()=>i});var n=r(26390);class i{constructor(t){this._allocator=t,this._items=[],this._itemsPtr=0,this._grow()}get(){return 0===this._itemsPtr&&(0,n.d)(()=>this._reset()),this._itemsPtr===this._items.length&&this._grow(),this._items[this._itemsPtr++]}_reset(){const t=Math.min(3*Math.max(8,this._itemsPtr),this._itemsPtr+3*s);this._items.length=Math.min(t,this._items.length),this._itemsPtr=0}_grow(){for(let t=0;t<Math.max(8,Math.min(this._items.length,s));t++)this._items.push(this._allocator())}}const s=1024},4431:(t,e,r)=>{r.d(e,{U:()=>s}),r(44208);var n=r(63907),i=r(74038);function s(t,e=0){const r=t.stride;return Array.from(t.fields.keys()).map(s=>{const o=t.fields.get(s),c=o.constructor.ElementCount,u=function(t){switch(t){case"u8":return n.pe.UNSIGNED_BYTE;case"u16":return n.pe.UNSIGNED_SHORT;case"u32":return n.pe.UNSIGNED_INT;case"i8":return n.pe.BYTE;case"i16":return n.pe.SHORT;case"i32":return n.pe.INT;case"f16":return n.pe.HALF_FLOAT;case"f32":return n.pe.FLOAT;default:throw new Error("BufferType not supported in WebGL")}}(o.constructor.ElementType),a=o.offset,h=o.optional?.glNormalized??!1,f=o.optional?.integer??!1;return new i._(s,c,u,a,r,h,e,f)})}},11868:(t,e,r)=>{r.d(e,{Wz:()=>s,oe:()=>i});var n=r(34275);function i(t,e=!1){return t<=n.y9?e?new Array(t).fill(0):new Array(t):new Float32Array(t)}function s(t){return(Array.isArray(t)?t.length:t.byteLength/8)<=n.y9?Array.from(t):new Float32Array(t)}},11964:(t,e,r)=>{r.d(e,{Cr:()=>h,H6:()=>d,LV:()=>a,_I:()=>_,kb:()=>f,vt:()=>u});var n=r(34727),i=r(4341),s=r(38954),o=r(51850),c=r(32114);function u(t){return t?{origin:(0,o.o8)(t.origin),vector:(0,o.o8)(t.vector)}:{origin:(0,o.vt)(),vector:(0,o.vt)()}}function a(t,e){const r=l.get();return r.origin=t,r.vector=e,r}function h(t,e,r=u()){return(0,s.d)(r.origin,t),(0,s.e)(r.vector,e,t),r}function f(t,e){const r=(0,s.e)(c.rq.get(),e,t.origin),i=(0,s.g)(t.vector,r),o=(0,s.g)(t.vector,t.vector),u=(0,n.qE)(i/o,0,1),a=(0,s.e)(c.rq.get(),(0,s.j)(c.rq.get(),t.vector,u),r);return(0,s.g)(a,a)}function _(t,e,r){return d(t,e,0,1,r)}function d(t,e,r,i,o){const{vector:u,origin:a}=t,h=(0,s.e)(c.rq.get(),e,a),f=(0,s.g)(u,h)/(0,s.D)(u);return(0,s.j)(o,u,(0,n.qE)(f,r,i)),(0,s.i)(o,o,t.origin)}(0,o.vt)(),(0,o.vt)();const l=new i.I(()=>u())},63907:(t,e,r)=>{r.d(e,{$0:()=>f,CQ:()=>R,Fq:()=>l,H0:()=>s,SB:()=>u,WR:()=>n,XN:()=>o,iE:()=>c,ld:()=>a,nI:()=>E,pe:()=>i,r6:()=>_,vt:()=>h,yI:()=>d});const n={POINTS:0,LINES:1,LINE_LOOP:2,LINE_STRIP:3,TRIANGLES:4,TRIANGLE_STRIP:5,TRIANGLE_FAN:6},i={BYTE:5120,UNSIGNED_BYTE:5121,SHORT:5122,UNSIGNED_SHORT:5123,INT:5124,UNSIGNED_INT:5125,FLOAT:5126,HALF_FLOAT:5131},s={RGBA4:32854,R16F:33325,RG16F:33327,RGB32F:34837,RGBA16F:34842,R32F:33326,RG32F:33328,RGBA32F:34836,R11F_G11F_B10F:35898,RGB8:32849,RGBA8:32856,RGB5_A1:32855,R8:33321,RG8:33323,R8I:33329,R8UI:33330,R16I:33331,R16UI:33332,R32I:33333,R32UI:33334,RG8I:33335,RG8UI:33336,RG16I:33337,RG16UI:33338,RG32I:33339,RG32UI:33340,RGB16F:34843,RGB9_E5:35901,SRGB8:35905,SRGB8_ALPHA8:35907,RGB565:36194,RGBA32UI:36208,RGB32UI:36209,RGBA16UI:36214,RGB16UI:36215,RGBA8UI:36220,RGB8UI:36221,RGBA32I:36226,RGB32I:36227,RGBA16I:36232,RGB16I:36233,RGBA8I:36238,RGB8I:36239,R8_SNORM:36756,RG8_SNORM:36757,RGB8_SNORM:36758,RGBA8_SNORM:36759,RGB10_A2:32857,RGB10_A2UI:36975},o=Object.values(s),c={DEPTH24_STENCIL8:35056,DEPTH32F_STENCIL8:36013},u={DEPTH_COMPONENT16:33189,DEPTH_COMPONENT24:33190,DEPTH_COMPONENT32F:36012},a={FLOAT:i.FLOAT,UNSIGNED_BYTE:i.UNSIGNED_BYTE,UNSIGNED_INT_24_8:34042,UNSIGNED_SHORT_4_4_4_4:32819,UNSIGNED_SHORT_5_5_5_1:32820,UNSIGNED_SHORT_5_6_5:33635,BYTE:i.BYTE,UNSIGNED_SHORT:i.UNSIGNED_SHORT,SHORT:i.SHORT,UNSIGNED_INT:i.UNSIGNED_INT,INT:i.INT,HALF_FLOAT:5131,UNSIGNED_INT_2_10_10_10_REV:33640,UNSIGNED_INT_10F_11F_11F_REV:35899,UNSIGNED_INT_5_9_9_9_REV:35902,FLOAT_32_UNSIGNED_INT_24_8_REV:36269},h={Texture:0,TileTexture:1,BufferObject:2,VertexArrayObject:3,Shader:4,Program:5,FramebufferObject:6,Renderbuffer:7,TransformFeedback:8,Sync:9,UNCOUNTED:10,LinesOfCode:10,Uniform:11,COUNT:12},f=0,_=36064,d=36065,l=36066,E=33306,R={COMPRESSED_RGB_S3TC_DXT1_EXT:33776,COMPRESSED_RGBA_S3TC_DXT1_EXT:33777,COMPRESSED_RGBA_S3TC_DXT3_EXT:33778,COMPRESSED_RGBA_S3TC_DXT5_EXT:33779,COMPRESSED_R11_EAC:37488,COMPRESSED_SIGNED_R11_EAC:37489,COMPRESSED_RG11_EAC:37490,COMPRESSED_SIGNED_RG11_EAC:37491,COMPRESSED_RGB8_ETC2:37492,COMPRESSED_SRGB8_ETC2:37493,COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2:37494,COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2:37495,COMPRESSED_RGBA8_ETC2_EAC:37496,COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:37497}},71351:(t,e,r)=>{r.d(e,{C:()=>f,Cr:()=>_,LV:()=>h,fA:()=>d,kb:()=>l,oC:()=>E,vt:()=>u}),r(4576);var n=r(4341),i=(r(77690),r(29242)),s=r(38954),o=r(51850),c=r(32114);function u(t){return t?a((0,o.o8)(t.origin),(0,o.o8)(t.direction)):a((0,o.vt)(),(0,o.vt)())}function a(t,e){return{origin:t,direction:e}}function h(t,e){const r=R.get();return r.origin=t,r.direction=e,r}function f(t,e=u()){return d(t.origin,t.direction,e)}function _(t,e,r=u()){return(0,s.d)(r.origin,t),(0,s.e)(r.direction,e,t),r}function d(t,e,r=u()){return(0,s.d)(r.origin,t),(0,s.d)(r.direction,e),r}function l(t,e){const r=(0,s.f)(c.rq.get(),(0,s.n)(c.rq.get(),t.direction),(0,s.e)(c.rq.get(),e,t.origin));return(0,s.g)(r,r)}function E(t,e,r){const n=(0,s.g)(t.direction,(0,s.e)(r,e,t.origin));return(0,s.i)(r,t.origin,(0,s.j)(r,t.direction,n)),r}const R=new n.I(()=>u());(0,o.vt)(),(0,o.vt)(),(0,o.vt)(),(0,i.vt)()},74038:(t,e,r)=>{r.d(e,{_:()=>n});class n{constructor(t,e,r,n,i,s=!1,o=0,c=!1){this.name=t,this.count=e,this.type=r,this.offset=n,this.stride=i,this.normalized=s,this.divisor=o,this.integer=c}}},82919:(t,e,r)=>{r.d(e,{DV:()=>g,C:()=>E,vt:()=>d,Qy:()=>l,ui:()=>R,ST:()=>S,bU:()=>T,pw:()=>p,m7:()=>A,c8:()=>v});var n=r(4341),i=r(58083),s=r(38954),o=r(51850),c=r(87317),u=r(91829),a=r(71351);function h(t){return t?{ray:(0,a.vt)(t.ray),c0:t.c0,c1:t.c1}:{ray:(0,a.vt)(),c0:0,c1:Number.MAX_VALUE}}new n.I(()=>h());var f=r(27921),_=r(32114);function d(t){return t?[(0,f.vt)(t[0]),(0,f.vt)(t[1]),(0,f.vt)(t[2]),(0,f.vt)(t[3]),(0,f.vt)(t[4]),(0,f.vt)(t[5])]:[(0,f.vt)(),(0,f.vt)(),(0,f.vt)(),(0,f.vt)(),(0,f.vt)(),(0,f.vt)()]}function l(){return[(0,o.vt)(),(0,o.vt)(),(0,o.vt)(),(0,o.vt)(),(0,o.vt)(),(0,o.vt)(),(0,o.vt)(),(0,o.vt)()]}function E(t,e){for(let r=0;r<N;r++)(0,f.C)(t[r],e[r]);return t}function R(t,e,r,n=F){const o=(0,i.lw)(_.Rc.get(),e,t);(0,i.B8)(o,o);for(let t=0;t<G;++t){const e=(0,c.t)(_.Km.get(),I[t],o);(0,s.h)(n[t],e[0]/e[3],e[1]/e[3],e[2]/e[3])}g(r,n)}function g(t,e){(0,f.Cr)(e[4],e[0],e[3],t[0]),(0,f.Cr)(e[1],e[5],e[6],t[1]),(0,f.Cr)(e[4],e[5],e[1],t[2]),(0,f.Cr)(e[3],e[2],e[6],t[3]),(0,f.Cr)(e[0],e[1],e[2],t[4]),(0,f.Cr)(e[5],e[4],e[7],t[5])}function A(t,e){for(let r=0;r<N;r++){const n=t[r];if(n[0]*e.center[0]+n[1]*e.center[1]+n[2]*e.center[2]+n[3]>=e.radius)return!1}return!0}function p(t,e){return y(t,function(t,e=h()){return(0,a.C)(t,e.ray),e.c0=0,e.c1=Number.MAX_VALUE,e}(e,m.get()))}function S(t,e,r){return y(t,function(t,e,r=h()){const n=(0,s.b)(t.vector);return(0,a.fA)(t.origin,e,r.ray),r.c0=0,r.c1=n,r}(e,r,m.get()))}function T(t,e){for(let r=0;r<N;r++)if((0,f.mN)(t[r],e)>0)return!1;return!0}function y(t,e){for(let r=0;r<N;r++)if(!(0,f.$Q)(t[r],e))return!1;return!0}const v={bottom:[5,1,0,4],near:[0,1,2,3],far:[5,4,7,6],right:[1,5,6,2],left:[4,0,3,7],top:[7,3,2,6]},N=6,G=8,I=[(0,u.fA)(-1,-1,-1,1),(0,u.fA)(1,-1,-1,1),(0,u.fA)(1,1,-1,1),(0,u.fA)(-1,1,-1,1),(0,u.fA)(-1,-1,1,1),(0,u.fA)(1,-1,1,1),(0,u.fA)(1,1,1,1),(0,u.fA)(-1,1,1,1)],m=new n.I(h),F=l()},85079:(t,e,r)=>{r.d(e,{Xk:()=>i,_u:()=>s});var n=r(21818);function i(t){let e=0;return(0,n.zI)(new Map(t.map(({name:t,count:r})=>{const n=[t,e];return 16===r?e+=4:9===r?e+=3:++e,n})))}function s(t){const e=new Map;let r=0;return t.forEach(t=>t.forEach(({name:t,count:n})=>{e.set(t,r),16===n?r+=4:9===n?r+=3:++r})),e}},90239:(t,e,r)=>{function n(t){switch(t){case"u8":case"i8":return 1;case"u16":case"i16":case"f16":return 2;case"u32":case"i32":case"f32":return 4;case"f64":return 8}}r.d(e,{GJ:()=>n})},94008:(t,e,r)=>{r.d(e,{iy:()=>l,XG:()=>E}),r(44208),r(53966);var n=r(34727),i=r(34304),s=r(58083),o=r(38954),c=r(51850),u=r(91829),a=r(34275);var h=r(71351);function f(t,e){const r=(0,o.b)(t),i=(0,n.YN)(t[2]/r),s=Math.atan2(t[1]/r,t[0]/r);return(0,o.h)(e,r,i,s),e}var _=r(44280),d=r(32114);class l{constructor(t=0,e=0,r=0,n=0){this.radius=n,"number"==typeof t?this._center=(0,c.fA)(t,e,r):function(t){return e=t,(0,a.vZ)(e)&&e.length>=3||function(t){return((0,a.aI)(t)||Array.isArray(t))&&t.length>=3}(t);var e}(t)||function(t){return(e=t)instanceof Float32Array&&e.length>=4||function(t){return Array.isArray(t)&&t.length>=4}(t);var e}(t)?(this._center=(0,c.ci)(t),this.radius=4===t.length?t[3]:e):(this._center=(0,c.o8)(t.center),this.radius=t.radius)}get isValid(){return this.radius>=0}invalidate(){this.radius=-1}get center(){return this._center}set center(t){(0,o.d)(this.center,t)}exactEquals(t){return(0,o.E)(this._center,t.center)&&this.radius===t.radius}copyFrom(t){return t!==this&&((0,o.d)(this._center,t.center),this.radius=t.radius),this}clone(){return new l(this.center,this.radius)}toVec4(){return(0,u.fA)(this.center[0],this.center[1],this.center[2],this.radius)}contains(t){return(0,o.s)(this.center,t)<=this.radius**2}intersectRay(t,e){if(null==t)return!1;if(!this._intersect(t,R))return!1;let{t0:r,t1:n}=R;if((r<0||n<r&&n>0)&&(r=n),r<0)return!1;if(e){const{origin:n,direction:i}=t;e[0]=n[0]+i[0]*r,e[1]=n[1]+i[1]*r,e[2]=n[2]+i[2]*r}return!0}intersectLine(t,e){const r=(0,h.Cr)(t,e);if(!this._intersect(r,R))return[];const{origin:n,direction:s}=r,{t0:u,t1:a}=R,f=t=>{const e=(0,c.vt)();return(0,o.c)(e,n,s,t),this.projectPoint(e,e)};return Math.abs(u-a)<(0,i.FD)()?[f(u)]:[f(u),f(a)]}_intersect(t,e){const{origin:r,direction:n}=t,i=g;i[0]=r[0]-this.center[0],i[1]=r[1]-this.center[1],i[2]=r[2]-this.center[2];const s=n[0]*n[0]+n[1]*n[1]+n[2]*n[2];if(0===s)return!1;const o=2*(n[0]*i[0]+n[1]*i[1]+n[2]*i[2]),c=o*o-4*s*(i[0]*i[0]+i[1]*i[1]+i[2]*i[2]-this.radius**2);if(c<0)return!1;const u=Math.sqrt(c);return e.t0=(-o-u)/(2*s),e.t1=(-o+u)/(2*s),!0}projectPoint(t,e){const r=(0,o.e)(d.rq.get(),t,this.center),n=(0,o.j)(d.rq.get(),r,this.radius/(0,o.b)(r));return(0,o.i)(e,n,this.center)}closestPointOnSilhouette(t,e){const r=d.rq.get(),n=d.Rc.get();(0,o.f)(r,t.origin,t.direction),(0,o.f)(e,r,t.origin),(0,o.j)(e,e,1/(0,o.b)(e)*this.radius);const i=this._angleToSilhouette(t.origin),c=(0,_.g7)(t.origin,e);return(0,s.$0)(n,c+i,r),(0,o.p)(e,e,n),e}frustumCoverage(t,e,r){const n=this.radius,i=n*n,s=t+.5*Math.PI,o=e*e+i-2*Math.cos(s)*e*n,c=Math.sqrt(o),u=o-i;if(u<=0)return.5;const a=Math.sqrt(u),h=Math.acos(a/c)-Math.asin(n/(c/Math.sin(s)));return Math.min(1,(h+.5*r)/r)}_angleToSilhouette(t){const e=(0,o.e)(d.rq.get(),t,this.center),r=(0,o.b)(e),i=this.radius,s=i+Math.abs(i-r);return(0,n.XM)(i/s)}union(t){const e=(0,o.B)(this._center,t.center),r=this.radius,n=t.radius;return e+n<r?this:e+r<n?(this.copyFrom(t),this):((0,o.l)(this._center,this._center,t.center,(e+n-r)/(2*e)),this.radius=(e+r+n)/2,this)}toJSON(){return{center:this.center,radius:this.radius}}}const E={create:t=>new l(t),copy:(t,e)=>e.copyFrom(t),setExtent:(t,e,r)=>r.copyFrom(t),getExtent:(t,e)=>e,elevate:(t,e,r)=>(r.copyFrom(t),r.radius+=e,r),axisAt(t,e,r,n){const i=(0,o.e)(A,e,t.center);switch(r){case 0:{const t=f(i,A)[2];return(0,o.h)(n,-Math.sin(t),Math.cos(t),0)}case 1:{const t=f(i,A),e=t[1],r=t[2],s=Math.sin(e);return(0,o.h)(n,-s*Math.cos(r),-s*Math.sin(r),Math.cos(e))}case 2:return(0,o.n)(n,i);default:return}},altitudeAt(t,e){const r=(0,o.e)(p,e,t.center);return(0,o.b)(r)-t.radius},setAltitudeAt(t,e,r,n){const i=E.altitudeAt(t,e),s=E.axisAt(t,e,2,p),c=(0,o.j)(p,s,r-i);return(0,o.i)(n,e,c)},intersectRay:(t,e,r)=>t.intersectRay(e,r),closestPoint:(t,e,r)=>t.intersectRay(e,r)?r:((0,h.oC)(e,t.center,r),t.projectPoint(r,r)),intersectRayClosestSilhouette(t,e,r){if(t.intersectRay(e,r))return r;const n=t.closestPointOnSilhouette(e,d.rq.get());return(0,o.i)(r,e.origin,(0,o.j)(d.rq.get(),e.direction,(0,o.B)(e.origin,n)/(0,o.b)(e.direction))),r},closestPointOnSilhouette:(t,e,r)=>t.closestPointOnSilhouette(e,r),distanceToSilhouette(t,e){const r=(0,o.e)(d.rq.get(),e,t.center),n=(0,o.D)(r),i=t.radius**2;return Math.sqrt(Math.abs(n-i))}},R=(new l,{t0:0,t1:0}),g=(0,c.vt)(),A=(0,c.vt)(),p=(0,c.vt)()},97146:(t,e,r)=>{r.d(e,{Dg:()=>s,my:()=>o,tM:()=>h,uW:()=>i});var n=r(34275);function i(t){return s(t,!0)}function s(t,e){if(Array.isArray(t)){if(t.length<n.y9)return t}else if(t.length<n.y9)return Array.from(t);let r=!0,i=!0;return t.some((t,e)=>(r=r&&0===t,i=i&&t===e,!r&&!i)),r?function(t){if(1===t)return u;if(t<n.y9)return new Array(t).fill(0);if(t>_.length){const e=Math.max(2*_.length,t);_=new Uint8Array(e)}return new Uint8Array(_.buffer,0,t)}(t.length):i?h(t.length):(0,n.iu)(t)&&t.BYTES_PER_ELEMENT===Uint16Array.BYTES_PER_ELEMENT?t:function(t,e){for(const r of t){if(r>=65536)return(0,n.iu)(t)?t:new Uint32Array(t);r>=256&&(e=!1)}return e?new Uint8Array(t):new Uint16Array(t)}(t,!e)}function o(t){return t<=n.y9?new Array(t):t<=65536?new Uint16Array(t):new Uint32Array(t)}let c=f(131072);const u=[0],a=(()=>{const t=new Uint16Array(65536);for(let e=0;e<t.length;++e)t[e]=e;return t})();function h(t){return 1===t?u:t<n.y9?Array.from(new Uint16Array(a.buffer,0,t)):t<a.length?new Uint16Array(a.buffer,0,t):(t>c.length&&(c=f(Math.max(2*c.length,t))),new Uint32Array(c.buffer,0,t))}function f(t){const e=new Uint32Array(t);for(let t=0;t<e.length;t++)e[t]=t;return e}let _=new Uint8Array(65536)}}]);