@arcgis/core 4.33.0-next.20250416 → 4.33.0-next.20250418
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/analysis/Analysis.js +1 -1
- package/analysis/AreaMeasurementAnalysis.js +1 -1
- package/analysis/DimensionAnalysis.js +1 -1
- package/analysis/DirectLineMeasurementAnalysis.js +1 -1
- package/analysis/LengthDimension.js +1 -1
- package/analysis/LineOfSightAnalysis.js +1 -1
- package/analysis/SliceAnalysis.js +1 -1
- package/analysis/Viewshed.js +1 -1
- package/analysis/ViewshedAnalysis.js +1 -1
- package/assets/components/assets/icon/browserJoin16.json +1 -0
- package/assets/components/assets/icon/browserJoin24.json +1 -0
- package/assets/components/assets/icon/browserJoin32.json +1 -0
- package/assets/components/assets/icon/browserPlus16.json +1 -0
- package/assets/components/assets/icon/browserPlus24.json +1 -0
- package/assets/components/assets/icon/browserPlus32.json +1 -0
- package/assets/components/assets/icon/check16.json +1 -1
- package/assets/components/assets/icon/check24.json +1 -1
- package/assets/components/assets/icon/check32.json +1 -1
- package/assets/components/assets/icon/classroomGis16.json +1 -0
- package/assets/components/assets/icon/classroomGis24.json +1 -0
- package/assets/components/assets/icon/classroomGis32.json +1 -0
- package/assets/components/assets/icon/documentLearning16.json +1 -0
- package/assets/components/assets/icon/documentLearning24.json +1 -0
- package/assets/components/assets/icon/documentLearning32.json +1 -0
- package/assets/components/assets/icon/doubleFloatSet16.json +1 -0
- package/assets/components/assets/icon/doubleFloatSet24.json +1 -0
- package/assets/components/assets/icon/doubleFloatSet32.json +1 -0
- package/assets/components/assets/icon/eLearningGis16.json +1 -0
- package/assets/components/assets/icon/eLearningGis24.json +1 -0
- package/assets/components/assets/icon/eLearningGis32.json +1 -0
- package/assets/components/assets/icon/language216.json +1 -0
- package/assets/components/assets/icon/language224.json +1 -0
- package/assets/components/assets/icon/language232.json +1 -0
- package/assets/components/assets/icon/layerSet16.json +1 -0
- package/assets/components/assets/icon/layerSet24.json +1 -0
- package/assets/components/assets/icon/layerSet32.json +1 -0
- package/assets/components/assets/icon/learningGisWorkflow16.json +1 -0
- package/assets/components/assets/icon/learningGisWorkflow24.json +1 -0
- package/assets/components/assets/icon/learningGisWorkflow32.json +1 -0
- package/assets/components/assets/icon/learningSteps16.json +1 -0
- package/assets/components/assets/icon/learningSteps24.json +1 -0
- package/assets/components/assets/icon/learningSteps32.json +1 -0
- package/assets/components/assets/icon/learningWebCourse16.json +1 -0
- package/assets/components/assets/icon/learningWebCourse24.json +1 -0
- package/assets/components/assets/icon/learningWebCourse32.json +1 -0
- package/assets/components/assets/icon/mapInformation16.json +1 -0
- package/assets/components/assets/icon/mapInformation24.json +1 -0
- package/assets/components/assets/icon/mapInformation32.json +1 -0
- package/assets/components/assets/icon/mooc16.json +1 -0
- package/assets/components/assets/icon/mooc24.json +1 -0
- package/assets/components/assets/icon/mooc32.json +1 -0
- package/assets/components/assets/icon/multipleVariablesSet16.json +1 -0
- package/assets/components/assets/icon/multipleVariablesSet24.json +1 -0
- package/assets/components/assets/icon/multipleVariablesSet32.json +1 -0
- package/assets/components/assets/icon/parameters16.json +1 -0
- package/assets/components/assets/icon/parameters24.json +1 -0
- package/assets/components/assets/icon/parameters32.json +1 -0
- package/assets/components/assets/icon/parametersGear16.json +1 -0
- package/assets/components/assets/icon/parametersGear24.json +1 -0
- package/assets/components/assets/icon/parametersGear32.json +1 -0
- package/assets/components/assets/icon/parametersPlus16.json +1 -0
- package/assets/components/assets/icon/parametersPlus24.json +1 -0
- package/assets/components/assets/icon/parametersPlus32.json +1 -0
- package/assets/components/assets/icon/storymapExperience16.json +1 -0
- package/assets/components/assets/icon/storymapExperience24.json +1 -0
- package/assets/components/assets/icon/storymapExperience32.json +1 -0
- package/assets/components/assets/icon/stringSet16.json +1 -0
- package/assets/components/assets/icon/stringSet24.json +1 -0
- package/assets/components/assets/icon/stringSet32.json +1 -0
- package/assets/components/assets/icon/tableSet16.json +1 -0
- package/assets/components/assets/icon/tableSet24.json +1 -0
- package/assets/components/assets/icon/tableSet32.json +1 -0
- package/assets/components/assets/icon/variablePlus16.json +1 -0
- package/assets/components/assets/icon/variablePlus24.json +1 -0
- package/assets/components/assets/icon/variablePlus32.json +1 -0
- package/assets/components/assets/icon/videoLearning16.json +1 -0
- package/assets/components/assets/icon/videoLearning24.json +1 -0
- package/assets/components/assets/icon/videoLearning32.json +1 -0
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/02176f84d6d57f1bc1c8.js +2 -0
- package/assets/esri/core/workers/chunks/{75e01c6404cbd51daabc.js.LICENSE.txt → 02176f84d6d57f1bc1c8.js.LICENSE.txt} +1 -1
- package/assets/esri/core/workers/chunks/05cba30c0d3855de7a65.js +1 -0
- package/assets/esri/core/workers/chunks/{7ef9bcd58af499a14a08.js → 089a19381b66cd074425.js} +1 -1
- package/assets/esri/core/workers/chunks/{984c5047ab1fa632ca09.js → 0a7cba60a5286ba621d4.js} +1 -1
- package/assets/esri/core/workers/chunks/0be7a0f4c4f4f91d1957.js +1 -0
- package/assets/esri/core/workers/chunks/0c6f2808c57ff820bfdd.js +2 -0
- package/assets/esri/core/workers/chunks/{baed733a29aa65efc2a0.js.LICENSE.txt → 0c6f2808c57ff820bfdd.js.LICENSE.txt} +7 -1
- package/assets/esri/core/workers/chunks/103c78c8bfdb56227bc0.js +1 -0
- package/assets/esri/core/workers/chunks/184d7c8ea818bec5c462.js +1 -0
- package/assets/esri/core/workers/chunks/{4523ba4a3c8987abca56.js → 1c75f7e4d2e9c8e377e7.js} +1 -1
- package/assets/esri/core/workers/chunks/1e1c3243ac82c969bb1f.js +1 -0
- package/assets/esri/core/workers/chunks/22f604726529ee6f8c25.js +1 -0
- package/assets/esri/core/workers/chunks/244d2196bac5ef279436.js +1 -0
- package/assets/esri/core/workers/chunks/25142d431dd1e5e82234.js +1 -0
- package/assets/esri/core/workers/chunks/25e19bd171eeb5634a4f.js +1 -0
- package/assets/esri/core/workers/chunks/26924d2f03b8a1b7a9b2.js +1 -0
- package/assets/esri/core/workers/chunks/27482132abb939a1cdb7.js +1 -0
- package/assets/esri/core/workers/chunks/2ae1dbdac9f24f4a3c84.js +1 -0
- package/assets/esri/core/workers/chunks/31b2ceed80796c7f6c03.js +1 -0
- package/assets/esri/core/workers/chunks/32f2e0c88046b39916cc.js +1 -0
- package/assets/esri/core/workers/chunks/3521a53f826f0ce6ac33.js +1 -0
- package/assets/esri/core/workers/chunks/3697ec74522cc5059098.js +1 -0
- package/assets/esri/core/workers/chunks/{60472225a228e499b1a2.js → 38557792ff9516fc991b.js} +1 -1
- package/assets/esri/core/workers/chunks/388a763da712ca71ccf4.js +1 -0
- package/assets/esri/core/workers/chunks/38f9ede26098eb03ca2d.js +2 -0
- package/assets/esri/core/workers/chunks/{239821543abbd63c5787.js.LICENSE.txt → 38f9ede26098eb03ca2d.js.LICENSE.txt} +3 -3
- package/assets/esri/core/workers/chunks/3f3a2c6ce48d832bf2f1.js +1 -0
- package/assets/esri/core/workers/chunks/{82493f51a2182f76dd2f.js → 459e3e507e8ea3e7e6ab.js} +1 -1
- package/assets/esri/core/workers/chunks/{f4111bb5e5a4910b684a.js → 4867a515ddbdab97cc61.js} +1 -1
- package/assets/esri/core/workers/chunks/51b5dfc7085272d26b89.js +1 -0
- package/assets/esri/core/workers/chunks/536d7986ebb710a8a452.js +1 -0
- package/assets/esri/core/workers/chunks/53eaad20c4f55dae21e0.js +1 -0
- package/assets/esri/core/workers/chunks/55eff05354069f34bb1d.js +1 -0
- package/assets/esri/core/workers/chunks/569e9ec636199d1f1744.js +1 -0
- package/assets/esri/core/workers/chunks/598fade09fa4da759ac2.js +1 -0
- package/assets/esri/core/workers/chunks/5ac3096139e3eafd0e1d.js +1 -0
- package/assets/esri/core/workers/chunks/{93d06a1a0b700ddb3807.js → 5bdd5ae2d2f23ef6b331.js} +1 -1
- package/assets/esri/core/workers/chunks/5db336767959507c07e5.js +2 -0
- package/assets/esri/core/workers/chunks/{c03bffa13841e4f80379.js.LICENSE.txt → 5db336767959507c07e5.js.LICENSE.txt} +2 -2
- package/assets/esri/core/workers/chunks/5e5225623977e61fd0ef.js +1 -0
- package/assets/esri/core/workers/chunks/642a595353a86f3717e3.js +1 -0
- package/assets/esri/core/workers/chunks/64640051f1fd787a3362.js +1 -0
- package/assets/esri/core/workers/chunks/6d230c55cde66ee905b3.js +1 -0
- package/assets/esri/core/workers/chunks/{c1bd47cde53918f454ca.js → 729407e372c8353cf871.js} +1 -1
- package/assets/esri/core/workers/chunks/{29283c19e1ccdc6cfbde.js → 736a11e64e5f03e3936b.js} +34 -33
- package/assets/esri/core/workers/chunks/769b66cca8347f0f84db.js +1 -0
- package/assets/esri/core/workers/chunks/7c4746f60332620f75c5.js +1 -0
- package/assets/esri/core/workers/chunks/{b6dd25bccb9f6e19c18e.js → 7c7ff11246479382974c.js} +1 -1
- package/assets/esri/core/workers/chunks/7fce62ef3f0b011e0d35.js +1 -0
- package/assets/esri/core/workers/chunks/814d72abbfdd4552e4ec.js +2 -0
- package/assets/esri/core/workers/chunks/{373782e9f5d61616fde4.js.LICENSE.txt → 814d72abbfdd4552e4ec.js.LICENSE.txt} +1 -6
- package/assets/esri/core/workers/chunks/{07f206719763173faa8d.js → 873327fc41edd3830afa.js} +4 -4
- package/assets/esri/core/workers/chunks/8ea182c2fc20dba79ef2.js +1 -0
- package/assets/esri/core/workers/chunks/{d58fae2fc9d148e015ae.js → 90dc783a617ff053e862.js} +1 -1
- package/assets/esri/core/workers/chunks/93e9dfd1ba8f393c6c47.js +1 -0
- package/assets/esri/core/workers/chunks/93f792f5b94f3745b57d.js +2 -0
- package/assets/esri/core/workers/chunks/{3845e1d47bb51c06682e.js.LICENSE.txt → 93f792f5b94f3745b57d.js.LICENSE.txt} +1 -1
- package/assets/esri/core/workers/chunks/a197c86d42cc9ce21924.js +1 -0
- package/assets/esri/core/workers/chunks/a276980c06d5d311a37e.js +1 -0
- package/assets/esri/core/workers/chunks/a600194cfe26aedc21dd.js +1 -0
- package/assets/esri/core/workers/chunks/{a4239e301728d594afa5.js → a6b14665a46c2af5ac11.js} +1 -1
- package/assets/esri/core/workers/chunks/ae13bd77a25ce8b54631.js +1 -0
- package/assets/esri/core/workers/chunks/ae156b99e60a2bf940e4.js +1 -0
- package/assets/esri/core/workers/chunks/b2f1d1721a9dd88a1adf.js +1 -0
- package/assets/esri/core/workers/chunks/{4275dcec730a11173661.js → b7fc99ec15e2c86a6425.js} +1 -1
- package/assets/esri/core/workers/chunks/b8248939373e25a8d6db.js +1 -0
- package/assets/esri/core/workers/chunks/bbaadce582df7e20397b.js +1 -0
- package/assets/esri/core/workers/chunks/{18404cd87d29b2bdc7bf.js → c4dba6cf17aece714d22.js} +1 -1
- package/assets/esri/core/workers/chunks/c5d786166a5609b85276.js +2 -0
- package/assets/esri/core/workers/chunks/{e4d522ade82192f32d54.js.LICENSE.txt → c5d786166a5609b85276.js.LICENSE.txt} +1 -1
- package/assets/esri/core/workers/chunks/{c589d32f8efcca6bf712.js → c6b08fdc0421258efcf5.js} +1 -1
- package/assets/esri/core/workers/chunks/c779335f5d5455c77a62.js +1 -0
- package/assets/esri/core/workers/chunks/{eb61e484f090fca28937.js → cb2be1a81bdd3443f758.js} +1 -1
- package/assets/esri/core/workers/chunks/ccc50f28f217e50cc2c3.js +1 -0
- package/assets/esri/core/workers/chunks/cd2927b922444880566d.js +1 -0
- package/assets/esri/core/workers/chunks/{df1225a3e751a662c182.js → d04efa51da9b4eb3a8a7.js} +1 -1
- package/assets/esri/core/workers/chunks/d28e2c9bdf514236b011.js +1 -0
- package/assets/esri/core/workers/chunks/d434d44916d32d4b10d5.js +1 -0
- package/assets/esri/core/workers/chunks/{50c1753ee3dc0d28ffd7.js → d696abbb1b13ac1a689b.js} +1 -1
- package/assets/esri/core/workers/chunks/dbaa4b8d37aab40d7bd1.js +2 -0
- package/assets/esri/core/workers/chunks/dbaa4b8d37aab40d7bd1.js.LICENSE.txt +3 -0
- package/assets/esri/core/workers/chunks/{4a15308b54734247f38e.js → dd8e72d6784a8ebc115d.js} +1 -1
- package/assets/esri/core/workers/chunks/de0784474d2e9e504a91.js +1 -0
- package/assets/esri/core/workers/chunks/{aca3ccb9599bcc444617.js → e1472af8f5d64c057d04.js} +1 -1
- package/assets/esri/core/workers/chunks/e27fa1e84f16b7f19a90.js +1 -0
- package/assets/esri/core/workers/chunks/e2cd6038d9c7167b128e.js +1 -0
- package/assets/esri/core/workers/chunks/{0252d853419adc203f04.js → ef6e805c49e1afdf966b.js} +1 -1
- package/assets/esri/core/workers/chunks/f2bc75a718a10065011d.js +1 -0
- package/assets/esri/core/workers/chunks/{1263391920fbb8926ced.js → f34ce3c37a385b341631.js} +1 -1
- package/assets/esri/core/workers/chunks/{e3d25d027885eb1a415f.js → f458a40e1f8fce3ad23c.js} +1 -1
- package/assets/esri/core/workers/chunks/f65b720b750aebca1bcd.js +1 -0
- package/assets/esri/core/workers/chunks/fdcbd28f38bc485ac5e3.js +1 -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/OrientedImageryViewer/t9n/OrientedImageryViewer.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_en.json +1 -1
- package/chunks/BloomComposition.glsl.js +25 -19
- package/chunks/ChapmanAtmosphere.glsl.js +1 -1
- package/chunks/ComponentShader.glsl.js +14 -14
- package/chunks/DefaultMaterial.glsl.js +6 -6
- package/chunks/Fog.glsl.js +3 -3
- package/chunks/Haze.glsl.js +1 -1
- package/chunks/OITBlend.glsl.js +1 -0
- package/chunks/Path.glsl.js +3 -3
- package/chunks/RealisticTree.glsl.js +5 -5
- package/chunks/SSAO.glsl.js +5 -4
- package/chunks/Viewshed.glsl.js +1 -1
- package/core/promiseUtils.d.ts +1 -0
- package/core/urlUtils.d.ts +4 -0
- package/identity/IdentityModal.js +1 -1
- package/interfaces.d.ts +335 -42
- package/intl/date.js +1 -1
- package/intl/messages.js +1 -1
- package/intl/number.js +1 -1
- package/layers/FeatureLayer.js +1 -1
- package/layers/ParquetLayer.js +1 -1
- package/layers/VideoLayer.js +1 -1
- package/layers/ViewshedLayer.js +1 -1
- package/layers/graphics/sources/ParquetSource.js +1 -1
- package/layers/save/featureLayerUtils.js +1 -1
- package/layers/support/ParquetEncodingBase.js +5 -0
- package/layers/support/ParquetEncodingLocation.js +5 -0
- package/layers/support/ParquetEncodingWkb.js +5 -0
- package/layers/support/domainUtils.js +1 -1
- package/layers/support/fieldUtils.js +1 -1
- package/layers/support/labelingInfo.js +1 -1
- package/layers/support/layerUtils.js +1 -1
- package/layers/support/parquetUtils.js +5 -0
- package/layers/support/serviceCapabilitiesUtils.js +1 -1
- package/layers/video/VideoController.js +1 -1
- package/layers/video/videoUtils.js +1 -1
- package/libs/parquet/parquet.js +1 -1
- package/networks/UtilityNetwork.js +1 -1
- package/package.json +2 -2
- package/portal/PortalItem.js +1 -1
- package/portal/PortalUser.js +1 -1
- package/portal/support/portalItemUtils.js +1 -1
- package/rest/featureService/FeatureService.js +1 -1
- package/rest/networks/support/NetworkElement.js +1 -1
- package/rest/networks/support/TelecomNetworkElement.js +5 -0
- package/rest/networks/trace.js +1 -1
- package/rest/print.js +1 -1
- package/support/TablesMixin.js +1 -1
- package/support/modeUtils.js +5 -0
- package/support/revision.js +1 -1
- package/views/2d/engine/webgl/FeatureTile.js +1 -1
- package/views/2d/engine/webgl/collisions/LabelMetric.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/labels/LabelMeshWriter.js +1 -1
- package/views/2d/layers/VideoLayerView2D.js +1 -1
- package/views/2d/layers/features/layerAdapters/ParquetLayerAdapter.js +1 -1
- package/views/2d/layers/features/processor/TrackStrategy.js +1 -1
- package/views/2d/layers/features/sources/strategies/ParquetLoadStrategy.js +1 -1
- package/views/3d/analysis/LineOfSight/LineOfSightTool.js +1 -1
- package/views/3d/analysis/LineOfSightAnalysisView3D.js +1 -1
- package/views/3d/analysis/Viewshed/ViewshedComputedData.js +1 -1
- package/views/3d/analysis/Viewshed/ViewshedSubTool.js +1 -1
- package/views/3d/analysis/Viewshed/ViewshedTool.js +1 -1
- package/views/3d/analysis/Viewshed/ViewshedVisualization.js +1 -1
- package/views/3d/analysis/ViewshedAnalysisView3D.js +1 -1
- package/views/3d/environment/ChapmanAtmosphereTechniqueConfiguration.js +1 -1
- package/views/3d/interactive/editingTools/transform/ExtentTransformTool.js +1 -1
- package/views/3d/interactive/editingTools/transform/extentTransform/ExtentMove.js +1 -1
- package/views/3d/interactive/editingTools/transform/extentTransform/ExtentRotate.js +1 -1
- package/views/3d/interactive/editingTools/transform/extentTransform/ExtentScale.js +1 -1
- package/views/3d/interactive/visualElements/ViewshedShapeVisualElement.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterial.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/ComponentTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/Laserline.glsl.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/shading/Water.glsl.js +8 -8
- package/views/3d/webgl-engine/effects/bloom/BloomComposition.glsl.js +1 -1
- package/views/3d/webgl-engine/effects/bloom/BloomCompositionTechniqueConfiguration.js +5 -0
- package/views/3d/webgl-engine/effects/bloom/BloomRenderNode.js +1 -1
- package/views/3d/webgl-engine/effects/haze/HazeTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/lib/Renderer.js +1 -1
- package/views/3d/webgl-engine/materials/DefaultMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/PathMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/PathTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/shaders/DefaultMaterialTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/shaders/ToneMapping.glsl.js +20 -2
- package/views/ToolViewManager.js +1 -1
- package/views/analysis/analysisViewUtils.js +1 -1
- package/views/draw/support/HighlightHelper.js +1 -1
- package/views/interactive/InteractiveToolBase.js +1 -1
- package/views/interactive/Tooltip.js +1 -1
- package/views/interactive/interactiveToolUtils.js +1 -1
- package/views/interactive/keybindings.js +1 -1
- package/views/ui/UI.js +1 -1
- package/webdoc/support/saveUtils.js +1 -1
- package/webdoc/support/webdocSaveUtils.js +1 -1
- package/widgets/Editor.js +1 -1
- package/widgets/ElevationProfile/support/chartUtils.js +1 -1
- package/widgets/Feature/FeatureMedia.js +1 -1
- package/widgets/Feature/support/featureUtils.js +1 -1
- package/widgets/FeatureForm/FeatureFormUtilityNetworkAssociations/UtilityNetworkAssociationItemList.js +1 -1
- package/widgets/FeatureTable/Grid/Grid.js +1 -1
- package/widgets/FeatureTable/Grid/GridViewModel.js +1 -1
- package/widgets/FeatureTable.js +1 -1
- package/widgets/Legend/support/sizeRampUtils.js +1 -1
- package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
- package/widgets/OrientedImageryViewer/components/ImageLocationWidget.js +1 -1
- package/widgets/OrientedImageryViewer/imageMeasurementUtils.js +1 -1
- package/widgets/OrientedImageryViewer.js +1 -1
- package/widgets/ScaleRangeSlider/ScaleRangeSliderViewModel.js +1 -1
- package/widgets/Slider/SliderViewModel.js +1 -1
- package/widgets/Slider.js +1 -1
- package/widgets/TimeSlider.js +1 -1
- package/widgets/support/AnalysisViewModel.js +1 -1
- package/widgets/support/InteractiveAnalysisViewModel.js +1 -1
- package/widgets/support/Selector2D/SelectionOperation.js +1 -1
- package/widgets/support/widget.js +1 -1
- package/assets/esri/core/workers/chunks/0297e55a49ca0d1231ef.js +0 -1
- package/assets/esri/core/workers/chunks/04008648c59031bca8ea.js +0 -1
- package/assets/esri/core/workers/chunks/067dda58592fbf4fb812.js +0 -1
- package/assets/esri/core/workers/chunks/0b4e63e705db09dbe171.js +0 -1
- package/assets/esri/core/workers/chunks/1072b4f37eacbbfda2c8.js +0 -1
- package/assets/esri/core/workers/chunks/1b87fa15470cce26feea.js +0 -1
- package/assets/esri/core/workers/chunks/239821543abbd63c5787.js +0 -2
- package/assets/esri/core/workers/chunks/272a309760dacb13dee3.js +0 -1
- package/assets/esri/core/workers/chunks/2791f1f2791087d0217f.js +0 -1
- package/assets/esri/core/workers/chunks/35dccd3883d2e466c42e.js +0 -1
- package/assets/esri/core/workers/chunks/364860a42edc0c3b8d5b.js +0 -1
- package/assets/esri/core/workers/chunks/373782e9f5d61616fde4.js +0 -2
- package/assets/esri/core/workers/chunks/37e49d1a1407c193dcd0.js +0 -1
- package/assets/esri/core/workers/chunks/37e4f588a6896f98bce3.js +0 -1
- package/assets/esri/core/workers/chunks/3845e1d47bb51c06682e.js +0 -2
- package/assets/esri/core/workers/chunks/3f6dc811b5d515c2725c.js +0 -1
- package/assets/esri/core/workers/chunks/42aab2a336ee22fd9055.js +0 -1
- package/assets/esri/core/workers/chunks/4ba34124054752b363c0.js +0 -1
- package/assets/esri/core/workers/chunks/4baef5262ce401bf81bb.js +0 -1
- package/assets/esri/core/workers/chunks/593396b4c210da77a131.js +0 -1
- package/assets/esri/core/workers/chunks/5b32c2a1b276352593dc.js +0 -1
- package/assets/esri/core/workers/chunks/5df4e73905c0ae75e37c.js +0 -1
- package/assets/esri/core/workers/chunks/5fb9bb3ac2f60dbd59c4.js +0 -1
- package/assets/esri/core/workers/chunks/66e90f7d473d1f688254.js +0 -1
- package/assets/esri/core/workers/chunks/68d7babbe7e0d934e056.js +0 -1
- package/assets/esri/core/workers/chunks/6e6b60779c11efc128af.js +0 -1
- package/assets/esri/core/workers/chunks/759c12b0715279e3c0f6.js +0 -1
- package/assets/esri/core/workers/chunks/75e01c6404cbd51daabc.js +0 -2
- package/assets/esri/core/workers/chunks/77660e18ea793ae85f83.js +0 -1
- package/assets/esri/core/workers/chunks/7f36cffc6ed984b7e467.js +0 -1
- package/assets/esri/core/workers/chunks/7f86c9ec45f4fae1fb49.js +0 -1
- package/assets/esri/core/workers/chunks/879d672d12f9ef2e1b50.js +0 -1
- package/assets/esri/core/workers/chunks/90442f47c9f31f26b453.js +0 -1
- package/assets/esri/core/workers/chunks/91439b59260b0fb04be9.js +0 -1
- package/assets/esri/core/workers/chunks/96978d039f183565bffa.js +0 -1
- package/assets/esri/core/workers/chunks/999a4f7ca581f28cc1c4.js +0 -1
- package/assets/esri/core/workers/chunks/af41dcc8006cd0f451c2.js +0 -1
- package/assets/esri/core/workers/chunks/af9fda47d02c51a2c7da.js +0 -1
- package/assets/esri/core/workers/chunks/baed733a29aa65efc2a0.js +0 -2
- package/assets/esri/core/workers/chunks/c03bffa13841e4f80379.js +0 -2
- package/assets/esri/core/workers/chunks/c7ab674764312d65348f.js +0 -1
- package/assets/esri/core/workers/chunks/ca0572fe5614005acceb.js +0 -1
- package/assets/esri/core/workers/chunks/d2c7067bb6654c0e2793.js +0 -1
- package/assets/esri/core/workers/chunks/d46c82a55219b27c301b.js +0 -1
- package/assets/esri/core/workers/chunks/d89f105b8a0b13dd8e5f.js +0 -1
- package/assets/esri/core/workers/chunks/e13caf9691f556071e31.js +0 -1
- package/assets/esri/core/workers/chunks/e14449f07ed3386f4f2b.js +0 -1
- package/assets/esri/core/workers/chunks/e31bb256921807464715.js +0 -1
- package/assets/esri/core/workers/chunks/e4d522ade82192f32d54.js +0 -2
- package/assets/esri/core/workers/chunks/e5713b757f770a138b8c.js +0 -1
- package/assets/esri/core/workers/chunks/e6544e966f14fb410157.js +0 -1
- package/assets/esri/core/workers/chunks/e792603b7cc3ddd133f3.js +0 -1
- package/assets/esri/core/workers/chunks/e7cb4003c45e42b48ea6.js +0 -1
- package/assets/esri/core/workers/chunks/eb011e8b14db37ddb110.js +0 -1
- package/assets/esri/core/workers/chunks/efb0f3ec2344adcb24f3.js +0 -1
- package/assets/esri/core/workers/chunks/f0c864425f000ab87a7b.js +0 -1
- package/assets/esri/core/workers/chunks/f7d33d18bf1bd4db9df8.js +0 -1
- package/assets/esri/core/workers/chunks/f9396af9cbfd165e72e2.js +0 -1
- package/assets/esri/core/workers/chunks/fa2d836d4a844b26b84e.js +0 -1
- package/layers/support/parquetLayerUtils.js +0 -5
- package/support/themeUtils.js +0 -5
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2763,8256],{4146:(t,e,n)=>{n.d(e,{A:()=>x});var r=n(90237),i=n(78888),o=n(49186),s=n(65529),a=n(4902),l=n(92474),u=n(53966),c=n(74887),h=n(84952),p=n(10107),f=(n(44208),n(87811),n(40608)),d=n(5443),m=n(16930),y=n(92602),g=n(79677);let _=0,v=class extends(s.A.EventedMixin(a.A.IdentifiableMixin(l.A))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new d.A(-180,-90,180,90,m.A.WGS84),this.id=Date.now().toString(16)+"-layer-"+_++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.persistenceEnabled=!1,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=m.A.WGS84,this.title=null,this.type=null,this.url=null,this.visibilityTimeExtent=null,this.visible=!0}static async fromArcGISServerUrl(t){const e="string"==typeof t?{url:t}:t;return(await n.e(7982).then(n.bind(n,27982))).fromUrl(e)}static fromPortalItem(t){return async function(t){const e="portalItem"in t?t:{portalItem:t},{fromItem:r}=await n.e(5613).then(n.bind(n,45613));try{return await r(e)}catch(t){const n=e?.portalItem,r=n?.id||"unset",i=n?.portal?.url||y.A.portalUrl;throw u.A.getLogger("esri.layers.support.fromPortalItem").error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+i+"', id: '"+r+"')",t),t}}(t)}initialize(){this.when().catch((t=>{(0,c.zf)(t)||u.A.getLogger(this).error("#load()",`Failed to load layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}')`,{error:t})}))}destroy(){const t=this.parent;if(t){const e=this;"layers"in t&&t.layers.includes(e)?t.layers.remove(e):"tables"in t&&t.tables.includes(e)?t.tables.remove(e):"baseLayers"in t&&t.baseLayers.includes(e)?t.baseLayers.remove(e):"referenceLayers"in t&&t.referenceLayers.includes(e)&&t.referenceLayers.remove(e),this._set("parent",null)}}get effectiveVisible(){let t=this.visible;const e=this.parent;return t&&e&&"effectiveVisible"in e&&(t&&=e.effectiveVisible),t}get hasAttributionData(){return null!=this.attributionDataUrl}get parsedUrl(){return(0,h.An)(this.url)}createLayerView(t,e){return Promise.reject(new o.A("layer:create-layer-view","Layer does not support creating a layer view"))}async fetchAttributionData(){const t=this.attributionDataUrl;if(this.hasAttributionData&&t)return(await(0,i.A)(t,{query:{f:"json"},responseType:"json"})).data;throw new o.A("layer:no-attribution-data","Layer does not have attribution data")}};(0,r._)([(0,p.MZ)({type:String})],v.prototype,"attributionDataUrl",void 0),(0,r._)([(0,p.MZ)({readOnly:!0})],v.prototype,"effectiveVisible",null),(0,r._)([(0,p.MZ)({type:d.A})],v.prototype,"fullExtent",void 0),(0,r._)([(0,p.MZ)({readOnly:!0})],v.prototype,"hasAttributionData",null),(0,r._)([(0,p.MZ)({type:String,clonable:!1})],v.prototype,"id",void 0),(0,r._)([(0,p.MZ)({type:Boolean,nonNullable:!0})],v.prototype,"legendEnabled",void 0),(0,r._)([(0,p.MZ)({type:["show","hide","hide-children"]})],v.prototype,"listMode",void 0),(0,r._)([(0,p.MZ)({type:Number,range:{min:0,max:1},nonNullable:!0})],v.prototype,"opacity",void 0),(0,r._)([(0,p.MZ)({clonable:!1})],v.prototype,"parent",void 0),(0,r._)([(0,p.MZ)({readOnly:!0})],v.prototype,"parsedUrl",null),(0,r._)([(0,p.MZ)({type:Boolean,readOnly:!0})],v.prototype,"persistenceEnabled",void 0),(0,r._)([(0,p.MZ)({type:Boolean})],v.prototype,"popupEnabled",void 0),(0,r._)([(0,p.MZ)({type:Boolean})],v.prototype,"attributionVisible",void 0),(0,r._)([(0,p.MZ)({type:m.A})],v.prototype,"spatialReference",void 0),(0,r._)([(0,p.MZ)({type:String})],v.prototype,"title",void 0),(0,r._)([(0,p.MZ)({readOnly:!0,json:{read:!1}})],v.prototype,"type",void 0),(0,r._)([(0,p.MZ)()],v.prototype,"url",void 0),(0,r._)([(0,p.MZ)({type:g.A})],v.prototype,"visibilityTimeExtent",void 0),(0,r._)([(0,p.MZ)({type:Boolean,nonNullable:!0})],v.prototype,"visible",void 0),v=(0,r._)([(0,f.$)("esri.layers.Layer")],v);const x=v},4902:(t,e,n)=>{n.d(e,{A:()=>u});var r=n(90237),i=n(40608);let o=0;const s=t=>{let e=class extends t{constructor(...t){super(...t),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:Date.now().toString(16)+"-object-"+o++})}};return e=(0,r._)([(0,i.$)("esri.core.Identifiable")],e),e};let a=class extends(s(class{})){};var l;a=(0,r._)([(0,i.$)("esri.core.Identifiable")],a),(l=a||(a={})).IdentifiableMixin=s,l.NumericIdentifiableMixin=t=>{let e=class extends t{constructor(...t){super(...t),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:o++})}};return e=(0,r._)([(0,i.$)("esri.core.Identifiable.NumericIdentifiable")],e),e};const u=a},6518:(t,e,n)=>{n.d(e,{F:()=>a});var r=n(44208),i=n(75503),o=n(19419);const s={minX:0,minY:0,maxX:0,maxY:0};class a{constructor(){this._indexInvalid=!1,this._boundsToLoad=[],this._boundsById=new Map,this._idByBounds=new Map,this._index=new i.w(9,(0,r.A)("esri-csp-restrictions")?t=>({minX:t[0],minY:t[1],maxX:t[2],maxY:t[3]}):["[0]","[1]","[2]","[3]"]),this._loadIndex=()=>{if(this._indexInvalid){const t=new Array(this._idByBounds.size);let e=0;this._idByBounds.forEach(((n,r)=>{t[e++]=r})),this._indexInvalid=!1,this._index.clear(),this._index.load(t)}else this._boundsToLoad.length&&(this._index.load(Array.from(new Set(this._boundsToLoad.filter((t=>this._idByBounds.has(t)))))),this._boundsToLoad.length=0)}}get fullBounds(){if(!this._boundsById.size)return null;const t=(0,o.Ie)();for(const e of this._boundsById.values())e&&(t[0]=Math.min(e[0],t[0]),t[1]=Math.min(e[1],t[1]),t[2]=Math.max(e[2],t[2]),t[3]=Math.max(e[3],t[3]));return t}get valid(){return!this._indexInvalid}clear(){this._indexInvalid=!1,this._boundsToLoad.length=0,this._boundsById.clear(),this._idByBounds.clear(),this._index.clear()}delete(t){const e=this._boundsById.get(t);this._boundsById.delete(t),e&&(this._idByBounds.delete(e),this._indexInvalid||this._index.remove(e))}forEachInBounds(t,e){this._loadIndex(),function(t,e,n){(function(t){s.minX=t[0],s.minY=t[1],s.maxX=t[2],s.maxY=t[3]})(e),t.search(s,n)}(this._index,t,(t=>e(this._idByBounds.get(t))))}get(t){return this._boundsById.get(t)}has(t){return this._boundsById.has(t)}invalidateIndex(){this._indexInvalid||(this._indexInvalid=!0,this._boundsToLoad.length=0)}set(t,e){if(!this._indexInvalid){const e=this._boundsById.get(t);e&&(this._index.remove(e),this._idByBounds.delete(e))}this._boundsById.set(t,e),e&&(this._idByBounds.set(e,t),this._indexInvalid||(this._boundsToLoad.push(e),this._boundsToLoad.length>5e4&&this._loadIndex()))}}},8303:(t,e,n)=>{n.d(e,{A:()=>w});var r=n(90237),i=n(92602),o=n(70333),s=n(78888),a=n(60999),l=n(49186),u=n(53966),c=n(97768),h=n(74887),p=n(84952),f=n(10107),d=(n(44208),n(87811),n(36005)),m=n(40608),y=n(43937),g=n(83531),_=n(20655),v=n(80812),x=n(41318),M=n(10407);const w=t=>{let e=class extends t{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){this.portalItem=(0,c.pR)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}set portalItem(t){t!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",t))}readPortalItem(t,e,n){if(e.itemId)return new v.default({id:e.itemId,portal:n?.portal})}writePortalItem(t,e){t?.id&&(e.itemId=t.id)}async loadFromPortal(t,e){if(this.portalItem?.id)try{const{load:r}=await n.e(1204).then(n.bind(n,41204));return(0,h.Te)(e),await r({instance:this,supportedTypes:t.supportedTypes,validateItem:t.validateItem,supportsData:t.supportsData,layerModuleTypeMap:t.layerModuleTypeMap,populateGroupLayer:t.populateGroupLayer},e)}catch(t){throw(0,h.zf)(t)||u.A.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${t}`),t}}async finishLoadEditablePortalLayer(t){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(t).catch((t=>((0,h.QP)(t),!0))))}async setUserPrivileges(t,e){if(!i.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(e);if(this.url)try{const{features:{edit:n,fullEdit:r},content:{updateItem:i}}=await this._fetchUserPrivileges(t,e);this._set("userHasEditingPrivileges",n),this._set("userHasFullEditingPrivileges",r),this._set("userHasUpdateItemPrivileges",i)}catch(t){(0,h.QP)(t)}}async _fetchUserPrivileges(t,e){let n=this.portalItem;if(!t||!n||!n.loaded||n.sourceUrl)return this._fetchFallbackUserPrivileges(e);const r=!o.id?.findCredential(this.url),i=t===n.id;if(i&&n.portal.user)return this._getUserPrivileges(n,r);let s,a;if(i)s=n.portal.url;else try{s=await(0,g.wI)(this.url,e)}catch(t){(0,h.QP)(t)}if(!s||!(0,p.b8)(s,n.portal.url))return this._fetchFallbackUserPrivileges(e);try{const t=null!=e?e.signal:null;a=await(o.id?.getCredential(`${s}/sharing`,{prompt:!1,signal:t}))}catch(t){(0,h.QP)(t)}const l=!0,u=!1,c=!1;if(!a)return{features:{edit:l,fullEdit:u},content:{updateItem:c}};try{if(i?await n.reload():(n=new v.default({id:t,portal:{url:s}}),await n.load(e)),n.portal.user)return this._getUserPrivileges(n,r)}catch(t){(0,h.QP)(t)}return{features:{edit:l,fullEdit:u},content:{updateItem:c}}}_getUserPrivileges(t,e){const n=(0,M.It)(t);return e&&(n.features.edit=!0),n}async _fetchFallbackUserPrivileges(t){let e=!0;try{e=await this._fetchUserHasEditingPrivileges(t)}catch(t){(0,h.QP)(t)}return{features:{edit:e,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(t){const e=this.url?o.id?.findCredential(this.url):null;if(!e)return!0;const n=b.credential===e?b.user:await this._fetchEditingUser(t);return b.credential=e,b.user=n,null==n?.privileges||n.privileges.includes("features:user:edit")}async _fetchEditingUser(t){const e=this.portalItem?.portal?.user;if(e)return e;const n=o.id?.findServerInfo(this.url??"");if(!n?.owningSystemUrl)return null;const r=`${n.owningSystemUrl}/sharing/rest`,i=_.A.getDefault();if(i&&i.loaded&&(0,p.S8)(i.restUrl)===(0,p.S8)(r))return i.user;const l=`${r}/community/self`,u=null!=t?t.signal:null,c=await(0,a.Ke)((0,s.A)(l,{authMode:"no-prompt",query:{f:"json"},signal:u}));return c.ok?x.A.fromJSON(c.value.data):null}read(t,e){e&&(e.layer=this),super.read(t,e)}write(t,e){const n=e?.portal,r=this.portalItem?.id&&(this.portalItem.portal||_.A.getDefault());return n&&r&&!(0,p.ut)(r.restUrl,n.restUrl)?(e.messages&&e.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(t,{...e,layer:this})}};return(0,r._)([(0,f.MZ)({type:v.default})],e.prototype,"portalItem",null),(0,r._)([(0,d.w)("web-document","portalItem",["itemId"])],e.prototype,"readPortalItem",null),(0,r._)([(0,y.K)("web-document","portalItem",{itemId:{type:String}})],e.prototype,"writePortalItem",null),(0,r._)([(0,f.MZ)({clonable:!1})],e.prototype,"resourceReferences",void 0),(0,r._)([(0,f.MZ)({type:Boolean,readOnly:!0})],e.prototype,"userHasEditingPrivileges",void 0),(0,r._)([(0,f.MZ)({type:Boolean,readOnly:!0})],e.prototype,"userHasFullEditingPrivileges",void 0),(0,r._)([(0,f.MZ)({type:Boolean,readOnly:!0})],e.prototype,"userHasUpdateItemPrivileges",void 0),e=(0,r._)([(0,m.$)("esri.layers.mixins.PortalLayer")],e),e},b={credential:null,user:null}},11006:(t,e,n)=>{function r(t,e,n,r,o){i(t,e,n||0,r||t.length-1,o||s)}function i(t,e,n,r,s){for(;r>n;){if(r-n>600){var a=r-n+1,l=e-n+1,u=Math.log(a),c=.5*Math.exp(2*u/3),h=.5*Math.sqrt(u*c*(a-c)/a)*(l-a/2<0?-1:1);i(t,e,Math.max(n,Math.floor(e-l*c/a+h)),Math.min(r,Math.floor(e+(a-l)*c/a+h)),s)}var p=t[e],f=n,d=r;for(o(t,n,e),s(t[r],p)>0&&o(t,n,r);f<d;){for(o(t,f,d),f++,d--;s(t[f],p)<0;)f++;for(;s(t[d],p)>0;)d--}0===s(t[n],p)?o(t,n,d):o(t,++d,r),d<=e&&(n=d+1),e<=d&&(r=d-1)}}function o(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function s(t,e){return t<e?-1:t>e?1:0}n.d(e,{q:()=>r})},13069:(t,e,n)=>{n.d(e,{AG:()=>a,lk:()=>i,vD:()=>s,yS:()=>o});const r="randomUUID"in crypto;function i(){if(r)return crypto.randomUUID();const t=crypto.getRandomValues(new Uint16Array(8));t[3]=4095&t[3]|16384,t[4]=16383&t[4]|32768;const e=e=>t[e].toString(16).padStart(4,"0");return e(0)+e(1)+"-"+e(2)+"-"+e(3)+"-"+e(4)+"-"+e(5)+e(6)+e(7)}function o(){return`{${i().toUpperCase()}}`}function s(){return`{${i()}}`}function a(t){const e=t.toUpperCase();return"{"!==t[0]?`{${e}}`:e}},19647:(t,e,n)=>{n.r(e),n.d(e,{default:()=>oe});var r=n(90237),i=n(5503),o=n(49186),s=n(53966),a=n(92071),l=n(74887),u=n(10107),c=n(79901),h=(n(44208),n(87811),n(36005)),p=n(40608),f=n(43937),d=n(35666),m=n(4146),y=n(63074),g=n(16131),_=n(8303),v=n(25036),x=n(69540),M=n(25482),w=n(77690),b=n(29242),A=n(37585),P=n(38954);const S=(0,n(51850).vt)(),I=(0,b.vt)(),O=(0,b.vt)(),E=(0,b.vt)();function R(t,e,n){return(0,P.i)(S,e[0],e[1],1),(0,P.q)(S,S,(0,w.mg)(I,n)),0===S[2]?(0,A.hZ)(t,S[0],S[1]):(0,A.hZ)(t,S[0]/S[2],S[1]/S[2])}function T(t,e,n){return L(O,e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]),L(E,n[0],n[1],n[2],n[3],n[4],n[5],n[6],n[7]),(0,w.lw)(t,(0,w.KC)(O,O),E),0!==t[8]&&(t[0]/=t[8],t[1]/=t[8],t[2]/=t[8],t[3]/=t[8],t[4]/=t[8],t[5]/=t[8],t[6]/=t[8],t[7]/=t[8],t[8]/=t[8]),t}function L(t,e,n,r,i,o,s,a,l){(0,w.hZ)(t,e,r,o,n,i,s,1,1,1),(0,P.i)(S,a,l,1),(0,w.KC)(I,t);const[u,c,h]=(0,P.q)(S,S,(0,w.mg)(I,I));return(0,w.hZ)(I,u,0,0,0,c,0,0,0,h),(0,w.lw)(t,I,t)}var B=n(90629),Z=n(48163),j=n(86738),C=n(39829),$=n(80586),U=n(16930);let N=class extends x.A{projectOrWarn(t,e){if(null==t)return t;const{geometry:n,pending:r}=(0,$.projectOrLoad)(t,e);return r?null:r||n?n:(s.A.getLogger(this).warn("geometry could not be projected to the spatial reference",{georeference:this,geometry:t,sourceSpatialReference:t.spatialReference,targetSpatialReference:e}),null)}};N=(0,r._)([(0,p.$)("esri.layers.support.GeoreferenceBase")],N);const F=N,q=(0,b.vt)(),Y=(0,Z.vt)();let X=class extends M.A{};(0,r._)([(0,u.MZ)({type:Number,json:{write:{isRequired:!0}}})],X.prototype,"x",void 0),(0,r._)([(0,u.MZ)({type:Number,json:{write:{isRequired:!0}}})],X.prototype,"y",void 0),X=(0,r._)([(0,p.$)("esri.layers.support.ControlPointsGeoreference.ControlPointJSONType")],X);let D=class extends x.A{constructor(){super(...arguments),this.sourcePoint=null,this.mapPoint=null}};(0,r._)([(0,u.MZ)()],D.prototype,"sourcePoint",void 0),(0,r._)([(0,u.MZ)({type:j.A})],D.prototype,"mapPoint",void 0),D=(0,r._)([(0,p.$)("esri.layers.support.ControlPointsGeoreference.ControlPoint")],D);let z=class extends(M.A.JSONSupportMixin(F)){constructor(t){super(t),this.controlPoints=null,this.height=0,this.type="control-points",this.width=0}readControlPoints(t,e){const n=U.A.fromJSON(e.spatialReference),r=(0,b.fA)(...e.coefficients,1);return t.map((t=>((0,A.hZ)(Y,t.x,t.y),R(Y,Y,r),{sourcePoint:t,mapPoint:new j.A({x:Y[0],y:Y[1],spatialReference:n})})))}writeControlPoints(t,e,n,r){if(null!=this.transform)null!=t&&V(t[0])&&(e.controlPoints=t.map((t=>{const e=t.sourcePoint;return{x:e.x,y:e.y}})),e.spatialReference=t[0].mapPoint.spatialReference.toJSON(),e.coefficients=this.transform.slice(0,8));else{const t=new o.A("web-document-write:invalid-georeference","Invalid 'controlPoints', 'width', 'height' configuration. Make sure the parent media element is loaded i.e. the ImageElement or VideoElement set as 'MediaLayer.source'.",{layer:r?.layer,georeference:this});r?.messages?r.messages.push(t):s.A.getLogger(this).error(t.name,t.message)}}get coords(){if(null==this.controlPoints)return null;const t=this._updateTransform(q);if(null==t||!V(this.controlPoints[0]))return null;const e=this.controlPoints[0].mapPoint.spatialReference;return function(t,e,n,r){const i=(0,Z.fA)(0,n),o=(0,Z.fA)(0,0),s=(0,Z.fA)(e,0),a=(0,Z.fA)(e,n);return R(i,i,t),R(o,o,t),R(s,s,t),R(a,a,t),new C.A({rings:[[i,o,s,a,i]],spatialReference:r})}(t,this.width,this.height,e)}set coords(t){if(null==this.controlPoints||!V(this.controlPoints[0]))return;const e=this.controlPoints[0].mapPoint.spatialReference;if(null==(t=this.projectOrWarn(t,e)))return;const{width:n,height:r}=this,{rings:[[i,o,s,a]]}=t,l={sourcePoint:(0,B.tc)(0,r),mapPoint:new j.A({x:i[0],y:i[1],spatialReference:e})},u={sourcePoint:(0,B.tc)(0,0),mapPoint:new j.A({x:o[0],y:o[1],spatialReference:e})},c={sourcePoint:(0,B.tc)(n,0),mapPoint:new j.A({x:s[0],y:s[1],spatialReference:e})},h={sourcePoint:(0,B.tc)(n,r),mapPoint:new j.A({x:a[0],y:a[1],spatialReference:e})};V(l)&&V(u)&&V(c)&&V(h)&&(rt(q,l,u,c,h),this.controlPoints=this.controlPoints.map((({sourcePoint:t})=>((0,A.hZ)(Y,t.x,t.y),R(Y,Y,q),{sourcePoint:t,mapPoint:new j.A({x:Y[0],y:Y[1],spatialReference:e})}))))}get inverseTransform(){return null==this.transform?null:(0,w.B8)((0,b.vt)(),this.transform)}get transform(){return this._updateTransform()}toMap(t){if(null==t||null==this.transform||null==this.controlPoints||!V(this.controlPoints[0]))return null;(0,A.hZ)(Y,t.x,t.y);const e=this.controlPoints[0].mapPoint.spatialReference;return R(Y,Y,this.transform),new j.A({x:Y[0],y:Y[1],spatialReference:e})}toSource(t){if(null==t||null==this.inverseTransform||null==this.controlPoints||!V(this.controlPoints[0]))return null;const e=this.controlPoints[0].mapPoint.spatialReference;return t=t.normalize(),null==(t=(0,$.projectOrLoad)(t,e).geometry)?null:((0,A.hZ)(Y,t.x,t.y),R(Y,Y,this.inverseTransform),(0,B.tc)(Y[0],Y[1]))}toSourceNormalized(t){const e=this.toSource(t);return null!=e&&(e.x/=this.width,e.y/=this.height),e}_updateTransform(t){const{controlPoints:e,width:n,height:r}=this;if(!(null!=e&&n>0&&r>0))return null;const[i,o,s,a]=e;if(!V(i))return null;const l=i.mapPoint.spatialReference,u=this._projectControlPoint(o,l),c=this._projectControlPoint(s,l),h=this._projectControlPoint(a,l);if(!u.valid||!c.valid||!h.valid)return null;if(!V(u.controlPoint))return null;null==t&&(t=(0,b.vt)());let p=null;return p=V(c.controlPoint)&&V(h.controlPoint)?rt(t,i,u.controlPoint,c.controlPoint,h.controlPoint):V(c.controlPoint)?function(t,e,n,r){return nt(k,J,e),nt(H,K,n),nt(G,Q,r),(0,A.Cc)(W,k,H,.5),(0,A.e$)(W,G,W,Math.PI),(0,A.Cc)(tt,J,K,.5),(0,A.e$)(tt,Q,tt,Math.PI),at(t,k,H,G,W,J,K,Q,tt)}(t,i,u.controlPoint,c.controlPoint):function(t,e,n){return nt(k,J,e),nt(H,K,n),(0,A.e$)(G,H,k,et),(0,A.e$)(W,k,H,et),(0,A.e$)(Q,K,J,-et),(0,A.e$)(tt,J,K,-et),at(t,k,H,G,W,J,K,Q,tt)}(t,i,u.controlPoint),p.every((t=>0===t))?null:p}_projectControlPoint(t,e){if(!V(t))return{valid:!0,controlPoint:t};const{sourcePoint:n,mapPoint:r}=t,{geometry:i,pending:o}=(0,$.projectOrLoad)(r,e);return o?{valid:!1,controlPoint:null}:o||i?{valid:!0,controlPoint:{sourcePoint:n,mapPoint:i}}:(s.A.getLogger(this).warn("map point could not be projected to the spatial reference",{georeference:this,controlPoint:t,sourceSpatialReference:r.spatialReference,targetSpatialReference:e}),{valid:!1,controlPoint:null})}};function V(t){return null!=t?.sourcePoint&&null!=t.mapPoint}(0,r._)([(0,u.MZ)({type:[D],json:{write:{allowNull:!1,isRequired:!0,target:{controlPoints:{type:[X],isRequired:!0},coefficients:{type:[Number],isRequired:!0},spatialReference:{type:U.A,isRequired:!0}}}}})],z.prototype,"controlPoints",void 0),(0,r._)([(0,h.w)("controlPoints")],z.prototype,"readControlPoints",null),(0,r._)([(0,f.K)("controlPoints")],z.prototype,"writeControlPoints",null),(0,r._)([(0,u.MZ)({clonable:!1})],z.prototype,"coords",null),(0,r._)([(0,u.MZ)({type:Number,nonNullable:!0,json:{write:{isRequired:!0}}})],z.prototype,"height",void 0),(0,r._)([(0,u.MZ)({readOnly:!0})],z.prototype,"inverseTransform",null),(0,r._)([(0,u.MZ)({readOnly:!0})],z.prototype,"transform",null),(0,r._)([(0,u.MZ)({type:Number,nonNullable:!0,json:{write:{isRequired:!0}}})],z.prototype,"width",void 0),z=(0,r._)([(0,p.$)("esri.layers.support.ControlPointsGeoreference")],z);const k=(0,Z.vt)(),H=(0,Z.vt)(),G=(0,Z.vt)(),W=(0,Z.vt)(),J=(0,Z.vt)(),K=(0,Z.vt)(),Q=(0,Z.vt)(),tt=(0,Z.vt)(),et=Math.PI/2;function nt(t,e,n){(0,A.hZ)(t,n.sourcePoint.x,n.sourcePoint.y),(0,A.hZ)(e,n.mapPoint.x,n.mapPoint.y)}function rt(t,e,n,r,i){return nt(k,J,e),nt(H,K,n),nt(G,Q,r),nt(W,tt,i),at(t,k,H,G,W,J,K,Q,tt)}const it=new Array(8).fill(0),ot=new Array(8).fill(0);function st(t,e,n,r,i){return t[0]=e[0],t[1]=e[1],t[2]=n[0],t[3]=n[1],t[4]=r[0],t[5]=r[1],t[6]=i[0],t[7]=i[1],t}function at(t,e,n,r,i,o,s,a,l){return T(t,st(it,e,n,r,i),st(ot,o,s,a,l))}const lt=z;var ut=n(78888),ct=n(21287),ht=n(84952),pt=n(13069),ft=n(4902),dt=n(92474),mt=n(5443),yt=n(21325);const gt=(0,Z.vt)();let _t=class extends F{constructor(t){super(t),this.bottomLeft=null,this.bottomRight=null,this.topLeft=null,this.topRight=null,this.type="corners"}get coords(){let{topLeft:t,topRight:e,bottomLeft:n,bottomRight:r}=this;if(null==t||null==e||null==n||null==r)return null;const i=t.spatialReference;return e=this.projectOrWarn(e,i),n=this.projectOrWarn(n,i),r=this.projectOrWarn(r,i),null==e||null==n||null==r?null:new C.A({rings:[[[n.x,n.y],[t.x,t.y],[e.x,e.y],[r.x,r.y],[n.x,n.y]]],spatialReference:i})}set coords(t){const{topLeft:e}=this;if(null==e)return;const n=e.spatialReference;if(null==(t=this.projectOrWarn(t,n)))return;const{rings:[[r,i,o,s]]}=t;this.bottomLeft=new j.A({x:r[0],y:r[1],spatialReference:n}),this.topLeft=new j.A({x:i[0],y:i[1],spatialReference:n}),this.topRight=new j.A({x:o[0],y:o[1],spatialReference:n}),this.bottomRight=new j.A({x:s[0],y:s[1],spatialReference:n})}toSourceNormalized(t){const{topLeft:e,topRight:n,bottomRight:r,bottomLeft:i}=this;if(null==t||null==e||null==n||null==r||null==i)return null;const o=e.spatialReference;t=t.normalize();const s=(0,$.projectOrLoad)(t,o).geometry;if(null==s)return null;(0,A.hZ)(gt,s.x,s.y);const a=T((0,b.vt)(),[e.x,e.y,i.x,i.y,n.x,n.y,r.x,r.y],[0,0,0,1,1,0,1,1]);return R(gt,gt,a),(0,B.tc)(gt[0],gt[1])}};(0,r._)([(0,u.MZ)({clonable:!1})],_t.prototype,"coords",null),(0,r._)([(0,u.MZ)({type:j.A})],_t.prototype,"bottomLeft",void 0),(0,r._)([(0,u.MZ)({type:j.A})],_t.prototype,"bottomRight",void 0),(0,r._)([(0,u.MZ)({type:j.A})],_t.prototype,"topLeft",void 0),(0,r._)([(0,u.MZ)({type:j.A})],_t.prototype,"topRight",void 0),_t=(0,r._)([(0,p.$)("esri.layers.support.CornersGeoreference")],_t);const vt=_t;var xt=n(34727),Mt=n(34304);let wt=class extends F{constructor(t){super(t),this.extent=null,this.rotation=0,this.type="extent-and-rotation"}get coords(){if(null==this.extent)return null;const{xmin:t,ymin:e,xmax:n,ymax:r,spatialReference:i}=this.extent;let o;if(this.rotation){const{x:i,y:s}=this.extent.center,a=bt(i,s,this.rotation);o=[a(t,e),a(t,r),a(n,r),a(n,e)],o.push(o[0])}else o=[[t,e],[t,r],[n,r],[n,e],[t,e]];return new C.A({rings:[o],spatialReference:i})}set coords(t){if(null==t||null==this.extent)return;const e=this.extent.spatialReference;if(t=this.projectOrWarn(t,e),null==t?.extent)return;const{rings:[[n,r,i]],extent:{center:{x:o,y:s}}}=t,a=(0,xt.KJ)(Math.PI/2-Math.atan2(r[1]-n[1],r[0]-n[0])),l=bt(o,s,-a),[u,c]=l(n[0],n[1]),[h,p]=l(i[0],i[1]);this.extent=new mt.A({xmin:u,ymin:c,xmax:h,ymax:p,spatialReference:e}),this.rotation=a}toSourceNormalized(t){const{extent:e,rotation:n}=this;if(null==t||null==e)return null;const{xmin:r,ymin:i,xmax:o,ymax:s,center:a,spatialReference:l}=e;t=t.normalize();const u=(0,$.projectOrLoad)(t,l).geometry;if(null==u)return null;let c=u.x,h=u.y;return n&&([c,h]=bt(a.x,a.y,-n)(c,h)),(0,B.tc)((0,xt.hs)(c,r,o,0,1),(0,xt.hs)(h,s,i,0,1))}};function bt(t,e,n){const r=(0,Mt.DF)(n),i=Math.cos(r),o=Math.sin(r);return(n,r)=>[i*(n-t)+o*(r-e)+t,i*(r-e)-o*(n-t)+e]}function At(t,e){const n=(0,d.aB)(e);return function(t){return"media"===t?.type}(t)&&!!t.portalItem&&null!=n&&n>d.Gr.PORTAL_ITEM}function Pt(t,e,n){return{enabled:!At(n?.layer,n?.origin),ignoreOrigin:!0}}(0,r._)([(0,u.MZ)({clonable:!1})],wt.prototype,"coords",null),(0,r._)([(0,u.MZ)({type:mt.A})],wt.prototype,"extent",void 0),(0,r._)([(0,u.MZ)({type:Number})],wt.prototype,"rotation",void 0),wt=(0,r._)([(0,p.$)("esri.layers.support.ExtentAndRotationGeoreference")],wt);const St={json:{name:"url",type:String,write:{overridePolicy:Pt}}},It={readOnly:!0,json:{read:!1,write:{target:"mediaType",overridePolicy:Pt}}},Ot={types:{key:"type",base:F,typeMap:{"control-points":lt,corners:vt,"extent-and-rotation":wt}},json:{types:{key:"type",base:F,typeMap:{"control-points":lt}},write:{overridePolicy:()=>({enabled:!0,ignoreOrigin:!0})}}};let Et=class extends(ft.A.NumericIdentifiableMixin((0,a.P)(dt.A))){constructor(t){super(t),this.georeference=null,this.opacity=1}readGeoreference(t){return lt.fromJSON(t)}writeGeoreference(t,e,n,r){const i=r?.resources?.pendingOperations,a=()=>{const i=function(t,e,n){if(!t||"control-points"===t.type)return t;const{coords:r}=t;if(5!==r?.rings[0]?.length)return null;const[i,o,s,a]=r.rings[0],{spatialReference:l}=r;return new lt({controlPoints:[{mapPoint:new j.A({x:i[0],y:i[1],spatialReference:l}),sourcePoint:(0,B.tc)(0,n)},{mapPoint:new j.A({x:o[0],y:o[1],spatialReference:l}),sourcePoint:(0,B.tc)(0,0)},{mapPoint:new j.A({x:s[0],y:s[1],spatialReference:l}),sourcePoint:(0,B.tc)(e,0)},{mapPoint:new j.A({x:a[0],y:a[1],spatialReference:l}),sourcePoint:(0,B.tc)(e,n)}],width:e,height:n})}(this.georeference,this.contentWidth,this.contentHeight);if(i){if("control-points"!==t.type&&s.A.getLogger(this).warn(`only georeference of type 'control-points' may be persisted. The georeference of type '${t.type}' has been automatically converted.`),4!==i.controlPoints?.length&&r?.messages)return void r.messages.push(new o.A("property:unsupported","only 'control-points' georeference with 4 control points may be persisted."));e[n]=i.write({},r)}};if("control-points"!==t.type&&!this.loaded&&i)return e[n]={},void i.push(this.load().then(a));a()}get contentWidth(){return 0}get contentHeight(){return 0}toSource(t){const{georeference:e,contentWidth:n,contentHeight:r}=this;if(null==t||null==e||0===n||0===r)return null;const i=e.toSourceNormalized(t);return null==i?null:(i.x*=n,i.y*=r,i)}};(0,r._)([(0,u.MZ)(Ot)],Et.prototype,"georeference",void 0),(0,r._)([(0,h.w)("georeference")],Et.prototype,"readGeoreference",null),(0,r._)([(0,f.K)("georeference")],Et.prototype,"writeGeoreference",null),(0,r._)([(0,u.MZ)({json:{read:!1,write:!1}})],Et.prototype,"opacity",void 0),Et=(0,r._)([(0,p.$)("esri.layers.support.MediaElementBase")],Et);const Rt=Et;var Tt=n(85648);const Lt=Symbol("ImageElementInstance"),Bt=Symbol("VideoElementInstance");function Zt(t){return function(t){return null!=t&&"object"==typeof t&&Lt in t}(t)||function(t){return null!=t&&"object"==typeof t&&Bt in t}(t)}var jt,Ct=n(97159);let $t=class extends Rt{static{jt=Lt}constructor(t){super(t),this.animationOptions=null,this.content=null,this.image=null,this.type="image",this[jt]=!0,this.image=null}load(){const t=this.image;if("string"==typeof t){const e=(0,ct.M5)(t).then((t=>{this._set("content",t)}));this.addResolvingPromise(e)}else if(t instanceof HTMLImageElement){const e=t.decode().then((()=>{this._set("content",t)}));this.addResolvingPromise(e)}else t?this._set("content",t):this.addResolvingPromise(Promise.reject(new o.A("image-element:invalid-image-type","Invalid image type",{image:t})));return Promise.resolve(this)}get contentWidth(){return null==this.content?0:this.content instanceof HTMLImageElement?this.content.naturalWidth:this.content.width}get contentHeight(){return null==this.content?0:this.content instanceof HTMLImageElement?this.content.naturalHeight:this.content.height}readImage(t,e,n){return(0,Ct.f)(e.url,n)}writeImage(t,e,n,r){if(null==t)return;const i=r?.portalItem,o=r?.resources;if(!i||!o)return void("string"==typeof t&&(e[n]=(0,Ct.t)(t,r)));const s=function(t){return"string"==typeof t&&!(0,ht.DB)(t)&&!(0,ht.w8)(t)}(t)?t:null;if(s){if(null==(0,Ct.i)(s))return void(e[n]=s);const t=(0,Ct.t)(s,{...r,verifyItemRelativeUrls:r?.verifyItemRelativeUrls?{writtenUrls:r.verifyItemRelativeUrls.writtenUrls,rootPath:void 0}:void 0},Ct.M.NO);if(i&&t&&!(0,ht.oP)(t))return o.toKeep.push({resource:i.resourceFromPath(t),compress:!1}),void(e[n]=t)}e[n]="<pending>",o.pendingOperations.push(async function(t){return"string"==typeof t?(0,ht.DB)(t)?(0,ht.N9)(t):(await(0,ut.A)(t,{responseType:"blob"})).data:new Promise((e=>function(t){if(t instanceof HTMLCanvasElement)return t;const e=t instanceof HTMLImageElement?t.naturalWidth:t.width,n=t instanceof HTMLImageElement?t.naturalHeight:t.height,r=document.createElement("canvas"),i=r.getContext("2d");return r.width=e,r.height=n,t instanceof HTMLImageElement?i.drawImage(t,0,0,t.width,t.height):t instanceof ImageData&&i.putImageData(t,0,0),r}(t).toBlob(e)))}(t).then((t=>{const r=function(t,e){const n=(0,pt.lk)(),r=`${(0,ht.fj)("media",n)}.${(0,Tt.n)({type:"blob",blob:t})}`;return e.resourceFromPath(r)}(t,i);e[n]=r.itemRelativeUrl,o.toAdd.push({resource:r,content:{type:"blob",blob:t},compress:!1,finish:t=>{this.image=t.url}})})))}};(0,r._)([(0,u.MZ)()],$t.prototype,"animationOptions",void 0),(0,r._)([(0,u.MZ)({readOnly:!0})],$t.prototype,"content",void 0),(0,r._)([(0,u.MZ)({readOnly:!0})],$t.prototype,"contentWidth",null),(0,r._)([(0,u.MZ)({readOnly:!0})],$t.prototype,"contentHeight",null),(0,r._)([(0,u.MZ)(St)],$t.prototype,"image",void 0),(0,r._)([(0,h.w)("image",["url"])],$t.prototype,"readImage",null),(0,r._)([(0,f.K)("image")],$t.prototype,"writeImage",null),(0,r._)([(0,u.MZ)(It)],$t.prototype,"type",void 0),$t=(0,r._)([(0,p.$)("esri.layers.support.ImageElement")],$t);const Ut=$t;var Nt=n(62885),Ft=n(65529),qt=n(61893),Yt=n(36708),Xt=n(19419),Dt=n(12176),zt=n(6518),Vt=n(69622),kt=n(89056);let Ht=class extends Vt.A{constructor(t){super(t)}get bounds(){const t=this.coords;return null==t?.extent?null:(0,Xt.VY)(t.extent)}get coords(){const t=this.element.georeference?.coords;return(0,$.projectOrLoad)(t,this.spatialReference).geometry}get normalizedCoords(){return C.A.fromJSON((0,kt.jZ)(this.coords))}get normalizedBounds(){const t=null!=this.normalizedCoords?this.normalizedCoords.extent:null;return null!=t?(0,Xt.VY)(t):null}};(0,r._)([(0,u.MZ)()],Ht.prototype,"spatialReference",void 0),(0,r._)([(0,u.MZ)()],Ht.prototype,"element",void 0),(0,r._)([(0,u.MZ)()],Ht.prototype,"bounds",null),(0,r._)([(0,u.MZ)()],Ht.prototype,"coords",null),(0,r._)([(0,u.MZ)()],Ht.prototype,"normalizedCoords",null),(0,r._)([(0,u.MZ)()],Ht.prototype,"normalizedBounds",null),Ht=(0,r._)([(0,p.$)("esri.layers.support.MediaElementView")],Ht);var Gt,Wt=n(37955);let Jt=class extends Rt{static{Gt=Bt}constructor(t){super(t),this.autoplay=!0,this.content=null,this.type="video",this[Gt]=!0}load(){const t=this.video;return"string"==typeof t?this.addResolvingPromise(this._preProcessVideoUrl(t).then((async t=>{const e=document.createElement("video");return e.src=encodeURI(t),e.crossOrigin="anonymous",e.autoplay=this.autoplay,e.muted=!0,e.loop=!0,e.playsInline=!0,this._loadVideo(e).then((()=>{this._set("content",e)}))}))):t instanceof HTMLVideoElement?this.addResolvingPromise(this._loadVideo(t).then((()=>{this._set("content",t)}))):this.addResolvingPromise(Promise.reject(new o.A("video-element:invalid-video-type","Invalid video type",{video:t}))),Promise.resolve(this)}get contentWidth(){return this.content?.videoWidth??0}get contentHeight(){return this.content?.videoHeight??0}get currentTime(){return this.content?.currentTime}set currentTime(t){if(!this.content)return;const e=(0,xt.qE)(t,0,this.content.duration);"fastSeek"in this.content?this.content.fastSeek(e):this.content.currentTime=e,this.content.play().then((()=>{this.content?.pause()})).catch((()=>{}))}get duration(){return this.content?.duration}set video(t){"not-loaded"===this.loadStatus?this._set("video",t):s.A.getLogger(this).error("#video","video cannot be changed after the element is loaded.")}writeVideo(t,e,n,r){if(!t)return void(r?.messages&&r.messages.push(new o.A("video-element:unsupported-video","video source is missing")));const i=function(t){return"string"==typeof t&&!(0,ht.DB)(t)&&!(0,ht.w8)(t)}(t)?t:null;if(!i)return void(r?.messages&&r.messages.push(new o.A("video-element:unsupported-video","video source must be an absolute url")));!(0,ht.oP)(i)&&r?.blockedRelativeUrls&&r.blockedRelativeUrls.push(i);const s=(0,ht.s2)(i);(0,Ct.i)(s)?r?.messages&&r.messages.push(new o.A("video-element:unsupported-video","video source cannot be an item resource")):e[n]=s}async _preProcessVideoUrl(t){if((0,ht.zs)(t))return(0,ht.yM)(t);try{return await(0,ut.A)(t,{method:"head"}),t}catch{try{return(0,ht.yM)(t,!0)}catch{return t}}}_loadVideo(t){return new Promise(((e,n)=>{const r=(0,Wt.Oo)(t,"canplay",(()=>{this.removeHandles("canplay"),this.autoplay?t.play().then(e,n):e()}));this.addHandles(r,"canplay"),"anonymous"!==t.crossOrigin&&(t.crossOrigin="anonymous",(0,ht.w8)(t.src)||(t.src=t.src))}))}};(0,r._)([(0,u.MZ)()],Jt.prototype,"autoplay",void 0),(0,r._)([(0,u.MZ)({readOnly:!0})],Jt.prototype,"content",void 0),(0,r._)([(0,u.MZ)({readOnly:!0})],Jt.prototype,"contentWidth",null),(0,r._)([(0,u.MZ)({readOnly:!0})],Jt.prototype,"contentHeight",null),(0,r._)([(0,u.MZ)({type:Number})],Jt.prototype,"currentTime",null),(0,r._)([(0,u.MZ)({type:Number})],Jt.prototype,"duration",null),(0,r._)([(0,u.MZ)(St)],Jt.prototype,"video",null),(0,r._)([(0,f.K)("video")],Jt.prototype,"writeVideo",null),(0,r._)([(0,u.MZ)(It)],Jt.prototype,"type",void 0),Jt=(0,r._)([(0,p.$)("esri.layers.support.VideoElement")],Jt);const Kt=Jt,Qt={key:"type",defaultKeyValue:"image",base:Rt,typeMap:{image:Ut,video:Kt}},te=i.A.ofType(Qt);let ee=class extends(dt.A.LoadableMixin(qt.A.EsriPromiseMixin(Ft.A.EventedAccessor))){constructor(t){super(t),this._index=new zt.F,this._elementViewsMap=new Map,this._elementsIndexes=new Map,this._elementsChangedHandler=t=>{for(const e of t.removed){const t=this._elementViewsMap.get(e);this._elementViewsMap.delete(e),this._index.delete(t),this.removeHandles(t),t.destroy(),this.notifyChange("fullExtent")}const{spatialReference:e}=this;for(const n of t.added){if(this._elementViewsMap.get(n))continue;const t=new Ht({spatialReference:e,element:n});this._elementViewsMap.set(n,t);const r=(0,Yt.wB)((()=>t.coords),(()=>this._updateIndexForElement(t,!1)));this._updateIndexForElement(t,!0),this.addHandles(r,t)}this._elementsIndexes.clear(),this.elements.forEach(((t,e)=>this._elementsIndexes.set(t,e))),this.emit("refresh")},this.elements=new te}async load(t){if((0,l.Te)(t),!this.spatialReference){const t=this.elements.find((t=>null!=t.georeference?.coords));this._set("spatialReference",t?t.georeference.coords.spatialReference:U.A.WGS84)}return this._elementsChangedHandler({added:this.elements.items,removed:[]}),this.addHandles(this.elements.on("change",this._elementsChangedHandler)),this}destroy(){this._index.clear(),this._elementViewsMap.clear(),this._elementsIndexes.clear()}set elements(t){this._set("elements",(0,Nt.V)(t,this._get("elements"),te))}get fullExtent(){if("not-loaded"===this.loadStatus)return null;const t=this._index.fullBounds;return null==t?null:new mt.A({xmin:t[0],ymin:t[1],xmax:t[2],ymax:t[3],spatialReference:this.spatialReference})}set spatialReference(t){"not-loaded"===this.loadStatus?this._set("spatialReference",t):s.A.getLogger(this).error("#spatialReference","spatialReference cannot be changed after the source is loaded.")}async queryElements(t,e){await this.load(),await(0,$.initializeProjection)(t.spatialReference,this.spatialReference,null,e);const n=(0,yt.aI)(t.spatialReference,this.spatialReference)?t:(0,$.project)(t,this.spatialReference);if(!n)return[];const r=n.normalize(),i=[];for(const t of r)this._index.forEachInBounds((0,Xt.VY)(t),(({normalizedCoords:e,element:n})=>{null!=e&&(0,Dt.fA)(t,e)&&i.push(n)}));return i.sort(((t,e)=>this._elementsIndexes.get(t)-this._elementsIndexes.get(e))),i}hasElement(t){return this.elements.includes(t)}_updateIndexForElement(t,e){const n=t.normalizedBounds,r=this._index.has(t),i=null!=n;this._index.delete(t),i&&this._index.set(t,n),this.notifyChange("fullExtent"),e||(r!==i?this.emit("refresh"):this.emit("change",{element:t.element}))}};(0,r._)([(0,u.MZ)()],ee.prototype,"elements",null),(0,r._)([(0,u.MZ)({readOnly:!0})],ee.prototype,"fullExtent",null),(0,r._)([(0,u.MZ)()],ee.prototype,"spatialReference",null),ee=(0,r._)([(0,p.$)("esri.layers.support.LocalMediaElementSource")],ee);const ne=ee;var re=n(92935);let ie=class extends((0,y.dM)((0,v.j)((0,g.q)((0,_.A)((0,a.P)(m.A)))))){constructor(t){super(t),this.effectiveSource=null,this.georeference=null,this.copyright=null,this.operationalLayerType="MediaLayer",this.spatialReference=null,this.type="media",this._debouncedSaveOperations=(0,l.sg)((async(t,e,r)=>{const{save:i,saveAs:o}=await n.e(3561).then(n.bind(n,63561));switch(t){case re.X.SAVE:return i(this,e);case re.X.SAVE_AS:return o(this,r,e)}})),this.source=new ne}load(t){return this.addResolvingPromise(this._doLoad(t)),Promise.resolve(this)}async _doLoad(t){await this.loadFromPortal({supportedTypes:["Media Layer"]},t);let e=this.source;if(!e)throw new o.A("media-layer:source-missing","Set 'MediaLayer.source' before loading the layer.");const n=this._getSourceOverride(e,this.georeference);n&&(this.setAtOrigin("source",n,"web-map"),this.setAtOrigin("source",n,"web-scene"),e=n);const r=Zt(e)?new ne({elements:new i.A([e])}):e;this._set("effectiveSource",r),this.spatialReference&&(r.spatialReference=this.spatialReference),await r.load(t),this.spatialReference=r.spatialReference}destroy(){this.effectiveSource?.destroy(),this.effectiveSource!==this.source&&this.source?.destroy()}readGeoreference(t,e){return t&&"itemId"in e&&e.itemId?t:void 0}get fullExtent(){return this.loaded?this.effectiveSource.fullExtent:null}get source(){return this._get("source")}set source(t){"loaded"!==this.loadStatus&&"failed"!==this.loadStatus?this._set("source",t):s.A.getLogger(this).error("#source","source cannot be changed after the layer is loaded.")}castSource(t){return t?Array.isArray(t)?new ne({elements:new i.A(t)}):t instanceof i.A?new ne({elements:t}):t:null}readSource(t,e,n){if("itemId"in e&&e.itemId)return;const r=this._createSource(e);return r?.read(e,n),r}writeSource(t,e,n,r){if(t&&t instanceof ne){const e=t.elements.length;if(1!==e)return void(r?.messages&&r.messages.push(new o.A("media-layer:unsupported-source",`local media element source can only be persisted if it contains exactly one ImageElement, but it has ${e}.`)));t=t.elements.at(0)}Zt(t)?t.write(e,r):r?.messages&&(t?r.messages.push(new o.A("media-layer:unsupported-source","only media elements of type 'ImageElement' or 'VideoElement' can be persisted")):r.messages.push(new o.A("media-layer:unsupported-source","the media layer is missing a source")))}async save(t){return this._debouncedSaveOperations(re.X.SAVE,t)}async saveAs(t,e){return this._debouncedSaveOperations(re.X.SAVE_AS,e,t)}_createSource(t){if("mediaType"in t)switch(t.mediaType){case"image":return new Ut;case"video":return new Kt}return null}_getSourceOverride(t,e){if(Zt(t)&&this.originIdOf("source")===d.Gr.PORTAL_ITEM&&e&&(this.originIdOf("georeference")===d.Gr.WEB_MAP||this.originIdOf("georeference")===d.Gr.WEB_SCENE)){const n=t.toJSON(),r=this._createSource(n);return r.read({...n},{origin:"portal-item"}),r.read({georeference:e},{origin:"web-map"}),r.read({georeference:e},{origin:"web-scene"}),r}return null}};(0,r._)([(0,u.MZ)({readOnly:!0})],ie.prototype,"effectiveSource",void 0),(0,r._)([(0,u.MZ)({readOnly:!0,json:{read:!1,write:!1,origins:{"web-document":{read:!0}}}})],ie.prototype,"georeference",void 0),(0,r._)([(0,h.w)("web-document","georeference")],ie.prototype,"readGeoreference",null),(0,r._)([(0,u.MZ)({type:String})],ie.prototype,"copyright",void 0),(0,r._)([(0,u.MZ)({readOnly:!0})],ie.prototype,"fullExtent",null),(0,r._)([(0,u.MZ)({type:["MediaLayer"]})],ie.prototype,"operationalLayerType",void 0),(0,r._)([(0,u.MZ)({type:["show","hide"]})],ie.prototype,"listMode",void 0),(0,r._)([(0,u.MZ)({nonNullable:!0,json:{write:{enabled:!0,allowNull:!1,target:{url:{type:String},mediaType:{type:["image","video"]},georeference:{type:lt}},overridePolicy(t,e,n){return{enabled:!0,allowNull:!1,ignoreOrigin:At(this,n?.origin)&&Zt(t)&&!!t.georeference&&t.originIdOf("georeference")>d.Gr.PORTAL_ITEM}}}}})],ie.prototype,"source",null),(0,r._)([(0,c.w)("source")],ie.prototype,"castSource",null),(0,r._)([(0,h.w)("source",["url"])],ie.prototype,"readSource",null),(0,r._)([(0,f.K)("source")],ie.prototype,"writeSource",null),(0,r._)([(0,u.MZ)()],ie.prototype,"spatialReference",void 0),(0,r._)([(0,u.MZ)({readOnly:!0})],ie.prototype,"type",void 0),ie=(0,r._)([(0,p.$)("esri.layers.MediaLayer")],ie);const oe=ie},21287:(t,e,n)=>{n.d(e,{M5:()=>h,eV:()=>c});var r=n(78888),i=n(49186),o=n(74887),s=n(84952),a=n(26306);let l=null,u=!0;function c(t,e,n,r){if(!e||!n)throw new Error("Cannot construct image data without dimensions");if(u)try{return new ImageData(t,e,n)}catch(t){u=!1}const i=function(t,e,n){return n||(l||(l=document.createElement("canvas"),l.width=1,l.height=1),n=l),n.getContext("2d").createImageData(t,e)}(e,n,r);return i.data.set(t,0),i}async function h(t,e){const{arrayBuffer:l,mediaType:u}=await async function(t,e){const n=(0,s.r$)(t);if(n?.isBase64)return{arrayBuffer:(0,a.M)(n.data),mediaType:n.mediaType};const i=await(0,r.A)(t,{responseType:"array-buffer",...e});return{arrayBuffer:i.data,mediaType:i.getHeader?.("Content-Type")??""}}(t,e),c="image/png"===u;if("image/gif"===u){const{isAnimatedGIF:t,parseGif:r}=await n.e(820).then(n.bind(n,10820));if(t(l))return r(l,e)}if(c){const{isAnimatedPNG:t,parseApng:r}=await n.e(2390).then(n.bind(n,22390));if(t(l))return r(l,e)}return async function(t,e){const n=window.URL.createObjectURL(t);try{const{data:t}=await(0,r.A)(n,{...e,responseType:"image"});return t}catch(t){if(!(0,o.zf)(t))throw new i.A("invalid-image",`Could not fetch requested image at ${n}`);throw t}finally{window.URL.revokeObjectURL(n)}}(new Blob([l],{type:u}),e)}},25036:(t,e,n)=>{n.d(e,{j:()=>s});var r=n(90237),i=n(10107),o=(n(44208),n(53966),n(87811),n(40608));const s=t=>{let e=class extends t{constructor(){super(...arguments),this.minScale=0,this.maxScale=0}get effectiveScaleRange(){const t={minScale:this.minScale,maxScale:this.maxScale},e=this.parent;e&&"effectiveScaleRange"in e&&function(t,e){t.minScale=t.minScale>0?e.minScale>0?Math.min(t.minScale,e.minScale):t.minScale:e.minScale,t.maxScale=t.maxScale>0?e.maxScale>0?Math.max(t.maxScale,e.maxScale):t.maxScale:e.maxScale}(t,e.effectiveScaleRange);const n=this._get("effectiveScaleRange");return n&&n.minScale===t.minScale&&n.maxScale===t.maxScale?n:t}};return(0,r._)([(0,i.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],e.prototype,"minScale",void 0),(0,r._)([(0,i.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],e.prototype,"maxScale",void 0),(0,r._)([(0,i.MZ)({readOnly:!0})],e.prototype,"effectiveScaleRange",null),e=(0,r._)([(0,o.$)("esri.layers.mixins.ScaleRangeLayer")],e),e}},29242:(t,e,n)=>{function r(){return[1,0,0,0,1,0,0,0,1]}function i(t,e,n,r,i,o,s,a,l){return[t,e,n,r,i,o,s,a,l]}n.d(e,{fA:()=>i,vt:()=>r,zK:()=>o});const o=[1,0,0,0,1,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:o,clone:function(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8]]},create:r,fromValues:i},Symbol.toStringTag,{value:"Module"}))},36708:(t,e,n)=>{n.d(e,{C_:()=>p,OH:()=>m,Vh:()=>y,on:()=>h,pc:()=>g,wB:()=>l,z7:()=>u});var r=n(37955),i=n(36563),o=n(97768),s=n(74887),a=n(14012);function l(t,e,n={}){return c(t,e,n,f)}function u(t,e,n={}){return c(t,e,n,d)}function c(t,e,n={},r){let i=null;const s=n.once?(t,n)=>{r(t)&&((0,o.xt)(i),e(t,n))}:(t,n)=>{r(t)&&e(t,n)};if(i=(0,a.Cn)(t,s,n.sync,n.equals),n.initial){const e=t();s(e,e)}return i}function h(t,e,n,s={}){let a=null,u=null,c=null;function h(){a&&u&&(u.remove(),s.onListenerRemove?.(a),a=null,u=null)}function p(t){s.once&&s.once&&(0,o.xt)(c),n(t)}const f=l(t,((t,n)=>{h(),(0,r.wb)(t)&&(a=t,u=(0,r.on)(t,e,p),s.onListenerAdd?.(t))}),{sync:s.sync,initial:!0});return c=(0,i.hA)((()=>{f.remove(),h()})),c}function p(t,e){return function(t,e,n){if((0,s.G4)(n))return Promise.reject((0,s.NK)());const r=t();if(e?.(r))return Promise.resolve(r);let a=null;function l(){a=(0,o.xt)(a)}return new Promise(((r,o)=>{a=(0,i.vE)([(0,s.u7)(n,(()=>{l(),o((0,s.NK)())})),c(t,(t=>{l(),r(t)}),{sync:!1,once:!0},e??f)])}))}(t,d,e)}function f(t){return!0}function d(t){return!!t}n(80559);const m={sync:!0},y={initial:!0},g={sync:!0,initial:!0}},37585:(t,e,n)=>{n.d(e,{C:()=>i,Cc:()=>y,Io:()=>h,S8:()=>m,WQ:()=>s,e$:()=>_,hZ:()=>o,hs:()=>c,jb:()=>x,l0:()=>g});var r=n(34304);function i(t,e){return t[0]=e[0],t[1]=e[1],t}function o(t,e,n){return t[0]=e,t[1]=n,t}function s(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function a(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function l(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t}function u(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t}function c(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function h(t,e){const n=e[0]-t[0],r=e[1]-t[1];return Math.sqrt(n*n+r*r)}function p(t,e){const n=e[0]-t[0],r=e[1]-t[1];return n*n+r*r}function f(t){const e=t[0],n=t[1];return Math.sqrt(e*e+n*n)}function d(t){const e=t[0],n=t[1];return e*e+n*n}function m(t,e){const n=e[0],r=e[1];let i=n*n+r*r;return i>0&&(i=1/Math.sqrt(i),t[0]=e[0]*i,t[1]=e[1]*i),t}function y(t,e,n,r){const i=e[0],o=e[1];return t[0]=i+r*(n[0]-i),t[1]=o+r*(n[1]-o),t}function g(t,e,n){const r=e[0],i=e[1];return t[0]=n[0]*r+n[2]*i+n[4],t[1]=n[1]*r+n[3]*i+n[5],t}function _(t,e,n,r){const i=e[0]-n[0],o=e[1]-n[1],s=Math.sin(r),a=Math.cos(r);return t[0]=i*a-o*s+n[0],t[1]=i*s+o*a+n[1],t}const v=f,x=a,M=l,w=u,b=h,A=p,P=d;Object.freeze(Object.defineProperty({__proto__:null,add:s,angle:function(t,e){const n=t[0],r=t[1],i=e[0],o=e[1];let s=n*n+r*r;s>0&&(s=1/Math.sqrt(s));let a=i*i+o*o;a>0&&(a=1/Math.sqrt(a));const l=(n*i+r*o)*s*a;return l>1?0:l<-1?Math.PI:Math.acos(l)},ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t},copy:i,cross:function(t,e,n){const r=e[0]*n[1]-e[1]*n[0];return t[0]=t[1]=0,t[2]=r,t},dist:b,distance:h,div:w,divide:u,dot:function(t,e){return t[0]*e[0]+t[1]*e[1]},equals:function(t,e){const n=t[0],i=t[1],o=e[0],s=e[1],a=(0,r.FD)();return Math.abs(n-o)<=a*Math.max(1,Math.abs(n),Math.abs(o))&&Math.abs(i-s)<=a*Math.max(1,Math.abs(i),Math.abs(s))},exactEquals:function(t,e){return t[0]===e[0]&&t[1]===e[1]},floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t},inverse:function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t},len:v,length:f,lerp:y,max:function(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t},min:function(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t},mul:M,multiply:l,negate:function(t,e){return t[0]=-e[0],t[1]=-e[1],t},normalize:m,projectAndScale:function(t,e,n,r,i){let o=e[0]-n[0],s=e[1]-n[1];const a=(r[0]*o+r[1]*s)*(i-1);return o=r[0]*a,s=r[1]*a,t[0]=e[0]+o,t[1]=e[1]+s,t},random:function(t,e=1){const n=2*(0,r.Ov)()*Math.PI;return t[0]=Math.cos(n)*e,t[1]=Math.sin(n)*e,t},rotate:_,round:function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t},scale:c,scaleAndAdd:function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t},set:o,sqrDist:A,sqrLen:P,squaredDistance:p,squaredLength:d,str:function(t){return"vec2("+t[0]+", "+t[1]+")"},sub:x,subtract:a,transformMat2:function(t,e,n){const r=e[0],i=e[1];return t[0]=n[0]*r+n[2]*i,t[1]=n[1]*r+n[3]*i,t},transformMat2d:g,transformMat3:function(t,e,n){const r=e[0],i=e[1];return t[0]=n[0]*r+n[3]*i+n[6],t[1]=n[1]*r+n[4]*i+n[7],t},transformMat4:function(t,e,n){const r=e[0],i=e[1];return t[0]=n[0]*r+n[4]*i+n[12],t[1]=n[1]*r+n[5]*i+n[13],t}},Symbol.toStringTag,{value:"Module"}))},38954:(t,e,n)=>{n.d(e,{A:()=>d,B:()=>f,C:()=>c,D:()=>m,E:()=>h,F:()=>$,H:()=>N,a:()=>Z,b:()=>g,c:()=>s,d:()=>u,e:()=>P,f:()=>A,g:()=>l,h:()=>y,i:()=>a,j:()=>_,k:()=>x,l:()=>o,m:()=>S,n:()=>b,o:()=>B,p:()=>L,q:()=>O,s:()=>v,t:()=>I,u:()=>w,v:()=>M,w:()=>E,x:()=>p,y:()=>U,z:()=>F});var r=n(51850),i=n(34304);function o(t){const e=t[0],n=t[1],r=t[2];return Math.sqrt(e*e+n*n+r*r)}function s(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 l(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],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 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 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 p(t,e){return t[0]=Math.abs(e[0]),t[1]=Math.abs(e[1]),t[2]=Math.abs(e[2]),t}function f(t,e){return t[0]=Math.sign(e[0]),t[1]=Math.sign(e[1]),t[2]=Math.sign(e[2]),t}function d(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 m(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 y(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t}function g(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 _(t,e){const n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2];return Math.sqrt(n*n+r*r+i*i)}function v(t,e){const n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2];return n*n+r*r+i*i}function x(t){const e=t[0],n=t[1],r=t[2];return e*e+n*n+r*r}function M(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}function w(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],i=e[2];let o=n*n+r*r+i*i;return o>0&&(o=1/Math.sqrt(o),t[0]=e[0]*o,t[1]=e[1]*o,t[2]=e[2]*o),t}function A(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function P(t,e,n){const r=e[0],i=e[1],o=e[2],s=n[0],a=n[1],l=n[2];return t[0]=i*l-o*a,t[1]=o*s-r*l,t[2]=r*a-i*s,t}function S(t,e,n,r){const i=e[0],o=e[1],s=e[2];return t[0]=i+r*(n[0]-i),t[1]=o+r*(n[1]-o),t[2]=s+r*(n[2]-s),t}function I(t,e,n){const r=e[0],i=e[1],o=e[2];return t[0]=n[0]*r+n[4]*i+n[8]*o+n[12],t[1]=n[1]*r+n[5]*i+n[9]*o+n[13],t[2]=n[2]*r+n[6]*i+n[10]*o+n[14],t}function O(t,e,n){const r=e[0],i=e[1],o=e[2];return t[0]=r*n[0]+i*n[3]+o*n[6],t[1]=r*n[1]+i*n[4]+o*n[7],t[2]=r*n[2]+i*n[5]+o*n[8],t}function E(t,e,n){const r=n[0],i=n[1],o=n[2],s=n[3],a=e[0],l=e[1],u=e[2],c=i*u-o*l,h=o*a-r*u,p=r*l-i*a,f=i*p-o*h,d=o*c-r*p,m=r*h-i*c,y=2*s;return t[0]=a+c*y+2*f,t[1]=l+h*y+2*d,t[2]=u+p*y+2*m,t}const R=(0,r.vt)(),T=(0,r.vt)();function L(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function B(t,e,n){const r=n[0]-e[0],i=n[1]-e[1],o=n[2]-e[2];let s=r*r+i*i+o*o;return s>0?(s=1/Math.sqrt(s),t[0]=r*s,t[1]=i*s,t[2]=o*s,t):(t[0]=0,t[1]=0,t[2]=0,t)}const Z=u,j=c,C=h,$=_,U=v,N=o,F=x;Object.freeze(Object.defineProperty({__proto__:null,abs:p,add:l,angle:function(t,e){b(R,t),b(T,e);const n=A(R,T);return n>1?0:n<-1?Math.PI:Math.acos(n)},bezier:function(t,e,n,r,i,o){const s=1-o,a=s*s,l=o*o,u=a*s,c=3*o*a,h=3*l*s,p=l*o;return t[0]=e[0]*u+n[0]*c+r[0]*h+i[0]*p,t[1]=e[1]*u+n[1]*c+r[1]*h+i[1]*p,t[2]=e[2]*u+n[2]*c+r[2]*h+i[2]*p,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:s,cross:P,crossAndNormalize:function(t,e,n){const r=e[0],i=e[1],o=e[2],s=n[0],a=n[1],l=n[2],u=i*l-o*a,c=o*s-r*l,h=r*a-i*s,p=Math.sqrt(u*u+c*c+h*h);return t[0]=u/p,t[1]=c/p,t[2]=h/p,t},direction:B,dist:$,distance:_,div:C,divide:h,dot:A,equals:function(t,e){if(t===e)return!0;const n=t[0],r=t[1],o=t[2],s=e[0],a=e[1],l=e[2],u=(0,i.FD)();return Math.abs(n-s)<=u*Math.max(1,Math.abs(n),Math.abs(s))&&Math.abs(r-a)<=u*Math.max(1,Math.abs(r),Math.abs(a))&&Math.abs(o-l)<=u*Math.max(1,Math.abs(o),Math.abs(l))},exactEquals:L,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,i,o){const s=o*o,a=s*(2*o-3)+1,l=s*(o-2)+o,u=s*(o-1),c=s*(3-2*o);return t[0]=e[0]*a+n[0]*l+r[0]*u+i[0]*c,t[1]=e[1]*a+n[1]*l+r[1]*u+i[1]*c,t[2]=e[2]*a+n[2]*l+r[2]*u+i[2]*c,t},inverse:w,len:N,length:o,lerp:S,max:m,min:d,mul:j,multiply:c,negate:M,normalize:b,random:function(t,e=1){const n=i.Ov,r=2*n()*Math.PI,o=2*n()-1,s=Math.sqrt(1-o*o)*e;return t[0]=Math.cos(r)*s,t[1]=Math.sin(r)*s,t[2]=o*e,t},rotateX:function(t,e,n,r){const i=[],o=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],o[0]=i[0],o[1]=i[1]*Math.cos(r)-i[2]*Math.sin(r),o[2]=i[1]*Math.sin(r)+i[2]*Math.cos(r),t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t},rotateY:function(t,e,n,r){const i=[],o=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],o[0]=i[2]*Math.sin(r)+i[0]*Math.cos(r),o[1]=i[1],o[2]=i[2]*Math.cos(r)-i[0]*Math.sin(r),t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t},rotateZ:function(t,e,n,r){const i=[],o=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],o[0]=i[0]*Math.cos(r)-i[1]*Math.sin(r),o[1]=i[0]*Math.sin(r)+i[1]*Math.cos(r),o[2]=i[2],t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[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:y,scaleAndAdd:g,set:a,sign:f,sqrDist:U,sqrLen:F,squaredDistance:v,squaredLength:x,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:Z,subtract:u,transformMat3:O,transformMat4:I,transformQuat:E},Symbol.toStringTag,{value:"Module"}))},48163:(t,e,n)=>{function r(){return[0,0]}function i(t,e){return[t,e]}function o(){return i(1,1)}function s(){return i(1,0)}function a(){return i(0,1)}n.d(e,{Un:()=>l,fA:()=>i,vt:()=>r});const l=o(),u=s(),c=a();Object.freeze(Object.defineProperty({__proto__:null,ONES:l,UNIT_X:u,UNIT_Y:c,ZEROS:[0,0],clone:function(t){return[t[0],t[1]]},create:r,freeze:function(t,e){return[t,e]},fromArray:function(t,e=[0,0]){const n=Math.min(2,t.length);for(let r=0;r<n;++r)e[r]=t[r];return e},fromValues:i,ones:o,unitX:s,unitY:a,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"}))},62885:(t,e,n)=>{n.d(e,{H:()=>o,V:()=>i});var r=n(5503);function i(t,e,n=r.A){return e||(e=new n),e===t||(e.removeAll(),(i=t)&&(Array.isArray(i)||"items"in i&&Array.isArray(i.items))?e.addMany(t):t&&e.add(t)),e;var i}function o(t){return t}},63074:(t,e,n)=>{n.d(e,{LF:()=>c,dM:()=>h,sU:()=>l});var r=n(90237),i=n(10107),o=(n(44208),n(53966),n(87811),n(40608)),s=n(89317),a=n(76369);const l={type:["average","color-burn","color-dodge","color","darken","destination-atop","destination-in","destination-out","destination-over","difference","exclusion","hard-light","hue","invert","lighten","lighter","luminosity","minus","multiply","normal","overlay","plus","reflect","saturation","screen","soft-light","source-atop","source-in","source-out","vivid-light","xor"],nonNullable:!0,json:{read:!1,write:!1,origins:{"web-map":{read:!0,write:{layerContainerTypes:s.K}},"portal-item":{read:!0,write:{layerContainerTypes:s.K}}}}},u={read:{reader:a.LF},write:{allowNull:!0,writer:a.M9,layerContainerTypes:s.K}},c={json:{read:!1,write:!1,origins:{"web-map":u,"portal-item":u}}},h=t=>{let e=class extends t{constructor(){super(...arguments),this.blendMode="normal",this.effect=null}};return(0,r._)([(0,i.MZ)(l)],e.prototype,"blendMode",void 0),(0,r._)([(0,i.MZ)(c)],e.prototype,"effect",void 0),e=(0,r._)([(0,o.$)("esri.layers.mixins.BlendLayer")],e),e}},69540:(t,e,n)=>{n.d(e,{A:()=>p});var r=n(90237),i=n(69622),o=(n(44208),n(4718)),s=(n(53966),n(97768)),a=n(35666),l=n(88620),u=n(40608);const c=t=>{let e=class extends t{clone(){const t=(0,l.oY)(this);(0,s.Lw)(t,"unable to clone instance of non-accessor class");const e=t.metadata,n=t.store,r={},i=new Map;for(const t in e){const s=e[t],l=n?.originOf(t),u=s.clonable;if(s.readOnly||!1===u||l!==a.Gr.USER&&l!==a.Gr.DEFAULTS&&l!==a.Gr.WEB_MAP&&l!==a.Gr.WEB_SCENE)continue;const c=this[t];let h=null;h="function"==typeof u?u(c):"reference"===u?c:(0,o.TU)(c),null!=c&&null==h||(l===a.Gr.DEFAULTS?i.set(t,h):r[t]=h)}const u=new(0,Object.getPrototypeOf(this).constructor)(r);if(i.size){const t=(0,l.oY)(u)?.store;if(t)for(const[e,n]of i)t.set(e,n,a.Gr.DEFAULTS)}return u}};return e=(0,r._)([(0,u.$)("esri.core.Clonable")],e),e};let h=class extends(c(i.A)){};h=(0,r._)([(0,u.$)("esri.core.Clonable")],h),(h||(h={})).ClonableMixin=c;const p=h},75503:(t,e,n)=>{n.d(e,{E:()=>P,w:()=>a});var r=n(4576),i=n(21818),o=(n(44208),n(3694)),s=n(11006);class a{constructor(t=9,e){this._compareMinX=p,this._compareMinY=f,this._toBBox=t=>t,this._maxEntries=Math.max(4,t||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),e&&("function"==typeof e?this._toBBox=e:this._initFormat(e)),this.clear()}destroy(){this.clear(),M.prune(),w.prune(),b.prune(),A.prune()}all(t){l(this._data,t)}search(t,e){let n=this._data;const r=this._toBBox;if(v(t,n))for(M.clear();n;){for(let i=0,o=n.children.length;i<o;i++){const o=n.children[i],s=n.leaf?r(o):o;v(t,s)&&(n.leaf?e(o):_(t,s)?l(o,e):M.push(o))}n=M.pop()}}collides(t){let e=this._data;const n=this._toBBox;if(!v(t,e))return!1;for(M.clear();e;){for(let r=0,i=e.children.length;r<i;r++){const i=e.children[r],o=e.leaf?n(i):i;if(v(t,o)){if(e.leaf||_(t,o))return!0;M.push(i)}}e=M.pop()}return!1}load(t){if(!t.length)return this;if(t.length<this._minEntries){for(let e=0,n=t.length;e<n;e++)this.insert(t[e]);return this}let e=this._build(t.slice(),0,t.length-1,0);if(this._data.children.length)if(this._data.height===e.height)this._splitRoot(this._data,e);else{if(this._data.height<e.height){const t=this._data;this._data=e,e=t}this._insert(e,this._data.height-e.height-1,!0)}else this._data=e;return this}insert(t){return t&&this._insert(t,this._data.height-1),this}clear(){return this._data=new I([]),this}remove(t){if(!t)return this;let e,n=this._data,o=null,s=0,a=!1;const l=this._toBBox(t);for(b.clear(),A.clear();n||b.length>0;){if(n||(n=b.pop(),o=b.data[b.length-1],s=A.pop()??0,a=!0),n.leaf&&(e=(0,r.qh)(n.children,(0,i.zI)(t),n.children.length,n.indexHint),-1!==e))return n.children.splice(e,1),b.push(n),this._condense(b),this;a||n.leaf||!_(n,l)?o?(s++,n=o.children[s],a=!1):n=null:(b.push(n),A.push(s),s=0,o=n,n=n.children[0])}return this}toJSON(){return this._data}fromJSON(t){return this._data=t,this}_build(t,e,n,r){const i=n-e+1;let o=this._maxEntries;if(i<=o){const r=new I(t.slice(e,n+1));return u(r,this._toBBox),r}r||(r=Math.ceil(Math.log(i)/Math.log(o)),o=Math.ceil(i/o**(r-1)));const s=new O([]);s.height=r;const a=Math.ceil(i/o),l=a*Math.ceil(Math.sqrt(o));x(t,e,n,l,this._compareMinX);for(let i=e;i<=n;i+=l){const e=Math.min(i+l-1,n);x(t,i,e,a,this._compareMinY);for(let n=i;n<=e;n+=a){const i=Math.min(n+a-1,e);s.children.push(this._build(t,n,i,r-1))}}return u(s,this._toBBox),s}_insert(t,e,n){const r=this._toBBox,i=n?t:r(t);b.clear();const o=function(t,e,n,r){for(;r.push(e),!0!==e.leaf&&r.length-1!==n;){let n,r=1/0,i=1/0;for(let o=0,s=e.children.length;o<s;o++){const s=e.children[o],a=d(s),l=y(t,s)-a;l<i?(i=l,r=a<r?a:r,n=s):l===i&&a<r&&(r=a,n=s)}e=n||e.children[0]}return e}(i,this._data,e,b);for(o.children.push(t),h(o,i);e>=0&&b.data[e].children.length>this._maxEntries;)this._split(b,e),e--;!function(t,e,n){for(let r=n;r>=0;r--)h(e.data[r],t)}(i,b,e)}_split(t,e){const n=t.data[e],r=n.children.length,i=this._minEntries;this._chooseSplitAxis(n,i,r);const o=this._chooseSplitIndex(n,i,r);if(!o)return;const s=n.children.splice(o,n.children.length-o),a=n.leaf?new I(s):new O(s);a.height=n.height,u(n,this._toBBox),u(a,this._toBBox),e?t.data[e-1].children.push(a):this._splitRoot(n,a)}_splitRoot(t,e){this._data=new O([t,e]),this._data.height=t.height+1,u(this._data,this._toBBox)}_chooseSplitIndex(t,e,n){let r,i,o;r=i=1/0;for(let s=e;s<=n-e;s++){const e=c(t,0,s,this._toBBox),a=c(t,s,n,this._toBBox),l=g(e,a),u=d(e)+d(a);l<r?(r=l,o=s,i=u<i?u:i):l===r&&u<i&&(i=u,o=s)}return o}_chooseSplitAxis(t,e,n){const r=t.leaf?this._compareMinX:p,i=t.leaf?this._compareMinY:f;this._allDistMargin(t,e,n,r)<this._allDistMargin(t,e,n,i)&&t.children.sort(r)}_allDistMargin(t,e,n,r){t.children.sort(r);const i=this._toBBox,o=c(t,0,e,i),s=c(t,n-e,n,i);let a=m(o)+m(s);for(let r=e;r<n-e;r++){const e=t.children[r];h(o,t.leaf?i(e):e),a+=m(o)}for(let r=n-e-1;r>=e;r--){const e=t.children[r];h(s,t.leaf?i(e):e),a+=m(s)}return a}_condense(t){for(let e=t.length-1;e>=0;e--){const n=t.data[e];if(0===n.children.length)if(e>0){const i=t.data[e-1],o=i.children;o.splice((0,r.qh)(o,n,o.length,i.indexHint),1)}else this.clear();else u(n,this._toBBox)}}_initFormat(t){const e=["return a"," - b",";"];this._compareMinX=new Function("a","b",e.join(t[0])),this._compareMinY=new Function("a","b",e.join(t[1])),this._toBBox=new Function("a","return {minX: a"+t[0]+", minY: a"+t[1]+", maxX: a"+t[2]+", maxY: a"+t[3]+"};")}}function l(t,e){let n=t;for(w.clear();n;){if(!0===n.leaf)for(const t of n.children)e((0,i.zI)(t));else w.pushArray(n.children);n=w.pop()??null}}function u(t,e){c(t,0,t.children.length,e,t)}function c(t,e,n,r,i){i||(i=new I([])),i.minX=1/0,i.minY=1/0,i.maxX=-1/0,i.maxY=-1/0;for(let o,s=e;s<n;s++)o=t.children[s],h(i,t.leaf?r(o):o);return i}function h(t,e){t.minX=Math.min(t.minX,e.minX),t.minY=Math.min(t.minY,e.minY),t.maxX=Math.max(t.maxX,e.maxX),t.maxY=Math.max(t.maxY,e.maxY)}function p(t,e){return t.minX-e.minX}function f(t,e){return t.minY-e.minY}function d(t){return(t.maxX-t.minX)*(t.maxY-t.minY)}function m(t){return t.maxX-t.minX+(t.maxY-t.minY)}function y(t,e){return(Math.max(e.maxX,t.maxX)-Math.min(e.minX,t.minX))*(Math.max(e.maxY,t.maxY)-Math.min(e.minY,t.minY))}function g(t,e){const n=Math.max(t.minX,e.minX),r=Math.max(t.minY,e.minY),i=Math.min(t.maxX,e.maxX),o=Math.min(t.maxY,e.maxY);return Math.max(0,i-n)*Math.max(0,o-r)}function _(t,e){return t.minX<=e.minX&&t.minY<=e.minY&&e.maxX<=t.maxX&&e.maxY<=t.maxY}function v(t,e){return e.minX<=t.maxX&&e.minY<=t.maxY&&e.maxX>=t.minX&&e.maxY>=t.minY}function x(t,e,n,r,i){const o=[e,n];for(;o.length;){const e=o.pop(),n=o.pop();if(e-n<=r)continue;const a=n+Math.ceil((e-n)/r/2)*r;(0,s.q)(t,a,n,e,i),o.push(n,a,a,e)}}const M=new o.A,w=new o.A,b=new o.A,A=new o.A({deallocator:void 0});class P{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}}class S extends P{constructor(){super(...arguments),this.height=1,this.indexHint=new r.vW}}class I extends S{constructor(t){super(),this.children=t,this.leaf=!0}}class O extends S{constructor(t){super(),this.children=t,this.leaf=!1}}},76369:(t,e,n)=>{n.d(e,{LF:()=>b,M9:()=>A});var r=n(49186),i=n(93637),o=n(40876),s=n(59247),a=n(27865);function l(t,e,n,r){var i=Error.call(this,t);return Object.setPrototypeOf&&Object.setPrototypeOf(i,l.prototype),i.expected=e,i.found=n,i.location=r,i.name="SyntaxError",i}function u(t,e,n){return n=n||" ",t.length>e?t:(e-=t.length,t+(n+=n.repeat(e)).slice(0,e))}function c(t){if(!t||0===t.length)return null;if("string"==typeof t){const e=h(t);return e&&0!==e.length?e:null}const e=t.map((t=>{if(!Number.isFinite(t.scale)||t.scale<=0)throw new r.A("effect:invalid-scale","scale must be finite and greater than 0",{stop:t});return{scale:t.scale,effects:h(t.value)}}));e.sort(((t,e)=>e.effects.length-t.effects.length));for(let t=0;t<e.length-1;t++){if(!(0,a.mj)(e[t].effects,e[t+1].effects))throw new r.A("effect:interpolation-impossible","Cannot interpolate by scale between 2 lists of mixed effects",{a:e[t].effects,b:e[t+1].effects});(0,a.O9)(e[t].effects,e[t+1].effects)}return e.sort(((t,e)=>e.scale-t.scale)),e}function h(t){let e;if(!t)return[];try{e=function(t,e){var n,r={},i=(e=void 0!==e?e:{}).grammarSource,o={start:zt},s=zt,a="none",u=")",c=",",h="(",p="%",f="px",d="cm",m="mm",y="in",g="pt",_="pc",v="deg",x="rad",M="grad",w="turn",b="#",A=".",P="e",S=/^[ \t\n\r]/,I=/^[a-z\-]/,O=/^[0-9a-fA-F]/,E=/^[+\-]/,R=/^[0-9]/,T=qt("none"),L=Nt("none",!1),B=Nt(")",!1),Z=Nt(",",!1),j=qt("whitespace"),C=Ft([" ","\t","\n","\r"],!1,!1),$=qt("function"),U=Nt("(",!1),N=qt("identifier"),F=Ft([["a","z"],"-"],!1,!1),q=qt("percentage"),Y=Nt("%",!1),X=qt("length"),D=Nt("px",!1),z=Nt("cm",!1),V=Nt("mm",!1),k=Nt("in",!1),H=Nt("pt",!1),G=Nt("pc",!1),W=qt("angle"),J=Nt("deg",!1),K=Nt("rad",!1),Q=Nt("grad",!1),tt=Nt("turn",!1),et=qt("number"),nt=qt("color"),rt=Nt("#",!1),it=Ft([["0","9"],["a","f"],["A","F"]],!1,!1),ot=Ft(["+","-"],!1,!1),st=Ft([["0","9"]],!1,!1),at=Nt(".",!1),lt=Nt("e",!1),ut=function(){return[]},ct=function(t,e){return{type:"function",name:t,parameters:e||[]}},ht=function(t,e){return e.length>0?function(t,e){return[t].concat(function(t){return t.map((function(t){return t[3]}))}(e))}(t,e):[t]},pt=function(t){return{type:"quantity",value:t.value,unit:t.unit}},ft=function(t){return{type:"color",colorType:t.type,value:t.value}},dt=function(t){return t},mt=function(){return Ut()},yt=function(t){return{value:t,unit:"%"}},gt=function(t){return{value:t,unit:"px"}},_t=function(t){return{value:t,unit:"cm"}},vt=function(t){return{value:t,unit:"mm"}},xt=function(t){return{value:t,unit:"in"}},Mt=function(t){return{value:t,unit:"pt"}},wt=function(t){return{value:t,unit:"pc"}},bt=function(t){return{value:t,unit:"deg"}},At=function(t){return{value:t,unit:"rad"}},Pt=function(t){return{value:t,unit:"grad"}},St=function(t){return{value:t,unit:"turn"}},It=function(t){return{value:t,unit:null}},Ot=function(){return{type:"hex",value:Ut()}},Et=function(t){return{type:"function",value:t}},Rt=function(){return{type:"named",value:Ut()}},Tt=function(){return parseFloat(Ut())},Lt=0|e.peg$currPos,Bt=Lt,Zt=[{line:1,column:1}],jt=Lt,Ct=e.peg$maxFailExpected||[],$t=0|e.peg$silentFails;if(e.startRule){if(!(e.startRule in o))throw new Error("Can't start parsing from rule \""+e.startRule+'".');s=o[e.startRule]}function Ut(){return t.substring(Bt,Lt)}function Nt(t,e){return{type:"literal",text:t,ignoreCase:e}}function Ft(t,e,n){return{type:"class",parts:t,inverted:e,ignoreCase:n}}function qt(t){return{type:"other",description:t}}function Yt(e){var n,r=Zt[e];if(r)return r;if(e>=Zt.length)n=Zt.length-1;else for(n=e;!Zt[--n];);for(r={line:(r=Zt[n]).line,column:r.column};n<e;)10===t.charCodeAt(n)?(r.line++,r.column=1):r.column++,n++;return Zt[e]=r,r}function Xt(t,e,n){var r=Yt(t),o=Yt(e);return{source:i,start:{offset:t,line:r.line,column:r.column},end:{offset:e,line:o.line,column:o.column}}}function Dt(t){Lt<jt||(Lt>jt&&(jt=Lt,Ct=[]),Ct.push(t))}function zt(){var t;return(t=Vt())===r&&(t=function(){var t,e;if(t=[],(e=kt())!==r)for(;e!==r;)t.push(e),e=kt();else t=r;return t}()),t}function Vt(){var e,n;return $t++,e=Lt,Gt(),t.substr(Lt,4)===a?(n=a,Lt+=4):(n=r,0===$t&&Dt(L)),n!==r?(Gt(),Bt=e,e=ut()):(Lt=e,e=r),$t--,e===r&&0===$t&&Dt(T),e}function kt(){var e,n,i,o;return e=Lt,Gt(),(n=function(){var e,n,i;return $t++,e=Lt,(n=Wt())!==r?(40===t.charCodeAt(Lt)?(i=h,Lt++):(i=r,0===$t&&Dt(U)),i!==r?(Bt=e,e=dt(n)):(Lt=e,e=r)):(Lt=e,e=r),$t--,e===r&&(n=r,0===$t&&Dt($)),e}())!==r?(Gt(),(i=function(){var e,n,i,o,s,a,l,u;if(e=Lt,(n=Ht())!==r){for(i=[],o=Lt,s=Gt(),44===t.charCodeAt(Lt)?(a=c,Lt++):(a=r,0===$t&&Dt(Z)),a===r&&(a=null),l=Gt(),(u=Ht())!==r?o=s=[s,a,l,u]:(Lt=o,o=r);o!==r;)i.push(o),o=Lt,s=Gt(),44===t.charCodeAt(Lt)?(a=c,Lt++):(a=r,0===$t&&Dt(Z)),a===r&&(a=null),l=Gt(),(u=Ht())!==r?o=s=[s,a,l,u]:(Lt=o,o=r);Bt=e,e=ht(n,i)}else Lt=e,e=r;return e}())===r&&(i=null),Gt(),41===t.charCodeAt(Lt)?(o=u,Lt++):(o=r,0===$t&&Dt(B)),o!==r?(Gt(),Bt=e,e=ct(n,i)):(Lt=e,e=r)):(Lt=e,e=r),e}function Ht(){var t,e;return t=Lt,(e=Jt())===r&&(e=Kt())===r&&(e=Qt())===r&&(e=function(){var t,e;return $t++,t=Lt,Gt(),(e=ee())!==r?(Bt=t,t=It(e)):(Lt=t,t=r),$t--,t===r&&0===$t&&Dt(et),t}()),e!==r&&(Bt=t,e=pt(e)),(t=e)===r&&(t=Lt,(e=te())!==r&&(Bt=t,e=ft(e)),t=e),t}function Gt(){var e,n;for($t++,e=[],n=t.charAt(Lt),S.test(n)?Lt++:(n=r,0===$t&&Dt(C));n!==r;)e.push(n),n=t.charAt(Lt),S.test(n)?Lt++:(n=r,0===$t&&Dt(C));return $t--,n=r,0===$t&&Dt(j),e}function Wt(){var e,n,i;if($t++,e=Lt,n=[],i=t.charAt(Lt),I.test(i)?Lt++:(i=r,0===$t&&Dt(F)),i!==r)for(;i!==r;)n.push(i),i=t.charAt(Lt),I.test(i)?Lt++:(i=r,0===$t&&Dt(F));else n=r;return n!==r&&(Bt=e,n=mt()),$t--,(e=n)===r&&(n=r,0===$t&&Dt(N)),e}function Jt(){var e,n,i;return $t++,e=Lt,Gt(),(n=ee())!==r?(37===t.charCodeAt(Lt)?(i=p,Lt++):(i=r,0===$t&&Dt(Y)),i!==r?(Bt=e,e=yt(n)):(Lt=e,e=r)):(Lt=e,e=r),$t--,e===r&&0===$t&&Dt(q),e}function Kt(){var e,n,i;return $t++,e=Lt,Gt(),(n=ee())!==r?(t.substr(Lt,2)===f?(i=f,Lt+=2):(i=r,0===$t&&Dt(D)),i!==r?(Bt=e,e=gt(n)):(Lt=e,e=r)):(Lt=e,e=r),e===r&&(e=Lt,Gt(),(n=ee())!==r?(t.substr(Lt,2)===d?(i=d,Lt+=2):(i=r,0===$t&&Dt(z)),i!==r?(Bt=e,e=_t(n)):(Lt=e,e=r)):(Lt=e,e=r),e===r&&(e=Lt,Gt(),(n=ee())!==r?(t.substr(Lt,2)===m?(i=m,Lt+=2):(i=r,0===$t&&Dt(V)),i!==r?(Bt=e,e=vt(n)):(Lt=e,e=r)):(Lt=e,e=r),e===r&&(e=Lt,Gt(),(n=ee())!==r?(t.substr(Lt,2)===y?(i=y,Lt+=2):(i=r,0===$t&&Dt(k)),i!==r?(Bt=e,e=xt(n)):(Lt=e,e=r)):(Lt=e,e=r),e===r&&(e=Lt,Gt(),(n=ee())!==r?(t.substr(Lt,2)===g?(i=g,Lt+=2):(i=r,0===$t&&Dt(H)),i!==r?(Bt=e,e=Mt(n)):(Lt=e,e=r)):(Lt=e,e=r),e===r&&(e=Lt,Gt(),(n=ee())!==r?(t.substr(Lt,2)===_?(i=_,Lt+=2):(i=r,0===$t&&Dt(G)),i!==r?(Bt=e,e=wt(n)):(Lt=e,e=r)):(Lt=e,e=r)))))),$t--,e===r&&0===$t&&Dt(X),e}function Qt(){var e,n,i;return $t++,e=Lt,(n=ee())!==r?(t.substr(Lt,3)===v?(i=v,Lt+=3):(i=r,0===$t&&Dt(J)),i!==r?(Bt=e,e=bt(n)):(Lt=e,e=r)):(Lt=e,e=r),e===r&&(e=Lt,(n=ee())!==r?(t.substr(Lt,3)===x?(i=x,Lt+=3):(i=r,0===$t&&Dt(K)),i!==r?(Bt=e,e=At(n)):(Lt=e,e=r)):(Lt=e,e=r),e===r&&(e=Lt,(n=ee())!==r?(t.substr(Lt,4)===M?(i=M,Lt+=4):(i=r,0===$t&&Dt(Q)),i!==r?(Bt=e,e=Pt(n)):(Lt=e,e=r)):(Lt=e,e=r),e===r&&(e=Lt,(n=ee())!==r?(t.substr(Lt,4)===w?(i=w,Lt+=4):(i=r,0===$t&&Dt(tt)),i!==r?(Bt=e,e=St(n)):(Lt=e,e=r)):(Lt=e,e=r)))),$t--,e===r&&(n=r,0===$t&&Dt(W)),e}function te(){var e,n,i,o;if($t++,e=Lt,35===t.charCodeAt(Lt)?(n=b,Lt++):(n=r,0===$t&&Dt(rt)),n!==r){if(i=[],o=t.charAt(Lt),O.test(o)?Lt++:(o=r,0===$t&&Dt(it)),o!==r)for(;o!==r;)i.push(o),o=t.charAt(Lt),O.test(o)?Lt++:(o=r,0===$t&&Dt(it));else i=r;i!==r?(Bt=e,e=Ot()):(Lt=e,e=r)}else Lt=e,e=r;return e===r&&(e=Lt,(n=kt())!==r&&(Bt=e,n=Et(n)),(e=n)===r&&(e=Lt,(n=Wt())!==r&&(Bt=e,n=Rt()),e=n)),$t--,e===r&&(n=r,0===$t&&Dt(nt)),e}function ee(){var e,n,i,o,s,a,l,u;for(e=Lt,n=t.charAt(Lt),E.test(n)?Lt++:(n=r,0===$t&&Dt(ot)),n===r&&(n=null),i=Lt,o=[],s=t.charAt(Lt),R.test(s)?Lt++:(s=r,0===$t&&Dt(st));s!==r;)o.push(s),s=t.charAt(Lt),R.test(s)?Lt++:(s=r,0===$t&&Dt(st));if(46===t.charCodeAt(Lt)?(s=A,Lt++):(s=r,0===$t&&Dt(at)),s!==r){if(a=[],l=t.charAt(Lt),R.test(l)?Lt++:(l=r,0===$t&&Dt(st)),l!==r)for(;l!==r;)a.push(l),l=t.charAt(Lt),R.test(l)?Lt++:(l=r,0===$t&&Dt(st));else a=r;a!==r?i=o=[o,s,a]:(Lt=i,i=r)}else Lt=i,i=r;if(i===r)if(i=[],o=t.charAt(Lt),R.test(o)?Lt++:(o=r,0===$t&&Dt(st)),o!==r)for(;o!==r;)i.push(o),o=t.charAt(Lt),R.test(o)?Lt++:(o=r,0===$t&&Dt(st));else i=r;if(i!==r){if(o=Lt,101===t.charCodeAt(Lt)?(s=P,Lt++):(s=r,0===$t&&Dt(lt)),s!==r){if(a=t.charAt(Lt),E.test(a)?Lt++:(a=r,0===$t&&Dt(ot)),a===r&&(a=null),l=[],u=t.charAt(Lt),R.test(u)?Lt++:(u=r,0===$t&&Dt(st)),u!==r)for(;u!==r;)l.push(u),u=t.charAt(Lt),R.test(u)?Lt++:(u=r,0===$t&&Dt(st));else l=r;l!==r?o=s=[s,a,l]:(Lt=o,o=r)}else Lt=o,o=r;o===r&&(o=null),Bt=e,e=Tt()}else Lt=e,e=r;return e}if(n=s(),e.peg$library)return{peg$result:n,peg$currPos:Lt,peg$FAILED:r,peg$maxFailExpected:Ct,peg$maxFailPos:jt};if(n!==r&&Lt===t.length)return n;throw n!==r&&Lt<t.length&&Dt({type:"end"}),function(t,e,n){return new l(l.buildMessage(t,e),t,e,n)}(Ct,jt<t.length?t.charAt(jt):null,jt<t.length?Xt(jt,jt+1):Xt(jt,jt))}(t)}catch(e){throw new r.A("effect:invalid-syntax","Invalid effect syntax",{value:t,error:e})}return e.map((t=>function(t){try{switch(t.name){case"grayscale":case"sepia":case"saturate":case"invert":case"brightness":case"contrast":return function(t){let e=1;return p(t.parameters,1),1===t.parameters.length&&(e=g(t.parameters[0])),new s.yG(t.name,e)}(t);case"opacity":return function(t){let e=1;return p(t.parameters,1),1===t.parameters.length&&(e=g(t.parameters[0])),new s.jm(e)}(t);case"hue-rotate":return function(t){let e=0;return p(t.parameters,1),1===t.parameters.length&&(e=function(t){return function(t){if("quantity"!==t.type||!(0===t.value&&null===t.unit||t.unit&&null!=m[t.unit]))throw new r.A("effect:type-error",`Expected <angle>, Actual: ${f(t)}`,{term:t})}(t),t.value*m[t.unit]||0}(t.parameters[0])),new s.Nd(e)}(t);case"blur":return function(t){let e=0;return p(t.parameters,1),1===t.parameters.length&&(e=_(t.parameters[0]),d(e,t.parameters[0])),new s.Fk(e)}(t);case"drop-shadow":return function(t){const e=[];let n=null;for(const i of t.parameters)if("color"===i.type){if(e.length&&Object.freeze(e),n)throw new r.A("effect:type-error","Accepts only one color",{});n=v(i)}else{const t=_(i);if(Object.isFrozen(e))throw new r.A("effect:type-error","<length> parameters not consecutive",{lengths:e});e.push(t),3===e.length&&d(t,i)}if(e.length<2||e.length>3)throw new r.A("effect:type-error",`Expected <length>{2,3}, Actual: <length>{${e.length}}`,{lengths:e});return new s.$b(e[0],e[1],e[2]||0,n||x("black"))}(t);case"bloom":return function(t){let e=1,n=0,r=0;return p(t.parameters,3),t.parameters[0]&&(e=g(t.parameters[0])),t.parameters[1]&&(n=_(t.parameters[1]),d(n,t.parameters[1])),t.parameters[2]&&(r=g(t.parameters[2])),new s.bv(e,n,r)}(t)}}catch(e){throw e.details.filter=t,e}throw new r.A("effect:unknown-effect",`Effect '${t.name}' is not supported`,{effect:t})}(t)))}function p(t,e){if(t.length>e)throw new r.A("effect:type-error",`Function supports up to ${e} parameters, Actual: ${t.length}`,{parameters:t})}function f(t){if("color"===t.type)return"<color>";if(t.unit){if(t.unit in y)return"<length>";if(t.unit in m)return"<angle>";if("%"===t.unit)return"<percentage>"}return"<double>"}function d(t,e){if(t<0)throw new r.A("effect:type-error",`Negative values are not allowed, Actual: ${t}`,{term:e})}(function(t,e){function n(){this.constructor=t}n.prototype=e.prototype,t.prototype=new n})(l,Error),l.prototype.format=function(t){var e="Error: "+this.message;if(this.location){var n,r=null;for(n=0;n<t.length;n++)if(t[n].source===this.location.source){r=t[n].text.split(/\r\n|\n|\r/g);break}var i=this.location.start,o=this.location.source&&"function"==typeof this.location.source.offset?this.location.source.offset(i):i,s=this.location.source+":"+o.line+":"+o.column;if(r){var a=this.location.end,l=u("",o.line.toString().length," "),c=r[i.line-1],h=(i.line===a.line?a.column:c.length+1)-i.column||1;e+="\n --\x3e "+s+"\n"+l+" |\n"+o.line+" | "+c+"\n"+l+" | "+u("",i.column-1," ")+u("",h,"^")}else e+="\n at "+s}return e},l.buildMessage=function(t,e){var n={literal:function(t){return'"'+i(t.text)+'"'},class:function(t){var e=t.parts.map((function(t){return Array.isArray(t)?o(t[0])+"-"+o(t[1]):o(t)}));return"["+(t.inverted?"^":"")+e.join("")+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(t){return t.description}};function r(t){return t.charCodeAt(0).toString(16).toUpperCase()}function i(t){return t.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(t){return"\\x0"+r(t)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(t){return"\\x"+r(t)}))}function o(t){return t.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,(function(t){return"\\x0"+r(t)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(t){return"\\x"+r(t)}))}function s(t){return n[t.type](t)}return"Expected "+function(t){var e,n,r=t.map(s);if(r.sort(),r.length>0){for(e=1,n=1;e<r.length;e++)r[e-1]!==r[e]&&(r[n]=r[e],n++);r.length=n}switch(r.length){case 1:return r[0];case 2:return r[0]+" or "+r[1];default:return r.slice(0,-1).join(", ")+", or "+r[r.length-1]}}(t)+" but "+function(t){return t?'"'+i(t)+'"':"end of input"}(e)+" found."};const m={deg:1,grad:.9,rad:180/Math.PI,turn:360},y={px:1,cm:96/2.54,mm:96/2.54/10,in:96,pc:16,pt:96/72};function g(t){!function(t){if("quantity"!==t.type||null!==t.unit&&"%"!==t.unit)throw new r.A("effect:type-error",`Expected <double> or <percentage>, Actual: ${f(t)}`,{term:t})}(t);const e=t.value;return d(e,t),"%"===t.unit?.01*e:e}function _(t){return function(t){if("quantity"!==t.type||!(0===t.value&&null===t.unit||t.unit&&null!=y[t.unit]))throw new r.A("effect:type-error",`Expected <length>, Actual: ${f(t)}`,{term:t})}(t),t.value*y[t.unit]||0}function v(t){switch(t.colorType){case"hex":return(0,o.j5)(t.value);case"named":return x(t.value);case"function":return function(t){if(p(t.parameters,4),M.test(t.name))return[g(t.parameters[0]),g(t.parameters[1]),g(t.parameters[2]),t.parameters[3]?g(t.parameters[3]):1];if(w.test(t.name))return(0,o.ay)(function(t){return function(t){if("quantity"!==t.type||null!==t.unit)throw new r.A("effect:type-error",`Expected <double>, Actual: ${f(t)}`,{term:t})}(t),d(t.value,t),t.value}(t.parameters[0]),g(t.parameters[1]),g(t.parameters[2]),t.parameters[3]?g(t.parameters[3]):1);throw new r.A("effect:syntax-error",`Invalid color function '${t.name}'`,{colorFunction:t})}(t.value)}}function x(t){if(!(0,o.V6)(t))throw new r.A("effect:unknown-color",`color '${t}' isn't valid`,{namedColor:t});return(0,o.c4)(t)}const M=/^rgba?/i,w=/^hsla?/i;function b(t,e,n){try{return function(t){if(!t||0===t.length)return null;if(function(t){const e=t[0];return!!e&&"scale"in e}(t)){const e=[];for(const n of t)e.push({scale:n.scale,value:P(n.value)});return e}return P(t)}(t)}catch(t){n?.messages?.push(t)}return null}function A(t,e,n,r){try{const r=function(t){const e=c(t);return e?(0,a.dw)(e)?e.map((t=>t.toJSON())):e.map((({scale:t,effects:e})=>({scale:t,value:e.map((t=>t.toJSON()))}))):null}(t);(0,i.sM)(n,r,e)}catch(t){r.messages&&r.messages.push(t)}}function P(t){if(!t?.length)return"";const e=[];for(const n of t){let t=[];switch(n.type){case"grayscale":case"sepia":case"saturate":case"invert":case"brightness":case"contrast":case"opacity":t=[S(n,"amount")];break;case"blur":t=[S(n,"radius","pt")];break;case"hue-rotate":t=[S(n,"angle","deg")];break;case"drop-shadow":t=[S(n,"xoffset","pt"),S(n,"yoffset","pt"),S(n,"blurRadius","pt"),I(n,"color")];break;case"bloom":t=[S(n,"strength"),S(n,"radius","pt"),S(n,"threshold")]}const r=`${n.type}(${t.filter(Boolean).join(" ")})`;c(r),e.push(r)}return e.join(" ")}function S(t,e,n){if(null==t[e])throw new r.A("effect:missing-parameter",`Missing parameter '${e}' in ${t.type} effect`,{effect:t});return n?t[e]+n:""+t[e]}function I(t,e){if(null==t[e])throw new r.A("effect:missing-parameter",`Missing parameter '${e}' in ${t.type} effect`,{effect:t});const n=t[e];return`rgba(${n[0]||0}, ${n[1]||0}, ${n[2]||0}, ${n[3]/255||0})`}},77690:(t,e,n)=>{n.d(e,{B8:()=>a,Ge:()=>p,I0:()=>h,KC:()=>l,hZ:()=>o,hs:()=>c,lw:()=>u,mg:()=>s,z0:()=>i});var r=n(34304);function i(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[4],t[4]=e[5],t[5]=e[6],t[6]=e[8],t[7]=e[9],t[8]=e[10],t}function o(t,e,n,r,i,o,s,a,l,u){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=o,t[5]=s,t[6]=a,t[7]=l,t[8]=u,t}function s(t,e){if(t===e){const n=e[1],r=e[2],i=e[5];t[1]=e[3],t[2]=e[6],t[3]=n,t[5]=e[7],t[6]=r,t[7]=i}else t[0]=e[0],t[1]=e[3],t[2]=e[6],t[3]=e[1],t[4]=e[4],t[5]=e[7],t[6]=e[2],t[7]=e[5],t[8]=e[8];return t}function a(t,e){const n=e[0],r=e[1],i=e[2],o=e[3],s=e[4],a=e[5],l=e[6],u=e[7],c=e[8],h=c*s-a*u,p=-c*o+a*l,f=u*o-s*l;let d=n*h+r*p+i*f;return d?(d=1/d,t[0]=h*d,t[1]=(-c*r+i*u)*d,t[2]=(a*r-i*s)*d,t[3]=p*d,t[4]=(c*n-i*l)*d,t[5]=(-a*n+i*o)*d,t[6]=f*d,t[7]=(-u*n+r*l)*d,t[8]=(s*n-r*o)*d,t):null}function l(t,e){const n=e[0],r=e[1],i=e[2],o=e[3],s=e[4],a=e[5],l=e[6],u=e[7],c=e[8];return t[0]=s*c-a*u,t[1]=i*u-r*c,t[2]=r*a-i*s,t[3]=a*l-o*c,t[4]=n*c-i*l,t[5]=i*o-n*a,t[6]=o*u-s*l,t[7]=r*l-n*u,t[8]=n*s-r*o,t}function u(t,e,n){const r=e[0],i=e[1],o=e[2],s=e[3],a=e[4],l=e[5],u=e[6],c=e[7],h=e[8],p=n[0],f=n[1],d=n[2],m=n[3],y=n[4],g=n[5],_=n[6],v=n[7],x=n[8];return t[0]=p*r+f*s+d*u,t[1]=p*i+f*a+d*c,t[2]=p*o+f*l+d*h,t[3]=m*r+y*s+g*u,t[4]=m*i+y*a+g*c,t[5]=m*o+y*l+g*h,t[6]=_*r+v*s+x*u,t[7]=_*i+v*a+x*c,t[8]=_*o+v*l+x*h,t}function c(t,e,n){const r=n[0],i=n[1],o=n[2];return t[0]=r*e[0],t[1]=r*e[1],t[2]=r*e[2],t[3]=i*e[3],t[4]=i*e[4],t[5]=i*e[5],t[6]=o*e[6],t[7]=o*e[7],t[8]=o*e[8],t}function h(t,e){const n=e[0],r=e[1],i=e[2],o=e[3],s=n+n,a=r+r,l=i+i,u=n*s,c=r*s,h=r*a,p=i*s,f=i*a,d=i*l,m=o*s,y=o*a,g=o*l;return t[0]=1-h-d,t[3]=c-g,t[6]=p+y,t[1]=c+g,t[4]=1-u-d,t[7]=f-m,t[2]=p-y,t[5]=f+m,t[8]=1-u-h,t}function p(t,e){const n=e[0],r=e[1],i=e[2],o=e[3],s=e[4],a=e[5],l=e[6],u=e[7],c=e[8],h=e[9],p=e[10],f=e[11],d=e[12],m=e[13],y=e[14],g=e[15],_=n*a-r*s,v=n*l-i*s,x=n*u-o*s,M=r*l-i*a,w=r*u-o*a,b=i*u-o*l,A=c*m-h*d,P=c*y-p*d,S=c*g-f*d,I=h*y-p*m,O=h*g-f*m,E=p*g-f*y;let R=_*E-v*O+x*I+M*S-w*P+b*A;return R?(R=1/R,t[0]=(a*E-l*O+u*I)*R,t[1]=(l*S-s*E-u*P)*R,t[2]=(s*O-a*S+u*A)*R,t[3]=(i*O-r*E-o*I)*R,t[4]=(n*E-i*S+o*P)*R,t[5]=(r*S-n*O-o*A)*R,t[6]=(m*b-y*w+g*M)*R,t[7]=(y*x-d*b-g*v)*R,t[8]=(d*w-m*x+g*_)*R,t):null}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[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t[6]=e[6]-n[6],t[7]=e[7]-n[7],t[8]=e[8]-n[8],t}const d=u,m=f;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t[8]=e[8]+n[8],t},adjoint:l,copy:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t},determinant:function(t){const e=t[0],n=t[1],r=t[2],i=t[3],o=t[4],s=t[5],a=t[6],l=t[7],u=t[8];return e*(u*o-s*l)+n*(-u*i+s*a)+r*(l*i-o*a)},equals:function(t,e){const n=t[0],i=t[1],o=t[2],s=t[3],a=t[4],l=t[5],u=t[6],c=t[7],h=t[8],p=e[0],f=e[1],d=e[2],m=e[3],y=e[4],g=e[5],_=e[6],v=e[7],x=e[8],M=(0,r.FD)();return Math.abs(n-p)<=M*Math.max(1,Math.abs(n),Math.abs(p))&&Math.abs(i-f)<=M*Math.max(1,Math.abs(i),Math.abs(f))&&Math.abs(o-d)<=M*Math.max(1,Math.abs(o),Math.abs(d))&&Math.abs(s-m)<=M*Math.max(1,Math.abs(s),Math.abs(m))&&Math.abs(a-y)<=M*Math.max(1,Math.abs(a),Math.abs(y))&&Math.abs(l-g)<=M*Math.max(1,Math.abs(l),Math.abs(g))&&Math.abs(u-_)<=M*Math.max(1,Math.abs(u),Math.abs(_))&&Math.abs(c-v)<=M*Math.max(1,Math.abs(c),Math.abs(v))&&Math.abs(h-x)<=M*Math.max(1,Math.abs(h),Math.abs(x))},exactEquals:function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]},frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+t[6]**2+t[7]**2+t[8]**2)},fromMat2d:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=0,t[3]=e[2],t[4]=e[3],t[5]=0,t[6]=e[4],t[7]=e[5],t[8]=1,t},fromMat4:i,fromQuat:h,fromRotation:function(t,e){const n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=n,t[2]=0,t[3]=-n,t[4]=r,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromScaling:function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=e[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromTranslation:function(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=e[0],t[7]=e[1],t[8]=1,t},identity:function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},invert:a,isOrthoNormal:function(t){const e=(0,r.FD)(),n=t[0],i=t[1],o=t[2],s=t[3],a=t[4],l=t[5],u=t[6],c=t[7],h=t[8];return Math.abs(1-(n*n+s*s+u*u))<=e&&Math.abs(1-(i*i+a*a+c*c))<=e&&Math.abs(1-(o*o+l*l+h*h))<=e},mul:d,multiply:u,multiplyScalar:function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*n,t},multiplyScalarAndAdd:function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t[4]=e[4]+n[4]*r,t[5]=e[5]+n[5]*r,t[6]=e[6]+n[6]*r,t[7]=e[7]+n[7]*r,t[8]=e[8]+n[8]*r,t},normalFromMat4:p,normalFromMat4Legacy:function(t,e){const n=e[0],r=e[1],i=e[2],o=e[4],s=e[5],a=e[6],l=e[8],u=e[9],c=e[10],h=c*s-a*u,p=-c*o+a*l,f=u*o-s*l,d=n*h+r*p+i*f;if(!d)return null;const m=1/d;return t[0]=h*m,t[1]=(-c*r+i*u)*m,t[2]=(a*r-i*s)*m,t[3]=p*m,t[4]=(c*n-i*l)*m,t[5]=(-a*n+i*o)*m,t[6]=f*m,t[7]=(-u*n+r*l)*m,t[8]=(s*n-r*o)*m,t},projection:function(t,e,n){return t[0]=2/e,t[1]=0,t[2]=0,t[3]=0,t[4]=-2/n,t[5]=0,t[6]=-1,t[7]=1,t[8]=1,t},rotate:function(t,e,n){const r=e[0],i=e[1],o=e[2],s=e[3],a=e[4],l=e[5],u=e[6],c=e[7],h=e[8],p=Math.sin(n),f=Math.cos(n);return t[0]=f*r+p*s,t[1]=f*i+p*a,t[2]=f*o+p*l,t[3]=f*s-p*r,t[4]=f*a-p*i,t[5]=f*l-p*o,t[6]=u,t[7]=c,t[8]=h,t},scale:c,scaleByVec2:function(t,e,n){const r=n[0],i=n[1];return t[0]=r*e[0],t[1]=r*e[1],t[2]=r*e[2],t[3]=i*e[3],t[4]=i*e[4],t[5]=i*e[5],t},set:o,str:function(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"},sub:m,subtract:f,translate:function(t,e,n){const r=e[0],i=e[1],o=e[2],s=e[3],a=e[4],l=e[5],u=e[6],c=e[7],h=e[8],p=n[0],f=n[1];return t[0]=r,t[1]=i,t[2]=o,t[3]=s,t[4]=a,t[5]=l,t[6]=p*r+f*s+u,t[7]=p*i+f*a+c,t[8]=p*o+f*l+h,t},transpose:s},Symbol.toStringTag,{value:"Module"}))},78553:(t,e,n)=>{n.d(e,{D:()=>o,p:()=>i});var r=n(56507);function i(t){const e=(0,r.Vr)(100*(1-t));return Math.max(0,Math.min(e,100))}function o(t){const e=1-t/100;return Math.max(0,Math.min(e,1))}},79677:(t,e,n)=>{n.d(e,{A:()=>f});var r,i=n(90237),o=n(25482),s=n(88930),a=n(10107),l=(n(44208),n(53966),n(87811),n(36005)),u=n(40608),c=n(43937),h=n(98623);let p=class extends o.A{static{r=this}static get allTime(){return d}static get empty(){return m}static fromArray(t){return new r({start:null!=t[0]?new Date(t[0]):t[0],end:null!=t[1]?new Date(t[1]):t[1]})}constructor(t){super(t),this.end=null,this.start=null}readEnd(t,e){return null!=e.end?new Date(e.end):null}writeEnd(t,e){e.end=t?.getTime()??null}get isAllTime(){return this.equals(r.allTime)}get isEmpty(){return this.equals(r.empty)}readStart(t,e){return null!=e.start?new Date(e.start):null}writeStart(t,e){e.start=t?.getTime()??null}clone(){return new r({end:this.end,start:this.start})}equals(t){if(!t)return!1;const e=this.start?.getTime()??this.start,n=this.end?.getTime()??this.end,r=t.start?.getTime()??t.start,i=t.end?.getTime()??t.end;return e===r&&n===i}expandTo(t,e=h.qU){if(this.isEmpty||this.isAllTime)return this.clone();let n=this.start;n&&(n=(0,s.lL)(n,t,e));let i=this.end;if(i){const n=(0,s.lL)(i,t,e);i=i.getTime()===n.getTime()?n:(0,s.S1)(n,1,t,e)}return new r({start:n,end:i})}intersection(t){if(!t)return this.clone();if(this.isEmpty||t.isEmpty)return r.empty;if(this.isAllTime)return t.clone();if(t.isAllTime)return this.clone();const e=this.start?.getTime()??-1/0,n=this.end?.getTime()??1/0,i=t.start?.getTime()??-1/0,o=t.end?.getTime()??1/0;let s,a;return i>=e&&i<=n?s=i:e>=i&&e<=o&&(s=e),n>=i&&n<=o?a=n:o>=e&&o<=n&&(a=o),null==s||null==a||isNaN(s)||isNaN(a)?r.empty:new r({start:s===-1/0?null:new Date(s),end:a===1/0?null:new Date(a)})}offset(t,e,n=h.qU){if(this.isEmpty||this.isAllTime)return this.clone();const i=new r,{start:o,end:a}=this;return null!=o&&(i.start=(0,s.S1)(o,t,e,n)),null!=a&&(i.end=(0,s.S1)(a,t,e,n)),i}toArray(){return this.isEmpty?[void 0,void 0]:[this.start?.getTime()??null,this.end?.getTime()??null]}union(t){if(!t||t.isEmpty)return this.clone();if(this.isEmpty)return t.clone();if(this.isAllTime||t.isAllTime)return d.clone();const e=null!=this.start&&null!=t.start?new Date(Math.min(this.start.getTime(),t.start.getTime())):null,n=null!=this.end&&null!=t.end?new Date(Math.max(this.end.getTime(),t.end.getTime())):null;return new r({start:e,end:n})}};(0,i._)([(0,a.MZ)({type:Date,json:{write:{allowNull:!0}}})],p.prototype,"end",void 0),(0,i._)([(0,l.w)("end")],p.prototype,"readEnd",null),(0,i._)([(0,c.K)("end")],p.prototype,"writeEnd",null),(0,i._)([(0,a.MZ)({readOnly:!0,json:{read:!1}})],p.prototype,"isAllTime",null),(0,i._)([(0,a.MZ)({readOnly:!0,json:{read:!1}})],p.prototype,"isEmpty",null),(0,i._)([(0,a.MZ)({type:Date,json:{write:{allowNull:!0}}})],p.prototype,"start",void 0),(0,i._)([(0,l.w)("start")],p.prototype,"readStart",null),(0,i._)([(0,c.K)("start")],p.prototype,"writeStart",null),p=r=(0,i._)([(0,u.$)("esri.time.TimeExtent")],p);const f=p,d=new p,m=new p({start:void 0,end:void 0})},80754:(t,e,n)=>{n.d(e,{j7:()=>s,kS:()=>l,kd:()=>a,r8:()=>u});var r=n(82799),i=n(16930),o=n(65864);const s={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new r.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:i.A.WebMercator}),minus180Line:new r.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:i.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new r.A({paths:[[[180,-180],[180,180]]],spatialReference:i.A.WGS84}),minus180Line:new r.A({paths:[[[-180,-180],[-180,180]]],spatialReference:i.A.WGS84})}};function a(t,e){return Math.ceil((t-e)/(2*e))}function l(t,e){const n=u(t);for(const t of n)for(const n of t)n[0]+=e;return t}function u(t){return(0,o.Bi)(t)?t.rings:t.paths}},85648:(t,e,n)=>{n.d(e,{n:()=>i});var r=n(84952);function i(t){return o[function(t){return"json"===t.type?"application/json":"blob"===t.type?t.blob.type:function(t){const e=(0,r.Zo)(t);return l[e]||s}(t.url)}(t)]||a}const o={},s="text/plain",a=o[s],l={png:"image/png",jpeg:"image/jpeg",jpg:"image/jpg",bmp:"image/bmp",gif:"image/gif",json:"application/json",txt:"text/plain",xml:"application/xml",svg:"image/svg+xml",zip:"application/zip",pbf:"application/vnd.mapbox-vector-tile",gz:"application/gzip","bin.gz":"application/octet-stream"};for(const t in l)o[l[t]]=t},89056:(t,e,n)=>{n.d(e,{b3:()=>h,jZ:()=>c});var r=n(25482),i=n(19419),o=n(537),s=n(95108),a=n(65864),l=n(80754),u=n(21325);function c(t){return p(t,!0)}function h(t){return p(t,!1)}function p(t,e){if(null==t)return null;const n=t.spatialReference,i=(0,u.Vp)(n),s=r.A.isSerializable(t)?t.toJSON():t;if(!i)return s;const c=(0,u.K8)(n)?102100:4326,h=l.j7[c].maxX,p=l.j7[c].minX;if((0,a.fT)(s))return d(s,h,p);if((0,a.U9)(s))return s.points=s.points.map((t=>d(t,h,p))),s;if((0,a.ZC)(s))return f(s,i);if((0,a.Bi)(s)||(0,a.Rg)(s)){const t=(0,o.Rg)(x,s),n={xmin:t[0],ymin:t[1],xmax:t[2],ymax:t[3]},r=(0,l.kd)(n.xmin,p)*(2*h),i=0===r?s:(0,l.kS)(s,r);return n.xmin+=r,n.xmax+=r,n.xmax>h?_(i,h,e):n.xmin<p?_(i,p,e):i}return s}function f(t,e){if(!e)return t;const n=function(t,e){const n=[],{ymin:r,ymax:i,xmin:o,xmax:s}=t,a=t.xmax-t.xmin,[l,u]=e.valid,{x:c,frameId:h}=m(t.xmin,e),{x:p,frameId:f}=m(t.xmax,e),d=c===p&&a>0;if(a>2*u){const t={xmin:o<s?c:p,ymin:r,xmax:u,ymax:i},e={xmin:l,ymin:r,xmax:o<s?p:c,ymax:i},a={xmin:0,ymin:r,xmax:u,ymax:i},d={xmin:l,ymin:r,xmax:0,ymax:i},m=[],g=[];y(t,a)&&m.push(h),y(t,d)&&g.push(h),y(e,a)&&m.push(f),y(e,d)&&g.push(f);for(let t=h+1;t<f;t++)m.push(t),g.push(t);n.push(new v(t,[h]),new v(e,[f]),new v(a,m),new v(d,g))}else c>p||d?n.push(new v({xmin:c,ymin:r,xmax:u,ymax:i},[h]),new v({xmin:l,ymin:r,xmax:p,ymax:i},[f])):n.push(new v({xmin:c,ymin:r,xmax:p,ymax:i},[h]));return n}(t,e).map((t=>t.extent));return n.length<2?n[0]||t:n.length>2?(t.xmin=e.valid[0],t.xmax=e.valid[1],t):{rings:n.map((t=>[[t.xmin,t.ymin],[t.xmin,t.ymax],[t.xmax,t.ymax],[t.xmax,t.ymin],[t.xmin,t.ymin]]))}}function d(t,e,n){if(Array.isArray(t)){const r=t[0];if(r>e){const n=(0,l.kd)(r,e);t[0]=r+n*(-2*e)}else if(r<n){const e=(0,l.kd)(r,n);t[0]=r+e*(-2*n)}}else{const r=t.x;if(r>e){const n=(0,l.kd)(r,e);t.x+=n*(-2*e)}else if(r<n){const e=(0,l.kd)(r,n);t.x+=e*(-2*n)}}return t}function m(t,e){const[n,r]=e.valid,i=2*r;let o,s=0;return t>r?(o=Math.ceil(Math.abs(t-r)/i),t-=o*i,s=o):t<n&&(o=Math.ceil(Math.abs(t-n)/i),t+=o*i,s=-o),{x:t,frameId:s}}function y(t,e){const{xmin:n,ymin:r,xmax:i,ymax:o}=e;return g(t,n,r)&&g(t,n,o)&&g(t,i,o)&&g(t,i,r)}function g(t,e,n){return e>=t.xmin&&e<=t.xmax&&n>=t.ymin&&n<=t.ymax}function _(t,e,n=!0){const r=!(0,a.Rg)(t);if(r&&(0,s.m3)(t),n)return(new M).cut(t,e);const i=r?t.rings:t.paths,o=r?4:2,l=i.length,u=-2*e;for(let t=0;t<l;t++){const e=i[t];if(e&&e.length>=o){const t=[];for(const n of e)t.push([n[0]+u,n[1]]);i.push(t)}}return r?t.rings=i:t.paths=i,t}class v{constructor(t,e){this.extent=t,this.frameIds=e}}const x=(0,i.vt)();class M{constructor(){this._linesIn=[],this._linesOut=[]}cut(t,e){let n;if(this._xCut=e,t.rings)this._closed=!0,n=t.rings,this._minPts=4;else{if(!t.paths)return null;this._closed=!1,n=t.paths,this._minPts=2}for(const t of n){if(!t||t.length<this._minPts)continue;let e=!0;for(const n of t)e?(this.moveTo(n),e=!1):this.lineTo(n);this._closed&&this.close()}this._pushLineIn(),this._pushLineOut(),n=[];for(const t of this._linesIn)t&&t.length>=this._minPts&&n.push(t);const r=-2*this._xCut;for(const t of this._linesOut)if(t&&t.length>=this._minPts){for(const e of t)e[0]+=r;n.push(t)}return this._closed?t.rings=n:t.paths=n,t}moveTo(t){this._pushLineIn(),this._pushLineOut(),this._prevSide=this._side(t[0]),this._moveTo(t[0],t[1],this._prevSide),this._prevPt=t,this._firstPt=t}lineTo(t){const e=this._side(t[0]);if(e*this._prevSide==-1){const n=this._intersect(this._prevPt,t);this._lineTo(this._xCut,n,0),this._prevSide=0,this._lineTo(t[0],t[1],e)}else this._lineTo(t[0],t[1],e);this._prevSide=e,this._prevPt=t}close(){const t=this._firstPt,e=this._prevPt;t[0]===e[0]&&t[1]===e[1]||this.lineTo(t),this._checkClosingPt(this._lineIn),this._checkClosingPt(this._lineOut)}_moveTo(t,e,n){this._closed?(this._lineIn.push([n<=0?t:this._xCut,e]),this._lineOut.push([n>=0?t:this._xCut,e])):(n<=0&&this._lineIn.push([t,e]),n>=0&&this._lineOut.push([t,e]))}_lineTo(t,e,n){this._closed?(w(this._lineIn,n<=0?t:this._xCut,e),w(this._lineOut,n>=0?t:this._xCut,e)):n<0?(0===this._prevSide&&this._pushLineOut(),this._lineIn.push([t,e])):n>0?(0===this._prevSide&&this._pushLineIn(),this._lineOut.push([t,e])):this._prevSide<0?(this._lineIn.push([t,e]),this._lineOut.push([t,e])):this._prevSide>0&&(this._lineOut.push([t,e]),this._lineIn.push([t,e]))}_checkClosingPt(t){const e=t.length;e>3&&t[0][0]===this._xCut&&t[e-2][0]===this._xCut&&t[1][0]===this._xCut&&(t[0][1]=t[e-2][1],t.pop())}_side(t){return t<this._xCut?-1:t>this._xCut?1:0}_intersect(t,e){const n=(this._xCut-t[0])/(e[0]-t[0]);return t[1]+n*(e[1]-t[1])}_pushLineIn(){this._lineIn&&this._lineIn.length>=this._minPts&&this._linesIn.push(this._lineIn),this._lineIn=[]}_pushLineOut(){this._lineOut&&this._lineOut.length>=this._minPts&&this._linesOut.push(this._lineOut),this._lineOut=[]}}function w(t,e,n){const r=t.length;r>1&&t[r-1][0]===e&&t[r-2][0]===e?t[r-1][1]=n:t.push([e,n])}},92071:(t,e,n)=>{n.d(e,{P:()=>v,L:()=>x});var r=n(90237),i=n(69622),o=n(76953),s=n(4718),a=n(35666);class l{constructor(){this._propertyOriginMap=new Map,this._originStores=new Array(a.AU),this._values=new Map,this.multipleOriginsSupported=!0}clone(t){const e=new l,n=this._originStores[a.Gr.DEFAULTS];n&&n.forEach(((t,n)=>{e.set(n,(0,s.o8)(t),a.Gr.DEFAULTS)}));for(let n=a.Gr.SERVICE;n<a.AU;n++){const r=this._originStores[n];r&&r.forEach(((r,i)=>{t&&t.has(i)||e.set(i,(0,s.o8)(r),n)}))}return e}get(t,e){const n=void 0===e?this._values:this._originStores[e];return n?n.get(t):void 0}keys(t){const e=null==t?this._values:this._originStores[t];return e?[...e.keys()]:[]}set(t,e,n=a.Gr.USER){let r=this._originStores[n];if(r||(r=new Map,this._originStores[n]=r),r.set(t,e),!this._values.has(t)||this._propertyOriginMap.get(t)<=n){const r=this._values.get(t);return this._values.set(t,e),this._propertyOriginMap.set(t,n),r!==e}return!1}delete(t,e=a.Gr.USER){const n=this._originStores[e];if(!n)return;const r=n.get(t);if(n.delete(t),this._values.has(t)&&this._propertyOriginMap.get(t)===e){this._values.delete(t);for(let n=e-1;n>=0;n--){const e=this._originStores[n];if(e&&e.has(t)){this._values.set(t,e.get(t)),this._propertyOriginMap.set(t,n);break}}}return r}has(t,e){const n=void 0===e?this._values:this._originStores[e];return!!n&&n.has(t)}revert(t,e){for(;e>0&&!this.has(t,e);)--e;const n=this._originStores[e],r=n?.get(t),i=this._values.get(t);return this._values.set(t,r),this._propertyOriginMap.set(t,e),i!==r}originOf(t){return this._propertyOriginMap.get(t)||a.Gr.DEFAULTS}isAtOrigin(t,e){return this.has(t,e)&&this.originOf(t)===e}isBelowOrigin(t,e){return!this.has(t)||this.originOf(t)<e}forEach(t){this._values.forEach(t)}}var u=n(45917),c=n(88620),h=n(40608);const p=t=>{let e=class extends t{constructor(...t){super(...t);const e=(0,c.oY)(this),n=e.store,r=new l;e.store=r,(0,o.k)(e,n,r)}read(t,e){(0,u.L)(this,t,e)}getAtOrigin(t,e){const n=f(this),r=(0,a.aB)(e);if("string"==typeof t)return n.get(t,r);const i={};return t.forEach((t=>{i[t]=n.get(t,r)})),i}originOf(t){return(0,a.OL)(this.originIdOf(t))}originIdOf(t){return f(this).originOf(t)}revert(t,e){const n=f(this),r=(0,a.aB)(e),i=(0,c.oY)(this);let o;o="string"==typeof t?"*"===t?n.keys(r):[t]:t,o.forEach((t=>{i.invalidate(t),n.revert(t,r),i.commit(t)}))}};return e=(0,r._)([(0,h.$)("esri.core.ReadOnlyMultiOriginJSONSupport")],e),e};function f(t){return(0,c.oY)(t).store}let d=class extends(p(i.A)){};d=(0,r._)([(0,h.$)("esri.core.ReadOnlyMultiOriginJSONSupport")],d);var m=n(16649),y=n(49422);const g=t=>{let e=class extends t{constructor(...t){super(...t)}clear(t,e="user"){(0,c.oY)(this).clearOrigin(t,(0,a.aB)(e))}write(t,e){return(0,y.M)(this,t=t||{},e),t}setAtOrigin(t,e,n){(0,c.oY)(this).setAtOrigin(t,e,(0,a.aB)(n))}removeOrigin(t){const e=_(this),n=(0,a.aB)(t),r=e.keys(n);for(const t of r)e.originOf(t)===n&&e.set(t,e.get(t,n),a.Gr.USER)}updateOrigin(t,e){const n=_(this),r=(0,a.aB)(e),i=(0,m.Jt)(this,t);for(let e=r+1;e<a.AU;++e)n.delete(t,e);n.set(t,i,r)}toJSON(t){return this.write({},t)}};return e=(0,r._)([(0,h.$)("esri.core.MultiOriginJSONSupport.WriteableMultiOriginJSONSupport")],e),e.prototype.toJSON.isDefaultToJSON=!0,e};function _(t){return(0,c.oY)(t).store}const v=t=>{let e=class extends(g(p(t))){constructor(...t){super(...t)}};return e=(0,r._)([(0,h.$)("esri.core.MultiOriginJSONSupport")],e),e};let x=class extends(v(i.A)){};x=(0,r._)([(0,h.$)("esri.core.MultiOriginJSONSupport")],x)},92935:(t,e,n)=>{var r;n.d(e,{X:()=>r}),function(t){t[t.SAVE=0]="SAVE",t[t.SAVE_AS=1]="SAVE_AS"}(r||(r={}))}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6650],{69052:(e,t,i)=>{i.d(t,{ie:()=>l});var n=i(34727);class r{constructor(e,t){this.min=e,this.max=t,this.range=t-e}normalize(e,t=0,i=!1){return s(this.range,this.min,this.max,e,t,i)}clamp(e,t=0){return(0,n.qE)(e-t,this.min,this.max)+t}monotonic(e,t,i){return e<t?t:t+o(this.range,e-t,i)}minimalMonotonic(e,t,i){return s(this.range,e,e+this.range,t,i)}center(e,t,i){return t=this.monotonic(e,t,i),this.normalize((e+t)/2,i)}diff(e,t,i){return this.monotonic(e,t,i)-e}shortestSignedDiff(e,t){e=this.normalize(e);const i=(t=this.normalize(t))-e,n=t<e?this.minimalMonotonic(e,t)-e:t-this.minimalMonotonic(t,e);return Math.abs(i)<Math.abs(n)?i:n}contains(e,t,i){return t=this.minimalMonotonic(e,t),(i=this.minimalMonotonic(e,i))>e&&i<t}}function s(e,t,i,n,r=0,s=!1){return(n-=r)<t?n+=o(e,t-n):n>i&&(n-=o(e,n-i)),s&&n===i&&(n=t),n+r}function o(e,t,i=0){return Math.ceil((t-i)/e)*e+i}new r(0,2*Math.PI),new r(-Math.PI,Math.PI);const l=new r(0,360)},96650:(e,t,i)=>{i.r(t),i.d(t,{default:()=>F});var n=i(90237),r=i(65176),s=i(69540),o=i(69052),l=i(25482),a=i(97768),u=i(10107),h=i(79901),p=(i(44208),i(87811),i(40608)),d=i(56507),c=i(86738);let w=class extends(l.A.JSONSupportMixin(s.A)){constructor(e){super(e),this.observer=null,this.farDistance=1e3,this.heading=0,this.tilt=90,this.horizontalFieldOfView=45,this.verticalFieldOfView=45,this.feature=null}isValid(){return null!=this.observer&&this.farDistance>0}equals(e){return(0,a.CM)(this.observer,e.observer)&&this.farDistance===e.farDistance&&this.heading===e.heading&&this.tilt===e.tilt&&this.horizontalFieldOfView===e.horizontalFieldOfView&&this.verticalFieldOfView===e.verticalFieldOfView&&(0,r.xH)(this.feature,e.feature)}};(0,n._)([(0,u.MZ)({type:c.A,json:{write:{isRequired:!0}}})],w.prototype,"observer",void 0),(0,n._)([(0,u.MZ)({type:Number,nonNullable:!0,range:{min:0},json:{write:{isRequired:!0}}})],w.prototype,"farDistance",void 0),(0,n._)([(0,u.MZ)({type:Number,nonNullable:!0,json:{write:{isRequired:!0}}}),(0,h.w)((e=>o.ie.normalize((0,d.GB)(e),void 0,!0)))],w.prototype,"heading",void 0),(0,n._)([(0,u.MZ)({type:Number,nonNullable:!0,range:{min:0,max:180},json:{write:{isRequired:!0}}})],w.prototype,"tilt",void 0),(0,n._)([(0,u.MZ)({type:Number,nonNullable:!0,range:{min:0,max:360},json:{write:{isRequired:!0}}})],w.prototype,"horizontalFieldOfView",void 0),(0,n._)([(0,u.MZ)({type:Number,nonNullable:!0,range:{min:0,max:180},json:{write:{isRequired:!0}}})],w.prototype,"verticalFieldOfView",void 0),(0,n._)([(0,u.MZ)(r.N1)],w.prototype,"feature",void 0),(0,n._)([(0,u.MZ)({json:{read:!1}})],w.prototype,"isValid",null),w=(0,n._)([(0,p.$)("esri.analysis.Viewshed")],w);const m=w;var y=i(45475),v=i(5503),f=i(62885),g=i(34727),M=i(36708),x=(i(53966),i(5443)),_=i(80586);const b=v.A.ofType(m);let O=class extends y.A{constructor(e){super(e),this.type="viewshed",this._extent=null}initialize(){this.addHandles((0,M.wB)((()=>this._computeExtent()),(e=>{null==e.pending&&(this._extent=e.extent)}),M.pc))}get viewsheds(){return this._get("viewsheds")||new b}set viewsheds(e){this._set("viewsheds",(0,f.V)(e,this.viewsheds,b))}get spatialReference(){for(const e of this.viewsheds)if(null!=e.observer)return e.observer.spatialReference;return null}get extent(){return this._extent}get requiredPropertiesForEditing(){return this.viewsheds.items.map((({observer:e})=>e))}async waitComputeExtent(){const e=this._computeExtent();null!=e.pending&&await e.pending}_computeExtent(){const{spatialReference:e}=this;if(null==e)return{pending:null,extent:null};const t=this.viewsheds.filter((e=>null!=e.observer)),i=t.map((e=>e.observer)).toArray(),n=(0,_.projectOrLoadMany)(i,e);return null!=n.pending?{pending:n.pending,extent:null}:{pending:null,extent:n.geometries.map(((e,i)=>{const n=t.at(i);return null!=e&&null!=n?this._computeViewshedExtent(this.viewsheds.at(i),e):null})).filter((e=>null!=e)).reduce(((e,t)=>function(e,t){return null==e?t:null==t?e:e.union(t)}(e,t)),null)}}_computeViewshedExtent(e,t){const{farDistance:i,heading:n,tilt:r,horizontalFieldOfView:s,verticalFieldOfView:l}=e,{spatialReference:a}=t,u=s/2,h=l/2,p=i/a.metersPerUnit,d=[o.ie.normalize(n-u),n,o.ie.normalize(n+u)],c=x.A.fromPoint(t),w=e=>{const t=d.map((t=>o.ie.normalize(t-e)));if(t[0]>t[2]||360===s)return p;const i=t.map((e=>Math.abs(e>180?360-e:e))).reduce(((e,t)=>e>t?t:e));return i>90?0:p*Math.cos((0,g.kU)(i))};c.xmax+=w(90),c.xmin-=w(-90),c.ymax+=w(0),c.ymin-=w(180);const m=t.z;if(null!=m){let e=m,t=m;const n=r-90,s=(0,g.qE)(n+h,-90,90),o=(0,g.qE)(n-h,-90,90),l=a?.isGeographic?i:p;e+=l*Z(s),t+=l*Z(o);const d=V(h)*l,w=Z(n)*d*(1-V(u));r<90&&(e-=w),r>90&&(t-=w),c.zmax=Math.max(e,m),c.zmin=Math.min(t,m)}return c}clear(){this.viewsheds.removeAll()}};function V(e){return Math.cos((0,g.kU)(e))}function Z(e){return Math.sin((0,g.kU)(e))}(0,n._)([(0,u.MZ)({type:["viewshed"]})],O.prototype,"type",void 0),(0,n._)([(0,u.MZ)({cast:f.H,type:b,nonNullable:!0})],O.prototype,"viewsheds",null),(0,n._)([(0,u.MZ)({readOnly:!0})],O.prototype,"spatialReference",null),(0,n._)([(0,u.MZ)()],O.prototype,"_extent",void 0),(0,n._)([(0,u.MZ)({readOnly:!0})],O.prototype,"extent",null),(0,n._)([(0,u.MZ)({readOnly:!0})],O.prototype,"requiredPropertiesForEditing",null),O=(0,n._)([(0,p.$)("esri.analysis.ViewshedAnalysis")],O);const z=O;var R=i(92071),N=i(43937),E=i(4146),q=i(16131);let A=class extends((0,q.q)((0,R.P)(E.A))){constructor(e){super(e),this.type="viewshed",this.operationalLayerType="ViewshedLayer",this.source=new z,this.opacity=1}initialize(){this.addHandles((0,M.wB)((()=>this.source),((e,t)=>{null!=t&&t.parent===this&&(t.parent=null),null!=e&&(e.parent=this)}),M.pc))}async load(){return this.addResolvingPromise(this.source.waitComputeExtent()),this}get spatialReference(){return this.source.spatialReference}get fullExtent(){return this.source.extent}releaseAnalysis(e){this.source===e&&(this.source=new z)}get analysis(){return this.source}set analysis(e){this.source=e}get viewsheds(){return this.source.viewsheds}set viewsheds(e){this.source.viewsheds=e}writeViewsheds(e,t,i,n){t.viewsheds=e.filter((e=>e.isValid())).map((e=>e.toJSON(n))).toJSON()}};(0,n._)([(0,u.MZ)({json:{read:!1},readOnly:!0})],A.prototype,"type",void 0),(0,n._)([(0,u.MZ)({type:["ViewshedLayer"]})],A.prototype,"operationalLayerType",void 0),(0,n._)([(0,u.MZ)({type:z,nonNullable:!0})],A.prototype,"source",void 0),(0,n._)([(0,u.MZ)({readOnly:!0})],A.prototype,"spatialReference",null),(0,n._)([(0,u.MZ)({readOnly:!0})],A.prototype,"fullExtent",null),(0,n._)([(0,u.MZ)({readOnly:!0,json:{read:!1,write:!1,origins:{service:{read:!1,write:!1},"portal-item":{read:!1,write:!1},"web-document":{read:!1,write:!1}}}})],A.prototype,"opacity",void 0),(0,n._)([(0,u.MZ)({type:["show","hide"]})],A.prototype,"listMode",void 0),(0,n._)([(0,u.MZ)({type:v.A.ofType(m),json:{write:{ignoreOrigin:!0},origins:{"web-scene":{write:{ignoreOrigin:!0}}}}})],A.prototype,"viewsheds",null),(0,n._)([(0,N.K)("web-scene","viewsheds")],A.prototype,"writeViewsheds",null),A=(0,n._)([(0,p.$)("esri.layers.ViewshedLayer")],A);const F=A}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3513,6462],{4071:(e,t,r)=>{r.d(t,{$:()=>i,P:()=>s});const i={supportsDate:!1,supportsFixedInterval:!1,supportsAutoInterval:!1,supportsFixedBoundaries:!1,supportsStackBy:!1,supportsSplitBy:!1,supportsSnapToData:!1,supportsReturnFullIntervalBin:!1,supportsFirstDayOfWeek:!1,supportsNormalization:!1,supportedStatistics:void 0,supportedNormalizationTypes:void 0},s={analytics:{supportsCacheHint:!1},attachment:{supportsContentType:!1,supportsExifInfo:!1,supportsKeywords:!1,supportsName:!1,supportsSize:!1,supportsCacheHint:!1,supportsOrderByFields:!1,supportsResize:!1},data:{isVersioned:!1,isBranchVersioned:!1,supportsAttachment:!1,supportsM:!1,supportsZ:!1},editing:{supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsGeometryUpdate:!1,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsAsyncApplyEdits:!1,zDefault:void 0},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:!1,supportsDelete:!1,supportsEditing:!1,supportsChangeTracking:!1,supportsQuery:!1,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryBins:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:!1,supportsExceedsLimitStatistics:!1,supportsAsyncConvert3D:!1},queryRelated:{supportsCount:!1,supportsOrderBy:!1,supportsPagination:!1,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},queryAttributeBins:i,query:{maxRecordCount:0,maxRecordCountFactor:0,maxUniqueIDCount:0,standardMaxRecordCount:0,supportsCacheHint:!1,supportsCentroid:!1,supportsCompactGeometry:!1,supportsCurrentUser:!1,supportsDefaultSpatialReference:!1,supportsFullTextSearch:!1,supportsDisjointSpatialRelationship:!1,supportsDistance:!1,supportsDistinct:!1,supportsExtent:!1,supportsFormatPBF:!1,supportsGeometryProperties:!1,supportsHavingClause:!1,supportsHistoricMoment:!1,supportsMaxRecordCountFactor:!1,supportsOrderBy:!1,supportsPagination:!1,supportsPercentileStatistics:!1,supportsQuantization:!1,supportsQuantizationEditMode:!1,supportsQueryByAnonymous:!1,supportsQueryByOthers:!1,supportsQueryGeometry:!1,supportsResultType:!1,supportsReturnMesh:!1,supportsSqlExpression:!1,supportsStandardizedQueriesOnly:!1,supportsTopFeaturesQuery:!1,supportsTrueCurve:!1,supportsSpatialAggregationStatistics:!1,supportedSpatialAggregationStatistics:{envelope:!1,centroid:!1,convexHull:!1},supportsStatistics:!1,tileMaxRecordCount:0}}},4146:(e,t,r)=>{r.d(t,{A:()=>_});var i=r(90237),s=r(78888),n=r(49186),o=r(65529),a=r(4902),l=r(92474),u=r(53966),p=r(74887),d=r(84952),c=r(10107),h=(r(44208),r(87811),r(40608)),y=r(5443),f=r(16930),m=r(92602),g=r(79677);let v=0,w=class extends(o.A.EventedMixin(a.A.IdentifiableMixin(l.A))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new y.A(-180,-90,180,90,f.A.WGS84),this.id=Date.now().toString(16)+"-layer-"+v++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.persistenceEnabled=!1,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=f.A.WGS84,this.title=null,this.type=null,this.url=null,this.visibilityTimeExtent=null,this.visible=!0}static async fromArcGISServerUrl(e){const t="string"==typeof e?{url:e}:e;return(await r.e(7982).then(r.bind(r,27982))).fromUrl(t)}static fromPortalItem(e){return async function(e){const t="portalItem"in e?e:{portalItem:e},{fromItem:i}=await r.e(5613).then(r.bind(r,45613));try{return await i(t)}catch(e){const r=t?.portalItem,i=r?.id||"unset",s=r?.portal?.url||m.A.portalUrl;throw u.A.getLogger("esri.layers.support.fromPortalItem").error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+s+"', id: '"+i+"')",e),e}}(e)}initialize(){this.when().catch((e=>{(0,p.zf)(e)||u.A.getLogger(this).error("#load()",`Failed to load layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}')`,{error:e})}))}destroy(){const e=this.parent;if(e){const t=this;"layers"in e&&e.layers.includes(t)?e.layers.remove(t):"tables"in e&&e.tables.includes(t)?e.tables.remove(t):"baseLayers"in e&&e.baseLayers.includes(t)?e.baseLayers.remove(t):"referenceLayers"in e&&e.referenceLayers.includes(t)&&e.referenceLayers.remove(t),this._set("parent",null)}}get effectiveVisible(){let e=this.visible;const t=this.parent;return e&&t&&"effectiveVisible"in t&&(e&&=t.effectiveVisible),e}get hasAttributionData(){return null!=this.attributionDataUrl}get parsedUrl(){return(0,d.An)(this.url)}createLayerView(e,t){return Promise.reject(new n.A("layer:create-layer-view","Layer does not support creating a layer view"))}async fetchAttributionData(){const e=this.attributionDataUrl;if(this.hasAttributionData&&e)return(await(0,s.A)(e,{query:{f:"json"},responseType:"json"})).data;throw new n.A("layer:no-attribution-data","Layer does not have attribution data")}};(0,i._)([(0,c.MZ)({type:String})],w.prototype,"attributionDataUrl",void 0),(0,i._)([(0,c.MZ)({readOnly:!0})],w.prototype,"effectiveVisible",null),(0,i._)([(0,c.MZ)({type:y.A})],w.prototype,"fullExtent",void 0),(0,i._)([(0,c.MZ)({readOnly:!0})],w.prototype,"hasAttributionData",null),(0,i._)([(0,c.MZ)({type:String,clonable:!1})],w.prototype,"id",void 0),(0,i._)([(0,c.MZ)({type:Boolean,nonNullable:!0})],w.prototype,"legendEnabled",void 0),(0,i._)([(0,c.MZ)({type:["show","hide","hide-children"]})],w.prototype,"listMode",void 0),(0,i._)([(0,c.MZ)({type:Number,range:{min:0,max:1},nonNullable:!0})],w.prototype,"opacity",void 0),(0,i._)([(0,c.MZ)({clonable:!1})],w.prototype,"parent",void 0),(0,i._)([(0,c.MZ)({readOnly:!0})],w.prototype,"parsedUrl",null),(0,i._)([(0,c.MZ)({type:Boolean,readOnly:!0})],w.prototype,"persistenceEnabled",void 0),(0,i._)([(0,c.MZ)({type:Boolean})],w.prototype,"popupEnabled",void 0),(0,i._)([(0,c.MZ)({type:Boolean})],w.prototype,"attributionVisible",void 0),(0,i._)([(0,c.MZ)({type:f.A})],w.prototype,"spatialReference",void 0),(0,i._)([(0,c.MZ)({type:String})],w.prototype,"title",void 0),(0,i._)([(0,c.MZ)({readOnly:!0,json:{read:!1}})],w.prototype,"type",void 0),(0,i._)([(0,c.MZ)()],w.prototype,"url",void 0),(0,i._)([(0,c.MZ)({type:g.A})],w.prototype,"visibilityTimeExtent",void 0),(0,i._)([(0,c.MZ)({type:Boolean,nonNullable:!0})],w.prototype,"visible",void 0),w=(0,i._)([(0,h.$)("esri.layers.Layer")],w);const _=w},8303:(e,t,r)=>{r.d(t,{A:()=>I});var i=r(90237),s=r(92602),n=r(70333),o=r(78888),a=r(60999),l=r(49186),u=r(53966),p=r(97768),d=r(74887),c=r(84952),h=r(10107),y=(r(44208),r(87811),r(36005)),f=r(40608),m=r(43937),g=r(83531),v=r(20655),w=r(80812),_=r(41318),b=r(10407);const I=e=>{let t=class extends e{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}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,r){if(t.itemId)return new w.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,d.Te)(t),await i({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},t)}catch(e){throw(0,d.zf)(e)||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,d.QP)(e),!0))))}async setUserPrivileges(e,t){if(!s.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:r,fullEdit:i},content:{updateItem:s}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",r),this._set("userHasFullEditingPrivileges",i),this._set("userHasUpdateItemPrivileges",s)}catch(e){(0,d.QP)(e)}}async _fetchUserPrivileges(e,t){let r=this.portalItem;if(!e||!r||!r.loaded||r.sourceUrl)return this._fetchFallbackUserPrivileges(t);const i=!n.id?.findCredential(this.url),s=e===r.id;if(s&&r.portal.user)return this._getUserPrivileges(r,i);let o,a;if(s)o=r.portal.url;else try{o=await(0,g.wI)(this.url,t)}catch(e){(0,d.QP)(e)}if(!o||!(0,c.b8)(o,r.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;a=await(n.id?.getCredential(`${o}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,d.QP)(e)}const l=!0,u=!1,p=!1;if(!a)return{features:{edit:l,fullEdit:u},content:{updateItem:p}};try{if(s?await r.reload():(r=new w.default({id:e,portal:{url:o}}),await r.load(t)),r.portal.user)return this._getUserPrivileges(r,i)}catch(e){(0,d.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,d.QP)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){const t=this.url?n.id?.findCredential(this.url):null;if(!t)return!0;const r=A.credential===t?A.user:await this._fetchEditingUser(e);return A.credential=t,A.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=n.id?.findServerInfo(this.url??"");if(!r?.owningSystemUrl)return null;const i=`${r.owningSystemUrl}/sharing/rest`,s=v.A.getDefault();if(s&&s.loaded&&(0,c.S8)(s.restUrl)===(0,c.S8)(i))return s.user;const l=`${i}/community/self`,u=null!=e?e.signal:null,p=await(0,a.Ke)((0,o.A)(l,{authMode:"no-prompt",query:{f:"json"},signal:u}));return p.ok?_.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||v.A.getDefault());return r&&i&&!(0,c.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._)([(0,h.MZ)({type:w.default})],t.prototype,"portalItem",null),(0,i._)([(0,y.w)("web-document","portalItem",["itemId"])],t.prototype,"readPortalItem",null),(0,i._)([(0,m.K)("web-document","portalItem",{itemId:{type:String}})],t.prototype,"writePortalItem",null),(0,i._)([(0,h.MZ)({clonable:!1})],t.prototype,"resourceReferences",void 0),(0,i._)([(0,h.MZ)({type:Boolean,readOnly:!0})],t.prototype,"userHasEditingPrivileges",void 0),(0,i._)([(0,h.MZ)({type:Boolean,readOnly:!0})],t.prototype,"userHasFullEditingPrivileges",void 0),(0,i._)([(0,h.MZ)({type:Boolean,readOnly:!0})],t.prototype,"userHasUpdateItemPrivileges",void 0),t=(0,i._)([(0,f.$)("esri.layers.mixins.PortalLayer")],t),t},A={credential:null,user:null}},8947:(e,t,r)=>{r.d(t,{L:()=>o});var i=r(60999),s=r(74887),n=r(67076);async function o(e,t,r){const o=e&&e.getAtOrigin&&e.getAtOrigin("renderer",t.origin);if(o&&"unique-value"===o.type&&o.styleOrigin){const a=await(0,i.Ke)(o.populateFromStyle());if((0,s.Te)(r),!1===a.ok){const r=a.error;t?.messages&&t.messages.push(new n.A("renderer:style-reference",`Failed to create unique value renderer from style reference: ${r.message}`,{error:r,context:t})),e.clear("renderer",t?.origin)}}}},10184:(e,t,r)=>{r.d(t,{A:()=>c});var i=r(90237),s=r(69540),n=r(25482),o=r(88930),a=r(10107),l=(r(44208),r(53966),r(87811),r(93223)),u=r(40608),p=r(73133);let d=class extends(s.A.ClonableMixin(n.A)){constructor(e){super(e),this.unit="milliseconds",this.value=0}toMilliseconds(){return(0,o.t)(this.value,this.unit,"milliseconds")}};(0,i._)([(0,l.e)(p.j,{nonNullable:!0})],d.prototype,"unit",void 0),(0,i._)([(0,a.MZ)({type:Number,json:{write:!0},nonNullable:!0})],d.prototype,"value",void 0),d=(0,i._)([(0,u.$)("esri.time.TimeInterval")],d);const c=d},13899:(e,t,r)=>{r.r(t),r.d(t,{default:()=>je});var i=r(90237),s=r(52106),n=r(13874),o=r(69540),a=r(5503),l=r(49186),u=r(36563),p=r(53966),d=r(97768),c=r(92071),h=r(74887),y=r(36708),f=r(10107),m=(r(44208),r(87811),r(88620)),g=r(36005),v=r(40608),w=r(35666),_=r(86738),b=r(4146),I=r(55726),A=r(52136),S=r(18768),x=r(69208),M=r(47685),F=r(16131),T=r(8303),E=r(25036),O=r(58947),L=r(82935),j=r(25482),R=r(30524);function Z({associatedLayer:e,serviceUpdateTimeStamp:t}){const r=e?.editingInfo?.lastEditDate,i=e?.serverGens,s=null!=r,n=null!=t,o=s&&n&&t.lastUpdate!==r.getTime();return s&&(o||!n&&i?.minServerGen!==i?.serverGen)}var U=r(96184),P=r(79677),$=r(10184);const D=e=>{let t=class extends e{constructor(){super(...arguments),this.serviceTimeInfo=null}get timeInfo(){const e=this.associatedLayer?.timeInfo;if(null==e)return null;const t=e.clone();return(0,R.sv)(t,this.fieldsIndex),t}set timeInfo(e){(0,R.sv)(e,this.fieldsIndex),this._override("timeInfo",e)}get timeExtent(){return this.associatedLayer?.timeExtent}set timeExtent(e){this._override("timeExtent",e)}get timeOffset(){return this.associatedLayer?.timeOffset}set timeOffset(e){this._override("timeOffset",e)}get datesInUnknownTimezone(){return this.associatedLayer?.datesInUnknownTimezone??!1}set datesInUnknownTimezone(e){this._override("datesInUnknownTimezone",e)}async loadTimeInfoFromService(e){const{serviceTimeInfo:t}=this;if(null==t)return;const{startTimeField:r,endTimeField:i}=t;if(null==r&&null==i)return;if(Z({associatedLayer:this.associatedLayer,serviceUpdateTimeStamp:this.serviceUpdateTimeStamp}))return;const s=async t=>{let i=null;try{const r=await(this.fetchStatistics?.(t,e));i=r?.stats}catch{}if(null==i)return null;const{minTimeStr:s,min:n,maxTimeStr:o,max:a}=i,l=t===r?s??n:o??a;return null!=l?new Date(l):null},[n,o]=await Promise.all([s(r),s(i)]);if(null!=r&&null==n||null!=i&&null==o)return;const a=new P.A({start:n,end:o});this.setAtOrigin("timeInfo",new U.A({endField:i,startField:r,fullTimeExtent:a}),"service")}};return(0,i._)([(0,f.MZ)({type:U.A,json:{read:!1,write:!1}})],t.prototype,"timeInfo",null),(0,i._)([(0,f.MZ)({type:P.A,json:{read:!1,write:!1}})],t.prototype,"timeExtent",null),(0,i._)([(0,f.MZ)({type:$.A,json:{read:!1,write:!1}})],t.prototype,"timeOffset",null),(0,i._)([(0,f.MZ)({type:Boolean,nonNullable:!0,json:{read:!1,write:!1}})],t.prototype,"datesInUnknownTimezone",null),(0,i._)([(0,f.MZ)({type:N,readOnly:!0,json:{read:{source:"timeInfo"}}})],t.prototype,"serviceTimeInfo",void 0),t=(0,i._)([(0,v.$)("esri.layers.mixins.TemporalSceneLayer")],t),t};let N=class extends j.A{constructor(){super(...arguments),this.endTimeField=null,this.startTimeField=null}};(0,i._)([(0,f.MZ)({type:String})],N.prototype,"endTimeField",void 0),(0,i._)([(0,f.MZ)({type:String})],N.prototype,"startTimeField",void 0),N=(0,i._)([(0,v.$)("esri.layers.mixins.TemporalSceneLayer.SceneServiceTimeInfo")],N);var C=r(60694),k=r(92009),q=r(4071),V=r(10873),H=r(15426),z=r(40530),G=r(67202),B=r(17036),J=r(95466),Q=r(50805),K=r(20557),W=r(46499),Y=r(39383),X=r(37352),ee=r(4513),te=r(86390);let re=class extends j.A{constructor(){super(...arguments),this.name=null,this.field=null,this.currentRangeExtent=null,this.fullRangeExtent=null,this.type="rangeInfo"}};(0,i._)([(0,f.MZ)({type:String,json:{read:!0,write:{isRequired:!0}}})],re.prototype,"name",void 0),(0,i._)([(0,f.MZ)({type:String,json:{read:!0,write:{isRequired:!0}}})],re.prototype,"field",void 0),(0,i._)([(0,f.MZ)({type:[Number],json:{read:!0,write:!0}})],re.prototype,"currentRangeExtent",void 0),(0,i._)([(0,f.MZ)({type:[Number],json:{read:!0,write:!0}})],re.prototype,"fullRangeExtent",void 0),(0,i._)([(0,f.MZ)({type:["rangeInfo"],readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],re.prototype,"type",void 0),re=(0,i._)([(0,v.$)("esri.layers.support.RangeInfo")],re);var ie,se=r(78888),ne=r(4718),oe=r(87024),ae=r(67076),le=r(39829),ue=r(80586);let pe=ie=class extends(j.A.JSONSupportMixin(a.A.ofType(le.A))){constructor(e){super(e)}clone(){return new ie(this.items.map((e=>e.clone())))}write(e,t){return this.toJSON(t)}toJSON(e){const t=e?.layer?.spatialReference;return t?this.toArray().map((r=>{if(!t.equals(r.spatialReference)){if(!(0,ue.canProjectWithoutEngine)(r.spatialReference,t))return e?.messages?.push(new ae.A("scenefilter:unsupported","Scene filters with incompatible spatial references are not supported",{modification:this,spatialReference:e.layer.spatialReference,context:e})),null;const i=new le.A;(0,ue.projectPolygon)(r,i,t),r=i}const i=r.toJSON(e);return delete i.spatialReference,i})).filter((e=>null!=e)):(e?.messages?.push(new ae.A("scenefilter:unsupported","Writing Scene filters without context layer is not supported",{modification:this,spatialReference:e.layer.spatialReference,context:e})),this.toArray().map((t=>t.toJSON(e))))}static fromJSON(e,t){const r=new ie;return e.forEach((e=>r.add(le.A.fromJSON(e,t)))),r}};pe=ie=(0,i._)([(0,v.$)("esri.layers.support.PolygonCollection")],pe);const de=pe;var ce,he=r(97159);let ye=ce=class extends j.A{constructor(e){super(e),this.spatialRelationship="disjoint",this.geometries=new de,this._geometriesSource=null}initialize(){this.addHandles((0,y.on)((()=>this.geometries),"after-changes",(()=>this.geometries=this.geometries),y.OH))}readGeometries(e,t,r){Array.isArray(e)?this.geometries=de.fromJSON(e,r):this._geometriesSource={url:(0,he.f)(e,r),context:r}}async loadGeometries(e,t){if(null==this._geometriesSource)return;const{url:r,context:i}=this._geometriesSource,s=await(0,se.A)(r,{responseType:"json",signal:t?.signal}),n=e.toJSON(),o=s.data.map((e=>({...e,spatialReference:n})));this.geometries=de.fromJSON(o,i),this._geometriesSource=null}clone(){const e=new ce({geometries:(0,ne.o8)(this.geometries),spatialRelationship:this.spatialRelationship});return e._geometriesSource=this._geometriesSource,e}};(0,i._)([(0,f.MZ)({type:["disjoint","contains"],nonNullable:!0,json:{write:{isRequired:!0}}})],ye.prototype,"spatialRelationship",void 0),(0,i._)([(0,f.MZ)({type:de,nonNullable:!0,json:{write:!0,origins:{"web-scene":{write:{isRequired:!0}}}}}),(0,oe.P)({origins:["web-scene","portal-item"],type:"resource",prefix:"geometries",contentAddressed:!0})],ye.prototype,"geometries",void 0),(0,i._)([(0,g.w)(["web-scene","portal-item"],"geometries")],ye.prototype,"readGeometries",null),ye=ce=(0,i._)([(0,v.$)("esri.layers.support.SceneFilter")],ye);const fe=ye;var me=r(84952),ge=r(8947),ve=r(41214),we=r(61956),_e=r(24212),be=r(30291);async function Ie(e){const t=[];for(const r of e)r.name.toLowerCase().endsWith(".zip")?t.push(Ae(r)):t.push(Promise.resolve(r));return(await Promise.all(t)).flat()}async function Ae(e){const{BlobReader:t,ZipReader:i,BlobWriter:s}=await Promise.all([r.e(8392),r.e(9588)]).then(r.bind(r,9588)),n=[],o=new i(new t(e));return(await o.getEntries()).forEach((e=>{if(e.directory||/^__MACOS/i.test(e.filename))return;const t=new s,r=e.getData?.(t).then((t=>new File([t],e.filename)));r&&n.push(r)})),Promise.all(n)}var Se=r(4654),xe=r(45671),Me=r(78553);const Fe=new Set(["3DObject","Point"]),Te=(0,B.p)();let Ee=class extends(D((0,M.w6)((0,O.w6)((0,S.b)((0,F.q)((0,T.A)((0,E.j)((0,c.P)((0,x.d)((0,A.p)(o.A.ClonableMixin(b.A)))))))))))){constructor(...e){super(...e),this.featureReduction=null,this.rangeInfos=null,this.operationalLayerType="ArcGISSceneServiceLayer",this.type="scene",this.fields=null,this.floorInfo=null,this.outFields=null,this.nodePages=null,this.materialDefinitions=null,this.textureSetDefinitions=null,this.geometryDefinitions=null,this.serviceUpdateTimeStamp=null,this.excludeObjectIds=new a.A,this.definitionExpression=null,this.filter=null,this.path=null,this.labelsVisible=!0,this.labelingInfo=null,this.legendEnabled=!0,this.priority=null,this.semantic=null,this.cachedDrawingInfo={color:!1},this.popupEnabled=!0,this.popupTemplate=null,this.attributeTableTemplate=null,this.objectIdField=null,this.globalIdField=null,this._fieldUsageInfo={},this.screenSizePerspectiveEnabled=!0,this.serviceItemId=void 0}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}destroy(){this._set("renderer",null),this.associatedLayer=(0,d.pR)(this.associatedLayer)}getField(e){return this.fieldsIndex.get(e)}getFieldDomain(e,t){const r=this.getField(e)?.domain??null;return this.associatedLayer?(0,H.Vq)(this.associatedLayer,e,t,r):r}getFeatureType(e){return e&&this.associatedLayer?this.associatedLayer.getFeatureType(e):null}get types(){return this.associatedLayer?.types??[]}get typeIdField(){return this.associatedLayer?.typeIdField??null}get templates(){return this.associatedLayer?.templates??null}get formTemplate(){return this.associatedLayer?.formTemplate??null}get fieldsIndex(){return new J.A(this.fields)}readNodePages(e,t,r){return"Point"===t.layerType&&(e=t.pointNodePages),null==e||"object"!=typeof e?null:Q.W4.fromJSON(e,r)}set elevationInfo(e){this._set("elevationInfo",e),this.loaded&&this._validateElevationInfo()}get effectiveCapabilities(){return this._capabilitiesFromAssociatedFeatureLayer(this.associatedLayer?.effectiveCapabilities)}get effectiveEditingEnabled(){return null!=this.associatedLayer&&(0,H.C$)(this.associatedLayer)}get geometryType(){return Le[this.profile]||"mesh"}set renderer(e){(0,R.yp)(e,this.fieldsIndex),this._set("renderer",e)}readCachedDrawingInfo(e){return null!=e&&"object"==typeof e||(e={}),null==e.color&&(e.color=!1),e}get capabilities(){return this._capabilitiesFromAssociatedFeatureLayer(this.associatedLayer?.capabilities)}_capabilitiesFromAssociatedFeatureLayer(e){e=null!=e?e:q.P;const{query:t,queryRelated:r,editing:{supportsGlobalId:i,supportsRollbackOnFailure:s,supportsUploadWithItemId:n,supportsGeometryUpdate:o,supportsReturnServiceEditsInSourceSpatialReference:a},data:{supportsZ:l,supportsM:u,isVersioned:p,supportsAttachment:d},operations:{supportsEditing:c,supportsAdd:h,supportsUpdate:y,supportsDelete:f,supportsQuery:m,supportsQueryAttachments:g,supportsAsyncConvert3D:v}}=e,w=e.operations.supportsChangeTracking,_=!!this.associatedLayer?.infoFor3D;return{query:t,queryRelated:r,editing:{supportsGlobalId:i,supportsReturnServiceEditsInSourceSpatialReference:a,supportsRollbackOnFailure:s,supportsGeometryUpdate:_&&o,supportsUploadWithItemId:n},data:{supportsAttachment:d,supportsZ:l,supportsM:u,isVersioned:p},operations:{supportsQuery:m,supportsQueryAttachments:g,supportsEditing:c&&w,supportsAdd:_&&h&&w,supportsDelete:_&&f&&w,supportsUpdate:y&&w,supportsAsyncConvert3D:v}}}get editingEnabled(){return this._isOverridden("editingEnabled")?this._get("editingEnabled"):this.associatedLayer?.editingEnabled??!1}set editingEnabled(e){this._overrideIfSome("editingEnabled",e)}get infoFor3D(){return this.associatedLayer?.infoFor3D??null}get relationships(){return this.associatedLayer?.relationships}get defaultPopupTemplate(){return this.associatedLayer||this.attributeStorageInfo?this.createPopupTemplate():null}readObjectIdField(e,t){return!e&&t.fields&&t.fields.some((t=>("esriFieldTypeOID"===t.type&&(e=t.name),!!e))),e||void 0}readGlobalIdField(e,t){return!e&&t.fields&&t.fields.some((t=>("esriFieldTypeGlobalID"===t.type&&(e=t.name),!!e))),e||void 0}get displayField(){return this.associatedLayer?.displayField??null}readProfile(e,t){const r=t.store.profile;return null!=r&&Oe[r]?Oe[r]:(p.A.getLogger(this).error("Unknown or missing profile",{profile:r,layer:this}),"mesh-pyramids")}get useViewTime(){return this.associatedLayer?.useViewTime??!0}set useViewTime(e){this._override("useViewTime",e)}load(e){return this.addResolvingPromise(this._load(e)),Promise.resolve(this)}async _load(e){const t=null!=e?e.signal:null;await this.loadFromPortal({supportedTypes:["Scene Service"]},e).catch(h.QP),await this._fetchService(t),await Promise.all([this._fetchIndexAndUpdateExtent(this.nodePages,t),this._setAssociatedFeatureLayer(t),this._loadFilterGeometries()]),this._validateElevationInfo(),this._applyAssociatedLayerOverrides(),this._populateFieldUsageInfo(),await this.loadTimeInfoFromService(e),await(0,ge.L)(this,{origin:"service"},t),(0,R.yp)(this.renderer,this.fieldsIndex),await this.finishLoadEditablePortalLayer(e)}async beforeSave(){null!=this.filter&&(this.filter=this.filter.clone(),await this.load())}async _loadFilterGeometries(){if(this.filter)try{await this.filter.loadGeometries(this.spatialReference)}catch(e){p.A.getLogger(this).error("#_loadFilterGeometries()",this,"Failed to load filter geometries. Geometry filter will not be applied for this layer.",{error:e}),this.filter=null}}createQuery(){const e=new we.A;return"mesh"===this.geometryType?this.capabilities.query.supportsReturnMesh&&(e.returnGeometry=!0):(e.returnGeometry=!0,e.returnZ=!0),e.where=this.definitionExpression||"1=1",e.sqlFormat="standard",e.outFields=["*"],e}queryExtent(e,t){return this._getAssociatedLayerForQuery().then((r=>r.queryExtent(e||this.createQuery(),t)))}queryFeatureCount(e,t){return this._getAssociatedLayerForQuery().then((r=>r.queryFeatureCount(e||this.createQuery(),t)))}queryFeatures(e,t){return this._getAssociatedLayerForQuery().then((r=>r.queryFeatures(e||this.createQuery(),t))).then((e=>{if(e?.features)for(const t of e.features)t.layer=this,t.sourceLayer=this;return e}))}async queryRelatedFeatures(e,t){if(await this.load(),!this.associatedLayer)throw new l.A("scenelayer:query-not-available","SceneLayer queries are not available without an associated feature layer",{layer:this});return this.associatedLayer.queryRelatedFeatures(e,t)}async queryRelatedFeaturesCount(e,t){if(await this.load(),!this.associatedLayer)throw new l.A("scenelayer:query-not-available","SceneLayer queries are not available without an associated feature layer",{layer:this});return this.associatedLayer.queryRelatedFeaturesCount(e,t)}async queryCachedAttributes(e,t){const r=(0,R.hL)(this.fieldsIndex,await(0,xe.TO)(this,(0,xe.D8)(this)));return(0,Se.s1)(this.parsedUrl?.path??"",this.attributeStorageInfo??[],e,t,r,this.apiKey,this.customParameters)}async queryCachedFeature(e,t){const r=await this.queryCachedAttributes(e,[t]);if(!r||0===r.length)throw new l.A("scenelayer:feature-not-in-cached-data","Feature not found in cached data");const i=new s.A;return i.attributes=r[0],i.layer=this,i.sourceLayer=this,i}queryObjectIds(e,t){return this._getAssociatedLayerForQuery().then((r=>r.queryObjectIds(e||this.createQuery(),t)))}queryAttachments(e,t){return this._getAssociatedLayerForQuery().then((r=>r.queryAttachments(e,t)))}getFieldUsageInfo(e){const t={supportsLabelingInfo:!1,supportsRenderer:!1,supportsPopupTemplate:!1,supportsLayerQuery:!1};return this.loaded?this._fieldUsageInfo[e]||t:(p.A.getLogger(this).error("#getFieldUsageInfo()","Unavailable until layer is loaded"),t)}createPopupTemplate(e){return(0,be.tn)(this,e)}_getAssociatedLayerForQuery(){const e=this.associatedLayer;return e?.loaded?Promise.resolve(e):this._loadAssociatedLayerForQuery()}async _loadAssociatedLayerForQuery(){if(await this.load(),!this.associatedLayer)throw new l.A("scenelayer:query-not-available","SceneLayer queries are not available without an associated feature layer",{layer:this});try{await this.associatedLayer.load()}catch(e){throw new l.A("scenelayer:query-not-available","SceneLayer associated feature layer could not be loaded",{layer:this,error:e})}return this.associatedLayer}hasCachedStatistics(e){return null!=this.statisticsInfo&&this.statisticsInfo.some((t=>t.name===e))}async queryCachedStatistics(e,t){return await this.load(t),await this.fetchStatistics(e,t)}async saveAs(e,t){return this._debouncedSaveOperations(O.Xh.SAVE_AS,{...t,getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"scene"},e)}async save(){const e={getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"scene"};return this._debouncedSaveOperations(O.Xh.SAVE,e)}async applyEdits(e,t){const{applyEdits:i}=await r.e(8628).then(r.bind(r,78628));let s=t;await this.load();const n=this.associatedLayer;if(!n)throw new l.A(`${this.type}-layer:not-editable`,"Service is not editable");await n.load();const{globalIdField:o}=n,a=!!n.infoFor3D,u=s?.globalIdUsed??!0;if(a&&null==o)throw new l.A(`${this.type}-layer:not-editable`,"Valid globalIdField expected on editable SceneLayer");if(a&&!u)throw new l.A(`${this.type}-layer:globalid-required`,"globalIdUsed must not be false for SceneLayer editing as globalIds are required.");return(0,C.Wo)(n.url)&&a&&null!=e.deleteFeatures&&null!=o&&(s={...s,globalIdToObjectId:await(0,H.GA)(n,e.deleteFeatures,o)}),i(this,n.source,e,s)}async uploadAssets(e,t){if(await this.load(),null==this.associatedLayer)throw new l.A(`${this.type}-layer:not-editable`,"Service is not editable");return await this.associatedLayer.load(),this.associatedLayer.uploadAssets(e,t)}on(e,t){return super.on(e,t)}async convertMesh(e,t){t??={};const i=e=>{throw p.A.getLogger(this).error(".convertMesh()",e.message),e};await this.load(),this.infoFor3D||i(new l.A("invalid:layer","SceneLayer has no capability for mesh conversion"));const s=await this.extractAndFilterFiles(e),n=s.reduce(((e,t)=>(0,K.oF)(this.infoFor3D,t)?e+1:e),0);0===n&&i(new I.VP),n>1&&i(new I.XQ);const o=this.spatialReference,a=t.location??new _.A({x:0,y:0,z:0,spatialReference:o}),u=a.spatialReference.isGeographic?"local":"georeferenced",{default:d}=await Promise.all([r.e(3030),r.e(36)]).then(r.bind(r,40036)),c=d.createWithExternalSource(a,s,{vertexSpace:u,transform:(0,te.Z)(a.spatialReference),unitConversionDisabled:!0}),[h]=await this.uploadAssets([c],{...t,useAssetOrigin:!t.location});return h}async extractAndFilterFiles(e){await this.load();const t=this.infoFor3D;return t?(await Ie(e)).filter((e=>(0,K.fu)(t,e))):e}validateLayer(e){if(e.layerType&&!Fe.has(e.layerType))throw new l.A("scenelayer:layer-type-not-supported","SceneLayer does not support this layer type",{layerType:e.layerType});if(isNaN(this.version.major)||isNaN(this.version.minor))throw new l.A("layer:service-version-not-supported","Service version is not supported.",{serviceVersion:this.version.versionString,supportedVersions:"1.x, 2.x"});if(this.version.major>2)throw new l.A("layer:service-version-too-new","Service version is too new.",{serviceVersion:this.version.versionString,supportedVersions:"1.x, 2.x"});!function(e,t){let r=!1,i=!1;if(null==e)r=!0,i=!0;else{const s=t&&t.isGeographic;switch(e){case"east-north-up":case"earth-centered":r=!0,i=s;break;case"vertex-reference-frame":r=!0,i=!s;break;default:r=!1}}if(!r)throw new l.A("scenelayer:unsupported-normal-reference-frame","Normal reference frame is invalid.");if(!i)throw new l.A("scenelayer:incompatible-normal-reference-frame","Normal reference frame is incompatible with layer spatial reference.")}(this.normalReferenceFrame,this.spatialReference)}_getTypeKeywords(){const e=[];if("points"===this.profile)e.push("Point");else{if("mesh-pyramids"!==this.profile)throw new l.A("scenelayer:unknown-profile","SceneLayer:save() encountered an unknown SceneLayer profile: "+this.profile);e.push("3DObject")}return e}_populateFieldUsageInfo(){if(this._fieldUsageInfo={},this.fields)for(const e of this.fields){const t=!!this.attributeStorageInfo?.some((t=>t.name===e.name)),r=!!this.associatedLayer?.fields?.some((t=>t&&e.name===t.name)),i={supportsLabelingInfo:t,supportsRenderer:t,supportsPopupTemplate:t||r,supportsLayerQuery:r};this._fieldUsageInfo[e.name]=i}}_applyAssociatedLayerOverrides(){this._applyAssociatedLayerFieldsOverrides(),this._applyAssociatedLayerPropertyOverrides(),this._applyAssociatedLayerExtentOverride(),this._applyAssociatedLayerPrivileges()}_applyAssociatedLayerFieldsOverrides(){if(!this.associatedLayer?.fields)return;let e=null;for(const t of this.associatedLayer.fields){const r=this.getField(t.name);r?(!r.domain&&t.domain&&(r.domain=t.domain.clone()),r.editable=t.editable,r.nullable=t.nullable,r.length=t.length):(e||(e=this.fields?this.fields.slice():[]),e.push(t.clone()))}e&&this._set("fields",e)}_applyAssociatedLayerPropertyOverrides(){if(!this.associatedLayer)return;const e=["popupTemplate","popupEnabled","attributeTableTemplate"],t=(0,m.oY)(this);for(let r=0;r<e.length;r++){const i=e[r],s=this.originIdOf(i),n=this.associatedLayer.originIdOf(i);s<n&&(n===w.Gr.SERVICE||n===w.Gr.PORTAL_ITEM)&&t.setAtOrigin(i,this.associatedLayer[i],n)}}_applyAssociatedLayerExtentOverride(){const e=this.associatedLayer?.getAtOrigin("fullExtent","service");null!=this.associatedLayer?.infoFor3D&&e&&(0,C.Wo)(this.associatedLayer?.url)&&Z(this)&&(0,m.oY)(this).setAtOrigin("fullExtent",e.clone(),w.Gr.SERVICE)}_applyAssociatedLayerPrivileges(){const e=this.associatedLayer;e&&(this._set("userHasEditingPrivileges",e.userHasEditingPrivileges),this._set("userHasFullEditingPrivileges",e.userHasFullEditingPrivileges),this._set("userHasUpdateItemPrivileges",e.userHasUpdateItemPrivileges))}async _setAssociatedFeatureLayer(e){if(["mesh-pyramids","points"].includes(this.profile))try{const{serverUrl:t,layerId:r,portalItem:i}=await(0,k.L)(`${this.url}/layers/${this.layerId}`,{sceneLayerItem:this.portalItem,customParameters:this.customParameters,apiKey:this.apiKey,signal:e}),s=await ee.S.FeatureLayer();this.associatedLayer=new s({url:t,customParameters:this.customParameters,layerId:r,portalItem:i}),await this.associatedLayer.load()}catch(e){(0,h.zf)(e)||this._logWarningOnPopupEnabled()}}async _logWarningOnPopupEnabled(){const e=new AbortController;this.addHandles((0,u.rE)(e)),await(0,y.C_)((()=>this.popupEnabled&&null!=this.popupTemplate),e.signal);const t=`this SceneLayer: ${this.title}`;null==this.attributeStorageInfo?p.A.getLogger(this).warn(`Associated FeatureLayer could not be loaded and no binary attributes found. Popups will not work on ${t}`):p.A.getLogger(this).info(`Associated FeatureLayer could not be loaded. Falling back to binary attributes for Popups on ${t}`)}_validateElevationInfo(){const e=this.elevationInfo;"mesh-pyramids"===this.profile&&(0,_e.XF)(p.A.getLogger(this),(0,_e.$7)("Mesh scene layers","relative-to-scene",e)),(0,_e.XF)(p.A.getLogger(this),(0,_e.tW)("Scene layers",e))}async fetchStatistics(e,t){return await async function({fieldName:e,statisticsInfo:t,errorContext:r,fieldsIndex:i,path:s,customParameters:n,apiKey:o,signal:a}){if(null==t)throw new l.A(`${r}:no-cached-statistics`,"Cached statistics are not available for this layer");const u=i.get(e);if(null==u)throw new l.A(`${r}:field-unexisting`,`Field '${e}' does not exist on the layer`);const p=t.find((e=>e.name===u.name));if(null==p)throw new l.A(`${r}:no-cached-statistics`,"Cached statistics for this attribute are not available");const d=(0,me.fj)(s,p.href),{data:c}=await(0,se.A)(d,{query:{f:"json",...n,token:o},responseType:"json",signal:a});return c}({fieldName:e,statisticsInfo:this.statisticsInfo,errorContext:"scenelayer",fieldsIndex:this.fieldsIndex,path:this.parsedUrl?.path??"",customParameters:this.customParameters,apiKey:this.apiKey,signal:t?.signal})}};(0,i._)([(0,f.MZ)({types:{key:"type",base:z.c,typeMap:{selection:G.A}},json:{origins:{"web-scene":{name:"layerDefinition.featureReduction",write:!0},"portal-item":{name:"layerDefinition.featureReduction",write:!0}}}})],Ee.prototype,"featureReduction",void 0),(0,i._)([(0,f.MZ)({type:[re],json:{read:!1,origins:{"web-scene":{name:"layerDefinition.rangeInfos",write:!0},"portal-item":{name:"layerDefinition.rangeInfos",write:!0}}}})],Ee.prototype,"rangeInfos",void 0),(0,i._)([(0,f.MZ)({json:{read:!1}})],Ee.prototype,"associatedLayer",void 0),(0,i._)([(0,f.MZ)({type:["show","hide"]})],Ee.prototype,"listMode",void 0),(0,i._)([(0,f.MZ)({type:["ArcGISSceneServiceLayer"]})],Ee.prototype,"operationalLayerType",void 0),(0,i._)([(0,f.MZ)({json:{read:!1},readOnly:!0})],Ee.prototype,"type",void 0),(0,i._)([(0,f.MZ)({...Te.fields,readOnly:!0,json:{read:!1,origins:{service:{read:!0}}}})],Ee.prototype,"fields",void 0),(0,i._)([(0,f.MZ)()],Ee.prototype,"types",null),(0,i._)([(0,f.MZ)()],Ee.prototype,"typeIdField",null),(0,i._)([(0,f.MZ)()],Ee.prototype,"templates",null),(0,i._)([(0,f.MZ)()],Ee.prototype,"formTemplate",null),(0,i._)([(0,f.MZ)({readOnly:!0,clonable:!1})],Ee.prototype,"fieldsIndex",null),(0,i._)([(0,f.MZ)({type:X.A,json:{read:{source:"layerDefinition.floorInfo"},write:{target:"layerDefinition.floorInfo"}}})],Ee.prototype,"floorInfo",void 0),(0,i._)([(0,f.MZ)(Te.outFields)],Ee.prototype,"outFields",void 0),(0,i._)([(0,f.MZ)({type:Q.W4,readOnly:!0,json:{read:!1}})],Ee.prototype,"nodePages",void 0),(0,i._)([(0,g.w)("service","nodePages",["nodePages","pointNodePages"])],Ee.prototype,"readNodePages",null),(0,i._)([(0,f.MZ)({type:[Q.uV],readOnly:!0})],Ee.prototype,"materialDefinitions",void 0),(0,i._)([(0,f.MZ)({type:[Q.Ot],readOnly:!0})],Ee.prototype,"textureSetDefinitions",void 0),(0,i._)([(0,f.MZ)({type:[Q.L0],readOnly:!0})],Ee.prototype,"geometryDefinitions",void 0),(0,i._)([(0,f.MZ)({readOnly:!0})],Ee.prototype,"serviceUpdateTimeStamp",void 0),(0,i._)([(0,f.MZ)({readOnly:!0})],Ee.prototype,"attributeStorageInfo",void 0),(0,i._)([(0,f.MZ)({readOnly:!0})],Ee.prototype,"statisticsInfo",void 0),(0,i._)([(0,f.MZ)({type:a.A.ofType(Number),nonNullable:!0,json:{origins:{service:{read:!1,write:!1}},name:"layerDefinition.excludeObjectIds",write:{enabled:!0}}})],Ee.prototype,"excludeObjectIds",void 0),(0,i._)([(0,f.MZ)({type:String,json:{origins:{service:{read:!1,write:!1}},name:"layerDefinition.definitionExpression",write:{enabled:!0,allowNull:!0}}})],Ee.prototype,"definitionExpression",void 0),(0,i._)([(0,f.MZ)({type:fe,json:{name:"layerDefinition.polygonFilter",write:{enabled:!0,allowNull:!0},origins:{service:{read:!1,write:!1}}}})],Ee.prototype,"filter",void 0),(0,i._)([(0,f.MZ)({type:String,json:{origins:{"web-scene":{read:!0,write:!0}},read:!1}})],Ee.prototype,"path",void 0),(0,i._)([(0,f.MZ)(V.Yj)],Ee.prototype,"elevationInfo",null),(0,i._)([(0,f.MZ)({readOnly:!0,json:{read:!1}})],Ee.prototype,"effectiveCapabilities",null),(0,i._)([(0,f.MZ)({readOnly:!0})],Ee.prototype,"effectiveEditingEnabled",null),(0,i._)([(0,f.MZ)({type:String})],Ee.prototype,"geometryType",null),(0,i._)([(0,f.MZ)(V.kF)],Ee.prototype,"labelsVisible",void 0),(0,i._)([(0,f.MZ)({type:[W.A],json:{origins:{service:{name:"drawingInfo.labelingInfo",read:{reader:Y.w},write:!1}},name:"layerDefinition.drawingInfo.labelingInfo",read:{reader:Y.w},write:!0}})],Ee.prototype,"labelingInfo",void 0),(0,i._)([(0,f.MZ)(V.fV)],Ee.prototype,"legendEnabled",void 0),(0,i._)([(0,f.MZ)({type:Number,json:{origins:{"web-document":{default:1,write:{enabled:!0,target:{opacity:{type:Number},"layerDefinition.drawingInfo.transparency":{type:Number}}},read:{source:["opacity","layerDefinition.drawingInfo.transparency"],reader(e,t){if("number"==typeof e&&e>=0&&e<=1)return e;const r=t.layerDefinition?.drawingInfo?.transparency;return void 0!==r?(0,Me.D)(r):void 0}}},"portal-item":{write:!0},service:{read:!1}}}})],Ee.prototype,"opacity",void 0),(0,i._)([(0,f.MZ)({type:["Low","High"],readOnly:!0,json:{read:!1,origins:{service:{read:!0}}}})],Ee.prototype,"priority",void 0),(0,i._)([(0,f.MZ)({type:["Labels"],readOnly:!0,json:{read:!1,origins:{service:{read:!0}}}})],Ee.prototype,"semantic",void 0),(0,i._)([(0,f.MZ)({types:ve.XJ,json:{origins:{service:{read:{source:"drawingInfo.renderer"}}},name:"layerDefinition.drawingInfo.renderer",write:!0},value:null})],Ee.prototype,"renderer",null),(0,i._)([(0,f.MZ)({json:{read:!1}})],Ee.prototype,"cachedDrawingInfo",void 0),(0,i._)([(0,g.w)("service","cachedDrawingInfo")],Ee.prototype,"readCachedDrawingInfo",null),(0,i._)([(0,f.MZ)({readOnly:!0,json:{read:!1}})],Ee.prototype,"capabilities",null),(0,i._)([(0,f.MZ)({type:Boolean,json:{read:!1}})],Ee.prototype,"editingEnabled",null),(0,i._)([(0,f.MZ)({readOnly:!0,json:{write:!1,read:!1}})],Ee.prototype,"infoFor3D",null),(0,i._)([(0,f.MZ)({readOnly:!0,json:{write:!1,read:!1}})],Ee.prototype,"relationships",null),(0,i._)([(0,f.MZ)(V.M6)],Ee.prototype,"popupEnabled",void 0),(0,i._)([(0,f.MZ)({type:n.A,json:{name:"popupInfo",write:!0}})],Ee.prototype,"popupTemplate",void 0),(0,i._)([(0,f.MZ)({readOnly:!0,json:{read:!1}})],Ee.prototype,"defaultPopupTemplate",null),(0,i._)([(0,f.MZ)(V.zQ)],Ee.prototype,"attributeTableTemplate",void 0),(0,i._)([(0,f.MZ)({type:String,json:{read:!1}})],Ee.prototype,"objectIdField",void 0),(0,i._)([(0,g.w)("service","objectIdField",["objectIdField","fields"])],Ee.prototype,"readObjectIdField",null),(0,i._)([(0,f.MZ)({type:String,json:{read:!1}})],Ee.prototype,"globalIdField",void 0),(0,i._)([(0,g.w)("service","globalIdField",["globalIdField","fields"])],Ee.prototype,"readGlobalIdField",null),(0,i._)([(0,f.MZ)({readOnly:!0,type:String,json:{read:!1}})],Ee.prototype,"displayField",null),(0,i._)([(0,f.MZ)({type:String,json:{read:!1}})],Ee.prototype,"profile",void 0),(0,i._)([(0,g.w)("service","profile",["store.profile"])],Ee.prototype,"readProfile",null),(0,i._)([(0,f.MZ)({readOnly:!0,type:String,json:{origins:{service:{read:{source:"store.normalReferenceFrame"}}},read:!1}})],Ee.prototype,"normalReferenceFrame",void 0),(0,i._)([(0,f.MZ)(V.PY)],Ee.prototype,"screenSizePerspectiveEnabled",void 0),(0,i._)([(0,f.MZ)({json:{read:!1,origins:{service:{read:!0}}}})],Ee.prototype,"serviceItemId",void 0),(0,i._)([(0,f.MZ)(L.B)],Ee.prototype,"useViewTime",null),Ee=(0,i._)([(0,v.$)("esri.layers.SceneLayer")],Ee);const Oe={"mesh-pyramids":"mesh-pyramids",meshpyramids:"mesh-pyramids","features-meshes":"mesh-pyramids",points:"points","features-points":"points",lines:"lines","features-lines":"lines",polygons:"polygons","features-polygons":"polygons"},Le={"mesh-pyramids":"mesh",points:"point"},je=Ee},17036:(e,t,r)=>{r.d(t,{p:()=>l});var i=r(44208),s=r(53966),n=r(20437),o=r(95466),a=r(30524);function l(){return{fields:{type:[n.A],value:null,set:function(e){if(e&&(0,i.A)("big-integer-warning-enabled")){const t=e.filter((e=>"big-integer"===e.type||"oid"===e.type&&(e.length||0)>=8));if(t.length){const e=t.map((e=>`'${e.name}'`)).join(", ");s.A.getLogger(this).warn("#fields",`Layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}') references big-integer field(s): ${e}, support for which is experimental. Only integers less than ${Number.MAX_SAFE_INTEGER} (Number.MAX_SAFE_INTEGER) are supported.`)}}this._set("fields",e)}},fieldsIndex:{readOnly:!0,get(){return o.A.fromLayer(this)}},outFields:{type:[String],json:{read:!1},set:function(e){this._userOutFields=e,this.notifyChange("outFields")},get:function(){const e=this._userOutFields;if(!e?.length)return null;if(e.includes("*"))return["*"];if(!this.fields)return e;for(const t of e){const r=this.fieldsIndex?.has(t);r||s.A.getLogger("esri.layers.support.fieldProperties").error("field-attributes-layer:invalid-field",`Invalid field ${t} found in outFields`,{layer:this,outFields:e})}return(0,a.DB)(this.fieldsIndex,e)}}}}},18768:(e,t,r)=>{r.d(t,{b:()=>l});var i=r(90237),s=r(53966),n=r(10107),o=(r(44208),r(87811),r(40608)),a=r(60694);const l=e=>{let t=class extends e{get title(){if(this._get("title")&&"defaults"!==this.originOf("title"))return this._get("title");if(this.url){const e=(0,a.qg)(this.url);if(e?.title)return e.title}return this._get("title")||""}set title(e){this._set("title",e)}set url(e){this._set("url",(0,a.Jf)(e,s.A.getLogger(this)))}};return(0,i._)([(0,n.MZ)()],t.prototype,"title",null),(0,i._)([(0,n.MZ)({type:String})],t.prototype,"url",null),t=(0,i._)([(0,o.$)("esri.layers.mixins.ArcGISService")],t),t}},20557:(e,t,r)=>{r.d(t,{Fm:()=>l,Hz:()=>h,JQ:()=>c,JZ:()=>_,ND:()=>f,R_:()=>o,U9:()=>d,fu:()=>s,nr:()=>y,oF:()=>n,rq:()=>u,z$:()=>p});const i=[["binary","application/octet-stream","bin",""]];function s(e,t){return null!=g(t.name,e?.supportedFormats??[])}function n(e,t){if(!e)return!1;const r=u(t,e.supportedFormats??[]);return null!=r&&e.editFormats.includes(r)}function o(e,t){return v(function(e,t){const r=e.toLowerCase();return m(t).find((e=>w(e)===r))}(e,t))}function a(e,t){return v(g(e,t))}function l(e,t){return w(function(e,t){return m(t).find((t=>v(t)===e))}(e,t))}function u(e,t){return a(e.name,t)??o(e.type,t)}function p(e,t,r){return o(e,r)??a(t,r)}function d({supportedFormats:e}){return p("model/gltf-binary","glb",e)}function c(e){const t=d(e);return null!=t&&e.editFormats.includes(t)}function h(e){if(!e)return null;const t=d(e),r=function({supportedFormats:e}){return p("model/gltf+json","gltf",e)}(e);let i=null;for(const s of e.queryFormats){if(s===t)return s;s===r&&(i=s)}return i}function y({supportedFormats:e}){return p("application/esri3do-SR_world","wld",e)}function f({supportedFormats:e}){return p("application/esri3do-SR_prj","prj",e)}function m(e){return[...i,...e]}function g(e,t){const r=e.toLowerCase();return m(t).find((e=>function(e){return e?.[2].split(",").map((e=>e.toLowerCase()))??[]}(e).some((e=>r.endsWith(e)))))}function v(e){return e?.[0]}function w(e){return e?.[1].toLowerCase()}function _(e){return e.tables?.find((e=>"assetMaps"===e.role))}},20816:(e,t,r)=>{r.d(t,{TA:()=>s,We:()=>a,Z3:()=>n,ZJ:()=>l,w5:()=>u});var i=r(78888);const s=(0,r(13069).vD)(),n=new Map,o=new Map;async function a(e,t,r){if(!e||!r)return!1;if(!t)return!0;const s=new URL(e).host;let o=n.get(s);if(!o){const t=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,"");o=(await(0,i.A)(t,{responseType:"json",query:{f:"json"}})).data.defaultVersionName}return o===t}async function l(e,t,i=!1){if(!e||!t)return!0;const n=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,""),a=o.get(n)?.entries();if(a)for(const[e,o]of a)if(o.name===t){const t=!o.stack?.hasForwardEdits();if(!t&&i){const[{deleteForwardEdits:t},{default:i}]=await Promise.all([r.e(2186).then(r.bind(r,32186)),r.e(2558).then(r.bind(r,32558))]),a=await t(n,e,new i({sessionId:s,moment:o.moment}));return a.success&&o.stack?.clearForwardEdits(),a.success}return t}return!0}function u(e,t){if(!e)return!1;const r=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,""),i=o.get(r)?.entries();if(i)for(const[e,r]of i)if(r.name===t)return"edit"===r.lockType;return!1}new Map},24770:(e,t,r)=>{r.d(t,{$I:()=>m,AU:()=>h,g7:()=>f,i4:()=>p,ui:()=>d,up:()=>v,vt:()=>u,yo:()=>y});var i=r(34727),s=r(58083),n=r(67026),o=r(82534),a=r(38954),l=r(51850);function u(e=v){return[e[0],e[1],e[2],e[3]]}function p(e,t,r=u()){return(0,a.c)(r,e),r[3]=t,r}function d(e,t=u()){const r=(0,s.l)(w,e);return g(t,(0,i.KJ)((0,n.Xd)(t,r))),t}function c(e,t,r=u()){return(0,n.x8)(w,e,m(e)),(0,n.x8)(_,t,m(t)),(0,n.lw)(w,_,w),g(r,(0,i.KJ)((0,n.Xd)(r,w)))}function h(e,t,r,i=u()){return p(l.Cw,e,b),p(l.JP,t,I),p(l.Cb,r,A),c(b,I,b),c(b,A,i),i}function y(e){return e}function f(e){return e[3]}function m(e){return(0,i.kU)(e[3])}function g(e,t){return e[3]=t,e}const v=[0,0,1,0],w=(0,o.vt)(),_=(0,o.vt)(),b=(u(),u()),I=u(),A=u()},25036:(e,t,r)=>{r.d(t,{j:()=>o});var i=r(90237),s=r(10107),n=(r(44208),r(53966),r(87811),r(40608));const o=e=>{let t=class extends e{constructor(){super(...arguments),this.minScale=0,this.maxScale=0}get effectiveScaleRange(){const e={minScale:this.minScale,maxScale:this.maxScale},t=this.parent;t&&"effectiveScaleRange"in t&&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._)([(0,s.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],t.prototype,"minScale",void 0),(0,i._)([(0,s.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],t.prototype,"maxScale",void 0),(0,i._)([(0,s.MZ)({readOnly:!0})],t.prototype,"effectiveScaleRange",null),t=(0,i._)([(0,n.$)("esri.layers.mixins.ScaleRangeLayer")],t),t}},32730:(e,t,r)=>{r.d(t,{BI:()=>m,D3:()=>y,XJ:()=>f,lc:()=>h,mX:()=>v,rU:()=>g,tH:()=>A});var i=r(799);const s="__begin__",n="__end__",o=new RegExp(s,"ig"),a=new RegExp(n,"ig"),l=new RegExp("^"+s,"i"),u=new RegExp(n+"$","i"),p='"',d=p+" + ",c=" + "+p;function h(e){return e.replaceAll(new RegExp("\\[","g"),"{").replaceAll(new RegExp("\\]","g"),"}")}function y(e){return e.replaceAll(new RegExp("\\{","g"),"[").replaceAll(new RegExp("\\}","g"),"]")}function f(e){const t={expression:"",type:"none"};return e.labelExpressionInfo?e.labelExpressionInfo.value?(t.expression=e.labelExpressionInfo.value,t.type="conventional"):e.labelExpressionInfo.expression&&(t.expression=e.labelExpressionInfo.expression,t.type="arcade"):null!=e.labelExpression&&(t.expression=h(e.labelExpression),t.type="conventional"),t}function m(e){const t=f(e);switch(t.type){case"conventional":return v(t.expression);case"arcade":return t.expression}return null}function g(e){const t=f(e);switch(t.type){case"conventional":return function(e){const t=e?.match(w);return t?.[1].trim()||null}(t.expression);case"arcade":return A(t.expression)}return null}function v(e){let t;return e?(t=(0,i.HC)(e,(e=>s+'$feature["'+e+'"]'+n)),t=l.test(t)?t.replace(l,""):p+t,t=u.test(t)?t.replace(u,""):t+p,t=t.replaceAll(o,d).replaceAll(a,c)):t='""',t}const w=/^\s*\{([^}]+)\}\s*$/i,_=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*$/i,b=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(\1|\3)(\5)\s*\));?\s*$/i,I=/^\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(.+)(\1)\s*\));?\s*$/i;function A(e){if(!e)return null;let t=_.exec(e)||b.exec(e);return t?t[1]||t[3]:(t=I.exec(e),t?t[2]:null)}},37352:(e,t,r)=>{r.d(t,{A:()=>p});var i,s=r(90237),n=r(5503),o=r(25482),a=r(10107),l=(r(44208),r(53966),r(87811),r(40608));let u=i=class extends o.A{constructor(e){super(e),this.floorField=null,this.viewAllMode=!1,this.viewAllLevelIds=new n.A}clone(){return new i({floorField:this.floorField,viewAllMode:this.viewAllMode,viewAllLevelIds:this.viewAllLevelIds})}};(0,s._)([(0,a.MZ)({type:String,json:{write:{isRequired:!0}}})],u.prototype,"floorField",void 0),(0,s._)([(0,a.MZ)({json:{read:!1,write:!1}})],u.prototype,"viewAllMode",void 0),(0,s._)([(0,a.MZ)({json:{read:!1,write:!1}})],u.prototype,"viewAllLevelIds",void 0),u=i=(0,s._)([(0,l.$)("esri.layers.support.LayerFloorInfo")],u);const p=u},39516:(e,t,r)=>{let i;async function s(){return null==i&&(i=r.e(4123).then(r.bind(r,44123)).then((e=>new e.WhereClauseCache(500,500)))),i}async function n(e,t){const r=await s(),i=r.get(e,t);if(null==i)throw r.getError(e,t);return i}function o(e,t){return e||=null,t||=null,"1=1"===e?t??e:"1=1"===t?e??t:e&&t?`(${e}) AND (${t})`:e??t}function a(e,t){return e||=null,t||=null,"1=1"===e||"1=1"===t||e===t?"1=1"===e?e:t:e&&t?`(${e}) OR (${t})`:e??t}r.d(t,{GP:()=>n,IW:()=>a,mA:()=>o})},40530:(e,t,r)=>{r.d(t,{c:()=>a});var i=r(90237),s=r(25482),n=r(10107),o=(r(44208),r(53966),r(87811),r(40608));let a=class extends s.A{constructor(){super(...arguments),this.type=null}};(0,i._)([(0,n.MZ)({type:["selection","cluster","binning"],readOnly:!0,json:{read:!1,write:!0}})],a.prototype,"type",void 0),a=(0,i._)([(0,o.$)("esri.layers.support.FeatureReduction")],a)},41366:(e,t,r)=>{r.d(t,{K:()=>c,Q:()=>u});var i=r(90237),s=r(66552),n=r(53966),o=r(10107),a=(r(44208),r(87811),r(93223)),l=r(40608);const u=(0,s.O)()({naturalLog:"natural-log",squareRoot:"square-root",percentOfTotal:"percent-of-total",log:"log",field:"field"}),p="percent-of-total",d="field",c=e=>{let t=class extends e{constructor(){super(...arguments),this.normalizationField=null,this.normalizationMaxValue=null,this.normalizationMinValue=null,this.normalizationTotal=null}get normalizationType(){let e=this._get("normalizationType");const t=!!this.normalizationField,r=null!=this.normalizationTotal;return t||r?(e=t&&d||r&&p||null,t&&r&&n.A.getLogger(this).warn("warning: both normalizationField and normalizationTotal are set!")):e!==d&&e!==p||(e=null),e}set normalizationType(e){this._set("normalizationType",e)}};return(0,i._)([(0,o.MZ)({type:String,json:{name:"parameters.normalizationField",write:!0}})],t.prototype,"normalizationField",void 0),(0,i._)([(0,o.MZ)({type:Number,json:{name:"parameters.normalizationMaxValue",write:!0}})],t.prototype,"normalizationMaxValue",void 0),(0,i._)([(0,o.MZ)({type:Number,json:{name:"parameters.normalizationMinValue",write:!0}})],t.prototype,"normalizationMinValue",void 0),(0,i._)([(0,o.MZ)({type:Number,json:{name:"parameters.normalizationTotal",write:!0}})],t.prototype,"normalizationTotal",void 0),(0,i._)([(0,a.e)(u,{name:"parameters.normalizationType"})],t.prototype,"normalizationType",null),t=(0,i._)([(0,l.$)("esri.rest.support.NormalizationBinParametersMixin")],t),t}},45671:(e,t,r)=>{r.d(t,{D8:()=>n,TO:()=>s});var i=r(30524);async function s(e,t=e.popupTemplate){if(null==t)return[];const r=await t.getRequiredFields(e.fieldsIndex),{lastEditInfoEnabled:s}=t,{objectIdField:n,typeIdField:o,globalIdField:a,relationships:l}=e;if(r.includes("*"))return["*"];const u=s?(0,i.eX)(e):[],p=(0,i.DB)(e.fieldsIndex,[...r,...u]);return o&&p.push(o),p&&n&&e.fieldsIndex?.has(n)&&!p.includes(n)&&p.push(n),p&&a&&e.fieldsIndex?.has(a)&&!p.includes(a)&&p.push(a),l&&l.forEach((t=>{const{keyField:r}=t;p&&r&&e.fieldsIndex?.has(r)&&!p.includes(r)&&p.push(r)})),p}function n(e,t){return e.popupTemplate?e.popupTemplate:null!=t&&t.defaultPopupTemplateEnabled&&null!=e.defaultPopupTemplate?e.defaultPopupTemplate:null}},46140:(e,t,r)=>{r.d(t,{R:()=>s});var i=r(49186);let s=class e{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)}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 e(this.major,this.minor,this._context)}static parse(t,r=""){const[s,n]=t.split("."),o=/^\s*\d+\s*$/;if(!s?.match||!o.test(s))throw new i.A((r&&r+":")+"invalid-version","Expected major version to be a number, but got '${version}'",{version:t});if(!n?.match||!o.test(n))throw new i.A((r&&r+":")+"invalid-version","Expected minor version to be a number, but got '${version}'",{version:t});const a=parseInt(s,10),l=parseInt(n,10);return new e(a,l,r)}}},47685:(e,t,r)=>{r.d(t,{Mk:()=>h,Zk:()=>d,w6:()=>m});var i=r(90237),s=r(65529),n=r(4718),o=r(74887),a=r(10107),l=(r(44208),r(53966),r(40608)),u=r(20816);const p=new s.A.EventEmitter;function d(e,t,r=null,i=!1){const s=(0,o.Tw)();return i=null==t||i,p.emit("apply-edits",{serviceUrl:e,layerId:t,gdbVersion:r,mayReceiveServiceEdits:i,result:s.promise}),s}const c=Symbol();function h(e){return null!=e&&"object"==typeof e&&c in e}function y(e){return null!=e&&"object"==typeof e&&"gdbVersion"in e}function f(e,t,r){const i=new URL(e).host,s=u.Z3.get(i),n=e=>!e||e===s;return n(t)&&n(r)||t===r}const m=e=>{var t;let r=class extends e{static{t=c}constructor(...e){super(...e),this[t]=!0,this._applyEditsHandler=e=>{const{serviceUrl:t,layerId:r,gdbVersion:i,mayReceiveServiceEdits:s,result:o}=e,a=t===this.url,l=null!=r&&null!=this.layerId&&r===this.layerId,u=y(this),p=y(this)&&f(t,i,this.gdbVersion);if(!a||u&&!p||!l&&!s)return;const d=o.then((e=>{if(this.lastEditsEventDate=new Date,l&&(e.addedFeatures.length||e.updatedFeatures.length||e.deletedFeatures.length||e.addedAttachments.length||e.updatedAttachments.length||e.deletedAttachments.length))return this.emit("edits",(0,n.o8)(e)),e;const r=e.editedFeatures?.find((({layerId:e})=>e===this.layerId));if(r){const{adds:t,updates:i,deletes:s}=r.editedFeatures,o={edits:null,addedAttachments:[],deletedAttachments:[],updatedAttachments:[],addedFeatures:t?t.map((({attributes:e})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]}))):[],deletedFeatures:s?s.map((({attributes:e})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]}))):[],updatedFeatures:i?i.map((({current:{attributes:e}})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]}))):[],editedFeatures:(0,n.o8)(e.editedFeatures),exceededTransferLimit:!1,historicMoment:(0,n.o8)(e.historicMoment)};return this.emit("edits",o),o}const s={edits:null,addedAttachments:[],deletedAttachments:[],updatedAttachments:[],addedFeatures:[],deletedFeatures:[],updatedFeatures:[],editedFeatures:(0,n.o8)(e.editedFeatures),exceededTransferLimit:!1,historicMoment:(0,n.o8)(e.historicMoment)};return"historicMoment"in this&&this._shouldUpdateHistoricMoment(t,i,s.historicMoment)&&this.emit("edits",s),s})).then((e=>("historicMoment"in this&&this._shouldUpdateHistoricMoment(t,i,e.historicMoment)&&(this.historicMoment=e.historicMoment),e)));this.emit("apply-edits",{result:d})},this._updateMomentHandler=e=>{const{serviceUrl:t,gdbVersion:r,moment:i}=e,s=t===this.url,n=y(this),o=y(this)&&f(t,r,this.gdbVersion),a=y(this)&&!f(t,this.gdbVersion,null);s&&n&&o&&a&&"historicMoment"in this&&this.historicMoment!==i&&(this.historicMoment=i)},this.when().then((()=>{this.addHandles(function(e){return p.on("apply-edits",new WeakRef(e))}(this._applyEditsHandler)),"historicMoment"in this&&this.addHandles(function(e){return p.on("update-moment",new WeakRef(e))}(this._updateMomentHandler))}),(()=>{}))}_shouldUpdateHistoricMoment(e,t,r){return"historicMoment"in this&&this.historicMoment!==r&&(0,u.w5)(e,t)}};return(0,i._)([(0,a.MZ)()],r.prototype,"lastEditsEventDate",void 0),r=(0,i._)([(0,l.$)("esri.layers.mixins.EditBusLayer")],r),r}},52136:(e,t,r)=>{r.d(t,{p:()=>o});var i=r(90237),s=r(10107),n=(r(44208),r(53966),r(87811),r(40608));const o=e=>{let t=class extends e{get apiKey(){return this._isOverridden("apiKey")?this._get("apiKey"):"portalItem"in this?this.portalItem?.apiKey:null}set apiKey(e){null!=e?this._override("apiKey",e):(this._clearOverride("apiKey"),this.clear("apiKey","user"))}};return(0,i._)([(0,s.MZ)({type:String})],t.prototype,"apiKey",null),t=(0,i._)([(0,n.$)("esri.layers.mixins.APIKeyMixin")],t),t}},54239:(e,t,r)=>{r.d(t,{A:()=>w});var i,s=r(90237),n=r(4576),o=r(66552),a=r(25482),l=r(83047),u=r(67076),p=r(10107),d=(r(44208),r(53966),r(36005)),c=r(40608),h=r(43937);const y=(0,o.O)()({orthometric:"gravity-related-height",gravity_related_height:"gravity-related-height",ellipsoidal:"ellipsoidal"}),f=y.jsonValues.slice();(0,n.Xy)(f,"orthometric");const m=(0,o.O)()({meter:"meters",foot:"feet","us-foot":"us-feet","clarke-foot":"clarke-feet","clarke-yard":"clarke-yards","clarke-link":"clarke-links","sears-yard":"sears-yards","sears-foot":"sears-feet","sears-chain":"sears-chains","benoit-1895-b-chain":"benoit-1895-b-chains","indian-yard":"indian-yards","indian-1937-yard":"indian-1937-yards","gold-coast-foot":"gold-coast-feet","sears-1922-truncated-chain":"sears-1922-truncated-chains","50-kilometers":"50-kilometers","150-kilometers":"150-kilometers"});let g=i=class extends a.A{constructor(e){super(e),this.heightModel="gravity-related-height",this.heightUnit="meters",this.vertCRS=null}writeHeightModel(e,t,r){return y.write(e,t,r)}readHeightModel(e,t,r){return y.read(e)||(r?.messages&&r.messages.push(function(e,t){return new u.A("height-model:unsupported",`Height model of value '${e}' is not supported`,t)}(e,{context:r})),null)}readHeightUnit(e,t,r){return m.read(e)||(r?.messages&&r.messages.push(v(e,{context:r})),null)}readHeightUnitService(e,t,r){return(0,l.LA)(e)||m.read(e)||(r?.messages&&r.messages.push(v(e,{context:r})),null)}readVertCRS(e,t){return t.vertCRS||t.ellipsoid||t.geoid}clone(){return new i({heightModel:this.heightModel,heightUnit:this.heightUnit,vertCRS:this.vertCRS})}equals(e){return!!e&&(this===e||this.heightModel===e.heightModel&&this.heightUnit===e.heightUnit&&this.vertCRS===e.vertCRS)}static deriveUnitFromSR(e,t){const r=(0,l.k1)(t);return new i({heightModel:e.heightModel,heightUnit:r??void 0,vertCRS:e.vertCRS})}write(e,t){return t={origin:"web-scene",...t},super.write(e,t)}static fromJSON(e){if(!e)return null;const t=new i;return t.read(e,{origin:"web-scene"}),t}};function v(e,t){return new u.A("height-unit:unsupported",`Height unit of value '${e}' is not supported`,t)}(0,s._)([(0,p.MZ)({type:y.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:f,default:"ellipsoidal",write:{isRequired:!0}}}}})],g.prototype,"heightModel",void 0),(0,s._)([(0,h.K)("web-scene","heightModel")],g.prototype,"writeHeightModel",null),(0,s._)([(0,d.w)(["web-scene","service"],"heightModel")],g.prototype,"readHeightModel",null),(0,s._)([(0,p.MZ)({type:m.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:m.jsonValues,write:{writer:m.write,isRequired:!0}}}}})],g.prototype,"heightUnit",void 0),(0,s._)([(0,d.w)("web-scene","heightUnit")],g.prototype,"readHeightUnit",null),(0,s._)([(0,d.w)("service","heightUnit")],g.prototype,"readHeightUnitService",null),(0,s._)([(0,p.MZ)({type:String,constructOnly:!0,json:{origins:{"web-scene":{write:!0}}}})],g.prototype,"vertCRS",void 0),(0,s._)([(0,d.w)("service","vertCRS",["vertCRS","ellipsoid","geoid"])],g.prototype,"readVertCRS",null),g=i=(0,s._)([(0,c.$)("esri.geometry.HeightModelInfo")],g);const w=g},55674:(e,t,r)=>{r.d(t,{Ad:()=>h,Gj:()=>m,QY:()=>c,lL:()=>g,xR:()=>y});var i=r(66131),s=r(49186),n=(r(44208),r(44729)),o=r(15032),a=r(65864),l=r(95466),u=r(43668),p=r(98623);const d=["geometry","scale","timeProperties"];function c(e,t){if(null!=t)for(const r of d)t.hasArcadeDependency(r)&&e.add(r);return e}function h(e,t){return f.create(e,t,null,["$feature","$view"])}function y(e,t,r){return f.create(e,t,r,["$feature","$view","$config"])}class f{static async create(e,t,r,i){const{arcade:n,Dictionary:o}=await(0,u.l)();let a;try{a=n.parseScript(e)}catch(t){throw new s.A("arcade-bad-expression","Failed to parse arcade script",{script:e,error:t})}const l=n.scriptUsesGeometryEngine(a);l&&await n.enableGeometrySupport(),await n.loadDependentModules(new Set,a,null,!1,l);const p={vars:i.reduce(((e,t)=>({...e,[t]:null})),{}),spatialReference:t,useAsync:!1},d=n.compileScript(a,p);let c=null;null!=r&&(c=new o(r),c.immutable=!0);const h=new o;return h.immutable=!1,h.setField("scale",0),new f(e,n,a,d,t,h,c,o)}constructor(e,t,r,i,s,n,o,a){this.script=e,this._arcade=t,this._syntaxTree=r,this._compiled=i,this._spatialReference=s,this._viewDict=n,this._configDict=o,this._dictionaryCtor=a,this._dependencies=new Map,this._featureReader=new m,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:s,currentEnd:n}=t.$view.timeProperties;e=new this._dictionaryCtor({currentStart:null!=s?null!=r?i.lY.epochToArcadeDate(s,r):i.lY.unknownEpochToArcadeDate(s):void 0,currentEnd:null!=n?null!=r?i.lY.epochToArcadeDate(n,r):i.lY.unknownEpochToArcadeDate(n):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 m{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}isUnknownDateTimeField(e){return this._boundSchema.fieldsIndex.getTimeZone(e)===p.L5}field(e,t=!0){const r=this._getField(e);if(r)switch(r.type){case"date-only":case"esriFieldTypeDateOnly":return n.n.fromReader(this._boundTarget.attributes[r.name]);case"time-only":case"esriFieldTypeTimeOnly":return o.k.fromReader(this._boundTarget.attributes[r.name]);case"esriFieldTypeTimestampOffset":case"timestamp-offset":return i.lY.fromReaderAsTimeStampOffset(this._boundTarget.attributes[r.name]);case"date":case"esriFieldTypeDate":{const t=this._boundTarget.attributes[r.name];return this.isUnknownDateTimeField(e)?i.lY.unknownEpochToArcadeDate(t):i.lY.epochToArcadeDate(t,this.contextTimeZone??p.qU)}default:return this._boundTarget.attributes[r.name]}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))}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}},55726:(e,t,r)=>{r.d(t,{$1:()=>u,H2:()=>h,MT:()=>y,VP:()=>f,WF:()=>p,Wt:()=>o,XQ:()=>m,hK:()=>c,nS:()=>d,uh:()=>a,xY:()=>l});var i=r(49186);const s="upload-assets",n=()=>new Error;class o extends i.A{constructor(){super(`${s}:unsupported`,"Layer does not support asset uploads.",n())}}class a extends i.A{constructor(){super(`${s}:no-glb-support`,"Layer does not support glb.",n())}}class l extends i.A{constructor(){super(`${s}:no-supported-source`,"No supported external source found",n())}}class u extends i.A{constructor(){super(`${s}:not-base-64`,"Expected gltf data in base64 format after conversion.",n())}}class p extends i.A{constructor(){super(`${s}:unable-to-prepare-options`,"Unable to prepare uploadAsset request options.",n())}}class d extends i.A{constructor(e,t){super(`${s}:bad-response`,`Bad response. Uploaded ${e} items and received ${t} results.`,n())}}class c extends i.A{constructor(e,t){super(`${s}-layer:upload-failed`,`Failed to upload mesh file ${e}. Error code: ${t?.code??"-1"}. Error message: ${t?.messages??"unknown"}`,n())}}class h extends i.A{constructor(e){super(`${s}-layer:unsupported-format`,`The service allowed us to upload an asset of FormatID ${e}, but it does not list it in its supported formats.`,n())}}class y extends i.A{constructor(){super(`${s}:convert3D-failed`,"convert3D failed.")}}class f extends i.A{constructor(){super("invalid-input:no-model","No supported model found")}}class m extends i.A{constructor(){super("invalid-input:multiple-models","Multiple supported models found")}}},67202:(e,t,r)=>{r.d(t,{A:()=>u});var i,s=r(90237),n=r(10107),o=(r(44208),r(53966),r(87811),r(40608)),a=r(40530);let l=i=class extends a.c{constructor(e){super(e),this.type="selection"}clone(){return new i}};(0,s._)([(0,n.MZ)({type:["selection"]})],l.prototype,"type",void 0),l=i=(0,s._)([(0,o.$)("esri.layers.support.FeatureReductionSelection")],l);const u=l},69208:(e,t,r)=>{r.d(t,{d:()=>o});var i=r(90237),s=r(10107),n=(r(44208),r(53966),r(87811),r(40608));const o=e=>{let t=class extends e{constructor(){super(...arguments),this.customParameters=null}};return(0,i._)([(0,s.MZ)({type:Object,json:{write:{overridePolicy:e=>({enabled:!!(e&&Object.keys(e).length>0)})}}})],t.prototype,"customParameters",void 0),t=(0,i._)([(0,n.$)("esri.layers.mixins.CustomParametersMixin")],t),t}},73133:(e,t,r)=>{r.d(t,{j:()=>i});const i=(0,r(66552).O)()({esriTimeUnitsMilliseconds:"milliseconds",esriTimeUnitsSeconds:"seconds",esriTimeUnitsMinutes:"minutes",esriTimeUnitsHours:"hours",esriTimeUnitsDays:"days",esriTimeUnitsWeeks:"weeks",esriTimeUnitsMonths:"months",esriTimeUnitsYears:"years",esriTimeUnitsDecades:"decades",esriTimeUnitsCenturies:"centuries",esriTimeUnitsUnknown:void 0})},73681:(e,t,r)=>{r.d(t,{n:()=>l});var i=r(49186),s=r(53966),n=r(46140),o=r(95466),a=r(55674);class l{static async from(e,t,r){const o=e.dictionary_version?n.R.parse(e.dictionary_version):null,p=new Set(e.itemsNames),d={};if(t)for(const e in t)d[e]=t[e];if(e.authoringInfo.configuration)for(const t of e.authoringInfo.configuration)d.hasOwnProperty(t.name)||(d[t.name]=t.value);const c=new Set(e.authoringInfo.symbol);for(const e of Object.keys(r))c.delete(e);c.size&&s.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("missing-fields: fieldMap entries for the following symbol fields are missing",{symbolFields:c});const h=await(0,a.xR)(e.expression,null,d);if(!h)throw new i.A("dictionary-renderer:expression-error","Unable to create dictionary renderer expression");const y=!o||!o.greaterEqual(4,0);y&&s.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("Dictionary script does not support native field types. Applying fallback",{version:o});const f=new u(r,y);return new l(y,p,h,f)}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){s.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("arcade: dictionary script evaluation failed",{error:e})}return null}createDictionaryFieldsIndex(e){if(!this._requiresFieldCoercionToString)return new o.A(e);const t=e.map((e=>({...e,type:"esriFieldTypeString"})));return new o.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?"":""+this._boundTarget.attributes[t.name]}}},73836:(e,t,r)=>{r.d(t,{A:()=>m});var i,s=r(90237),n=r(25482),o=r(10107),a=(r(44208),r(53966),r(87811),r(40608)),l=r(58083),u=r(9093),p=r(67026),d=r(82534),c=r(51850),h=r(24770);let y=class extends n.A{static{i=this}constructor(e){super(e),this.translation=(0,c.vt)(),this.rotationAxis=(0,c.ci)(h.up),this.rotationAngle=0,this.scale=(0,c.fA)(1,1,1)}get rotation(){return(0,h.i4)(this.rotationAxis,this.rotationAngle)}set rotation(e){this.rotationAxis=(0,c.o8)((0,h.yo)(e)),this.rotationAngle=(0,h.g7)(e)}get localMatrix(){const e=(0,u.vt)();return(0,p.x8)(f,(0,h.yo)(this.rotation),(0,h.$I)(this.rotation)),(0,l.o1)(e,f,this.translation,this.scale),e}get localMatrixInverse(){return(0,l.B8)((0,u.vt)(),this.localMatrix)}equals(e){return this===e||null!=e&&(0,l.t2)(this.localMatrix,e.localMatrix)}clone(){const e={translation:(0,c.o8)(this.translation),rotationAxis:(0,c.o8)(this.rotationAxis),rotationAngle:this.rotationAngle,scale:(0,c.o8)(this.scale)};return new i(e)}};(0,s._)([(0,o.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],y.prototype,"translation",void 0),(0,s._)([(0,o.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],y.prototype,"rotationAxis",void 0),(0,s._)([(0,o.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],y.prototype,"rotationAngle",void 0),(0,s._)([(0,o.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],y.prototype,"scale",void 0),(0,s._)([(0,o.MZ)()],y.prototype,"rotation",null),(0,s._)([(0,o.MZ)()],y.prototype,"localMatrix",null),(0,s._)([(0,o.MZ)()],y.prototype,"localMatrixInverse",null),y=i=(0,s._)([(0,a.$)("esri.geometry.support.MeshTransform")],y);const f=(0,d.vt)(),m=y},80200:(e,t,r)=>{r.d(t,{T:()=>i,d:()=>f});const i={Base64:0,Hex:1,String:2,Raw:3},s=8,n=(1<<s)-1;function o(e,t){const r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function a(e){const t=[];for(let r=0,i=e.length*s;r<i;r+=s)t[r>>5]|=(e.charCodeAt(r/s)&n)<<r%32;return t}function l(e){const t=[];for(let r=0,i=32*e.length;r<i;r+=s)t.push(String.fromCharCode(e[r>>5]>>>r%32&n));return t.join("")}function u(e,t,r,i,s,n){return o(function(e,t){return e<<t|e>>>32-t}(o(o(t,e),o(i,n)),s),r)}function p(e,t,r,i,s,n,o){return u(t&r|~t&i,e,t,s,n,o)}function d(e,t,r,i,s,n,o){return u(t&i|r&~i,e,t,s,n,o)}function c(e,t,r,i,s,n,o){return u(t^r^i,e,t,s,n,o)}function h(e,t,r,i,s,n,o){return u(r^(t|~i),e,t,s,n,o)}function y(e,t){e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;let r=1732584193,i=-271733879,s=-1732584194,n=271733878;for(let t=0;t<e.length;t+=16){const a=r,l=i,u=s,y=n;r=p(r,i,s,n,e[t],7,-680876936),n=p(n,r,i,s,e[t+1],12,-389564586),s=p(s,n,r,i,e[t+2],17,606105819),i=p(i,s,n,r,e[t+3],22,-1044525330),r=p(r,i,s,n,e[t+4],7,-176418897),n=p(n,r,i,s,e[t+5],12,1200080426),s=p(s,n,r,i,e[t+6],17,-1473231341),i=p(i,s,n,r,e[t+7],22,-45705983),r=p(r,i,s,n,e[t+8],7,1770035416),n=p(n,r,i,s,e[t+9],12,-1958414417),s=p(s,n,r,i,e[t+10],17,-42063),i=p(i,s,n,r,e[t+11],22,-1990404162),r=p(r,i,s,n,e[t+12],7,1804603682),n=p(n,r,i,s,e[t+13],12,-40341101),s=p(s,n,r,i,e[t+14],17,-1502002290),i=p(i,s,n,r,e[t+15],22,1236535329),r=d(r,i,s,n,e[t+1],5,-165796510),n=d(n,r,i,s,e[t+6],9,-1069501632),s=d(s,n,r,i,e[t+11],14,643717713),i=d(i,s,n,r,e[t],20,-373897302),r=d(r,i,s,n,e[t+5],5,-701558691),n=d(n,r,i,s,e[t+10],9,38016083),s=d(s,n,r,i,e[t+15],14,-660478335),i=d(i,s,n,r,e[t+4],20,-405537848),r=d(r,i,s,n,e[t+9],5,568446438),n=d(n,r,i,s,e[t+14],9,-1019803690),s=d(s,n,r,i,e[t+3],14,-187363961),i=d(i,s,n,r,e[t+8],20,1163531501),r=d(r,i,s,n,e[t+13],5,-1444681467),n=d(n,r,i,s,e[t+2],9,-51403784),s=d(s,n,r,i,e[t+7],14,1735328473),i=d(i,s,n,r,e[t+12],20,-1926607734),r=c(r,i,s,n,e[t+5],4,-378558),n=c(n,r,i,s,e[t+8],11,-2022574463),s=c(s,n,r,i,e[t+11],16,1839030562),i=c(i,s,n,r,e[t+14],23,-35309556),r=c(r,i,s,n,e[t+1],4,-1530992060),n=c(n,r,i,s,e[t+4],11,1272893353),s=c(s,n,r,i,e[t+7],16,-155497632),i=c(i,s,n,r,e[t+10],23,-1094730640),r=c(r,i,s,n,e[t+13],4,681279174),n=c(n,r,i,s,e[t],11,-358537222),s=c(s,n,r,i,e[t+3],16,-722521979),i=c(i,s,n,r,e[t+6],23,76029189),r=c(r,i,s,n,e[t+9],4,-640364487),n=c(n,r,i,s,e[t+12],11,-421815835),s=c(s,n,r,i,e[t+15],16,530742520),i=c(i,s,n,r,e[t+2],23,-995338651),r=h(r,i,s,n,e[t],6,-198630844),n=h(n,r,i,s,e[t+7],10,1126891415),s=h(s,n,r,i,e[t+14],15,-1416354905),i=h(i,s,n,r,e[t+5],21,-57434055),r=h(r,i,s,n,e[t+12],6,1700485571),n=h(n,r,i,s,e[t+3],10,-1894986606),s=h(s,n,r,i,e[t+10],15,-1051523),i=h(i,s,n,r,e[t+1],21,-2054922799),r=h(r,i,s,n,e[t+8],6,1873313359),n=h(n,r,i,s,e[t+15],10,-30611744),s=h(s,n,r,i,e[t+6],15,-1560198380),i=h(i,s,n,r,e[t+13],21,1309151649),r=h(r,i,s,n,e[t+4],6,-145523070),n=h(n,r,i,s,e[t+11],10,-1120210379),s=h(s,n,r,i,e[t+2],15,718787259),i=h(i,s,n,r,e[t+9],21,-343485551),r=o(r,a),i=o(i,l),s=o(s,u),n=o(n,y)}return[r,i,s,n]}function f(e,t=i.Hex){const r=t||i.Base64,n=y(a(e),e.length*s);switch(r){case i.Raw:return n;case i.Hex:return function(e){const t="0123456789abcdef",r=[];for(let i=0,s=4*e.length;i<s;i++)r.push(t.charAt(e[i>>2]>>i%4*8+4&15)+t.charAt(e[i>>2]>>i%4*8&15));return r.join("")}(n);case i.String:return l(n);case i.Base64:return function(e){const t=[];for(let r=0,i=4*e.length;r<i;r+=3){const i=(e[r>>2]>>r%4*8&255)<<16|(e[r+1>>2]>>(r+1)%4*8&255)<<8|e[r+2>>2]>>(r+2)%4*8&255;for(let s=0;s<4;s++)8*r+6*s>32*e.length?t.push("="):t.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(i>>6*(3-s)&63))}return t.join("")}(n)}}},82935:(e,t,r)=>{r.d(t,{B:()=>h,e:()=>y});var i=r(90237),s=r(10107),n=(r(44208),r(53966),r(87811),r(36005)),o=r(40608),a=r(89317),l=r(30524),u=r(96184),p=r(73133),d=r(79677),c=r(10184);const h={type:Boolean,json:{read:{source:"timeAnimation"},write:{target:"timeAnimation",layerContainerTypes:a.K}}},y=e=>{let t=class extends e{constructor(){super(...arguments),this.timeExtent=null,this.timeOffset=null,this.useViewTime=!0}readOffset(e,t){const r=t.timeInfo.exportOptions;if(!r)return null;const i=r.timeOffset,s=p.j.fromJSON(r.timeOffsetUnits);return i&&s?new c.A({value:i,unit:s}):null}set timeInfo(e){(0,l.sv)(e,this.fieldsIndex),this._set("timeInfo",e)}};return(0,i._)([(0,s.MZ)({type:d.A,json:{write:!1}})],t.prototype,"timeExtent",void 0),(0,i._)([(0,s.MZ)({type:c.A})],t.prototype,"timeOffset",void 0),(0,i._)([(0,n.w)("service","timeOffset",["timeInfo.exportOptions"])],t.prototype,"readOffset",null),(0,i._)([(0,s.MZ)({value:null,type:u.A,json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],t.prototype,"timeInfo",null),(0,i._)([(0,s.MZ)(h)],t.prototype,"useViewTime",void 0),t=(0,i._)([(0,o.$)("esri.layers.mixins.TemporalLayer")],t),t}},85648:(e,t,r)=>{r.d(t,{n:()=>s});var i=r(84952);function s(e){return n[function(e){return"json"===e.type?"application/json":"blob"===e.type?e.blob.type:function(e){const t=(0,i.Zo)(e);return l[t]||o}(e.url)}(e)]||a}const n={},o="text/plain",a=n[o],l={png:"image/png",jpeg:"image/jpeg",jpg:"image/jpg",bmp:"image/bmp",gif:"image/gif",json:"application/json",txt:"text/plain",xml:"application/xml",svg:"image/svg+xml",zip:"application/zip",pbf:"application/vnd.mapbox-vector-tile",gz:"application/gzip","bin.gz":"application/octet-stream"};for(const e in l)n[l[e]]=e},86390:(e,t,r)=>{r.d(t,{Z:()=>n});var i=r(83047),s=r(73836);function n(e){const t=1/(0,i.GA)(e,1);return 1!==t?new s.A({scale:[t,t,t]}):void 0}},87024:(e,t,r)=>{r.d(t,{P:()=>h});var i=r(49186),s=r(80200),n=r(76553),o=r(84952),a=r(13069),l=r(96156),u=r(35666),p=r(10107),d=r(85648),c=r(97159);function h(e){const t=e?.origins??[void 0];return(r,i)=>{const s=function(e,t,r){if("resource"===e?.type)return function(e,t,r){const i=(0,l.z4)(t,r);return{type:String,read:(e,t,r)=>{const s=(0,c.r)(e,t,r);return i.type===String?s:"function"==typeof i.type?new i.type({url:s}):void 0},write:{isRequired:i.json?.write?.isRequired,writer(t,s,a,l){if(!l?.resources)return"string"==typeof t?void(s[a]=(0,c.t)(t,l)):void(s[a]=t.write({},l));const p=function(e){return null==e?null:"string"==typeof e?e:e.url}(t),h=(0,c.t)(p,{...l,verifyItemRelativeUrls:l?.verifyItemRelativeUrls?{writtenUrls:l.verifyItemRelativeUrls.writtenUrls,rootPath:void 0}:void 0},c.M.NO),g=i.type!==String&&(!(0,n.H)(this)||l?.origin&&this.originIdOf(r)>(0,u.aB)(l.origin)),v={object:this,propertyName:r,value:t,targetUrl:h,dest:s,targetPropertyName:a,context:l,params:e};l?.portalItem&&h&&!(0,o.oP)(h)?g&&e?.contentAddressed?y(v):g?function(e){const{context:t,targetUrl:r,params:i,value:s,dest:n,targetPropertyName:a}=e;if(!t.portalItem)return;const l=t.portalItem.resourceFromPath(r),u=m(s,r,t),p=(0,d.n)(u),c=(0,o.Zo)(l.path),h=i?.compress??!1;p===c?(t.resources&&f({...e,resource:l,content:u,compress:h,updates:t.resources.toUpdate}),n[a]=r):y(e)}(v):function({context:e,targetUrl:t,dest:r,targetPropertyName:i}){e.portalItem&&e.resources&&(e.resources.toKeep.push({resource:e.portalItem.resourceFromPath(t),compress:!1}),r[i]=t)}(v):l?.portalItem&&(null==h||null!=(0,c.i)(h)||(0,o.w8)(h)||g)?y(v):s[a]=h}}}}(e,t,r);switch(e?.type??"other"){case"other":return{read:!0,write:!0};case"url":{const{read:e,write:t}=c.b;return{read:e,write:t}}}}(e,r,i);for(const e of t){const t=(0,p.rM)(r,e,i);for(const e in s)t[e]=s[e]}}}function y(e){const{targetUrl:t,params:r,value:n,context:l,dest:u,targetPropertyName:p}=e;if(!l.portalItem)return;const h=(0,c.p)(t),y=m(n,t,l);if(r?.contentAddressed&&"json"!==y.type)return void l.messages?.push(new i.A("persistable:contentAddressingUnsupported",`Property "${p}" is trying to serializing a resource with content of type ${y.type} with content addressing. Content addressing is only supported for json resources.`,{content:y}));const g=r?.contentAddressed&&"json"===y.type?(0,s.d)(y.jsonString):h?.filename??(0,a.lk)(),v=(0,o.fj)(r?.prefix??h?.prefix,g),w=`${v}.${(0,d.n)(y)}`;if(r?.contentAddressed&&l.resources&&"json"===y.type){const e=l.resources.toKeep.find((({resource:e})=>e.path===w))??l.resources.toAdd.find((({resource:e})=>e.path===w));if(e)return void(u[p]=e.resource.itemRelativeUrl)}const _=l.portalItem.resourceFromPath(w);(0,o.w8)(t)&&l.resources&&l.resources.pendingOperations.push((0,o.tk)(t).then((e=>{_.path=`${v}.${(0,d.n)({type:"blob",blob:e})}`,u[p]=_.itemRelativeUrl})).catch((()=>{})));const b=r?.compress??!1;l.resources&&f({...e,resource:_,content:y,compress:b,updates:l.resources.toAdd}),u[p]=_.itemRelativeUrl}function f({object:e,propertyName:t,updates:r,resource:i,content:s,compress:n}){r.push({resource:i,content:s,compress:n,finish:r=>{!function(e,t,r){"string"==typeof e[t]?e[t]=r.url:e[t].url=r.url}(e,t,r)}})}function m(e,t,r){return"string"==typeof e?{type:"url",url:t}:{type:"json",jsonString:JSON.stringify(e.toJSON(r))}}},92071:(e,t,r)=>{r.d(t,{P:()=>w,L:()=>_});var i=r(90237),s=r(69622),n=r(76953),o=r(4718),a=r(35666);class l{constructor(){this._propertyOriginMap=new Map,this._originStores=new Array(a.AU),this._values=new Map,this.multipleOriginsSupported=!0}clone(e){const t=new l,r=this._originStores[a.Gr.DEFAULTS];r&&r.forEach(((e,r)=>{t.set(r,(0,o.o8)(e),a.Gr.DEFAULTS)}));for(let r=a.Gr.SERVICE;r<a.AU;r++){const i=this._originStores[r];i&&i.forEach(((i,s)=>{e&&e.has(s)||t.set(s,(0,o.o8)(i),r)}))}return t}get(e,t){const r=void 0===t?this._values:this._originStores[t];return r?r.get(e):void 0}keys(e){const t=null==e?this._values:this._originStores[e];return t?[...t.keys()]:[]}set(e,t,r=a.Gr.USER){let i=this._originStores[r];if(i||(i=new Map,this._originStores[r]=i),i.set(e,t),!this._values.has(e)||this._propertyOriginMap.get(e)<=r){const i=this._values.get(e);return this._values.set(e,t),this._propertyOriginMap.set(e,r),i!==t}return!1}delete(e,t=a.Gr.USER){const r=this._originStores[t];if(!r)return;const i=r.get(e);if(r.delete(e),this._values.has(e)&&this._propertyOriginMap.get(e)===t){this._values.delete(e);for(let r=t-1;r>=0;r--){const t=this._originStores[r];if(t&&t.has(e)){this._values.set(e,t.get(e)),this._propertyOriginMap.set(e,r);break}}}return i}has(e,t){const r=void 0===t?this._values:this._originStores[t];return!!r&&r.has(e)}revert(e,t){for(;t>0&&!this.has(e,t);)--t;const r=this._originStores[t],i=r?.get(e),s=this._values.get(e);return this._values.set(e,i),this._propertyOriginMap.set(e,t),s!==i}originOf(e){return this._propertyOriginMap.get(e)||a.Gr.DEFAULTS}isAtOrigin(e,t){return this.has(e,t)&&this.originOf(e)===t}isBelowOrigin(e,t){return!this.has(e)||this.originOf(e)<t}forEach(e){this._values.forEach(e)}}var u=r(45917),p=r(88620),d=r(40608);const c=e=>{let t=class extends e{constructor(...e){super(...e);const t=(0,p.oY)(this),r=t.store,i=new l;t.store=i,(0,n.k)(t,r,i)}read(e,t){(0,u.L)(this,e,t)}getAtOrigin(e,t){const r=h(this),i=(0,a.aB)(t);if("string"==typeof e)return r.get(e,i);const s={};return e.forEach((e=>{s[e]=r.get(e,i)})),s}originOf(e){return(0,a.OL)(this.originIdOf(e))}originIdOf(e){return h(this).originOf(e)}revert(e,t){const r=h(this),i=(0,a.aB)(t),s=(0,p.oY)(this);let n;n="string"==typeof e?"*"===e?r.keys(i):[e]:e,n.forEach((e=>{s.invalidate(e),r.revert(e,i),s.commit(e)}))}};return t=(0,i._)([(0,d.$)("esri.core.ReadOnlyMultiOriginJSONSupport")],t),t};function h(e){return(0,p.oY)(e).store}let y=class extends(c(s.A)){};y=(0,i._)([(0,d.$)("esri.core.ReadOnlyMultiOriginJSONSupport")],y);var f=r(16649),m=r(49422);const g=e=>{let t=class extends e{constructor(...e){super(...e)}clear(e,t="user"){(0,p.oY)(this).clearOrigin(e,(0,a.aB)(t))}write(e,t){return(0,m.M)(this,e=e||{},t),e}setAtOrigin(e,t,r){(0,p.oY)(this).setAtOrigin(e,t,(0,a.aB)(r))}removeOrigin(e){const t=v(this),r=(0,a.aB)(e),i=t.keys(r);for(const e of i)t.originOf(e)===r&&t.set(e,t.get(e,r),a.Gr.USER)}updateOrigin(e,t){const r=v(this),i=(0,a.aB)(t),s=(0,f.Jt)(this,e);for(let t=i+1;t<a.AU;++t)r.delete(e,t);r.set(e,s,i)}toJSON(e){return this.write({},e)}};return t=(0,i._)([(0,d.$)("esri.core.MultiOriginJSONSupport.WriteableMultiOriginJSONSupport")],t),t.prototype.toJSON.isDefaultToJSON=!0,t};function v(e){return(0,p.oY)(e).store}const w=e=>{let t=class extends(g(c(e))){constructor(...e){super(...e)}};return t=(0,i._)([(0,d.$)("esri.core.MultiOriginJSONSupport")],t),t};let _=class extends(w(s.A)){};_=(0,i._)([(0,d.$)("esri.core.MultiOriginJSONSupport")],_)},96184:(e,t,r)=>{r.d(t,{A:()=>f});var i=r(90237),s=r(69540),n=r(25482),o=r(10107),a=(r(44208),r(53966),r(87811),r(36005)),l=r(40608),u=r(43937),p=r(79677),d=r(10184),c=r(56400);function h(e,t){return d.A.fromJSON({value:e,unit:t})}let y=class extends(s.A.ClonableMixin(n.A)){constructor(e){super(e),this.cumulative=!1,this.endField=null,this.fullTimeExtent=null,this.hasLiveData=!1,this.interval=null,this.startField=null,this.timeZone=null,this.trackIdField=null,this.useTime=!0,this.stops=null}readFullTimeExtent(e,t){return t.timeExtent&&Array.isArray(t.timeExtent)&&2===t.timeExtent.length?p.A.fromArray(t.timeExtent):null}writeFullTimeExtent(e,t){null!=e?.start&&null!=e.end?t.timeExtent=e.toArray():t.timeExtent=null}readInterval(e,t){return t.timeInterval&&t.timeIntervalUnits?h(t.timeInterval,t.timeIntervalUnits):t.defaultTimeInterval&&t.defaultTimeIntervalUnits?h(t.defaultTimeInterval,t.defaultTimeIntervalUnits):null}writeInterval(e,t){t.timeInterval=e?.toJSON().value??null,t.timeIntervalUnits=e?.toJSON().unit??null}};(0,i._)([(0,o.MZ)({type:Boolean,json:{name:"exportOptions.timeDataCumulative",write:!0}})],y.prototype,"cumulative",void 0),(0,i._)([(0,o.MZ)({type:String,json:{name:"endTimeField",write:{enabled:!0,allowNull:!0}}})],y.prototype,"endField",void 0),(0,i._)([(0,o.MZ)({type:p.A,json:{write:{enabled:!0,allowNull:!0}}})],y.prototype,"fullTimeExtent",void 0),(0,i._)([(0,a.w)("fullTimeExtent",["timeExtent"])],y.prototype,"readFullTimeExtent",null),(0,i._)([(0,u.K)("fullTimeExtent")],y.prototype,"writeFullTimeExtent",null),(0,i._)([(0,o.MZ)({type:Boolean,json:{write:!0}})],y.prototype,"hasLiveData",void 0),(0,i._)([(0,o.MZ)({type:d.A,json:{write:{enabled:!0,allowNull:!0}}})],y.prototype,"interval",void 0),(0,i._)([(0,a.w)("interval",["timeInterval","timeIntervalUnits","defaultTimeInterval","defaultTimeIntervalUnits"])],y.prototype,"readInterval",null),(0,i._)([(0,u.K)("interval")],y.prototype,"writeInterval",null),(0,i._)([(0,o.MZ)({type:String,json:{name:"startTimeField",write:{enabled:!0,allowNull:!0}}})],y.prototype,"startField",void 0),(0,i._)([(0,o.MZ)((0,c.P6)("timeReference",!0))],y.prototype,"timeZone",void 0),(0,i._)([(0,o.MZ)({type:String,json:{write:{enabled:!0,allowNull:!0}}})],y.prototype,"trackIdField",void 0),(0,i._)([(0,o.MZ)({type:Boolean,json:{name:"exportOptions.useTime",write:!0}})],y.prototype,"useTime",void 0),(0,i._)([(0,o.MZ)({type:[Date],json:{read:!1}})],y.prototype,"stops",void 0),y=(0,i._)([(0,l.$)("esri.layers.support.TimeInfo")],y);const f=y}}]);
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! For license information please see e4d522ade82192f32d54.js.LICENSE.txt */
|
|
2
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[224],{79e3:(e,t,n)=>{n.d(t,{D:()=>A,a:()=>T,b:()=>k,g:()=>E,h:()=>x,i:()=>O,k:()=>C,l:()=>F,m:()=>U,p:()=>y,q:()=>N,r:()=>R,s:()=>D,t:()=>L,u:()=>P,v:()=>I,w:()=>M}),n(34088);var o=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"].join(","),i=typeof Element>"u",r=i?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,a=!i&&Element.prototype.getRootNode?function(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}:function(e){return e?.ownerDocument},l=function e(t,n){var o;void 0===n&&(n=!0);var i=null==t||null===(o=t.getAttribute)||void 0===o?void 0:o.call(t,"inert");return""===i||"true"===i||n&&t&&e(t.parentNode)},c=function e(t,n,i){for(var a=[],c=Array.from(t);c.length;){var s=c.shift();if(!l(s,!1))if("SLOT"===s.tagName){var u=s.assignedElements(),d=e(u.length?u:s.children,!0,i);i.flatten?a.push.apply(a,d):a.push({scopeParent:s,candidates:d})}else{r.call(s,o)&&i.filter(s)&&(n||!t.includes(s))&&a.push(s);var f=s.shadowRoot||"function"==typeof i.getShadowRoot&&i.getShadowRoot(s),h=!l(f,!1)&&(!i.shadowRootFilter||i.shadowRootFilter(s));if(f&&h){var p=e(!0===f?s.children:f.children,!0,i);i.flatten?a.push.apply(a,p):a.push({scopeParent:s,candidates:p})}else c.unshift.apply(c,s.children)}}return a},s=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},u=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||function(e){var t,n=null==e||null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"contenteditable");return""===n||"true"===n}(e))&&!s(e)?0:e.tabIndex},d=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},f=function(e){return"INPUT"===e.tagName},h=function(e){var t=e.getBoundingClientRect(),n=t.width,o=t.height;return 0===n&&0===o},p=function(e,t){return!(t.disabled||l(t)||function(e){return f(e)&&"hidden"===e.type}(t)||function(e,t){var n=t.displayCheck,o=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var i=r.call(e,"details>summary:first-of-type")?e.parentElement:e;if(r.call(i,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return h(e)}else{if("function"==typeof o){for(var l=e;e;){var c=e.parentElement,s=a(e);if(c&&!c.shadowRoot&&!0===o(c))return h(e);e=e.assignedSlot?e.assignedSlot:c||s===e.ownerDocument?c:s.host}e=l}if(function(e){var t,n,o,i,r=e&&a(e),l=null===(t=r)||void 0===t?void 0:t.host,c=!1;if(r&&r!==e)for(c=!!(null!==(n=l)&&void 0!==n&&null!==(o=n.ownerDocument)&&void 0!==o&&o.contains(l)||null!=e&&null!==(i=e.ownerDocument)&&void 0!==i&&i.contains(e));!c&&l;){var s,u,d;c=!(null===(u=l=null===(s=r=a(l))||void 0===s?void 0:s.host)||void 0===u||null===(d=u.ownerDocument)||void 0===d||!d.contains(l))}return c}(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1}(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some((function(e){return"SUMMARY"===e.tagName}))}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var o=t.children.item(n);if("LEGEND"===o.tagName)return!!r.call(t,"fieldset[disabled] *")||!o.contains(e)}return!0}t=t.parentElement}return!1}(t))},m=function(e,t){return!(function(e){return function(e){return f(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||a(e),o=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if(typeof window<"u"&&typeof window.CSS<"u"&&"function"==typeof window.CSS.escape)t=o(window.CSS.escape(e.name));else try{t=o(e.name)}catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),!1}var i=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]}(t,e.form);return!i||i===e}(e)}(t)||u(t)<0||!p(e,t))},b=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},g=function e(t){var n=[],o=[];return t.forEach((function(t,i){var r=!!t.scopeParent,a=r?t.scopeParent:t,l=function(e,t){var n=u(e);return n<0&&t&&!s(e)?0:n}(a,r),c=r?e(t.candidates):a;0===l?r?n.push.apply(n,c):n.push(a):o.push({documentOrder:i,tabIndex:l,item:t,isScope:r,content:c})})),o.sort(d).reduce((function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e}),[]).concat(n)},v=function(e,t){var n;return n=(t=t||{}).getShadowRoot?c([e],t.includeContainer,{filter:m.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:b}):function(e,t,n){if(l(e))return[];var i=Array.prototype.slice.apply(e.querySelectorAll(o));return t&&r.call(e,o)&&i.unshift(e),i.filter(n)}(e,t.includeContainer,m.bind(null,t)),g(n)};const y={getShadowRoot:!0};function E(e){const t=C(e,"[dir]");return t?t.getAttribute("dir"):"ltr"}function w(e){return e.getRootNode()}function S(e){return e.host||null}function N(e,{selector:t,id:n}){if(!e)return null;e.assignedSlot&&(e=e.assignedSlot);const o=w(e);return(n?"getElementById"in o?o.getElementById(n):null:t?o.querySelector(t):null)||N(S(o),{selector:t,id:n})}function C(e,t){return e?e.closest(t)||C(S(w(e)),t):null}async function k(e){if(e)return function(e){return"function"==typeof e?.setFocus}(e)?e.setFocus():e.focus()}function x(e){(function(e){if(e)return v(e,y)[0]??e})(e)?.focus()}function I(e,t,n){return"string"==typeof t&&""!==t?t:""===t||!0===t?e[n]:void 0}function L(e){return(!!e).toString()}function R(e){return T(e)||function(e){return!!function(e){return function(e){return e.currentTarget.assignedNodes({flatten:!0})}(e).filter((e=>e.nodeType===Node.TEXT_NODE)).map((e=>e.textContent)).join("").trim()}(e)}(e)}function A(e){for(const t of e.childNodes)if(t.nodeType===Node.TEXT_NODE&&""!==t.textContent?.trim()||t.nodeType===Node.ELEMENT_NODE)return!0;return!1}function T(e){return!!D(e).length}function D(e,t){return function(e,t){const n=e.assignedElements({flatten:!0});return t?function(e,t){return e.filter((e=>e.matches(t)))}(n,t):n}(e.target,t)}function O(e){return!(!e.isPrimary||0!==e.button)}function P(e){return 0===e.detail}function F(e,t){if(e.parentNode!==t.parentNode)return!1;const n=Array.from(e.parentNode.children);return n.indexOf(e)<n.indexOf(t)}async function M(e,t,n,o){return async function(e,t,n,o,i){let r=q(e,n,t);if(r||(await z(),r=q(e,n,t)),!r)return async function(e,t){await z(),e?.(),await z(),t?.()}(o,i);o?.();try{await r.finished}catch{}finally{i?.()}}(e,t,"transition",n,o)}function q(e,t,n){const o="transition"===t?"transitionProperty":"animationName";return e.getAnimations().find((e=>e[o]===n))}function z(){return new Promise((e=>requestAnimationFrame((()=>e()))))}function U(e){return e.endsWith("px")}},87843:(e,t,n)=>{n.r(t),n.d(t,{Label:()=>s});var o=n(34088),i=n(12618),r=n(26031),a=n(93174),l=n(33826);const c=l.AH`:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:flex}:host([alignment=start]){text-align:start}:host([alignment=end]){text-align:end}:host([alignment=center]){text-align:center}:host([scale=s]) .container{gap:.25rem;font-size:var(--calcite-font-size--2);line-height:1rem;margin-block-end:var(--calcite-label-margin-bottom, .5rem)}:host([scale=m]) .container{gap:.5rem;font-size:var(--calcite-font-size--1);line-height:1rem;margin-block-end:var(--calcite-label-margin-bottom, .75rem)}:host([scale=l]) .container{gap:.5rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;margin-block-end:var(--calcite-label-margin-bottom, 1rem)}:host .container{margin-inline:0px;margin-block-start:0px;inline-size:100%;line-height:1.375;color:var(--calcite-color-text-1);color:var(--calcite-label-text-color, var(--calcite-color-text-1))}:host([layout=default]) .container{display:flex;flex-direction:column}:host([layout=inline]) .container,:host([layout=inline-space-between]) .container{display:flex;flex-direction:row;align-items:center;gap:.5rem}:host([layout=inline][scale=l]) .container{gap:.75rem}:host([layout=inline-space-between]) .container{justify-content:space-between}:host([disabled])>.container{opacity:var(--calcite-opacity-disabled)}:host([disabled]) ::slotted(*[disabled]),:host([disabled]) ::slotted(*[disabled] *){--tw-bg-opacity: 1}:host([disabled]) ::slotted(calcite-input-message:not([active])){--tw-bg-opacity: 0}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}:host([hidden]){display:none}[hidden]{display:none}`;class s extends r.WF{constructor(){super(),this.alignment="start",this.layout="default",this.scale="m",this.calciteInternalLabelClick=(0,r.lh)({bubbles:!1,cancelable:!1}),this.listen("click",this.labelClickHandler)}static{this.properties={alignment:3,for:3,layout:3,scale:3}}static{this.styles=c}connectedCallback(){super.connectedCallback(),document.dispatchEvent(new CustomEvent(a.l))}willUpdate(e){e.has("for")&&(0,a.a)(this.el)}disconnectedCallback(){super.disconnectedCallback(),document.dispatchEvent(new CustomEvent(a.b))}labelClickHandler(e){"Range"!==window.getSelection()?.type&&this.calciteInternalLabelClick.emit({sourceEvent:e})}render(){return i.qy`<div class=${(0,r.CP)("container")}><slot></slot></div>`}}(0,o.c)("calcite-label",s)},93174:(e,t,n)=>{n.d(t,{a:()=>w,b:()=>a,c:()=>p,d:()=>m,g:()=>g,l:()=>r});var o=n(79e3);const i="calciteInternalLabelClick",r="calciteInternalLabelConnected",a="calciteInternalLabelDisconnected",l="calcite-label",c=new WeakMap,s=new WeakMap,u=new WeakMap,d=new WeakMap,f=new Set,h=e=>{const{id:t}=e,n=t&&(0,o.q)(e,{selector:`${l}[for="${t}"]`});if(n)return n;const i=(0,o.k)(e,l);return!i||function(e,t){let n;const o="custom-element-ancestor-check",i=o=>{o.stopImmediatePropagation();const i=o.composedPath();n=i.slice(i.indexOf(t),i.indexOf(e))};return e.addEventListener(o,i,{once:!0}),t.dispatchEvent(new CustomEvent(o,{composed:!0,bubbles:!0})),e.removeEventListener(o,i),n.filter((n=>n!==t&&n!==e)).filter((e=>e.tagName?.includes("-"))).length>0}(i,e)?null:i};function p(e){if(!e)return;const t=h(e.el);if(s.has(t)&&t===e.labelEl||!t&&f.has(e))return;const n=E.bind(e);if(t){e.labelEl=t;const o=c.get(t)||[];o.push(e),c.set(t,o.sort(b)),s.has(e.labelEl)||(s.set(e.labelEl,v),e.labelEl.addEventListener(i,v)),f.delete(e),document.removeEventListener(r,u.get(e)),d.set(e,n),document.addEventListener(a,n)}else f.has(e)||(n(),document.removeEventListener(a,d.get(e)))}function m(e){if(!e||(f.delete(e),document.removeEventListener(r,u.get(e)),document.removeEventListener(a,d.get(e)),u.delete(e),d.delete(e),!e.labelEl))return;const t=c.get(e.labelEl);1===t.length&&(e.labelEl.removeEventListener(i,s.get(e.labelEl)),s.delete(e.labelEl)),c.set(e.labelEl,t.filter((t=>t!==e)).sort(b)),e.labelEl=null}function b(e,t){return(0,o.l)(e.el,t.el)?-1:1}function g(e){return e.label||e.labelEl?.textContent?.trim()||""}function v(e){const t=e.detail.sourceEvent.target,n=c.get(this),o=n.find((e=>e.el===t));if(n.includes(o))return;const i=n[0];i.disabled||i.onLabelClick(e)}function y(){f.has(this)&&p(this)}function E(){f.add(this);const e=u.get(this)||y.bind(this);u.set(this,e),document.addEventListener(r,e)}async function w(e){if(await e.componentOnReady(),c.has(e))return;const t=e.ownerDocument?.getElementById(e.for);t&&requestAnimationFrame((()=>{for(const e of f)if(e.el===t){p(e);break}}))}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9953],{9775:(e,t,r)=>{r.d(t,{A:()=>o});var s=r(62788),n=r(95488);class o{constructor(e=e=>e.values().next().value){this._peeker=e,this._observable=new n.I,this._items=new Set}get length(){return(0,s.gc)(this._observable),this._items.size}clear(){0!==this.length&&(this._items.clear(),this._observable.notify())}last(){if(0===this.length)return;let e;for(e of this._items);return e}peek(){if(0!==this.length)return this._peeker(this._items)}push(e){this.contains(e)||(this._items.add(e),this._observable.notify())}contains(e){return(0,s.gc)(this._observable),this._items.has(e)}pop(){if(0===this.length)return;const e=this.peek();return this._items.delete(e),this._observable.notify(),e}popLast(){if(0===this.length)return;const e=this.last();return this._items.delete(e),this._observable.notify(),e}remove(e){this.contains(e)&&(this._items.delete(e),this._observable.notify())}filter(e){const t=this.length;return this._items.forEach((t=>{e(t)||this._items.delete(t)})),t!==this._items.size&&this._observable.notify(),this}*[Symbol.iterator](){(0,s.gc)(this._observable),yield*this._items}}},10382:(e,t,r)=>{r.d(t,{A:()=>c});var s=r(36563),n=(r(44208),r(74887)),o=r(9775),i=r(72457),a=r(52268),l=r(61322);class c{constructor(){this._inUseClients=new Array,this._clients=new Array,this._clientPromises=new Array,this._ongoingJobsQueue=new o.A}destroy(){this.close()}get closed(){return!this._clients?.length}open(e,t){return new Promise(((r,s)=>{let o=!0;const i=e=>{(0,n.Te)(t.signal),o&&(o=!1,e())};this._clients.length=e.length,this._clientPromises.length=e.length,this._inUseClients.length=e.length;for(let o=0;o<e.length;++o){const a=e[o];(0,n.$X)(a)?this._clientPromises[o]=a.then((e=>(this._clients[o]=new l.default(e,t,this._ongoingJobsQueue),i(r),this._clients[o])),(()=>(i(s),null))):(this._clients[o]=new l.default(a,t,this._ongoingJobsQueue),this._clientPromises[o]=Promise.resolve(this._clients[o]),i(r))}}))}broadcast(e,t,r){const s=new Array(this._clientPromises.length);for(let n=0;n<this._clientPromises.length;++n){const o=this._clientPromises[n];s[n]=o.then((s=>s?.invoke(e,t,r)))}return s}close(){let e;for(;e=this._ongoingJobsQueue.pop();)e.resolver.reject((0,n.NK)(`Worker closing, aborting job calling '${e.methodName}'`));for(const e of this._clientPromises)e.then((e=>e?.close()));this._clients.length=0,this._clientPromises.length=0,this._inUseClients.length=0,(0,i.h)(this)}invoke(e,t,r){return this.apply(e,[t],r)}apply(e,t,r){const s=(0,n.Tw)();this._ongoingJobsQueue.push({methodName:e,data:t,invokeOptions:r,resolver:s});for(let e=0;e<this._clientPromises.length;e++){const t=this._clients[e];t?t.jobAdded():this._clientPromises[e].then((e=>e?.jobAdded()))}return s.promise}createInvokeProxy(e){return(0,a.L)(this,e)}on(e,t){return Promise.all(this._clientPromises).then((()=>(0,s.vE)(this._clients.map((r=>r.on(e,t))))))}openPorts(){return new Promise((e=>{const t=new Array(this._clientPromises.length);let r=t.length;for(let s=0;s<this._clientPromises.length;++s)this._clientPromises[s].then((n=>{n&&(t[s]=n.openPort()),0==--r&&e(t)}))}))}get test(){}}},18047:(e,t,r)=>{r.d(t,{ZV:()=>l,yx:()=>a});var s=r(73444);const n={ar:"ar-u-nu-latn"};let o=new WeakMap,i={};function a(e={}){const t={};return null!=e.digitSeparator&&(t.useGrouping=e.digitSeparator),null!=e.places&&(t.minimumFractionDigits=t.maximumFractionDigits=e.places),t}function l(e,t){return Object.is(e,-0)&&(e=0),function(e){const t=e||i;if(!o.has(t)){const r=(0,s.JK)(),i=n[(0,s.JK)()]||r;o.set(t,new Intl.NumberFormat(i,e))}return o.get(t)}(t).format(e)}(0,s.Ml)((()=>{o=new WeakMap,i={}})),new Map},29953:(e,t,r)=>{r.d(t,{ho:()=>q});var s=r(49186),n=r(44208),o=r(74887),i=r(10382),a=r(72457),l=r(61322),c=r(53966),u=r(97768),h=r(78888),d=r(84952);const f={async request(e,t){const r=e.options,s=r.responseType;r.signal=t?.signal,r.responseType="native"===s||"native-request-init"===s?"native-request-init":s&&["blob","json","text"].includes(s)&&(0,d.sC)(e.url)?.after?s:"array-buffer";const n=await(0,h.A)(e.url,r),o={data:n.data,httpStatus:n.httpStatus,ssl:n.ssl};switch(n.requestOptions?.responseType){case"native-request-init":return delete o.data.signal,o;case"blob":o.data=await o.data.arrayBuffer();break;case"json":o.data=(new TextEncoder).encode(JSON.stringify(o.data)).buffer;break;case"text":o.data=(new TextEncoder).encode(o.data).buffer}return{result:o,transferList:[o.data]}}};var g=r(8341),m=r(2741),p=r(92602),b=(r(47566),r(70333));const w={};var y=r(26390);class k{constructor(){const e=document.createDocumentFragment();["addEventListener","dispatchEvent","removeEventListener"].forEach((t=>{this[t]=(...r)=>e[t](...r)}))}}class v{constructor(){this._dispatcher=new k,this._workerPostMessage({type:g.Go.HANDSHAKE})}terminate(){}get onmessage(){return this._onmessageHandler}set onmessage(e){this._onmessageHandler&&this.removeEventListener("message",this._onmessageHandler),this._onmessageHandler=e,e&&this.addEventListener("message",e)}get onmessageerror(){return this._onmessageerrorHandler}set onmessageerror(e){this._onmessageerrorHandler&&this.removeEventListener("messageerror",this._onmessageerrorHandler),this._onmessageerrorHandler=e,e&&this.addEventListener("messageerror",e)}get onerror(){return this._onerrorHandler}set onerror(e){this._onerrorHandler&&this.removeEventListener("error",this._onerrorHandler),this._onerrorHandler=e,e&&this.addEventListener("error",e)}postMessage(e){(0,y.d)((()=>{this._workerMessageHandler(new MessageEvent("message",{data:e}))}))}dispatchEvent(e){return this._dispatcher.dispatchEvent(e)}addEventListener(e,t,r){this._dispatcher.addEventListener(e,t,r)}removeEventListener(e,t,r){this._dispatcher.removeEventListener(e,t,r)}_workerPostMessage(e){(0,y.d)((()=>{this.dispatchEvent(new MessageEvent("message",{data:e}))}))}async _workerMessageHandler(e){const t=(0,g.VI)(e);if(t&&t.type===g.Go.OPEN){const{modulePath:e,jobId:r}=t;let s=await l.default.loadWorker(e);s||(s=await import(e));const n=l.default.connect(s);this._workerPostMessage({type:g.Go.OPENED,jobId:r,data:n})}}}var _=r(73444),A=r(18357);const P=()=>c.A.getLogger("esri.core.workers.workerFactory"),{HANDSHAKE:E}=g.Go;let O,I;const L="Failed to create Worker. Fallback to execute module in main thread";async function M(e){return new Promise((t=>{function r(n){const o=(0,g.VI)(n);o&&o.type===E&&(e.removeEventListener("message",r),e.removeEventListener("error",s),t(e))}function s(t){t.preventDefault(),e.removeEventListener("message",r),e.removeEventListener("error",s),P().warn("Failed to create Worker. Fallback to execute module in main thread",t),(e=new v).addEventListener("message",r),e.addEventListener("error",s)}e.addEventListener("message",r),e.addEventListener("error",s)}))}let N=0;const{ABORT:C,INVOKE:j,OPEN:S,OPENED:J,RESPONSE:R}=g.Go;class H{static async create(e){const t=await async function(){if(!(0,n.A)("esri-workers"))return M(new v);if(!O&&!I)try{const e='let globalId=0;const outgoing=new Map,configuration={CONFIGURATION};self.esriConfig=configuration.esriConfig;const workerPath=self.esriConfig.workers.workerPath,HANDSHAKE=0,OPEN=1,OPENED=2,RESPONSE=3,INVOKE=4,ABORT=5;function createAbortError(){const e=new Error("Aborted");return e.name="AbortError",e}function receiveMessage(e){return e&&e.data?"string"==typeof e.data?JSON.parse(e.data):e.data:null}function invokeStaticMessage(e,o,r){const t=r&&r.signal,n=globalId++;let s=null;return new Promise(((r,i)=>{if(t){if(t.aborted)return i(createAbortError());s=()=>{outgoing.get(n)&&(outgoing.delete(n),self.postMessage({type:5,jobId:n}),i(createAbortError()))},t.addEventListener("abort",s)}outgoing.set(n,{resolve:r,reject:i}),self.postMessage({type:4,jobId:n,methodName:e,abortable:null!=t,data:o})})).finally((()=>{t&&t.removeEventListener("abort",s)}))}let workerRevisionChecked=!1;function checkWorkerRevision(e){if(!workerRevisionChecked&&e.kernelInfo){workerRevisionChecked=!0;const{revision:o,fullVersion:r}=configuration.kernelInfo,{revision:t,fullVersion:n,version:s}=e.kernelInfo;esriConfig.assetsPath!==esriConfig.defaultAssetsPath&&o!==t&&console.warn(`Version mismatch detected between ArcGIS Maps SDK for JavaScript modules and assets. For more information visit https://bit.ly/3QnsuSo.\nModules version: ${r}\nAssets version: ${n??s}\nAssets path: ${esriConfig.assetsPath}`)}}function messageHandler(e){const o=receiveMessage(e);if(!o)return;const r=o.jobId;switch(o.type){case 1:let n;function t(e){const o=n.connect(e);self.postMessage({type:2,jobId:r,data:o},[o])}"function"==typeof define&&define.amd?require([workerPath],(e=>{n=e.default||e,checkWorkerRevision(n),n.loadWorker(o.modulePath).then((e=>e||new Promise((e=>{require([o.modulePath],e)})))).then(t)})):"System"in self&&"function"==typeof System.import?System.import(workerPath).then((e=>(n=e.default,checkWorkerRevision(n),n.loadWorker(o.modulePath)))).then((e=>e||System.import(o.modulePath))).then(t):esriConfig.workers.useDynamicImport?import(workerPath).then((e=>{n=e.default||e,checkWorkerRevision(n),n.loadWorker(o.modulePath).then((e=>e||import(o.modulePath))).then(t)})):(self.RemoteClient||importScripts(workerPath),n=self.RemoteClient.default||self.RemoteClient,checkWorkerRevision(n),n.loadWorker(o.modulePath).then(t));break;case 3:if(outgoing.has(r)){const s=outgoing.get(r);outgoing.delete(r),o.error?s.reject(JSON.parse(o.error)):s.resolve(o.data)}}}self.dojoConfig=configuration.loaderConfig,esriConfig.workers.loaderUrl&&(self.importScripts(esriConfig.workers.loaderUrl),"function"==typeof require&&"function"==typeof require.config&&require.config(configuration.loaderConfig)),self.addEventListener("message",messageHandler),self.postMessage({type:0});'.split("{CONFIGURATION}").join(function(){let e;if(null!=p.A.default){const t={...p.A};delete t.default,e=JSON.parse(JSON.stringify(t))}else e=JSON.parse(JSON.stringify(p.A));e.assetsPath=(0,d.s2)(e.assetsPath),e.defaultAssetsPath=e.defaultAssetsPath?(0,d.s2)(e.defaultAssetsPath):void 0,e.request.interceptors=[],e.log.interceptors=[],e.locale=(0,_.JK)(),e.has={"esri-csp-restrictions":(0,n.A)("esri-csp-restrictions"),"esri-2d-debug":!1,"esri-2d-update-debug":(0,n.A)("esri-2d-update-debug"),"esri-2d-log-updating":(0,n.A)("esri-2d-log-updating"),"featurelayer-pbf":(0,n.A)("featurelayer-pbf"),"featurelayer-fast-triangulation-enabled":(0,n.A)("featurelayer-fast-triangulation-enabled"),"featurelayer-simplify-thresholds":(0,n.A)("featurelayer-simplify-thresholds"),"featurelayer-simplify-payload-size-factors":(0,n.A)("featurelayer-simplify-payload-size-factors"),"featurelayer-simplify-mobile-factor":(0,n.A)("featurelayer-simplify-mobile-factor"),"featurelayer-query-max-depth":(0,n.A)("featurelayer-query-max-depth"),"featurelayer-query-pausing-enabled":(0,n.A)("featurelayer-query-pausing-enabled"),"featurelayer-snapshot-enabled":(0,n.A)("featurelayer-snapshot-enabled"),"esri-atomics":(0,n.A)("esri-atomics"),"esri-shared-array-buffer":(0,n.A)("esri-shared-array-buffer"),"esri-tiles-debug":(0,n.A)("esri-tiles-debug"),"esri-workers-arraybuffer-transfer":(0,n.A)("esri-workers-arraybuffer-transfer"),"feature-polyline-generalization-factor":(0,n.A)("feature-polyline-generalization-factor"),"host-webworker":1},e.workers.loaderUrl&&(e.workers.loaderUrl=(0,d.s2)(e.workers.loaderUrl)),e.workers.workerPath?e.workers.workerPath=(0,d.s2)(e.workers.workerPath):e.workers.workerPath=(0,d.s2)((0,m.s)("esri/core/workers/RemoteClient.js")),e.workers.useDynamicImport=!1;const t=p.A.workers.loaderConfig,r=function(e){const t={async:e.async,isDebug:e.isDebug,locale:e.locale,baseUrl:e.baseUrl,has:{...e.has},map:{...e.map},packages:e.packages?.slice()||[],paths:{...w.paths,...e.paths}};return e.hasOwnProperty("async")||(t.async=!0),e.hasOwnProperty("isDebug")||(t.isDebug=!1),e.baseUrl||(t.baseUrl=w.baseUrl),t}({baseUrl:t?.baseUrl,locale:(0,_.JK)(),has:{"csp-restrictions":1,"dojo-test-sniff":0,"host-webworker":1,...t?.has},map:{...t?.map},paths:{...t?.paths},packages:t?.packages||[]}),s={buildDate:A.$,fullVersion:b.ol,revision:A.u};return JSON.stringify({esriConfig:e,loaderConfig:r,kernelInfo:s})}());O=URL.createObjectURL(new Blob([e],{type:"text/javascript"}))}catch(e){I=e||{}}let e;if(O)try{e=new Worker(O,{name:"esri-worker-"+N++})}catch(t){P().warn(L,I),e=new v}else P().warn(L,I),e=new v;return M(e)}();return new H(t,e)}constructor(e,t){this._outJobs=new Map,this._inJobs=new Map,this.worker=e,this.id=t,e.addEventListener("message",this._onMessage.bind(this)),e.addEventListener("error",(e=>{e.preventDefault(),c.A.getLogger("esri.core.workers.WorkerOwner").error(e)}))}terminate(){this.worker.terminate()}async open(e,t={}){const{signal:r}=t,s=(0,g.Jc)();return new Promise(((t,n)=>{const i={resolve:t,reject:n,abortHandle:(0,o.NY)(r,(()=>{this._outJobs.delete(s),this._post({type:C,jobId:s})}))};this._outJobs.set(s,i),this._post({type:S,jobId:s,modulePath:e})}))}_onMessage(e){const t=(0,g.VI)(e);if(t)switch(t.type){case J:this._onOpenedMessage(t);break;case R:this._onResponseMessage(t);break;case C:this._onAbortMessage(t);break;case j:this._onInvokeMessage(t)}}_onAbortMessage(e){const t=this._inJobs,r=e.jobId,s=t.get(r);s&&(s.controller&&s.controller.abort(),t.delete(r))}_onInvokeMessage(e){const{methodName:t,jobId:r,data:s,abortable:n}=e,i=n?new AbortController:null,a=this._inJobs,l=f[t];let c;try{if("function"!=typeof l)throw new TypeError(`${t} is not a function`);c=l.call(null,s,{signal:i?i.signal:null})}catch(e){return void this._post({type:R,jobId:r,error:(0,g.mF)(e)})}(0,o.$X)(c)?(a.set(r,{controller:i,promise:c}),c.then((e=>{a.has(r)&&(a.delete(r),this._post({type:R,jobId:r},e))}),(e=>{a.has(r)&&(a.delete(r),e||(e={message:"Error encountered at method"+t}),(0,o.zf)(e)||this._post({type:R,jobId:r,error:(0,g.mF)(e||{message:`Error encountered at method ${t}`})}))}))):this._post({type:R,jobId:r},c)}_onOpenedMessage(e){const{jobId:t,data:r}=e,s=this._outJobs.get(t);s&&(this._outJobs.delete(t),(0,u.xt)(s.abortHandle),s.resolve(r))}_onResponseMessage(e){const{jobId:t,error:r,data:n}=e,o=this._outJobs.get(t);o&&(this._outJobs.delete(t),(0,u.xt)(o.abortHandle),r?o.reject(s.A.fromJSON(JSON.parse(r))):o.resolve(n))}_post(e,t,r){return(0,g.u1)(this.worker,e,t,r)}}const U=(0,n.A)("host-browser")?Math.min(navigator.hardwareConcurrency-1,(0,n.A)("workers-pool-size")??8):0;let x=(0,n.A)("esri-mobile")?Math.min(U,3):U;x||(x=(0,n.A)("safari")&&(0,n.A)("mac")?7:2);let $=0;const W=[];async function D(e,t){const r=new i.A,{registryTarget:s,...n}=t;return await r.open(e,n),s&&(0,a.k)(s,r),r}async function q(e,t={}){if("string"!=typeof e)throw new s.A("workers:undefined-module","modulePath is missing");let r=t.strategy||"distributed";if((0,n.A)("host-webworker")&&!(0,n.A)("esri-workers")&&(r="local"),"local"===r){let r=await l.default.loadWorker(e);r||(r=await import(e)),(0,o.Te)(t.signal);const s=t.client||r;return D([l.default.connect(r,t.schedule)],{...t,client:s})}if(await async function(){if(F)return F;T=new AbortController;const e=[];for(let t=0;t<x;t++){const r=H.create(t).then((e=>(W[t]=e,e)));e.push(r)}return F=Promise.all(e),F}(),(0,o.Te)(t.signal),"dedicated"===r){const r=$++%x;return D([await W[r].open(e,t)],t)}if(t.maxNumWorkers&&t.maxNumWorkers>0){const r=Math.min(t.maxNumWorkers,x);if(r<x){const s=new Array(r);for(let n=0;n<r;++n){const r=$++%x;s[n]=W[r].open(e,t)}return D(s,t)}}return D(W.map((r=>r.open(e,t))),t)}let T,F=null},47566:(e,t,r)=>{r(97770),r(18047),r(71754),r(73444);var s=r(10838),n=r(78888),o=r(49186);async function i(e){if(null!=a.fetchBundleAsset)return a.fetchBundleAsset(e);const t=await(0,n.A)(e,{responseType:"text"});return JSON.parse(t.data)}const a={};var l,c=r(2741);(0,s.ao)((l={pattern:"esri/",location:c.s},new class{constructor({base:e="",pattern:t,location:r=new URL(window.location.href)}){let s;s="string"==typeof r?e=>new URL(e,new URL(r,window.location.href)).href:r instanceof URL?e=>new URL(e,r).href:r,this.pattern="string"==typeof t?new RegExp(`^${t}`):t,this.getAssetUrl=s,e=e?e.endsWith("/")?e:e+"/":"",this.matcher=new RegExp(`^${e}(?:(.*)\\/)?(.*)$`)}fetchMessageBundle(e,t){return async function(e,t,r,n){const a=t.exec(r);if(!a)throw new o.A("esri-intl:invalid-bundle",`Bundle id "${r}" is not compatible with the pattern "${t}"`);const l=a[1]?`${a[1]}/`:"",c=a[2],u=(0,s.xO)(n),h=`${l}${c}.json`,d=u?`${l}${c}_${u}.json`:h;let f;try{f=await i(e(d))}catch(t){if(d===h)throw new o.A("intl:unknown-bundle",`Bundle "${r}" cannot be loaded`,{error:t});try{f=await i(e(h))}catch(e){throw new o.A("intl:unknown-bundle",`Bundle "${r}" cannot be loaded`,{error:e})}}return f}(this.getAssetUrl,this.matcher,e,t)}}(l)))},71754:(e,t,r)=>{r.d(t,{V:()=>c});var s=r(53966),n=r(93637),o=r(799),i=r(97770),a=r(18047);const l=()=>s.A.getLogger("esri.intl.substitute");function c(e,t,r={}){const{format:s={}}=r;return(0,o.HC)(e,(e=>function(e,t,r){let s,o;const i=e.indexOf(":");if(-1===i?s=e.trim():(s=e.slice(0,i).trim(),o=e.slice(i+1).trim()),!s)return"";const a=(0,n.wc)(s,t);if(null==a)return"";const l=(o?r?.[o]:null)??r?.[s];return l?u(a,l):o?h(a,o):d(a)}(e,t,s)))}function u(e,t){switch(t.type){case"date":return(0,i.Yq)(e,t.intlOptions);case"number":return(0,a.ZV)(e,t.intlOptions);default:return l().warn("missing format descriptor for key {key}"),d(e)}}function h(e,t){switch(t.toLowerCase()){case"dateformat":return(0,i.Yq)(e);case"numberformat":return(0,a.ZV)(e);default:return l().warn(`inline format is unsupported since 4.12: ${t}`),/^(dateformat|datestring)/i.test(t)?(0,i.Yq)(e):/^numberformat/i.test(t)?(0,a.ZV)(e):d(e)}}function d(e){switch(typeof e){case"string":return e;case"number":return(0,a.ZV)(e);case"boolean":return""+e;default:return e instanceof Date?(0,i.Yq)(e):""}}},72457:(e,t,r)=>{r.d(t,{h:()=>o,k:()=>n});const s=new FinalizationRegistry((e=>{e.close()}));function n(e,t){s.register(e,t,t)}function o(e){s.unregister(e)}}}]);
|