@arcgis/core 6.0.0-next.21 → 6.0.0-next.23
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.
- package/PopupTemplate.js +1 -1
- package/analysis/LineOfSightAnalysis.d.ts +1 -1
- package/analysis/LineOfSightAnalysisObserver.d.ts +5 -4
- package/analysis/LineOfSightAnalysisTarget.d.ts +4 -4
- package/analysis/Viewshed.d.ts +4 -4
- package/arcgisGlobal.d.ts +0 -5
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/{3c277a0f099d67090d07.js → 02335385b1476fe322eb.js} +1 -1
- package/assets/esri/core/workers/chunks/092e311cb7aea92a6a26.js +1 -0
- package/assets/esri/core/workers/chunks/0df9a906f7823c23d426.js +1 -0
- package/assets/esri/core/workers/chunks/{4911ce62421a6c3320b0.js → 13c64087be3b2985a21b.js} +1 -1
- package/assets/esri/core/workers/chunks/{8e19629899a5becf8e19.js → 150e7a7bd5df25693da7.js} +1 -1
- package/assets/esri/core/workers/chunks/{3704b4e7efc3abc1a7b1.js → 242a77066ac5cdb5b7d7.js} +1 -1
- package/assets/esri/core/workers/chunks/2ad69cc496235702bbf2.js +1 -0
- package/assets/esri/core/workers/chunks/2c0cb214fedb29487eef.js +1 -0
- package/assets/esri/core/workers/chunks/2f91fd61019d2a37476d.js +1 -0
- package/assets/esri/core/workers/chunks/3cd04d23b73beaf79650.js +1 -0
- package/assets/esri/core/workers/chunks/434a8ba841a59e0deab9.js +1 -0
- package/assets/esri/core/workers/chunks/{60f92eb03c6e17ab4747.js → 435b90168f79c5587a07.js} +1 -1
- package/assets/esri/core/workers/chunks/{f00458654c7c34c369ef.js → 45ba4aa87a4732198596.js} +1 -1
- package/assets/esri/core/workers/chunks/{2e096537a3a5555a4a93.js → 4cb751dc8d00bdaeb04c.js} +1 -1
- package/assets/esri/core/workers/chunks/504184828048310a052c.js +1 -0
- package/assets/esri/core/workers/chunks/{eca44e53bcee9b08d70a.js → 5046214dd32029cb733d.js} +1 -1
- package/assets/esri/core/workers/chunks/517106048980a3cbe072.js +1 -0
- package/assets/esri/core/workers/chunks/53ff68d4f9e365fc15cd.js +1 -0
- package/assets/esri/core/workers/chunks/542e5640ea1b80ef801a.js +1 -0
- package/assets/esri/core/workers/chunks/58865772bed48141a56a.js +1 -0
- package/assets/esri/core/workers/chunks/5a9b7eb26f936f03d02e.js +1 -0
- package/assets/esri/core/workers/chunks/5d76f4d97beee494bbbf.js +1 -0
- package/assets/esri/core/workers/chunks/5f07f52bb8b7721f08d3.js +1 -0
- package/assets/esri/core/workers/chunks/{d08ff41e2a9bcd58b64a.js → 636cd05abfbdff19029e.js} +1 -1
- package/assets/esri/core/workers/chunks/{461e63a0f436c41a9f4a.js → 64b360625c68cb863a08.js} +1 -1
- package/assets/esri/core/workers/chunks/67f54efc817b241f8746.js +1 -0
- package/assets/esri/core/workers/chunks/6d41444b46677aa762a7.js +1 -0
- package/assets/esri/core/workers/chunks/6dfe96b056bec30068df.js +1 -0
- package/assets/esri/core/workers/chunks/7159d9c36869cd82599e.js +29 -0
- package/assets/esri/core/workers/chunks/792d2b62356a1d953c88.js +1 -0
- package/assets/esri/core/workers/chunks/{814751e705c05099f864.js → 7c75a8ee266c36baa902.js} +1 -1
- package/assets/esri/core/workers/chunks/947674b2ca8be65b9bcc.js +1 -0
- package/assets/esri/core/workers/chunks/95b82cbbe355266c65d7.js +1 -0
- package/assets/esri/core/workers/chunks/{a0c9e3f8b7d55d6dc1d5.js → 96c4ea9cfa3930f1c3fb.js} +25 -21
- package/assets/esri/core/workers/chunks/{601e1d020b8115497944.js → 9d40786c5ceface786ba.js} +1 -1
- package/assets/esri/core/workers/chunks/{a35c69a4751d28c39907.js → 9e7c4eda135c4911b268.js} +1 -1
- package/assets/esri/core/workers/chunks/a64446a3328a7323e307.js +1 -0
- package/assets/esri/core/workers/chunks/a65951f1d5702cfd996e.js +1 -0
- package/assets/esri/core/workers/chunks/aa4f3751f0d830113bed.js +1 -0
- package/assets/esri/core/workers/chunks/ad96132bc89671e595f3.js +1 -0
- package/assets/esri/core/workers/chunks/b0ca81a07cff25df19d2.js +1 -0
- package/assets/esri/core/workers/chunks/b1d989b72203113a06fe.js +1 -0
- package/assets/esri/core/workers/chunks/{9e0559cd0bb01a0ed9d7.js → b3273f847405799e3362.js} +1 -1
- package/assets/esri/core/workers/chunks/b4c3ec081874b49ff89b.js +1 -0
- package/assets/esri/core/workers/chunks/b6d71a4ab788a09714f3.js +1 -0
- package/assets/esri/core/workers/chunks/c0d7ae314ebfad1e3791.js +1 -0
- package/assets/esri/core/workers/chunks/c82daefb193aae895bc0.js +1 -0
- package/assets/esri/core/workers/chunks/d8a7eba588d374b2f961.js +1 -0
- package/assets/esri/core/workers/chunks/ee08ae5b73439a1ff666.js +1 -0
- package/assets/esri/core/workers/chunks/{557671c897ca5563be6c.js → f6bd7b52745b82ba73dc.js} +1 -1
- package/assets/esri/core/workers/chunks/fcaf9450642fcef83286.js +1 -0
- package/assets/esri/core/workers/chunks/feb41abc03d677df6f73.js +1 -0
- package/assets/esri/core/workers/chunks/ffcb99693182a621a93e.js +1 -0
- package/assets/esri/themes/base/_core.scss +0 -2
- package/assets/esri/themes/base/widgets/_OrientedImageryViewer.scss +4 -0
- package/assets/esri/themes/dark/main.css +1 -1
- package/assets/esri/themes/light/main.css +1 -1
- package/assets/esri/themes/light/view.css +1 -1
- package/chunks/CloudsComposition.glsl.js +2 -2
- package/chunks/Component.glsl.js +9 -12
- package/chunks/DefaultMaterial.glsl.js +4 -5
- package/chunks/Path.glsl.js +2 -4
- package/chunks/RealisticTree.glsl.js +3 -3
- package/chunks/SSAO.glsl.js +1 -2
- package/config.d.ts +11 -30
- package/config.js +1 -1
- package/core/accessorSupport/trackingUtils.js +1 -1
- package/core/accessorSupport/watch.js +1 -1
- package/core/workers/workerFactory.js +1 -1
- package/core/workers.d.ts +17 -0
- package/geometry/support/MeshComponent.d.ts +1 -1
- package/geometry/support/clipRay.js +1 -1
- package/geometry/support/plane.js +1 -1
- package/geometry/support/vcsData.js +1 -1
- package/interfaces.d.ts +0 -55
- package/kernel.js +1 -1
- package/layers/ElevationLayer.d.ts +6 -2
- package/layers/FeatureLayer.d.ts +32 -14
- package/layers/GeoJSONLayer.d.ts +2 -107
- package/layers/IntegratedMeshLayer.js +1 -1
- package/layers/MapImageLayer.d.ts +2 -1
- package/layers/SceneLayer.d.ts +40 -16
- package/layers/SubtypeGroupLayer.d.ts +63 -0
- package/layers/ViewshedLayer.d.ts +10 -4
- package/layers/WMSLayer.d.ts +2 -69
- package/layers/geospatialPDF/GeospatialPDFLayerWorker.js +1 -1
- package/layers/graphics/sources/FeatureLayerSource.js +1 -1
- package/layers/graphics/sources/support/QueryTask.js +1 -1
- package/layers/mixins/TemporalLayer.d.ts +70 -48
- package/layers/mixins/TiledImagery.d.ts +0 -11
- package/layers/orientedImagery/core/coverageUtils.js +1 -1
- package/layers/support/LabelClass.d.ts +20 -2
- package/layers/support/Sublayer.d.ts +32 -2
- package/layers/support/TimeInformation.js +2 -0
- package/libs/basisu/textureMetadata.js +2 -0
- package/package.json +3 -3
- package/popup/content.d.ts +38 -1
- package/popup/content.js +1 -1
- package/rest/layerSources/DynamicWorkspaceLayer.d.ts +10 -6
- package/rest/query/operations/queryUtils.js +1 -1
- package/rest/support/timeUtils.js +2 -0
- package/smartMapping/popup/support/clusterUtils.js +1 -1
- package/smartMapping/popup/support/utils.js +2 -2
- package/smartMapping/renderers/size.js +1 -1
- package/smartMapping/renderers/support/regenerateUtils.js +1 -1
- package/support/timeUtils.d.ts +11 -0
- package/symbols/TextSymbol.d.ts +27 -2
- package/time/legacyTimeZoneMap.js +1 -1
- package/views/2d/analysis/AreaMeasurement/AreaMeasurementTool.js +1 -1
- package/views/2d/analysis/AreaMeasurementAnalysisView2D.js +1 -1
- package/views/2d/analysis/DistanceMeasurement/DistanceMeasurementTool.js +1 -1
- package/views/2d/analysis/DistanceMeasurementAnalysisView2D.js +1 -1
- package/views/2d/engine/webgl/GlyphWorker.js +1 -1
- package/views/2d/layers/features/Processor.js +1 -1
- package/views/2d/layers/features/aggregation/GeohashSpatialIndex.js +1 -1
- package/views/2d/layers/features/aggregation/GridSpatialIndex.js +1 -1
- package/views/2d/layers/features/layerAdapters/CatalogFootprintLayerAdapter.js +1 -1
- package/views/2d/layers/features/layerAdapters/FeatureLayerAdapter.js +1 -1
- package/views/2d/layers/features/layerAdapters/InMemoryLayerAdapter.js +1 -1
- package/views/2d/layers/features/layerAdapters/KnowledgeGraphSublayerAdapter.js +1 -1
- package/views/2d/layers/features/layerAdapters/OGCFeatureLayerAdapter.js +1 -1
- package/views/2d/layers/features/layerAdapters/OrientedImageryLayerAdapter.js +1 -1
- package/views/2d/layers/features/layerAdapters/ParquetLayerAdapter.js +1 -1
- package/views/2d/layers/features/layerAdapters/StreamLayerAdapter.js +1 -1
- package/views/2d/layers/features/processor/AggregateStrategy.js +1 -1
- package/views/2d/layers/features/processor/FeatureUpdateStrategy.js +1 -1
- package/views/2d/layers/features/processor/bins/BinAdapter.js +1 -1
- package/views/2d/layers/features/processor/bins/BinLevelState.js +1 -1
- package/views/2d/layers/features/processor/clusters/ClusterAdapter.js +1 -1
- package/views/2d/layers/features/processor/clusters/ClusterLevelState.js +1 -1
- package/views/2d/layers/features/processor/tracks/TrackAdapter.js +1 -1
- package/views/2d/layers/features/processor/tracks/TrackLevelState.js +1 -1
- package/views/2d/layers/features/schema/processor/SimpleProcessorSchema.js +1 -1
- package/views/2d/layers/features/sources/strategies/chunks/ASourceChunk.js +1 -1
- package/views/2d/layers/features/sources/strategies/chunks/ByReferenceTileSourceChunk.js +1 -1
- package/views/2d/layers/features/sources/strategies/chunks/FeatureSnapshotSourceChunk.js +1 -1
- package/views/2d/layers/features/sources/strategies/chunks/Overrides.js +1 -1
- package/views/2d/layers/features/sources/strategies/chunks/ParquetSnapshotSourceChunk.js +1 -1
- package/views/2d/layers/features/sources/strategies/chunks/SourceChunkStore.js +1 -1
- package/views/2d/layers/features/sources/strategies/chunks/StreamSourceChunk.js +1 -1
- package/views/2d/layers/features/support/AttributeStore.js +1 -1
- package/views/2d/layers/features/support/FeatureFilterEvaluator.js +1 -1
- package/views/2d/layers/features/support/FeatureSetReader.js +1 -1
- package/views/2d/layers/features/support/GraphicsReader.js +1 -1
- package/views/2d/layers/graphics/GraphicsView2D.js +1 -1
- package/views/3d/GroundView3D.js +1 -1
- package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementController.js +1 -1
- package/views/3d/environment/SunLighting.d.ts +16 -1
- package/views/3d/environment/SunLighting.js +1 -1
- package/views/3d/environment/VirtualLighting.d.ts +16 -1
- package/views/3d/environment/VirtualLighting.js +1 -1
- package/views/3d/input/handlers/ground/GroundDoubleClickMove.js +1 -1
- package/views/3d/interactive/placementTools/GroundNavigationPlacementTool3D.js +1 -1
- package/views/3d/layers/I3SMeshView3D.js +1 -1
- package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
- package/views/3d/layers/TiledLayerView3D.js +1 -1
- package/views/3d/state/helpers/SceneIntersectionHelper.js +1 -1
- package/views/3d/state/utils/groundNavigationUtils.js +1 -1
- package/views/3d/support/elevationUpdateUtils.js +1 -1
- package/views/3d/terrain/TerrainSurface.js +1 -1
- package/views/3d/terrain/TileAgent.js +1 -1
- package/views/3d/terrain/tileUtils.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/Component.glsl.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/hud/HUD.glsl.js +1 -2
- package/views/3d/webgl-engine/core/shaderLibrary/shading/EvaluateAmbientLighting.glsl.js +2 -2
- package/views/3d/webgl-engine/core/shaderLibrary/shading/EvaluateSceneLighting.glsl.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/shading/ScreenSpaceRayMarching.glsl.js +1 -2
- package/views/3d/webgl-engine/core/shaderLibrary/shading/WaterColor.glsl.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/util/CloudsParallaxShading.glsl.js +6 -6
- package/views/3d/webgl-engine/effects/clouds/CloudsComposition.js +1 -1
- package/views/3d/webgl-engine/effects/glow/applyEmissiveGlow.glsl.js +9 -4
- package/views/3d/webgl-engine/effects/snowcover/applySnow.glsl.js +18 -0
- package/views/3d/webgl-engine/lib/BasisUtil.js +1 -1
- package/views/3d/webgl-engine/lib/Intersector.js +1 -1
- package/views/3d/webgl-engine/lib/RenderFeature.js +1 -1
- package/views/3d/webgl-engine/lib/Renderer.js +1 -1
- package/views/3d/webgl-engine/materials/Path.glsl.js +1 -1
- package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/internal/worldSizedRibbonLineIntersectionUtils.js +2 -0
- package/views/3d/webgl-engine/parts/RenderView.js +1 -1
- package/views/3d/webgl-engine/shaders/DefaultMaterial.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/RealisticTree.glsl.js +1 -1
- package/views/BasemapView.js +1 -1
- package/views/GroundView.d.ts +1 -1
- package/views/GroundView.js +1 -1
- package/views/SceneView.js +1 -1
- package/views/layers/LineOfSightLayerView.d.ts +2 -2
- package/views/layers/ViewshedLayerView.d.ts +2 -1
- package/widgets/Daylight/DaylightViewModel.js +1 -1
- package/widgets/Feature/FeatureExpression/FeatureExpressionViewModel.js +1 -1
- package/widgets/FloorFilter/FloorFilterViewModel.js +1 -1
- package/widgets/Locate.d.ts +1 -1
- package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
- package/widgets/OrientedImageryViewer.js +2 -2
- package/widgets/PanoramicViewer/PanoramicVideoViewerViewModel.js +1 -1
- package/widgets/Search/SearchViewModel.js +1 -1
- package/widgets/Search/support/layerSearchUtils.js +1 -1
- package/widgets/Sketch/SketchViewModel.d.ts +61 -2
- package/widgets/Sketch/SketchViewModel.js +1 -1
- package/widgets/Sketch/support/PluginManager.js +1 -1
- package/widgets/TimeSlider/TimeSliderViewModel.d.ts +3 -2
- package/widgets/TimeSlider.d.ts +5 -4
- package/widgets/UtilityNetworkTrace/UtilityNetworkTraceFeature.js +1 -1
- package/widgets/support/GeolocationPositioning.d.ts +1 -2
- package/assets/esri/core/workers/chunks/0bd5012da287469b17d5.js +0 -1
- package/assets/esri/core/workers/chunks/1f6b601147521a42e65c.js +0 -1
- package/assets/esri/core/workers/chunks/25d14874198773d2d836.js +0 -1
- package/assets/esri/core/workers/chunks/2d13a22f7b2427927fdc.js +0 -1
- package/assets/esri/core/workers/chunks/34e0a8a3a2beea50f4f5.js +0 -1
- package/assets/esri/core/workers/chunks/42045cf46497828cd3c0.js +0 -1
- package/assets/esri/core/workers/chunks/42fd2a7b22b03dacc6a7.js +0 -1
- package/assets/esri/core/workers/chunks/494bd434fee9032e1d02.js +0 -1
- package/assets/esri/core/workers/chunks/4e350d6c76957f5beb70.js +0 -1
- package/assets/esri/core/workers/chunks/4fe34da1c5d63e66ce98.js +0 -1
- package/assets/esri/core/workers/chunks/501c6e14ab119785252b.js +0 -1
- package/assets/esri/core/workers/chunks/576248e9ae2654569420.js +0 -1
- package/assets/esri/core/workers/chunks/6059853ef3b6cddbe869.js +0 -1
- package/assets/esri/core/workers/chunks/6c255c029d67423e4dac.js +0 -1
- package/assets/esri/core/workers/chunks/6c9266120d46e8c69dbf.js +0 -1
- package/assets/esri/core/workers/chunks/6c9acd9e4e201dc380e9.js +0 -1
- package/assets/esri/core/workers/chunks/728837812940d7f2ef43.js +0 -1
- package/assets/esri/core/workers/chunks/74c866e0b66e61751861.js +0 -1
- package/assets/esri/core/workers/chunks/7bbfe9ff352afc566367.js +0 -1
- package/assets/esri/core/workers/chunks/939942b00ba380e2957e.js +0 -1
- package/assets/esri/core/workers/chunks/95dbbddac6581b9d671f.js +0 -1
- package/assets/esri/core/workers/chunks/a8df3f59728f841b608e.js +0 -1
- package/assets/esri/core/workers/chunks/aa1ac7954e4f0fefe15b.js +0 -1
- package/assets/esri/core/workers/chunks/b48952e1fb4cb7360dd0.js +0 -1
- package/assets/esri/core/workers/chunks/b5df193c93e9c19f9700.js +0 -1
- package/assets/esri/core/workers/chunks/befa32b9e7b3fbdd431e.js +0 -1
- package/assets/esri/core/workers/chunks/c2c1f51a4668055c2838.js +0 -1
- package/assets/esri/core/workers/chunks/d0f5bee9db1ad51ae687.js +0 -1
- package/assets/esri/core/workers/chunks/d678828726371243d5eb.js +0 -1
- package/assets/esri/core/workers/chunks/dd0310184fe4832755a8.js +0 -1
- package/assets/esri/core/workers/chunks/de5ecb567bd69c613e9d.js +0 -1
- package/assets/esri/core/workers/chunks/dfc81e66196c402f39b4.js +0 -29
- package/assets/esri/core/workers/chunks/e1f5d00878f27e1d413e.js +0 -1
- package/assets/esri/core/workers/chunks/fb70ab267a08e24b710f.js +0 -1
- package/assets/esri/core/workers/chunks/fc44d45598a7476bc606.js +0 -1
- package/assets/esri/themes/base/widgets/_DirectionalPad.scss +0 -85
- package/assets/esri/widgets/DirectionalPad/t9n/messages.ar.json +0 -1
- package/assets/esri/widgets/DirectionalPad/t9n/messages.bg.json +0 -1
- package/assets/esri/widgets/DirectionalPad/t9n/messages.bs.json +0 -1
- package/assets/esri/widgets/DirectionalPad/t9n/messages.ca.json +0 -1
- package/assets/esri/widgets/DirectionalPad/t9n/messages.cs.json +0 -1
- package/assets/esri/widgets/DirectionalPad/t9n/messages.da.json +0 -1
- package/assets/esri/widgets/DirectionalPad/t9n/messages.de.json +0 -1
- package/assets/esri/widgets/DirectionalPad/t9n/messages.el.json +0 -1
- package/assets/esri/widgets/DirectionalPad/t9n/messages.en.json +0 -1
- package/assets/esri/widgets/DirectionalPad/t9n/messages.es.json +0 -1
- package/assets/esri/widgets/DirectionalPad/t9n/messages.et.json +0 -1
- package/assets/esri/widgets/DirectionalPad/t9n/messages.fi.json +0 -1
- package/assets/esri/widgets/DirectionalPad/t9n/messages.fr.json +0 -1
- package/assets/esri/widgets/DirectionalPad/t9n/messages.he.json +0 -1
- package/assets/esri/widgets/DirectionalPad/t9n/messages.hr.json +0 -1
- package/assets/esri/widgets/DirectionalPad/t9n/messages.hu.json +0 -1
- package/assets/esri/widgets/DirectionalPad/t9n/messages.id.json +0 -1
- package/assets/esri/widgets/DirectionalPad/t9n/messages.it.json +0 -1
- package/assets/esri/widgets/DirectionalPad/t9n/messages.ja.json +0 -1
- package/assets/esri/widgets/DirectionalPad/t9n/messages.ko.json +0 -1
- package/assets/esri/widgets/DirectionalPad/t9n/messages.lt.json +0 -1
- package/assets/esri/widgets/DirectionalPad/t9n/messages.lv.json +0 -1
- package/assets/esri/widgets/DirectionalPad/t9n/messages.nl.json +0 -1
- package/assets/esri/widgets/DirectionalPad/t9n/messages.no.json +0 -1
- package/assets/esri/widgets/DirectionalPad/t9n/messages.pl.json +0 -1
- package/assets/esri/widgets/DirectionalPad/t9n/messages.pt-BR.json +0 -1
- package/assets/esri/widgets/DirectionalPad/t9n/messages.pt-PT.json +0 -1
- package/assets/esri/widgets/DirectionalPad/t9n/messages.ro.json +0 -1
- package/assets/esri/widgets/DirectionalPad/t9n/messages.ru.json +0 -1
- package/assets/esri/widgets/DirectionalPad/t9n/messages.sk.json +0 -1
- package/assets/esri/widgets/DirectionalPad/t9n/messages.sl.json +0 -1
- package/assets/esri/widgets/DirectionalPad/t9n/messages.sr.json +0 -1
- package/assets/esri/widgets/DirectionalPad/t9n/messages.sv.json +0 -1
- package/assets/esri/widgets/DirectionalPad/t9n/messages.th.json +0 -1
- package/assets/esri/widgets/DirectionalPad/t9n/messages.tr.json +0 -1
- package/assets/esri/widgets/DirectionalPad/t9n/messages.uk.json +0 -1
- package/assets/esri/widgets/DirectionalPad/t9n/messages.vi.json +0 -1
- package/assets/esri/widgets/DirectionalPad/t9n/messages.zh-CN.json +0 -1
- package/assets/esri/widgets/DirectionalPad/t9n/messages.zh-HK.json +0 -1
- package/assets/esri/widgets/DirectionalPad/t9n/messages.zh-TW.json +0 -1
- package/assets/esri/widgets/Track/t9n/messages.ar.json +0 -1
- package/assets/esri/widgets/Track/t9n/messages.bg.json +0 -1
- package/assets/esri/widgets/Track/t9n/messages.bs.json +0 -1
- package/assets/esri/widgets/Track/t9n/messages.ca.json +0 -1
- package/assets/esri/widgets/Track/t9n/messages.cs.json +0 -1
- package/assets/esri/widgets/Track/t9n/messages.da.json +0 -1
- package/assets/esri/widgets/Track/t9n/messages.de.json +0 -1
- package/assets/esri/widgets/Track/t9n/messages.el.json +0 -1
- package/assets/esri/widgets/Track/t9n/messages.en.json +0 -1
- package/assets/esri/widgets/Track/t9n/messages.es.json +0 -1
- package/assets/esri/widgets/Track/t9n/messages.et.json +0 -1
- package/assets/esri/widgets/Track/t9n/messages.fi.json +0 -1
- package/assets/esri/widgets/Track/t9n/messages.fr.json +0 -1
- package/assets/esri/widgets/Track/t9n/messages.he.json +0 -1
- package/assets/esri/widgets/Track/t9n/messages.hr.json +0 -1
- package/assets/esri/widgets/Track/t9n/messages.hu.json +0 -1
- package/assets/esri/widgets/Track/t9n/messages.id.json +0 -1
- package/assets/esri/widgets/Track/t9n/messages.it.json +0 -1
- package/assets/esri/widgets/Track/t9n/messages.ja.json +0 -1
- package/assets/esri/widgets/Track/t9n/messages.ko.json +0 -1
- package/assets/esri/widgets/Track/t9n/messages.lt.json +0 -1
- package/assets/esri/widgets/Track/t9n/messages.lv.json +0 -1
- package/assets/esri/widgets/Track/t9n/messages.nl.json +0 -1
- package/assets/esri/widgets/Track/t9n/messages.no.json +0 -1
- package/assets/esri/widgets/Track/t9n/messages.pl.json +0 -1
- package/assets/esri/widgets/Track/t9n/messages.pt-BR.json +0 -1
- package/assets/esri/widgets/Track/t9n/messages.pt-PT.json +0 -1
- package/assets/esri/widgets/Track/t9n/messages.ro.json +0 -1
- package/assets/esri/widgets/Track/t9n/messages.ru.json +0 -1
- package/assets/esri/widgets/Track/t9n/messages.sk.json +0 -1
- package/assets/esri/widgets/Track/t9n/messages.sl.json +0 -1
- package/assets/esri/widgets/Track/t9n/messages.sr.json +0 -1
- package/assets/esri/widgets/Track/t9n/messages.sv.json +0 -1
- package/assets/esri/widgets/Track/t9n/messages.th.json +0 -1
- package/assets/esri/widgets/Track/t9n/messages.tr.json +0 -1
- package/assets/esri/widgets/Track/t9n/messages.uk.json +0 -1
- package/assets/esri/widgets/Track/t9n/messages.vi.json +0 -1
- package/assets/esri/widgets/Track/t9n/messages.zh-CN.json +0 -1
- package/assets/esri/widgets/Track/t9n/messages.zh-HK.json +0 -1
- package/assets/esri/widgets/Track/t9n/messages.zh-TW.json +0 -1
- package/views/2d/layers/features/FeatureSpatialIndex.js +0 -2
- package/views/2d/layers/features/support/FeatureSetReaderIndirect.js +0 -2
- package/views/3d/webgl-engine/effects/snowcover/SnowCover.glsl.js +0 -12
- package/widgets/DirectionalPad/DirectionalPadViewModel.d.ts +0 -85
- package/widgets/DirectionalPad/DirectionalPadViewModel.js +0 -2
- package/widgets/DirectionalPad/VisibleElements.d.ts +0 -40
- package/widgets/DirectionalPad/VisibleElements.js +0 -2
- package/widgets/DirectionalPad/constants.js +0 -2
- package/widgets/DirectionalPad/css.js +0 -2
- package/widgets/DirectionalPad/types.d.ts +0 -27
- package/widgets/DirectionalPad/utils.js +0 -2
- package/widgets/DirectionalPad.d.ts +0 -156
- package/widgets/DirectionalPad.js +0 -2
- package/widgets/Track/TrackViewModel.d.ts +0 -131
- package/widgets/Track/TrackViewModel.js +0 -2
- package/widgets/Track/types.d.ts +0 -6
- package/widgets/Track.d.ts +0 -278
- package/widgets/Track.js +0 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6553,9385],{52106(e,t,r){r.d(t,{A:()=>M});var i,o,s=r(32198),n=r(37838),l=r(69540),a=r(51447),u=r(25482),p=r(53966),c=r(36708),d=r(24326),y=r(91429),m=r(12195),h=r(65864),g=r(50498),f=r(55156),b=r(60950),v=r(54339),C=r(94128),w=r(33910);const T=Symbol("meshGeometryHandles");function S(e){if(null==e)return null;let t={};for(let r in e){let i=e[r];i&&(t[r]=i.toJSON())}return 0===Object.keys(t).length?null:t}let M=class extends((0,l.OU)(u.o)){static{i=C.Z}static{o=this}constructor(e){super(e),this[i]=!0,this.distance=null,this.isAggregate=!1,this.layer=null,this.origin=null,this.sourceLayer=null,this.statisticsAggregatedIds=void 0,this._version=0,Object.defineProperty(this,"uid",{value:(0,d.c)(),configurable:!0}),Object.defineProperty(this,"_lastMeshTransform",{value:{},configurable:!0,writable:!0,enumerable:!1}),arguments.length>1&&(0,a.eF)(p.A.getLogger(this),"Graphic",{version:"4.30"})}set aggregateGeometries(e){let t=this._get("aggregateGeometries");JSON.stringify(t)!==JSON.stringify(e)&&this._set("aggregateGeometries",e)}set attributes(e){let t=this._get("attributes");t!==e&&(this._set("attributes",e),this._notifyLayer("attributes",t,e))}set geometry(e){let t=this._get("geometry");t!==e&&(this._set("geometry",e),this._watchMeshGeometryChanges(),this._notifyLayer("geometry",t,e))}set popupTemplate(e){let t=this._get("popupTemplate");t!==e&&(this._set("popupTemplate",e),this._notifyLayer("popupTemplate",t,e))}set symbol(e){let t=this._get("symbol");t!==e&&(this._set("symbol",e),this._notifyLayer("symbol",t,e))}get version(){return this._version}set visible(e){let t=this._get("visible");t!==e&&(this._set("visible",e),this._notifyLayer("visible",t,e))}cloneShallow(){return new o({aggregateGeometries:this.aggregateGeometries,statisticsAggregatedIds:this.statisticsAggregatedIds,attributes:this.attributes,geometry:this.geometry,isAggregate:this.isAggregate,layer:this.layer,popupTemplate:this.popupTemplate,sourceLayer:this.sourceLayer,symbol:this.symbol,visible:this.visible,origin:this.origin})}getEffectivePopupTemplate(e=!1){if(this.popupTemplate)return this.popupTemplate;let t=(0,b.E_)(this.origin);if(t)return t.popupTemplate??(e?t.defaultPopupTemplate:null)??null;let r=this.origin&&"layer"in this.origin?this.origin.layer:null;for(let t of[r,this.sourceLayer,this.layer])if(t&&"object"==typeof t){if("popupTemplate"in t&&t.popupTemplate)return t.popupTemplate;if(e&&"defaultPopupTemplate"in t&&null!=t.defaultPopupTemplate)return t.defaultPopupTemplate}return null}getAttribute(e){return this.attributes?.[e]}setAttribute(e,t){if(this.attributes){let r=this.getAttribute(e);this.attributes[e]=t,this._notifyLayer("attributes",r,t,e)}else this.attributes={[e]:t}}getObjectId(){let e=(0,f.I)(this.origin);if(e)return(0,v.r)(this,e);let t=this.sourceLayer??this.layer;return t?(0,v.r)(this,t):null}getGlobalId(){let e=(0,f.I)(this.origin);if(e?.globalIdField)return this.getAttribute(e.globalIdField);let t=this.sourceLayer??this.layer;return t&&"globalIdField"in t&&t.globalIdField?this.getAttribute(t.globalIdField):null}toJSON(){let e={aggregateGeometries:S(this.aggregateGeometries),geometry:this.geometry?.toJSON()??null,symbol:this.symbol?.toJSON()??null,attributes:(0,m.W)(this.attributes)?this.attributes.toJSON():{...this.attributes},popupTemplate:this.popupTemplate?.toJSON()??null};return this.statisticsAggregatedIds?.length&&(e.aggregateIds=[...this.statisticsAggregatedIds]),null!=this.distance&&(e.distance=this.distance),e}notifyMeshTransformChanged(e={}){let{geometry:t}=this;if("mesh"===t?.type){let r={origin:t.origin,transform:t.transform};this._notifyLayer("origin-transform",r,r,e.action)}}_notifyLayer(e,t,r,i){if(this._version++,!this.layer||!("graphicChanged"in this.layer))return;let o={graphic:this,property:e,oldValue:t,newValue:r};"origin-transform"===e&&(o.action=i),"attributes"===e&&(o.attributeName=i),this.layer.graphicChanged(o)}_watchMeshGeometryChanges(){this.removeHandles(T);let e=this.geometry;"mesh"===e?.type&&this.addHandles([(0,c.z7)(()=>e.vertexSpace.origin?{localMatrix:e.transform?.localMatrix,origin:e.vertexSpace.origin}:void 0,({localMatrix:e,origin:t})=>{(this._lastMeshTransform.localMatrix!==e||this._lastMeshTransform.origin!==t)&&(this._lastMeshTransform.localMatrix=e,this._lastMeshTransform.origin=t,this.notifyMeshTransformChanged())}),(0,c.z7)(()=>({vertexAttributes:e.vertexAttributes}),()=>{e.vertexSpace.origin?(this._lastMeshTransform.localMatrix=e.transform?.localMatrix,this._lastMeshTransform.origin=e.vertexSpace.origin):(this._lastMeshTransform.localMatrix=void 0,this._lastMeshTransform.origin=void 0),this._notifyLayer("geometry",e,e)},{equals:(e,t)=>e===t,sync:!0})],T)}};(0,s.Cg)([(0,y.MZ)({value:null,json:{read:function(e){if(!e)return null;let t={};for(let r in e){let i=(0,h.rS)(e[r]);i&&(t[r]=i)}return 0===Object.keys(t).length?null:t}}})],M.prototype,"aggregateGeometries",null),(0,s.Cg)([(0,y.MZ)({value:null})],M.prototype,"attributes",null),(0,s.Cg)([(0,y.MZ)({value:null,types:g.yR,json:{read:h.rS}})],M.prototype,"geometry",null),(0,s.Cg)([(0,y.MZ)()],M.prototype,"distance",void 0),(0,s.Cg)([(0,y.MZ)({type:Boolean})],M.prototype,"isAggregate",void 0),(0,s.Cg)([(0,y.MZ)({clonable:!1})],M.prototype,"layer",void 0),(0,s.Cg)([(0,y.MZ)({clonable:"reference"})],M.prototype,"origin",void 0),(0,s.Cg)([(0,y.MZ)({type:n.A,value:null})],M.prototype,"popupTemplate",null),(0,s.Cg)([(0,y.MZ)({clonable:"reference"})],M.prototype,"sourceLayer",void 0),(0,s.Cg)([(0,y.MZ)({json:{name:"aggregateIds",read:e=>e?.map(e=>Array.isArray(e)?JSON.stringify(e):e)}})],M.prototype,"statisticsAggregatedIds",void 0),(0,s.Cg)([(0,y.MZ)({value:null,types:w.Es})],M.prototype,"symbol",null),(0,s.Cg)([(0,y.MZ)({clonable:!1,json:{read:!1,write:!1}})],M.prototype,"_version",void 0),(0,s.Cg)([(0,y.MZ)({type:Boolean,value:!0})],M.prototype,"visible",null),M=o=(0,s.Cg)([(0,y.$K)("esri.Graphic")],M)},19334(e,t,r){r.d(t,{e:()=>n});var i=r(54639),o=r(14112);class s{constructor(e){this._geometry=e}toJsonGeometry(){return this._geometry.toJSON()}toAccessorGeometry(e){return this._geometry}toGxGeometry(e){return e.fromAccessorGeometry(this._geometry)}}function n(e){if(null==e)return null;switch(e.type){case"point":if((0,o.e6)(e))return null;break;case"polygon":if((0,o.Wq)(e))return null;break;case"polyline":if((0,o.IY)(e))return null;break;case"multipoint":if((0,o.DG)(e))return null;break;case"extent":if((0,o.As)(e))return null;break;default:return null}let t=i.R.of(e.type,e.spatialReference,e.hasZ,e.hasM,new s(e));return t.asAccessorGeometry(),t}},36983(e,t,r){r.d(t,{R:()=>u,p:()=>p});var i=r(54639),o=r(14112),s=r(16930),n=r(60408),l=r(65864);class a{constructor(e){this._geometry=e}toJsonGeometry(){return this._geometry}toAccessorGeometry(e){let t=(0,l.rS)(this._geometry);return t.spatialReference=e,t}toGxGeometry(e){return e.fromJsonGeometry(this._geometry)}}function u(e,t){if("object"!=typeof e||!e)return null;let r=t;if("spatialReference"in e&&(e.spatialReference instanceof s.A?r=e.spatialReference:"object"==typeof e.spatialReference&&null!=e.spatialReference&&(r=new s.A,r.read(e.spatialReference))),null==r)throw Error("Spatial reference required");return(0,n.fT)(e)?p("point",e,r):(0,n.Rg)(e)?p("polyline",e,r):(0,n.Bi)(e)?p("polygon",e,r):(0,n.U9)(e)?p("multipoint",e,r):(0,n.ZC)(e)?p("extent",e,r):null}function p(e,t,r){if(null==t)return null;let s=!1,n=!1;switch(e){case"point":if((0,o.e6)(t))return null;s=void 0!==t.z,n=void 0!==t.m;break;case"polygon":if((0,o.Wq)(t))return null;s=!0===t.hasZ,n=!0===t.hasM;break;case"polyline":if((0,o.IY)(t))return null;s=!0===t.hasZ,n=!0===t.hasM;break;case"multipoint":if((0,o.DG)(t))return null;s=!0===t.hasZ,n=!0===t.hasM;break;case"extent":if((0,o.As)(t))return null;s=null!=t.zmin&&null!=t.zmax,n=null!=t.mmin&&null!=t.mmax;break;default:throw Error("Unsupported geometry type: "+t.type)}return i.R.of(e,r,s,n,new a(t))}},14112(e,t,r){function i(e){return"NaN"===e.x||null===e.x||isNaN(e.x)}function o(e){if(0===(e.curveRings??e.rings).length)return!0;for(let t of e.curveRings??e.rings)if(t.length>0)return!1;return!0}function s(e){if(0===(e.curvePaths??e.paths).length)return!0;for(let t of e.curvePaths??e.paths)if(t.length>0)return!1;return!0}function n(e){return 0===e.points.length}function l(e){return"NaN"===e.xmin||null===e.xmin||isNaN(e.xmin)}r.d(t,{As:()=>l,DG:()=>n,IY:()=>s,Wq:()=>o,e6:()=>i})},69052(e,t,r){r.d(t,{hr:()=>o});var i=r(34727);class o{constructor(e,t){this.min=e,this.max=t,this.range=t-e}normalize(e,t=0,r=!1){return s(this.range,this.min,this.max,e,t,r)}clamp(e,t=0){return(0,i.qE)(e-t,this.min,this.max)+t}monotonic(e,t,r){return e<t?t:t+n(this.range,e-t,r)}minimalMonotonic(e,t,r){return s(this.range,e,e+this.range,t,r)}center(e,t,r){return t=this.monotonic(e,t,r),this.normalize((e+t)/2,r)}diff(e,t,r){return this.monotonic(e,t,r)-e}shortestSignedDiff(e,t){e=this.normalize(e);let r=(t=this.normalize(t))-e,i=t<e?this.minimalMonotonic(e,t)-e:t-this.minimalMonotonic(t,e);return Math.abs(r)<Math.abs(i)?r:i}contains(e,t,r){return t=this.minimalMonotonic(e,t),(r=this.minimalMonotonic(e,r))>e&&r<t}}function s(e,t,r,i,o=0,s=!1){return(i-=o)<t?i+=n(e,t-i):i>r&&(i-=n(e,i-r)),s&&i===r&&(i=t),i+o}function n(e,t,r=0){return Math.ceil((t-r)/e)*e+r}const l=new o(0,2*Math.PI),a=(new o(-Math.PI,Math.PI),new o(0,360));r.d(t,["ie",0,a,"uC",0,l])},46140(e,t,r){r.d(t,{A:()=>o});var i=r(49186);class o{constructor(e,t,r=""){this.major=e,this.minor=t,this._context=r}lessThan(e,t){return this.major<e||e===this.major&&this.minor<t}greaterEqual(e,t){return!this.lessThan(e,t)}toString(){return`${this.major}.${this.minor}`}validate(e){if(this.major!==e.major){let t=this._context&&this._context+":",r=this._context&&this._context+" ";throw new i.A(t+"unsupported-version",`Required major ${r}version is '${this.major}', but got '\${version.major}.\${version.minor}'`,{version:e})}}clone(){return new o(this.major,this.minor,this._context)}static parse(e,t=""){let[r,s]=e.split("."),n=/^\s*\d+\s*$/;if(!r?.match||!n.test(r)){let r=t&&t+":";throw new i.A(r+"invalid-version","Expected major version to be a number, but got '${version}'",{version:e})}if(!s?.match||!n.test(s)){let r=t&&t+":";throw new i.A(r+"invalid-version","Expected minor version to be a number, but got '${version}'",{version:e})}return new o(parseInt(r,10),parseInt(s,10),t)}}},6797(e,t,r){r.d(t,{Ui:()=>d});var i=r(69622),o=r(7762),s=r(88620);const n=new Set(["esri.Color","esri.portal.Portal","esri.symbols.support.Symbol3DAnchorPosition2D","esri.symbols.support.Symbol3DAnchorPosition3D"]);function l(e){return e instanceof i.A}function a(e){return e instanceof o.A?Object.keys(e.items):l(e)?(0,s.oY)(e).keys():e?Object.keys(e):[]}function u(e,t){return e instanceof o.A?e.items[t]:e[t]}function p(e){return e?e.declaredClass:null}function c(e,t){let r=e.diff;if(r&&"function"==typeof r)return r(e,t);let i=a(e),o=a(t);if(0===i.length&&0===o.length)return;if(!i.length||!o.length||function(e,t){return!(!Array.isArray(e)||!Array.isArray(t))&&e.length!==t.length}(e,t))return{type:"complete",oldValue:e,newValue:t};let s=o.filter(e=>!i.includes(e)),d=i.filter(e=>!o.includes(e)),y=i.filter(r=>o.includes(r)&&u(e,r)!==u(t,r)).concat(s,d).sort(),m=p(e);if(m&&n.has(m)&&y.length)return{type:"complete",oldValue:e,newValue:t};let h,g=l(e)&&l(t);for(let i of y){let o,s=u(e,i),n=u(t,i);if((g||"function"!=typeof s&&"function"!=typeof n)&&s!==n&&(null!=s||null!=n)){if(r&&r[i]&&"function"==typeof r[i])o=r[i]?.(s,n);else if(s instanceof Date&&n instanceof Date){if(s.getTime()===n.getTime())continue;o={type:"complete",oldValue:s,newValue:n}}else o="object"==typeof s&&"object"==typeof n&&p(s)===p(n)?c(s,n):{type:"complete",oldValue:s,newValue:n};null!=o&&(null==h?h={type:"partial",diff:{[i]:o}}:h.diff[i]=o)}}return h}function d(e,t){if("function"!=typeof e&&"function"!=typeof t&&(null!=e||null!=t))return null==e||null==t||"object"==typeof e&&"object"==typeof t&&p(e)!==p(t)?{type:"complete",oldValue:e,newValue:t}:c(e,t)}},46130(e,t,r){r.d(t,{v:()=>o});var i=r(76553);function o(e){e?.writtenProperties&&e.writtenProperties.forEach(({target:e,propName:t,newOrigin:r})=>{(0,i.H)(e)&&r&&e.originOf(t)!==r&&e.updateOrigin(t,r)})}},18370(e,t,r){r.d(t,{z:()=>o});class i{constructor(e){this._import=e,this.module=null,this._promise=null}getImportPromise(){return this._promise??=this._import().then(async e=>(this.module=e,e)),this._promise}}function o(e){return new i(e)}},76553(e,t,r){function i(e){return e&&"getAtOrigin"in e&&"originOf"in e}r.d(t,{H:()=>i})},52039(e,t,r){r.d(t,{O7:()=>d,el:()=>u});var i=r(69052),o=(r(49186),r(18370)),s=r(17676),n=(r(5443),r(39829)),l=(r(82799),r(16930)),a=(r(80754),r(21325));async function u(e,t,r){Array.isArray(e)||(e=[e]),"object"==typeof t&&t&&"authMode"in t&&(r=t);let i=null;for(let t of e)i??=t?.spatialReference;if(!i)return e;let o=(0,a.Vp)(i);if(!o)return e;if(1===e.length&&"extent"===e[0]?.type){let t=e[0].clone().normalizeAsSingleGeometry(o);return["xmin"in t?t:new n.A(t)]}let[l,u]=o.valid,d=!1;for(let t of e){if(!t)continue;if("point"===t.type){d||=t.x>=u,d||=t.x<=l;continue}let{extent:e}=t;if(null==e){d=!0;break}d||=e.xmin>=u,d||=e.xmin<=l,d||=e.xmax>=u,d||=e.xmax<=l}if(!d)return e;let[{foldInto360Range:y},m]=await(0,s.qr)(Promise.all([p.getImportPromise(),c.getImportPromise()]),r),h=m.fromSpatialReference(i);return e.map(e=>{if(null==e||"mesh"===e.type)return e;let t=m.fromGeometry(e),r=m.toGeometry(y(t,h),i);return"extent"===e.type&&1===r?.rings.length?r.extent:r})}const p=(0,o.z)(()=>r.e(4144).then(()=>r(4144)).then(e=>e.load().then(()=>e))),c=(0,o.z)(()=>Promise.all([r.e(9187),r.e(8885),r.e(9117),r.e(3299),r.e(1550)]).then(()=>r(78125)));function d(e,t,r){let i=(0,a.Vp)(r);if(null==i)return e;let[o,s]=i.valid,n=2*s,l=0,u=0;t>s?l=Math.ceil(Math.abs(t-s)/n):t<o&&(l=-Math.ceil(Math.abs(t-o)/n)),e>s?u=Math.ceil(Math.abs(e-s)/n):e<o&&(u=-Math.ceil(Math.abs(e-o)/n));let p=e+(l-u)*n,c=p-t;return c>s?p-=n:c<o&&(p+=n),p}function y(e){let t=(0,a.Vp)(e);if(null==t)return null;let[r,o]=t.valid;return new i.hr(r,o)}const m=y(l.A.WGS84);y(l.A.WebMercator),r.d(t,["Y_",0,m])},80754(e,t,r){r.d(t,{kS:()=>u,kd:()=>a});var i=r(82799),o=r(16930),s=r(60408),n=r(52006);const l={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new i.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:o.A.WebMercator}),minus180Line:new i.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:o.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new i.A({paths:[[[180,-180],[180,180]]],spatialReference:o.A.WGS84}),minus180Line:new i.A({paths:[[[-180,-180],[-180,180]]],spatialReference:o.A.WGS84})}};function a(e,t){return Math.ceil((e-t)/(2*t))}function u(e,t){if((0,n.Ed)(e))for(let r of function(e){return(0,s.Bi)(e)?e.curveRings:e.curvePaths}(e))for(let e of r)if((0,n.aO)(e)){let[r,i]=e.c;r[0]+=t,i[0]+=t}else if((0,n.FG)(e)){let[r,i]=e.a;r[0]+=t,i[0]+=t}else if((0,n.n1)(e)){let[r,i,o]=e.b;r[0]+=t,i[0]+=t,o[0]+=t}else e[0]+=t;for(let r of function(e){return(0,s.Bi)(e)?e.rings:e.paths}(e))for(let e of r)e[0]+=t;return e}r.d(t,["j7",0,l])},55156(e,t,r){r.d(t,{I:()=>o});const i=Symbol("idFieldsProviderSymbol");function o(e){return(t=e)&&i in t?e[i]:void 0;var t}r.d(t,["e",0,i])},39622(e,t,r){r.r(t),r.d(t,{default:()=>xt});var i=r(32198),o=r(92602),s=r(52106),n=r(37838),l=r(4576),a=r(7762),u=r(49186),p=r(53966),c=r(25728),d=r(93637),y=r(17676),m=r(36708),h=r(86211),g=r(84952),f=r(91429),b=r(46130),v=r(5443),C=r(48526),w=r(99917),T=r(16930),S=r(21325),M=r(4146),A=r(63074),N=r(34287),O=r(8303),I=r(25036),Z=r(60694),D=r(25482),j=r(53930),F=r(33910);let B=class extends D.o{constructor(e){super(e),this.break=new j.A({color:[255,255,255],size:12,outline:{color:[0,122,194],width:3}}),this.first=new j.A({color:[0,255,0],size:20,outline:{color:[255,255,255],width:4}}),this.unlocated=new j.A({color:[255,0,0],size:12,outline:{color:[255,255,255],width:3}}),this.last=new j.A({color:[255,0,0],size:20,outline:{color:[255,255,255],width:4}}),this.middle=new j.A({color:[51,51,51],size:12,outline:{color:[0,122,194],width:3}}),this.waypoint=new j.A({color:[255,255,255],size:12,outline:{color:[0,122,194],width:3}})}};(0,i.Cg)([(0,f.MZ)({types:F.wC})],B.prototype,"break",void 0),(0,i.Cg)([(0,f.MZ)({types:F.wC})],B.prototype,"first",void 0),(0,i.Cg)([(0,f.MZ)({types:F.wC})],B.prototype,"unlocated",void 0),(0,i.Cg)([(0,f.MZ)({types:F.wC})],B.prototype,"last",void 0),(0,i.Cg)([(0,f.MZ)({types:F.wC})],B.prototype,"middle",void 0),(0,i.Cg)([(0,f.MZ)({types:F.wC})],B.prototype,"waypoint",void 0),B=(0,i.Cg)([(0,f.$K)("esri.layers.support.RouteStopSymbols")],B);var P=r(94985),x=r(31593);let R=class extends D.o{constructor(e){super(e),this.directionLines=new x.A({color:[0,122,194],width:6}),this.directionPoints=new j.A({color:[255,255,255],size:6,outline:{color:[0,122,194],width:2}}),this.pointBarriers=new j.A({style:"x",size:10,outline:{color:[255,0,0],width:3}}),this.polygonBarriers=new P.A({color:[255,170,0,.6],outline:{width:7.5,color:[255,0,0,.6]}}),this.polylineBarriers=new x.A({width:7.5,color:[255,85,0,.7]}),this.routeInfo=new x.A({width:8,color:[20,89,127]}),this.stops=new B}};(0,i.Cg)([(0,f.MZ)({types:F.Y7})],R.prototype,"directionLines",void 0),(0,i.Cg)([(0,f.MZ)({types:F.wC})],R.prototype,"directionPoints",void 0),(0,i.Cg)([(0,f.MZ)({types:F.wC})],R.prototype,"pointBarriers",void 0),(0,i.Cg)([(0,f.MZ)({types:F.Ac})],R.prototype,"polygonBarriers",void 0),(0,i.Cg)([(0,f.MZ)({types:F.Y7})],R.prototype,"polylineBarriers",void 0),(0,i.Cg)([(0,f.MZ)({types:F.Y7})],R.prototype,"routeInfo",void 0),(0,i.Cg)([(0,f.MZ)({type:B})],R.prototype,"stops",void 0),R=(0,i.Cg)([(0,f.$K)("esri.layers.support.RouteSymbols")],R);var L=r(20655),_=r(80812),E=r(10407),J=r(65494),U=r(56507),k=r(2272),G=r(2073),q=r(93223);let $=class extends D.o{constructor(e){super(e),this.dataType=null,this.name=null,this.parameterNames=null,this.restrictionUsageParameterName=null,this.timeNeutralAttributeName=null,this.trafficSupport=null,this.units=null,this.usageType=null}};(0,i.Cg)([(0,f.MZ)({type:String})],$.prototype,"dataType",void 0),(0,i.Cg)([(0,q.e)(G.et,{ignoreUnknown:!1})],$.prototype,"name",void 0),(0,i.Cg)([(0,f.MZ)({type:[String]})],$.prototype,"parameterNames",void 0),(0,i.Cg)([(0,f.MZ)({type:String})],$.prototype,"restrictionUsageParameterName",void 0),(0,i.Cg)([(0,q.e)(G.Mm,{ignoreUnknown:!1})],$.prototype,"timeNeutralAttributeName",void 0),(0,i.Cg)([(0,f.MZ)({type:String})],$.prototype,"trafficSupport",void 0),(0,i.Cg)([(0,q.e)(G.dn)],$.prototype,"units",void 0),(0,i.Cg)([(0,q.e)(G.WU)],$.prototype,"usageType",void 0),$=(0,i.Cg)([(0,f.$K)("esri.rest.support.NetworkAttribute")],$);const W=$;let V=class extends D.o{constructor(e){super(e),this.buildTime=null,this.name=null,this.networkAttributes=null,this.networkSources=null,this.state=null}};(0,i.Cg)([(0,f.MZ)({type:Number})],V.prototype,"buildTime",void 0),(0,i.Cg)([(0,f.MZ)({type:String})],V.prototype,"name",void 0),(0,i.Cg)([(0,f.MZ)({type:[W]})],V.prototype,"networkAttributes",void 0),(0,i.Cg)([(0,f.MZ)()],V.prototype,"networkSources",void 0),(0,i.Cg)([(0,f.MZ)({type:String})],V.prototype,"state",void 0),V=(0,i.Cg)([(0,f.$K)("esri.rest.support.NetworkDataset")],V);const K=V;var z=r(69540),H=r(36005),Y=r(43937);let Q=class extends((0,z.OU)(D.o)){constructor(e){super(e),this.attributeParameterValues=null,this.description=null,this.distanceAttributeName=null,this.id=null,this.impedanceAttributeName=null,this.name=null,this.restrictionAttributeNames=null,this.simplificationTolerance=null,this.simplificationToleranceUnits=null,this.timeAttributeName=null,this.type=null,this.useHierarchy=null,this.uturnAtJunctions=null}readId(e,t){return t.id??t.itemId??null}readRestrictionAttributes(e,t){let{restrictionAttributeNames:r}=t;return null==r?null:r.map(e=>G.OC.fromJSON(e))}writeRestrictionAttributes(e,t,r){null!=e&&(t[r]=e.map(e=>G.OC.toJSON(e)))}};(0,i.Cg)([(0,f.MZ)({type:[Object],json:{write:!0}})],Q.prototype,"attributeParameterValues",void 0),(0,i.Cg)([(0,f.MZ)({type:String,json:{write:!0}})],Q.prototype,"description",void 0),(0,i.Cg)([(0,q.e)(G.dd,{ignoreUnknown:!1})],Q.prototype,"distanceAttributeName",void 0),(0,i.Cg)([(0,f.MZ)({type:String,json:{write:!0}})],Q.prototype,"id",void 0),(0,i.Cg)([(0,H.w)("id",["id","itemId"])],Q.prototype,"readId",null),(0,i.Cg)([(0,q.e)(G.et,{ignoreUnknown:!1})],Q.prototype,"impedanceAttributeName",void 0),(0,i.Cg)([(0,f.MZ)({type:String,json:{write:!0}})],Q.prototype,"name",void 0),(0,i.Cg)([(0,f.MZ)({type:[String],json:{write:!0}})],Q.prototype,"restrictionAttributeNames",void 0),(0,i.Cg)([(0,H.w)("restrictionAttributeNames")],Q.prototype,"readRestrictionAttributes",null),(0,i.Cg)([(0,Y.K)("restrictionAttributeNames")],Q.prototype,"writeRestrictionAttributes",null),(0,i.Cg)([(0,f.MZ)({type:Number,json:{write:{allowNull:!0}}})],Q.prototype,"simplificationTolerance",void 0),(0,i.Cg)([(0,q.e)(G.hY)],Q.prototype,"simplificationToleranceUnits",void 0),(0,i.Cg)([(0,q.e)(G.Mm,{ignoreUnknown:!1})],Q.prototype,"timeAttributeName",void 0),(0,i.Cg)([(0,q.e)(G.ow)],Q.prototype,"type",void 0),(0,i.Cg)([(0,f.MZ)({type:Boolean,json:{write:!0}})],Q.prototype,"useHierarchy",void 0),(0,i.Cg)([(0,q.e)(G.hE)],Q.prototype,"uturnAtJunctions",void 0),Q=(0,i.Cg)([(0,f.$K)("esri.rest.support.TravelMode")],Q);let X=class extends D.o{constructor(e){super(e),this.accumulateAttributeNames=null,this.attributeParameterValues=null,this.currentVersion=null,this.defaultTravelMode=null,this.directionsLanguage=null,this.directionsLengthUnits=null,this.directionsSupportedLanguages=null,this.directionsTimeAttribute=null,this.hasZ=null,this.impedance=null,this.networkDataset=null,this.supportedTravelModes=null}readAccumulateAttributes(e){return null==e?null:e.map(e=>G.et.fromJSON(e))}writeAccumulateAttributes(e,t,r){e?.length&&(t[r]=e.map(e=>G.et.toJSON(e)))}get capabilities(){return{supportsNow:(this.currentVersion??10)>=10.81}}readDefaultTravelMode(e,t){let r=t.supportedTravelModes?.find(({id:e})=>e===t.defaultTravelMode)??t.supportedTravelModes?.find(({itemId:e})=>e===t.defaultTravelMode);return r?Q.fromJSON(r):null}};function ee(e,t,r,i){i[r]=[t.length,t.length+e.length],e.forEach(e=>{t.push(e.geometry)})}async function te(e,t,r){if(!e)throw new u.A("network-service:missing-url","Url to Network service is missing");let i=(0,k.jV)({f:"json",token:t},r),{data:o}=await(0,U.A)(e,i),{defaultTravelMode:s,supportedTravelModes:n}=await(o.currentVersion>=10.4?async function(e,t,r){try{let i=(0,k.jV)({f:"json",token:t},r),o=(0,g.UC)(e)+"/retrieveTravelModes",{data:{supportedTravelModes:s,defaultTravelMode:n}}=await(0,U.A)(o,i);return{supportedTravelModes:s,defaultTravelMode:n}}catch(e){throw new u.A("network-service:retrieveTravelModes","Could not get to the NAServer's retrieveTravelModes.",{error:e})}}(e,t,r):async function(e,t){let r=(0,k.jV)({f:"json"},t),{data:i}=await(0,U.A)(e.replace(/\/rest\/.*$/i,"/info"),r);if(!i?.owningSystemUrl)return{supportedTravelModes:[],defaultTravelMode:null};let{owningSystemUrl:o}=i,s=(0,g.UC)(o)+"/sharing/rest/portals/self",{data:n}=await(0,U.A)(s,r),l=(0,d.wc)("helperServices.routingUtilities.url",n);if(!l)return{supportedTravelModes:[],defaultTravelMode:null};let a=(0,k.Dl)(o),u={f:"json",serviceName:/\/solve$/i.test(a.path)?"Route":/\/solveclosestfacility$/i.test(a.path)?"ClosestFacility":"ServiceAreas"},p=(0,k.jV)(u,t),c=(0,g.UC)(l)+"/GetTravelModes/execute",y=await(0,U.A)(c,p),m=[],h=null;if(y?.data?.results?.length){let e=y.data.results;for(let t of e)if("supportedTravelModes"===t.paramName){if(t.value?.features)for(let{attributes:e}of t.value.features)if(e){let t=JSON.parse(e.TravelMode);m.push(t)}}else"defaultTravelMode"===t.paramName&&(h=t.value)}return{supportedTravelModes:m,defaultTravelMode:h}}(e,r));return o.defaultTravelMode=s,o.supportedTravelModes=n,X.fromJSON(o)}(0,i.Cg)([(0,f.MZ)()],X.prototype,"accumulateAttributeNames",void 0),(0,i.Cg)([(0,H.w)("accumulateAttributeNames")],X.prototype,"readAccumulateAttributes",null),(0,i.Cg)([(0,Y.K)("accumulateAttributeNames")],X.prototype,"writeAccumulateAttributes",null),(0,i.Cg)([(0,f.MZ)()],X.prototype,"attributeParameterValues",void 0),(0,i.Cg)([(0,f.MZ)()],X.prototype,"capabilities",null),(0,i.Cg)([(0,f.MZ)()],X.prototype,"currentVersion",void 0),(0,i.Cg)([(0,f.MZ)()],X.prototype,"defaultTravelMode",void 0),(0,i.Cg)([(0,H.w)("defaultTravelMode",["defaultTravelMode","supportedTravelModes"])],X.prototype,"readDefaultTravelMode",null),(0,i.Cg)([(0,f.MZ)()],X.prototype,"directionsLanguage",void 0),(0,i.Cg)([(0,q.e)(G.Z7)],X.prototype,"directionsLengthUnits",void 0),(0,i.Cg)([(0,f.MZ)()],X.prototype,"directionsSupportedLanguages",void 0),(0,i.Cg)([(0,q.e)(G.Mm,{ignoreUnknown:!1})],X.prototype,"directionsTimeAttribute",void 0),(0,i.Cg)([(0,f.MZ)()],X.prototype,"hasZ",void 0),(0,i.Cg)([(0,q.e)(G.et,{ignoreUnknown:!1})],X.prototype,"impedance",void 0),(0,i.Cg)([(0,f.MZ)({type:K})],X.prototype,"networkDataset",void 0),(0,i.Cg)([(0,f.MZ)({type:[Q]})],X.prototype,"supportedTravelModes",void 0),X=(0,i.Cg)([(0,f.$K)("esri.rest.support.NetworkServiceDescription")],X);var re=r(16649),ie=r(52039);function oe(e,t){if(null==e)return null;let r={},i=RegExp(`^${t}`,"i");for(let o of Object.keys(e))if(i.test(o)){let i=o.slice(t.length);r[G.et.fromJSON(i)]=e[o]}return r}function se(e,t,r){if(null!=e){t.attributes||={};for(let i in e){let o=G.et.toJSON(i);t.attributes[`${r}${o}`]=e[i]}}}function ne(e){let t={};for(let r of Object.keys(e)){let i=r;t[G.et.fromJSON(i)]=e[r]}return t}function le(e){let t={};for(let r of Object.keys(e)){let i=r;t[G.et.toJSON(i)]=e[r]}return t}function ae(e,t){return null==e||null==t?null:Math.round((e-t)/6e4)}function ue(e){let t=e.toJSON(),r=t;return r.accumulateAttributeNames&&=t.accumulateAttributeNames?.join(),r.attributeParameterValues&&=JSON.stringify(t.attributeParameterValues),r.barriers&&=JSON.stringify(t.barriers),r.locateSettings&&=JSON.stringify(t.locateSettings),r.outSR&&=t.outSR?.wkid,r.overrides&&=JSON.stringify(t.overrides),r.polygonBarriers&&=JSON.stringify(t.polygonBarriers),r.polylineBarriers&&=JSON.stringify(t.polylineBarriers),r.restrictionAttributeNames&&=t.restrictionAttributeNames?.join(),r.stops&&=JSON.stringify(t.stops),r.travelMode&&=JSON.stringify(t.travelMode),r}var pe=r(22671),ce=r(66552),de=r(37807);const ye=new ce.J({0:"informative",1:"process-definition",2:"process-start",3:"process-stop",50:"warning",100:"error",101:"empty",200:"abort"});let me=class extends de.A{constructor(e){super(e),this.type=null}};(0,i.Cg)([(0,f.MZ)({type:String,json:{read:ye.read,write:ye.write}})],me.prototype,"type",void 0),me=(0,i.Cg)([(0,f.$K)("esri.rest.support.NAMessage")],me);const he=me;var ge=r(82799),fe=r(86738);let be=class extends D.o{constructor(e){super(e)}};(0,i.Cg)([(0,f.MZ)({json:{read:{source:"string"}}})],be.prototype,"text",void 0),(0,i.Cg)([(0,q.e)(G.Ec,{name:"stringType"})],be.prototype,"type",void 0),be=(0,i.Cg)([(0,f.$K)("esri.rest.support.DirectionsString")],be);const ve=be;let Ce=class extends D.o{constructor(e){super(e),this.arriveTime=null,this.arriveTimeOffset=null,this.geometry=null,this.strings=null}readArriveTimeOffset(e,t){return ae(t.ETA,t.arriveTimeUTC)}readGeometry(e,t){return fe.A.fromJSON(t.point)}};(0,i.Cg)([(0,f.MZ)({type:Date,json:{read:{source:"arriveTimeUTC"}}})],Ce.prototype,"arriveTime",void 0),(0,i.Cg)([(0,f.MZ)()],Ce.prototype,"arriveTimeOffset",void 0),(0,i.Cg)([(0,H.w)("arriveTimeOffset",["arriveTimeUTC","ETA"])],Ce.prototype,"readArriveTimeOffset",null),(0,i.Cg)([(0,f.MZ)({type:fe.A})],Ce.prototype,"geometry",void 0),(0,i.Cg)([(0,H.w)("geometry",["point"])],Ce.prototype,"readGeometry",null),(0,i.Cg)([(0,f.MZ)({type:[ve]})],Ce.prototype,"strings",void 0),Ce=(0,i.Cg)([(0,f.$K)("esri.rest.support.DirectionsEvent")],Ce);const we=Ce;let Te=class extends s.A{constructor(e){super(e),this.events=null,this.geometry=null,this.strings=null}set attributes(e){super.attributes=e}readGeometry(e,t){let r=function(e){if(null==e||""===e)return null;let t,r,i,o,s,n,l,a,u=0,p=0,c=0,d=0,y=[],m=0,h=0,g=0;if(s=e.match(/((\+|-)[^+\-|]+|\|)/g),s||=[],0===parseInt(s[m],32)){m=2;let e=parseInt(s[m],32);m++,n=parseInt(s[m],32),m++,1&e&&(h=s.indexOf("|")+1,l=parseInt(s[h],32),h++),2&e&&(g=s.indexOf("|",h)+1,a=parseInt(s[g],32),g++)}else n=parseInt(s[m],32),m++;for(;m<s.length&&"|"!==s[m];){t=parseInt(s[m],32)+u,m++,u=t,r=parseInt(s[m],32)+p,m++,p=r;let e=[t/n,r/n];h&&(o=parseInt(s[h],32)+c,h++,c=o,e.push(o/l)),g&&(i=parseInt(s[g],32)+d,g++,d=i,e.push(i/a)),y.push(e)}return{paths:[y],hasZ:h>0,hasM:g>0}}(t.compressedGeometry);return null==r?null:ge.A.fromJSON(r)}};(0,i.Cg)([(0,f.MZ)({type:[we]})],Te.prototype,"events",void 0),(0,i.Cg)([(0,f.MZ)({types:{base:null,key:"type",typeMap:{polygon:ge.A},defaultKeyValue:"polygon"}})],Te.prototype,"geometry",void 0),(0,i.Cg)([(0,H.w)("geometry",["compressedGeometry"])],Te.prototype,"readGeometry",null),(0,i.Cg)([(0,f.MZ)({type:[ve]})],Te.prototype,"strings",void 0),Te=(0,i.Cg)([(0,f.$K)("esri.rest.support.DirectionsFeature")],Te);const Se=Te;let Me=class extends pe.A{constructor(e){super(e),this.extent=null,this.features=[],this.geometryType="polyline",this.routeId=null,this.routeName=null,this.totalDriveTime=null,this.totalLength=null,this.totalTime=null}readFeatures(e,t){if(!e)return[];let r=t.summary.envelope.spatialReference??t.spatialReference,i=r&&T.A.fromJSON(r);return e.map(e=>{let t=Se.fromJSON(e);if(null!=t.geometry&&(t.geometry.spatialReference=i),null!=t.events)for(let e of t.events)null!=e.geometry&&(e.geometry.spatialReference=i);return t})}get mergedGeometry(){return this.features?function(e,t){if(0===e.length)return new ge.A({spatialReference:t});let r=[];for(let t of e)for(let e of t.paths)r.push(...e);let i=[];r.forEach((e,t)=>{(0===t||e[0]!==r[t-1][0]||e[1]!==r[t-1][1])&&i.push(e)});let{hasM:o,hasZ:s}=e[0];return new ge.A({hasM:o,hasZ:s,paths:[i],spatialReference:t})}(this.features.map(({geometry:e})=>e),this.extent.spatialReference):null}get strings(){return this.features.flatMap(({strings:e})=>e).filter(l.Ru)}};(0,i.Cg)([(0,f.MZ)({type:v.A,json:{read:{source:"summary.envelope"}}})],Me.prototype,"extent",void 0),(0,i.Cg)([(0,f.MZ)({nonNullable:!0})],Me.prototype,"features",void 0),(0,i.Cg)([(0,H.w)("features")],Me.prototype,"readFeatures",null),(0,i.Cg)([(0,f.MZ)()],Me.prototype,"geometryType",void 0),(0,i.Cg)([(0,f.MZ)({readOnly:!0})],Me.prototype,"mergedGeometry",null),(0,i.Cg)([(0,f.MZ)()],Me.prototype,"routeId",void 0),(0,i.Cg)([(0,f.MZ)()],Me.prototype,"routeName",void 0),(0,i.Cg)([(0,f.MZ)({value:null,readOnly:!0})],Me.prototype,"strings",null),(0,i.Cg)([(0,f.MZ)({json:{read:{source:"summary.totalDriveTime"}}})],Me.prototype,"totalDriveTime",void 0),(0,i.Cg)([(0,f.MZ)({json:{read:{source:"summary.totalLength"}}})],Me.prototype,"totalLength",void 0),(0,i.Cg)([(0,f.MZ)({json:{read:{source:"summary.totalTime"}}})],Me.prototype,"totalTime",void 0),Me=(0,i.Cg)([(0,f.$K)("esri.rest.support.DirectionsFeatureSet")],Me);const Ae=Me;let Ne=class extends D.o{constructor(e){super(e),this.directionLines=null,this.directionPoints=null,this.directions=null,this.route=null,this.routeName=null,this.stops=null,this.traversedEdges=null,this.traversedJunctions=null,this.traversedTurns=null}};(0,i.Cg)([(0,f.MZ)({type:pe.A,json:{write:!0}})],Ne.prototype,"directionLines",void 0),(0,i.Cg)([(0,f.MZ)({type:pe.A,json:{write:!0}})],Ne.prototype,"directionPoints",void 0),(0,i.Cg)([(0,f.MZ)({type:Ae,json:{write:!0}})],Ne.prototype,"directions",void 0),(0,i.Cg)([(0,f.MZ)({type:s.A,json:{write:!0}})],Ne.prototype,"route",void 0),(0,i.Cg)([(0,f.MZ)({type:String,json:{write:!0}})],Ne.prototype,"routeName",void 0),(0,i.Cg)([(0,f.MZ)({type:[s.A],json:{write:!0}})],Ne.prototype,"stops",void 0),(0,i.Cg)([(0,f.MZ)({type:pe.A,json:{write:!0}})],Ne.prototype,"traversedEdges",void 0),(0,i.Cg)([(0,f.MZ)({type:pe.A,json:{write:!0}})],Ne.prototype,"traversedJunctions",void 0),(0,i.Cg)([(0,f.MZ)({type:pe.A,json:{write:!0}})],Ne.prototype,"traversedTurns",void 0),Ne=(0,i.Cg)([(0,f.$K)("esri.rest.support.RouteResult")],Ne);const Oe=Ne;function Ie(e){return e?pe.A.fromJSON(e).features.filter(l.Ru):[]}let Ze=class extends D.o{constructor(e){super(e),this.checksum=null,this.messages=null,this.pointBarriers=null,this.polylineBarriers=null,this.polygonBarriers=null,this.routeResults=null}readPointBarriers(e,t){return Ie(t.barriers)}readPolylineBarriers(e){return Ie(e)}readPolygonBarriers(e){return Ie(e)}};function De(e){return e instanceof pe.A}async function je(e,t,r){let i=[],o=[],s={},n={},l=(0,k.Dl)(e),{path:a}=l;De(t.stops)&&ee(t.stops.features,o,"stops.features",s),De(t.pointBarriers)&&ee(t.pointBarriers.features,o,"pointBarriers.features",s),De(t.polylineBarriers)&&ee(t.polylineBarriers.features,o,"polylineBarriers.features",s),De(t.polygonBarriers)&&ee(t.polygonBarriers.features,o,"polygonBarriers.features",s);let u=await(0,ie.el)(o);for(let e in s){let t=s[e];i.push(e),n[e]=u.slice(t[0],t[1])}if(function(e,t){for(let r=0;r<t.length;r++){let i=e[t[r]];if(i&&i.length)for(let e of i)if(null!=e&&e.hasZ)return!0}return!1}(n,i)){let e=null;try{e=await te(a,t.apiKey,r)}catch{}e&&!e.hasZ&&function(e,t){for(let r=0;r<t.length;r++){let i=e[t[r]];if(i&&i.length)for(let e of i)e.z=void 0}p.A.getLogger("esri.rest.networkService").warnOnce("The remote Network Analysis service is powered by a network dataset which is not Z-aware.\nZ-coordinates of the input geometry are ignored.")}(n,i)}for(let e in n)n[e].forEach((r,i)=>{(0,re.Jt)(t,e)[i].geometry=r});let c={...r,query:{...l.query,...ue(t),f:"json"}},d=a.endsWith("/solve")?a:`${a}/solve`,{data:y}=await(0,U.A)(d,c);return function(e){let{barriers:t,checksum:r,directionLines:i,directionPoints:o,directions:s,messages:n,polygonBarriers:l,polylineBarriers:a,routes:u,stops:p,traversedEdges:c,traversedJunctions:d,traversedTurns:y}=e,m=e=>{let t=g.find(t=>t.routeName===e);if(null!=t)return t;let r={routeId:g.length+1,routeName:e};return g.push(r),r},h=e=>{let t=g.find(t=>t.routeId===e);if(null!=t)return t;let r={routeId:e,routeName:null};return g.push(r),r},g=[];u?.features.forEach((e,t)=>{e.geometry.spatialReference=u.spatialReference??void 0;let r=e.attributes.Name,i=t+1;g.push({routeId:i,routeName:r,route:e})}),s?.forEach(e=>{let{routeName:t}=e;m(t).directions=e});let f=p?.features.every(e=>null==e.attributes.RouteName)&&g.length>0?g[0].routeName:null;return p?.features.forEach(e=>{e.geometry&&(e.geometry.spatialReference??=p.spatialReference??void 0);let t=f??e.attributes.RouteName,r=m(t);r.stops??=[],r.stops.push(e)}),i?.features.forEach(e=>{let t=e.attributes.RouteID,r=h(t),{geometryType:o,spatialReference:s}=i;r.directionLines??={features:[],geometryType:o,spatialReference:s},r.directionLines.features.push(e)}),o?.features.forEach(e=>{let t=e.attributes.RouteID,r=h(t),{geometryType:i,spatialReference:s}=o;r.directionPoints??={features:[],geometryType:i,spatialReference:s},r.directionPoints.features.push(e)}),c?.features.forEach(e=>{let t=e.attributes.RouteID,r=h(t),{geometryType:i,spatialReference:o}=c;r.traversedEdges??={features:[],geometryType:i,spatialReference:o},r.traversedEdges.features.push(e)}),d?.features.forEach(e=>{let t=e.attributes.RouteID,r=h(t),{geometryType:i,spatialReference:o}=d;r.traversedJunctions??={features:[],geometryType:i,spatialReference:o},r.traversedJunctions.features.push(e)}),y?.features.forEach(e=>{let t=e.attributes.RouteID,r=h(t);r.traversedTurns??={features:[]},r.traversedTurns.features.push(e)}),Ze.fromJSON({barriers:t,checksum:r,messages:n,polygonBarriers:l,polylineBarriers:a,routeResults:g})}(y)}var Fe;(0,i.Cg)([(0,f.MZ)({type:String})],Ze.prototype,"checksum",void 0),(0,i.Cg)([(0,f.MZ)({type:[he]})],Ze.prototype,"messages",void 0),(0,i.Cg)([(0,f.MZ)({type:[s.A]})],Ze.prototype,"pointBarriers",void 0),(0,i.Cg)([(0,H.w)("pointBarriers",["barriers"])],Ze.prototype,"readPointBarriers",null),(0,i.Cg)([(0,f.MZ)({type:[s.A]})],Ze.prototype,"polylineBarriers",void 0),(0,i.Cg)([(0,H.w)("polylineBarriers")],Ze.prototype,"readPolylineBarriers",null),(0,i.Cg)([(0,f.MZ)({type:[s.A]})],Ze.prototype,"polygonBarriers",void 0),(0,i.Cg)([(0,H.w)("polygonBarriers")],Ze.prototype,"readPolygonBarriers",null),(0,i.Cg)([(0,f.MZ)({type:[Oe]})],Ze.prototype,"routeResults",void 0),Ze=(0,i.Cg)([(0,f.$K)("esri.rest.support.RouteSolveResult")],Ze);let Be=class extends((0,z.OU)(D.o)){static{Fe=this}constructor(e){super(e),this.directionLineType=null,this.directionPointId=null,this.distance=null,this.duration=null,this.fromLevel=null,this.geometry=null,this.objectId=null,this.popupTemplate=null,this.symbol=null,this.toLevel=null,this.type="direction-line"}static{this.fields=[{name:"ObjectID",alias:"ObjectID",type:"esriFieldTypeOID",editable:!1,nullable:!1},{name:"DirectionLineType",alias:"Line Type",type:"esriFieldTypeInteger",editable:!0,nullable:!0},{name:"DirectionPointID",alias:"Direction Point ID",type:"esriFieldTypeInteger",editable:!0,nullable:!0},{name:"FromLevel",alias:"From Level",type:"esriFieldTypeInteger",editable:!0,nullable:!0},{name:"Meters",alias:"Meters",type:"esriFieldTypeDouble",editable:!0,nullable:!0},{name:"Minutes",alias:"Minutes",type:"esriFieldTypeDouble",editable:!0,nullable:!0},{name:"ToLevel",alias:"To Level",type:"esriFieldTypeInteger",editable:!0,nullable:!0}]}static fromGraphic(e){return new Fe({directionLineType:G.gD.fromJSON(e.attributes.DirectionLineType),directionPointId:e.attributes.DirectionPointID,distance:e.attributes.Meters,duration:e.attributes.Minutes,fromLevel:e.attributes.FromLevel??null,geometry:e.geometry,objectId:e.attributes.ObjectID??e.attributes.__OBJECTID,popupTemplate:e.popupTemplate,symbol:e.symbol,toLevel:e.attributes.ToLevel??null})}toGraphic(){let e={ObjectID:this.objectId,DirectionLineType:this.directionLineType?G.gD.toJSON(this.directionLineType):null,DirectionPointID:this.directionPointId,Meters:this.distance,Minutes:this.duration};return null!=this.fromLevel&&(e.FromLevel=this.fromLevel),null!=this.toLevel&&(e.ToLevel=this.toLevel),new s.A({geometry:this.geometry,attributes:e,symbol:this.symbol,popupTemplate:this.popupTemplate})}};var Pe;(0,i.Cg)([(0,f.MZ)({type:G.gD.apiValues,json:{read:{source:"attributes.DirectionLineType",reader:G.gD.read}}})],Be.prototype,"directionLineType",void 0),(0,i.Cg)([(0,f.MZ)({json:{read:{source:"attributes.DirectionPointID"}}})],Be.prototype,"directionPointId",void 0),(0,i.Cg)([(0,f.MZ)({json:{read:{source:"attributes.Meters"}}})],Be.prototype,"distance",void 0),(0,i.Cg)([(0,f.MZ)({json:{read:{source:"attributes.Minutes"}}})],Be.prototype,"duration",void 0),(0,i.Cg)([(0,f.MZ)({json:{read:{source:"attributes.FromLevel"}}})],Be.prototype,"fromLevel",void 0),(0,i.Cg)([(0,f.MZ)({type:ge.A})],Be.prototype,"geometry",void 0),(0,i.Cg)([(0,f.MZ)({json:{read:{source:"attributes.ObjectID"}}})],Be.prototype,"objectId",void 0),(0,i.Cg)([(0,f.MZ)({type:n.A})],Be.prototype,"popupTemplate",void 0),(0,i.Cg)([(0,f.MZ)({types:F.Es})],Be.prototype,"symbol",void 0),(0,i.Cg)([(0,f.MZ)({json:{read:{source:"attributes.ToLevel"}}})],Be.prototype,"toLevel",void 0),(0,i.Cg)([(0,f.MZ)({readOnly:!0,json:{read:!1}})],Be.prototype,"type",void 0),Be=Fe=(0,i.Cg)([(0,f.$K)("esri.rest.support.DirectionLine")],Be);let xe=class extends((0,z.OU)(D.o)){static{Pe=this}constructor(e){super(e),this.alternateName=null,this.arrivalTime=null,this.arrivalTimeOffset=null,this.azimuth=null,this.branchName=null,this.directionPointType=null,this.displayText=null,this.exitName=null,this.geometry=null,this.intersectingName=null,this.level=null,this.name=null,this.objectId=null,this.popupTemplate=null,this.sequence=null,this.shortVoiceInstruction=null,this.stopId=null,this.symbol=null,this.towardName=null,this.type="direction-point",this.voiceInstruction=null}readArrivalTime(e,t){return null==t.attributes.ArrivalTime?null:new Date(t.attributes.ArrivalTime)}static{this.fields=[{name:"ObjectID",alias:"ObjectID",type:"esriFieldTypeOID",editable:!1,nullable:!1},{name:"AlternateName",alias:"Alternate Name",type:"esriFieldTypeString",editable:!0,nullable:!0,length:2048},{name:"ArrivalTime",alias:"Arrival Time",type:"esriFieldTypeDate",editable:!0,nullable:!0,length:36},{name:"ArrivalUTCOffset",alias:"Arrival Time Offset",type:"esriFieldTypeInteger",editable:!0,nullable:!0},{name:"Azimuth",alias:"Azimuth",type:"esriFieldTypeDouble",editable:!0,nullable:!0},{name:"BranchName",alias:"Branch Name",type:"esriFieldTypeString",editable:!0,nullable:!0,length:2048},{name:"DirectionPointType",alias:"Directions Point Type",type:"esriFieldTypeInteger",editable:!0,nullable:!0},{name:"DisplayText",alias:"Display Text",type:"esriFieldTypeString",editable:!0,nullable:!0,length:2048},{name:"ExitName",alias:"Exit Name",type:"esriFieldTypeString",editable:!0,nullable:!0,length:2048},{name:"IntersectingName",alias:"Intersecting Name",type:"esriFieldTypeString",editable:!0,nullable:!0,length:2048},{name:"Level",alias:"Level",type:"esriFieldTypeInteger",editable:!0,nullable:!0},{name:"Name",alias:"Name",type:"esriFieldTypeString",editable:!0,nullable:!0,length:2048},{name:"Sequence",alias:"Sequence",type:"esriFieldTypeInteger",editable:!0,nullable:!0},{name:"ShortVoiceInstruction",alias:"Short Voice Instruction",type:"esriFieldTypeString",editable:!0,nullable:!0,length:2048},{name:"StopID",alias:"Stop ID",type:"esriFieldTypeInteger",editable:!0,nullable:!0},{name:"TowardName",alias:"Toward Name",type:"esriFieldTypeString",editable:!0,nullable:!0,length:2048},{name:"VoiceInstruction",alias:"Voice Instruction",type:"esriFieldTypeString",editable:!0,nullable:!0,length:2048}]}static fromGraphic(e){return new Pe({alternateName:e.attributes.AlternateName??null,arrivalTime:null==e.attributes.ArrivalTime?null:new Date(e.attributes.ArrivalTime),arrivalTimeOffset:e.attributes.ArrivalUTCOffset??null,azimuth:e.attributes.Azimuth??null,branchName:e.attributes.BranchName??null,directionPointType:G._6.fromJSON(e.attributes.DirectionPointType),displayText:e.attributes.DisplayText??null,exitName:e.attributes.ExitName??null,geometry:e.geometry,intersectingName:e.attributes.IntersectingName??null,level:e.attributes.Level??null,name:e.attributes.Name??null,objectId:e.attributes.ObjectID??e.attributes.__OBJECTID,popupTemplate:e.popupTemplate,sequence:e.attributes.Sequence,shortVoiceInstruction:e.attributes.ShortVoiceInstruction??null,stopId:e.attributes.StopID??null,symbol:e.symbol,towardName:e.attributes.TowardName??null,voiceInstruction:e.attributes.VoiceInstruction??null})}toGraphic(){let e={ObjectID:this.objectId,DirectionPointType:this.directionPointType?G._6.toJSON(this.directionPointType):null,Sequence:this.sequence,StopID:this.stopId};return null!=this.alternateName&&(e.AlternateName=this.alternateName),null!=this.arrivalTime&&(e.ArrivalTime=this.arrivalTime.getTime()),null!=this.arrivalTimeOffset&&(e.ArrivalUTCOffset=this.arrivalTimeOffset),null!=this.azimuth&&(e.Azimuth=this.azimuth),null!=this.branchName&&(e.BranchName=this.branchName),null!=this.displayText&&(e.DisplayText=this.displayText),null!=this.exitName&&(e.ExitName=this.exitName),null!=this.intersectingName&&(e.IntersectingName=this.intersectingName),null!=this.level&&(e.Level=this.level),null!=this.name&&(e.Name=this.name),null!=this.shortVoiceInstruction&&(e.ShortVoiceInstruction=this.shortVoiceInstruction),null!=this.towardName&&(e.TowardName=this.towardName),null!=this.voiceInstruction&&(e.VoiceInstruction=this.voiceInstruction),new s.A({geometry:this.geometry,attributes:e,symbol:this.symbol,popupTemplate:this.popupTemplate})}};var Re;(0,i.Cg)([(0,f.MZ)({json:{read:{source:"attributes.AlternateName"}}})],xe.prototype,"alternateName",void 0),(0,i.Cg)([(0,f.MZ)({type:Date})],xe.prototype,"arrivalTime",void 0),(0,i.Cg)([(0,H.w)("arrivalTime",["attributes.ArrivalTime"])],xe.prototype,"readArrivalTime",null),(0,i.Cg)([(0,f.MZ)({json:{read:{source:"attributes.ArrivalUTCOffset"}}})],xe.prototype,"arrivalTimeOffset",void 0),(0,i.Cg)([(0,f.MZ)({json:{read:{source:"attributes.Azimuth"}}})],xe.prototype,"azimuth",void 0),(0,i.Cg)([(0,f.MZ)({json:{read:{source:"attributes.BranchName"}}})],xe.prototype,"branchName",void 0),(0,i.Cg)([(0,f.MZ)({type:G._6.apiValues,json:{read:{source:"attributes.DirectionPointType",reader:G._6.read}}})],xe.prototype,"directionPointType",void 0),(0,i.Cg)([(0,f.MZ)({json:{read:{source:"attributes.DisplayText"}}})],xe.prototype,"displayText",void 0),(0,i.Cg)([(0,f.MZ)({json:{read:{source:"attributes.ExitName"}}})],xe.prototype,"exitName",void 0),(0,i.Cg)([(0,f.MZ)({type:fe.A})],xe.prototype,"geometry",void 0),(0,i.Cg)([(0,f.MZ)({json:{read:{source:"attributes.IntersectingName"}}})],xe.prototype,"intersectingName",void 0),(0,i.Cg)([(0,f.MZ)({json:{read:{source:"attributes.Level"}}})],xe.prototype,"level",void 0),(0,i.Cg)([(0,f.MZ)({json:{read:{source:"attributes.Name"}}})],xe.prototype,"name",void 0),(0,i.Cg)([(0,f.MZ)({json:{read:{source:"attributes.ObjectID"}}})],xe.prototype,"objectId",void 0),(0,i.Cg)([(0,f.MZ)({type:n.A})],xe.prototype,"popupTemplate",void 0),(0,i.Cg)([(0,f.MZ)({json:{read:{source:"attributes.Sequence"}}})],xe.prototype,"sequence",void 0),(0,i.Cg)([(0,f.MZ)({json:{read:{source:"attributes.ShortVoiceInstruction"}}})],xe.prototype,"shortVoiceInstruction",void 0),(0,i.Cg)([(0,f.MZ)({json:{read:{source:"attributes.StopID"}}})],xe.prototype,"stopId",void 0),(0,i.Cg)([(0,f.MZ)({types:F.Es})],xe.prototype,"symbol",void 0),(0,i.Cg)([(0,f.MZ)({json:{read:{source:"attributes.TowardName"}}})],xe.prototype,"towardName",void 0),(0,i.Cg)([(0,f.MZ)({readOnly:!0,json:{read:!1}})],xe.prototype,"type",void 0),(0,i.Cg)([(0,f.MZ)({json:{read:{source:"attributes.VoiceInstruction"}}})],xe.prototype,"voiceInstruction",void 0),xe=Pe=(0,i.Cg)([(0,f.$K)("esri.rest.support.DirectionPoint")],xe);let Le=class extends((0,z.OU)(D.o)){static{Re=this}constructor(e){super(e),this.addedCost=null,this.barrierType=null,this.costs=null,this.curbApproach=null,this.fullEdge=null,this.name=null,this.objectId=null,this.popupTemplate=null,this.positionAlong=null,this.sideOfEdge=null,this.sourceId=null,this.sourceOid=null,this.status=null,this.symbol=null,this.type="point-barrier"}readCosts(e,t){return oe(t.attributes,"Attr_")}writeCosts(e,t){se(e,t,"Attr_")}set geometry(e){this._get("geometry")&&(this._set("positionAlong",null),this._set("sideOfEdge",null),this._set("sourceId",null),this._set("sourceOid",null),this._set("status",null)),this._set("geometry",e)}static{this.fields=[{name:"ObjectID",alias:"ObjectID",type:"esriFieldTypeOID",editable:!1,nullable:!1},{name:"AddedCost",alias:"Added Cost",type:"esriFieldTypeDouble",editable:!0,nullable:!0},{name:"BarrierType",alias:"Barrier Type",type:"esriFieldTypeInteger",editable:!0,nullable:!0},{name:"Costs",alias:"Costs",type:"esriFieldTypeString",editable:!0,nullable:!0,length:1048576},{name:"CurbApproach",alias:"Curb Approach",type:"esriFieldTypeInteger",editable:!0,nullable:!0},{name:"FullEdge",alias:"Full Edge",type:"esriFieldTypeInteger",editable:!0,nullable:!0},{name:"Name",alias:"Name",type:"esriFieldTypeString",editable:!0,nullable:!0,length:255},{name:"Status",alias:"Status",type:"esriFieldTypeInteger",editable:!0,nullable:!0}]}static fromGraphic(e){return new Re({addedCost:e.attributes.AddedCost??null,barrierType:null==e.attributes.BarrierType?null:G.iM.fromJSON(e.attributes.BarrierType),costs:null==e.attributes.Costs?null:ne(JSON.parse(e.attributes.Costs)),curbApproach:null==e.attributes.CurbApproach?null:G.JJ.fromJSON(e.attributes.CurbApproach),fullEdge:null==e.attributes.FullEdge?null:G.fe.fromJSON(e.attributes.FullEdge),geometry:e.geometry,name:e.attributes.Name??null,objectId:e.attributes.ObjectID??e.attributes.__OBJECTID,popupTemplate:e.popupTemplate,status:null==e.attributes.Status?null:G.$r.fromJSON(e.attributes.Status),symbol:e.symbol})}toGraphic(){let e={ObjectID:this.objectId,AddedCost:this.addedCost,BarrierType:this.barrierType?G.iM.toJSON(this.barrierType):null,Costs:this.costs?JSON.stringify(le(this.costs)):null,CurbApproach:this.curbApproach?G.JJ.toJSON(this.curbApproach):null,FullEdge:this.fullEdge?G.fe.toJSON(this.fullEdge):null,Name:this.name,Status:this.status?G.$r.toJSON(this.status):null};return new s.A({geometry:this.geometry,attributes:e,symbol:this.symbol,popupTemplate:this.popupTemplate})}};(0,i.Cg)([(0,f.MZ)()],Le.prototype,"addedCost",void 0),(0,i.Cg)([(0,f.MZ)({type:G.iM.apiValues,json:{name:"attributes.BarrierType",read:{reader:G.iM.read},write:{writer:G.iM.write}}})],Le.prototype,"barrierType",void 0),(0,i.Cg)([(0,f.MZ)()],Le.prototype,"costs",void 0),(0,i.Cg)([(0,H.w)("costs",["attributes"])],Le.prototype,"readCosts",null),(0,i.Cg)([(0,Y.K)("costs")],Le.prototype,"writeCosts",null),(0,i.Cg)([(0,f.MZ)({type:G.JJ.apiValues,json:{read:{source:"attributes.CurbApproach",reader:G.JJ.read}}})],Le.prototype,"curbApproach",void 0),(0,i.Cg)([(0,f.MZ)({type:G.fe.apiValues,json:{name:"attributes.FullEdge",read:{reader:G.fe.read},write:{writer:G.fe.write}}})],Le.prototype,"fullEdge",void 0),(0,i.Cg)([(0,f.MZ)({type:fe.A,json:{write:!0},value:null})],Le.prototype,"geometry",null),(0,i.Cg)([(0,f.MZ)({json:{name:"attributes.Name"}})],Le.prototype,"name",void 0),(0,i.Cg)([(0,f.MZ)({json:{name:"attributes.ObjectID"}})],Le.prototype,"objectId",void 0),(0,i.Cg)([(0,f.MZ)({type:n.A})],Le.prototype,"popupTemplate",void 0),(0,i.Cg)([(0,f.MZ)({json:{name:"attributes.PosAlong"}})],Le.prototype,"positionAlong",void 0),(0,i.Cg)([(0,f.MZ)({type:G.mt.apiValues,json:{name:"attributes.SideOfEdge",read:{reader:G.mt.read},write:{writer:G.mt.write}}})],Le.prototype,"sideOfEdge",void 0),(0,i.Cg)([(0,f.MZ)({json:{name:"attributes.SourceID"}})],Le.prototype,"sourceId",void 0),(0,i.Cg)([(0,f.MZ)({json:{name:"attributes.SourceOID"}})],Le.prototype,"sourceOid",void 0),(0,i.Cg)([(0,f.MZ)({type:G.$r.apiValues,json:{read:{source:"attributes.Status",reader:G.$r.read}}})],Le.prototype,"status",void 0),(0,i.Cg)([(0,f.MZ)({types:F.Es})],Le.prototype,"symbol",void 0),(0,i.Cg)([(0,f.MZ)({readOnly:!0,json:{read:!1}})],Le.prototype,"type",void 0),Le=Re=(0,i.Cg)([(0,f.$K)("esri.rest.support.PointBarrier")],Le);var _e,Ee=r(39829);let Je=class extends((0,z.OU)(D.o)){static{_e=this}constructor(e){super(e),this.barrierType=null,this.costs=null,this.geometry=null,this.name=null,this.objectId=null,this.popupTemplate=null,this.scaleFactor=null,this.symbol=null,this.type="polygon-barrier"}readCosts(e,t){return oe(t.attributes,"Attr_")}writeCosts(e,t){se(e,t,"Attr_")}static{this.fields=[{name:"ObjectID",alias:"ObjectID",type:"esriFieldTypeOID",editable:!1,nullable:!1},{name:"BarrierType",alias:"Barrier Type",type:"esriFieldTypeInteger",editable:!0,nullable:!0},{name:"Costs",alias:"Costs",type:"esriFieldTypeString",editable:!0,nullable:!0,length:1048576},{name:"Name",alias:"Name",type:"esriFieldTypeString",editable:!0,nullable:!0,length:255},{name:"ScaleFactor",alias:"Scale Factor",type:"esriFieldTypeDouble",editable:!0,nullable:!0}]}static fromGraphic(e){return new _e({barrierType:null==e.attributes.BarrierType?null:G.iM.fromJSON(e.attributes.BarrierType),costs:null==e.attributes.Costs?null:ne(JSON.parse(e.attributes.Costs)),geometry:e.geometry,name:e.attributes.Name??null,objectId:e.attributes.ObjectID??e.attributes.__OBJECTID,popupTemplate:e.popupTemplate,scaleFactor:e.attributes.ScaleFactor??null,symbol:e.symbol})}toGraphic(){let e={ObjectID:this.objectId,BarrierType:this.barrierType?G.iM.toJSON(this.barrierType):null,Costs:this.costs?JSON.stringify(le(this.costs)):null,Name:this.name??null,ScaleFactor:this.scaleFactor??null};return new s.A({geometry:this.geometry,attributes:e,symbol:this.symbol,popupTemplate:this.popupTemplate})}};var Ue;(0,i.Cg)([(0,f.MZ)({type:G.iM.apiValues,json:{name:"attributes.BarrierType",read:{reader:G.iM.read},write:{writer:G.iM.write}}})],Je.prototype,"barrierType",void 0),(0,i.Cg)([(0,f.MZ)()],Je.prototype,"costs",void 0),(0,i.Cg)([(0,H.w)("costs",["attributes"])],Je.prototype,"readCosts",null),(0,i.Cg)([(0,Y.K)("costs")],Je.prototype,"writeCosts",null),(0,i.Cg)([(0,f.MZ)({type:Ee.A,json:{write:!0}})],Je.prototype,"geometry",void 0),(0,i.Cg)([(0,f.MZ)({json:{name:"attributes.Name"}})],Je.prototype,"name",void 0),(0,i.Cg)([(0,f.MZ)({json:{name:"attributes.ObjectID"}})],Je.prototype,"objectId",void 0),(0,i.Cg)([(0,f.MZ)({type:n.A})],Je.prototype,"popupTemplate",void 0),(0,i.Cg)([(0,f.MZ)()],Je.prototype,"scaleFactor",void 0),(0,i.Cg)([(0,f.MZ)({types:F.Es})],Je.prototype,"symbol",void 0),(0,i.Cg)([(0,f.MZ)({readOnly:!0,json:{read:!1}})],Je.prototype,"type",void 0),Je=_e=(0,i.Cg)([(0,f.$K)("esri.rest.support.PolygonBarrier")],Je);let ke=class extends((0,z.OU)(D.o)){static{Ue=this}constructor(e){super(e),this.barrierType=null,this.costs=null,this.geometry=null,this.name=null,this.objectId=null,this.popupTemplate=null,this.scaleFactor=null,this.symbol=null,this.type="polyline-barrier"}readCosts(e,t){return oe(t.attributes,"Attr_")}static{this.fields=[{name:"ObjectID",alias:"ObjectID",type:"esriFieldTypeOID",editable:!1,nullable:!1},{name:"BarrierType",alias:"Barrier Type",type:"esriFieldTypeInteger",editable:!0,nullable:!0},{name:"Costs",alias:"Costs",type:"esriFieldTypeString",editable:!0,nullable:!0,length:1048576},{name:"Name",alias:"Name",type:"esriFieldTypeString",editable:!0,nullable:!0,length:255},{name:"ScaleFactor",alias:"Scale Factor",type:"esriFieldTypeDouble",editable:!0,nullable:!0}]}static fromGraphic(e){return new Ue({barrierType:null==e.attributes.BarrierType?null:G.iM.fromJSON(e.attributes.BarrierType),costs:null==e.attributes.Costs?null:ne(JSON.parse(e.attributes.Costs)),geometry:e.geometry,name:e.attributes.Name??null,objectId:e.attributes.ObjectID??e.attributes.__OBJECTID,popupTemplate:e.popupTemplate,scaleFactor:e.attributes.ScaleFactor??null,symbol:e.symbol})}toGraphic(){let e={ObjectID:this.objectId,BarrierType:this.barrierType?G.iM.toJSON(this.barrierType):null,Costs:this.costs?JSON.stringify(le(this.costs)):null,Name:this.name,ScaleFactor:this.scaleFactor};return new s.A({geometry:this.geometry,attributes:e,symbol:this.symbol,popupTemplate:this.popupTemplate})}};(0,i.Cg)([(0,f.MZ)({type:G.iM.apiValues,json:{read:{source:"attributes.BarrierType",reader:G.iM.read}}})],ke.prototype,"barrierType",void 0),(0,i.Cg)([(0,f.MZ)()],ke.prototype,"costs",void 0),(0,i.Cg)([(0,H.w)("costs",["attributes"])],ke.prototype,"readCosts",null),(0,i.Cg)([(0,f.MZ)({type:ge.A,json:{write:!0}})],ke.prototype,"geometry",void 0),(0,i.Cg)([(0,f.MZ)({json:{name:"attributes.Name"}})],ke.prototype,"name",void 0),(0,i.Cg)([(0,f.MZ)({json:{name:"attributes.ObjectID"}})],ke.prototype,"objectId",void 0),(0,i.Cg)([(0,f.MZ)({type:n.A})],ke.prototype,"popupTemplate",void 0),(0,i.Cg)([(0,f.MZ)()],ke.prototype,"scaleFactor",void 0),(0,i.Cg)([(0,f.MZ)({types:F.Es})],ke.prototype,"symbol",void 0),(0,i.Cg)([(0,f.MZ)({readOnly:!0,json:{read:!1}})],ke.prototype,"type",void 0),ke=Ue=(0,i.Cg)([(0,f.$K)("esri.rest.support.PolylineBarrier")],ke);let Ge=class extends D.o{constructor(e){super(e),this.accumulateAttributes=null,this.directionsLanguage=null,this.findBestSequence=null,this.preserveFirstStop=null,this.preserveLastStop=null,this.startTimeIsUTC=null,this.timeWindowsAreUTC=null,this.travelMode=null}readAccumulateAttributes(e){return null==e?null:e.map(e=>G.et.fromJSON(e))}writeAccumulateAttributes(e,t,r){e?.length&&(t[r]=e.map(e=>G.et.toJSON(e)))}};var qe;(0,i.Cg)([(0,f.MZ)({type:[String],json:{name:"accumulateAttributeNames",write:!0}})],Ge.prototype,"accumulateAttributes",void 0),(0,i.Cg)([(0,H.w)("accumulateAttributes")],Ge.prototype,"readAccumulateAttributes",null),(0,i.Cg)([(0,Y.K)("accumulateAttributes")],Ge.prototype,"writeAccumulateAttributes",null),(0,i.Cg)([(0,f.MZ)({type:String,json:{write:!0}})],Ge.prototype,"directionsLanguage",void 0),(0,i.Cg)([(0,f.MZ)({type:Boolean,json:{write:!0}})],Ge.prototype,"findBestSequence",void 0),(0,i.Cg)([(0,f.MZ)({type:Boolean,json:{write:!0}})],Ge.prototype,"preserveFirstStop",void 0),(0,i.Cg)([(0,f.MZ)({type:Boolean,json:{write:!0}})],Ge.prototype,"preserveLastStop",void 0),(0,i.Cg)([(0,f.MZ)({type:Boolean,json:{write:!0}})],Ge.prototype,"startTimeIsUTC",void 0),(0,i.Cg)([(0,f.MZ)({type:Boolean,json:{write:!0}})],Ge.prototype,"timeWindowsAreUTC",void 0),(0,i.Cg)([(0,f.MZ)({type:Q,json:{write:!0}})],Ge.prototype,"travelMode",void 0),Ge=(0,i.Cg)([(0,f.$K)("esri.rest.support.RouteSettings")],Ge);let $e=class extends((0,z.OU)(D.o)){static{qe=this}constructor(e){super(e),this.analysisSettings=null,this.endTime=null,this.endTimeOffset=null,this.firstStopId=null,this.geometry=null,this.lastStopId=null,this.messages=null,this.name=null,this.objectId=null,this.popupTemplate=null,this.startTime=null,this.startTimeOffset=null,this.stopCount=null,this.symbol=null,this.totalCosts=null,this.totalDistance=null,this.totalDuration=null,this.totalLateDuration=null,this.totalViolations=null,this.totalWait=null,this.totalWaitDuration=null,this.type="route-info",this.version="1.0.0"}readEndTime(e,t){return null==t.attributes.EndTimeUTC?null:new Date(t.attributes.EndTimeUTC)}readEndTimeOffset(e,t){return ae(t.attributes.EndTime,t.attributes.EndTimeUTC)}readStartTime(e,t){return null==t.attributes.StartTimeUTC?null:new Date(t.attributes.StartTimeUTC)}readStartTimeOffset(e,t){return ae(t.attributes.StartTime,t.attributes.StartTimeUTC)}readTotalCosts(e,t){return oe(t.attributes,"Total_")}readTotalViolations(e,t){return oe(t.attributes,"TotalViolation_")}readTotalWait(e,t){return oe(t.attributes,"TotalWait_")}static{this.fields=[{name:"ObjectID",alias:"ObjectID",type:"esriFieldTypeOID",editable:!1,nullable:!1},{name:"AnalysisSettings",alias:"Analysis Settings",type:"esriFieldTypeString",editable:!0,nullable:!0,length:1048576},{name:"EndTime",alias:"End Time",type:"esriFieldTypeDate",editable:!0,nullable:!0,length:36},{name:"EndUTCOffset",alias:"End Time Offset",type:"esriFieldTypeInteger",editable:!0,nullable:!0},{name:"Messages",alias:"Messages",type:"esriFieldTypeString",editable:!0,nullable:!0,length:1048576},{name:"RouteName",alias:"Route Name",type:"esriFieldTypeString",editable:!0,nullable:!0,length:1024},{name:"StartTime",alias:"Start Time",type:"esriFieldTypeDate",editable:!0,nullable:!0,length:36},{name:"StartUTCOffset",alias:"Start Time Offset",type:"esriFieldTypeInteger",editable:!0,nullable:!0},{name:"TotalCosts",alias:"Total Costs",type:"esriFieldTypeString",editable:!0,nullable:!0,length:1048576},{name:"TotalLateMinutes",alias:"Total Late Minutes",type:"esriFieldTypeDouble",editable:!0,nullable:!0},{name:"TotalMeters",alias:"Total Meters",type:"esriFieldTypeDouble",editable:!0,nullable:!0},{name:"TotalMinutes",alias:"Total Minutes",type:"esriFieldTypeDouble",editable:!0,nullable:!0},{name:"TotalWaitMinutes",alias:"Total Wait Minutes",type:"esriFieldTypeDouble",editable:!0,nullable:!0},{name:"Version",alias:"Version",type:"esriFieldTypeString",editable:!0,nullable:!0,length:16}]}static fromGraphic(e){return new qe({analysisSettings:null==e.attributes.AnalysisSettings?null:Ge.fromJSON(JSON.parse(e.attributes.AnalysisSettings)),endTime:null==e.attributes.EndTime?null:new Date(e.attributes.EndTime),endTimeOffset:e.attributes.EndUTCOffset??null,geometry:e.geometry,messages:null==e.attributes.Messages?null:JSON.parse(e.attributes.Messages),name:e.attributes.RouteName,objectId:e.attributes.ObjectID??e.attributes.__OBJECTID,popupTemplate:e.popupTemplate,startTime:null==e.attributes.StartTime?null:new Date(e.attributes.StartTime),startTimeOffset:e.attributes.StartUTCOffset??null,symbol:e.symbol,totalCosts:null==e.attributes.TotalCosts?null:ne(JSON.parse(e.attributes.TotalCosts)),totalDistance:e.attributes.TotalMeters??null,totalDuration:e.attributes.TotalMinutes??null,totalLateDuration:e.attributes.TotalLateMinutes??null,totalWaitDuration:e.attributes.TotalWaitMinutes??null,version:e.attributes.Version})}toGraphic(){let e={ObjectID:this.objectId,AnalysisSettings:this.analysisSettings?JSON.stringify(this.analysisSettings.toJSON()):null,EndTime:this.endTime?.getTime()??null,EndUTCOffset:this.endTimeOffset,Messages:this.messages?JSON.stringify(this.messages):null,RouteName:this.name,StartTime:this.startTime?.getTime()??null,StartUTCOffset:this.startTimeOffset,TotalCosts:this.totalCosts?JSON.stringify(le(this.totalCosts)):null,TotalLateMinutes:this.totalLateDuration,TotalMeters:this.totalDistance,TotalMinutes:this.totalDuration,TotalWaitMinutes:this.totalWaitDuration,Version:this.version};return new s.A({geometry:this.geometry,attributes:e,symbol:this.symbol,popupTemplate:this.popupTemplate})}};(0,i.Cg)([(0,f.MZ)()],$e.prototype,"analysisSettings",void 0),(0,i.Cg)([(0,f.MZ)({type:Date})],$e.prototype,"endTime",void 0),(0,i.Cg)([(0,H.w)("endTime",["attributes.EndTimeUTC"])],$e.prototype,"readEndTime",null),(0,i.Cg)([(0,f.MZ)()],$e.prototype,"endTimeOffset",void 0),(0,i.Cg)([(0,H.w)("endTimeOffset",["attributes.EndTime","attributes.EndTimeUTC"])],$e.prototype,"readEndTimeOffset",null),(0,i.Cg)([(0,f.MZ)({json:{read:{source:"attributes.FirstStopID"}}})],$e.prototype,"firstStopId",void 0),(0,i.Cg)([(0,f.MZ)({type:ge.A})],$e.prototype,"geometry",void 0),(0,i.Cg)([(0,f.MZ)({json:{read:{source:"attributes.LastStopID"}}})],$e.prototype,"lastStopId",void 0),(0,i.Cg)([(0,f.MZ)()],$e.prototype,"messages",void 0),(0,i.Cg)([(0,f.MZ)({json:{read:{source:"attributes.Name"}}})],$e.prototype,"name",void 0),(0,i.Cg)([(0,f.MZ)({json:{read:{source:"attributes.ObjectID"}}})],$e.prototype,"objectId",void 0),(0,i.Cg)([(0,f.MZ)({type:n.A})],$e.prototype,"popupTemplate",void 0),(0,i.Cg)([(0,f.MZ)({type:Date})],$e.prototype,"startTime",void 0),(0,i.Cg)([(0,H.w)("startTime",["attributes.StartTimeUTC"])],$e.prototype,"readStartTime",null),(0,i.Cg)([(0,f.MZ)()],$e.prototype,"startTimeOffset",void 0),(0,i.Cg)([(0,H.w)("startTimeOffset",["attributes.StartTime","attributes.StartTimeUTC"])],$e.prototype,"readStartTimeOffset",null),(0,i.Cg)([(0,f.MZ)({json:{read:{source:"attributes.StopCount"}}})],$e.prototype,"stopCount",void 0),(0,i.Cg)([(0,f.MZ)({types:F.Es})],$e.prototype,"symbol",void 0),(0,i.Cg)([(0,f.MZ)()],$e.prototype,"totalCosts",void 0),(0,i.Cg)([(0,H.w)("totalCosts",["attributes"])],$e.prototype,"readTotalCosts",null),(0,i.Cg)([(0,f.MZ)()],$e.prototype,"totalDistance",void 0),(0,i.Cg)([(0,f.MZ)()],$e.prototype,"totalDuration",void 0),(0,i.Cg)([(0,f.MZ)()],$e.prototype,"totalLateDuration",void 0),(0,i.Cg)([(0,f.MZ)()],$e.prototype,"totalViolations",void 0),(0,i.Cg)([(0,H.w)("totalViolations",["attributes"])],$e.prototype,"readTotalViolations",null),(0,i.Cg)([(0,f.MZ)()],$e.prototype,"totalWait",void 0),(0,i.Cg)([(0,H.w)("totalWait",["attributes"])],$e.prototype,"readTotalWait",null),(0,i.Cg)([(0,f.MZ)()],$e.prototype,"totalWaitDuration",void 0),(0,i.Cg)([(0,f.MZ)({readOnly:!0,json:{read:!1}})],$e.prototype,"type",void 0),(0,i.Cg)([(0,f.MZ)()],$e.prototype,"version",void 0),$e=qe=(0,i.Cg)([(0,f.$K)("esri.rest.support.RouteInfo")],$e);var We=r(78888);const Ve={type:String,json:{read:{source:"token"},write:{target:"token"}}};var Ke=r(65864),ze=r(50498);let He=class extends((0,z.OU)(D.o)){constructor(e){super(e),this.doNotLocateOnRestrictedElements=null,this.geometry=null,this.geometryType=null,this.name=null,this.spatialRelationship=null,this.type="layer",this.where=null}};(0,i.Cg)([(0,f.MZ)({type:Boolean,json:{write:!0}})],He.prototype,"doNotLocateOnRestrictedElements",void 0),(0,i.Cg)([(0,f.MZ)({types:ze.yR,json:{read:Ke.rS,write:!0}})],He.prototype,"geometry",void 0),(0,i.Cg)([(0,q.e)(G.Vj)],He.prototype,"geometryType",void 0),(0,i.Cg)([(0,f.MZ)({type:String,json:{name:"layerName",write:!0}})],He.prototype,"name",void 0),(0,i.Cg)([(0,q.e)(G.vS,{name:"spatialRel"})],He.prototype,"spatialRelationship",void 0),(0,i.Cg)([(0,f.MZ)({type:String,json:{write:!0}})],He.prototype,"type",void 0),(0,i.Cg)([(0,f.MZ)({type:String,json:{write:!0}})],He.prototype,"where",void 0),He=(0,i.Cg)([(0,f.$K)("esri.rest.support.DataLayer")],He);var Ye=r(10107),Qe=r(64108);let Xe=class extends((0,z.OU)(D.o)){constructor(e){super(e),this.name=null,this.where=null}};(0,i.Cg)([(0,Ye.MZ)({json:{write:!0}})],Xe.prototype,"name",void 0),(0,i.Cg)([(0,Ye.MZ)({json:{write:!0}})],Xe.prototype,"where",void 0),Xe=(0,i.Cg)([(0,Qe.$)("esri.rest.support.LocateSettingSource")],Xe);const et=Xe;let tt=class extends((0,z.OU)(D.o)){constructor(e){super(e),this.allowAutoRelocate=null,this.sources=null}};(0,i.Cg)([(0,Ye.MZ)({type:Boolean,json:{write:!0}})],tt.prototype,"allowAutoRelocate",void 0),(0,i.Cg)([(0,Ye.MZ)({type:[et],json:{write:!0}})],tt.prototype,"sources",void 0),tt=(0,i.Cg)([(0,Qe.$)("esri.rest.support.LocateSettingBase")],tt);const rt=tt;let it=class extends rt{constructor(e){super(e),this.tolerance=null,this.toleranceUnits=null}};(0,i.Cg)([(0,Ye.MZ)({type:Number,json:{write:!0}})],it.prototype,"tolerance",void 0),(0,i.Cg)([(0,q.e)(G.Y8)],it.prototype,"toleranceUnits",void 0),it=(0,i.Cg)([(0,Qe.$)("esri.rest.support.LocateSetting")],it);const ot=it;let st=class extends((0,z.OU)(D.o)){constructor(e){super(e),this.stops=null,this.pointBarriers=null,this.polylineBarriers=null,this.polygonBarriers=null}};(0,i.Cg)([(0,Ye.MZ)({type:ot,json:{write:!0}})],st.prototype,"stops",void 0),(0,i.Cg)([(0,Ye.MZ)({type:ot,json:{name:"barriers",write:!0}})],st.prototype,"pointBarriers",void 0),(0,i.Cg)([(0,Ye.MZ)({type:rt,json:{write:!0}})],st.prototype,"polylineBarriers",void 0),(0,i.Cg)([(0,Ye.MZ)({type:rt,json:{write:!0}})],st.prototype,"polygonBarriers",void 0),st=(0,i.Cg)([(0,Qe.$)("esri.rest.support.LocateSettingsOverrides")],st);const nt=st;let lt=class extends((0,z.OU)(D.o)){constructor(e){super(e),this.default=null,this.overrides=null}};(0,i.Cg)([(0,Ye.MZ)({type:ot,json:{write:!0}})],lt.prototype,"default",void 0),(0,i.Cg)([(0,Ye.MZ)({type:nt,json:{write:!0}})],lt.prototype,"overrides",void 0),lt=(0,i.Cg)([(0,Qe.$)("esri.rest.support.LocateSettings")],lt);const at=lt;var ut;let pt=class extends pe.A{static{ut=this}constructor(e){super(e),this.doNotLocateOnRestrictedElements=null}clone(){return new ut({doNotLocateOnRestrictedElements:this.doNotLocateOnRestrictedElements,...this.cloneProperties()})}};(0,i.Cg)([(0,f.MZ)({type:Boolean,json:{write:!0}})],pt.prototype,"doNotLocateOnRestrictedElements",void 0),pt=ut=(0,i.Cg)([(0,f.$K)("esri.rest.support.NetworkFeatureSet")],pt);let ct=class extends((0,z.OU)(D.o)){constructor(e){super(e),this.doNotLocateOnRestrictedElements=null,this.url=null}};var dt;(0,i.Cg)([(0,f.MZ)({type:Boolean,json:{write:!0}})],ct.prototype,"doNotLocateOnRestrictedElements",void 0),(0,i.Cg)([(0,f.MZ)({type:String,json:{write:!0}})],ct.prototype,"url",void 0),ct=(0,i.Cg)([(0,f.$K)("esri.rest.support.NetworkUrl")],ct);let yt=class extends((0,z.OU)(D.o)){static{dt=this}constructor(e){super(e),this.accumulateAttributes=null,this.apiKey=null,this.attributeParameterValues=null,this.checksum=null,this.directionsLanguage=null,this.directionsLengthUnits=null,this.directionsOutputType=null,this.directionsStyleName=null,this.directionsTimeAttribute=null,this.findBestSequence=null,this.geometryPrecision=null,this.geometryPrecisionM=null,this.geometryPrecisionZ=null,this.ignoreInvalidLocations=null,this.impedanceAttribute=null,this.locateSettings=null,this.outputGeometryPrecision=null,this.outputGeometryPrecisionUnits=null,this.outputLines="true-shape",this.outSpatialReference=null,this.overrides=null,this.pointBarriers=null,this.polygonBarriers=null,this.polylineBarriers=null,this.preserveFirstStop=null,this.preserveLastStop=null,this.preserveObjectID=null,this.restrictionAttributes=null,this.restrictUTurns=null,this.returnBarriers=!1,this.returnDirections=!1,this.returnEmptyResults=null,this.returnPolygonBarriers=!1,this.returnPolylineBarriers=!1,this.returnRoutes=!0,this.returnStops=!1,this.returnTraversedEdges=null,this.returnTraversedJunctions=null,this.returnTraversedTurns=null,this.returnZ=!0,this.startTime=null,this.startTimeIsUTC=!0,this.stops=null,this.timeWindowsAreUTC=null,this.travelMode=null,this.useHierarchy=null,this.useTimeWindows=null}static from(e){return(0,We.PZ)(dt,e)}readAccumulateAttributes(e){return null==e?null:e.map(e=>G.et.fromJSON(e))}writeAccumulateAttributes(e,t,r){e?.length&&(t[r]=e.map(e=>G.et.toJSON(e)))}writePointBarriers(e,t,r){mt(e,t,r)}writePolygonBarrier(e,t,r){mt(e,t,r)}writePolylineBarrier(e,t,r){mt(e,t,r)}readRestrictionAttributes(e){return null==e?null:e.map(e=>G.OC.fromJSON(e))}writeRestrictionAttributes(e,t,r){e?.length&&(t[r]=e.map(e=>G.OC.toJSON(e)))}readStartTime(e,t){let{startTime:r}=t;return null==r?null:"now"===r?"now":new Date(r)}writeStartTime(e,t){null!=e&&(t.startTime="now"===e?"now":e.getTime())}readStops(e,t){return function(e){return function(e){return e&&"type"in e}(e)?He.fromJSON(e):function(e){return e&&"url"in e}(e)?ct.fromJSON(e):function(e){return e&&"features"in e&&"doNotLocateOnRestrictedElements"in e}(e)?pt.fromJSON(e):function(e){return e&&"features"in e}(e)?pe.A.fromJSON(e):null}(t.stops)}writeStops(e,t,r){mt(e,t,r)}};function mt(e,t,r){null!=e&&(t[r]=a.A.isCollection(e)?{features:e.toArray().map(e=>e.toJSON())}:e.toJSON())}var ht;(0,i.Cg)([(0,f.MZ)({type:[String],json:{name:"accumulateAttributeNames",write:!0}})],yt.prototype,"accumulateAttributes",void 0),(0,i.Cg)([(0,H.w)("accumulateAttributes")],yt.prototype,"readAccumulateAttributes",null),(0,i.Cg)([(0,Y.K)("accumulateAttributes")],yt.prototype,"writeAccumulateAttributes",null),(0,i.Cg)([(0,f.MZ)(Ve)],yt.prototype,"apiKey",void 0),(0,i.Cg)([(0,f.MZ)({json:{write:!0}})],yt.prototype,"attributeParameterValues",void 0),(0,i.Cg)([(0,f.MZ)({type:String,json:{write:!0}})],yt.prototype,"checksum",void 0),(0,i.Cg)([(0,f.MZ)({type:String,json:{write:!0}})],yt.prototype,"directionsLanguage",void 0),(0,i.Cg)([(0,q.e)(G.Z7)],yt.prototype,"directionsLengthUnits",void 0),(0,i.Cg)([(0,q.e)(G.aJ)],yt.prototype,"directionsOutputType",void 0),(0,i.Cg)([(0,q.e)(G.$n)],yt.prototype,"directionsStyleName",void 0),(0,i.Cg)([(0,q.e)(G.Mm,{name:"directionsTimeAttributeName",ignoreUnknown:!1})],yt.prototype,"directionsTimeAttribute",void 0),(0,i.Cg)([(0,f.MZ)({type:Boolean,json:{write:!0}})],yt.prototype,"findBestSequence",void 0),(0,i.Cg)([(0,f.MZ)({type:Number,json:{write:!0}})],yt.prototype,"geometryPrecision",void 0),(0,i.Cg)([(0,f.MZ)({type:Number,json:{write:!0}})],yt.prototype,"geometryPrecisionM",void 0),(0,i.Cg)([(0,f.MZ)({type:Number,json:{write:!0}})],yt.prototype,"geometryPrecisionZ",void 0),(0,i.Cg)([(0,f.MZ)({type:Boolean,json:{write:!0}})],yt.prototype,"ignoreInvalidLocations",void 0),(0,i.Cg)([(0,q.e)(G.et,{name:"impedanceAttributeName",ignoreUnknown:!1})],yt.prototype,"impedanceAttribute",void 0),(0,i.Cg)([(0,f.MZ)({type:at,json:{write:!0}})],yt.prototype,"locateSettings",void 0),(0,i.Cg)([(0,f.MZ)({type:Number,json:{write:!0}})],yt.prototype,"outputGeometryPrecision",void 0),(0,i.Cg)([(0,q.e)(G.hY)],yt.prototype,"outputGeometryPrecisionUnits",void 0),(0,i.Cg)([(0,q.e)(G.Sr)],yt.prototype,"outputLines",void 0),(0,i.Cg)([(0,f.MZ)({type:T.A,json:{name:"outSR",write:!0}})],yt.prototype,"outSpatialReference",void 0),(0,i.Cg)([(0,f.MZ)({json:{write:!0}})],yt.prototype,"overrides",void 0),(0,i.Cg)([(0,f.MZ)({json:{name:"barriers",write:!0}})],yt.prototype,"pointBarriers",void 0),(0,i.Cg)([(0,Y.K)("pointBarriers")],yt.prototype,"writePointBarriers",null),(0,i.Cg)([(0,f.MZ)({json:{write:!0}})],yt.prototype,"polygonBarriers",void 0),(0,i.Cg)([(0,Y.K)("polygonBarriers")],yt.prototype,"writePolygonBarrier",null),(0,i.Cg)([(0,f.MZ)({json:{write:!0}})],yt.prototype,"polylineBarriers",void 0),(0,i.Cg)([(0,Y.K)("polylineBarriers")],yt.prototype,"writePolylineBarrier",null),(0,i.Cg)([(0,f.MZ)({type:Boolean,json:{write:!0}})],yt.prototype,"preserveFirstStop",void 0),(0,i.Cg)([(0,f.MZ)({type:Boolean,json:{write:!0}})],yt.prototype,"preserveLastStop",void 0),(0,i.Cg)([(0,f.MZ)({type:Boolean,json:{write:!0}})],yt.prototype,"preserveObjectID",void 0),(0,i.Cg)([(0,f.MZ)({type:[String],json:{name:"restrictionAttributeNames",write:!0}})],yt.prototype,"restrictionAttributes",void 0),(0,i.Cg)([(0,H.w)("restrictionAttributes")],yt.prototype,"readRestrictionAttributes",null),(0,i.Cg)([(0,Y.K)("restrictionAttributes")],yt.prototype,"writeRestrictionAttributes",null),(0,i.Cg)([(0,q.e)(G.hE)],yt.prototype,"restrictUTurns",void 0),(0,i.Cg)([(0,f.MZ)({type:Boolean,json:{write:!0}})],yt.prototype,"returnBarriers",void 0),(0,i.Cg)([(0,f.MZ)({type:Boolean,json:{write:!0}})],yt.prototype,"returnDirections",void 0),(0,i.Cg)([(0,f.MZ)({type:Boolean,json:{write:!0}})],yt.prototype,"returnEmptyResults",void 0),(0,i.Cg)([(0,f.MZ)({type:Boolean,json:{write:!0}})],yt.prototype,"returnPolygonBarriers",void 0),(0,i.Cg)([(0,f.MZ)({type:Boolean,json:{write:!0}})],yt.prototype,"returnPolylineBarriers",void 0),(0,i.Cg)([(0,f.MZ)({type:Boolean,json:{write:!0}})],yt.prototype,"returnRoutes",void 0),(0,i.Cg)([(0,f.MZ)({type:Boolean,json:{write:!0}})],yt.prototype,"returnStops",void 0),(0,i.Cg)([(0,f.MZ)({type:Boolean,json:{write:!0}})],yt.prototype,"returnTraversedEdges",void 0),(0,i.Cg)([(0,f.MZ)({type:Boolean,json:{write:!0}})],yt.prototype,"returnTraversedJunctions",void 0),(0,i.Cg)([(0,f.MZ)({type:Boolean,json:{write:!0}})],yt.prototype,"returnTraversedTurns",void 0),(0,i.Cg)([(0,f.MZ)({type:Boolean,json:{write:!0}})],yt.prototype,"returnZ",void 0),(0,i.Cg)([(0,f.MZ)({json:{write:!0}})],yt.prototype,"startTime",void 0),(0,i.Cg)([(0,H.w)("startTime")],yt.prototype,"readStartTime",null),(0,i.Cg)([(0,Y.K)("startTime")],yt.prototype,"writeStartTime",null),(0,i.Cg)([(0,f.MZ)({type:Boolean,json:{write:!0}})],yt.prototype,"startTimeIsUTC",void 0),(0,i.Cg)([(0,f.MZ)({json:{write:!0}})],yt.prototype,"stops",void 0),(0,i.Cg)([(0,H.w)("stops")],yt.prototype,"readStops",null),(0,i.Cg)([(0,Y.K)("stops")],yt.prototype,"writeStops",null),(0,i.Cg)([(0,f.MZ)({type:Boolean,json:{write:!0}})],yt.prototype,"timeWindowsAreUTC",void 0),(0,i.Cg)([(0,f.MZ)({type:Q,json:{write:!0}})],yt.prototype,"travelMode",void 0),(0,i.Cg)([(0,f.MZ)({type:Boolean,json:{write:!0}})],yt.prototype,"useHierarchy",void 0),(0,i.Cg)([(0,f.MZ)({type:Boolean,json:{write:!0}})],yt.prototype,"useTimeWindows",void 0),yt=dt=(0,i.Cg)([(0,f.$K)("esri.rest.support.RouteParameters")],yt);let gt=class extends((0,z.OU)(D.o)){static{ht=this}constructor(e){super(e),this.arriveCurbApproach=null,this.arriveTime=null,this.arriveTimeOffset=null,this.bearing=null,this.bearingTol=null,this.cumulativeCosts=null,this.cumulativeDistance=null,this.cumulativeDuration=null,this.curbApproach=null,this.departCurbApproach=null,this.departTime=null,this.departTimeOffset=null,this.distanceToNetworkInMeters=null,this.lateDuration=null,this.locationType=null,this.name=null,this.navLatency=null,this.objectId=null,this.popupTemplate=null,this.positionAlong=null,this.routeName=null,this.serviceCosts=null,this.serviceDistance=null,this.serviceDuration=null,this.sequence=null,this.sideOfEdge=null,this.snapX=null,this.snapY=null,this.snapZ=null,this.sourceId=null,this.sourceOid=null,this.status=null,this.symbol=null,this.timeWindowEnd=null,this.timeWindowEndOffset=null,this.timeWindowStart=null,this.timeWindowStartOffset=null,this.type="stop",this.violations=null,this.waitDuration=null,this.wait=null}readArriveTimeOffset(e,t){return ae(t.attributes.ArriveTime,t.attributes.ArriveTimeUTC)}readCumulativeCosts(e,t){return oe(t.attributes,"Cumul_")}readDepartTimeOffset(e,t){return ae(t.attributes.DepartTime,t.attributes.DepartTimeUTC)}set geometry(e){this._get("geometry")&&(this._set("positionAlong",null),this._set("sideOfEdge",null),this._set("sourceId",null),this._set("sourceOid",null),this._set("status",null)),this._set("geometry",e)}readServiceCosts(e,t){return oe(t.attributes,"Attr_")}writeServiceCosts(e,t){se(e,t,"Attr_")}writeTimeWindowEnd(e,t){null!=e&&(t.attributes||={},t.attributes.TimeWindowEnd=e.getTime())}writeTimeWindowStart(e,t){null!=e&&(t.attributes||={},t.attributes.TimeWindowStart=e.getTime())}readViolations(e,t){return oe(t.attributes,"Violation_")}readWait(e,t){return oe(t.attributes,"Wait_")}static{this.fields=[{name:"ObjectID",alias:"ObjectID",type:"esriFieldTypeOID",editable:!1,nullable:!1},{name:"ArrivalCurbApproach",alias:"Arrival Curb Approach",type:"esriFieldTypeInteger",editable:!0,nullable:!0},{name:"ArrivalTime",alias:"Arrival Time",type:"esriFieldTypeDate",editable:!0,nullable:!0,length:36},{name:"ArrivalUTCOffset",alias:"Arrival Time Offset",type:"esriFieldTypeInteger",editable:!0,nullable:!0},{name:"CumulativeCosts",alias:"Cumulative Costs",type:"esriFieldTypeString",editable:!0,nullable:!0,length:1048576},{name:"CumulativeMeters",alias:"Cumulative Meters",type:"esriFieldTypeDouble",editable:!0,nullable:!0},{name:"CumulativeMinutes",alias:"Cumulative Minutes",type:"esriFieldTypeDouble",editable:!0,nullable:!0},{name:"CurbApproach",alias:"Curb Approach",type:"esriFieldTypeInteger",editable:!0,nullable:!0},{name:"DepartureCurbApproach",alias:"Departure Curb Approach",type:"esriFieldTypeInteger",editable:!0,nullable:!0},{name:"DepartureTime",alias:"Departure Time",type:"esriFieldTypeDate",editable:!0,nullable:!0,length:36},{name:"DepartureUTCOffset",alias:"Departure Time Offset",type:"esriFieldTypeInteger",editable:!0,nullable:!0},{name:"LateMinutes",alias:"Minutes Late",type:"esriFieldTypeDouble",editable:!0,nullable:!0},{name:"LocationType",alias:"Location Type",type:"esriFieldTypeInteger",editable:!0,nullable:!0},{name:"Name",alias:"Name",type:"esriFieldTypeString",editable:!0,nullable:!0,length:255},{name:"RouteName",alias:"Route Name",type:"esriFieldTypeString",editable:!0,nullable:!0,length:255},{name:"Sequence",alias:"Sequence",type:"esriFieldTypeInteger",editable:!0,nullable:!0},{name:"ServiceCosts",alias:"Service Costs",type:"esriFieldTypeString",editable:!0,nullable:!0,length:1048576},{name:"ServiceMeters",alias:"Service Meters",type:"esriFieldTypeDouble",editable:!0,nullable:!0},{name:"ServiceMinutes",alias:"Service Minutes",type:"esriFieldTypeDouble",editable:!0,nullable:!0},{name:"Status",alias:"Status",type:"esriFieldTypeInteger",editable:!0,nullable:!0},{name:"TimeWindowEnd",alias:"Time Window End",type:"esriFieldTypeDate",editable:!0,nullable:!0,length:36},{name:"TimeWindowEndUTCOffset",alias:"Time Window End Offset",type:"esriFieldTypeInteger",editable:!0,nullable:!0},{name:"TimeWindowStart",alias:"Time Window Start",type:"esriFieldTypeDate",editable:!0,nullable:!0,length:36},{name:"TimeWindowStartUTCOffset",alias:"Time Window Start Offset",type:"esriFieldTypeInteger",editable:!0,nullable:!0},{name:"WaitMinutes",alias:"Minutes Wait",type:"esriFieldTypeDouble",editable:!0,nullable:!0}]}static fromGraphic(e){return new ht({arriveCurbApproach:null==e.attributes.ArrivalCurbApproach?null:G.JJ.fromJSON(e.attributes.ArrivalCurbApproach),arriveTime:null==e.attributes.ArrivalTime?null:new Date(e.attributes.ArrivalTime),arriveTimeOffset:e.attributes.ArrivalUTCOffset,cumulativeCosts:null==e.attributes.CumulativeCosts?null:ne(JSON.parse(e.attributes.CumulativeCosts)),cumulativeDistance:e.attributes.CumulativeMeters??null,cumulativeDuration:e.attributes.CumulativeMinutes??null,curbApproach:null==e.attributes.CurbApproach?null:G.JJ.fromJSON(e.attributes.CurbApproach),departCurbApproach:null==e.attributes.DepartureCurbApproach?null:G.JJ.fromJSON(e.attributes.DepartureCurbApproach),departTime:null==e.attributes.DepartureTime?null:new Date(e.attributes.DepartureTime),departTimeOffset:e.attributes.DepartureUTCOffset??null,geometry:e.geometry,lateDuration:e.attributes.LateMinutes??null,locationType:null==e.attributes.LocationType?null:G.EM.fromJSON(e.attributes.LocationType),name:e.attributes.Name,objectId:e.attributes.ObjectID??e.attributes.__OBJECTID,popupTemplate:e.popupTemplate,routeName:e.attributes.RouteName,sequence:e.attributes.Sequence??null,serviceCosts:null==e.attributes.ServiceCosts?null:ne(JSON.parse(e.attributes.ServiceCosts)),serviceDistance:e.attributes.ServiceMeters??null,serviceDuration:e.attributes.ServiceMinutes??null,status:null==e.attributes.Status?null:G.$r.fromJSON(e.attributes.Status),symbol:e.symbol,timeWindowEnd:null==e.attributes.TimeWindowEnd?null:new Date(e.attributes.TimeWindowEnd),timeWindowEndOffset:e.attributes.TimeWindowEndUTCOffset??null,timeWindowStart:null==e.attributes.TimeWindowStart?null:new Date(e.attributes.TimeWindowStart),timeWindowStartOffset:e.attributes.TimeWindowStartUTCOffset??null,waitDuration:e.attributes.WaitMinutes??null})}toGraphic(){let e={ObjectID:this.objectId,ArrivalCurbApproach:this.arriveCurbApproach?G.JJ.toJSON(this.arriveCurbApproach):null,ArrivalTime:this.arriveTime?.getTime()??null,ArrivalUTCOffset:this.arriveTimeOffset,CumulativeCosts:this.cumulativeCosts?JSON.stringify(le(this.cumulativeCosts)):null,CumulativeMeters:this.cumulativeDistance,CumulativeMinutes:this.cumulativeDuration,CurbApproach:this.curbApproach?G.JJ.toJSON(this.curbApproach):null,DepartureCurbApproach:this.departCurbApproach?G.JJ.toJSON(this.departCurbApproach):null,DepartureTime:this.departTime?.getTime()??null,DepartureUTCOffset:this.departTimeOffset,LateMinutes:this.lateDuration,LocationType:this.locationType?G.EM.toJSON(this.locationType):null,Name:this.name,RouteName:this.routeName,Sequence:this.sequence,ServiceCosts:this.serviceCosts?JSON.stringify(le(this.serviceCosts)):null,ServiceMeters:this.serviceDistance,ServiceMinutes:this.serviceDuration,Status:this.status?G.$r.toJSON(this.status):null,TimeWindowEnd:this.timeWindowEnd?.getTime()??null,TimeWindowEndUTCOffset:this.timeWindowEndOffset??this.arriveTimeOffset,TimeWindowStart:this.timeWindowStart?.getTime()??null,TimeWindowStartUTCOffset:this.timeWindowStartOffset??this.arriveTimeOffset,WaitMinutes:this.waitDuration};return new s.A({geometry:this.geometry,attributes:e,symbol:this.symbol,popupTemplate:this.popupTemplate})}};function ft(e){if(!e.length)return;let t=e.toArray(),r=t.map(({objectId:e})=>e).filter(e=>null!=e),i=Math.max(...r,0);for(let e of t)e.objectId??=++i}function bt(e,t){return e.length===t.length&&vt(e)&&vt(t)}function vt(e){return e.every(({objectId:e})=>null!=e)}function Ct(e,t){return!!e.length||!!t.length}function wt(e){return e.length?e:null}function Tt(e){switch(e){case"esriGeometryPoint":return{type:"esriSMS",style:"esriSMSCircle",size:12,color:[0,0,0,0],outline:Tt("esriGeometryPolyline")};case"esriGeometryPolyline":return{type:"esriSLS",style:"esriSLSSolid",width:1,color:[0,0,0,0]};case"esriGeometryPolygon":return{type:"esriSFS",style:"esriSFSNull",outline:Tt("esriGeometryPolyline")}}}function St(e){return"layers"in e}async function Mt(e){let t=T.A.WGS84;return await(0,w.initializeProjection)(e.spatialReference,t),(0,w.project)(e,t)}function At(e,t){if(t&&e?.length&&!e.every(({symbol:e})=>!!e))for(let r of e)r.symbol=t}function Nt(e,t){switch(t){case"seconds":return e/60;case"hours":return 60*e;case"days":return 60*e*24;default:return e}}function Ot(e,t){return"decimal-degrees"===t||"points"===t||"unknown"===t?e:(0,h.oU)(e,t,"meters")}(0,i.Cg)([(0,f.MZ)({type:G.JJ.apiValues,json:{read:{source:"attributes.ArrivalCurbApproach",reader:G.JJ.read}}})],gt.prototype,"arriveCurbApproach",void 0),(0,i.Cg)([(0,f.MZ)({type:Date,json:{read:{source:"attributes.ArriveTimeUTC"}}})],gt.prototype,"arriveTime",void 0),(0,i.Cg)([(0,f.MZ)()],gt.prototype,"arriveTimeOffset",void 0),(0,i.Cg)([(0,H.w)("arriveTimeOffset",["attributes.ArriveTime","attributes.ArriveTimeUTC"])],gt.prototype,"readArriveTimeOffset",null),(0,i.Cg)([(0,f.MZ)({json:{name:"attributes.Bearing",read:!1,write:!0}})],gt.prototype,"bearing",void 0),(0,i.Cg)([(0,f.MZ)({json:{name:"attributes.BearingTol",read:!1,write:!0}})],gt.prototype,"bearingTol",void 0),(0,i.Cg)([(0,f.MZ)()],gt.prototype,"cumulativeCosts",void 0),(0,i.Cg)([(0,H.w)("cumulativeCosts",["attributes"])],gt.prototype,"readCumulativeCosts",null),(0,i.Cg)([(0,f.MZ)()],gt.prototype,"cumulativeDistance",void 0),(0,i.Cg)([(0,f.MZ)()],gt.prototype,"cumulativeDuration",void 0),(0,i.Cg)([(0,f.MZ)({type:G.JJ.apiValues,json:{name:"attributes.CurbApproach",read:{reader:G.JJ.read},write:{writer:G.JJ.write}}})],gt.prototype,"curbApproach",void 0),(0,i.Cg)([(0,f.MZ)({type:G.JJ.apiValues,json:{read:{source:"attributes.DepartCurbApproach",reader:G.JJ.read}}})],gt.prototype,"departCurbApproach",void 0),(0,i.Cg)([(0,f.MZ)({type:Date,json:{read:{source:"attributes.DepartTimeUTC"}}})],gt.prototype,"departTime",void 0),(0,i.Cg)([(0,f.MZ)()],gt.prototype,"departTimeOffset",void 0),(0,i.Cg)([(0,H.w)("departTimeOffset",["attributes.DepartTime","attributes.DepartTimeUTC"])],gt.prototype,"readDepartTimeOffset",null),(0,i.Cg)([(0,f.MZ)({json:{read:{source:"attributes.DistanceToNetworkInMeters"}}})],gt.prototype,"distanceToNetworkInMeters",void 0),(0,i.Cg)([(0,f.MZ)({type:fe.A,json:{write:!0},value:null})],gt.prototype,"geometry",null),(0,i.Cg)([(0,f.MZ)()],gt.prototype,"lateDuration",void 0),(0,i.Cg)([(0,f.MZ)({type:G.EM.apiValues,json:{name:"attributes.LocationType",read:{reader:G.EM.read},write:{writer:G.EM.write}}})],gt.prototype,"locationType",void 0),(0,i.Cg)([(0,f.MZ)({json:{name:"attributes.Name"}})],gt.prototype,"name",void 0),(0,i.Cg)([(0,f.MZ)({json:{name:"attributes.NavLatency",read:!1,write:!0}})],gt.prototype,"navLatency",void 0),(0,i.Cg)([(0,f.MZ)({json:{name:"attributes.ObjectID"}})],gt.prototype,"objectId",void 0),(0,i.Cg)([(0,f.MZ)({type:n.A})],gt.prototype,"popupTemplate",void 0),(0,i.Cg)([(0,f.MZ)({json:{name:"attributes.PosAlong"}})],gt.prototype,"positionAlong",void 0),(0,i.Cg)([(0,f.MZ)({json:{name:"attributes.RouteName"}})],gt.prototype,"routeName",void 0),(0,i.Cg)([(0,f.MZ)()],gt.prototype,"serviceCosts",void 0),(0,i.Cg)([(0,H.w)("serviceCosts",["attributes"])],gt.prototype,"readServiceCosts",null),(0,i.Cg)([(0,Y.K)("serviceCosts")],gt.prototype,"writeServiceCosts",null),(0,i.Cg)([(0,f.MZ)()],gt.prototype,"serviceDistance",void 0),(0,i.Cg)([(0,f.MZ)()],gt.prototype,"serviceDuration",void 0),(0,i.Cg)([(0,f.MZ)({json:{name:"attributes.Sequence"}})],gt.prototype,"sequence",void 0),(0,i.Cg)([(0,f.MZ)({type:G.mt.apiValues,json:{name:"attributes.SideOfEdge",read:{reader:G.mt.read},write:{writer:G.mt.write}}})],gt.prototype,"sideOfEdge",void 0),(0,i.Cg)([(0,f.MZ)({json:{read:{source:"attributes.SnapX"}}})],gt.prototype,"snapX",void 0),(0,i.Cg)([(0,f.MZ)({json:{read:{source:"attributes.SnapY"}}})],gt.prototype,"snapY",void 0),(0,i.Cg)([(0,f.MZ)({json:{read:{source:"attributes.SnapZ"}}})],gt.prototype,"snapZ",void 0),(0,i.Cg)([(0,f.MZ)({json:{name:"attributes.SourceID"}})],gt.prototype,"sourceId",void 0),(0,i.Cg)([(0,f.MZ)({json:{name:"attributes.SourceOID"}})],gt.prototype,"sourceOid",void 0),(0,i.Cg)([(0,f.MZ)({type:G.$r.apiValues,json:{name:"attributes.Status",read:{reader:G.$r.read},write:{writer:G.$r.write}}})],gt.prototype,"status",void 0),(0,i.Cg)([(0,f.MZ)({types:F.Es})],gt.prototype,"symbol",void 0),(0,i.Cg)([(0,f.MZ)({type:Date,json:{name:"attributes.TimeWindowEnd"}})],gt.prototype,"timeWindowEnd",void 0),(0,i.Cg)([(0,Y.K)("timeWindowEnd")],gt.prototype,"writeTimeWindowEnd",null),(0,i.Cg)([(0,f.MZ)()],gt.prototype,"timeWindowEndOffset",void 0),(0,i.Cg)([(0,f.MZ)({type:Date,json:{name:"attributes.TimeWindowStart"}})],gt.prototype,"timeWindowStart",void 0),(0,i.Cg)([(0,Y.K)("timeWindowStart")],gt.prototype,"writeTimeWindowStart",null),(0,i.Cg)([(0,f.MZ)()],gt.prototype,"timeWindowStartOffset",void 0),(0,i.Cg)([(0,f.MZ)({readOnly:!0,json:{read:!1}})],gt.prototype,"type",void 0),(0,i.Cg)([(0,f.MZ)()],gt.prototype,"violations",void 0),(0,i.Cg)([(0,H.w)("violations",["attributes"])],gt.prototype,"readViolations",null),(0,i.Cg)([(0,f.MZ)()],gt.prototype,"waitDuration",void 0),(0,i.Cg)([(0,f.MZ)()],gt.prototype,"wait",void 0),(0,i.Cg)([(0,H.w)("wait",["attributes"])],gt.prototype,"readWait",null),gt=ht=(0,i.Cg)([(0,f.$K)("esri.rest.support.Stop")],gt);const It=a.A.ofType(Be),Zt=a.A.ofType(xe),Dt=a.A.ofType(Le),jt=a.A.ofType(Je),Ft=a.A.ofType(ke),Bt=a.A.ofType(gt);let Pt=class extends((0,A.dM)((0,I.j)((0,N.q)((0,O.A)((0,c.M)(M.A)))))){constructor(e){super(e),this._cachedServiceDescription=null,this._featureCollection=null,this._type="Feature Collection",this.checksum=null,this.defaultSymbols=new R,this.directionLines=null,this.directionPoints=null,this.featureCollectionType="route",this.legendEnabled=!1,this.maxScale=0,this.minScale=0,this.pointBarriers=new Dt,this.polygonBarriers=new jt,this.polylineBarriers=new Ft,this.routeInfo=null,this.spatialReference=T.A.WGS84,this.stops=new Bt,this.type="route"}initialize(){let e=()=>{this._setStopSymbol(this.stops)},t=()=>{At(this.pointBarriers,this.defaultSymbols.pointBarriers)},r=()=>{At(this.polylineBarriers,this.defaultSymbols.polylineBarriers)},i=()=>{At(this.polygonBarriers,this.defaultSymbols.polygonBarriers)};this.addHandles([(0,m.on)(()=>this.stops,"change",e,{sync:!0,onListenerAdd:e}),(0,m.on)(()=>this.pointBarriers,"change",t,{sync:!0,onListenerAdd:t}),(0,m.on)(()=>this.polylineBarriers,"change",r,{sync:!0,onListenerAdd:r}),(0,m.on)(()=>this.polygonBarriers,"change",i,{sync:!0,onListenerAdd:i})])}writeFeatureCollectionWebmap(e,t,r,i){let o=[this._writePolygonBarriers(),this._writePolylineBarriers(),this._writePointBarriers(),this._writeRouteInfo(),this._writeDirectionLines(),this._writeDirectionPoints(),this._writeStops()].filter(e=>!!e),s=o.map((e,t)=>t),n="web-map"===i.origin?"featureCollection.layers":"layers";(0,d.sM)(n,o,t),t.opacity=this.opacity,t.visibility=this.visible,t.visibleLayers=s}readDirectionLines(e,t){return this._getNetworkFeatures(t,"DirectionLines",e=>Be.fromGraphic(e))}readDirectionPoints(e,t){return this._getNetworkFeatures(t,"DirectionPoints",e=>xe.fromGraphic(e))}get fullExtent(){let e=new v.A({xmin:-180,ymin:-90,xmax:180,ymax:90,spatialReference:T.A.WGS84});if(null!=this.routeInfo?.geometry)return this.routeInfo.geometry.extent??e;if(null==this.stops)return e;let t=this.stops.filter(e=>null!=e.geometry);if(t.length<2)return e;let{spatialReference:r}=t.at(0).geometry;if(null==r)return e;let i=t.toArray().map(e=>{let t=e.geometry;return[t.x,t.y]});return new C.A({points:i,spatialReference:r}).extent}readMaxScale(e,t){return((St(t)?t.layers:t.featureCollection?.layers)?.find(e=>null!=e.layerDefinition.maxScale))?.layerDefinition.maxScale??0}readMinScale(e,t){return((St(t)?t.layers:t.featureCollection?.layers)?.find(e=>null!=e.layerDefinition.minScale))?.layerDefinition.minScale??0}readPointBarriers(e,t){return this._getNetworkFeatures(t,"Barriers",e=>Le.fromGraphic(e))}readPolygonBarriers(e,t){return this._getNetworkFeatures(t,"PolygonBarriers",e=>Je.fromGraphic(e))}readPolylineBarriers(e,t){return this._getNetworkFeatures(t,"PolylineBarriers",e=>ke.fromGraphic(e))}readRouteInfo(e,t){return this._getNetworkFeatures(t,"RouteInfo",e=>$e.fromGraphic(e)).at(0)??null}readSpatialReference(e,t){let r=St(t)?t.layers:t.featureCollection?.layers;if(!r?.length)return T.A.WGS84;let{layerDefinition:i,featureSet:o}=r[0],s=o.features[0]?.geometry?.spatialReference??o.spatialReference??i.spatialReference??i.extent.spatialReference??S.KK;return T.A.fromJSON(s)}readStops(e,t){return this._getNetworkFeatures(t,"Stops",e=>gt.fromGraphic(e),e=>this._setStopSymbol(e))}get title(){return this.routeInfo?.name??"Route"}set title(e){this._overrideIfSome("title",e)}get url(){return o.A.routeServiceUrl}set url(e){null==e?this._set("url",o.A.routeServiceUrl):this._set("url",(0,Z.Jf)(e,p.A.getLogger(this)))}load(e){return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Feature Collection"]},e)),Promise.resolve(this)}removeAll(){this.removeResult(),this.pointBarriers.removeAll(),this.polygonBarriers.removeAll(),this.polylineBarriers.removeAll(),this.stops.removeAll()}removeResult(){null!=this.directionLines&&(this.directionLines.removeAll(),this._set("directionLines",null)),null!=this.directionPoints&&(this.directionPoints.removeAll(),this._set("directionPoints",null)),null!=this.routeInfo&&this._set("routeInfo",null)}async save(){await this.load();let{fullExtent:e,portalItem:t}=this;if(!t)throw new u.A("routelayer:portal-item-not-set","save() requires to the layer to have a portal item");if(!t.id)throw new u.A("routelayer:portal-item-not-saved","Please use saveAs() first to save the routelayer");if("Feature Collection"!==t.type)throw new u.A("routelayer:portal-item-wrong-type",'Portal item needs to have type "Feature Collection"');if(!this.routeInfo)throw new u.A("routelayer:route-unsolved","save() requires a solved route");let{portal:r}=t;await r.signIn(),r.user||await t.reload();let{itemUrl:i,itemControl:o}=t;if("admin"!==o&&"update"!==o)throw new u.A("routelayer:insufficient-permissions","To save this layer, you need to be the owner or an administrator of your organization");let s={messages:[],origin:"portal-item",portal:r,url:i?(0,g.An)(i):void 0,writtenProperties:[]},n=this.write(void 0,s);return t.extent=await Mt(e),t.title=this.title,await t.update({data:n}),t}async saveAs(e,t={}){if(await this.load(),null==this.routeInfo)throw new u.A("routelayer:route-unsolved","saveAs() requires a solved route");let r=_.default.from(e).clone();r.extent??=await Mt(this.fullExtent),r.id=null,r.portal??=L.A.getDefault(),r.title??=this.title,r.type="Feature Collection",r.typeKeywords=["Data","Feature Collection",E.mm.MULTI_LAYER,"Route Layer"];let{portal:i}=r,o={messages:[],origin:"portal-item",portal:i,url:null,writtenProperties:[]};await i.signIn();let s=t?.folder,n=this.write(void 0,o);return await i.user.addItem({item:r,folder:s,data:n}),this.portalItem=r,(0,b.v)(o),o.portalItem=r,r}async solve(e,t){ft(this.stops),ft(this.pointBarriers),ft(this.polylineBarriers),ft(this.polygonBarriers);let r=e?.stops??this.stops,i=e?.pointBarriers??wt(this.pointBarriers),o=e?.polylineBarriers??wt(this.polylineBarriers),s=e?.polygonBarriers??wt(this.polygonBarriers);if(null==r)throw new u.A("routelayer:undefined-stops","the route layer must have stops defined in the route parameters.");if((function(e){return"esri.rest.support.FeatureSet"===e.declaredClass}(r)||function(e){return"esri.rest.support.NetworkFeatureSet"===e.declaredClass}(r))&&r.features.length<2||a.A.isCollection(r)&&r.length<2)throw new u.A("routelayer:insufficent-stops","the route layer must have two or more stops to solve a route.");if(a.A.isCollection(r))for(let e of r)e.routeName=null;let n=e?.apiKey,{checksum:l,url:p}=this,c=await this._getServiceDescription(p,n,t),d=e?.travelMode??c.defaultTravelMode,m=e?.accumulateAttributes??[];d&&(m.push(d.distanceAttributeName),d.timeAttributeName&&m.push(d.timeAttributeName));let h,g={accumulateAttributes:m,checksum:l,directionsOutputType:"featuresets",ignoreInvalidLocations:!0,pointBarriers:i,polylineBarriers:o,polygonBarriers:s,preserveObjectID:!0,returnBarriers:!!i,returnDirections:!0,returnPolygonBarriers:!!s,returnPolylineBarriers:!!o,returnRoutes:!0,returnStops:!0,stops:r},f=yt.from(e??{});f.set(g);try{h=await je(p,f,t)}catch(e){throw(0,y.zf)(e)?e:new u.A("routelayer:failed-route-request","the routing request failed",{error:e})}let b=this._toRouteLayerSolution(h);return this._isOverridden("title")||(this.title=b.routeInfo.name??"Route"),this._populatePortalFields(b,c,f),b}update(e){let{checksum:t,directionLines:r,directionPoints:i,pointBarriers:o,polygonBarriers:s,polylineBarriers:n,routeInfo:l,stops:a}=e;bt(a,this.stops)?function(e,t){for(let r of e){let e=t.find(e=>e.objectId===r.objectId);e&&(e.arriveCurbApproach=r.arriveCurbApproach,e.arriveTime=r.arriveTime,e.arriveTimeOffset=r.arriveTimeOffset,e.cumulativeCosts=r.cumulativeCosts,e.cumulativeDistance=r.cumulativeDistance,e.cumulativeDuration=r.cumulativeDuration,e.curbApproach=r.curbApproach,e.departCurbApproach=r.departCurbApproach,e.departTime=r.departTime,e.departTimeOffset=r.departTimeOffset,e.distanceToNetworkInMeters=r.distanceToNetworkInMeters,e.geometry=r.geometry,e.lateDuration=r.lateDuration,e.name=r.name,e.navLatency=r.navLatency,e.positionAlong=r.positionAlong,e.routeName=r.routeName,e.serviceCosts=r.serviceCosts,e.serviceDistance=r.serviceDistance,e.serviceDuration=r.serviceDuration,e.sequence=r.sequence,e.sideOfEdge=r.sideOfEdge,e.snapX=r.snapX,e.snapY=r.snapY,e.snapZ=r.snapZ,e.sourceId=r.sourceId,e.sourceOid=r.sourceOid,e.status=r.status,e.symbol=r.symbol,e.timeWindowEnd=r.timeWindowEnd,e.timeWindowStart=r.timeWindowStart,e.violations=r.violations,e.waitDuration=r.waitDuration,e.wait=r.wait)}}(a,this.stops):this.set({stops:a}),Ct(o,this.pointBarriers)&&(bt(o,this.pointBarriers)?function(e,t){for(let r of e){let e=t.find(e=>e.objectId===r.objectId);e&&(e.addedCost=r.addedCost,e.barrierType=r.barrierType,e.costs=r.costs,e.curbApproach=r.curbApproach,e.fullEdge=r.fullEdge,e.geometry=r.geometry,e.name=r.name,e.sideOfEdge=r.sideOfEdge,e.sourceId=r.sourceId,e.sourceOid=r.sourceOid,e.status=r.status,e.symbol=r.symbol)}}(o,this.pointBarriers):this.set({pointBarriers:o})),Ct(n,this.polylineBarriers)&&(bt(n,this.polylineBarriers)?function(e,t){for(let r of e){let e=t.find(e=>e.objectId===r.objectId);e&&(e.barrierType=r.barrierType,e.costs=r.costs,e.geometry=r.geometry,e.name=r.name,e.scaleFactor=r.scaleFactor,e.symbol=r.symbol)}}(n,this.polylineBarriers):this.set({polylineBarriers:n})),Ct(s,this.polygonBarriers)&&(bt(s,this.polygonBarriers)?function(e,t){for(let r of e){let e=t.find(e=>e.objectId===r.objectId);e&&(e.barrierType=r.barrierType,e.costs=r.costs,e.geometry=r.geometry,e.name=r.name,e.scaleFactor=r.scaleFactor,e.symbol=r.symbol)}}(s,this.polygonBarriers):this.set({polygonBarriers:s})),this.set({checksum:t}),this._set("directionLines",r),this._set("directionPoints",i),this._set("routeInfo",l),l.geometry&&(this.spatialReference=l.geometry.spatialReference)}_getNetworkFeatures(e,t,r,i){let o=(St(e)?e.layers:e.featureCollection?.layers)?.find(e=>e.layerDefinition.name===t);if(null==o)return new a.A;let{layerDefinition:l,popupInfo:u,featureSet:p}=o,c=l.drawingInfo.renderer,{features:d}=p,y=p.spatialReference??l.spatialReference??l.extent.spatialReference??S.KK,m=c&&(0,J.L)(c),h=T.A.fromJSON(y),g=d.map(e=>{let i=s.A.fromJSON(e);i.geometry&&e.geometry&&null==e.geometry.spatialReference&&(i.geometry.spatialReference=h);let o=r(i);return o.symbol??=m?.getSymbol(i)??this._getNetworkSymbol(t),o.popupTemplate??=u&&n.A.fromJSON(u),o});return i&&g.some(({symbol:e})=>!e)&&i(g),new a.A(g)}_getNetworkSymbol(e){switch(e){case"Barriers":return this.defaultSymbols.pointBarriers;case"DirectionPoints":return this.defaultSymbols.directionPoints;case"DirectionLines":return this.defaultSymbols.directionLines;case"PolylineBarriers":return this.defaultSymbols.polylineBarriers;case"PolygonBarriers":return this.defaultSymbols.polygonBarriers;case"RouteInfo":return this.defaultSymbols.routeInfo;case"Stops":return null}}async _getServiceDescription(e,t,r){if(null!=this._cachedServiceDescription&&this._cachedServiceDescription.url===e)return this._cachedServiceDescription.serviceDescription;let i=await te(e,t,r);return this._cachedServiceDescription={serviceDescription:i,url:e},i}_setStopSymbol(e){let t=a.A.isCollection(e)?e.toArray():e;if(!t||!t.length||!this.defaultSymbols.stops||t.every(({symbol:e})=>!!e))return;let{first:r,last:i,middle:o,unlocated:s,waypoint:n,break:u}=this.defaultSymbols.stops,p=t.map(({sequence:e})=>e).filter(l.Ru),c=t.length===p.length;if(!this.routeInfo&&!c||1===t.length)return void t.forEach((e,s)=>{switch(s){case 0:e.symbol=r;break;case t.length-1:e.symbol=i;break;default:e.symbol=o}});let d=Math.min(...p),y=Math.max(...p);for(let e of t)e.symbol=e.sequence===d?r:e.sequence===y?i:this.routeInfo&&"ok"!==e.status&&"not-located-on-closest"!==e.status?s:"waypoint"===e.locationType?n:"break"===e.locationType?u:o}_toRouteLayerSolution(e){let{checksum:t,routeResults:r}=e,i=r[0].stops?.map(e=>gt.fromJSON(e.toJSON()));this._setStopSymbol(i);let o=new Bt(i),s=new jt(e.polygonBarriers?.map(e=>Je.fromJSON(e.toJSON())));At(s,this.defaultSymbols.polygonBarriers);let n=new Ft(e.polylineBarriers?.map(e=>ke.fromJSON(e.toJSON())));At(n,this.defaultSymbols.polylineBarriers);let l=new Dt(e.pointBarriers?.map(e=>Le.fromJSON(e.toJSON())));At(l,this.defaultSymbols.pointBarriers);let a=r[0].route?.toJSON(),u=$e.fromJSON(a);u.symbol=this.defaultSymbols.routeInfo;let p=new Zt(r[0].directionPoints?.features.map(e=>xe.fromJSON(e.toJSON())));At(p,this.defaultSymbols.directionPoints);let c=new It(r[0].directionLines?.features.map(e=>Be.fromJSON(e.toJSON())));return At(c,this.defaultSymbols.directionLines),{checksum:t,directionLines:c,directionPoints:p,pointBarriers:l,polygonBarriers:s,polylineBarriers:n,routeInfo:u,stops:o}}_writeDirectionLines(){return this._writeNetworkFeatures(this.directionLines,this.defaultSymbols.directionLines,"esriGeometryPolyline",Be.fields,"DirectionLines","Direction Lines")}_writeDirectionPoints(){return this._writeNetworkFeatures(this.directionPoints,this.defaultSymbols.directionPoints,"esriGeometryPoint",xe.fields,"DirectionPoints","Direction Points")}_writeNetworkFeatures(e,t,r,i,o,s){if(!e?.length)return null;let n=this.spatialReference.toJSON(),{fullExtent:l,maxScale:a,minScale:u}=this;return{featureSet:{features:e.toArray().map(e=>function(e){let{attributes:t,geometry:r,popupTemplate:i,symbol:o}=e.toGraphic().toJSON();return{attributes:t,geometry:r,popupInfo:i,symbol:o}}(e)),geometryType:r,spatialReference:n},layerDefinition:{capabilities:"Query,Update,Editing",drawingInfo:{renderer:{type:"simple",symbol:t?.toJSON()??Tt(r)}},extent:l.toJSON(),fields:i,geometryType:r,hasM:!1,hasZ:!1,maxScale:a,minScale:u,name:o,objectIdField:"ObjectID",spatialReference:n,title:s,type:"Feature Layer",typeIdField:""}}}_writePointBarriers(){return this._writeNetworkFeatures(this.pointBarriers,this.defaultSymbols.pointBarriers,"esriGeometryPoint",Le.fields,"Barriers","Point Barriers")}_writePolygonBarriers(){return this._writeNetworkFeatures(this.polygonBarriers,this.defaultSymbols.polygonBarriers,"esriGeometryPolygon",Je.fields,"PolygonBarriers","Polygon Barriers")}_writePolylineBarriers(){return this._writeNetworkFeatures(this.polylineBarriers,this.defaultSymbols.polylineBarriers,"esriGeometryPolyline",ke.fields,"PolylineBarriers","Line Barriers")}_writeRouteInfo(){return this._writeNetworkFeatures(null==this.routeInfo?null:new a.A([this.routeInfo]),this.defaultSymbols.routeInfo,"esriGeometryPolyline",$e.fields,"RouteInfo","Route Details")}_writeStops(){let e=this._writeNetworkFeatures(this.stops,null,"esriGeometryPoint",gt.fields,"Stops","Stops");if(null==e)return null;let{stops:t}=this.defaultSymbols,r=t?.first?.toJSON(),i=t?.middle?.toJSON(),o=t?.last?.toJSON();return e.layerDefinition.drawingInfo.renderer={type:"uniqueValue",field1:"Sequence",defaultSymbol:i,uniqueValueInfos:[{value:"1",symbol:r,label:"First Stop"},{value:`${this.stops.length}`,symbol:o,label:"Last Stop"}]},e}_populatePortalFields(e,t,r){let i=(t.networkDataset?.networkAttributes)?.filter(({usageType:e})=>"cost"===e)??[],o=r.travelMode??t.defaultTravelMode;if(null==o)return void p.A.getLogger(this).warn("route-layer:missing-travel-mode","The routing service must have a default travel mode or one must be specified in the route parameter.");let{timeAttributeName:s,distanceAttributeName:n}=o,l=i.find(({name:e})=>e===s),a=i.find(({name:e})=>e===n),c=r.travelMode?.impedanceAttributeName??r.impedanceAttribute??t.impedance,d=l?.units,y=a?.units;if(!d||!y)throw new u.A("routelayer:unknown-impedance-units","the units of either the distance or time impedance are unknown");let m=r.directionsLanguage??t.directionsLanguage,h=r.accumulateAttributes??t.accumulateAttributeNames??[],g=new Set(i.filter(({name:e})=>e===s||e===n||e===c||null!=e&&h.includes(e)).map(({name:e})=>e)),f=e=>{for(let t in e)g.has(t)||delete e[t]};for(let t of e.pointBarriers)null!=t.costs&&(t.addedCost=t.costs[c]??0,f(t.costs));for(let t of e.polygonBarriers)null!=t.costs&&(t.scaleFactor=t.costs[c]??1,f(t.costs));for(let t of e.polylineBarriers)null!=t.costs&&(t.scaleFactor=t.costs[c]??1,f(t.costs));let{routeInfo:b}=e,{findBestSequence:v,preserveFirstStop:C,preserveLastStop:w,startTimeIsUTC:T,timeWindowsAreUTC:S}=r;b.analysisSettings=new Ge({accumulateAttributes:h,directionsLanguage:m,findBestSequence:v,preserveFirstStop:C,preserveLastStop:w,startTimeIsUTC:T,timeWindowsAreUTC:S,travelMode:o}),b.totalDuration=Nt(b.totalCosts?.[s]??0,d),b.totalDistance=Ot(b.totalCosts?.[n]??0,y),b.totalLateDuration=Nt(b.totalViolations?.[s]??0,d),b.totalWaitDuration=Nt(b.totalWait?.[s]??0,d),null!=b.totalCosts&&f(b.totalCosts),null!=b.totalViolations&&f(b.totalViolations),null!=b.totalWait&&f(b.totalWait);for(let t of e.stops)null!=t.serviceCosts&&(t.serviceDuration=Nt(t.serviceCosts[s]??0,d),t.serviceDistance=Ot(t.serviceCosts[n]??0,y),f(t.serviceCosts)),null!=t.cumulativeCosts&&(t.cumulativeDuration=Nt(t.cumulativeCosts[s]??0,d),t.cumulativeDistance=Ot(t.cumulativeCosts[n]??0,y),f(t.cumulativeCosts)),null!=t.violations&&(t.lateDuration=Nt(t.violations[s]??0,d),f(t.violations)),null!=t.wait&&(t.waitDuration=Nt(t.wait[s]??0,d),f(t.wait))}};(0,i.Cg)([(0,f.MZ)({readOnly:!0,json:{read:!1,origins:{"portal-item":{write:{allowNull:!0,ignoreOrigin:!0}},"web-map":{write:{overridePolicy(){return{allowNull:!0,ignoreOrigin:null==this.portalItem}}}}}}})],Pt.prototype,"_featureCollection",void 0),(0,i.Cg)([(0,Y.K)(["web-map","portal-item"],"_featureCollection")],Pt.prototype,"writeFeatureCollectionWebmap",null),(0,i.Cg)([(0,f.MZ)({readOnly:!0,json:{read:!1,origins:{"web-map":{write:{target:"type",overridePolicy(){return{ignoreOrigin:null!=this.portalItem}}}}}}})],Pt.prototype,"_type",void 0),(0,i.Cg)([(0,f.MZ)({type:String})],Pt.prototype,"checksum",void 0),(0,i.Cg)([(0,f.MZ)({nonNullable:!0,type:R})],Pt.prototype,"defaultSymbols",void 0),(0,i.Cg)([(0,f.MZ)({readOnly:!0})],Pt.prototype,"directionLines",void 0),(0,i.Cg)([(0,H.w)(["web-map","portal-item"],"directionLines",["layers","featureCollection.layers"])],Pt.prototype,"readDirectionLines",null),(0,i.Cg)([(0,f.MZ)({readOnly:!0})],Pt.prototype,"directionPoints",void 0),(0,i.Cg)([(0,H.w)(["web-map","portal-item"],"directionPoints",["layers","featureCollection.layers"])],Pt.prototype,"readDirectionPoints",null),(0,i.Cg)([(0,f.MZ)({readOnly:!0,json:{read:!1,origins:{"web-map":{write:{ignoreOrigin:!0}}}}})],Pt.prototype,"featureCollectionType",void 0),(0,i.Cg)([(0,f.MZ)({readOnly:!0})],Pt.prototype,"fullExtent",null),(0,i.Cg)([(0,f.MZ)({json:{origins:{"web-map":{name:"featureCollection.showLegend"}},write:!0}})],Pt.prototype,"legendEnabled",void 0),(0,i.Cg)([(0,f.MZ)({type:["show","hide"]})],Pt.prototype,"listMode",void 0),(0,i.Cg)([(0,f.MZ)({type:Number,nonNullable:!0,json:{write:!1}})],Pt.prototype,"maxScale",void 0),(0,i.Cg)([(0,H.w)(["web-map","portal-item"],"maxScale",["layers","featureCollection.layers"])],Pt.prototype,"readMaxScale",null),(0,i.Cg)([(0,f.MZ)({type:Number,nonNullable:!0,json:{write:!1}})],Pt.prototype,"minScale",void 0),(0,i.Cg)([(0,H.w)(["web-map","portal-item"],"minScale",["layers","featureCollection.layers"])],Pt.prototype,"readMinScale",null),(0,i.Cg)([(0,f.MZ)({type:["ArcGISFeatureLayer"],value:"ArcGISFeatureLayer"})],Pt.prototype,"operationalLayerType",void 0),(0,i.Cg)([(0,f.MZ)({nonNullable:!0,type:a.A.ofType(Le)})],Pt.prototype,"pointBarriers",void 0),(0,i.Cg)([(0,H.w)(["web-map","portal-item"],"pointBarriers",["layers","featureCollection.layers"])],Pt.prototype,"readPointBarriers",null),(0,i.Cg)([(0,f.MZ)({nonNullable:!0,type:a.A.ofType(Je)})],Pt.prototype,"polygonBarriers",void 0),(0,i.Cg)([(0,H.w)(["web-map","portal-item"],"polygonBarriers",["layers","featureCollection.layers"])],Pt.prototype,"readPolygonBarriers",null),(0,i.Cg)([(0,f.MZ)({nonNullable:!0,type:a.A.ofType(ke)})],Pt.prototype,"polylineBarriers",void 0),(0,i.Cg)([(0,H.w)(["web-map","portal-item"],"polylineBarriers",["layers","featureCollection.layers"])],Pt.prototype,"readPolylineBarriers",null),(0,i.Cg)([(0,f.MZ)({readOnly:!0})],Pt.prototype,"routeInfo",void 0),(0,i.Cg)([(0,H.w)(["web-map","portal-item"],"routeInfo",["layers","featureCollection.layers"])],Pt.prototype,"readRouteInfo",null),(0,i.Cg)([(0,f.MZ)({type:T.A})],Pt.prototype,"spatialReference",void 0),(0,i.Cg)([(0,H.w)(["web-map","portal-item"],"spatialReference",["layers","featureCollection.layers"])],Pt.prototype,"readSpatialReference",null),(0,i.Cg)([(0,f.MZ)({nonNullable:!0,type:a.A.ofType(gt)})],Pt.prototype,"stops",void 0),(0,i.Cg)([(0,H.w)(["web-map","portal-item"],"stops",["layers","featureCollection.layers"])],Pt.prototype,"readStops",null),(0,i.Cg)([(0,f.MZ)()],Pt.prototype,"title",null),(0,i.Cg)([(0,f.MZ)({readOnly:!0,json:{read:!1}})],Pt.prototype,"type",void 0),(0,i.Cg)([(0,f.MZ)()],Pt.prototype,"url",null),Pt=(0,i.Cg)([(0,f.$K)("esri.layers.RouteLayer")],Pt);const xt=Pt},76369(e,t,r){r.d(t,{LF:()=>T,M9:()=>S});var i=r(49186),o=r(93637),s=r(40876),n=r(59247),l=r(27865);class a extends SyntaxError{constructor(e,t,r,i){super(e),this.expected=t,this.found=r,this.location=i,this.name="SyntaxError"}format(e){let t="Error: "+this.message;if(this.location){let r=null,i=e.find(e=>e.source===this.location.source);i&&(r=i.text.split(/\r\n|\n|\r/g));let o=this.location.start,s=this.location.source&&"function"==typeof this.location.source.offset?this.location.source.offset(o):o,n=this.location.source+":"+s.line+":"+s.column;if(r){let e=this.location.end,i="".padEnd(s.line.toString().length," "),l=r[o.line-1],a=(o.line===e.line?e.column:l.length+1)-o.column||1;t+="\n --\x3e "+n+"\n"+i+" |\n"+s.line+" | "+l+"\n"+i+" | "+"".padEnd(o.column-1," ")+"".padEnd(a,"^")}else t+="\n at "+n}return t}static buildMessage(e,t){function r(e){return e.codePointAt(0).toString(16).toUpperCase()}let i=Object.prototype.hasOwnProperty.call(RegExp.prototype,"unicode")?RegExp("[\\p{C}\\p{Mn}\\p{Mc}]","gu"):null;function o(e,t){return function(e){return i?e.replace(i,e=>"\\u{"+r(e)+"}"):e}(e.replace(t,"\\$&").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,e=>"\\x0"+r(e)).replace(/[\x10-\x1F\x7F-\x9F]/g,e=>"\\x"+r(e)))}function s(e){return o(e,/[\\"]/g)}function n(e){return o(e,/[\\\]^-]/g)}let l={literal:e=>'"'+s(e.text)+'"',class(e){let t=e.parts.map(e=>Array.isArray(e)?n(e[0])+"-"+n(e[1]):n(e));return"["+(e.inverted?"^":"")+t.join("")+"]"+(e.unicode?"u":"")},any:()=>"any character",end:()=>"end of input",other:e=>e.description};function a(e){return l[e.type](e)}return"Expected "+function(e){let t=e.map(a);if(t.sort(),t.length>0){let e=1;for(let r=1;r<t.length;r++)t[r-1]!==t[r]&&(t[e]=t[r],e++);t.length=e}switch(t.length){case 1:return t[0];case 2:return t[0]+" or "+t[1];default:return t.slice(0,-1).join(", ")+", or "+t[t.length-1]}}(e)+" but "+function(e){return e?'"'+s(e)+'"':"end of input"}(t)+" found."}}function u(e){if(!e||0===e.length)return null;if("string"==typeof e){let t=p(e);return t&&0!==t.length?t:null}let t=e.map(e=>{if(!Number.isFinite(e.scale)||e.scale<=0)throw new i.A("effect:invalid-scale","scale must be finite and greater than 0",{stop:e});return{scale:e.scale,effects:p(e.value)}});t.sort((e,t)=>t.effects.length-e.effects.length);for(let e=0;e<t.length-1;e++){if(!(0,l.mj)(t[e].effects,t[e+1].effects))throw new i.A("effect:interpolation-impossible","Cannot interpolate by scale between 2 lists of mixed effects",{a:t[e].effects,b:t[e+1].effects});(0,l.O9)(t[e].effects,t[e+1].effects)}return t.sort((e,t)=>t.scale-e.scale),t}function p(e){let t;if(!e)return[];try{t=function(e,t){let r,i,o={},s=(t=void 0===t?{}:t).grammarSource,n={start:re},l=re,u="none",p="grad",c="turn",d=Q("none"),y=H("none",!1),m=H(")",!1),h=H(",",!1),g=Y([" ","\t","\n","\r"],!1,!1,!1),f=Q("function"),b=H("(",!1),v=Q("identifier"),C=Y([["a","z"],"-"],!1,!1,!1),w=Q("percentage"),T=H("%",!1),S=Q("length"),M=H("px",!1),A=H("cm",!1),N=H("mm",!1),O=H("in",!1),I=H("pt",!1),Z=H("pc",!1),D=Q("angle"),j=H("deg",!1),F=H("rad",!1),B=H("grad",!1),P=H("turn",!1),x=Q("number"),R=Q("color"),L=H("#",!1),_=Y([["0","9"],["a","f"],["A","F"]],!1,!1,!1),E=Y(["+","-"],!1,!1,!1),J=Y([["0","9"]],!1,!1,!1),U=H(".",!1),k=H("e",!1),G=0|t.peg$currPos,q=G,$=[{line:1,column:1}],W=G,V=t.peg$maxFailExpected||[],K=0|t.peg$silentFails;if(t.startRule){if(!(t.startRule in n))throw Error("Can't start parsing from rule \""+t.startRule+'".');l=n[t.startRule]}function z(){return e.substring(q,G)}function H(e,t){return{type:"literal",text:e,ignoreCase:t}}function Y(e,t,r,i){return{type:"class",parts:e,inverted:t,ignoreCase:r,unicode:i}}function Q(e){return{type:"other",description:e}}function X(t){let r,i=$[t];if(i)return i;if(t>=$.length)r=$.length-1;else for(r=t;!$[--r];);for(i=$[r],i={line:i.line,column:i.column};r<t;)10===e.charCodeAt(r)?(i.line++,i.column=1):i.column++,r++;return $[t]=i,i}function ee(e,t,r){let i=X(e),o=X(t);return{source:s,start:{offset:e,line:i.line,column:i.column},end:{offset:t,line:o.line,column:o.column}}}function te(e){G<W||(G>W&&(W=G,V=[]),V.push(e))}function re(){let e;return e=ie(),e===o&&(e=function(){let e,t;for(e=[];t=oe(),t!==o;)e.push(t);return e.length<1&&(e=o),e}()),e}function ie(){let t,r;return K++,t=G,ne(),e.substr(G,4)===u?(r=u,G+=4):(r=o,0===K&&te(y)),r===o?(G=t,t=o):(ne(),q=t,t=[]),K--,t===o&&0===K&&te(d),t}function oe(){let t,r,i,s;return t=G,ne(),r=function(){let t,r,i;return K++,t=G,r=le(),r===o?(G=t,t=o):(40===e.charCodeAt(G)?(i="(",G++):(i=o,0===K&&te(b)),i===o?(G=t,t=o):(q=t,t=r)),K--,t===o&&(r=o,0===K&&te(f)),t}(),r===o?(G=t,t=o):(ne(),i=function(){let t,r,i,s,n,l,a,u;if(t=G,r=se(),r!==o){for(i=[];s=G,n=ne(),44===e.charCodeAt(G)?(l=",",G++):(l=o,0===K&&te(h)),l===o&&(l=null),a=ne(),u=se(),u===o?(G=s,s=o):(n=[n,l,a,u],s=n),s!==o;)i.push(s);q=t,t=function(e,t){return t.length>0?function(e,t){return[e].concat(function(e){return e.map(function(e){return e[3]})}(t))}(e,t):[e]}(r,i)}else G=t,t=o;return t}(),i===o&&(i=null),ne(),41===e.charCodeAt(G)?(s=")",G++):(s=o,0===K&&te(m)),s===o?(G=t,t=o):(ne(),q=t,t=function(e,t){return{type:"function",name:e,parameters:t||[]}}(r,i))),t}function se(){let e,t;return e=G,t=ae(),t===o&&(t=ue(),t===o&&(t=pe(),t===o&&(t=function(){let e,t;return K++,e=G,ne(),t=de(),t===o?(G=e,e=o):(q=e,e=function(e){return{value:e,unit:null}}(t)),K--,e===o&&0===K&&te(x),e}()))),t!==o&&(q=e,t=function(e){return{type:"quantity",value:e.value,unit:e.unit}}(t)),e=t,e===o&&(e=G,t=ce(),t!==o&&(q=e,t=function(e){return{type:"color",colorType:e.type,value:e.value}}(t)),e=t),e}function ne(){let t,r;for(K++,t=[];r=e.charAt(G),i=r.charCodeAt(0),32===i||9===i||10===i||13===i?G++:(r=o,0===K&&te(g)),r!==o;)t.push(r);return K--,t}function le(){let t,r,s;for(K++,t=G,r=[];s=e.charAt(G),i=s.charCodeAt(0),i>=97&&i<=122||45===i?G++:(s=o,0===K&&te(C)),s!==o;)r.push(s);return r.length<1&&(r=o),r!==o&&(q=t,r=z()),t=r,K--,t===o&&(r=o,0===K&&te(v)),t}function ae(){let t,r,i;return K++,t=G,ne(),r=de(),r===o?(G=t,t=o):(37===e.charCodeAt(G)?(i="%",G++):(i=o,0===K&&te(T)),i===o?(G=t,t=o):(q=t,t=function(e){return{value:e,unit:"%"}}(r))),K--,t===o&&0===K&&te(w),t}function ue(){let t,r,i;return K++,t=G,ne(),r=de(),r===o?(G=t,t=o):("px"===e.substr(G,2)?(i="px",G+=2):(i=o,0===K&&te(M)),i===o?(G=t,t=o):(q=t,t=function(e){return{value:e,unit:"px"}}(r))),t===o&&(t=G,ne(),r=de(),r===o?(G=t,t=o):("cm"===e.substr(G,2)?(i="cm",G+=2):(i=o,0===K&&te(A)),i===o?(G=t,t=o):(q=t,t=function(e){return{value:e,unit:"cm"}}(r))),t===o&&(t=G,ne(),r=de(),r===o?(G=t,t=o):("mm"===e.substr(G,2)?(i="mm",G+=2):(i=o,0===K&&te(N)),i===o?(G=t,t=o):(q=t,t=function(e){return{value:e,unit:"mm"}}(r))),t===o&&(t=G,ne(),r=de(),r===o?(G=t,t=o):("in"===e.substr(G,2)?(i="in",G+=2):(i=o,0===K&&te(O)),i===o?(G=t,t=o):(q=t,t=function(e){return{value:e,unit:"in"}}(r))),t===o&&(t=G,ne(),r=de(),r===o?(G=t,t=o):("pt"===e.substr(G,2)?(i="pt",G+=2):(i=o,0===K&&te(I)),i===o?(G=t,t=o):(q=t,t=function(e){return{value:e,unit:"pt"}}(r))),t===o&&(t=G,ne(),r=de(),r===o?(G=t,t=o):("pc"===e.substr(G,2)?(i="pc",G+=2):(i=o,0===K&&te(Z)),i===o?(G=t,t=o):(q=t,t=function(e){return{value:e,unit:"pc"}}(r)))))))),K--,t===o&&0===K&&te(S),t}function pe(){let t,r,i;return K++,t=G,r=de(),r===o?(G=t,t=o):("deg"===e.substr(G,3)?(i="deg",G+=3):(i=o,0===K&&te(j)),i===o?(G=t,t=o):(q=t,t=function(e){return{value:e,unit:"deg"}}(r))),t===o&&(t=G,r=de(),r===o?(G=t,t=o):("rad"===e.substr(G,3)?(i="rad",G+=3):(i=o,0===K&&te(F)),i===o?(G=t,t=o):(q=t,t=function(e){return{value:e,unit:"rad"}}(r))),t===o&&(t=G,r=de(),r===o?(G=t,t=o):(e.substr(G,4)===p?(i=p,G+=4):(i=o,0===K&&te(B)),i===o?(G=t,t=o):(q=t,t=function(e){return{value:e,unit:"grad"}}(r))),t===o&&(t=G,r=de(),r===o?(G=t,t=o):(e.substr(G,4)===c?(i=c,G+=4):(i=o,0===K&&te(P)),i===o?(G=t,t=o):(q=t,t=function(e){return{value:e,unit:"turn"}}(r)))))),K--,t===o&&(r=o,0===K&&te(D)),t}function ce(){let t,r,s,n;if(K++,t=G,35===e.charCodeAt(G)?(r="#",G++):(r=o,0===K&&te(L)),r!==o){for(s=[];n=e.charAt(G),i=n.charCodeAt(0),i>=48&&i<=57||i>=97&&i<=102||i>=65&&i<=70?G++:(n=o,0===K&&te(_)),n!==o;)s.push(n);s.length<1&&(s=o),s===o?(G=t,t=o):(q=t,t={type:"hex",value:z()})}else G=t,t=o;return t===o&&(t=G,r=oe(),r!==o&&(q=t,r=function(e){return{type:"function",value:e}}(r)),t=r,t===o&&(t=G,r=le(),r!==o&&(q=t,r={type:"named",value:z()}),t=r)),K--,t===o&&(r=o,0===K&&te(R)),t}function de(){let t,r,s,n,l,a,u,p;for(t=G,r=e.charAt(G),i=r.charCodeAt(0),43===i||45===i?G++:(r=o,0===K&&te(E)),r===o&&(r=null),s=G,n=[];l=e.charAt(G),i=l.charCodeAt(0),i>=48&&i<=57?G++:(l=o,0===K&&te(J)),l!==o;)n.push(l);if(46===e.charCodeAt(G)?(l=".",G++):(l=o,0===K&&te(U)),l!==o){for(a=[];u=e.charAt(G),i=u.charCodeAt(0),i>=48&&i<=57?G++:(u=o,0===K&&te(J)),u!==o;)a.push(u);a.length<1&&(a=o),a===o?(G=s,s=o):(n=[n,l,a],s=n)}else G=s,s=o;if(s===o){for(s=[];n=e.charAt(G),i=n.charCodeAt(0),i>=48&&i<=57?G++:(n=o,0===K&&te(J)),n!==o;)s.push(n);s.length<1&&(s=o)}if(s!==o){if(n=G,101===e.charCodeAt(G)?(l="e",G++):(l=o,0===K&&te(k)),l!==o){for(a=e.charAt(G),i=a.charCodeAt(0),43===i||45===i?G++:(a=o,0===K&&te(E)),a===o&&(a=null),u=[];p=e.charAt(G),i=p.charCodeAt(0),i>=48&&i<=57?G++:(p=o,0===K&&te(J)),p!==o;)u.push(p);u.length<1&&(u=o),u===o?(G=n,n=o):(l=[l,a,u],n=l)}else G=n,n=o;n===o&&(n=null),q=t,t=parseFloat(z())}else G=t,t=o;return t}r=l();let ye=r!==o&&G===e.length;function me(){throw r!==o&&G<e.length&&te({type:"end"}),function(e,t,r){return new a(a.buildMessage(e,t),e,t,r)}(V,W<e.length?function(t=G){let r=e.codePointAt(t);return void 0===r?"":String.fromCodePoint(r)}(W):null,W<e.length?ee(W,W+1):ee(W,W))}return t.peg$library?{peg$result:r,peg$currPos:G,peg$FAILED:o,peg$maxFailExpected:V,peg$maxFailPos:W,peg$success:ye,peg$throw:ye?void 0:me}:ye?r:void me()}(e)}catch(t){throw new i.A("effect:invalid-syntax","Invalid effect syntax",{value:e,error:t})}return t.map(e=>function(e){try{switch(e.name){case"grayscale":case"sepia":case"saturate":case"invert":case"brightness":case"contrast":return function(e){let t=1;return c(e.parameters,1),1===e.parameters.length&&(t=g(e.parameters[0])),new n.yG(e.name,t)}(e);case"opacity":return function(e){let t=1;return c(e.parameters,1),1===e.parameters.length&&(t=g(e.parameters[0])),new n.jm(t)}(e);case"hue-rotate":return function(e){let t=0;return c(e.parameters,1),1===e.parameters.length&&(t=function(e){return function(e){if("quantity"!==e.type||!(0===e.value&&null===e.unit||e.unit&&null!=m[e.unit]))throw new i.A("effect:type-error",`Expected <angle>, Actual: ${d(e)}`,{term:e})}(e),e.value*m[e.unit]||0}(e.parameters[0])),new n.Nd(t)}(e);case"blur":return function(e){let t=0;return c(e.parameters,1),1===e.parameters.length&&(t=f(e.parameters[0]),y(t,e.parameters[0])),new n.Fk(t)}(e);case"drop-shadow":return function(e){let t=[],r=null;for(let o of e.parameters)if("color"===o.type){if(t.length&&Object.freeze(t),r)throw new i.A("effect:type-error","Accepts only one color",{});r=b(o)}else{let e=f(o);if(Object.isFrozen(t))throw new i.A("effect:type-error","<length> parameters not consecutive",{lengths:t});t.push(e),3===t.length&&y(e,o)}if(t.length<2||t.length>3)throw new i.A("effect:type-error",`Expected <length>{2,3}, Actual: <length>{${t.length}}`,{lengths:t});return new n.$b(t[0],t[1],t[2]||0,r||v("black"))}(e);case"bloom":return function(e){let t=1,r=0,i=0;return c(e.parameters,3),e.parameters[0]&&(t=g(e.parameters[0])),e.parameters[1]&&(r=f(e.parameters[1]),y(r,e.parameters[1])),e.parameters[2]&&(i=g(e.parameters[2])),new n.bv(t,r,i)}(e)}}catch(t){throw t.details.filter=e,t}throw new i.A("effect:unknown-effect",`Effect '${e.name}' is not supported`,{effect:e})}(e))}function c(e,t){if(e.length>t)throw new i.A("effect:type-error",`Function supports up to ${t} parameters, Actual: ${e.length}`,{parameters:e})}function d(e){if("color"===e.type)return"<color>";if(e.unit){if(e.unit in h)return"<length>";if(e.unit in m)return"<angle>";if("%"===e.unit)return"<percentage>"}return"<double>"}function y(e,t){if(e<0)throw new i.A("effect:type-error",`Negative values are not allowed, Actual: ${e}`,{term:t})}const m={deg:1,grad:.9,rad:180/Math.PI,turn:360},h={px:1,cm:96/2.54,mm:96/2.54/10,in:96,pc:16,pt:96/72};function g(e){!function(e){if("quantity"!==e.type||null!==e.unit&&"%"!==e.unit)throw new i.A("effect:type-error",`Expected <double> or <percentage>, Actual: ${d(e)}`,{term:e})}(e);let t=e.value;return y(t,e),"%"===e.unit?.01*t:t}function f(e){return function(e){if("quantity"!==e.type||!(0===e.value&&null===e.unit||e.unit&&null!=h[e.unit]))throw new i.A("effect:type-error",`Expected <length>, Actual: ${d(e)}`,{term:e})}(e),e.value*h[e.unit]||0}function b(e){switch(e.colorType){case"hex":return(0,s.j5)(e.value);case"named":return v(e.value);case"function":return function(e){if(c(e.parameters,4),C.test(e.name))return[g(e.parameters[0]),g(e.parameters[1]),g(e.parameters[2]),e.parameters[3]?g(e.parameters[3]):1];if(w.test(e.name))return(0,s.ay)(function(e){return function(e){if("quantity"!==e.type||null!==e.unit)throw new i.A("effect:type-error",`Expected <double>, Actual: ${d(e)}`,{term:e})}(e),y(e.value,e),e.value}(e.parameters[0]),g(e.parameters[1]),g(e.parameters[2]),e.parameters[3]?g(e.parameters[3]):1);throw new i.A("effect:syntax-error",`Invalid color function '${e.name}'`,{colorFunction:e})}(e.value)}}function v(e){if(!(0,s.V6)(e))throw new i.A("effect:unknown-color",`color '${e}' isn't valid`,{namedColor:e});return(0,s.c4)(e)}const C=/^rgba?/i,w=/^hsla?/i;function T(e,t,r){try{return function(e){if(!e||0===e.length)return null;if(function(e){let t=e[0];return!!t&&"scale"in t}(e)){let t=[];for(let r of e)t.push({scale:r.scale,value:M(r.value)});return t}return M(e)}(e)}catch(e){r?.messages?.push(e)}return null}function S(e,t,r,i){try{let i=function(e){let t=u(e);return t?(0,l.dw)(t)?t.map(e=>e.toJSON()):t.map(({scale:e,effects:t})=>({scale:e,value:t.map(e=>e.toJSON())})):null}(e);(0,o.sM)(r,i,t)}catch(e){i.messages&&i.messages.push(e)}}function M(e){if(!e?.length)return"";let t=[];for(let r of e){let e=[];switch(r.type){case"grayscale":case"sepia":case"saturate":case"invert":case"brightness":case"contrast":case"opacity":e=[A(r,"amount")];break;case"blur":e=[A(r,"radius","pt")];break;case"hue-rotate":e=[A(r,"angle","deg")];break;case"drop-shadow":e=[A(r,"xoffset","pt"),A(r,"yoffset","pt"),A(r,"blurRadius","pt"),N(r,"color")];break;case"bloom":e=[A(r,"strength"),A(r,"radius","pt"),A(r,"threshold")]}let i=`${r.type}(${e.filter(Boolean).join(" ")})`;u(i),t.push(i)}return t.join(" ")}function A(e,t,r){if(null==e[t])throw new i.A("effect:missing-parameter",`Missing parameter '${t}' in ${e.type} effect`,{effect:e});return r?e[t]+r:""+e[t]}function N(e,t){if(null==e[t])throw new i.A("effect:missing-parameter",`Missing parameter '${t}' in ${e.type} effect`,{effect:e});let r=e[t];return`rgba(${r[0]||0}, ${r[1]||0}, ${r[2]||0}, ${r[3]/255||0})`}},54339(e,t,r){function i(e,t){switch(t.type){case"object-id":case"unique-id-simple":return e.attributes[t.fieldName];case"unique-id-composite":{let r=[];for(let i of t.fieldNames)r.push(e.attributes[i]??null);return JSON.stringify(r)}}}function o(e,t){if("uniqueIdFields"in t&&t.uniqueIdFields?.length){if(1===t.uniqueIdFields.length)return e.attributes?.[t.uniqueIdFields[0]];let r=t.uniqueIdFields.map(t=>e.attributes?.[t]);return JSON.stringify(r)}return"objectIdField"in t&&t.objectIdField?e.attributes?.[t.objectIdField]:null}r.d(t,{W:()=>i,r:()=>o})},63074(e,t,r){var i=r(32198),o=r(91429),s=r(89317),n=r(76369);const l={type:"average.color-burn.color-dodge.color.darken.destination-atop.destination-in.destination-out.destination-over.difference.exclusion.hard-light.hue.invert.lighten.lighter.luminosity.minus.multiply.normal.overlay.plus.reflect.saturation.screen.soft-light.source-atop.source-in.source-out.vivid-light.xor".split("."),nonNullable:!0,json:{read:!1,write:!1,origins:{"web-map":{read:!0,write:{layerContainerTypes:s.K}},"portal-item":{read:!0,write:{layerContainerTypes:s.K}}}}},a={read:{reader:n.LF},write:{allowNull:!0,writer:n.M9,layerContainerTypes:s.K}},u={json:{read:!1,write:!1,origins:{"web-map":a,"portal-item":a}}};r.d(t,["LF",0,u,"dM",0,e=>{let t=e,r=class extends t{constructor(){super(...arguments),this.blendMode="normal",this.effect=null}};return(0,i.Cg)([(0,o.MZ)(l)],r.prototype,"blendMode",void 0),(0,i.Cg)([(0,o.MZ)(u)],r.prototype,"effect",void 0),r=(0,i.Cg)([(0,o.$K)("esri.layers.mixins.BlendLayer")],r),r},"sU",0,l])},8303(e,t,r){var i=r(32198),o=r(92602),s=r(70333),n=r(56507),l=r(60999),a=r(49186),u=r(36563),p=r(53966),c=r(97768),d=r(17676),y=r(84952),m=r(91429),h=r(77548),g=r(20655),f=r(80812),b=r(41318),v=r(10407),C=r(26121),w=r(36005),T=r(43937);const S={credential:null,user:null};r.d(t,["A",0,e=>{let t=e,M=class extends t{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){super.destroy(),this.portalItem=(0,c.pR)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}get portalItem(){return this._get("portalItem")}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,r){if(t.itemId)return new f.default({id:t.itemId,portal:r?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem?.id)try{let{load:i}=await r.e(1204).then(()=>r(41204));return(0,d.Te)(t),await i({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},t)}catch(e){throw(0,d.zf)(e)||p.A.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async reloadFromPortal(e,t){if(!this.loaded||!this.portalItem?.id)return!1;let i=t?.signal?null:new AbortController;try{let{reload:o}=await r.e(1204).then(()=>r(41204));return i&&this.addHandles((0,u.rE)(i),"reloadFromPortal"),await o({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},t?.signal?t:{signal:i.signal})}catch(e){throw(0,d.zf)(e)||p.A.getLogger(this).warn(`Failed to reload layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}finally{i&&this.removeHandles("reloadFromPortal")}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch(e=>((0,d.QP)(e),!0)))}async setUserPrivileges(e,t){if(!o.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{let{features:{edit:r,fullEdit:i},content:{updateItem:o}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",r),this._set("userHasFullEditingPrivileges",i),this._set("userHasUpdateItemPrivileges",o)}catch(e){(0,d.QP)(e)}}async _fetchUserPrivileges(e,t){let r=this.portalItem;if(!e||!r||!r.loaded||r.sourceUrl)return this._fetchFallbackUserPrivileges(t);let i,o,n=!s.id?.findCredential(this.url),l=e===r.id;if(l&&r.portal.user)return this._getUserPrivileges(r,n);if(l)i=r.portal.url;else try{i=await(0,h.wI)(this.url,t)}catch(e){(0,d.QP)(e)}if(!i||!(0,y.b8)(i,r.portal.url))return this._fetchFallbackUserPrivileges(t);try{let e=null==t?null:t.signal;o=await(s.id?.getCredential(`${i}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,d.QP)(e)}if(!o)return{features:{edit:!0,fullEdit:!1},content:{updateItem:!1}};try{if(l?await r.reload():(r=new f.default({id:e,portal:{url:i}}),await r.load(t)),r.portal.user)return this._getUserPrivileges(r,n)}catch(e){(0,d.QP)(e)}return{features:{edit:!0,fullEdit:!1},content:{updateItem:!1}}}_getUserPrivileges(e,t){let r=(0,v.It)(e);return t&&(r.features.edit=!0),r}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,d.QP)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){let t=this.url?s.id?.findCredential(this.url):null;if(!t)return!0;let r=S.credential===t?S.user:await this._fetchEditingUser(e);return S.credential=t,S.user=r,null==r?.privileges||r.privileges.includes("features:user:edit")}async _fetchEditingUser(e){let t=this.portalItem?.portal?.user;if(t)return t;let r=s.id?.findServerInfo(this.url??"");if(!r?.owningSystemUrl)return null;let i=`${r.owningSystemUrl}/sharing/rest`,o=g.A.getDefault();if(o&&o.loaded&&(0,y.S8)(o.restUrl)===(0,y.S8)(i))return o.user;let a=`${i}/community/self`,u=null==e?null:e.signal,p=await(0,l.Ke)((0,n.A)(a,{authMode:"no-prompt",query:{f:"json"},signal:u}));return p.ok?b.A.fromJSON(p.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){return(0,C.wN)(this.portalItem,t)?(t?.messages?.push(new a.A("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,i.Cg)([(0,m.MZ)({type:f.default})],M.prototype,"portalItem",null),(0,i.Cg)([(0,w.w)("web-document","portalItem",["itemId"])],M.prototype,"readPortalItem",null),(0,i.Cg)([(0,T.K)("web-document","portalItem",{itemId:{type:String}})],M.prototype,"writePortalItem",null),(0,i.Cg)([(0,m.MZ)({clonable:!1})],M.prototype,"resourceReferences",void 0),(0,i.Cg)([(0,m.MZ)({type:Boolean,readOnly:!0})],M.prototype,"userHasEditingPrivileges",void 0),(0,i.Cg)([(0,m.MZ)({type:Boolean,readOnly:!0})],M.prototype,"userHasFullEditingPrivileges",void 0),(0,i.Cg)([(0,m.MZ)({type:Boolean,readOnly:!0})],M.prototype,"userHasUpdateItemPrivileges",void 0),M=(0,i.Cg)([(0,m.$K)("esri.layers.mixins.PortalLayer")],M),M}])},25036(e,t,r){var i=r(32198),o=r(91429),s=r(83960);r.d(t,["j",0,e=>{let t=e,r=class extends t{constructor(){super(...arguments),this.minScale=0,this.maxScale=0}get effectiveScaleRange(){let e={minScale:this.minScale,maxScale:this.maxScale},t=this.parent;void 0!==t?.effectiveScaleRange&&(0,s.RH)(e,t.effectiveScaleRange);let r=this._get("effectiveScaleRange");return r&&r.minScale===e.minScale&&r.maxScale===e.maxScale?r:e}};return(0,i.Cg)([(0,o.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],r.prototype,"minScale",void 0),(0,i.Cg)([(0,o.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],r.prototype,"maxScale",void 0),(0,i.Cg)([(0,o.MZ)({readOnly:!0})],r.prototype,"effectiveScaleRange",null),r=(0,i.Cg)([(0,o.$K)("esri.layers.mixins.ScaleRangeLayer")],r),r}])},96576(e,t,r){r.d(t,{A:()=>c});var i,o=r(32198),s=r(4718),n=r(91429),l=r(92438),a=r(63988),u=r(49849),p=r(93223);let c=i=class extends((0,a.h)(l.A)){constructor(e){super(e),this.description=null,this.label=null,this.symbol=null,this.type="simple"}async collectRequiredFields(e,t){await Promise.all([this.collectSymbolFields(e,t),this.collectVVRequiredFields(e,t)])}async collectSymbolFields(e,t){await Promise.all(this.symbols.map(r=>r.collectRequiredFields(e,t)))}getSymbol(e,t){return this.symbol}async getSymbolAsync(e,t){return this.symbol}get symbols(){return this.symbol?[this.symbol]:[]}get arcadeRequired(){return this.arcadeRequiredForVisualVariables}clone(){return new i({description:this.description,label:this.label,symbol:(0,s.o8)(this.symbol),visualVariables:(0,s.o8)(this.visualVariables),authoringInfo:(0,s.o8)(this.authoringInfo)})}};(0,o.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],c.prototype,"description",void 0),(0,o.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],c.prototype,"label",void 0),(0,o.Cg)([(0,n.MZ)(u.Wp)],c.prototype,"symbol",void 0),(0,o.Cg)([(0,p.e)({simple:"simple"})],c.prototype,"type",void 0),c=i=(0,o.Cg)([(0,n.$K)("esri.renderers.SimpleRenderer")],c)},73681(e,t,r){r.d(t,{n:()=>a});var i=r(49186),o=r(53966),s=r(46140),n=r(95466),l=r(55674);class a{static async from(e,t,r){let n=e.dictionary_version?s.A.parse(e.dictionary_version):null,p=new Set(e.itemsNames),c={};if(t)for(let e in t)c[e]=t[e];if(e.authoringInfo.configuration)for(let t of e.authoringInfo.configuration)c.hasOwnProperty(t.name)||(c[t.name]=t.value);let d=new Set(e.authoringInfo.symbol);for(let e of Object.keys(r))d.delete(e);d.size&&o.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("missing-fields: fieldMap entries for the following symbol fields are missing",{symbolFields:d});let y=await(0,l.xR)(e.expression,null,c);if(!y)throw new i.A("dictionary-renderer:expression-error","Unable to create dictionary renderer expression");let m=!n||!n.greaterEqual(4,0);m&&o.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("Dictionary script does not support native field types. Applying fallback",{version:n});let h=new u(r,m);return new a(m,p,y,h)}constructor(e,t,r,i){this._requiresFieldCoercionToString=e,this._itemNames=t,this._compiled=r,this._reader=i}get itemNames(){return this._itemNames}evaluate(e,t,r,i){try{return this._reader.bind(e,r,i),this._compiled.evaluate(this._reader,{$view:{scale:t}})}catch(e){o.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("arcade: dictionary script evaluation failed",{error:e})}return null}createDictionaryFieldsIndex(e){if(!this._requiresFieldCoercionToString)return new n.A(e);let t=e.map(e=>({...e,type:"esriFieldTypeString"}));return new n.A(t)}}class u extends l.Gj{constructor(e,t){super(),this._fieldMap=e,this._requiresFieldCoercionToString=t}_getField(e){let t=this._fieldMap[e]??e;return this._boundSchema.fieldsIndex.get(t)}field(e){if(!this._requiresFieldCoercionToString)return super.field(e,!1);let t=this._getField(e);return null==t||null==this._boundTarget.attributes[t.name]?"":""+this._boundTarget.attributes[t.name]}}},65494(e,t,r){r.d(t,{L:()=>a,r:()=>n});var i=r(90360),o=r(41214),s=r(59923);function n(e,t){return a(e,null,t)}const l=(0,i.C)({types:o.Hg});function a(e,t,r){return e?e&&(e.styleName||e.styleUrl)&&"uniqueValue"!==e.type?((0,s.Yc)(r,"warning","renderer",`Only UniqueValueRenderer can be referenced from a web style, but found '${e.type}'`,{definition:e}),null):l(e,t,r):null}},22671(e,t,r){r.d(t,{A:()=>b});var i,o=r(32198),s=r(52106),n=r(66552),l=r(25482),a=r(4718),u=r(91429),p=r(16930),c=r(60408),d=r(65864),y=r(50498),m=r(20437),h=r(36005),g=r(43937);const f=new n.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let b=i=class extends l.o{constructor(e){super(e),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(e,t){return this.readFeaturesWithClass(e,t,s.A)}writeGeometryType(e,t,r,i){if(e)return void f.write(e,t,r,i);let{features:o}=this;if(o)for(let e of o)if(null!=e?.geometry)return void f.write(e.geometry.type,t,r,i)}readQueryGeometry(e,t){if(!e)return null;let r=!!e.spatialReference,i=(0,d.rS)(e);return i&&!r&&t.spatialReference&&(i.spatialReference=p.A.fromJSON(t.spatialReference)),i}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());let{features:r}=this;if(r)for(let e of r)if(e&&null!=e.geometry&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new i(this.cloneProperties())}cloneProperties(){return(0,a.o8)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(e){let t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let r=0;r<t.features.length;r++){let i=t.features[r];i.geometry&&=(e?.[r])?.toJSON()||i.geometry}return t}quantize(e){let{scale:[t,r],translate:[i,o]}=e,s=this.features,n=this._getQuantizationFunction(this.geometryType,e=>Math.round((e-i)/t),e=>Math.round((o-e)/r));for(let e=0,t=s.length;e<t;e++)n?.(s[e].geometry)||(s.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){let{geometryType:e,features:t,transform:r}=this;if(!r)return this;let{translate:[i,o],scale:[s,n]}=r,l=null,a=null;if(this.hasZ&&null!=r?.scale?.[2]){let{translate:[,,e],scale:[,,t]}=r;l=r=>r*t+e}if(this.hasM&&null!=r?.scale?.[3]){let{translate:[,,,e],scale:[,,,t]}=r;a=r=>null==r?r:r*t+e}let u=this._getHydrationFunction(e,e=>e*s+i,e=>o-e*n,l,a);for(let{geometry:e}of t)null!=e&&u&&u(e);return this.transform=null,this}readFeaturesWithClass(e,t,r){let i=p.A.fromJSON(t.spatialReference),o=[];for(let t=0;t<e.length;t++){let s=e[t],n=r.fromJSON(s),l=s.geometry?.spatialReference;null!=n.geometry&&!l&&(n.geometry.spatialReference=i);let a=s.aggregateGeometries,u=n.aggregateGeometries;if(a&&null!=u)for(let e in u){let t=u[e],r=a[e]?.spatialReference;null!=t&&!r&&(t.spatialReference=i)}o.push(n)}return o}_quantizePoints(e,t,r){let i,o,s=[];for(let n=0,l=e.length;n<l;n++){let l=e[n];if(n>0){let e=t(l[0]),n=r(l[1]);(e!==i||n!==o)&&(s.push([e-i,n-o]),i=e,o=n)}else i=t(l[0]),o=r(l[1]),s.push([i,o])}return s.length>0?s:null}_getQuantizationFunction(e,t,r){return"point"===e?e=>(e.x=t(e.x),e.y=r(e.y),e):"polyline"===e||"polygon"===e?e=>{let i=(0,c.Bi)(e)?e.rings:e.paths,o=[];for(let e=0,s=i.length;e<s;e++){let s=i[e],n=this._quantizePoints(s,t,r);n&&o.push(n)}return o.length>0?((0,c.Bi)(e)?e.rings=o:e.paths=o,e):null}:"multipoint"===e?e=>{let i=this._quantizePoints(e.points,t,r);return i&&i.length>0?(e.points=i,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,r,i,o){return"point"===e?e=>{e.x=t(e.x),e.y=r(e.y),i&&(e.z=i(e.z))}:"polyline"===e||"polygon"===e?e=>{let s,n,l=(0,c.Bi)(e)?e.rings:e.paths;for(let e=0,i=l.length;e<i;e++){let i=l[e];for(let e=0,o=i.length;e<o;e++){let o=i[e];e>0?(s+=o[0],n+=o[1]):(s=o[0],n=o[1]),o[0]=t(s),o[1]=r(n)}}if(i&&o)for(let e=0,t=l.length;e<t;e++){let t=l[e];for(let e=0,r=t.length;e<r;e++){let r=t[e];r[2]=i(r[2]),r[3]=o(r[3])}}else if(i)for(let e=0,t=l.length;e<t;e++){let t=l[e];for(let e=0,r=t.length;e<r;e++){let r=t[e];r[2]=i(r[2])}}else if(o)for(let e=0,t=l.length;e<t;e++){let t=l[e];for(let e=0,r=t.length;e<r;e++){let r=t[e];r[2]=o(r[2])}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=r(e.ymin),e.xmax=t(e.xmax),e.ymax=r(e.ymax),i&&null!=e.zmax&&null!=e.zmin&&(e.zmax=i(e.zmax),e.zmin=i(e.zmin)),o&&null!=e.mmax&&null!=e.mmin&&(e.mmax=o(e.mmax),e.mmin=o(e.mmin))}:"multipoint"===e?e=>{let s,n,l=e.points;for(let e=0,i=l.length;e<i;e++){let i=l[e];e>0?(s+=i[0],n+=i[1]):(s=i[0],n=i[1]),i[0]=t(s),i[1]=r(n)}if(i&&o)for(let e=0,t=l.length;e<t;e++){let t=l[e];t[2]=i(t[2]),t[3]=o(t[3])}else if(i)for(let e=0,t=l.length;e<t;e++){let t=l[e];t[2]=i(t[2])}else if(o)for(let e=0,t=l.length;e<t;e++){let t=l[e];t[2]=o(t[2])}}:null}};(0,o.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],b.prototype,"displayFieldName",void 0),(0,o.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],b.prototype,"exceededTransferLimit",void 0),(0,o.Cg)([(0,u.MZ)({type:[s.A],json:{write:!0}})],b.prototype,"features",void 0),(0,o.Cg)([(0,h.w)("features")],b.prototype,"readFeatures",null),(0,o.Cg)([(0,u.MZ)({type:[m.A],json:{write:!0}})],b.prototype,"fields",void 0),(0,o.Cg)([(0,u.MZ)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:f.read}}})],b.prototype,"geometryType",void 0),(0,o.Cg)([(0,g.K)("geometryType")],b.prototype,"writeGeometryType",null),(0,o.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],b.prototype,"hasM",void 0),(0,o.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],b.prototype,"hasZ",void 0),(0,o.Cg)([(0,u.MZ)({types:y.yR,json:{write:!0}})],b.prototype,"queryGeometry",void 0),(0,o.Cg)([(0,h.w)("queryGeometry")],b.prototype,"readQueryGeometry",null),(0,o.Cg)([(0,u.MZ)({type:p.A,json:{write:!0}})],b.prototype,"spatialReference",void 0),(0,o.Cg)([(0,g.K)("spatialReference")],b.prototype,"writeSpatialReference",null),(0,o.Cg)([(0,u.MZ)({json:{write:!0}})],b.prototype,"transform",void 0),b=i=(0,o.Cg)([(0,u.$K)("esri.rest.support.FeatureSet")],b),b.prototype.toJSON.isDefaultToJSON=!0},37807(e,t,r){var i=r(32198),o=r(66552),s=r(25482),n=r(91429);const l=new o.J({esriJobMessageTypeInformative:"informative",esriJobMessageTypeProcessDefinition:"process-definition",esriJobMessageTypeProcessStart:"process-start",esriJobMessageTypeProcessStop:"process-stop",esriJobMessageTypeWarning:"warning",esriJobMessageTypeError:"error",esriJobMessageTypeEmpty:"empty",esriJobMessageTypeAbort:"abort"});let a=class extends s.o{constructor(e){super(e),this.description=null,this.type=null}};(0,i.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],a.prototype,"description",void 0),(0,i.Cg)([(0,n.MZ)({type:String,json:{read:l.read,write:l.write}})],a.prototype,"type",void 0),a=(0,i.Cg)([(0,n.$K)("esri.rest.support.GPMessage")],a);const u=a;r.d(t,["A",0,u])},2073(e,t,r){var i=r(66552);const o={esriCentimeters:"centimeters",esriDecimalDegrees:"decimal-degrees",esriDecimeters:"decimeters",esriFeet:"feet",esriInches:"inches",esriKilometers:"kilometers",esriMeters:"meters",esriMiles:"miles",esriMillimeters:"millimeters",esriNauticalMiles:"nautical-miles",esriPoints:"points",esriUnknownUnits:"unknown",esriYards:"yards"},s=(0,i.O)()(o),n=(0,i.O)()({...o,esriIntFeet:"international-feet",esriIntInches:"international-inches",esriIntMiles:"international-miles",esriIntNauticalMiles:"international-nautical-miles",esriIntYards:"international-yards"}),l=(0,i.O)()({esriAcres:"international-acres",esriAcresUS:"us-acres",esriAres:"ares",esriHectares:"hectares",esriSquareCentimeters:"square-centimeters",esriSquareDecimeters:"square-decimeters",esriSquareFeet:"square-international-feet",esriSquareFeetUS:"square-us-feet",esriSquareInches:"square-international-inches",esriSquareInchesUS:"square-us-inches",esriSquareKilometers:"square-kilometers",esriSquareMeters:"square-meters",esriSquareMiles:"square-international-miles",esriSquareMilesUS:"square-us-miles",esriSquareMillimeters:"square-millimeters",esriSquareYards:"square-international-yards",esriSquareYardsUS:"square-us-yards",esriUnknownAreaUnits:"unknown"}),a=(0,i.O)()({esriNAUCentimeters:"centimeters",esriNAUDecimalDegrees:"decimal-degrees",esriNAUDecimeters:"decimeters",esriNAUFeet:"feet",esriNAUInches:"inches",esriNAUKilometers:"kilometers",esriNAUMeters:"meters",esriNAUMiles:"miles",esriNAUMillimeters:"millimeters",esriNAUNauticalMiles:"nautical-miles",esriNAUPoints:"points",esriNAUYards:"yards"}),u=(0,i.O)()({esriNAUCentimeters:"centimeters",esriNAUDecimalDegrees:"decimal-degrees",esriNAUDecimeters:"decimeters",esriNAUFeet:"feet",esriNAUInches:"inches",esriNAUKilometers:"kilometers",esriNAUMeters:"meters",esriNAUMiles:"miles",esriNAUMillimeters:"millimeters",esriNAUNauticalMiles:"nautical-miles",esriNAUPoints:"points",esriNAUYards:"yards",esriNAUDays:"days",esriNAUHours:"hours",esriNAUMinutes:"minutes",esriNAUSeconds:"seconds",esriNAUKilometersPerHour:"kilometers-per-hour",esriNAUMilesPerHour:"miles-per-hour",esriNAUUnknown:"unknown"}),p=(0,i.O)()({esriDOTComplete:"complete",esriDOTCompleteNoEvents:"complete-no-events",esriDOTFeatureSets:"featuresets",esriDOTInstructionsOnly:"instructions-only",esriDOTStandard:"standard",esriDOTSummaryOnly:"summary-only"}),c=(0,i.O)()({esriNAOutputLineNone:"none",esriNAOutputLineStraight:"straight",esriNAOutputLineTrueShape:"true-shape",esriNAOutputLineTrueShapeWithMeasure:"true-shape-with-measure"}),d=((0,i.O)()({esriNAOutputPolygonNone:"none",esriNAOutputPolygonSimplified:"simplified",esriNAOutputPolygonDetailed:"detailed"}),(0,i.O)()({esriNFSBAllowBacktrack:"allow-backtrack",esriNFSBAtDeadEndsOnly:"at-dead-ends-only",esriNFSBNoBacktrack:"no-backtrack",esriNFSBAtDeadEndsAndIntersections:"at-dead-ends-and-intersections"})),y=((0,i.O)()({esriNATravelDirectionFromFacility:"from-facility",esriNATravelDirectionToFacility:"to-facility"}),(0,i.O)()({esriNATimeOfDayNotUsed:"not-used",esriNATimeOfDayUseAsStartTime:"start",esriNATimeOfDayUseAsEndTime:"end"}),(0,i.O)()({AUTOMOBILE:"automobile",TRUCK:"truck",WALK:"walk",OTHER:"other"})),m=(0,i.O)()({0:"either-side-of-vehicle",1:"right-side-of-vehicle",2:"left-side-of-vehicle",3:"no-u-turn"},{useNumericKeys:!0}),h=(0,i.O)()({0:"stop",1:"waypoint",2:"break"},{useNumericKeys:!0}),g=(0,i.O)()({0:"ok",1:"not-located",2:"network-element-not-located",3:"element-not-traversable",4:"invalid-field-values",5:"not-reached",6:"time-window-violation",7:"not-located-on-closest"},{useNumericKeys:!0}),f=(0,i.O)()({1:"right",2:"left"},{useNumericKeys:!0}),b=(0,i.O)()({0:"restriction",1:"scaled-cost",2:"added-cost"},{useNumericKeys:!0}),v=(0,i.O)()({0:"permit",1:"restrict"},{useNumericKeys:!0}),C=(0,i.O)()({1:"header",50:"arrive",51:"depart",52:"straight",100:"on-ferry",101:"off-ferry",102:"central-fork",103:"roundabout",104:"u-turn",150:"door",151:"stairs",152:"elevator",153:"escalator",154:"pedestrian-ramp",200:"left-fork",201:"left-ramp",202:"clockwise-roundabout",203:"left-handed-u-turn",204:"bear-left",205:"left-turn",206:"sharp-left",207:"left-turn-and-immediate-left-turn",208:"left-turn-and-immediate-right-turn",300:"right-fork",301:"right-ramp",302:"counter-clockwise-roundabout",303:"right-handed-u-turn",304:"bear-right",305:"right-turn",306:"sharp-right",307:"right-turn-and-immediate-left-turn",308:"right-turn-and-immediate-right-turn",400:"up-elevator",401:"up-escalator",402:"up-stairs",500:"down-elevator",501:"down-escalator",502:"down-stairs",1e3:"general-event",1001:"landmark",1002:"time-zone-change",1003:"traffic-event",1004:"scaled-cost-barrier-event",1005:"boundary-crossing",1006:"restriction-violation",1007:"lane"},{useNumericKeys:!0}),w=(0,i.O)()({0:"unknown",1:"segment",2:"maneuver-segment",3:"restriction-violation",4:"scaled-cost-barrier",5:"heavy-traffic",6:"slow-traffic",7:"moderate-traffic"},{useNumericKeys:!0}),T=(0,i.O)()({"NA Campus":"campus","NA Desktop":"desktop","NA Navigation":"navigation"}),S=(0,i.O)()({Kilometers:"kilometers",Miles:"miles",Meters:"meters"},{ignoreUnknown:!1}),M=(0,i.O)()({Minutes:"minutes",TimeAt1KPH:"time-at-1-kph",TravelTime:"travel-time",TruckMinutes:"truck-minutes",TruckTravelTime:"truck-travel-time",WalkTime:"walk-time"},{ignoreUnknown:!1}),A=(0,i.O)()({Kilometers:"kilometers",Miles:"miles",Meters:"meters",Minutes:"minutes",TimeAt1KPH:"time-at-1-kph",TravelTime:"travel-time",TruckMinutes:"truck-minutes",TruckTravelTime:"truck-travel-time",WalkTime:"walk-time"},{ignoreUnknown:!1}),N=(0,i.O)()({"Any Hazmat Prohibited":"any-hazmat-prohibited","Avoid Carpool Roads":"avoid-carpool-roads","Avoid Express Lanes":"avoid-express-lanes","Avoid Ferries":"avoid-ferries","Avoid Gates":"avoid-gates","Avoid Limited Access Roads":"avoid-limited-access-roads","Avoid Private Roads":"avoid-private-roads","Avoid Roads Unsuitable for Pedestrians":"avoid-roads-unsuitable-for-pedestrians","Avoid Stairways":"avoid-stairways","Avoid Toll Roads":"avoid-toll-roads","Avoid Toll Roads for Trucks":"avoid-toll-roads-for-trucks","Avoid Truck Restricted Roads":"avoid-truck-restricted-roads","Avoid Unpaved Roads":"avoid-unpaved-roads","Axle Count Restriction":"axle-count-restriction","Driving a Bus":"driving-a-bus","Driving a Taxi":"driving-a-taxi","Driving a Truck":"driving-a-truck","Driving an Automobile":"driving-an-automobile","Driving an Emergency Vehicle":"driving-an-emergency-vehicle","Height Restriction":"height-restriction","Kingpin to Rear Axle Length Restriction":"kingpin-to-rear-axle-length-restriction","Length Restriction":"length-restriction","Preferred for Pedestrians":"preferred-for-pedestrians","Riding a Motorcycle":"riding-a-motorcycle","Roads Under Construction Prohibited":"roads-under-construction-prohibited","Semi or Tractor with One or More Trailers Prohibited":"semi-or-tractor-with-one-or-more-trailers-prohibited","Single Axle Vehicles Prohibited":"single-axle-vehicles-prohibited","Tandem Axle Vehicles Prohibited":"tandem-axle-vehicles-prohibited","Through Traffic Prohibited":"through-traffic-prohibited","Truck with Trailers Restriction":"truck-with-trailers-restriction","Use Preferred Hazmat Routes":"use-preferred-hazmat-routes","Use Preferred Truck Routes":"use-preferred-truck-routes",Walking:"walking","Weight Restriction":"weight-restriction"},{ignoreUnknown:!1}),O=(0,i.O)()({esriSpatialRelIntersects:"intersects",esriSpatialRelContains:"contains",esriSpatialRelCrosses:"crosses",esriSpatialRelEnvelopeIntersects:"envelope-intersects",esriSpatialRelIndexIntersects:"index-intersects",esriSpatialRelOverlaps:"overlaps",esriSpatialRelTouches:"touches",esriSpatialRelWithin:"within",esriSpatialRelRelation:"relation"}),I=(0,i.O)()({esriGeometryPoint:"point",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"envelope",esriGeometryMultipoint:"multipoint"}),Z=(0,i.O)()({esriNAUTCost:"cost",esriNAUTDescriptor:"descriptor",esriNAUTRestriction:"restriction",esriNAUTHierarchy:"hierarchy"}),D=(0,i.O)()({esriDSTAltName:"alt-name",esriDSTArrive:"arrive",esriDSTBranch:"branch",esriDSTCrossStreet:"cross-street",esriDSTCumulativeLength:"cumulative-length",esriDSTDepart:"depart",esriDSTEstimatedArrivalTime:"estimated-arrival-time",esriDSTExit:"exit",esriDSTGeneral:"general",esriDSTLength:"length",esriDSTServiceTime:"service-time",esriDSTStreetName:"street-name",esriDSTSummary:"summary",esriDSTTime:"time",esriDSTTimeWindow:"time-window",esriDSTToward:"toward",esriDSTViolationTime:"violation-time",esriDSTWaitTime:"wait-time"});r.d(t,["$n",0,T,"$r",0,g,"EM",0,h,"Ec",0,D,"JJ",0,m,"Mm",0,M,"OC",0,N,"Sr",0,c,"UO",0,l,"Vj",0,I,"WU",0,Z,"Y8",0,n,"Z7",0,a,"_6",0,C,"aJ",0,p,"dd",0,S,"dn",0,u,"et",0,A,"fe",0,v,"gD",0,w,"hE",0,d,"hY",0,s,"iM",0,b,"mt",0,f,"ow",0,y,"vS",0,O])},2272(e,t,r){r.d(t,{Dl:()=>u,gf:()=>c,jV:()=>a,lF:()=>p});var i=r(92602),o=r(70333),s=r(4718),n=r(84952),l=r(926);function a(e,t){return t?{...t,query:{...e,...t.query}}:{query:e}}function u(e){return"string"==typeof e?(0,n.An)(e):(0,s.o8)(e)}function p(e,t,r){let i={};for(let o in e){if("declaredClass"===o)continue;let s=e[o];if(null!=s&&"function"!=typeof s)if(Array.isArray(s))i[o]=s.map(e=>p(e));else if("object"==typeof s)if(s.toJSON){let e=s.toJSON(r?.[o]);i[o]=t?e:JSON.stringify(e)}else i[o]=t?s:JSON.stringify(s);else i[o]=s}return i}async function c(e,t,s){return function(e,t){return e?t&&(0,l.Qc)(e)?t:(0,l.getApiKey)(e)??o.id?.findCredential(e)?.token:null}(e,t)||(!o.id&&i.A.request.useIdentity&&await Promise.all([r.e(6361),r.e(6475),r.e(3713)]).then(()=>r(50148)),(await o.id.getCredential(e,s))?.token)}},93470(e,t,r){const i=[252,146,31,255],o={type:"esriSMS",style:"esriSMSCircle",size:6,color:i,outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[153,153,153,255]}},s={type:"esriSLS",style:"esriSLSSolid",width:.75,color:i};r.d(t,["Cb",0,o,"HW",0,{type:"esriSLS",style:"esriSLSSolid",color:[0,0,0,255],width:1.5},"JR",0,[153,153,153,255],"JZ",0,{type:"esriTS",color:[255,255,255,255],font:{family:"arial-unicode-ms",size:10,weight:"bold"},horizontalAlignment:"center",kerning:!0,haloColor:[0,0,0,255],haloSize:1,rotated:!1,text:"",xoffset:0,yoffset:0,angle:0},"WR",0,{type:"esriSFS",style:"esriSFSSolid",color:[252,146,31,196],outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[255,255,255,191]}},"b6",0,{type:"esriSFS",style:"esriSFSSolid",color:[0,0,0,255],outline:null},"fT",0,i,"nC",0,{type:"esriSMS",style:"esriSMSCircle",color:[0,0,0,255],outline:null,size:10.5},"yM",0,s])},26121(e,t,r){r.d(t,{I6:()=>p,ci:()=>u,dL:()=>a,wN:()=>c});var i=r(49186),o=r(84952),s=r(77548),n=r(20655),l=r(59923);async function a(e){let t=[];for(let r of e.allLayers)if("beforeSave"in r&&"function"==typeof r.beforeSave){let e=r.beforeSave();e&&t.push(e)}await Promise.allSettled(t)}function u(e,t,r){let o=(e.messages??[]).filter(({type:e})=>"error"===e).map(({name:e,message:t,details:r})=>new i.A(e,t,r));if(e.blockedRelativeUrls&&(o=o.concat(e.blockedRelativeUrls.map(e=>(0,l.GL)("url",`Relative url '${e}' is not supported`)))),r){let{ignoreUnsupported:e,supplementalUnsupportedErrors:t=[],requiredPropertyChecksDisabled:i}=r;e&&(o=o.filter(({name:e})=>!(l.MG.has(e)||t.includes(e)))),i&&(o=o.filter(e=>"web-document-write:property-required"!==e.name))}if(o.length>0)throw new i.A(t.errorName,"Failed to save due to unsupported or invalid content. See 'details.errors' for more detailed information",{errors:o})}function p(e){return(0,s.qd)(e).some(e=>!!e.charts?.length)}function c(e,t){let r=t?.portal,i=e?.id&&(e.portal||n.A.getDefault());return!!r&&!!i&&!(0,o.ut)(i.restUrl,r.restUrl)}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[514,3932,6553],{78955(e,t,r){r.d(t,{Bw:()=>g,C:()=>i,Cc:()=>v,LI:()=>p,Om:()=>x,S8:()=>M,T9:()=>h,WQ:()=>o,Z0:()=>R,aI:()=>C,hG:()=>c,hZ:()=>l,hs:()=>m,jk:()=>f,m3:()=>d,t2:()=>w});var n=r(34304);function i(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}function l(e,t,r,n,i){return e[0]=t,e[1]=r,e[2]=n,e[3]=i,e}function o(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e[2]=t[2]+r[2],e[3]=t[3]+r[3],e}function a(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e[2]=t[2]-r[2],e[3]=t[3]-r[3],e}function s(e,t,r){return e[0]=t[0]*r[0],e[1]=t[1]*r[1],e[2]=t[2]*r[2],e[3]=t[3]*r[3],e}function u(e,t,r){return e[0]=t[0]/r[0],e[1]=t[1]/r[1],e[2]=t[2]/r[2],e[3]=t[3]/r[3],e}function f(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e[2]=Math.min(t[2],r[2]),e[3]=Math.min(t[3],r[3]),e}function h(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e[2]=Math.max(t[2],r[2]),e[3]=Math.max(t[3],r[3]),e}function p(e,t){return e[0]=Math.round(t[0]),e[1]=Math.round(t[1]),e[2]=Math.round(t[2]),e[3]=Math.round(t[3]),e}function m(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e[3]=t[3]*r,e}function y(e,t){let r=t[0]-e[0],n=t[1]-e[1],i=t[2]-e[2],l=t[3]-e[3];return Math.sqrt(r*r+n*n+i*i+l*l)}function c(e,t){let r=t[0]-e[0],n=t[1]-e[1],i=t[2]-e[2],l=t[3]-e[3];return r*r+n*n+i*i+l*l}function g(e){let t=e[0],r=e[1],n=e[2],i=e[3];return Math.sqrt(t*t+r*r+n*n+i*i)}function d(e){let t=e[0],r=e[1],n=e[2],i=e[3];return t*t+r*r+n*n+i*i}function M(e,t){let r=t[0],n=t[1],i=t[2],l=t[3],o=r*r+n*n+i*i+l*l;return o>0&&(o=1/Math.sqrt(o),e[0]=r*o,e[1]=n*o,e[2]=i*o,e[3]=l*o),e}function x(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3]}function v(e,t,r,n){let i=t[0],l=t[1],o=t[2],a=t[3];return e[0]=i+n*(r[0]-i),e[1]=l+n*(r[1]-l),e[2]=o+n*(r[2]-o),e[3]=a+n*(r[3]-a),e}function R(e,t,r){let n=t[0],i=t[1],l=t[2],o=t[3];return e[0]=r[0]*n+r[4]*i+r[8]*l+r[12]*o,e[1]=r[1]*n+r[5]*i+r[9]*l+r[13]*o,e[2]=r[2]*n+r[6]*i+r[10]*l+r[14]*o,e[3]=r[3]*n+r[7]*i+r[11]*l+r[15]*o,e}function w(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]}function C(e,t){let r=e[0],i=e[1],l=e[2],o=e[3],a=t[0],s=t[1],u=t[2],f=t[3],h=(0,n.FD)();return Math.abs(r-a)<=h*Math.max(1,Math.abs(r),Math.abs(a))&&Math.abs(i-s)<=h*Math.max(1,Math.abs(i),Math.abs(s))&&Math.abs(l-u)<=h*Math.max(1,Math.abs(l),Math.abs(u))&&Math.abs(o-f)<=h*Math.max(1,Math.abs(o),Math.abs(f))}const b=a,q=s,Z=u,z=y,G=c,S=g,T=d;Object.freeze(Object.defineProperty({__proto__:null,add:o,ceil:function(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e[2]=Math.ceil(t[2]),e[3]=Math.ceil(t[3]),e},copy:i,copyVec3:function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e},dist:z,distance:y,div:Z,divide:u,dot:x,equals:C,exactEquals:w,floor:function(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e[2]=Math.floor(t[2]),e[3]=Math.floor(t[3]),e},inverse:function(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e[3]=1/t[3],e},len:S,length:g,lerp:v,max:h,min:f,mul:q,multiply:s,negate:function(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e[3]=-t[3],e},normalize:M,random:function(e,t=1){let r,i,l,o,a,s,u=n.Ov;do{r=2*u()-1,i=2*u()-1,a=r*r+i*i}while(a>=1);do{l=2*u()-1,o=2*u()-1,s=l*l+o*o}while(s>=1);let f=Math.sqrt((1-a)/s);return e[0]=t*r,e[1]=t*i,e[2]=t*l*f,e[3]=t*o*f,e},round:p,scale:m,scaleAndAdd:function(e,t,r,n){return e[0]=t[0]+r[0]*n,e[1]=t[1]+r[1]*n,e[2]=t[2]+r[2]*n,e[3]=t[3]+r[3]*n,e},set:l,sqrDist:G,sqrLen:T,squaredDistance:c,squaredLength:d,str:function(e){return"vec4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+")"},sub:b,subtract:a,transformMat4:R,transformQuat:function(e,t,r){let n=t[0],i=t[1],l=t[2],o=r[0],a=r[1],s=r[2],u=r[3],f=u*n+a*l-s*i,h=u*i+s*n-o*l,p=u*l+o*i-a*n,m=-o*n-a*i-s*l;return e[0]=f*u+m*-o+h*-s-p*-a,e[1]=h*u+m*-a+p*-o-f*-s,e[2]=p*u+m*-s+f*-a-h*-o,e[3]=t[3],e}},Symbol.toStringTag,{value:"Module"}))},76553(e,t,r){function n(e){return e&&"getAtOrigin"in e&&"originOf"in e}r.d(t,{H:()=>n})},96520(e,t,r){r.d(t,{u:()=>s});var n=r(86211),i=r(21325),l=r(52006);function o(e,t,r){if(null==e.hasM||e.hasZ)for(let e of t)for(let t of e)t.length>2&&(t[2]*=r)}function a(e,t,r){if(null==e.hasM||e.hasZ)for(let e of t)for(let t of e){let e=(0,l.yP)(t);e.length>2&&(e[2]*=r)}}function s(e,t,r){if(!e&&!t||!r)return;let i=(0,n.G9)(r);u(e,r,i),u(t,r,i)}function u(e,t,r){if(e)for(let n of e)f(n.geometry,t,r)}function f(e,t,r){if(!e?.spatialReference||(0,i.aI)(e.spatialReference,t))return;let l=(0,n.G9)(e.spatialReference)/r;if(1!==l)if("x"in e)null!=e.z&&(e.z*=l);else if("curveRings"in e)a(e,e.curveRings,l);else if("curvePaths"in e)a(e,e.curvePaths,l);else if("rings"in e)o(e,e.rings,l);else if("paths"in e)o(e,e.paths,l);else if("points"in e&&(null==e.hasM||e.hasZ))for(let t of e.points)t.length>2&&(t[2]*=l)}},22671(e,t,r){r.d(t,{A:()=>M});var n,i=r(32198),l=r(52106),o=r(66552),a=r(25482),s=r(4718),u=r(91429),f=r(16930),h=r(60408),p=r(65864),m=r(50498),y=r(20437),c=r(36005),g=r(43937);const d=new o.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let M=n=class extends a.o{constructor(e){super(e),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(e,t){return this.readFeaturesWithClass(e,t,l.A)}writeGeometryType(e,t,r,n){if(e)return void d.write(e,t,r,n);let{features:i}=this;if(i)for(let e of i)if(null!=e?.geometry)return void d.write(e.geometry.type,t,r,n)}readQueryGeometry(e,t){if(!e)return null;let r=!!e.spatialReference,n=(0,p.rS)(e);return n&&!r&&t.spatialReference&&(n.spatialReference=f.A.fromJSON(t.spatialReference)),n}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());let{features:r}=this;if(r)for(let e of r)if(e&&null!=e.geometry&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new n(this.cloneProperties())}cloneProperties(){return(0,s.o8)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(e){let t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let r=0;r<t.features.length;r++){let n=t.features[r];n.geometry&&=(e?.[r])?.toJSON()||n.geometry}return t}quantize(e){let{scale:[t,r],translate:[n,i]}=e,l=this.features,o=this._getQuantizationFunction(this.geometryType,e=>Math.round((e-n)/t),e=>Math.round((i-e)/r));for(let e=0,t=l.length;e<t;e++)o?.(l[e].geometry)||(l.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){let{geometryType:e,features:t,transform:r}=this;if(!r)return this;let{translate:[n,i],scale:[l,o]}=r,a=null,s=null;if(this.hasZ&&null!=r?.scale?.[2]){let{translate:[,,e],scale:[,,t]}=r;a=r=>r*t+e}if(this.hasM&&null!=r?.scale?.[3]){let{translate:[,,,e],scale:[,,,t]}=r;s=r=>null==r?r:r*t+e}let u=this._getHydrationFunction(e,e=>e*l+n,e=>i-e*o,a,s);for(let{geometry:e}of t)null!=e&&u&&u(e);return this.transform=null,this}readFeaturesWithClass(e,t,r){let n=f.A.fromJSON(t.spatialReference),i=[];for(let t=0;t<e.length;t++){let l=e[t],o=r.fromJSON(l),a=l.geometry?.spatialReference;null!=o.geometry&&!a&&(o.geometry.spatialReference=n);let s=l.aggregateGeometries,u=o.aggregateGeometries;if(s&&null!=u)for(let e in u){let t=u[e],r=s[e]?.spatialReference;null!=t&&!r&&(t.spatialReference=n)}i.push(o)}return i}_quantizePoints(e,t,r){let n,i,l=[];for(let o=0,a=e.length;o<a;o++){let a=e[o];if(o>0){let e=t(a[0]),o=r(a[1]);(e!==n||o!==i)&&(l.push([e-n,o-i]),n=e,i=o)}else n=t(a[0]),i=r(a[1]),l.push([n,i])}return l.length>0?l:null}_getQuantizationFunction(e,t,r){return"point"===e?e=>(e.x=t(e.x),e.y=r(e.y),e):"polyline"===e||"polygon"===e?e=>{let n=(0,h.Bi)(e)?e.rings:e.paths,i=[];for(let e=0,l=n.length;e<l;e++){let l=n[e],o=this._quantizePoints(l,t,r);o&&i.push(o)}return i.length>0?((0,h.Bi)(e)?e.rings=i:e.paths=i,e):null}:"multipoint"===e?e=>{let n=this._quantizePoints(e.points,t,r);return n&&n.length>0?(e.points=n,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,r,n,i){return"point"===e?e=>{e.x=t(e.x),e.y=r(e.y),n&&(e.z=n(e.z))}:"polyline"===e||"polygon"===e?e=>{let l,o,a=(0,h.Bi)(e)?e.rings:e.paths;for(let e=0,n=a.length;e<n;e++){let n=a[e];for(let e=0,i=n.length;e<i;e++){let i=n[e];e>0?(l+=i[0],o+=i[1]):(l=i[0],o=i[1]),i[0]=t(l),i[1]=r(o)}}if(n&&i)for(let e=0,t=a.length;e<t;e++){let t=a[e];for(let e=0,r=t.length;e<r;e++){let r=t[e];r[2]=n(r[2]),r[3]=i(r[3])}}else if(n)for(let e=0,t=a.length;e<t;e++){let t=a[e];for(let e=0,r=t.length;e<r;e++){let r=t[e];r[2]=n(r[2])}}else if(i)for(let e=0,t=a.length;e<t;e++){let t=a[e];for(let e=0,r=t.length;e<r;e++){let r=t[e];r[2]=i(r[2])}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=r(e.ymin),e.xmax=t(e.xmax),e.ymax=r(e.ymax),n&&null!=e.zmax&&null!=e.zmin&&(e.zmax=n(e.zmax),e.zmin=n(e.zmin)),i&&null!=e.mmax&&null!=e.mmin&&(e.mmax=i(e.mmax),e.mmin=i(e.mmin))}:"multipoint"===e?e=>{let l,o,a=e.points;for(let e=0,n=a.length;e<n;e++){let n=a[e];e>0?(l+=n[0],o+=n[1]):(l=n[0],o=n[1]),n[0]=t(l),n[1]=r(o)}if(n&&i)for(let e=0,t=a.length;e<t;e++){let t=a[e];t[2]=n(t[2]),t[3]=i(t[3])}else if(n)for(let e=0,t=a.length;e<t;e++){let t=a[e];t[2]=n(t[2])}else if(i)for(let e=0,t=a.length;e<t;e++){let t=a[e];t[2]=i(t[2])}}:null}};(0,i.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],M.prototype,"displayFieldName",void 0),(0,i.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],M.prototype,"exceededTransferLimit",void 0),(0,i.Cg)([(0,u.MZ)({type:[l.A],json:{write:!0}})],M.prototype,"features",void 0),(0,i.Cg)([(0,c.w)("features")],M.prototype,"readFeatures",null),(0,i.Cg)([(0,u.MZ)({type:[y.A],json:{write:!0}})],M.prototype,"fields",void 0),(0,i.Cg)([(0,u.MZ)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:d.read}}})],M.prototype,"geometryType",void 0),(0,i.Cg)([(0,g.K)("geometryType")],M.prototype,"writeGeometryType",null),(0,i.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],M.prototype,"hasM",void 0),(0,i.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],M.prototype,"hasZ",void 0),(0,i.Cg)([(0,u.MZ)({types:m.yR,json:{write:!0}})],M.prototype,"queryGeometry",void 0),(0,i.Cg)([(0,c.w)("queryGeometry")],M.prototype,"readQueryGeometry",null),(0,i.Cg)([(0,u.MZ)({type:f.A,json:{write:!0}})],M.prototype,"spatialReference",void 0),(0,i.Cg)([(0,g.K)("spatialReference")],M.prototype,"writeSpatialReference",null),(0,i.Cg)([(0,u.MZ)({json:{write:!0}})],M.prototype,"transform",void 0),M=n=(0,i.Cg)([(0,u.$K)("esri.rest.support.FeatureSet")],M),M.prototype.toJSON.isDefaultToJSON=!0}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3561,5804,6553],{46130(e,t,r){r.d(t,{v:()=>o});var a=r(76553);function o(e){e?.writtenProperties&&e.writtenProperties.forEach(({target:e,propName:t,newOrigin:r})=>{(0,a.H)(e)&&r&&e.originOf(t)!==r&&e.updateOrigin(t,r)})}},76553(e,t,r){function a(e){return e&&"getAtOrigin"in e&&"originOf"in e}r.d(t,{H:()=>a})},63561(e,t,r){r.d(t,{save:()=>d,saveAs:()=>h});var a=r(71530),o=r(88788),s=r(10407),n=r(91682);const i="Media Layer",l=["media-layer:unsupported-source"];function u(e){return{isValid:"media"===e.type,errorMessage:"Layer.type should be 'media'"}}function c(e){return(0,o.m)(e,"portal-item",{withResources:!0})}function p(e){return Promise.resolve(e.layerJSON)}async function m(e,t){t.extent=e.fullExtent?await(0,s.sQ)(e.fullExtent):null}async function f(e,t){t.title||=e.title,await m(e,t),(0,s.OM)(t,s.mm.METADATA)}async function d(e,t){return(0,a.UN)({layer:e,itemType:i,validateLayer:u,createJSONContext:e=>c(e),createItemData:p,errorNamePrefix:"media-layer-save",supplementalUnsupportedErrors:l,setItemProperties:m,saveResources:(t,r)=>(0,n.r)(e.resourceReferences,r)},t)}async function h(e,t,r){return(0,a.Uh)({layer:e,itemType:i,validateLayer:u,createJSONContext:e=>c(e),createItemData:p,errorNamePrefix:"media-layer-save-as",supplementalUnsupportedErrors:l,newItem:t,setItemProperties:f,saveResources:(t,r)=>(0,n.r)(e.resourceReferences,r)},r)}},71530(e,t,r){r.d(t,{UN:()=>v,Uh:()=>I});var a=r(49186),o=r(46130),s=r(20655),n=r(80812),i=r(88788),l=r(10407),u=r(26121);async function c(e){let{layer:t,errorNamePrefix:r,validateLayer:o}=e;await t.load(),function(e,t,r){let o=r(e);if(!o.isValid)throw new a.A(`${t}:invalid-parameters`,o.errorMessage,{layer:e})}(t,r,o)}function p(e,t){return`Layer (title: ${e.title}, id: ${e.id}) of type '${e.declaredClass}' ${t}`}function m(e){let{item:t,errorNamePrefix:r,layer:o,validateItem:s}=e;if(function(e){let{item:t,itemType:r,additionalItemType:o,errorNamePrefix:s,layer:n}=e,i=[r];if(o&&i.push(o),!i.includes(t.type)){let e=i.map(e=>`'${e}'`).join(", ");throw new a.A(`${s}:portal-item-wrong-type`,`Portal item type should be one of: "${e}"`,{item:t,layer:n})}}(e),s){let e=s(t);if(!e.isValid)throw new a.A(`${r}:invalid-parameters`,e.errorMessage,{layer:o})}}function f(e){let{layer:t,errorNamePrefix:r}=e,{portalItem:o}=t;if(!o)throw new a.A(`${r}:portal-item-not-set`,p(t,"requires the portalItem property to be set"));if(!o.loaded)throw new a.A(`${r}:portal-item-not-loaded`,p(t,"cannot be saved to a portal item that does not exist or is inaccessible"));m({...e,item:o})}function d(e){let{newItem:t,itemType:r}=e,a=n.default.from(t);return a.id&&(a=a.clone(),a.id=null),a.type??=r,a.portal??=s.A.getDefault(),m({...e,item:a}),a}function h(e){return(0,i.m)(e,"portal-item")}async function w(e,t,r){"beforeSave"in e&&"function"==typeof e.beforeSave&&await e.beforeSave();let a=e.write({},t);return await Promise.all(t.resources?.pendingOperations??[]),(0,u.ci)(t,{errorName:"layer-write:unsupported"},r),a}function y(e){(0,l.LG)(e,l.mm.JSAPI),e.typeKeywords&&=e.typeKeywords.filter((e,t,r)=>r.indexOf(e)===t)}async function v(e,t){let{layer:r,createItemData:a,createJSONContext:s,setItemProperties:n,saveResources:i,supplementalUnsupportedErrors:l}=e;await c(e),f(e);let u=r.portalItem,p=s?s(u):h(u),m=await a({layer:r,layerJSON:await w(r,p,{...t,supplementalUnsupportedErrors:l})},u);return await(n?.(r,u,m)),y(u),await u.update({data:m}),(0,o.v)(p),await(i?.(u,p)),u}async function I(e,t){let{layer:r,createItemData:a,createJSONContext:s,setItemProperties:n,saveResources:i,supplementalUnsupportedErrors:l}=e;await c(e);let u=d(e),p=s?s(u):h(u),m=await a({layer:r,layerJSON:await w(r,p,{...t,supplementalUnsupportedErrors:l})},u);return await n(r,u,m),y(u),await async function(e,t,r){let a=e.portal;await a.signIn(),await a.user.addItem({item:e,data:t,folder:r?.folder})}(u,m,t),r.portalItem=u,(0,o.v)(p),await(i?.(u,p)),u}},88788(e,t,r){r.d(t,{m:()=>n,v:()=>s});var a=r(84952),o=r(20655);function s(e,t){return{...i(e,t),readResourcePaths:[]}}function n(e,t,r){let o=(0,a.An)(r?.forceNewItemContext?null:e.itemUrl);return{...i(e,t,r),messages:[],writtenProperties:[],blockedRelativeUrls:[],verifyItemRelativeUrls:o?{rootPath:o.path,writtenUrls:[]}:null,resources:r?.withResources?{toAdd:[],toUpdate:[],toKeep:[],pendingOperations:[]}:null}}function i(e,t,r){return{origin:t,url:(0,a.An)(r?.forceNewItemContext?null:e.itemUrl),portal:e.portal||o.A.getDefault(),portalItem:e}}},15804(e,t,r){r.d(t,{addOrUpdateResources:()=>i,bg:()=>m,cL:()=>p,fetchResources:()=>n,removeAllResources:()=>u,removeResource:()=>l});var a=r(56507),o=r(49186),s=r(84952);async function n(e,t={},r){await e.load(r);let a=(0,s.fj)(e.itemUrl,"resources"),{start:o=1,num:n=10,sortOrder:i="asc",sortField:l="resource"}=t,u={query:{start:o,num:n,sortOrder:i,sortField:l,token:e.apiKey},signal:r?.signal},c=await e.portal.request(a,u);return{total:c.total,nextStart:c.nextStart,resources:c.resources.map(({created:t,size:r,resource:a})=>({created:new Date(t),size:r,resource:e.resourceFromPath(a)}))}}async function i(e,t,r,a){let n=new Map;for(let{resource:e,content:a,compress:s,access:i}of t){if(!e.hasPath())throw new o.A(`portal-item-resource-${r}:invalid-path`,"Resource does not have a valid path");let[t,l]=c(e.path),u=`${t}/${s??""}/${i??""}`;n.has(u)||n.set(u,{prefix:t,compress:s,access:i,files:[]}),n.get(u).files.push({fileName:l,content:a})}await e.load(a);let i=(0,s.fj)(e.userItemUrl,"add"===r?"addResources":"updateResources");for(let{prefix:t,compress:r,access:s,files:l}of n.values())for(let n=0;n<l.length;n+=25){let u=l.slice(n,n+25),c=new FormData;t&&"."!==t&&c.append("resourcesPrefix",t),r&&c.append("compress","true"),s&&c.append("access",s);let p=0;for(let{fileName:e,content:t}of u)c.append("file"+ ++p,t,e);c.append("f","json");try{await e.portal.request(i,{method:"post",body:c,signal:a?.signal})}catch(e){if(a?.ignoreResourceCopyErrors&&e instanceof o.A&&"CONT_00942"===e.details?.messageCode)continue;throw e}}}async function l(e,t,r){if(!t.hasPath())throw new o.A("portal-item-resources-remove:invalid-path","Resource does not have a valid path");await e.load(r);let a=(0,s.fj)(e.userItemUrl,"removeResources");await e.portal.request(a,{method:"post",query:{resource:t.path},signal:r?.signal}),t.portalItem=null}async function u(e,t){await e.load(t);let r=(0,s.fj)(e.userItemUrl,"removeResources");return e.portal.request(r,{method:"post",query:{deleteAll:!0},signal:t?.signal})}function c(e){let t=e.lastIndexOf("/");return-1===t?[".",e]:[e.slice(0,t),e.slice(t+1)]}async function p(e){return"blob"===e.type?e.blob:"json"===e.type?new Blob([e.jsonString],{type:"application/json"}):(await(0,a.A)(e.url,{responseType:"blob"})).data}function m(e,t){if(!e.hasPath())return null;let[r,,a]=function(e){let[t,r]=function(e){let t=(0,s.Zo)(e);return null==t?[e,""]:[e.slice(0,e.length-t.length-1),`.${t}`]}(e),[a,o]=c(t);return[a,o,r]}(e.path);return e.portalItem.resourceFromPath((0,s.fj)(r,t+a))}},91682(e,t,r){r.d(t,{S:()=>l,r:()=>i});var a=r(49186),o=r(17676),s=r(13069),n=r(15804);async function i(e,t,r){await c(await u(e,t,r),t,r)}async function l(e,t,r,a,o){let s=await u(r,a,o);await e.update({data:t}),await c(s,a,o)}async function u(e,t,i){if(!t?.resources)return;let l=function(e,t){let{portalItem:r,portalItemResourcePath:a}=e,{portalItem:o,portalItemResourcePath:s}=t;return r===o&&(!(a||s)||a===s)}(e,t)?new Set(e.paths):new Set;e.paths.length=0,e.portalItem=t.portalItem,e.portalItemResourcePath=t.portalItemResourcePath;let u=new Set(t.resources.toKeep.map(e=>e.resource.path)),c=new Set,p=[];u.forEach(t=>{l.delete(t),e.paths.push(t)});let m=[],f=[],d=[];for(let r of t.resources.toUpdate)if(l.delete(r.resource.path),u.has(r.resource.path)||c.has(r.resource.path)){let{resource:t,content:a,finish:o}=r,i=(0,n.bg)(t,(0,s.lk)());e.paths.push(i.path),m.push({resource:i,content:await(0,n.cL)(a),compress:r.compress}),o&&d.push(()=>o(i))}else{e.paths.push(r.resource.path),f.push({resource:r.resource,content:await(0,n.cL)(r.content),compress:r.compress});let t=r.finish;t&&d.push(()=>t(r.resource)),c.add(r.resource.path)}for(let r of t.resources.toAdd)if(e.paths.push(r.resource.path),l.has(r.resource.path))l.delete(r.resource.path);else{m.push({resource:r.resource,content:await(0,n.cL)(r.content),compress:r.compress});let e=r.finish;e&&d.push(()=>e(r.resource))}if(m.length||f.length){let{addOrUpdateResources:e}=await Promise.resolve().then(()=>r(15804));await e(t.portalItem,m,"add",i),await e(t.portalItem,f,"update",i)}if(d.forEach(e=>e()),0===p.length)return l;let h=await(0,o.Ol)(p);if((0,o.Te)(i),h.length>0)throw new a.A("save:resources","Failed to save one or more resources",{errors:h});return l}async function c(e,t,r){if(!e||!t.portalItem)return;let a=[];for(let o of e){let e=t.portalItem.resourceFromPath(o);a.push(e.portalItem.removeResource(e,r))}await(0,o.Lx)(a)}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7005],{82534(t,e,r){function n(){return[0,0,0,1]}function a(t){return[t[0],t[1],t[2],t[3]]}r.d(e,{o8:()=>a,vt:()=>n});const i=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:i,clone:a,create:n,fromValues:function(t,e,r,n){return[t,e,r,n]}},Symbol.toStringTag,{value:"Module"})),r.d(e,["zK",0,i])},67026(t,e,r){r.d(e,{A6:()=>M,Xd:()=>l,Xr:()=>d,lw:()=>c,x8:()=>u});var n=r(29242),a=r(82534),i=r(51850),s=r(34304),h=r(35522),o=r(78955);function u(t,e,r){r*=.5;let n=Math.sin(r);return t[0]=n*e[0],t[1]=n*e[1],t[2]=n*e[2],t[3]=Math.cos(r),t}function l(t,e){let r=2*Math.acos(e[3]),n=Math.sin(r/2);return n>(0,s.FD)()?(t[0]=e[0]/n,t[1]=e[1]/n,t[2]=e[2]/n):(t[0]=1,t[1]=0,t[2]=0),r}function c(t,e,r){let n=e[0],a=e[1],i=e[2],s=e[3],h=r[0],o=r[1],u=r[2],l=r[3];return t[0]=n*l+s*h+a*u-i*o,t[1]=a*l+s*o+i*h-n*u,t[2]=i*l+s*u+n*o-a*h,t[3]=s*l-n*h-a*o-i*u,t}function f(t,e,r,n){let a,i,h,o,u,l=e[0],c=e[1],f=e[2],d=e[3],m=r[0],M=r[1],g=r[2],v=r[3];return i=l*m+c*M+f*g+d*v,i<0&&(i=-i,m=-m,M=-M,g=-g,v=-v),1-i>(0,s.FD)()?(a=Math.acos(i),h=Math.sin(a),o=Math.sin((1-n)*a)/h,u=Math.sin(n*a)/h):(o=1-n,u=n),t[0]=o*l+u*m,t[1]=o*c+u*M,t[2]=o*f+u*g,t[3]=o*d+u*v,t}function d(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=e[3],t}function m(t,e){let r,n=e[0]+e[4]+e[8];if(n>0)r=Math.sqrt(n+1),t[3]=.5*r,r=.5/r,t[0]=(e[5]-e[7])*r,t[1]=(e[6]-e[2])*r,t[2]=(e[1]-e[3])*r;else{let n=0;e[4]>e[0]&&(n=1),e[8]>e[3*n+n]&&(n=2);let a=(n+1)%3,i=(n+2)%3;r=Math.sqrt(e[3*n+n]-e[3*a+a]-e[3*i+i]+1),t[n]=.5*r,r=.5/r,t[3]=(e[3*a+i]-e[3*i+a])*r,t[a]=(e[3*a+n]+e[3*n+a])*r,t[i]=(e[3*i+n]+e[3*n+i])*r}return t}function M(t,e,r,n){let a=.5*Math.PI/180;e*=a,r*=a,n*=a;let i=Math.sin(e),s=Math.cos(e),h=Math.sin(r),o=Math.cos(r),u=Math.sin(n),l=Math.cos(n);return t[0]=i*o*l-s*h*u,t[1]=s*h*l+i*o*u,t[2]=s*o*u-i*h*l,t[3]=s*o*l+i*h*u,t}const g=o.C,v=o.hZ,_=o.WQ,b=c,P=o.hs,j=o.Om,p=o.Cc,x=o.Bw,w=x,C=o.m3,A=C,S=o.S8,z=o.t2,q=o.aI,Q=(0,i.vt)(),y=(0,i.fA)(1,0,0),O=(0,i.fA)(0,1,0),R=(0,a.vt)(),V=(0,a.vt)(),H=(0,n.vt)();Object.freeze(Object.defineProperty({__proto__:null,add:_,calculateW:function(t,e){let r=e[0],n=e[1],a=e[2];return t[0]=r,t[1]=n,t[2]=a,t[3]=Math.sqrt(Math.abs(1-r*r-n*n-a*a)),t},conjugate:d,copy:g,dot:j,equals:q,exactEquals:z,fromEuler:M,fromMat3:m,getAxisAngle:l,identity:function(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t},invert:function(t,e){let r=e[0],n=e[1],a=e[2],i=e[3],s=r*r+n*n+a*a+i*i,h=s?1/s:0;return t[0]=-r*h,t[1]=-n*h,t[2]=-a*h,t[3]=i*h,t},len:w,length:x,lerp:p,mul:b,multiply:c,normalize:S,random:function(t){let e=s.Ov,r=e(),n=e(),a=e(),i=Math.sqrt(1-r),h=Math.sqrt(r);return t[0]=i*Math.sin(2*Math.PI*n),t[1]=i*Math.cos(2*Math.PI*n),t[2]=h*Math.sin(2*Math.PI*a),t[3]=h*Math.cos(2*Math.PI*a),t},rotateX:function(t,e,r){r*=.5;let n=e[0],a=e[1],i=e[2],s=e[3],h=Math.sin(r),o=Math.cos(r);return t[0]=n*o+s*h,t[1]=a*o+i*h,t[2]=i*o-a*h,t[3]=s*o-n*h,t},rotateY:function(t,e,r){r*=.5;let n=e[0],a=e[1],i=e[2],s=e[3],h=Math.sin(r),o=Math.cos(r);return t[0]=n*o-i*h,t[1]=a*o+s*h,t[2]=i*o+n*h,t[3]=s*o-a*h,t},rotateZ:function(t,e,r){r*=.5;let n=e[0],a=e[1],i=e[2],s=e[3],h=Math.sin(r),o=Math.cos(r);return t[0]=n*o+a*h,t[1]=a*o-n*h,t[2]=i*o+s*h,t[3]=s*o-i*h,t},rotationTo:function(t,e,r){let n=(0,h.Om)(e,r);return n<-.999999?((0,h.$A)(Q,y,e),(0,h.Il)(Q)<1e-6&&(0,h.$A)(Q,O,e),(0,h.S8)(Q,Q),u(t,Q,Math.PI),t):n>.999999?(t[0]=0,t[1]=0,t[2]=0,t[3]=1,t):((0,h.$A)(Q,e,r),t[0]=Q[0],t[1]=Q[1],t[2]=Q[2],t[3]=1+n,S(t,t))},scale:P,set:v,setAxes:function(t,e,r,n){let a=H;return a[0]=r[0],a[3]=r[1],a[6]=r[2],a[1]=n[0],a[4]=n[1],a[7]=n[2],a[2]=-e[0],a[5]=-e[1],a[8]=-e[2],S(t,m(t,a))},setAxisAngle:u,slerp:f,sqlerp:function(t,e,r,n,a,i){return f(R,e,a,i),f(V,r,n,i),f(t,R,V,2*i*(1-i)),t},sqrLen:A,squaredLength:C,str:function(t){return"quat("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"}},Symbol.toStringTag,{value:"Module"})),r.d(e,["hZ",0,v,"t2",0,z])},48353(t,e,r){r.d(e,{l:()=>u});var n=r(34727),a=r(58083),i=r(51850);function s(t,e,r){let n=Math.sin(t),a=Math.cos(t),i=Math.sin(e),s=Math.cos(e),h=r;return h[0]=-n,h[4]=-i*a,h[8]=s*a,h[12]=0,h[1]=a,h[5]=-i*n,h[9]=s*n,h[13]=0,h[2]=0,h[6]=s,h[10]=i,h[14]=0,h[3]=0,h[7]=0,h[11]=0,h[15]=1,h}var h=r(49208),o=r(21325);function u(t,e,r,n){let i=(0,h.Tp)(t,n);if(null==i)return!1;let u=i.source.spatialReferenceId,m=i.dest.spatialReferenceId;if(u===m&&!l(m)&&(0!==u||(0,o.aI)(t,n)))return(0,a.kN)(r,e),!0;if(l(m)){let t=h.w5[u][10],n=h.w5[10][m];return null!=t&&null!=n&&(t(e,0,f,0),n(f,0,d,0),s(c*f[0],c*f[1],r),r[12]=d[0],r[13]=d[1],r[14]=d[2],!0)}let M=l(u);if((3===m||11===m||2===m||5===m)&&(2===u||M||3===u||5===u)){let t=h.w5[u][10],n=h.w5[10][m];return null!=t&&null!=n&&(t(e,0,f,0),n(f,0,d,0),M?function(t,e,r){s(t,e,r),(0,a.mg)(r,r)}(c*f[0],c*f[1],r):(0,a.D_)(r),r[12]=d[0],r[13]=d[1],r[14]=d[2],!0)}return!1}function l(t){return 1===t||6===t||8===t||4===t}const c=(0,n.kU)(1),f=(0,i.vt)(),d=(0,i.vt)()},27921(t,e,r){r.d(e,{$Q:()=>z,BX:()=>S,C:()=>u,Cr:()=>d,H:()=>Q,LV:()=>o,O_:()=>f,Qj:()=>l,T7:()=>w,Ui:()=>x,_I:()=>y,fA:()=>c,gv:()=>C,lU:()=>m,mN:()=>O,mP:()=>j,mR:()=>p,vE:()=>H,vt:()=>h,wE:()=>R});var n=r(34727),a=r(35522),i=r(51850),s=(r(78955),r(44280),r(32114));function h(t=I){return[t[0],t[1],t[2],t[3]]}function o(t=I[0],e=I[1],r=I[2],n=I[3]){return c(t,e,r,n,s.Km.get())}function u(t,e){return c(e[0],e[1],e[2],e[3],t)}function l(t){return t}function c(t,e,r,n,a=h()){return a[0]=t,a[1]=e,a[2]=r,a[3]=n,a}function f(t,e,r){let n=e[0]*e[0]+e[1]*e[1]+e[2]*e[2],a=Math.abs(n-1)>1e-5&&n>1e-12?1/Math.sqrt(n):1;return r[0]=e[0]*a,r[1]=e[1]*a,r[2]=e[2]*a,r[3]=-(r[0]*t[0]+r[1]*t[1]+r[2]*t[2]),r}function d(t,e,r,n=h()){let a=r[0]-e[0],i=r[1]-e[1],s=r[2]-e[2],o=t[0]-e[0],u=t[1]-e[1],l=t[2]-e[2],c=i*l-s*u,f=s*o-a*l,d=a*u-i*o,m=c*c+f*f+d*d,M=Math.abs(m-1)>1e-5&&m>1e-12?1/Math.sqrt(m):1;return n[0]=c*M,n[1]=f*M,n[2]=d*M,n[3]=-(n[0]*t[0]+n[1]*t[1]+n[2]*t[2]),n}function m(t,e,r,n=0,i=Math.floor(1/3*r),s=Math.floor(2/3*r)){if(r<3)return!1;e(g,n);let h=i,o=!1;for(;h<r-1&&!o;)e(v,h),h++,o=!(0,a.t2)(g,v);if(!o)return!1;for(h=Math.max(h,s),o=!1;h<r&&!o;)e(_,h),h++,(0,a.Re)(b,g,v),(0,a.S8)(b,b),(0,a.Re)(P,v,_),(0,a.S8)(P,P),o=!(0,a.t2)(g,_)&&!(0,a.t2)(v,_)&&Math.abs((0,a.Om)(b,P))<M;return o?(d(g,v,_,t),!0):(0!==n||1!==i||2!==s)&&m(t,e,r,0,1,2)}r(32728);const M=.99619469809,g=(0,i.vt)(),v=(0,i.vt)(),_=(0,i.vt)(),b=(0,i.vt)(),P=(0,i.vt)();function j(t,e,r){return e!==t&&u(t,e),t[3]=-(0,a.Om)(t,r),t}function p(t,e,r,n){return(0,a.$A)(_,e,t),f(r,_,n)}function x(t,e,r){return null!=e&&V(H(t,e.origin,e.direction,L,r))}function w(t,e,r){return V(H(t,e.origin,e.vector,0,r))}function C(t,e,r){return V(H(t,e.origin,e.vector,1,r))}function A(t,e){return O(t,e)<=0}function S(t,e){return O(t,e)>=0}function z(t,e){return function(t,e,r,n,i,s,h,o){let u=(0,a.Om)(t,r),l=O(t,e);if(u>=-o&&u<=o)return q(l,i,s);let c=-l/u,f=q(u,i,!1);return!(h&&!f&&!q(l,i,s))&&(f?c>n.c0&&(n.c0=c):c<n.c1&&(n.c1=c),n.c0<=n.c1)}(t,e.ray.origin,e.ray.direction,e,!1,!1,!0,1e-6)}function q(t,e,r){return r?e?t>=0:t<=0:e?t>0:t<0}function Q(t,e,r,n=!1){let i=e.at(-1),s=O(t,i),h=n?s>0:s<=0;for(let o=0;o<e.length;o++){let u=e.at(o),l=O(t,u),c=n?l>0:l<=0;h!==c&&(0,a.Cc)(r(),i,u,s/(s-l)),c&&(0,a.C)(r(),u),i=u,s=l,h=c}}function y(t,e,r){let n=(0,a.hs)(s.rq.get(),t,-t[3]),i=function(t,e,r){let n=(0,a.hs)(s.rq.get(),t,(0,a.Om)(t,e));return(0,a.Re)(r,e,n),r}(t,(0,a.Re)(s.rq.get(),e,n),s.rq.get());return(0,a.WQ)(r,i,n),r}function O(t,e){return(0,a.Om)(t,e)+t[3]}function R(t,e,r){for(let n=0;n<r;++n)if(A(t,e[n]))return!1;return!0}function V(t){return 0===t||1===t}function H(t,e,r,i,s){let h=(0,a.Om)(t,r),o=O(t,e);if(0===h)return o>=0?2:3;let u=-o/h;return 1&i&&(u=(0,n.qE)(u,0,1)),!(4&i)&&u<0||!(8&i)&&u>1?o>=0?2:3:((0,a.WQ)(s,e,(0,a.hs)(s,r,u)),o>=0?0:1)}const I=[0,0,1,0],L=8;(0,i.vt)()},44280(t,e,r){r.d(e,{g7:()=>h,gr:()=>s});var n=r(34727),a=r(35522),i=r(51850);function s(t,e){return(0,a.Om)(t,e)/(0,a.Bw)(t)}function h(t,e){let r=(0,a.Om)(t,e)/((0,a.Bw)(t)*(0,a.Bw)(e));return-(0,n.XM)(r)}(0,i.vt)(),(0,i.vt)()},32114(t,e,r){r.d(e,{Rc:()=>d,rq:()=>c,Km:()=>f}),r(44208);var n=r(26390),a=r(29242),i=r(9093),s=r(82534),h=r(48163),o=r(51850),u=r(91829);class l{constructor(t){this._create=t,this._items=[],this._itemsPtr=0}get(){return 0===this._itemsPtr&&(0,n.d)(()=>this._reset()),this._itemsPtr>=this._items.length&&this._items.push(this._create()),this._items[this._itemsPtr++]}_reset(){let t=2*this._itemsPtr;this._items.length>t&&(this._items.length=t),this._itemsPtr=0}static createVec2f64(){return new l(h.vt)}static createVec3f64(){return new l(o.vt)}static createVec4f64(){return new l(u.vt)}static createMat3f64(){return new l(a.vt)}static createMat4f64(){return new l(i.vt)}static createQuatf64(){return new l(s.vt)}get test(){}}l.createVec2f64();const c=l.createVec3f64(),f=l.createVec4f64(),d=(l.createMat3f64(),l.createMat4f64());l.createQuatf64()},32728(t,e,r){r.d(e,{YH:()=>s,nu:()=>h,wp:()=>i}),r(34727);var n=r(35522),a=r(51850);function i(t,e){let r=Math.sqrt(e[0]*e[0]+e[4]*e[4]+e[8]*e[8]),a=Math.sqrt(e[1]*e[1]+e[5]*e[5]+e[9]*e[9]),i=Math.sqrt(e[2]*e[2]+e[6]*e[6]+e[10]*e[10]);return(0,n.hZ)(t,r,a,i),t}function s(t,e,r){r||=t;let a=(0,n.Om)(t,e);(0,n.hZ)(r,t[0]-a*e[0],t[1]-a*e[1],t[2]-a*e[2]),(0,n.S8)(r,r)}function h(t,e,r,i=(0,a.vt)()){let s=(0,n.Bw)(t),h=(0,n.Bw)(e),l=(0,n.Om)(t,e)/(s*h);if(l<.9999999999999999){let a=Math.acos(l),c=((1-r)*s+r*h)/Math.sin(a),f=c/s*Math.sin((1-r)*a),d=c/h*Math.sin(r*a);return(0,n.hs)(o,t,f),(0,n.hs)(u,e,d),(0,n.WQ)(i,o,u)}return(0,n.Cc)(i,t,e,r)}(0,a.vt)(),(0,a.vt)(),(0,a.vt)();const o=(0,a.vt)(),u=(0,a.vt)()},57005(t,e,r){r.d(e,{ab:()=>_t,gm:()=>St});var n=r(77690),a=r(29242),i=r(9093),s=r(67026),h=r(82534),o=r(35522),u=r(51850),l=r(78955),c=r(91829),f=r(73941),d=r(98764),m=r(48353),M=r(9762),g=r(49208),v=r(27921),_=r(21325),b=r(48163),P=r(46610);const j=1e-6,p=(0,u.vt)(),x=(0,u.vt)();function w(t,e,r,n,a,i,s,h,o,u){return function(t,e,r){let n=gt(t.maxVert[0],t.minVert[0]),a=0;for(let e=1;e<7;++e){let r=gt(t.maxVert[e],t.minVert[e]);r>n&&(n=r,a=e)}ft(e,t.minVert[a]),ft(r,t.maxVert[a])}(t,n,a),gt(n,a)<j?1:(lt(s,n,a),mt(s,s),function(t,e,r,n){let{data:a,size:i}=t,s=-1/0,h=0;for(let t=0;t<a.length;t+=i){V[0]=a[t]-e[0],V[1]=a[t+1]-e[1],V[2]=a[t+2]-e[2];let n=r[0]*V[0]+r[1]*V[1]+r[2]*V[2],i=r[0]*r[0]+r[1]*r[1]+r[2]*r[2],o=V[0]*V[0]+V[1]*V[1]+V[2]*V[2]-n*n/i;o>s&&(s=o,h=t)}return ft(n,a,h),s}(e,n,s,i)<j?2:(lt(h,a,i),mt(h,h),lt(o,i,n),mt(o,o),dt(r,h,s),mt(r,r),W(e,r,s,h,o,u),0))}const C=(0,u.vt)(),A=(0,u.vt)(),S=(0,u.vt)(),z=(0,u.vt)(),q=(0,u.vt)(),Q=(0,u.vt)(),y=(0,u.vt)(),O=(0,u.vt)();function R(t,e,r,n,a,i,s,h,o){(function(t,e,r,n,a){!function(t,e,r,n,a){let{data:i,size:s}=t;ft(n,i),ft(a,n),r[0]=vt(X,e),r[1]=r[0];for(let t=s;t<i.length;t+=s){let s=i[t]*e[0]+i[t+1]*e[1]+i[t+2]*e[2];s<r[0]&&(r[0]=s,ft(n,i,t)),s>r[1]&&(r[1]=s,ft(a,i,t))}}(t,e,H,a,n);let i=vt(r,e);H[1]-j<=i&&(n[0]=void 0),H[0]+j>=i&&(a[0]=void 0)})(t,e,r,C,A),void 0!==C[0]&&(lt(S,C,r),mt(S,S),lt(z,C,n),mt(z,z),lt(q,C,a),mt(q,q),dt(Q,z,i),mt(Q,Q),dt(y,q,s),mt(y,y),dt(O,S,h),mt(O,O),W(t,Q,i,z,S,o),W(t,y,s,q,z,o),W(t,O,h,S,q,o)),void 0!==A[0]&&(lt(S,A,r),mt(S,S),lt(z,A,n),mt(z,z),lt(q,A,a),mt(q,q),dt(Q,z,i),mt(Q,Q),dt(y,q,s),mt(y,y),dt(O,S,h),mt(O,O),W(t,Q,i,z,S,o),W(t,y,s,q,z,o),W(t,O,h,S,q,o))}const V=[0,0,0],H=(0,b.vt)(),I=(0,u.vt)(),L=(0,u.vt)(),B=(0,u.vt)(),D=(0,u.vt)(),F=(0,u.vt)(),Z=(0,u.vt)();function W(t,e,r,n,a,i){if(Mt(e)<j)return;dt(I,r,e),dt(L,n,e),dt(B,a,e),k(t,e,H),F[1]=H[0],D[1]=H[1],Z[1]=D[1]-F[1];let s=[r,n,a],h=[I,L,B];for(let r=0;r<3;++r){k(t,s[r],H),F[0]=H[0],D[0]=H[1],k(t,h[r],H),F[2]=H[0],D[2]=H[1],Z[0]=D[0]-F[0],Z[2]=D[2]-F[2];let n=ot(Z);n<i.quality&&(ft(i.b0,s[r]),ft(i.b1,e),ft(i.b2,h[r]),i.quality=n)}}const X=(0,u.vt)();function k(t,e,r){let{data:n,size:a}=t,i=1/0,s=-1/0,h=e[0],o=e[1],u=e[2];for(let t=0;t<n.length;t+=a){let e=n[t]*h+n[t+1]*o+n[t+2]*u;i=Math.min(i,e),s=Math.max(s,e)}r[0]=i,r[1]=s}function K(t,e,r){r.setCenter(t),r.setHalfSize((0,o.hs)(e,e,.5)),r.setQuaternion(h.zK)}const T=(0,u.vt)(),Y=(0,u.vt)(),E=(0,u.vt)(),$=(0,u.vt)(),N=(0,u.vt)(),U=(0,u.vt)();function G(t,e,r){ft(T,e),Math.abs(e[0])>Math.abs(e[1])&&Math.abs(e[0])>Math.abs(e[2])?T[0]=0:Math.abs(e[1])>Math.abs(e[2])?T[1]=0:T[2]=0,Mt(T)<j&&(T[0]=T[1]=T[2]=1),dt(Y,e,T),mt(Y,Y),dt(E,e,Y),mt(E,E),J(t,e,Y,E,$,N),lt(U,N,$),it(e,Y,E,$,N,U,r)}function J(t,e,r,n,a,i){k(t,e,H),a[0]=H[0],i[0]=H[1],k(t,r,H),a[1]=H[0],i[1]=H[1],k(t,n,H),a[2]=H[0],i[2]=H[1]}const tt=(0,u.vt)(),et=(0,u.vt)(),rt=(0,u.vt)(),nt=(0,a.fA)(1,0,0,0,1,0,0,0,1),at=(0,h.vt)();function it(t,e,r,n,a,i,s){nt[0]=t[0],nt[1]=t[1],nt[2]=t[2],nt[3]=e[0],nt[4]=e[1],nt[5]=e[2],nt[6]=r[0],nt[7]=r[1],nt[8]=r[2],s.setQuaternion(function(t,e){let r=e[0]+e[4]+e[8];if(r>0){let n=Math.sqrt(r+1);t[3]=.5*n,n=.5/n,t[0]=(e[5]-e[7])*n,t[1]=(e[6]-e[2])*n,t[2]=(e[1]-e[3])*n}else{let r=0;e[4]>e[0]&&(r=1),e[8]>e[3*r+r]&&(r=2);let n=(r+1)%3,a=(r+2)%3,i=Math.sqrt(e[3*r+r]-e[3*n+n]-e[3*a+a]+1);t[r]=.5*i,i=.5/i,t[3]=(e[3*n+a]-e[3*a+n])*i,t[n]=(e[3*n+r]+e[3*r+n])*i,t[a]=(e[3*a+r]+e[3*r+a])*i}return t}(at,nt)),ut(tt,n,a),ct(tt,tt,.5),ct(et,t,tt[0]),ct(rt,e,tt[1]),ut(et,et,rt),ct(rt,r,tt[2]),s.setCenter((0,o.WQ)(et,et,rt)),s.setHalfSize((0,o.hs)(tt,i,.5))}class st{constructor(t){this.minVert=Array(7),this.maxVert=Array(7),this.buffer=new ArrayBuffer(448);let e=0;this.minProj=new Float64Array(this.buffer,e,7),e+=56,this.maxProj=new Float64Array(this.buffer,e,7),e+=56;for(let t=0;t<7;++t)this.minVert[t]=new Float64Array(this.buffer,e,3),e+=24;for(let t=0;t<7;++t)this.maxVert[t]=new Float64Array(this.buffer,e,3),e+=24;for(let t=0;t<7;++t)this.minProj[t]=1/0,this.maxProj[t]=-1/0;let r=Array(7),n=Array(7),{data:a,size:i}=t;for(let t=0;t<a.length;t+=i){let e=a[t];e<this.minProj[0]&&(this.minProj[0]=e,r[0]=t),e>this.maxProj[0]&&(this.maxProj[0]=e,n[0]=t),e=a[t+1],e<this.minProj[1]&&(this.minProj[1]=e,r[1]=t),e>this.maxProj[1]&&(this.maxProj[1]=e,n[1]=t),e=a[t+2],e<this.minProj[2]&&(this.minProj[2]=e,r[2]=t),e>this.maxProj[2]&&(this.maxProj[2]=e,n[2]=t),e=a[t]+a[t+1]+a[t+2],e<this.minProj[3]&&(this.minProj[3]=e,r[3]=t),e>this.maxProj[3]&&(this.maxProj[3]=e,n[3]=t),e=a[t]+a[t+1]-a[t+2],e<this.minProj[4]&&(this.minProj[4]=e,r[4]=t),e>this.maxProj[4]&&(this.maxProj[4]=e,n[4]=t),e=a[t]-a[t+1]+a[t+2],e<this.minProj[5]&&(this.minProj[5]=e,r[5]=t),e>this.maxProj[5]&&(this.maxProj[5]=e,n[5]=t),e=a[t]-a[t+1]-a[t+2],e<this.minProj[6]&&(this.minProj[6]=e,r[6]=t),e>this.maxProj[6]&&(this.maxProj[6]=e,n[6]=t)}for(let t=0;t<7;++t){let e=r[t];ft(this.minVert[t],a,e),e=n[t],ft(this.maxVert[t],a,e)}}}class ht{constructor(){this.b0=(0,u.fA)(1,0,0),this.b1=(0,u.fA)(0,1,0),this.b2=(0,u.fA)(0,0,1),this.quality=0}}function ot(t){return t[0]*t[1]+t[0]*t[2]+t[1]*t[2]}function ut(t,e,r){t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2]}function lt(t,e,r){t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2]}function ct(t,e,r){t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r}function ft(t,e,r=0){t[0]=e[r],t[1]=e[r+1],t[2]=e[r+2]}function dt(t,e,r){let n=e[0],a=e[1],i=e[2],s=r[0],h=r[1],o=r[2];t[0]=a*o-i*h,t[1]=i*s-n*o,t[2]=n*h-a*s}function mt(t,e){let r=e[0]*e[0]+e[1]*e[1]+e[2]*e[2];if(r>0){let n=1/Math.sqrt(r);t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n}}function Mt(t){return t[0]*t[0]+t[1]*t[1]+t[2]*t[2]}function gt(t,e){let r=e[0]-t[0],n=e[1]-t[1],a=e[2]-t[2];return r*r+n*n+a*a}function vt(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}class _t{constructor(t=u.uY,e=qt,r=h.zK){this._data=[t[0],t[1],t[2],e[0],e[1],e[2],r[0],r[1],r[2],r[3]]}clone(){return _t.fromData(this._data)}invalidate(){this._data[3]=-1}get isValid(){return this._data[3]>=0}static fromData(t){let e=new _t;return e._copyFromData(t),e}static fromJSON(t){return new _t(t.center,t.halfSize,t.quaternion)}copy(t){this._copyFromData(t.data)}_copyFromData(t){for(let e=0;e<10;++e)this._data[e]=t[e]}get centerX(){return this._data[0]}get centerY(){return this._data[1]}get centerZ(){return this._data[2]}getCenter(t){return t[0]=this._data[0],t[1]=this._data[1],t[2]=this._data[2],t}setCenter(t){this._data[0]=t[0],this._data[1]=t[1],this._data[2]=t[2]}setCenterFromValues(t,e,r){this._data[0]=t,this._data[1]=e,this._data[2]=r}get halfSizeX(){return this._data[3]}get halfSizeY(){return this._data[4]}get halfSizeZ(){return this._data[5]}getHalfSize(t){return t[0]=this._data[3],t[1]=this._data[4],t[2]=this._data[5],t}setHalfSize(t){this._data[3]=t[0],this._data[4]=t[1],this._data[5]=t[2]}setHalfSizeFromValues(t,e,r){this._data[3]=t,this._data[4]=e,this._data[5]=r}getQuaternion(t){return t[0]=this._data[6],t[1]=this._data[7],t[2]=this._data[8],t[3]=this._data[9],t}getQuaternionConjugate(t){return t[0]=-this._data[6],t[1]=-this._data[7],t[2]=-this._data[8],t[3]=this._data[9],t}setQuaternion(t){this._data[6]=t[0],this._data[7]=t[1],this._data[8]=t[2],this._data[9]=t[3]}get data(){return this._data}getCorners(t){let e=this._data,r=(0,s.hZ)(bt,e[6],e[7],e[8],e[9]);for(let n=0;n<8;++n){let a=t[n];a[0]=(1&n?-1:1)*e[3],a[1]=(2&n?-1:1)*e[4],a[2]=(4&n?-1:1)*e[5],(0,o.gL)(a,a,r),a[0]+=e[0],a[1]+=e[1],a[2]+=e[2]}return t}getAxes(t){let e=this._data,r=(0,s.hZ)(bt,e[6],e[7],e[8],e[9]);return(0,o.gL)(t[0],[1,0,0],r),(0,o.gL)(t[1],[0,1,0],r),(0,o.gL)(t[2],[0,0,1],r),t}intersectsFrustum(t){let{centerX:e,centerY:r,centerZ:n}=this,a=t.planes;for(let t of a){let a=(0,v.Qj)(t),i=this.projectedRadius(a);if(e*a[0]+r*a[1]+n*a[2]+t[3]-i>0)return!1}let i=this.getAxes(Bt),s=t.points,h=this.getHalfSize(Vt);for(let t=0;t<3;++t){let a=i[t],u=-a[0]*e-a[1]*r-a[2]*n,l=h[t],c=!0,f=!0;for(let t of s){let e=(0,o.Om)(t,a)+u;c&&=e>l,f&&=e<-l}if(c||f)return!1}if(this.getCorners(Lt).some(e=>t.intersectsPoint(e)))return!0;let u=Xt;for(let t=0;t<3;++t){let a=i[t];u[t]=a[0]*e+a[1]*r+a[2]*n}if(t.points.some(t=>(t=>{for(let e=0;e<3;++e){let r=i[e],n=h[e],a=r[0]*t[0]+r[1]*t[1]+r[2]*t[2]-u[e];if(a>n||a<-n)return!1}return!0})(t)))return!0;let l=t.lines,c=Wt;for(let t=0;t<8;++t){let a=l[t].direction;for(let t of i){(0,o.$A)(c,a,t);let i=(0,o.Il)(c);if(!(i>0))continue;(0,o.hs)(c,c,1/i);let h=this.projectedRadius(c),u=c[0]*e+c[1]*r+c[2]*n,l=u-h,f=u+h,d=!1,m=!1,M=!0;for(let t of s){let e=(0,o.Om)(c,t);if(e>f){if(m){M=!1;break}d=!0}else{if(!(e<l)){M=!1;break}if(d){M=!1;break}m=!0}}if(M)return!1}}return!0}intersectsFrustumConservativeApproximation(t){return this.intersectPlane(t[0])<=0&&this.intersectPlane(t[1])<=0&&this.intersectPlane(t[2])<=0&&this.intersectPlane(t[3])<=0&&this.intersectPlane(t[4])<=0&&this.intersectPlane(t[5])<=0}intersectsFrustumConservativeApproximationWithMargin(t,e){return this.signedDistanceRangePlane(t[0]).min<=e&&this.signedDistanceRangePlane(t[1]).min<=e&&this.signedDistanceRangePlane(t[2]).min<=e&&this.signedDistanceRangePlane(t[3]).min<=e&&this.signedDistanceRangePlane(t[4]).min<=e&&this.signedDistanceRangePlane(t[5]).min<=e}get radius(){let t=this._data[3],e=this._data[4],r=this._data[5];return Math.sqrt(t*t+e*e+r*r)}intersectsPoint(t){let e=this.getAxes(Bt),r=this.getHalfSize(Vt),n=this.getCenter(Rt);for(let a=0;a<3;++a){let i=e[a],s=r[a],h=(0,o.Om)(i,t)-(0,o.Om)(i,n);if(h>s||h<-s)return!1}return!0}intersectSphere(t){let{center:e,radius:r}=t,n=this._data,a=n[3],i=n[4],s=n[5],h=a+i+s+r,o=n[0]-e[0];if(Math.abs(o)>h)return!1;let u=n[1]-e[1];if(Math.abs(u)>h)return!1;let l=n[2]-e[2];if(Math.abs(l)>h)return!1;let c=-n[6],f=-n[7],d=-n[8],m=f*l-d*u,M=d*o-c*l,g=c*u-f*o,v=f*g-d*M,_=d*m-c*g,b=c*M-f*m,P=2*n[9],j=Math.abs(o+m*P+2*v),p=Math.abs(u+M*P+2*_),x=Math.abs(l+g*P+2*b),w=j-Math.min(j,a),C=p-Math.min(p,i),A=x-Math.min(x,s);return w*w+C*C+A*A<=r*r}intersectSphereWithMBS(t,e=this.radius){let r=this._data,{center:n,radius:a}=t,i=e+a,s=r[0]-n[0];if(s>i)return!1;let h=r[1]-n[1];if(h>i)return!1;let o=r[2]-n[2];if(o>i||s*s+h*h+o*o>i*i)return!1;let u=-r[6],l=-r[7],c=-r[8],f=l*o-c*h,d=c*s-u*o,m=u*h-l*s,M=l*m-c*d,g=c*f-u*m,v=u*d-l*f,_=2*r[9],b=Math.abs(s+f*_+2*M),P=Math.abs(h+d*_+2*g),j=Math.abs(o+m*_+2*v),p=b-Math.min(b,r[3]),x=P-Math.min(P,r[4]),w=j-Math.min(j,r[5]);return p*p+x*x+w*w<a*a}intersectPlane(t){let e=t[0]*this._data[0]+t[1]*this._data[1]+t[2]*this._data[2]+t[3],r=this.projectedRadius((0,v.Qj)(t));return e>r?1:e<-r?-1:0}intersectRay(t,e,r=0){let n=this._data,a=bt;a[0]=-n[6],a[1]=-n[7],a[2]=-n[8],a[3]=n[9],pt[0]=t[0]-n[0],pt[1]=t[1]-n[1],pt[2]=t[2]-n[2];let i=(0,o.gL)(pt,pt,bt),s=(0,o.gL)(xt,e,bt),h=-1/0,u=1/0,l=this.getHalfSize(Vt);for(let t=0;t<3;t++){let e=i[t],n=s[t],a=l[t]+r;if(Math.abs(n)>1e-6){let t=(a-e)/n,r=(-a-e)/n;h=Math.max(h,Math.min(t,r)),u=Math.min(u,Math.max(t,r))}else if(e>a||e<-a)return!1}return h<=u}projectedArea(t,e,r,a){let i=this.getQuaternion(Pt);(0,s.Xr)(bt,i),pt[0]=t[0]-this._data[0],pt[1]=t[1]-this._data[1],pt[2]=t[2]-this._data[2],(0,o.gL)(pt,pt,bt);let h=this.getHalfSize(Vt),u=pt[0]<-h[0]?-1:+(pt[0]>h[0]),c=pt[1]<-h[1]?-1:+(pt[1]>h[1]),f=pt[2]<-h[2]?-1:+(pt[2]>h[2]),d=Math.abs(u)+Math.abs(c)+Math.abs(f);if(0===d)return 1/0;let m=1===d?4:6,M=6*(u+3*c+9*f+13);(0,n.I0)(Ht,i),(0,n.hs)(Ht,Ht,h);let g=this.getCenter(Rt);for(let t=0;t<m;t++){let r=At[M+t];(0,o.hZ)(pt,((1&r)<<1)-1,(2&r)-1,((4&r)>>1)-1),(0,o.ei)(pt,pt,Ht),(0,o.WQ)(wt,g,pt),wt[3]=1,(0,l.Z0)(wt,wt,e);let n=1/Math.max(1e-6,wt[3]);Ct[2*t]=wt[0]*n,Ct[2*t+1]=wt[1]*n}let v=2*m-2,_=Ct[0]*(Ct[3]-Ct[v+1])+Ct[v]*(Ct[1]-Ct[v-1]);for(let t=2;t<v;t+=2)_+=Ct[t]*(Ct[t+3]-Ct[t-1]);return Math.abs(_)*r*a*.125}projectedRadius(t){let e=this._data;return(0,o.fw)(pt,t,-e[6],-e[7],-e[8],e[9]),Math.abs(pt[0]*e[3])+Math.abs(pt[1]*e[4])+Math.abs(pt[2]*e[5])}signedDistancePlane(t,e){let r=this._data,n=t[0]*r[0]+t[1]*r[1]+t[2]*r[2]+e,a=this.projectedRadius(t);return n>a?n-a:n<-a?n+a:0}signedDistanceRangePlane(t){let e=t[0]*this._data[0]+t[1]*this._data[1]+t[2]*this._data[2]+t[3],r=this.projectedRadius((0,v.Qj)(t));return{min:e-r,max:e+r}}toAaBoundingBox(t){let e=this.getQuaternion(Pt),r=(0,n.I0)(Ht,e),a=this._data[3]*Math.abs(r[0])+this._data[4]*Math.abs(r[3])+this._data[5]*Math.abs(r[6]),i=this._data[3]*Math.abs(r[1])+this._data[4]*Math.abs(r[4])+this._data[5]*Math.abs(r[7]),s=this._data[3]*Math.abs(r[2])+this._data[4]*Math.abs(r[5])+this._data[5]*Math.abs(r[8]);t[0]=this._data[0]-a,t[1]=this._data[1]-i,t[2]=this._data[2]-s,t[3]=this._data[0]+a,t[4]=this._data[1]+i,t[5]=this._data[2]+s}transform(t,e,r,n=0,a=(0,d.lO)(r),i=(0,d.lO)(e),h=(0,g.jd)(e,i)){if(r===a)e.isGeographic?function(t,e,r,n,a=(0,d.lO)(r)){let i=(0,f.tO)(r),h=1+Math.max(0,n)/(i.radius+t.centerZ);t.getCenter(Ot),Ot[2]+=n,(0,M.projectBuffer)(Ot,r,0,Ot,a,0),e.setCenter(Ot);let u=t.getQuaternion(Pt);e.setQuaternion(u),(0,s.Xr)(bt,u),(0,o.hZ)(Dt,0,0,1),(0,o.gL)(Dt,Dt,bt);let l=t.getHalfSize(Vt);(0,o.hZ)(Dt,l[0]*Math.abs(Dt[0]),l[1]*Math.abs(Dt[1]),l[2]*Math.abs(Dt[2])),(0,o.hs)(Dt,Dt,i.inverseFlattening),(0,o.WQ)(Dt,l,Dt),e.setHalfSize((0,o.hs)(Dt,Dt,h))}(this,t,e,n,i):function(t,e,r,n,a=(0,d.lO)(r),i=(0,g.jd)(r,a)){t.getCorners(Lt);let h=t.getCenter(Rt);h[2]+=n,(0,m.l)(r,h,It,a),e.setCenterFromValues(It[12],It[13],It[14]);let u=2*Math.sqrt(1+It[0]+It[5]+It[10]);bt[0]=(It[6]-It[9])/u,bt[1]=(It[8]-It[2])/u,bt[2]=(It[1]-It[4])/u,bt[3]=.25*u;let l=t.getQuaternion(Pt);e.setQuaternion((0,s.lw)(bt,bt,l)),(0,s.Xr)(bt,bt),(0,o.hZ)(Ft,0,0,0);let c=e.getCenter(Rt);for(let t of Lt)t[2]+=n,i(t,0,t,0),(0,o.jb)(Dt,t,c),(0,o.gL)(Dt,Dt,bt),(0,o.tn)(Dt,Dt),(0,o.T9)(Ft,Ft,Dt);e.setHalfSize(Ft)}(this,t,e,n,i,h);else if(e.isGeographic&&(r.isWebMercator||(0,_.r1)(r)))!function(t,e,r,n,a){let i=e.getCenter(Rt);i[2]+=a;let s=(0,d.lO)(r);(0,M.projectBuffer)(i,t,0,i,s,0),zt(s,e,i,r,n)}(e,this,r,t,n);else if(e.isWebMercator&&(0,_.r1)(r))!function(t,e,r,n,a){let i=e.getCenter(Rt);i[2]+=a,zt(t,e,i,r,n)}(e,this,r,t,n);else{let a=this.getCenter(Rt);a[2]+=n,(0,M.projectBuffer)(a,e,0,a,r,0),t.setCenter(a),this!==t&&(t.setQuaternion(this.getQuaternion(Pt)),t.setHalfSize(this.getHalfSize(Vt)))}}}const bt=(0,h.vt)(),Pt=(0,h.vt)(),jt=(0,h.vt)(),pt=(0,u.vt)(),xt=(0,u.vt)(),wt=(0,c.vt)();const Ct=[.1,.2,.3,.4,.5,.6,.7,.8,.9,1,1.1,1.2],At=(()=>{let t=new Int8Array(162),e=0,r=r=>{for(let n=0;n<r.length;n++)t[e+n]=r[n];e+=6};return r([6,2,3,1,5,4]),r([0,2,3,1,5,4]),r([0,2,3,7,5,4]),r([0,1,3,2,6,4]),r([0,1,3,2,0,0]),r([0,1,5,7,3,2]),r([0,1,3,7,6,4]),r([0,1,3,7,6,2]),r([0,1,5,7,6,2]),r([0,1,5,4,6,2]),r([0,1,5,4,0,0]),r([0,1,3,7,5,4]),r([0,2,6,4,0,0]),r([0,0,0,0,0,0]),r([1,3,7,5,0,0]),r([2,3,7,6,4,0]),r([2,3,7,6,0,0]),r([2,3,1,5,7,6]),r([0,1,5,7,6,2]),r([0,1,5,7,6,4]),r([0,1,3,7,6,4]),r([4,5,7,6,2,0]),r([4,5,7,6,0,0]),r([4,5,1,3,7,6]),r([0,2,3,7,5,4]),r([6,2,3,7,5,4]),r([6,2,3,1,5,4]),t})();function St(t,e,r,n,a){let i=t.getQuaternion(Pt);a.setQuaternion(i),(0,s.Xr)(bt,i);let h=t.getCenter(Rt),l=t.getHalfSize(Vt);if(1===n){(0,o.gL)(Dt,h,bt),(0,o.tn)(Ft,Dt),(0,o.jk)(Zt,Ft,l),(0,o.jb)(Zt,Ft,Zt);let n=(0,o.Bw)(Zt);(0,o.WQ)(Zt,Ft,l);let i=(0,o.Bw)(Zt);if(n<r)a.setCenter(h),(0,o.hZ)(Dt,r,r,r),a.setHalfSize((0,o.WQ)(Dt,l,Dt));else{let s=i>0?1+e/i:1,h=n>0?1+r/n:1,u=(h+s)/2,c=(h-s)/2;(0,o.hs)(Zt,Ft,c),a.setHalfSize((0,o.Ln)(Zt,Zt,l,u)),(0,o.hs)(Zt,Ft,u),(0,o.Ln)(Zt,Zt,l,c),(0,o._S)(Dt,Dt),(0,o.lw)(Dt,Zt,Dt);let f=t.getQuaternion(jt);a.setCenter((0,o.gL)(Dt,Dt,f))}}else{a.setCenter((0,o.Ln)(Dt,h,u.Cb,(r+e)/2));let t=(0,o.gL)(Dt,u.Cb,bt);(0,o.tn)(t,t),a.setHalfSize((0,o.Ln)(Ft,l,t,(r-e)/2))}return a}function zt(t,e,r,a,i){let s=e.getQuaternion(Pt),h=(0,n.I0)(Ht,s),o=e.getHalfSize(Vt);for(let t=0;t<8;++t){for(let e=0;e<3;++e)Ot[e]=o[e]*(t&1<<e?-1:1);for(let e=0;e<3;++e){let n=r[e];for(let t=0;t<3;++t)n+=Ot[t]*h[3*t+e];Qt[3*t+e]=n}}(0,M.projectBuffer)(Qt,t,0,Qt,a,0,8),function(t,e=new _t){(function(t,e){let{data:r,size:n}=t,a=r.length/n;if(a<=0)return;let i=new st(t);ut(p,i.minProj,i.maxProj),ct(p,p,.5),lt(x,i.maxProj,i.minProj);let s=ot(x),h=new ht;h.quality=s,a<14&&(t=new P.K(new Float64Array(i.buffer,112,42),3));let o=(0,u.vt)(),l=(0,u.vt)(),c=(0,u.vt)(),f=(0,u.vt)(),d=(0,u.vt)(),m=(0,u.vt)(),M=(0,u.vt)();switch(w(i,t,M,o,l,c,f,d,m,h)){case 1:return void K(p,x,e);case 2:return void G(t,f,e)}R(t,M,o,l,c,f,d,m,h),J(t,h.b0,h.b1,h.b2,$,N);let g=(0,u.vt)();lt(g,N,$),h.quality=ot(g),h.quality<s?it(h.b0,h.b1,h.b2,$,N,g,e):K(p,x,e)})(t,e)}(yt,i)}const qt=(0,u.CN)(-1,-1,-1),Qt=Array(24),yt=new P.K(Qt,3),Ot=(0,u.vt)(),Rt=(0,u.vt)(),Vt=(0,u.vt)(),Ht=(0,a.vt)(),It=(0,i.vt)(),Lt=[[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0]],Bt=[(0,u.vt)(),(0,u.vt)(),(0,u.vt)()],Dt=(0,u.vt)(),Ft=(0,u.vt)(),Zt=(0,u.vt)(),Wt=(0,u.vt)(),Xt=[0,0,0]},46610(t,e,r){r.d(e,{K:()=>n,n:()=>a});class n{constructor(t,e,r=e){this.data=t,this.size=e,this.stride=r}}class a extends n{constructor(t,e,r,n=!1,a=r){super(t,r,a),this.indices=e,this.exclusive=n}}}}]);
|