@arcgis/core 5.1.0-next.73 → 5.1.0-next.75
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/Viewpoint.js +1 -1
- package/applications/Urban/editingSessionUtils.d.ts +95 -0
- package/applications/Urban/editingSessionUtils.js +2 -0
- package/arcade/ArcadePortal.js +1 -1
- package/arcade/featureset/sources/FeatureLayerDynamic.js +1 -1
- package/arcade/functions/aiServices.js +1 -1
- package/arcade/functions/featuresetbase.js +1 -1
- package/arcade/functions/geomasync.js +1 -1
- package/arcade/functions/knowledgegraph.js +1 -1
- package/arcade/functions/string.js +1 -1
- package/arcade/languageUtils.js +1 -1
- package/arcade/portalUtils.js +1 -1
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/{d17fcfc502f0e0fa6523.js → 003476e950bd27a2f884.js} +1 -1
- package/assets/esri/core/workers/chunks/{8a664451845a47048859.js → 0539b5d015157c1d34a0.js} +1 -1
- package/assets/esri/core/workers/chunks/07aca5ecad659d55e795.js +2 -0
- package/assets/esri/core/workers/chunks/{5a4d7ba6dc1d4b41d80d.js → 07eff82916681fcff069.js} +1 -1
- package/assets/esri/core/workers/chunks/09630888267cde87654f.js +1 -0
- package/assets/esri/core/workers/chunks/{8a14e3db28c403b046cf.js → 0d2bc1be5802681666a4.js} +1 -1
- package/assets/esri/core/workers/chunks/0eed2b1b06355ab89013.js +1 -0
- package/assets/esri/core/workers/chunks/0fa207c68dfd7ddee160.js +1 -0
- package/assets/esri/core/workers/chunks/146424b5717d0a645ee1.js +1 -0
- package/assets/esri/core/workers/chunks/{cfe246adb5e6cb6f0cfc.js → 14eb2cc8e2ad6d8d03fd.js} +1 -1
- package/assets/esri/core/workers/chunks/1765dfeac20e34ce25b7.js +1 -0
- package/assets/esri/core/workers/chunks/176dd195f77b98cb0b0f.js +1 -0
- package/assets/esri/core/workers/chunks/18f77ee3552d92962f15.js +1 -0
- package/assets/esri/core/workers/chunks/1906416c84bab369bbd6.js +1 -0
- package/assets/esri/core/workers/chunks/1a87e9bbd85ba29b1514.js +1 -0
- package/assets/esri/core/workers/chunks/{b98c24229463029504e8.js → 1f6b7626f333809837ef.js} +1 -1
- package/assets/esri/core/workers/chunks/{b54b7cc6b23a70fed700.js → 1f8ccf96069ac3a40c3d.js} +1 -1
- package/assets/esri/core/workers/chunks/1ff3c15a51c4dc991806.js +1 -0
- package/assets/esri/core/workers/chunks/{cdf6ad970dc1893dac58.js → 24646a1176ce34039155.js} +1 -1
- package/assets/esri/core/workers/chunks/2a2e97918524e0f436d7.js +1 -0
- package/assets/esri/core/workers/chunks/2b0b398180ed98c2c84c.js +1 -0
- package/assets/esri/core/workers/chunks/{03894992558d063d0d5e.js → 312036c89a6a09bb06c2.js} +1 -1
- package/assets/esri/core/workers/chunks/{80ace1c7203c5059525d.js → 330b47ac0759c3c35cc5.js} +1 -1
- package/assets/esri/core/workers/chunks/34b6b5dd415c68f0b0d1.js +1 -0
- package/assets/esri/core/workers/chunks/{422824e407b550170c8c.js → 34ea3ed78041437a8fc8.js} +1 -1
- package/assets/esri/core/workers/chunks/{93ceb74ac88ef460fe5f.js → 359d3acb3953e64e5a78.js} +1 -1
- package/assets/esri/core/workers/chunks/384c235d36f32769e32b.js +1 -0
- package/assets/esri/core/workers/chunks/3a183259805638c25363.js +1 -0
- package/assets/esri/core/workers/chunks/{0839da55707f7c4cf780.js → 3b9100c59a8050f4834e.js} +1 -1
- package/assets/esri/core/workers/chunks/{deaca3cd202851ecf9c2.js → 3cce9dad8ee0e4971d50.js} +1 -1
- package/assets/esri/core/workers/chunks/3efbb684c0409955186d.js +1 -0
- package/assets/esri/core/workers/chunks/40d251b6b42a41d68bd2.js +1 -0
- package/assets/esri/core/workers/chunks/42336e0d1ef88737b078.js +1 -0
- package/assets/esri/core/workers/chunks/452c01cecbbd1e370098.js +1 -0
- package/assets/esri/core/workers/chunks/47656ec12401e53f4bd3.js +1 -0
- package/assets/esri/core/workers/chunks/47b3a5213539548ff3a6.js +1 -0
- package/assets/esri/core/workers/chunks/{260d4571722cb1ff1366.js → 484d6c1b0fe1633515b7.js} +1 -1
- package/assets/esri/core/workers/chunks/4a23b27bfbcfa08fd9a7.js +1 -0
- package/assets/esri/core/workers/chunks/4c97cc922eece3a91b6b.js +1 -0
- package/assets/esri/core/workers/chunks/52b3a11c962810bc6dbe.js +1 -0
- package/assets/esri/core/workers/chunks/53750e85f3128993a43a.js +1 -0
- package/assets/esri/core/workers/chunks/{f207b3be0714cc50030a.js → 537fe2522dff1e6ce03b.js} +1 -1
- package/assets/esri/core/workers/chunks/{656d6963e8f837fbf28f.js → 54023458195549f66215.js} +1 -1
- package/assets/esri/core/workers/chunks/55fd201ca5e10c6e4761.js +1 -0
- package/assets/esri/core/workers/chunks/56941e8bbd2d49bf2656.js +1 -0
- package/assets/esri/core/workers/chunks/{faad127dc07e54e7f6d1.js → 5abe34bb0110694f7b42.js} +1 -1
- package/assets/esri/core/workers/chunks/5d8e944b192aad4cf986.js +1 -0
- package/assets/esri/core/workers/chunks/{a78bc340a794fd332667.js → 5e1b847b116d21908a54.js} +1 -1
- package/assets/esri/core/workers/chunks/5ed8d8b5336c81fbcda3.js +1 -0
- package/assets/esri/core/workers/chunks/60915a3708a34da1977e.js +1 -0
- package/assets/esri/core/workers/chunks/6124141ac642e4ce1454.js +1 -0
- package/assets/esri/core/workers/chunks/61c523dd9d8027922465.js +1 -0
- package/assets/esri/core/workers/chunks/65c61171e6c6be5c5c2f.js +1 -0
- package/assets/esri/core/workers/chunks/6a3d207308b29651f397.js +1 -0
- package/assets/esri/core/workers/chunks/{b6cadb8a579241adcb86.js → 6b66fc32451433129a88.js} +1 -1
- package/assets/esri/core/workers/chunks/6c35583707f5c339ee99.js +1 -0
- package/assets/esri/core/workers/chunks/6f7aaba26773fe416ac2.js +1 -0
- package/assets/esri/core/workers/chunks/702e8468836863abd81b.js +1 -0
- package/assets/esri/core/workers/chunks/7540f7df86620f067b5a.js +1 -0
- package/assets/esri/core/workers/chunks/{9f4b97204def91567e3c.js → 7595ceba529ed01c7590.js} +1 -1
- package/assets/esri/core/workers/chunks/75d5ea0da181f9e7425f.js +1312 -0
- package/assets/esri/core/workers/chunks/{af75e91b88e747aa76ac.js → 7601278ebced0c0c31cf.js} +1 -1
- package/assets/esri/core/workers/chunks/76e34f81bb4a7b0e694c.js +1 -0
- package/assets/esri/core/workers/chunks/{1661684357912726a72a.js → 77dd719516138afb1a2a.js} +1 -1
- package/assets/esri/core/workers/chunks/7b6c8be59ed87e386aa4.js +1 -0
- package/assets/esri/core/workers/chunks/7c820c5f6f05480d5050.js +1 -0
- package/assets/esri/core/workers/chunks/{ce2aa75e084ee56f5e29.js → 7f55eef696e9ed717bfc.js} +1 -1
- package/assets/esri/core/workers/chunks/80f4f686ce403cb2693f.js +1 -0
- package/assets/esri/core/workers/chunks/852f4cd514008fee5a55.js +1 -0
- package/assets/esri/core/workers/chunks/85aac8539996372f1ee8.js +1 -0
- package/assets/esri/core/workers/chunks/{50d5d6654ada9f28345d.js → 85e65ced3312bf9cf162.js} +1 -1
- package/assets/esri/core/workers/chunks/8a3bff0f58483c1665f9.js +1 -0
- package/assets/esri/core/workers/chunks/8b046e28f879079caada.js +1 -0
- package/assets/esri/core/workers/chunks/8d738e9acc2f222235ea.js +1 -0
- package/assets/esri/core/workers/chunks/{b9848bdbaf3d9ac93d54.js → 8f4cd30ce23e41c1a42c.js} +1 -1
- package/assets/esri/core/workers/chunks/9103eb0b9078019d3a26.js +1 -0
- package/assets/esri/core/workers/chunks/915e2711d3a2cfa402b2.js +1 -0
- package/assets/esri/core/workers/chunks/91f9e0e3662d4bf9f163.js +1 -0
- package/assets/esri/core/workers/chunks/983f6c8727fd9484718e.js +1 -0
- package/assets/esri/core/workers/chunks/99c161fecae710b53b40.js +1 -0
- package/assets/esri/core/workers/chunks/99d298d0039c536fcf3e.js +1 -0
- package/assets/esri/core/workers/chunks/9a5ef33d99a8f89956ff.js +1 -0
- package/assets/esri/core/workers/chunks/9d10db72e342fe63c981.js +1 -0
- package/assets/esri/core/workers/chunks/{bef27a25fbc4a6e19ec0.js → 9d6491f996eeb0c646ed.js} +1 -1
- package/assets/esri/core/workers/chunks/a015c2f54eb91e43a1f4.js +1 -0
- package/assets/esri/core/workers/chunks/a242ec19a7508de436da.js +1 -0
- package/assets/esri/core/workers/chunks/a320998f18922a35899f.js +1 -0
- package/assets/esri/core/workers/chunks/a7f9f478bd1493fc3c76.js +1 -0
- package/assets/esri/core/workers/chunks/aac6a57edd7494125204.js +1 -0
- package/assets/esri/core/workers/chunks/b73c146d3e550eaf07eb.js +1 -0
- package/assets/esri/core/workers/chunks/b7af0e6b9aadbcaf6a0b.js +1 -0
- package/assets/esri/core/workers/chunks/b803e7b0d489bb628d72.js +1 -0
- package/assets/esri/core/workers/chunks/b858adff7043683fe41c.js +1 -0
- package/assets/esri/core/workers/chunks/baeb96aef03d4c566af7.js +1 -0
- package/assets/esri/core/workers/chunks/bc75ab48f4c7609ef09d.js +1 -0
- package/assets/esri/core/workers/chunks/bc78937986854e500b8e.js +1 -0
- package/assets/esri/core/workers/chunks/{6ef3b8d67b498d655a99.js → bcb021a167580bb1619f.js} +1 -1
- package/assets/esri/core/workers/chunks/bd10d21545bca9a49de0.js +1 -0
- package/assets/esri/core/workers/chunks/bec3ee5ea945e1e07a35.js +1 -0
- package/assets/esri/core/workers/chunks/{5c663d5f98bdfa29151b.js → bf8f603848bad4a7deb4.js} +1 -1
- package/assets/esri/core/workers/chunks/bfe575da727ce7c8d331.js +2 -0
- package/assets/esri/core/workers/chunks/c31ee5617c61a933cb0e.js +1 -0
- package/assets/esri/core/workers/chunks/cb45e5d4a4ef82cda583.js +1 -0
- package/assets/esri/core/workers/chunks/ce7ef7c4ca14d66d96f6.js +1 -0
- package/assets/esri/core/workers/chunks/{f5c57ff48ca505ed701d.js → cf14b3a44705dacefac4.js} +1 -1
- package/assets/esri/core/workers/chunks/d1a7d13e1d48abcd7bf1.js +1 -0
- package/assets/esri/core/workers/chunks/{06df187a116709f69952.js → d35c475f004367e333eb.js} +1 -1
- package/assets/esri/core/workers/chunks/d3b086eb9aa8c7d09048.js +1 -0
- package/assets/esri/core/workers/chunks/d55cef8199b8246fea3f.js +1 -0
- package/assets/esri/core/workers/chunks/d82da31dc702b8fd6a07.js +1 -0
- package/assets/esri/core/workers/chunks/d8decaee2c780e1b5e35.js +1 -0
- package/assets/esri/core/workers/chunks/{41809c16544ec25120fa.js → d95ffd990b3a7df69e1e.js} +1 -1
- package/assets/esri/core/workers/chunks/dc54d4a9fe1691862356.js +1 -0
- package/assets/esri/core/workers/chunks/dd4f431511edd975a53b.js +1 -0
- package/assets/esri/core/workers/chunks/dda2cb5c073d1e65f14f.js +1 -0
- package/assets/esri/core/workers/chunks/e18badd11f360cc2912b.js +1 -0
- package/assets/esri/core/workers/chunks/{e25a684eb9f025bdcc01.js → e262c4864dc06c43b380.js} +1 -1
- package/assets/esri/core/workers/chunks/e610d24539a675fb054b.js +1 -0
- package/assets/esri/core/workers/chunks/{99101789035f1787c630.js → e785f76c1a75cb1d1e1f.js} +1 -1
- package/assets/esri/core/workers/chunks/e9c5c295b6bf10e942a4.js +1 -0
- package/assets/esri/core/workers/chunks/ea59b81299acaf0d85ee.js +1 -0
- package/assets/esri/core/workers/chunks/{873c1b705ac3d4e6c384.js → ea97619a4470f1540b99.js} +1 -1
- package/assets/esri/core/workers/chunks/eaab5ac049622986e3bc.js +1 -0
- package/assets/esri/core/workers/chunks/edee616b6f1b5be8fd39.js +1 -0
- package/assets/esri/core/workers/chunks/ef0085aa743b33cb549f.js +1 -0
- package/assets/esri/core/workers/chunks/f0250cecb243b32cdba7.js +1 -0
- package/assets/esri/core/workers/chunks/f518835b2dc89a48cfb1.js +1 -0
- package/assets/esri/core/workers/chunks/f590b60fca607d66001a.js +1 -0
- package/assets/esri/core/workers/chunks/{f6d047358d14328f3622.js → f60292d97bcdbf19165b.js} +1 -1
- package/assets/esri/core/workers/chunks/f6c8e93ca2987e83f925.js +1 -0
- package/assets/esri/core/workers/chunks/fb5a2205f05afc396119.js +1 -0
- package/assets/esri/themes/base/widgets/_Sketch.scss +32 -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/assets/esri/widgets/Directions/t9n/Directions_ja.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_no.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_en.json +1 -1
- package/chunks/MultiPathImpl.js +1 -1
- package/chunks/Point2D.js +1 -1
- package/chunks/SpatialReference.js +1 -1
- package/chunks/aiServices.js +1 -1
- package/chunks/geometryEngineBase.js +1 -1
- package/chunks/languageUtils.js +1 -1
- package/config.js +1 -1
- package/core/has.js +1 -1
- package/core/workers/registry.js +1 -1
- package/form/elements/AttachmentElement.d.ts +15 -16
- package/form/elements/FieldElement.js +1 -1
- package/form/elements/GroupElement.d.ts +3 -2
- package/form/elements/inputs/attachments/AttachmentInput.d.ts +7 -9
- package/form/elements/inputs/attachments/AudioInput.d.ts +6 -8
- package/form/elements/inputs/attachments/DocumentInput.d.ts +5 -7
- package/form/elements/inputs/attachments/ImageInput.d.ts +6 -8
- package/form/elements/inputs/attachments/Input.d.ts +2 -6
- package/form/elements/inputs/attachments/SignatureInput.d.ts +5 -7
- package/form/elements/inputs/attachments/VideoInput.d.ts +6 -8
- package/form/elements/inputs/attachments/types.d.ts +3 -3
- package/geometry/FlatGeometry.js +1 -1
- package/geometry/geometryEngine.js +1 -1
- package/geometry/geometryEngineJSON.js +1 -1
- package/geometry/operators/projectOperator.d.ts +5 -4
- package/geometry/operators/projectOperator.js +1 -1
- package/geometry/support/curves/densifyCurvedGeometry.js +1 -1
- package/geometry/support/normalizeUtils.js +1 -1
- package/geometry/support/normalizeUtilsCommon.js +1 -1
- package/graphic/ImageryGraphicOrigin.js +1 -1
- package/graphic/ImageryTileGraphicOrigin.js +1 -1
- package/graphic/WCSGraphicOrigin.js +1 -1
- package/identity/IdentityManagerBase.js +1 -1
- package/kernel.js +1 -1
- package/layers/IntegratedMesh3DTilesLayer.js +1 -1
- package/layers/IntegratedMeshLayer.js +1 -1
- package/layers/mixins/ArcGISImageService.js +1 -1
- package/layers/orientedImagery/core/ExposurePoint.js +1 -1
- package/layers/support/SymbolLayerDrawing.d.ts +18 -4
- package/package.json +4 -4
- package/popup/Features.d.ts +9 -9
- package/popup/Features.js +1 -1
- package/popup/actionUtils.js +1 -1
- package/popup/actions.js +1 -1
- package/portal/Portal.js +1 -1
- package/portal/PortalQueryParams.js +1 -1
- package/rest/print.js +1 -1
- package/support/revision.js +1 -1
- package/symbols/cim/CIMSymbolHelper.js +1 -1
- package/symbols/cim/CIMSymbolRasterizer.js +1 -1
- package/symbols/support/previewCIMSymbol.js +1 -1
- package/views/2d/analysis/AreaMeasurement/AreaMeasurementController.js +1 -1
- package/views/2d/engine/webgl/TextureManager.js +1 -1
- package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
- package/views/2d/layers/MediaLayerView2D.js +1 -1
- package/views/2d/layers/TileLayerView2D.js +1 -1
- package/views/2d/layers/features/schema/processor/symbols/ComplexSymbolSchema.js +1 -1
- package/views/2d/layers/graphics/GraphicsView2D.js +1 -1
- package/views/3d/analysis/AreaMeasurement/support/MeasurementData.js +1 -1
- package/views/3d/analysis/Dimension/DimensionController.js +1 -1
- package/views/3d/analysis/DirectLineMeasurement/DirectLineMeasurementController.js +1 -1
- package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementCutFillController.js +1 -1
- package/views/3d/camera/intersectionUtils.js +1 -1
- package/views/3d/input/SceneInputManager.js +1 -1
- package/views/3d/input/handlers/PinchAndPanNavigation.js +1 -1
- package/views/3d/interactive/editingTools/move/MoveTool3D.js +1 -1
- package/views/3d/interactive/editingTools/reshape/ReshapeOperation.js +1 -1
- package/views/3d/interactive/editingTools/transform/extentTransform/ExtentMove.js +1 -1
- package/views/3d/interactive/editingTools/transform/extentTransform/ExtentScale.js +1 -1
- package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
- package/views/3d/layers/graphics/Deconflictor.js +1 -1
- package/views/3d/layers/graphics/Graphics3DIconSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DSymbolLayer.js +1 -1
- package/views/3d/state/GoToOperation.js +1 -1
- package/views/3d/state/controllers/PinchAndPanControllerGlobal.js +1 -1
- package/views/3d/state/controllers/PinchAndPanControllerLocal.js +1 -1
- package/views/3d/support/cameraScaleUtils.js +2 -0
- package/views/3d/support/cameraUtils.js +1 -1
- package/views/3d/support/pointsOfInterest/CameraOnSurface.js +1 -1
- package/views/3d/support/renderInfoUtils/line.js +1 -1
- package/views/3d/support/viewpointUtils.js +1 -1
- package/views/3d/webgl-engine/collections/Component/ComponentObject.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/ComponentData.glsl.js +13 -12
- package/views/3d/webgl-engine/effects/globalIllumination/GlobalIllumination.js +1 -1
- package/views/3d/webgl.js +1 -1
- package/views/SceneView.d.ts +1 -0
- package/views/VideoView.js +1 -1
- package/views/draw/DrawGraphicTool.js +1 -1
- package/views/draw/DrawTool.js +1 -1
- package/views/draw/support/Box.js +1 -1
- package/views/draw/support/Reshape.js +1 -1
- package/views/draw/support/editingSessionUtils.js +2 -0
- package/views/draw/support/managers/MeasurementManager.js +1 -1
- package/views/interactive/SegmentLabels.js +1 -1
- package/views/interactive/sketch/SketchTooltipOptions.d.ts +9 -1
- package/views/interactive/snapping/SelfSnappingEngine.js +1 -1
- package/views/support/GeometryWorker.js +2 -0
- package/views/support/GeometryWorkerHandle.js +2 -0
- package/views/support/Scheduler.js +1 -1
- package/widgets/BatchAttributeForm/BatchAttributeFormViewModel.js +1 -1
- package/widgets/BatchAttributeForm/inputs/support/createBatchFormInputs.js +1 -1
- package/widgets/BatchAttributeForm/templates/support/createBatchFormTemplate.js +1 -1
- package/widgets/Editor/CreateFeaturesWorkflow.js +1 -1
- package/widgets/Editor/EditorViewModel.js +1 -1
- package/widgets/Editor/MergeFeaturesWorkflow.js +1 -1
- package/widgets/Editor/SplitFeatureWorkflow.js +1 -1
- package/widgets/Editor/UpdateFeatureWorkflow.js +1 -1
- package/widgets/Editor/UpdateFeaturesWorkflowData.js +1 -1
- package/widgets/Editor/support/SketchController.js +1 -1
- package/widgets/Editor/workflowUtils.js +1 -1
- package/widgets/FeatureTable/FeatureTableViewModel.d.ts +1 -3
- package/widgets/FeatureTable/Grid/GridViewModel.d.ts +2 -11
- package/widgets/FeatureTable/support/types.d.ts +2 -1
- package/widgets/OrientedImageryViewer/OrientedImageryViewerVisibleElements.d.ts +28 -0
- package/widgets/OrientedImageryViewer/OrientedImageryViewerVisibleElements.js +1 -1
- package/widgets/OrientedImageryViewer.d.ts +27 -0
- package/widgets/Sketch/SketchViewModel.d.ts +10 -2
- package/widgets/Sketch/SketchViewModel.js +1 -1
- package/widgets/Sketch/support/ResponsiveToolbar/MeasuredContentGroup.js +1 -1
- package/widgets/Sketch/support/ResponsiveToolbar/ResponsiveToolbar.js +1 -1
- package/widgets/Sketch.js +1 -1
- package/assets/esri/core/workers/chunks/00bae4b7e179336e0362.js +0 -1
- package/assets/esri/core/workers/chunks/027c3ea756db68e51f0a.js +0 -1
- package/assets/esri/core/workers/chunks/041c372e98a6fba90b36.js +0 -1
- package/assets/esri/core/workers/chunks/0783890816bac45277b9.js +0 -1
- package/assets/esri/core/workers/chunks/07aac6245a0d1adbb2d4.js +0 -1
- package/assets/esri/core/workers/chunks/0c00e5e4bd18467bcecd.js +0 -1
- package/assets/esri/core/workers/chunks/0dad0bca8d58b2c63d22.js +0 -1
- package/assets/esri/core/workers/chunks/0ef93722524620023f69.js +0 -1
- package/assets/esri/core/workers/chunks/1286f41f245ef22b3a26.js +0 -1
- package/assets/esri/core/workers/chunks/12e575a6d2b008b8fc2b.js +0 -1
- package/assets/esri/core/workers/chunks/161d60fdac2013c15543.js +0 -1
- package/assets/esri/core/workers/chunks/168de44a789d1cecc1f8.js +0 -1
- package/assets/esri/core/workers/chunks/1d9d7915cf7449e5d468.js +0 -1
- package/assets/esri/core/workers/chunks/235cb82952a18ff8d206.js +0 -1
- package/assets/esri/core/workers/chunks/266ba61b72a278d93a26.js +0 -1
- package/assets/esri/core/workers/chunks/27b80c386cebadcaca3c.js +0 -1
- package/assets/esri/core/workers/chunks/29d3890a5a43d934067a.js +0 -1
- package/assets/esri/core/workers/chunks/29e76256e3e867e80520.js +0 -1
- package/assets/esri/core/workers/chunks/2abf124e2956e4f76688.js +0 -1
- package/assets/esri/core/workers/chunks/2f17438d215bea3ce70f.js +0 -1
- package/assets/esri/core/workers/chunks/30f04dc001eaf838d64c.js +0 -1
- package/assets/esri/core/workers/chunks/356cb86606b8c674f947.js +0 -1
- package/assets/esri/core/workers/chunks/398e0dd2bc7e1ab84831.js +0 -1
- package/assets/esri/core/workers/chunks/3b1052aa30af3f6186cc.js +0 -1
- package/assets/esri/core/workers/chunks/3e87e3ad857d72f6ecbb.js +0 -1
- package/assets/esri/core/workers/chunks/42e483fde18f12da32a6.js +0 -1
- package/assets/esri/core/workers/chunks/43678e08a3d9d51c2a6d.js +0 -1
- package/assets/esri/core/workers/chunks/43ab44d37bc0ea97ef98.js +0 -1
- package/assets/esri/core/workers/chunks/47f2113357b2aa4f4f37.js +0 -1
- package/assets/esri/core/workers/chunks/488ed9584b527ec47be3.js +0 -1
- package/assets/esri/core/workers/chunks/4ad32580e0c0699fde1f.js +0 -1
- package/assets/esri/core/workers/chunks/54ed37ec9682ea739deb.js +0 -1
- package/assets/esri/core/workers/chunks/55369c5bd65bcaf78da1.js +0 -1
- package/assets/esri/core/workers/chunks/56fd3da911c2c4511e5d.js +0 -1
- package/assets/esri/core/workers/chunks/59592bb25f226865e88a.js +0 -1
- package/assets/esri/core/workers/chunks/5a83ea967ecde01d5622.js +0 -1
- package/assets/esri/core/workers/chunks/5b278b9980752ef495a2.js +0 -1
- package/assets/esri/core/workers/chunks/5d55b4449bcb24cd72b6.js +0 -1
- package/assets/esri/core/workers/chunks/5d8fe41a3c06ddb4094b.js +0 -1
- package/assets/esri/core/workers/chunks/5e59ff96aecdf2adcb3b.js +0 -1
- package/assets/esri/core/workers/chunks/608d707fd9d9f9088473.js +0 -1
- package/assets/esri/core/workers/chunks/6a21c9a4aeebe806ea39.js +0 -1
- package/assets/esri/core/workers/chunks/6c7ff968bd4fc816442d.js +0 -1
- package/assets/esri/core/workers/chunks/6d11ec355e5474b2968b.js +0 -1
- package/assets/esri/core/workers/chunks/6ea8b0d68881d16a2432.js +0 -1
- package/assets/esri/core/workers/chunks/7027d93dc5a4595d70c6.js +0 -1
- package/assets/esri/core/workers/chunks/70b35b2446558d5280e3.js +0 -1
- package/assets/esri/core/workers/chunks/7349cb45a93e6916f115.js +0 -1
- package/assets/esri/core/workers/chunks/74be994d789c57031631.js +0 -1
- package/assets/esri/core/workers/chunks/76edaeaf8fe344bb77a8.js +0 -1
- package/assets/esri/core/workers/chunks/76fe5b821d6b54db5721.js +0 -1
- package/assets/esri/core/workers/chunks/770880ad43f252962017.js +0 -1
- package/assets/esri/core/workers/chunks/7951d93f5f15aa76f49c.js +0 -1
- package/assets/esri/core/workers/chunks/7a56c836c89a8b978800.js +0 -1
- package/assets/esri/core/workers/chunks/81750c5177d8d52a3e05.js +0 -1
- package/assets/esri/core/workers/chunks/81d30c9062ad0120a863.js +0 -1
- package/assets/esri/core/workers/chunks/84772b023d04e415f17f.js +0 -1
- package/assets/esri/core/workers/chunks/88c5f7c712c6b89b5109.js +0 -1
- package/assets/esri/core/workers/chunks/88e469b82d2594f23649.js +0 -1
- package/assets/esri/core/workers/chunks/8a8242e7cc7e6a9e7876.js +0 -1
- package/assets/esri/core/workers/chunks/9444ed8ea117861ae89b.js +0 -1
- package/assets/esri/core/workers/chunks/9a38fd68b02b617c45d3.js +0 -1
- package/assets/esri/core/workers/chunks/9eb4ae556950e1d0124d.js +0 -2
- package/assets/esri/core/workers/chunks/a11f05ddd8314b648f76.js +0 -1
- package/assets/esri/core/workers/chunks/a37c28e3c4a2be9fd1d5.js +0 -1
- package/assets/esri/core/workers/chunks/a8d7f59927bdad564141.js +0 -1
- package/assets/esri/core/workers/chunks/a94bd20551c1179c7ec5.js +0 -1
- package/assets/esri/core/workers/chunks/abe22ae8ee0dcc9efbb7.js +0 -1
- package/assets/esri/core/workers/chunks/af5db0372d526e592fcc.js +0 -1
- package/assets/esri/core/workers/chunks/b702279c48f3009f6dd8.js +0 -1
- package/assets/esri/core/workers/chunks/bc53ce9a643f82d516c2.js +0 -1
- package/assets/esri/core/workers/chunks/bc887bd62579dba81e2b.js +0 -1
- package/assets/esri/core/workers/chunks/be1d6a571f76933dfbb0.js +0 -1
- package/assets/esri/core/workers/chunks/bfcdc5c315131aae34d8.js +0 -1
- package/assets/esri/core/workers/chunks/c0f624a2ca0d07ef8f8c.js +0 -1
- package/assets/esri/core/workers/chunks/c327fe276238af60fda4.js +0 -1
- package/assets/esri/core/workers/chunks/c3381b9a36299210ee47.js +0 -1
- package/assets/esri/core/workers/chunks/cb5e4b9b4a59c2622eb5.js +0 -1
- package/assets/esri/core/workers/chunks/d201a5dff18a5bb467ab.js +0 -1
- package/assets/esri/core/workers/chunks/d21fdd67477800101f3b.js +0 -1
- package/assets/esri/core/workers/chunks/d65b1234867f7d773d50.js +0 -2
- package/assets/esri/core/workers/chunks/d8d7331600d93bbca2b4.js +0 -1
- package/assets/esri/core/workers/chunks/db588bf3256e95c977b7.js +0 -1
- package/assets/esri/core/workers/chunks/dfdd474fddcd1d6091ce.js +0 -1
- package/assets/esri/core/workers/chunks/e1bc9ad767e08dc18bbc.js +0 -1
- package/assets/esri/core/workers/chunks/e235ea4293d5d463acfb.js +0 -1
- package/assets/esri/core/workers/chunks/e272411e2c9378aa8496.js +0 -1312
- package/assets/esri/core/workers/chunks/e43486113aaf72ac4dc1.js +0 -1
- package/assets/esri/core/workers/chunks/ea4c3393c5757e309a71.js +0 -1
- package/assets/esri/core/workers/chunks/ed216ddeb7f59f510bd0.js +0 -1
- package/assets/esri/core/workers/chunks/ef8886dff54063928bcb.js +0 -1
- package/assets/esri/core/workers/chunks/f43a63094190d2074cd0.js +0 -1
- package/assets/esri/core/workers/chunks/f5223ffb3be548c9b0a1.js +0 -1
- package/assets/esri/core/workers/chunks/fa160a2a5dc9f5a7c34b.js +0 -1
- package/geometry/support/triangulationUtilsDeprecated.js +0 -2
- package/views/3d/layers/graphics/extrudeUtilsDeprecated.js +0 -2
- package/views/3d/support/renderInfoUtils/polygonDeprecated.js +0 -2
- package/views/support/MeasurementWorker.js +0 -2
- package/views/support/MeasurementWorkerHandle.js +0 -2
- /package/assets/esri/core/workers/chunks/{9eb4ae556950e1d0124d.js.LICENSE.txt → 07aca5ecad659d55e795.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{d65b1234867f7d773d50.js.LICENSE.txt → bfe575da727ce7c8d331.js.LICENSE.txt} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1948,3931,6061,8125],{61691(e,t,r){r.d(t,{G:()=>s});class s{*[Symbol.iterator](){let e=this.next();for(;e;)yield e,e=this.next()}}},76061(e,t,r){r.d(t,{S:()=>n});var s=r(61691);class n extends s.G{constructor(e){super(),this.m_iGeom=-1,this.m_aGeoms=e?e.slice():[]}next(){if(this.m_iGeom<this.m_aGeoms.length-1){const e=this.m_aGeoms[++this.m_iGeom];return this.m_aGeoms[this.m_iGeom]=null,e}return null}tock(){return!1}getGeometryID(){return this.m_iGeom}getRank(){return 1}}},87992(e,t,r){r.d(t,{JR:()=>Z,ME:()=>E,MY:()=>R,NO:()=>M,Nh:()=>V,V2:()=>A,_s:()=>Y,e6:()=>F,gh:()=>P,tr:()=>b,uX:()=>x});var s=r(5482),n=r(69397),a=r(16930),i=(r(70328),r(19419)),o=r(60408),u=r(21325),h=r(513),l=r(50954),c=r(79567),m=r(52006),g=r(49663),f=r(46068),p=r(92722);class x{constructor({type:e,spatialReference:t,vertexCount:r,vertexXY:s,vertexZ:n,vertexM:a,partCount:i,partOffsets:o,partFlags:u,segmentFlags:h,segmentIndices:l,segmentParams:c,segmentCountArc:m,segmentCountBezier:g}){this.segmentCountArc=0,this.segmentCountBezier=0,this.type=e,this.spatialReference=t,this.vertexCount=r,this.vertexXY=s,this.vertexZ=n,this.vertexM=a,this.partCount=i,this.partOffsets=o,this.partFlags=u,this.segmentFlags=h,this.segmentIndices=l,this.segmentParams=c,this.segmentCountArc=m,this.segmentCountBezier=g}get segmentParamCount(){return 10*this.segmentCountArc+4*this.segmentCountBezier}get segmentCountLine(){const{segmentCount:e,segmentCountArc:t,segmentCountBezier:r}=this;return e&&e-t-r}get segmentCount(){return"polyline"===this.type?this.vertexCount-this.partCount:"polygon"===this.type?this.vertexCount:0}get hasZ(){return null!=this.vertexZ}get hasM(){return null!=this.vertexM}hasCurves(){return null!=this.segmentFlags}isMultipart(){return"polyline"===this.type||"polygon"===this.type}get usedMemory(){function e(e){return e?n.Ul+e.byteLength:0}return e(this.vertexXY)+e(this.vertexZ)+e(this.vertexM)+e(this.partOffsets)+e(this.partFlags)+e(this.segmentFlags)+e(this.segmentIndices)+e(this.segmentParams)}clone(){const{type:e,vertexCount:t,partCount:r,hasZ:s,hasM:n,segmentCountArc:a,segmentCountBezier:i}=this,o=A(e,t,r,s,n,this.hasCurves(),a,i);o.spatialReference=this.spatialReference;const{vertexXY:u,vertexZ:h,vertexM:l}=this;if(o.vertexXY.set(u.subarray(0,2*t),0),o.vertexZ?.set(h.subarray(0,t),0),o.vertexM?.set(l.subarray(0,t),0),this.isMultipart()){const{partOffsets:e,partFlags:t}=this;o.partFlags.set(t.subarray(0,r+1)),o.partOffsets.set(e.subarray(0,r+1))}if(this.hasCurves()){const{segmentFlags:e,segmentIndices:r,segmentParams:s,segmentParamCount:n}=this;o.segmentFlags.set(e.subarray(0,t),0),o.segmentIndices.set(r.subarray(0,t),0),o.segmentParams.set(s.subarray(0,n),0)}return o}equals(e){return this.equalsWithinTolerance(e,0)}equalsWithinTolerance(e,t){if(null==e)return!1;if(this===e)return!0;if(!(0,u.aI)(this.spatialReference,e.spatialReference))return!1;if(this.vertexCount!==e.vertexCount||this.partCount!==e.partCount)return!1;if(this.hasZ!==e.hasZ||this.hasM!==e.hasM)return!1;if(this.hasCurves()!==e.hasCurves()||this.segmentCountArc!==e.segmentCountArc||this.segmentCountBezier!==e.segmentCountBezier)return!1;const r=0===t?(e,t)=>e!==t||isNaN(e)!==isNaN(t):(e,r)=>Math.abs(e-r)>t||isNaN(e)!==isNaN(r);for(let t=0;t<this.vertexCount;++t)if(r(this.vertexXY[2*t],e.vertexXY[2*t])||r(this.vertexXY[2*t+1],e.vertexXY[2*t+1]))return!1;if(this.hasZ)for(let t=0;t<this.vertexCount;++t)if(r(this.vertexZ[t],e.vertexZ[t]))return!1;if(this.hasM)for(let t=0;t<this.vertexCount;++t)if(r(this.vertexM[t],e.vertexM[t]))return!1;for(let t=0;t<this.partCount;++t)if(this.partFlags[t]!==e.partFlags[t]||this.partOffsets[t]!==e.partOffsets[t])return!1;if(this.hasCurves()){for(let t=0;t<this.vertexCount;++t)if(this.segmentFlags[t]!==e.segmentFlags[t]||this.segmentIndices[t]!==e.segmentIndices[t])return!1;for(let t=0;t<this.segmentParamCount;++t)if(r(this.segmentParams[t],e.segmentParams[t]))return!1}return!0}get parts(){return this.isMultipart()?new y(this):[][Symbol.iterator]()}}class y{constructor(e){this.geometry=e,this.value=new v(e)}get done(){return this.value.index>=this.geometry.partCount}next(){return++this.value.index,this}[Symbol.iterator](){return this}}class v{constructor(e){this.geometry=e,this.index=-1,this._readVertex=_(e),this._segments=new d(this)}get segments(){return this._segments.reset(),this._segments}get startVertex(){return this._readVertex(this.geometry.partOffsets[this.index])}get vertexCount(){const e=this.geometry.partOffsets;return e[this.index+1]-e[this.index]}}class d{constructor(e){this._part=e,this._partStart=0,this._partEnd=0,this._isPolygon="polygon"===e.geometry.type,this.value=new C(e.geometry)}get done(){return this.value.indexOfStartVertex>this._partEnd}next(){++this.value.indexOfStartVertex;const e=this.value.indexOfStartVertex>=this._partEnd;return this.value.indexOfEndVertex=e&&this._isPolygon?this._partStart:this.value.indexOfStartVertex+1,this}[Symbol.iterator](){return this}reset(){const{index:e}=this._part,t=this._part.geometry.partOffsets;this._partStart=t[e],this._partEnd=t[e+1]-(this._isPolygon?1:2),this.value.indexOfStartVertex=this._partStart-1}}class C{constructor(e){this.geometry=e,this.indexOfStartVertex=-1,this.indexOfEndVertex=-1,this._readVertex=_(e)}get xStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex]}get yStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex+1]}get zStart(){return this.geometry.vertexZ[this.indexOfStartVertex]}get mStart(){return this.geometry.vertexM[this.indexOfStartVertex]}get xEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex]}get yEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex+1]}get zEnd(){return this.geometry.vertexZ[this.indexOfEndVertex]}get mEnd(){return this.geometry.vertexM[this.indexOfEndVertex]}get start(){return this._readVertex(this.indexOfStartVertex)}get end(){return this._readVertex(this.indexOfEndVertex)}get curve(){const e=this.geometry.segmentFlags?.[this.indexOfStartVertex]??1;if(1===e)return this.end;const t=this.geometry.segmentParams;let r=this.geometry.segmentIndices[this.indexOfStartVertex];if(2===e){const e=t[r++],s=t[r++],n=t[r++],a=t[r++];return{b:[this.end,[e,s],[n,a]]}}const s=t[r++],n=t[r++],a=t[r++],i=t[r++],o=t[r++],u=t[r++];r++,r++;const h=t[r++],l=t[r++];if(!Boolean(4&s)&&1===a)return{c:[this.end,[h,l]]};const c=2&s?0:1,m=1&s?0:1;return{a:[this.end,[o,u],c,m,i,n,a]}}}function M(e,t){const r={stack:[],error:void 0,hasError:!1};try{return t??=(0,i.Ie)(),(0,s.mS)(r,new O(e,["vertexZ","vertexM","spatialReference"]),!1),(0,i.bx)(t,function(e){let t;const{vertexCount:r,vertexXY:n,vertexZ:a,vertexM:o}=e,u=S(e);if(e.hasCurves()){const r={stack:[],error:void 0,hasError:!1};try{(0,s.mS)(r,new O(e,["vertexZ","vertexM"]),!1);const n=(0,i.Ie)();for(const t of e.parts){let e=t.startVertex;for(const{curve:r}of t.segments)(0,c.e)(n,e,r),e=(0,m.yP)(r)}const[a,o,h,l]=n;t={xmin:a,ymin:o,xmax:h,ymax:l,spatialReference:u}}catch(e){r.error=e,r.hasError=!0}finally{(0,s.hk)(r)}}else{let e,s,a,i;e=s=1/0,a=i=-1/0;for(let t=0;t<r;++t){const r=n[2*t],o=n[2*t+1];e=Math.min(e,r),a=Math.max(a,r),s=Math.min(s,o),i=Math.max(i,o)}t={xmin:e,ymin:s,xmax:a,ymax:i,spatialReference:u}}if(a){let e=1/0,r=-1/0;for(const t of a)e=Math.min(e,t),r=Math.max(r,t);t.zmin=e,t.zmax=r}if(o){let e=1/0,r=-1/0;for(const t of o)e=Math.min(e,t),r=Math.max(r,t);t.mmin=e,t.mmax=r}return t}(e)),t}catch(e){r.error=e,r.hasError=!0}finally{(0,s.hk)(r)}}function E(e){let t,r,s;if((0,o.fT)(e)){s="point";const{x:n,y:a,z:i,m:o}=e,u=[n,a];null!=i&&u.push(i),null!=o&&u.push(o),r=[[u]],t=1}else(0,o.U9)(e)?(s="multipoint",r=[e.points],t=e.points.length):(0,o.Rg)(e)?(s="polyline",r=e.curvePaths??e.paths,t=r.reduce((e,t)=>e+t.length,0)):(s="polygon",r=e.curveRings??e.rings,t=r.reduce((e,t)=>(0===t.length||(e+=t.length,w(t[0],(0,m.yP)(t.at(-1)))&&--e),e),0));const n=A(s,t,s.includes("point")?0:r.length,(0,o.Pv)(e),(0,o.W0)(e),(0,m.Ed)(e)),{hasZ:a,hasM:i,vertexXY:u,vertexZ:h,vertexM:l}=n;function c(e){u[2*f]=e[0],u[2*f+1]=e[1],a&&(h[f]=e[2]),i&&(l[f]=e[g]),++f}n.spatialReference=e.spatialReference??void 0;const g=n.hasZ?3:2;let f=0;if(!n.isMultipart()){if(!a&&!i){for(const[e,t]of r[0])u[2*f]=e,u[2*f+1]=t,++f;return n}for(const e of r[0])c(e);return n}const p="polygon"===s,{partOffsets:x}=n;let y=0;if(!n.hasCurves()){for(const e of r){if(x[y++]=f,0===e.length)continue;let t=e.length;if(p&&w(e[0],e.at(-1))&&--t,a||i)for(let r=0;r<t;++r)c(e[r]);else for(let r=0;r<t;++r){const[t,s]=e[r];u[2*f]=t,u[2*f+1]=s,++f}}return x[y]=f,n}function v(e){const t=d+e;if(t<=(n.segmentParams?.length??0))return;let r=t*G;r=20*Math.ceil(r/20);const s=n.segmentParams;n.segmentParams=new Float64Array(r),null!=s&&n.segmentParams.set(s)}let d=0;for(const e of r){if(n.partOffsets[y++]=f,0===e.length)continue;const t=e[0];let r=t;for(let t=1;t<e.length;++t){const s=e[t];c(r);const a=f-1;(0,m.wY)(s)?(v(10),++n.segmentCountArc,d=Y(r,s,n,a,d),r=s.a[0]):(0,m.DA)(s)?(v(10),++n.segmentCountArc,d=I(r,s,n,a,d),r=s.a[0]):(0,m.aO)(s)?(v(10),++n.segmentCountArc,d=F(r,s,n,a,d),r=s.c[0]):(0,m.n1)(s)?(v(4),++n.segmentCountBezier,d=b(0,s,n,a,d),r=s.b[0]):r=s}p&&w(t,r)||c(r)}return n.partOffsets[y]=f,n}function P(e){const t=_(e),{vertexCount:r,partCount:s,hasZ:n,hasM:a}=e,i=S(e);if("point"===e.type){const[t,r]=e.vertexXY,s=e.vertexZ?.[0],n=e.vertexM?.[0];return{x:t,y:r,z:s,m:n,spatialReference:i}}let o=0;if("multipoint"===e.type){const e=[];for(;o<r;)e.push(t(o++));return{points:e,spatialReference:i,hasZ:n,hasM:a}}const u="polygon"===e.type;if(!e.hasCurves()){const r=new Array;for(let n=0;n<s;++n){const s=e.partOffsets[n+1],a=new Array;for(;o<s;)a.push(t(o++));u&&a.length>0&&a.push(a[0]),r.push(a)}return u?{rings:r,hasZ:n,hasM:a,spatialReference:i}:{paths:r,hasZ:n,hasM:a,spatialReference:i}}const h=new Array;for(const{segments:t,startVertex:r}of e.parts){const e=[r];for(const{curve:r}of t)e.push(r);h.push(e)}return u?{rings:[],curveRings:h,hasZ:n,hasM:a,spatialReference:i}:{paths:[],curvePaths:h,hasZ:n,hasM:a,spatialReference:i}}function V(e,{lengths:t,coords:r,hasZ:s,hasM:n},a){const i=e.includes("point")?0:t.length,o="polygon"===e,u="point"===e?1:t.reduce((e,t)=>e+t,0)-(o?i:0);s??=!1,n??=!1;const h=A(e,u,i,s,n,!1,0,0);if(h.spatialReference=a??void 0,!h.isMultipart()){for(let e=0,t=0;e<u;++e)h.vertexXY[2*e]=r[t++],h.vertexXY[2*e+1]=r[t++],s&&(h.vertexZ[e]=r[t++]),n&&(h.vertexM[e]=r[t++]);return h}const l=2+Number(s)+Number(n);let c=0,m=0;h.partOffsets[0]=0;for(const e of t){const t=h.partOffsets[m],a=t+e-Number(o);h.partOffsets[++m]=a;for(let e=t;e<a;++e)h.vertexXY[2*e]=r[c++],h.vertexXY[2*e+1]=r[c++],s&&(h.vertexZ[e]=r[c++]),n&&(h.vertexM[e]=r[c++]);o&&(c+=l)}return h}function Z({type:e,vertexCount:t,vertexXY:r,vertexZ:s,vertexM:n,partCount:a,partOffsets:i,hasZ:o,hasM:u}){const h=new p.A([],[],o,u);a=Math.max(a,1);const l="polygon"===e;let c=0;for(let e=0;e<a;++e){const a=i?.[e+1]??t,m=h.coords.length;for(let e=c;e<a;++e)h.coords.push(r[2*e],r[2*e+1]),o&&h.coords.push(s[e]),u&&h.coords.push(n[e]);if(l){const e=c;h.coords.push(r[2*e],r[2*e+1]),o&&h.coords.push(s[e]),u&&h.coords.push(n[e])}h.lengths.push((h.coords.length-m)/h.stride),c=a}return"point"===e&&(h.lengths.length=0),h}function R(e,t){return"getSpatialReference"in e&&(t=function(e){if(null==e)return;const t=e.getText()||void 0,r=e.isCustomWkid()?0:e.getOldID();if(r<=0)return{wkt:t};let s=e.getLatestID();(s<=0||s===r)&&(s=void 0);const n=e.getVCS();if(null==n)return{wkid:r,latestWkid:s,wkt:t};const a=n.isCustomWkid()?0:n.getOldID();if(a<=0)return{wkt:t};let i=e.getLatestVerticalID();return(i<=0||i===a)&&(i=void 0),{wkid:r,wkt:t,latestWkid:s,vcsWkid:a,latestVcsWkid:i}}(e.getSpatialReference()),e=e.getGeometry()),new x({...e.toFlatGeometry(),spatialReference:t})}class O{constructor(e,t){this.target=e,this.keys=t,this.oldValues=t.map(t=>e[t]);for(const r of t)e[r]=void 0}[Symbol.dispose](){this.keys.map((e,t)=>{this.target[e]=this.oldValues[t]})}}function S({spatialReference:e}){return e instanceof a.A?e.toJSON():e}function _({vertexXY:e,vertexZ:t,vertexM:r}){return t?r?s=>[e[2*s],e[2*s+1],t[s],r[s]]:r=>[e[2*r],e[2*r+1],t[r]]:r?t=>[e[2*t],e[2*t+1],r[t]]:t=>[e[2*t],e[2*t+1]]}function w(e,t){return e.every((e,r)=>e===t[r])}function A(e,t,r,s,n,a,i,o){i??=0,o??=0;const u=new x({type:e,vertexCount:t,vertexXY:null,vertexZ:void 0,vertexM:void 0,partCount:r,partOffsets:void 0,partFlags:void 0,segmentFlags:void 0,segmentIndices:void 0,segmentParams:void 0,segmentCountArc:i,segmentCountBezier:o});let h=2*Float64Array.BYTES_PER_ELEMENT*t;s&&(h+=Float64Array.BYTES_PER_ELEMENT*t),n&&(h+=Float64Array.BYTES_PER_ELEMENT*t),u.isMultipart()&&(h+=(r+1)*Int32Array.BYTES_PER_ELEMENT,h+=(r+1)*Int8Array.BYTES_PER_ELEMENT),a&&(h+=t*Int8Array.BYTES_PER_ELEMENT,h+=t*Int32Array.BYTES_PER_ELEMENT,h+=u.segmentParamCount*Float64Array.BYTES_PER_ELEMENT);const l=new ArrayBuffer(h);let c=0;return u.vertexXY=new Float64Array(l,c,2*t),c+=u.vertexXY.byteLength,s&&(u.vertexZ=new Float64Array(l,c,t),c+=u.vertexZ.byteLength),n&&(u.vertexM=new Float64Array(l,c,t),c+=u.vertexM.byteLength),a&&(u.segmentParams=new Float64Array(l,c,u.segmentParamCount),c+=u.segmentParams.byteLength,u.segmentIndices=new Int32Array(l,c,t),u.segmentIndices.fill(N),c+=u.segmentIndices.byteLength),u.isMultipart()&&(u.partOffsets=new Int32Array(l,c,r+1),c+=u.partOffsets.byteLength,u.partFlags=new Int8Array(l,c,r+1),c+=u.partFlags.byteLength,"polygon"===u.type&&u.partFlags.subarray(0,r).fill(1)),a&&(u.segmentFlags=new Int8Array(l,c,t),u.segmentFlags.fill(1),c+=u.segmentFlags.byteLength),u}function Y(e,t,{segmentFlags:r,segmentIndices:s,segmentParams:n},a,i){r[a]=4,s[a]=i;const[o,[u,h],l,c,m,g,p]=t.a;let x=4;c||(x|=1),l||(x|=2);const y=(0,f.SW)(e,t),[v,d]=(0,f.Uk)(y,.5);return n[i++]=x,n[i++]=g,n[i++]=p,n[i++]=m,n[i++]=u,n[i++]=h,n[i++]=y.u2-y.u1,n[i++]=y.u1,n[i++]=v,n[i++]=d,i}function I(e,t,{segmentFlags:r,segmentIndices:s,segmentParams:n},a,i){r[a]=4,s[a]=i;const o=(0,g.io)(e,t);return X(o,4,...(0,h.mq)(o,.5),n,i)}function F(e,t,{segmentFlags:r,segmentIndices:s,segmentParams:n},a,i){return r[a]=4,s[a]=i,X((0,l.pM)(e,t),0,...t.c[1],n,i)}function X(e,t,r,s,n,a){const{cx:i,cy:o,thetaStart:u,thetaEnd:h,radius:l}=e;return u>h||(t|=1),Math.abs(h-u)<=Math.PI||(t|=2),n[a++]=t,n[a++]=l,n[a++]=1,n[a++]=0,n[a++]=i,n[a++]=o,n[a++]=h-u,n[a++]=u,n[a++]=r,n[a++]=s,a}function b(e,{b:[t,[r,s],[n,a]]},{segmentFlags:i,segmentIndices:o,segmentParams:u},h,l){return i[h]=2,o[h]=l,u[l++]=r,u[l++]=s,u[l++]=n,u[l++]=a,l}const G=1.61803,N=-1},78125(e,t,r){r.r(t),r.d(t,{fromExtent:()=>x,fromGeometry:()=>p,fromMultipoint:()=>y,fromPoint:()=>v,fromPolygon:()=>d,fromPolyline:()=>C,fromPolylineUsingImportOperator:()=>M,fromSpatialReference:()=>E,getSpatialReference:()=>f,toExtent:()=>V,toGeometry:()=>P,toMultipoint:()=>Z,toPoint:()=>R,toPolygon:()=>O,toPolyline:()=>S});var s=r(83661),n=(r(79187),r(55537)),a=r(95213),i=r(88885),o=r(5443),u=r(48526),h=r(86738),l=r(39829),c=r(82799),m=(r(90293),r(83299));const g="_gxVersion";function f(e){return Array.isArray(e)?e[0].spatialReference:e.spatialReference}function p(e){switch(e.type){case"point":return v(e);case"multipoint":return y(e);case"polyline":return C(e);case"polygon":return d(e);case"extent":return x(e);default:throw new Error(`Unsupported geometry type: ${e.type}`)}}function x(e){if(!e.getCacheValue(g)){const t=new a.E;t.setCoords(e.xmin,e.ymin,e.xmax,e.ymax),e.hasM&&t.setInterval(2,0,e.mmin,e.mmax),e.hasZ&&t.setInterval(1,0,e.zmin,e.zmax),e.setCacheValue(g,t)}return e.getCacheValue(g)}function y(e){if(!e.getCacheValue(g)){const t=new i.M,r=new a.P,s=e.points,n=e.hasM,o=e.hasZ,u=o?3:2;for(let e=0,a=s.length;e<a;e++){const a=s[e];r.setXYCoords(a[0],a[1]),o&&r.setZ(a[2]??0),n&&r.setM(a[u]??NaN),t.add(r)}e.setCacheValue(g,t)}return e.getCacheValue(g)}function v(e){if(!e.getCacheValue(g)){const t=new a.P;t.setXYCoords(e.x,e.y),e.hasM&&t.setM(e.m),e.hasZ&&t.setZ(e.z),e.setCacheValue(g,t)}return e.getCacheValue(g)}function d(e){if(!e.getCacheValue(g)){const{curveRings:t,hasM:r,hasZ:s,rings:n}=e,a=(0,m.fromGeometryToGXGeometry)({curveRings:t,hasM:r,hasZ:s,rings:n});e.setCacheValue(g,a)}return e.getCacheValue(g)}function C(e){if(!e.getCacheValue(g)){const{curvePaths:t,hasM:r,hasZ:s,paths:n}=e,a=(0,m.fromGeometryToGXGeometry)({curvePaths:t,hasM:r,hasZ:s,paths:n});e.setCacheValue(g,a)}return e.getCacheValue(g)}function M(e){if(!e.getCacheValue(g)){const{curvePaths:t,hasM:r,hasZ:s,paths:n}=e,a=(0,m.fromGeometryToGXGeometryUsingImportOperator)({curvePaths:t,hasM:r,hasZ:s,paths:n});e.setCacheValue(g,a)}return e.getCacheValue(g)}function E(e){return e.cache?(e.cache[g]??=(0,m.fromSpatialReference)(e),e.cache[g]):(0,m.fromSpatialReference)(e)}function P(e,t){if(e)switch(e.getGeometryType()){case n.G.enumPoint:return R(e,t);case n.G.enumEnvelope:return V(e,t);case n.G.enumMultiPoint:return Z(e,t);case n.G.enumPolyline:return S(e,t);case n.G.enumPolygon:return O(e,t)}return null}function V(e,t){if(e.isEmpty())return null;const r=new o.A({xmin:e.getXMin(),ymin:e.getYMin(),xmax:e.getXMax(),ymax:e.getYMax(),spatialReference:t}),s=e.getDescription();if(s.hasM()){const t=e.queryInterval(2,0);r.mmin=t.vmin,r.mmax=t.vmax}if(s.hasZ()){const t=e.queryInterval(1,0);r.zmin=t.vmin,r.zmax=t.vmax}return r.setCacheValue(g,e),r}function Z(e,t){if(e.isEmpty())return null;const r=e.getDescription(),s=r.hasM(),n=r.hasZ(),i=[],o=new a.P;for(let t=0,r=e.getPointCount();t<r;t++){e.getPointByVal(t,o);const r=[o.getX(),o.getY()];n&&r.push(o.getZ()),s&&r.push(o.getM()),i.push(r)}const h=new u.A({hasM:s,hasZ:n,points:i,spatialReference:t});return h.setCacheValue(g,e),h}function R(e,t){if(e instanceof s.P)return new h.A({x:e.x,y:e.y,spatialReference:t});if(e.isEmpty())return null;const r=new h.A({x:e.getX(),y:e.getY(),spatialReference:t}),n=e.getDescription();return n.hasM()&&(r.m=e.getM()),n.hasZ()&&(r.z=e.getZ()),r.setCacheValue(g,e),r}function O(e,t){if(e.isEmpty())return null;const r=l.A.fromJSON({...(0,m.toGeometry)(e,null),spatialReference:t});return r.setCacheValue(g,e),r}function S(e,t){if(e.isEmpty())return null;const r=c.A.fromJSON({...(0,m.toGeometry)(e,null),spatialReference:t});return r.setCacheValue(g,e),r}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1075,1948,2722,3456,5611,6061,7992],{61691(t,e,n){n.d(e,{G:()=>r});class r{*[Symbol.iterator](){let t=this.next();for(;t;)yield t,t=this.next()}}},76061(t,e,n){n.d(e,{S:()=>s});var r=n(61691);class s extends r.G{constructor(t){super(),this.m_iGeom=-1,this.m_aGeoms=t?t.slice():[]}next(){if(this.m_iGeom<this.m_aGeoms.length-1){const t=this.m_aGeoms[++this.m_iGeom];return this.m_aGeoms[this.m_iGeom]=null,t}return null}tock(){return!1}getGeometryID(){return this.m_iGeom}getRank(){return 1}}},9093(t,e,n){function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function s(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]]}n.d(e,{o8:()=>s,vt:()=>r,zK:()=>i});const i=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:i,clone:s,create:r,fromValues:function(t,e,n,r,s,i,o,a,u,h,c,f,l,m,g,x){return[t,e,n,r,s,i,o,a,u,h,c,f,l,m,g,x]}},Symbol.toStringTag,{value:"Module"}))},51850(t,e,n){function r(){return[0,0,0]}function s(t){return[t[0],t[1],t[2]]}function i(t,e,n){return[t,e,n]}function o(t,e,n){return[t,e,n]}function a(t,e=[0,0,0]){const n=Math.min(3,t.length);for(let r=0;r<n;++r)e[r]=t[r];return e}function u(){return[0,0,0]}function h(){return i(1,1,1)}function c(){return i(1,0,0)}function f(){return i(0,1,0)}function l(){return i(0,0,1)}n.d(e,{CN:()=>o,Cb:()=>p,Cw:()=>x,JP:()=>d,S:()=>h,Ul:()=>u,Un:()=>g,ci:()=>a,fA:()=>i,o8:()=>s,uY:()=>m,vt:()=>r});const m=[0,0,0],g=h(),x=c(),d=f(),p=l();Object.freeze(Object.defineProperty({__proto__:null,ONES:g,UNIT_X:x,UNIT_Y:d,UNIT_Z:p,ZEROS:m,clone:s,create:r,freeze:o,fromArray:a,fromValues:i,ones:h,unitX:c,unitY:f,unitZ:l,zeros:u},Symbol.toStringTag,{value:"Module"}))},35522(t,e,n){n.d(e,{$A:()=>I,Bw:()=>i,C:()=>o,Cc:()=>S,DI:()=>E,Il:()=>G,Io:()=>M,Ln:()=>p,Om:()=>_,Qr:()=>f,Re:()=>h,S8:()=>b,T9:()=>x,WQ:()=>u,Z0:()=>A,_S:()=>m,aI:()=>N,ei:()=>O,fw:()=>w,g7:()=>Z,gL:()=>P,hG:()=>y,hZ:()=>a,hs:()=>d,jb:()=>T,jk:()=>g,lo:()=>L,lw:()=>c,m3:()=>v,oW:()=>V,t2:()=>Y,tn:()=>l,uE:()=>B,xg:()=>k,ze:()=>C});var r=n(51850),s=n(34304);function i(t){const e=t[0],n=t[1],r=t[2];return Math.sqrt(e*e+n*n+r*r)}function o(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function a(t,e,n,r){return t[0]=e,t[1]=n,t[2]=r,t}function u(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t}function h(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function c(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t}function f(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t}function l(t,e){return t[0]=Math.abs(e[0]),t[1]=Math.abs(e[1]),t[2]=Math.abs(e[2]),t}function m(t,e){return t[0]=Math.sign(e[0]),t[1]=Math.sign(e[1]),t[2]=Math.sign(e[2]),t}function g(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t}function x(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t}function d(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t}function p(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t}function M(t,e){const n=e[0]-t[0],r=e[1]-t[1],s=e[2]-t[2];return Math.sqrt(n*n+r*r+s*s)}function y(t,e){const n=e[0]-t[0],r=e[1]-t[1],s=e[2]-t[2];return n*n+r*r+s*s}function v(t){const e=t[0],n=t[1],r=t[2];return e*e+n*n+r*r}function C(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}function E(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}function b(t,e){const n=e[0],r=e[1],s=e[2];let i=n*n+r*r+s*s;return i>0&&(i=1/Math.sqrt(i),t[0]=e[0]*i,t[1]=e[1]*i,t[2]=e[2]*i),t}function _(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function I(t,e,n){const r=e[0],s=e[1],i=e[2],o=n[0],a=n[1],u=n[2];return t[0]=s*u-i*a,t[1]=i*o-r*u,t[2]=r*a-s*o,t}function S(t,e,n,r){const s=e[0],i=e[1],o=e[2];return t[0]=s+r*(n[0]-s),t[1]=i+r*(n[1]-i),t[2]=o+r*(n[2]-o),t}function A(t,e,n){const r=e[0],s=e[1],i=e[2];return t[0]=n[0]*r+n[4]*s+n[8]*i+n[12],t[1]=n[1]*r+n[5]*s+n[9]*i+n[13],t[2]=n[2]*r+n[6]*s+n[10]*i+n[14],t}function O(t,e,n){const r=e[0],s=e[1],i=e[2];return t[0]=r*n[0]+s*n[3]+i*n[6],t[1]=r*n[1]+s*n[4]+i*n[7],t[2]=r*n[2]+s*n[5]+i*n[8],t}function P(t,e,n){return w(t,e,n[0],n[1],n[2],n[3])}function w(t,e,n,r,s,i){const o=e[0],a=e[1],u=e[2],h=r*u-s*a,c=s*o-n*u,f=n*a-r*o,l=r*f-s*c,m=s*h-n*f,g=n*c-r*h,x=2*i;return t[0]=o+h*x+2*l,t[1]=a+c*x+2*m,t[2]=u+f*x+2*g,t}function Z(t,e){b(F,t),b(R,e);const n=_(F,R);return n>1?0:n<-1?Math.PI:Math.acos(n)}const F=(0,r.vt)(),R=(0,r.vt)();function Y(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function N(t,e){if(t===e)return!0;const n=t[0],r=t[1],i=t[2],o=e[0],a=e[1],u=e[2],h=(0,s.FD)();return Math.abs(n-o)<=h*Math.max(1,Math.abs(n),Math.abs(o))&&Math.abs(r-a)<=h*Math.max(1,Math.abs(r),Math.abs(a))&&Math.abs(i-u)<=h*Math.max(1,Math.abs(i),Math.abs(u))}function V(t,e,n){const r=n[0]-e[0],s=n[1]-e[1],i=n[2]-e[2];let o=r*r+s*s+i*i;return o>0?(o=1/Math.sqrt(o),t[0]=r*o,t[1]=s*o,t[2]=i*o,t):(t[0]=0,t[1]=0,t[2]=0,t)}const T=h,z=c,X=f,k=M,L=y,G=i,B=v;Object.freeze(Object.defineProperty({__proto__:null,abs:l,add:u,angle:Z,bezier:function(t,e,n,r,s,i){const o=1-i,a=o*o,u=i*i,h=a*o,c=3*i*a,f=3*u*o,l=u*i;return t[0]=e[0]*h+n[0]*c+r[0]*f+s[0]*l,t[1]=e[1]*h+n[1]*c+r[1]*f+s[1]*l,t[2]=e[2]*h+n[2]*c+r[2]*f+s[2]*l,t},ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t},clamp:function(t,e=0,n=1){return t[0]=Math.min(Math.max(t[0],e),n),t[1]=Math.min(Math.max(t[1],e),n),t[2]=Math.min(Math.max(t[2],e),n),t},copy:o,cross:I,crossAndNormalize:function(t,e,n){const r=e[0],s=e[1],i=e[2],o=n[0],a=n[1],u=n[2],h=s*u-i*a,c=i*o-r*u,f=r*a-s*o,l=Math.sqrt(h*h+c*c+f*f);return t[0]=h/l,t[1]=c/l,t[2]=f/l,t},direction:V,dist:k,distance:M,div:X,divide:f,dot:_,equals:N,exactEquals:Y,floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t},hermite:function(t,e,n,r,s,i){const o=i*i,a=o*(2*i-3)+1,u=o*(i-2)+i,h=o*(i-1),c=o*(3-2*i);return t[0]=e[0]*a+n[0]*u+r[0]*h+s[0]*c,t[1]=e[1]*a+n[1]*u+r[1]*h+s[1]*c,t[2]=e[2]*a+n[2]*u+r[2]*h+s[2]*c,t},inverse:E,len:G,length:i,lerp:S,max:x,min:g,mul:z,multiply:c,negate:C,normalize:b,random:function(t,e=1){const n=s.Ov,r=2*n()*Math.PI,i=2*n()-1,o=Math.sqrt(1-i*i)*e;return t[0]=Math.cos(r)*o,t[1]=Math.sin(r)*o,t[2]=i*e,t},rotateX:function(t,e,n,r){const s=[],i=[];return s[0]=e[0]-n[0],s[1]=e[1]-n[1],s[2]=e[2]-n[2],i[0]=s[0],i[1]=s[1]*Math.cos(r)-s[2]*Math.sin(r),i[2]=s[1]*Math.sin(r)+s[2]*Math.cos(r),t[0]=i[0]+n[0],t[1]=i[1]+n[1],t[2]=i[2]+n[2],t},rotateY:function(t,e,n,r){const s=[],i=[];return s[0]=e[0]-n[0],s[1]=e[1]-n[1],s[2]=e[2]-n[2],i[0]=s[2]*Math.sin(r)+s[0]*Math.cos(r),i[1]=s[1],i[2]=s[2]*Math.cos(r)-s[0]*Math.sin(r),t[0]=i[0]+n[0],t[1]=i[1]+n[1],t[2]=i[2]+n[2],t},rotateZ:function(t,e,n,r){const s=[],i=[];return s[0]=e[0]-n[0],s[1]=e[1]-n[1],s[2]=e[2]-n[2],i[0]=s[0]*Math.cos(r)-s[1]*Math.sin(r),i[1]=s[0]*Math.sin(r)+s[1]*Math.cos(r),i[2]=s[2],t[0]=i[0]+n[0],t[1]=i[1]+n[1],t[2]=i[2]+n[2],t},round:function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t},scale:d,scaleAndAdd:p,set:a,sign:m,sqrDist:L,sqrLen:B,squaredDistance:y,squaredLength:v,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:T,subtract:h,transformMat3:O,transformMat4:A,transformQuat:P,transformQuatValues:w},Symbol.toStringTag,{value:"Module"}))},69397(t,e,n){n.d(e,{Qf:()=>u,Qh:()=>o,RS:()=>s,Ul:()=>m,i5:()=>l,lM:()=>i,qK:()=>c});var r=n(34275);const s=16;function i(t){if(!t)return 0;let e=c;for(const n in t)t.hasOwnProperty(n)&&(e+=a(t[n],!1));return e}function o(t){if(!t)return 0;if("number"==typeof t[0])return u(t);if(Array.isArray(t))return function(t){const e=t.length;if(0===e||"number"==typeof t[0])return h(t,8);let n=f;for(let r=0;r<e;r++)n+=a(t[r]);return n}(t);let e=c;for(const n in t)t.hasOwnProperty(n)&&(e+=a(t[n]));return e}function a(t,e=!0){switch(typeof t){case"object":return e?o(t):c;case"string":return function(t){return 32+t.length}(t);case"number":return s;case"boolean":return 4;default:return 8}}function u(...t){return t.reduce((t,e)=>t+(e?(0,r.iu)(e)?e.byteLength+l:Array.isArray(e)?h(e,s):0:0),0)}function h(t,e){return f+t.length*e}const c=32,f=16,l=145,m=64},87992(t,e,n){n.d(e,{JR:()=>I,ME:()=>E,MY:()=>S,NO:()=>C,Nh:()=>_,V2:()=>Z,_s:()=>F,e6:()=>Y,gh:()=>b,tr:()=>V,uX:()=>d});var r=n(5482),s=n(69397),i=n(16930),o=(n(70328),n(19419)),a=n(60408),u=n(21325),h=n(513),c=n(50954),f=n(79567),l=n(52006),m=n(49663),g=n(46068),x=n(92722);class d{constructor({type:t,spatialReference:e,vertexCount:n,vertexXY:r,vertexZ:s,vertexM:i,partCount:o,partOffsets:a,partFlags:u,segmentFlags:h,segmentIndices:c,segmentParams:f,segmentCountArc:l,segmentCountBezier:m}){this.segmentCountArc=0,this.segmentCountBezier=0,this.type=t,this.spatialReference=e,this.vertexCount=n,this.vertexXY=r,this.vertexZ=s,this.vertexM=i,this.partCount=o,this.partOffsets=a,this.partFlags=u,this.segmentFlags=h,this.segmentIndices=c,this.segmentParams=f,this.segmentCountArc=l,this.segmentCountBezier=m}get segmentParamCount(){return 10*this.segmentCountArc+4*this.segmentCountBezier}get segmentCountLine(){const{segmentCount:t,segmentCountArc:e,segmentCountBezier:n}=this;return t&&t-e-n}get segmentCount(){return"polyline"===this.type?this.vertexCount-this.partCount:"polygon"===this.type?this.vertexCount:0}get hasZ(){return null!=this.vertexZ}get hasM(){return null!=this.vertexM}hasCurves(){return null!=this.segmentFlags}isMultipart(){return"polyline"===this.type||"polygon"===this.type}get usedMemory(){function t(t){return t?s.Ul+t.byteLength:0}return t(this.vertexXY)+t(this.vertexZ)+t(this.vertexM)+t(this.partOffsets)+t(this.partFlags)+t(this.segmentFlags)+t(this.segmentIndices)+t(this.segmentParams)}clone(){const{type:t,vertexCount:e,partCount:n,hasZ:r,hasM:s,segmentCountArc:i,segmentCountBezier:o}=this,a=Z(t,e,n,r,s,this.hasCurves(),i,o);a.spatialReference=this.spatialReference;const{vertexXY:u,vertexZ:h,vertexM:c}=this;if(a.vertexXY.set(u.subarray(0,2*e),0),a.vertexZ?.set(h.subarray(0,e),0),a.vertexM?.set(c.subarray(0,e),0),this.isMultipart()){const{partOffsets:t,partFlags:e}=this;a.partFlags.set(e.subarray(0,n+1)),a.partOffsets.set(t.subarray(0,n+1))}if(this.hasCurves()){const{segmentFlags:t,segmentIndices:n,segmentParams:r,segmentParamCount:s}=this;a.segmentFlags.set(t.subarray(0,e),0),a.segmentIndices.set(n.subarray(0,e),0),a.segmentParams.set(r.subarray(0,s),0)}return a}equals(t){return this.equalsWithinTolerance(t,0)}equalsWithinTolerance(t,e){if(null==t)return!1;if(this===t)return!0;if(!(0,u.aI)(this.spatialReference,t.spatialReference))return!1;if(this.vertexCount!==t.vertexCount||this.partCount!==t.partCount)return!1;if(this.hasZ!==t.hasZ||this.hasM!==t.hasM)return!1;if(this.hasCurves()!==t.hasCurves()||this.segmentCountArc!==t.segmentCountArc||this.segmentCountBezier!==t.segmentCountBezier)return!1;const n=0===e?(t,e)=>t!==e||isNaN(t)!==isNaN(e):(t,n)=>Math.abs(t-n)>e||isNaN(t)!==isNaN(n);for(let e=0;e<this.vertexCount;++e)if(n(this.vertexXY[2*e],t.vertexXY[2*e])||n(this.vertexXY[2*e+1],t.vertexXY[2*e+1]))return!1;if(this.hasZ)for(let e=0;e<this.vertexCount;++e)if(n(this.vertexZ[e],t.vertexZ[e]))return!1;if(this.hasM)for(let e=0;e<this.vertexCount;++e)if(n(this.vertexM[e],t.vertexM[e]))return!1;for(let e=0;e<this.partCount;++e)if(this.partFlags[e]!==t.partFlags[e]||this.partOffsets[e]!==t.partOffsets[e])return!1;if(this.hasCurves()){for(let e=0;e<this.vertexCount;++e)if(this.segmentFlags[e]!==t.segmentFlags[e]||this.segmentIndices[e]!==t.segmentIndices[e])return!1;for(let e=0;e<this.segmentParamCount;++e)if(n(this.segmentParams[e],t.segmentParams[e]))return!1}return!0}get parts(){return this.isMultipart()?new p(this):[][Symbol.iterator]()}}class p{constructor(t){this.geometry=t,this.value=new M(t)}get done(){return this.value.index>=this.geometry.partCount}next(){return++this.value.index,this}[Symbol.iterator](){return this}}class M{constructor(t){this.geometry=t,this.index=-1,this._readVertex=P(t),this._segments=new y(this)}get segments(){return this._segments.reset(),this._segments}get startVertex(){return this._readVertex(this.geometry.partOffsets[this.index])}get vertexCount(){const t=this.geometry.partOffsets;return t[this.index+1]-t[this.index]}}class y{constructor(t){this._part=t,this._partStart=0,this._partEnd=0,this._isPolygon="polygon"===t.geometry.type,this.value=new v(t.geometry)}get done(){return this.value.indexOfStartVertex>this._partEnd}next(){++this.value.indexOfStartVertex;const t=this.value.indexOfStartVertex>=this._partEnd;return this.value.indexOfEndVertex=t&&this._isPolygon?this._partStart:this.value.indexOfStartVertex+1,this}[Symbol.iterator](){return this}reset(){const{index:t}=this._part,e=this._part.geometry.partOffsets;this._partStart=e[t],this._partEnd=e[t+1]-(this._isPolygon?1:2),this.value.indexOfStartVertex=this._partStart-1}}class v{constructor(t){this.geometry=t,this.indexOfStartVertex=-1,this.indexOfEndVertex=-1,this._readVertex=P(t)}get xStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex]}get yStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex+1]}get zStart(){return this.geometry.vertexZ[this.indexOfStartVertex]}get mStart(){return this.geometry.vertexM[this.indexOfStartVertex]}get xEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex]}get yEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex+1]}get zEnd(){return this.geometry.vertexZ[this.indexOfEndVertex]}get mEnd(){return this.geometry.vertexM[this.indexOfEndVertex]}get start(){return this._readVertex(this.indexOfStartVertex)}get end(){return this._readVertex(this.indexOfEndVertex)}get curve(){const t=this.geometry.segmentFlags?.[this.indexOfStartVertex]??1;if(1===t)return this.end;const e=this.geometry.segmentParams;let n=this.geometry.segmentIndices[this.indexOfStartVertex];if(2===t){const t=e[n++],r=e[n++],s=e[n++],i=e[n++];return{b:[this.end,[t,r],[s,i]]}}const r=e[n++],s=e[n++],i=e[n++],o=e[n++],a=e[n++],u=e[n++];n++,n++;const h=e[n++],c=e[n++];if(!Boolean(4&r)&&1===i)return{c:[this.end,[h,c]]};const f=2&r?0:1,l=1&r?0:1;return{a:[this.end,[a,u],f,l,o,s,i]}}}function C(t,e){const n={stack:[],error:void 0,hasError:!1};try{return e??=(0,o.Ie)(),(0,r.mS)(n,new A(t,["vertexZ","vertexM","spatialReference"]),!1),(0,o.bx)(e,function(t){let e;const{vertexCount:n,vertexXY:s,vertexZ:i,vertexM:a}=t,u=O(t);if(t.hasCurves()){const n={stack:[],error:void 0,hasError:!1};try{(0,r.mS)(n,new A(t,["vertexZ","vertexM"]),!1);const s=(0,o.Ie)();for(const e of t.parts){let t=e.startVertex;for(const{curve:n}of e.segments)(0,f.e)(s,t,n),t=(0,l.yP)(n)}const[i,a,h,c]=s;e={xmin:i,ymin:a,xmax:h,ymax:c,spatialReference:u}}catch(t){n.error=t,n.hasError=!0}finally{(0,r.hk)(n)}}else{let t,r,i,o;t=r=1/0,i=o=-1/0;for(let e=0;e<n;++e){const n=s[2*e],a=s[2*e+1];t=Math.min(t,n),i=Math.max(i,n),r=Math.min(r,a),o=Math.max(o,a)}e={xmin:t,ymin:r,xmax:i,ymax:o,spatialReference:u}}if(i){let t=1/0,n=-1/0;for(const e of i)t=Math.min(t,e),n=Math.max(n,e);e.zmin=t,e.zmax=n}if(a){let t=1/0,n=-1/0;for(const e of a)t=Math.min(t,e),n=Math.max(n,e);e.mmin=t,e.mmax=n}return e}(t)),e}catch(t){n.error=t,n.hasError=!0}finally{(0,r.hk)(n)}}function E(t){let e,n,r;if((0,a.fT)(t)){r="point";const{x:s,y:i,z:o,m:a}=t,u=[s,i];null!=o&&u.push(o),null!=a&&u.push(a),n=[[u]],e=1}else(0,a.U9)(t)?(r="multipoint",n=[t.points],e=t.points.length):(0,a.Rg)(t)?(r="polyline",n=t.curvePaths??t.paths,e=n.reduce((t,e)=>t+e.length,0)):(r="polygon",n=t.curveRings??t.rings,e=n.reduce((t,e)=>(0===e.length||(t+=e.length,w(e[0],(0,l.yP)(e.at(-1)))&&--t),t),0));const s=Z(r,e,r.includes("point")?0:n.length,(0,a.Pv)(t),(0,a.W0)(t),(0,l.Ed)(t)),{hasZ:i,hasM:o,vertexXY:u,vertexZ:h,vertexM:c}=s;function f(t){u[2*g]=t[0],u[2*g+1]=t[1],i&&(h[g]=t[2]),o&&(c[g]=t[m]),++g}s.spatialReference=t.spatialReference??void 0;const m=s.hasZ?3:2;let g=0;if(!s.isMultipart()){if(!i&&!o){for(const[t,e]of n[0])u[2*g]=t,u[2*g+1]=e,++g;return s}for(const t of n[0])f(t);return s}const x="polygon"===r,{partOffsets:d}=s;let p=0;if(!s.hasCurves()){for(const t of n){if(d[p++]=g,0===t.length)continue;let e=t.length;if(x&&w(t[0],t.at(-1))&&--e,i||o)for(let n=0;n<e;++n)f(t[n]);else for(let n=0;n<e;++n){const[e,r]=t[n];u[2*g]=e,u[2*g+1]=r,++g}}return d[p]=g,s}function M(t){const e=y+t;if(e<=(s.segmentParams?.length??0))return;let n=e*T;n=20*Math.ceil(n/20);const r=s.segmentParams;s.segmentParams=new Float64Array(n),null!=r&&s.segmentParams.set(r)}let y=0;for(const t of n){if(s.partOffsets[p++]=g,0===t.length)continue;const e=t[0];let n=e;for(let e=1;e<t.length;++e){const r=t[e];f(n);const i=g-1;(0,l.wY)(r)?(M(10),++s.segmentCountArc,y=F(n,r,s,i,y),n=r.a[0]):(0,l.DA)(r)?(M(10),++s.segmentCountArc,y=R(n,r,s,i,y),n=r.a[0]):(0,l.aO)(r)?(M(10),++s.segmentCountArc,y=Y(n,r,s,i,y),n=r.c[0]):(0,l.n1)(r)?(M(4),++s.segmentCountBezier,y=V(0,r,s,i,y),n=r.b[0]):n=r}x&&w(e,n)||f(n)}return s.partOffsets[p]=g,s}function b(t){const e=P(t),{vertexCount:n,partCount:r,hasZ:s,hasM:i}=t,o=O(t);if("point"===t.type){const[e,n]=t.vertexXY,r=t.vertexZ?.[0],s=t.vertexM?.[0];return{x:e,y:n,z:r,m:s,spatialReference:o}}let a=0;if("multipoint"===t.type){const t=[];for(;a<n;)t.push(e(a++));return{points:t,spatialReference:o,hasZ:s,hasM:i}}const u="polygon"===t.type;if(!t.hasCurves()){const n=new Array;for(let s=0;s<r;++s){const r=t.partOffsets[s+1],i=new Array;for(;a<r;)i.push(e(a++));u&&i.length>0&&i.push(i[0]),n.push(i)}return u?{rings:n,hasZ:s,hasM:i,spatialReference:o}:{paths:n,hasZ:s,hasM:i,spatialReference:o}}const h=new Array;for(const{segments:e,startVertex:n}of t.parts){const t=[n];for(const{curve:n}of e)t.push(n);h.push(t)}return u?{rings:[],curveRings:h,hasZ:s,hasM:i,spatialReference:o}:{paths:[],curvePaths:h,hasZ:s,hasM:i,spatialReference:o}}function _(t,{lengths:e,coords:n,hasZ:r,hasM:s},i){const o=t.includes("point")?0:e.length,a="polygon"===t,u="point"===t?1:e.reduce((t,e)=>t+e,0)-(a?o:0);r??=!1,s??=!1;const h=Z(t,u,o,r,s,!1,0,0);if(h.spatialReference=i??void 0,!h.isMultipart()){for(let t=0,e=0;t<u;++t)h.vertexXY[2*t]=n[e++],h.vertexXY[2*t+1]=n[e++],r&&(h.vertexZ[t]=n[e++]),s&&(h.vertexM[t]=n[e++]);return h}const c=2+Number(r)+Number(s);let f=0,l=0;h.partOffsets[0]=0;for(const t of e){const e=h.partOffsets[l],i=e+t-Number(a);h.partOffsets[++l]=i;for(let t=e;t<i;++t)h.vertexXY[2*t]=n[f++],h.vertexXY[2*t+1]=n[f++],r&&(h.vertexZ[t]=n[f++]),s&&(h.vertexM[t]=n[f++]);a&&(f+=c)}return h}function I({type:t,vertexCount:e,vertexXY:n,vertexZ:r,vertexM:s,partCount:i,partOffsets:o,hasZ:a,hasM:u}){const h=new x.A([],[],a,u);i=Math.max(i,1);const c="polygon"===t;let f=0;for(let t=0;t<i;++t){const i=o?.[t+1]??e,l=h.coords.length;for(let t=f;t<i;++t)h.coords.push(n[2*t],n[2*t+1]),a&&h.coords.push(r[t]),u&&h.coords.push(s[t]);if(c){const t=f;h.coords.push(n[2*t],n[2*t+1]),a&&h.coords.push(r[t]),u&&h.coords.push(s[t])}h.lengths.push((h.coords.length-l)/h.stride),f=i}return"point"===t&&(h.lengths.length=0),h}function S(t,e){return"getSpatialReference"in t&&(e=function(t){if(null==t)return;const e=t.getText()||void 0,n=t.isCustomWkid()?0:t.getOldID();if(n<=0)return{wkt:e};let r=t.getLatestID();(r<=0||r===n)&&(r=void 0);const s=t.getVCS();if(null==s)return{wkid:n,latestWkid:r,wkt:e};const i=s.isCustomWkid()?0:s.getOldID();if(i<=0)return{wkt:e};let o=t.getLatestVerticalID();return(o<=0||o===i)&&(o=void 0),{wkid:n,wkt:e,latestWkid:r,vcsWkid:i,latestVcsWkid:o}}(t.getSpatialReference()),t=t.getGeometry()),new d({...t.toFlatGeometry(),spatialReference:e})}class A{constructor(t,e){this.target=t,this.keys=e,this.oldValues=e.map(e=>t[e]);for(const n of e)t[n]=void 0}[Symbol.dispose](){this.keys.map((t,e)=>{this.target[t]=this.oldValues[e]})}}function O({spatialReference:t}){return t instanceof i.A?t.toJSON():t}function P({vertexXY:t,vertexZ:e,vertexM:n}){return e?n?r=>[t[2*r],t[2*r+1],e[r],n[r]]:n=>[t[2*n],t[2*n+1],e[n]]:n?e=>[t[2*e],t[2*e+1],n[e]]:e=>[t[2*e],t[2*e+1]]}function w(t,e){return t.every((t,n)=>t===e[n])}function Z(t,e,n,r,s,i,o,a){o??=0,a??=0;const u=new d({type:t,vertexCount:e,vertexXY:null,vertexZ:void 0,vertexM:void 0,partCount:n,partOffsets:void 0,partFlags:void 0,segmentFlags:void 0,segmentIndices:void 0,segmentParams:void 0,segmentCountArc:o,segmentCountBezier:a});let h=2*Float64Array.BYTES_PER_ELEMENT*e;r&&(h+=Float64Array.BYTES_PER_ELEMENT*e),s&&(h+=Float64Array.BYTES_PER_ELEMENT*e),u.isMultipart()&&(h+=(n+1)*Int32Array.BYTES_PER_ELEMENT,h+=(n+1)*Int8Array.BYTES_PER_ELEMENT),i&&(h+=e*Int8Array.BYTES_PER_ELEMENT,h+=e*Int32Array.BYTES_PER_ELEMENT,h+=u.segmentParamCount*Float64Array.BYTES_PER_ELEMENT);const c=new ArrayBuffer(h);let f=0;return u.vertexXY=new Float64Array(c,f,2*e),f+=u.vertexXY.byteLength,r&&(u.vertexZ=new Float64Array(c,f,e),f+=u.vertexZ.byteLength),s&&(u.vertexM=new Float64Array(c,f,e),f+=u.vertexM.byteLength),i&&(u.segmentParams=new Float64Array(c,f,u.segmentParamCount),f+=u.segmentParams.byteLength,u.segmentIndices=new Int32Array(c,f,e),u.segmentIndices.fill(z),f+=u.segmentIndices.byteLength),u.isMultipart()&&(u.partOffsets=new Int32Array(c,f,n+1),f+=u.partOffsets.byteLength,u.partFlags=new Int8Array(c,f,n+1),f+=u.partFlags.byteLength,"polygon"===u.type&&u.partFlags.subarray(0,n).fill(1)),i&&(u.segmentFlags=new Int8Array(c,f,e),u.segmentFlags.fill(1),f+=u.segmentFlags.byteLength),u}function F(t,e,{segmentFlags:n,segmentIndices:r,segmentParams:s},i,o){n[i]=4,r[i]=o;const[a,[u,h],c,f,l,m,x]=e.a;let d=4;f||(d|=1),c||(d|=2);const p=(0,g.SW)(t,e),[M,y]=(0,g.Uk)(p,.5);return s[o++]=d,s[o++]=m,s[o++]=x,s[o++]=l,s[o++]=u,s[o++]=h,s[o++]=p.u2-p.u1,s[o++]=p.u1,s[o++]=M,s[o++]=y,o}function R(t,e,{segmentFlags:n,segmentIndices:r,segmentParams:s},i,o){n[i]=4,r[i]=o;const a=(0,m.io)(t,e);return N(a,4,...(0,h.mq)(a,.5),s,o)}function Y(t,e,{segmentFlags:n,segmentIndices:r,segmentParams:s},i,o){return n[i]=4,r[i]=o,N((0,c.pM)(t,e),0,...e.c[1],s,o)}function N(t,e,n,r,s,i){const{cx:o,cy:a,thetaStart:u,thetaEnd:h,radius:c}=t;return u>h||(e|=1),Math.abs(h-u)<=Math.PI||(e|=2),s[i++]=e,s[i++]=c,s[i++]=1,s[i++]=0,s[i++]=o,s[i++]=a,s[i++]=h-u,s[i++]=u,s[i++]=n,s[i++]=r,i}function V(t,{b:[e,[n,r],[s,i]]},{segmentFlags:o,segmentIndices:a,segmentParams:u},h,c){return o[h]=2,a[h]=c,u[c++]=n,u[c++]=r,u[c++]=s,u[c++]=i,c}const T=1.61803,z=-1},81150(t,e,n){n.d(e,{Pg:()=>u,fz:()=>h,g7:()=>o,zo:()=>a});var r=n(76061),s=(n(55537),n(88885),n(15756));n(95213);const i=new s.f;function o(t,e,n){return i.execute(t,e,n,null)}function a(t,e,n){const s=i.executeMany(new r.S(t),e,n,null);return Array.from(s)}function u(t,e,n){return i.isSimpleAsFeature(t,e,n,null,null)}function h(){return i.supportsCurves()}},3637(t,e,n){n.r(e),n.d(e,{execute:()=>i,executeMany:()=>o,isSimple:()=>a});var r=n(81150),s=n(83299);function i(t){const e=(0,s.fromGeometry)(t),n=e.getSpatialReference();return(0,s.toGeometry)((0,r.g7)(e.getGeometry(),n,!1),n)}function o(t){const[e,n]=(0,s.fromGeometries)(t);return(0,r.zo)(e,n,!1).map(t=>(0,s.toGeometry)(t,n))}function a(t){const e=(0,s.fromGeometry)(t);return(0,r.Pg)(e.getGeometry(),e.getSpatialReference(),!1)}},4197(t,e,n){n.d(e,{Vj:()=>u,cj:()=>a,jh:()=>i,l5:()=>o});var r=n(34275),s=n(9093);function i(t){return t<=r.y9?new Array(t).fill(0):new Float64Array(t)}function o(t,e,n){return Array.isArray(t)?t.slice(e,e+n):t.subarray(e,e+n)}function a(t){return[...t]}function u(t){const e=(0,s.vt)();for(let n=0;n<16;++n)e[n]=t[n];return e}},70328(t,e,n){n.d(e,{BI:()=>y,DC:()=>f,Ej:()=>m,Ie:()=>p,Jt:()=>M,Ne:()=>g,RF:()=>c,aI:()=>C,fA:()=>o,gE:()=>u,hZ:()=>d,iT:()=>l,is:()=>v,qv:()=>E,vI:()=>x,vY:()=>a,v_:()=>b,vt:()=>i,w1:()=>h}),n(35522);var r=n(5443),s=(n(19419),n(4197));function i(t=b){return[t[0],t[1],t[2],t[3],t[4],t[5]]}function o(t,e,n,r,s,o,a=i()){return a[0]=t,a[1]=e,a[2]=n,a[3]=r,a[4]=s,a[5]=o,a}function a(t,e=i()){return function(t,e,n,r=i()){return d(r,E),function(t,e,n=0,r=e.length/3){let s=t[0],i=t[1],o=t[2],a=t[3],u=t[4],h=t[5];for(let t=0;t<r;t++)s=Math.min(s,e[n+3*t]),i=Math.min(i,e[n+3*t+1]),o=Math.min(o,e[n+3*t+2]),a=Math.max(a,e[n+3*t]),u=Math.max(u,e[n+3*t+1]),h=Math.max(h,e[n+3*t+2]);t[0]=s,t[1]=i,t[2]=o,t[3]=a,t[4]=u,t[5]=h}(r,t,e,n),r}(t,0,t.length/3,e)}function u(t,e=(0,s.jh)(24)){const[n,r,i,o,a,u]=t;return e[0]=n,e[1]=r,e[2]=i,e[3]=n,e[4]=r,e[5]=u,e[6]=n,e[7]=a,e[8]=i,e[9]=n,e[10]=a,e[11]=u,e[12]=o,e[13]=r,e[14]=i,e[15]=o,e[16]=r,e[17]=u,e[18]=o,e[19]=a,e[20]=i,e[21]=o,e[22]=a,e[23]=u,e}function h(t,e){const n=isFinite(t[2])||isFinite(t[5]);return new r.A(n?{xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],zmin:t[2],zmax:t[5],spatialReference:e}:{xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],spatialReference:e})}function c(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.min(t[2],e[2]),t[3]=Math.max(t[3],e[3]),t[4]=Math.max(t[4],e[4]),t[5]=Math.max(t[5],e[5])}function f(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[3]=Math.max(t[3],e[2]),t[4]=Math.max(t[4],e[3])}function l(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.min(t[2],e[2]),t[3]=Math.max(t[3],e[0]),t[4]=Math.max(t[4],e[1]),t[5]=Math.max(t[5],e[2])}function m(t,e=[0,0,0]){return e[0]=function(t){return t[0]>=t[3]?0:t[3]-t[0]}(t),e[1]=function(t){return t[1]>=t[4]?0:t[4]-t[1]}(t),e[2]=function(t){return t[2]>=t[5]?0:t[5]-t[2]}(t),e}function g(t,e,n=t){return n[0]=e[0],n[1]=e[1],n[2]=e[2],n!==t&&(n[3]=t[3],n[4]=t[4],n[5]=t[5]),n}function x(t,e,n=t){return n[3]=e[0],n[4]=e[1],n[5]=e[2],n!==t&&(n[0]=t[0],n[1]=t[1],n[2]=t[2]),t}function d(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function p(t){return t?d(t,E):i(E)}function M(t,e){return t[0]=e[0],t[1]=e[1],t[2]=Number.NEGATIVE_INFINITY,t[3]=e[2],t[4]=e[3],t[5]=Number.POSITIVE_INFINITY,t}function y(t,e,n,r,s){return t[0]=e,t[1]=n,t[2]=Number.NEGATIVE_INFINITY,t[3]=r,t[4]=s,t[5]=Number.POSITIVE_INFINITY,t}function v(t){return 6===t.length}function C(t,e,n){if(null==t||null==e)return t===e;if(!v(t)||!v(e))return!1;if(n){for(let r=0;r<t.length;r++)if(!n(t[r],e[r]))return!1}else for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}const E=[1/0,1/0,1/0,-1/0,-1/0,-1/0],b=[0,0,0,0,0,0];i()},92722(t,e,n){n.d(e,{A:()=>s});var r=n(69397);class s{constructor(t=[],e=[],n=!1,r=!1){this.lengths=t??[],this.coords=e??[],this.hasZ=n,this.hasM=r}static fromJSON({lengths:t,coords:e,hasZ:n,hasM:r}){return new s(t,e,n||!1,r||!1)}static fromRect([t,e,n,r]){const i=n-t,o=r-e;return new s([5],[t,e,i,0,0,o,-i,0,0,-o])}get isPoint(){return 0===this.lengths.length&&this.coords.length>=2}get maxLength(){return Math.max(...this.lengths)}get size(){return this.isPoint?1:this.lengths.reduce((t,e)=>t+e,0)}get usedMemory(){return 64+(0,r.Qf)(this.lengths,this.coords)}get stride(){return 2+(this.hasZ?1:0)+(this.hasM?1:0)}area(){if(this.isPoint)return 0;let t=0,e=0;for(const n of this.lengths){if(n<3)continue;const{stride:r}=this;let s=this.coords[r*e],i=this.coords[r*e+1];for(let o=1;o<n;o+=1){const n=r*(e+o),a=this.coords[n],u=this.coords[n+1];t+=-.5*(a-s)*(u+i),s=a,i=u}e+=n}return t}forEachVertex(t){let e=0;if(this.isPoint)return t(this.coords[0],this.coords[1]);const{stride:n}=this;for(const r of this.lengths){for(let s=0;s<r;s++){const r=n*(e+s);t(this.coords[r],this.coords[r+1])}e+=r}}deltaDecode(){const t=this.clone(),{coords:e,lengths:n}=t;let r=0;const{stride:s}=this;for(const t of n){for(let n=1;n<t;n++){const t=s*(r+n);e[t]+=e[t-s],e[t+1]+=e[t+1-s]}r+=t}return t}clone(t){if(this.isPoint)return new s([],Array.from(this.coords.slice(0,this.stride)),this.hasZ,this.hasM);const e=Array.from(this.lengths),{stride:n,size:r}=this,i=this.coords.slice(0,r*n);return t?(t.set(i),new s(e,t,this.hasZ,this.hasM)):new s(e,Array.from(i),this.hasZ,this.hasM)}justXY(){const{stride:t,size:e}=this;if(2===t)return this;const n=new Array(e*t);for(let e=0,r=0;e<n.length;e+=t)n[r++]=this.coords[e],n[r++]=this.coords[e+1];return new s(this.lengths,n,!1,!1)}}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7033],{69052(e,t,r){r.d(t,{hr:()=>n,ie:()=>l,uC:()=>a});var i=r(34727);class n{constructor(e,t){this.min=e,this.max=t,this.range=t-e}normalize(e,t=0,r=!1){return o(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+s(this.range,e-t,r)}minimalMonotonic(e,t,r){return o(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);const 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 o(e,t,r,i,n=0,o=!1){return(i-=n)<t?i+=s(e,t-i):i>r&&(i-=s(e,i-r)),o&&i===r&&(i=t),i+n}function s(e,t,r=0){return Math.ceil((t-r)/e)*e+r}const a=new n(0,2*Math.PI),l=(new n(-Math.PI,Math.PI),new n(0,360))},46140(e,t,r){r.d(t,{A:()=>n});var i=r(49186);class n{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){const 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 n(this.major,this.minor,this._context)}static parse(e,t=""){const[r,o]=e.split("."),s=/^\s*\d+\s*$/;if(!r?.match||!s.test(r))throw new i.A((t&&t+":")+"invalid-version","Expected major version to be a number, but got '${version}'",{version:e});if(!o?.match||!s.test(o))throw new i.A((t&&t+":")+"invalid-version","Expected minor version to be a number, but got '${version}'",{version:e});const a=parseInt(r,10),l=parseInt(o,10);return new n(a,l,t)}}},6797(e,t,r){r.d(t,{Ui:()=>d});var i=r(69622),n=r(7762),o=r(88620);const s=new Set(["esri.Color","esri.portal.Portal","esri.symbols.support.Symbol3DAnchorPosition2D","esri.symbols.support.Symbol3DAnchorPosition3D"]);function a(e){return e instanceof i.A}function l(e){return e instanceof n.A?Object.keys(e.items):a(e)?(0,o.oY)(e).keys():e?Object.keys(e):[]}function u(e,t){return e instanceof n.A?e.items[t]:e[t]}function p(e){return e?e.declaredClass:null}function c(e,t){const r=e.diff;if(r&&"function"==typeof r)return r(e,t);const i=l(e),n=l(t);if(0===i.length&&0===n.length)return;if(!i.length||!n.length||function(e,t){return!(!Array.isArray(e)||!Array.isArray(t))&&e.length!==t.length}(e,t))return{type:"complete",oldValue:e,newValue:t};const o=n.filter(e=>!i.includes(e)),d=i.filter(e=>!n.includes(e)),y=i.filter(r=>n.includes(r)&&u(e,r)!==u(t,r)).concat(o,d).sort(),m=p(e);if(m&&s.has(m)&&y.length)return{type:"complete",oldValue:e,newValue:t};let h;const f=a(e)&&a(t);for(const i of y){const n=u(e,i),o=u(t,i);let s;if((f||"function"!=typeof n&&"function"!=typeof o)&&n!==o&&(null!=n||null!=o)){if(r&&r[i]&&"function"==typeof r[i])s=r[i]?.(n,o);else if(n instanceof Date&&o instanceof Date){if(n.getTime()===o.getTime())continue;s={type:"complete",oldValue:n,newValue:o}}else s="object"==typeof n&&"object"==typeof o&&p(n)===p(o)?c(n,o):{type:"complete",oldValue:n,newValue:o};null!=s&&(null!=h?h.diff[i]=s:h={type:"partial",diff:{[i]:s}})}}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:()=>n});var i=r(76553);function n(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)})}},9093(e,t,r){function i(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function n(e){return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15]]}r.d(t,{o8:()=>n,vt:()=>i,zK:()=>o});const o=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:o,clone:n,create:i,fromValues:function(e,t,r,i,n,o,s,a,l,u,p,c,d,y,m,h){return[e,t,r,i,n,o,s,a,l,u,p,c,d,y,m,h]}},Symbol.toStringTag,{value:"Module"}))},35522(e,t,r){r.d(t,{$A:()=>A,Bw:()=>o,C:()=>s,Cc:()=>I,DI:()=>T,Il:()=>$,Io:()=>b,Ln:()=>g,Om:()=>S,Qr:()=>c,Re:()=>u,S8:()=>M,T9:()=>h,WQ:()=>l,Z0:()=>O,_S:()=>y,aI:()=>F,ei:()=>j,fw:()=>Z,g7:()=>D,gL:()=>N,hG:()=>v,hZ:()=>a,hs:()=>f,jb:()=>_,jk:()=>m,lo:()=>k,lw:()=>p,m3:()=>w,oW:()=>P,t2:()=>R,tn:()=>d,uE:()=>U,xg:()=>J,ze:()=>C});var i=r(51850),n=r(34304);function o(e){const t=e[0],r=e[1],i=e[2];return Math.sqrt(t*t+r*r+i*i)}function s(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function a(e,t,r,i){return e[0]=t,e[1]=r,e[2]=i,e}function l(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e[2]=t[2]+r[2],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}function p(e,t,r){return e[0]=t[0]*r[0],e[1]=t[1]*r[1],e[2]=t[2]*r[2],e}function c(e,t,r){return e[0]=t[0]/r[0],e[1]=t[1]/r[1],e[2]=t[2]/r[2],e}function d(e,t){return e[0]=Math.abs(t[0]),e[1]=Math.abs(t[1]),e[2]=Math.abs(t[2]),e}function y(e,t){return e[0]=Math.sign(t[0]),e[1]=Math.sign(t[1]),e[2]=Math.sign(t[2]),e}function m(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}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}function f(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e}function g(e,t,r,i){return e[0]=t[0]+r[0]*i,e[1]=t[1]+r[1]*i,e[2]=t[2]+r[2]*i,e}function b(e,t){const r=t[0]-e[0],i=t[1]-e[1],n=t[2]-e[2];return Math.sqrt(r*r+i*i+n*n)}function v(e,t){const r=t[0]-e[0],i=t[1]-e[1],n=t[2]-e[2];return r*r+i*i+n*n}function w(e){const t=e[0],r=e[1],i=e[2];return t*t+r*r+i*i}function C(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e}function T(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e}function M(e,t){const r=t[0],i=t[1],n=t[2];let o=r*r+i*i+n*n;return o>0&&(o=1/Math.sqrt(o),e[0]=t[0]*o,e[1]=t[1]*o,e[2]=t[2]*o),e}function S(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function A(e,t,r){const i=t[0],n=t[1],o=t[2],s=r[0],a=r[1],l=r[2];return e[0]=n*l-o*a,e[1]=o*s-i*l,e[2]=i*a-n*s,e}function I(e,t,r,i){const n=t[0],o=t[1],s=t[2];return e[0]=n+i*(r[0]-n),e[1]=o+i*(r[1]-o),e[2]=s+i*(r[2]-s),e}function O(e,t,r){const i=t[0],n=t[1],o=t[2];return e[0]=r[0]*i+r[4]*n+r[8]*o+r[12],e[1]=r[1]*i+r[5]*n+r[9]*o+r[13],e[2]=r[2]*i+r[6]*n+r[10]*o+r[14],e}function j(e,t,r){const i=t[0],n=t[1],o=t[2];return e[0]=i*r[0]+n*r[3]+o*r[6],e[1]=i*r[1]+n*r[4]+o*r[7],e[2]=i*r[2]+n*r[5]+o*r[8],e}function N(e,t,r){return Z(e,t,r[0],r[1],r[2],r[3])}function Z(e,t,r,i,n,o){const s=t[0],a=t[1],l=t[2],u=i*l-n*a,p=n*s-r*l,c=r*a-i*s,d=i*c-n*p,y=n*u-r*c,m=r*p-i*u,h=2*o;return e[0]=s+u*h+2*d,e[1]=a+p*h+2*y,e[2]=l+c*h+2*m,e}function D(e,t){M(x,e),M(B,t);const r=S(x,B);return r>1?0:r<-1?Math.PI:Math.acos(r)}const x=(0,i.vt)(),B=(0,i.vt)();function R(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]}function F(e,t){if(e===t)return!0;const r=e[0],i=e[1],o=e[2],s=t[0],a=t[1],l=t[2],u=(0,n.FD)();return Math.abs(r-s)<=u*Math.max(1,Math.abs(r),Math.abs(s))&&Math.abs(i-a)<=u*Math.max(1,Math.abs(i),Math.abs(a))&&Math.abs(o-l)<=u*Math.max(1,Math.abs(o),Math.abs(l))}function P(e,t,r){const i=r[0]-t[0],n=r[1]-t[1],o=r[2]-t[2];let s=i*i+n*n+o*o;return s>0?(s=1/Math.sqrt(s),e[0]=i*s,e[1]=n*s,e[2]=o*s,e):(e[0]=0,e[1]=0,e[2]=0,e)}const _=u,E=p,L=c,J=b,k=v,$=o,U=w;Object.freeze(Object.defineProperty({__proto__:null,abs:d,add:l,angle:D,bezier:function(e,t,r,i,n,o){const s=1-o,a=s*s,l=o*o,u=a*s,p=3*o*a,c=3*l*s,d=l*o;return e[0]=t[0]*u+r[0]*p+i[0]*c+n[0]*d,e[1]=t[1]*u+r[1]*p+i[1]*c+n[1]*d,e[2]=t[2]*u+r[2]*p+i[2]*c+n[2]*d,e},ceil:function(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e[2]=Math.ceil(t[2]),e},clamp:function(e,t=0,r=1){return e[0]=Math.min(Math.max(e[0],t),r),e[1]=Math.min(Math.max(e[1],t),r),e[2]=Math.min(Math.max(e[2],t),r),e},copy:s,cross:A,crossAndNormalize:function(e,t,r){const i=t[0],n=t[1],o=t[2],s=r[0],a=r[1],l=r[2],u=n*l-o*a,p=o*s-i*l,c=i*a-n*s,d=Math.sqrt(u*u+p*p+c*c);return e[0]=u/d,e[1]=p/d,e[2]=c/d,e},direction:P,dist:J,distance:b,div:L,divide:c,dot:S,equals:F,exactEquals:R,floor:function(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e[2]=Math.floor(t[2]),e},hermite:function(e,t,r,i,n,o){const s=o*o,a=s*(2*o-3)+1,l=s*(o-2)+o,u=s*(o-1),p=s*(3-2*o);return e[0]=t[0]*a+r[0]*l+i[0]*u+n[0]*p,e[1]=t[1]*a+r[1]*l+i[1]*u+n[1]*p,e[2]=t[2]*a+r[2]*l+i[2]*u+n[2]*p,e},inverse:T,len:$,length:o,lerp:I,max:h,min:m,mul:E,multiply:p,negate:C,normalize:M,random:function(e,t=1){const r=n.Ov,i=2*r()*Math.PI,o=2*r()-1,s=Math.sqrt(1-o*o)*t;return e[0]=Math.cos(i)*s,e[1]=Math.sin(i)*s,e[2]=o*t,e},rotateX:function(e,t,r,i){const n=[],o=[];return n[0]=t[0]-r[0],n[1]=t[1]-r[1],n[2]=t[2]-r[2],o[0]=n[0],o[1]=n[1]*Math.cos(i)-n[2]*Math.sin(i),o[2]=n[1]*Math.sin(i)+n[2]*Math.cos(i),e[0]=o[0]+r[0],e[1]=o[1]+r[1],e[2]=o[2]+r[2],e},rotateY:function(e,t,r,i){const n=[],o=[];return n[0]=t[0]-r[0],n[1]=t[1]-r[1],n[2]=t[2]-r[2],o[0]=n[2]*Math.sin(i)+n[0]*Math.cos(i),o[1]=n[1],o[2]=n[2]*Math.cos(i)-n[0]*Math.sin(i),e[0]=o[0]+r[0],e[1]=o[1]+r[1],e[2]=o[2]+r[2],e},rotateZ:function(e,t,r,i){const n=[],o=[];return n[0]=t[0]-r[0],n[1]=t[1]-r[1],n[2]=t[2]-r[2],o[0]=n[0]*Math.cos(i)-n[1]*Math.sin(i),o[1]=n[0]*Math.sin(i)+n[1]*Math.cos(i),o[2]=n[2],e[0]=o[0]+r[0],e[1]=o[1]+r[1],e[2]=o[2]+r[2],e},round:function(e,t){return e[0]=Math.round(t[0]),e[1]=Math.round(t[1]),e[2]=Math.round(t[2]),e},scale:f,scaleAndAdd:g,set:a,sign:y,sqrDist:k,sqrLen:U,squaredDistance:v,squaredLength:w,str:function(e){return"vec3("+e[0]+", "+e[1]+", "+e[2]+")"},sub:_,subtract:u,transformMat3:j,transformMat4:O,transformQuat:N,transformQuatValues:Z},Symbol.toStringTag,{value:"Module"}))},76553(e,t,r){function i(e){return e&&"getAtOrigin"in e&&"originOf"in e}r.d(t,{H:()=>i})},159(e,t,r){r.d(t,{A:()=>u});var i,n=r(5482),o=r(69540),s=r(25482),a=r(91429),l=r(99157);let u=i=class extends((0,o.OU)(s.o)){constructor(e){super(e),this.steps=[]}getInverse(){const e=new i;for(let t=this.steps.length-1;t>=0;t--){const r=this.steps[t];e.steps.push(r.getInverse())}return e}};(0,n.Cg)([(0,a.MZ)({type:[l.A],nonNullable:!0,json:{name:"geoTransforms"}})],u.prototype,"steps",void 0),u=i=(0,n.Cg)([(0,a.$K)("esri.geometry.operators.support.GeographicTransformation")],u)},99157(e,t,r){r.d(t,{A:()=>l});var i,n=r(5482),o=r(69540),s=r(25482),a=r(91429);let l=i=class extends((0,o.OU)(s.o)){constructor(e){super(e),this.isInverse=!1,this.wkt=null,this.wkid=null}getInverse(){return new i({isInverse:!this.isInverse,wkid:this.wkid,wkt:this.wkt})}};(0,n.Cg)([(0,a.MZ)({json:{name:"transformForward",read:e=>!e,write:(e,t,r)=>{t[r]=!e}}})],l.prototype,"isInverse",void 0),(0,n.Cg)([(0,a.MZ)({json:{write:!0}})],l.prototype,"wkt",void 0),(0,n.Cg)([(0,a.MZ)({json:{write:!0}})],l.prototype,"wkid",void 0),l=i=(0,n.Cg)([(0,a.$K)("esri.geometry.operators.support.GeographicTransformationStep")],l)},9762(e,t,r){r.r(t),r.d(t,{projectBuffer:()=>n});var i=r(49208);function n(e,t,r,n,o,s,a=Math.floor(e.length/3)){const l=(0,i.jd)(t,o);if(null==l)return!1;if(l===i.pO){if(e===n&&r===s)return!0;const t=r+3*a;for(let i=r,o=s;i<t;i++,o++)n[o]=e[i]??0;return!0}const u=r+3*a;for(let t=r,i=s;t<u;t+=3,i+=3)l(e,t,n,i);return!0}},49208(e,t,r){r.d(t,{Tp:()=>c,jd:()=>p,pO:()=>y,w5:()=>u});var i=r(34727),n=r(86211),o=r(73941),s=r(79258),a=r(34403),l=r(21325);const u={2:{5:y,7:null,9:null,10:y,1:C,6:null,8:null,0:null,3:h,11:f,2:y,4:I},5:{5:y,7:null,9:null,10:y,1:C,6:null,8:null,0:null,3:h,11:f,2:y,4:I},7:{5:null,7:y,9:null,10:y,1:null,6:w,8:null,0:null,3:null,11:null,2:null,4:null},9:{5:null,7:null,9:y,10:y,1:null,6:null,8:v,0:null,3:null,11:null,2:null,4:null},3:{5:m,7:null,9:null,10:m,1:function(e,t,r,i){const n=e[t]/x,o=D-2*Math.atan(Math.exp(-e[t+1]/x)),s=x+(e[t+2]??0),a=Math.cos(o)*s;r[i]=Math.cos(n)*a,r[i+1]=Math.sin(n)*a,r[i+2]=Math.sin(o)*s},6:null,8:null,0:null,3:y,11:function(e,t,r,i){m(e,t,r,i),f(r,i,r,i)},2:m,4:function(e,t,r,i){m(e,t,r,i),I(r,i,r,i)}},4:{5:O,7:null,9:null,10:O,1:function(e,t,r,i){O(e,t,r,i),C(r,i,r,i)},6:null,8:null,0:null,3:function(e,t,r,i){O(e,t,r,i),h(r,i,r,i)},11:function(e,t,r,i){O(e,t,r,i),f(r,i,r,i)},2:O,4:y},1:{5:A,7:null,9:null,10:A,1:y,6:null,8:null,0:null,3:function(e,t,r,i){A(e,t,r,i),h(r,i,r,i)},11:function(e,t,r,i){A(e,t,r,i),f(r,i,r,i)},2:A,4:function(e,t,r,i){A(e,t,r,i),I(r,i,r,i)}},6:{5:null,7:S,9:null,10:S,1:null,6:y,8:null,0:null,3:null,11:null,2:null,4:null},8:{5:null,7:null,9:M,10:M,1:null,6:null,8:y,0:null,3:null,11:null,2:null,4:null},0:{5:null,7:null,9:null,10:null,1:null,6:null,8:null,0:y,3:null,11:null,2:null,4:null},10:{5:y,7:y,9:y,10:y,1:C,6:w,8:v,0:null,3:h,11:f,2:y,4:I},11:{5:g,7:null,9:null,10:g,1:function(e,t,r,i){g(e,t,r,i),C(r,i,r,i)},6:null,8:null,0:null,3:function(e,t,r,i){g(e,t,r,i),h(r,i,r,i)},11:y,2:g,4:function(e,t,r,i){g(e,t,r,i),I(r,i,r,i)}}};function p(e,t){return c(e,t)?.projector}function c(e,t){if(null==e||null==t)return null;if(j.source.spatialReference===e&&j.dest.spatialReference===t)return j;const r=d(e,j.source),i=d(t,j.dest);return 0===r&&0===i?(0,l.aI)(e,t)?j.projector=y:j.projector=null:j.projector=u[r][i],j}function d(e,t){return e?t.spatialReference===e?t.spatialReferenceId:(t.spatialReference=e,"metersPerUnit"in t&&(t.metersPerUnit=(0,n.GA)(e,1)),(0,o.jA)(e)?t.spatialReferenceId=1:(0,l.oT)(e)?t.spatialReferenceId=2:(0,l.K8)(e)?t.spatialReferenceId=3:(0,l.r1)(e)?t.spatialReferenceId=11:e.wkt===o.Ro.wkt?t.spatialReferenceId=4:4490===e.wkid?t.spatialReferenceId=5:e.wkt===o.FY.wkt?t.spatialReferenceId=6:e.wkt===o.LJ.wkt?t.spatialReferenceId=8:(0,o.q8)(e)?t.spatialReferenceId=7:(0,o.KQ)(e)?t.spatialReferenceId=9:t.spatialReferenceId=0):0}function y(e,t,r,i){e!==r&&(r[i++]=e[t++],r[i++]=e[t++],r[i]=e[t]??0)}function m(e,t,r,i){r[i]=Z*(e[t]/x),r[i+1]=Z*(D-2*Math.atan(Math.exp(-e[t+1]/x))),r[i+2]=e[t+2]??0}function h(e,t,r,n){!function(e,t,r,n,o){const s=.4999999*Math.PI,a=(0,i.qE)(N*e[t+1],-s,s),l=Math.sin(a);r[n++]=N*e[t]*o.radius,r[n++]=o.halfSemiMajorAxis*Math.log((1+l)/(1-l)),r[n]=e[t+2]??0}(e,t,r,n,s.$O)}function f(e,t,r,i){r[i]=e[t]*B,r[i+1]=e[t+1]*B,r[i+2]=e[t+2]??0}function g(e,t,r,i){r[i]=e[t]*R,r[i+1]=e[t+1]*R,r[i+2]=e[t+2]??0}function b(e,t,r,i,n){const o=n+(e[t+2]??0),s=N*e[t],a=N*e[t+1],l=Math.cos(a)*o;r[i]=Math.cos(s)*l,r[i+1]=Math.sin(s)*l,r[i+2]=Math.sin(a)*o}function v(e,t,r,i){b(e,t,r,i,s.Sw.radius)}function w(e,t,r,i){b(e,t,r,i,s.sH.radius)}function C(e,t,r,i){b(e,t,r,i,s.$O.radius)}function T(e,t,r,n,o){const s=e[t],a=e[t+1],l=e[t+2]??0,u=Math.sqrt(s*s+a*a+l*l),p=(0,i.YN)(l/(0===u?1:u)),c=Math.atan2(a,s);r[n++]=Z*c,r[n++]=Z*p,r[n]=u-o}function M(e,t,r,i){T(e,t,r,i,s.Sw.radius)}function S(e,t,r,i){T(e,t,r,i,s.sH.radius)}function A(e,t,r,i){T(e,t,r,i,s.$O.radius)}function I(e,t,r,i){!function(e,t,r,i,n){const o=N*e[t],s=N*e[t+1],a=e[t+2]??0,l=Math.sin(s),u=Math.cos(s),p=n.radius/Math.sqrt(1-n.eccentricitySquared*l*l);r[i++]=(p+a)*u*Math.cos(o),r[i++]=(p+a)*u*Math.sin(o),r[i++]=(p*(1-n.eccentricitySquared)+a)*l}(e,t,r,i,s.$O)}function O(e,t,r,i){const n=a.TP,o=e[t],l=e[t+1],u=e[t+2]??0;let p,c,d,y,m,h,f,g,b,v,w,C,T,M,S,A,I,O,j,N,D;p=Math.abs(u),c=o*o+l*l,d=Math.sqrt(c),y=c+u*u,m=Math.sqrt(y),N=Math.atan2(l,o),h=u*u/y,f=c/y,M=n.a2/m,S=n.a3-n.a4/m,f>.3?(g=p/m*(1+f*(n.a1+M+h*S)/m),j=Math.asin(g),v=g*g,b=Math.sqrt(1-v)):(b=d/m*(1-h*(n.a5-M-f*S)/m),j=Math.acos(b),v=1-b*b,g=Math.sqrt(v)),w=1-s.$O.eccentricitySquared*v,C=s.$O.radius/Math.sqrt(w),T=n.a6*C,M=d-C*b,S=p-T*g,I=b*M+g*S,A=b*S-g*M,O=A/(T/w+I),j+=O,D=I+A*O/2,u<0&&(j=-j),r[i++]=Z*N,r[i++]=Z*j,r[i]=D}const j={source:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},projector:y},N=(0,i.kU)(1),Z=(0,i.KJ)(1),D=.5*Math.PI,x=s.$O.radius,B=x*Math.PI/180,R=180/(x*Math.PI)},91218(e,t,r){r.r(t),r.d(t,{canProjectWithoutEngine:()=>V,initializeProjection:()=>z,isEqualBaseGCS:()=>q,isLoaded:()=>x,isLoadedOrLoad:()=>B,isLoadedOrLoadFor:()=>R,load:()=>P,project:()=>_,projectAsync:()=>G,projectExtent:()=>ne,projectMany:()=>E,projectMultipoint:()=>X,projectOrLoad:()=>J,projectOrLoadMany:()=>k,projectPoint:()=>Y,projectPolygon:()=>re,projectPolyline:()=>ee,projectWithoutEngine:()=>K,requiresLoad:()=>F,test:()=>W,tryProject:()=>L,unload:()=>U});var i=r(49186),n=r(17676),o=r(62788),s=r(95488),a=r(51850),l=r(21276),u=r(73941),p=r(5443),c=r(91075),d=r(48526),y=r(86738),m=r(39829),h=r(82799),f=r(16930),g=r(98764),b=r(159),v=r(9762),w=r(49208);function C(e,t,r,i,n,o){return T[0]=e,T[1]=t,T[2]=r,(0,v.projectBuffer)(T,i,0,n,o,0)}const T=(0,a.vt)();var M=r(60408),S=r(21325),A=r(52006);let I=null,O=null,j=null,N=null,Z={};const D=new s.I;function x(){return!!(O?.isLoaded()&&j?.isLoaded()&&N?.isLoaded())}function B(){return!!x()||((0,o.gc)(D),P(),!1)}function R(e,t){return!e||!t||V(e,t)||B()}function F(e,t){return!V(e,t)&&!x()}async function P(e){null==I&&(I=Promise.all([r.e(3276).then(r.bind(r,83276)).then(e=>(O=e,O.load())),r.e(8377).then(r.bind(r,8377)).then(e=>(j=e,j.load())),r.e(2158).then(r.bind(r,12158)).then(e=>(N=e,N.load()))])),await I,(0,n.Te)(e),D.notify()}function _(e,t,r){return Array.isArray(e)?0===e.length?[]:((0,l.H)(e),E(e,e[0].spatialReference,t,r)):((0,l.f)(e),E([e],e.spatialReference,t,r)[0])}function E(e,t,r,i){if(null==t||null==r)return e;if(V(t,r,i))return e.map(e=>K(e,t,r));if(null==i?.geographicTransformation&&(0,u.jA)(t))return E(e.map(e=>K(e,t,f.A.WGS84)),f.A.WGS84,r,{zConversionDisabled:i?.zConversionDisabled});if(null==i?.geographicTransformation&&(0,u.jA)(r))return E(e,t,f.A.WGS84).map(e=>K(e,f.A.WGS84,r));if(!x())throw new $;if(!i?.geographicTransformation)if(i?.extendedParams)i={...i,geographicTransformation:N.getTransformation(t,r,i.areaOfInterestExtent)||new b.A};else if(!i?.areaOfInterestExtent){const e=function(e,t){return[e.wkid?.toString()??"-1",e.wkt?.toString()??"",e.wkt2?.toString()??"",t.wkid?.toString()??"-1",t.wkt?.toString()??"",t.wkt2?.toString()??""].join()}(t,r);let n=Z[e];n||(n=N.getTransformation(t,r)||new b.A,Z[e]=n),i={geographicTransformation:n,zConversionDisabled:i?.zConversionDisabled}}return e[0].spatialReference||(e[0].spatialReference=t),e[0]instanceof c.A?O.executeMany(e,r,i):j.executeMany(e,r,i)}function L(e,t,r){try{return _(e,t,r)}catch(e){return null}}function J(e,t){const r=k([e],t);return null!=r.pending?{pending:r.pending,geometry:null}:null!=r.geometries?{pending:null,geometry:r.geometries[0]}:{pending:null,geometry:null}}function k(e,t,r){if(!x())for(const r of e)if(null!=r&&!(0,S.aI)(r.spatialReference,t)&&(0,S.fn)(r.spatialReference)&&(0,S.fn)(t)&&!V(r.spatialReference,t))return(0,o.gc)(D),{pending:P(),geometries:null};return{pending:null,geometries:e.map(e=>null==e?null:(0,S.aI)(e.spatialReference,t)?e:(0,S.fn)(e.spatialReference)&&(0,S.fn)(t)?_(e,t,r):null)}}class $ extends i.A{constructor(){super("projection:not-loaded","projection engine not fully loaded yet, please call load()")}}function U(){I=null,O=null,j=null,N=null,Z={}}const W={get loadPromise(){return I}};async function G(e,t,r){if((0,n.Te)(r),!e)return e;const i=k(Array.isArray(e)?e:[e],t,r);if(i.pending)return await i.pending,(0,n.Te)(r),G(e,t,r);const o=i.geometries??[];return Array.isArray(e)?o:o[0]}function V(e,t,r){return!(r?.areaOfInterestExtent||r?.extendedParams||r?.geographicTransformation)&&(!!(0,S.aI)(e,t)||(0,S.fn)(e)&&(0,S.fn)(t)&&!!(0,w.jd)(e,t))}function q(e,t){if((0,S.aI)(e,t))return!0;if(!(0,S.fn)(e)||!(0,S.fn)(t))return!1;const r=(0,S.oT)(e)||(0,S.K8)(e)||(0,S.x1)(e),i=(0,S.oT)(t)||(0,S.K8)(t)||(0,S.x1)(t);return r&&i}async function z(e,t,r,i){if(x())return(0,n.NO)(i);if(Array.isArray(e)){for(const{source:t,dest:r,options:n}of e)if(t&&r&&!V(t,r,n))return P(i)}else if(e&&t&&!V(e,t,r))return P(i);return(0,n.NO)(i)}function K(e,t,r){return e?(0,M.fT)(e)?H(e,t,new y.A,r,0):(0,M.ZC)(e)?oe(e,t,new p.A,r,0):(0,M.Bi)(e)?ie(e,t,new m.A,r,0):(0,M.Rg)(e)?te(e,t,new h.A,r,0):(0,M.U9)(e)?Q(e,t,new d.A,r,0):null:null}function Y(e,t,r=t.spatialReference,i=0){return null!=r&&null!=e.spatialReference&&null!=H(e,e.spatialReference,t,r,i)}function H(e,t,r,i,n){ue[0]=e.x,ue[1]=e.y;const o=e.z;return ue[2]=void 0!==o?o:n,(0,v.projectBuffer)(ue,t,0,ue,i,0)?(r.x=ue[0],r.y=ue[1],r.spatialReference=i,void 0!==o||(0,u.xP)(i)?(r.z=ue[2],r.hasZ=!0):(r.z=void 0,r.hasZ=!1),void 0===e.m?(r.m=void 0,r.hasM=!1):(r.m=e.m,r.hasM=!0),r):null}function X(e,t,r=t.spatialReference,i=0){return null!=e.spatialReference&&null!=r&&null!=Q(e,e.spatialReference,t,r,i)}function Q(e,t,r,i,n){const{points:o,hasZ:s,hasM:a}=e,l=[],u=o.length,p=[];for(const e of o)p.push(e[0],e[1],s?e[2]:n);if(!(0,v.projectBuffer)(p,t,0,p,i,0,u))return null;const c=le(s,i);for(let e=0;e<u;++e){const t=3*e,r=p[t],i=p[t+1];c&&a?l.push([r,i,p[t+2],o[e][3]]):c?l.push([r,i,p[t+2]]):a?l.push([r,i,o[e][2]]):l.push([r,i])}return r.points=l,r.spatialReference=i,r.hasZ=s,r.hasM=a,r}function ee(e,t,r=t.spatialReference,i=0){return null!=e.spatialReference&&null!=r&&null!=te(e,e.spatialReference,t,r,i)}function te(e,t,r,i,n){const{curvePaths:o,paths:s,hasZ:a,hasM:l}=e;if(!(o?ae(o,a??!1,l??!1,t,r.curvePaths=[],i,n):se(s,a??!1,l??!1,t,r.paths,i,n)))return null;const u=le(a,i);return r.spatialReference=i,r.hasZ=u,r.hasM=l,r}function re(e,t,r=t.spatialReference,i=0){return null!=e.spatialReference&&null!=r&&null!=ie(e,e.spatialReference,t,r,i)}function ie(e,t,r,i,n){const{curveRings:o,rings:s,hasZ:a,hasM:l}=e;return(o?ae(o,a??!1,l??!1,t,r.curveRings=[],i,n):se(s,a??!1,l??!1,t,r.rings,i,n))?(r.spatialReference=i,r.hasZ=le(a,i),r.hasM=l,r):null}function ne(e,t,r=t.spatialReference,i=0){return null!=e.spatialReference&&null!=r&&null!=oe(e,e.spatialReference,t,r,i)}function oe(e,t,r,i,n){const{xmin:o,ymin:s,xmax:a,ymax:l,hasZ:u,hasM:p}=e;if(!C(o,s,u?e.zmin:n,t,ue,i))return null;const c=le(u,i);return r.xmin=ue[0],r.ymin=ue[1],c&&(r.zmin=ue[2]),C(a,l,u?e.zmax:n,t,ue,i)?(r.xmax=ue[0],r.ymax=ue[1],c&&(r.zmax=ue[2]),p&&(r.mmin=e.mmin,r.mmax=e.mmax),r.spatialReference=i,r):null}function se(e,t,r,i,n,o,s=0){const a=new Array;for(const r of e)for(const e of r)a.push(e[0],e[1],t?e[2]:s);if(!(0,v.projectBuffer)(a,i,0,a,o,0))return!1;let l=0;n.length=0;const u=t?3:2,p=le(t,o);for(const t of e){const e=new Array;for(const i of t){const t=a.slice(l,l+=3);p||t.pop(),r&&t.push(i[u]),e.push(t)}n.push(e)}return!0}function ae(e,t,r,i,n,o,s=0){const a=new Array;for(const r of e)for(const e of r){if((0,A.FG)(e))return!1;if((0,A.aO)(e)){const[r,i]=e.c;a.push(r[0],r[1],t?r[2]:s,i[0],i[1],s);continue}if((0,A.n1)(e)){const[r,i,n]=e.b;a.push(r[0],r[1],t?r[2]:s,i[0],i[1],s,n[0],n[1],s);continue}const r=e;a.push(r[0],r[1],t?r[2]:s)}if(!(0,v.projectBuffer)(a,i,0,a,o,0))return!1;let l=0;n.length=0;const u=t?3:2,p=le(t,o);for(const t of e){const e=new Array;for(const i of t){const t=a.slice(l,l+=3);if(p||t.pop(),r&&t.push((0,A.yP)(i)[u]),(0,A.FG)(i))return!1;if((0,A.aO)(i)){const r=a[l++],i=a[l++];++l,e.push({c:[t,[r,i]]});continue}if((0,A.n1)(i)){const r=a[l++],i=a[l++];++l;const n=a[l++],o=a[l++];++l,e.push({b:[t,[r,i],[n,o]]});continue}e.push(t)}n.push(e)}return!0}function le(e,t){return e||(0,u.xP)(t)||(0,S.aI)(t,g.Y0)}const ue=(0,a.vt)()},98764(e,t,r){r.d(t,{GD:()=>s,Y0:()=>u,lO:()=>p});var i=r(73941),n=r(16930),o=r(21325);const s=new n.A(i.fv),a=new n.A(i.FY),l=new n.A(i.LJ),u=new n.A(i.Ro);function p(e){const t=c.get(e);if(t)return t;let r=s;if(e)if(e===a)r=a;else if(e===l)r=l;else{const t=e.wkid,i=e.latestWkid;if(null!=t||null!=i)(0,o.tl)(t)||(0,o.tl)(i)?r=a:((0,o.ZL)(t)||(0,o.ZL)(i))&&(r=l);else{const t=e.wkt2??e.wkt;if(t){const e=t.toUpperCase();e===d?r=a:e===y&&(r=l)}}}return c.set(e,r),r}const c=new Map,d=a.wkt.toUpperCase(),y=l.wkt.toUpperCase()},4197(e,t,r){r.d(t,{Vj:()=>l,cj:()=>a,jh:()=>o,l5:()=>s});var i=r(34275),n=r(9093);function o(e){return e<=i.y9?new Array(e).fill(0):new Float64Array(e)}function s(e,t,r){return Array.isArray(e)?e.slice(t,t+r):e.subarray(t,t+r)}function a(e){return[...e]}function l(e){const t=(0,n.vt)();for(let r=0;r<16;++r)t[r]=e[r];return t}},70328(e,t,r){r.d(t,{BI:()=>v,DC:()=>c,Ej:()=>y,Ie:()=>g,Jt:()=>b,Ne:()=>m,RF:()=>p,aI:()=>C,fA:()=>s,gE:()=>l,hZ:()=>f,iT:()=>d,is:()=>w,qv:()=>T,vI:()=>h,vY:()=>a,v_:()=>M,vt:()=>o,w1:()=>u}),r(35522);var i=r(5443),n=(r(19419),r(4197));function o(e=M){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function s(e,t,r,i,n,s,a=o()){return a[0]=e,a[1]=t,a[2]=r,a[3]=i,a[4]=n,a[5]=s,a}function a(e,t=o()){return function(e,t,r,i=o()){return f(i,T),function(e,t,r=0,i=t.length/3){let n=e[0],o=e[1],s=e[2],a=e[3],l=e[4],u=e[5];for(let e=0;e<i;e++)n=Math.min(n,t[r+3*e]),o=Math.min(o,t[r+3*e+1]),s=Math.min(s,t[r+3*e+2]),a=Math.max(a,t[r+3*e]),l=Math.max(l,t[r+3*e+1]),u=Math.max(u,t[r+3*e+2]);e[0]=n,e[1]=o,e[2]=s,e[3]=a,e[4]=l,e[5]=u}(i,e,t,r),i}(e,0,e.length/3,t)}function l(e,t=(0,n.jh)(24)){const[r,i,o,s,a,l]=e;return t[0]=r,t[1]=i,t[2]=o,t[3]=r,t[4]=i,t[5]=l,t[6]=r,t[7]=a,t[8]=o,t[9]=r,t[10]=a,t[11]=l,t[12]=s,t[13]=i,t[14]=o,t[15]=s,t[16]=i,t[17]=l,t[18]=s,t[19]=a,t[20]=o,t[21]=s,t[22]=a,t[23]=l,t}function u(e,t){const r=isFinite(e[2])||isFinite(e[5]);return new i.A(r?{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],zmin:e[2],zmax:e[5],spatialReference:t}:{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],spatialReference:t})}function p(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[3]),e[4]=Math.max(e[4],t[4]),e[5]=Math.max(e[5],t[5])}function c(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[3]=Math.max(e[3],t[2]),e[4]=Math.max(e[4],t[3])}function d(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[0]),e[4]=Math.max(e[4],t[1]),e[5]=Math.max(e[5],t[2])}function y(e,t=[0,0,0]){return t[0]=function(e){return e[0]>=e[3]?0:e[3]-e[0]}(e),t[1]=function(e){return e[1]>=e[4]?0:e[4]-e[1]}(e),t[2]=function(e){return e[2]>=e[5]?0:e[5]-e[2]}(e),t}function m(e,t,r=e){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r!==e&&(r[3]=e[3],r[4]=e[4],r[5]=e[5]),r}function h(e,t,r=e){return r[3]=t[0],r[4]=t[1],r[5]=t[2],r!==e&&(r[0]=e[0],r[1]=e[1],r[2]=e[2]),e}function f(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function g(e){return e?f(e,T):o(T)}function b(e,t){return e[0]=t[0],e[1]=t[1],e[2]=Number.NEGATIVE_INFINITY,e[3]=t[2],e[4]=t[3],e[5]=Number.POSITIVE_INFINITY,e}function v(e,t,r,i,n){return e[0]=t,e[1]=r,e[2]=Number.NEGATIVE_INFINITY,e[3]=i,e[4]=n,e[5]=Number.POSITIVE_INFINITY,e}function w(e){return 6===e.length}function C(e,t,r){if(null==e||null==t)return e===t;if(!w(e)||!w(t))return!1;if(r){for(let i=0;i<e.length;i++)if(!r(e[i],t[i]))return!1}else for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}const T=[1/0,1/0,1/0,-1/0,-1/0,-1/0],M=[0,0,0,0,0,0];o()},34403(e,t,r){r.d(t,{TP:()=>s});var i=r(79258);Math.PI;const n=i.$O.radius,o=i.$O.eccentricitySquared,s={a1:n*o,a2:n*o*n*o,a3:n*o*o/2,a4:n*o*n*o*2.5,a5:n*o+n*o*o/2,a6:1-o};i.$O.radius,i.$O.flattening,i.Sw.radius,i.Sw.flattening,i.sH.radius,i.sH.flattening,i.sH.radius},17136(e,t,r){r.d(t,{Y_:()=>j,O7:()=>I,el:()=>A});var i=r(92602),n=r(69052),o=r(49186),s=r(53966),a=r(39829),l=r(82799),u=r(16930),p=r(80754),c=r(21325),d=r(28735),y=r(11254),m=r(60408),h=r(65864),f=r(2272),g=r(84952),b=r(92300);const v=()=>s.A.getLogger("esri.geometry.support.normalizeUtils");function w(e){return"polygon"===e[0].type}function C(e){return"polyline"===e[0].type}function T(e,t,r){if(t){const t=function(e,t){if(!(e instanceof l.A||e instanceof a.A)){const e="straightLineDensify: the input geometry is neither polyline nor polygon";throw v().error(e),new o.A("internal:geometry",e)}const r=(0,p.r8)(e),i=[];for(const e of r){const r=[];i.push(r),r.push([e[0][0],e[0][1]]);for(let i=0;i<e.length-1;i++){const n=e[i][0],o=e[i][1],s=e[i+1][0],a=e[i+1][1],l=Math.sqrt((s-n)*(s-n)+(a-o)*(a-o)),u=(a-o)/l,p=(s-n)/l,c=l/t;if(c>1){for(let e=1;e<=c-1;e++){const i=e*t,s=p*i+n,a=u*i+o;r.push([s,a])}const e=(l+Math.floor(c-1)*t)/2,i=p*e+n,s=u*e+o;r.push([i,s])}r.push([s,a])}}return function(e){return"polygon"===e.type}(e)?new a.A({rings:i,spatialReference:e.spatialReference}):new l.A({paths:i,spatialReference:e.spatialReference})}(e,1e6);e=(0,d.ci)(t,!0)}return r&&(e=(0,p.kS)(e,r)),e}function M(e,t,r){if(Array.isArray(e)){const i=e[0];if(i>t){const r=(0,p.kd)(i,t);e[0]=i+r*(-2*t)}else if(i<r){const t=(0,p.kd)(i,r);e[0]=i+t*(-2*r)}}else{const i=e.x;if(i>t){const r=(0,p.kd)(i,t);e=e.clone().offset(r*(-2*t),0)}else if(i<r){const t=(0,p.kd)(i,r);e=e.clone().offset(t*(-2*r),0)}}return e}function S(e,t){let r=-1;for(let i=0;i<t.cutIndexes.length;i++){const n=t.cutIndexes[i],o=t.geometries[i],s=(0,p.r8)(o);for(let e=0;e<s.length;e++){const t=s[e];t.some(r=>{if(r[0]<180)return!0;{let r=0;for(let e=0;e<t.length;e++){const i=t[e][0];r=i>r?i:r}r=Number(r.toFixed(9));const i=-360*(0,p.kd)(r,180);for(let r=0;r<t.length;r++){const t=o.getPoint(e,r);o.setPoint(e,r,t.clone().offset(i,0))}return!0}})}if(n===r){if(w(e))for(const t of(0,p.r8)(o))e[n]=e[n].addRing(t);else if(C(e))for(const t of(0,p.r8)(o))e[n]=e[n].addPath(t)}else r=n,e[n]=o}return e}async function A(e,t,r){if(!Array.isArray(e))return A([e],t);t&&"string"!=typeof t&&v().warn("normalizeCentralMeridian()","The url object is deprecated, use the url string instead");const n="string"==typeof t?t:t?.url??i.A.geometryServiceUrl;let o,s,u,w,C,I,O,j,N=0;const Z=[],D=[];for(const t of e)if(null!=t)if(o||(o=t.spatialReference,s=(0,c.Vp)(o),u=o.isWebMercator,I=u?102100:4326,w=p.j7[I].maxX,C=p.j7[I].minX,O=p.j7[I].plus180Line,j=p.j7[I].minus180Line),s)if("mesh"===t.type)D.push(t);else if("point"===t.type)D.push(M(t.clone(),w,C));else if("multipoint"===t.type){const e=t.clone();e.points=e.points.map(e=>M(e,w,C)),D.push(e)}else if("extent"===t.type){const e=t.clone()._normalize(!1,!1,s);D.push(e.rings?new a.A(e):e)}else if(t.extent){const e=t.extent,r=(0,p.kd)(e.xmin,C)*(2*w);let i=0===r?t.clone():(0,p.kS)(t.clone(),r);e.offset(r,0);let{xmin:n,xmax:o}=e;n=Number(n.toFixed(9)),o=Number(o.toFixed(9)),e.intersects(O)&&o!==w?(N=o>N?o:N,i=T(i,u),Z.push(i),D.push("cut")):e.intersects(j)&&n!==C?(N=o*(2*w)>N?o*(2*w):N,i=T(i,u,360),Z.push(i),D.push("cut")):D.push(i)}else D.push(t.clone());else D.push(t);else D.push(t);let x=(0,p.kd)(N,w),B=-90;const R=x,F=new l.A;for(;x>0;){const e=360*x-180;F.addPath([[e,B],[e,-1*B]]),B*=-1,x--}if(Z.length>0&&R>0){const t=S(Z,await async function(e,t,r,i){const n=(0,f.Dl)(e),o=t[0].spatialReference,s={...i,responseType:"json",query:{...n.query,f:"json",sr:(0,c.YX)(o),target:JSON.stringify({geometryType:(0,m.$B)(t[0]),geometries:t}),cutter:JSON.stringify(r)}},a=await(0,y.A)(n.path+"/cut",s),{cutIndexes:l,geometries:u=[]}=a.data;return{cutIndexes:l,geometries:u.map(e=>{const t=(0,h.rS)(e);return t.spatialReference=o,t})}}(n,Z,F,r)),i=[],o=[];for(let r=0;r<D.length;r++){const n=D[r];if("cut"!==n)o.push(n);else{const n=t.shift(),s=e[r];null!=s&&"polygon"===s.type&&s.rings&&s.rings.length>1&&n.rings.length>=s.rings.length?(i.push(n),o.push("simplify")):o.push(u?(0,d.Gh)(n):n)}}if(!i.length)return o;const s=await async function(e,t,r){const i="string"==typeof e?(0,g.An)(e):e,n=t[0].spatialReference,o=(0,m.$B)(t[0]),s={...r,query:{...i.query,f:"json",sr:(0,c.YX)(n),geometries:JSON.stringify((0,b.X)(t))}},{data:a}=await(0,y.A)(i.path+"/simplify",s);return(0,b.V)(a.geometries,o,n)}(n,i,r),a=[];for(let e=0;e<o.length;e++){const t=o[e];"simplify"!==t?a.push(t):a.push(u?(0,d.Gh)(s.shift()):s.shift())}return a}const P=[];for(let e=0;e<D.length;e++){const t=D[e];if("cut"!==t)P.push(t);else{const e=Z.shift();P.push(!0===u?(0,d.Gh)(e):e)}}return P}function I(e,t,r){const i=(0,c.Vp)(r);if(null==i)return e;const[n,o]=i.valid,s=2*o;let a=0,l=0;t>o?a=Math.ceil(Math.abs(t-o)/s):t<n&&(a=-Math.ceil(Math.abs(t-n)/s)),e>o?l=Math.ceil(Math.abs(e-o)/s):e<n&&(l=-Math.ceil(Math.abs(e-n)/s));let u=e+(a-l)*s;const p=u-t;return p>o?u-=s:p<n&&(u+=s),u}function O(e){const t=(0,c.Vp)(e);if(null==t)return null;const[r,i]=t.valid;return new n.hr(r,i)}const j=O(u.A.WGS84);O(u.A.WebMercator)},80754(e,t,r){r.d(t,{j7:()=>s,kS:()=>l,kd:()=>a,r8:()=>u});var i=r(82799),n=r(16930),o=r(60408);const s={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new i.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:n.A.WebMercator}),minus180Line:new i.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:n.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new i.A({paths:[[[180,-180],[180,180]]],spatialReference:n.A.WGS84}),minus180Line:new i.A({paths:[[[-180,-180],[-180,180]]],spatialReference:n.A.WGS84})}};function a(e,t){return Math.ceil((e-t)/(2*t))}function l(e,t){const r=u(e);for(const e of r)for(const r of e)r[0]+=t;return e}function u(e){return(0,o.Bi)(e)?e.rings:e.paths}},50498(e,t,r){r.d(t,{Ye:()=>c,gy:()=>p,iI:()=>y,yR:()=>d});var i=r(66552),n=r(5443),o=r(91075),s=r(48526),a=r(86738),l=r(39829),u=r(82799);const p=(0,i.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),c=(0,i.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"}),d={base:o.A,key:"type",typeMap:{extent:n.A,multipoint:s.A,point:a.A,polyline:u.A,polygon:l.A}},y=new i.J({esriGeometryBezier3Curve:"cubic-bezier",esriGeometryCircularArc:"circular-arc",esriGeometryEllipticArc:"elliptic-arc"},{ignoreUnknown:!0})},34507(e,t,r){r.r(t),r.d(t,{default:()=>Ft});var i=r(5482),n=r(92602),o=r(52106),s=r(37838),a=r(4576),l=r(7762),u=r(49186),p=r(53966),c=r(25728),d=r(93637),y=r(17676),m=r(36708),h=r(86211),f=r(84952),g=r(91429),b=r(46130),v=r(5443),w=r(48526),C=r(91218),T=r(16930),M=r(21325),S=r(4146),A=r(63074),I=r(34287),O=r(8303),j=r(25036),N=r(60694),Z=r(25482),D=r(53930),x=r(33910);let B=class extends Z.o{constructor(e){super(e),this.break=new D.A({color:[255,255,255],size:12,outline:{color:[0,122,194],width:3}}),this.first=new D.A({color:[0,255,0],size:20,outline:{color:[255,255,255],width:4}}),this.unlocated=new D.A({color:[255,0,0],size:12,outline:{color:[255,255,255],width:3}}),this.last=new D.A({color:[255,0,0],size:20,outline:{color:[255,255,255],width:4}}),this.middle=new D.A({color:[51,51,51],size:12,outline:{color:[0,122,194],width:3}}),this.waypoint=new D.A({color:[255,255,255],size:12,outline:{color:[0,122,194],width:3}})}};(0,i.Cg)([(0,g.MZ)({types:x.wC})],B.prototype,"break",void 0),(0,i.Cg)([(0,g.MZ)({types:x.wC})],B.prototype,"first",void 0),(0,i.Cg)([(0,g.MZ)({types:x.wC})],B.prototype,"unlocated",void 0),(0,i.Cg)([(0,g.MZ)({types:x.wC})],B.prototype,"last",void 0),(0,i.Cg)([(0,g.MZ)({types:x.wC})],B.prototype,"middle",void 0),(0,i.Cg)([(0,g.MZ)({types:x.wC})],B.prototype,"waypoint",void 0),B=(0,i.Cg)([(0,g.$K)("esri.layers.support.RouteStopSymbols")],B);var R=r(94985),F=r(31593);let P=class extends Z.o{constructor(e){super(e),this.directionLines=new F.A({color:[0,122,194],width:6}),this.directionPoints=new D.A({color:[255,255,255],size:6,outline:{color:[0,122,194],width:2}}),this.pointBarriers=new D.A({style:"x",size:10,outline:{color:[255,0,0],width:3}}),this.polygonBarriers=new R.A({color:[255,170,0,.6],outline:{width:7.5,color:[255,0,0,.6]}}),this.polylineBarriers=new F.A({width:7.5,color:[255,85,0,.7]}),this.routeInfo=new F.A({width:8,color:[20,89,127]}),this.stops=new B}};(0,i.Cg)([(0,g.MZ)({types:x.Y7})],P.prototype,"directionLines",void 0),(0,i.Cg)([(0,g.MZ)({types:x.wC})],P.prototype,"directionPoints",void 0),(0,i.Cg)([(0,g.MZ)({types:x.wC})],P.prototype,"pointBarriers",void 0),(0,i.Cg)([(0,g.MZ)({types:x.Ac})],P.prototype,"polygonBarriers",void 0),(0,i.Cg)([(0,g.MZ)({types:x.Y7})],P.prototype,"polylineBarriers",void 0),(0,i.Cg)([(0,g.MZ)({types:x.Y7})],P.prototype,"routeInfo",void 0),(0,i.Cg)([(0,g.MZ)({type:B})],P.prototype,"stops",void 0),P=(0,i.Cg)([(0,g.$K)("esri.layers.support.RouteSymbols")],P);var _=r(20655),E=r(80812),L=r(10407),J=r(65494),k=r(11254),$=r(2272),U=r(2073),W=r(93223);let G=class extends Z.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,g.MZ)({type:String})],G.prototype,"dataType",void 0),(0,i.Cg)([(0,W.e)(U.et,{ignoreUnknown:!1})],G.prototype,"name",void 0),(0,i.Cg)([(0,g.MZ)({type:[String]})],G.prototype,"parameterNames",void 0),(0,i.Cg)([(0,g.MZ)({type:String})],G.prototype,"restrictionUsageParameterName",void 0),(0,i.Cg)([(0,W.e)(U.Mm,{ignoreUnknown:!1})],G.prototype,"timeNeutralAttributeName",void 0),(0,i.Cg)([(0,g.MZ)({type:String})],G.prototype,"trafficSupport",void 0),(0,i.Cg)([(0,W.e)(U.dn)],G.prototype,"units",void 0),(0,i.Cg)([(0,W.e)(U.WU)],G.prototype,"usageType",void 0),G=(0,i.Cg)([(0,g.$K)("esri.rest.support.NetworkAttribute")],G);const V=G;let q=class extends Z.o{constructor(e){super(e),this.buildTime=null,this.name=null,this.networkAttributes=null,this.networkSources=null,this.state=null}};(0,i.Cg)([(0,g.MZ)({type:Number})],q.prototype,"buildTime",void 0),(0,i.Cg)([(0,g.MZ)({type:String})],q.prototype,"name",void 0),(0,i.Cg)([(0,g.MZ)({type:[V]})],q.prototype,"networkAttributes",void 0),(0,i.Cg)([(0,g.MZ)()],q.prototype,"networkSources",void 0),(0,i.Cg)([(0,g.MZ)({type:String})],q.prototype,"state",void 0),q=(0,i.Cg)([(0,g.$K)("esri.rest.support.NetworkDataset")],q);const z=q;var K=r(69540),Y=r(36005),H=r(43937);let X=class extends((0,K.OU)(Z.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){const{restrictionAttributeNames:r}=t;return null==r?null:r.map(e=>U.OC.fromJSON(e))}writeRestrictionAttributes(e,t,r){null!=e&&(t[r]=e.map(e=>U.OC.toJSON(e)))}};(0,i.Cg)([(0,g.MZ)({type:[Object],json:{write:!0}})],X.prototype,"attributeParameterValues",void 0),(0,i.Cg)([(0,g.MZ)({type:String,json:{write:!0}})],X.prototype,"description",void 0),(0,i.Cg)([(0,W.e)(U.dd,{ignoreUnknown:!1})],X.prototype,"distanceAttributeName",void 0),(0,i.Cg)([(0,g.MZ)({type:String,json:{write:!0}})],X.prototype,"id",void 0),(0,i.Cg)([(0,Y.w)("id",["id","itemId"])],X.prototype,"readId",null),(0,i.Cg)([(0,W.e)(U.et,{ignoreUnknown:!1})],X.prototype,"impedanceAttributeName",void 0),(0,i.Cg)([(0,g.MZ)({type:String,json:{write:!0}})],X.prototype,"name",void 0),(0,i.Cg)([(0,g.MZ)({type:[String],json:{write:!0}})],X.prototype,"restrictionAttributeNames",void 0),(0,i.Cg)([(0,Y.w)("restrictionAttributeNames")],X.prototype,"readRestrictionAttributes",null),(0,i.Cg)([(0,H.K)("restrictionAttributeNames")],X.prototype,"writeRestrictionAttributes",null),(0,i.Cg)([(0,g.MZ)({type:Number,json:{write:{allowNull:!0}}})],X.prototype,"simplificationTolerance",void 0),(0,i.Cg)([(0,W.e)(U.hY)],X.prototype,"simplificationToleranceUnits",void 0),(0,i.Cg)([(0,W.e)(U.Mm,{ignoreUnknown:!1})],X.prototype,"timeAttributeName",void 0),(0,i.Cg)([(0,W.e)(U.ow)],X.prototype,"type",void 0),(0,i.Cg)([(0,g.MZ)({type:Boolean,json:{write:!0}})],X.prototype,"useHierarchy",void 0),(0,i.Cg)([(0,W.e)(U.hE)],X.prototype,"uturnAtJunctions",void 0),X=(0,i.Cg)([(0,g.$K)("esri.rest.support.TravelMode")],X);let Q=class extends Z.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=>U.et.fromJSON(e))}writeAccumulateAttributes(e,t,r){e?.length&&(t[r]=e.map(e=>U.et.toJSON(e)))}get capabilities(){return{supportsNow:(this.currentVersion??10)>=10.81}}readDefaultTravelMode(e,t){const r=t.supportedTravelModes?.find(({id:e})=>e===t.defaultTravelMode)??t.supportedTravelModes?.find(({itemId:e})=>e===t.defaultTravelMode);return r?X.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");const i=(0,$.jV)({f:"json",token:t},r),{data:n}=await(0,k.A)(e,i),o=n.currentVersion>=10.4?async function(e,t,r){try{const i=(0,$.jV)({f:"json",token:t},r),n=(0,f.UC)(e)+"/retrieveTravelModes",{data:{supportedTravelModes:o,defaultTravelMode:s}}=await(0,k.A)(n,i);return{supportedTravelModes:o,defaultTravelMode:s}}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){const r=(0,$.jV)({f:"json"},t),{data:i}=await(0,k.A)(e.replace(/\/rest\/.*$/i,"/info"),r);if(!i?.owningSystemUrl)return{supportedTravelModes:[],defaultTravelMode:null};const{owningSystemUrl:n}=i,o=(0,f.UC)(n)+"/sharing/rest/portals/self",{data:s}=await(0,k.A)(o,r),a=(0,d.wc)("helperServices.routingUtilities.url",s);if(!a)return{supportedTravelModes:[],defaultTravelMode:null};const l=(0,$.Dl)(n),u=/\/solve$/i.test(l.path)?"Route":/\/solveclosestfacility$/i.test(l.path)?"ClosestFacility":"ServiceAreas",p=(0,$.jV)({f:"json",serviceName:u},t),c=(0,f.UC)(a)+"/GetTravelModes/execute",y=await(0,k.A)(c,p),m=[];let h=null;if(y?.data?.results?.length){const e=y.data.results;for(const t of e)if("supportedTravelModes"===t.paramName){if(t.value?.features)for(const{attributes:e}of t.value.features)if(e){const t=JSON.parse(e.TravelMode);m.push(t)}}else"defaultTravelMode"===t.paramName&&(h=t.value)}return{supportedTravelModes:m,defaultTravelMode:h}}(e,r),{defaultTravelMode:s,supportedTravelModes:a}=await o;return n.defaultTravelMode=s,n.supportedTravelModes=a,Q.fromJSON(n)}(0,i.Cg)([(0,g.MZ)()],Q.prototype,"accumulateAttributeNames",void 0),(0,i.Cg)([(0,Y.w)("accumulateAttributeNames")],Q.prototype,"readAccumulateAttributes",null),(0,i.Cg)([(0,H.K)("accumulateAttributeNames")],Q.prototype,"writeAccumulateAttributes",null),(0,i.Cg)([(0,g.MZ)()],Q.prototype,"attributeParameterValues",void 0),(0,i.Cg)([(0,g.MZ)()],Q.prototype,"capabilities",null),(0,i.Cg)([(0,g.MZ)()],Q.prototype,"currentVersion",void 0),(0,i.Cg)([(0,g.MZ)()],Q.prototype,"defaultTravelMode",void 0),(0,i.Cg)([(0,Y.w)("defaultTravelMode",["defaultTravelMode","supportedTravelModes"])],Q.prototype,"readDefaultTravelMode",null),(0,i.Cg)([(0,g.MZ)()],Q.prototype,"directionsLanguage",void 0),(0,i.Cg)([(0,W.e)(U.Z7)],Q.prototype,"directionsLengthUnits",void 0),(0,i.Cg)([(0,g.MZ)()],Q.prototype,"directionsSupportedLanguages",void 0),(0,i.Cg)([(0,W.e)(U.Mm,{ignoreUnknown:!1})],Q.prototype,"directionsTimeAttribute",void 0),(0,i.Cg)([(0,g.MZ)()],Q.prototype,"hasZ",void 0),(0,i.Cg)([(0,W.e)(U.et,{ignoreUnknown:!1})],Q.prototype,"impedance",void 0),(0,i.Cg)([(0,g.MZ)({type:z})],Q.prototype,"networkDataset",void 0),(0,i.Cg)([(0,g.MZ)({type:[X]})],Q.prototype,"supportedTravelModes",void 0),Q=(0,i.Cg)([(0,g.$K)("esri.rest.support.NetworkServiceDescription")],Q);var re=r(16649),ie=r(17136);function ne(e,t){if(null==e)return null;const r={},i=new RegExp(`^${t}`,"i");for(const n of Object.keys(e))if(i.test(n)){const i=n.slice(t.length);r[U.et.fromJSON(i)]=e[n]}return r}function oe(e,t,r){if(null!=e){t.attributes||(t.attributes={});for(const i in e){const n=U.et.toJSON(i);t.attributes[`${r}${n}`]=e[i]}}}function se(e){const t={};for(const r of Object.keys(e)){const i=r;t[U.et.fromJSON(i)]=e[r]}return t}function ae(e){const t={};for(const r of Object.keys(e)){const i=r;t[U.et.toJSON(i)]=e[r]}return t}function le(e,t){return null==e||null==t?null:Math.round((e-t)/6e4)}function ue(e){const 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,g.MZ)({type:String,json:{read:ye.read,write:ye.write}})],me.prototype,"type",void 0),me=(0,i.Cg)([(0,g.$K)("esri.rest.support.NAMessage")],me);const he=me;var fe=r(82799),ge=r(86738);let be=class extends Z.o{constructor(e){super(e)}};(0,i.Cg)([(0,g.MZ)({json:{read:{source:"string"}}})],be.prototype,"text",void 0),(0,i.Cg)([(0,W.e)(U.Ec,{name:"stringType"})],be.prototype,"type",void 0),be=(0,i.Cg)([(0,g.$K)("esri.rest.support.DirectionsString")],be);const ve=be;let we=class extends Z.o{constructor(e){super(e),this.arriveTime=null,this.arriveTimeOffset=null,this.geometry=null,this.strings=null}readArriveTimeOffset(e,t){return le(t.ETA,t.arriveTimeUTC)}readGeometry(e,t){return ge.A.fromJSON(t.point)}};(0,i.Cg)([(0,g.MZ)({type:Date,json:{read:{source:"arriveTimeUTC"}}})],we.prototype,"arriveTime",void 0),(0,i.Cg)([(0,g.MZ)()],we.prototype,"arriveTimeOffset",void 0),(0,i.Cg)([(0,Y.w)("arriveTimeOffset",["arriveTimeUTC","ETA"])],we.prototype,"readArriveTimeOffset",null),(0,i.Cg)([(0,g.MZ)({type:ge.A})],we.prototype,"geometry",void 0),(0,i.Cg)([(0,Y.w)("geometry",["point"])],we.prototype,"readGeometry",null),(0,i.Cg)([(0,g.MZ)({type:[ve]})],we.prototype,"strings",void 0),we=(0,i.Cg)([(0,g.$K)("esri.rest.support.DirectionsEvent")],we);const Ce=we;let Te=class extends o.A{constructor(e){super(e),this.events=null,this.geometry=null,this.strings=null}set attributes(e){super.attributes=e}readGeometry(e,t){const r=function(e){if(null==e||""===e)return null;let t=0,r=0,i=0,n=0;const o=[];let s,a,l,u,p,c,d,y,m=0,h=0,f=0;if(p=e.match(/((\+|-)[^+\-|]+|\|)/g),p||(p=[]),0===parseInt(p[m],32)){m=2;const e=parseInt(p[m],32);m++,c=parseInt(p[m],32),m++,1&e&&(h=p.indexOf("|")+1,d=parseInt(p[h],32),h++),2&e&&(f=p.indexOf("|",h)+1,y=parseInt(p[f],32),f++)}else c=parseInt(p[m],32),m++;for(;m<p.length&&"|"!==p[m];){s=parseInt(p[m],32)+t,m++,t=s,a=parseInt(p[m],32)+r,m++,r=a;const e=[s/c,a/c];h&&(u=parseInt(p[h],32)+i,h++,i=u,e.push(u/d)),f&&(l=parseInt(p[f],32)+n,f++,n=l,e.push(l/y)),o.push(e)}return{paths:[o],hasZ:h>0,hasM:f>0}}(t.compressedGeometry);return null!=r?fe.A.fromJSON(r):null}};(0,i.Cg)([(0,g.MZ)({type:[Ce]})],Te.prototype,"events",void 0),(0,i.Cg)([(0,g.MZ)({types:{base:null,key:"type",typeMap:{polygon:fe.A},defaultKeyValue:"polygon"}})],Te.prototype,"geometry",void 0),(0,i.Cg)([(0,Y.w)("geometry",["compressedGeometry"])],Te.prototype,"readGeometry",null),(0,i.Cg)([(0,g.MZ)({type:[ve]})],Te.prototype,"strings",void 0),Te=(0,i.Cg)([(0,g.$K)("esri.rest.support.DirectionsFeature")],Te);const Me=Te;let Se=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[];const r=t.summary.envelope.spatialReference??t.spatialReference,i=r&&T.A.fromJSON(r);return e.map(e=>{const t=Me.fromJSON(e);if(null!=t.geometry&&(t.geometry.spatialReference=i),null!=t.events)for(const 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 fe.A({spatialReference:t});const r=[];for(const t of e)for(const e of t.paths)r.push(...e);const i=[];r.forEach((e,t)=>{0!==t&&e[0]===r[t-1][0]&&e[1]===r[t-1][1]||i.push(e)});const{hasM:n,hasZ:o}=e[0];return new fe.A({hasM:n,hasZ:o,paths:[i],spatialReference:t})}(this.features.map(({geometry:e})=>e),this.extent.spatialReference):null}get strings(){return this.features.flatMap(({strings:e})=>e).filter(a.Ru)}};(0,i.Cg)([(0,g.MZ)({type:v.A,json:{read:{source:"summary.envelope"}}})],Se.prototype,"extent",void 0),(0,i.Cg)([(0,g.MZ)({nonNullable:!0})],Se.prototype,"features",void 0),(0,i.Cg)([(0,Y.w)("features")],Se.prototype,"readFeatures",null),(0,i.Cg)([(0,g.MZ)()],Se.prototype,"geometryType",void 0),(0,i.Cg)([(0,g.MZ)({readOnly:!0})],Se.prototype,"mergedGeometry",null),(0,i.Cg)([(0,g.MZ)()],Se.prototype,"routeId",void 0),(0,i.Cg)([(0,g.MZ)()],Se.prototype,"routeName",void 0),(0,i.Cg)([(0,g.MZ)({value:null,readOnly:!0})],Se.prototype,"strings",null),(0,i.Cg)([(0,g.MZ)({json:{read:{source:"summary.totalDriveTime"}}})],Se.prototype,"totalDriveTime",void 0),(0,i.Cg)([(0,g.MZ)({json:{read:{source:"summary.totalLength"}}})],Se.prototype,"totalLength",void 0),(0,i.Cg)([(0,g.MZ)({json:{read:{source:"summary.totalTime"}}})],Se.prototype,"totalTime",void 0),Se=(0,i.Cg)([(0,g.$K)("esri.rest.support.DirectionsFeatureSet")],Se);const Ae=Se;let Ie=class extends Z.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,g.MZ)({type:pe.A,json:{write:!0}})],Ie.prototype,"directionLines",void 0),(0,i.Cg)([(0,g.MZ)({type:pe.A,json:{write:!0}})],Ie.prototype,"directionPoints",void 0),(0,i.Cg)([(0,g.MZ)({type:Ae,json:{write:!0}})],Ie.prototype,"directions",void 0),(0,i.Cg)([(0,g.MZ)({type:o.A,json:{write:!0}})],Ie.prototype,"route",void 0),(0,i.Cg)([(0,g.MZ)({type:String,json:{write:!0}})],Ie.prototype,"routeName",void 0),(0,i.Cg)([(0,g.MZ)({type:[o.A],json:{write:!0}})],Ie.prototype,"stops",void 0),(0,i.Cg)([(0,g.MZ)({type:pe.A,json:{write:!0}})],Ie.prototype,"traversedEdges",void 0),(0,i.Cg)([(0,g.MZ)({type:pe.A,json:{write:!0}})],Ie.prototype,"traversedJunctions",void 0),(0,i.Cg)([(0,g.MZ)({type:pe.A,json:{write:!0}})],Ie.prototype,"traversedTurns",void 0),Ie=(0,i.Cg)([(0,g.$K)("esri.rest.support.RouteResult")],Ie);const Oe=Ie;function je(e){return e?pe.A.fromJSON(e).features.filter(a.Ru):[]}let Ne=class extends Z.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 je(t.barriers)}readPolylineBarriers(e){return je(e)}readPolygonBarriers(e){return je(e)}};function Ze(e){return e instanceof pe.A}async function De(e,t,r){const i=[],n=[],o={},s={},a=(0,$.Dl)(e),{path:l}=a;Ze(t.stops)&&ee(t.stops.features,n,"stops.features",o),Ze(t.pointBarriers)&&ee(t.pointBarriers.features,n,"pointBarriers.features",o),Ze(t.polylineBarriers)&&ee(t.polylineBarriers.features,n,"polylineBarriers.features",o),Ze(t.polygonBarriers)&&ee(t.polygonBarriers.features,n,"polygonBarriers.features",o);const u=await(0,ie.el)(n);for(const e in o){const t=o[e];i.push(e),s[e]=u.slice(t[0],t[1])}if(function(e,t){for(let r=0;r<t.length;r++){const i=e[t[r]];if(i&&i.length)for(const e of i)if(null!=e&&e.hasZ)return!0}return!1}(s,i)){let e=null;try{e=await te(l,t.apiKey,r)}catch{}e&&!e.hasZ&&function(e,t){for(let r=0;r<t.length;r++){const i=e[t[r]];if(i&&i.length)for(const 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.")}(s,i)}for(const e in s)s[e].forEach((r,i)=>{(0,re.Jt)(t,e)[i].geometry=r});const c={...r,query:{...a.query,...ue(t),f:"json"}},d=l.endsWith("/solve")?l:`${l}/solve`,{data:y}=await(0,k.A)(d,c);return function(e){const{barriers:t,checksum:r,directionLines:i,directionPoints:n,directions:o,messages:s,polygonBarriers:a,polylineBarriers:l,routes:u,stops:p,traversedEdges:c,traversedJunctions:d,traversedTurns:y}=e,m=e=>{const t=f.find(t=>t.routeName===e);if(null!=t)return t;const r={routeId:f.length+1,routeName:e};return f.push(r),r},h=e=>{const t=f.find(t=>t.routeId===e);if(null!=t)return t;const r={routeId:e,routeName:null};return f.push(r),r},f=[];u?.features.forEach((e,t)=>{e.geometry.spatialReference=u.spatialReference??void 0;const r=e.attributes.Name,i=t+1;f.push({routeId:i,routeName:r,route:e})}),o?.forEach(e=>{const{routeName:t}=e;m(t).directions=e});const g=p?.features.every(e=>null==e.attributes.RouteName)&&f.length>0?f[0].routeName:null;return p?.features.forEach(e=>{e.geometry&&(e.geometry.spatialReference??=p.spatialReference??void 0);const t=g??e.attributes.RouteName,r=m(t);r.stops??=[],r.stops.push(e)}),i?.features.forEach(e=>{const t=e.attributes.RouteID,r=h(t),{geometryType:n,spatialReference:o}=i;r.directionLines??={features:[],geometryType:n,spatialReference:o},r.directionLines.features.push(e)}),n?.features.forEach(e=>{const t=e.attributes.RouteID,r=h(t),{geometryType:i,spatialReference:o}=n;r.directionPoints??={features:[],geometryType:i,spatialReference:o},r.directionPoints.features.push(e)}),c?.features.forEach(e=>{const t=e.attributes.RouteID,r=h(t),{geometryType:i,spatialReference:n}=c;r.traversedEdges??={features:[],geometryType:i,spatialReference:n},r.traversedEdges.features.push(e)}),d?.features.forEach(e=>{const t=e.attributes.RouteID,r=h(t),{geometryType:i,spatialReference:n}=d;r.traversedJunctions??={features:[],geometryType:i,spatialReference:n},r.traversedJunctions.features.push(e)}),y?.features.forEach(e=>{const t=e.attributes.RouteID,r=h(t);r.traversedTurns??={features:[]},r.traversedTurns.features.push(e)}),Ne.fromJSON({barriers:t,checksum:r,messages:s,polygonBarriers:a,polylineBarriers:l,routeResults:f})}(y)}var xe;(0,i.Cg)([(0,g.MZ)({type:String})],Ne.prototype,"checksum",void 0),(0,i.Cg)([(0,g.MZ)({type:[he]})],Ne.prototype,"messages",void 0),(0,i.Cg)([(0,g.MZ)({type:[o.A]})],Ne.prototype,"pointBarriers",void 0),(0,i.Cg)([(0,Y.w)("pointBarriers",["barriers"])],Ne.prototype,"readPointBarriers",null),(0,i.Cg)([(0,g.MZ)({type:[o.A]})],Ne.prototype,"polylineBarriers",void 0),(0,i.Cg)([(0,Y.w)("polylineBarriers")],Ne.prototype,"readPolylineBarriers",null),(0,i.Cg)([(0,g.MZ)({type:[o.A]})],Ne.prototype,"polygonBarriers",void 0),(0,i.Cg)([(0,Y.w)("polygonBarriers")],Ne.prototype,"readPolygonBarriers",null),(0,i.Cg)([(0,g.MZ)({type:[Oe]})],Ne.prototype,"routeResults",void 0),Ne=(0,i.Cg)([(0,g.$K)("esri.rest.support.RouteSolveResult")],Ne);let Be=class extends((0,K.OU)(Z.o)){static{xe=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 xe({directionLineType:U.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(){const e={ObjectID:this.objectId,DirectionLineType:this.directionLineType?U.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 o.A({geometry:this.geometry,attributes:e,symbol:this.symbol,popupTemplate:this.popupTemplate})}};var Re;(0,i.Cg)([(0,g.MZ)({type:U.gD.apiValues,json:{read:{source:"attributes.DirectionLineType",reader:U.gD.read}}})],Be.prototype,"directionLineType",void 0),(0,i.Cg)([(0,g.MZ)({json:{read:{source:"attributes.DirectionPointID"}}})],Be.prototype,"directionPointId",void 0),(0,i.Cg)([(0,g.MZ)({json:{read:{source:"attributes.Meters"}}})],Be.prototype,"distance",void 0),(0,i.Cg)([(0,g.MZ)({json:{read:{source:"attributes.Minutes"}}})],Be.prototype,"duration",void 0),(0,i.Cg)([(0,g.MZ)({json:{read:{source:"attributes.FromLevel"}}})],Be.prototype,"fromLevel",void 0),(0,i.Cg)([(0,g.MZ)({type:fe.A})],Be.prototype,"geometry",void 0),(0,i.Cg)([(0,g.MZ)({json:{read:{source:"attributes.ObjectID"}}})],Be.prototype,"objectId",void 0),(0,i.Cg)([(0,g.MZ)({type:s.A})],Be.prototype,"popupTemplate",void 0),(0,i.Cg)([(0,g.MZ)({types:x.Es})],Be.prototype,"symbol",void 0),(0,i.Cg)([(0,g.MZ)({json:{read:{source:"attributes.ToLevel"}}})],Be.prototype,"toLevel",void 0),(0,i.Cg)([(0,g.MZ)({readOnly:!0,json:{read:!1}})],Be.prototype,"type",void 0),Be=xe=(0,i.Cg)([(0,g.$K)("esri.rest.support.DirectionLine")],Be);let Fe=class extends((0,K.OU)(Z.o)){static{Re=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?new Date(t.attributes.ArrivalTime):null}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 Re({alternateName:e.attributes.AlternateName??null,arrivalTime:null!=e.attributes.ArrivalTime?new Date(e.attributes.ArrivalTime):null,arrivalTimeOffset:e.attributes.ArrivalUTCOffset??null,azimuth:e.attributes.Azimuth??null,branchName:e.attributes.BranchName??null,directionPointType:U._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(){const e={ObjectID:this.objectId,DirectionPointType:this.directionPointType?U._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 o.A({geometry:this.geometry,attributes:e,symbol:this.symbol,popupTemplate:this.popupTemplate})}};var Pe;(0,i.Cg)([(0,g.MZ)({json:{read:{source:"attributes.AlternateName"}}})],Fe.prototype,"alternateName",void 0),(0,i.Cg)([(0,g.MZ)({type:Date})],Fe.prototype,"arrivalTime",void 0),(0,i.Cg)([(0,Y.w)("arrivalTime",["attributes.ArrivalTime"])],Fe.prototype,"readArrivalTime",null),(0,i.Cg)([(0,g.MZ)({json:{read:{source:"attributes.ArrivalUTCOffset"}}})],Fe.prototype,"arrivalTimeOffset",void 0),(0,i.Cg)([(0,g.MZ)({json:{read:{source:"attributes.Azimuth"}}})],Fe.prototype,"azimuth",void 0),(0,i.Cg)([(0,g.MZ)({json:{read:{source:"attributes.BranchName"}}})],Fe.prototype,"branchName",void 0),(0,i.Cg)([(0,g.MZ)({type:U._6.apiValues,json:{read:{source:"attributes.DirectionPointType",reader:U._6.read}}})],Fe.prototype,"directionPointType",void 0),(0,i.Cg)([(0,g.MZ)({json:{read:{source:"attributes.DisplayText"}}})],Fe.prototype,"displayText",void 0),(0,i.Cg)([(0,g.MZ)({json:{read:{source:"attributes.ExitName"}}})],Fe.prototype,"exitName",void 0),(0,i.Cg)([(0,g.MZ)({type:ge.A})],Fe.prototype,"geometry",void 0),(0,i.Cg)([(0,g.MZ)({json:{read:{source:"attributes.IntersectingName"}}})],Fe.prototype,"intersectingName",void 0),(0,i.Cg)([(0,g.MZ)({json:{read:{source:"attributes.Level"}}})],Fe.prototype,"level",void 0),(0,i.Cg)([(0,g.MZ)({json:{read:{source:"attributes.Name"}}})],Fe.prototype,"name",void 0),(0,i.Cg)([(0,g.MZ)({json:{read:{source:"attributes.ObjectID"}}})],Fe.prototype,"objectId",void 0),(0,i.Cg)([(0,g.MZ)({type:s.A})],Fe.prototype,"popupTemplate",void 0),(0,i.Cg)([(0,g.MZ)({json:{read:{source:"attributes.Sequence"}}})],Fe.prototype,"sequence",void 0),(0,i.Cg)([(0,g.MZ)({json:{read:{source:"attributes.ShortVoiceInstruction"}}})],Fe.prototype,"shortVoiceInstruction",void 0),(0,i.Cg)([(0,g.MZ)({json:{read:{source:"attributes.StopID"}}})],Fe.prototype,"stopId",void 0),(0,i.Cg)([(0,g.MZ)({types:x.Es})],Fe.prototype,"symbol",void 0),(0,i.Cg)([(0,g.MZ)({json:{read:{source:"attributes.TowardName"}}})],Fe.prototype,"towardName",void 0),(0,i.Cg)([(0,g.MZ)({readOnly:!0,json:{read:!1}})],Fe.prototype,"type",void 0),(0,i.Cg)([(0,g.MZ)({json:{read:{source:"attributes.VoiceInstruction"}}})],Fe.prototype,"voiceInstruction",void 0),Fe=Re=(0,i.Cg)([(0,g.$K)("esri.rest.support.DirectionPoint")],Fe);let _e=class extends((0,K.OU)(Z.o)){static{Pe=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 ne(t.attributes,"Attr_")}writeCosts(e,t){oe(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 Pe({addedCost:e.attributes.AddedCost??null,barrierType:null!=e.attributes.BarrierType?U.iM.fromJSON(e.attributes.BarrierType):null,costs:null!=e.attributes.Costs?se(JSON.parse(e.attributes.Costs)):null,curbApproach:null!=e.attributes.CurbApproach?U.JJ.fromJSON(e.attributes.CurbApproach):null,fullEdge:null!=e.attributes.FullEdge?U.fe.fromJSON(e.attributes.FullEdge):null,geometry:e.geometry,name:e.attributes.Name??null,objectId:e.attributes.ObjectID??e.attributes.__OBJECTID,popupTemplate:e.popupTemplate,status:null!=e.attributes.Status?U.$r.fromJSON(e.attributes.Status):null,symbol:e.symbol})}toGraphic(){const e={ObjectID:this.objectId,AddedCost:this.addedCost,BarrierType:this.barrierType?U.iM.toJSON(this.barrierType):null,Costs:this.costs?JSON.stringify(ae(this.costs)):null,CurbApproach:this.curbApproach?U.JJ.toJSON(this.curbApproach):null,FullEdge:this.fullEdge?U.fe.toJSON(this.fullEdge):null,Name:this.name,Status:this.status?U.$r.toJSON(this.status):null};return new o.A({geometry:this.geometry,attributes:e,symbol:this.symbol,popupTemplate:this.popupTemplate})}};(0,i.Cg)([(0,g.MZ)()],_e.prototype,"addedCost",void 0),(0,i.Cg)([(0,g.MZ)({type:U.iM.apiValues,json:{name:"attributes.BarrierType",read:{reader:U.iM.read},write:{writer:U.iM.write}}})],_e.prototype,"barrierType",void 0),(0,i.Cg)([(0,g.MZ)()],_e.prototype,"costs",void 0),(0,i.Cg)([(0,Y.w)("costs",["attributes"])],_e.prototype,"readCosts",null),(0,i.Cg)([(0,H.K)("costs")],_e.prototype,"writeCosts",null),(0,i.Cg)([(0,g.MZ)({type:U.JJ.apiValues,json:{read:{source:"attributes.CurbApproach",reader:U.JJ.read}}})],_e.prototype,"curbApproach",void 0),(0,i.Cg)([(0,g.MZ)({type:U.fe.apiValues,json:{name:"attributes.FullEdge",read:{reader:U.fe.read},write:{writer:U.fe.write}}})],_e.prototype,"fullEdge",void 0),(0,i.Cg)([(0,g.MZ)({type:ge.A,json:{write:!0},value:null})],_e.prototype,"geometry",null),(0,i.Cg)([(0,g.MZ)({json:{name:"attributes.Name"}})],_e.prototype,"name",void 0),(0,i.Cg)([(0,g.MZ)({json:{name:"attributes.ObjectID"}})],_e.prototype,"objectId",void 0),(0,i.Cg)([(0,g.MZ)({type:s.A})],_e.prototype,"popupTemplate",void 0),(0,i.Cg)([(0,g.MZ)({json:{name:"attributes.PosAlong"}})],_e.prototype,"positionAlong",void 0),(0,i.Cg)([(0,g.MZ)({type:U.mt.apiValues,json:{name:"attributes.SideOfEdge",read:{reader:U.mt.read},write:{writer:U.mt.write}}})],_e.prototype,"sideOfEdge",void 0),(0,i.Cg)([(0,g.MZ)({json:{name:"attributes.SourceID"}})],_e.prototype,"sourceId",void 0),(0,i.Cg)([(0,g.MZ)({json:{name:"attributes.SourceOID"}})],_e.prototype,"sourceOid",void 0),(0,i.Cg)([(0,g.MZ)({type:U.$r.apiValues,json:{read:{source:"attributes.Status",reader:U.$r.read}}})],_e.prototype,"status",void 0),(0,i.Cg)([(0,g.MZ)({types:x.Es})],_e.prototype,"symbol",void 0),(0,i.Cg)([(0,g.MZ)({readOnly:!0,json:{read:!1}})],_e.prototype,"type",void 0),_e=Pe=(0,i.Cg)([(0,g.$K)("esri.rest.support.PointBarrier")],_e);var Ee,Le=r(39829);let Je=class extends((0,K.OU)(Z.o)){static{Ee=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 ne(t.attributes,"Attr_")}writeCosts(e,t){oe(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 Ee({barrierType:null!=e.attributes.BarrierType?U.iM.fromJSON(e.attributes.BarrierType):null,costs:null!=e.attributes.Costs?se(JSON.parse(e.attributes.Costs)):null,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(){const e={ObjectID:this.objectId,BarrierType:this.barrierType?U.iM.toJSON(this.barrierType):null,Costs:this.costs?JSON.stringify(ae(this.costs)):null,Name:this.name??null,ScaleFactor:this.scaleFactor??null};return new o.A({geometry:this.geometry,attributes:e,symbol:this.symbol,popupTemplate:this.popupTemplate})}};var ke;(0,i.Cg)([(0,g.MZ)({type:U.iM.apiValues,json:{name:"attributes.BarrierType",read:{reader:U.iM.read},write:{writer:U.iM.write}}})],Je.prototype,"barrierType",void 0),(0,i.Cg)([(0,g.MZ)()],Je.prototype,"costs",void 0),(0,i.Cg)([(0,Y.w)("costs",["attributes"])],Je.prototype,"readCosts",null),(0,i.Cg)([(0,H.K)("costs")],Je.prototype,"writeCosts",null),(0,i.Cg)([(0,g.MZ)({type:Le.A,json:{write:!0}})],Je.prototype,"geometry",void 0),(0,i.Cg)([(0,g.MZ)({json:{name:"attributes.Name"}})],Je.prototype,"name",void 0),(0,i.Cg)([(0,g.MZ)({json:{name:"attributes.ObjectID"}})],Je.prototype,"objectId",void 0),(0,i.Cg)([(0,g.MZ)({type:s.A})],Je.prototype,"popupTemplate",void 0),(0,i.Cg)([(0,g.MZ)()],Je.prototype,"scaleFactor",void 0),(0,i.Cg)([(0,g.MZ)({types:x.Es})],Je.prototype,"symbol",void 0),(0,i.Cg)([(0,g.MZ)({readOnly:!0,json:{read:!1}})],Je.prototype,"type",void 0),Je=Ee=(0,i.Cg)([(0,g.$K)("esri.rest.support.PolygonBarrier")],Je);let $e=class extends((0,K.OU)(Z.o)){static{ke=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 ne(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 ke({barrierType:null!=e.attributes.BarrierType?U.iM.fromJSON(e.attributes.BarrierType):null,costs:null!=e.attributes.Costs?se(JSON.parse(e.attributes.Costs)):null,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(){const e={ObjectID:this.objectId,BarrierType:this.barrierType?U.iM.toJSON(this.barrierType):null,Costs:this.costs?JSON.stringify(ae(this.costs)):null,Name:this.name,ScaleFactor:this.scaleFactor};return new o.A({geometry:this.geometry,attributes:e,symbol:this.symbol,popupTemplate:this.popupTemplate})}};(0,i.Cg)([(0,g.MZ)({type:U.iM.apiValues,json:{read:{source:"attributes.BarrierType",reader:U.iM.read}}})],$e.prototype,"barrierType",void 0),(0,i.Cg)([(0,g.MZ)()],$e.prototype,"costs",void 0),(0,i.Cg)([(0,Y.w)("costs",["attributes"])],$e.prototype,"readCosts",null),(0,i.Cg)([(0,g.MZ)({type:fe.A,json:{write:!0}})],$e.prototype,"geometry",void 0),(0,i.Cg)([(0,g.MZ)({json:{name:"attributes.Name"}})],$e.prototype,"name",void 0),(0,i.Cg)([(0,g.MZ)({json:{name:"attributes.ObjectID"}})],$e.prototype,"objectId",void 0),(0,i.Cg)([(0,g.MZ)({type:s.A})],$e.prototype,"popupTemplate",void 0),(0,i.Cg)([(0,g.MZ)()],$e.prototype,"scaleFactor",void 0),(0,i.Cg)([(0,g.MZ)({types:x.Es})],$e.prototype,"symbol",void 0),(0,i.Cg)([(0,g.MZ)({readOnly:!0,json:{read:!1}})],$e.prototype,"type",void 0),$e=ke=(0,i.Cg)([(0,g.$K)("esri.rest.support.PolylineBarrier")],$e);let Ue=class extends Z.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=>U.et.fromJSON(e))}writeAccumulateAttributes(e,t,r){e?.length&&(t[r]=e.map(e=>U.et.toJSON(e)))}};var We;(0,i.Cg)([(0,g.MZ)({type:[String],json:{name:"accumulateAttributeNames",write:!0}})],Ue.prototype,"accumulateAttributes",void 0),(0,i.Cg)([(0,Y.w)("accumulateAttributes")],Ue.prototype,"readAccumulateAttributes",null),(0,i.Cg)([(0,H.K)("accumulateAttributes")],Ue.prototype,"writeAccumulateAttributes",null),(0,i.Cg)([(0,g.MZ)({type:String,json:{write:!0}})],Ue.prototype,"directionsLanguage",void 0),(0,i.Cg)([(0,g.MZ)({type:Boolean,json:{write:!0}})],Ue.prototype,"findBestSequence",void 0),(0,i.Cg)([(0,g.MZ)({type:Boolean,json:{write:!0}})],Ue.prototype,"preserveFirstStop",void 0),(0,i.Cg)([(0,g.MZ)({type:Boolean,json:{write:!0}})],Ue.prototype,"preserveLastStop",void 0),(0,i.Cg)([(0,g.MZ)({type:Boolean,json:{write:!0}})],Ue.prototype,"startTimeIsUTC",void 0),(0,i.Cg)([(0,g.MZ)({type:Boolean,json:{write:!0}})],Ue.prototype,"timeWindowsAreUTC",void 0),(0,i.Cg)([(0,g.MZ)({type:X,json:{write:!0}})],Ue.prototype,"travelMode",void 0),Ue=(0,i.Cg)([(0,g.$K)("esri.rest.support.RouteSettings")],Ue);let Ge=class extends((0,K.OU)(Z.o)){static{We=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?new Date(t.attributes.EndTimeUTC):null}readEndTimeOffset(e,t){return le(t.attributes.EndTime,t.attributes.EndTimeUTC)}readStartTime(e,t){return null!=t.attributes.StartTimeUTC?new Date(t.attributes.StartTimeUTC):null}readStartTimeOffset(e,t){return le(t.attributes.StartTime,t.attributes.StartTimeUTC)}readTotalCosts(e,t){return ne(t.attributes,"Total_")}readTotalViolations(e,t){return ne(t.attributes,"TotalViolation_")}readTotalWait(e,t){return ne(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 We({analysisSettings:null!=e.attributes.AnalysisSettings?Ue.fromJSON(JSON.parse(e.attributes.AnalysisSettings)):null,endTime:null!=e.attributes.EndTime?new Date(e.attributes.EndTime):null,endTimeOffset:e.attributes.EndUTCOffset??null,geometry:e.geometry,messages:null!=e.attributes.Messages?JSON.parse(e.attributes.Messages):null,name:e.attributes.RouteName,objectId:e.attributes.ObjectID??e.attributes.__OBJECTID,popupTemplate:e.popupTemplate,startTime:null!=e.attributes.StartTime?new Date(e.attributes.StartTime):null,startTimeOffset:e.attributes.StartUTCOffset??null,symbol:e.symbol,totalCosts:null!=e.attributes.TotalCosts?se(JSON.parse(e.attributes.TotalCosts)):null,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(){const 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(ae(this.totalCosts)):null,TotalLateMinutes:this.totalLateDuration,TotalMeters:this.totalDistance,TotalMinutes:this.totalDuration,TotalWaitMinutes:this.totalWaitDuration,Version:this.version};return new o.A({geometry:this.geometry,attributes:e,symbol:this.symbol,popupTemplate:this.popupTemplate})}};(0,i.Cg)([(0,g.MZ)()],Ge.prototype,"analysisSettings",void 0),(0,i.Cg)([(0,g.MZ)({type:Date})],Ge.prototype,"endTime",void 0),(0,i.Cg)([(0,Y.w)("endTime",["attributes.EndTimeUTC"])],Ge.prototype,"readEndTime",null),(0,i.Cg)([(0,g.MZ)()],Ge.prototype,"endTimeOffset",void 0),(0,i.Cg)([(0,Y.w)("endTimeOffset",["attributes.EndTime","attributes.EndTimeUTC"])],Ge.prototype,"readEndTimeOffset",null),(0,i.Cg)([(0,g.MZ)({json:{read:{source:"attributes.FirstStopID"}}})],Ge.prototype,"firstStopId",void 0),(0,i.Cg)([(0,g.MZ)({type:fe.A})],Ge.prototype,"geometry",void 0),(0,i.Cg)([(0,g.MZ)({json:{read:{source:"attributes.LastStopID"}}})],Ge.prototype,"lastStopId",void 0),(0,i.Cg)([(0,g.MZ)()],Ge.prototype,"messages",void 0),(0,i.Cg)([(0,g.MZ)({json:{read:{source:"attributes.Name"}}})],Ge.prototype,"name",void 0),(0,i.Cg)([(0,g.MZ)({json:{read:{source:"attributes.ObjectID"}}})],Ge.prototype,"objectId",void 0),(0,i.Cg)([(0,g.MZ)({type:s.A})],Ge.prototype,"popupTemplate",void 0),(0,i.Cg)([(0,g.MZ)({type:Date})],Ge.prototype,"startTime",void 0),(0,i.Cg)([(0,Y.w)("startTime",["attributes.StartTimeUTC"])],Ge.prototype,"readStartTime",null),(0,i.Cg)([(0,g.MZ)()],Ge.prototype,"startTimeOffset",void 0),(0,i.Cg)([(0,Y.w)("startTimeOffset",["attributes.StartTime","attributes.StartTimeUTC"])],Ge.prototype,"readStartTimeOffset",null),(0,i.Cg)([(0,g.MZ)({json:{read:{source:"attributes.StopCount"}}})],Ge.prototype,"stopCount",void 0),(0,i.Cg)([(0,g.MZ)({types:x.Es})],Ge.prototype,"symbol",void 0),(0,i.Cg)([(0,g.MZ)()],Ge.prototype,"totalCosts",void 0),(0,i.Cg)([(0,Y.w)("totalCosts",["attributes"])],Ge.prototype,"readTotalCosts",null),(0,i.Cg)([(0,g.MZ)()],Ge.prototype,"totalDistance",void 0),(0,i.Cg)([(0,g.MZ)()],Ge.prototype,"totalDuration",void 0),(0,i.Cg)([(0,g.MZ)()],Ge.prototype,"totalLateDuration",void 0),(0,i.Cg)([(0,g.MZ)()],Ge.prototype,"totalViolations",void 0),(0,i.Cg)([(0,Y.w)("totalViolations",["attributes"])],Ge.prototype,"readTotalViolations",null),(0,i.Cg)([(0,g.MZ)()],Ge.prototype,"totalWait",void 0),(0,i.Cg)([(0,Y.w)("totalWait",["attributes"])],Ge.prototype,"readTotalWait",null),(0,i.Cg)([(0,g.MZ)()],Ge.prototype,"totalWaitDuration",void 0),(0,i.Cg)([(0,g.MZ)({readOnly:!0,json:{read:!1}})],Ge.prototype,"type",void 0),(0,i.Cg)([(0,g.MZ)()],Ge.prototype,"version",void 0),Ge=We=(0,i.Cg)([(0,g.$K)("esri.rest.support.RouteInfo")],Ge);var Ve=r(56507),qe=r(24097),ze=r(65864),Ke=r(50498);let Ye=class extends((0,K.OU)(Z.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,g.MZ)({type:Boolean,json:{write:!0}})],Ye.prototype,"doNotLocateOnRestrictedElements",void 0),(0,i.Cg)([(0,g.MZ)({types:Ke.yR,json:{read:ze.rS,write:!0}})],Ye.prototype,"geometry",void 0),(0,i.Cg)([(0,W.e)(U.Vj)],Ye.prototype,"geometryType",void 0),(0,i.Cg)([(0,g.MZ)({type:String,json:{name:"layerName",write:!0}})],Ye.prototype,"name",void 0),(0,i.Cg)([(0,W.e)(U.vS,{name:"spatialRel"})],Ye.prototype,"spatialRelationship",void 0),(0,i.Cg)([(0,g.MZ)({type:String,json:{write:!0}})],Ye.prototype,"type",void 0),(0,i.Cg)([(0,g.MZ)({type:String,json:{write:!0}})],Ye.prototype,"where",void 0),Ye=(0,i.Cg)([(0,g.$K)("esri.rest.support.DataLayer")],Ye);var He=r(10107),Xe=r(64108);let Qe=class extends((0,K.OU)(Z.o)){constructor(e){super(e),this.name=null,this.where=null}};(0,i.Cg)([(0,He.MZ)({json:{write:!0}})],Qe.prototype,"name",void 0),(0,i.Cg)([(0,He.MZ)({json:{write:!0}})],Qe.prototype,"where",void 0),Qe=(0,i.Cg)([(0,Xe.$)("esri.rest.support.LocateSettingSource")],Qe);const et=Qe;let tt=class extends((0,K.OU)(Z.o)){constructor(e){super(e),this.allowAutoRelocate=null,this.sources=null}};(0,i.Cg)([(0,He.MZ)({type:Boolean,json:{write:!0}})],tt.prototype,"allowAutoRelocate",void 0),(0,i.Cg)([(0,He.MZ)({type:[et],json:{write:!0}})],tt.prototype,"sources",void 0),tt=(0,i.Cg)([(0,Xe.$)("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,He.MZ)({type:Number,json:{write:!0}})],it.prototype,"tolerance",void 0),(0,i.Cg)([(0,W.e)(U.Y8)],it.prototype,"toleranceUnits",void 0),it=(0,i.Cg)([(0,Xe.$)("esri.rest.support.LocateSetting")],it);const nt=it;let ot=class extends((0,K.OU)(Z.o)){constructor(e){super(e),this.stops=null,this.pointBarriers=null,this.polylineBarriers=null,this.polygonBarriers=null}};(0,i.Cg)([(0,He.MZ)({type:nt,json:{write:!0}})],ot.prototype,"stops",void 0),(0,i.Cg)([(0,He.MZ)({type:nt,json:{name:"barriers",write:!0}})],ot.prototype,"pointBarriers",void 0),(0,i.Cg)([(0,He.MZ)({type:rt,json:{write:!0}})],ot.prototype,"polylineBarriers",void 0),(0,i.Cg)([(0,He.MZ)({type:rt,json:{write:!0}})],ot.prototype,"polygonBarriers",void 0),ot=(0,i.Cg)([(0,Xe.$)("esri.rest.support.LocateSettingsOverrides")],ot);const st=ot;let at=class extends((0,K.OU)(Z.o)){constructor(e){super(e),this.default=null,this.overrides=null}};(0,i.Cg)([(0,He.MZ)({type:nt,json:{write:!0}})],at.prototype,"default",void 0),(0,i.Cg)([(0,He.MZ)({type:st,json:{write:!0}})],at.prototype,"overrides",void 0),at=(0,i.Cg)([(0,Xe.$)("esri.rest.support.LocateSettings")],at);const lt=at;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,g.MZ)({type:Boolean,json:{write:!0}})],pt.prototype,"doNotLocateOnRestrictedElements",void 0),pt=ut=(0,i.Cg)([(0,g.$K)("esri.rest.support.NetworkFeatureSet")],pt);let ct=class extends((0,K.OU)(Z.o)){constructor(e){super(e),this.doNotLocateOnRestrictedElements=null,this.url=null}};var dt;(0,i.Cg)([(0,g.MZ)({type:Boolean,json:{write:!0}})],ct.prototype,"doNotLocateOnRestrictedElements",void 0),(0,i.Cg)([(0,g.MZ)({type:String,json:{write:!0}})],ct.prototype,"url",void 0),ct=(0,i.Cg)([(0,g.$K)("esri.rest.support.NetworkUrl")],ct);let yt=class extends((0,K.OU)(Z.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,Ve.PZ)(dt,e)}readAccumulateAttributes(e){return null==e?null:e.map(e=>U.et.fromJSON(e))}writeAccumulateAttributes(e,t,r){e?.length&&(t[r]=e.map(e=>U.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=>U.OC.fromJSON(e))}writeRestrictionAttributes(e,t,r){e?.length&&(t[r]=e.map(e=>U.OC.toJSON(e)))}readStartTime(e,t){const{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)?Ye.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]=l.A.isCollection(e)?{features:e.toArray().map(e=>e.toJSON())}:e.toJSON())}var ht;(0,i.Cg)([(0,g.MZ)({type:[String],json:{name:"accumulateAttributeNames",write:!0}})],yt.prototype,"accumulateAttributes",void 0),(0,i.Cg)([(0,Y.w)("accumulateAttributes")],yt.prototype,"readAccumulateAttributes",null),(0,i.Cg)([(0,H.K)("accumulateAttributes")],yt.prototype,"writeAccumulateAttributes",null),(0,i.Cg)([(0,g.MZ)(qe.K)],yt.prototype,"apiKey",void 0),(0,i.Cg)([(0,g.MZ)({json:{write:!0}})],yt.prototype,"attributeParameterValues",void 0),(0,i.Cg)([(0,g.MZ)({type:String,json:{write:!0}})],yt.prototype,"checksum",void 0),(0,i.Cg)([(0,g.MZ)({type:String,json:{write:!0}})],yt.prototype,"directionsLanguage",void 0),(0,i.Cg)([(0,W.e)(U.Z7)],yt.prototype,"directionsLengthUnits",void 0),(0,i.Cg)([(0,W.e)(U.aJ)],yt.prototype,"directionsOutputType",void 0),(0,i.Cg)([(0,W.e)(U.$n)],yt.prototype,"directionsStyleName",void 0),(0,i.Cg)([(0,W.e)(U.Mm,{name:"directionsTimeAttributeName",ignoreUnknown:!1})],yt.prototype,"directionsTimeAttribute",void 0),(0,i.Cg)([(0,g.MZ)({type:Boolean,json:{write:!0}})],yt.prototype,"findBestSequence",void 0),(0,i.Cg)([(0,g.MZ)({type:Number,json:{write:!0}})],yt.prototype,"geometryPrecision",void 0),(0,i.Cg)([(0,g.MZ)({type:Number,json:{write:!0}})],yt.prototype,"geometryPrecisionM",void 0),(0,i.Cg)([(0,g.MZ)({type:Number,json:{write:!0}})],yt.prototype,"geometryPrecisionZ",void 0),(0,i.Cg)([(0,g.MZ)({type:Boolean,json:{write:!0}})],yt.prototype,"ignoreInvalidLocations",void 0),(0,i.Cg)([(0,W.e)(U.et,{name:"impedanceAttributeName",ignoreUnknown:!1})],yt.prototype,"impedanceAttribute",void 0),(0,i.Cg)([(0,g.MZ)({type:lt,json:{write:!0}})],yt.prototype,"locateSettings",void 0),(0,i.Cg)([(0,g.MZ)({type:Number,json:{write:!0}})],yt.prototype,"outputGeometryPrecision",void 0),(0,i.Cg)([(0,W.e)(U.hY)],yt.prototype,"outputGeometryPrecisionUnits",void 0),(0,i.Cg)([(0,W.e)(U.Sr)],yt.prototype,"outputLines",void 0),(0,i.Cg)([(0,g.MZ)({type:T.A,json:{name:"outSR",write:!0}})],yt.prototype,"outSpatialReference",void 0),(0,i.Cg)([(0,g.MZ)({json:{write:!0}})],yt.prototype,"overrides",void 0),(0,i.Cg)([(0,g.MZ)({json:{name:"barriers",write:!0}})],yt.prototype,"pointBarriers",void 0),(0,i.Cg)([(0,H.K)("pointBarriers")],yt.prototype,"writePointBarriers",null),(0,i.Cg)([(0,g.MZ)({json:{write:!0}})],yt.prototype,"polygonBarriers",void 0),(0,i.Cg)([(0,H.K)("polygonBarriers")],yt.prototype,"writePolygonBarrier",null),(0,i.Cg)([(0,g.MZ)({json:{write:!0}})],yt.prototype,"polylineBarriers",void 0),(0,i.Cg)([(0,H.K)("polylineBarriers")],yt.prototype,"writePolylineBarrier",null),(0,i.Cg)([(0,g.MZ)({type:Boolean,json:{write:!0}})],yt.prototype,"preserveFirstStop",void 0),(0,i.Cg)([(0,g.MZ)({type:Boolean,json:{write:!0}})],yt.prototype,"preserveLastStop",void 0),(0,i.Cg)([(0,g.MZ)({type:Boolean,json:{write:!0}})],yt.prototype,"preserveObjectID",void 0),(0,i.Cg)([(0,g.MZ)({type:[String],json:{name:"restrictionAttributeNames",write:!0}})],yt.prototype,"restrictionAttributes",void 0),(0,i.Cg)([(0,Y.w)("restrictionAttributes")],yt.prototype,"readRestrictionAttributes",null),(0,i.Cg)([(0,H.K)("restrictionAttributes")],yt.prototype,"writeRestrictionAttributes",null),(0,i.Cg)([(0,W.e)(U.hE)],yt.prototype,"restrictUTurns",void 0),(0,i.Cg)([(0,g.MZ)({type:Boolean,json:{write:!0}})],yt.prototype,"returnBarriers",void 0),(0,i.Cg)([(0,g.MZ)({type:Boolean,json:{write:!0}})],yt.prototype,"returnDirections",void 0),(0,i.Cg)([(0,g.MZ)({type:Boolean,json:{write:!0}})],yt.prototype,"returnEmptyResults",void 0),(0,i.Cg)([(0,g.MZ)({type:Boolean,json:{write:!0}})],yt.prototype,"returnPolygonBarriers",void 0),(0,i.Cg)([(0,g.MZ)({type:Boolean,json:{write:!0}})],yt.prototype,"returnPolylineBarriers",void 0),(0,i.Cg)([(0,g.MZ)({type:Boolean,json:{write:!0}})],yt.prototype,"returnRoutes",void 0),(0,i.Cg)([(0,g.MZ)({type:Boolean,json:{write:!0}})],yt.prototype,"returnStops",void 0),(0,i.Cg)([(0,g.MZ)({type:Boolean,json:{write:!0}})],yt.prototype,"returnTraversedEdges",void 0),(0,i.Cg)([(0,g.MZ)({type:Boolean,json:{write:!0}})],yt.prototype,"returnTraversedJunctions",void 0),(0,i.Cg)([(0,g.MZ)({type:Boolean,json:{write:!0}})],yt.prototype,"returnTraversedTurns",void 0),(0,i.Cg)([(0,g.MZ)({type:Boolean,json:{write:!0}})],yt.prototype,"returnZ",void 0),(0,i.Cg)([(0,g.MZ)({json:{write:!0}})],yt.prototype,"startTime",void 0),(0,i.Cg)([(0,Y.w)("startTime")],yt.prototype,"readStartTime",null),(0,i.Cg)([(0,H.K)("startTime")],yt.prototype,"writeStartTime",null),(0,i.Cg)([(0,g.MZ)({type:Boolean,json:{write:!0}})],yt.prototype,"startTimeIsUTC",void 0),(0,i.Cg)([(0,g.MZ)({json:{write:!0}})],yt.prototype,"stops",void 0),(0,i.Cg)([(0,Y.w)("stops")],yt.prototype,"readStops",null),(0,i.Cg)([(0,H.K)("stops")],yt.prototype,"writeStops",null),(0,i.Cg)([(0,g.MZ)({type:Boolean,json:{write:!0}})],yt.prototype,"timeWindowsAreUTC",void 0),(0,i.Cg)([(0,g.MZ)({type:X,json:{write:!0}})],yt.prototype,"travelMode",void 0),(0,i.Cg)([(0,g.MZ)({type:Boolean,json:{write:!0}})],yt.prototype,"useHierarchy",void 0),(0,i.Cg)([(0,g.MZ)({type:Boolean,json:{write:!0}})],yt.prototype,"useTimeWindows",void 0),yt=dt=(0,i.Cg)([(0,g.$K)("esri.rest.support.RouteParameters")],yt);let ft=class extends((0,K.OU)(Z.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 le(t.attributes.ArriveTime,t.attributes.ArriveTimeUTC)}readCumulativeCosts(e,t){return ne(t.attributes,"Cumul_")}readDepartTimeOffset(e,t){return le(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 ne(t.attributes,"Attr_")}writeServiceCosts(e,t){oe(e,t,"Attr_")}writeTimeWindowEnd(e,t){null!=e&&(t.attributes||(t.attributes={}),t.attributes.TimeWindowEnd=e.getTime())}writeTimeWindowStart(e,t){null!=e&&(t.attributes||(t.attributes={}),t.attributes.TimeWindowStart=e.getTime())}readViolations(e,t){return ne(t.attributes,"Violation_")}readWait(e,t){return ne(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?U.JJ.fromJSON(e.attributes.ArrivalCurbApproach):null,arriveTime:null!=e.attributes.ArrivalTime?new Date(e.attributes.ArrivalTime):null,arriveTimeOffset:e.attributes.ArrivalUTCOffset,cumulativeCosts:null!=e.attributes.CumulativeCosts?se(JSON.parse(e.attributes.CumulativeCosts)):null,cumulativeDistance:e.attributes.CumulativeMeters??null,cumulativeDuration:e.attributes.CumulativeMinutes??null,curbApproach:null!=e.attributes.CurbApproach?U.JJ.fromJSON(e.attributes.CurbApproach):null,departCurbApproach:null!=e.attributes.DepartureCurbApproach?U.JJ.fromJSON(e.attributes.DepartureCurbApproach):null,departTime:null!=e.attributes.DepartureTime?new Date(e.attributes.DepartureTime):null,departTimeOffset:e.attributes.DepartureUTCOffset??null,geometry:e.geometry,lateDuration:e.attributes.LateMinutes??null,locationType:null!=e.attributes.LocationType?U.EM.fromJSON(e.attributes.LocationType):null,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?se(JSON.parse(e.attributes.ServiceCosts)):null,serviceDistance:e.attributes.ServiceMeters??null,serviceDuration:e.attributes.ServiceMinutes??null,status:null!=e.attributes.Status?U.$r.fromJSON(e.attributes.Status):null,symbol:e.symbol,timeWindowEnd:null!=e.attributes.TimeWindowEnd?new Date(e.attributes.TimeWindowEnd):null,timeWindowEndOffset:e.attributes.TimeWindowEndUTCOffset??null,timeWindowStart:null!=e.attributes.TimeWindowStart?new Date(e.attributes.TimeWindowStart):null,timeWindowStartOffset:e.attributes.TimeWindowStartUTCOffset??null,waitDuration:e.attributes.WaitMinutes??null})}toGraphic(){const e={ObjectID:this.objectId,ArrivalCurbApproach:this.arriveCurbApproach?U.JJ.toJSON(this.arriveCurbApproach):null,ArrivalTime:this.arriveTime?.getTime()??null,ArrivalUTCOffset:this.arriveTimeOffset,CumulativeCosts:this.cumulativeCosts?JSON.stringify(ae(this.cumulativeCosts)):null,CumulativeMeters:this.cumulativeDistance,CumulativeMinutes:this.cumulativeDuration,CurbApproach:this.curbApproach?U.JJ.toJSON(this.curbApproach):null,DepartureCurbApproach:this.departCurbApproach?U.JJ.toJSON(this.departCurbApproach):null,DepartureTime:this.departTime?.getTime()??null,DepartureUTCOffset:this.departTimeOffset,LateMinutes:this.lateDuration,LocationType:this.locationType?U.EM.toJSON(this.locationType):null,Name:this.name,RouteName:this.routeName,Sequence:this.sequence,ServiceCosts:this.serviceCosts?JSON.stringify(ae(this.serviceCosts)):null,ServiceMeters:this.serviceDistance,ServiceMinutes:this.serviceDuration,Status:this.status?U.$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 o.A({geometry:this.geometry,attributes:e,symbol:this.symbol,popupTemplate:this.popupTemplate})}};function gt(e){if(!e.length)return;const t=e.toArray(),r=t.map(({objectId:e})=>e).filter(e=>null!=e);let i=Math.max(...r,0);for(const 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 wt(e,t){return!!e.length||!!t.length}function Ct(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 Mt(e){return"layers"in e}async function St(e){const t=T.A.WGS84;return await(0,C.initializeProjection)(e.spatialReference,t),(0,C.project)(e,t)}function At(e,t){if(t&&e?.length&&!e.every(({symbol:e})=>!!e))for(const r of e)r.symbol=t}function It(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,g.MZ)({type:U.JJ.apiValues,json:{read:{source:"attributes.ArrivalCurbApproach",reader:U.JJ.read}}})],ft.prototype,"arriveCurbApproach",void 0),(0,i.Cg)([(0,g.MZ)({type:Date,json:{read:{source:"attributes.ArriveTimeUTC"}}})],ft.prototype,"arriveTime",void 0),(0,i.Cg)([(0,g.MZ)()],ft.prototype,"arriveTimeOffset",void 0),(0,i.Cg)([(0,Y.w)("arriveTimeOffset",["attributes.ArriveTime","attributes.ArriveTimeUTC"])],ft.prototype,"readArriveTimeOffset",null),(0,i.Cg)([(0,g.MZ)({json:{name:"attributes.Bearing",read:!1,write:!0}})],ft.prototype,"bearing",void 0),(0,i.Cg)([(0,g.MZ)({json:{name:"attributes.BearingTol",read:!1,write:!0}})],ft.prototype,"bearingTol",void 0),(0,i.Cg)([(0,g.MZ)()],ft.prototype,"cumulativeCosts",void 0),(0,i.Cg)([(0,Y.w)("cumulativeCosts",["attributes"])],ft.prototype,"readCumulativeCosts",null),(0,i.Cg)([(0,g.MZ)()],ft.prototype,"cumulativeDistance",void 0),(0,i.Cg)([(0,g.MZ)()],ft.prototype,"cumulativeDuration",void 0),(0,i.Cg)([(0,g.MZ)({type:U.JJ.apiValues,json:{name:"attributes.CurbApproach",read:{reader:U.JJ.read},write:{writer:U.JJ.write}}})],ft.prototype,"curbApproach",void 0),(0,i.Cg)([(0,g.MZ)({type:U.JJ.apiValues,json:{read:{source:"attributes.DepartCurbApproach",reader:U.JJ.read}}})],ft.prototype,"departCurbApproach",void 0),(0,i.Cg)([(0,g.MZ)({type:Date,json:{read:{source:"attributes.DepartTimeUTC"}}})],ft.prototype,"departTime",void 0),(0,i.Cg)([(0,g.MZ)()],ft.prototype,"departTimeOffset",void 0),(0,i.Cg)([(0,Y.w)("departTimeOffset",["attributes.DepartTime","attributes.DepartTimeUTC"])],ft.prototype,"readDepartTimeOffset",null),(0,i.Cg)([(0,g.MZ)({json:{read:{source:"attributes.DistanceToNetworkInMeters"}}})],ft.prototype,"distanceToNetworkInMeters",void 0),(0,i.Cg)([(0,g.MZ)({type:ge.A,json:{write:!0},value:null})],ft.prototype,"geometry",null),(0,i.Cg)([(0,g.MZ)()],ft.prototype,"lateDuration",void 0),(0,i.Cg)([(0,g.MZ)({type:U.EM.apiValues,json:{name:"attributes.LocationType",read:{reader:U.EM.read},write:{writer:U.EM.write}}})],ft.prototype,"locationType",void 0),(0,i.Cg)([(0,g.MZ)({json:{name:"attributes.Name"}})],ft.prototype,"name",void 0),(0,i.Cg)([(0,g.MZ)({json:{name:"attributes.NavLatency",read:!1,write:!0}})],ft.prototype,"navLatency",void 0),(0,i.Cg)([(0,g.MZ)({json:{name:"attributes.ObjectID"}})],ft.prototype,"objectId",void 0),(0,i.Cg)([(0,g.MZ)({type:s.A})],ft.prototype,"popupTemplate",void 0),(0,i.Cg)([(0,g.MZ)({json:{name:"attributes.PosAlong"}})],ft.prototype,"positionAlong",void 0),(0,i.Cg)([(0,g.MZ)({json:{name:"attributes.RouteName"}})],ft.prototype,"routeName",void 0),(0,i.Cg)([(0,g.MZ)()],ft.prototype,"serviceCosts",void 0),(0,i.Cg)([(0,Y.w)("serviceCosts",["attributes"])],ft.prototype,"readServiceCosts",null),(0,i.Cg)([(0,H.K)("serviceCosts")],ft.prototype,"writeServiceCosts",null),(0,i.Cg)([(0,g.MZ)()],ft.prototype,"serviceDistance",void 0),(0,i.Cg)([(0,g.MZ)()],ft.prototype,"serviceDuration",void 0),(0,i.Cg)([(0,g.MZ)({json:{name:"attributes.Sequence"}})],ft.prototype,"sequence",void 0),(0,i.Cg)([(0,g.MZ)({type:U.mt.apiValues,json:{name:"attributes.SideOfEdge",read:{reader:U.mt.read},write:{writer:U.mt.write}}})],ft.prototype,"sideOfEdge",void 0),(0,i.Cg)([(0,g.MZ)({json:{read:{source:"attributes.SnapX"}}})],ft.prototype,"snapX",void 0),(0,i.Cg)([(0,g.MZ)({json:{read:{source:"attributes.SnapY"}}})],ft.prototype,"snapY",void 0),(0,i.Cg)([(0,g.MZ)({json:{read:{source:"attributes.SnapZ"}}})],ft.prototype,"snapZ",void 0),(0,i.Cg)([(0,g.MZ)({json:{name:"attributes.SourceID"}})],ft.prototype,"sourceId",void 0),(0,i.Cg)([(0,g.MZ)({json:{name:"attributes.SourceOID"}})],ft.prototype,"sourceOid",void 0),(0,i.Cg)([(0,g.MZ)({type:U.$r.apiValues,json:{name:"attributes.Status",read:{reader:U.$r.read},write:{writer:U.$r.write}}})],ft.prototype,"status",void 0),(0,i.Cg)([(0,g.MZ)({types:x.Es})],ft.prototype,"symbol",void 0),(0,i.Cg)([(0,g.MZ)({type:Date,json:{name:"attributes.TimeWindowEnd"}})],ft.prototype,"timeWindowEnd",void 0),(0,i.Cg)([(0,H.K)("timeWindowEnd")],ft.prototype,"writeTimeWindowEnd",null),(0,i.Cg)([(0,g.MZ)()],ft.prototype,"timeWindowEndOffset",void 0),(0,i.Cg)([(0,g.MZ)({type:Date,json:{name:"attributes.TimeWindowStart"}})],ft.prototype,"timeWindowStart",void 0),(0,i.Cg)([(0,H.K)("timeWindowStart")],ft.prototype,"writeTimeWindowStart",null),(0,i.Cg)([(0,g.MZ)()],ft.prototype,"timeWindowStartOffset",void 0),(0,i.Cg)([(0,g.MZ)({readOnly:!0,json:{read:!1}})],ft.prototype,"type",void 0),(0,i.Cg)([(0,g.MZ)()],ft.prototype,"violations",void 0),(0,i.Cg)([(0,Y.w)("violations",["attributes"])],ft.prototype,"readViolations",null),(0,i.Cg)([(0,g.MZ)()],ft.prototype,"waitDuration",void 0),(0,i.Cg)([(0,g.MZ)()],ft.prototype,"wait",void 0),(0,i.Cg)([(0,Y.w)("wait",["attributes"])],ft.prototype,"readWait",null),ft=ht=(0,i.Cg)([(0,g.$K)("esri.rest.support.Stop")],ft);const jt=l.A.ofType(Be),Nt=l.A.ofType(Fe),Zt=l.A.ofType(_e),Dt=l.A.ofType(Je),xt=l.A.ofType($e),Bt=l.A.ofType(ft);let Rt=class extends((0,A.dM)((0,j.j)((0,I.q)((0,O.A)((0,c.M)(S.A)))))){constructor(e){super(e),this._cachedServiceDescription=null,this._featureCollection=null,this._type="Feature Collection",this.checksum=null,this.defaultSymbols=new P,this.directionLines=null,this.directionPoints=null,this.featureCollectionType="route",this.legendEnabled=!1,this.maxScale=0,this.minScale=0,this.pointBarriers=new Zt,this.polygonBarriers=new Dt,this.polylineBarriers=new xt,this.routeInfo=null,this.spatialReference=T.A.WGS84,this.stops=new Bt,this.type="route"}initialize(){const 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){const n=[this._writePolygonBarriers(),this._writePolylineBarriers(),this._writePointBarriers(),this._writeRouteInfo(),this._writeDirectionLines(),this._writeDirectionPoints(),this._writeStops()].filter(e=>!!e),o=n.map((e,t)=>t),s="web-map"===i.origin?"featureCollection.layers":"layers";(0,d.sM)(s,n,t),t.opacity=this.opacity,t.visibility=this.visible,t.visibleLayers=o}readDirectionLines(e,t){return this._getNetworkFeatures(t,"DirectionLines",e=>Be.fromGraphic(e))}readDirectionPoints(e,t){return this._getNetworkFeatures(t,"DirectionPoints",e=>Fe.fromGraphic(e))}get fullExtent(){const 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;const t=this.stops.filter(e=>null!=e.geometry);if(t.length<2)return e;const{spatialReference:r}=t.at(0).geometry;if(null==r)return e;const i=t.toArray().map(e=>{const t=e.geometry;return[t.x,t.y]});return new w.A({points:i,spatialReference:r}).extent}readMaxScale(e,t){const r=Mt(t)?t.layers:t.featureCollection?.layers,i=r?.find(e=>null!=e.layerDefinition.maxScale);return i?.layerDefinition.maxScale??0}readMinScale(e,t){const r=Mt(t)?t.layers:t.featureCollection?.layers,i=r?.find(e=>null!=e.layerDefinition.minScale);return i?.layerDefinition.minScale??0}readPointBarriers(e,t){return this._getNetworkFeatures(t,"Barriers",e=>_e.fromGraphic(e))}readPolygonBarriers(e,t){return this._getNetworkFeatures(t,"PolygonBarriers",e=>Je.fromGraphic(e))}readPolylineBarriers(e,t){return this._getNetworkFeatures(t,"PolylineBarriers",e=>$e.fromGraphic(e))}readRouteInfo(e,t){return this._getNetworkFeatures(t,"RouteInfo",e=>Ge.fromGraphic(e)).at(0)??null}readSpatialReference(e,t){const r=Mt(t)?t.layers:t.featureCollection?.layers;if(!r?.length)return T.A.WGS84;const{layerDefinition:i,featureSet:n}=r[0],o=n.features[0],s=o?.geometry?.spatialReference??n.spatialReference??i.spatialReference??i.extent.spatialReference??M.KK;return T.A.fromJSON(s)}readStops(e,t){return this._getNetworkFeatures(t,"Stops",e=>ft.fromGraphic(e),e=>this._setStopSymbol(e))}get title(){return this.routeInfo?.name??"Route"}set title(e){this._overrideIfSome("title",e)}get url(){return n.A.routeServiceUrl}set url(e){null!=e?this._set("url",(0,N.Jf)(e,p.A.getLogger(this))):this._set("url",n.A.routeServiceUrl)}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();const{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");const{portal:r}=t;await r.signIn(),r.user||await t.reload();const{itemUrl:i,itemControl:n}=t;if("admin"!==n&&"update"!==n)throw new u.A("routelayer:insufficient-permissions","To save this layer, you need to be the owner or an administrator of your organization");const o={messages:[],origin:"portal-item",portal:r,url:i?(0,f.An)(i):void 0,writtenProperties:[]},s=this.write(void 0,o);return t.extent=await St(e),t.title=this.title,await t.update({data:s}),t}async saveAs(e,t={}){if(await this.load(),null==this.routeInfo)throw new u.A("routelayer:route-unsolved","saveAs() requires a solved route");const r=E.default.from(e).clone();r.extent??=await St(this.fullExtent),r.id=null,r.portal??=_.A.getDefault(),r.title??=this.title,r.type="Feature Collection",r.typeKeywords=["Data","Feature Collection",L.mm.MULTI_LAYER,"Route Layer"];const{portal:i}=r,n={messages:[],origin:"portal-item",portal:i,url:null,writtenProperties:[]};await i.signIn();const o=t?.folder,s=this.write(void 0,n);return await i.user.addItem({item:r,folder:o,data:s}),this.portalItem=r,(0,b.v)(n),n.portalItem=r,r}async solve(e,t){gt(this.stops),gt(this.pointBarriers),gt(this.polylineBarriers),gt(this.polygonBarriers);const r=e?.stops??this.stops,i=e?.pointBarriers??Ct(this.pointBarriers),n=e?.polylineBarriers??Ct(this.polylineBarriers),o=e?.polygonBarriers??Ct(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||l.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(l.A.isCollection(r))for(const e of r)e.routeName=null;const s=e?.apiKey,{checksum:a,url:p}=this,c=await this._getServiceDescription(p,s,t),d=e?.travelMode??c.defaultTravelMode,m=e?.accumulateAttributes??[];d&&(m.push(d.distanceAttributeName),d.timeAttributeName&&m.push(d.timeAttributeName));const h={accumulateAttributes:m,checksum:a,directionsOutputType:"featuresets",ignoreInvalidLocations:!0,pointBarriers:i,polylineBarriers:n,polygonBarriers:o,preserveObjectID:!0,returnBarriers:!!i,returnDirections:!0,returnPolygonBarriers:!!o,returnPolylineBarriers:!!n,returnRoutes:!0,returnStops:!0,stops:r},f=yt.from(e??{});let g;f.set(h);try{g=await De(p,f,t)}catch(e){throw(0,y.zf)(e)?e:new u.A("routelayer:failed-route-request","the routing request failed",{error:e})}const b=this._toRouteLayerSolution(g);return this._isOverridden("title")||(this.title=b.routeInfo.name??"Route"),this._populatePortalFields(b,c,f),b}update(e){const{checksum:t,directionLines:r,directionPoints:i,pointBarriers:n,polygonBarriers:o,polylineBarriers:s,routeInfo:a,stops:l}=e;bt(l,this.stops)?function(e,t){for(const r of e){const 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)}}(l,this.stops):this.set({stops:l}),wt(n,this.pointBarriers)&&(bt(n,this.pointBarriers)?function(e,t){for(const r of e){const 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)}}(n,this.pointBarriers):this.set({pointBarriers:n})),wt(s,this.polylineBarriers)&&(bt(s,this.polylineBarriers)?function(e,t){for(const r of e){const 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.polylineBarriers):this.set({polylineBarriers:s})),wt(o,this.polygonBarriers)&&(bt(o,this.polygonBarriers)?function(e,t){for(const r of e){const 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)}}(o,this.polygonBarriers):this.set({polygonBarriers:o})),this.set({checksum:t}),this._set("directionLines",r),this._set("directionPoints",i),this._set("routeInfo",a),a.geometry&&(this.spatialReference=a.geometry.spatialReference)}_getNetworkFeatures(e,t,r,i){const n=Mt(e)?e.layers:e.featureCollection?.layers,a=n?.find(e=>e.layerDefinition.name===t);if(null==a)return new l.A;const{layerDefinition:u,popupInfo:p,featureSet:c}=a,d=u.drawingInfo.renderer,{features:y}=c,m=c.spatialReference??u.spatialReference??u.extent.spatialReference??M.KK,h=d&&(0,J.L)(d),f=T.A.fromJSON(m),g=y.map(e=>{const i=o.A.fromJSON(e);i.geometry&&e.geometry&&null==e.geometry.spatialReference&&(i.geometry.spatialReference=f);const n=r(i);return n.symbol??=h?.getSymbol(i)??this._getNetworkSymbol(t),n.popupTemplate??=p&&s.A.fromJSON(p),n});return i&&g.some(({symbol:e})=>!e)&&i(g),new l.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;const i=await te(e,t,r);return this._cachedServiceDescription={serviceDescription:i,url:e},i}_setStopSymbol(e){const t=l.A.isCollection(e)?e.toArray():e;if(!t||!t.length||!this.defaultSymbols.stops||t.every(({symbol:e})=>!!e))return;const{first:r,last:i,middle:n,unlocated:o,waypoint:s,break:u}=this.defaultSymbols.stops,p=t.map(({sequence:e})=>e).filter(a.Ru),c=t.length===p.length;if(!this.routeInfo&&!c||1===t.length)return void t.forEach((e,o)=>{switch(o){case 0:e.symbol=r;break;case t.length-1:e.symbol=i;break;default:e.symbol=n}});const d=Math.min(...p),y=Math.max(...p);for(const e of t)e.sequence!==d?e.sequence!==y?this.routeInfo&&"ok"!==e.status&&"not-located-on-closest"!==e.status?e.symbol=o:"waypoint"!==e.locationType?"break"!==e.locationType?e.symbol=n:e.symbol=u:e.symbol=s:e.symbol=i:e.symbol=r}_toRouteLayerSolution(e){const{checksum:t,routeResults:r}=e,i=r[0].stops?.map(e=>ft.fromJSON(e.toJSON()));this._setStopSymbol(i);const n=new Bt(i),o=new Dt(e.polygonBarriers?.map(e=>Je.fromJSON(e.toJSON())));At(o,this.defaultSymbols.polygonBarriers);const s=new xt(e.polylineBarriers?.map(e=>$e.fromJSON(e.toJSON())));At(s,this.defaultSymbols.polylineBarriers);const a=new Zt(e.pointBarriers?.map(e=>_e.fromJSON(e.toJSON())));At(a,this.defaultSymbols.pointBarriers);const l=r[0].route?.toJSON(),u=Ge.fromJSON(l);u.symbol=this.defaultSymbols.routeInfo;const p=new Nt(r[0].directionPoints?.features.map(e=>Fe.fromJSON(e.toJSON())));At(p,this.defaultSymbols.directionPoints);const c=new jt(r[0].directionLines?.features.map(e=>Be.fromJSON(e.toJSON())));return At(c,this.defaultSymbols.directionLines),{checksum:t,directionLines:c,directionPoints:p,pointBarriers:a,polygonBarriers:o,polylineBarriers:s,routeInfo:u,stops:n}}_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",Fe.fields,"DirectionPoints","Direction Points")}_writeNetworkFeatures(e,t,r,i,n,o){if(!e?.length)return null;const s=this.spatialReference.toJSON(),{fullExtent:a,maxScale:l,minScale:u}=this;return{featureSet:{features:e.toArray().map(e=>function(e){const{attributes:t,geometry:r,popupTemplate:i,symbol:n}=e.toGraphic().toJSON();return{attributes:t,geometry:r,popupInfo:i,symbol:n}}(e)),geometryType:r,spatialReference:s},layerDefinition:{capabilities:"Query,Update,Editing",drawingInfo:{renderer:{type:"simple",symbol:t?.toJSON()??Tt(r)}},extent:a.toJSON(),fields:i,geometryType:r,hasM:!1,hasZ:!1,maxScale:l,minScale:u,name:n,objectIdField:"ObjectID",spatialReference:s,title:o,type:"Feature Layer",typeIdField:""}}}_writePointBarriers(){return this._writeNetworkFeatures(this.pointBarriers,this.defaultSymbols.pointBarriers,"esriGeometryPoint",_e.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",$e.fields,"PolylineBarriers","Line Barriers")}_writeRouteInfo(){return this._writeNetworkFeatures(null!=this.routeInfo?new l.A([this.routeInfo]):null,this.defaultSymbols.routeInfo,"esriGeometryPolyline",Ge.fields,"RouteInfo","Route Details")}_writeStops(){const e=this._writeNetworkFeatures(this.stops,null,"esriGeometryPoint",ft.fields,"Stops","Stops");if(null==e)return null;const{stops:t}=this.defaultSymbols,r=t?.first?.toJSON(),i=t?.middle?.toJSON(),n=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:n,label:"Last Stop"}]},e}_populatePortalFields(e,t,r){const i=t.networkDataset?.networkAttributes,n=i?.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.");const{timeAttributeName:s,distanceAttributeName:a}=o,l=n.find(({name:e})=>e===s),c=n.find(({name:e})=>e===a),d=r.travelMode?.impedanceAttributeName??r.impedanceAttribute??t.impedance,y=l?.units,m=c?.units;if(!y||!m)throw new u.A("routelayer:unknown-impedance-units","the units of either the distance or time impedance are unknown");const h=r.directionsLanguage??t.directionsLanguage,f=r.accumulateAttributes??t.accumulateAttributeNames??[],g=new Set(n.filter(({name:e})=>e===s||e===a||e===d||null!=e&&f.includes(e)).map(({name:e})=>e)),b=e=>{for(const t in e)g.has(t)||delete e[t]};for(const t of e.pointBarriers)null!=t.costs&&(t.addedCost=t.costs[d]??0,b(t.costs));for(const t of e.polygonBarriers)null!=t.costs&&(t.scaleFactor=t.costs[d]??1,b(t.costs));for(const t of e.polylineBarriers)null!=t.costs&&(t.scaleFactor=t.costs[d]??1,b(t.costs));const{routeInfo:v}=e,{findBestSequence:w,preserveFirstStop:C,preserveLastStop:T,startTimeIsUTC:M,timeWindowsAreUTC:S}=r;v.analysisSettings=new Ue({accumulateAttributes:f,directionsLanguage:h,findBestSequence:w,preserveFirstStop:C,preserveLastStop:T,startTimeIsUTC:M,timeWindowsAreUTC:S,travelMode:o}),v.totalDuration=It(v.totalCosts?.[s]??0,y),v.totalDistance=Ot(v.totalCosts?.[a]??0,m),v.totalLateDuration=It(v.totalViolations?.[s]??0,y),v.totalWaitDuration=It(v.totalWait?.[s]??0,y),null!=v.totalCosts&&b(v.totalCosts),null!=v.totalViolations&&b(v.totalViolations),null!=v.totalWait&&b(v.totalWait);for(const t of e.stops)null!=t.serviceCosts&&(t.serviceDuration=It(t.serviceCosts[s]??0,y),t.serviceDistance=Ot(t.serviceCosts[a]??0,m),b(t.serviceCosts)),null!=t.cumulativeCosts&&(t.cumulativeDuration=It(t.cumulativeCosts[s]??0,y),t.cumulativeDistance=Ot(t.cumulativeCosts[a]??0,m),b(t.cumulativeCosts)),null!=t.violations&&(t.lateDuration=It(t.violations[s]??0,y),b(t.violations)),null!=t.wait&&(t.waitDuration=It(t.wait[s]??0,y),b(t.wait))}};(0,i.Cg)([(0,g.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}}}}}}})],Rt.prototype,"_featureCollection",void 0),(0,i.Cg)([(0,H.K)(["web-map","portal-item"],"_featureCollection")],Rt.prototype,"writeFeatureCollectionWebmap",null),(0,i.Cg)([(0,g.MZ)({readOnly:!0,json:{read:!1,origins:{"web-map":{write:{target:"type",overridePolicy(){return{ignoreOrigin:null!=this.portalItem}}}}}}})],Rt.prototype,"_type",void 0),(0,i.Cg)([(0,g.MZ)({type:String})],Rt.prototype,"checksum",void 0),(0,i.Cg)([(0,g.MZ)({nonNullable:!0,type:P})],Rt.prototype,"defaultSymbols",void 0),(0,i.Cg)([(0,g.MZ)({readOnly:!0})],Rt.prototype,"directionLines",void 0),(0,i.Cg)([(0,Y.w)(["web-map","portal-item"],"directionLines",["layers","featureCollection.layers"])],Rt.prototype,"readDirectionLines",null),(0,i.Cg)([(0,g.MZ)({readOnly:!0})],Rt.prototype,"directionPoints",void 0),(0,i.Cg)([(0,Y.w)(["web-map","portal-item"],"directionPoints",["layers","featureCollection.layers"])],Rt.prototype,"readDirectionPoints",null),(0,i.Cg)([(0,g.MZ)({readOnly:!0,json:{read:!1,origins:{"web-map":{write:{ignoreOrigin:!0}}}}})],Rt.prototype,"featureCollectionType",void 0),(0,i.Cg)([(0,g.MZ)({readOnly:!0})],Rt.prototype,"fullExtent",null),(0,i.Cg)([(0,g.MZ)({json:{origins:{"web-map":{name:"featureCollection.showLegend"}},write:!0}})],Rt.prototype,"legendEnabled",void 0),(0,i.Cg)([(0,g.MZ)({type:["show","hide"]})],Rt.prototype,"listMode",void 0),(0,i.Cg)([(0,g.MZ)({type:Number,nonNullable:!0,json:{write:!1}})],Rt.prototype,"maxScale",void 0),(0,i.Cg)([(0,Y.w)(["web-map","portal-item"],"maxScale",["layers","featureCollection.layers"])],Rt.prototype,"readMaxScale",null),(0,i.Cg)([(0,g.MZ)({type:Number,nonNullable:!0,json:{write:!1}})],Rt.prototype,"minScale",void 0),(0,i.Cg)([(0,Y.w)(["web-map","portal-item"],"minScale",["layers","featureCollection.layers"])],Rt.prototype,"readMinScale",null),(0,i.Cg)([(0,g.MZ)({type:["ArcGISFeatureLayer"],value:"ArcGISFeatureLayer"})],Rt.prototype,"operationalLayerType",void 0),(0,i.Cg)([(0,g.MZ)({nonNullable:!0,type:l.A.ofType(_e)})],Rt.prototype,"pointBarriers",void 0),(0,i.Cg)([(0,Y.w)(["web-map","portal-item"],"pointBarriers",["layers","featureCollection.layers"])],Rt.prototype,"readPointBarriers",null),(0,i.Cg)([(0,g.MZ)({nonNullable:!0,type:l.A.ofType(Je)})],Rt.prototype,"polygonBarriers",void 0),(0,i.Cg)([(0,Y.w)(["web-map","portal-item"],"polygonBarriers",["layers","featureCollection.layers"])],Rt.prototype,"readPolygonBarriers",null),(0,i.Cg)([(0,g.MZ)({nonNullable:!0,type:l.A.ofType($e)})],Rt.prototype,"polylineBarriers",void 0),(0,i.Cg)([(0,Y.w)(["web-map","portal-item"],"polylineBarriers",["layers","featureCollection.layers"])],Rt.prototype,"readPolylineBarriers",null),(0,i.Cg)([(0,g.MZ)({readOnly:!0})],Rt.prototype,"routeInfo",void 0),(0,i.Cg)([(0,Y.w)(["web-map","portal-item"],"routeInfo",["layers","featureCollection.layers"])],Rt.prototype,"readRouteInfo",null),(0,i.Cg)([(0,g.MZ)({type:T.A})],Rt.prototype,"spatialReference",void 0),(0,i.Cg)([(0,Y.w)(["web-map","portal-item"],"spatialReference",["layers","featureCollection.layers"])],Rt.prototype,"readSpatialReference",null),(0,i.Cg)([(0,g.MZ)({nonNullable:!0,type:l.A.ofType(ft)})],Rt.prototype,"stops",void 0),(0,i.Cg)([(0,Y.w)(["web-map","portal-item"],"stops",["layers","featureCollection.layers"])],Rt.prototype,"readStops",null),(0,i.Cg)([(0,g.MZ)()],Rt.prototype,"title",null),(0,i.Cg)([(0,g.MZ)({readOnly:!0,json:{read:!1}})],Rt.prototype,"type",void 0),(0,i.Cg)([(0,g.MZ)()],Rt.prototype,"url",null),Rt=(0,i.Cg)([(0,g.$K)("esri.layers.RouteLayer")],Rt);const Ft=Rt},76369(e,t,r){r.d(t,{LF:()=>T,M9:()=>M});var i=r(49186),n=r(93637),o=r(40876),s=r(59247),a=r(27865);class l 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;const i=e.find(e=>e.source===this.location.source);i&&(r=i.text.split(/\r\n|\n|\r/g));const n=this.location.start,o=this.location.source&&"function"==typeof this.location.source.offset?this.location.source.offset(n):n,s=this.location.source+":"+o.line+":"+o.column;if(r){const e=this.location.end,i="".padEnd(o.line.toString().length," "),a=r[n.line-1],l=(n.line===e.line?e.column:a.length+1)-n.column||1;t+="\n --\x3e "+s+"\n"+i+" |\n"+o.line+" | "+a+"\n"+i+" | "+"".padEnd(n.column-1," ")+"".padEnd(l,"^")}else t+="\n at "+s}return t}static buildMessage(e,t){function r(e){return e.codePointAt(0).toString(16).toUpperCase()}const i=Object.prototype.hasOwnProperty.call(RegExp.prototype,"unicode")?new RegExp("[\\p{C}\\p{Mn}\\p{Mc}]","gu"):null;function n(e){return i?e.replace(i,e=>"\\u{"+r(e)+"}"):e}function o(e){return n(e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').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 n(e.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").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)))}const a={literal:e=>'"'+o(e.text)+'"',class(e){const t=e.parts.map(e=>Array.isArray(e)?s(e[0])+"-"+s(e[1]):s(e));return"["+(e.inverted?"^":"")+t.join("")+"]"+(e.unicode?"u":"")},any:()=>"any character",end:()=>"end of input",other:e=>e.description};function l(e){return a[e.type](e)}return"Expected "+function(e){const t=e.map(l);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?'"'+o(e)+'"':"end of input"}(t)+" found."}}function u(e){if(!e||0===e.length)return null;if("string"==typeof e){const t=p(e);return t&&0!==t.length?t:null}const 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,a.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,a.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){const r={},i=(t=void 0!==t?t:{}).grammarSource,n={start:Ce};let o=Ce;const s="none",a=")",u=",",p="(",c="%",d="px",y="cm",m="mm",h="in",f="pt",g="pc",b="deg",v="rad",w="grad",C="turn",T="#",M=".",S="e",A=/^[ \t\n\r]/,I=/^[a-z\-]/,O=/^[0-9a-fA-F]/,j=/^[+\-]/,N=/^[0-9]/,Z=ge("none"),D=he("none",!1),x=he(")",!1),B=he(",",!1),R=fe([" ","\t","\n","\r"],!1,!1,!1),F=ge("function"),P=he("(",!1),_=ge("identifier"),E=fe([["a","z"],"-"],!1,!1,!1),L=ge("percentage"),J=he("%",!1),k=ge("length"),$=he("px",!1),U=he("cm",!1),W=he("mm",!1),G=he("in",!1),V=he("pt",!1),q=he("pc",!1),z=ge("angle"),K=he("deg",!1),Y=he("rad",!1),H=he("grad",!1),X=he("turn",!1),Q=ge("number"),ee=ge("color"),te=he("#",!1),re=fe([["0","9"],["a","f"],["A","F"]],!1,!1,!1),ie=fe(["+","-"],!1,!1,!1),ne=fe([["0","9"]],!1,!1,!1),oe=he(".",!1),se=he("e",!1);let ae=0|t.peg$currPos,le=ae;const ue=[{line:1,column:1}];let pe,ce=ae,de=t.peg$maxFailExpected||[],ye=0|t.peg$silentFails;if(t.startRule){if(!(t.startRule in n))throw new Error("Can't start parsing from rule \""+t.startRule+'".');o=n[t.startRule]}function me(){return e.substring(le,ae)}function he(e,t){return{type:"literal",text:e,ignoreCase:t}}function fe(e,t,r,i){return{type:"class",parts:e,inverted:t,ignoreCase:r,unicode:i}}function ge(e){return{type:"other",description:e}}function be(t){let r,i=ue[t];if(i)return i;if(t>=ue.length)r=ue.length-1;else for(r=t;!ue[--r];);for(i=ue[r],i={line:i.line,column:i.column};r<t;)10===e.charCodeAt(r)?(i.line++,i.column=1):i.column++,r++;return ue[t]=i,i}function ve(e,t,r){const n=be(e),o=be(t);return{source:i,start:{offset:e,line:n.line,column:n.column},end:{offset:t,line:o.line,column:o.column}}}function we(e){ae<ce||(ae>ce&&(ce=ae,de=[]),de.push(e))}function Ce(){let e;return e=Te(),e===r&&(e=function(){let e,t;if(e=[],t=Me(),t!==r)for(;t!==r;)e.push(t),t=Me();else e=r;return e}()),e}function Te(){let t,i;return ye++,t=ae,Ae(),e.substr(ae,4)===s?(i=s,ae+=4):(i=r,0===ye&&we(D)),i!==r?(Ae(),le=t,t=[]):(ae=t,t=r),ye--,t===r&&0===ye&&we(Z),t}function Me(){let t,i,n,o;return t=ae,Ae(),i=function(){let t,i,n;return ye++,t=ae,i=Ie(),i!==r?(40===e.charCodeAt(ae)?(n=p,ae++):(n=r,0===ye&&we(P)),n!==r?(le=t,t=i):(ae=t,t=r)):(ae=t,t=r),ye--,t===r&&(i=r,0===ye&&we(F)),t}(),i!==r?(Ae(),n=function(){let t,i,n,o,s,a,l,p;if(t=ae,i=Se(),i!==r){for(n=[],o=ae,s=Ae(),44===e.charCodeAt(ae)?(a=u,ae++):(a=r,0===ye&&we(B)),a===r&&(a=null),l=Ae(),p=Se(),p!==r?(s=[s,a,l,p],o=s):(ae=o,o=r);o!==r;)n.push(o),o=ae,s=Ae(),44===e.charCodeAt(ae)?(a=u,ae++):(a=r,0===ye&&we(B)),a===r&&(a=null),l=Ae(),p=Se(),p!==r?(s=[s,a,l,p],o=s):(ae=o,o=r);le=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]}(i,n)}else ae=t,t=r;return t}(),n===r&&(n=null),Ae(),41===e.charCodeAt(ae)?(o=a,ae++):(o=r,0===ye&&we(x)),o!==r?(Ae(),le=t,t=function(e,t){return{type:"function",name:e,parameters:t||[]}}(i,n)):(ae=t,t=r)):(ae=t,t=r),t}function Se(){let e,t;return e=ae,t=Oe(),t===r&&(t=je(),t===r&&(t=Ne(),t===r&&(t=function(){let e,t;return ye++,e=ae,Ae(),t=De(),t!==r?(le=e,e=function(e){return{value:e,unit:null}}(t)):(ae=e,e=r),ye--,e===r&&0===ye&&we(Q),e}()))),t!==r&&(le=e,t=function(e){return{type:"quantity",value:e.value,unit:e.unit}}(t)),e=t,e===r&&(e=ae,t=Ze(),t!==r&&(le=e,t=function(e){return{type:"color",colorType:e.type,value:e.value}}(t)),e=t),e}function Ae(){let t,i;for(ye++,t=[],i=e.charAt(ae),A.test(i)?ae++:(i=r,0===ye&&we(R));i!==r;)t.push(i),i=e.charAt(ae),A.test(i)?ae++:(i=r,0===ye&&we(R));return ye--,t}function Ie(){let t,i,n;if(ye++,t=ae,i=[],n=e.charAt(ae),I.test(n)?ae++:(n=r,0===ye&&we(E)),n!==r)for(;n!==r;)i.push(n),n=e.charAt(ae),I.test(n)?ae++:(n=r,0===ye&&we(E));else i=r;return i!==r&&(le=t,i=me()),t=i,ye--,t===r&&(i=r,0===ye&&we(_)),t}function Oe(){let t,i,n;return ye++,t=ae,Ae(),i=De(),i!==r?(37===e.charCodeAt(ae)?(n=c,ae++):(n=r,0===ye&&we(J)),n!==r?(le=t,t=function(e){return{value:e,unit:"%"}}(i)):(ae=t,t=r)):(ae=t,t=r),ye--,t===r&&0===ye&&we(L),t}function je(){let t,i,n;return ye++,t=ae,Ae(),i=De(),i!==r?(e.substr(ae,2)===d?(n=d,ae+=2):(n=r,0===ye&&we($)),n!==r?(le=t,t=function(e){return{value:e,unit:"px"}}(i)):(ae=t,t=r)):(ae=t,t=r),t===r&&(t=ae,Ae(),i=De(),i!==r?(e.substr(ae,2)===y?(n=y,ae+=2):(n=r,0===ye&&we(U)),n!==r?(le=t,t=function(e){return{value:e,unit:"cm"}}(i)):(ae=t,t=r)):(ae=t,t=r),t===r&&(t=ae,Ae(),i=De(),i!==r?(e.substr(ae,2)===m?(n=m,ae+=2):(n=r,0===ye&&we(W)),n!==r?(le=t,t=function(e){return{value:e,unit:"mm"}}(i)):(ae=t,t=r)):(ae=t,t=r),t===r&&(t=ae,Ae(),i=De(),i!==r?(e.substr(ae,2)===h?(n=h,ae+=2):(n=r,0===ye&&we(G)),n!==r?(le=t,t=function(e){return{value:e,unit:"in"}}(i)):(ae=t,t=r)):(ae=t,t=r),t===r&&(t=ae,Ae(),i=De(),i!==r?(e.substr(ae,2)===f?(n=f,ae+=2):(n=r,0===ye&&we(V)),n!==r?(le=t,t=function(e){return{value:e,unit:"pt"}}(i)):(ae=t,t=r)):(ae=t,t=r),t===r&&(t=ae,Ae(),i=De(),i!==r?(e.substr(ae,2)===g?(n=g,ae+=2):(n=r,0===ye&&we(q)),n!==r?(le=t,t=function(e){return{value:e,unit:"pc"}}(i)):(ae=t,t=r)):(ae=t,t=r)))))),ye--,t===r&&0===ye&&we(k),t}function Ne(){let t,i,n;return ye++,t=ae,i=De(),i!==r?(e.substr(ae,3)===b?(n=b,ae+=3):(n=r,0===ye&&we(K)),n!==r?(le=t,t=function(e){return{value:e,unit:"deg"}}(i)):(ae=t,t=r)):(ae=t,t=r),t===r&&(t=ae,i=De(),i!==r?(e.substr(ae,3)===v?(n=v,ae+=3):(n=r,0===ye&&we(Y)),n!==r?(le=t,t=function(e){return{value:e,unit:"rad"}}(i)):(ae=t,t=r)):(ae=t,t=r),t===r&&(t=ae,i=De(),i!==r?(e.substr(ae,4)===w?(n=w,ae+=4):(n=r,0===ye&&we(H)),n!==r?(le=t,t=function(e){return{value:e,unit:"grad"}}(i)):(ae=t,t=r)):(ae=t,t=r),t===r&&(t=ae,i=De(),i!==r?(e.substr(ae,4)===C?(n=C,ae+=4):(n=r,0===ye&&we(X)),n!==r?(le=t,t=function(e){return{value:e,unit:"turn"}}(i)):(ae=t,t=r)):(ae=t,t=r)))),ye--,t===r&&(i=r,0===ye&&we(z)),t}function Ze(){let t,i,n,o;if(ye++,t=ae,35===e.charCodeAt(ae)?(i=T,ae++):(i=r,0===ye&&we(te)),i!==r){if(n=[],o=e.charAt(ae),O.test(o)?ae++:(o=r,0===ye&&we(re)),o!==r)for(;o!==r;)n.push(o),o=e.charAt(ae),O.test(o)?ae++:(o=r,0===ye&&we(re));else n=r;n!==r?(le=t,t={type:"hex",value:me()}):(ae=t,t=r)}else ae=t,t=r;return t===r&&(t=ae,i=Me(),i!==r&&(le=t,i=function(e){return{type:"function",value:e}}(i)),t=i,t===r&&(t=ae,i=Ie(),i!==r&&(le=t,i={type:"named",value:me()}),t=i)),ye--,t===r&&(i=r,0===ye&&we(ee)),t}function De(){let t,i,n,o,s,a,l,u;for(t=ae,i=e.charAt(ae),j.test(i)?ae++:(i=r,0===ye&&we(ie)),i===r&&(i=null),n=ae,o=[],s=e.charAt(ae),N.test(s)?ae++:(s=r,0===ye&&we(ne));s!==r;)o.push(s),s=e.charAt(ae),N.test(s)?ae++:(s=r,0===ye&&we(ne));if(46===e.charCodeAt(ae)?(s=M,ae++):(s=r,0===ye&&we(oe)),s!==r){if(a=[],l=e.charAt(ae),N.test(l)?ae++:(l=r,0===ye&&we(ne)),l!==r)for(;l!==r;)a.push(l),l=e.charAt(ae),N.test(l)?ae++:(l=r,0===ye&&we(ne));else a=r;a!==r?(o=[o,s,a],n=o):(ae=n,n=r)}else ae=n,n=r;if(n===r)if(n=[],o=e.charAt(ae),N.test(o)?ae++:(o=r,0===ye&&we(ne)),o!==r)for(;o!==r;)n.push(o),o=e.charAt(ae),N.test(o)?ae++:(o=r,0===ye&&we(ne));else n=r;if(n!==r){if(o=ae,101===e.charCodeAt(ae)?(s=S,ae++):(s=r,0===ye&&we(se)),s!==r){if(a=e.charAt(ae),j.test(a)?ae++:(a=r,0===ye&&we(ie)),a===r&&(a=null),l=[],u=e.charAt(ae),N.test(u)?ae++:(u=r,0===ye&&we(ne)),u!==r)for(;u!==r;)l.push(u),u=e.charAt(ae),N.test(u)?ae++:(u=r,0===ye&&we(ne));else l=r;l!==r?(s=[s,a,l],o=s):(ae=o,o=r)}else ae=o,o=r;o===r&&(o=null),le=t,t=parseFloat(me())}else ae=t,t=r;return t}pe=o();const xe=pe!==r&&ae===e.length;function Be(){throw pe!==r&&ae<e.length&&we({type:"end"}),function(e,t,r){return new l(l.buildMessage(e,t),e,t,r)}(de,ce<e.length?function(t=ae){const r=e.codePointAt(t);return void 0===r?"":String.fromCodePoint(r)}(ce):null,ce<e.length?ve(ce,ce+1):ve(ce,ce))}return t.peg$library?{peg$result:pe,peg$currPos:ae,peg$FAILED:r,peg$maxFailExpected:de,peg$maxFailPos:ce,peg$success:xe,peg$throw:xe?void 0:Be}:xe?pe:void Be()}(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=f(e.parameters[0])),new s.yG(e.name,t)}(e);case"opacity":return function(e){let t=1;return c(e.parameters,1),1===e.parameters.length&&(t=f(e.parameters[0])),new s.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 s.Nd(t)}(e);case"blur":return function(e){let t=0;return c(e.parameters,1),1===e.parameters.length&&(t=g(e.parameters[0]),y(t,e.parameters[0])),new s.Fk(t)}(e);case"drop-shadow":return function(e){const t=[];let r=null;for(const n of e.parameters)if("color"===n.type){if(t.length&&Object.freeze(t),r)throw new i.A("effect:type-error","Accepts only one color",{});r=b(n)}else{const e=g(n);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,n)}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 s.$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=f(e.parameters[0])),e.parameters[1]&&(r=g(e.parameters[1]),y(r,e.parameters[1])),e.parameters[2]&&(i=f(e.parameters[2])),new s.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 f(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);const t=e.value;return y(t,e),"%"===e.unit?.01*t:t}function g(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,o.j5)(e.value);case"named":return v(e.value);case"function":return function(e){if(c(e.parameters,4),w.test(e.name))return[f(e.parameters[0]),f(e.parameters[1]),f(e.parameters[2]),e.parameters[3]?f(e.parameters[3]):1];if(C.test(e.name))return(0,o.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]),f(e.parameters[1]),f(e.parameters[2]),e.parameters[3]?f(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,o.V6)(e))throw new i.A("effect:unknown-color",`color '${e}' isn't valid`,{namedColor:e});return(0,o.c4)(e)}const w=/^rgba?/i,C=/^hsla?/i;function T(e,t,r){try{return function(e){if(!e||0===e.length)return null;if(function(e){const t=e[0];return!!t&&"scale"in t}(e)){const t=[];for(const r of e)t.push({scale:r.scale,value:S(r.value)});return t}return S(e)}(e)}catch(e){r?.messages?.push(e)}return null}function M(e,t,r,i){try{const i=function(e){const t=u(e);return t?(0,a.dw)(t)?t.map(e=>e.toJSON()):t.map(({scale:e,effects:t})=>({scale:e,value:t.map(e=>e.toJSON())})):null}(e);(0,n.sM)(r,i,t)}catch(e){i.messages&&i.messages.push(e)}}function S(e){if(!e?.length)return"";const t=[];for(const 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"),I(r,"color")];break;case"bloom":e=[A(r,"strength"),A(r,"radius","pt"),A(r,"threshold")]}const 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 I(e,t){if(null==e[t])throw new i.A("effect:missing-parameter",`Missing parameter '${t}' in ${e.type} effect`,{effect:e});const 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":{const r=[];for(const i of t.fieldNames)r.push(e.attributes[i]??null);return JSON.stringify(r)}}}function n(e,t){if("uniqueIdFields"in t&&t.uniqueIdFields?.length){if(1===t.uniqueIdFields.length)return e.attributes?.[t.uniqueIdFields[0]];const 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:()=>n})},63074(e,t,r){r.d(t,{LF:()=>u,dM:()=>p,sU:()=>a});var i=r(5482),n=r(91429),o=r(89317),s=r(76369);const a={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"],nonNullable:!0,json:{read:!1,write:!1,origins:{"web-map":{read:!0,write:{layerContainerTypes:o.K}},"portal-item":{read:!0,write:{layerContainerTypes:o.K}}}}},l={read:{reader:s.LF},write:{allowNull:!0,writer:s.M9,layerContainerTypes:o.K}},u={json:{read:!1,write:!1,origins:{"web-map":l,"portal-item":l}}},p=e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.blendMode="normal",this.effect=null}};return(0,i.Cg)([(0,n.MZ)(a)],r.prototype,"blendMode",void 0),(0,i.Cg)([(0,n.MZ)(u)],r.prototype,"effect",void 0),r=(0,i.Cg)([(0,n.$K)("esri.layers.mixins.BlendLayer")],r),r}},8303(e,t,r){r.d(t,{A:()=>C});var i=r(5482),n=r(92602),o=r(70333),s=r(11254),a=r(60999),l=r(49186),u=r(53966),p=r(97768),c=r(17676),d=r(84952),y=r(91429),m=r(77548),h=r(20655),f=r(80812),g=r(41318),b=r(10407),v=r(36005),w=r(43937);const C=e=>{const t=e;let C=class extends t{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){this.portalItem=(0,p.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{const{load:i}=await r.e(1204).then(r.bind(r,41204));return(0,c.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,c.zf)(e)||u.A.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch(e=>((0,c.QP)(e),!0)))}async setUserPrivileges(e,t){if(!n.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:r,fullEdit:i},content:{updateItem:n}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",r),this._set("userHasFullEditingPrivileges",i),this._set("userHasUpdateItemPrivileges",n)}catch(e){(0,c.QP)(e)}}async _fetchUserPrivileges(e,t){let r=this.portalItem;if(!e||!r||!r.loaded||r.sourceUrl)return this._fetchFallbackUserPrivileges(t);const i=!o.id?.findCredential(this.url),n=e===r.id;if(n&&r.portal.user)return this._getUserPrivileges(r,i);let s,a;if(n)s=r.portal.url;else try{s=await(0,m.wI)(this.url,t)}catch(e){(0,c.QP)(e)}if(!s||!(0,d.b8)(s,r.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;a=await(o.id?.getCredential(`${s}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,c.QP)(e)}const l=!0,u=!1,p=!1;if(!a)return{features:{edit:l,fullEdit:u},content:{updateItem:p}};try{if(n?await r.reload():(r=new f.default({id:e,portal:{url:s}}),await r.load(t)),r.portal.user)return this._getUserPrivileges(r,i)}catch(e){(0,c.QP)(e)}return{features:{edit:l,fullEdit:u},content:{updateItem:p}}}_getUserPrivileges(e,t){const r=(0,b.It)(e);return t&&(r.features.edit=!0),r}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,c.QP)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){const t=this.url?o.id?.findCredential(this.url):null;if(!t)return!0;const r=T.credential===t?T.user:await this._fetchEditingUser(e);return T.credential=t,T.user=r,null==r?.privileges||r.privileges.includes("features:user:edit")}async _fetchEditingUser(e){const t=this.portalItem?.portal?.user;if(t)return t;const r=o.id?.findServerInfo(this.url??"");if(!r?.owningSystemUrl)return null;const i=`${r.owningSystemUrl}/sharing/rest`,n=h.A.getDefault();if(n&&n.loaded&&(0,d.S8)(n.restUrl)===(0,d.S8)(i))return n.user;const l=`${i}/community/self`,u=null!=e?e.signal:null,p=await(0,a.Ke)((0,s.A)(l,{authMode:"no-prompt",query:{f:"json"},signal:u}));return p.ok?g.A.fromJSON(p.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const r=t?.portal,i=this.portalItem?.id&&(this.portalItem.portal||h.A.getDefault());return r&&i&&!(0,d.ut)(i.restUrl,r.restUrl)?(t.messages&&t.messages.push(new l.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,y.MZ)({type:f.default})],C.prototype,"portalItem",null),(0,i.Cg)([(0,v.w)("web-document","portalItem",["itemId"])],C.prototype,"readPortalItem",null),(0,i.Cg)([(0,w.K)("web-document","portalItem",{itemId:{type:String}})],C.prototype,"writePortalItem",null),(0,i.Cg)([(0,y.MZ)({clonable:!1})],C.prototype,"resourceReferences",void 0),(0,i.Cg)([(0,y.MZ)({type:Boolean,readOnly:!0})],C.prototype,"userHasEditingPrivileges",void 0),(0,i.Cg)([(0,y.MZ)({type:Boolean,readOnly:!0})],C.prototype,"userHasFullEditingPrivileges",void 0),(0,i.Cg)([(0,y.MZ)({type:Boolean,readOnly:!0})],C.prototype,"userHasUpdateItemPrivileges",void 0),C=(0,i.Cg)([(0,y.$K)("esri.layers.mixins.PortalLayer")],C),C},T={credential:null,user:null}},25036(e,t,r){r.d(t,{j:()=>o});var i=r(5482),n=r(91429);const o=e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.minScale=0,this.maxScale=0}get effectiveScaleRange(){const e={minScale:this.minScale,maxScale:this.maxScale},t=this.parent;void 0!==t?.effectiveScaleRange&&function(e,t){e.minScale=e.minScale>0?t.minScale>0?Math.min(e.minScale,t.minScale):e.minScale:t.minScale,e.maxScale=e.maxScale>0?t.maxScale>0?Math.max(e.maxScale,t.maxScale):e.maxScale:t.maxScale}(e,t.effectiveScaleRange);const r=this._get("effectiveScaleRange");return r&&r.minScale===e.minScale&&r.maxScale===e.maxScale?r:e}};return(0,i.Cg)([(0,n.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],r.prototype,"minScale",void 0),(0,i.Cg)([(0,n.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],r.prototype,"maxScale",void 0),(0,i.Cg)([(0,n.MZ)({readOnly:!0})],r.prototype,"effectiveScaleRange",null),r=(0,i.Cg)([(0,n.$K)("esri.layers.mixins.ScaleRangeLayer")],r),r}},5757(e,t,r){r.d(t,{B:()=>n,P:()=>i});const i=Symbol("PopupTemplateInstance");function n(e){return null!=e&&"object"==typeof e&&i in e}},10407(e,t,r){r.d(t,{It:()=>y,LG:()=>s,OM:()=>u,Sm:()=>p,Y:()=>a,bK:()=>l,mm:()=>d,sQ:()=>c});var i=r(91218),n=r(16930),o=r(28735);function s(e,t){if(!a(e,t)){const r=e.typeKeywords;r?r.push(t):e.typeKeywords=[t]}}function a(e,t){return!!e.typeKeywords?.includes(t)}function l(e){return a(e,d.HOSTED_SERVICE)}function u(e,t){const r=e.typeKeywords;if(r){const e=r.indexOf(t);e>-1&&r.splice(e,1)}}function p(e,t,r){r?s(e,t):u(e,t)}async function c(e){const t=e.clone().normalize();let r;if(t.length>1)for(const e of t)r?e.width>r.width&&(r=e):r=e;else r=t[0];return async function(e){const t=e.spatialReference;if(t.isWGS84)return e.clone();if(t.isWebMercator)return(0,o.ci)(e);const r=n.A.WGS84;return await(0,i.initializeProjection)(t,r),(0,i.project)(e,r)}(r)}const d={CHARTS:"Charts",DYNAMIC:"Dynamic",DEVELOPER_BASEMAP:"DeveloperBasemap",GROUP_LAYER_MAP:"Map",HOSTED_SERVICE:"Hosted Service",JSAPI:"ArcGIS API for JavaScript",LOCAL_SCENE:"ViewingMode-Local",METADATA:"Metadata",MULTI_LAYER:"Multilayer",ORIENTED_IMAGERY_LAYER:"OrientedImageryLayer",SINGLE_LAYER:"Singlelayer",SUBTYPE_GROUP_LAYER:"SubtypeGroupLayer",SUBTYPE_GROUP_TABLE:"SubtypeGroupTable",TABLE:"Table",TILED_IMAGERY:"Tiled Imagery"};function y(e){const{portal:t,isOrgItem:r,itemControl:i}=e,n=t.user?.privileges;let o=!n||n.includes("features:user:edit"),s=!!r&&!!n?.includes("features:user:fullEdit");const a="update"===i||"admin"===i;return a?s=o=!0:s&&(o=!0),{features:{edit:o,fullEdit:s},content:{updateItem:a}}}},96576(e,t,r){r.d(t,{A:()=>c});var i,n=r(5482),o=r(4718),s=r(91429),a=r(92438),l=r(63988),u=r(49849),p=r(93223);let c=i=class extends((0,l.h)(a.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,o.o8)(this.symbol),visualVariables:(0,o.o8)(this.visualVariables),authoringInfo:(0,o.o8)(this.authoringInfo)})}};(0,n.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],c.prototype,"description",void 0),(0,n.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],c.prototype,"label",void 0),(0,n.Cg)([(0,s.MZ)(u.Wp)],c.prototype,"symbol",void 0),(0,n.Cg)([(0,p.e)({simple:"simple"})],c.prototype,"type",void 0),c=i=(0,n.Cg)([(0,s.$K)("esri.renderers.SimpleRenderer")],c)},73681(e,t,r){r.d(t,{n:()=>l});var i=r(49186),n=r(53966),o=r(46140),s=r(95466),a=r(55674);class l{static async from(e,t,r){const s=e.dictionary_version?o.A.parse(e.dictionary_version):null,p=new Set(e.itemsNames),c={};if(t)for(const e in t)c[e]=t[e];if(e.authoringInfo.configuration)for(const t of e.authoringInfo.configuration)c.hasOwnProperty(t.name)||(c[t.name]=t.value);const d=new Set(e.authoringInfo.symbol);for(const e of Object.keys(r))d.delete(e);d.size&&n.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("missing-fields: fieldMap entries for the following symbol fields are missing",{symbolFields:d});const y=await(0,a.xR)(e.expression,null,c);if(!y)throw new i.A("dictionary-renderer:expression-error","Unable to create dictionary renderer expression");const m=!s||!s.greaterEqual(4,0);m&&n.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("Dictionary script does not support native field types. Applying fallback",{version:s});const h=new u(r,m);return new l(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){n.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("arcade: dictionary script evaluation failed",{error:e})}return null}createDictionaryFieldsIndex(e){if(!this._requiresFieldCoercionToString)return new s.A(e);const t=e.map(e=>({...e,type:"esriFieldTypeString"}));return new s.A(t)}}class u extends a.Gj{constructor(e,t){super(),this._fieldMap=e,this._requiresFieldCoercionToString=t}_getField(e){const t=this._fieldMap[e]??e;return this._boundSchema.fieldsIndex.get(t)}field(e){if(!this._requiresFieldCoercionToString)return super.field(e,!1);const 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:()=>l,r:()=>s});var i=r(90360),n=r(41214),o=r(59923);function s(e,t){return l(e,null,t)}const a=(0,i.C)({types:n.Hg});function l(e,t,r){return e?e&&(e.styleName||e.styleUrl)&&"uniqueValue"!==e.type?((0,o.Yc)(r,"warning","renderer",`Only UniqueValueRenderer can be referenced from a web style, but found '${e.type}'`,{definition:e}),null):a(e,t,r):null}},98205(e,t,r){r.d(t,{KZ:()=>a,eh:()=>s,gf:()=>o,of:()=>n,uY:()=>i});const i=Symbol("SizeVariableInstance");function n(e){return null!=e&&"object"==typeof e&&i in e}function o(e){return null!=e&&!isNaN(e)&&isFinite(e)}function s(e){return e.valueExpression?"expression":e.field&&"string"==typeof e.field?"field":"unknown"}function a(e,t){const r=t||s(e),i=e.valueUnit||"unknown";return"unknown"===r?"constant":e.stops?"stops":null!=e.minSize&&null!=e.maxSize&&null!=e.minDataValue&&null!=e.maxDataValue?"clamped-linear":"unknown"===i?null!=e.minSize&&null!=e.minDataValue?e.minSize&&e.minDataValue?"proportional":"additive":"identity":"real-world-size"}},92300(e,t,r){r.d(t,{V:()=>s,X:()=>o});var i=r(60408),n=r(65864);function o(e){return{geometryType:(0,i.$B)(e[0]),geometries:e.map(e=>e.toJSON())}}function s(e,t,r){const i=(0,n.xD)(t);return e.map(e=>{const t=i.fromJSON(e);return t.spatialReference=r,t})}},24097(e,t,r){r.d(t,{K:()=>i});const i={type:String,json:{read:{source:"token"},write:{target:"token"}}}},55674(e,t,r){r.d(t,{Ad:()=>y,Gj:()=>f,QY:()=>d,lL:()=>g,xR:()=>m});var i=r(66131),n=r(49186),o=(r(44208),r(44729)),s=r(15032),a=r(65864),l=r(95466),u=r(43668),p=r(98623);const c=["geometry","scale","timeProperties"];function d(e,t){if(null!=t)for(const r of c)t.hasArcadeDependency(r)&&e.add(r);return e}function y(e,t){return h.create(e,t,null,["$feature","$view"])}function m(e,t,r){return h.create(e,t,r,["$feature","$view","$config"])}class h{static async create(e,t,r,i){const{arcade:o,Dictionary:s}=await(0,u.l)();let a;try{a=o.parseScript(e)}catch(t){throw new n.A("arcade-bad-expression","Failed to parse arcade script",{script:e,error:t})}const l=o.scriptUsesGeometryEngine(a);l&&await o.enableGeometrySupport(),await o.loadDependentModules(new Set,a,null,!1,l);const p={vars:i.reduce((e,t)=>({...e,[t]:null}),{}),spatialReference:t,useAsync:!1},c=o.compileScript(a,p);let d=null;null!=r&&(d=new s(r),d.immutable=!0);const y=new s;return y.immutable=!1,y.setField("scale",0),new h(e,o,a,c,t,y,d,s)}constructor(e,t,r,i,n,o,s,a){this.script=e,this._arcade=t,this._syntaxTree=r,this._compiled=i,this._spatialReference=n,this._viewDict=o,this._configDict=s,this._dictionaryCtor=a,this._dependencies=new Map,this._featureReader=new f,this._dependencies.set("geometry",t.scriptTouchesGeometry(this._syntaxTree)),this._dependencies.set("scale",this._arcade.referencesMember(this._syntaxTree,"scale")),this._dependencies.set("timeProperties",this._arcade.scriptUsesViewProperties(this._syntaxTree,["timeProperties"]))}evaluate(e,t){const r=t.$view?.timeZone;if(t.$view){let e;if(this._viewDict.setField("scale",t.$view.scale),null!=t.$view.timeProperties){const{currentStart:n,currentEnd:o}=t.$view.timeProperties;e=new this._dictionaryCtor({currentStart:null!=n?null!=r?i.lY.epochToArcadeDate(n,r):i.lY.unknownEpochToArcadeDate(n):void 0,currentEnd:null!=o?null!=r?i.lY.epochToArcadeDate(o,r):i.lY.unknownEpochToArcadeDate(o):void 0,startIncluded:!0,endIncluded:!0})}this._viewDict.setField("timeProperties",e)}return this._compiled({vars:{$view:this._viewDict,$config:this._configDict,$feature:e},spatialReference:this._spatialReference,timeZone:r})}repurposeFeature(e,t){return this._featureReader.bind(e,t,this._spatialReference),this._featureReader}references(e){return this._dependencies.get(e)??!1}}class f{constructor(){this._boundTarget=null,this._boundSchema={fields:null,fieldsIndex:null,spatialReference:null,get geometryType(){return null},get objectIdField(){return null}},this.arcadeDeclaredClass="esri.arcade.Feature",this._contextTimeZone=null}bind(e,t,r){const i=t??new l.A(g(e.attributes));this._boundTarget=e,this._boundSchema.fields=i.fields,this._boundSchema.fieldsIndex=i,this._boundSchema.spatialReference=r}_getField(e){return this._boundSchema.fieldsIndex.get(e)}get contextTimeZone(){return this._contextTimeZone}set contextTimeZone(e){this._contextTimeZone=e}readArcadeFeature(){return this}hasField(e){return this._boundSchema.fieldsIndex.has(e)}geometry(){if("fromJSON"in this._boundTarget)return this._boundTarget.geometry;const e=(0,a.rS)(this._boundTarget.geometry);if(e){if(!this._boundSchema.spatialReference)throw new Error("InternalError: Expected spatial reference to be defined");e.spatialReference=this._boundSchema.spatialReference}return e}_hasGeometry(){return null!=this._boundTarget.geometry}isUnknownDateTimeField(e){return this._boundSchema.fieldsIndex.getTimeZone(e)===p.L5}field(e,t=!0){const r=this._getField(e);if(r){const t=this._boundTarget.attributes[r.name];if(null==t)return null;switch(r.type){case"date-only":case"esriFieldTypeDateOnly":return o.n.fromReader(t);case"time-only":case"esriFieldTypeTimeOnly":return s.k.fromReader(t);case"esriFieldTypeTimestampOffset":case"timestamp-offset":return i.lY.fromReaderAsTimeStampOffset(t);case"date":case"esriFieldTypeDate":return this.isUnknownDateTimeField(e)?i.lY.unknownEpochToArcadeDate(t):i.lY.epochToArcadeDate(t,this.contextTimeZone??p.qU);default:return t}}if(t)throw new Error(`Field ${e} does not exist`);return null}setField(e,t){throw new Error("Unable to update feature attribute values, feature is readonly")}keys(){return this._boundSchema.fieldsIndex.fields.map(e=>e.name)}isEmpty(){return this._boundSchema.fields.length<=0&&!this._hasGeometry()}castToText(e=!1){return JSON.stringify(this._boundTarget)}gdbVersion(){return null}fullSchema(){return this._boundSchema}castAsJson(e=null){return{attributes:this._boundTarget.attributes,geometry:!0===e?.keepGeometryType?this.geometry():this.geometry()?.toJSON()??null}}castAsJsonAsync(e=null,t=null){return Promise.resolve(this.castAsJson(t))}}function g(e){const t=[];for(const r in e)t.push({name:r,alias:r,type:"string"==typeof e[r]?"esriFieldTypeString":"esriFieldTypeDouble"});return t}},11831(e,t,r){r.d(t,{A:()=>u});var i,n=r(5482),o=r(25482),s=r(90629),a=r(91429),l=r(5760);let u=i=class extends o.o{constructor(e){super(e),this.decoration="none",this.family="sans-serif",this.style="normal",this.weight="normal"}get size(){return this._get("size")??9}set size(e){this._set("size",e)}castSize(e){return(0,s.cr)(e)}clone(){return new i({decoration:this.decoration,family:this.family,size:this.size,style:this.style,weight:this.weight})}hash(){return`${this.decoration}.${this.family}.${this.size}.${this.style}.${this.weight}`}};(0,n.Cg)([(0,a.MZ)({type:l.h9,json:{default:"none",write:!0}})],u.prototype,"decoration",void 0),(0,n.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],u.prototype,"family",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,json:{write:{overridePolicy:(e,t,r)=>({enabled:!r||!r.textSymbol3D})}}})],u.prototype,"size",null),(0,n.Cg)([(0,a.wg)("size")],u.prototype,"castSize",null),(0,n.Cg)([(0,a.MZ)({type:l._R,json:{default:"normal",write:!0}})],u.prototype,"style",void 0),(0,n.Cg)([(0,a.MZ)({type:l.NM,json:{default:"normal",write:!0}})],u.prototype,"weight",void 0),u=i=(0,n.Cg)([(0,a.$K)("esri.symbols.Font")],u)},68249(e,t,r){r.d(t,{A:()=>m});var i,n=r(5482),o=r(68197),s=r(4718),a=r(90629),l=r(91429),u=r(11831),p=r(20378),c=r(5760),d=r(93223),y=r(43937);let m=i=class extends p.A{constructor(...e){super(...e),this.backgroundColor=null,this.borderLineColor=null,this.borderLineSize=null,this.font=new u.A,this.horizontalAlignment="center",this.kerning=!0,this.haloColor=null,this.rightToLeft=null,this.rotated=!1,this.text="",this.type="text",this.verticalAlignment="baseline",this.angle=0,this.width=null,this.lineHeight=1}normalizeCtorArgs(e,t,r){if(e&&"string"!=typeof e)return e;const i={};return e&&(i.text=e),t&&(i.font=t),r&&(i.color=r),i}get haloSize(){return this._get("haloSize")??null}set haloSize(e){this._set("haloSize",e)}get xoffset(){return this._get("xoffset")??0}set xoffset(e){this._set("xoffset",e)}get yoffset(){return this._get("yoffset")??0}set yoffset(e){this._set("yoffset",e)}get lineWidth(){return this._get("lineWidth")??192}set lineWidth(e){this._set("lineWidth",e)}writeLineWidth(e,t,r,i){i&&"string"!=typeof i?i.origin:t[r]=e}castLineWidth(e){return(0,a.cr)(e)}writeLineHeight(e,t,r,i){i&&"string"!=typeof i?i.origin:t[r]=e}clone(){return new i({angle:this.angle,backgroundColor:(0,s.o8)(this.backgroundColor),borderLineColor:(0,s.o8)(this.borderLineColor),borderLineSize:this.borderLineSize,color:(0,s.o8)(this.color),font:this.font&&this.font.clone(),haloColor:(0,s.o8)(this.haloColor),haloSize:this.haloSize,horizontalAlignment:this.horizontalAlignment,kerning:this.kerning,lineHeight:this.lineHeight,lineWidth:this.lineWidth,rightToLeft:this.rightToLeft,rotated:this.rotated,text:this.text,verticalAlignment:this.verticalAlignment,width:this.width,xoffset:this.xoffset,yoffset:this.yoffset})}hash(){return`${this.backgroundColor?.hash()}.${this.borderLineColor}.${this.borderLineSize}.${this.color?.hash()}.${this.font&&this.font.hash()}.${this.haloColor?.hash()}.${this.haloSize}.${this.horizontalAlignment}.${this.kerning}.${this.rightToLeft}.${this.rotated}.${this.text}.${this.verticalAlignment}.${this.width}.${this.xoffset}.${this.yoffset}.${this.lineHeight}.${this.lineWidth}.${this.angle}`}};(0,n.Cg)([(0,l.MZ)({type:o.A,json:{write:!0}})],m.prototype,"backgroundColor",void 0),(0,n.Cg)([(0,l.MZ)({type:o.A,json:{write:!0}})],m.prototype,"borderLineColor",void 0),(0,n.Cg)([(0,l.MZ)({type:Number,json:{write:!0},cast:a.cr})],m.prototype,"borderLineSize",void 0),(0,n.Cg)([(0,l.MZ)({type:u.A,json:{write:!0}})],m.prototype,"font",void 0),(0,n.Cg)([(0,l.MZ)({...c.rM,json:{write:!0}})],m.prototype,"horizontalAlignment",void 0),(0,n.Cg)([(0,l.MZ)({type:Boolean,json:{write:!0}})],m.prototype,"kerning",void 0),(0,n.Cg)([(0,l.MZ)({type:o.A,json:{write:!0}})],m.prototype,"haloColor",void 0),(0,n.Cg)([(0,l.MZ)({type:Number,cast:a.cr,json:{write:!0}})],m.prototype,"haloSize",null),(0,n.Cg)([(0,l.MZ)({type:Boolean,json:{write:!0}})],m.prototype,"rightToLeft",void 0),(0,n.Cg)([(0,l.MZ)({type:Boolean,json:{write:!0}})],m.prototype,"rotated",void 0),(0,n.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],m.prototype,"text",void 0),(0,n.Cg)([(0,d.e)({esriTS:"text"},{readOnly:!0})],m.prototype,"type",void 0),(0,n.Cg)([(0,l.MZ)({...c.x0,json:{write:!0}})],m.prototype,"verticalAlignment",void 0),(0,n.Cg)([(0,l.MZ)({type:Number,cast:a.cr,json:{write:!0}})],m.prototype,"xoffset",null),(0,n.Cg)([(0,l.MZ)({type:Number,cast:a.cr,json:{write:!0}})],m.prototype,"yoffset",null),(0,n.Cg)([(0,l.MZ)({type:Number,json:{read:e=>e&&-1*e,write:(e,t)=>t.angle=e&&-1*e}})],m.prototype,"angle",void 0),(0,n.Cg)([(0,l.MZ)({type:Number,json:{write:!0}})],m.prototype,"width",void 0),(0,n.Cg)([(0,l.MZ)({type:Number})],m.prototype,"lineWidth",null),(0,n.Cg)([(0,y.K)("lineWidth")],m.prototype,"writeLineWidth",null),(0,n.Cg)([(0,l.wg)("lineWidth")],m.prototype,"castLineWidth",null),(0,n.Cg)([(0,l.MZ)(c.Tb)],m.prototype,"lineHeight",void 0),(0,n.Cg)([(0,y.K)("lineHeight")],m.prototype,"writeLineHeight",null),m=i=(0,n.Cg)([(0,l.$K)("esri.symbols.TextSymbol")],m)},5760(e,t,r){r.d(t,{NM:()=>a,Tb:()=>l,_R:()=>s,h9:()=>o,rM:()=>u,x0:()=>p,y7:()=>c});var i=r(34727),n=r(56507);const o=["none","underline","line-through"],s=["normal","italic","oblique"],a=["normal","lighter","bold","bolder"],l={type:Number,cast:e=>{const t=(0,n.GB)(e);return 0===t?1:(0,i.qE)(t,.1,4)},nonNullable:!0},u={type:["left","right","center"],nonNullable:!0},p={type:["baseline","top","middle","bottom"],nonNullable:!0},c=8}}]);
|