@arcgis/core 5.0.0-next.16 → 5.0.0-next.18

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 (262) hide show
  1. package/analysis/ElevationProfile/ElevationProfileLineInput.js +1 -1
  2. package/assets/esri/core/workers/RemoteClient.js +1 -1
  3. package/assets/esri/core/workers/chunks/{adf7ccf4ef629211c7ee.js → 08aacbfb651cc2e1c054.js} +1 -1
  4. package/assets/esri/core/workers/chunks/234b52b2a391631ceff6.js +1 -0
  5. package/assets/esri/core/workers/chunks/{658cd45b5fb304fd840a.js → 3aa77696c5ea54a238da.js} +1 -1
  6. package/assets/esri/core/workers/chunks/{8f3503b2fb6cd38757b9.js → 458e87902abc24b375da.js} +1 -1
  7. package/assets/esri/core/workers/chunks/{57b410198d83bf0ab708.js → 4a89e120be142ab58a27.js} +1 -1
  8. package/assets/esri/core/workers/chunks/{49571d6875de1f2e7e25.js → 4b9dfdc23ba3d6ebcc1b.js} +2 -2
  9. package/assets/esri/core/workers/chunks/{a410dcf80d17a2383337.js → 65a4099bdbe31834d0cc.js} +1 -1
  10. package/assets/esri/core/workers/chunks/722da7a39a0ad9300752.js +1 -0
  11. package/assets/esri/core/workers/chunks/{cdb4664fd59860ddeb5a.js → 72f1c3d97e7b9546c113.js} +1 -1
  12. package/assets/esri/core/workers/chunks/{bc318b6fef192cee2a72.js → 76e945da8f30d8641c3d.js} +20 -20
  13. package/assets/esri/core/workers/chunks/{319c3f46f2afb8f3e5a9.js → 89c9cf7f799858d14c76.js} +1 -1
  14. package/assets/esri/core/workers/chunks/{e19cd07df8ce87e18832.js → 8b33732e3c2924c1f60d.js} +1 -1
  15. package/assets/esri/core/workers/chunks/98739414c107ad78e4d8.js +1 -0
  16. package/assets/esri/core/workers/chunks/{8b73db0f4d6714396eb0.js → a6fa90eab77ac0e1cdfc.js} +1 -1
  17. package/assets/esri/core/workers/chunks/ac366221e8636b60aee5.js +1 -0
  18. package/assets/esri/core/workers/chunks/{23e17b745adf71a5efc7.js → aca72ca7f43f70eb8077.js} +1 -1
  19. package/assets/esri/core/workers/chunks/ad0c7225941437d18408.js +1 -0
  20. package/assets/esri/core/workers/chunks/b30897952494a3e5b9fe.js +1 -0
  21. package/assets/esri/core/workers/chunks/bfd3d81e8e148be99686.js +1 -0
  22. package/assets/esri/libs/lyr3d/lyr3DMain.wasm +0 -0
  23. package/assets/esri/libs/lyr3d/lyr3DWorker.wasm +0 -0
  24. package/assets/esri/themes/base/widgets/_Editor.scss +2 -1
  25. package/assets/esri/themes/base/widgets/_FeatureForm.scss +1 -1
  26. package/assets/esri/themes/dark/main.css +1 -1
  27. package/assets/esri/themes/light/main.css +1 -1
  28. package/assets/esri/themes/light/view.css +1 -1
  29. package/chunks/GaussianSplat.glsl.js +2 -2
  30. package/chunks/ImageMaterial.glsl.js +1 -1
  31. package/chunks/lyr3DMain.js +1 -1
  32. package/config.js +1 -1
  33. package/graphic/graphicOriginUtils.js +1 -1
  34. package/interfaces.d.ts +113 -54
  35. package/intl/locale.js +1 -1
  36. package/kernel.js +1 -1
  37. package/layers/BingMapsLayer.js +1 -1
  38. package/layers/Lyr3DWasmPerSceneView.js +1 -1
  39. package/layers/support/attributionUtils.js +5 -0
  40. package/layers/support/fieldConfigUtils.js +1 -1
  41. package/layers/support/fieldFormatUtils.js +1 -1
  42. package/layers/video/VideoController.js +1 -1
  43. package/libs/parquet/parquet.js +1 -1
  44. package/package.json +1 -1
  45. package/support/revision.js +1 -1
  46. package/symbols/cim/SDFHelper.js +1 -1
  47. package/symbols/cim/cimAnalyzer.js +1 -1
  48. package/views/2d/LabelManager.js +1 -1
  49. package/views/2d/analysis/ElevationProfile/ElevationProfileLineVisualization2D.js +1 -1
  50. package/views/2d/engine/flow/dataUtils.js +1 -1
  51. package/views/2d/engine/webgl/FeatureTile.js +1 -1
  52. package/views/2d/engine/webgl/OverlayMultipoint.js +1 -1
  53. package/views/2d/engine/webgl/TextureManager.js +1 -1
  54. package/views/2d/engine/webgl/VideoScreenRenderer.js +1 -1
  55. package/views/2d/engine/webgl/animations/store/AnimationStore.js +1 -1
  56. package/views/2d/engine/webgl/shaderGraph/techniques/animated/AAnimatedPolyShader.js +1 -1
  57. package/views/2d/engine/webgl/shaderGraph/techniques/animated/AnimatedFillShader.js +1 -1
  58. package/views/2d/engine/webgl/shaderGraph/techniques/animated/AnimatedLineShader.js +1 -1
  59. package/views/2d/engine/webgl/shaderGraph/techniques/animated/AnimatedPolyMeshWriters.js +1 -1
  60. package/views/2d/engine/webgl/shaderGraph/techniques/animated/AnimatedTechnique.js +1 -1
  61. package/views/2d/engine/webgl/shaderGraph/techniques/colorize/ColorizeTechnique.js +1 -1
  62. package/views/2d/engine/webgl/shaderGraph/techniques/dotDensity/DotDensityResources.js +1 -1
  63. package/views/2d/engine/webgl/shaderGraph/techniques/drop-shadow/DropShadowTechnique.js +1 -1
  64. package/views/2d/engine/webgl/shaderGraph/techniques/opacity/OpacityTechnique.js +1 -1
  65. package/views/2d/engine/webgl/shaderGraph/techniques/raster/RasterColorizerTechnique.js +1 -1
  66. package/views/2d/engine/webgl/shaderGraph/techniques/raster/RasterHighlightTechnique.js +1 -1
  67. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/LineShader.js +1 -1
  68. package/views/2d/engine/webgl/textureUtils.js +1 -1
  69. package/views/2d/layers/features/FeatureContainer.js +1 -1
  70. package/views/2d/layers/features/Processor.js +1 -1
  71. package/views/2d/layers/features/processor/BinningStrategy.js +1 -1
  72. package/views/2d/layers/features/processor/ClusterStrategy.js +1 -1
  73. package/views/2d/layers/features/processor/TrackStrategy.js +1 -1
  74. package/views/2d/layers/features/support/FeatureMetadata.js +1 -1
  75. package/views/3d/GroundView3D.js +1 -1
  76. package/views/3d/analysis/Dimension/LengthDimensionSubTool.js +1 -1
  77. package/views/3d/analysis/ElevationProfile/ElevationProfileGeometryVisualization3D.js +1 -1
  78. package/views/3d/analysis/Slice/RotateManipulator.js +1 -1
  79. package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementCutFillComputation.js +1 -1
  80. package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementTool.js +1 -1
  81. package/views/3d/analysis/images/Factory.js +1 -1
  82. package/views/3d/environment/ChapmanAtmosphere.js +1 -1
  83. package/views/3d/environment/ChapmanAtmosphereTechnique.js +1 -1
  84. package/views/3d/environment/CloudsCompositionTechnique.js +1 -1
  85. package/views/3d/environment/CloudsTechnique.js +1 -1
  86. package/views/3d/environment/EnvironmentManager.js +1 -1
  87. package/views/3d/environment/FogTechnique.js +1 -1
  88. package/views/3d/environment/NoiseTextureAtlasTechnique.js +1 -1
  89. package/views/3d/environment/PrecipitationTechnique.js +1 -1
  90. package/views/3d/environment/SimpleAtmosphereTechnique.js +1 -1
  91. package/views/3d/layers/BuildingComponentSublayerView3D.js +1 -1
  92. package/views/3d/layers/DrapedSubView3D.js +1 -1
  93. package/views/3d/layers/FlowSubView3D.js +1 -1
  94. package/views/3d/layers/ImageryTileLayerView3D.js +1 -1
  95. package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
  96. package/views/3d/layers/IntegratedMeshLayerView3D.js +1 -1
  97. package/views/3d/layers/MediaLayerView3D.js +1 -1
  98. package/views/3d/layers/PointCloudLayerView3D.js +1 -1
  99. package/views/3d/layers/SceneLayerGraphicsView3D.js +1 -1
  100. package/views/3d/layers/SceneLayerView3D.js +1 -1
  101. package/views/3d/layers/TiledLayerView3D.js +1 -1
  102. package/views/3d/layers/graphics/Graphics3DIconSymbolLayer.js +1 -1
  103. package/views/3d/layers/graphics/Graphics3DMeshFillSymbolLayer.js +1 -1
  104. package/views/3d/layers/graphics/Graphics3DTextSymbolLayer.js +1 -1
  105. package/views/3d/layers/graphics/defaultSymbolComplexity.js +1 -1
  106. package/views/3d/layers/graphics/objectResourceUtils.js +1 -1
  107. package/views/3d/layers/graphics/pipeline/rendering/FeaturePipelineRenderManager.js +1 -1
  108. package/views/3d/layers/graphics/wosrLoader.js +1 -1
  109. package/views/3d/layers/i3s/I3SMaterialUtil.js +1 -1
  110. package/views/3d/support/QualityProfile.js +5 -0
  111. package/views/3d/support/QualitySettings.js +1 -1
  112. package/views/3d/support/StreamTextureCollection.js +1 -1
  113. package/views/3d/support/TextureCollection.js +1 -1
  114. package/views/3d/support/engineContent/marker.js +1 -1
  115. package/views/3d/support/engineContent/sdfPrimitives.js +1 -1
  116. package/views/3d/support/flow/FlowSubViewTiles3D.js +1 -1
  117. package/views/3d/support/flow/FlowWorker.js +1 -1
  118. package/views/3d/support/flow/FlowWorkerHandle.js +1 -1
  119. package/views/3d/support/flow/StreamlineResources3D.js +1 -1
  120. package/views/3d/support/flow/StreamlineResources3DOverlay.js +1 -1
  121. package/views/3d/support/flow/StreamlineResources3DShape.js +1 -1
  122. package/views/3d/support/flow/constants.js +1 -1
  123. package/views/3d/support/flow/loadUtils.js +1 -1
  124. package/views/3d/support/gaussianSplatting/GaussianSplatOrderTexture.js +1 -1
  125. package/views/3d/support/popupHitTest.js +1 -1
  126. package/views/3d/terrain/BlendLayersTechnique.js +1 -1
  127. package/views/3d/terrain/OverlayRenderer.js +1 -1
  128. package/views/3d/terrain/RasterColorizerTechnique.js +1 -1
  129. package/views/3d/terrain/TerrainSurface.js +1 -1
  130. package/views/3d/terrain/TileAgent.js +1 -1
  131. package/views/3d/terrain/TileCompositor.js +1 -1
  132. package/views/3d/webgl-engine/Stage.js +1 -1
  133. package/views/3d/webgl-engine/collections/Component/ComponentObjectCollection.js +1 -1
  134. package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterial.js +1 -1
  135. package/views/3d/webgl-engine/collections/Component/Material/ComponentTechnique.js +1 -1
  136. package/views/3d/webgl-engine/collections/Component/Material/ComponentTechniqueConfiguration.js +1 -1
  137. package/views/3d/webgl-engine/core/material/MaterialBase.js +1 -1
  138. package/views/3d/webgl-engine/core/material/RenderTexture.js +1 -1
  139. package/views/3d/webgl-engine/core/shaderTechnique/{ReloadableShaderModule.js → ReloadableShader.js} +1 -1
  140. package/views/3d/webgl-engine/core/shaderTechnique/ShaderTechnique.js +1 -1
  141. package/views/3d/webgl-engine/effects/focusArea/FocusAreaColorTechnique.js +1 -1
  142. package/views/3d/webgl-engine/effects/focusArea/FocusAreaMaskTechnique.js +1 -1
  143. package/views/3d/webgl-engine/effects/glow/GlowBlurTechnique.js +1 -1
  144. package/views/3d/webgl-engine/effects/glow/GlowCompositionTechnique.js +1 -1
  145. package/views/3d/webgl-engine/effects/haze/Haze.js +1 -1
  146. package/views/3d/webgl-engine/effects/haze/HazeCompositingTechnique.js +1 -1
  147. package/views/3d/webgl-engine/effects/haze/HazeTechnique.js +1 -1
  148. package/views/3d/webgl-engine/effects/highlight/HighlightApplyTechnique.js +1 -1
  149. package/views/3d/webgl-engine/effects/highlight/HighlightBlurTechnique.js +1 -1
  150. package/views/3d/webgl-engine/effects/highlight/HighlightDownsampleTechnique.js +1 -1
  151. package/views/3d/webgl-engine/effects/highlight/HighlightToSingleTechnique.js +1 -1
  152. package/views/3d/webgl-engine/effects/highlight/ShadowHighlightTechnique.js +1 -1
  153. package/views/3d/webgl-engine/effects/laserlines/LaserlinePathTechnique.js +1 -1
  154. package/views/3d/webgl-engine/effects/laserlines/LaserlineTechnique.js +1 -1
  155. package/views/3d/webgl-engine/effects/magnifier/MagnifierTechnique.js +1 -1
  156. package/views/3d/webgl-engine/effects/smaa/SMAA.js +1 -1
  157. package/views/3d/webgl-engine/effects/smaa/SMAABlendWeightsTechnique.js +1 -1
  158. package/views/3d/webgl-engine/effects/smaa/SMAABlurTechnique.js +1 -1
  159. package/views/3d/webgl-engine/effects/smaa/SMAAEdgeDetectTechnique.js +1 -1
  160. package/views/3d/webgl-engine/effects/ssao/SSAO.js +1 -1
  161. package/views/3d/webgl-engine/effects/ssao/SSAOBlurTechnique.js +1 -1
  162. package/views/3d/webgl-engine/effects/ssao/SSAOTechnique.js +1 -1
  163. package/views/3d/webgl-engine/effects/stars/StarsTechnique.js +1 -1
  164. package/views/3d/webgl-engine/effects/transparency/OITBlendTechnique.js +1 -1
  165. package/views/3d/webgl-engine/lib/AnimationTimeStep.js +1 -1
  166. package/views/3d/webgl-engine/lib/BasisUtil.js +1 -1
  167. package/views/3d/webgl-engine/lib/DDSUtil.js +1 -1
  168. package/views/3d/webgl-engine/lib/GLTextureMaterial.js +1 -1
  169. package/views/3d/webgl-engine/lib/GaussianSplatRenderNode.js +1 -1
  170. package/views/3d/webgl-engine/lib/ManagedTexture.js +5 -0
  171. package/views/3d/webgl-engine/lib/OrderIndependentTransparency.js +1 -1
  172. package/views/3d/webgl-engine/lib/Program.js +1 -1
  173. package/views/3d/webgl-engine/lib/RenderFeature.js +1 -1
  174. package/views/3d/webgl-engine/lib/Renderer.js +1 -1
  175. package/views/3d/webgl-engine/lib/RenderingContext.js +1 -1
  176. package/views/3d/webgl-engine/lib/TextTextureAtlas.js +1 -1
  177. package/views/3d/webgl-engine/lib/TextTextureFactory.js +1 -1
  178. package/views/3d/webgl-engine/lib/TextureRepository.js +1 -1
  179. package/views/3d/webgl-engine/lib/TextureTechnique.js +1 -1
  180. package/views/3d/webgl-engine/lib/edgeRendering/EdgeShaderTechnique.js +1 -1
  181. package/views/3d/webgl-engine/lib/glUtil3D.js +1 -1
  182. package/views/3d/webgl-engine/materials/ImageMaterial.js +1 -1
  183. package/views/3d/webgl-engine/materials/PathTechnique.js +1 -1
  184. package/views/3d/webgl-engine/materials/WaterTechnique.js +1 -1
  185. package/views/3d/webgl-engine/materials/internal/WaterTextureRepository.js +1 -1
  186. package/views/3d/webgl-engine/materials/stippleTextureRepository.js +1 -1
  187. package/views/3d/webgl-engine/parts/RenderView.js +1 -1
  188. package/views/3d/webgl-engine/shaders/AtmosphereCompositingTechnique.js +1 -1
  189. package/views/3d/webgl-engine/shaders/CheckerBoardTechnique.js +1 -1
  190. package/views/3d/webgl-engine/shaders/ColorMaterialTechnique.js +1 -1
  191. package/views/3d/webgl-engine/shaders/CompositingTechnique.js +1 -1
  192. package/views/3d/webgl-engine/shaders/CutFillCompositionTechnique.js +1 -1
  193. package/views/3d/webgl-engine/shaders/CutFillDepthTechnique.js +1 -1
  194. package/views/3d/webgl-engine/shaders/CutFillMaskTechnique.js +1 -1
  195. package/views/3d/webgl-engine/shaders/CutFillReductionTechnique.js +1 -1
  196. package/views/3d/webgl-engine/shaders/CutFillTargetDepthTechnique.js +1 -1
  197. package/views/3d/webgl-engine/shaders/DefaultMaterialTechnique.js +1 -1
  198. package/views/3d/webgl-engine/shaders/GaussianSplat.glsl.js +1 -1
  199. package/views/3d/webgl-engine/shaders/GaussianSplatCompositionTechnique.js +1 -1
  200. package/views/3d/webgl-engine/shaders/GaussianSplatDepthCompositionTechnique.js +1 -1
  201. package/views/3d/webgl-engine/shaders/GaussianSplatDepthTechnique.js +1 -1
  202. package/views/3d/webgl-engine/shaders/GaussianSplatTechnique.js +1 -1
  203. package/views/3d/webgl-engine/shaders/GaussianSplatTechniqueConfiguration.js +1 -1
  204. package/views/3d/webgl-engine/shaders/HUDCompositingTechnique.js +1 -1
  205. package/views/3d/webgl-engine/shaders/HUDMaterialTechnique.js +1 -1
  206. package/views/3d/webgl-engine/shaders/HeatmapDensityTechnique.js +1 -1
  207. package/views/3d/webgl-engine/shaders/HeatmapTechnique.js +1 -1
  208. package/views/3d/webgl-engine/shaders/ImageMaterialTechnique.js +1 -1
  209. package/views/3d/webgl-engine/shaders/LineCalloutTechnique.js +1 -1
  210. package/views/3d/webgl-engine/shaders/LineMarkerTechnique.js +1 -1
  211. package/views/3d/webgl-engine/shaders/MeasurementArrowTechnique.js +1 -1
  212. package/views/3d/webgl-engine/shaders/NativeLineTechnique.js +1 -1
  213. package/views/3d/webgl-engine/shaders/OverlayCompositingTechnique.js +1 -1
  214. package/views/3d/webgl-engine/shaders/PatternTechnique.js +1 -1
  215. package/views/3d/webgl-engine/shaders/PointRendererTechnique.js +1 -1
  216. package/views/3d/webgl-engine/shaders/RealisticTreeTechnique.js +1 -1
  217. package/views/3d/webgl-engine/shaders/RibbonLineTechnique.js +1 -1
  218. package/views/3d/webgl-engine/shaders/ShadedColorMaterialTechnique.js +1 -1
  219. package/views/3d/webgl-engine/shaders/ShadowCastAccumulateTechnique.js +1 -1
  220. package/views/3d/webgl-engine/shaders/ShadowCastClearTechnique.js +1 -1
  221. package/views/3d/webgl-engine/shaders/ShadowCastVisualizeTechnique.js +1 -1
  222. package/views/3d/webgl-engine/shaders/SlicePlaneMaterialTechnique.js +1 -1
  223. package/views/3d/webgl-engine/shaders/TerrainTechnique.js +1 -1
  224. package/views/3d/webgl-engine/shaders/ViewshedTechnique.js +1 -1
  225. package/views/GroundView.js +1 -1
  226. package/views/SceneView.js +1 -1
  227. package/views/analysis/ElevationProfile/ElevationProfileTool.js +1 -1
  228. package/views/analysis/ElevationProfile/types.d.ts +5 -0
  229. package/views/analysis/ElevationProfile/types.js +5 -0
  230. package/views/support/layerViewUtils.js +1 -1
  231. package/views/webgl/Texture.js +1 -1
  232. package/views/webgl/VertexAttributeLocations.js +1 -1
  233. package/views/webgl/testSVGPremultipliedAlpha.js +1 -1
  234. package/widgets/Attribution/AttributionViewModel.js +1 -1
  235. package/widgets/Editor/MergeFeaturesWorkflow.js +1 -1
  236. package/widgets/Editor/SplitFeatureWorkflow.js +1 -1
  237. package/widgets/Editor/UpdateWorkflow.js +1 -1
  238. package/widgets/Editor/Workflow.js +1 -1
  239. package/widgets/Editor/components/CreateFeaturesPanelContent.js +1 -1
  240. package/widgets/Editor/components/PendingFeatureList.js +1 -1
  241. package/widgets/Editor/components/UpdateFeaturePanelContent.js +1 -1
  242. package/widgets/Editor.js +1 -1
  243. package/widgets/Feature/support/featureUtils.js +1 -1
  244. package/widgets/FeatureForm/FeatureFormUtilityNetworkAssociations/FeatureFormUtilityNetworkAssociationList.js +1 -1
  245. package/widgets/FeatureForm/FeatureFormUtilityNetworkAssociations/UtilityNetworkAssociationSettings.js +1 -1
  246. package/widgets/FeatureTable/FieldColumn.js +1 -1
  247. package/widgets/FeatureTable/Grid/Column.js +1 -1
  248. package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
  249. package/widgets/OrientedImageryViewer/adapters/view/MapViewAdapter.js +1 -1
  250. package/widgets/OrientedImageryViewer/adapters/view/SceneViewAdapter.js +1 -1
  251. package/widgets/OrientedImageryViewer/components/OrientedImageryVideoViewModel.js +1 -1
  252. package/widgets/support/UtilityNetworkAssociations/FeatureUtilityNetworkAssociationsViewModel.js +1 -1
  253. package/assets/esri/core/workers/chunks/38ee69125da60464d5a1.js +0 -1
  254. package/assets/esri/core/workers/chunks/4f0016111fd84c612f41.js +0 -1
  255. package/assets/esri/core/workers/chunks/8208dfa8f7fae7e616b9.js +0 -1
  256. package/assets/esri/core/workers/chunks/847f4fc39100fac1df01.js +0 -1
  257. package/assets/esri/core/workers/chunks/ab005fe84952f0676020.js +0 -1
  258. package/assets/esri/core/workers/chunks/bc19a232076d98825eef.js +0 -1
  259. package/assets/esri/core/workers/chunks/c3dcfe26c2c3c829762d.js +0 -1
  260. package/views/3d/support/DisplayQualityProfile.js +0 -5
  261. package/views/3d/webgl-engine/lib/Texture.js +0 -5
  262. /package/views/3d/webgl-engine/lib/{ITexture.js → IManagedTexture.js} +0 -0
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[431],{431:(t,e,r)=>{r.d(e,{o6:()=>g,HY:()=>w,hx:()=>b,Jb:()=>v});var n=r(9318);function s(t,e,r){const n=e/3,s=new Uint32Array(r+1),i=new Uint32Array(r+1),u=(t,e)=>{t<e?s[t+1]++:i[e+1]++};for(let e=0;e<n;e++){const r=t[3*e],n=t[3*e+1],s=t[3*e+2];u(r,n),u(n,s),u(s,r)}let o=0,f=0;for(let t=0;t<r;t++){const e=s[t+1],r=i[t+1];s[t+1]=o,i[t+1]=f,o+=e,f+=r}const c=new Uint32Array(6*n),a=s[r],h=(t,e,r)=>{if(t<e){const n=s[t+1]++;c[2*n]=e,c[2*n+1]=r}else{const n=i[e+1]++;c[2*a+2*n]=t,c[2*a+2*n+1]=r}};for(let e=0;e<n;e++){const r=t[3*e],n=t[3*e+1],s=t[3*e+2];h(r,n,e),h(n,s,e),h(s,r,e)}const l=(t,e)=>{const r=2*t,n=e-t;for(let t=1;t<n;t++){const e=c[r+2*t],n=c[r+2*t+1];let s=t-1;for(;s>=0&&c[r+2*s]>e;s--)c[r+2*s+2]=c[r+2*s],c[r+2*s+3]=c[r+2*s+1];c[r+2*s+2]=e,c[r+2*s+3]=n}};for(let t=0;t<r;t++)l(s[t],s[t+1]),l(a+i[t],a+i[t+1]);const d=new Int32Array(3*n),p=(e,r)=>e===t[3*r]?0:e===t[3*r+1]?1:e===t[3*r+2]?2:-1,y=(t,e)=>{const r=p(t,e);d[3*e+r]=-1},E=(t,e,r,n)=>{const s=p(t,e);d[3*e+s]=n;const i=p(r,n);d[3*n+i]=e};for(let t=0;t<r;t++){let e=s[t];const r=s[t+1];let n=i[t];const u=i[t+1];for(;e<r&&n<u;){const r=c[2*e],s=c[2*a+2*n];r===s?(E(t,c[2*e+1],s,c[2*a+2*n+1]),e++,n++):r<s?(y(t,c[2*e+1]),e++):(y(s,c[2*a+2*n+1]),n++)}for(;e<r;)y(t,c[2*e+1]),e++;for(;n<u;)y(c[2*a+2*n],c[2*a+2*n+1]),n++}return d}var i=r(1843),u=r(3055),o=r(87811),f=r(38954),c=r(51850),a=r(34727);function h(t,e,r,n,s,i=2){const u=1/(Math.abs(r)+Math.abs(n)+Math.abs(s)),o=r*u,f=n*u,c=s<=0?(o>=0?1:-1)*(1-Math.abs(f)):o,a=s<=0?(f>=0?1:-1)*(1-Math.abs(o)):f,h=e*i;t[h]=l(c),t[h+1]=l(a)}function l(t){return(0,a.qE)(Math.round(32767*t),-32767,32767)}r(11868),r(34275);class d{updateSettings(t){this.settings=t,this._edgeHashFunction=t.reducedPrecision?B:m}write(t,e,r){S.seed=this._edgeHashFunction(r);const n=S.getIntRange(0,255),s=S.getIntRange(0,this.settings.variants-1),i=S.getFloat(),u=255*(.5*function(t){return Math.abs(t)**1.2*Math.sign(t)}(-(1-Math.min(i/.7,1))+Math.max(0,i-.7)/(1-.7))+.5);t.position0.setVec(e,r.position0),t.position1.setVec(e,r.position1),t.componentIndex.set(e,r.componentIndex),t.variantOffset.set(e,n),t.variantStroke.set(e,s),t.variantExtension.set(e,u)}}const p=new Float32Array(6),y=new Uint32Array(p.buffer),E=new Uint32Array(1);function m(t){return p[0]=t.position0[0],p[1]=t.position0[1],p[2]=t.position0[2],p[3]=t.position1[0],p[4]=t.position1[1],p[5]=t.position1[2],E[0]=31*(31*(31*(31*(31*(166811+y[0])+y[1])+y[2])+y[3])+y[4])+y[5],E[0]}function B(t){const e=p;e[0]=_(t.position0[0]),e[1]=_(t.position0[1]),e[2]=_(t.position0[2]),e[3]=_(t.position1[0]),e[4]=_(t.position1[1]),e[5]=_(t.position1[2]),E[0]=5381;for(let t=0;t<y.length;t++)E[0]=31*E[0]+y[t];return E[0]}const T=1e4;function _(t){return Math.round(t*T)/T}const M=(0,c.vt)(),S=new o.A;var A=r(93406);function g(t){const e=b(t.data,t.skipDeduplicate,t.indices,t.indicesLength);return R.updateSettings(t.writerSettings),I.updateSettings(t.writerSettings),(0,A.K)(e,R,I)}function b(t,e,r,i){if(e){const e=s(r,i,t.count);return new N(r,i,e,t)}const o=(0,n.b)(t.buffer,t.stride/4,{originalIndices:r}),f=s(o.indices,i,o.uniqueCount);return{faces:o.indices,facesLength:o.indices.length,neighbors:f,vertices:u.I$.createView(o.buffer)}}class N{constructor(t,e,r,n){this.faces=t,this.facesLength=e,this.neighbors=r,this.vertices=n}}const R=new class{constructor(){this._commonWriter=new d}updateSettings(t){this._commonWriter.updateSettings(t)}allocate(t){return u.gr.createBuffer(t)}write(t,e,r){this._commonWriter.write(t,e,r),(0,f.g)(M,r.faceNormal0,r.faceNormal1),(0,f.n)(M,M);const{typedBuffer:n,typedBufferStride:s}=t.normalCompressed;h(n,e,M[0],M[1],M[2],s)}},I=new class{constructor(){this._commonWriter=new d}updateSettings(t){this._commonWriter.updateSettings(t)}allocate(t){return u.In.createBuffer(t)}write(t,e,r){this._commonWriter.write(t,e,r);{const{typedBuffer:n,typedBufferStride:s}=t.normalCompressed;h(n,e,r.faceNormal0[0],r.faceNormal0[1],r.faceNormal0[2],s)}{const{typedBuffer:n,typedBufferStride:s}=t.normal2Compressed;h(n,e,r.faceNormal1[0],r.faceNormal1[1],r.faceNormal1[2],s)}}},v=(0,i.BP)().vec3f("position0").vec3f("position1"),w=(0,i.BP)().vec3f("position0").vec3f("position1").u16("componentIndex")},620:(t,e,r)=>{r.d(e,{O_:()=>i,vA:()=>s}),r(48163),r(87317),(0,r(91829).vt)();class n{constructor(t){this.message=t}toString(){return`AssertException: ${this.message}`}}function s(t,e="Assertion"){if(!t){const t=new Error(e).stack;throw new n(`${e} at ${t}`)}}function i(t,e,r,n){let s,i=(r[0]-t[0])/e[0],u=(n[0]-t[0])/e[0];i>u&&(s=i,i=u,u=s);let o=(r[1]-t[1])/e[1],f=(n[1]-t[1])/e[1];if(o>f&&(s=o,o=f,f=s),i>f||o>u)return!1;o>i&&(i=o),f<u&&(u=f);let c=(r[2]-t[2])/e[2],a=(n[2]-t[2])/e[2];return c>a&&(s=c,c=a,a=s),!(i>a||c>u||(a<u&&(u=a),u<0))}},1843:(t,e,r)=>{r.d(e,{BP:()=>h,l5:()=>l});var n=r(20498),s=r(13030),i=r(90239),u=r(4431),o=r(620),f=r(85079);class c{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 c(this.layout,this.buffer.slice(t*this.stride,e*this.stride))}copyFrom(t,e=0,r=0,n=t.count){const s=this.stride;if(s%4==0){const i=new Uint32Array(t.buffer,e*s,n*s/4);new Uint32Array(this.buffer,r*s,n*s/4).set(i)}else{const i=new Uint8Array(t.buffer,e*s,n*s);new Uint8Array(this.buffer,r*s,n*s).set(i)}return this}get usedMemory(){return this.byteLength}dispose(){}}class a{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:y(t[1].constructor)})))}freeze(){return this}get locations(){return(0,f.Xk)((0,u.U)(this))}vec2f16(t,e){return this._appendField(t,n.SX?s.ZD:s.gH,e),this}vec2f(t,e){return this._appendField(t,s.gH,e),this}vec2f64(t,e){return this._appendField(t,s.si,e),this}vec3f16(t,e){return this._appendField(t,n.SX?s.EC:s.xs,e),this}vec3f(t,e){return this._appendField(t,s.xs,e),this}vec3f64(t,e){return this._appendField(t,s.Xm,e),this}vec4f16(t,e){return this._appendField(t,n.SX?s.jz:s.Eq,e),this}vec4f(t,e){return this._appendField(t,s.Eq,e),this}vec4f64(t,e){return this._appendField(t,s.Aj,e),this}mat3f(t,e){return this._appendField(t,s.jZ,e),this}mat3f64(t,e){return this._appendField(t,s.j0,e),this}mat4f(t,e){return this._appendField(t,s.Sx,e),this}mat4f64(t,e){return this._appendField(t,s.E$,e),this}vec4u8(t,e){return this._appendField(t,s.XP,e),this}f16(t,e){return this._appendField(t,n.SX?s.XW:s.Y$,e),this}f32(t,e){return this._appendField(t,s.Y$,e),this}f64(t,e){return this._appendField(t,s.qB,e),this}u8(t,e){return this._appendField(t,s.SL,e),this}u16(t,e){return this._appendField(t,s.h,e),this}i8(t,e){return this._appendField(t,s.bf,e),this}vec2i8(t,e){return this._appendField(t,s.D6,e),this}vec2i16(t,e){return this._appendField(t,s.mJ,e),this}vec2u8(t,e){return this._appendField(t,s.LC,e),this}vec2u16(t,e){return this._appendField(t,s.Yi,e),this}vec4u16(t,e){return this._appendField(t,s.Uz,e),this}vec4i16(t,e){return this._appendField(t,s.E7,e),this}u32(t,e){return this._appendField(t,s.P,e),this}_appendField(t,e,r){this._fields.has(t)&&(0,o.vA)(!1,`${t} already added to vertex buffer layout`);const n=e.ElementCount*(0,i.GJ)(e.ElementType),s=this._stride;this._fields.set(t,{constructor:e,size:n,offset:s,optional:r}),this._alignFields()}_alignFields(){let t=0,e=1;this._fields.forEach(r=>{const n=(0,i.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 c(this,t)}createView(t){return new c(this,t)}clone(){const t=new a;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 h(){return new a}class l{constructor(t){this.fields=new Array,t.fields.forEach((t,e)=>{const r={...t,constructor:p(t.constructor)};this.fields.push([e,r])}),this.stride=t.stride}}const d=[s.Y$,s.gH,s.xs,s.Eq,s.jZ,s.Sx,s.qB,s.si,s.Xm,s.Aj,s.j0,s.E$,s.SL,s.LC,s.eI,s.XP,s.h,s.Yi,s.nS,s.Uz,s.P,s.An,s.H$,s.ml,s.bf,s.D6,s.m8,s.TX,s.Qt,s.mJ,s.Vp,s.E7,s.My,s.UL,s.zD,s.Y4];function p(t){return`${t.ElementType}_${t.ElementCount}`}function y(t){return E.get(t)}const E=new Map;d.forEach(t=>E.set(p(t),t))},3055:(t,e,r)=>{r.d(e,{I$:()=>u,In:()=>a,gr:()=>c});var n=r(4431),s=r(1843),i=r(85079);const u=(0,s.BP)().vec3f("position").u16("componentIndex").freeze(),o=(0,s.BP)().vec2u8("sideness").freeze(),f=(0,n.U)(o),c=(0,s.BP)().vec3f("position0").vec3f("position1").vec2i16("normalCompressed").u16("componentIndex").u8("variantOffset",{glNormalized:!0}).u8("variantStroke").u8("variantExtension",{glNormalized:!0}).freeze(),a=(0,s.BP)().vec3f("position0").vec3f("position1").vec2i16("normalCompressed").vec2i16("normal2Compressed").u16("componentIndex").u8("variantOffset",{glNormalized:!0}).u8("variantStroke").u8("variantExtension",{glNormalized:!0}).freeze(),h=(0,n.U)(c,1),l=(0,n.U)(a,1);(0,i._u)([f,h]),(0,i._u)([f,l])},4431:(t,e,r)=>{r.d(e,{U:()=>i}),r(44208);var n=r(63907),s=r(74038);function i(t,e=0){const r=t.stride;return Array.from(t.fields.keys()).map(i=>{const u=t.fields.get(i),o=u.constructor.ElementCount,f=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")}}(u.constructor.ElementType),c=u.offset,a=u.optional?.glNormalized??!1;return new s._(i,o,f,c,r,a,e)})}},9318:(t,e,r)=>{r.d(e,{b:()=>i});var n=r(34727),s=r(97146);function i(t,e,r){const i=Array.isArray(t),a=i?t.length/e:t.byteLength/(4*e),h=i?t:new Uint32Array(t,0,a*e),l=r?.minReduction??0,d=r?.originalIndices||null,p=d?d.length:0,y=r?.componentOffsets||null;let E=0;if(y)for(let t=0;t<y.length-1;t++){const e=y[t+1]-y[t];e>E&&(E=e)}else E=a;const m=Math.floor(1.1*E)+1;(null==c||c.length<2*m)&&(c=new Uint32Array((0,n.cU)(2*m)));for(let t=0;t<2*m;t++)c[t]=0;let B=0;const T=!!y&&!!d,_=T?p:a;let M=(0,s.my)(a);const S=new Uint32Array(p),A=1.96;let g=0!==l?Math.ceil(4*A*A/(l*l)*l*(1-l)):_,b=1,N=y?y[1]:_;for(let t=0;t<_;t++){if(t===g){const e=1-B/t;if(e+A*Math.sqrt(e*(1-e)/t)<l)return null;g*=2}if(t===N){for(let t=0;t<2*m;t++)c[t]=0;if(d)for(let t=y[b-1];t<y[b];t++)S[t]=M[d[t]];N=y[++b]}const r=T?d[t]:t,n=r*e,s=f(h,n,e);let i=s%m,o=B;for(;0!==c[2*i+1];){if(c[2*i]===s){const t=c[2*i+1]-1;if(u(h,n,t*e,e)){o=M[t];break}}i++,i>=m&&(i-=m)}o===B&&(c[2*i]=s,c[2*i+1]=r+1,B++),M[r]=o}if(0!==l&&1-B/a<l)return null;if(T){for(let t=y[b-1];t<S.length;t++)S[t]=M[d[t]];M=(0,s.uW)(S)}const R=i?new Array(B):new Uint32Array(B*e);B=0;for(let t=0;t<_;t++)M[t]===B&&(o(h,(T?d[t]:t)*e,R,B*e,e),B++);if(d&&!T){const t=new Uint32Array(p);for(let e=0;e<t.length;e++)t[e]=M[d[e]];M=(0,s.uW)(t)}return{buffer:Array.isArray(R)?R:R.buffer,indices:M,uniqueCount:B}}function u(t,e,r,n){for(let s=0;s<n;s++)if(t[e+s]!==t[r+s])return!1;return!0}function o(t,e,r,n,s){for(let i=0;i<s;i++)r[n+i]=t[e+i]}function f(t,e,r){let n=0;for(let s=0;s<r;s++)n=t[e+s]+n|0,n=n+(n<<11)+(n>>>2)|0;return n>>>0}let c=null},11868:(t,e,r)=>{r.d(e,{Wz:()=>i,oe:()=>s});var n=r(34275);function s(t,e=!1){return t<=n.y9?e?new Array(t).fill(0):new Array(t):new Float32Array(t)}function i(t){return(Array.isArray(t)?t.length:t.byteLength/8)<=n.y9?Array.from(t):new Float32Array(t)}},13030:(t,e,r)=>{r.d(e,{Y$:()=>y,XW:()=>p,qB:()=>N,Qt:()=>V,My:()=>Z,bf:()=>X,jZ:()=>S,j0:()=>A,Sx:()=>g,E$:()=>b,h:()=>x,P:()=>L,SL:()=>w,gH:()=>m,ZD:()=>E,si:()=>R,mJ:()=>k,UL:()=>J,D6:()=>q,Yi:()=>O,An:()=>D,LC:()=>F,xs:()=>T,EC:()=>B,Xm:()=>I,Vp:()=>$,zD:()=>Q,m8:()=>z,nS:()=>P,H$:()=>Y,eI:()=>U,Eq:()=>M,jz:()=>_,Aj:()=>v,E7:()=>W,Y4:()=>K,TX:()=>j,Uz:()=>G,ml:()=>H,XP:()=>C});var n=r(20498);class s{static{this.ElementCount=9}constructor(t,e,r=0,n,s){this.TypedArrayConstructor=t,this.elementCount=9;const i=this.TypedArrayConstructor;void 0===n&&(n=9*i.BYTES_PER_ELEMENT);const u=0===e.byteLength?0:r;this.typedBuffer=null==s?new i(e,u):new i(e,u,(s-r)/i.BYTES_PER_ELEMENT),this.typedBufferStride=n/i.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(t,e,r=this.count-e){const n=this.typedBuffer.byteOffset+e*this.stride;return new t(this.buffer,n,this.stride,n+r*this.stride)}getMat(t,e){let r=t*this.typedBufferStride;for(let t=0;t<9;t++)e[t]=this.typedBuffer[r++];return e}setMat(t,e){let r=t*this.typedBufferStride;for(let t=0;t<9;t++)this.typedBuffer[r++]=e[t]}get(t,e){return this.typedBuffer[t*this.typedBufferStride+e]}set(t,e,r){this.typedBuffer[t*this.typedBufferStride+e]=r}copyFrom(t,e,r){const n=this.typedBuffer,s=e.typedBuffer;let i=t*this.typedBufferStride,u=r*e.typedBufferStride;for(let t=0;t<9;++t)n[i++]=s[u++]}get buffer(){return this.typedBuffer.buffer}}class i{static{this.ElementCount=16}constructor(t,e,r=0,n,s){this.TypedArrayConstructor=t,this.elementCount=16;const i=this.TypedArrayConstructor;void 0===n&&(n=16*i.BYTES_PER_ELEMENT);const u=0===e.byteLength?0:r;this.typedBuffer=null==s?new i(e,u):new i(e,u,(s-r)/i.BYTES_PER_ELEMENT),this.typedBufferStride=n/i.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(t,e,r=this.count-e){const n=this.typedBuffer.byteOffset+e*this.stride;return new t(this.buffer,n,this.stride,n+r*this.stride)}getMat(t,e){let r=t*this.typedBufferStride;for(let t=0;t<16;t++)e[t]=this.typedBuffer[r++];return e}setMat(t,e){let r=t*this.typedBufferStride;for(let t=0;t<16;t++)this.typedBuffer[r++]=e[t]}get(t,e){return this.typedBuffer[t*this.typedBufferStride+e]}set(t,e,r){this.typedBuffer[t*this.typedBufferStride+e]=r}copyFrom(t,e,r){this.copyFromTypedBuffer(t,e.typedBuffer,r*e.typedBufferStride)}copyFromTypedBuffer(t,e,r){const n=this.typedBuffer;let s=t*this.typedBufferStride;for(let t=0;t<16;++t)n[s++]=e[r++]}get buffer(){return this.typedBuffer.buffer}}class u{static{this.ElementCount=1}constructor(t,e,r=0,n,s){this.TypedArrayConstructor=t,this.elementCount=1;const i=this.TypedArrayConstructor;void 0===n&&(n=i.BYTES_PER_ELEMENT);const u=0===e.byteLength?0:r;this.typedBuffer=null==s?new i(e,u):new i(e,u,(s-r)/i.BYTES_PER_ELEMENT),this.stride=n,this.typedBufferStride=n/i.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride)}sliceBuffer(t,e,r=this.count-e){const n=this.typedBuffer.byteOffset+e*this.stride;return new t(this.buffer,n,this.stride,n+r*this.stride)}get(t){return this.typedBuffer[t*this.typedBufferStride]}set(t,e){this.typedBuffer[t*this.typedBufferStride]=e}get buffer(){return this.typedBuffer.buffer}}var o=r(37585);class f{static{this.ElementCount=2}constructor(t,e,r=0,n,s){this.TypedArrayConstructor=t,this.start=r,this.elementCount=2;const i=this.TypedArrayConstructor;void 0===n&&(n=2*i.BYTES_PER_ELEMENT);const u=0===e.byteLength?0:r;this.typedBuffer=null==s?new i(e,u):new i(e,u,(s-r)/i.BYTES_PER_ELEMENT),this.typedBufferStride=n/i.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(t,e,r=this.count-e){const n=this.typedBuffer.byteOffset+e*this.stride;return new t(this.buffer,n,this.stride,n+r*this.stride)}getVec(t,e){return t*=this.typedBufferStride,(0,o.hZ)(e,this.typedBuffer[t],this.typedBuffer[t+1])}setVec(t,e){t*=this.typedBufferStride,this.typedBuffer[t++]=e[0],this.typedBuffer[t]=e[1]}get(t,e){return this.typedBuffer[t*this.typedBufferStride+e]}set(t,e,r){this.typedBuffer[t*this.typedBufferStride+e]=r}setValues(t,e,r){t*=this.typedBufferStride,this.typedBuffer[t++]=e,this.typedBuffer[t]=r}copyFrom(t,e,r){const n=this.typedBuffer,s=e.typedBuffer;let i=t*this.typedBufferStride,u=r*e.typedBufferStride;n[i++]=s[u++],n[i]=s[u]}get buffer(){return this.typedBuffer.buffer}}var c=r(38954);class a{static{this.ElementCount=3}constructor(t,e,r=0,n,s){this.TypedArrayConstructor=t,this.elementCount=3;const i=this.TypedArrayConstructor;void 0===n&&(n=3*i.BYTES_PER_ELEMENT);const u=0===e.byteLength?0:r;this.typedBuffer=null==s?new i(e,u):new i(e,u,(s-r)/i.BYTES_PER_ELEMENT),this.typedBufferStride=n/i.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(t,e,r=this.count-e){const n=this.typedBuffer.byteOffset+e*this.stride;return new t(this.buffer,n,this.stride,n+r*this.stride)}getVec(t,e){return t*=this.typedBufferStride,(0,c.j)(e,this.typedBuffer[t],this.typedBuffer[t+1],this.typedBuffer[t+2])}setVec(t,e){t*=this.typedBufferStride,this.typedBuffer[t++]=e[0],this.typedBuffer[t++]=e[1],this.typedBuffer[t]=e[2]}get(t,e){return this.typedBuffer[t*this.typedBufferStride+e]}set(t,e,r){this.typedBuffer[t*this.typedBufferStride+e]=r}setValues(t,e,r,n){t*=this.typedBufferStride,this.typedBuffer[t++]=e,this.typedBuffer[t++]=r,this.typedBuffer[t]=n}copyFrom(t,e,r){const n=this.typedBuffer,s=e.typedBuffer;let i=t*this.typedBufferStride,u=r*e.typedBufferStride;n[i++]=s[u++],n[i++]=s[u++],n[i]=s[u]}get buffer(){return this.typedBuffer.buffer}}var h=r(87317);class l{static{this.ElementCount=4}constructor(t,e,r=0,n,s){this.TypedArrayConstructor=t,this.start=r,this.elementCount=4;const i=this.TypedArrayConstructor;void 0===n&&(n=4*i.BYTES_PER_ELEMENT);const u=0===e.byteLength?0:r;this.typedBuffer=null==s?new i(e,u):new i(e,u,(s-r)/i.BYTES_PER_ELEMENT),this.typedBufferStride=n/i.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(t,e,r=this.count-e){const n=this.typedBuffer.byteOffset+e*this.stride;return new t(this.buffer,n,this.stride,n+r*this.stride)}getVec(t,e){return t*=this.typedBufferStride,(0,h.s)(e,this.typedBuffer[t++],this.typedBuffer[t++],this.typedBuffer[t++],this.typedBuffer[t])}setVec(t,e){t*=this.typedBufferStride,this.typedBuffer[t++]=e[0],this.typedBuffer[t++]=e[1],this.typedBuffer[t++]=e[2],this.typedBuffer[t]=e[3]}get(t,e){return this.typedBuffer[t*this.typedBufferStride+e]}set(t,e,r){this.typedBuffer[t*this.typedBufferStride+e]=r}setValues(t,e,r,n,s){t*=this.typedBufferStride,this.typedBuffer[t++]=e,this.typedBuffer[t++]=r,this.typedBuffer[t++]=n,this.typedBuffer[t]=s}copyFrom(t,e,r){const n=this.typedBuffer,s=e.typedBuffer;let i=t*this.typedBufferStride,u=r*e.typedBufferStride;n[i++]=s[u++],n[i++]=s[u++],n[i++]=s[u++],n[i]=s[u]}get buffer(){return this.typedBuffer.buffer}}var d=r(620);class p extends u{constructor(t,e=0,r,s){(0,d.vA)(n.SX),super((0,n.pX)(),t,e,r,s),this.elementType="f16"}static{this.ElementType="f16"}}class y extends u{constructor(t,e=0,r,n){super(Float32Array,t,e,r,n),this.elementType="f32"}static{this.ElementType="f32"}}class E extends f{constructor(t,e=0,r,s){(0,d.vA)(n.SX),super((0,n.pX)(),t,e,r,s),this.elementType="f16"}slice(t,e){return this.sliceBuffer(E,t,e)}static{this.ElementType="f16"}}class m extends f{constructor(t,e=0,r,n){super(Float32Array,t,e,r,n),this.elementType="f32"}slice(t,e){return this.sliceBuffer(m,t,e)}static{this.ElementType="f32"}}class B extends a{constructor(t,e=0,r,s){(0,d.vA)(n.SX),super((0,n.pX)(),t,e,r,s),this.elementType="f16"}slice(t,e){return this.sliceBuffer(B,t,e)}static{this.ElementType="f16"}}class T extends a{constructor(t,e=0,r,n){super(Float32Array,t,e,r,n),this.elementType="f32"}slice(t,e){return this.sliceBuffer(T,t,e)}static fromTypedArray(t,e){return new T(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}static{this.ElementType="f32"}}class _ extends l{constructor(t,e=0,r,s){(0,d.vA)(n.SX),super((0,n.pX)(),t,e,r,s),this.elementType="f16"}slice(t,e){return this.sliceBuffer(_,t,e)}static{this.ElementType="f16"}}class M extends l{constructor(t,e=0,r,n){super(Float32Array,t,e,r,n),this.elementType="f32"}slice(t,e){return this.sliceBuffer(M,t,e)}static{this.ElementType="f32"}}class S extends s{constructor(t,e=0,r,n){super(Float32Array,t,e,r,n),this.elementType="f32"}slice(t,e){return this.sliceBuffer(S,t,e)}static{this.ElementType="f32"}}class A extends s{constructor(t,e=0,r,n){super(Float64Array,t,e,r,n),this.elementType="f64"}slice(t,e){return this.sliceBuffer(A,t,e)}static{this.ElementType="f64"}}class g extends i{constructor(t,e=0,r,n){super(Float32Array,t,e,r,n),this.elementType="f32"}slice(t,e){return this.sliceBuffer(g,t,e)}static{this.ElementType="f32"}}class b extends i{constructor(t,e=0,r,n){super(Float64Array,t,e,r,n),this.elementType="f64"}slice(t,e){return this.sliceBuffer(b,t,e)}static{this.ElementType="f64"}}class N extends u{constructor(t,e=0,r,n){super(Float64Array,t,e,r,n),this.elementType="f64"}slice(t,e){return this.sliceBuffer(N,t,e)}static{this.ElementType="f64"}}class R extends f{constructor(t,e=0,r,n){super(Float64Array,t,e,r,n),this.elementType="f64"}slice(t,e){return this.sliceBuffer(R,t,e)}static{this.ElementType="f64"}}class I extends a{constructor(t,e=0,r,n){super(Float64Array,t,e,r,n),this.elementType="f64"}slice(t,e){return this.sliceBuffer(I,t,e)}static fromTypedArray(t,e){return new I(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}static{this.ElementType="f64"}}class v extends l{constructor(t,e=0,r,n){super(Float64Array,t,e,r,n),this.elementType="f64"}slice(t,e){return this.sliceBuffer(v,t,e)}static{this.ElementType="f64"}}class w extends u{constructor(t,e=0,r,n){super(Uint8Array,t,e,r,n),this.elementType="u8"}slice(t,e){return this.sliceBuffer(w,t,e)}static{this.ElementType="u8"}}class F extends f{constructor(t,e=0,r,n){super(Uint8Array,t,e,r,n),this.elementType="u8"}slice(t,e){return this.sliceBuffer(F,t,e)}static{this.ElementType="u8"}}class U extends a{constructor(t,e=0,r,n){super(Uint8Array,t,e,r,n),this.elementType="u8"}slice(t,e){return this.sliceBuffer(U,t,e)}static fromTypedArray(t,e){return new U(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}static{this.ElementType="u8"}}class C extends l{constructor(t,e=0,r,n){super(Uint8Array,t,e,r,n),this.elementType="u8"}slice(t,e){return this.sliceBuffer(C,t,e)}static{this.ElementType="u8"}}class x extends u{constructor(t,e=0,r,n){super(Uint16Array,t,e,r,n),this.elementType="u16"}slice(t,e){return this.sliceBuffer(x,t,e)}static{this.ElementType="u16"}}class O extends f{constructor(t,e=0,r,n){super(Uint16Array,t,e,r,n),this.elementType="u16"}slice(t,e){return this.sliceBuffer(O,t,e)}static{this.ElementType="u16"}}class P extends a{constructor(t,e=0,r,n){super(Uint16Array,t,e,r,n),this.elementType="u16"}slice(t,e){return this.sliceBuffer(P,t,e)}static{this.ElementType="u16"}}class G extends l{constructor(t,e=0,r,n){super(Uint16Array,t,e,r,n),this.elementType="u16"}slice(t,e){return this.sliceBuffer(G,t,e)}static{this.ElementType="u16"}}class L extends u{constructor(t,e=0,r,n){super(Uint32Array,t,e,r,n),this.elementType="u32"}slice(t,e){return this.sliceBuffer(L,t,e)}static{this.ElementType="u32"}}class D extends f{constructor(t,e=0,r,n){super(Uint32Array,t,e,r,n),this.elementType="u32"}slice(t,e){return this.sliceBuffer(D,t,e)}static{this.ElementType="u32"}}class Y extends a{constructor(t,e=0,r,n){super(Uint32Array,t,e,r,n),this.elementType="u32"}slice(t,e){return this.sliceBuffer(Y,t,e)}static{this.ElementType="u32"}}class H extends l{constructor(t,e=0,r,n){super(Uint32Array,t,e,r,n),this.elementType="u32"}slice(t,e){return this.sliceBuffer(H,t,e)}static{this.ElementType="u32"}}class X extends u{constructor(t,e=0,r,n){super(Int8Array,t,e,r,n),this.elementType="i8"}slice(t,e){return this.sliceBuffer(X,t,e)}static{this.ElementType="i8"}}class q extends f{constructor(t,e=0,r,n){super(Int8Array,t,e,r,n),this.elementType="i8"}slice(t,e){return this.sliceBuffer(q,t,e)}static{this.ElementType="i8"}}class z extends a{constructor(t,e=0,r,n){super(Int8Array,t,e,r,n),this.elementType="i8"}slice(t,e){return this.sliceBuffer(z,t,e)}static{this.ElementType="i8"}}class j extends l{constructor(t,e=0,r,n){super(Int8Array,t,e,r,n),this.elementType="i8"}slice(t,e){return this.sliceBuffer(j,t,e)}static{this.ElementType="i8"}}class V extends u{constructor(t,e=0,r,n){super(Int16Array,t,e,r,n),this.elementType="i16"}slice(t,e){return this.sliceBuffer(V,t,e)}static{this.ElementType="i16"}}class k extends f{constructor(t,e=0,r,n){super(Int16Array,t,e,r,n),this.elementType="i16"}slice(t,e){return this.sliceBuffer(k,t,e)}static{this.ElementType="i16"}}class $ extends a{constructor(t,e=0,r,n){super(Int16Array,t,e,r,n),this.elementType="i16"}slice(t,e){return this.sliceBuffer($,t,e)}static{this.ElementType="i16"}}class W extends l{constructor(t,e=0,r,n){super(Int16Array,t,e,r,n),this.elementType="i16"}slice(t,e){return this.sliceBuffer(W,t,e)}static{this.ElementType="i16"}}class Z extends u{constructor(t,e=0,r,n){super(Int32Array,t,e,r,n),this.elementType="i32"}slice(t,e){return this.sliceBuffer(Z,t,e)}static{this.ElementType="i32"}}class J extends f{constructor(t,e=0,r,n){super(Int32Array,t,e,r,n),this.elementType="i32"}slice(t,e){return this.sliceBuffer(J,t,e)}static{this.ElementType="i32"}}class Q extends a{constructor(t,e=0,r,n){super(Int32Array,t,e,r,n),this.elementType="i32"}slice(t,e){return this.sliceBuffer(Q,t,e)}static{this.ElementType="i32"}}class K extends l{constructor(t,e=0,r,n){super(Int32Array,t,e,r,n),this.elementType="i32"}slice(t,e){return this.sliceBuffer(K,t,e)}static{this.ElementType="i32"}}},20498:(t,e,r)=>{r.d(e,{SX:()=>i,pX:()=>s});let n=globalThis.Float16Array;function s(){return n}let i=!!n},34304:(t,e,r)=>{r.d(e,{DF:()=>f,FD:()=>s,Ov:()=>i,ct:()=>c});let n=1e-6;function s(){return n}const i=Math.random,u=Math.PI/180,o=180/Math.PI;function f(t){return t*u}function c(t){return t*o}Object.freeze(Object.defineProperty({__proto__:null,RANDOM:i,equals:function(t,e){return Math.abs(t-e)<=n*Math.max(1,Math.abs(t),Math.abs(e))},getEpsilon:s,setEpsilon:function(t){n=t},toDegree:c,toRadian:f},Symbol.toStringTag,{value:"Module"}))},34727:(t,e,r)=>{r.d(e,{$8:()=>A,Cc:()=>u,Hx:()=>y,Io:()=>M,KJ:()=>c,OS:()=>N,Sp:()=>l,XM:()=>a,YN:()=>h,ZH:()=>p,b6:()=>S,cU:()=>s,gg:()=>d,hs:()=>o,kU:()=>f,or:()=>b,pF:()=>I,pq:()=>R,qE:()=>i});const n=new Float32Array(1);function s(t){--t;for(let e=1;e<32;e<<=1)t|=t>>e;return t+1}function i(t,e,r){return Math.min(Math.max(t,e),r)}function u(t,e,r){return t+(e-t)*r}function o(t,e,r,n,s){return u(n,s,(t-e)/(r-e))}function f(t){return t*Math.PI/180}function c(t){return 180*t/Math.PI}function a(t){return Math.acos(i(t,-1,1))}function h(t){return Math.asin(i(t,-1,1))}function l(t,e,r=1e-6){return t===e||!(!Number.isFinite(t)||!Number.isFinite(e))&&(t>e?t-e:e-t)<=r}function d(t,e,r=1e-6){return!l(t,e,r)&&t>e}function p(t,e,r=1e-6){return!l(t,e,r)&&t<e}function y(t,e,r=1e-6){return l(t,e,r)||t>e}const E=new DataView(new ArrayBuffer(Float64Array.BYTES_PER_ELEMENT));function m(t){return E.setFloat64(0,t),E.getBigInt64(0)}const B=1000000n,T=_(1);function _(t){const e=m(t=Math.abs(t)),r=function(t){return E.setBigInt64(0,t),E.getFloat64(0)}(e<=B?B:e-B);return Math.abs(t-r)}function M(t,e,r=T){if(t===e)return!0;if(!Number.isFinite(t)||!Number.isFinite(e))return!1;if(null!=r&&_(Math.min(Math.abs(t),Math.abs(e)))<r)return Math.abs(t-e)<=r;const n=m(t),s=m(e);return n<0==s<0&&!((n<s?s-n:n-s)>B)}function S(t,e,r=1e-6){if(t===e)return!0;if(!Number.isFinite(t)||!Number.isFinite(e))return!1;const n=Math.abs(t-e),s=Math.abs(t),i=Math.abs(e);if(0===t||0===e||s<1e-12&&i<1e-12){if(n>.01*r)return!1}else if(n/(s+i)>r)return!1;return!0}function A(t){return g(Math.max(-R,Math.min(t,R)))}function g(t){return n[0]=t,n[0]}function b(t){const e=t[0]*t[0]+t[1]*t[1]+t[2]*t[2],r=t[3]*t[3]+t[4]*t[4]+t[5]*t[5],n=t[6]*t[6]+t[7]*t[7]+t[8]*t[8];return!(l(e,1)&&l(r,1)&&l(n,1))}function N(t,e){return(t%e+e)%e}const R=g(34028234663852886e22);function I(t,e,r){if(void 0===r||0===+r)return Math[t](e);if(e=+e,r=+r,isNaN(e)||"number"!=typeof r||r%1!=0)return NaN;let n=e.toString().split("e");return n=(e=Math[t](+(n[0]+"e"+(n[1]?+n[1]-r:-r)))).toString().split("e"),+(n[0]+"e"+(n[1]?+n[1]+r:r))}},37585:(t,e,r)=>{r.d(e,{C:()=>s,Cc:()=>E,Io:()=>h,S8:()=>y,WQ:()=>u,aI:()=>_,e$:()=>B,hG:()=>l,hZ:()=>i,hs:()=>a,jb:()=>S,l0:()=>m,t2:()=>T});var n=r(34304);function s(t,e){return t[0]=e[0],t[1]=e[1],t}function i(t,e,r){return t[0]=e,t[1]=r,t}function u(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t}function o(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t}function f(t,e,r){return t[0]=e[0]*r[0],t[1]=e[1]*r[1],t}function c(t,e,r){return t[0]=e[0]/r[0],t[1]=e[1]/r[1],t}function a(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t}function h(t,e){const r=e[0]-t[0],n=e[1]-t[1];return Math.sqrt(r*r+n*n)}function l(t,e){const r=e[0]-t[0],n=e[1]-t[1];return r*r+n*n}function d(t){const e=t[0],r=t[1];return Math.sqrt(e*e+r*r)}function p(t){const e=t[0],r=t[1];return e*e+r*r}function y(t,e){const r=e[0],n=e[1];let s=r*r+n*n;return s>0&&(s=1/Math.sqrt(s),t[0]=e[0]*s,t[1]=e[1]*s),t}function E(t,e,r,n){const s=e[0],i=e[1];return t[0]=s+n*(r[0]-s),t[1]=i+n*(r[1]-i),t}function m(t,e,r){const n=e[0],s=e[1];return t[0]=r[0]*n+r[2]*s+r[4],t[1]=r[1]*n+r[3]*s+r[5],t}function B(t,e,r,n){const s=e[0]-r[0],i=e[1]-r[1],u=Math.sin(n),o=Math.cos(n);return t[0]=s*o-i*u+r[0],t[1]=s*u+i*o+r[1],t}function T(t,e){return t[0]===e[0]&&t[1]===e[1]}function _(t,e){const r=t[0],s=t[1],i=e[0],u=e[1],o=(0,n.FD)();return Math.abs(r-i)<=o*Math.max(1,Math.abs(r),Math.abs(i))&&Math.abs(s-u)<=o*Math.max(1,Math.abs(s),Math.abs(u))}const M=d,S=o,A=f,g=c,b=h,N=l,R=p;Object.freeze(Object.defineProperty({__proto__:null,add:u,angle:function(t,e){const r=t[0],n=t[1],s=e[0],i=e[1];let u=r*r+n*n;u>0&&(u=1/Math.sqrt(u));let o=s*s+i*i;o>0&&(o=1/Math.sqrt(o));const f=(r*s+n*i)*u*o;return f>1?0:f<-1?Math.PI:Math.acos(f)},ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t},copy:s,cross:function(t,e,r){const n=e[0]*r[1]-e[1]*r[0];return t[0]=t[1]=0,t[2]=n,t},dist:b,distance:h,div:g,divide:c,dot:function(t,e){return t[0]*e[0]+t[1]*e[1]},equals:_,exactEquals:T,floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t},inverse:function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t},len:M,length:d,lerp:E,max:function(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t},min:function(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t},mul:A,multiply:f,negate:function(t,e){return t[0]=-e[0],t[1]=-e[1],t},normalize:y,projectAndScale:function(t,e,r,n,s){let i=e[0]-r[0],u=e[1]-r[1];const o=(n[0]*i+n[1]*u)*(s-1);return i=n[0]*o,u=n[1]*o,t[0]=e[0]+i,t[1]=e[1]+u,t},random:function(t,e=1){const r=2*(0,n.Ov)()*Math.PI;return t[0]=Math.cos(r)*e,t[1]=Math.sin(r)*e,t},rotate:B,round:function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t},scale:a,scaleAndAdd:function(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t},set:i,sqrDist:N,sqrLen:R,squaredDistance:l,squaredLength:p,str:function(t){return"vec2("+t[0]+", "+t[1]+")"},sub:S,subtract:o,transformMat2:function(t,e,r){const n=e[0],s=e[1];return t[0]=r[0]*n+r[2]*s,t[1]=r[1]*n+r[3]*s,t},transformMat2d:m,transformMat3:function(t,e,r){const n=e[0],s=e[1];return t[0]=r[0]*n+r[3]*s+r[6],t[1]=r[1]*n+r[4]*s+r[7],t},transformMat4:function(t,e,r){const n=e[0],s=e[1];return t[0]=r[0]*n+r[4]*s+r[12],t[1]=r[1]*n+r[5]*s+r[13],t}},Symbol.toStringTag,{value:"Module"}))},38954:(t,e,r)=>{r.d(e,{A:()=>p,B:()=>d,C:()=>a,D:()=>h,E:()=>C,F:()=>G,H:()=>D,a:()=>x,b:()=>i,c:()=>m,d:()=>u,e:()=>c,f:()=>g,g:()=>f,h:()=>E,i:()=>b,j:()=>o,k:()=>B,l:()=>N,m:()=>_,n:()=>A,o:()=>I,q:()=>U,r:()=>S,s:()=>T,t:()=>R,u:()=>M,v:()=>v,w:()=>l,x:()=>L,y:()=>Y,z:()=>y});var n=r(51850),s=r(34304);function i(t){const e=t[0],r=t[1],n=t[2];return Math.sqrt(e*e+r*r+n*n)}function u(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function o(t,e,r,n){return t[0]=e,t[1]=r,t[2]=n,t}function f(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t}function c(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2],t}function a(t,e,r){return t[0]=e[0]*r[0],t[1]=e[1]*r[1],t[2]=e[2]*r[2],t}function h(t,e,r){return t[0]=e[0]/r[0],t[1]=e[1]/r[1],t[2]=e[2]/r[2],t}function l(t,e){return t[0]=Math.abs(e[0]),t[1]=Math.abs(e[1]),t[2]=Math.abs(e[2]),t}function d(t,e){return t[0]=Math.sign(e[0]),t[1]=Math.sign(e[1]),t[2]=Math.sign(e[2]),t}function p(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t[2]=Math.min(e[2],r[2]),t}function y(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t[2]=Math.max(e[2],r[2]),t}function E(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t}function m(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t[2]=e[2]+r[2]*n,t}function B(t,e){const r=e[0]-t[0],n=e[1]-t[1],s=e[2]-t[2];return Math.sqrt(r*r+n*n+s*s)}function T(t,e){const r=e[0]-t[0],n=e[1]-t[1],s=e[2]-t[2];return r*r+n*n+s*s}function _(t){const e=t[0],r=t[1],n=t[2];return e*e+r*r+n*n}function M(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}function S(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}function A(t,e){const r=e[0],n=e[1],s=e[2];let i=r*r+n*n+s*s;return i>0&&(i=1/Math.sqrt(i),t[0]=e[0]*i,t[1]=e[1]*i,t[2]=e[2]*i),t}function g(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function b(t,e,r){const n=e[0],s=e[1],i=e[2],u=r[0],o=r[1],f=r[2];return t[0]=s*f-i*o,t[1]=i*u-n*f,t[2]=n*o-s*u,t}function N(t,e,r,n){const s=e[0],i=e[1],u=e[2];return t[0]=s+n*(r[0]-s),t[1]=i+n*(r[1]-i),t[2]=u+n*(r[2]-u),t}function R(t,e,r){const n=e[0],s=e[1],i=e[2];return t[0]=r[0]*n+r[4]*s+r[8]*i+r[12],t[1]=r[1]*n+r[5]*s+r[9]*i+r[13],t[2]=r[2]*n+r[6]*s+r[10]*i+r[14],t}function I(t,e,r){const n=e[0],s=e[1],i=e[2];return t[0]=n*r[0]+s*r[3]+i*r[6],t[1]=n*r[1]+s*r[4]+i*r[7],t[2]=n*r[2]+s*r[5]+i*r[8],t}function v(t,e,r){const n=r[0],s=r[1],i=r[2],u=r[3],o=e[0],f=e[1],c=e[2],a=s*c-i*f,h=i*o-n*c,l=n*f-s*o,d=s*l-i*h,p=i*a-n*l,y=n*h-s*a,E=2*u;return t[0]=o+a*E+2*d,t[1]=f+h*E+2*p,t[2]=c+l*E+2*y,t}const w=(0,n.vt)(),F=(0,n.vt)();function U(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function C(t,e,r){const n=r[0]-e[0],s=r[1]-e[1],i=r[2]-e[2];let u=n*n+s*s+i*i;return u>0?(u=1/Math.sqrt(u),t[0]=n*u,t[1]=s*u,t[2]=i*u,t):(t[0]=0,t[1]=0,t[2]=0,t)}const x=c,O=a,P=h,G=B,L=T,D=i,Y=_;Object.freeze(Object.defineProperty({__proto__:null,abs:l,add:f,angle:function(t,e){A(w,t),A(F,e);const r=g(w,F);return r>1?0:r<-1?Math.PI:Math.acos(r)},bezier:function(t,e,r,n,s,i){const u=1-i,o=u*u,f=i*i,c=o*u,a=3*i*o,h=3*f*u,l=f*i;return t[0]=e[0]*c+r[0]*a+n[0]*h+s[0]*l,t[1]=e[1]*c+r[1]*a+n[1]*h+s[1]*l,t[2]=e[2]*c+r[2]*a+n[2]*h+s[2]*l,t},ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t},clamp:function(t,e=0,r=1){return t[0]=Math.min(Math.max(t[0],e),r),t[1]=Math.min(Math.max(t[1],e),r),t[2]=Math.min(Math.max(t[2],e),r),t},copy:u,cross:b,crossAndNormalize:function(t,e,r){const n=e[0],s=e[1],i=e[2],u=r[0],o=r[1],f=r[2],c=s*f-i*o,a=i*u-n*f,h=n*o-s*u,l=Math.sqrt(c*c+a*a+h*h);return t[0]=c/l,t[1]=a/l,t[2]=h/l,t},direction:C,dist:G,distance:B,div:P,divide:h,dot:g,equals:function(t,e){if(t===e)return!0;const r=t[0],n=t[1],i=t[2],u=e[0],o=e[1],f=e[2],c=(0,s.FD)();return Math.abs(r-u)<=c*Math.max(1,Math.abs(r),Math.abs(u))&&Math.abs(n-o)<=c*Math.max(1,Math.abs(n),Math.abs(o))&&Math.abs(i-f)<=c*Math.max(1,Math.abs(i),Math.abs(f))},exactEquals:U,floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t},hermite:function(t,e,r,n,s,i){const u=i*i,o=u*(2*i-3)+1,f=u*(i-2)+i,c=u*(i-1),a=u*(3-2*i);return t[0]=e[0]*o+r[0]*f+n[0]*c+s[0]*a,t[1]=e[1]*o+r[1]*f+n[1]*c+s[1]*a,t[2]=e[2]*o+r[2]*f+n[2]*c+s[2]*a,t},inverse:S,len:D,length:i,lerp:N,max:y,min:p,mul:O,multiply:a,negate:M,normalize:A,random:function(t,e=1){const r=s.Ov,n=2*r()*Math.PI,i=2*r()-1,u=Math.sqrt(1-i*i)*e;return t[0]=Math.cos(n)*u,t[1]=Math.sin(n)*u,t[2]=i*e,t},rotateX:function(t,e,r,n){const s=[],i=[];return s[0]=e[0]-r[0],s[1]=e[1]-r[1],s[2]=e[2]-r[2],i[0]=s[0],i[1]=s[1]*Math.cos(n)-s[2]*Math.sin(n),i[2]=s[1]*Math.sin(n)+s[2]*Math.cos(n),t[0]=i[0]+r[0],t[1]=i[1]+r[1],t[2]=i[2]+r[2],t},rotateY:function(t,e,r,n){const s=[],i=[];return s[0]=e[0]-r[0],s[1]=e[1]-r[1],s[2]=e[2]-r[2],i[0]=s[2]*Math.sin(n)+s[0]*Math.cos(n),i[1]=s[1],i[2]=s[2]*Math.cos(n)-s[0]*Math.sin(n),t[0]=i[0]+r[0],t[1]=i[1]+r[1],t[2]=i[2]+r[2],t},rotateZ:function(t,e,r,n){const s=[],i=[];return s[0]=e[0]-r[0],s[1]=e[1]-r[1],s[2]=e[2]-r[2],i[0]=s[0]*Math.cos(n)-s[1]*Math.sin(n),i[1]=s[0]*Math.sin(n)+s[1]*Math.cos(n),i[2]=s[2],t[0]=i[0]+r[0],t[1]=i[1]+r[1],t[2]=i[2]+r[2],t},round:function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t},scale:E,scaleAndAdd:m,set:o,sign:d,sqrDist:L,sqrLen:Y,squaredDistance:T,squaredLength:_,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:x,subtract:c,transformMat3:I,transformMat4:R,transformQuat:v},Symbol.toStringTag,{value:"Module"}))},48163:(t,e,r)=>{function n(){return[0,0]}function s(t){return[t[0],t[1]]}function i(t,e){return[t,e]}function u(){return i(1,1)}function o(){return i(1,0)}function f(){return i(0,1)}r.d(e,{Un:()=>c,fA:()=>i,o8:()=>s,vt:()=>n});const c=u(),a=o(),h=f();Object.freeze(Object.defineProperty({__proto__:null,ONES:c,UNIT_X:a,UNIT_Y:h,ZEROS:[0,0],clone:s,create:n,freeze:function(t,e){return[t,e]},fromArray:function(t,e=[0,0]){const r=Math.min(2,t.length);for(let n=0;n<r;++n)e[n]=t[n];return e},fromValues:i,ones:u,unitX:o,unitY:f,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"}))},51850:(t,e,r)=>{function n(){return[0,0,0]}function s(t){return[t[0],t[1],t[2]]}function i(t,e,r){return[t,e,r]}function u(t,e,r){return[t,e,r]}function o(t,e=[0,0,0]){const r=Math.min(3,t.length);for(let n=0;n<r;++n)e[n]=t[n];return e}function f(){return i(1,1,1)}function c(){return i(1,0,0)}function a(){return i(0,1,0)}function h(){return i(0,0,1)}r.d(e,{CN:()=>u,Cb:()=>E,Cw:()=>p,JP:()=>y,Un:()=>d,ci:()=>o,fA:()=>i,o8:()=>s,uY:()=>l,vt:()=>n});const l=[0,0,0],d=f(),p=c(),y=a(),E=h();Object.freeze(Object.defineProperty({__proto__:null,ONES:d,UNIT_X:p,UNIT_Y:y,UNIT_Z:E,ZEROS:l,clone:s,create:n,freeze:u,fromArray:o,fromValues:i,ones:f,unitX:c,unitY:a,unitZ:h,zeros:function(){return[0,0,0]}},Symbol.toStringTag,{value:"Module"}))},63907:(t,e,r)=>{r.d(e,{$0:()=>h,CQ:()=>E,Fq:()=>p,H0:()=>i,SB:()=>f,WR:()=>n,XN:()=>u,iE:()=>o,ld:()=>c,nI:()=>y,pe:()=>s,r6:()=>l,vt:()=>a,yI:()=>d});const n={POINTS:0,LINES:1,LINE_LOOP:2,LINE_STRIP:3,TRIANGLES:4,TRIANGLE_STRIP:5,TRIANGLE_FAN:6},s={BYTE:5120,UNSIGNED_BYTE:5121,SHORT:5122,UNSIGNED_SHORT:5123,INT:5124,UNSIGNED_INT:5125,FLOAT:5126,HALF_FLOAT:5131},i={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},u=Object.values(i),o={DEPTH24_STENCIL8:35056,DEPTH32F_STENCIL8:36013},f={DEPTH_COMPONENT16:33189,DEPTH_COMPONENT24:33190,DEPTH_COMPONENT32F:36012},c={FLOAT:s.FLOAT,UNSIGNED_BYTE:s.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:s.BYTE,UNSIGNED_SHORT:s.UNSIGNED_SHORT,SHORT:s.SHORT,UNSIGNED_INT:s.UNSIGNED_INT,INT:s.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},a={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},h=0,l=36064,d=36065,p=36066,y=33306,E={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}},74038:(t,e,r)=>{r.d(e,{_:()=>n});class n{constructor(t,e,r,n,s,i=!1,u=0){this.name=t,this.count=e,this.type=r,this.offset=n,this.stride=s,this.normalized=i,this.divisor=u}}},85079:(t,e,r)=>{function n(t){let e=0;return 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}r.d(e,{Xk:()=>n,_u:()=>s})},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})},93406:(t,e,r)=>{r.d(e,{K:()=>f});var n=r(34727),s=r(15142),i=r(38954),u=r(51850);const o=-1;function f(t,e,r){const n=t.vertices.position,s=t.vertices.componentIndex,u=y.position0,f=y.position1,h=y.faceNormal0,d=y.faceNormal1,{edges:p,normals:E}=a(t),m=p.length/4,B=e.allocate(m);let T=0;const _=m,A=r?.allocate(_);let b=0,N=0,R=0;l.length=0;for(let t=0;t<m;++t){const e=4*t;n.getVec(p.data[e],u),n.getVec(p.data[e+1],f);const r=l.pushNew();r.index=4*t,r.length=(0,i.k)(u,f)}l.sort((t,e)=>e.length-t.length);const I=new Array,v=new Array;l.forAll(({length:t,index:a})=>{const l=p.data[a],m=p.data[a+1],_=p.data[a+2],w=p.data[a+3],F=w===o;if(n.getVec(l,u),n.getVec(m,f),F){const t=3*_;(0,i.j)(h,E.data[t],E.data[t+1],E.data[t+2]),(0,i.d)(d,h),y.componentIndex=s.get(l),y.cosAngle=(0,i.f)(h,d)}else{let t=3*_;if((0,i.j)(h,E.data[t],E.data[t+1],E.data[t+2]),t=3*w,(0,i.j)(d,E.data[t],E.data[t+1],E.data[t+2]),y.componentIndex=s.get(l),y.cosAngle=(0,i.f)(h,d),function(t,e){return t.cosAngle>e}(y,S))return;y.cosAngle<-.9999&&(0,i.d)(d,h)}N+=t,R++,F||function(t,e){return t.cosAngle<e}(y,g)?(e.write(B,T++,y),I.push(t)):c(y,M)&&(A&&r&&r.write(A,b++,y),v.push(t))});const w=new Float32Array(I.reverse()),F=new Float32Array(v.reverse()),U=A&&r?{instancesData:A.slice(0,b),lodInfo:{lengths:F}}:void 0;return{regular:{instancesData:B.slice(0,T),lodInfo:{lengths:w}},silhouette:U,averageEdgeLength:N/R}}function c(t,e){const r=(0,n.XM)(t.cosAngle);return(0,i.E)(m,t.position1,t.position0),r*((0,i.f)((0,i.i)(E,t.faceNormal0,t.faceNormal1),m)>0?-1:1)>e}function a(t){const e=t.faces.length/3,r=t.faces,n=t.neighbors,s=t.vertices.position;d.length=p.length=0;for(let t=0;t<e;t++){const e=3*t,u=n[e],f=n[e+1],c=n[e+2],a=r[e],h=r[e+1],l=r[e+2];s.getVec(a,B),s.getVec(h,T),s.getVec(l,_),(0,i.e)(T,T,B),(0,i.e)(_,_,B),(0,i.i)(B,T,_),(0,i.n)(B,B),p.pushArray(B),(u===o||a<h)&&(d.push(a),d.push(h),d.push(t),d.push(u)),(f===o||h<l)&&(d.push(h),d.push(l),d.push(t),d.push(f)),(c===o||l<a)&&(d.push(l),d.push(a),d.push(t),d.push(c))}return{edges:d,normals:p}}class h{constructor(){this.index=0,this.length=0}}const l=new s.A({allocator:t=>t||new h,deallocator:null}),d=new s.A({deallocator:null}),p=new s.A({deallocator:null}),y=new class{constructor(){this.position0=(0,u.vt)(),this.position1=(0,u.vt)(),this.faceNormal0=(0,u.vt)(),this.faceNormal1=(0,u.vt)(),this.componentIndex=0,this.cosAngle=0}},E=(0,u.vt)(),m=(0,u.vt)(),B=(0,u.vt)(),T=(0,u.vt)(),_=(0,u.vt)(),M=(0,n.kU)(4),S=Math.cos(M),A=(0,n.kU)(35),g=Math.cos(A)},97146:(t,e,r)=>{r.d(e,{Dg:()=>i,my:()=>u,tM:()=>a,uW:()=>s});var n=r(34275);function s(t){return i(t,!0)}function i(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,s=!0;return t.some((t,e)=>(r=r&&0===t,s=s&&t===e,!r&&!s)),r?function(t){if(1===t)return f;if(t<n.y9)return new Array(t).fill(0);if(t>l.length){const e=Math.max(2*l.length,t);l=new Uint8Array(e)}return new Uint8Array(l.buffer,0,t)}(t.length):s?a(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 u(t){return t<=n.y9?new Array(t):t<=65536?new Uint16Array(t):new Uint32Array(t)}let o=h(131072);const f=[0],c=(()=>{const t=new Uint16Array(65536);for(let e=0;e<t.length;++e)t[e]=e;return t})();function a(t){return 1===t?f:t<n.y9?Array.from(new Uint16Array(c.buffer,0,t)):t<c.length?new Uint16Array(c.buffer,0,t):(t>o.length&&(o=h(Math.max(2*o.length,t))),new Uint32Array(o.buffer,0,t))}function h(t){const e=new Uint32Array(t);for(let t=0;t<e.length;t++)e[t]=t;return e}let l=new Uint8Array(65536)}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[431],{431:(t,e,r)=>{r.d(e,{o6:()=>g,HY:()=>w,hx:()=>b,Jb:()=>v});var n=r(9318);function s(t,e,r){const n=e/3,s=new Uint32Array(r+1),i=new Uint32Array(r+1),u=(t,e)=>{t<e?s[t+1]++:i[e+1]++};for(let e=0;e<n;e++){const r=t[3*e],n=t[3*e+1],s=t[3*e+2];u(r,n),u(n,s),u(s,r)}let o=0,f=0;for(let t=0;t<r;t++){const e=s[t+1],r=i[t+1];s[t+1]=o,i[t+1]=f,o+=e,f+=r}const c=new Uint32Array(6*n),a=s[r],h=(t,e,r)=>{if(t<e){const n=s[t+1]++;c[2*n]=e,c[2*n+1]=r}else{const n=i[e+1]++;c[2*a+2*n]=t,c[2*a+2*n+1]=r}};for(let e=0;e<n;e++){const r=t[3*e],n=t[3*e+1],s=t[3*e+2];h(r,n,e),h(n,s,e),h(s,r,e)}const l=(t,e)=>{const r=2*t,n=e-t;for(let t=1;t<n;t++){const e=c[r+2*t],n=c[r+2*t+1];let s=t-1;for(;s>=0&&c[r+2*s]>e;s--)c[r+2*s+2]=c[r+2*s],c[r+2*s+3]=c[r+2*s+1];c[r+2*s+2]=e,c[r+2*s+3]=n}};for(let t=0;t<r;t++)l(s[t],s[t+1]),l(a+i[t],a+i[t+1]);const d=new Int32Array(3*n),p=(e,r)=>e===t[3*r]?0:e===t[3*r+1]?1:e===t[3*r+2]?2:-1,y=(t,e)=>{const r=p(t,e);d[3*e+r]=-1},E=(t,e,r,n)=>{const s=p(t,e);d[3*e+s]=n;const i=p(r,n);d[3*n+i]=e};for(let t=0;t<r;t++){let e=s[t];const r=s[t+1];let n=i[t];const u=i[t+1];for(;e<r&&n<u;){const r=c[2*e],s=c[2*a+2*n];r===s?(E(t,c[2*e+1],s,c[2*a+2*n+1]),e++,n++):r<s?(y(t,c[2*e+1]),e++):(y(s,c[2*a+2*n+1]),n++)}for(;e<r;)y(t,c[2*e+1]),e++;for(;n<u;)y(c[2*a+2*n],c[2*a+2*n+1]),n++}return d}var i=r(1843),u=r(3055),o=r(87811),f=r(38954),c=r(51850),a=r(34727);function h(t,e,r,n,s,i=2){const u=1/(Math.abs(r)+Math.abs(n)+Math.abs(s)),o=r*u,f=n*u,c=s<=0?(o>=0?1:-1)*(1-Math.abs(f)):o,a=s<=0?(f>=0?1:-1)*(1-Math.abs(o)):f,h=e*i;t[h]=l(c),t[h+1]=l(a)}function l(t){return(0,a.qE)(Math.round(32767*t),-32767,32767)}r(11868),r(34275);class d{updateSettings(t){this.settings=t,this._edgeHashFunction=t.reducedPrecision?B:m}write(t,e,r){S.seed=this._edgeHashFunction(r);const n=S.getIntRange(0,255),s=S.getIntRange(0,this.settings.variants-1),i=S.getFloat(),u=255*(.5*function(t){return Math.abs(t)**1.2*Math.sign(t)}(-(1-Math.min(i/.7,1))+Math.max(0,i-.7)/(1-.7))+.5);t.position0.setVec(e,r.position0),t.position1.setVec(e,r.position1),t.componentIndex.set(e,r.componentIndex),t.variantOffset.set(e,n),t.variantStroke.set(e,s),t.variantExtension.set(e,u)}}const p=new Float32Array(6),y=new Uint32Array(p.buffer),E=new Uint32Array(1);function m(t){return p[0]=t.position0[0],p[1]=t.position0[1],p[2]=t.position0[2],p[3]=t.position1[0],p[4]=t.position1[1],p[5]=t.position1[2],E[0]=31*(31*(31*(31*(31*(166811+y[0])+y[1])+y[2])+y[3])+y[4])+y[5],E[0]}function B(t){const e=p;e[0]=_(t.position0[0]),e[1]=_(t.position0[1]),e[2]=_(t.position0[2]),e[3]=_(t.position1[0]),e[4]=_(t.position1[1]),e[5]=_(t.position1[2]),E[0]=5381;for(let t=0;t<y.length;t++)E[0]=31*E[0]+y[t];return E[0]}const T=1e4;function _(t){return Math.round(t*T)/T}const M=(0,c.vt)(),S=new o.A;var A=r(93406);function g(t){const e=b(t.data,t.skipDeduplicate,t.indices,t.indicesLength);return R.updateSettings(t.writerSettings),I.updateSettings(t.writerSettings),(0,A.K)(e,R,I)}function b(t,e,r,i){if(e){const e=s(r,i,t.count);return new N(r,i,e,t)}const o=(0,n.b)(t.buffer,t.stride/4,{originalIndices:r}),f=s(o.indices,i,o.uniqueCount);return{faces:o.indices,facesLength:o.indices.length,neighbors:f,vertices:u.I$.createView(o.buffer)}}class N{constructor(t,e,r,n){this.faces=t,this.facesLength=e,this.neighbors=r,this.vertices=n}}const R=new class{constructor(){this._commonWriter=new d}updateSettings(t){this._commonWriter.updateSettings(t)}allocate(t){return u.gr.createBuffer(t)}write(t,e,r){this._commonWriter.write(t,e,r),(0,f.g)(M,r.faceNormal0,r.faceNormal1),(0,f.n)(M,M);const{typedBuffer:n,typedBufferStride:s}=t.normalCompressed;h(n,e,M[0],M[1],M[2],s)}},I=new class{constructor(){this._commonWriter=new d}updateSettings(t){this._commonWriter.updateSettings(t)}allocate(t){return u.In.createBuffer(t)}write(t,e,r){this._commonWriter.write(t,e,r);{const{typedBuffer:n,typedBufferStride:s}=t.normalCompressed;h(n,e,r.faceNormal0[0],r.faceNormal0[1],r.faceNormal0[2],s)}{const{typedBuffer:n,typedBufferStride:s}=t.normal2Compressed;h(n,e,r.faceNormal1[0],r.faceNormal1[1],r.faceNormal1[2],s)}}},v=(0,i.BP)().vec3f("position0").vec3f("position1"),w=(0,i.BP)().vec3f("position0").vec3f("position1").u16("componentIndex")},620:(t,e,r)=>{r.d(e,{O_:()=>i,vA:()=>s}),r(48163),r(87317),(0,r(91829).vt)();class n{constructor(t){this.message=t}toString(){return`AssertException: ${this.message}`}}function s(t,e="Assertion"){if(!t){const t=new Error(e).stack;throw new n(`${e} at ${t}`)}}function i(t,e,r,n){let s,i=(r[0]-t[0])/e[0],u=(n[0]-t[0])/e[0];i>u&&(s=i,i=u,u=s);let o=(r[1]-t[1])/e[1],f=(n[1]-t[1])/e[1];if(o>f&&(s=o,o=f,f=s),i>f||o>u)return!1;o>i&&(i=o),f<u&&(u=f);let c=(r[2]-t[2])/e[2],a=(n[2]-t[2])/e[2];return c>a&&(s=c,c=a,a=s),!(i>a||c>u||(a<u&&(u=a),u<0))}},1843:(t,e,r)=>{r.d(e,{BP:()=>h,l5:()=>l});var n=r(20498),s=r(13030),i=r(90239),u=r(4431),o=r(620),f=r(85079);class c{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 c(this.layout,this.buffer.slice(t*this.stride,e*this.stride))}copyFrom(t,e=0,r=0,n=t.count){const s=this.stride;if(s%4==0){const i=new Uint32Array(t.buffer,e*s,n*s/4);new Uint32Array(this.buffer,r*s,n*s/4).set(i)}else{const i=new Uint8Array(t.buffer,e*s,n*s);new Uint8Array(this.buffer,r*s,n*s).set(i)}return this}get usedMemory(){return this.byteLength}dispose(){}}class a{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:y(t[1].constructor)})))}freeze(){return this}get locations(){return(0,f.Xk)((0,u.U)(this))}vec2f16(t,e){return this._appendField(t,n.SX?s.ZD:s.gH,e),this}vec2f(t,e){return this._appendField(t,s.gH,e),this}vec2f64(t,e){return this._appendField(t,s.si,e),this}vec3f16(t,e){return this._appendField(t,n.SX?s.EC:s.xs,e),this}vec3f(t,e){return this._appendField(t,s.xs,e),this}vec3f64(t,e){return this._appendField(t,s.Xm,e),this}vec4f16(t,e){return this._appendField(t,n.SX?s.jz:s.Eq,e),this}vec4f(t,e){return this._appendField(t,s.Eq,e),this}vec4f64(t,e){return this._appendField(t,s.Aj,e),this}mat3f(t,e){return this._appendField(t,s.jZ,e),this}mat3f64(t,e){return this._appendField(t,s.j0,e),this}mat4f(t,e){return this._appendField(t,s.Sx,e),this}mat4f64(t,e){return this._appendField(t,s.E$,e),this}vec4u8(t,e){return this._appendField(t,s.XP,e),this}f16(t,e){return this._appendField(t,n.SX?s.XW:s.Y$,e),this}f32(t,e){return this._appendField(t,s.Y$,e),this}f64(t,e){return this._appendField(t,s.qB,e),this}u8(t,e){return this._appendField(t,s.SL,e),this}u16(t,e){return this._appendField(t,s.h,e),this}i8(t,e){return this._appendField(t,s.bf,e),this}vec2i8(t,e){return this._appendField(t,s.D6,e),this}vec2i16(t,e){return this._appendField(t,s.mJ,e),this}vec2u8(t,e){return this._appendField(t,s.LC,e),this}vec2u16(t,e){return this._appendField(t,s.Yi,e),this}vec4u16(t,e){return this._appendField(t,s.Uz,e),this}vec4i16(t,e){return this._appendField(t,s.E7,e),this}u32(t,e){return this._appendField(t,s.P,e),this}_appendField(t,e,r){this._fields.has(t)&&(0,o.vA)(!1,`${t} already added to vertex buffer layout`);const n=e.ElementCount*(0,i.GJ)(e.ElementType),s=this._stride;this._fields.set(t,{constructor:e,size:n,offset:s,optional:r}),this._alignFields()}_alignFields(){let t=0,e=1;this._fields.forEach(r=>{const n=(0,i.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 c(this,t)}createView(t){return new c(this,t)}clone(){const t=new a;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 h(){return new a}class l{constructor(t){this.fields=new Array,t.fields.forEach((t,e)=>{const r={...t,constructor:p(t.constructor)};this.fields.push([e,r])}),this.stride=t.stride}}const d=[s.Y$,s.gH,s.xs,s.Eq,s.jZ,s.Sx,s.qB,s.si,s.Xm,s.Aj,s.j0,s.E$,s.SL,s.LC,s.eI,s.XP,s.h,s.Yi,s.nS,s.Uz,s.P,s.An,s.H$,s.ml,s.bf,s.D6,s.m8,s.TX,s.Qt,s.mJ,s.Vp,s.E7,s.My,s.UL,s.zD,s.Y4];function p(t){return`${t.ElementType}_${t.ElementCount}`}function y(t){return E.get(t)}const E=new Map;d.forEach(t=>E.set(p(t),t))},3055:(t,e,r)=>{r.d(e,{I$:()=>u,In:()=>a,gr:()=>c});var n=r(4431),s=r(1843),i=r(85079);const u=(0,s.BP)().vec3f("position").u16("componentIndex").freeze(),o=(0,s.BP)().vec2u8("sideness").freeze(),f=(0,n.U)(o),c=(0,s.BP)().vec3f("position0").vec3f("position1").vec2i16("normalCompressed").u16("componentIndex").u8("variantOffset",{glNormalized:!0}).u8("variantStroke").u8("variantExtension",{glNormalized:!0}).freeze(),a=(0,s.BP)().vec3f("position0").vec3f("position1").vec2i16("normalCompressed").vec2i16("normal2Compressed").u16("componentIndex").u8("variantOffset",{glNormalized:!0}).u8("variantStroke").u8("variantExtension",{glNormalized:!0}).freeze(),h=(0,n.U)(c,1),l=(0,n.U)(a,1);(0,i._u)([f,h]),(0,i._u)([f,l])},4431:(t,e,r)=>{r.d(e,{U:()=>i}),r(44208);var n=r(63907),s=r(74038);function i(t,e=0){const r=t.stride;return Array.from(t.fields.keys()).map(i=>{const u=t.fields.get(i),o=u.constructor.ElementCount,f=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")}}(u.constructor.ElementType),c=u.offset,a=u.optional?.glNormalized??!1;return new s._(i,o,f,c,r,a,e)})}},9318:(t,e,r)=>{r.d(e,{b:()=>i});var n=r(34727),s=r(97146);function i(t,e,r){const i=Array.isArray(t),a=i?t.length/e:t.byteLength/(4*e),h=i?t:new Uint32Array(t,0,a*e),l=r?.minReduction??0,d=r?.originalIndices||null,p=d?d.length:0,y=r?.componentOffsets||null;let E=0;if(y)for(let t=0;t<y.length-1;t++){const e=y[t+1]-y[t];e>E&&(E=e)}else E=a;const m=Math.floor(1.1*E)+1;(null==c||c.length<2*m)&&(c=new Uint32Array((0,n.cU)(2*m)));for(let t=0;t<2*m;t++)c[t]=0;let B=0;const T=!!y&&!!d,_=T?p:a;let M=(0,s.my)(a);const S=new Uint32Array(p),A=1.96;let g=0!==l?Math.ceil(4*A*A/(l*l)*l*(1-l)):_,b=1,N=y?y[1]:_;for(let t=0;t<_;t++){if(t===g){const e=1-B/t;if(e+A*Math.sqrt(e*(1-e)/t)<l)return null;g*=2}if(t===N){for(let t=0;t<2*m;t++)c[t]=0;if(d)for(let t=y[b-1];t<y[b];t++)S[t]=M[d[t]];N=y[++b]}const r=T?d[t]:t,n=r*e,s=f(h,n,e);let i=s%m,o=B;for(;0!==c[2*i+1];){if(c[2*i]===s){const t=c[2*i+1]-1;if(u(h,n,t*e,e)){o=M[t];break}}i++,i>=m&&(i-=m)}o===B&&(c[2*i]=s,c[2*i+1]=r+1,B++),M[r]=o}if(0!==l&&1-B/a<l)return null;if(T){for(let t=y[b-1];t<S.length;t++)S[t]=M[d[t]];M=(0,s.uW)(S)}const R=i?new Array(B):new Uint32Array(B*e);B=0;for(let t=0;t<_;t++)M[t]===B&&(o(h,(T?d[t]:t)*e,R,B*e,e),B++);if(d&&!T){const t=new Uint32Array(p);for(let e=0;e<t.length;e++)t[e]=M[d[e]];M=(0,s.uW)(t)}return{buffer:Array.isArray(R)?R:R.buffer,indices:M,uniqueCount:B}}function u(t,e,r,n){for(let s=0;s<n;s++)if(t[e+s]!==t[r+s])return!1;return!0}function o(t,e,r,n,s){for(let i=0;i<s;i++)r[n+i]=t[e+i]}function f(t,e,r){let n=0;for(let s=0;s<r;s++)n=t[e+s]+n|0,n=n+(n<<11)+(n>>>2)|0;return n>>>0}let c=null},11868:(t,e,r)=>{r.d(e,{Wz:()=>i,oe:()=>s});var n=r(34275);function s(t,e=!1){return t<=n.y9?e?new Array(t).fill(0):new Array(t):new Float32Array(t)}function i(t){return(Array.isArray(t)?t.length:t.byteLength/8)<=n.y9?Array.from(t):new Float32Array(t)}},13030:(t,e,r)=>{r.d(e,{Y$:()=>y,XW:()=>p,qB:()=>N,Qt:()=>V,My:()=>Z,bf:()=>X,jZ:()=>S,j0:()=>A,Sx:()=>g,E$:()=>b,h:()=>x,P:()=>L,SL:()=>w,gH:()=>m,ZD:()=>E,si:()=>R,mJ:()=>k,UL:()=>J,D6:()=>q,Yi:()=>O,An:()=>D,LC:()=>F,xs:()=>T,EC:()=>B,Xm:()=>I,Vp:()=>$,zD:()=>Q,m8:()=>z,nS:()=>P,H$:()=>Y,eI:()=>U,Eq:()=>M,jz:()=>_,Aj:()=>v,E7:()=>W,Y4:()=>K,TX:()=>j,Uz:()=>G,ml:()=>H,XP:()=>C});var n=r(20498);class s{static{this.ElementCount=9}constructor(t,e,r=0,n,s){this.TypedArrayConstructor=t,this.elementCount=9;const i=this.TypedArrayConstructor;void 0===n&&(n=9*i.BYTES_PER_ELEMENT);const u=0===e.byteLength?0:r;this.typedBuffer=null==s?new i(e,u):new i(e,u,(s-r)/i.BYTES_PER_ELEMENT),this.typedBufferStride=n/i.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(t,e,r=this.count-e){const n=this.typedBuffer.byteOffset+e*this.stride;return new t(this.buffer,n,this.stride,n+r*this.stride)}getMat(t,e){let r=t*this.typedBufferStride;for(let t=0;t<9;t++)e[t]=this.typedBuffer[r++];return e}setMat(t,e){let r=t*this.typedBufferStride;for(let t=0;t<9;t++)this.typedBuffer[r++]=e[t]}get(t,e){return this.typedBuffer[t*this.typedBufferStride+e]}set(t,e,r){this.typedBuffer[t*this.typedBufferStride+e]=r}copyFrom(t,e,r){const n=this.typedBuffer,s=e.typedBuffer;let i=t*this.typedBufferStride,u=r*e.typedBufferStride;for(let t=0;t<9;++t)n[i++]=s[u++]}get buffer(){return this.typedBuffer.buffer}}class i{static{this.ElementCount=16}constructor(t,e,r=0,n,s){this.TypedArrayConstructor=t,this.elementCount=16;const i=this.TypedArrayConstructor;void 0===n&&(n=16*i.BYTES_PER_ELEMENT);const u=0===e.byteLength?0:r;this.typedBuffer=null==s?new i(e,u):new i(e,u,(s-r)/i.BYTES_PER_ELEMENT),this.typedBufferStride=n/i.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(t,e,r=this.count-e){const n=this.typedBuffer.byteOffset+e*this.stride;return new t(this.buffer,n,this.stride,n+r*this.stride)}getMat(t,e){let r=t*this.typedBufferStride;for(let t=0;t<16;t++)e[t]=this.typedBuffer[r++];return e}setMat(t,e){let r=t*this.typedBufferStride;for(let t=0;t<16;t++)this.typedBuffer[r++]=e[t]}get(t,e){return this.typedBuffer[t*this.typedBufferStride+e]}set(t,e,r){this.typedBuffer[t*this.typedBufferStride+e]=r}copyFrom(t,e,r){this.copyFromTypedBuffer(t,e.typedBuffer,r*e.typedBufferStride)}copyFromTypedBuffer(t,e,r){const n=this.typedBuffer;let s=t*this.typedBufferStride;for(let t=0;t<16;++t)n[s++]=e[r++]}get buffer(){return this.typedBuffer.buffer}}class u{static{this.ElementCount=1}constructor(t,e,r=0,n,s){this.TypedArrayConstructor=t,this.elementCount=1;const i=this.TypedArrayConstructor;void 0===n&&(n=i.BYTES_PER_ELEMENT);const u=0===e.byteLength?0:r;this.typedBuffer=null==s?new i(e,u):new i(e,u,(s-r)/i.BYTES_PER_ELEMENT),this.stride=n,this.typedBufferStride=n/i.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride)}sliceBuffer(t,e,r=this.count-e){const n=this.typedBuffer.byteOffset+e*this.stride;return new t(this.buffer,n,this.stride,n+r*this.stride)}get(t){return this.typedBuffer[t*this.typedBufferStride]}set(t,e){this.typedBuffer[t*this.typedBufferStride]=e}get buffer(){return this.typedBuffer.buffer}}var o=r(37585);class f{static{this.ElementCount=2}constructor(t,e,r=0,n,s){this.TypedArrayConstructor=t,this.start=r,this.elementCount=2;const i=this.TypedArrayConstructor;void 0===n&&(n=2*i.BYTES_PER_ELEMENT);const u=0===e.byteLength?0:r;this.typedBuffer=null==s?new i(e,u):new i(e,u,(s-r)/i.BYTES_PER_ELEMENT),this.typedBufferStride=n/i.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(t,e,r=this.count-e){const n=this.typedBuffer.byteOffset+e*this.stride;return new t(this.buffer,n,this.stride,n+r*this.stride)}getVec(t,e){return t*=this.typedBufferStride,(0,o.hZ)(e,this.typedBuffer[t],this.typedBuffer[t+1])}setVec(t,e){t*=this.typedBufferStride,this.typedBuffer[t++]=e[0],this.typedBuffer[t]=e[1]}get(t,e){return this.typedBuffer[t*this.typedBufferStride+e]}set(t,e,r){this.typedBuffer[t*this.typedBufferStride+e]=r}setValues(t,e,r){t*=this.typedBufferStride,this.typedBuffer[t++]=e,this.typedBuffer[t]=r}copyFrom(t,e,r){const n=this.typedBuffer,s=e.typedBuffer;let i=t*this.typedBufferStride,u=r*e.typedBufferStride;n[i++]=s[u++],n[i]=s[u]}get buffer(){return this.typedBuffer.buffer}}var c=r(38954);class a{static{this.ElementCount=3}constructor(t,e,r=0,n,s){this.TypedArrayConstructor=t,this.elementCount=3;const i=this.TypedArrayConstructor;void 0===n&&(n=3*i.BYTES_PER_ELEMENT);const u=0===e.byteLength?0:r;this.typedBuffer=null==s?new i(e,u):new i(e,u,(s-r)/i.BYTES_PER_ELEMENT),this.typedBufferStride=n/i.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(t,e,r=this.count-e){const n=this.typedBuffer.byteOffset+e*this.stride;return new t(this.buffer,n,this.stride,n+r*this.stride)}getVec(t,e){return t*=this.typedBufferStride,(0,c.j)(e,this.typedBuffer[t],this.typedBuffer[t+1],this.typedBuffer[t+2])}setVec(t,e){t*=this.typedBufferStride,this.typedBuffer[t++]=e[0],this.typedBuffer[t++]=e[1],this.typedBuffer[t]=e[2]}get(t,e){return this.typedBuffer[t*this.typedBufferStride+e]}set(t,e,r){this.typedBuffer[t*this.typedBufferStride+e]=r}setValues(t,e,r,n){t*=this.typedBufferStride,this.typedBuffer[t++]=e,this.typedBuffer[t++]=r,this.typedBuffer[t]=n}copyFrom(t,e,r){const n=this.typedBuffer,s=e.typedBuffer;let i=t*this.typedBufferStride,u=r*e.typedBufferStride;n[i++]=s[u++],n[i++]=s[u++],n[i]=s[u]}get buffer(){return this.typedBuffer.buffer}}var h=r(87317);class l{static{this.ElementCount=4}constructor(t,e,r=0,n,s){this.TypedArrayConstructor=t,this.start=r,this.elementCount=4;const i=this.TypedArrayConstructor;void 0===n&&(n=4*i.BYTES_PER_ELEMENT);const u=0===e.byteLength?0:r;this.typedBuffer=null==s?new i(e,u):new i(e,u,(s-r)/i.BYTES_PER_ELEMENT),this.typedBufferStride=n/i.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(t,e,r=this.count-e){const n=this.typedBuffer.byteOffset+e*this.stride;return new t(this.buffer,n,this.stride,n+r*this.stride)}getVec(t,e){return t*=this.typedBufferStride,(0,h.s)(e,this.typedBuffer[t++],this.typedBuffer[t++],this.typedBuffer[t++],this.typedBuffer[t])}setVec(t,e){t*=this.typedBufferStride,this.typedBuffer[t++]=e[0],this.typedBuffer[t++]=e[1],this.typedBuffer[t++]=e[2],this.typedBuffer[t]=e[3]}get(t,e){return this.typedBuffer[t*this.typedBufferStride+e]}set(t,e,r){this.typedBuffer[t*this.typedBufferStride+e]=r}setValues(t,e,r,n,s){t*=this.typedBufferStride,this.typedBuffer[t++]=e,this.typedBuffer[t++]=r,this.typedBuffer[t++]=n,this.typedBuffer[t]=s}copyFrom(t,e,r){const n=this.typedBuffer,s=e.typedBuffer;let i=t*this.typedBufferStride,u=r*e.typedBufferStride;n[i++]=s[u++],n[i++]=s[u++],n[i++]=s[u++],n[i]=s[u]}get buffer(){return this.typedBuffer.buffer}}var d=r(620);class p extends u{constructor(t,e=0,r,s){(0,d.vA)(n.SX),super((0,n.pX)(),t,e,r,s),this.elementType="f16"}static{this.ElementType="f16"}}class y extends u{constructor(t,e=0,r,n){super(Float32Array,t,e,r,n),this.elementType="f32"}static{this.ElementType="f32"}}class E extends f{constructor(t,e=0,r,s){(0,d.vA)(n.SX),super((0,n.pX)(),t,e,r,s),this.elementType="f16"}slice(t,e){return this.sliceBuffer(E,t,e)}static{this.ElementType="f16"}}class m extends f{constructor(t,e=0,r,n){super(Float32Array,t,e,r,n),this.elementType="f32"}slice(t,e){return this.sliceBuffer(m,t,e)}static{this.ElementType="f32"}}class B extends a{constructor(t,e=0,r,s){(0,d.vA)(n.SX),super((0,n.pX)(),t,e,r,s),this.elementType="f16"}slice(t,e){return this.sliceBuffer(B,t,e)}static{this.ElementType="f16"}}class T extends a{constructor(t,e=0,r,n){super(Float32Array,t,e,r,n),this.elementType="f32"}slice(t,e){return this.sliceBuffer(T,t,e)}static fromTypedArray(t,e){return new T(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}static{this.ElementType="f32"}}class _ extends l{constructor(t,e=0,r,s){(0,d.vA)(n.SX),super((0,n.pX)(),t,e,r,s),this.elementType="f16"}slice(t,e){return this.sliceBuffer(_,t,e)}static{this.ElementType="f16"}}class M extends l{constructor(t,e=0,r,n){super(Float32Array,t,e,r,n),this.elementType="f32"}slice(t,e){return this.sliceBuffer(M,t,e)}static{this.ElementType="f32"}}class S extends s{constructor(t,e=0,r,n){super(Float32Array,t,e,r,n),this.elementType="f32"}slice(t,e){return this.sliceBuffer(S,t,e)}static{this.ElementType="f32"}}class A extends s{constructor(t,e=0,r,n){super(Float64Array,t,e,r,n),this.elementType="f64"}slice(t,e){return this.sliceBuffer(A,t,e)}static{this.ElementType="f64"}}class g extends i{constructor(t,e=0,r,n){super(Float32Array,t,e,r,n),this.elementType="f32"}slice(t,e){return this.sliceBuffer(g,t,e)}static{this.ElementType="f32"}}class b extends i{constructor(t,e=0,r,n){super(Float64Array,t,e,r,n),this.elementType="f64"}slice(t,e){return this.sliceBuffer(b,t,e)}static{this.ElementType="f64"}}class N extends u{constructor(t,e=0,r,n){super(Float64Array,t,e,r,n),this.elementType="f64"}slice(t,e){return this.sliceBuffer(N,t,e)}static{this.ElementType="f64"}}class R extends f{constructor(t,e=0,r,n){super(Float64Array,t,e,r,n),this.elementType="f64"}slice(t,e){return this.sliceBuffer(R,t,e)}static{this.ElementType="f64"}}class I extends a{constructor(t,e=0,r,n){super(Float64Array,t,e,r,n),this.elementType="f64"}slice(t,e){return this.sliceBuffer(I,t,e)}static fromTypedArray(t,e){return new I(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}static{this.ElementType="f64"}}class v extends l{constructor(t,e=0,r,n){super(Float64Array,t,e,r,n),this.elementType="f64"}slice(t,e){return this.sliceBuffer(v,t,e)}static{this.ElementType="f64"}}class w extends u{constructor(t,e=0,r,n){super(Uint8Array,t,e,r,n),this.elementType="u8"}slice(t,e){return this.sliceBuffer(w,t,e)}static{this.ElementType="u8"}}class F extends f{constructor(t,e=0,r,n){super(Uint8Array,t,e,r,n),this.elementType="u8"}slice(t,e){return this.sliceBuffer(F,t,e)}static{this.ElementType="u8"}}class U extends a{constructor(t,e=0,r,n){super(Uint8Array,t,e,r,n),this.elementType="u8"}slice(t,e){return this.sliceBuffer(U,t,e)}static fromTypedArray(t,e){return new U(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}static{this.ElementType="u8"}}class C extends l{constructor(t,e=0,r,n){super(Uint8Array,t,e,r,n),this.elementType="u8"}slice(t,e){return this.sliceBuffer(C,t,e)}static{this.ElementType="u8"}}class x extends u{constructor(t,e=0,r,n){super(Uint16Array,t,e,r,n),this.elementType="u16"}slice(t,e){return this.sliceBuffer(x,t,e)}static{this.ElementType="u16"}}class O extends f{constructor(t,e=0,r,n){super(Uint16Array,t,e,r,n),this.elementType="u16"}slice(t,e){return this.sliceBuffer(O,t,e)}static{this.ElementType="u16"}}class P extends a{constructor(t,e=0,r,n){super(Uint16Array,t,e,r,n),this.elementType="u16"}slice(t,e){return this.sliceBuffer(P,t,e)}static{this.ElementType="u16"}}class G extends l{constructor(t,e=0,r,n){super(Uint16Array,t,e,r,n),this.elementType="u16"}slice(t,e){return this.sliceBuffer(G,t,e)}static{this.ElementType="u16"}}class L extends u{constructor(t,e=0,r,n){super(Uint32Array,t,e,r,n),this.elementType="u32"}slice(t,e){return this.sliceBuffer(L,t,e)}static{this.ElementType="u32"}}class D extends f{constructor(t,e=0,r,n){super(Uint32Array,t,e,r,n),this.elementType="u32"}slice(t,e){return this.sliceBuffer(D,t,e)}static{this.ElementType="u32"}}class Y extends a{constructor(t,e=0,r,n){super(Uint32Array,t,e,r,n),this.elementType="u32"}slice(t,e){return this.sliceBuffer(Y,t,e)}static{this.ElementType="u32"}}class H extends l{constructor(t,e=0,r,n){super(Uint32Array,t,e,r,n),this.elementType="u32"}slice(t,e){return this.sliceBuffer(H,t,e)}static{this.ElementType="u32"}}class X extends u{constructor(t,e=0,r,n){super(Int8Array,t,e,r,n),this.elementType="i8"}slice(t,e){return this.sliceBuffer(X,t,e)}static{this.ElementType="i8"}}class q extends f{constructor(t,e=0,r,n){super(Int8Array,t,e,r,n),this.elementType="i8"}slice(t,e){return this.sliceBuffer(q,t,e)}static{this.ElementType="i8"}}class z extends a{constructor(t,e=0,r,n){super(Int8Array,t,e,r,n),this.elementType="i8"}slice(t,e){return this.sliceBuffer(z,t,e)}static{this.ElementType="i8"}}class j extends l{constructor(t,e=0,r,n){super(Int8Array,t,e,r,n),this.elementType="i8"}slice(t,e){return this.sliceBuffer(j,t,e)}static{this.ElementType="i8"}}class V extends u{constructor(t,e=0,r,n){super(Int16Array,t,e,r,n),this.elementType="i16"}slice(t,e){return this.sliceBuffer(V,t,e)}static{this.ElementType="i16"}}class k extends f{constructor(t,e=0,r,n){super(Int16Array,t,e,r,n),this.elementType="i16"}slice(t,e){return this.sliceBuffer(k,t,e)}static{this.ElementType="i16"}}class $ extends a{constructor(t,e=0,r,n){super(Int16Array,t,e,r,n),this.elementType="i16"}slice(t,e){return this.sliceBuffer($,t,e)}static{this.ElementType="i16"}}class W extends l{constructor(t,e=0,r,n){super(Int16Array,t,e,r,n),this.elementType="i16"}slice(t,e){return this.sliceBuffer(W,t,e)}static{this.ElementType="i16"}}class Z extends u{constructor(t,e=0,r,n){super(Int32Array,t,e,r,n),this.elementType="i32"}slice(t,e){return this.sliceBuffer(Z,t,e)}static{this.ElementType="i32"}}class J extends f{constructor(t,e=0,r,n){super(Int32Array,t,e,r,n),this.elementType="i32"}slice(t,e){return this.sliceBuffer(J,t,e)}static{this.ElementType="i32"}}class Q extends a{constructor(t,e=0,r,n){super(Int32Array,t,e,r,n),this.elementType="i32"}slice(t,e){return this.sliceBuffer(Q,t,e)}static{this.ElementType="i32"}}class K extends l{constructor(t,e=0,r,n){super(Int32Array,t,e,r,n),this.elementType="i32"}slice(t,e){return this.sliceBuffer(K,t,e)}static{this.ElementType="i32"}}},20498:(t,e,r)=>{r.d(e,{SX:()=>i,pX:()=>s});let n=globalThis.Float16Array;function s(){return n}let i=!!n},34304:(t,e,r)=>{r.d(e,{DF:()=>f,FD:()=>s,Ov:()=>i,ct:()=>c});let n=1e-6;function s(){return n}const i=Math.random,u=Math.PI/180,o=180/Math.PI;function f(t){return t*u}function c(t){return t*o}Object.freeze(Object.defineProperty({__proto__:null,RANDOM:i,equals:function(t,e){return Math.abs(t-e)<=n*Math.max(1,Math.abs(t),Math.abs(e))},getEpsilon:s,setEpsilon:function(t){n=t},toDegree:c,toRadian:f},Symbol.toStringTag,{value:"Module"}))},34727:(t,e,r)=>{r.d(e,{$8:()=>A,Cc:()=>u,Hx:()=>y,Io:()=>M,KJ:()=>c,OS:()=>N,Sp:()=>l,XM:()=>a,YN:()=>h,ZH:()=>p,b6:()=>S,cU:()=>s,gg:()=>d,hs:()=>o,kU:()=>f,or:()=>b,pF:()=>I,pq:()=>R,qE:()=>i});const n=new Float32Array(1);function s(t){--t;for(let e=1;e<32;e<<=1)t|=t>>e;return t+1}function i(t,e,r){return Math.min(Math.max(t,e),r)}function u(t,e,r){return t+(e-t)*r}function o(t,e,r,n,s){return u(n,s,(t-e)/(r-e))}function f(t){return t*Math.PI/180}function c(t){return 180*t/Math.PI}function a(t){return Math.acos(i(t,-1,1))}function h(t){return Math.asin(i(t,-1,1))}function l(t,e,r=1e-6){return t===e||!(!Number.isFinite(t)||!Number.isFinite(e))&&(t>e?t-e:e-t)<=r}function d(t,e,r=1e-6){return!l(t,e,r)&&t>e}function p(t,e,r=1e-6){return!l(t,e,r)&&t<e}function y(t,e,r=1e-6){return l(t,e,r)||t>e}const E=new DataView(new ArrayBuffer(Float64Array.BYTES_PER_ELEMENT));function m(t){return E.setFloat64(0,t),E.getBigInt64(0)}const B=1000000n,T=_(1);function _(t){const e=m(t=Math.abs(t)),r=function(t){return E.setBigInt64(0,t),E.getFloat64(0)}(e<=B?B:e-B);return Math.abs(t-r)}function M(t,e,r=T){if(t===e)return!0;if(!Number.isFinite(t)||!Number.isFinite(e))return!1;if(null!=r&&_(Math.min(Math.abs(t),Math.abs(e)))<r)return Math.abs(t-e)<=r;const n=m(t),s=m(e);return n<0==s<0&&!((n<s?s-n:n-s)>B)}function S(t,e,r=1e-6){if(t===e)return!0;if(!Number.isFinite(t)||!Number.isFinite(e))return!1;const n=Math.abs(t-e),s=Math.abs(t),i=Math.abs(e);if(0===t||0===e||s<1e-12&&i<1e-12){if(n>.01*r)return!1}else if(n/(s+i)>r)return!1;return!0}function A(t){return g(Math.max(-R,Math.min(t,R)))}function g(t){return n[0]=t,n[0]}function b(t){const e=t[0]*t[0]+t[1]*t[1]+t[2]*t[2],r=t[3]*t[3]+t[4]*t[4]+t[5]*t[5],n=t[6]*t[6]+t[7]*t[7]+t[8]*t[8];return!(l(e,1)&&l(r,1)&&l(n,1))}function N(t,e){return(t%e+e)%e}const R=g(34028234663852886e22);function I(t,e,r){if(void 0===r||0===+r)return Math[t](e);if(e=+e,r=+r,isNaN(e)||"number"!=typeof r||r%1!=0)return NaN;let n=e.toString().split("e");return n=(e=Math[t](+(n[0]+"e"+(n[1]?+n[1]-r:-r)))).toString().split("e"),+(n[0]+"e"+(n[1]?+n[1]+r:r))}},37585:(t,e,r)=>{r.d(e,{C:()=>s,Cc:()=>E,Io:()=>h,S8:()=>y,WQ:()=>u,aI:()=>_,e$:()=>B,hG:()=>l,hZ:()=>i,hs:()=>a,jb:()=>S,l0:()=>m,t2:()=>T});var n=r(34304);function s(t,e){return t[0]=e[0],t[1]=e[1],t}function i(t,e,r){return t[0]=e,t[1]=r,t}function u(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t}function o(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t}function f(t,e,r){return t[0]=e[0]*r[0],t[1]=e[1]*r[1],t}function c(t,e,r){return t[0]=e[0]/r[0],t[1]=e[1]/r[1],t}function a(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t}function h(t,e){const r=e[0]-t[0],n=e[1]-t[1];return Math.sqrt(r*r+n*n)}function l(t,e){const r=e[0]-t[0],n=e[1]-t[1];return r*r+n*n}function d(t){const e=t[0],r=t[1];return Math.sqrt(e*e+r*r)}function p(t){const e=t[0],r=t[1];return e*e+r*r}function y(t,e){const r=e[0],n=e[1];let s=r*r+n*n;return s>0&&(s=1/Math.sqrt(s),t[0]=e[0]*s,t[1]=e[1]*s),t}function E(t,e,r,n){const s=e[0],i=e[1];return t[0]=s+n*(r[0]-s),t[1]=i+n*(r[1]-i),t}function m(t,e,r){const n=e[0],s=e[1];return t[0]=r[0]*n+r[2]*s+r[4],t[1]=r[1]*n+r[3]*s+r[5],t}function B(t,e,r,n){const s=e[0]-r[0],i=e[1]-r[1],u=Math.sin(n),o=Math.cos(n);return t[0]=s*o-i*u+r[0],t[1]=s*u+i*o+r[1],t}function T(t,e){return t[0]===e[0]&&t[1]===e[1]}function _(t,e){const r=t[0],s=t[1],i=e[0],u=e[1],o=(0,n.FD)();return Math.abs(r-i)<=o*Math.max(1,Math.abs(r),Math.abs(i))&&Math.abs(s-u)<=o*Math.max(1,Math.abs(s),Math.abs(u))}const M=d,S=o,A=f,g=c,b=h,N=l,R=p;Object.freeze(Object.defineProperty({__proto__:null,add:u,angle:function(t,e){const r=t[0],n=t[1],s=e[0],i=e[1];let u=r*r+n*n;u>0&&(u=1/Math.sqrt(u));let o=s*s+i*i;o>0&&(o=1/Math.sqrt(o));const f=(r*s+n*i)*u*o;return f>1?0:f<-1?Math.PI:Math.acos(f)},ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t},copy:s,cross:function(t,e,r){const n=e[0]*r[1]-e[1]*r[0];return t[0]=t[1]=0,t[2]=n,t},dist:b,distance:h,div:g,divide:c,dot:function(t,e){return t[0]*e[0]+t[1]*e[1]},equals:_,exactEquals:T,floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t},inverse:function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t},len:M,length:d,lerp:E,max:function(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t},min:function(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t},mul:A,multiply:f,negate:function(t,e){return t[0]=-e[0],t[1]=-e[1],t},normalize:y,projectAndScale:function(t,e,r,n,s){let i=e[0]-r[0],u=e[1]-r[1];const o=(n[0]*i+n[1]*u)*(s-1);return i=n[0]*o,u=n[1]*o,t[0]=e[0]+i,t[1]=e[1]+u,t},random:function(t,e=1){const r=2*(0,n.Ov)()*Math.PI;return t[0]=Math.cos(r)*e,t[1]=Math.sin(r)*e,t},rotate:B,round:function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t},scale:a,scaleAndAdd:function(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t},set:i,sqrDist:N,sqrLen:R,squaredDistance:l,squaredLength:p,str:function(t){return"vec2("+t[0]+", "+t[1]+")"},sub:S,subtract:o,transformMat2:function(t,e,r){const n=e[0],s=e[1];return t[0]=r[0]*n+r[2]*s,t[1]=r[1]*n+r[3]*s,t},transformMat2d:m,transformMat3:function(t,e,r){const n=e[0],s=e[1];return t[0]=r[0]*n+r[3]*s+r[6],t[1]=r[1]*n+r[4]*s+r[7],t},transformMat4:function(t,e,r){const n=e[0],s=e[1];return t[0]=r[0]*n+r[4]*s+r[12],t[1]=r[1]*n+r[5]*s+r[13],t}},Symbol.toStringTag,{value:"Module"}))},38954:(t,e,r)=>{r.d(e,{A:()=>p,B:()=>d,C:()=>a,D:()=>h,E:()=>C,F:()=>G,H:()=>D,a:()=>x,b:()=>i,c:()=>m,d:()=>u,e:()=>c,f:()=>g,g:()=>f,h:()=>E,i:()=>b,j:()=>o,k:()=>B,l:()=>N,m:()=>_,n:()=>A,o:()=>I,q:()=>U,r:()=>S,s:()=>T,t:()=>R,u:()=>M,v:()=>v,w:()=>l,x:()=>L,y:()=>Y,z:()=>y});var n=r(51850),s=r(34304);function i(t){const e=t[0],r=t[1],n=t[2];return Math.sqrt(e*e+r*r+n*n)}function u(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function o(t,e,r,n){return t[0]=e,t[1]=r,t[2]=n,t}function f(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t}function c(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2],t}function a(t,e,r){return t[0]=e[0]*r[0],t[1]=e[1]*r[1],t[2]=e[2]*r[2],t}function h(t,e,r){return t[0]=e[0]/r[0],t[1]=e[1]/r[1],t[2]=e[2]/r[2],t}function l(t,e){return t[0]=Math.abs(e[0]),t[1]=Math.abs(e[1]),t[2]=Math.abs(e[2]),t}function d(t,e){return t[0]=Math.sign(e[0]),t[1]=Math.sign(e[1]),t[2]=Math.sign(e[2]),t}function p(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t[2]=Math.min(e[2],r[2]),t}function y(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t[2]=Math.max(e[2],r[2]),t}function E(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t}function m(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t[2]=e[2]+r[2]*n,t}function B(t,e){const r=e[0]-t[0],n=e[1]-t[1],s=e[2]-t[2];return Math.sqrt(r*r+n*n+s*s)}function T(t,e){const r=e[0]-t[0],n=e[1]-t[1],s=e[2]-t[2];return r*r+n*n+s*s}function _(t){const e=t[0],r=t[1],n=t[2];return e*e+r*r+n*n}function M(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}function S(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}function A(t,e){const r=e[0],n=e[1],s=e[2];let i=r*r+n*n+s*s;return i>0&&(i=1/Math.sqrt(i),t[0]=e[0]*i,t[1]=e[1]*i,t[2]=e[2]*i),t}function g(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function b(t,e,r){const n=e[0],s=e[1],i=e[2],u=r[0],o=r[1],f=r[2];return t[0]=s*f-i*o,t[1]=i*u-n*f,t[2]=n*o-s*u,t}function N(t,e,r,n){const s=e[0],i=e[1],u=e[2];return t[0]=s+n*(r[0]-s),t[1]=i+n*(r[1]-i),t[2]=u+n*(r[2]-u),t}function R(t,e,r){const n=e[0],s=e[1],i=e[2];return t[0]=r[0]*n+r[4]*s+r[8]*i+r[12],t[1]=r[1]*n+r[5]*s+r[9]*i+r[13],t[2]=r[2]*n+r[6]*s+r[10]*i+r[14],t}function I(t,e,r){const n=e[0],s=e[1],i=e[2];return t[0]=n*r[0]+s*r[3]+i*r[6],t[1]=n*r[1]+s*r[4]+i*r[7],t[2]=n*r[2]+s*r[5]+i*r[8],t}function v(t,e,r){const n=r[0],s=r[1],i=r[2],u=r[3],o=e[0],f=e[1],c=e[2],a=s*c-i*f,h=i*o-n*c,l=n*f-s*o,d=s*l-i*h,p=i*a-n*l,y=n*h-s*a,E=2*u;return t[0]=o+a*E+2*d,t[1]=f+h*E+2*p,t[2]=c+l*E+2*y,t}const w=(0,n.vt)(),F=(0,n.vt)();function U(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function C(t,e,r){const n=r[0]-e[0],s=r[1]-e[1],i=r[2]-e[2];let u=n*n+s*s+i*i;return u>0?(u=1/Math.sqrt(u),t[0]=n*u,t[1]=s*u,t[2]=i*u,t):(t[0]=0,t[1]=0,t[2]=0,t)}const x=c,O=a,P=h,G=B,L=T,D=i,Y=_;Object.freeze(Object.defineProperty({__proto__:null,abs:l,add:f,angle:function(t,e){A(w,t),A(F,e);const r=g(w,F);return r>1?0:r<-1?Math.PI:Math.acos(r)},bezier:function(t,e,r,n,s,i){const u=1-i,o=u*u,f=i*i,c=o*u,a=3*i*o,h=3*f*u,l=f*i;return t[0]=e[0]*c+r[0]*a+n[0]*h+s[0]*l,t[1]=e[1]*c+r[1]*a+n[1]*h+s[1]*l,t[2]=e[2]*c+r[2]*a+n[2]*h+s[2]*l,t},ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t},clamp:function(t,e=0,r=1){return t[0]=Math.min(Math.max(t[0],e),r),t[1]=Math.min(Math.max(t[1],e),r),t[2]=Math.min(Math.max(t[2],e),r),t},copy:u,cross:b,crossAndNormalize:function(t,e,r){const n=e[0],s=e[1],i=e[2],u=r[0],o=r[1],f=r[2],c=s*f-i*o,a=i*u-n*f,h=n*o-s*u,l=Math.sqrt(c*c+a*a+h*h);return t[0]=c/l,t[1]=a/l,t[2]=h/l,t},direction:C,dist:G,distance:B,div:P,divide:h,dot:g,equals:function(t,e){if(t===e)return!0;const r=t[0],n=t[1],i=t[2],u=e[0],o=e[1],f=e[2],c=(0,s.FD)();return Math.abs(r-u)<=c*Math.max(1,Math.abs(r),Math.abs(u))&&Math.abs(n-o)<=c*Math.max(1,Math.abs(n),Math.abs(o))&&Math.abs(i-f)<=c*Math.max(1,Math.abs(i),Math.abs(f))},exactEquals:U,floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t},hermite:function(t,e,r,n,s,i){const u=i*i,o=u*(2*i-3)+1,f=u*(i-2)+i,c=u*(i-1),a=u*(3-2*i);return t[0]=e[0]*o+r[0]*f+n[0]*c+s[0]*a,t[1]=e[1]*o+r[1]*f+n[1]*c+s[1]*a,t[2]=e[2]*o+r[2]*f+n[2]*c+s[2]*a,t},inverse:S,len:D,length:i,lerp:N,max:y,min:p,mul:O,multiply:a,negate:M,normalize:A,random:function(t,e=1){const r=s.Ov,n=2*r()*Math.PI,i=2*r()-1,u=Math.sqrt(1-i*i)*e;return t[0]=Math.cos(n)*u,t[1]=Math.sin(n)*u,t[2]=i*e,t},rotateX:function(t,e,r,n){const s=[],i=[];return s[0]=e[0]-r[0],s[1]=e[1]-r[1],s[2]=e[2]-r[2],i[0]=s[0],i[1]=s[1]*Math.cos(n)-s[2]*Math.sin(n),i[2]=s[1]*Math.sin(n)+s[2]*Math.cos(n),t[0]=i[0]+r[0],t[1]=i[1]+r[1],t[2]=i[2]+r[2],t},rotateY:function(t,e,r,n){const s=[],i=[];return s[0]=e[0]-r[0],s[1]=e[1]-r[1],s[2]=e[2]-r[2],i[0]=s[2]*Math.sin(n)+s[0]*Math.cos(n),i[1]=s[1],i[2]=s[2]*Math.cos(n)-s[0]*Math.sin(n),t[0]=i[0]+r[0],t[1]=i[1]+r[1],t[2]=i[2]+r[2],t},rotateZ:function(t,e,r,n){const s=[],i=[];return s[0]=e[0]-r[0],s[1]=e[1]-r[1],s[2]=e[2]-r[2],i[0]=s[0]*Math.cos(n)-s[1]*Math.sin(n),i[1]=s[0]*Math.sin(n)+s[1]*Math.cos(n),i[2]=s[2],t[0]=i[0]+r[0],t[1]=i[1]+r[1],t[2]=i[2]+r[2],t},round:function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t},scale:E,scaleAndAdd:m,set:o,sign:d,sqrDist:L,sqrLen:Y,squaredDistance:T,squaredLength:_,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:x,subtract:c,transformMat3:I,transformMat4:R,transformQuat:v},Symbol.toStringTag,{value:"Module"}))},48163:(t,e,r)=>{function n(){return[0,0]}function s(t){return[t[0],t[1]]}function i(t,e){return[t,e]}function u(){return i(1,1)}function o(){return i(1,0)}function f(){return i(0,1)}r.d(e,{Un:()=>c,fA:()=>i,o8:()=>s,vt:()=>n});const c=u(),a=o(),h=f();Object.freeze(Object.defineProperty({__proto__:null,ONES:c,UNIT_X:a,UNIT_Y:h,ZEROS:[0,0],clone:s,create:n,freeze:function(t,e){return[t,e]},fromArray:function(t,e=[0,0]){const r=Math.min(2,t.length);for(let n=0;n<r;++n)e[n]=t[n];return e},fromValues:i,ones:u,unitX:o,unitY:f,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"}))},51850:(t,e,r)=>{function n(){return[0,0,0]}function s(t){return[t[0],t[1],t[2]]}function i(t,e,r){return[t,e,r]}function u(t,e,r){return[t,e,r]}function o(t,e=[0,0,0]){const r=Math.min(3,t.length);for(let n=0;n<r;++n)e[n]=t[n];return e}function f(){return i(1,1,1)}function c(){return i(1,0,0)}function a(){return i(0,1,0)}function h(){return i(0,0,1)}r.d(e,{CN:()=>u,Cb:()=>E,Cw:()=>p,JP:()=>y,Un:()=>d,ci:()=>o,fA:()=>i,o8:()=>s,uY:()=>l,vt:()=>n});const l=[0,0,0],d=f(),p=c(),y=a(),E=h();Object.freeze(Object.defineProperty({__proto__:null,ONES:d,UNIT_X:p,UNIT_Y:y,UNIT_Z:E,ZEROS:l,clone:s,create:n,freeze:u,fromArray:o,fromValues:i,ones:f,unitX:c,unitY:a,unitZ:h,zeros:function(){return[0,0,0]}},Symbol.toStringTag,{value:"Module"}))},63907:(t,e,r)=>{r.d(e,{$0:()=>h,CQ:()=>E,Fq:()=>p,H0:()=>i,SB:()=>f,WR:()=>n,XN:()=>u,iE:()=>o,ld:()=>c,nI:()=>y,pe:()=>s,r6:()=>l,vt:()=>a,yI:()=>d});const n={POINTS:0,LINES:1,LINE_LOOP:2,LINE_STRIP:3,TRIANGLES:4,TRIANGLE_STRIP:5,TRIANGLE_FAN:6},s={BYTE:5120,UNSIGNED_BYTE:5121,SHORT:5122,UNSIGNED_SHORT:5123,INT:5124,UNSIGNED_INT:5125,FLOAT:5126,HALF_FLOAT:5131},i={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},u=Object.values(i),o={DEPTH24_STENCIL8:35056,DEPTH32F_STENCIL8:36013},f={DEPTH_COMPONENT16:33189,DEPTH_COMPONENT24:33190,DEPTH_COMPONENT32F:36012},c={FLOAT:s.FLOAT,UNSIGNED_BYTE:s.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:s.BYTE,UNSIGNED_SHORT:s.UNSIGNED_SHORT,SHORT:s.SHORT,UNSIGNED_INT:s.UNSIGNED_INT,INT:s.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},a={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},h=0,l=36064,d=36065,p=36066,y=33306,E={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}},74038:(t,e,r)=>{r.d(e,{_:()=>n});class n{constructor(t,e,r,n,s,i=!1,u=0){this.name=t,this.count=e,this.type=r,this.offset=n,this.stride=s,this.normalized=i,this.divisor=u}}},85079:(t,e,r)=>{r.d(e,{Xk:()=>s,_u:()=>i});var n=r(21818);function s(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 i(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})},93406:(t,e,r)=>{r.d(e,{K:()=>f});var n=r(34727),s=r(15142),i=r(38954),u=r(51850);const o=-1;function f(t,e,r){const n=t.vertices.position,s=t.vertices.componentIndex,u=y.position0,f=y.position1,h=y.faceNormal0,d=y.faceNormal1,{edges:p,normals:E}=a(t),m=p.length/4,B=e.allocate(m);let T=0;const _=m,A=r?.allocate(_);let b=0,N=0,R=0;l.length=0;for(let t=0;t<m;++t){const e=4*t;n.getVec(p.data[e],u),n.getVec(p.data[e+1],f);const r=l.pushNew();r.index=4*t,r.length=(0,i.k)(u,f)}l.sort((t,e)=>e.length-t.length);const I=new Array,v=new Array;l.forAll(({length:t,index:a})=>{const l=p.data[a],m=p.data[a+1],_=p.data[a+2],w=p.data[a+3],F=w===o;if(n.getVec(l,u),n.getVec(m,f),F){const t=3*_;(0,i.j)(h,E.data[t],E.data[t+1],E.data[t+2]),(0,i.d)(d,h),y.componentIndex=s.get(l),y.cosAngle=(0,i.f)(h,d)}else{let t=3*_;if((0,i.j)(h,E.data[t],E.data[t+1],E.data[t+2]),t=3*w,(0,i.j)(d,E.data[t],E.data[t+1],E.data[t+2]),y.componentIndex=s.get(l),y.cosAngle=(0,i.f)(h,d),function(t,e){return t.cosAngle>e}(y,S))return;y.cosAngle<-.9999&&(0,i.d)(d,h)}N+=t,R++,F||function(t,e){return t.cosAngle<e}(y,g)?(e.write(B,T++,y),I.push(t)):c(y,M)&&(A&&r&&r.write(A,b++,y),v.push(t))});const w=new Float32Array(I.reverse()),F=new Float32Array(v.reverse()),U=A&&r?{instancesData:A.slice(0,b),lodInfo:{lengths:F}}:void 0;return{regular:{instancesData:B.slice(0,T),lodInfo:{lengths:w}},silhouette:U,averageEdgeLength:N/R}}function c(t,e){const r=(0,n.XM)(t.cosAngle);return(0,i.E)(m,t.position1,t.position0),r*((0,i.f)((0,i.i)(E,t.faceNormal0,t.faceNormal1),m)>0?-1:1)>e}function a(t){const e=t.faces.length/3,r=t.faces,n=t.neighbors,s=t.vertices.position;d.length=p.length=0;for(let t=0;t<e;t++){const e=3*t,u=n[e],f=n[e+1],c=n[e+2],a=r[e],h=r[e+1],l=r[e+2];s.getVec(a,B),s.getVec(h,T),s.getVec(l,_),(0,i.e)(T,T,B),(0,i.e)(_,_,B),(0,i.i)(B,T,_),(0,i.n)(B,B),p.pushArray(B),(u===o||a<h)&&(d.push(a),d.push(h),d.push(t),d.push(u)),(f===o||h<l)&&(d.push(h),d.push(l),d.push(t),d.push(f)),(c===o||l<a)&&(d.push(l),d.push(a),d.push(t),d.push(c))}return{edges:d,normals:p}}class h{constructor(){this.index=0,this.length=0}}const l=new s.A({allocator:t=>t||new h,deallocator:null}),d=new s.A({deallocator:null}),p=new s.A({deallocator:null}),y=new class{constructor(){this.position0=(0,u.vt)(),this.position1=(0,u.vt)(),this.faceNormal0=(0,u.vt)(),this.faceNormal1=(0,u.vt)(),this.componentIndex=0,this.cosAngle=0}},E=(0,u.vt)(),m=(0,u.vt)(),B=(0,u.vt)(),T=(0,u.vt)(),_=(0,u.vt)(),M=(0,n.kU)(4),S=Math.cos(M),A=(0,n.kU)(35),g=Math.cos(A)},97146:(t,e,r)=>{r.d(e,{Dg:()=>i,my:()=>u,tM:()=>a,uW:()=>s});var n=r(34275);function s(t){return i(t,!0)}function i(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,s=!0;return t.some((t,e)=>(r=r&&0===t,s=s&&t===e,!r&&!s)),r?function(t){if(1===t)return f;if(t<n.y9)return new Array(t).fill(0);if(t>l.length){const e=Math.max(2*l.length,t);l=new Uint8Array(e)}return new Uint8Array(l.buffer,0,t)}(t.length):s?a(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 u(t){return t<=n.y9?new Array(t):t<=65536?new Uint16Array(t):new Uint32Array(t)}let o=h(131072);const f=[0],c=(()=>{const t=new Uint16Array(65536);for(let e=0;e<t.length;++e)t[e]=e;return t})();function a(t){return 1===t?f:t<n.y9?Array.from(new Uint16Array(c.buffer,0,t)):t<c.length?new Uint16Array(c.buffer,0,t):(t>o.length&&(o=h(Math.max(2*o.length,t))),new Uint32Array(o.buffer,0,t))}function h(t){const e=new Uint32Array(t);for(let t=0;t<e.length;t++)e[t]=t;return e}let l=new Uint8Array(65536)}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5141],{5141:(e,t,l)=>{l.r(t),l.d(t,{build:()=>s.b}),l(32680),l(76591),l(76597),l(24321),l(60864),l(43519),l(96336),l(71955),l(53466),l(92700),l(72824),l(35640),l(40261),l(77695),l(65836),l(89390),l(98619),l(62602),l(22393),l(59469),l(32482),l(96598),l(51406),l(42398),l(58614),l(27950),l(25178),l(33079),l(71988),l(20304),l(31821),l(63761),l(10906),l(43616),l(60517),l(14113);var s=l(28491)}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5141],{5141:(e,t,l)=>{l.r(t),l.d(t,{build:()=>s.b}),l(32680),l(76591),l(76597),l(24321),l(60864),l(43519),l(96336),l(71955),l(53466),l(92700),l(72824),l(35640),l(40261),l(77695),l(14527),l(89390),l(98619),l(62602),l(22393),l(59469),l(32482),l(96598),l(51406),l(42398),l(58614),l(27950),l(25178),l(33079),l(71988),l(20304),l(31821),l(63761),l(10906),l(43616),l(60517),l(14113);var s=l(28491)}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9926],{18047:(e,t,n)=>{n.d(t,{Up:()=>u,ZV:()=>s,yx:()=>l});var r=n(73444);const i={ar:"ar-u-nu-latn",bs:"sr-Latn-CS",nn:"no-NN"};let a=new WeakMap,o={};function l(e={}){const t={};return null!=e.digitSeparator&&(t.useGrouping=e.digitSeparator),null!=e.places&&(t.minimumFractionDigits=t.maximumFractionDigits=e.places),t}function u(e){const{minimumFractionDigits:t,maximumFractionDigits:n,useGrouping:r}=e;return{minimumFractionDigits:t,maximumFractionDigits:n,useGrouping:"auto"===r?"auto":"always"===r}}function s(e,t){return Object.is(e,-0)&&(e=0),function(e){const t=e||o;if(!a.has(t)){const n=(0,r.lR)(),o=n&&i[n]||(0,r.QC)();a.set(t,new Intl.NumberFormat(o,e))}return a.get(t)}(t).format(e)}(0,r.Ml)(()=>{a=new WeakMap,o={}}),new Map},29926:(e,t,n)=>{n.r(t),n.d(t,{applyTextFormattingHTML:()=>K,createFieldInfoMap:()=>_,findRelatedLayer:()=>se,findUtilityNetwork:()=>fe,fixTokens:()=>S,formatAttributes:()=>ee,formatEditInfo:()=>W,formatValueToFieldInfo:()=>V,getAllFieldInfos:()=>Y,getFieldFormat:()=>q,getFieldInfo:()=>P,getFieldInfoLabel:()=>v,getFixedFieldName:()=>R,getFixedFieldNames:()=>E,getSourceLayer:()=>L,graphicCallback:()=>x,htmlEntities:()=>B,isAssociatedFeatureSupportedLayer:()=>H,isExpressionField:()=>A,isFeatureSupportedLayer:()=>G,isGraphicForRelatableFeatureSupportedLayer:()=>Q,isRelatableFeatureSupportedLayer:()=>z,isRelatableLayer:()=>O,isRelatedField:()=>re,isSupportedContext:()=>Z,preLayerQueryCallback:()=>le,preRequestCallback:()=>ue,querySourceLayer:()=>te,queryUpdatedFeature:()=>ne,shouldOpenInNewTab:()=>k,substituteAttributes:()=>D,substituteFieldsInLinksAndAttributes:()=>U});var r=n(44208),i=n(53966),a=n(799),o=n(97770),l=n(18047),u=n(39663),s=n(30524),f=n(77548),d=n(4560),c=n(43668),p=n(56400);const y=()=>i.A.getLogger("esri.widgets.Feature.support.featureUtils"),m=/href=(""|'')/gi,g=/(\{([^{\r\n]+)\})/g,b=/'/g,I=/^\s*expression\//i,F=/(\n)/gi,h=/[\u00A0-\u9999<>&]/gim,w=/href\s*=\s*(?:"([^"]+)"|'([^']+)')/gi,T=/^(?:mailto:|tel:)/,N="relationships/",C=(0,o.J2)("short-date-short-time");function L(e){if(null!=e)return(e.sourceLayer||e.layer)??void 0}async function x({type:e,value:t,event:n}){try{return"function"==typeof t?t(n):await t}catch(r){return void y().error("error",`An error occurred when calling the "${e}" function`,{error:r,graphic:n.graphic,value:t})}}function k(e=""){if(e)return!T.test(e.trim().toLowerCase())}function A(e){return!!e&&I.test(e)}function Z({fieldInfo:e,graphic:t}){return!(!e?.fieldName||A(e.fieldName)||re(e.fieldName)||t?.isAggregate||t?.popupTemplate)}function v({expressionInfos:e,fieldInfo:t,graphic:n,isContentFieldInfos:r,layer:i}){if(!t?.fieldName)return null;const a=function(e,t){if(!t||!A(t)||!e)return;const n=t.replace(I,"").toLowerCase();return e.find(({name:e})=>e.toLowerCase()===n)}(e,t.fieldName);if(a)return a.title||null;if((0,f.jy)(i)&&Z({fieldInfo:t,graphic:n})){const e=i.getFieldAlias(t.fieldName);return r?t.label||e||t.fieldName:e||t.fieldName}return t.label||t.fieldName}function q({fieldInfo:e,isContentFieldInfos:t,layer:n}){if(!e?.fieldName)return null;if((0,f.jy)(n)){const r=n.popupTemplate||n.fieldConfigurations?n.getFieldConfiguration(e.fieldName)?.fieldFormat:(0,u.iu)(e,n.getField(e.fieldName));return t&&e.fieldFormat||r}return null}function R(e,t){const n=M(t,e);return n?n.name:e}function E(e,t){return e&&e.map(e=>R(e,t))}function M(e,t){return e&&"function"==typeof e.getField&&t?e.getField(t)??null:null}function j(e){return`${e}`.trim()}function U({attributes:e,globalAttributes:t,layer:n,text:r,expressionAttributes:i,fieldInfoMap:a}){return r?D({formattedAttributes:t,template:$(r,{...t,...i,...e},n),fieldInfoMap:a}):""}function D({formattedAttributes:e,template:t,fieldInfoMap:n}){return j(function(e){return e.replaceAll(m,"")}((0,a.HC)((0,a.HC)(t,e=>function(e,t){const n=t.get(e.toLowerCase());return`{${n?.fieldName||e}}`}(e,n)),e)))}function S(e,t){return e.replaceAll(g,(e,n,r)=>{const i=M(t,r);return i?`{${i.name}}`:n})}function $(e,t,n){const r=S(e,n);return r?r.replaceAll(w,(e,n,r)=>function(e,t,n){const r=(t=j(t))&&!t.startsWith("{");return(0,a.HC)(e,function(e,t=!1){const n={...e};return Object.keys(n).forEach(e=>function(e,t,n=!1){const r=t[e];if("string"==typeof r){const i="%27",a=(n?encodeURIComponent(r):r).replaceAll(b,i);t[e]=a}}(e,n,t)),n}(n,r||!1))}(e,n||r,t)):r}function G(e){return null!=e&&"object"==typeof e&&"fieldsIndex"in e&&"geometryType"in e&&"getField"in e&&"load"in e&&"loaded"in e&&"objectIdField"in e&&"spatialReference"in e&&"type"in e&&("feature"===e.type||"scene"===e.type||"subtype-group"===e.type||"subtype-sublayer"===e.type||"sublayer"===e.type)&&"when"in e}function O(e){return null!=e&&"object"==typeof e&&"createQuery"in e&&"queryFeatureCount"in e&&"queryObjectIds"in e&&"queryRelatedFeatures"in e&&"queryRelatedFeaturesCount"in e&&"relationships"in e}function z(e){return G(e)&&O(e)}function H(e){return!(!(e&&"object"==typeof e&&"createQuery"in e&&"getField"in e&&"queryFeatureCount"in e&&"queryFeatures"in e&&"queryObjectIds"in e&&"capabilities"in e&&"fields"in e&&"fieldsIndex"in e&&"type"in e)||"feature"!==e.type&&"subtype-group"!==e.type&&"subtype-sublayer"!==e.type&&"sublayer"!==e.type||!("when"in e))&&("subtype-sublayer"===e.type&&"parent"in e&&e.parent&&"object"==typeof e.parent?"globalIdField"in e.parent:"globalIdField"in e)}function Q(e){return!!e&&"object"==typeof e&&"sourceLayer"in e&&z(e.sourceLayer)}function V(e,t){const{fieldInfos:n,fieldName:r,graphic:i,isContentFieldInfos:a,layer:o,preventPlacesFormatting:u,timeZone:c}=t,p=P(n,r),y=M(o,r),m=(0,f.jy)(o)&&Z({fieldInfo:p,graphic:i}),g=m?null:p?.format,b=m?q({fieldInfo:p,layer:o,isContentFieldInfos:a}):null,I="number"===b?.type;if(p&&!(0,s.JL)(r)){const t=y?.type,n="date-time"===b?.type,r=g?.dateFormat;if("date"===t||"date-only"===t||"time-only"===t||"timestamp-offset"===t||n||r)return(0,d.i0)(e,{format:n?void 0:r,fieldFormat:n?b:void 0,fieldType:t,timeZoneOptions:{layerTimeZone:o&&"preferredTimeZone"in o?o.preferredTimeZone:null,viewTimeZone:c,datesInUnknownTimezone:!(!o||!("datesInUnknownTimezone"in o)||!o.datesInUnknownTimezone)}})}if("string"==typeof e&&(0,s.JL)(r)&&g)return function(e,t){return e=e.trim(),/\d{2}-\d{2}/.test(e)?e:e.includes(",")?J(e,",",", ",t):e.includes(";")?J(e,";","; ",t):e.includes(" ")?J(e," "," ",t):(0,l.ZV)(Number(e),(0,l.yx)(t))}(e,g);if("string"==typeof(e=function(e,t){const n="number"===t?.fieldFormat?.type||t?.format&&null==t.format.dateFormat&&(null!=t.format.places||null!=t.format.digitSeparator);if("string"==typeof e&&n){const t=Number(e);if(!isNaN(t))return t}return e}(e,{format:I?void 0:g,fieldFormat:I?b:void 0}))||null==e||null==g&&null==b)return K(e);const F=I?(0,l.Up)(b):g?(0,l.yx)(g):void 0;return(0,l.ZV)(e,u?{...F,minimumFractionDigits:0,maximumFractionDigits:20}:F)}function J(e,t,n,r){return e.trim().split(t).map(e=>(0,l.ZV)(Number(e),(0,l.yx)(r))).join(n)}function P(e,t){if(e?.length&&t)return e.find(e=>e.fieldName?.toLowerCase()===t.toLowerCase())}function W(e,t,n,r){const{creatorField:i,creationDateField:a,editorField:l,editDateField:u}=e;if(!t)return;const s=(0,p.hv)(r&&"preferredTimeZone"in r?r.preferredTimeZone:null,!(!r||!("datesInUnknownTimezone"in r)||!r.datesInUnknownTimezone),n,C,"date"),f={...C,...s},d=t[u];if("number"==typeof d){const e=t[l];return{type:"edit",date:(0,o.Yq)(d,f),user:e}}const c=t[a];if("number"==typeof c){const e=t[i];return{type:"create",date:(0,o.Yq)(c,f),user:e}}return null}function _(e,t){const n=new Map;if(!e)return n;for(const r of e){if(!r.fieldName)continue;const e=R(r.fieldName,t);r.fieldName=e,n.set(e.toLowerCase(),r)}return n}function Y(e){const t=[];if(!e)return t;const{fieldInfos:n,content:r}=e;return n&&t.push(...n),r&&Array.isArray(r)?(r.forEach(e=>{if("fields"===e.type){const n=e?.fieldInfos;n&&t.push(...n)}}),t):t}function B(e){return e.replaceAll(h,e=>`&#${e.charCodeAt(0)};`)}function K(e){return"string"==typeof e?e.replaceAll(F,'<br class="esri-text-new-line" />'):e}function X(e){const{fieldInfoMap:t,fieldInfos:n,fieldName:i,graphic:a,isContentFieldInfos:o,layer:l,timeZone:u,value:f}=e;if(null==f)return"";const c=function({fieldName:e,value:t,graphic:n,layer:i}){if(re(e))return null;if(!i||"function"!=typeof i.getFieldDomain)return null;const a=n&&i.getFieldDomain(e,{feature:n,excludeImpliedDomains:(0,r.A)("esri-widget-legacy-field-domain-calculation")});return a&&"coded-value"===a.type?a.getName(t):null}({fieldName:i,value:f,graphic:a,layer:l});if(c)return c;const p=function({fieldName:e,graphic:t,layer:n}){if(re(e))return null;if(!n||"function"!=typeof n.getFeatureType)return null;const{typeIdField:r}=n;if(!r||e!==r)return null;const i=n.getFeatureType(t);return i?i.name:null}({fieldName:i,graphic:a,layer:l});if(p)return p;if(t.get(i.toLowerCase()))return V(f,{fieldInfos:n||Array.from(t.values()),fieldName:i,graphic:a,isContentFieldInfos:o,layer:l,timeZone:u});const y=l?.fieldsIndex?.get(i);return y&&((0,d.fs)(y)||(0,s.OH)(y))?(0,d.i0)(f,{fieldType:y.type,timeZoneOptions:{layerTimeZone:l&&"preferredTimeZone"in l?l.preferredTimeZone:null,viewTimeZone:u,datesInUnknownTimezone:!(!l||!("datesInUnknownTimezone"in l)||!l.datesInUnknownTimezone)}}):K(f)}function ee({attributes:e,fieldInfoMap:t,fieldInfos:n,graphic:r,isContentFieldInfos:i,layer:a,relatedInfos:o,timeZone:l}){const u={};return o?.forEach(e=>function({attributes:e,relatedInfo:t,fieldInfoMap:n,fieldInfos:r,layer:i,timeZone:a}){e&&t&&(t.relatedFeatures?.forEach(o=>ie({attributes:e,graphic:o,relatedInfo:t,fieldInfoMap:n,fieldInfos:r,layer:i,timeZone:a})),t.relatedStatsFeatures?.forEach(o=>ie({attributes:e,graphic:o,relatedInfo:t,fieldInfoMap:n,fieldInfos:r,layer:i,timeZone:a})))}({attributes:u,relatedInfo:e,fieldInfoMap:t,fieldInfos:n,layer:a,timeZone:l})),e&&Object.keys(e).forEach(o=>{const s=e[o];u[o]=X({fieldInfoMap:t,fieldInfos:n,fieldName:o,graphic:r,isContentFieldInfos:i,layer:a,timeZone:l,value:s})}),u}async function te(e,t){const{layer:n,graphic:r,outFields:i,objectIds:a,returnGeometry:o,spatialReference:l}=e,u=a[0];if("number"!=typeof u&&"string"!=typeof u){const e="Could not query required fields for the specified feature. The feature's ID is invalid.",t={layer:n,graphic:r,objectId:u,requiredFields:i};return y().warn(e,t),null}if(!(0,f.BR)(n)?.operations?.supportsQuery){const e="The specified layer cannot be queried. The following fields will not be available.",t={layer:n,graphic:r,requiredFields:i,returnGeometry:o};return y().warn(e,t),null}const s=n.createQuery();return s.objectIds=a,s.outFields=i?.length?i:[n.objectIdField],s.returnGeometry=!!o,s.returnZ=!!o,s.returnM=!!o,s.outSpatialReference=l,(await n.queryFeatures(s,t)).features[0]}async function ne({graphic:e,popupTemplate:t,layer:n,spatialReference:r},i){if(!n||!t)return;if("function"==typeof n.load&&await n.load(i),!e.attributes)return;const a=n.objectIdField,o=e.attributes[a];if(null==o)return;const l=[o],u=new Set(await t.getRequiredFields(n.fieldsIndex));null==n.timeInfo?.trackIdField||u.has(n.timeInfo.trackIdField)||await async function(e){if(!e.expressionInfos?.length)return!1;const t=await(0,c.l)(),{arcadeUtils:{requiresTrack:n}}=t;return n(e)}(t)&&u.add(n.timeInfo.trackIdField);const f=(0,s.Kl)(e,u),d=f?[]:u.has(a)?[...u]:[...u,a],p=t.returnGeometry||await async function(e){if(!e.expressionInfos?.length)return!1;const t=await(0,c.l)(),{arcadeUtils:{hasGeometryFunctions:n}}=t;return n(e)}(t);if(f&&!p)return;const y=await te({layer:n,graphic:e,outFields:d,objectIds:l,returnGeometry:p,spatialReference:r},i);y&&(y.geometry&&(e.geometry=y.geometry),y.attributes&&(e.attributes={...e.attributes,...y.attributes}))}function re(e=""){return!!e&&e.includes(N)}function ie({attributes:e,graphic:t,relatedInfo:n,fieldInfos:r,fieldInfoMap:i,layer:a,timeZone:o}){e&&t&&n&&Object.keys(t.attributes).forEach(l=>{const u=function(e){return e?`${N}${e.layerId}/${e.fieldName}`:""}({layerId:n.relation.id.toString(),fieldName:l}),s=t.attributes[l];e[u]=X({fieldName:u,fieldInfos:r,fieldInfoMap:i,layer:a,value:s,graphic:t,timeZone:o})})}const ae=e=>{if(!e)return!1;const t=e.toUpperCase();return t.includes("CURRENT_TIMESTAMP")||t.includes("CURRENT_DATE")||t.includes("CURRENT_TIME")},oe=({layer:e,method:t,query:n,definitionExpression:r})=>{if(!e.capabilities?.query?.supportsCacheHint||"attachments"===t)return;const i=null!=n.where?n.where:null,a=null!=n.geometry?n.geometry:null;ae(r)||ae(i)||"extent"===a?.type||"tile"===n.resultType||(n.cacheHint=!0)},le=({query:e,layer:t,method:n})=>{oe({layer:t,method:n,query:e,definitionExpression:`${t.definitionExpression} ${t.serviceDefinitionExpression??""}`})},ue=({queryPayload:e,layer:t,method:n})=>{oe({layer:t,method:n,query:e,definitionExpression:`${t.definitionExpression} ${t.serviceDefinitionExpression??""}`})};function se(e,t,n){return e&&t&&n?"sublayer"===t.type?ce({layers:t.layer?.allSublayers,map:e,relatedLayer:t,relationship:n})||ce({layers:t.layer?.subtables,map:e,relatedLayer:t,relationship:n}):ce({layers:e.allLayers,map:e,relatedLayer:t,relationship:n})||ce({layers:e.allTables,map:e,relatedLayer:t,relationship:n}):null}function fe(e,t){return e&&"utilityNetworks"in e&&t?e.utilityNetworks?.find(e=>e.isUtilityLayer(t)):null}function de(e,t){return e?.allTables.find(e=>"feature"===e.type&&e.layerId===t.id&&e.url===t.layer?.url)}function ce({map:e,relationship:t,relationship:{relatedTableId:n},relatedLayer:r,layers:i}){if(!i)return null;for(const a of i){if("map-image"===a.type){const n=ce({layers:a.sublayers,map:e,relatedLayer:r,relationship:t})||ce({layers:a.subtables,map:e,relatedLayer:r,relationship:t});if(n)return n;continue}if(!z(a))continue;if("sublayer"===r.type){if(a!==r&&a.id===n)return a.isTable?de(e,a):a;continue}const i="scene"===r.type&&r.associatedLayer?r.associatedLayer.url:r.url;if(!i)return null;if("sublayer"!==a.type){if(a!==r&&a.url===i&&a.layerId===n)return a}else if(a!==r&&a.layer?.url===i&&a.id===n)return a.isTable?de(e,a):a}return null}}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2869],{37838:(t,e,o)=>{o.d(e,{A:()=>oe});var i,s=o(31635),r=o(69540),n=o(7762),l=o(25482),a=o(4718),p=o(53966),d=o(74887),c=o(10107),u=o(79901),y=o(36005),h=o(64108),m=o(43937),g=o(56507),f=o(30524),v=o(89893),w=o(84424);o(44208);let C=i=class extends w.A{constructor(t){super(t),this.creator=null,this.destroyer=null,this.outFields=null,this.type="custom"}clone(){return new i({creator:this.creator,destroyer:this.destroyer,outFields:Array.isArray(this.outFields)?(0,a.o8)(this.outFields):null})}};(0,s.Cg)([(0,c.MZ)()],C.prototype,"creator",void 0),(0,s.Cg)([(0,c.MZ)()],C.prototype,"destroyer",void 0),(0,s.Cg)([(0,c.MZ)()],C.prototype,"outFields",void 0),(0,s.Cg)([(0,c.MZ)({type:["custom"],readOnly:!0})],C.prototype,"type",void 0),C=i=(0,s.Cg)([(0,h.$)("esri.popup.content.CustomContent")],C);const M=C;var x;o(87811);let F=x=class extends l.o{constructor(t){super(t),this.title=null,this.expression=null,this.returnType="dictionary"}clone(){return new x({title:this.title,expression:this.expression})}};(0,s.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],F.prototype,"title",void 0),(0,s.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],F.prototype,"expression",void 0),(0,s.Cg)([(0,c.MZ)({type:["dictionary"],readOnly:!0,json:{read:!1,write:!0}})],F.prototype,"returnType",void 0),F=x=(0,s.Cg)([(0,h.$)("esri.popup.ElementExpressionInfo")],F);const Z=F;var I;let j=I=class extends w.A{constructor(t){super(t),this.expressionInfo=null,this.type="expression"}clone(){return new I({expressionInfo:this.expressionInfo?.clone()})}};(0,s.Cg)([(0,c.MZ)({type:Z,json:{write:!0}})],j.prototype,"expressionInfo",void 0),(0,s.Cg)([(0,c.MZ)({type:["expression"],readOnly:!0,json:{read:!1,write:!0}})],j.prototype,"type",void 0),j=I=(0,s.Cg)([(0,h.$)("esri.popup.content.ExpressionContent")],j);const b=j;var A=o(66159);let N=class extends l.o{constructor(t){super(t),this.altText=null,this.caption="",this.title="",this.type=null}};(0,s.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],N.prototype,"altText",void 0),(0,s.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],N.prototype,"caption",void 0),(0,s.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],N.prototype,"title",void 0),(0,s.Cg)([(0,c.MZ)({type:["image","bar-chart","column-chart","line-chart","pie-chart"],readOnly:!0,json:{read:!1,write:!0}})],N.prototype,"type",void 0),N=(0,s.Cg)([(0,h.$)("esri.popup.content.mixins.MediaInfo")],N);const S=N;var R,_=o(68197),O=o(69622);let T=R=class extends O.A{constructor(t){super(t),this.color=null,this.fieldName=null,this.tooltip=null,this.value=null}clone(){return new R({color:this.color?.clone(),fieldName:this.fieldName,tooltip:this.tooltip,value:this.value})}};(0,s.Cg)([(0,c.MZ)()],T.prototype,"color",void 0),(0,s.Cg)([(0,c.MZ)()],T.prototype,"fieldName",void 0),(0,s.Cg)([(0,c.MZ)()],T.prototype,"tooltip",void 0),(0,s.Cg)([(0,c.MZ)()],T.prototype,"value",void 0),T=R=(0,s.Cg)([(0,h.$)("esri.popup.content.support.ChartMediaInfoValueSeries")],T);const $=T;var E;let B=E=class extends l.o{constructor(t){super(t),this.colors=null,this.fields=[],this.normalizeField=null,this.series=[],this.tooltipField=null}clone(){return new E({colors:(0,a.o8)(this.colors),fields:(0,a.o8)(this.fields),normalizeField:this.normalizeField,series:(0,a.o8)(this.series),tooltipField:this.tooltipField})}};(0,s.Cg)([(0,c.MZ)({type:[_.A],json:{type:[[g.jz]],write:!0}})],B.prototype,"colors",void 0),(0,s.Cg)([(0,c.MZ)({type:[String],json:{write:{isRequired:!0}}})],B.prototype,"fields",void 0),(0,s.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],B.prototype,"normalizeField",void 0),(0,s.Cg)([(0,c.MZ)({type:[$],json:{read:!1}})],B.prototype,"series",void 0),(0,s.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],B.prototype,"tooltipField",void 0),B=E=(0,s.Cg)([(0,h.$)("esri.popup.content.support.ChartMediaInfoValue")],B);const k=B;let J=class extends S{constructor(t){super(t),this.type=null,this.value=void 0}};(0,s.Cg)([(0,c.MZ)({type:["bar-chart","column-chart","line-chart","pie-chart"],readOnly:!0,json:{read:!1,write:!0}})],J.prototype,"type",void 0),(0,s.Cg)([(0,c.MZ)({type:k,json:{write:{isRequired:!0}}})],J.prototype,"value",void 0),J=(0,s.Cg)([(0,h.$)("esri.popup.content.mixins.ChartMediaInfo")],J);const q=J,D=(0,o(66552).O)()({barchart:"bar-chart",columnchart:"column-chart",linechart:"line-chart",piechart:"pie-chart"});var U;let L=U=class extends q{constructor(t){super(t),this.type="bar-chart"}clone(){return new U({altText:this.altText,title:this.title,caption:this.caption,value:this.value?.clone()})}};(0,s.Cg)([(0,c.MZ)({type:["bar-chart"],readOnly:!0,json:{type:["barchart"],read:!1,write:{writer:D.write,isRequired:!0}}})],L.prototype,"type",void 0),L=U=(0,s.Cg)([(0,h.$)("esri.popup.content.BarChartMediaInfo")],L);const W=L;var z;let P=z=class extends q{constructor(t){super(t),this.type="column-chart"}clone(){return new z({altText:this.altText,title:this.title,caption:this.caption,value:this.value?.clone()})}};(0,s.Cg)([(0,c.MZ)({type:["column-chart"],readOnly:!0,json:{type:["columnchart"],read:!1,write:{writer:D.write,isRequired:!0}}})],P.prototype,"type",void 0),P=z=(0,s.Cg)([(0,h.$)("esri.popup.content.ColumnChartMediaInfo")],P);const K=P;var G;let V=G=class extends l.o{constructor(t){super(t),this.linkURL=null,this.sourceURL=null}clone(){return new G({linkURL:this.linkURL,sourceURL:this.sourceURL})}};(0,s.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],V.prototype,"linkURL",void 0),(0,s.Cg)([(0,c.MZ)({type:String,json:{write:{isRequired:!0}}})],V.prototype,"sourceURL",void 0),V=G=(0,s.Cg)([(0,h.$)("esri.popup.content.support.ImageMediaInfoValue")],V);const H=V;var X;let Q=X=class extends S{constructor(t){super(t),this.refreshInterval=0,this.type="image",this.value=void 0}clone(){return new X({altText:this.altText,title:this.title,caption:this.caption,refreshInterval:this.refreshInterval,value:this.value?.clone()})}};(0,s.Cg)([(0,c.MZ)({type:Number,json:{write:!0}})],Q.prototype,"refreshInterval",void 0),(0,s.Cg)([(0,c.MZ)({type:["image"],readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],Q.prototype,"type",void 0),(0,s.Cg)([(0,c.MZ)({type:H,json:{write:{isRequired:!0}}})],Q.prototype,"value",void 0),Q=X=(0,s.Cg)([(0,h.$)("esri.popup.content.ImageMediaInfo")],Q);const Y=Q;var tt;let et=tt=class extends q{constructor(t){super(t),this.type="line-chart"}clone(){return new tt({altText:this.altText,title:this.title,caption:this.caption,value:this.value?.clone()})}};(0,s.Cg)([(0,c.MZ)({type:["line-chart"],readOnly:!0,json:{type:["linechart"],read:!1,write:{writer:D.write,isRequired:!0}}})],et.prototype,"type",void 0),et=tt=(0,s.Cg)([(0,h.$)("esri.popup.content.LineChartMediaInfo")],et);const ot=et;var it;let st=it=class extends q{constructor(t){super(t),this.type="pie-chart"}clone(){return new it({altText:this.altText,title:this.title,caption:this.caption,value:this.value?.clone()})}};(0,s.Cg)([(0,c.MZ)({type:["pie-chart"],readOnly:!0,json:{type:["piechart"],read:!1,write:{writer:D.write,isRequired:!0}}})],st.prototype,"type",void 0),st=it=(0,s.Cg)([(0,h.$)("esri.popup.content.PieChartMediaInfo")],st);const rt=st,nt={base:S,key:"type",defaultKeyValue:"image",typeMap:{"bar-chart":W,"column-chart":K,"line-chart":ot,"pie-chart":rt,image:Y}};var lt;let at=lt=class extends w.A{constructor(t){super(t),this.activeMediaInfoIndex=null,this.attributes=null,this.description=null,this.mediaInfos=null,this.title=null,this.type="media"}readMediaInfos(t){return t&&t.map(t=>"image"===t.type?Y.fromJSON(t):"barchart"===t.type?W.fromJSON(t):"columnchart"===t.type?K.fromJSON(t):"linechart"===t.type?ot.fromJSON(t):"piechart"===t.type?rt.fromJSON(t):void 0).filter(Boolean)}writeMediaInfos(t,e){e.mediaInfos=t&&t.map(t=>t.toJSON())}clone(){return new lt((0,a.o8)({activeMediaInfoIndex:this.activeMediaInfoIndex,attributes:this.attributes,description:this.description,mediaInfos:this.mediaInfos,title:this.title}))}};(0,s.Cg)([(0,c.MZ)()],at.prototype,"activeMediaInfoIndex",void 0),(0,s.Cg)([(0,c.MZ)({type:Object,json:{write:!0}})],at.prototype,"attributes",void 0),(0,s.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],at.prototype,"description",void 0),(0,s.Cg)([(0,c.MZ)({types:[nt]})],at.prototype,"mediaInfos",void 0),(0,s.Cg)([(0,y.w)("mediaInfos")],at.prototype,"readMediaInfos",null),(0,s.Cg)([(0,m.K)("mediaInfos")],at.prototype,"writeMediaInfos",null),(0,s.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],at.prototype,"title",void 0),(0,s.Cg)([(0,c.MZ)({type:["media"],readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],at.prototype,"type",void 0),at=lt=(0,s.Cg)([(0,h.$)("esri.popup.content.MediaContent")],at);const pt=at;var dt=o(49852);let ct=class extends((0,r.OU)(w.A)){constructor(t){super(t),this.description=null,this.displayCount=null,this.displayType="list",this.orderByFields=null,this.relationshipId=null,this.title=null,this.type="relationship"}};(0,s.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],ct.prototype,"description",void 0),(0,s.Cg)([(0,c.MZ)({type:Number,json:{type:g.jz,write:!0}})],ct.prototype,"displayCount",void 0),(0,s.Cg)([(0,c.MZ)({type:["list"],json:{write:{isRequired:!0}}})],ct.prototype,"displayType",void 0),(0,s.Cg)([(0,c.MZ)({type:[dt.A],json:{write:!0}})],ct.prototype,"orderByFields",void 0),(0,s.Cg)([(0,c.MZ)({type:Number,json:{type:g.jz,write:{isRequired:!0}}})],ct.prototype,"relationshipId",void 0),(0,s.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],ct.prototype,"title",void 0),(0,s.Cg)([(0,c.MZ)({type:["relationship"],readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],ct.prototype,"type",void 0),ct=(0,s.Cg)([(0,h.$)("esri.popup.content.RelationshipContent")],ct);const ut=ct;var yt;let ht=yt=class extends w.A{constructor(t){super(t),this.text=null,this.type="text"}clone(){return new yt({text:this.text})}};(0,s.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],ht.prototype,"text",void 0),(0,s.Cg)([(0,c.MZ)({type:["text"],readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],ht.prototype,"type",void 0),ht=yt=(0,s.Cg)([(0,h.$)("esri.popup.content.TextContent")],ht);const mt=ht;var gt=o(93223),ft=o(83342);let vt=class extends((0,r.OU)(w.A)){constructor(t){super(t),this.description=null,this.displayCount=null,this.title=null,this.associationTypes=[],this.type="utility-network-associations"}};(0,s.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],vt.prototype,"description",void 0),(0,s.Cg)([(0,c.MZ)({type:Number,json:{type:g.jz,write:!0}})],vt.prototype,"displayCount",void 0),(0,s.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],vt.prototype,"title",void 0),(0,s.Cg)([(0,c.MZ)({type:[ft.A],json:{write:!0}})],vt.prototype,"associationTypes",void 0),(0,s.Cg)([(0,gt.e)({utilityNetworkAssociations:"utility-network-associations"})],vt.prototype,"type",void 0),vt=(0,s.Cg)([(0,h.$)("esri.popup.content.UtilityNetworkAssociationsContent")],vt);const wt=vt,Ct=v.A,Mt=w.A,xt=M,Ft=b,Zt=A.A,It=pt,jt=ut,bt=mt,At=wt,Nt={base:null,key:"type",typeMap:{attachment:Ct,media:It,text:bt,expression:Ft,field:Zt,relationship:jt,utilityNetworkAssociations:At}},St={base:null,key:"type",typeMap:{attachment:Ct,media:It,text:bt,expression:Ft,field:Zt,relationship:jt}};var Rt,_t=o(93705),Ot=o(41227);let Tt=Rt=class extends l.o{constructor(t){super(t),this.returnTopmostRaster=null,this.showNoDataRecords=null}clone(){return new Rt({showNoDataRecords:this.showNoDataRecords,returnTopmostRaster:this.returnTopmostRaster})}};(0,s.Cg)([(0,c.MZ)({type:Boolean,json:{write:!0}})],Tt.prototype,"returnTopmostRaster",void 0),(0,s.Cg)([(0,c.MZ)({type:Boolean,json:{write:!0}})],Tt.prototype,"showNoDataRecords",void 0),Tt=Rt=(0,s.Cg)([(0,h.$)("esri.popup.LayerOptions")],Tt);const $t=Tt;var Et;let Bt=Et=class extends l.o{constructor(t){super(t),this.showRelatedRecords=null,this.orderByFields=null}clone(){return new Et({showRelatedRecords:this.showRelatedRecords,orderByFields:this.orderByFields?(0,a.o8)(this.orderByFields):null})}};(0,s.Cg)([(0,c.MZ)({type:Boolean,json:{write:!0}})],Bt.prototype,"showRelatedRecords",void 0),(0,s.Cg)([(0,c.MZ)({type:[dt.A],json:{write:!0}})],Bt.prototype,"orderByFields",void 0),Bt=Et=(0,s.Cg)([(0,h.$)("esri.popup.RelatedRecordsInfo")],Bt);const kt=Bt;var Jt,qt=o(4902);let Dt=Jt=class extends((0,qt.s)(O.A)){constructor(t){super(t),this.active=!1,this.className=null,this.disabled=!1,this.icon=null,this.id=null,this.indicator=!1,this.title=null,this.type=null,this.visible=!0}clone(){return new Jt({active:this.active,className:this.className,disabled:this.disabled,icon:this.icon,id:this.id,indicator:this.indicator,title:this.title,visible:this.visible})}};(0,s.Cg)([(0,c.MZ)()],Dt.prototype,"active",void 0),(0,s.Cg)([(0,c.MZ)()],Dt.prototype,"className",void 0),(0,s.Cg)([(0,c.MZ)()],Dt.prototype,"disabled",void 0),(0,s.Cg)([(0,c.MZ)()],Dt.prototype,"icon",void 0),(0,s.Cg)([(0,c.MZ)()],Dt.prototype,"id",void 0),(0,s.Cg)([(0,c.MZ)()],Dt.prototype,"indicator",void 0),(0,s.Cg)([(0,c.MZ)()],Dt.prototype,"title",void 0),(0,s.Cg)([(0,c.MZ)()],Dt.prototype,"type",void 0),(0,s.Cg)([(0,c.MZ)()],Dt.prototype,"visible",void 0),Dt=Jt=(0,s.Cg)([(0,h.$)("esri.support.actions.ActionBase")],Dt);const Ut=Dt;var Lt;let Wt=Lt=class extends Ut{constructor(t){super(t),this.image=null,this.type="button"}clone(){return new Lt({active:this.active,className:this.className,disabled:this.disabled,icon:this.icon,id:this.id,indicator:this.indicator,title:this.title,visible:this.visible,image:this.image})}};(0,s.Cg)([(0,c.MZ)()],Wt.prototype,"image",void 0),Wt=Lt=(0,s.Cg)([(0,h.$)("esri.support.actions.ActionButton")],Wt);const zt=Wt;var Pt;let Kt=Pt=class extends Ut{constructor(t){super(t),this.image=null,this.type="toggle",this.value=!1}clone(){return new Pt({active:this.active,className:this.className,disabled:this.disabled,icon:this.icon,id:this.id,indicator:this.indicator,title:this.title,visible:this.visible,image:this.image,value:this.value})}};(0,s.Cg)([(0,c.MZ)()],Kt.prototype,"image",void 0),(0,s.Cg)([(0,c.MZ)()],Kt.prototype,"value",void 0),Kt=Pt=(0,s.Cg)([(0,h.$)("esri.support.actions.ActionToggle")],Kt);const Gt=Kt,Vt="relationships/",Ht="expression/",Xt=n.A.ofType({key:"type",defaultKeyValue:"button",base:Ut,typeMap:{button:zt,toggle:Gt}}),Qt={base:Mt,key:"type",typeMap:{media:It,custom:xt,text:bt,attachments:Ct,fields:Zt,expression:Ft,relationship:jt,utilityNetworkAssociations:At}},Yt=new Set(["attachments","fields","media","text","expression","relationship"]),te=new Set([...Yt,"utility-network-associations"]);let ee=class extends((0,r.OU)(l.o)){constructor(t){super(t),this.actions=null,this.content="",this.expressionInfos=null,this.fieldInfos=null,this.layerOptions=null,this.lastEditInfoEnabled=!0,this.outFields=null,this.overwriteActions=!1,this.returnGeometry=!1,this.title=""}castContent(t){return Array.isArray(t)?t.map(t=>(0,g.aq)(Qt,t)):"string"==typeof t||"function"==typeof t||t instanceof HTMLElement||(0,d.$X)(t)?t:(p.A.getLogger(this).error("content error","unsupported content value",{value:t}),null)}readContent(t,e){const{popupElements:o}=e;return Array.isArray(o)&&o.length>0?this._readPopupInfoElements(e.description,e.mediaInfos,o):this._readPopupInfo(e)}writeWebSceneContent(t,e,o,i){this._writePopupTemplateContent(t,e,i)}writeWebMapContent(t,e,o,i){this._writePopupTemplateContent(t,e,i)}writeFieldInfos(t,e,o,i){const{content:s}=this,r=Array.isArray(s)?s:null,{writeFieldFormat:n,...l}=i||{};if(t){const o=r?r.filter(t=>"fields"===t.type):[],i=o.length&&o.every(t=>t.fieldInfos?.length);e.fieldInfos=t.filter(Boolean).map(t=>{const e=t.toJSON(l);return i&&(e.visible=!1),e})}if(r)for(const t of r)"fields"===t.type&&this._writeFieldsContent(t,e,l)}writeLayerOptions(t,e,o,i){e[o]=!t||null===t.showNoDataRecords&&null===t.returnTopmostRaster?null:t.toJSON(i)}writeTitle(t,e){e.title=t||""}async collectRequiredFields(t,e,o){const i=this.expressionInfos||[];await this._collectExpressionInfoFields(t,e,o,[...i,...this._getContentExpressionInfos(this.content,i)]),(0,f._w)(t,e,[...this.outFields||[],...this._getActionsFields(this.actions),...this._getTitleFields(this.title),...this._getContentFields(this.content)])}async getRequiredFields(t,e){const o=new Set;return await this.collectRequiredFields(o,t,e),[...o].sort()}_writePopupTemplateContent(t,e,o){"string"!=typeof t?Array.isArray(t)&&(e.popupElements=t.filter(t=>"web-scene"===o?.origin?Yt.has(t.type):te.has(t.type)).map(t=>t?.toJSON(o)),e.popupElements.forEach(t=>{"attachments"===t.type?this._writeAttachmentContent(e):"media"===t.type?this._writeMediaContent(t,e):"text"===t.type?this._writeTextContent(t,e):"relationship"===t.type&&this._writeRelationshipContent(t,e)})):e.description=t}_writeFieldsContent(t,e,o){const i=t.fieldInfos;if(!Array.isArray(i)||!i.length)return;const s=e.fieldInfos;if(Array.isArray(s))for(const t of i){const e=s.find(e=>e.fieldName?.toLowerCase()===t.fieldName?.toLowerCase());e?e.visible=!0:s.push(t.toJSON(o))}else e.fieldInfos=i.map(t=>t.toJSON(o))}_writeAttachmentContent(t){t.showAttachments||(t.showAttachments=!0)}_writeRelationshipContent(t,e){const o=t.orderByFields?.map(e=>this._toFieldOrderJSON(e,t.relationshipId))||[],i=[...e.relatedRecordsInfo?.orderByFields||[],...o];e.relatedRecordsInfo={showRelatedRecords:!0,...i?.length&&{orderByFields:i}}}_writeTextContent(t,e){!e.description&&t.text&&(e.description=t.text)}_writeMediaContent(t,e){if(!Array.isArray(t.mediaInfos)||!t.mediaInfos.length)return;const o=(0,a.o8)(t.mediaInfos);Array.isArray(e.mediaInfos)?e.mediaInfos=[...e.mediaInfos,...o]:e.mediaInfos=o}_readPopupInfoElements(t,e,o){const i={description:!1,mediaInfos:!1};return o.map(o=>"media"===o.type?(o.mediaInfos||!e||i.mediaInfos||(o.mediaInfos=e,i.mediaInfos=!0),It.fromJSON(o)):"text"===o.type?(o.text||!t||i.description||(o.text=t,i.description=!0),bt.fromJSON(o)):"attachments"===o.type?Ct.fromJSON(o):"fields"===o.type?Zt.fromJSON(o):"expression"===o.type?Ft.fromJSON(o):"relationship"===o.type?jt.fromJSON(o):"utilityNetworkAssociations"===o.type?At.fromJSON(o):void 0).filter(Boolean)}_toRelationshipContent(t){const{field:e,order:o}=t;if(!e?.startsWith(Vt))return null;const i=e.replace(Vt,"").split("/");if(2!==i.length)return null;const s=parseInt(i[0],10),r=i[1];return!Number.isNaN(s)&&r?jt.fromJSON({relationshipId:s,orderByFields:[{field:r,order:o}]}):null}_toFieldOrderJSON(t,e){const{order:o,field:i}=t;return{field:`${Vt}${e}/${i}`,order:o}}_readPopupInfo({description:t,mediaInfos:e,showAttachments:o,relatedRecordsInfo:i={showRelatedRecords:!1}}){const s=[];t?s.push(new bt({text:t})):s.push(new Zt),Array.isArray(e)&&e.length&&s.push(It.fromJSON({mediaInfos:e})),o&&s.push(Ct.fromJSON({displayType:"auto"}));const{showRelatedRecords:r,orderByFields:n}=i;return r&&n?.length&&n.forEach(t=>{const e=this._toRelationshipContent(t);e&&s.push(e)}),s.length?s:t}_getContentElementFields(t){const e=t?.type;if("attachments"===e)return[...this._extractFieldNames(t.title),...this._extractFieldNames(t.description)];if("custom"===e)return t.outFields||[];if("fields"===e)return[...this._extractFieldNames(t.title),...this._extractFieldNames(t.description),...this._getFieldInfoFields(t.fieldInfos??this.fieldInfos)];if("media"===e){const e=t.mediaInfos||[];return[...this._extractFieldNames(t.title),...this._extractFieldNames(t.description),...e.reduce((t,e)=>[...t,...this._getMediaInfoFields(e)],[])]}return"text"===e?this._extractFieldNames(t.text):"relationship"===e||"utility-network-associations"===e?[...this._extractFieldNames(t.title),...this._extractFieldNames(t.description)]:[]}_getMediaInfoFields(t){const{caption:e,title:o,value:i}=t,s=i||{},{fields:r,normalizeField:n,tooltipField:l,sourceURL:a,linkURL:p}=s,d=[...this._extractFieldNames(o),...this._extractFieldNames(e),...this._extractFieldNames(a),...this._extractFieldNames(p),...r??[]];return n&&d.push(n),l&&d.push(l),d}_getContentExpressionInfos(t,e){return Array.isArray(t)?t.reduce((t,e)=>[...t,..."expression"===e.type&&e.expressionInfo?[e.expressionInfo]:[]],e):[]}_getContentFields(t){return"string"==typeof t?this._extractFieldNames(t):Array.isArray(t)?t.reduce((t,e)=>[...t,...this._getContentElementFields(e)],[]):[]}async _collectExpressionInfoFields(t,e,o,i){i&&await Promise.all(i.map(i=>(0,f.Dx)(t,e,o,i.expression)))}_getFieldInfoFields(t){return t?t.filter(({fieldName:t,visible:e})=>!(void 0!==e&&!e||!t||t.startsWith(Vt)||t.startsWith(Ht))).map(t=>t.fieldName):[]}_getActionsFields(t){return t?t.toArray().reduce((t,e)=>[...t,...this._getActionFields(e)],[]):[]}_getActionFields(t){const{className:e,title:o,type:i}=t,s="button"===i||"toggle"===i?t.image:"";return[...this._extractFieldNames(o),...this._extractFieldNames(e),...this._extractFieldNames(s)]}_getTitleFields(t){return"string"==typeof t?this._extractFieldNames(t):[]}_extractFieldNames(t){return(0,f.nw)(t).filter(t=>!(t.startsWith(Vt)||t.startsWith(Ht)))}};(0,s.Cg)([(0,c.MZ)({type:Xt})],ee.prototype,"actions",void 0),(0,s.Cg)([(0,c.MZ)()],ee.prototype,"content",void 0),(0,s.Cg)([(0,u.w)("content")],ee.prototype,"castContent",null),(0,s.Cg)([(0,y.w)("content",["description","fieldInfos","popupElements","mediaInfos","showAttachments","relatedRecordsInfo"])],ee.prototype,"readContent",null),(0,s.Cg)([(0,m.K)("web-scene","content",{popupElements:{type:n.A.ofType(St)},showAttachments:{type:Boolean},mediaInfos:{type:n.A.ofType(nt)},description:{type:String},relatedRecordsInfo:{type:kt}})],ee.prototype,"writeWebSceneContent",null),(0,s.Cg)([(0,m.K)("content",{popupElements:{type:n.A.ofType(Nt)},showAttachments:{type:Boolean},mediaInfos:{type:n.A.ofType(nt)},description:{type:String},relatedRecordsInfo:{type:kt}})],ee.prototype,"writeWebMapContent",null),(0,s.Cg)([(0,c.MZ)({type:[_t.A],json:{write:!0}})],ee.prototype,"expressionInfos",void 0),(0,s.Cg)([(0,c.MZ)({type:[Ot.A]})],ee.prototype,"fieldInfos",void 0),(0,s.Cg)([(0,m.K)("fieldInfos")],ee.prototype,"writeFieldInfos",null),(0,s.Cg)([(0,c.MZ)({type:$t})],ee.prototype,"layerOptions",void 0),(0,s.Cg)([(0,m.K)("layerOptions")],ee.prototype,"writeLayerOptions",null),(0,s.Cg)([(0,c.MZ)({type:Boolean,json:{read:{source:"showLastEditInfo"},write:{target:"showLastEditInfo"},default:!0}})],ee.prototype,"lastEditInfoEnabled",void 0),(0,s.Cg)([(0,c.MZ)()],ee.prototype,"outFields",void 0),(0,s.Cg)([(0,c.MZ)()],ee.prototype,"overwriteActions",void 0),(0,s.Cg)([(0,c.MZ)()],ee.prototype,"returnGeometry",void 0),(0,s.Cg)([(0,c.MZ)({json:{type:String}})],ee.prototype,"title",void 0),(0,s.Cg)([(0,m.K)("title")],ee.prototype,"writeTitle",null),ee=(0,s.Cg)([(0,h.$)("esri.PopupTemplate")],ee);const oe=ee},39663:(t,e,o)=>{o.d(e,{$P:()=>J,HK:()=>x,PK:()=>_,fg:()=>M,qH:()=>F});var i=o(31635),s=o(10107),r=o(64108),n=o(69540),l=o(25482);let a=class extends((0,n.OU)(l.o)){constructor(t){super(t),this.type=null}};(0,i.Cg)([(0,s.MZ)({type:["date-time","number"],nonNullable:!0,readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],a.prototype,"type",void 0),a=(0,i.Cg)([(0,r.$)("esri.layers.support.FieldFormat")],a);const p=a,d="auto";let c=class extends p{constructor(t){super(t),this.dateStyle=null,this.hour12=d,this.month=null,this.timeStyle=null,this.type="date-time",this.year=null}};(0,i.Cg)([(0,s.MZ)({type:["full","long","medium","short"],json:{write:!0}})],c.prototype,"dateStyle",void 0),(0,i.Cg)([(0,s.MZ)({type:["always","auto","never"],nonNullable:!0,json:{default:d,write:!0}})],c.prototype,"hour12",void 0),(0,i.Cg)([(0,s.MZ)({type:["long","short"],json:{write:!0}})],c.prototype,"month",void 0),(0,i.Cg)([(0,s.MZ)({type:["full","long","medium","short"],json:{write:!0}})],c.prototype,"timeStyle",void 0),(0,i.Cg)([(0,s.MZ)({type:["date-time"]})],c.prototype,"type",void 0),(0,i.Cg)([(0,s.MZ)({type:["numeric"],json:{write:!0}})],c.prototype,"year",void 0),c=(0,i.Cg)([(0,r.$)("esri.layers.support.DateTimeFieldFormat")],c);const u=c;var y=o(30524),h=o(56507);const m={min:0,max:20},g="decimal",f="auto";let v=class extends p{constructor(t){super(t),this.maximumFractionDigits=2,this.minimumFractionDigits=0,this.style=g,this.type="number",this.useGrouping=f}};(0,i.Cg)([(0,s.MZ)({type:h.jz,nonNullable:!0,range:m,json:{default:2,write:!0}})],v.prototype,"maximumFractionDigits",void 0),(0,i.Cg)([(0,s.MZ)({type:h.jz,nonNullable:!0,range:m,json:{default:0,write:!0}})],v.prototype,"minimumFractionDigits",void 0),(0,i.Cg)([(0,s.MZ)({type:["decimal"],nonNullable:!0,json:{default:g,write:!0}})],v.prototype,"style",void 0),(0,i.Cg)([(0,s.MZ)({type:["number"]})],v.prototype,"type",void 0),(0,i.Cg)([(0,s.MZ)({type:["always","auto","never"],nonNullable:!0,json:{default:f,write:!0}})],v.prototype,"useGrouping",void 0),v=(0,i.Cg)([(0,r.$)("esri.layers.support.NumberFieldFormat")],v);const w=v;var C=o(68780);const M={base:p,key:"type",errorContext:"field-configuration-field-format",typeMap:{"date-time":u,number:w}};function x(t,e){const{dateFormat:o}=t;if(!e)return o?j(t):I(t);if(!F(e))return;const i={hour12:"always"};switch(e.type){case"integer":case"small-integer":case"big-integer":case"long":return Z(t);case"single":case"double":return I(t);case"date":case"timestamp-offset":return o?j(t):J(e,i);case"date-only":return o?function(t){return new u({dateStyle:b(t),year:R(t),month:N(t)})}(t):J(e);case"time-only":return o?function(t){return new u({timeStyle:S(t),hour12:A(t)})}(t):J(e,i)}}function F(t){return(0,y.WA)(t)||(0,y.vE)(t)||(0,y.zD)(t)||(0,y.OH)(t)||(0,y.Ah)(t)}function Z(t){return new w({useGrouping:t.digitSeparator?"always":"never"})}function I(t){const e=Z(t),{places:o}=t;return e.minimumFractionDigits=o??0,e.maximumFractionDigits=o??2,e}function j(t){return new u({dateStyle:b(t),year:R(t),month:N(t),timeStyle:S(t),hour12:A(t)})}function b(t){const{dateFormat:e}=t;return e?e.startsWith("short-date")?"short":e.startsWith("day-short-month-year")?"medium":e.startsWith("long-month-day-year")?"long":e.startsWith("long-date")?"full":null:null}function A(t){return t.dateFormat?.endsWith("-24")?"never":"always"}function N(t){switch(t.dateFormat){case"short-month-year":return"short";case"long-month-year":return"long";default:return null}}function S(t){const{dateFormat:e}=t;return e?e.includes("short-time")?"short":e.includes("long-time")?"medium":null:null}function R(t){switch(t.dateFormat){case"short-month-year":case"long-month-year":case"year":return"numeric";default:return null}}function _(t,e){const o="number"===t.type,i="date-time"===t.type;if(!e)return o?T(t):i?$(t):null;if(F(e))switch(e.type){case"integer":case"small-integer":case"big-integer":case"long":return o?O(t):null;case"single":case"double":return o?T(t):null;case"date":case"timestamp-offset":return i?$(t):null;case"date-only":return i?function(t){let e;const o=E(t),i="numeric"===t.year?"year":null,s=k(t);return o?e=o:i&&s?e=`${s}-${i}`:i&&(e=i),e?new C.A({dateFormat:e}):null}(t):null;case"time-only":return i?function(t){let e;const o=B(t),i="never"===t.hour12?"24":null;return o&&i?e=`short-date-${o}-${i}`:o&&(e=`short-date-${o}`),e?new C.A({dateFormat:e}):null}(t):null}}function O(t){return new C.A({digitSeparator:"never"!==t.useGrouping})}function T(t){const e=O(t);return e.places=t.maximumFractionDigits,e}function $(t){let e;const o=E(t),i=B(t),s="never"===t.hour12?"24":null,r="numeric"===t.year?"year":null,n=k(t);return o&&i&&s?e=`${o}-${i}-${s}`:o&&i?e=`${o}-${i}`:o?e=o:r&&n?e=`${n}-${r}`:r&&(e=r),e?new C.A({dateFormat:e}):null}function E(t){switch(t.dateStyle){case"short":return"short-date";case"medium":return"day-short-month-year";case"long":return"long-month-day-year";case"full":return"long-date";default:return}}function B(t){return t.timeStyle&&("short"===t.timeStyle?"short-time":"long-time")}function k(t){switch(t.month){case"short":return"short-month";case"long":return"long-month";default:return}}function J(t,e){if(!F(t))return;const o=e?.useGrouping??"auto",i=e?.hour12??"auto";switch(t.type){case"integer":case"small-integer":case"big-integer":case"long":return new w({minimumFractionDigits:0,maximumFractionDigits:0,useGrouping:o});case"single":case"double":return new w({minimumFractionDigits:0,maximumFractionDigits:2,useGrouping:o});case"date":case"timestamp-offset":return new u({dateStyle:"short",timeStyle:"short",hour12:i});case"date-only":return new u({dateStyle:"short"});case"time-only":return new u({timeStyle:"short",hour12:i})}}},41227:(t,e,o)=>{o.d(e,{A:()=>h});var i=o(31635),s=o(69540),r=o(66552),n=o(25482),l=o(10107),a=(o(44208),o(53966),o(87811),o(93223)),p=o(36005),d=o(64108),c=o(39663),u=o(68780);let y=class extends((0,s.OU)(n.o)){constructor(t){super(t),this.fieldName=null,this.isEditable=!0,this.label=null,this.statisticType=null,this.stringFieldOption="text-box",this.tooltip=null,this.visible=!0}set fieldFormat(t){this._set("fieldFormat",t),this._set("format",t?(0,c.PK)(t):null)}set format(t){this._set("format",t),this._set("fieldFormat",t?(0,c.HK)(t):null)}readFormat(t,e){if(!e.fieldFormat)return t?u.A.fromJSON(t):null}clone(){const t=super.clone();return t._set("format",this.format?.clone()),t._set("fieldFormat",this.fieldFormat?.clone()),t}};(0,i.Cg)([(0,l.MZ)({value:null,clonable:!1,types:c.fg,json:{write:{overridePolicy(t,e,o){const{fieldName:i}=this;return{enabled:!(!i||i.startsWith("expression/")||i.startsWith("relationships/")||!o?.writeFieldFormat)}}}}})],y.prototype,"fieldFormat",null),(0,i.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],y.prototype,"fieldName",void 0),(0,i.Cg)([(0,l.MZ)({value:null,clonable:!1,type:u.A,json:{write:!0}})],y.prototype,"format",null),(0,i.Cg)([(0,p.w)("format")],y.prototype,"readFormat",null),(0,i.Cg)([(0,l.MZ)({type:Boolean,json:{write:{alwaysWriteDefaults:!0},default:!0}})],y.prototype,"isEditable",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],y.prototype,"label",void 0),(0,i.Cg)([(0,l.MZ)({type:["count","sum","min","max","avg","stddev","var"],json:{write:!0}})],y.prototype,"statisticType",void 0),(0,i.Cg)([(0,a.e)(new r.J({richtext:"rich-text",textarea:"text-area",textbox:"text-box"}),{default:"text-box"})],y.prototype,"stringFieldOption",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],y.prototype,"tooltip",void 0),(0,i.Cg)([(0,l.MZ)({type:Boolean,json:{write:!0}})],y.prototype,"visible",void 0),y=(0,i.Cg)([(0,d.$)("esri.popup.FieldInfo")],y);const h=y},49852:(t,e,o)=>{o.d(e,{A:()=>p});var i,s=o(31635),r=o(25482),n=o(10107),l=(o(44208),o(53966),o(87811),o(64108));let a=i=class extends r.o{constructor(t){super(t),this.field=null,this.order=null}clone(){return new i({field:this.field,order:this.order})}};(0,s.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],a.prototype,"field",void 0),(0,s.Cg)([(0,n.MZ)({type:["asc","desc"],json:{write:!0}})],a.prototype,"order",void 0),a=i=(0,s.Cg)([(0,l.$)("esri.popup.support.RelatedRecordsInfoFieldOrder")],a);const p=a},60950:(t,e,o)=>{o.d(e,{E_:()=>s,ym:()=>i});const i=Symbol("popupProvider");function s(t){return function(t){return!!t&&i in t}(t)?t[i]:null}},66159:(t,e,o)=>{o.d(e,{A:()=>c});var i,s=o(31635),r=o(4718),n=o(10107),l=(o(44208),o(53966),o(64108)),a=o(41227),p=o(84424);let d=i=class extends p.A{constructor(t){super(t),this.attributes=null,this.description=null,this.fieldInfos=null,this.title=null,this.type="fields"}clone(){return new i((0,r.o8)({attributes:this.attributes,description:this.description,fieldInfos:this.fieldInfos,title:this.title}))}};(0,s.Cg)([(0,n.MZ)({type:Object,json:{write:!0}})],d.prototype,"attributes",void 0),(0,s.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],d.prototype,"description",void 0),(0,s.Cg)([(0,n.MZ)({type:[a.A],json:{write:!0}})],d.prototype,"fieldInfos",void 0),(0,s.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],d.prototype,"title",void 0),(0,s.Cg)([(0,n.MZ)({type:["fields"],readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],d.prototype,"type",void 0),d=i=(0,s.Cg)([(0,l.$)("esri.popup.content.FieldsContent")],d);const c=d},68780:(t,e,o)=>{o.d(e,{A:()=>u});var i=o(31635),s=o(69540),r=o(25482),n=o(10107),l=o(56507),a=(o(44208),o(87811),o(93223)),p=o(64108),d=o(97770);let c=class extends((0,s.OU)(r.o)){constructor(t){super(t),this.dateFormat=null,this.digitSeparator=!1,this.places=null}};(0,i.Cg)([(0,a.e)(d._v)],c.prototype,"dateFormat",void 0),(0,i.Cg)([(0,n.MZ)({type:Boolean,json:{write:!0}})],c.prototype,"digitSeparator",void 0),(0,i.Cg)([(0,n.MZ)({type:l.jz,json:{write:!0}})],c.prototype,"places",void 0),c=(0,i.Cg)([(0,p.$)("esri.popup.support.FieldInfoFormat")],c);const u=c},78553:(t,e,o)=>{o.d(e,{D:()=>r,p:()=>s});var i=o(56507);function s(t){const e=(0,i.Vr)(100*(1-t));return Math.max(0,Math.min(e,100))}function r(t){const e=1-t/100;return Math.max(0,Math.min(e,1))}},83342:(t,e,o)=>{o.d(e,{A:()=>d});var i=o(31635),s=o(69540),r=o(25482),n=o(10107),l=o(56507),a=(o(44208),o(87811),o(64108));let p=class extends((0,s.OU)(r.o)){constructor(t){super(t),this.title=null,this.description=null,this.type=null,this.associatedNetworkSourceId=null,this.associatedAssetGroup=null,this.associatedAssetType=null}};(0,i.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],p.prototype,"title",void 0),(0,i.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],p.prototype,"description",void 0),(0,i.Cg)([(0,n.MZ)({type:["attachment","connectivity","container","content","structure"],json:{write:!0}})],p.prototype,"type",void 0),(0,i.Cg)([(0,n.MZ)({type:Number,json:{type:l.jz,write:!0}})],p.prototype,"associatedNetworkSourceId",void 0),(0,i.Cg)([(0,n.MZ)({type:Number,json:{type:l.jz,write:!0}})],p.prototype,"associatedAssetGroup",void 0),(0,i.Cg)([(0,n.MZ)({type:Number,json:{type:l.jz,write:!0}})],p.prototype,"associatedAssetType",void 0),p=(0,i.Cg)([(0,a.$)("esri.popup.support.UtilityNetworkAssociationType")],p);const d=p},84424:(t,e,o)=>{o.d(e,{A:()=>a});var i=o(31635),s=o(25482),r=o(10107),n=(o(44208),o(53966),o(87811),o(64108));let l=class extends s.o{constructor(t){super(t),this.type=null}};(0,i.Cg)([(0,r.MZ)({type:["attachments","custom","fields","media","text","expression","relationship","utility-network-associations"],readOnly:!0,json:{read:!1,write:!0}})],l.prototype,"type",void 0),l=(0,i.Cg)([(0,n.$)("esri.popup.content.Content")],l);const a=l},89893:(t,e,o)=>{o.d(e,{A:()=>h});var i=o(31635),s=o(69540),r=o(10107),n=(o(44208),o(53966),o(87811),o(64108)),l=o(84424),a=o(66552),p=o(25482);const d=new a.J({asc:"ascending",desc:"descending"});let c=class extends((0,s.OU)(p.o)){constructor(t){super(t),this.field=null,this.order="ascending"}};(0,i.Cg)([(0,r.MZ)({type:String,json:{write:!0}})],c.prototype,"field",void 0),(0,i.Cg)([(0,r.MZ)({type:d.apiValues,json:{type:d.jsonValues,read:d.read,write:d.write}})],c.prototype,"order",void 0),c=(0,i.Cg)([(0,n.$)("esri.popup.support.AttachmentsOrderByInfo")],c);const u=c;let y=class extends((0,s.OU)(l.A)){constructor(t){super(t),this.attachmentKeywords=null,this.attachmentTypes=null,this.description=null,this.displayType="auto",this.orderByFields=null,this.title=null,this.type="attachments"}};(0,i.Cg)([(0,r.MZ)({type:[String],json:{write:!0}})],y.prototype,"attachmentKeywords",void 0),(0,i.Cg)([(0,r.MZ)({type:[["application","audio","image","model","text","video"]],json:{write:!0}})],y.prototype,"attachmentTypes",void 0),(0,i.Cg)([(0,r.MZ)({type:String,json:{write:!0}})],y.prototype,"description",void 0),(0,i.Cg)([(0,r.MZ)({type:["auto","preview","list"],json:{write:!0}})],y.prototype,"displayType",void 0),(0,i.Cg)([(0,r.MZ)({type:[u],json:{write:!0}})],y.prototype,"orderByFields",void 0),(0,i.Cg)([(0,r.MZ)({type:String,json:{write:!0}})],y.prototype,"title",void 0),(0,i.Cg)([(0,r.MZ)({type:["attachments"],readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],y.prototype,"type",void 0),y=(0,i.Cg)([(0,n.$)("esri.popup.content.AttachmentsContent")],y);const h=y},93705:(t,e,o)=>{o.d(e,{A:()=>p});var i,s=o(31635),r=o(25482),n=o(10107),l=(o(44208),o(53966),o(87811),o(64108));let a=i=class extends r.o{constructor(t){super(t),this.name=null,this.title=null,this.expression=null,this.returnType=null}clone(){return new i({name:this.name,title:this.title,expression:this.expression,returnType:this.returnType})}};(0,s.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],a.prototype,"name",void 0),(0,s.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],a.prototype,"title",void 0),(0,s.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],a.prototype,"expression",void 0),(0,s.Cg)([(0,n.MZ)({type:["string","number"],json:{write:!0}})],a.prototype,"returnType",void 0),a=i=(0,s.Cg)([(0,l.$)("esri.popup.ExpressionInfo")],a);const p=a}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2869],{37838:(t,e,o)=>{o.d(e,{A:()=>oe});var i,s=o(31635),r=o(69540),n=o(7762),l=o(25482),a=o(4718),p=o(53966),d=o(74887),c=o(10107),u=o(79901),y=o(36005),h=o(64108),m=o(43937),g=o(56507),f=o(30524),v=o(89893),w=o(84424);o(44208);let C=i=class extends w.A{constructor(t){super(t),this.creator=null,this.destroyer=null,this.outFields=null,this.type="custom"}clone(){return new i({creator:this.creator,destroyer:this.destroyer,outFields:Array.isArray(this.outFields)?(0,a.o8)(this.outFields):null})}};(0,s.Cg)([(0,c.MZ)()],C.prototype,"creator",void 0),(0,s.Cg)([(0,c.MZ)()],C.prototype,"destroyer",void 0),(0,s.Cg)([(0,c.MZ)()],C.prototype,"outFields",void 0),(0,s.Cg)([(0,c.MZ)({type:["custom"],readOnly:!0})],C.prototype,"type",void 0),C=i=(0,s.Cg)([(0,h.$)("esri.popup.content.CustomContent")],C);const M=C;var x;o(87811);let F=x=class extends l.o{constructor(t){super(t),this.title=null,this.expression=null,this.returnType="dictionary"}clone(){return new x({title:this.title,expression:this.expression})}};(0,s.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],F.prototype,"title",void 0),(0,s.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],F.prototype,"expression",void 0),(0,s.Cg)([(0,c.MZ)({type:["dictionary"],readOnly:!0,json:{read:!1,write:!0}})],F.prototype,"returnType",void 0),F=x=(0,s.Cg)([(0,h.$)("esri.popup.ElementExpressionInfo")],F);const Z=F;var I;let j=I=class extends w.A{constructor(t){super(t),this.expressionInfo=null,this.type="expression"}clone(){return new I({expressionInfo:this.expressionInfo?.clone()})}};(0,s.Cg)([(0,c.MZ)({type:Z,json:{write:!0}})],j.prototype,"expressionInfo",void 0),(0,s.Cg)([(0,c.MZ)({type:["expression"],readOnly:!0,json:{read:!1,write:!0}})],j.prototype,"type",void 0),j=I=(0,s.Cg)([(0,h.$)("esri.popup.content.ExpressionContent")],j);const b=j;var A=o(66159);let N=class extends l.o{constructor(t){super(t),this.altText=null,this.caption="",this.title="",this.type=null}};(0,s.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],N.prototype,"altText",void 0),(0,s.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],N.prototype,"caption",void 0),(0,s.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],N.prototype,"title",void 0),(0,s.Cg)([(0,c.MZ)({type:["image","bar-chart","column-chart","line-chart","pie-chart"],readOnly:!0,json:{read:!1,write:!0}})],N.prototype,"type",void 0),N=(0,s.Cg)([(0,h.$)("esri.popup.content.mixins.MediaInfo")],N);const S=N;var R,_=o(68197),O=o(69622);let T=R=class extends O.A{constructor(t){super(t),this.color=null,this.fieldName=null,this.tooltip=null,this.value=null}clone(){return new R({color:this.color?.clone(),fieldName:this.fieldName,tooltip:this.tooltip,value:this.value})}};(0,s.Cg)([(0,c.MZ)()],T.prototype,"color",void 0),(0,s.Cg)([(0,c.MZ)()],T.prototype,"fieldName",void 0),(0,s.Cg)([(0,c.MZ)()],T.prototype,"tooltip",void 0),(0,s.Cg)([(0,c.MZ)()],T.prototype,"value",void 0),T=R=(0,s.Cg)([(0,h.$)("esri.popup.content.support.ChartMediaInfoValueSeries")],T);const $=T;var E;let B=E=class extends l.o{constructor(t){super(t),this.colors=null,this.fields=[],this.normalizeField=null,this.series=[],this.tooltipField=null}clone(){return new E({colors:(0,a.o8)(this.colors),fields:(0,a.o8)(this.fields),normalizeField:this.normalizeField,series:(0,a.o8)(this.series),tooltipField:this.tooltipField})}};(0,s.Cg)([(0,c.MZ)({type:[_.A],json:{type:[[g.jz]],write:!0}})],B.prototype,"colors",void 0),(0,s.Cg)([(0,c.MZ)({type:[String],json:{write:{isRequired:!0}}})],B.prototype,"fields",void 0),(0,s.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],B.prototype,"normalizeField",void 0),(0,s.Cg)([(0,c.MZ)({type:[$],json:{read:!1}})],B.prototype,"series",void 0),(0,s.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],B.prototype,"tooltipField",void 0),B=E=(0,s.Cg)([(0,h.$)("esri.popup.content.support.ChartMediaInfoValue")],B);const k=B;let J=class extends S{constructor(t){super(t),this.type=null,this.value=void 0}};(0,s.Cg)([(0,c.MZ)({type:["bar-chart","column-chart","line-chart","pie-chart"],readOnly:!0,json:{read:!1,write:!0}})],J.prototype,"type",void 0),(0,s.Cg)([(0,c.MZ)({type:k,json:{write:{isRequired:!0}}})],J.prototype,"value",void 0),J=(0,s.Cg)([(0,h.$)("esri.popup.content.mixins.ChartMediaInfo")],J);const q=J,D=(0,o(66552).O)()({barchart:"bar-chart",columnchart:"column-chart",linechart:"line-chart",piechart:"pie-chart"});var U;let L=U=class extends q{constructor(t){super(t),this.type="bar-chart"}clone(){return new U({altText:this.altText,title:this.title,caption:this.caption,value:this.value?.clone()})}};(0,s.Cg)([(0,c.MZ)({type:["bar-chart"],readOnly:!0,json:{type:["barchart"],read:!1,write:{writer:D.write,isRequired:!0}}})],L.prototype,"type",void 0),L=U=(0,s.Cg)([(0,h.$)("esri.popup.content.BarChartMediaInfo")],L);const W=L;var z;let P=z=class extends q{constructor(t){super(t),this.type="column-chart"}clone(){return new z({altText:this.altText,title:this.title,caption:this.caption,value:this.value?.clone()})}};(0,s.Cg)([(0,c.MZ)({type:["column-chart"],readOnly:!0,json:{type:["columnchart"],read:!1,write:{writer:D.write,isRequired:!0}}})],P.prototype,"type",void 0),P=z=(0,s.Cg)([(0,h.$)("esri.popup.content.ColumnChartMediaInfo")],P);const K=P;var G;let V=G=class extends l.o{constructor(t){super(t),this.linkURL=null,this.sourceURL=null}clone(){return new G({linkURL:this.linkURL,sourceURL:this.sourceURL})}};(0,s.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],V.prototype,"linkURL",void 0),(0,s.Cg)([(0,c.MZ)({type:String,json:{write:{isRequired:!0}}})],V.prototype,"sourceURL",void 0),V=G=(0,s.Cg)([(0,h.$)("esri.popup.content.support.ImageMediaInfoValue")],V);const H=V;var X;let Q=X=class extends S{constructor(t){super(t),this.refreshInterval=0,this.type="image",this.value=void 0}clone(){return new X({altText:this.altText,title:this.title,caption:this.caption,refreshInterval:this.refreshInterval,value:this.value?.clone()})}};(0,s.Cg)([(0,c.MZ)({type:Number,json:{write:!0}})],Q.prototype,"refreshInterval",void 0),(0,s.Cg)([(0,c.MZ)({type:["image"],readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],Q.prototype,"type",void 0),(0,s.Cg)([(0,c.MZ)({type:H,json:{write:{isRequired:!0}}})],Q.prototype,"value",void 0),Q=X=(0,s.Cg)([(0,h.$)("esri.popup.content.ImageMediaInfo")],Q);const Y=Q;var tt;let et=tt=class extends q{constructor(t){super(t),this.type="line-chart"}clone(){return new tt({altText:this.altText,title:this.title,caption:this.caption,value:this.value?.clone()})}};(0,s.Cg)([(0,c.MZ)({type:["line-chart"],readOnly:!0,json:{type:["linechart"],read:!1,write:{writer:D.write,isRequired:!0}}})],et.prototype,"type",void 0),et=tt=(0,s.Cg)([(0,h.$)("esri.popup.content.LineChartMediaInfo")],et);const ot=et;var it;let st=it=class extends q{constructor(t){super(t),this.type="pie-chart"}clone(){return new it({altText:this.altText,title:this.title,caption:this.caption,value:this.value?.clone()})}};(0,s.Cg)([(0,c.MZ)({type:["pie-chart"],readOnly:!0,json:{type:["piechart"],read:!1,write:{writer:D.write,isRequired:!0}}})],st.prototype,"type",void 0),st=it=(0,s.Cg)([(0,h.$)("esri.popup.content.PieChartMediaInfo")],st);const rt=st,nt={base:S,key:"type",defaultKeyValue:"image",typeMap:{"bar-chart":W,"column-chart":K,"line-chart":ot,"pie-chart":rt,image:Y}};var lt;let at=lt=class extends w.A{constructor(t){super(t),this.activeMediaInfoIndex=null,this.attributes=null,this.description=null,this.mediaInfos=null,this.title=null,this.type="media"}readMediaInfos(t){return t&&t.map(t=>"image"===t.type?Y.fromJSON(t):"barchart"===t.type?W.fromJSON(t):"columnchart"===t.type?K.fromJSON(t):"linechart"===t.type?ot.fromJSON(t):"piechart"===t.type?rt.fromJSON(t):void 0).filter(Boolean)}writeMediaInfos(t,e){e.mediaInfos=t&&t.map(t=>t.toJSON())}clone(){return new lt((0,a.o8)({activeMediaInfoIndex:this.activeMediaInfoIndex,attributes:this.attributes,description:this.description,mediaInfos:this.mediaInfos,title:this.title}))}};(0,s.Cg)([(0,c.MZ)()],at.prototype,"activeMediaInfoIndex",void 0),(0,s.Cg)([(0,c.MZ)({type:Object,json:{write:!0}})],at.prototype,"attributes",void 0),(0,s.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],at.prototype,"description",void 0),(0,s.Cg)([(0,c.MZ)({types:[nt]})],at.prototype,"mediaInfos",void 0),(0,s.Cg)([(0,y.w)("mediaInfos")],at.prototype,"readMediaInfos",null),(0,s.Cg)([(0,m.K)("mediaInfos")],at.prototype,"writeMediaInfos",null),(0,s.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],at.prototype,"title",void 0),(0,s.Cg)([(0,c.MZ)({type:["media"],readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],at.prototype,"type",void 0),at=lt=(0,s.Cg)([(0,h.$)("esri.popup.content.MediaContent")],at);const pt=at;var dt=o(49852);let ct=class extends((0,r.OU)(w.A)){constructor(t){super(t),this.description=null,this.displayCount=null,this.displayType="list",this.orderByFields=null,this.relationshipId=null,this.title=null,this.type="relationship"}};(0,s.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],ct.prototype,"description",void 0),(0,s.Cg)([(0,c.MZ)({type:Number,json:{type:g.jz,write:!0}})],ct.prototype,"displayCount",void 0),(0,s.Cg)([(0,c.MZ)({type:["list"],json:{write:{isRequired:!0}}})],ct.prototype,"displayType",void 0),(0,s.Cg)([(0,c.MZ)({type:[dt.A],json:{write:!0}})],ct.prototype,"orderByFields",void 0),(0,s.Cg)([(0,c.MZ)({type:Number,json:{type:g.jz,write:{isRequired:!0}}})],ct.prototype,"relationshipId",void 0),(0,s.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],ct.prototype,"title",void 0),(0,s.Cg)([(0,c.MZ)({type:["relationship"],readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],ct.prototype,"type",void 0),ct=(0,s.Cg)([(0,h.$)("esri.popup.content.RelationshipContent")],ct);const ut=ct;var yt;let ht=yt=class extends w.A{constructor(t){super(t),this.text=null,this.type="text"}clone(){return new yt({text:this.text})}};(0,s.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],ht.prototype,"text",void 0),(0,s.Cg)([(0,c.MZ)({type:["text"],readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],ht.prototype,"type",void 0),ht=yt=(0,s.Cg)([(0,h.$)("esri.popup.content.TextContent")],ht);const mt=ht;var gt=o(93223),ft=o(83342);let vt=class extends((0,r.OU)(w.A)){constructor(t){super(t),this.description=null,this.displayCount=null,this.title=null,this.associationTypes=[],this.type="utility-network-associations"}};(0,s.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],vt.prototype,"description",void 0),(0,s.Cg)([(0,c.MZ)({type:Number,json:{type:g.jz,write:!0}})],vt.prototype,"displayCount",void 0),(0,s.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],vt.prototype,"title",void 0),(0,s.Cg)([(0,c.MZ)({type:[ft.A],json:{write:!0}})],vt.prototype,"associationTypes",void 0),(0,s.Cg)([(0,gt.e)({utilityNetworkAssociations:"utility-network-associations"})],vt.prototype,"type",void 0),vt=(0,s.Cg)([(0,h.$)("esri.popup.content.UtilityNetworkAssociationsContent")],vt);const wt=vt,Ct=v.A,Mt=w.A,xt=M,Ft=b,Zt=A.A,It=pt,jt=ut,bt=mt,At=wt,Nt={base:null,key:"type",typeMap:{attachment:Ct,media:It,text:bt,expression:Ft,field:Zt,relationship:jt,utilityNetworkAssociations:At}},St={base:null,key:"type",typeMap:{attachment:Ct,media:It,text:bt,expression:Ft,field:Zt,relationship:jt}};var Rt,_t=o(93705),Ot=o(41227);let Tt=Rt=class extends l.o{constructor(t){super(t),this.returnTopmostRaster=null,this.showNoDataRecords=null}clone(){return new Rt({showNoDataRecords:this.showNoDataRecords,returnTopmostRaster:this.returnTopmostRaster})}};(0,s.Cg)([(0,c.MZ)({type:Boolean,json:{write:!0}})],Tt.prototype,"returnTopmostRaster",void 0),(0,s.Cg)([(0,c.MZ)({type:Boolean,json:{write:!0}})],Tt.prototype,"showNoDataRecords",void 0),Tt=Rt=(0,s.Cg)([(0,h.$)("esri.popup.LayerOptions")],Tt);const $t=Tt;var Et;let Bt=Et=class extends l.o{constructor(t){super(t),this.showRelatedRecords=null,this.orderByFields=null}clone(){return new Et({showRelatedRecords:this.showRelatedRecords,orderByFields:this.orderByFields?(0,a.o8)(this.orderByFields):null})}};(0,s.Cg)([(0,c.MZ)({type:Boolean,json:{write:!0}})],Bt.prototype,"showRelatedRecords",void 0),(0,s.Cg)([(0,c.MZ)({type:[dt.A],json:{write:!0}})],Bt.prototype,"orderByFields",void 0),Bt=Et=(0,s.Cg)([(0,h.$)("esri.popup.RelatedRecordsInfo")],Bt);const kt=Bt;var Jt,qt=o(4902);let Dt=Jt=class extends((0,qt.s)(O.A)){constructor(t){super(t),this.active=!1,this.className=null,this.disabled=!1,this.icon=null,this.id=null,this.indicator=!1,this.title=null,this.type=null,this.visible=!0}clone(){return new Jt({active:this.active,className:this.className,disabled:this.disabled,icon:this.icon,id:this.id,indicator:this.indicator,title:this.title,visible:this.visible})}};(0,s.Cg)([(0,c.MZ)()],Dt.prototype,"active",void 0),(0,s.Cg)([(0,c.MZ)()],Dt.prototype,"className",void 0),(0,s.Cg)([(0,c.MZ)()],Dt.prototype,"disabled",void 0),(0,s.Cg)([(0,c.MZ)()],Dt.prototype,"icon",void 0),(0,s.Cg)([(0,c.MZ)()],Dt.prototype,"id",void 0),(0,s.Cg)([(0,c.MZ)()],Dt.prototype,"indicator",void 0),(0,s.Cg)([(0,c.MZ)()],Dt.prototype,"title",void 0),(0,s.Cg)([(0,c.MZ)()],Dt.prototype,"type",void 0),(0,s.Cg)([(0,c.MZ)()],Dt.prototype,"visible",void 0),Dt=Jt=(0,s.Cg)([(0,h.$)("esri.support.actions.ActionBase")],Dt);const Ut=Dt;var Lt;let Wt=Lt=class extends Ut{constructor(t){super(t),this.image=null,this.type="button"}clone(){return new Lt({active:this.active,className:this.className,disabled:this.disabled,icon:this.icon,id:this.id,indicator:this.indicator,title:this.title,visible:this.visible,image:this.image})}};(0,s.Cg)([(0,c.MZ)()],Wt.prototype,"image",void 0),Wt=Lt=(0,s.Cg)([(0,h.$)("esri.support.actions.ActionButton")],Wt);const zt=Wt;var Pt;let Kt=Pt=class extends Ut{constructor(t){super(t),this.image=null,this.type="toggle",this.value=!1}clone(){return new Pt({active:this.active,className:this.className,disabled:this.disabled,icon:this.icon,id:this.id,indicator:this.indicator,title:this.title,visible:this.visible,image:this.image,value:this.value})}};(0,s.Cg)([(0,c.MZ)()],Kt.prototype,"image",void 0),(0,s.Cg)([(0,c.MZ)()],Kt.prototype,"value",void 0),Kt=Pt=(0,s.Cg)([(0,h.$)("esri.support.actions.ActionToggle")],Kt);const Gt=Kt,Vt="relationships/",Ht="expression/",Xt=n.A.ofType({key:"type",defaultKeyValue:"button",base:Ut,typeMap:{button:zt,toggle:Gt}}),Qt={base:Mt,key:"type",typeMap:{media:It,custom:xt,text:bt,attachments:Ct,fields:Zt,expression:Ft,relationship:jt,utilityNetworkAssociations:At}},Yt=new Set(["attachments","fields","media","text","expression","relationship"]),te=new Set([...Yt,"utility-network-associations"]);let ee=class extends((0,r.OU)(l.o)){constructor(t){super(t),this.actions=null,this.content="",this.expressionInfos=null,this.fieldInfos=null,this.layerOptions=null,this.lastEditInfoEnabled=!0,this.outFields=null,this.overwriteActions=!1,this.returnGeometry=!1,this.title=""}castContent(t){return Array.isArray(t)?t.map(t=>(0,g.aq)(Qt,t)):"string"==typeof t||"function"==typeof t||t instanceof HTMLElement||(0,d.$X)(t)?t:(p.A.getLogger(this).error("content error","unsupported content value",{value:t}),null)}readContent(t,e){const{popupElements:o}=e;return Array.isArray(o)&&o.length>0?this._readPopupInfoElements(e.description,e.mediaInfos,o):this._readPopupInfo(e)}writeWebSceneContent(t,e,o,i){this._writePopupTemplateContent(t,e,i)}writeWebMapContent(t,e,o,i){this._writePopupTemplateContent(t,e,i)}writeFieldInfos(t,e,o,i){const{content:s}=this,r=Array.isArray(s)?s:null,{writeFieldFormat:n,...l}=i||{};if(t){const o=r?r.filter(t=>"fields"===t.type):[],i=o.length&&o.every(t=>t.fieldInfos?.length);e.fieldInfos=t.filter(Boolean).map(t=>{const e=t.toJSON(l);return i&&(e.visible=!1),e})}if(r)for(const t of r)"fields"===t.type&&this._writeFieldsContent(t,e,l)}writeLayerOptions(t,e,o,i){e[o]=!t||null===t.showNoDataRecords&&null===t.returnTopmostRaster?null:t.toJSON(i)}writeTitle(t,e){e.title=t||""}async collectRequiredFields(t,e,o){const i=this.expressionInfos||[];await this._collectExpressionInfoFields(t,e,o,[...i,...this._getContentExpressionInfos(this.content,i)]),(0,f._w)(t,e,[...this.outFields||[],...this._getActionsFields(this.actions),...this._getTitleFields(this.title),...this._getContentFields(this.content)])}async getRequiredFields(t,e){const o=new Set;return await this.collectRequiredFields(o,t,e),[...o].sort()}_writePopupTemplateContent(t,e,o){"string"!=typeof t?Array.isArray(t)&&(e.popupElements=t.filter(t=>"web-scene"===o?.origin?Yt.has(t.type):te.has(t.type)).map(t=>t?.toJSON(o)),e.popupElements.forEach(t=>{"attachments"===t.type?this._writeAttachmentContent(e):"media"===t.type?this._writeMediaContent(t,e):"text"===t.type?this._writeTextContent(t,e):"relationship"===t.type&&this._writeRelationshipContent(t,e)})):e.description=t}_writeFieldsContent(t,e,o){const i=t.fieldInfos;if(!Array.isArray(i)||!i.length)return;const s=e.fieldInfos;if(Array.isArray(s))for(const t of i){const e=s.find(e=>e.fieldName?.toLowerCase()===t.fieldName?.toLowerCase());e?e.visible=!0:s.push(t.toJSON(o))}else e.fieldInfos=i.map(t=>t.toJSON(o))}_writeAttachmentContent(t){t.showAttachments||(t.showAttachments=!0)}_writeRelationshipContent(t,e){const o=t.orderByFields?.map(e=>this._toFieldOrderJSON(e,t.relationshipId))||[],i=[...e.relatedRecordsInfo?.orderByFields||[],...o];e.relatedRecordsInfo={showRelatedRecords:!0,...i?.length&&{orderByFields:i}}}_writeTextContent(t,e){!e.description&&t.text&&(e.description=t.text)}_writeMediaContent(t,e){if(!Array.isArray(t.mediaInfos)||!t.mediaInfos.length)return;const o=(0,a.o8)(t.mediaInfos);Array.isArray(e.mediaInfos)?e.mediaInfos=[...e.mediaInfos,...o]:e.mediaInfos=o}_readPopupInfoElements(t,e,o){const i={description:!1,mediaInfos:!1};return o.map(o=>"media"===o.type?(o.mediaInfos||!e||i.mediaInfos||(o.mediaInfos=e,i.mediaInfos=!0),It.fromJSON(o)):"text"===o.type?(o.text||!t||i.description||(o.text=t,i.description=!0),bt.fromJSON(o)):"attachments"===o.type?Ct.fromJSON(o):"fields"===o.type?Zt.fromJSON(o):"expression"===o.type?Ft.fromJSON(o):"relationship"===o.type?jt.fromJSON(o):"utilityNetworkAssociations"===o.type?At.fromJSON(o):void 0).filter(Boolean)}_toRelationshipContent(t){const{field:e,order:o}=t;if(!e?.startsWith(Vt))return null;const i=e.replace(Vt,"").split("/");if(2!==i.length)return null;const s=parseInt(i[0],10),r=i[1];return!Number.isNaN(s)&&r?jt.fromJSON({relationshipId:s,orderByFields:[{field:r,order:o}]}):null}_toFieldOrderJSON(t,e){const{order:o,field:i}=t;return{field:`${Vt}${e}/${i}`,order:o}}_readPopupInfo({description:t,mediaInfos:e,showAttachments:o,relatedRecordsInfo:i={showRelatedRecords:!1}}){const s=[];t?s.push(new bt({text:t})):s.push(new Zt),Array.isArray(e)&&e.length&&s.push(It.fromJSON({mediaInfos:e})),o&&s.push(Ct.fromJSON({displayType:"auto"}));const{showRelatedRecords:r,orderByFields:n}=i;return r&&n?.length&&n.forEach(t=>{const e=this._toRelationshipContent(t);e&&s.push(e)}),s.length?s:t}_getContentElementFields(t){const e=t?.type;if("attachments"===e)return[...this._extractFieldNames(t.title),...this._extractFieldNames(t.description)];if("custom"===e)return t.outFields||[];if("fields"===e)return[...this._extractFieldNames(t.title),...this._extractFieldNames(t.description),...this._getFieldInfoFields(t.fieldInfos??this.fieldInfos)];if("media"===e){const e=t.mediaInfos||[];return[...this._extractFieldNames(t.title),...this._extractFieldNames(t.description),...e.reduce((t,e)=>[...t,...this._getMediaInfoFields(e)],[])]}return"text"===e?this._extractFieldNames(t.text):"relationship"===e||"utility-network-associations"===e?[...this._extractFieldNames(t.title),...this._extractFieldNames(t.description)]:[]}_getMediaInfoFields(t){const{caption:e,title:o,value:i}=t,s=i||{},{fields:r,normalizeField:n,tooltipField:l,sourceURL:a,linkURL:p}=s,d=[...this._extractFieldNames(o),...this._extractFieldNames(e),...this._extractFieldNames(a),...this._extractFieldNames(p),...r??[]];return n&&d.push(n),l&&d.push(l),d}_getContentExpressionInfos(t,e){return Array.isArray(t)?t.reduce((t,e)=>[...t,..."expression"===e.type&&e.expressionInfo?[e.expressionInfo]:[]],e):[]}_getContentFields(t){return"string"==typeof t?this._extractFieldNames(t):Array.isArray(t)?t.reduce((t,e)=>[...t,...this._getContentElementFields(e)],[]):[]}async _collectExpressionInfoFields(t,e,o,i){i&&await Promise.all(i.map(i=>(0,f.Dx)(t,e,o,i.expression)))}_getFieldInfoFields(t){return t?t.filter(({fieldName:t,visible:e})=>!(void 0!==e&&!e||!t||t.startsWith(Vt)||t.startsWith(Ht))).map(t=>t.fieldName):[]}_getActionsFields(t){return t?t.toArray().reduce((t,e)=>[...t,...this._getActionFields(e)],[]):[]}_getActionFields(t){const{className:e,title:o,type:i}=t,s="button"===i||"toggle"===i?t.image:"";return[...this._extractFieldNames(o),...this._extractFieldNames(e),...this._extractFieldNames(s)]}_getTitleFields(t){return"string"==typeof t?this._extractFieldNames(t):[]}_extractFieldNames(t){return(0,f.nw)(t).filter(t=>!(t.startsWith(Vt)||t.startsWith(Ht)))}};(0,s.Cg)([(0,c.MZ)({type:Xt})],ee.prototype,"actions",void 0),(0,s.Cg)([(0,c.MZ)()],ee.prototype,"content",void 0),(0,s.Cg)([(0,u.w)("content")],ee.prototype,"castContent",null),(0,s.Cg)([(0,y.w)("content",["description","fieldInfos","popupElements","mediaInfos","showAttachments","relatedRecordsInfo"])],ee.prototype,"readContent",null),(0,s.Cg)([(0,m.K)("web-scene","content",{popupElements:{type:n.A.ofType(St)},showAttachments:{type:Boolean},mediaInfos:{type:n.A.ofType(nt)},description:{type:String},relatedRecordsInfo:{type:kt}})],ee.prototype,"writeWebSceneContent",null),(0,s.Cg)([(0,m.K)("content",{popupElements:{type:n.A.ofType(Nt)},showAttachments:{type:Boolean},mediaInfos:{type:n.A.ofType(nt)},description:{type:String},relatedRecordsInfo:{type:kt}})],ee.prototype,"writeWebMapContent",null),(0,s.Cg)([(0,c.MZ)({type:[_t.A],json:{write:!0}})],ee.prototype,"expressionInfos",void 0),(0,s.Cg)([(0,c.MZ)({type:[Ot.A]})],ee.prototype,"fieldInfos",void 0),(0,s.Cg)([(0,m.K)("fieldInfos")],ee.prototype,"writeFieldInfos",null),(0,s.Cg)([(0,c.MZ)({type:$t})],ee.prototype,"layerOptions",void 0),(0,s.Cg)([(0,m.K)("layerOptions")],ee.prototype,"writeLayerOptions",null),(0,s.Cg)([(0,c.MZ)({type:Boolean,json:{read:{source:"showLastEditInfo"},write:{target:"showLastEditInfo"},default:!0}})],ee.prototype,"lastEditInfoEnabled",void 0),(0,s.Cg)([(0,c.MZ)()],ee.prototype,"outFields",void 0),(0,s.Cg)([(0,c.MZ)()],ee.prototype,"overwriteActions",void 0),(0,s.Cg)([(0,c.MZ)()],ee.prototype,"returnGeometry",void 0),(0,s.Cg)([(0,c.MZ)({json:{type:String}})],ee.prototype,"title",void 0),(0,s.Cg)([(0,m.K)("title")],ee.prototype,"writeTitle",null),ee=(0,s.Cg)([(0,h.$)("esri.PopupTemplate")],ee);const oe=ee},39663:(t,e,o)=>{o.d(e,{$P:()=>q,iu:()=>x,HK:()=>F,PK:()=>O,fg:()=>M,qH:()=>Z});var i=o(31635),s=o(10107),r=o(64108),n=o(69540),l=o(25482);let a=class extends((0,n.OU)(l.o)){constructor(t){super(t),this.type=null}};(0,i.Cg)([(0,s.MZ)({type:["date-time","number"],nonNullable:!0,readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],a.prototype,"type",void 0),a=(0,i.Cg)([(0,r.$)("esri.layers.support.FieldFormat")],a);const p=a,d="auto";let c=class extends p{constructor(t){super(t),this.dateStyle=null,this.hour12=d,this.month=null,this.timeStyle=null,this.type="date-time",this.year=null}};(0,i.Cg)([(0,s.MZ)({type:["full","long","medium","short"],json:{write:!0}})],c.prototype,"dateStyle",void 0),(0,i.Cg)([(0,s.MZ)({type:["always","auto","never"],nonNullable:!0,json:{default:d,write:!0}})],c.prototype,"hour12",void 0),(0,i.Cg)([(0,s.MZ)({type:["long","short"],json:{write:!0}})],c.prototype,"month",void 0),(0,i.Cg)([(0,s.MZ)({type:["full","long","medium","short"],json:{write:!0}})],c.prototype,"timeStyle",void 0),(0,i.Cg)([(0,s.MZ)({type:["date-time"]})],c.prototype,"type",void 0),(0,i.Cg)([(0,s.MZ)({type:["numeric"],json:{write:!0}})],c.prototype,"year",void 0),c=(0,i.Cg)([(0,r.$)("esri.layers.support.DateTimeFieldFormat")],c);const u=c;var y=o(30524),h=o(56507);const m={min:0,max:20},g="decimal",f="auto";let v=class extends p{constructor(t){super(t),this.maximumFractionDigits=2,this.minimumFractionDigits=0,this.style=g,this.type="number",this.useGrouping=f}};(0,i.Cg)([(0,s.MZ)({type:h.jz,nonNullable:!0,range:m,json:{default:2,write:!0}})],v.prototype,"maximumFractionDigits",void 0),(0,i.Cg)([(0,s.MZ)({type:h.jz,nonNullable:!0,range:m,json:{default:0,write:!0}})],v.prototype,"minimumFractionDigits",void 0),(0,i.Cg)([(0,s.MZ)({type:["decimal"],nonNullable:!0,json:{default:g,write:!0}})],v.prototype,"style",void 0),(0,i.Cg)([(0,s.MZ)({type:["number"]})],v.prototype,"type",void 0),(0,i.Cg)([(0,s.MZ)({type:["always","auto","never"],nonNullable:!0,json:{default:f,write:!0}})],v.prototype,"useGrouping",void 0),v=(0,i.Cg)([(0,r.$)("esri.layers.support.NumberFieldFormat")],v);const w=v;var C=o(68780);const M={base:p,key:"type",errorContext:"field-configuration-field-format",typeMap:{"date-time":u,number:w}};function x(t,e){const{format:o}=t;return e&&Z(e)?o?F(o,e):q(e,{hour12:"always",useGrouping:"always"}):null}function F(t,e){const{dateFormat:o}=t;if(!e)return o?b(t):j(t);if(!Z(e))return;const i={hour12:"always"};switch(e.type){case"integer":case"small-integer":case"big-integer":case"long":return I(t);case"single":case"double":return j(t);case"date":case"timestamp-offset":return o?b(t):q(e,i);case"date-only":return o?function(t){return new u({dateStyle:A(t),year:_(t),month:S(t)})}(t):q(e);case"time-only":return o?function(t){return new u({timeStyle:R(t),hour12:N(t)})}(t):q(e,i)}}function Z(t){return(0,y.WA)(t)||(0,y.vE)(t)||(0,y.zD)(t)||(0,y.OH)(t)||(0,y.Ah)(t)}function I(t){return new w({useGrouping:t.digitSeparator?"always":"never"})}function j(t){const e=I(t),{places:o}=t;return e.minimumFractionDigits=o??0,e.maximumFractionDigits=o??2,e}function b(t){return new u({dateStyle:A(t),year:_(t),month:S(t),timeStyle:R(t),hour12:N(t)})}function A(t){const{dateFormat:e}=t;return e?e.startsWith("short-date")?"short":e.startsWith("day-short-month-year")?"medium":e.startsWith("long-month-day-year")?"long":e.startsWith("long-date")?"full":null:null}function N(t){return t.dateFormat?.endsWith("-24")?"never":"always"}function S(t){switch(t.dateFormat){case"short-month-year":return"short";case"long-month-year":return"long";default:return null}}function R(t){const{dateFormat:e}=t;return e?e.includes("short-time")?"short":e.includes("long-time")?"medium":null:null}function _(t){switch(t.dateFormat){case"short-month-year":case"long-month-year":case"year":return"numeric";default:return null}}function O(t,e){const o="number"===t.type,i="date-time"===t.type;if(!e)return o?$(t):i?E(t):null;if(Z(e))switch(e.type){case"integer":case"small-integer":case"big-integer":case"long":return o?T(t):null;case"single":case"double":return o?$(t):null;case"date":case"timestamp-offset":return i?E(t):null;case"date-only":return i?function(t){let e;const o=B(t),i="numeric"===t.year?"year":null,s=J(t);return o?e=o:i&&s?e=`${s}-${i}`:i&&(e=i),e?new C.A({dateFormat:e}):null}(t):null;case"time-only":return i?function(t){let e;const o=k(t),i="never"===t.hour12?"24":null;return o&&i?e=`short-date-${o}-${i}`:o&&(e=`short-date-${o}`),e?new C.A({dateFormat:e}):null}(t):null}}function T(t){return new C.A({digitSeparator:"never"!==t.useGrouping})}function $(t){const e=T(t);return e.places=t.maximumFractionDigits,e}function E(t){let e;const o=B(t),i=k(t),s="never"===t.hour12?"24":null,r="numeric"===t.year?"year":null,n=J(t);return o&&i&&s?e=`${o}-${i}-${s}`:o&&i?e=`${o}-${i}`:o?e=o:r&&n?e=`${n}-${r}`:r&&(e=r),e?new C.A({dateFormat:e}):null}function B(t){switch(t.dateStyle){case"short":return"short-date";case"medium":return"day-short-month-year";case"long":return"long-month-day-year";case"full":return"long-date";default:return}}function k(t){return t.timeStyle&&("short"===t.timeStyle?"short-time":"long-time")}function J(t){switch(t.month){case"short":return"short-month";case"long":return"long-month";default:return}}function q(t,e){if(!Z(t))return;const o=e?.useGrouping??"auto",i=e?.hour12??"auto";switch(t.type){case"integer":case"small-integer":case"big-integer":case"long":return new w({minimumFractionDigits:0,maximumFractionDigits:0,useGrouping:o});case"single":case"double":return new w({minimumFractionDigits:0,maximumFractionDigits:2,useGrouping:o});case"date":case"timestamp-offset":return new u({dateStyle:"short",timeStyle:"short",hour12:i});case"date-only":return new u({dateStyle:"short"});case"time-only":return new u({timeStyle:"short",hour12:i})}}},41227:(t,e,o)=>{o.d(e,{A:()=>h});var i=o(31635),s=o(69540),r=o(66552),n=o(25482),l=o(10107),a=(o(44208),o(53966),o(87811),o(93223)),p=o(36005),d=o(64108),c=o(39663),u=o(68780);let y=class extends((0,s.OU)(n.o)){constructor(t){super(t),this.fieldName=null,this.isEditable=!0,this.label=null,this.statisticType=null,this.stringFieldOption="text-box",this.tooltip=null,this.visible=!0}set fieldFormat(t){this._set("fieldFormat",t),this._set("format",t?(0,c.PK)(t):null)}set format(t){this._set("format",t),this._set("fieldFormat",t?(0,c.HK)(t):null)}readFormat(t,e){if(!e.fieldFormat)return t?u.A.fromJSON(t):null}clone(){const t=super.clone();return t._set("format",this.format?.clone()),t._set("fieldFormat",this.fieldFormat?.clone()),t}};(0,i.Cg)([(0,l.MZ)({value:null,clonable:!1,types:c.fg,json:{write:{overridePolicy(t,e,o){const{fieldName:i}=this;return{enabled:!(!i||i.startsWith("expression/")||i.startsWith("relationships/")||!o?.writeFieldFormat)}}}}})],y.prototype,"fieldFormat",null),(0,i.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],y.prototype,"fieldName",void 0),(0,i.Cg)([(0,l.MZ)({value:null,clonable:!1,type:u.A,json:{write:!0}})],y.prototype,"format",null),(0,i.Cg)([(0,p.w)("format")],y.prototype,"readFormat",null),(0,i.Cg)([(0,l.MZ)({type:Boolean,json:{write:{alwaysWriteDefaults:!0},default:!0}})],y.prototype,"isEditable",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],y.prototype,"label",void 0),(0,i.Cg)([(0,l.MZ)({type:["count","sum","min","max","avg","stddev","var"],json:{write:!0}})],y.prototype,"statisticType",void 0),(0,i.Cg)([(0,a.e)(new r.J({richtext:"rich-text",textarea:"text-area",textbox:"text-box"}),{default:"text-box"})],y.prototype,"stringFieldOption",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],y.prototype,"tooltip",void 0),(0,i.Cg)([(0,l.MZ)({type:Boolean,json:{write:!0}})],y.prototype,"visible",void 0),y=(0,i.Cg)([(0,d.$)("esri.popup.FieldInfo")],y);const h=y},49852:(t,e,o)=>{o.d(e,{A:()=>p});var i,s=o(31635),r=o(25482),n=o(10107),l=(o(44208),o(53966),o(87811),o(64108));let a=i=class extends r.o{constructor(t){super(t),this.field=null,this.order=null}clone(){return new i({field:this.field,order:this.order})}};(0,s.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],a.prototype,"field",void 0),(0,s.Cg)([(0,n.MZ)({type:["asc","desc"],json:{write:!0}})],a.prototype,"order",void 0),a=i=(0,s.Cg)([(0,l.$)("esri.popup.support.RelatedRecordsInfoFieldOrder")],a);const p=a},60950:(t,e,o)=>{o.d(e,{E_:()=>s,ym:()=>i});const i=Symbol("popupProvider");function s(t){return function(t){return!!t&&i in t}(t)?t[i]:null}},66159:(t,e,o)=>{o.d(e,{A:()=>c});var i,s=o(31635),r=o(4718),n=o(10107),l=(o(44208),o(53966),o(64108)),a=o(41227),p=o(84424);let d=i=class extends p.A{constructor(t){super(t),this.attributes=null,this.description=null,this.fieldInfos=null,this.title=null,this.type="fields"}clone(){return new i((0,r.o8)({attributes:this.attributes,description:this.description,fieldInfos:this.fieldInfos,title:this.title}))}};(0,s.Cg)([(0,n.MZ)({type:Object,json:{write:!0}})],d.prototype,"attributes",void 0),(0,s.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],d.prototype,"description",void 0),(0,s.Cg)([(0,n.MZ)({type:[a.A],json:{write:!0}})],d.prototype,"fieldInfos",void 0),(0,s.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],d.prototype,"title",void 0),(0,s.Cg)([(0,n.MZ)({type:["fields"],readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],d.prototype,"type",void 0),d=i=(0,s.Cg)([(0,l.$)("esri.popup.content.FieldsContent")],d);const c=d},68780:(t,e,o)=>{o.d(e,{A:()=>u});var i=o(31635),s=o(69540),r=o(25482),n=o(10107),l=o(56507),a=(o(44208),o(87811),o(93223)),p=o(64108),d=o(97770);let c=class extends((0,s.OU)(r.o)){constructor(t){super(t),this.dateFormat=null,this.digitSeparator=!1,this.places=null}};(0,i.Cg)([(0,a.e)(d._v)],c.prototype,"dateFormat",void 0),(0,i.Cg)([(0,n.MZ)({type:Boolean,json:{write:!0}})],c.prototype,"digitSeparator",void 0),(0,i.Cg)([(0,n.MZ)({type:l.jz,json:{write:!0}})],c.prototype,"places",void 0),c=(0,i.Cg)([(0,p.$)("esri.popup.support.FieldInfoFormat")],c);const u=c},78553:(t,e,o)=>{o.d(e,{D:()=>r,p:()=>s});var i=o(56507);function s(t){const e=(0,i.Vr)(100*(1-t));return Math.max(0,Math.min(e,100))}function r(t){const e=1-t/100;return Math.max(0,Math.min(e,1))}},83342:(t,e,o)=>{o.d(e,{A:()=>d});var i=o(31635),s=o(69540),r=o(25482),n=o(10107),l=o(56507),a=(o(44208),o(87811),o(64108));let p=class extends((0,s.OU)(r.o)){constructor(t){super(t),this.title=null,this.description=null,this.type=null,this.associatedNetworkSourceId=null,this.associatedAssetGroup=null,this.associatedAssetType=null}};(0,i.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],p.prototype,"title",void 0),(0,i.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],p.prototype,"description",void 0),(0,i.Cg)([(0,n.MZ)({type:["attachment","connectivity","container","content","structure"],json:{write:!0}})],p.prototype,"type",void 0),(0,i.Cg)([(0,n.MZ)({type:Number,json:{type:l.jz,write:!0}})],p.prototype,"associatedNetworkSourceId",void 0),(0,i.Cg)([(0,n.MZ)({type:Number,json:{type:l.jz,write:!0}})],p.prototype,"associatedAssetGroup",void 0),(0,i.Cg)([(0,n.MZ)({type:Number,json:{type:l.jz,write:!0}})],p.prototype,"associatedAssetType",void 0),p=(0,i.Cg)([(0,a.$)("esri.popup.support.UtilityNetworkAssociationType")],p);const d=p},84424:(t,e,o)=>{o.d(e,{A:()=>a});var i=o(31635),s=o(25482),r=o(10107),n=(o(44208),o(53966),o(87811),o(64108));let l=class extends s.o{constructor(t){super(t),this.type=null}};(0,i.Cg)([(0,r.MZ)({type:["attachments","custom","fields","media","text","expression","relationship","utility-network-associations"],readOnly:!0,json:{read:!1,write:!0}})],l.prototype,"type",void 0),l=(0,i.Cg)([(0,n.$)("esri.popup.content.Content")],l);const a=l},89893:(t,e,o)=>{o.d(e,{A:()=>h});var i=o(31635),s=o(69540),r=o(10107),n=(o(44208),o(53966),o(87811),o(64108)),l=o(84424),a=o(66552),p=o(25482);const d=new a.J({asc:"ascending",desc:"descending"});let c=class extends((0,s.OU)(p.o)){constructor(t){super(t),this.field=null,this.order="ascending"}};(0,i.Cg)([(0,r.MZ)({type:String,json:{write:!0}})],c.prototype,"field",void 0),(0,i.Cg)([(0,r.MZ)({type:d.apiValues,json:{type:d.jsonValues,read:d.read,write:d.write}})],c.prototype,"order",void 0),c=(0,i.Cg)([(0,n.$)("esri.popup.support.AttachmentsOrderByInfo")],c);const u=c;let y=class extends((0,s.OU)(l.A)){constructor(t){super(t),this.attachmentKeywords=null,this.attachmentTypes=null,this.description=null,this.displayType="auto",this.orderByFields=null,this.title=null,this.type="attachments"}};(0,i.Cg)([(0,r.MZ)({type:[String],json:{write:!0}})],y.prototype,"attachmentKeywords",void 0),(0,i.Cg)([(0,r.MZ)({type:[["application","audio","image","model","text","video"]],json:{write:!0}})],y.prototype,"attachmentTypes",void 0),(0,i.Cg)([(0,r.MZ)({type:String,json:{write:!0}})],y.prototype,"description",void 0),(0,i.Cg)([(0,r.MZ)({type:["auto","preview","list"],json:{write:!0}})],y.prototype,"displayType",void 0),(0,i.Cg)([(0,r.MZ)({type:[u],json:{write:!0}})],y.prototype,"orderByFields",void 0),(0,i.Cg)([(0,r.MZ)({type:String,json:{write:!0}})],y.prototype,"title",void 0),(0,i.Cg)([(0,r.MZ)({type:["attachments"],readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],y.prototype,"type",void 0),y=(0,i.Cg)([(0,n.$)("esri.popup.content.AttachmentsContent")],y);const h=y},93705:(t,e,o)=>{o.d(e,{A:()=>p});var i,s=o(31635),r=o(25482),n=o(10107),l=(o(44208),o(53966),o(87811),o(64108));let a=i=class extends r.o{constructor(t){super(t),this.name=null,this.title=null,this.expression=null,this.returnType=null}clone(){return new i({name:this.name,title:this.title,expression:this.expression,returnType:this.returnType})}};(0,s.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],a.prototype,"name",void 0),(0,s.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],a.prototype,"title",void 0),(0,s.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],a.prototype,"expression",void 0),(0,s.Cg)([(0,n.MZ)({type:["string","number"],json:{write:!0}})],a.prototype,"returnType",void 0),a=i=(0,s.Cg)([(0,l.$)("esri.popup.ExpressionInfo")],a);const p=a}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9036],{17029:(e,t,i)=>{i.r(t),i.d(t,{default:()=>_});var r,s=i(31635),o=i(11254),l=i(51447),n=i(49186),a=i(66552),c=i(53966),u=i(25728),p=i(10107),h=(i(44208),i(87811),i(64108)),g=i(86738),d=i(16930),y=i(5443),w=i(19419),v=i(4146),f=i(63074),b=i(54310),m=i(25036),M=i(33446),A=i(87045);const C=new(i(72802).U)(0,0,0);let x=r=class extends((0,f.dM)((0,m.j)((0,b.J)(v.A)))){constructor(){super(...arguments),this.tileInfo=A.A.create({spatialReference:d.A.WebMercator,size:256}),this.type="base-tile",this.fullExtent=new y.A(-20037508.342787,-20037508.34278,20037508.34278,20037508.342787,d.A.WebMercator),this.spatialReference=d.A.WebMercator}addResolvingPromise(e){super.addResolvingPromise(e)}getTileBounds(e,t,i,r){const s=r||(0,w.vt)();return C.level=e,C.row=t,C.col=i,C.extent=s,this.tileInfo.updateTileInfo(C),s}fetchTile(e,t,i,r={}){const{signal:s}=r,l=this.getTileUrl(e,t,i),n={responseType:"image",signal:s,query:{...this.refreshParameters}};return(0,o.A)(l??"",n).then(e=>e.data)}async fetchImageBitmapTile(e,t,i,s={}){const{signal:l}=s;if(this.fetchTile!==r.prototype.fetchTile){const r=await this.fetchTile(e,t,i,s);return(0,M.C)(r,e,t,i,l)}const n=this.getTileUrl(e,t,i)??"",a={responseType:"blob",signal:l,query:{...this.refreshParameters}},{data:c}=await(0,o.A)(n,a);return(0,M.C)(c,e,t,i,l)}getTileUrl(){throw new n.A("basetilelayer:gettileurl-not-implemented","getTileUrl() is not implemented")}};(0,s.Cg)([(0,p.MZ)({type:A.A})],x.prototype,"tileInfo",void 0),(0,s.Cg)([(0,p.MZ)({type:["show","hide"]})],x.prototype,"listMode",void 0),(0,s.Cg)([(0,p.MZ)({readOnly:!0,value:"base-tile"})],x.prototype,"type",void 0),(0,s.Cg)([(0,p.MZ)({nonNullable:!0})],x.prototype,"fullExtent",void 0),(0,s.Cg)([(0,p.MZ)()],x.prototype,"spatialReference",void 0),x=r=(0,s.Cg)([(0,h.$)("esri.layers.BaseTileLayer")],x);var z=i(16131),T=i(91806);const R=new a.J({BingMapsAerial:"aerial",BingMapsRoad:"road",BingMapsHybrid:"hybrid"});(0,l.uW)(c.A.getLogger("esri.layers.BingMapsLayer"),"esri.layers.BingMapsLayer",{version:"4.33",warnOnce:!0});let Z=class extends((0,f.dM)((0,z.q)((0,u.P)(x)))){constructor(e){super(e),this.type="bing-maps",this.tileInfo=new A.A({size:[256,256],dpi:96,origin:new g.A({x:-20037508.342787,y:20037508.342787,spatialReference:d.A.WebMercator}),spatialReference:d.A.WebMercator,lods:[new T.A({level:1,resolution:78271.5169639999,scale:295828763.795777}),new T.A({level:2,resolution:39135.7584820001,scale:147914381.897889}),new T.A({level:3,resolution:19567.8792409999,scale:73957190.948944}),new T.A({level:4,resolution:9783.93962049996,scale:36978595.474472}),new T.A({level:5,resolution:4891.96981024998,scale:18489297.737236}),new T.A({level:6,resolution:2445.98490512499,scale:9244648.868618}),new T.A({level:7,resolution:1222.99245256249,scale:4622324.434309}),new T.A({level:8,resolution:611.49622628138,scale:2311162.217155}),new T.A({level:9,resolution:305.748113140558,scale:1155581.108577}),new T.A({level:10,resolution:152.874056570411,scale:577790.554289}),new T.A({level:11,resolution:76.4370282850732,scale:288895.277144}),new T.A({level:12,resolution:38.2185141425366,scale:144447.638572}),new T.A({level:13,resolution:19.1092570712683,scale:72223.819286}),new T.A({level:14,resolution:9.55462853563415,scale:36111.909643}),new T.A({level:15,resolution:4.77731426794937,scale:18055.954822}),new T.A({level:16,resolution:2.38865713397468,scale:9027.977411}),new T.A({level:17,resolution:1.19432856685505,scale:4513.988705}),new T.A({level:18,resolution:.597164283559817,scale:2256.994353}),new T.A({level:19,resolution:.298582141647617,scale:1128.497176}),new T.A({level:20,resolution:.1492910708238085,scale:564.248588})]}),this.key=null,this.style="road",this.culture="en-US",this.region=null,this.portalUrl=null,this.hasAttributionData=!0}get bingMetadata(){return this._get("bingMetadata")}set bingMetadata(e){this._set("bingMetadata",e)}get copyright(){return null!=this.bingMetadata?this.bingMetadata.copyright:null}get operationalLayerType(){return R.toJSON(this.style)}get bingLogo(){return null!=this.bingMetadata?this.bingMetadata.brandLogoUri:null}load(e){return this.key?this.addResolvingPromise(this._getMetadata()):this.portalUrl?this.addResolvingPromise(this._getPortalBingKey().then(()=>this._getMetadata())):this.addResolvingPromise(Promise.reject(new n.A("bingmapslayer:load","Bing layer must have bing key."))),Promise.resolve(this)}getTileUrl(e,t,i){if(!this.loaded||null==this.bingMetadata)return null;const r=this.bingMetadata.resourceSets[0].resources[0],s=r.imageUrlSubdomains[t%r.imageUrlSubdomains.length],o=this._getQuadKey(e,t,i);return r.imageUrl.replace("{subdomain}",s).replace("{quadkey}",o)}async fetchAttributionData(){return this.load().then(()=>null==this.bingMetadata?null:{contributors:this.bingMetadata.resourceSets[0].resources[0].imageryProviders.map(e=>({attribution:e.attribution,coverageAreas:e.coverageAreas.map(e=>({zoomMin:e.zoomMin-(e.zoomMin?1:0),zoomMax:e.zoomMax-(e.zoomMin?1:0),score:1,bbox:[e.bbox[0],e.bbox[1],e.bbox[2],e.bbox[3]]}))}))})}_getMetadata(){const e={road:"roadOnDemand",aerial:"aerial",hybrid:"aerialWithLabelsOnDemand"}[this.style];return(0,o.A)(`https://dev.virtualearth.net/REST/v1/Imagery/Metadata/${e}`,{responseType:"json",query:{include:"ImageryProviders",uriScheme:"https",key:this.key,suppressStatus:!0,output:"json",culture:this.culture,userRegion:this.region}}).then(e=>{const t=e.data;if(200!==t.statusCode)throw new n.A("bingmapslayer:getmetadata",t.statusDescription);if(this.bingMetadata=t,0===this.bingMetadata.resourceSets.length)throw new n.A("bingmapslayer:getmetadata","no bing resourcesets");if(0===this.bingMetadata.resourceSets[0].resources.length)throw new n.A("bingmapslayer:getmetadata","no bing resources")}).catch(e=>{throw new n.A("bingmapslayer:getmetadata",e.message)})}_getPortalBingKey(){return(0,o.A)(this.portalUrl??"",{responseType:"json",authMode:"no-prompt",query:{f:"json"}}).then(e=>{if(!e.data.bingKey)throw new n.A("bingmapslayer:getportalbingkey","The referenced Portal does not contain a valid bing key");this.key=e.data.bingKey}).catch(e=>{throw new n.A("bingmapslayer:getportalbingkey",e.message)})}_getQuadKey(e,t,i){let r="";for(let s=e;s>0;s--){let e=0;const o=1<<s-1;0!==(i&o)&&(e+=1),0!==(t&o)&&(e+=2),r+=e.toString()}return r}};(0,s.Cg)([(0,p.MZ)({json:{read:!1,write:!1},value:null})],Z.prototype,"bingMetadata",null),(0,s.Cg)([(0,p.MZ)({json:{read:!1,write:!1},value:"bing-maps",readOnly:!0})],Z.prototype,"type",void 0),(0,s.Cg)([(0,p.MZ)({type:A.A})],Z.prototype,"tileInfo",void 0),(0,s.Cg)([(0,p.MZ)({type:String,readOnly:!0,json:{read:!1,write:!1}})],Z.prototype,"copyright",null),(0,s.Cg)([(0,p.MZ)({type:String,json:{write:!1,read:!1}})],Z.prototype,"key",void 0),(0,s.Cg)([(0,p.MZ)({type:R.apiValues,nonNullable:!0,json:{read:{source:"layerType",reader:R.read}}})],Z.prototype,"style",void 0),(0,s.Cg)([(0,p.MZ)({type:["BingMapsAerial","BingMapsHybrid","BingMapsRoad"]})],Z.prototype,"operationalLayerType",null),(0,s.Cg)([(0,p.MZ)({type:String,json:{write:!1,read:!1}})],Z.prototype,"culture",void 0),(0,s.Cg)([(0,p.MZ)({type:String,json:{write:!1,read:!1}})],Z.prototype,"region",void 0),(0,s.Cg)([(0,p.MZ)({type:String,json:{write:!0,read:!0}})],Z.prototype,"portalUrl",void 0),(0,s.Cg)([(0,p.MZ)({type:Boolean,json:{write:!1,read:!1}})],Z.prototype,"hasAttributionData",void 0),(0,s.Cg)([(0,p.MZ)({type:String,readOnly:!0})],Z.prototype,"bingLogo",null),Z=(0,s.Cg)([(0,h.$)("esri.layers.BingMapsLayer")],Z);const _=Z},33446:(e,t,i)=>{i.d(t,{C:()=>l,m:()=>o});var r=i(49186),s=i(74887);async function o(e,t,i){let o;try{o=await createImageBitmap(e)}catch(e){throw new r.A("request:server",`Unable to load ${t}`,{url:t,error:e})}return(0,s.Te)(i),o}async function l(e,t,i,o,l){let n;try{n=await createImageBitmap(e)}catch(e){throw new r.A("request:server",`Unable to load tile ${t}/${i}/${o}`,{error:e,level:t,row:i,col:o})}return(0,s.Te)(l),n}},69540:(e,t,i)=>{i.d(t,{OU:()=>u,Pw:()=>p});var r=i(31635),s=i(69622),o=(i(44208),i(4718)),l=(i(53966),i(97768)),n=i(88620),a=i(64108);const c=Symbol("ClonableMixin"),u=e=>{var t;const i=e;let s=class extends i{constructor(){super(...arguments),this[t]=!0}static{t=c}clone(e){const t=(0,n.oY)(this);(0,l.Lw)(t,"unable to clone instance of non-accessor class");const i=t.metadata,r=t.store,s={},a=new Map;for(const t in i){const l=i[t],n=r?.originOf(t),c=l.clonable;if(l.readOnly||!1===c||7!==n&&0!==n&&5!==n&&4!==n)continue;const u=this[t];let p=null;if("function"==typeof c)p=c(u,e);else if("reference"===c)p=u;else if(p=(0,o.TU)(u,e),null!=u&&null==p)continue;0===n?a.set(t,p):s[t]=p}const c=new(0,Object.getPrototypeOf(this).constructor)(s);if(a.size){const e=(0,n.oY)(c)?.store;if(e)for(const[t,i]of a)e.set(t,i,0)}return c}};return s=(0,r.Cg)([(0,a.$)("esri.core.Clonable")],s),s},p=u(s.A)},72802:(e,t,i)=>{i.d(t,{U:()=>s});var r=i(19419);class s{constructor(e,t,i,s=(0,r.vt)()){this._level=e,this._row=t,this._col=i,this.extent=s}get id(){return this._id??=`${this.level}/${this.row}/${this.col}`,this._id}get level(){return this._level}set level(e){this._level=e,this._id=null}get row(){return this._row}set row(e){this._row=e,this._id=null}get col(){return this._col}set col(e){this._col=e,this._id=null}toJSON(){return{level:this._level,row:this._row,col:this._col,extent:this.extent}}static fromJSON(e){return new s(e.level,e.row,e.col,e.extent)}}},78553:(e,t,i)=>{i.d(t,{D:()=>o,p:()=>s});var r=i(56507);function s(e){const t=(0,r.Vr)(100*(1-e));return Math.max(0,Math.min(t,100))}function o(e){const t=1-e/100;return Math.max(0,Math.min(t,1))}},87045:(e,t,i)=>{i.d(t,{A:()=>m});var r,s=i(31635),o=i(66552),l=i(25482),n=i(83047),a=i(10107),c=i(56507),u=(i(44208),i(87811),i(36005)),p=i(64108),h=i(43937),g=i(86738),d=i(16930),y=i(21325),w=i(28735),v=i(91806),f=i(72802);const b=new o.J({PNG:"png",PNG8:"png8",PNG24:"png24",PNG32:"png32",JPEG:"jpg",JPG:"jpg",DIB:"dib",TIFF:"tiff",EMF:"emf",PS:"ps",PDF:"pdf",GIF:"gif",SVG:"svg",SVGZ:"svgz",Mixed:"mixed",MIXED:"mixed",LERC:"lerc",LERC2D:"lerc2d",RAW:"raw",pbf:"pbf"});let m=class extends l.o{static{r=this}static create(e={}){const{resolutionFactor:t=1,scales:i,size:s=256,spatialReference:o=d.A.WebMercator,numLODs:l=24}=e;if(!(0,y.fn)(o)){const e=[];if(i)for(let t=0;t<i.length;t++){const r=i[t];e.push(new v.A({level:t,scale:r,resolution:r}))}else{let t=5e-4;for(let i=l-1;i>=0;i--)e.unshift(new v.A({level:i,scale:t,resolution:t})),t*=2}return new r({dpi:96,lods:e,origin:new g.A(0,0,o),size:[s,s],spatialReference:o})}const a=(0,y.Vp)(o),c=e.origin?new g.A({x:e.origin.x,y:e.origin.y,spatialReference:o}):new g.A(a?{x:a.origin[0],y:a.origin[1],spatialReference:o}:{x:0,y:0,spatialReference:o}),u=1/(39.37*(0,n.GA)(o)*96),p=[];if(i)for(let e=0;e<i.length;e++){const t=i[e],r=t*u;p.push(new v.A({level:e,scale:t,resolution:r}))}else{let e=(0,y.EA)(o)?512/s*591657527.5917094:256/s*591657527.591555;const i=Math.ceil(l/t);p.push(new v.A({level:0,scale:e,resolution:e*u}));for(let r=1;r<i;r++){const i=e/2**t,s=i*u;p.push(new v.A({level:r,scale:i,resolution:s})),e=i}}return new r({dpi:96,lods:p,origin:c,size:[s,s],spatialReference:o})}constructor(e){super(e),this.dpi=96,this.format=null,this.origin=null,this.size=null,this.spatialReference=null}get isWrappable(){const{spatialReference:e,origin:t}=this;if(e&&t){const i=(0,y.Vp)(e);return e.isWrappable&&!!i&&Math.abs(i.origin[0]-t.x)<=i.dx}return!1}readOrigin(e,t){return g.A.fromJSON({spatialReference:t.spatialReference,...e})}set lods(e){let t=0,i=0;const r=[],s=this._levelToLOD={};e&&(t=-1/0,i=1/0,e.forEach(e=>{r.push(e.scale),t=e.scale>t?e.scale:t,i=e.scale<i?e.scale:i,s[e.level]=e})),this._set("scales",r),this._set("lods",e),this._initializeUpsampleLevels()}readSize(e,t){return[t.cols,t.rows]}writeSize(e,t){t.cols=e[0],t.rows=e[1]}zoomToScale(e){const t=this.scales;if(e<=0)return t[0];if(e>=t.length-1)return t[t.length-1];const i=Math.floor(e),r=i+1;return t[i]/(t[i]/t[r])**(e-i)}scaleToZoom(e){const t=this.scales,i=t.length-1;let r=0;for(;r<i;r++){const i=t[r],s=t[r+1];if(i<=e)return r;if(s===e)return r+1;if(i>e&&s<e)return r+Math.log(i/e)/Math.log(i/s)}return r}tileAt(e,t,i,r){const s=this.lodAt(e);if(!s)return null;let o,l;if("number"==typeof t)o=t,l=i;else if((0,y.aI)(t.spatialReference,this.spatialReference))o=t.x,l=t.y,r=i;else{const e=(0,w.Cv)(t,this.spatialReference);if(null==e)return null;o=e.x,l=e.y,r=i}const n=s.resolution*this.size[0],a=s.resolution*this.size[1];return r??=new f.U(0,0,0),r.level=e,r.row=Math.floor((this.origin.y-l)/a+.001),r.col=Math.floor((o-this.origin.x)/n+.001),this.updateTileInfo(r),r}updateTileInfo(e,t=0){if(!("extent"in e))return!1;let i=this.lodAt(e.level);if(!i&&1===t){const t=this.lods[this.lods.length-1];t.level<e.level&&(i=t)}if(!i)return!1;const r=e.level-i.level,s=i.resolution*this.size[0]/2**r,o=i.resolution*this.size[1]/2**r;return e.extent[0]=this.origin.x+e.col*s,e.extent[1]=this.origin.y-(e.row+1)*o,e.extent[2]=e.extent[0]+s,e.extent[3]=e.extent[1]+o,!0}upsampleTile(e){const t=this._upsampleLevels[e.level];return!(!t||-1===t.parentLevel||(e.level=t.parentLevel,e.row=Math.floor(e.row/t.factor+.001),e.col=Math.floor(e.col/t.factor+.001),this.updateTileInfo(e),0))}getTileBounds(e,t){const i=this.lodAt(t.level);if(null==i)return null;const{resolution:r}=i,s=r*this.size[0],o=r*this.size[1];return e[0]=this.origin.x+t.col*s,e[1]=this.origin.y-(t.row+1)*o,e[2]=e[0]+s,e[3]=e[1]+o,e}lodAt(e){return this._levelToLOD?.[e]??null}clone(){return r.fromJSON(this.write({}))}getCompatibleForVTL(e){if(this.size[0]!==this.size[1]||256===this.size[0]&&512===e)return null;const t=(512===this.size[0]&&256===e?-1:0)+(this.spatialReference.isGeographic?1:0);if(this.size[0]===e&&0===t)return this;const i=[],s=this.lods.length-t;for(let e=0;e<s;e++){const r=e+t,{scale:s,resolution:o}=r>=0?this.lods[r]:{scale:2*this.lods[0].scale,resolution:2*this.lods[0].resolution};i.push(new v.A({level:e,scale:s,resolution:o}))}return new r({size:[e,e],dpi:this.dpi,format:this.format,compressionQuality:this.compressionQuality,origin:this.origin,spatialReference:this.spatialReference,lods:i})}_initializeUpsampleLevels(){const e=this.lods;this._upsampleLevels=[];let t=null;for(let i=0;i<e.length;i++){const r=e[i];this._upsampleLevels[r.level]={parentLevel:t?t.level:-1,factor:t?t.resolution/r.resolution:0},t=r}}};(0,s.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],m.prototype,"compressionQuality",void 0),(0,s.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],m.prototype,"dpi",void 0),(0,s.Cg)([(0,a.MZ)({type:String,json:{read:b.read,write:b.write,origins:{"web-scene":{read:!1,write:!1}}}})],m.prototype,"format",void 0),(0,s.Cg)([(0,a.MZ)({readOnly:!0})],m.prototype,"isWrappable",null),(0,s.Cg)([(0,a.MZ)({type:g.A,json:{write:!0}})],m.prototype,"origin",void 0),(0,s.Cg)([(0,u.w)("origin")],m.prototype,"readOrigin",null),(0,s.Cg)([(0,a.MZ)({type:[v.A],value:null,json:{write:!0}})],m.prototype,"lods",null),(0,s.Cg)([(0,a.MZ)({readOnly:!0})],m.prototype,"scales",void 0),(0,s.Cg)([(0,a.MZ)({cast:e=>Array.isArray(e)?e:"number"==typeof e?[e,e]:[256,256]})],m.prototype,"size",void 0),(0,s.Cg)([(0,u.w)("size",["rows","cols"])],m.prototype,"readSize",null),(0,s.Cg)([(0,h.K)("size",{cols:{type:c.jz},rows:{type:c.jz}})],m.prototype,"writeSize",null),(0,s.Cg)([(0,a.MZ)({type:d.A,json:{write:!0}})],m.prototype,"spatialReference",void 0),m=r=(0,s.Cg)([(0,p.$)("esri.layers.support.TileInfo")],m)},91806:(e,t,i)=>{i.d(t,{A:()=>c});var r,s=i(31635),o=i(25482),l=i(10107),n=i(56507),a=(i(44208),i(87811),i(64108));let c=class extends o.o{static{r=this}constructor(e){super(e),this.cols=null,this.level=0,this.levelValue=null,this.origin=null,this.resolution=0,this.rows=null,this.scale=0}clone(){return new r({cols:this.cols,level:this.level,levelValue:this.levelValue,resolution:this.resolution,rows:this.rows,scale:this.scale})}};(0,s.Cg)([(0,l.MZ)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],c.prototype,"cols",void 0),(0,s.Cg)([(0,l.MZ)({type:n.jz,json:{write:!0}})],c.prototype,"level",void 0),(0,s.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],c.prototype,"levelValue",void 0),(0,s.Cg)([(0,l.MZ)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],c.prototype,"origin",void 0),(0,s.Cg)([(0,l.MZ)({type:Number,json:{write:!0}})],c.prototype,"resolution",void 0),(0,s.Cg)([(0,l.MZ)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],c.prototype,"rows",void 0),(0,s.Cg)([(0,l.MZ)({type:Number,json:{write:!0}})],c.prototype,"scale",void 0),c=r=(0,s.Cg)([(0,a.$)("esri.layers.support.LOD")],c)}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2314],{39933:(e,t,l)=>{l.r(t),l.d(t,{build:()=>s.b}),l(32680),l(76591),l(76597),l(24321),l(60864),l(43519),l(96336),l(71955),l(53466),l(92700),l(35640),l(40261),l(65836),l(89390),l(98619),l(22393),l(59469),l(32482),l(96598),l(42398),l(58614),l(27950),l(25178),l(33079),l(71988),l(20304),l(31821),l(63761),l(10906),l(43616),l(60517),l(14113);var s=l(57323)}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2314],{39933:(e,t,l)=>{l.r(t),l.d(t,{build:()=>s.b}),l(32680),l(76591),l(76597),l(24321),l(60864),l(43519),l(96336),l(71955),l(53466),l(92700),l(35640),l(40261),l(14527),l(89390),l(98619),l(22393),l(59469),l(32482),l(96598),l(42398),l(58614),l(27950),l(25178),l(33079),l(71988),l(20304),l(31821),l(63761),l(10906),l(43616),l(60517),l(14113);var s=l(57323)}}]);