@arcgis/core 6.0.0-next.13 → 6.0.0-next.15
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/arcade/containerUtils.js +1 -1
- package/arcade/featureset/sources/FeatureLayerDynamic.js +1 -1
- package/arcade/functions/feature.js +1 -1
- package/arcade/functions/featuresetstring.js +1 -1
- package/arcade/functions/geomasync.js +1 -1
- package/arcade/functions/portal.js +1 -1
- package/arcade/functions/string.js +1 -1
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/{5566f14afb63065e438f.js → 0050916e462e3c9e0627.js} +1 -1
- package/assets/esri/core/workers/chunks/02c5d027bdaee67869cf.js +1 -0
- package/assets/esri/core/workers/chunks/08fe248e412bb170210d.js +1 -0
- package/assets/esri/core/workers/chunks/0da6abe3ceabfe78f7a0.js +1 -0
- package/assets/esri/core/workers/chunks/0f617980c7dd9ad0444f.js +1 -0
- package/assets/esri/core/workers/chunks/{fb444954be74c1962ced.js → 10d80e793019dfb45ca2.js} +1 -1
- package/assets/esri/core/workers/chunks/{10445313d0d57b34511b.js → 2145a512d269d64036b0.js} +1 -1
- package/assets/esri/core/workers/chunks/21ddb26526bcb2b122c3.js +1 -0
- package/assets/esri/core/workers/chunks/25f19fc929f25ddd628c.js +1 -0
- package/assets/esri/core/workers/chunks/28b74bc77f7c13080074.js +1 -0
- package/assets/esri/core/workers/chunks/{2ef5237e4c876d6a4ee0.js → 2bd4ee083ca4ad221f8b.js} +1 -1
- package/assets/esri/core/workers/chunks/{f4f9d08b2df856e3b694.js → 2eae542fe7f0f6576ac1.js} +1 -1
- package/assets/esri/core/workers/chunks/{2aeb5cc32284dd3e4d22.js → 33e4ff228a8c81b99022.js} +1 -1
- package/assets/esri/core/workers/chunks/{42323093827adffe56d3.js → 3418877328f4f0830300.js} +1 -1
- package/assets/esri/core/workers/chunks/{8dc1c3042267618fd710.js → 34cbaf844730ac2d92c2.js} +2 -2
- package/assets/esri/core/workers/chunks/{96c50a0dda0f1503ef92.js → 3c301a689c7853c9fa67.js} +2 -2
- package/assets/esri/core/workers/chunks/{02253bdffbd580af22d8.js → 3ff6d1ed3c0f1285f3e7.js} +1 -1
- package/assets/esri/core/workers/chunks/{67e4b5651fd7ff7d8cf0.js → 4ac1d3e49e242e373a92.js} +1 -1
- package/assets/esri/core/workers/chunks/4df6cb1bee5d0720a43e.js +1 -0
- package/assets/esri/core/workers/chunks/{a4cab24af69260438ff4.js → 4e6f40cbdb8c508e6df1.js} +1 -1
- package/assets/esri/core/workers/chunks/5736feefa261589b6273.js +1 -0
- package/assets/esri/core/workers/chunks/601e1d020b8115497944.js +1 -0
- package/assets/esri/core/workers/chunks/{2686fe5b62dd0be699c0.js → 634523cc7757da9020e4.js} +1 -1
- package/assets/esri/core/workers/chunks/{a518ae5683367eeda74c.js → 70d3055f15d8b0cf4074.js} +1 -1
- package/assets/esri/core/workers/chunks/{1b946714ca4a1a7359d4.js → 76ab353d80d786777161.js} +2 -2
- package/assets/esri/core/workers/chunks/7f8e327acad48c9e75ea.js +1 -0
- package/assets/esri/core/workers/chunks/8052da8be251c3ff2176.js +1 -0
- package/assets/esri/core/workers/chunks/8e19629899a5becf8e19.js +1 -0
- package/assets/esri/core/workers/chunks/{f6e62d2d279a328cbed7.js → 90bdf86f553e2742d67c.js} +1 -1
- package/assets/esri/core/workers/chunks/91ebb2ccab1889eb7e81.js +1 -0
- package/assets/esri/core/workers/chunks/94e427040edb469d58ad.js +1 -0
- package/assets/esri/core/workers/chunks/{3d9d7d3a40b51eb7ee3d.js → 953ba13299e7aa92c1a0.js} +1 -1
- package/assets/esri/core/workers/chunks/{f46d9a19f79d4a4bd354.js → 9e1a3b6a08c96dcefdde.js} +1 -1
- package/assets/esri/core/workers/chunks/9f0a973a0dd28953ce25.js +1 -0
- package/assets/esri/core/workers/chunks/a2ad3e620c98e2b2eb06.js +1 -0
- package/assets/esri/core/workers/chunks/a34b3d2e11a777e1ff3f.js +1 -0
- package/assets/esri/core/workers/chunks/{140f2eeb11e39ab15734.js → aa36c3a9bbaa086e3757.js} +1 -1
- package/assets/esri/core/workers/chunks/ae31fd416bbb41a81392.js +1 -0
- package/assets/esri/core/workers/chunks/b49df4ebd4be1181b0f9.js +2 -0
- package/assets/esri/core/workers/chunks/{68d8ae42ab71d01a70a5.js → b557824bc1fa163d72a3.js} +2 -2
- package/assets/esri/core/workers/chunks/bc915fb182d463d804e6.js +1 -0
- package/assets/esri/core/workers/chunks/{992f102992c2bed7b34e.js → d5d0fe8e198ff5a902ee.js} +1 -1
- package/assets/esri/core/workers/chunks/e2190361247f35b02b32.js +1 -0
- package/assets/esri/core/workers/chunks/e2f42aec02bff33b25dd.js +1 -0
- package/assets/esri/core/workers/chunks/ebc1a2ef3aed8aa29424.js +1 -0
- package/assets/esri/core/workers/chunks/ed6e9d7f71bfd2691717.js +1 -0
- package/assets/esri/core/workers/chunks/ed8786fed345718ed684.js +1 -0
- package/assets/esri/core/workers/chunks/ee6679ef9efa1504e7eb.js +1 -0
- package/assets/esri/libs/lyr3d/lyr3DMain.wasm +0 -0
- package/assets/esri/libs/lyr3d/lyr3DWorker.wasm +0 -0
- package/assets/esri/libs/pdfjs/wasm/openjpeg_nowasm_fallback.js +1 -0
- package/chunks/BlendWeights.glsl.js +10 -10
- package/chunks/Blur.glsl.js +2 -2
- package/chunks/EdgeDetect.glsl.js +24 -19
- package/chunks/HUDMaterial.glsl.js +11 -1
- package/chunks/HighlightApply.glsl.js +4 -5
- package/chunks/HighlightBlur.glsl.js +5 -5
- package/chunks/HighlightDownsample.glsl.js +2 -2
- package/chunks/HighlightSharpApply.glsl.js +61 -0
- package/chunks/lyr3DMain.js +1 -1
- package/chunks/lyr3DWorker.js +2 -2
- package/chunks/portal.js +1 -1
- package/config.js +1 -1
- package/core/ObjectPool.js +1 -1
- package/core/PooledArray.js +1 -1
- package/core/accessorSupport/tracking/SimpleTrackingTarget.js +1 -1
- package/geometry/support/buffer/BufferPool.js +1 -1
- package/geometry/support/coordsUtils.js +1 -1
- package/geometry/support/curves/ellipticArc7Utils.js +1 -1
- package/geometry/support/curves/mathUtils.js +1 -1
- package/geometry/support/meshUtils.d.ts +5 -6
- package/interfaces.d.ts +18 -9
- package/kernel.js +1 -1
- package/layers/GeospatialPDFLayer.d.ts +154 -4
- package/layers/Layer.d.ts +2 -0
- package/layers/geospatialPDF/GeospatialPDFLayerWorker.js +1 -1
- package/layers/geospatialPDF/ViewportMeasureFrame.js +1 -1
- package/layers/geospatialPDF/geospatialPDFParserUtils.js +1 -1
- package/layers/geospatialPDF/projectionToWKTUtils.js +2 -2
- package/layers/graphics/controllers/FeatureTileController3D.js +1 -1
- package/layers/graphics/sources/GeoJSONSource.js +1 -1
- package/layers/graphics/sources/geojson/GeoJSONSourceWorker.js +1 -1
- package/layers/graphics/sources/support/MemorySourceWorker.js +1 -1
- package/layers/graphics/sources/support/clientSideDefaults.js +1 -1
- package/layers/graphics/sources/support/sourceUtils.js +1 -1
- package/layers/raster/datasets/TIFFRaster.js +1 -1
- package/layers/raster/datasets/pixelReader.js +1 -1
- package/layers/raster/functions/clipUtils.js +1 -1
- package/layers/support/LabelClass.d.ts +3 -2
- package/layers/support/PortalItemData.d.ts +31 -8
- package/layers/support/fieldUtils.js +1 -1
- package/layers/support/types.d.ts +4 -1
- package/package.json +2 -2
- package/portal/schemas/definitions.js +1 -1
- package/rest/knowledgeGraph/ObjectValue.js +1 -1
- package/symbols/cim/cimAnalyzer.js +1 -1
- package/views/2d/engine/webgl/GlyphWorker.js +1 -1
- package/views/2d/layers/features/schema/processor/symbols/ComplexSymbolSchema.js +1 -1
- package/views/3d/analysis/DirectLineMeasurementAnalysisView3D.js +1 -1
- package/views/3d/analysis/LineOfSight/LineOfSightItemTool.js +1 -1
- package/views/3d/analysis/LineOfSight/LineOfSightObserverPlugin.js +1 -1
- package/views/3d/analysis/LineOfSight/LineOfSightPlacementController.js +1 -1
- package/views/3d/analysis/LineOfSight/{LineOfSightRootPlugin.js → LineOfSightPlacementRootPlugin.js} +1 -1
- package/views/3d/analysis/LineOfSight/LineOfSightTargetPlugin.js +1 -1
- package/views/3d/analysis/LineOfSight/LineOfSightTool.js +1 -1
- package/views/3d/analysis/Viewshed/ViewshedPlacementPointPlugin.js +1 -1
- package/views/3d/analysis/Viewshed/ViewshedSubTool.js +1 -1
- package/views/3d/analysis/Viewshed/ViewshedTool.js +1 -1
- package/views/3d/interactive/editingTools/ManipulatedObject3DGraphic.js +1 -1
- package/views/3d/support/MemoryController.js +1 -1
- package/views/3d/terrain/TerrainData.js +1 -1
- package/views/3d/terrain/terrainUtils.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/HighlightCellGridScreenSpacePass.glsl.js +20 -6
- package/views/3d/webgl-engine/effects/RenderPluginManager.js +1 -1
- package/views/3d/webgl-engine/effects/geometry/RenderOccluded.js +1 -1
- package/views/3d/webgl-engine/effects/highlight/Highlight.js +1 -1
- package/views/3d/webgl-engine/effects/highlight/HighlightApply.glsl.js +1 -1
- package/views/3d/webgl-engine/effects/highlight/HighlightCellGridScreenSpacePassParameters.js +2 -0
- package/views/3d/webgl-engine/effects/highlight/HighlightDownsample.glsl.js +1 -1
- package/views/3d/webgl-engine/effects/highlight/HighlightPassParameters.js +1 -1
- package/views/3d/webgl-engine/effects/highlight/HighlightSharpApply.glsl.js +2 -0
- package/views/3d/webgl-engine/effects/highlight/HighlightSharpApplyTechnique.js +2 -0
- package/views/3d/webgl-engine/effects/smaa/BlendWeights.glsl.js +1 -1
- package/views/3d/webgl-engine/effects/smaa/Blur.glsl.js +1 -1
- package/views/3d/webgl-engine/effects/smaa/EdgeDetect.glsl.js +1 -1
- package/views/3d/webgl-engine/effects/smaa/SMAA.js +1 -1
- package/views/3d/webgl-engine/effects/smaa/SMAABlendWeightsTechnique.js +1 -1
- package/views/3d/webgl-engine/effects/smaa/SMAABlurTechnique.js +1 -1
- package/views/3d/webgl-engine/effects/smaa/SMAAEdgeDetectTechnique.js +1 -1
- package/views/3d/webgl-engine/effects/smaa/SMAAPassParameters.js +1 -1
- package/views/3d/webgl-engine/effects/smaa/SMAATechniqueConfiguration.js +2 -0
- package/views/3d/webgl-engine/lib/Compositor.js +1 -1
- package/views/3d/webgl-engine/lib/PathBuilder.js +1 -1
- package/views/3d/webgl-engine/lib/PathCapBuilder.js +1 -1
- package/views/3d/webgl-engine/lib/PathEvaluator.js +1 -1
- package/views/3d/webgl-engine/lib/PathExtruder.js +1 -1
- package/views/3d/webgl-engine/lib/PathProfile.js +1 -1
- package/views/3d/webgl-engine/lib/RenderFeature.js +1 -1
- package/views/3d/webgl-engine/lib/pathGeometryUtils.js +1 -1
- package/views/3d/webgl-engine/parts/RenderView.js +1 -1
- package/views/draw/DrawTool.js +1 -1
- package/views/draw/plugins/MultipointPlugin.js +1 -1
- package/views/draw/support/PluginContext.js +1 -1
- package/views/draw/support/managers/TooltipManager.js +1 -1
- package/views/draw/support/types.d.ts +5 -2
- package/views/support/HighlightDefaults.js +1 -1
- package/webdoc/applicationProperties/SearchLayerField.d.ts +7 -1
- package/webdoc/applicationProperties/SearchLayerField.js +1 -1
- package/webdoc/applicationProperties/SearchTableField.d.ts +7 -1
- package/webdoc/applicationProperties/SearchTableField.js +1 -1
- package/webdoc/applicationProperties/searchMode.js +2 -0
- package/widgets/BatchAttributeForm/batchAttributeFormUtils.js +1 -1
- package/widgets/BatchAttributeForm/inputs/support/DynamicChoiceController.js +1 -1
- package/widgets/BatchAttributeForm/inputs/support/inputUtils.js +1 -1
- package/widgets/BatchAttributeForm.js +1 -1
- package/widgets/Editor/EditorViewModel.d.ts +10 -1
- package/widgets/Editor.d.ts +10 -1
- package/widgets/FeatureTable/FeatureTableViewModel.js +1 -1
- package/widgets/FeatureTable/support/FeatureStore.js +1 -1
- package/widgets/HistogramRangeSlider.d.ts +2 -2
- package/widgets/HistogramRangeSlider.js +1 -1
- package/widgets/Legend.d.ts +1 -0
- package/widgets/OrientedImageryViewer/services/DepthImageService.js +1 -1
- package/widgets/ScaleRangeSlider/ScaleRangeSliderViewModel.d.ts +5 -2
- package/widgets/ScaleRangeSlider/ScaleRangeSliderViewModel.js +1 -1
- package/widgets/ScaleRangeSlider.js +1 -1
- package/widgets/Search/LayerSearchSource.d.ts +23 -1
- package/widgets/Search/LayerSearchSource.js +1 -1
- package/widgets/Search/support/layerSearchUtils.js +1 -1
- package/widgets/Search/types.d.ts +7 -0
- package/widgets/ValuePicker/ValuePickerBaseComponent.d.ts +5 -1
- package/widgets/ValuePicker/ValuePickerCollection.d.ts +2 -0
- package/widgets/ValuePicker/ValuePickerCombobox.d.ts +7 -1
- package/widgets/ValuePicker/ValuePickerLabel.d.ts +7 -1
- package/widgets/ValuePicker/ValuePickerSlider.d.ts +2 -0
- package/widgets/ValuePicker/ValuePickerSliderVisibleElements.d.ts +5 -1
- package/widgets/ValuePicker/ValuePickerVisibleElements.d.ts +5 -1
- package/widgets/ValuePicker/types.d.ts +2 -0
- package/widgets/support/forms/formUtils.js +1 -1
- package/widgets/support/forms/types.d.ts +1 -1
- package/assets/esri/core/workers/chunks/037a8cc19debbaaa4e10.js +0 -1
- package/assets/esri/core/workers/chunks/0dc66b03ff55d0ea5a09.js +0 -1
- package/assets/esri/core/workers/chunks/175c268e64ccd01f8c25.js +0 -1
- package/assets/esri/core/workers/chunks/1c65ab9ed611c322ce27.js +0 -1
- package/assets/esri/core/workers/chunks/2a1ec30f9ad305763f81.js +0 -2
- package/assets/esri/core/workers/chunks/3df5500a85345577480a.js +0 -1
- package/assets/esri/core/workers/chunks/3f7d583b676b23b3fadb.js +0 -1
- package/assets/esri/core/workers/chunks/408e81c8f1eff8a7b379.js +0 -1
- package/assets/esri/core/workers/chunks/4503b20ca6a80fb63d72.js +0 -1
- package/assets/esri/core/workers/chunks/4a640548032355e57acd.js +0 -1
- package/assets/esri/core/workers/chunks/53be85d04cd2da4f391d.js +0 -1
- package/assets/esri/core/workers/chunks/566e129f3d3805d7370a.js +0 -1
- package/assets/esri/core/workers/chunks/567a65f4203f6e81f4b4.js +0 -1
- package/assets/esri/core/workers/chunks/5982c6a8459c1237b298.js +0 -1
- package/assets/esri/core/workers/chunks/5eae5c29149f2429fe96.js +0 -1
- package/assets/esri/core/workers/chunks/6dc86e7496157c5e4d2c.js +0 -1
- package/assets/esri/core/workers/chunks/74b5c00f93cfc0d59029.js +0 -1
- package/assets/esri/core/workers/chunks/7c2c8f786a30267a5f05.js +0 -1
- package/assets/esri/core/workers/chunks/88e54449261ef94e390d.js +0 -1
- package/assets/esri/core/workers/chunks/9e142551163acf752618.js +0 -1
- package/assets/esri/core/workers/chunks/af75747b06d79446a855.js +0 -1
- package/assets/esri/core/workers/chunks/dba280c370df13196711.js +0 -1
- package/assets/esri/core/workers/chunks/dc486a3595b6d57018bb.js +0 -1
- package/assets/esri/core/workers/chunks/e3c1c9e6c62ba5cbcdb8.js +0 -1
- package/assets/esri/core/workers/chunks/f1f90adae13b04898008.js +0 -1
- package/assets/esri/core/workers/chunks/f47c7065da3b5001245f.js +0 -1
- /package/assets/esri/core/workers/chunks/{1b946714ca4a1a7359d4.js.LICENSE.txt → 34cbaf844730ac2d92c2.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{96c50a0dda0f1503ef92.js.LICENSE.txt → 3c301a689c7853c9fa67.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{8dc1c3042267618fd710.js.LICENSE.txt → 76ab353d80d786777161.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{2a1ec30f9ad305763f81.js.LICENSE.txt → b49df4ebd4be1181b0f9.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{68d8ae42ab71d01a70a5.js.LICENSE.txt → b557824bc1fa163d72a3.js.LICENSE.txt} +0 -0
- /package/views/3d/analysis/LineOfSight/{lineOfSightPlacementUtils.js → placementUtils.js} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4805],{69540(e,t,r){var s=r(32198),i=r(69622),n=(r(44208),r(4718)),a=(r(53966),r(97768)),o=r(88620),l=r(64108);const h=Symbol("ClonableMixin"),u=e=>{var t;let r=e,i=class extends r{constructor(){super(...arguments),this[t]=!0}static{t=h}clone(e){let t=(0,o.oY)(this);(0,a.Lw)(t,"unable to clone instance of non-accessor class");let r=t.metadata,s=t.store,i={},l=new Map;for(let t in r){let a=r[t],o=s?.originOf(t),h=a.clonable;if(a.readOnly||!1===h||7!==o&&0!==o&&5!==o&&4!==o)continue;let u=this[t],d=null;if("function"==typeof h)d=h(u,e);else if("reference"===h)d=u;else if(d=(0,n.TU)(u,e),null!=u&&null==d)continue;0===o?l.set(t,d):i[t]=d}let h=new(0,Object.getPrototypeOf(this).constructor)(i);if(l.size){let e=(0,o.oY)(h)?.store;if(e)for(let[t,r]of l)e.set(t,r,0)}return h}};return i=(0,s.Cg)([(0,l.$)("esri.core.Clonable")],i),i},d=u(i.A);r.d(t,["OU",0,u,"Pw",0,d])},7762(e,t,r){var s,i=r(32198),n=r(98291),a=r(4576),o=r(65529),l=r(36563),h=r(4718),u=r(53966),d=r(93687),c=r(76030),f=r(78888),p=r(62788),m=r(10107),g=r(7695),_=r(64108),y=r(95488),v=r(12195);class x{constructor(){this.target=null,this.cancellable=!1,this.defaultPrevented=!1,this.item=void 0,this.type=void 0}preventDefault(){this.cancellable&&(this.defaultPrevented=!0)}reset(e){this.defaultPrevented=!1,this.item=e}}class b{constructor(e,t,r,s,i){this.target=e,this.added=t,this.removed=r,this.start=s,this.deleteCount=i}}const I=new d.A(()=>new x,void 0,e=>{e.item=null,e.target=null,e.defaultPrevented=!1,e.cancellable=!1});function M(e){e&&"object"==typeof e&&"destroy"in e&&"function"==typeof e.destroy&&e.destroy()}function C(e){return e?e instanceof P?e.toArray():e.length?Array.prototype.slice.apply(e):[]:[]}function S(e){if(e?.length)return e[0]}function w(e,t,r,s){let i=Math.min(e.length-r,t.length-s),n=0;for(;n<i&&e[r+n]===t[s+n];)n++;return n}function T(e,t,r,s){t&&t.forEach((t,i,n)=>{e.push(t),T(e,r.call(s,t,i,n),r,s)})}const A=new Set,F=new Set,O=new Set,E=new Map;let N=0,P=s=class extends o.nJ{static ofType(e){if(!e)return s;if(E.has(e))return E.get(e);let t=null;if("function"==typeof e)t=e.prototype.declaredClass;else if(e.base)t=e.base.prototype.declaredClass;else for(let r in e.typeMap){let s=e.typeMap[r].prototype.declaredClass;t?t+=` | ${s}`:t=s}let r=class extends s{};return(0,i.Cg)([(0,g.u)({Type:e,ensureType:"function"==typeof e?(0,f.dp)(e):(0,f.aq)(e)})],r.prototype,"itemType",void 0),r=(0,i.Cg)([(0,_.$)(`esri.core.Collection<${t}>`)],r),E.set(e,r),r}static isCollection(e){return null!=e&&e instanceof s}constructor(e){super(e),this._chgListeners=[],this._notifications=null,this._updating=!1,this._timer=null,this._observable=new y.I,this._length=0,this._items=[],Object.defineProperty(this,"uid",{value:N++})}normalizeCtorArgs(e){return e?(0,a.yc)(e)||e instanceof s?{items:e}:e:{}}destroy(){this._removeAllRaw(),this._timer&&this._timer.remove(),super.destroy(),this._notifications=null}*[Symbol.iterator](){yield*this.items}get length(){return this._length}set length(e){e>this._length?u.A.getLogger(this).error("#length=","Cannot increase the length of the collection by assigning to the length property."):this.splice(e,Math.max(0,this._length-e))}get items(){return(0,p.gc)(this._observable),this._items}set items(e){this._emitBeforeChanges(1)||(this._splice(0,this.length,C(e)),this._emitAfterChanges(1))}hasEventListener(e){return!this.destroyed&&("change"===e?this._chgListeners.length>0:super.hasEventListener(e))}on(e,t){if(this.destroyed)return(0,l.hA)();if("change"===e){let e=this._chgListeners,r={removed:!1,callback:t};return e.push(r),this._notifications&&this._notifications.push({listeners:e.slice(),items:this._items.slice(),changes:[]}),(0,l.hA)(()=>{r.removed=!0,e.splice(e.indexOf(r),1)})}return super.on(e,t)}once(e,t){let r="deref"in t?()=>t.deref():()=>t,s=this.on(e,e=>{r()?.call(null,e),s.remove()});return s}add(e,t){if((0,p.gc)(this._observable),this._emitBeforeChanges(1))return this;let r=this.getNextIndex(t??null);return this._splice(r,0,[e]),this._emitAfterChanges(1),this}addMany(e,t=this._items.length){if((0,p.gc)(this._observable),!e?.length||this._emitBeforeChanges(1))return this;let r=this.getNextIndex(t);return this._splice(r,0,C(e)),this._emitAfterChanges(1),this}at(e){if((0,p.gc)(this._observable),(e=Math.trunc(e)||0)<0&&(e+=this.length),!(e<0||e>=this.length))return this._items[e]}removeAll(){if((0,p.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return[];let e=this._removeAllRaw();return this._emitAfterChanges(2),e}_removeAllRaw(){return 0===this.length?[]:this._splice(0,this.length)||[]}clone(){return(0,p.gc)(this._observable),this._createNewInstance({items:this._items.map(h.o8)})}concat(...e){(0,p.gc)(this._observable);let t=e.map(C);return this._createNewInstance({items:this._items.concat(...t)})}drain(e,t){if((0,p.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return;let r=this._splice(0,this.length),s=r.length;for(let i=0;i<s;i++)e.call(t,r[i],i,r);this._emitAfterChanges(2)}destroyAll(){this.drain(M)}destroyMany(e){let t=this.removeMany(e);return t.forEach(M),t}every(e,t){return(0,p.gc)(this._observable),this._items.every(e,t)}filter(e,t){(0,p.gc)(this._observable);let r=2===arguments.length?this._items.filter(e,t):this._items.filter(e);return this._createNewInstance({items:r})}find(e,t){return(0,p.gc)(this._observable),this._items.find(e,t)}findIndex(e,t){return(0,p.gc)(this._observable),this._items.findIndex(e,t)}findLast(e,t){return(0,p.gc)(this._observable),this._items.findLast(e,t)}findLastIndex(e,t){return(0,p.gc)(this._observable),this._items.findLastIndex(e,t)}flatten(e,t){(0,p.gc)(this._observable);let r=[];return T(r,this,e,t),new s(r)}forEach(e,t){return(0,p.gc)(this._observable),this._items.forEach(e,t)}getItemAt(e){return(0,p.gc)(this._observable),this._items[e]}getNextIndex(e){(0,p.gc)(this._observable);let t=this.length;return e??=t,e<0?e=0:e>t&&(e=t),e}includes(e,t=0){return(0,p.gc)(this._observable),this._items.includes(e,t)}indexOf(e,t=0){return(0,p.gc)(this._observable),this._items.indexOf(e,t)}join(e=","){return(0,p.gc)(this._observable),this._items.join(e)}lastIndexOf(e,t=this.length-1){return(0,p.gc)(this._observable),this._items.lastIndexOf(e,t)}map(e,t){(0,p.gc)(this._observable);let r=this._items.map(e,t);return new s({items:r})}reorder(e,t=this.length-1){(0,p.gc)(this._observable);let r=this.indexOf(e);if(-1!==r){if(t<0?t=0:t>=this.length&&(t=this.length-1),r!==t){if(this._emitBeforeChanges(4))return e;this._splice(r,1),this._splice(t,0,[e]),this._emitAfterChanges(4)}return e}}pop(){if((0,p.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return;let e=S(this._splice(this.length-1,1));return this._emitAfterChanges(2),e}push(...e){return(0,p.gc)(this._observable),this._emitBeforeChanges(1)||(this._splice(this.length,0,e),this._emitAfterChanges(1)),this.length}reduce(e,t){(0,p.gc)(this._observable);let r=this._items;return 2===arguments.length?r.reduce(e,t):r.reduce(e)}reduceRight(e,t){(0,p.gc)(this._observable);let r=this._items;return 2===arguments.length?r.reduceRight(e,t):r.reduceRight(e)}remove(e){return(0,p.gc)(this._observable),this.removeAt(this.indexOf(e))}removeAt(e){if((0,p.gc)(this._observable),e<0||e>=this.length||this._emitBeforeChanges(2))return;let t=S(this._splice(e,1));return this._emitAfterChanges(2),t}removeMany(e){if((0,p.gc)(this._observable),!e?.length||this._emitBeforeChanges(2))return[];let t=e instanceof s?e.toArray():e,r=this._items,i=[],n=t.length;for(let e=0;e<n;e++){let s=t[e],n=r.indexOf(s);if(n>-1){let s=1+w(t,r,e+1,n+1),a=this._splice(n,s);a&&a.length>0&&i.push.apply(i,a),e+=s-1}}return this._emitAfterChanges(2),i}reverse(){if((0,p.gc)(this._observable),this._emitBeforeChanges(4))return this;let e=this._splice(0,this.length);return e&&(e.reverse(),this._splice(0,0,e)),this._emitAfterChanges(4),this}shift(){if((0,p.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return;let e=S(this._splice(0,1));return this._emitAfterChanges(2),e}slice(e=0,t=this.length){return(0,p.gc)(this._observable),this._createNewInstance({items:this._items.slice(e,t)})}some(e,t){return(0,p.gc)(this._observable),this._items.some(e,t)}sort(e){if((0,p.gc)(this._observable),!this.length||this._emitBeforeChanges(4)||!this._requiresSort(e))return this;let t=this._splice(0,this.length);return arguments.length?t.sort(e):t.sort(),this._splice(0,0,t),this._emitAfterChanges(4),this}_requiresSort(e=(e,t)=>e===t?0:e<t?-1:1){let t=this.length-1;for(let r=0;r<t;r++)if(e(this.items[r],this.items[r+1])>0)return!0;return!1}splice(e,t,...r){(0,p.gc)(this._observable),1===arguments.length&&(t=this.length),t??=0;let s=(t?2:0)|!!r.length;if(this._emitBeforeChanges(s))return[];let i=this._splice(e,t,r)||[];return this._emitAfterChanges(s),i}toArray(){return(0,p.gc)(this._observable),this._items.slice()}toJSON(e){return(0,p.gc)(this._observable),this.toArray().map(t=>(0,v.W)(t)?t.toJSON(e):t)}toLocaleString(){return(0,p.gc)(this._observable),this._items.toLocaleString()}toString(){return(0,p.gc)(this._observable),this._items.toString()}unshift(...e){return(0,p.gc)(this._observable),!e.length||this._emitBeforeChanges(1)||(this._splice(0,0,e),this._emitAfterChanges(1)),this.length}_createNewInstance(e){return new this.constructor(e)}_splice(e,t,r){let s,i,n=this._items,a=this.itemType;if(!this._notifications&&this.hasEventListener("change")&&(this._notifications=[{listeners:this._chgListeners.slice(),items:this._items.slice(),changes:[]}],this._timer&&this._timer.remove(),this._updating=!0,this._timer=(0,c._)(()=>this._dispatchChange())),e<0&&(e+=this.length),t){if(i=n.splice(e,t),this.hasEventListener("before-remove")){let t=I.acquire();t.target=this,t.cancellable=!0;for(let r=0,a=i.length;r<a;r++)s=i[r],t.reset(s),this.emit("before-remove",t),t.defaultPrevented&&(i.splice(r,1),n.splice(e,0,s),e+=1,--r,--a);I.release(t)}if(this._length=this._items.length,this.hasEventListener("after-remove")){let e=I.acquire();e.target=this,e.cancellable=!1;let t=i.length;for(let r=0;r<t;r++)e.reset(i[r]),this.emit("after-remove",e);I.release(e)}}if(r?.length){if(a){let e=[];for(let t of r){let r=a.ensureType(t);(null!=r||null==t)&&e.push(r)}r=e}let t=this.hasEventListener("before-add"),s=this.hasEventListener("after-add"),i=e===this.length;if(t||s){let a=I.acquire();a.target=this,a.cancellable=!0;let o=I.acquire();o.target=this,o.cancellable=!1;for(let l of r)t?(a.reset(l),this.emit("before-add",a),a.defaultPrevented||(i?n.push(l):n.splice(e++,0,l),this._length=n.length,s&&(o.reset(l),this.emit("after-add",o)))):(i?n.push(l):n.splice(e++,0,l),this._length=n.length,o.reset(l),this.emit("after-add",o));I.release(o),I.release(a)}else{if(i)for(let e of r)n.push(e);else n.splice(e,0,...r);this._length=n.length}}if((r?.length||i?.length)&&this._notifyChangeEvent(r,i),this.hasEventListener("after-splice")){let s=new b(this,r,i,e,t);this.emit("after-splice",s)}return i}_emitBeforeChanges(e){let t=!1;if(this.hasEventListener("before-changes")){let r=I.acquire();r.target=this,r.cancellable=!0,r.type=e,this.emit("before-changes",r),t=r.defaultPrevented,I.release(r)}return t}_emitAfterChanges(e){if(this.hasEventListener("after-changes")){let t=I.acquire();t.target=this,t.cancellable=!1,t.type=e,this.emit("after-changes",t),I.release(t)}this._observable.notify()}_notifyChangeEvent(e,t){this.hasEventListener("change")&&this._notifications&&this._notifications[this._notifications.length-1].changes.push({added:e,removed:t})}get updating(){return this._updating}_dispatchChange(){if(this._timer&&=(this._timer.remove(),null),this._updating=!1,!this._notifications)return;let e=this._notifications;this._notifications=null;for(let t of e){let e=t.changes;A.clear(),F.clear(),O.clear();for(let{added:t,removed:r}of e){if(t)if(0===O.size&&0===F.size)for(let e of t)A.add(e);else for(let e of t)F.has(e)?(O.add(e),F.delete(e)):O.has(e)||A.add(e);if(r)if(0===O.size&&0===A.size)for(let e of r)F.add(e);else for(let e of r)A.has(e)?A.delete(e):(O.delete(e),F.add(e))}let r=n.A.acquire();A.forEach(e=>{r.push(e)});let s=n.A.acquire();F.forEach(e=>{s.push(e)});let i=this._items,a=t.items,o=n.A.acquire();if(O.forEach(e=>{a.indexOf(e)!==i.indexOf(e)&&o.push(e)}),t.listeners&&(r.length||s.length||o.length)){let e={target:this,added:r,removed:s,moved:o},i=t.listeners.length;for(let r=0;r<i;r++){let s=t.listeners[r];s.removed||s.callback.call(this,e)}}n.A.release(r),n.A.release(s),n.A.release(o)}A.clear(),F.clear(),O.clear()}};(0,i.Cg)([(0,m.MZ)()],P.prototype,"_updating",void 0),(0,i.Cg)([(0,m.MZ)()],P.prototype,"_length",void 0),(0,i.Cg)([(0,m.MZ)()],P.prototype,"length",null),(0,i.Cg)([(0,m.MZ)()],P.prototype,"items",null),(0,i.Cg)([(0,m.MZ)({readOnly:!0})],P.prototype,"updating",null),P=s=(0,i.Cg)([(0,_.$)("esri.core.Collection")],P);const R=P;r.d(t,["A",0,R])},9775(e,t,r){r.d(t,{A:()=>n});var s=r(62788),i=r(95488);class n{constructor(e=e=>e.values().next().value){this._peeker=e,this._observable=new i.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;let e=this.peek();return this._items.delete(e),this._observable.notify(),e}popLast(){if(0===this.length)return;let 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){let 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}}},563(e,t,r){r.d(t,{QueueProcessor:()=>h,SharedConcurrency:()=>d});var s=r(97768),i=r(17676),n=r(9775),a=r(32587),o=r(76030),l=r(44794);class h{constructor(e){this._schedule=null,this._deferreds=new a.A,this._controllers=new a.A,this._processingItems=new a.A,this._pausedSignal=(0,l.v)(!1),this.process=e.process,this.concurrency=e.concurrency,this.sharedConcurrency=e.sharedConcurrency??c,this._queue=new n.A(e.peeker)}destroy(){this.clear(),this._schedule=(0,s.xt)(this._schedule)}get updating(){return this.running}get length(){return this._processingItems.size+this._queue.length}get running(){return!this._pausedSignal.value&&this._queue.length>0&&!this.full}get full(){return this._processingItems.size>=this.concurrency||this.sharedConcurrency.full}abort(e){this._controllers.get(e)?.abort()}clear(){this._queue.clear();let e=Array.from(this._controllers.values());this._controllers.clear(),e.forEach(e=>e.abort()),this.sharedConcurrency.current.value-=this._processingItems.size,this._processingItems.clear(),this._cancelNext()}forEach(e){this._deferreds.forEach((t,r)=>e(r))}_get(e){return this._deferreds.get(e)?.promise}pause(){this._pausedSignal.value||(this._pausedSignal.value=!0,this._cancelNext())}push(e,t){let r=this._get(e);if(r)return r;let s=new AbortController,n=Promise.withResolvers(),a=t?(0,i.u7)(t,()=>s.abort()):null,o=(0,i.NY)(s.signal,()=>{let t=this._processingItems.get(e);t&&t.controller.abort(),l(),n.reject((0,i.NK)())}),l=()=>{o.remove(),a?.remove(),this._removeItem(e),this._queue.remove(e),this._scheduleNext()};return this._deferreds.set(e,n),this._controllers.set(e,s),n.promise.then(l,l),this._queue.push(e),this._scheduleNext(),n.promise}last(){return this._queue.last()}reset(){let e=Array.from(this._processingItems.values());this.sharedConcurrency.current.value-=this._processingItems.size,this._processingItems.clear();for(let t of e)this._queue.push(t.item),t.controller.abort();this._scheduleNext()}resume(){this._pausedSignal.value&&(this._pausedSignal.value=!1,this._scheduleNext())}takeAll(){let e=[];for(;this._queue.length;)e.push(this._queue.pop());return this.clear(),e}_removeItem(e){this._deferreds.delete(e),this._controllers.delete(e),this._processingItems.has(e)&&(this._processingItems.delete(e),--this.sharedConcurrency.current.value)}_scheduleNext(){this._pausedSignal.value||this._schedule||(this._schedule=(0,o._)(()=>{this._schedule=null,this._next()}))}_next(){for(;this._queue.length>0&&this._processingItems.size<this.concurrency&&!this.sharedConcurrency.full;)this._process(this._queue.pop())}_cancelNext(){this._schedule&&=(this._schedule.remove(),null)}_processResult(e,t){this._canProcessFulfillment(e)&&(this._scheduleNext(),this._deferreds.get(e.item).resolve(t))}_processError(e,t){this._canProcessFulfillment(e)&&(this._scheduleNext(),this._deferreds.get(e.item).reject(t))}_canProcessFulfillment(e){return!(!this._deferreds.get(e.item)||this._processingItems.get(e.item)!==e)}_process(e){if(null==e)return;let t,r=new AbortController,s=new u(e,r);this._processingItems.set(e,s),this.sharedConcurrency.current.value+=1;try{t=this.process(e,r.signal)}catch(e){this._processError(s,e)}(0,i.$X)(t)?(s.promise=t,t.then(e=>this._processResult(s,e),e=>this._processError(s,e))):this._processResult(s,t)}}class u{constructor(e,t){this.item=e,this.controller=t,this.promise=null}}class d{constructor(e){this.limit=e,this.current=(0,l.v)(0)}get full(){return this.current.value>=this.limit}}const c=new d(1/0)},32587(e,t,r){r.d(t,{A:()=>n});var s=r(62788),i=r(95488);class n{constructor(e){this._observable=new i.I,this._notifyPending=!1,this._batchDepth=0,this._map=new Map(e)}get size(){return(0,s.gc)(this._observable),this._map.size}batch(e){try{this._batchDepth++,e()}finally{this._batchDepth--,this._notifyPending&&0===this._batchDepth&&(this._notifyPending=!1,this._notify())}}clear(){this._map.size>0&&(this._map.clear(),this._notify())}delete(e){let t=this._map.delete(e);return t&&this._notify(),t}entries(){return(0,s.gc)(this._observable),this._map.entries()}forEach(e,t){(0,s.gc)(this._observable),this._map.forEach((r,s)=>e.call(t,r,s,this),t)}get(e){return(0,s.gc)(this._observable),this._map.get(e)}has(e){return(0,s.gc)(this._observable),this._map.has(e)}keys(){return(0,s.gc)(this._observable),this._map.keys()}set(e,t){return this._map.set(e,t),this._notify(),this}transformValues(e,t=this._map.keys()){this.batch(()=>{for(let r of t){if(!this._map.has(r))continue;let t=this._map.get(r),s=e(t,r);s!==t&&this.set(r,s)}})}values(){return(0,s.gc)(this._observable),this._map.values()}[Symbol.iterator](){return(0,s.gc)(this._observable),this._map[Symbol.iterator]()}[Symbol.dispose](){this._observable.destroy()}get[Symbol.toStringTag](){return this._map[Symbol.toStringTag]}_notify(){this._batchDepth>0?this._notifyPending=!0:this._observable.notify()}}},7695(e,t,r){function s(e){return(t,r)=>{t[r]=e}}r.d(t,{u:()=>s})},48163(e,t,r){function s(){return[0,0]}function i(e){return[e[0],e[1]]}function n(e,t){return[e,t]}function a(){return n(1,1)}function o(){return n(-1,-1)}function l(){return n(1,0)}function h(){return n(0,1)}r.d(t,{fA:()=>n,o8:()=>i,vt:()=>s});const u=a(),d=o(),c=l(),f=h();Object.freeze(Object.defineProperty({__proto__:null,NEGATIVE_ONES:d,ONES:u,UNIT_X:c,UNIT_Y:f,ZEROS:[0,0],clone:i,create:s,freeze:function(e,t){return[e,t]},fromArray:function(e,t=[0,0]){let r=Math.min(2,e.length);for(let s=0;s<r;++s)t[s]=e[s];return t},fromValues:n,negativeOnes:o,ones:a,unitX:l,unitY:h,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"})),r.d(t,["IA",0,d,"Un",0,u])},36708(e,t,r){r.d(t,{C_:()=>c,on:()=>d,wB:()=>l,z7:()=>h});var s=r(37955),i=r(36563),n=r(97768),a=r(17676),o=r(14012);function l(e,t,r={}){return u(e,t,r,f)}function h(e,t,r={}){return u(e,t,r,p)}function u(e,t,r={},s){let i=null,a=r.once?(e,r)=>{s(e)&&((0,n.xt)(i),t(e,r))}:(e,r)=>{s(e)&&t(e,r)};if(i=(0,o.Cn)(e,a,r.sync,r.equals),r.initial){let t=e();a(t,t)}return i}function d(e,t,r,a={}){let o=null,h=null,u=null;function d(){o&&h&&(h.remove(),a.onListenerRemove?.(o),o=null,h=null)}function c(e){a.once&&a.once&&(0,n.xt)(u),r(e)}let f=l(e,(e,r)=>{d(),(0,s.wb)(e)&&(o=e,h=(0,s.on)(e,t,c),a.onListenerAdd?.(e))},{sync:a.sync,initial:!0});return u=(0,i.hA)(()=>{f.remove(),d()}),u}function c(e,t){return function(e,t,r){if((0,a.G4)(r))return Promise.reject((0,a.NK)());let s=e();if(t?.(s))return Promise.resolve(s);let o=null;function l(){o=(0,n.xt)(o)}return new Promise((s,n)=>{o=(0,i.vE)([(0,a.u7)(r,()=>{l(),n((0,a.NK)())}),u(e,e=>{l(),s(e)},{sync:!1,once:!0},t??f)])})}(e,p,t)}function f(e){return!0}function p(e){return!!e}r(80559),r.d(t,["OH",0,{sync:!0},"Vh",0,{initial:!0},"pc",0,{sync:!0,initial:!0}])},44794(e,t,r){r.d(t,{v:()=>o});var s=r(4718),i=r(62788),n=r(95488);class a{constructor(e,t){this._observable=new n.I,this._value=e,this._equalityFunction=t}get value(){return(0,i.gc)(this._observable),this._value}set value(e){this._equalityFunction(e,this._value)||(this._value=e,this._observable.notify())}mutate(e){e(this._value),this._observable.notify()}}function o(e,t=s.gh){return new a(e,t)}},88930(e,t,r){r.d(t,{S1:()=>o,VW:()=>l,lL:()=>h,rb:()=>u,t:()=>d});var s=r(97770),i=(r(98623),r(34747));const n=/^(?<hh>([01][0-9])|(2[0-3])):(?<mm>[0-5][0-9])(:(?<ss>[0-5][0-9]))?(\.(?<ms>\d+))?$/,a={milliseconds:1,seconds:1e3,minutes:6e4,hours:36e5,days:864e5,weeks:6048e5,months:26784e5,years:31536e6,decades:31536e7,centuries:31536e8,unknown:NaN};function o(e,t,r,n="system"){if("unknown"===r)return e;let a=new i.oh((0,s.wj)(n)),o=i.c9.fromJSDate(e,{zone:a}),l="decades"===r||"centuries"===r?"year":function(e){switch(e){case"milliseconds":return"millisecond";case"seconds":return"second";case"minutes":return"minute";case"hours":return"hour";case"days":return"day";case"weeks":return"week";case"months":return"month";case"years":return"year"}}(r);return"decades"===r&&(t*=10),"centuries"===r&&(t*=100),o.plus({[l]:t}).toJSDate()}function l(e,t,r="milliseconds"){let s=e.getTime(),i=d(t,r,"milliseconds");return new Date(s+i)}function h(e,t,r="system"){let{unit:n}=t,a=Math.max(1,Math.trunc(t.value)),o=new i.oh((0,s.wj)(r)),l=i.c9.fromJSDate(e,{zone:o}),h=e=>e-e%a;switch(n){case"milliseconds":return l.startOf("second").plus({millisecond:h(l.millisecond)}).toJSDate();case"seconds":return l.startOf("minute").plus({second:h(l.second)}).toJSDate();case"minutes":return l.startOf("hour").plus({minute:h(l.minute)}).toJSDate();case"hours":return l.startOf("day").plus({hour:h(l.hour)}).toJSDate();case"days":return l.startOf("month").plus({day:h(l.day-1)}).toJSDate();case"weeks":{let e=l.startOf("year").startOf("week"),t=Math.floor(l.diff(e,"weeks").weeks);return e.plus({week:h(t)}).toJSDate()}case"months":return l.startOf("year").plus({month:h(l.month-1)}).toJSDate();case"years":case"decades":case"centuries":{let e=l.startOf("year"),t=("decades"===n?10:"centuries"===n?100:1)*a,r=e.year-e.year%t;return e.set({year:r}).toJSDate()}case"unknown":return e}}function u(e){let t=n.exec(e);if(!t)return null;let{hh:r,mm:s,ss:i,ms:o}=t.groups;return Number(r)*a.hours+Number(s)*a.minutes+Number(i||0)*a.seconds+Number(o||0)}function d(e,t,r){return 0===e?0:e*a[t]/a[r]}},87992(e,t,r){r.d(t,{JR:()=>C,ME:()=>b,MY:()=>w,NO:()=>x,Nh:()=>M,V2:()=>E,_s:()=>N,e6:()=>R,gh:()=>I,jm:()=>S,tr:()=>k,uX:()=>m});var s=r(32198),i=r(16930),n=r(19419),a=r(60408),o=r(21325),l=r(513),h=r(50954),u=r(79567),d=r(52006),c=r(49663),f=r(46068),p=r(92722);class m{constructor({type:e,spatialReference:t,vertexCount:r,vertexXY:s,vertexZ:i,vertexM:n,partCount:a,partOffsets:o,partFlags:l,segmentFlags:h,segmentIndices:u,segmentParams:d,segmentCountArc:c,segmentCountBezier:f}){this.segmentCountArc=0,this.segmentCountBezier=0,this.type=e,this.spatialReference=t,this.vertexCount=r,this.vertexXY=s,this.vertexZ=i,this.vertexM=n,this.partCount=a,this.partOffsets=o,this.partFlags=l,this.segmentFlags=h,this.segmentIndices=u,this.segmentParams=d,this.segmentCountArc=c,this.segmentCountBezier=f}get segmentParamCount(){return 10*this.segmentCountArc+4*this.segmentCountBezier}get segmentCountLine(){let{segmentCount:e,segmentCountArc:t,segmentCountBezier:r}=this;return e&&e-t-r}get segmentCount(){return"polyline"===this.type?this.vertexCount-this.partCount:"polygon"===this.type?this.vertexCount:0}get hasZ(){return null!=this.vertexZ}get hasM(){return null!=this.vertexM}hasCurves(){return this.segmentCountArc+this.segmentCountBezier>0}isMultipart(){return"polyline"===this.type||"polygon"===this.type}get usedMemory(){function e(e){return e?64+e.byteLength:0}return e(this.vertexXY)+e(this.vertexZ)+e(this.vertexM)+e(this.partOffsets)+e(this.partFlags)+e(this.segmentFlags)+e(this.segmentIndices)+e(this.segmentParams)}clone(){let{type:e,vertexCount:t,partCount:r,hasZ:s,hasM:i,segmentCountArc:n,segmentCountBezier:a}=this,o=E(e,t,r,s,i,this.hasCurves(),n,a);o.spatialReference=this.spatialReference;let{vertexXY:l,vertexZ:h,vertexM:u}=this;if(o.vertexXY.set(l.subarray(0,2*t),0),o.vertexZ?.set(h.subarray(0,t),0),o.vertexM?.set(u.subarray(0,t),0),this.isMultipart()){let{partOffsets:e,partFlags:t}=this;o.partFlags.set(t.subarray(0,r+1)),o.partOffsets.set(e.subarray(0,r+1))}if(this.hasCurves()){let{segmentFlags:e,segmentIndices:r,segmentParams:s,segmentParamCount:i}=this;o.segmentFlags.set(e.subarray(0,t),0),o.segmentIndices.set(r.subarray(0,t),0),o.segmentParams.set(s.subarray(0,i),0)}return o}equals(e){return this.equalsWithinTolerance(e,0)}equalsWithinTolerance(e,t){if(null==e)return!1;if(this===e)return!0;if(!(0,o.aI)(this.spatialReference,e.spatialReference)||this.vertexCount!==e.vertexCount||this.partCount!==e.partCount||this.hasZ!==e.hasZ||this.hasM!==e.hasM||this.hasCurves()!==e.hasCurves()||this.segmentCountArc!==e.segmentCountArc||this.segmentCountBezier!==e.segmentCountBezier)return!1;let r=0===t?(e,t)=>e!==t||isNaN(e)!==isNaN(t):(e,r)=>Math.abs(e-r)>t||isNaN(e)!==isNaN(r);for(let t=0;t<this.vertexCount;++t)if(r(this.vertexXY[2*t],e.vertexXY[2*t])||r(this.vertexXY[2*t+1],e.vertexXY[2*t+1]))return!1;if(this.hasZ)for(let t=0;t<this.vertexCount;++t)if(r(this.vertexZ[t],e.vertexZ[t]))return!1;if(this.hasM)for(let t=0;t<this.vertexCount;++t)if(r(this.vertexM[t],e.vertexM[t]))return!1;for(let t=0;t<this.partCount;++t)if(this.partFlags[t]!==e.partFlags[t]||this.partOffsets[t]!==e.partOffsets[t])return!1;if(this.hasCurves()){for(let t=0;t<this.vertexCount;++t)if(this.segmentFlags[t]!==e.segmentFlags[t]||this.segmentIndices[t]!==e.segmentIndices[t])return!1;for(let t=0;t<this.segmentParamCount;++t)if(r(this.segmentParams[t],e.segmentParams[t]))return!1}return!0}get parts(){return this.isMultipart()?new g(this):[][Symbol.iterator]()}}class g{constructor(e){this.geometry=e,this.value=new _(e)}get done(){return this.value.index>=this.geometry.partCount}next(){return++this.value.index,this}[Symbol.iterator](){return this}}class _{constructor(e){this.geometry=e,this.index=-1,this._readVertex=F(e),this._segments=new y(this)}get segments(){return this._segments.reset(),this._segments}get startVertex(){return this._readVertex(this.geometry.partOffsets[this.index])}get vertexCount(){let e=this.geometry.partOffsets;return e[this.index+1]-e[this.index]}}class y{constructor(e){this._part=e,this._partStart=0,this._partEnd=0,this.value=new v(e.geometry)}get _partIsClosed(){return!!(1&this._part.geometry.partFlags?.[this._part.index])}get done(){return this.value.indexOfStartVertex>this._partEnd}next(){++this.value.indexOfStartVertex;let e=this.value.indexOfStartVertex>=this._partEnd;return this.value.indexOfEndVertex=e&&this._partIsClosed?this._partStart:this.value.indexOfStartVertex+1,this}[Symbol.iterator](){return this}reset(){let{index:e}=this._part,t=this._part.geometry.partOffsets;this._partStart=t[e],this._partEnd=t[e+1]-(this._partIsClosed?1:2),this.value.indexOfStartVertex=this._partStart-1}}class v{constructor(e){this.geometry=e,this.indexOfStartVertex=-1,this.indexOfEndVertex=-1,this._readVertex=F(e)}get xStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex]}get yStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex+1]}get zStart(){return this.geometry.vertexZ[this.indexOfStartVertex]}get mStart(){return this.geometry.vertexM[this.indexOfStartVertex]}get xEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex]}get yEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex+1]}get zEnd(){return this.geometry.vertexZ[this.indexOfEndVertex]}get mEnd(){return this.geometry.vertexM[this.indexOfEndVertex]}get start(){return this._readVertex(this.indexOfStartVertex)}get end(){return this._readVertex(this.indexOfEndVertex)}get curve(){let e=this.geometry.segmentFlags?.[this.indexOfStartVertex]??1;if(1===e)return this.end;let t=this.geometry.segmentParams,r=this.geometry.segmentIndices[this.indexOfStartVertex];if(2===e){let e=t[r++],s=t[r++],i=t[r++],n=t[r++];return{b:[this.end,[e,s],[i,n]]}}let s=t[r++],i=t[r++],n=t[r++],a=t[r++],o=t[r++],l=t[r++];r++,r++;let h=t[r++],u=t[r++];if(!(4&s)&&1===n)return{c:[this.end,[h,u]]};let d=2&s?0:1,c=1&s?0:1;return{a:[this.end,[o,l],d,c,a,i,n]}}}function x(e,t){let r={stack:[],error:void 0,hasError:!1};try{return t??=(0,n.Ie)(),(0,s.mS)(r,new T(e,["vertexZ","vertexM","spatialReference"]),!1),(0,n.bx)(t,function(e){let t,{vertexCount:r,vertexXY:i,vertexZ:a,vertexM:o}=e,l=A(e);if(e.hasCurves()){let r={stack:[],error:void 0,hasError:!1};try{(0,s.mS)(r,new T(e,["vertexZ","vertexM"]),!1);let i=(0,n.Ie)();for(let t of e.parts){let e=t.startVertex;for(let{curve:r}of t.segments)(0,u.e)(i,e,r),e=(0,d.yP)(r)}let[a,o,h,c]=i;t={xmin:a,ymin:o,xmax:h,ymax:c,spatialReference:l}}catch(e){r.error=e,r.hasError=!0}finally{(0,s.hk)(r)}}else{let e,s,n,a;e=s=1/0,n=a=-1/0;for(let t=0;t<r;++t){let r=i[2*t],o=i[2*t+1];e=Math.min(e,r),n=Math.max(n,r),s=Math.min(s,o),a=Math.max(a,o)}t={xmin:e,ymin:s,xmax:n,ymax:a,spatialReference:l}}if(a){let e=1/0,r=-1/0;for(let t of a)e=Math.min(e,t),r=Math.max(r,t);t.zmin=e,t.zmax=r}if(o){let e=1/0,r=-1/0;for(let t of o)e=Math.min(e,t),r=Math.max(r,t);t.mmin=e,t.mmax=r}return t}(e)),t}catch(e){r.error=e,r.hasError=!0}finally{(0,s.hk)(r)}}function b(e){let t,r,s;if((0,a.fT)(e)){s="point";let{x:i,y:n,z:a,m:o}=e,l=[i,n];null!=a&&l.push(a),null!=o&&l.push(o),r=[[l]],t=1}else(0,a.U9)(e)?(s="multipoint",r=[e.points],t=e.points.length):(0,a.Rg)(e)?(s="polyline",r=e.curvePaths??e.paths,t=r.reduce((e,t)=>e+t.length,0)):(s="polygon",r=e.curveRings??e.rings,t=r.reduce((e,t)=>(0===t.length||(e+=t.length,O(t[0],(0,d.yP)(t.at(-1)))&&--e),e),0));let i=E(s,t,s.includes("point")?0:r.length,(0,a.Pv)(e),(0,a.W0)(e),(0,d.Ed)(e)),{hasZ:n,hasM:o,vertexXY:l,vertexZ:h,vertexM:u}=i;function c(e){l[2*p]=e[0],l[2*p+1]=e[1],n&&(h[p]=e[2]),o&&(u[p]=e[f]),++p}i.spatialReference=e.spatialReference??void 0;let f=i.hasZ?3:2,p=0;if(!i.isMultipart()){if(!n&&!o){for(let[e,t]of r[0])l[2*p]=e,l[2*p+1]=t,++p;return i}for(let e of r[0])c(e);return i}let m="polygon"===s,{partOffsets:g}=i,_=0;if(!(0,d.Ed)(e)){for(let e of r){if(g[_++]=p,0===e.length)continue;let t=e.length;if(m&&O(e[0],e.at(-1))&&--t,n||o)for(let r=0;r<t;++r)c(e[r]);else for(let r=0;r<t;++r){let[t,s]=e[r];l[2*p]=t,l[2*p+1]=s,++p}}return g[_]=p,i}function y(e){let t=v+e;if(t<=(i.segmentParams?.length??0))return;let r=t*B;r=20*Math.ceil(r/20);let s=i.segmentParams;i.segmentParams=new Float64Array(r),null!=s&&i.segmentParams.set(s)}let v=0;for(let e of r){if(i.partOffsets[_++]=p,0===e.length)continue;let t=e[0],r=t;for(let t=1;t<e.length;++t){let s=e[t];c(r);let n=p-1;(0,d.wY)(s)?(y(10),++i.segmentCountArc,v=N(r,s,i,n,v),r=s.a[0]):(0,d.DA)(s)?(y(10),++i.segmentCountArc,v=P(r,s,i,n,v),r=s.a[0]):(0,d.aO)(s)?(y(10),++i.segmentCountArc,v=R(r,s,i,n,v),r=s.c[0]):(0,d.n1)(s)?(y(4),++i.segmentCountBezier,v=k(0,s,i,n,v),r=s.b[0]):r=s}m&&O(t,r)||c(r)}return i.partOffsets[_]=p,i}function I(e){let t=F(e),{vertexCount:r,partCount:s,hasZ:i,hasM:n}=e,a=A(e),o=0;if(!e.isMultipart()){if("point"===e.type){let[t,r]=e.vertexXY;return{x:t,y:r,z:e.vertexZ?.[0],m:e.vertexM?.[0],spatialReference:a}}let s=[];for(;o<r;)s.push(t(o++));return{points:s,spatialReference:a,hasZ:i,hasM:n}}if(!e.hasCurves()){let r=[];for(let i=0;i<s;++i){let s=!!(1&e.partFlags[i]),n=e.partOffsets[i+1],a=[];for(;o<n;)a.push(t(o++));s&&a.length>0&&a.push([...a[0]]),r.push(a)}return"polygon"===e.type?{rings:r,hasZ:i,hasM:n,spatialReference:a}:{paths:r,hasZ:i,hasM:n,spatialReference:a}}let l=[];for(let{segments:t,startVertex:r}of e.parts){let e=[r];for(let{curve:r}of t)e.push(r);l.push(e)}return"polygon"===e.type?{rings:[],curveRings:l,hasZ:i,hasM:n,spatialReference:a}:{paths:[],curvePaths:l,hasZ:i,hasM:n,spatialReference:a}}function M(e,{lengths:t,coords:r,hasZ:s,hasM:i},n){let a=e.includes("point")?0:t.length,o="polygon"===e,l="point"===e?1:t.reduce((e,t)=>e+t,0)-(o?a:0);s??=!1,i??=!1;let h=E(e,l,a,s,i,!1,0,0);if(h.spatialReference=n??void 0,!h.isMultipart()){for(let e=0,t=0;e<l;++e)h.vertexXY[2*e]=r[t++],h.vertexXY[2*e+1]=r[t++],s&&(h.vertexZ[e]=r[t++]),i&&(h.vertexM[e]=r[t++]);return h}let u=2+Number(s)+Number(i),d=0,c=0;h.partOffsets[0]=0;for(let e of t){let t=h.partOffsets[c],n=t+e-Number(o);h.partOffsets[++c]=n;for(let e=t;e<n;++e)h.vertexXY[2*e]=r[d++],h.vertexXY[2*e+1]=r[d++],s&&(h.vertexZ[e]=r[d++]),i&&(h.vertexM[e]=r[d++]);o&&(d+=u)}return h}function C({type:e,vertexCount:t,vertexXY:r,vertexZ:s,vertexM:i,partCount:n,partOffsets:a,partFlags:o,hasZ:l,hasM:h}){let u=new p.A([],[],l,h);n=Math.max(n,1);let d=0;for(let e=0;e<n;++e){let n=a?.[e+1]??t,c=u.coords.length;for(let e=d;e<n;++e)u.coords.push(r[2*e],r[2*e+1]),l&&u.coords.push(s[e]),h&&u.coords.push(i[e]);if(o&&1&o[e]){let e=d;u.coords.push(r[2*e],r[2*e+1]),l&&u.coords.push(s[e]),h&&u.coords.push(i[e])}u.lengths.push((u.coords.length-c)/u.stride),d=n}return"point"===e&&(u.lengths.length=0),u}function S(...e){let t=new Set;for(let r of e){if(!r)continue;let e=[r.vertexXY,r.vertexZ,r.vertexM,r.partOffsets,r.partFlags,r.segmentFlags,r.segmentIndices,r.segmentParams];for(let r of e){let e=r?.buffer;e&&t.add(e)}}return Array.from(t)}function w(e,t){return"getSpatialReference"in e&&(t=function(e){if(null==e)return;let t=e.getText()||void 0,r=e.isCustomWkid()?0:e.getOldID();if(r<=0)return{wkt:t};let s=e.getLatestID();(s<=0||s===r)&&(s=void 0);let i=e.getVCS();if(null==i)return{wkid:r,latestWkid:s,wkt:t};let n=i.isCustomWkid()?0:i.getOldID();if(n<=0)return{wkt:t};let a=e.getLatestVerticalID();return(a<=0||a===n)&&(a=void 0),{wkid:r,wkt:t,latestWkid:s,vcsWkid:n,latestVcsWkid:a}}(e.getSpatialReference()),e=e.getGeometry()),new m({...e.toFlatGeometry(),spatialReference:t})}class T{constructor(e,t){this.target=e,this.keys=t,this.oldValues=t.map(t=>e[t]);for(let r of t)e[r]=void 0}[Symbol.dispose](){this.keys.map((e,t)=>{this.target[e]=this.oldValues[t]})}}function A({spatialReference:e}){return e instanceof i.A?e.toJSON():e}function F({vertexXY:e,vertexZ:t,vertexM:r}){return t?r?s=>[e[2*s],e[2*s+1],t[s],r[s]]:r=>[e[2*r],e[2*r+1],t[r]]:r?t=>[e[2*t],e[2*t+1],r[t]]:t=>[e[2*t],e[2*t+1]]}function O(e,t){return e.every((e,r)=>e===t[r])}function E(e,t,r,s,i,n,a,o){a??=0,o??=0;let l=new m({type:e,vertexCount:t,vertexXY:null,vertexZ:void 0,vertexM:void 0,partCount:r,partOffsets:void 0,partFlags:void 0,segmentFlags:void 0,segmentIndices:void 0,segmentParams:void 0,segmentCountArc:a,segmentCountBezier:o}),h=2*Float64Array.BYTES_PER_ELEMENT*t;s&&(h+=Float64Array.BYTES_PER_ELEMENT*t),i&&(h+=Float64Array.BYTES_PER_ELEMENT*t),l.isMultipart()&&(h+=(r+1)*Int32Array.BYTES_PER_ELEMENT,h+=(r+1)*Int8Array.BYTES_PER_ELEMENT),n&&(h+=t*Int8Array.BYTES_PER_ELEMENT,h+=t*Int32Array.BYTES_PER_ELEMENT,h+=l.segmentParamCount*Float64Array.BYTES_PER_ELEMENT);let u=new ArrayBuffer(h),d=0;return l.vertexXY=new Float64Array(u,d,2*t),d+=l.vertexXY.byteLength,s&&(l.vertexZ=new Float64Array(u,d,t),d+=l.vertexZ.byteLength),i&&(l.vertexM=new Float64Array(u,d,t),d+=l.vertexM.byteLength),n&&(l.segmentParams=new Float64Array(u,d,l.segmentParamCount),d+=l.segmentParams.byteLength,l.segmentIndices=new Int32Array(u,d,t),l.segmentIndices.fill(Z),d+=l.segmentIndices.byteLength),l.isMultipart()&&(l.partOffsets=new Int32Array(u,d,r+1),d+=l.partOffsets.byteLength,l.partFlags=new Int8Array(u,d,r+1),d+=l.partFlags.byteLength,"polygon"===l.type&&l.partFlags.subarray(0,r).fill(1)),n&&(l.segmentFlags=new Int8Array(u,d,t),l.segmentFlags.fill(1),d+=l.segmentFlags.byteLength),l}function N(e,t,{segmentFlags:r,segmentIndices:s,segmentParams:i},n,a){r[n]=4,s[n]=a;let[o,[l,h],u,d,c,p,m]=t.a,g=4;d||(g|=1),u||(g|=2);let _=(0,f.SW)(e,t),[y,v]=(0,f.Uk)(_,.5);return i[a++]=g,i[a++]=p,i[a++]=m,i[a++]=c,i[a++]=l,i[a++]=h,i[a++]=_.u2-_.u1,i[a++]=_.u1,i[a++]=y,i[a++]=v,a}function P(e,t,{segmentFlags:r,segmentIndices:s,segmentParams:i},n,a){r[n]=4,s[n]=a;let o=(0,c.io)(e,t);return D(o,4,...(0,l.mq)(o,.5),i,a)}function R(e,t,{segmentFlags:r,segmentIndices:s,segmentParams:i},n,a){return r[n]=4,s[n]=a,D((0,h.pM)(e,t),0,...t.c[1],i,a)}function D(e,t,r,s,i,n){let{cx:a,cy:o,thetaStart:l,thetaEnd:h,radius:u}=e;return l>h||(t|=1),Math.abs(h-l)<=Math.PI||(t|=2),i[n++]=t,i[n++]=u,i[n++]=1,i[n++]=0,i[n++]=a,i[n++]=o,i[n++]=h-l,i[n++]=l,i[n++]=r,i[n++]=s,n}function k(e,{b:[t,[r,s],[i,n]]},{segmentFlags:a,segmentIndices:o,segmentParams:l},h,u){return a[h]=2,o[h]=u,l[u++]=r,l[u++]=s,l[u++]=i,l[u++]=n,u}const B=1.61803,Z=-1},48526(e,t,r){r.d(t,{A:()=>g});var s,i=r(32198),n=r(4576),a=r(4718),o=r(91429),l=r(5443),h=r(91075),u=r(86738),d=r(16930),c=r(90634),f=r(47610),p=r(56993),m=r(43937);let g=s=class extends h.A{constructor(e){super(function(e){if(!e)return;let{points:t,hasM:r,hasZ:s,spatialReference:i}=e;switch(t??=[],t?.at(0)?.length){case 4:s??=!0,r??=!0;break;case 3:s??=!0!==r,r??=!s;break;default:s??=!1,r??=!1}return i??=d.A.WGS84,{...e,hasM:r,hasZ:s,points:t,spatialReference:i}}(e)),this.points=[],this.type="multipoint"}get cache(){return this.commitProperty("points"),this.commitProperty("hasZ"),this.commitProperty("hasM"),this.commitProperty("spatialReference"),{}}get extent(){let e=(0,c.ge)(this);return e?new l.A({...e,spatialReference:this.spatialReference}):null}writePoints(e,t){t.points=(0,a.o8)(this.points)}clone(){let{points:e,spatialReference:t,hasM:r,hasZ:i}=this;return new s({points:(0,a.o8)(e),spatialReference:t.clone(),hasM:r,hasZ:i})}equals(e){if(this===e)return!0;if(null==e)return!1;let t=this.spatialReference,r=e.spatialReference;return!(null!=t!=(null!=r)||null!=t&&null!=r&&!t.equals(r))&&(0,n.aI)(this.points,e.points,f.v6)}addPoint(e){return(0,p.h)(this,e),Array.isArray(e)?this.points.push(e):this.points.push(e.toArray()),this.notifyChange("points"),this}getPoint(e){if(!this._validateInputs(e))return null;let t=this.points[e],r={x:t[0],y:t[1],spatialReference:this.spatialReference},s=2;return this.hasZ&&(r.z=t[2],s=3),this.hasM&&(r.m=t[s]),new u.A(r)}removePoint(e){if(!this._validateInputs(e))return null;let t=new u.A(this.points.splice(e,1)[0],this.spatialReference);return this.notifyChange("points"),t}setPoint(e,t){return this._validateInputs(e)&&((0,p.h)(this,t),Array.isArray(t)||(t=t.toArray()),this.points[e]=t,this.notifyChange("points")),this}toJSON(e){return this.write({},e)}_validateInputs(e){return null!=e&&e>=0&&e<this.points.length}};(0,i.Cg)([(0,o.MZ)({readOnly:!0})],g.prototype,"cache",null),(0,i.Cg)([(0,o.MZ)({readOnly:!0})],g.prototype,"extent",null),(0,i.Cg)([(0,o.MZ)({type:[[Number]],json:{write:{isRequired:!0}}})],g.prototype,"points",void 0),(0,i.Cg)([(0,m.K)("points")],g.prototype,"writePoints",null),g=s=(0,i.Cg)([(0,o.$K)("esri.geometry.Multipoint")],g),g.prototype.toJSON.isDefaultToJSON=!0},82799(e,t,r){r.d(t,{A:()=>p});var s,i=r(32198),n=r(4718),a=r(91429),o=r(5443),l=r(91075),h=r(86738),u=r(16930),d=r(90634),c=r(56993),f=r(43937);let p=s=class extends l.A{constructor(e){super(function(e){if(!e)return;let{paths:t,hasM:r,hasZ:s,spatialReference:i}=e;switch(t??=[],function(e){return"number"==typeof e[0]?.[0]}(t)&&(t=[t]),t[0]?.[0]?.length){case 4:s??=!0,r??=!0;break;case 3:s??=!0!==r,r??=!s;break;default:s??=!1,r??=!1}return i??=u.A.WGS84,{...e,hasM:r,hasZ:s,paths:t,spatialReference:i}}(e)),this.curvePaths=void 0,this.paths=[],this.type="polyline"}get cache(){return this.commitProperty("curvePaths"),this.commitProperty("hasM"),this.commitProperty("hasZ"),this.commitProperty("paths"),this.commitProperty("spatialReference"),{}}writeCurvePaths(e,t){t.curvePaths=(0,n.o8)(e)}get extent(){let e=(0,d.Z3)(this),{spatialReference:t}=this;return e?new o.A({...e,spatialReference:t}):null}writePaths(e,t){t.paths=(0,n.o8)(this.paths)}addPath(e){if(!e)return;let t=this.paths,r=t.length;if(function(e){return!Array.isArray(e[0])}(e)){let s=[];for(let t=0,r=e.length;t<r;t++)s[t]=e[t].toArray();t[r]=s}else t[r]=e.slice();return this.notifyChange("paths"),this}clone(){let e=new s;return e.spatialReference=this.spatialReference,e.paths=(0,n.o8)(this.paths),e.curvePaths=(0,n.o8)(this.curvePaths),e.hasZ=this.hasZ,e.hasM=this.hasM,e}getPoint(e,t){if(!this._validateInputs(e,t))return null;let r=this.paths[e][t],s=this.hasZ,i=this.hasM;return s&&!i?new h.A(r[0],r[1],r[2],void 0,this.spatialReference):i&&!s?new h.A(r[0],r[1],void 0,r[2],this.spatialReference):s&&i?new h.A(r[0],r[1],r[2],r[3],this.spatialReference):new h.A(r[0],r[1],this.spatialReference)}insertPoint(e,t,r){return this._validateInputs(e,t,!0)&&((0,c.h)(this,r),Array.isArray(r)||(r=r.toArray()),this.paths[e].splice(t,0,r),this.notifyChange("paths")),this}removePath(e){if(!this._validateInputs(e,null))return null;let t=this.paths.splice(e,1)[0],r=this.spatialReference,s=t.map(e=>new h.A(e,r));return this.notifyChange("paths"),s}removePoint(e,t){if(!this._validateInputs(e,t))return null;let r=new h.A(this.paths[e].splice(t,1)[0],this.spatialReference);return this.notifyChange("paths"),r}setPoint(e,t,r){return this._validateInputs(e,t)&&((0,c.h)(this,r),Array.isArray(r)||(r=r.toArray()),this.paths[e][t]=r,this.notifyChange("paths")),this}_validateInputs(e,t,r=!1){if(null==e||e<0||e>=this.paths.length)return!1;if(null!=t){let s=this.paths[e];if(r&&(t<0||t>s.length)||!r&&(t<0||t>=s.length))return!1}return!0}toJSON(e){return this.write({},e)}};(0,i.Cg)([(0,a.MZ)({readOnly:!0})],p.prototype,"cache",null),(0,i.Cg)([(0,a.MZ)({json:{write:!0,origins:{"portal-item":{write:!1},"web-map":{write:!1},"web-scene":{write:!1}}}})],p.prototype,"curvePaths",void 0),(0,i.Cg)([(0,f.K)("curvePaths")],p.prototype,"writeCurvePaths",null),(0,i.Cg)([(0,a.MZ)({readOnly:!0})],p.prototype,"extent",null),(0,i.Cg)([(0,a.MZ)({type:[[[Number]]],json:{write:{isRequired:!0}}})],p.prototype,"paths",void 0),(0,i.Cg)([(0,f.K)("paths")],p.prototype,"writePaths",null),p=s=(0,i.Cg)([(0,a.$K)("esri.geometry.Polyline")],p),p.prototype.toJSON.isDefaultToJSON=!0},60408(e,t,r){function s(e){return void 0!==e.xmin&&void 0!==e.ymin&&void 0!==e.xmax&&void 0!==e.ymax}function i(e){return void 0!==e.points}function n(e){return void 0!==e.x&&void 0!==e.y}function a(e){return void 0!==e.paths||void 0!==e.curvePaths}function o(e){return void 0!==e.rings||void 0!==e.curveRings}function l(e){return"object"==typeof e&&"vertexAttributes"in e}function h(e){return e?n(e)?"esriGeometryPoint":a(e)?"esriGeometryPolyline":o(e)?"esriGeometryPolygon":s(e)?"esriGeometryEnvelope":i(e)?"esriGeometryMultipoint":null:null}function u(e){return null!=e&&("hasZ"in e&&e.hasZ||"z"in e&&null!=e.z)}function d(e){return null!=e&&("hasM"in e&&e.hasM||"m"in e&&null!=e.m)}r.d(t,{$B:()=>h,Bi:()=>o,Pv:()=>u,Rg:()=>a,U9:()=>i,W0:()=>d,ZC:()=>s,fT:()=>n,uW:()=>l})},65864(e,t,r){r.d(t,{rS:()=>u,xD:()=>c});var s=r(5443),i=r(91075),n=r(48526),a=r(86738),o=r(39829),l=r(82799),h=r(60408);function u(e){return null==e?null:e instanceof i.A?e:(0,h.fT)(e)?a.A.fromJSON(e):(0,h.Rg)(e)?l.A.fromJSON(e):(0,h.Bi)(e)?o.A.fromJSON(e):(0,h.U9)(e)?n.A.fromJSON(e):(0,h.ZC)(e)?s.A.fromJSON(e):null}const d={esriGeometryPoint:a.A,esriGeometryPolyline:l.A,esriGeometryPolygon:o.A,esriGeometryEnvelope:s.A,esriGeometryMultipoint:n.A,esriGeometryMultiPatch:o.A};function c(e){return e&&d[e]||null}},97770(e,t,r){r.d(t,{Ey:()=>O,F8:()=>F,J2:()=>S,Yq:()=>T,_m:()=>w,iS:()=>A,wj:()=>E});var s=r(66552),i=r(73444),n=r(98623),a=r(34747);const o={dateStyle:void 0,year:void 0,month:void 0,day:void 0,weekday:void 0},l={timeStyle:void 0,hour12:void 0,hourCycle:void 0,hour:void 0,minute:void 0,second:void 0},h={timeZone:"UTC"},u={year:"numeric",month:"numeric",day:"numeric"},d={year:"numeric",month:"long",day:"numeric"},c={year:"numeric",month:"short",day:"numeric"},f={year:"numeric",month:"long",weekday:"long",day:"numeric"},p={hour:"numeric",minute:"numeric"},m={...p,second:"numeric"},g={hourCycle:"h23"},_={...p,...g},y={...m,...g},v={"short-date":u,"short-date-short-time":{...u,...p},"short-date-short-time-24":{...u,..._},"short-date-long-time":{...u,...m},"short-date-long-time-24":{...u,...y},"short-date-le":u,"short-date-le-short-time":{...u,...p},"short-date-le-short-time-24":{...u,..._},"short-date-le-long-time":{...u,...m},"short-date-le-long-time-24":{...u,...y},"long-month-day-year":d,"long-month-day-year-short-time":{...d,...p},"long-month-day-year-short-time-24":{...d,..._},"long-month-day-year-long-time":{...d,...m},"long-month-day-year-long-time-24":{...d,...y},"day-short-month-year":c,"day-short-month-year-short-time":{...c,...p},"day-short-month-year-short-time-24":{...c,..._},"day-short-month-year-long-time":{...c,...m},"day-short-month-year-long-time-24":{...c,...y},"long-date":f,"long-date-short-time":{...f,...p},"long-date-short-time-24":{...f,..._},"long-date-long-time":{...f,...m},"long-date-long-time-24":{...f,...y},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":p,"long-time":m},x=(0,s.O)()({shortDate:"short-date",shortDateShortTime:"short-date-short-time",shortDateShortTime24:"short-date-short-time-24",shortDateLongTime:"short-date-long-time",shortDateLongTime24:"short-date-long-time-24",shortDateLE:"short-date-le",shortDateLEShortTime:"short-date-le-short-time",shortDateLEShortTime24:"short-date-le-short-time-24",shortDateLELongTime:"short-date-le-long-time",shortDateLELongTime24:"short-date-le-long-time-24",longMonthDayYear:"long-month-day-year",longMonthDayYearShortTime:"long-month-day-year-short-time",longMonthDayYearShortTime24:"long-month-day-year-short-time-24",longMonthDayYearLongTime:"long-month-day-year-long-time",longMonthDayYearLongTime24:"long-month-day-year-long-time-24",dayShortMonthYear:"day-short-month-year",dayShortMonthYearShortTime:"day-short-month-year-short-time",dayShortMonthYearShortTime24:"day-short-month-year-short-time-24",dayShortMonthYearLongTime:"day-short-month-year-long-time",dayShortMonthYearLongTime24:"day-short-month-year-long-time-24",longDate:"long-date",longDateShortTime:"long-date-short-time",longDateShortTime24:"long-date-short-time-24",longDateLongTime:"long-date-long-time",longDateLongTime24:"long-date-long-time-24",longMonthYear:"long-month-year",shortMonthYear:"short-month-year",year:"year"}),b={ar:"ar-u-nu-latn-ca-gregory",nn:"no-NN"};function I(){let e=(0,i.lR)();return(e&&b[e])??(0,i.QC)()}"mart"!==new Intl.DateTimeFormat("bs",{month:"long"}).formatToParts(new Date(2025,2)).find(({type:e})=>"month"===e)?.value.toLowerCase()&&(b.bs="sr-Latn-CS");let M=new WeakMap;const C=v["short-date-short-time"];function S(e){return v[e]}function w(e){let{dateStyle:t,timeStyle:r,hour12:s,year:i,month:n}=e,a={};return t?a.dateStyle=t:i&&(a.year=i,a.month=n||void 0),r&&!a.year&&(a.timeStyle=r,a.hour12="auto"===s?void 0:"always"===s),a}function T(e,t=C){return function(e){let t=M.get(e);if(!t){let r=I(),s=E(e.timeZone??"system"),i={...e,timeZone:s};t=new Intl.DateTimeFormat(r,i),M.set(e,t)}return t}(t).format(e)}function A(e,t=C){return T(new Date(e),{...t,...h,...l})}function F(e,t=C){return T(new Date(`1970-01-01T${e}Z`),{...t,...h,...o})}function O(e,t=C){let r=a.c9.fromISO(e,{setZone:!0});if(!r.isValid)return e;if(t.timeZone)return T(r.toJSDate(),t);let s=0===r.offset?"UTC":t.timeZone,i={...t,timeZone:s};return r.toLocaleString(i,{locale:I()})}function E(e){switch(e){case"system":return n.N;case n.L:return"UTC";default:return e}}(0,i.Ml)(()=>{M=new WeakMap}),r.d(t,["_v",0,x])},73444(e,t,r){r.d(t,{JK:()=>l,Ml:()=>g,QC:()=>d,lR:()=>u,oQ:()=>p});var s=r(36563);let i;r(44208);const n=globalThis.esriConfig?.locale,a=globalThis.document?.documentElement;function o(){let e=a?.getAttribute("lang"),t=globalThis.navigator?.language;return n??e??t??"en"}function l(){return void 0===i&&(i=o()),i}const h=/^(?<language>[a-z]{2,3})(?:-(?<extlang>[a-z]{3}))?(?:-[A-Z][a-z]{3})?(?:-(?<region>[A-Z]{2}|\d{3}))?(?:-.*)?$/;function u(e=l()){return c(e)?.language}function d(e=l()){let t=c(e);return t?.language&&t?.extlang?e.replace(`${t.language}-`,""):e}function c(e=l()){return h.exec(e)?.groups}const f=[];function p(e){return f.push(e),(0,s.hA)(()=>{f.splice(f.indexOf(e),1)})}new Map;const m=[];function g(e){return m.push(e),(0,s.hA)(()=>m.splice(m.indexOf(e),1))}function _(){let e=o();i!==e&&([...m].forEach(t=>t(e)),i=e,[...f].forEach(t=>t(e)))}globalThis.addEventListener?.("languagechange",_),a&&new MutationObserver(()=>{_()}).observe(a,{attributeFilter:["lang"]})},64714(e,t,r){r.d(t,{F0:()=>o,Vx:()=>u,e2:()=>c,f:()=>m});var s=r(44208),i=r(4718),n=r(99352),a=r(93470);function o(e){return{renderer:{type:"simple",symbol:"esriGeometryPoint"===e||"esriGeometryMultipoint"===e?a.Cb:"esriGeometryPolyline"===e?a.yM:a.WR}}}const l=/^[_$a-zA-Z][_$a-zA-Z0-9]*$/;let h=1;function u(e,t){if((0,s.A)("esri-csp-restrictions"))return()=>t?{[t]:null,...e}:{...e};try{let r="";t&&(r+=`this${d(t)} = null;`);for(let t in e)r+=`this${d(t)} = ${JSON.stringify(e[t])};`;let s=Function(`\n return class AttributesClass$${h++} {\n constructor() {\n ${r};\n }\n }\n `)();return()=>new s}catch{return()=>t?{[t]:null,...e}:{...e}}}function d(e){return l.test(e)?`.${e}`:`[${JSON.stringify(e)}]`}function c(e={}){return[{name:"New Feature",description:"",prototype:{attributes:(0,i.o8)(e)}}]}const f={...n.F,supportsSpatialAggregationStatistics:!1,supportedSpatialAggregationStatistics:{envelope:!1,centroid:!1,convexHull:!1},supportsCentroid:!1,supportsDistance:!1,supportsExtent:!1,supportsQuantization:!1,supportsQueryGeometry:!1,supportsDisjointSpatialRelationship:!1},p={...n.P,supportedStatistics:{...n.P.supportedStatistics,envelope:!1,centroid:!1,convexHull:!1}};function m(e,t,r=!1){return{analytics:{supportsCacheHint:!1},attachment:null,data:{isVersioned:!1,isBranchVersioned:!1,supportedCurveTypes:[],supportsAttachment:!1,supportsM:!1,supportsTrueCurve:!1,supportsZ:e},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:t,supportsDelete:t,supportsEditing:t,supportsChangeTracking:!1,supportsQuery:!0,supportsQueryBins:!0,supportsQueryPivot:!1,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:t,supportsExceedsLimitStatistics:!0,supportsAsyncConvert3D:!1},query:r?f:n.F,queryRelated:{supportsCount:!0,supportsOrderBy:!0,supportsPagination:!0,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},queryAttributeBins:r?p:n.P,editing:{supportsGeometryUpdate:t,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsTrueCurveUpdate:t,supportsTrueCurveUpdateByTrueCurveClientsOnly:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1,supportsAsyncApplyEdits:!1,zDefault:void 0}}}},17754(e,t,r){r.d(t,{gE:()=>n,wY:()=>i,xb:()=>a});const s=2**32;function i(e){return Math.floor(e/s)%65536}function n(e){return e%s}function a(e,t){return e*s+t}},39357(e,t,r){r.d(t,{A:()=>o});var s,i=r(32198),n=r(25482),a=r(91429);let o=s=class extends n.o{constructor(e){super(e),this.name=null,this.code=null}clone(){return new s({name:this.name,code:this.code})}};(0,i.Cg)([(0,a.MZ)({type:String,json:{write:{isRequired:!0}}})],o.prototype,"name",void 0),(0,i.Cg)([(0,a.MZ)({type:[String,Number],json:{write:{isRequired:!0}}})],o.prototype,"code",void 0),o=s=(0,i.Cg)([(0,a.$K)("esri.layers.support.CodedValue")],o)},53177(e,t,r){r.d(t,{A:()=>u});var s,i=r(32198),n=r(4718),a=r(91429),o=r(39357),l=r(76357),h=r(93223);let u=class extends l.A{static{s=this}constructor(e){super(e),this.codedValues=null,this.type="coded-value"}getName(e){let t=null;if(this.codedValues){let r=String(e);this.codedValues.some(e=>(String(e.code)===r&&(t=e.name),!!t))}return t}clone(){return new s({codedValues:(0,n.o8)(this.codedValues),name:this.name})}};(0,i.Cg)([(0,a.MZ)({type:[o.A],json:{write:{isRequired:!0}}})],u.prototype,"codedValues",void 0),(0,i.Cg)([(0,h.e)({codedValue:"coded-value"})],u.prototype,"type",void 0),u=s=(0,i.Cg)([(0,a.$K)("esri.layers.support.CodedValueDomain")],u)},76357(e,t,r){r.d(t,{A:()=>h});var s=r(32198),i=r(66552),n=r(25482),a=r(91429),o=r(93223);const l=new i.J({inherited:"inherited",codedValue:"coded-value",range:"range"});let h=class extends n.o{constructor(e){super(e),this.name=null,this.type=null}};(0,s.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],h.prototype,"name",void 0),(0,s.Cg)([(0,o.e)(l),(0,a.MZ)({json:{write:{isRequired:!0}}})],h.prototype,"type",void 0),h=(0,s.Cg)([(0,a.$K)("esri.layers.support.Domain")],h)},20437(e,t,r){r.d(t,{A:()=>p});var s,i=r(32198),n=r(66552),a=r(25482),o=r(91429),l=r(78888),h=r(8631),u=r(98453),d=r(36005),c=r(93223);const f=new n.J({binary:"binary",coordinate:"coordinate",countOrAmount:"count-or-amount",currency:"currency",dateAndTime:"date-and-time",description:"description",emailAddress:"email-address",locationOrPlaceName:"location-or-place-name",marginOfError:"margin-of-error",measurement:"measurement",nameOrTitle:"name-or-title",none:"none",orderedOrRanked:"ordered-or-ranked",percentageOrRatio:"percentage-or-ratio",phoneNumber:"phone-number",typeOrCategory:"type-or-category",uniqueIdentifier:"unique-identifier",url:"url"});let p=class extends a.o{static{s=this}constructor(e){super(e),this.alias=null,this.defaultValue=void 0,this.description=null,this.domain=null,this.editable=!0,this.length=void 0,this.name=null,this.nullable=!0,this.type=null,this.valueType=null,this.visible=!0}readDescription(e,{description:t}){let r=null;try{r=t?JSON.parse(t):null}catch{}return r?.value??null}readValueType(e,{description:t}){let r=null;try{r=t?JSON.parse(t):null}catch{}return r?f.fromJSON(r.fieldValueType):null}clone(){return new s({alias:this.alias,defaultValue:this.defaultValue,description:this.description,domain:this.domain?.clone()??null,editable:this.editable,length:this.length,name:this.name,nullable:this.nullable,type:this.type,valueType:this.valueType,visible:this.visible})}};(0,i.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],p.prototype,"alias",void 0),(0,i.Cg)([(0,o.MZ)({type:[String,Number],json:{write:{allowNull:!0}}})],p.prototype,"defaultValue",void 0),(0,i.Cg)([(0,o.MZ)()],p.prototype,"description",void 0),(0,i.Cg)([(0,d.w)("description")],p.prototype,"readDescription",null),(0,i.Cg)([(0,o.MZ)({types:h.g,json:{read:{reader:h.r},write:!0}})],p.prototype,"domain",void 0),(0,i.Cg)([(0,o.MZ)({type:Boolean,json:{write:!0}})],p.prototype,"editable",void 0),(0,i.Cg)([(0,o.MZ)({type:l.jz,json:{write:{overridePolicy:e=>({enabled:Number.isFinite(e)})}}})],p.prototype,"length",void 0),(0,i.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],p.prototype,"name",void 0),(0,i.Cg)([(0,o.MZ)({type:Boolean,json:{write:!0}})],p.prototype,"nullable",void 0),(0,i.Cg)([(0,c.e)(u.m)],p.prototype,"type",void 0),(0,i.Cg)([(0,o.MZ)()],p.prototype,"valueType",void 0),(0,i.Cg)([(0,d.w)("valueType",["description"])],p.prototype,"readValueType",null),(0,i.Cg)([(0,o.MZ)({type:Boolean,json:{read:!1}})],p.prototype,"visible",void 0),p=s=(0,i.Cg)([(0,o.$K)("esri.layers.support.Field")],p)},95466(e,t,r){r.d(t,{A:()=>h});var s=r(49186),i=r(53966),n=r(12195),a=r(30524),o=r(98623),l=r(56400);class h{static fromJSON(e){return new h(e.fields,e.timeZoneByFieldName)}static fromLayer(e){return new h(e.fields??[],d(e))}static fromLayerJSON(e){return new h(e.fields??[],d(e))}constructor(e=[],t){this._fieldsMap=new Map,this._normalizedFieldsMap=new Map,this._dateFieldsSet=new Set,this._numericFieldsSet=new Set,this._requiredFields=null,this.dateFields=[],this.numericFields=[],this.fields=e||[],this._timeZoneByFieldName=t?new Map(t):null;let r=[];for(let e of this.fields){let t=e?.name,s=(0,a.GZ)(t);if(t&&s){let i=(0,a.NF)(t);this._fieldsMap.set(t,e),this._fieldsMap.set(i,e),this._normalizedFieldsMap.set(s,e),r.push(`${i}:${e.type}:${this._timeZoneByFieldName?.get(t)}`),(0,a.vE)(e)?(this.dateFields.push(e),this._dateFieldsSet.add(e)):(0,a.WA)(e)&&(this._numericFieldsSet.add(e),this.numericFields.push(e)),!(0,a.te)(e)&&!(0,a.Xz)(e)&&(e.editable=null==e.editable||!!e.editable,e.nullable=null==e.nullable||!!e.nullable)}}r.sort(),this.uid=r.join()}get requiredFields(){if(!this._requiredFields){this._requiredFields=[];for(let e of this.fields)!(0,a.te)(e)&&!(0,a.Xz)(e)&&!e.nullable&&void 0===(0,a.lD)(e)&&this._requiredFields.push(e)}return this._requiredFields}equals(e){return this.uid===e?.uid}has(e){return null!=this.get(e)}get(e){return(0,a.Vb)({fieldName:e,fieldsMap:this._fieldsMap,normalizedFieldsMap:this._normalizedFieldsMap})}getTimeZone(e){let t=this.get(e&&"string"!=typeof e?e.name:e);return t?this._timeZoneByFieldName?this._timeZoneByFieldName.get(t.name):"date"===t.type||"esriFieldTypeDate"===t.type?(i.A.getLogger("esri.layers.support.FieldsIndex").errorOnce(new s.A("getTimeZone:no-timezone-information",`no time zone information for field '${t.name}'`)),"UTC"):u.has(t.type)?o.L:null:null}isDateField(e){return this._dateFieldsSet.has(this.get(e))}isTimeOnlyField(e){return(0,a.OH)(this.get(e))}isNumericField(e){return this._numericFieldsSet.has(this.get(e))}normalizeFieldName(e){return this.get(e)?.name??void 0}toJSON(){return{fields:this.fields.map(e=>(0,n.W)(e)?e.toJSON():e),timeZoneByFieldName:this._timeZoneByFieldName?Array.from(this._timeZoneByFieldName.entries()):null}}}const u=new Set(["time-only","date-only","timestamp-offset","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"]);function d(e){let t=new Map;if(!e.fields)return t;let r=!0===e.datesInUnknownTimezone,{timeInfo:s,editFieldsInfo:i}=e,n=(s?"startField"in s?s.startField:s.startTimeField:"")??"",h=(s?"endField"in s?s.endField:s.endTimeField:"")??"",d=function(e){return"dateFieldsTimeZone"in e}(e)?e.dateFieldsTimeZone??null:e.dateFieldsTimeReference?(0,l.ZS)(e.dateFieldsTimeReference):null,c=i?function(e){return"timeZone"in e}(i)?i.timeZone??d:i.dateFieldsTimeReference?(0,l.ZS)(i.dateFieldsTimeReference):d??"UTC":null,f=s?function(e){return"timeZone"in e}(s)?s.timeZone??d:s.timeReference?(0,l.ZS)(s.timeReference):d:null,p=new Map([[(0,a.NF)(i?.creationDateField??""),c],[(0,a.NF)(i?.editDateField??""),c],[(0,a.NF)(n),f],[(0,a.NF)(h),f]]);for(let{name:s,type:i}of e.fields)if(u.has(i))t.set(s,o.L);else if("date"!==i&&"esriFieldTypeDate"!==i)t.set(s,null);else if(r)t.set(s,o.L);else{let e=p.get((0,a.NF)(s??""))??d;t.set(s,e)}return t}},41628(e,t,r){r.d(t,{A:()=>l});var s,i=r(32198),n=r(91429),a=r(76357),o=r(93223);let l=class extends a.A{static{s=this}constructor(e){super(e),this.maxValue=null,this.minValue=null,this.type="range"}clone(){return new s({maxValue:this.maxValue,minValue:this.minValue,name:this.name})}};(0,i.Cg)([(0,n.MZ)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[1]},write:{enabled:!1,overridePolicy(){return{enabled:null!=this.maxValue&&null==this.minValue}},target:"range",writer(e,t,r){t[r]=[this.minValue||0,e]},isRequired:!0}}})],l.prototype,"maxValue",void 0),(0,i.Cg)([(0,n.MZ)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[0]},write:{target:"range",writer(e,t,r){t[r]=[e,this.maxValue||0]},isRequired:!0}}})],l.prototype,"minValue",void 0),(0,i.Cg)([(0,o.e)({range:"range"})],l.prototype,"type",void 0),l=s=(0,i.Cg)([(0,n.$K)("esri.layers.support.RangeDomain")],l)},8631(e,t,r){r.d(t,{r:()=>c,g:()=>d});var s,i=r(53177),n=r(76357),a=r(32198),o=r(91429),l=r(93223);let h=class extends n.A{static{s=this}constructor(e){super(e),this.type="inherited"}clone(){return new s}};(0,a.Cg)([(0,l.e)({inherited:"inherited"})],h.prototype,"type",void 0),h=s=(0,a.Cg)([(0,o.$K)("esri.layers.support.InheritedDomain")],h);var u=r(41628);const d={key:"type",base:n.A,typeMap:{range:u.A,"coded-value":i.A,inherited:h}};function c(e){if(!e?.type)return null;switch(e.type){case"range":return u.A.fromJSON(e);case"codedValue":return i.A.fromJSON(e);case"inherited":return h.fromJSON(e)}return null}},98453(e,t,r){const s=new(r(66552).J)({esriFieldTypeSmallInteger:"small-integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"single",esriFieldTypeDouble:"double",esriFieldTypeLong:"long",esriFieldTypeString:"string",esriFieldTypeDate:"date",esriFieldTypeOID:"oid",esriFieldTypeGeometry:"geometry",esriFieldTypeBlob:"blob",esriFieldTypeRaster:"raster",esriFieldTypeGUID:"guid",esriFieldTypeGlobalID:"global-id",esriFieldTypeXML:"xml",esriFieldTypeBigInteger:"big-integer",esriFieldTypeDateOnly:"date-only",esriFieldTypeTimeOnly:"time-only",esriFieldTypeTimestampOffset:"timestamp-offset"});r.d(t,["m",0,s])},50115(e,t,r){r.d(t,{OP:()=>a,V4:()=>i,rZ:()=>n}),r(44208);var s=r(53966);function i(e,t,r){if(null==e)return null;let i=t.readArcadeFeature();t.contextTimeZone=r.$view?.timeZone;try{return e.evaluate(i,r)}catch(e){return s.A.getLogger("esri.views.2d.support.arcadeOnDemand").warn("Feature arcade evaluation failed:",e),null}}function n(e){return null==e||e===1/0||e===-1/0||"number"==typeof e&&isNaN(e)}function a(e,t,r,s){if(null==e)return s??null;let i=t.readArcadeFeature();t.contextTimeZone=r.$view?.timeZone;let a=e.evaluate(i,r);return n(a)?s??null:a}},30661(e,t,r){r.d(t,{Z:()=>n});var s=r(43334),i=r(8446);class n{static{this.Shared=new n}getObjectId(e){return e.getObjectId()}getAttributes(e){return e.readAttributes()}getAttribute(e,t){return e.readAttribute(t)}getAttributeAsTimestamp(e,t){return e.readAttributeAsTimestamp(t)}cloneWithGeometry(e,t,r){let n=e.readAttributes(),a=new s.Om(t,n,null,e.getObjectId(),e.getDisplayId()),o=i.K.fromOptimizedFeatures([a],e.metadata);return o.setIndex(0),o}getGeometry(e){return e.readGeometryWorldSpace()}getCentroid(e,t){return e.readCentroidForDisplay()}}},63664(e,t,r){r.d(t,{B:()=>s});class s{constructor(e){this._statistics=e}get statistics(){return this._statistics}}},38976(e,t,r){r.d(t,{n:()=>s});class s{constructor(e){this.options=e}get hash(){return this.options.hash}}},92029(e,t,r){r.d(t,{o:()=>n});var s=r(50115);const i=Math.PI/180;class n{static create(e){return new n(e.map(e=>function(e){switch(e.statisticType){case"min":return new o(e);case"max":return new l(e);case"avg":return new u(e);case"avg_angle":return new d(e);case"sum":case"count":return new h(e);case"mode":return new c(e)}}(e)))}constructor(e){this._statistics=e}static get estimatedMemory(){return 160}values(){return this._statistics.values()}insert(e,t){for(let r of this._statistics)r.insert(e,t)}merge(e){for(let t=0;t<this._statistics.length;t++){let r=this._statistics[t],s=e._statistics[t];if(r.field.name!==s.field.name)throw Error("InternalError: Tried to merge incompatible statistics");r.merge(s)}}clone(){return new n(this._statistics.map(e=>e.clone()))}}class a{constructor(e){this.field=e}insert(e,t){if(!this.field.computed)return;let r=this.field.computed.read(e,t);(0,s.rZ)(r)||this._insertValue(r)}}class o extends a{constructor(){super(...arguments),this.type="min",this.value=Number.MAX_VALUE}_insertValue(e){this.value=Math.min(this.value,e)}merge(e){this.value=Math.min(this.value,e.value)}clone(){let e=new o(this.field);return e.value=this.value,e}}class l extends a{constructor(){super(...arguments),this.type="max",this.value=Number.MIN_VALUE}_insertValue(e){this.value=Math.max(this.value,e)}merge(e){this.value=Math.max(this.value,e.value)}clone(){let e=new l(this.field);return e.value=this.value,e}}class h extends a{constructor(){super(...arguments),this.type="sum",this.value=0}_insertValue(e){this.value+=e}merge(e){this.value+=e.value}clone(){let e=new h(this.field);return e.value=this.value,e}}class u extends a{constructor(){super(...arguments),this.type="avg",this._total=0,this._count=0}get value(){return this._total/this._count}_insertValue(e){this._total+=e,this._count+=1}merge(e){this._total+=e._total,this._count+=e._count}clone(){let e=new u(this.field);return e._total=this._total,e._count=this._count,e}}class d extends a{constructor(){super(...arguments),this.type="avg_angle",this._x=0,this._y=0,this._count=0}get value(){let e=this._x/this._count,t=this._y/this._count;return 180/Math.PI*Math.atan2(t,e)}_insertValue(e){this._x+=Math.cos(e*i),this._y+=Math.sin(e*i),this._count+=1}merge(e){this._x+=e._x,this._y+=e._y,this._count+=e._count}clone(){let e=new d(this.field);return e._x=this._x,e._y=this._y,e._count=this._count,e}}class c extends a{constructor(){super(...arguments),this._frequencies=new Map}get value(){let e,t=0;for(let[r,s]of this._frequencies.entries())s>t&&(t=s,e=r);return e}_insertValue(e){let t=this._frequencies.get(e);null==t?this._frequencies.set(e,1):this._frequencies.set(e,t+1)}merge(e){for(let[t,r]of e._frequencies.entries()){let e=this._frequencies.get(t);null==e?this._frequencies.set(t,r):this._frequencies.set(t,e+r)}}clone(){let e=new c(this.field);return e._frequencies=new Map(this._frequencies),e}}},75538(e,t,r){r.d(t,{L:()=>o});var s=r(90708),i=r(92722),n=r(63664),a=r(92029);class o extends n.B{static createId(e,t){return`${e}.${t}`}static create(e,t,r,s){return new o(e,t,a.o.create(r),s)}constructor(e,t,r,s){super(r),this.gridX=e,this.gridY=t,this._worldUnitsPerCell=s,this._count=0,this._xWorldTotal=0,this._yWorldTotal=0,this._objectIds=[new Set]}get id(){return o.createId(this.gridX,this.gridY)}get containedObjectIds(){return this._objectIds}get count(){return this._count}get firstObjectId(){return this._objectIds[0].values().next().value}get centroidXWorld(){return this._xWorldTotal/this._count}get centroidYWorld(){return this._yWorldTotal/this._count}get usedMemory(){return 48}clone(){let e=new o(this.gridX,this.gridY,this._statistics.clone(),this._worldUnitsPerCell);return e._count=this._count,e._xWorldTotal=this._xWorldTotal,e._yWorldTotal=this._yWorldTotal,e._firstFeatureAttributes=this._firstFeatureAttributes,e._objectIds=this._objectIds.map(e=>new Set(e)),e}insert(e,t){let r=0,s=0;if("esriGeometryPoint"===e.geometryType)r=e.readXWorldSpace(),s=e.readYWorldSpace();else{let t=e.readCentroidWorldSpace();if(null==t)return;[r,s]=t.coords}this._firstFeatureAttributes=0===this._count?e.readAttributes():null,this._count+=1,this._xWorldTotal+=r,this._yWorldTotal+=s,this._statistics.insert(e,t),this._objectIds[0].add(e.getObjectId())}merge(e){0!==e._count&&(this._count+=e._count,this._firstFeatureAttributes=e._firstFeatureAttributes,this._xWorldTotal+=e._xWorldTotal,this._yWorldTotal+=e._yWorldTotal,this._statistics.merge(e._statistics),this._objectIds.push(...e._objectIds))}getCentroidX(e){return null==e?this.centroidXWorld:(0,s.IE)(e,this.centroidXWorld)}getCentroidY(e){return null==e?this.centroidYWorld:(0,s.B2)(e,this.centroidYWorld)}getGeometry(e,t){let r=this.gridX*this._worldUnitsPerCell,n=this.gridY*this._worldUnitsPerCell,a=new i.A([4],[r,n,r+this._worldUnitsPerCell,n,r+this._worldUnitsPerCell,n+this._worldUnitsPerCell,r,n+this._worldUnitsPerCell]);return null==t?a:(0,s.Nl)(a,"esriGeometryPolygon",t)}getCentroid(e){let t=new i.A([],[this.centroidXWorld,this.centroidYWorld]);return null==e?t:(0,s.Nl)(t,"esriGeometryPoint",e)}getGeometricCentroid(e,t){let r=this.gridX*this._worldUnitsPerCell+.5*this._worldUnitsPerCell,n=this.gridY*this._worldUnitsPerCell+.5*this._worldUnitsPerCell,a=new i.A([],[r,n]);return null==t?a:(0,s.Nl)(a,"esriGeometryPoint",t)}getAttributes(){let e={aggregateId:this.id};for(let t of this._statistics.values())e[t.field.name]=t.value;return null==this._firstFeatureAttributes?e:{...e,...this._firstFeatureAttributes}}}},24506(e,t,r){r.d(t,{H:()=>u,p:()=>h});var s=r(91869),i=r(86211),n=r(38976),a=r(75538);class o{static createId(e,t){return`${e}.${t}`}constructor(e,t){this.gridX=e,this.gridY=t,this._indices=[],this.id=o.createId(e,t)}push(e){this._indices.push(e)}}var l=r(9012);function h(e,t){return 39.37*(0,i.GA)(e)*96/t}class u extends n.n{constructor(e,t){super(e),this._reader=t,this._cells=new Map,this._pixelsPerMapUnit=h(e.inner.spatialReference,e.inner.scale),this.insert(this._reader)}get worldUnitsPerCell(){return 1*this.options.inner.cellSize/this._pixelsPerMapUnit}insert(e){let t=e.getCursor();for(;t.next();){let e=t,{featureFilter:r,sqlOptions:s,cellSize:i}=this.options.inner;if(null!==r&&!r.check(e,s))continue;let n=0,a=0;if("esriGeometryPoint"===e.geometryType)n=e.readXWorldSpace(),a=e.readYWorldSpace();else{let t=e.readCentroidWorldSpace();if(null==t)continue;[n,a]=t.coords}let o=n*this._pixelsPerMapUnit,l=a*this._pixelsPerMapUnit,h=Math.floor(o/i),u=Math.floor(l/i);this._getCellOrCreate(h,u).push(t.getIndex())}}get usedMemory(){return 0}forEachInCell(e,t){let r=this._cells.get(e);if(r)for(let e of r._indices)this._reader.setIndex(e),t(this._reader)}put(e,t){let{arcadeContextInfo:r,scale:i,fields:n}=this.options.inner,o=(0,l.N)(i,r);this._cells.forEach(r=>{let i=null;for(let l of r._indices){this._reader.setIndex(l);let h=this._reader.getObjectId();t.has(h)||(i??=(0,s.tE)(e,r.id,()=>a.L.create(r.gridX,r.gridY,n,this.worldUnitsPerCell)),i.insert(this._reader,o),t.add(h))}})}putBounded(e,t,r,i){let{arcadeContextInfo:n,scale:o,cellSize:h,fields:u}=this.options.inner,d=(0,l.N)(o,n),[c,f,p,m]=[r.xmin,r.ymin,r.xmax,r.ymax],g=Math.floor(c*this._pixelsPerMapUnit/h),_=Math.floor(f*this._pixelsPerMapUnit/h),y=Math.ceil(p*this._pixelsPerMapUnit/h),v=Math.ceil(m*this._pixelsPerMapUnit/h);for(let r=_;r<=v;r++)for(let i=g;i<=y;i++){let n=a.L.createId(i,r),o=this._cells.get(n);if(!o)continue;let l=null;for(let n of o._indices){this._reader.setIndex(n);let h=this._reader.getObjectId();t.has(h)||(l??=(0,s.tE)(e,o.id,()=>a.L.create(i,r,u,this.worldUnitsPerCell)),l.insert(this._reader,d),t.add(h))}}}_getCellOrCreate(e,t){let r=o.createId(e,t),s=this._cells.get(r);return s||(s=new o(e,t),this._cells.set(r,s)),s}}},70300(e,t,r){r.d(t,{K:()=>X});var s=r(11006);function i(e,t){if(!(this instanceof i))return new i(e,t);this._maxEntries=Math.max(4,e||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),t&&("function"==typeof t?this.toBBox=t:this._initFormat(t)),this.clear()}function n(e,t,r){if(!r)return t.indexOf(e);for(var s=0;s<t.length;s++)if(r(e,t[s]))return s;return-1}function a(e,t){o(e,0,e.children.length,t,e)}function o(e,t,r,s,i){i||=_(null),i.minX=1/0,i.minY=1/0,i.maxX=-1/0,i.maxY=-1/0;for(var n,a=t;a<r;a++)n=e.children[a],l(i,e.leaf?s(n):n);return i}function l(e,t){return e.minX=Math.min(e.minX,t.minX),e.minY=Math.min(e.minY,t.minY),e.maxX=Math.max(e.maxX,t.maxX),e.maxY=Math.max(e.maxY,t.maxY),e}function h(e,t){return e.minX-t.minX}function u(e,t){return e.minY-t.minY}function d(e){return(e.maxX-e.minX)*(e.maxY-e.minY)}function c(e){return e.maxX-e.minX+(e.maxY-e.minY)}function f(e,t){return(Math.max(t.maxX,e.maxX)-Math.min(t.minX,e.minX))*(Math.max(t.maxY,e.maxY)-Math.min(t.minY,e.minY))}function p(e,t){var r=Math.max(e.minX,t.minX),s=Math.max(e.minY,t.minY),i=Math.min(e.maxX,t.maxX),n=Math.min(e.maxY,t.maxY);return Math.max(0,i-r)*Math.max(0,n-s)}function m(e,t){return e.minX<=t.minX&&e.minY<=t.minY&&t.maxX<=e.maxX&&t.maxY<=e.maxY}function g(e,t){return t.minX<=e.maxX&&t.minY<=e.maxY&&t.maxX>=e.minX&&t.maxY>=e.minY}function _(e){return{children:e,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function y(e,t,r,i,n){for(var a,o=[t,r];o.length;)!((r=o.pop())-(t=o.pop())<=i)&&(a=t+Math.ceil((r-t)/i/2)*i,(0,s.q)(e,a,t,r,n),o.push(t,a,a,r))}i.prototype={all:function(){return this._all(this.data,[])},search:function(e){var t=this.data,r=[],s=this.toBBox;if(!g(e,t))return r;for(var i,n,a,o,l=[];t;){for(i=0,n=t.children.length;i<n;i++)a=t.children[i],g(e,o=t.leaf?s(a):a)&&(t.leaf?r.push(a):m(e,o)?this._all(a,r):l.push(a));t=l.pop()}return r},collides:function(e){var t=this.data,r=this.toBBox;if(!g(e,t))return!1;for(var s,i,n,a,o=[];t;){for(s=0,i=t.children.length;s<i;s++)if(n=t.children[s],g(e,a=t.leaf?r(n):n)){if(t.leaf||m(e,a))return!0;o.push(n)}t=o.pop()}return!1},load:function(e){if(!e||!e.length)return this;if(e.length<this._minEntries){for(var t=0,r=e.length;t<r;t++)this.insert(e[t]);return this}var s=this._build(e.slice(),0,e.length-1,0);if(this.data.children.length)if(this.data.height===s.height)this._splitRoot(this.data,s);else{if(this.data.height<s.height){var i=this.data;this.data=s,s=i}this._insert(s,this.data.height-s.height-1,!0)}else this.data=s;return this},insert:function(e){return null!=e&&this._insert(e,this.data.height-1),this},clear:function(){return this.data=_([]),this},remove:function(e,t){if(null==e)return this;for(var r,s,i,a,o=this.data,l=this.toBBox(e),h=[],u=[];o||h.length;){if(o||(o=h.pop(),s=h[h.length-1],r=u.pop(),a=!0),o.leaf&&-1!==(i=n(e,o.children,t)))return o.children.splice(i,1),h.push(o),this._condense(h),this;a||o.leaf||!m(o,l)?s?(r++,o=s.children[r],a=!1):o=null:(h.push(o),u.push(r),r=0,s=o,o=o.children[0])}return this},toBBox:function(e){return e},compareMinX:h,compareMinY:u,toJSON:function(){return this.data},fromJSON:function(e){return this.data=e,this},_all:function(e,t){for(var r=[];e;)e.leaf?t.push.apply(t,e.children):r.push.apply(r,e.children),e=r.pop();return t},_build:function(e,t,r,s){var i,n=r-t+1,o=this._maxEntries;if(n<=o)return a(i=_(e.slice(t,r+1)),this.toBBox),i;s||(s=Math.ceil(Math.log(n)/Math.log(o)),o=Math.ceil(n/o**(s-1))),(i=_([])).leaf=!1,i.height=s;var l,h,u,d,c=Math.ceil(n/o),f=c*Math.ceil(Math.sqrt(o));for(y(e,t,r,f,this.compareMinX),l=t;l<=r;l+=f)for(y(e,l,u=Math.min(l+f-1,r),c,this.compareMinY),h=l;h<=u;h+=c)d=Math.min(h+c-1,u),i.children.push(this._build(e,h,d,s-1));return a(i,this.toBBox),i},_chooseSubtree:function(e,t,r,s){for(var i,n,a,o,l,h,u,c;s.push(t),!t.leaf&&s.length-1!==r;){for(u=c=1/0,i=0,n=t.children.length;i<n;i++)l=d(a=t.children[i]),(h=f(e,a)-l)<c?(c=h,u=l<u?l:u,o=a):h===c&&l<u&&(u=l,o=a);t=o||t.children[0]}return t},_insert:function(e,t,r){var s=this.toBBox,i=r?e:s(e),n=[],a=this._chooseSubtree(i,this.data,t,n);for(a.children.push(e),l(a,i);t>=0&&n[t].children.length>this._maxEntries;)this._split(n,t),t--;this._adjustParentBBoxes(i,n,t)},_split:function(e,t){var r=e[t],s=r.children.length,i=this._minEntries;this._chooseSplitAxis(r,i,s);var n=this._chooseSplitIndex(r,i,s),o=_(r.children.splice(n,r.children.length-n));o.height=r.height,o.leaf=r.leaf,a(r,this.toBBox),a(o,this.toBBox),t?e[t-1].children.push(o):this._splitRoot(r,o)},_splitRoot:function(e,t){this.data=_([e,t]),this.data.height=e.height+1,this.data.leaf=!1,a(this.data,this.toBBox)},_chooseSplitIndex:function(e,t,r){var s,i,n,a,l,h,u,c=h=1/0;for(s=t;s<=r-t;s++)a=p(i=o(e,0,s,this.toBBox),n=o(e,s,r,this.toBBox)),l=d(i)+d(n),a<c?(c=a,u=s,h=l<h?l:h):a===c&&l<h&&(h=l,u=s);return u},_chooseSplitAxis:function(e,t,r){var s=e.leaf?this.compareMinX:h,i=e.leaf?this.compareMinY:u;this._allDistMargin(e,t,r,s)<this._allDistMargin(e,t,r,i)&&e.children.sort(s)},_allDistMargin:function(e,t,r,s){e.children.sort(s);for(var i,n=this.toBBox,a=o(e,0,t,n),h=o(e,r-t,r,n),u=c(a)+c(h),d=t;d<r-t;d++)i=e.children[d],l(a,e.leaf?n(i):i),u+=c(a);for(d=r-t-1;d>=t;d--)i=e.children[d],l(h,e.leaf?n(i):i),u+=c(h);return u},_adjustParentBBoxes:function(e,t,r){for(var s=r;s>=0;s--)l(t[s],e)},_condense:function(e){for(var t,r=e.length-1;r>=0;r--)0===e[r].children.length?r>0?(t=e[r-1].children).splice(t.indexOf(e[r]),1):this.clear():a(e[r],this.toBBox)},_initFormat:function(e){var t=["return a"," - b",";"];this.compareMinX=Function("a","b",t.join(e[0])),this.compareMinY=Function("a","b",t.join(e[1])),this.toBBox=Function("a","return {minX: a"+e[0]+", minY: a"+e[1]+", maxX: a"+e[2]+", maxY: a"+e[3]+"};")}};var v=r(70328);class x{static fromReader(e){let t=[],r=e.copy(),s=(0,v.vt)();for(;r.next();)r.getBounds(s)&&t.push(r.getIndex());let n=i(9,e=>(r.setIndex(e),{minX:r.getBoundsXMin(),minY:r.getBoundsYMin(),maxX:r.getBoundsXMax(),maxY:r.getBoundsYMax()}));return n.load(t),new x(n,t.length)}constructor(e,t){this._index=e,this._size=t}get usedMemory(){return 16*this._size}search(e){let t={minX:e[0],minY:e[1],maxX:e[2],maxY:e[3]};return this._index.search(t)}}var b=r(91869),I=(r(44208),r(34727)),M=(r(37585),r(48163)),C=r(39829),S=r(16930),w=r(19419),T=r(79258),A=r(90708),F=r(31464);function O(e,t,r,s){if(s.isWebMercator){let s=(0,I.KJ)(e/T.$O.radius),i=s-360*Math.floor((s+180)/360),n=[0,0];return E(n,0,(0,I.KJ)(Math.PI/2-2*Math.atan(Math.exp(-t/T.$O.radius))),i,r),n}let i=(0,F.Cv)({x:e,y:t},s,S.A.WGS84);if(!i)return null;let n=[0,0];return E(n,0,i.y,i.x,r),n}function E(e,t,r,s,i){i%2&&(i+=1);let n=0,a=0,o=-90,l=90,h=-180,u=180;for(let e=0;e<i/2;e++){for(let t=0;t<5;t++){let r=(h+u)/2,i=+(s>r);n|=i<<29-(t+5*e),h=(1-i)*h+i*r,u=(1-i)*r+i*u}for(let t=0;t<5;t++){let s=(o+l)/2,i=+(r>s);a|=i<<29-(t+5*e),o=(1-i)*o+i*s,l=(1-i)*s+i*l}}e[2*t]=n,e[2*t+1]=a}(0,M.vt)(),(0,M.vt)();var N=r(63664),P=r(92029);class R extends N.B{static create(e,t,r,s){let i=P.o.create(e),n=Array(32);for(let e=0;e<n.length;e++)n[e]=null;return new R(i,t,r,s,n)}constructor(e,t,r,s,i){super(e),this.xNode=t,this.yNode=r,this.depth=s,this.children=i,this._objectIds=[new Set],this._count=0,this._xWorldTotal=0,this._yWorldTotal=0,this._xGeohashTotal=0,this._yGeohashTotal=0,this.next=null}static get estimatedMemory(){let e=0;return e+=64,e+=512,e+=P.o.estimatedMemory,e}get id(){return`${this.xNode}.${this.yNode}`}get containedObjectIds(){return this._objectIds}get count(){return this._count}clone(){let e=new R(this._statistics.clone(),this.xNode,this.yNode,this.depth,this.children);return e._count=this._count,e._xWorldTotal=this._xWorldTotal,e._yWorldTotal=this._yWorldTotal,e._xGeohashTotal=this._xGeohashTotal,e._yGeohashTotal=this._yGeohashTotal,e.next=this.next,e._objectIds=this._objectIds.map(e=>new Set(e)),e}insert(e,t,r,s){let i=0,n=0;if("esriGeometryPoint"===e.geometryType)i=e.readXWorldSpace(),n=e.readYWorldSpace();else{let t=e.readCentroidWorldSpace();if(null==t)return;[i,n]=t.coords}let a=O(i,n,t,r);a&&(this._count+=1,this._xWorldTotal+=i,this._yWorldTotal+=n,this._xGeohashTotal+=a[0],this._yGeohashTotal+=a[1],this._statistics.insert(e,s),this._objectIds[0].add(e.getObjectId()))}merge(e){0!==e._count&&(this._count+=e._count,this._xWorldTotal+=e._xWorldTotal,this._yWorldTotal+=e._yWorldTotal,this._xGeohashTotal+=e._xWorldTotal,this._yGeohashTotal+=e._yWorldTotal,this._statistics.merge(e._statistics),this._objectIds.push(...e._objectIds))}getCentroid(e){throw Error("getCentroid not supported for GeohashNode")}getGeometry(e,t){let[r,s,i,n]=this._getLngLatBounds(),a=(0,F.Cv)({rings:[[[r,s],[r,n],[i,n],[i,s],[r,s]]]},S.A.WGS84,e),o=(0,A.Ye)(a);return null==t?o:(0,A.Nl)(o,"esriGeometryPolygon",t,!1,!1)}getGeometricCentroid(e,t){let[r,s,i,n]=this._getLngLatBounds(),a={x:(r+i)/2,y:(s+n)/2},o=(0,F.Cv)(a,S.A.WGS84,e),l=(0,A.qN)(o);return null==t?l:(0,A.Nl)(l,"esriGeometryPoint",t,!1,!1)}getAttributes(){let e={aggregateId:this.id};for(let t of this._statistics.values())e[t.field.name]=t.value;return e.aggregateCount=this._count,e}find(e,t,r,s,i,n){if(s>=r)return this;let a=1-s%2,o=3*a+2*(1-a),l=2*a+3*(1-a),h=30-i-o,u=30-n-l,d=((e&7*a+3*(1-a)<<h)>>h)+((t&3*a+7*(1-a)<<u)>>u)*(8*a+4*(1-a)),c=this.children[d];return null==c?null:c.find(e,t,r,s+1,i+o,n+l)}_getLngLatBounds(){let e=this.depth,t=Math.ceil(e/2),r=Math.floor(e/2),s=30-(3*t+2*r),i=30-(2*t+3*r);return function(e,t){let r=-90,s=90,i=-180,n=180;for(let a=0;a<t;a++){let t=Math.ceil((a+1)/2),o=Math.floor((a+1)/2),l=1-a%2,h=30-(3*t+2*o),u=30-(2*t+3*o),d=2*l+3*(1-l),c=(7*l+3*(1-l)<<h&e.geohashX)>>h,f=(3*l+7*(1-l)<<u&e.geohashY)>>u;for(let e=3*l+2*(1-l)-1;e>=0;e--){let t=(i+n)/2,r=c&1<<e?1:0;i=(1-r)*i+r*t,n=(1-r)*t+r*n}for(let e=d-1;e>=0;e--){let t=(r+s)/2,i=f&1<<e?1:0;r=(1-i)*r+i*t,s=(1-i)*t+i*s}}return[i,r,n,s]}({geohashX:this.xNode<<s,geohashY:this.yNode<<i},this.depth)}}class D{static create(e,t,r){let s=Array(32);for(let e=0;e<s.length;e++)s[e]=null;return new D(e,t,r,s)}constructor(e,t,r,s){this.xNode=e,this.yNode=t,this.depth=r,this.children=s,this.indices=[],this.next=null}static get estimatedMemory(){let e=0;return e+=64,e+=512,e+=64,640}get id(){return`${this.xNode}.${this.yNode}`}get count(){return this.indices.length}insert(e){this.indices.push(e)}find(e,t,r,s,i,n){if(s>=r)return this;let a=1-s%2,o=3*a+2*(1-a),l=2*a+3*(1-a),h=30-i-o,u=30-n-l,d=((e&7*a+3*(1-a)<<h)>>h)+((t&3*a+7*(1-a)<<u)>>u)*(8*a+4*(1-a)),c=this.children[d];return null==c?null:c.find(e,t,r,s+1,i+o,n+l)}}class k{constructor(){this._size=0,this._depth=0,this._root=D.create(0,0,0)}destroy(){}get size(){return this._size}get depth(){return this._depth}get usedMemory(){return this._size*D.estimatedMemory}find(e,t,r){return this._root.find(e,t,r,0,0,0)}insert(e,t,r,s){let i=this._root,n=0,a=0,o=0;for(;null!==i;){if(i.insert(e.getIndex()),n>=s)return;let l=Math.ceil((n+1)/2),h=Math.floor((n+1)/2),u=1-n%2,d=30-(3*l+2*h),c=30-(2*l+3*h),f=(t&7*u+3*(1-u)<<d)>>d,p=(r&3*u+7*(1-u)<<c)>>c,m=f+p*(8*u+4*(1-u));a=a<<3*u+2*(1-u)|f,o=o<<2*u+3*(1-u)|p,i.children[m]??(i.children[m]=D.create(a,o,n+1),this._depth=Math.max(this._depth,n+1),this._size+=1),n+=1,i=i.children[m]}}forEachInBounds(e,t){let{geohashBounds:r,level:s}=e,i=this._root;for(;null!==i;){let e=i.depth,n=i.xNode,a=i.yNode;if(e>=s){t(i),i=i.next;continue}let o=Math.ceil((e+1)/2),l=Math.floor((e+1)/2),h=1-e%2,u=30-(3*o+2*l),d=30-(2*o+3*l),c=~((1<<u)-1),f=~((1<<d)-1),p=(r.xLL&c)>>u,m=(r.yLL&f)>>d,g=(r.xTR&c)>>u,_=(r.yTR&f)>>d,y=n<<3*h+2*(1-h),v=a<<2*h+3*(1-h),x=y+8*h+4*(1-h),b=v+4*h+8*(1-h),I=Math.max(y,p),M=Math.max(v,m),C=Math.min(x,g),S=Math.min(b,_),w=null,T=null;for(let e=M;e<=S;e++)for(let t=I;t<=C;t++){let r=t-y+(e-v)*(8*h+4*(1-h)),s=i.children[r];s&&(w||(w=s,w.next=i.next),T&&(T.next=s),T=s,s.next=i.next)}i=w||i.next}}}var B=r(38976),Z=r(9012);class Y extends B.n{constructor(e,t){super(e),this._reader=t,this._tree=new k,this.insert(this._reader)}get usedMemory(){return this._tree.usedMemory}forEachInCell(e,t){throw Error("Not supported.")}insert(e){let t=e.getCursor(),{featureFilter:r,sqlOptions:s,geohashLevel:i,spatialReference:n}=this.options.inner;for(;t.next();){let e=t;if(null!==r&&!r.check(e,s))continue;let a=0,o=0;if("esriGeometryPoint"===e.geometryType)a=e.readXWorldSpace(),o=e.readYWorldSpace();else{let t=e.readCentroidWorldSpace();if(null==t)continue;[a,o]=t.coords}let l=O(a,o,i,n);l&&this._tree.insert(e,l[0],l[1],i)}}put(e,t){throw Error("Not supported.")}putBounded(e,t,r,s){let{arcadeContextInfo:i,scale:n,geohashLevel:a,spatialReference:o,fields:l}=this.options.inner,h=(0,Z.N)(n,i),u=function(e,t,r,s){let i=[e.xmin,e.ymin,e.xmax,e.ymax],n=C.A.fromExtent((0,w.w1)(i,s)),a=(0,F.Cv)(n,s,S.A.WGS84,{extendedParams:{densificationStep:64*t}});if(!a)return null;let o=(0,A.Ye)(a,!1,!1),l=o.coords.filter((e,t)=>!(t%2)),h=o.coords.filter((e,t)=>t%2),u=Math.min(...l),d=Math.min(...h),c=Math.max(...l),f=Math.max(...h),p=O(u,d,r,S.A.WGS84),m=O(c,f,r,S.A.WGS84);return p&&m?{bounds:i,geohashBounds:{xLL:p[0],yLL:p[1],xTR:m[0],yTR:m[1]},level:r}:null}(r,s,a,o);null!=u&&this._tree.forEachInBounds(u,r=>{let s=null;for(let i of r.indices){this._reader.setIndex(i);let n=this._reader.getObjectId();t.has(n)||(s??=(0,b.tE)(e,r.id,()=>R.create(l,r.xNode,r.yNode,r.depth)),s.insert(this._reader,a,o,h),t.add(n))}})}}var W=r(24506),G=r(52350);class X{size(){return this.reader.getSize()}get fields(){return this.reader.fields}invalidate(){this._spatialIndex=null,this._gridIndex=null,this._geohashIndex=null}get usedMemory(){let e=0;return e+=this.reader.underlyingMemory,this._gridIndex&&(e+=this._gridIndex.usedMemory),this._geohashIndex&&(e+=this._geohashIndex.usedMemory),this._spatialIndex&&(e+=this._spatialIndex.usedMemory),e}getObjectIds(){let e=this.reader.getCursor(),t=[];for(;e.next();)t.push(e.getObjectId());return t}registerOverrides(e){this.reader.registerOverrides(e),this.invalidate()}queryFeaturesInBounds(e){let t=this._getSpatialIndex().search(e);return G.e.from(this.reader,t)}getGridIndex(e){return e.hash!==this._gridIndex?.hash&&(this._gridIndex=new W.H(e,this.reader.copy())),this._gridIndex}getGeohashIndex(e){return e.hash!==this._geohashIndex?.hash&&(this._geohashIndex=new Y(e,this.reader.copy())),this._geohashIndex}_getSpatialIndex(){return this._spatialIndex||=x.fromReader(this.reader),this._spatialIndex}}},28923(e,t,r){r.d(t,{j:()=>i});var s=r(70300);class i extends s.K{constructor(e,t,r,s,i=0){super(),this._reader=e,this._queryJSON=t,this._page=r,this._end=s,this.fileIndex=i,this.chunkId=`${this.fileIndex}.${this._page}${this.end?"e":""}`,this.normalizedChunkId=this.chunkId}get reader(){return this._reader}get first(){return 0===this._page}get end(){return this._end}get queryInfo(){return{type:"snapshot",chunkId:this.chunkId,queryJSON:this._queryJSON,page:this._page,size:this.size(),end:this.end}}get lodInfo(){return null}getTileReader(e){let t=this.queryFeaturesInBounds(e.bounds);return t.setTransformForDisplay(e.transform),t}}},5162(e,t,r){r.d(t,{HJ:()=>a,Im:()=>u,KN:()=>l});var s=r(39516),i=r(70300),n=r(8446);class a{static async create(e){let{metadata:t,definitionExpression:r}=e,i=r?await(0,s.GP)(r,t.fieldsIndex):null;return new a(t,i,r)}constructor(e,t,r){this.metadata=e,this._clause=t,this._definitionExpression=r}get hash(){return this._definitionExpression}testFeature(e){return null==this._clause||this._clause.testFeature(e)}}class o{constructor(){this.modified=new Map,this.removed=new Set}modify(e){this.modified.set(e.objectId,e),this.removed.has(e.objectId)&&this.removed.delete(e.objectId)}remove(e){this.modified.delete(e),this.removed.add(e)}get isEmpty(){return 0===this.modified.size&&0===this.removed.size}applyWhereClause(e){let t=new o;for(let[r,s]of this.modified)e.testFeature(s)?t.modified.set(r,s):t.removed.add(s.objectId);for(let e of this.removed)t.removed.add(e);return t}}class l extends i.K{constructor(e){super(),this._reader=e,this.chunkId="override",this.normalizedChunkId="override"}static fromFeatures(e,t){let r=n.K.fromOptimizedFeatures(e,t);return new l(r)}get reader(){return this._reader}get queryInfo(){return{}}get first(){return!1}get end(){return!1}get lodInfo(){return null}getTileReader(e){if(!this._reader.getSize())return null;let t=this.queryFeaturesInBounds(e.bounds);return t.setTransformForDisplay(e.transform),t}}class h{constructor(e,t){this.inner=e,this.isWeak=t,this.lastWeak=null}get isStrong(){return!this.isWeak}}class u{constructor(e){this._parameters=e,this._overrides=new Map,this._update=new o,this._lastCleanup=0}update(e){this._parameters=e}hasOverride(e){return this._overrides.has(e)}onChunkInsert(e){if(this._overrides.size){let t=e.reader.getCursor();for(;t.next();){let e=t.getObjectId(),r=this._overrides.get(e);if(r?.lastWeak&&(r.lastWeak=null),r?.isWeak){let e=t.readOptimizedFeatureWorldSpace();e.attributes={...r.inner?.attributes??{},...e.attributes},r.inner=e,this._update.modify(e),this.invalidate()}}}e.registerOverrides(this)}apply(e,t){let{updateWeak:r,removeWeak:s,update:i,remove:n,release:a}=e.commands;this.invalidate();for(let e of r){let t=new h(e,!0),r=this._overrides.get(e.objectId);r?.isStrong?r.lastWeak=t:(this._overrides.set(e.objectId,t),this._update.modify(e))}for(let e of i){let t=new h(e,!1),r=this._overrides.get(e.objectId);t.lastWeak=r?.isWeak?r:r?.lastWeak??null,this._overrides.set(e.objectId,t),this._update.modify(e)}for(let e of s){let t=new h(null,!0),r=this._overrides.get(e);r?.isStrong?r.lastWeak=t:(this._overrides.set(e,t),this._update.remove(e))}for(let e of n){let t=new h(null,!1),r=this._overrides.get(e);t.lastWeak=r?.isWeak?r:r?.lastWeak??null,this._overrides.set(e,t),this._update.remove(e)}if(a.length){let e=new Set;for(let t of a){let r=this._overrides.get(t);r?.lastWeak?(this._overrides.set(t,r.lastWeak),null==r.lastWeak.inner?this._update.remove(t):this._update.modify(r.lastWeak.inner)):r&&!r.isWeak&&(this._overrides.delete(t),e.add(t))}t.forEachUnsafe(t=>{let r=t.getObjectId();e.has(r)&&(this._update.modify(t.readOptimizedFeatureWorldSpace()),e.delete(r))});for(let t of e.values())this._update.remove(t)}}clearWeakOverrides(){for(let[e,t]of this._overrides.entries())t.isWeak&&this._overrides.delete(e);this.invalidate()}cleanup(e){if(this._overrides.size<1e4)return;let t=performance.now();if(t-this._lastCleanup<1e3)return;this._lastCleanup=t;let r=this._getWeakDeletions();if(!(r.size<1e4)){for(let t of e){let e=t.reader.withoutOverrides().getCursor();for(;e.next();){let t=e.getObjectId();r.delete(t)}}for(let e of r)this._overrides.delete(e);r.size&&this.invalidate()}}takeOverrideUpdate(){let e=this._update;return e.isEmpty?null:(this._update=new o,e.applyWhereClause(this._parameters))}asChunk(){let e=this._parameters;if(this._lastOverrideParametersHash!==e.hash&&(this._lastOverrideParametersHash=e.hash,this._chunk=null),!this._chunk){let t=[];for(let r of this._overrides.values())null!=r.inner&&e.testFeature(r.inner)&&t.push(r.inner);this._chunk=l.fromFeatures(t,e.metadata)}return this._chunk}invalidate(){this._chunk=null}putWeakObjectIdsFromGlobalIds(e,t,r){for(let[s,i]of this._overrides.entries())if(i.isWeak&&null!=i.inner){let n=i.inner.attributes[r];n&&t.has(n)&&!e.has(n)&&e.set(n,s)}else if(null!=i.lastWeak&&null!=i.lastWeak.inner){let n=i.lastWeak.inner.attributes[r];n&&t.has(n)&&!e.has(n)&&e.set(n,s)}}_getWeakDeletions(){let e=new Set;for(let[t,r]of this._overrides.entries())r.isWeak&&null==r.inner&&e.add(t);return e}}},44320(e,t,r){r.d(t,{I:()=>l});var s=r(65529),i=r(44208),n=r(70328),a=r(30661),o=r(5162);class l{constructor(){this._chunks=new Map,this._chunksToRemove=[],this.events=new s.bk,this.featureAdapter=new a.Z}destroy(){this.clear()}clear(){for(let e of this._chunks.values())this._chunksToRemove.push(e);this._chunks.clear(),this._overrides?.clearWeakOverrides()}get usedMemory(){let e=0;for(let t of this._chunks.values())e+=t.usedMemory;return e}async update(e){if(this._overrides){let t=await o.HJ.create(e);this._overrides.update(t)}this._postQueryFilter=e.postQueryFilter;for(let{reader:e}of this.insertedChunks())e.applyPostQueryFilter(this._postQueryFilter);this._schema=e}*chunks(){this._overrides&&(yield this._overrides.asChunk()),yield*this._chunks.values()}insertedChunks(){return this._chunks.values()}insert(e){(0,i.A)("esri-2d-update-debug")&&console.debug(`Chunk[${e.chunkId}] SourceChunkStore.insert`),this._overrides?.onChunkInsert(e),this._chunks.set(e.chunkId,e),this._postQueryFilter&&e.reader.applyPostQueryFilter(this._postQueryFilter),this.events.emit("changed")}remove(e){(0,i.A)("esri-2d-update-debug")&&console.debug(`Chunk[${e.chunkId}] SourceChunkStore.remove`),this._chunks.delete(e.chunkId),this._chunksToRemove.push(e)}removeById(e){(0,i.A)("esri-2d-update-debug")&&console.debug(`Chunk[${e}] SourceChunkStore.remove`);let t=this._chunks.get(e);this._chunks.delete(e),t&&this._chunksToRemove.push(t)}cleanup(){let e=this._chunksToRemove;return this._chunksToRemove=[],this._overrides?.cleanup(this._chunks.values()),e}async applyOverride(e){if(null==this._overrides){let e=await o.HJ.create(this._schema);this._overrides=new o.Im(e);for(let e of this._chunks.values())this._overrides.onChunkInsert(e)}this._overrides.apply(e,this),this.events.emit("changed");for(let e of this._chunks.values())e.invalidate()}takeOverrideUpdate(){return this._overrides?.takeOverrideUpdate()}refresh(){this.events.emit("refresh")}forEach(e){let t=new Set;for(let r of this.chunks()){let s=r.reader.getCursor();for(;s.next();){let r=s.getObjectId();t.has(r)||(e(s.copy()),t.add(r))}}}forEachUnsafe(e){let t=new Set;for(let r of this.chunks()){let s=r.reader.getCursor();for(;s.next();){let r=s.getObjectId();t.has(r)||(e(s),t.add(r))}}}mapObjectIdsFromGlobalIds(e,t){let r=new Map,s=new Set(e);return this._overrides?.putWeakObjectIdsFromGlobalIds(r,s,t),this._forEachUnsafeIgnoreOverrides(e=>{let i=e.readAttribute(t);if(i&&s.has(i)&&!r.has(i)){let t=e.getObjectId();r.set(i,t)}}),r}forEachInBounds(e,t){let r=new Set;for(let s of this.chunks()){let i=s.queryFeaturesInBounds(e);for(;i.next();){let e=i.getObjectId();r.has(e)||(t(i.copy()),r.add(e))}}}forEachBounds(e,t){let r=(0,n.vt)();for(let s of e)s.getBounds(r)&&t(r)}_forEachUnsafeIgnoreOverrides(e){let t=new Set;for(let r of this._chunks.values()){let s=r.reader.withoutOverrides().getCursor();for(;s.next();){let r=s.getObjectId();t.has(r)||(e(s),t.add(r))}}}}},35258(e,t,r){r.d(t,{i:()=>n});var s=r(16930),i=r(95466);class n{static minimal(e,t,r=[],s=!1,a=!1){return new n({geometryType:e,hasZ:s,hasM:a,fieldsIndex:new i.A(r).toJSON(),featureIdInfo:{type:"object-id",fieldName:t},subtypes:null,subtypeField:null,types:null,globalIdField:null,spatialReference:null,outSpatialReference:null,attributeSpatialReference:null,timeInfo:null,timeReferenceUnknownClient:null,dateFieldsTimeZone:null,typeIdField:null,layerType:void 0})}static createFeature(e){return new n(e)}constructor(e){let t;this._options=e,this._fieldsIndex=i.A.fromJSON(e.fieldsIndex),e.spatialReference&&(this._spatialReference=e.spatialReference instanceof s.A?e.spatialReference:s.A.fromJSON(e.spatialReference)),e.outSpatialReference&&(this._outSpatialReference=e.outSpatialReference instanceof s.A?e.outSpatialReference:s.A.fromJSON(e.outSpatialReference)),e.attributeSpatialReference&&(this._attributeSpatialReference=e.attributeSpatialReference instanceof s.A?e.attributeSpatialReference:s.A.fromJSON(e.attributeSpatialReference)),"object-id"===e.featureIdInfo.type&&(t=e.featureIdInfo.fieldName),this._arcadeSchema={fields:this.fieldsIndex.fields,fieldsIndex:this.fieldsIndex,geometryType:this.geometryType,objectIdField:t,globalIdField:this._options.globalIdField,spatialReference:this._spatialReference,timeInfo:this._options.timeInfo,typeIdField:this._options.typeIdField??void 0,types:this._options.types??void 0,subtypeField:this._options.subtypeField,subtypes:this._options.subtypes??void 0,datesInUnknownTimezone:this._options.timeReferenceUnknownClient??void 0,dateFieldsTimeZone:this._options.dateFieldsTimeZone??void 0}}get fieldsIndex(){return this._fieldsIndex}get geometryType(){return"esriGeometryMultiPatch"===this._options.geometryType?"esriGeometryPolygon":this._options.geometryType}get hasZ(){return this._options.hasZ}get hasM(){return this._options.hasM}get serviceGeometryType(){return this._options.geometryType}get subtypeField(){return this._options.subtypeField}get timeInfo(){return this._options.timeInfo}get featureIdInfo(){return this._options.featureIdInfo}get globalIdField(){return this._options.globalIdField}get arcadeSchema(){return this._arcadeSchema}get spatialReference(){return this._spatialReference}get outSpatialReference(){return this._outSpatialReference}get attributeSpatialReference(){return this._attributeSpatialReference}get timeReferenceUnknownClient(){return this._options.timeReferenceUnknownClient}get layerType(){return this._options.layerType}weakCloneWithAdditionalFields(e){let t=this._fieldsIndex.toJSON();return t.fields.push(...e),new n({fieldsIndex:t,geometryType:this.geometryType,hasZ:this.hasZ,hasM:this.hasM,globalIdField:this.globalIdField,featureIdInfo:this.featureIdInfo,spatialReference:this.spatialReference,attributeSpatialReference:this.attributeSpatialReference,outSpatialReference:this.outSpatialReference,subtypeField:this.subtypeField,subtypes:this._options.subtypes,timeInfo:this.timeInfo,timeReferenceUnknownClient:this.timeReferenceUnknownClient,dateFieldsTimeZone:this._options.dateFieldsTimeZone,typeIdField:this._options.typeIdField,types:this._options.types,layerType:this._options.layerType})}weakCloneWithResolvedSpatialReference(){return new n({fieldsIndex:this._fieldsIndex.toJSON(),geometryType:this.geometryType,hasZ:this.hasZ,hasM:this.hasM,globalIdField:this.globalIdField,featureIdInfo:this.featureIdInfo,spatialReference:this.outSpatialReference,outSpatialReference:this.outSpatialReference,attributeSpatialReference:this.attributeSpatialReference,subtypeField:this.subtypeField,subtypes:this._options.subtypes,timeInfo:this.timeInfo,timeReferenceUnknownClient:this.timeReferenceUnknownClient,dateFieldsTimeZone:this._options.dateFieldsTimeZone,typeIdField:this._options.typeIdField,types:this._options.types,layerType:this._options.layerType})}}},97633(e,t,r){r.d(t,{P:()=>i});var s=r(73250);class i{constructor(e){this._valid=s.y.create(e),this._data=Array(e)}get usedMemory(){let e=this._valid.usedMemory;if(this._data.length>0){let t="string"==typeof this._data[0]?64:16;e+=this._data.length*t}return e}has(e){return this._valid.has(e)}set(e,t){this._valid.set(e),this._data[e]=t}get(e){return this._data[e]}}},17155(e,t,r){r.d(t,{Y:()=>D});var s=r(66131),i=r(54639),n=r(87992),a=r(65864),o=r(90708),l=r(92722);class h{constructor(e,t,r,s){this._geometry=e,this._type=t,this._hasZ=r,this._hasM=s}toJsonGeometry(){return(0,o.zv)(l.A.fromJSON(this._geometry),function(e){switch(e){case"point":return"esriGeometryPoint";case"multipoint":return"esriGeometryMultipoint";case"polyline":return"esriGeometryPolyline";case"polygon":return"esriGeometryPolygon";case"extent":return"esriGeometryEnvelope";default:throw Error(`Unexpected type: ${e}`)}}(this._type),this._hasZ,this._hasM)}toAccessorGeometry(e){let t=this.toJsonGeometry();return t.spatialReference=e,(0,a.rS)(t)}toGxGeometry(e){return e.fromFlatGeometry((0,n.Nh)(this._type,this._geometry,null))}}var u=r(44208),d=r(69397),c=r(44729),f=r(15032),p=r(36745),m=r(70328),g=r(78957),_=r(62577),y=r(62815),v=r(27647),x=r(43334),b=r(98623),I=r(97633);const M=(0,u.A)("featurelayer-simplify-thresholds")??[.5,.5,.5,.5],C=M[0],S=M[1],w=M[2],T=M[3],A=(0,u.A)("featurelayer-simplify-payload-size-factors")??[1,2,4],F=A[0],O=A[1],E=A[2],N=(0,u.A)("featurelayer-simplify-mobile-factor")??2,P=(0,u.A)("esri-mobile"),R=4294967295;class D{constructor(e){this.metadata=e,this.type="FeatureSetReader",this._overrides=null,this._postQueryFilteredIds=new Set,this._joined=[],this._objectIdToIndex=null,this._boundsBuffer=[],this._deleted=new Set,this._caches=new Map,this.arcadeDeclaredClass="esri.arcade.Feature",this._contextTimeZone=null}destroy(){}[Symbol.dispose](){this.destroy()}get geometryDensity(){return{sampleCount:0,densePairCount:0}}getAreaSimplificationThreshold(e,t){let r=1,s=P?N:1;t>4e6?r=E*s:t>1e6?r=O*s:t>5e5?r=F*s:t>1e5&&(r=s);let i=0;return e>4e3?i=T*r:e>2e3?i=w*r:e>100?i=S:e>15&&(i=C),i}getBounds(e){!function(e,t){if(!(e.length>t))for(;e.length<=t;)e.push(0)}(this._boundsBuffer,4*this.getIndex()+4);let t=this.getBoundsXMin();if(t===R||!isFinite(t))return!1;if(0===this.getBoundsXMin()){let t=this.readGeometryWorldSpace();if(t?.isPoint&&0===t.coords[0]&&0===t.coords[1])return(0,m.BI)(e,0,0,0,0),!0;if(!t)return this.setBoundsXMin(R),!1;let r=1/0,s=1/0,i=-1/0,n=-1/0;return t.forEachVertex((e,t)=>{r=Math.min(r,e),s=Math.min(s,t),i=Math.max(i,e),n=Math.max(n,t)}),this.setBoundsXMin(r),this.setBoundsYMin(s),this.setBoundsXMax(i),this.setBoundsYMax(n),(0,m.BI)(e,r,s,i,n),!0}let r=this.getBoundsXMin(),s=this.getBoundsYMin(),i=this.getBoundsXMax(),n=this.getBoundsYMax();return(0,m.BI)(e,r,s,i,n),!0}getBoundsXMin(){return this._boundsBuffer[4*this.getIndex()]}setBoundsXMin(e){this._boundsBuffer[4*this.getIndex()]=e}getBoundsYMin(){return this._boundsBuffer[4*this.getIndex()+1]}setBoundsYMin(e){this._boundsBuffer[4*this.getIndex()+1]=e}getBoundsXMax(){return this._boundsBuffer[4*this.getIndex()+2]}setBoundsXMax(e){this._boundsBuffer[4*this.getIndex()+2]=e}getBoundsYMax(){return this._boundsBuffer[4*this.getIndex()+3]}setBoundsYMax(e){this._boundsBuffer[4*this.getIndex()+3]=e}readAttributeAsTimestamp(e){let t=this.readAttribute(e);return"string"==typeof t?new Date(t).getTime():"number"==typeof t||null==t?t:null}readAttribute(e,t=!1){let r=this._readAttribute(e,t);if(void 0!==r)return r;for(let r of this._joined){r.setIndex(this.getIndex());let s=r._readAttribute(e,t);if(void 0!==s)return s}}readAttributes(){let e=this._readAttributes();for(let t of this._joined){t.setIndex(this.getIndex());let r=t._readAttributes();for(let t of Object.keys(r))e[t]=r[t]}return e}joinAttributes(e){this._joined.push(e)}registerOverrides(e){this._overrides=e}withoutOverrides(){let e=this.copy();return e._overrides=null,e}readOptimizedFeatureWorldSpace(){let e=this.readGeometryWorldSpace(),t=this.readAttributes(),r=this.readCentroidWorldSpace();return new x.Om(e,t,r,this.getObjectId(),this.getDisplayId())}readLegacyFeatureForDisplay(){let e=this.readCentroidForDisplay();return{attributes:this.readAttributes(),geometry:this.readLegacyGeometryForDisplay(),centroid:(e&&{x:e.coords[0],y:e.coords[1]})??null}}readLegacyFeatureWorldSpace(){let e=this.readCentroidWorldSpace();return{attributes:this.readAttributes(),geometry:this._readLegacyGeometryWorldSpace(),centroid:(e&&{x:e.coords[0],y:e.coords[1]})??null}}readLegacyGeometryForDisplay(){let e=this.readGeometryForDisplay();return(0,o.zv)(e,this.geometryType,!1,!1)}readXForDisplay(){return this._readX()}readYForDisplay(){return this._readY()}readXWorldSpace(){let e=this._readX(),t=this.getInTransform();return null==t?e:e*t.scale[0]+t.translate[0]}readYWorldSpace(){let e=this._readY(),t=this.getInTransform();return null==t?e:t.translate[1]-e*t.scale[1]}readGeometryForDisplay(){let e=this._readGeometryDeltaDecoded(!0);if(!e){let e=this._createDeltaQuantizedGeometryFromServerCentroid();return e?e.deltaDecode():null}return e}readGeometryForDisplayTransformed(e){let t=this.readGeometryForDisplay();if(t&&"esriGeometryPolyline"===this.metadata.geometryType&&(t=(0,o.kz)(t,this.metadata.geometryType,e.scale[0])),t&&=(0,o.Nl)(t,this.metadata.geometryType,e,t.hasZ,t.hasM,!0),!t){let t=this.readCentroidForDisplay();if(!t)return null;let r=(0,_.IE)(e,t.coords[0]),s=(0,_.B2)(e,t.coords[1]);return this._createDeltaQuantizedExtrudedGeometry(r,s).deltaDecode()}return t}_transformToWorldSpace(e){if(!e)return null;e=e.clone();let t=this.getInTransform();t&&(0,o.aQ)(e,t);let r=(0,y.d)(this.metadata.spatialReference,this.metadata.outSpatialReference);if(e.hasZ&&1!==r){let{stride:t,coords:s}=e;for(let e=2;e<s.length;e+=t)s[e]*=r}return e}readGeometryWorldSpace(){let e=this._readGeometry();return e||=this._createDeltaQuantizedGeometryFromServerCentroid(),this._transformToWorldSpace(e)}readCentroidForDisplay(){let e=this.readGeometryForDisplay();return e?this._computeDisplayCentroid(e):this._readServerCentroid()}readCentroidWorldSpace(){let e=this.readGeometryForDisplay(),t=e?this._computeDisplayCentroid(e):this._readServerCentroid();return this._transformToWorldSpace(t)}setCache(e){let t=this._caches.get(e);t??(t=new I.P(this.getSize()),this._caches.set(e,t)),this._activeCache=t}setCachedValue(e){this._activeCache.set(this.getIndex(),e)}hasCachedValue(){return this._activeCache.has(this.getIndex())}getCachedValue(){return this._activeCache.get(this.getIndex())}delete(){this._deleted.add(this.getObjectId())}getByReferenceVertexCount(){return null}get underlyingMemory(){let e=0;e+=(0,d.Qf)(this._boundsBuffer);for(let t of this._caches.values())e+=t.usedMemory;return e}getDisplayTransform(){return null}_readGeometryDeltaDecoded(e){let t=this._readGeometry(e);if("esriGeometryPoint"===this.geometryType||!t)return t;let r=this.getInTransform();if(!t||!r)return t;let s=r.scale[2]??1,i=r.translate[2]??0,n=r.scale[3]??1,a=r.translate[3]??0,{hasZ:o,hasM:l,stride:h,size:u,coords:d}=t,c=o&&(1!==s||0!==i),f=l&&(1!==n||0!==a);if(c||f){let e=o?3:2;for(let t=0,r=h*u;t<r;t+=h)c&&(d[t+2]=s*d[t+2]+i),f&&(d[t+e]=n*d[t+e]+a)}return t.deltaDecode()}get contextTimeZone(){return this._contextTimeZone}set contextTimeZone(e){this._contextTimeZone=e}readArcadeFeature(){return this}hasField(e){return this.fields.has(e)||this._joined.some(t=>t.hasField(e))}geometry(){let e,t=this.readGeometryWorldSpace();if(null==t)return null;switch(this.geometryType){case"esriGeometryPoint":e="point";break;case"esriGeometryMultipoint":e="multipoint";break;case"esriGeometryPolyline":e="polyline";break;case"esriGeometryPolygon":e="polygon";break;default:throw Error(`Unexpected geometry type: ${this.geometryType}`)}return function(e,t,r){let s=t.hasZ??!1,n=t.hasM??!1;return i.R.of(e,r,s,n,new h(t,e,s,n))}(e,{lengths:t.lengths,coords:t.coords,hasZ:this.hasZ,hasM:this.hasM},this.metadata.outSpatialReference)}autocastArcadeDate(e,t){return t&&t instanceof Date?this.isUnknownDateTimeField(e)?s.lY.unknownDateJSToArcadeDate(t):s.lY.dateJSAndZoneToArcadeDate(t,this.contextTimeZone??"system"):t}isUnknownDateTimeField(e){return this.metadata.fieldsIndex.getTimeZone(e)===b.L}field(e){let t=this.fields.get(e);if(t)switch(t.type){case"date-only":case"esriFieldTypeDateOnly":return c.n.fromReader(this.readAttribute(e,!1));case"time-only":case"esriFieldTypeTimeOnly":return f.k.fromReader(this.readAttribute(e,!1));case"esriFieldTypeTimestampOffset":case"timestamp-offset":return s.lY.fromReaderAsTimeStampOffset(this.readAttribute(e,!1));case"date":case"esriFieldTypeDate":return this.autocastArcadeDate(e,this.readAttribute(e,!0));default:return this.readAttribute(e,!1)}for(let r of this._joined)if(r.setIndex(this.getIndex()),t=r.fields.get(e),t)switch(t.type){case"date-only":case"esriFieldTypeDateOnly":return c.n.fromReader(r._readAttribute(e,!1));case"time-only":case"esriFieldTypeTimeOnly":return f.k.fromReader(r._readAttribute(e,!1));case"esriFieldTypeTimestampOffset":case"timestamp-offset":return s.lY.fromReaderAsTimeStampOffset(r._readAttribute(e,!1));case"date":case"esriFieldTypeDate":return this.autocastArcadeDate(e,r._readAttribute(e,!0));default:return this.readAttribute(e,!1)}throw Error(`Field ${e} does not exist`)}setField(e,t){throw Error("Unable to update feature attribute values, feature is readonly")}keys(){return this.fields.fields.map(e=>e.name)}isEmpty(){return this.fields.fields.length<=0&&null==this.geometry()}castToText(e=!1){if(!e)return JSON.stringify(this.readLegacyFeatureForDisplay());let t=this.readLegacyFeatureForDisplay();if(!t)return JSON.stringify(null);let r={geometry:t.geometry,attributes:{...t.attributes}};for(let e in r.attributes){let t=r.attributes[e];t instanceof Date&&(r.attributes[e]=t.getTime())}return JSON.stringify(r)}gdbVersion(){return null}fullSchema(){return this.metadata.arcadeSchema}castAsJson(){return{attributes:this._readAttributes(),geometry:this.geometry()?.castAsJson()??null}}castAsJsonAsync(){return Promise.resolve(this.castAsJson())}applyPostQueryFilter(e){if(this._postQueryFilteredIds.clear(),!e)return;let t=this.getCursor();for(;t.next();)e.check(t,{currentUser:null})||this._postQueryFilteredIds.add(t.getObjectId())}_getExists(){let e=this.getObjectId();return!this._deleted.has(e)&&(this._overrides?!this._overrides.hasOverride(e):!this._postQueryFilteredIds.has(e))}_computeDisplayCentroid(e){if(null==this.getInTransform())return(0,v.Q)(e);let t=p.z.fromOptimized(e,this.geometryType);t.yFactor*=-1;let r=(0,g.d)(t);return r?isNaN(r[0])||isNaN(r[1])?(0,v.Q)(e):(r[1]*=-1,new l.A([],r)):null}copyInto(e){e._joined=this._joined,e._overrides=this._overrides,e._objectIdToIndex=this._objectIdToIndex,e._boundsBuffer=this._boundsBuffer,e._activeCache=this._activeCache,e._caches=this._caches,e._contextTimeZone=this._contextTimeZone,e._postQueryFilteredIds=this._postQueryFilteredIds,e._deleted=this._deleted}_readLegacyGeometryWorldSpace(){let e=this.readGeometryWorldSpace();return(0,o.zv)(e,this.geometryType,!1,!1)}_createDeltaQuantizedGeometryFromServerCentroid(){let e=this._readServerCentroid();if(!e)return null;let[t,r]=e.coords;return this._createDeltaQuantizedExtrudedGeometry(t,r)}_createDeltaQuantizedExtrudedGeometry(e,t){return"esriGeometryPolyline"===this.geometryType?this._createDeltaQuantizedExtrudedLine(e,t):this._createDeltaQuantizedExtrudedQuad(e,t)}_createDeltaQuantizedExtrudedQuad(e,t){return new l.A([5],[e-1,t,1,-1,1,1,-1,1,-1,-1])}_createDeltaQuantizedExtrudedLine(e,t){return new l.A([2],[e-1,t+1,1,-1])}}},52350(e,t,r){r.d(t,{e:()=>a});var s=r(62577),i=r(90708),n=r(17155);class a extends n.Y{static from(e,t){if(e instanceof this){let r=new Set(t),s=e._indices.filter(e=>r.has(e)),i=e.copy();return i._indices=s,i._currentIndex=-1,i}return new a(e.copy(),t)}constructor(e,t){super(e.metadata),this._currentIndex=-1,this._displayTransform=null,this._reader=e,this._indices=t}setTransformForDisplay(e){let t=this._reader.getInTransform();if(null==t)return void(this._displayTransform=(0,s.Q1)(e));let r=(0,s.Q1)(t),i=(0,s.Q1)(e),[n,a]=r.scale,[o,l]=r.translate,[h,u]=i.scale,[d,c]=i.translate,f=n/h,p=a/u,m=(o-d)/h,g=(l-c)/u;this._displayTransform={originPosition:"lowerLeft",scale:[1/f,1/p,1,1],translate:[-m/f,-g/p,0,0]}}getInTransform(){return this._reader.getInTransform()}getDisplayTransform(){return this._displayTransform}get fields(){return this._reader.fields}get hasNext(){return this._currentIndex+1<this._indices.length}getSize(){return this._indices.length}getCursor(){return this.copy()}copy(){let e=new a(this._reader.copy(),this._indices);return e._currentIndex=this._currentIndex,e._displayTransform=this._displayTransform,e._processorAttributes=this._processorAttributes,e}get contextTimeZone(){return this._reader.contextTimeZone}set contextTimeZone(e){this._reader.contextTimeZone=e}get usedMemory(){return 32+this._reader.usedMemory}setProcessorAttributes(e){this._processorAttributes=Object.assign(this._processorAttributes??{},e)}_nextIndex(){return++this._currentIndex<this._indices.length&&(this._reader.setIndex(this._indices[this._currentIndex]),!0)}next(){for(;this._nextIndex()&&!this._reader._getExists(););return this._currentIndex<this._indices.length}readXForDisplay(){return this._displayTransform?(0,s.IE)(this._displayTransform,this._reader.readXForDisplay()):this._reader.readXForDisplay()}readYForDisplay(){return this._displayTransform?(0,s.B2)(this._displayTransform,this._reader.readYForDisplay()):this._reader.readYForDisplay()}readGeometryForDisplay(){return this._displayTransform?this._reader.readGeometryForDisplayTransformed(this._displayTransform):this._reader.readGeometryForDisplay()}readCentroidForDisplay(){let e=this._reader.readCentroidForDisplay()?.clone();if(e){let[t,r]=e.coords;this._displayTransform&&(e.coords[0]=(0,s.IE)(this._displayTransform,t),e.coords[1]=(0,s.B2)(this._displayTransform,r))}return e}get geometryType(){return this._reader.geometryType}get hasFeatures(){return this._reader.hasFeatures}get exceededTransferLimit(){return this._reader.exceededTransferLimit}get hasZ(){return this._reader.hasZ}get hasM(){return this._reader.hasM}readAttribute(e,t=!1){let r=this._reader.readAttribute(e,t);return null==r&&this._processorAttributes?this._processorAttributes[e]:r}readAttributes(){return{...this._processorAttributes,...this._reader.readAttributes()}}joinAttributes(e){return this._reader.joinAttributes(e)}getBounds(e){return this._reader.getBounds(e)}getAttributeHash(){return this._reader.getAttributeHash()}getObjectId(){return this._reader.getObjectId()}getDisplayId(){return this._reader.getDisplayId()}setDisplayId(e){return this._reader.setDisplayId(e)}setIndex(e){return this._reader.setIndex(e)}getIndex(){return this._reader.getIndex()}readXWorldSpace(){return this._reader.readXWorldSpace()}readYWorldSpace(){return this._reader.readYWorldSpace()}_readX(){return this._reader.readXForDisplay()}_readY(){return this._reader.readYForDisplay()}_readServerCentroid(){return this._reader._readServerCentroid()}readLegacyFeatureForDisplay(){let e=this.readCentroidForDisplay();return{attributes:this.readAttributes(),geometry:this.readLegacyGeometryForDisplay(),centroid:(e&&{x:e.coords[0],y:e.coords[1]})??null}}readLegacyGeometryForDisplay(){let e=this.readGeometryForDisplay();return(0,i.zv)(e,this.geometryType,!1,!1)}readGeometryArea(){return this._displayTransform?this._reader.readGeometryForDisplayTransformed(this._displayTransform)?.area()??0:this._reader.readGeometryArea()}readGeometryWorldSpace(){return this._reader.readGeometryWorldSpace()}_readGeometry(){return this._reader._readGeometry()}get geometryDensity(){return this._reader.geometryDensity}_readAttribute(e,t){throw Error("Error: Should not be called. Underlying _reader should be used instead")}_readAttributes(){throw Error("Error: Should not be called. Underlying _reader should be used instead")}readArcadeFeature(){return this._reader.readArcadeFeature()}geometry(){return this._reader.geometry()}field(e){return this._reader.field(e)}hasField(e){return this._reader.hasField(e)}setField(e,t){return this._reader.setField(e,t)}keys(){return this._reader.keys()}castToText(e=!1){return this._reader.castToText(e)}}},8446(e,t,r){r.d(t,{K:()=>d});var s=r(44208),i=r(90708),n=r(43334),a=r(95466),o=r(17155);const l=(0,s.A)("featurelayer-snapping-density-sample-interval"),h=(0,s.A)("featurelayer-snapping-density-max-vertices-per-feature"),u=(0,s.A)("featurelayer-snapping-density-max-distance")**2;class d extends o.Y{static fromFeatures(e,t){let{geometryType:r,hasZ:s,hasM:n,featureIdInfo:a}=t,o=(0,i.Di)([],e,r,s,n,a);for(let t=0;t<o.length;t++)o[t].displayId=e[t].displayId;return d.fromOptimizedFeatures(o,t)}static fromFeatureSet(e,t){let r=(0,i.q3)(e,t.featureIdInfo);return d.fromOptimizedFeatureSet(r,t)}static fromOptimizedFeatureSet(e,t){let r=d.fromOptimizedFeatures(e.features,t,e.transform);return r._exceededTransferLimit=e.exceededTransferLimit,r._fieldsIndex=new a.A(e.fields),r}static fromOptimizedFeatures(e,t,r){let s=new d(e,t);return s._fieldsIndex=t.fieldsIndex,s._transform=r,r&&("esriGeometryPolyline"===s.geometryType||"esriGeometryPolygon"===s.geometryType)&&(s._geometryDensity=function(e){let t={sampleCount:0,densePairCount:0};for(let r=0;r<e.length;r+=l){let s=e[r].geometry;if(!s)continue;let{coords:i,lengths:n,stride:a}=s,o=Math.min(n[0]??0,h);for(let e=1;e<o;e++){let r=e*a;t.sampleCount++;let s=i[r],n=i[r+1];s*s+n*n<=u&&t.densePairCount++}}return t}(e)),s}static empty(e){return new d([],e)}constructor(e,t){super(t),this._geometryDensity={sampleCount:0,densePairCount:0},this._featureIndex=-1,this._exceededTransferLimit=!1,this._fieldsIndex=null,this._hasZ=!1,this._hasM=!1,this._geometryType=t.geometryType,this._hasZ=t.hasZ,this._hasM=t.hasM,this._features=e}get fields(){return this._fieldsIndex}get geometryType(){return this._geometryType}get hasFeatures(){return!!this._features.length}get hasNext(){return this._featureIndex+1<this._features.length}get exceededTransferLimit(){return this._exceededTransferLimit}get hasZ(){return this._hasZ}get hasM(){return this._hasM}get geometryDensity(){return this._geometryDensity}get _current(){return this._features[this._featureIndex]}get usedMemory(){return this._current.usedMemory}getSize(){return this._features.length}getCursor(){return this.copy()}getInTransform(){return this._transform}getAttributeHash(){let e="";for(let t in this._current.attributes)e+=this._current.attributes[t];return e}getIndex(){return this._featureIndex}setIndex(e){this._featureIndex=e}getObjectId(){return this._current?.objectId}getDisplayId(){return this._current.displayId}setDisplayId(e){this._current.displayId=e}getByReferenceVertexCount(){return this._current.vertexCount}copy(){let e=new d(this._features,this.metadata);return this.copyInto(e),e}next(){for(;++this._featureIndex<this._features.length&&!this._getExists(););return this._featureIndex<this._features.length}readGeometryArea(){return(0,n.N3)(this._current)?(0,i.Rk)(this._current.geometry,2):0}_readX(){return(0,n.N3)(this._current)?this._current.geometry.coords[0]:0}_readY(){return(0,n.N3)(this._current)?this._current.geometry.coords[1]:0}_readGeometry(){return(0,n.N3)(this._current)?this._current.geometry??null:null}_readServerCentroid(){return this._current.centroid}_readAttribute(e,t){if(!this._fieldsIndex){let t=this._current.attributes[e];if(void 0!==t)return t;let r=e.toLowerCase();for(let e in this._current.attributes)if(e.toLowerCase()===r)return this._current.attributes[e];return}let r=this._fieldsIndex.get(e);if(!r)return;let s=this._current.attributes[r.name];return null==s?s:t&&this.fields.isDateField(e)?new Date(s):s}_readAttributes(){return this._current.attributes}copyInto(e){super.copyInto(e),e._featureIndex=this._featureIndex,e._transform=this._transform,e._fieldsIndex=this._fieldsIndex,e._geometryDensity=this._geometryDensity}}},16630(e,t,r){r.d(t,{s:()=>l}),r(44208);var s=r(70328),i=r(53929),n=r(92722),a=r(17754),o=r(17155);class l extends o.Y{constructor(e,t,r,s,i,n=new Uint32Array(r.size()),a,o,l){if(super(e),this._indexMap=t,this._inner=r,this._fileId=s,this._transform=i,this._displayIds=n,this._points=a,this._rowIds=o,this._emptyNumberValue=l,this._index=-1,this.usedMemory=32,this._size=this._inner.size(),this._coordinateStride=this._inner.coordinateStride(),this._rowIds||=this._inner.readIdsUnsafe().slice(),!this._points&&"esriGeometryPoint"===this.geometryType){let e=this._inner.readPointCoordsQuantizedUnsafe()?.slice();e?(this._emptyNumberValue=-32768,this._points=e):(this._emptyNumberValue=NaN,this._points=this._inner.readPointCoordsUnsafe()?.slice())}e.featureIdInfo.type}destroy(){super.destroy(),this._inner.free()}get fields(){return this.metadata.fieldsIndex}get geometryType(){return this.metadata.geometryType}get hasFeatures(){return!0}get hasNext(){throw Error("Method not implemented.")}get exceededTransferLimit(){return!1}get hasZ(){return this._inner.hasZ()}get hasM(){return this._inner.hasM()}async updateFields(e,t,r,s){let i=this._inner.rowGroup(),n=new Uint32Array(this._inner.readIdsUnsafe()),a=await e.createPatch(t,i,n,r,s);this._inner.insertPatchBytes(new Uint8Array(a))}getInTransform(){return this._transform}getSize(){return this._size}getCursor(){return this.copy()}getAttributeHash(){let e="";for(let t of this.fields.fields)e+=this._readAttribute(t.name,!1)+".";return e}getObjectId(){let e=this._rowIds[this._index];return(0,a.xb)(this._fileId,e)}getDisplayId(){return this._displayIds[this._index]}setDisplayId(e){this._displayIds[this._index]=e}setIndex(e){this._index=e}getBoundsXMin(){return this._inner.boundsXMin(this._index)}getBoundsYMin(){return this._inner.boundsYMin(this._index)}getBoundsXMax(){return this._inner.boundsXMax(this._index)}getBoundsYMax(){return this._inner.boundsYMax(this._index)}getBounds(e){let t=this._inner.boundsXMin(this._index);return!!Number.isFinite(t)&&((0,s.BI)(e,t,this._inner.boundsYMin(this._index),this._inner.boundsXMax(this._index),this._inner.boundsYMax(this._index)),!0)}setBoundsXMin(e){throw Error("InternalError: Setting bounds is unsupported")}setBoundsYMin(e){throw Error("InternalError: Setting bounds is unsupported")}setBoundsXMax(e){throw Error("InternalError: Setting bounds is unsupported")}setBoundsYMax(e){throw Error("InternalError: Setting bounds is unsupported")}getIndex(){return this._index}next(){for(;++this._index<this._size&&!this._getExists(););return this._index<this._size}readGeometryArea(){return this.readGeometryForDisplay()?.area()??0}copy(){let e=new l(this.metadata,this._indexMap,this._inner,this._fileId,this._transform,this._displayIds,this._points,this._rowIds,this._emptyNumberValue);return this.copyInto(e),e}copyInto(e){super.copyInto(e),e._index=this._index}_readGeometry(e){let t=this._inner.readCoordsUnsafe(this._index),r=this._inner.readLengthsUnsafe(this._index);return t&&r?new n.A(r,t,this.hasZ,this.hasM):null}_readX(){if(this._points){let e=this._points[this._coordinateStride*this._index];return e===this._emptyNumberValue?NaN:e}throw Error("InternalError: readX only supported for points")}_readY(){if(this._points){let e=this._points[this._coordinateStride*this._index+1];return e===this._emptyNumberValue?NaN:e}throw Error("InternalError: readY only supported for points")}_readServerCentroid(){return null}_readAttribute(e,t){let r=this.fields.get(e);if(!r)return;let s=this._indexMap[r.name];return null==s?this.getObjectId():(0,i.ae)(this._inner,this._index,s,r.type,t)}_readAttributes(){let e={};for(let t of this.metadata.fieldsIndex.fields){if(null==this._indexMap[t.name])continue;let r=this._readAttribute(t.name,!1);void 0!==r&&(e[t.name]=r)}return e.__OBJECTID=this.getObjectId(),e}}},73250(e,t,r){r.d(t,{y:()=>i});var s=r(69397);class i{static fromBuffer(e,t){return new i(e,t)}static create(e,t=4294967295){let r=new Uint32Array(Math.ceil(e/32));return new i(r,t)}constructor(e,t){this._mask=0,this._buf=e,this._mask=t}_getIndex(e){return Math.floor(e/32)}get usedMemory(){return(0,s.Qf)(this._buf)}has(e){let t=this._mask&e;return!!(this._buf[this._getIndex(t)]&1<<t%32)}hasRange(e,t){let r=e,s=t;for(;r%32&&r!==s;){if(this.has(r))return!0;r++}for(;s%32&&r!==s;){if(this.has(r))return!0;s--}if(r===s)return!1;for(let e=r/32;e!==s/32;e++)if(this._buf[e])return!0;return!1}set(e){let t=this._mask&e,r=this._getIndex(t),s=1<<t%32;this._buf[r]|=s}setRange(e,t){let r=e,s=t;for(;r%32&&r!==s;)this.set(r++);for(;s%32&&r!==s;)this.set(s--);if(r!==s)for(let e=r/32;e!==s/32;e++)this._buf[e]=4294967295}unset(e){let t=this._mask&e,r=this._getIndex(t),s=1<<t%32;this._buf[r]&=4294967295^s}resize(e){let t=this._buf,r=new Uint32Array(Math.ceil(e/32));r.set(t),this._buf=r}or(e){for(let t=0;t<this._buf.length;t++)this._buf[t]|=e._buf[t];return this}and(e){for(let t=0;t<this._buf.length;t++)this._buf[t]&=e._buf[t];return this}xor(e){for(let t=0;t<this._buf.length;t++)this._buf[t]^=e._buf[t];return this}ior(e){for(let t=0;t<this._buf.length;t++)this._buf[t]|=~e._buf[t];return this}iand(e){for(let t=0;t<this._buf.length;t++)this._buf[t]&=~e._buf[t];return this}ixor(e){for(let t=0;t<this._buf.length;t++)this._buf[t]^=~e._buf[t];return this}any(){for(let e=0;e<this._buf.length;e++)if(this._buf[e])return!0;return!1}copy(e){for(let t=0;t<this._buf.length;t++)this._buf[t]=e._buf[t];return this}clone(){return new i(this._buf.slice(),this._mask)}clear(){for(let e=0;e<this._buf.length;e++)this._buf[e]=0;return this}forEachSet(e){for(let t=0;t<this._buf.length;t++){let r=this._buf[t],s=32*t;if(r)for(;r;)1&r&&e(s),r>>>=1,s++}}countSet(){let e=0;return this.forEachSet(t=>{e++}),e}}},9012(e,t,r){function s(e,{timeZone:t,timeExtent:r}){return{$view:{scale:e,timeZone:t,timeProperties:{currentStart:r?.start,currentEnd:r?.end}}}}r.d(t,{N:()=>s})}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9358],{69622(e,t,r){r.d(t,{A:()=>z});var i=r(51447),n=r(71511),s=r(53966),o=r(97768),a=r(56454),l=r(16649),u=r(85537),c=r(96156),h=(r(44208),r(4718)),f=r(93687),d=r(11406),p=r(62788),y=r(47328),g=r(67867);const _=new WeakMap;class v extends d.T{get trackingTarget(){return this._trackingTarget??=new g.R(this)}constructor(e,t){super(),this.propertyName=e,this.metadata=t,this.flags=function(e){let t=_.get(e);if(null!=t)return t;let r=y.i.Dirty|(e.nonNullable?y.i.NonNullable:0)|(e.hasOwnProperty("value")?y.i.HasDefaultValue:0)|(void 0===e.get?y.i.DepTrackingInitialized:0)|(void 0===e.dependsOn?y.i.AutoTracked:0);return _.set(e,r),r}(t)}destroy(){this.flags&y.i.Dirty&&this.onCommitted(),super.destroy(),this._trackingTarget?.destroy()}getComputed(e,t){e.mutable&&(0,p.gc)(this);let r=e.store,i=this.propertyName,n=this.flags,s=r.get(i);if(n&y.i.Computing||!(n&y.i.Dirty)&&r.has(i))return s;this.flags|=y.i.Computing;let o,{host:a}=e;n&y.i.AutoTracked?o=(0,p.a)(this.trackingTarget,t,a):((0,p.Xr)(a,this),o=t.call(a)),this.flags|=y.i.DepTrackingInitialized,r.set(i,o,1);let l=r.get(i);return l===s?this.flags&=~y.i.Dirty:(0,p.F_)(this.commit,this),this.flags&=~y.i.Computing,l}notifyChange(){this.onInvalidated(),this.onCommitted()}invalidate(){this.onInvalidated()}commit(){this.flags&=~y.i.Dirty,this.onCommitted()}onInvalidated(){~this.flags&y.i.Overridden&&(this.flags|=y.i.Dirty);let e=this._observers;if(e&&e.length>0)for(let t of e)t.onInvalidated()}onCommitted(){let e=this._observers;if(e&&e.length>0){let t=e.slice();for(let e of t)e.onCommitted()}}}var m=r(35666);class w{constructor(){this._values=new Map,this.multipleOriginsSupported=!1}clone(e){let t=new w;return this._values.forEach((r,i)=>{(!e||!e.has(i))&&t.set(i,(0,h.o8)(r))}),t}get(e){return this._values.get(e)}originOf(){return 7}keys(){return[...this._values.keys()]}set(e,t){this._values.set(e,t)}delete(e){this._values.delete(e)}has(e){return this._values.has(e)}isAtOrigin(e,t){return this.has(e)}isBelowOrigin(e,t){return!this.has(e)}forEach(e){this._values.forEach(e)}}function b(e,t,r){return void 0!==e}function A(e,t,r,i){return!(void 0===e||null==r&&e.flags&y.i.NonNullable&&(i.lifecycle,u.v.INITIALIZING,1))}class O{constructor(e){this.host=e,this.propertiesByName=new Map,this.ctorArgs=null,this.lifecycle=u.v.INITIALIZING,this.store=new w,this.mutable=!0,this._origin=7;let t=this.host.constructor.__accessorMetadata__;for(let e in t){let r=new v(e,t[e]);this.propertiesByName.set(e,r)}this.metadata=t}initialize(){this.lifecycle=u.v.CONSTRUCTING}constructed(){this.lifecycle=u.v.CONSTRUCTED}destroy(){this.lifecycle=u.v.DESTROYED,this.propertiesByName.forEach(e=>e.destroy())}get initialized(){return this.lifecycle!==u.v.INITIALIZING}get(e){let t=this.propertiesByName.get(e);if(!b(t))return;let r=t.metadata.get;if(r)return t.getComputed(this,r);this.mutable&&(0,p.gc)(t);let i=this.store;return i.has(e)?i.get(e):t.metadata.value}originOf(e){let t=this.store.originOf(e);if(void 0===t){let t=this.propertiesByName.get(e);if(void 0!==t&&t.flags&y.i.HasDefaultValue)return"defaults"}return(0,m.OL)(t)}has(e){return this.propertiesByName.has(e)&&this.store.has(e)}keys(){return[...this.propertiesByName.keys()]}internalGet(e){let t=this.propertiesByName.get(e);if(b(t))return this.store.has(e)?this.store.get(e):t.metadata.value}internalSet(e,t){let r=this.propertiesByName.get(e);b(r)&&this._internalSet(r,t)}getDependsInfo(e,t,r){let i=this.propertiesByName.get(t);if(!b(i))return"";let n=new g.R,s=(0,p.a)(n,()=>i.metadata.get?.call(e)),o=`${r}${e.declaredClass.split(".").pop()}.${t}: ${s}\n`,a=n.accessed??new Set;if(0===a.size)return o;r+=" ";for(let e of a)e instanceof v&&(o+=`${r}${e.propertyName}: undefined\n`);return o}setAtOrigin(e,t,r){let i=this.propertiesByName.get(e);if(b(i))return this._setAtOrigin(i,t,r)}isOverridden(e){let t=this.propertiesByName.get(e);return void 0!==t&&!!(t.flags&y.i.Overridden)}clearOrigin(e,t){let r=this.store,i=this.propertiesByName.get(e);if(!b(i))return;let n=r.isAtOrigin(e,t)&&!(i.flags&y.i.Overridden);r.delete(e,t),n&&i.notifyChange()}clearOverride(e){let t=this.propertiesByName.get(e);t&&t.flags&y.i.Overridden&&(t.flags&=~y.i.Overridden,t.notifyChange())}override(e,t){let r=this.propertiesByName.get(e);if(!A(r,0,t,this))return;let i=r.metadata.cast;if(i){let e=this._cast(i,t),{valid:r,value:n}=e;if(k.release(e),!r)return;t=n}r.flags|=y.i.Overridden,this._internalSet(r,t)}set(e,t){let r=this.propertiesByName.get(e);if(!A(r,0,t,this))return;let i=r.metadata.cast;if(i){let e=this._cast(i,t),{valid:r,value:n}=e;if(k.release(e),!r)return;t=n}let n=r.metadata.set;n?n.call(this.host,t):this._internalSet(r,t)}setDefaultOrigin(e){this._origin=(0,m.aB)(e)}getDefaultOrigin(){return(0,m.OL)(this._origin)}notifyChange(e){this.propertiesByName.get(e)?.notifyChange()}invalidate(e){this.propertiesByName.get(e)?.invalidate()}commit(e){this.propertiesByName.get(e)?.commit()}_internalSet(e,t){let r=this.lifecycle===u.v.INITIALIZING?0:this._origin;this._setAtOrigin(e,t,r)}_setAtOrigin(e,t,r){let i=this.store,n=e.propertyName,s=i.isAtOrigin(n,r);if(s&&~e.flags&y.i.Overridden&&(0,h.aI)(t,i.get(n)))return;let o=i.isBelowOrigin(n,r)||s;o&&e.invalidate(),i.set(n,t,r),o&&e.commit(),(0,p.fE)(this.host,e)}_cast(e,t){let r=k.acquire();return r.valid=!0,r.value=t,e&&(r.value=e.call(this.host,t,r)),r}}class N{constructor(){this.value=null,this.valid=!0}acquire(){this.valid=!0}release(){this.value=null}}const k=new f.A(()=>new N);var S=r(47821);var j,T,C=r(14012),D=r(10107),E=r(64108);function $(e){if(null==e)return{value:e};if(Array.isArray(e))return{type:[e[0]],value:null};switch(typeof e){case"object":return e.constructor?.__accessorMetadata__||e instanceof Date?{type:e.constructor,value:e}:e;case"boolean":return{type:Boolean,value:e};case"string":return{type:String,value:e};case"number":return{type:Number,value:e};case"function":return{type:e,value:null};default:return}}const M=Symbol("Accessor-Handles"),I=Symbol("Accessor-Initialized");class z{static{j=M,T=I}static createSubclass(e={}){if(Array.isArray(e))throw Error("Multi-inheritance unsupported since 4.16");let{properties:t,declaredClass:r,constructor:i}=e;delete e.declaredClass,delete e.properties,delete e.constructor;let n=this;class s extends n{constructor(...e){super(...e),this.inherited=null,i&&i.apply(this,e)}}(0,c.tD)(s.prototype);for(let t in e){let r=e[t];s.prototype[t]="function"==typeof r?function(...e){let i,s=this.inherited;this.inherited=function(...e){if(n.prototype[t])return n.prototype[t].apply(this,e)};try{i=r.apply(this,e)}catch(e){throw this.inherited=s,e}return this.inherited=s,i}:e[t]}for(let e in t){let r=$(t[e]);(0,D.MZ)(r)(s.prototype,e)}return(0,E.$)(r)(s)}static freeze(e){return e instanceof z?e.__accessor__.mutable=!1:Object.freeze(e),e}static isFrozen(e){return e instanceof z?!e.__accessor__.mutable:Object.isFrozen(e)}constructor(...e){if(this[j]=null,this[T]=!1,this.constructor===z)throw Error("[accessor] cannot instantiate Accessor. This can be fixed by creating a subclass of Accessor");let t=new O(this);Object.defineProperty(this,"__accessor__",{enumerable:!1,value:t}),e.length>0&&(t.ctorArgs=this.normalizeCtorArgs?.apply(this,e)??e[0])}postscript(){let e=this.__accessor__,t=e.ctorArgs;e.initialize(),t&&(this.set(t),e.ctorArgs=null),e.constructed(),this.initialize(),this[I]=!0}initialize(){}[a.G](){this[M]=(0,o.pR)(this[M])}destroy(){this.destroyed||((0,C.iS)(this),this.__accessor__.destroy())}[Symbol.dispose](){this.destroy()}get constructed(){return this.__accessor__&&this.__accessor__.initialized||!1}get initialized(){return this[I]}get destroyed(){return this.__accessor__?.lifecycle===u.v.DESTROYED||!1}get destroying(){return this.__accessor__?.lifecycle===u.v.DESTROYING||!1}commitProperty(e){(0,l.Jt)(this,e)}hasOwnProperty(e){return this.__accessor__?this.__accessor__.has(e):Object.prototype.hasOwnProperty.call(this,e)}keys(){return this.__accessor__?this.__accessor__.keys():[]}set(e,t){return(0,S.h)(this,e,t),this}watch(e,t,r){return(0,i.eO)(s.A.getLogger(this),"`watch` is deprecated in favor of reactiveUtils.watch",{replacement:"reactiveUtils.watch",version:"4.32",see:"https://arcg.is/1vaqf42#watch",warnOnce:!0}),(0,C.wB)(this,e,t,r)}addHandles(e,t){if(this.destroyed){let t=Array.isArray(e)?e:[e];for(let e of t)e.remove()}else(this[M]??=new n.A).add(e,t)}removeHandles(e){this[M]?.remove(e)}removeAllHandles(){this[M]?.removeAll()}removeHandlesReference(e){this[M]?.removeReference(e)}hasHandles(e){return!0===this[M]?.has(e)}_override(e,t){void 0===t?this.__accessor__.clearOverride(e):this.__accessor__.override(e,t)}_clearOverride(e){return this.__accessor__.clearOverride(e)}_overrideIfSome(e,t){null==t?this.__accessor__.clearOverride(e):this.__accessor__.override(e,t)}_isOverridden(e){return this.__accessor__.isOverridden(e)}notifyChange(e){this.__accessor__.notifyChange(e)}_get(e){return this.__accessor__.internalGet(e)}_set(e,t){return this.__accessor__.internalSet(e,t),this}}},98291(e,t,r){r.d(t,{A:()=>s});var i=r(93687);function n(e){e.length=0}class s{constructor(e=50,t=50){this._pool=new i.A(()=>[],void 0,n,t,e)}acquire(){return this._pool.acquire()}release(e){this._pool.release(e)}prune(){this._pool.prune(0)}static acquire(){return o.acquire()}static release(e){return o.release(e)}static prune(){o.prune()}}const o=new s(100)},71511(e,t,r){r.d(t,{A:()=>n});var i=r(5479);class n{constructor(){this._groups=new Map}destroy(){this.removeAll()}get size(){let e=0;return this._groups.forEach(t=>{e+=t.length}),e}add(e,t){if((0,i.xZ)(e)){let r=this._getOrCreateGroup(t);for(let t of e)a(t)&&r.push(t)}else a(e)&&this._getOrCreateGroup(t).push(e);return this}forEach(e,t){if("function"==typeof e)this._groups.forEach(t=>t.forEach(e));else{let r=this._getGroup(e);r&&t&&r.forEach(t)}}has(e){return this._groups.has(s(e))}remove(e){if("string"!=typeof e&&(0,i.xZ)(e)){for(let t of e)this.remove(t);return this}return this.has(e)&&(o(this._getGroup(e)),this._groups.delete(s(e))),this}removeAll(){return this._groups.forEach(o),this._groups.clear(),this}removeReference(e){return this._groups.delete(e),this}_getOrCreateGroup(e){if(this.has(e))return this._getGroup(e);let t=[];return this._groups.set(s(e),t),t}_getGroup(e){return this._groups.get(s(e))}}function s(e){return e||"_default_"}function o(e){for(let t of e)t instanceof n?t.removeAll():t.remove()}function a(e){return null!=e&&(!!e.remove||e instanceof n)}},25482(e,t,r){r.d(t,{o:()=>y,T:()=>d});var i=r(32198),n=r(69622),s=r(4718);class o{constructor(){this._values=new Map,this.multipleOriginsSupported=!1}clone(e){let t=new o;return this._values.forEach((r,i)=>{(!e||!e.has(i))&&t.set(i,(0,s.o8)(r.value),r.origin)}),t}get(e,t){t=this._normalizeOrigin(t);let r=this._values.get(e);return null==t||r?.origin===t?r?.value:void 0}originOf(e){return this._values.get(e)?.origin??7}keys(e){e=this._normalizeOrigin(e);let t=[...this._values.keys()];return null==e?t:t.filter(t=>this._values.get(t)?.origin===e)}set(e,t,r){if(0===(r=this._normalizeOrigin(r))){let t=this._values.get(e);if(null!=t?.origin&&t.origin>r)return}this._values.set(e,new a(t,r))}delete(e,t){(null==(t=this._normalizeOrigin(t))||this._values.get(e)?.origin===t)&&this._values.delete(e)}has(e,t){return null==(t=this._normalizeOrigin(t))?this._values.has(e):this._values.get(e)?.origin===t}isAtOrigin(e,t){return t=this._normalizeOrigin(t),this.has(e,t)&&this.originOf(e)===t}isBelowOrigin(e,t){return t=this._normalizeOrigin(t),!this.has(e)||this.originOf(e)<t}forEach(e){this._values.forEach(({value:t},r)=>e(t,r))}_normalizeOrigin(e){if(null!=e)return 0===e?e:7}}class a{constructor(e,t){this.value=e,this.origin=t}}var l=r(76953),u=r(45917),c=r(88620),h=r(49422),f=r(64108);const d=e=>{let t=e,r=class extends t{constructor(...e){super(...e);let t=(0,c.oY)(this),r=t.store,i=new o;t.store=i,(0,l.k)(t,r,i)}read(e,t){(0,u.L)(this,e,t)}write(e,t){return(0,h.M)(this,e??{},t)}toJSON(e){return this.write({},e)}static fromJSON(e,t){return p.call(this,e,t)}};return r=(0,i.Cg)([(0,f.$)("esri.core.JSONSupport")],r),r.prototype.toJSON.isDefaultToJSON=!0,r};function p(e,t){if(!e)return null;if(e.declaredClass)throw Error("JSON object is already hydrated");let r=new this;return r.read(e,t),r}const y=d(n.A)},93687(e,t,r){r.d(t,{A:()=>s});var i=r(44208);const n=()=>!!(0,i.A)("esri-tests-disable-memory-pools");class s{constructor(e,t,r,i=1,n=0){this._creator=e,this._acquireFunction=t,this._releaseFunction=r,this.allocationSize=i,this._pool=Array(n),this._initialSize=n;for(let e=0;e<n;e++)this._pool[e]=this._creator();this.allocationSize=Math.max(i,1)}destroy(){this.prune(0)}acquire(...e){let t;if(n())t=this._creator();else{if(0===this._pool.length){let e=this.allocationSize;for(let t=0;t<e;t++)this._pool[t]=this._creator()}t=this._pool.pop()}return this._acquireFunction?this._acquireFunction(t,...e):function(e){return e?.acquire&&"function"==typeof e.acquire}(t)&&t.acquire(...e),t}release(e){e&&!n()&&(this._releaseFunction?this._releaseFunction(e):function(e){return e?.release&&"function"==typeof e.release}(e)&&e.release(),this._pool.push(e))}prune(e=this._initialSize){if(!(e>=this._pool.length)){for(let t=e;t<this._pool.length;++t){let e=this._pool[t];this._dispose(e)}this._pool.length=e}}_dispose(e){e.dispose&&"function"==typeof e.dispose&&e.dispose()}}},15142(e,t,r){r.d(t,{A:()=>u});var i=r(4576),n=r(21818);const s=(e,t,r,i)=>{let n=t,s=t,o=r>>>1,a=e[n-1];for(;s<=o;){s=n<<1,s<r&&i(e[s-1],e[s])<0&&++s;let t=e[s-1];if(i(t,a)<=0)break;e[n-1]=t,n=s}e[n-1]=a},o=(e,t)=>e<t?-1:+(e>t);function a(e,t,r,i){void 0===t&&(t=0),void 0===r&&(r=e.length),void 0===i&&(i=o);for(let n=r>>>1;n>t;n--)s(e,n,r,i);let n=t+1;for(let o=r-1;o>t;o--){let r=e[t];e[t]=e[o],e[o]=r,s(e,n,o,i)}}function*l(e,t,r,i){void 0===t&&(t=0),void 0===r&&(r=e.length),void 0===i&&(i=o);for(let n=r>>>1;n>t;n--)s(e,n,r,i),yield;let n=t+1;for(let o=r-1;o>t;o--){let r=e[t];e[t]=e[o],e[o]=r,s(e,n,o,i),yield}}class u{constructor(e){this.data=[],this._length=0,this._allocator=void 0,this._deallocator=()=>null,this._shrink=()=>{},this._hint=new i.vW,e&&(e.initialSize&&(this.data=Array(e.initialSize)),e.allocator&&(this._allocator=e.allocator),void 0!==e.deallocator&&(this._deallocator=e.deallocator),e.shrink&&(this._shrink=()=>c(this)))}toArray(){return this.data.slice(0,this.length)}filter(e){let t=[];for(let r=0;r<this._length;r++){let i=this.data[r];e(i)&&t.push(i)}return t}at(e){if((e=Math.trunc(e)||0)<0&&(e+=this._length),!(e<0||e>=this._length))return this.data[e]}includes(e,t){let r=this.data.indexOf(e,t);return-1!==r&&r<this.length}get length(){return this._length}set length(e){if(e>this._length){if(this._allocator){for(;this._length<e;)this.data[this._length++]=this._allocator(this.data[this._length]);return}this._length=e}else{if(this._deallocator)for(let t=e;t<this._length;++t)this.data[t]=this._deallocator(this.data[t]);this._length=e,this._shrink()}}clear(){this.length=0}prune(){this.clear(),this.data=[]}push(e){this.data[this._length++]=e}pushArray(e,t=e.length){for(let r=0;r<t;r++)this.data[this._length++]=e[r]}pushAll(e){for(let t of e)this.data[this._length++]=t}fill(e,t){for(let r=0;r<t;r++)this.data[this._length++]=e}pushNew(){this._allocator&&(this.data[this.length]=this._allocator(this.data[this.length]));let e=this.data[this._length];return++this._length,e}unshift(e){this.data.unshift(e),this._length++,c(this)}pop(){if(0===this.length)return;let e=this.data[this.length-1];return--this.length,this._shrink(),e}remove(e){let t=(0,i.qh)(this.data,(0,n.z)(e),this.length,this._hint);if(-1!==t)return this.data.splice(t,1),--this.length,e}removeUnordered(e){return this.removeUnorderedIndex((0,i.qh)(this.data,(0,n.z)(e),this.length,this._hint))}removeUnorderedIndex(e){if(!(e>=this.length||e<0))return this.swapElements(e,this.length-1),this.pop()}removeUnorderedMany(e,t=e.length,r){this.length=(0,i.mW)(this.data,e,this.length,t,this._hint,r),this._shrink()}front(){if(0!==this.length)return this.data[0]}back(){if(0!==this.length)return this.data[this.length-1]}swapElements(e,t){if(e>=this.length||t>=this.length||e===t)return;let r=this.data[e];this.data[e]=this.data[t],this.data[t]=r}sort(e){a(this.data,0,this.length,e)}stableSort(e){let t=this.toArray().sort(e);for(let e=0;e<t.length;++e)this.data[e]=t[e]}iterableSort(e){return l(this.data,0,this.length,e)}some(e,t){for(let r=0;r<this.length;++r)if(e.call(t,this.data[r],r,this.data))return!0;return!1}find(e,t){let{data:r,length:i}=this;for(let n=0;n<i;++n)if(e.call(t,r[n]))return r[n]}filterInPlace(e,t){let r=0;for(let i=0;i<this._length;++i){let n=this.data[i];e.call(t,n,i,this.data)&&(this.data[i]=this.data[r],this.data[r]=n,r++)}if(this._deallocator)for(let e=r;e<this._length;e++)this.data[e]=this._deallocator(this.data[e]);return this._length=r,this._shrink(),this}forAll(e,t){let{data:r,length:i}=this;for(let n=0;n<i;++n)e.call(t,r[n],n,r)}forEach(e,t){this.data.slice(0,this.length).forEach(e,t)}map(e,t){let r=Array(this.length);for(let i=0;i<this.length;++i)r[i]=e.call(t,this.data[i],i,this.data);return r}reduce(e,t){let r=t;for(let t=0;t<this.length;++t)r=e(r,this.data[t],t,this.data);return r}has(e){let t=this.length,r=this.data;for(let i=0;i<t;++i)if(r[i]===e)return!0;return!1}*[Symbol.iterator](){for(let e=0;e<this.length;++e)yield this.data[e]}}function c(e){e.data.length>1.5*e.length&&(e.data.length=Math.floor(1.1*e.length))}},67076(e,t,r){r.d(t,{A:()=>n});var i=r(799);class n{constructor(e,t,r){this.name=e,this.details=r,this.type="warning",this.message=t?(0,i.V2)(t,r):""}toString(){let{name:e,message:t}=this;return`[${e}]: ${t}`}}},85537(e,t,r){r.d(t,["v",0,{INITIALIZING:0,CONSTRUCTING:1,CONSTRUCTED:2,DESTROYING:3,DESTROYED:4}])},11406(e,t,r){r.d(t,{T:()=>s});var i=r(36563);class n{constructor(e,t){this._observers=e,this._observer=t}remove(){let{_observers:e,_observer:t}=this;if(e[e.length-1]===t)return void e.pop();let r=e.indexOf(this._observer);-1!==r&&e.splice(r,1)}}class s{constructor(){this._observers=null,this.destroyed=!1}observe(e){if(this.destroyed||e.destroyed)return o;this._observers??=[];let t=this._observers,r=!1,i=!1;for(let n of t)if(n.destroyed)i=!0;else if(n===e){r=!0;break}return r||(t.push(e),i&&this._removeDestroyedObservers()),new n(t,e)}_removeDestroyedObservers(){let e=this._observers;if(!e)return;let t=e.length;if(0===t)return;let r=0;for(let i=0;i<t;++i){for(;i+r<t&&e[i+r].destroyed;)++r;if(r>0){if(!(i+r<t))break;e[i]=e[i+r]}}e.length=t-r}destroy(){if(this.destroyed)return;this.destroyed=!0;let e=this._observers;if(null!=e){for(let t of e)t.onCommitted();this._observers=null}}}const o=(0,i.hA)()},35666(e,t,r){function i(e){switch(e){case"defaults":return 0;case"service":return 2;case"portal-item":return 3;case"web-scene":return 4;case"web-map":return 5;case"link-chart":return 6;case"user":return 7;default:return null}}function n(e){switch(e){case 0:return"defaults";case 2:return"service";case 3:return"portal-item";case 4:return"web-scene";case 5:return"web-map";case 6:return"link-chart";case 7:return"user"}}function s(e){return n(e)}r.d(t,{OL:()=>n,aB:()=>i,in:()=>s})},56454(e,t,r){const i=Symbol("Accessor-beforeDestroy");r.d(t,["G",0,i])},91429(e,t,r){r.d(t,{wg:()=>l,MZ:()=>o,$K:()=>a});var i=r(10107),n=r(79901),s=r(64108);r(93223),r(36005),r(43937);const o=i.MZ,a=s.$;function l(...e){return(0,n.w)(...e)}},79901(e,t,r){r.d(t,{w:()=>l});var i=r(78888),n=r(96156);const s=Object.prototype.toString;function o(e){let t="__accessorMetadata__"in e?(0,i.dp)(e):e;return function(...e){if(e.push(t),"number"==typeof e[2])throw Error("Using @cast has parameter decorator is not supported since 4.16");return a.apply(this,e)}}function a(e,t,r,i){(0,n.z4)(e,t).cast=i}function l(...e){if(3!==e.length||"string"!=typeof e[1]){if(1===e.length&&"[object Function]"===s.call(e[0]))return o(e[0]);if(1===e.length&&"string"==typeof e[0])return function(e){return(t,r)=>{(0,n.z4)(t,e).cast=t[r]}}(e[0])}}},93223(e,t,r){r.d(t,{e:()=>s});var i=r(66552),n=r(10107);function s(e,t={}){let r=e instanceof i.J?e:new i.J(e,t),{alwaysWriteDefaults:s,default:o,ignoreUnknown:a=!0,name:l,nonNullable:u,readOnly:c=!1}=t;return(0,n.MZ)({type:a?r.apiValues:String,json:{type:r.jsonValues,default:o,name:l,read:!c&&{reader:r.read},write:{writer:r.write,alwaysWriteDefaults:s}},nonNullable:u,readOnly:c})}},10107(e,t,r){r.d(t,{MZ:()=>l,rM:()=>u});var i=r(53966),n=r(78888),s=r(16649),o=r(96156),a=r(47821);function l(e={}){return(t,r)=>{if(t===Function.prototype)throw Error(`Inappropriate use of @property() on a static field: ${t.name}.${r}. Accessor does not support static properties.`);let l=Object.getOwnPropertyDescriptor(t,r),u=(0,o.z4)(t,r);l&&(l.get||l.set?(u.get=l.get||u.get,u.set=l.set||u.set):"value"in l&&("value"in e&&i.A.getLogger("esri.core.accessorSupport.decorators.property").warn(`@property() will redefine the value of "${r}" on "${t.constructor.name}" already defined in the metadata`,e),u.value=e.value=l.value)),null!=e.readOnly&&(u.readOnly=e.readOnly);let c=e.aliasOf;if(c){let e,t="string"==typeof c?c:c.source,i="string"==typeof c?null:!0===c.overridable;u.dependsOn=[t],u.get=function(){let r=(0,s.Jt)(this,t);if("function"==typeof r){e||=t.split(".").slice(0,-1).join(".");let i=(0,s.Jt)(this,e);i&&(r=r.bind(i))}return r},u.readOnly||(u.set=i?function(e){this._override(r,e)}:function(e){(0,a.h)(this,t,e)})}let h=e.type,f=e.types;if(!u.cast){let t;h&&!1!==e.useTypeForAutocast?t=function(e){let t=0,r=e;if((0,n.Zu)(e))return(0,n.Nd)(e);for(;Array.isArray(r)&&1===r.length&&"string"!=typeof r[0]&&"number"!=typeof r[0];)r=r[0],t++;let i=r;if((0,n.EK)(i))return 0===t?(0,n.MB)(i):(0,n._e)((0,n.MB)(i),t);if(1===t)return(0,n.eC)(i);if(t>1)return(0,n.e6)(i,t);let s=e;return s.from?s.from:(0,n.dp)(s)}(h):f&&(t=Array.isArray(f)?(0,n.wB)((0,n.aq)(f[0])):(0,n.aq)(f)),e.cast=function(e,t){if(e||t)return e?t?(r,i)=>t(e(r,i),i):e:t}(e.cast,t)}(0,o.CX)(u,e),e.range&&(u.cast=(0,n.Qp)(u.cast,e.range))}}function u(e,t,r){let i=(0,o.z4)(e,r);i.json||={};let n=i.json;return void 0!==t&&(n.origins||(n.origins={}),n.origins[t]||(n.origins[t]={}),n=n.origins[t]),n}},36005(e,t,r){r.d(t,{w:()=>n});var i=r(10107);function n(e,t,r){let n,s;return void 0===t||Array.isArray(t)?(s=e,r=t,n=[void 0]):(s=t,n=Array.isArray(e)?e:[e]),(e,t)=>{let o=e.constructor.prototype;n.forEach(n=>{let a=(0,i.rM)(e,n,s);(!a.read||"object"!=typeof a.read)&&(a.read={}),a.read.reader=o[t],r&&(a.read.source=(a.read.source||[]).concat(r))})}}},64108(e,t,r){r.d(t,{$:()=>w}),r(44208);var i=r(53966),n=r(56454),s=r(85537),o=r(96156),a=r(62788),l=r(78888),u=r(90360);function c(e){e.name&&(e.read&&"object"==typeof e.read?void 0===e.read.source&&(e.read.source=e.name):e.read={source:e.name},e.write&&"object"==typeof e.write?void 0===e.write.target&&(e.write.target=e.name):e.write={target:e.name})}function h(e){"boolean"==typeof e.read?e.read={enabled:e.read}:"function"==typeof e.read?e.read={enabled:!0,reader:e.read}:e.read&&"object"==typeof e.read&&void 0===e.read.enabled&&(e.read.enabled=!0)}function f(e){"boolean"==typeof e.write?e.write={enabled:e.write}:"function"==typeof e.write?e.write={enabled:!0,writer:e.write}:e.write&&"object"==typeof e.write&&void 0===e.write.enabled&&(e.write.enabled=!0)}var d=r(67124);function p(e){return e.type?y(e):g(e)}function y(e){if(!e.type)return;let t=0,r=e.type;for(;Array.isArray(r)&&!(0,l.EK)(r);)r=r[0],t++;return{type:r,ndimArray:t}}function g(e){if(!e.types)return;let t=0,r=e.types;for(;Array.isArray(r);)r=r[0],t++;return{types:r,ndimArray:t}}function _(e){(function(e){if(e.json||={},h(e.json),f(e.json),c(e.json),e.json.origins)for(let t in e.json.origins)h(e.json.origins[t]),f(e.json.origins[t]),c(e.json.origins[t]);return!0})(e)&&(function(e){if(e.json&&e.json.origins){let t=e.json.origins,r={"web-document":["web-scene","web-map"]};for(let e in r)if(t[e]){let i=t[e];r[e].forEach(e=>{t[e]=i}),delete t[e]}}}(e),function(e){let t=function(e){return e.json.types?g(e.json):e.type?y(e):g(e)}(e);if(e.json.origins)for(let r in e.json.origins){let i=e.json.origins[r],n=i.types?p(i):t;(0,u.v)(n,i,!1),i.types&&!i.write&&e.json.write?.enabled&&(i.write={...e.json.write}),(0,d.v)(n,i)}(0,u.v)(t,e.json,!0),(0,d.v)(t,e.json)}(e))}const v=new Set,m=new Set;function w(e){return t=>{e??="esri.core.Accessor",t.prototype.declaredClass=e,N(t);let r=[],i=[],a=t.prototype;for(;a;)a.hasOwnProperty("initialize")&&!v.has(a.initialize)&&(v.add(a.initialize),r.push(a.initialize)),a.hasOwnProperty("destroy")&&!m.has(a.destroy)&&(m.add(a.destroy),i.push(a.destroy)),a=Object.getPrototypeOf(a);v.clear(),m.clear();let l=class extends t{constructor(...e){if(super(...e),this.constructor===l&&"function"==typeof this.postscript){if(r.length&&Object.defineProperty(this,"initialize",{enumerable:!1,configurable:!0,value(){for(let e=r.length-1;e>=0;e--)r[e].call(this)}}),i.length){let e=!1,t=this[n.G];Object.defineProperty(this,"destroy",{enumerable:!1,configurable:!0,value(){if(!e){this.__accessor__.lifecycle=s.v.DESTROYING,e=!0,t.call(this);for(let e=0;e<i.length;e++)i[e].call(this)}}})}Object.defineProperty(this,Symbol.dispose,{enumerable:!1,configurable:!0,value(){this.destroy()}}),this.postscript()}}};l.__accessorMetadata__=(0,o.tD)(t.prototype),l.prototype.declaredClass=e;let u=(e||"AccessorSubclass").split(".").slice(-1)[0];return Object.defineProperty(l.prototype,Symbol.toStringTag,{value:u,configurable:!0,writable:!0,enumerable:!1}),l}}function b(e,{get:t,value:r}){return null==t?function(){let t=this.__accessor__,i=t.propertiesByName.get(e);if(void 0===i)return;t.mutable&&(0,a.gc)(i);let n=t.store;return n.has(e)?n.get(e):r}:function(){let r=this.__accessor__;return r.propertiesByName.get(e)?.getComputed(r,t)}}function A(e,t,r){Object.defineProperty(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r})}function O(e,t){return t.readOnly&&t.constructOnly?function(r){let i=this.__accessor__;if(i){if(i.mutable){if(i.initialized&&t.readOnly)return k("read-only",e);if(i.lifecycle===s.v.CONSTRUCTED&&t.constructOnly)return k("construct-only",e);i.set(e,r)}}else A(this,e,r)}:t.readOnly?function(r){let i=this.__accessor__;if(i){if(i.mutable){if(i.initialized&&t.readOnly)return k("read-only",e);i.set(e,r)}}else A(this,e,r)}:t.constructOnly?function(r){let i=this.__accessor__;if(i){if(i.mutable){if(i.lifecycle===s.v.CONSTRUCTED&&t.constructOnly)return k("construct-only",e);i.set(e,r)}}else A(this,e,r)}:function(t){let r=this.__accessor__;r?r.mutable&&r.set(e,t):A(this,e,t)}}function N(e){let t=e.prototype,r=(0,o.tD)(t),i={};for(let e of Object.getOwnPropertyNames(r)){let t=r[e];_(t),i[e]={enumerable:!0,configurable:!0,get:b(e,t),set:O(e,t)}}Object.defineProperties(e.prototype,i)}const k=(e,t)=>{i.A.getLogger("esri.core.Accessor").error(`cannot assign to ${e} property '${t}'`)}},43937(e,t,r){r.d(t,{K:()=>n});var i=r(10107);function n(e,t,r){let n,s;return void 0===t?(s=e,n=[void 0]):"string"==typeof t?(s=t,n=Array.isArray(e)?e:[e]):(s=e,n=[void 0],r=t),(e,t)=>{let o=e.constructor.prototype;for(let a of n){let n=(0,i.rM)(e,a,s);(!n.write||"object"!=typeof n.write)&&(n.write={}),r&&(n.write.target=r),n.write.writer=o[t]}}}},76953(e,t,r){function i(e,t,r){t.keys().forEach(e=>{r.set(e,t.get(e),0)});let i=e.metadata;Object.keys(i).forEach(t=>{e.internalGet(t)&&r.set(t,e.internalGet(t),0)})}r.d(t,{k:()=>i})},78888(e,t,r){r.d(t,{EK:()=>C,GB:()=>u,GX:()=>l,MB:()=>D,Nd:()=>z,PZ:()=>v,Qp:()=>f,Uv:()=>M,Vr:()=>c,Zu:()=>I,_e:()=>j,aq:()=>E,dp:()=>A,e6:()=>T,eC:()=>k,jz:()=>$,qf:()=>O,wB:()=>N});var i=r(53966),n=r(91869);const s=()=>i.A.getLogger("esri.core.accessorSupport.ensureTypes");function o(e){if(null==e)return e;let t=new Date(e);return isNaN(t.getTime())?(s().error("Accessor#set",`Invalid date value: '${e}', falling back to current date`),new Date):t}function a(e){return null==e?e:!!e}function l(e){return null==e?e:e.toString()}function u(e,t=0){return null==e?e:(e=parseFloat(e),isNaN(e)?t:e)}function c(e){return null==e?e:Math.round(parseFloat(e))}function h(e){return null}function f(e,t){return r=>{let i=e(r);return null!=t.step&&(i=Math.round(i/t.step)*t.step),null!=t.min&&(i=Math.max(t.min,i)),null!=t.max&&(i=Math.min(t.max,i)),i}}function d(e){return e?.constructor&&void 0!==e.constructor.__accessorMetadata__}function p(e,t){return null!=t&&e&&!(t instanceof e)}function y(e){return e&&"isCollection"in e}function g(e){return e?.Type?"function"==typeof e.Type?e.Type:e.Type.base:null}function _(e,t){return!!d(t)&&(s().error("Accessor#set","Assigning an instance of '"+(t.declaredClass||"unknown")+"' which is not a subclass of '"+m(e)+"'"),!0)}function v(e,t){return null==t?t:y(e)?function(e,t){if(!t?.constructor||!y(t.constructor))return _(e,t)?t:new e(t);let r=g(e.prototype.itemType),i=g(t.constructor.prototype.itemType);return r?i?r===i?t:r.prototype.isPrototypeOf(i.prototype)?new e(t):(_(e,t),t):new e(t):t}(e,t):p(e,t)?_(e,t)?t:new e(t):t}function m(e){return e?.prototype?.declaredClass||"unknown"}const w=new WeakMap;function b(e){switch(e){case Number:return e=>u(e);case $:return c;case Boolean:return a;case String:return l;case Date:return o;case M:return h;default:return(0,n.tE)(w,e,()=>v.bind(null,e))}}function A(e,t){let r=b(e);return 1===arguments.length?r:r(t)}function O(e){let t=b(e);return e=>t(e)}function N(e,t,r){return 1===arguments.length?N.bind(null,e):t&&(Array.isArray(t)?t.map(t=>e(t,r)):[e(t,r)])}function k(e,t){return 1===arguments.length?N(t=>A(e,t)):N(t=>A(e,t),t)}function S(e,t,r){return 0!==t&&Array.isArray(r)?r.map(r=>S(e,t-1,r)):e(r)}function j(e,t,r){if(2===arguments.length)return r=>j(e,t,r);if(!r)return r;r=S(e,t,r);let i=t,n=r;for(;i>0&&Array.isArray(n);)i--,n=n[0];if(void 0!==n)for(let e=0;e<i;e++)r=[r];return r}function T(e,t,r){return 2===arguments.length?j(t=>A(e,t),t):j(t=>A(e,t),t,r)}function C(e){return!!Array.isArray(e)&&!e.some(t=>{let r=typeof t;return!("string"===r||"number"===r||"function"===r&&e.length>1)})}function D(e,t){if(2===arguments.length)return D(e).call(null,t);let r=new Set,i=e.filter(e=>"function"!=typeof e),n=e.filter(e=>"function"==typeof e);for(let t of e)("string"==typeof t||"number"==typeof t)&&r.add(t);let o=null,a=null;return(e,t)=>{if(null==e)return e;let l=typeof e,u="string"===l||"number"===l;return u&&(r.has(e)||n.some(e=>"string"===l&&e===String||"number"===l&&e===Number))||"object"===l&&n.some(t=>!p(t,e))?e:(u&&i.length?(o||=i.map(e=>"string"==typeof e?`'${e}'`:`${e}`).join(", "),s().error("Accessor#set",`'${e}' is not a valid value for this property, only the following values are valid: ${o}`)):"object"==typeof e&&n.length?(a||=n.map(e=>m(e)).join(", "),s().error("Accessor#set",`'${e}' is not a valid value for this property, value must be one of ${a}`)):s().error("Accessor#set",`'${e}' is not a valid value for this property`),t&&(t.valid=!1),null)}}function E(e,t){if(2===arguments.length)return E(e).call(null,t);let r={},i=[],n=[];for(let t in e.typeMap){let s=e.typeMap[t];r[t]=A(s),i.push(m(s)),n.push(t)}let o=()=>`'${i.join("', '")}'`,a=()=>`'${n.join("', '")}'`,l="string"==typeof e.key?t=>t[e.key]:e.key;return t=>{if(e.base&&!p(e.base,t)||null==t)return t;let i=l(t)||e.defaultKeyValue,n=r[i];if(!n)return s().error("Accessor#set",`Invalid property value, value needs to be one of ${o()}, or a plain object that can autocast (having .type = ${a()})`),null;if(!p(e.typeMap[i],t))return t;if("string"==typeof e.key&&!d(t)){let r={};for(let i in t)i!==e.key&&(r[i]=t[i]);return n(r)}return n(t)}}class ${}class M{}function I(e){if(!e||"object"!=typeof e&&"function"!=typeof e||!("type"in e))return!1;switch(e.type){case"native":case"array":case"one-of":return!0}return!1}function z(e){switch(e.type){case"native":return A(e.value);case"array":return N(z(e.value));case"one-of":return function(e){let t=null;return(r,i)=>q(r,e)?r:(t??=P(e),s().error("Accessor#set",`Invalid property value, value needs to be of type ${t}`),i&&(i.valid=!1),null)}(e);default:return null}}function P(e){switch(e.type){case"native":switch(e.value){case Number:return"number";case String:return"string";case Boolean:return"boolean";case $:return"integer";case Date:return"date";case M:return"null";default:return m(e.value)}case"array":return`array of ${P(e.value)}`;case"one-of":{let t=e.values.map(e=>P(e));return`one of ${t.slice(0,-1)} or ${t[t.length-1]}`}}return"unknown"}function q(e,t){if(null==e)return!0;switch(t.type){case"native":switch(t.value){case Number:case $:return"number"==typeof e;case Boolean:return"boolean"==typeof e;case String:return"string"==typeof e;case M:return null===e}return e instanceof t.value;case"array":return!!Array.isArray(e)&&!e.some(e=>!q(e,t.value));case"one-of":return t.values.some(t=>q(e,t))}}r.d(t,["gK",0,{native:e=>({type:"native",value:e}),array:e=>({type:"array",value:e}),oneOf:e=>({type:"one-of",values:e})}])},90360(e,t,r){r.d(t,{C:()=>h,v:()=>c});var i=r(53966),n=r(93637),s=r(96156),o=r(15903),a=r(7142),l=r(59923);const u=()=>i.A.getLogger("esri.core.accessorSupport.extensions.serializableProperty.reader");function c(e,t,r){e&&(!r&&!t.read||t.read?.reader||!1===t.read?.enabled||function(e){return"types"in e?_(e.types):g(e.type)}(e)&&(0,n.sM)("read.reader",h(e),t))}function h(e){let t=e.ndimArray??0;if(t>1)return function(e){let t=f(e),r=d.bind(null,t),i=e.ndimArray??0;return(e,t,n)=>{if(null==e)return e;e=r(e,n,i);let s=i,o=e;for(;s>0&&Array.isArray(o);)s--,o=o[0];if(void 0!==o)for(let t=0;t<s;t++)e=[e];return e}}(e);if(1===t)return p(e);if("type"in e&&y(e.type)){let t=e.type.prototype?.itemType?.Type,r=p("function"==typeof t?{type:t}:{types:t});return(t,i,n)=>{let s=r(t,i,n);return s&&new e.type(s)}}return f(e)}function f(e){return"type"in e?function(e){return e.prototype.read?(t,r,i)=>{if(null==t)return t;let n=typeof t;if("object"!==n)return void u().error(`Expected JSON value of type 'object' to deserialize type '${e.prototype.declaredClass}', but got '${n}'`);let s=new e;return s.read(t,i),s}:e.fromJSON}(e.type):function(e){let t=null,r=e.errorContext??"type",i=e.validate;return(n,o,c)=>{if(null==n)return n;let h=typeof n;if("object"!==h)return void u().error(`Expected JSON value of type 'object' to deserialize, but got '${h}'`);t||=function(e){let t={};for(let r in e.typeMap){let i=e.typeMap[r],n=(0,s.tD)(i.prototype);if("function"==typeof e.key)continue;let o=n[e.key];if(!o)continue;if(o.json?.type&&Array.isArray(o.json.type)&&1===o.json.type.length&&"string"==typeof o.json.type[0]){t[o.json.type[0]]=i;continue}let a=o.json?.write;if(!a?.writer){t[r]=i;continue}let l=a.target,u="string"==typeof l?l:e.key,c={};a.writer(r,c,u),c[u]&&(t[c[u]]=i)}return t}(e);let f=e.key;if("string"!=typeof f)return;let d=n[function(e,t,r){let i=Object.values(t)[0],n=(0,s.tD)(i.prototype)[e],o=(0,a.N5)(n,r)?.read?.source;return o&&"string"==typeof o?o:e}(f,t,c)],p=d?t[d]:e.defaultKeyValue?e.typeMap[e.defaultKeyValue]:void 0;if(!p){let e=`Type '${d||"unknown"}' is not supported`;return c?.messages&&n&&(0,l.Yc)(c,"warning",r,e,{definition:n,context:c}),void u().error(e)}let y=new p;return y.read(n,c),i?i(y):y}}(e.types)}function d(e,t,r,i){return 0!==i&&Array.isArray(t)?t.map(t=>d(e,t,r,i-1)):e(t,void 0,r)}function p(e){let t=f(e);return(e,r,i)=>{if(null==e)return e;if(Array.isArray(e)){let r=[];for(let n of e){let e=t(n,void 0,i);void 0!==e&&r.push(e)}return r}let n=t(e,void 0,i);return void 0===n?void 0:[n]}}function y(e){if(!(0,o.P)(e))return!1;let t=e.prototype.itemType;return!(!t||!t.Type)&&("function"==typeof t.Type?g(t.Type):_(t.Type))}function g(e){return!Array.isArray(e)&&!!e&&("object"==typeof e||"function"==typeof e)&&e.prototype&&("read"in e.prototype||"fromJSON"in e||y(e))}function _(e){for(let t in e.typeMap)if(!g(e.typeMap[t]))return!1;return!0}},15903(e,t,r){function i(e){return!!e&&e.prototype?.declaredClass&&0===e.prototype.declaredClass.indexOf("esri.core.Collection")}r.d(t,{P:()=>i})},7142(e,t,r){function i(e,t){return o(e,"any",t?.origin)}function n(e,t){return o(e,"read",t?.origin)}function s(e,t){return o(e,"write",t?.origin)}function o(e,t,r){let i=e?.json;if(i?.origins&&r){let e;e="link-chart"===r?i.origins[r]&&("any"===t||t in i.origins[r])?i.origins[r]:i.origins["web-map"]:i.origins[r],e&&("any"===t||t in e)&&(i=e)}return i}r.d(t,{N5:()=>n,k4:()=>s,xF:()=>i})},67124(e,t,r){r.d(t,{B:()=>h,v:()=>a});var i=r(53966),n=r(93637),s=r(15903),o=r(59923);function a(e,t){if(!t.write||t.write.writer||!1===t.write.enabled&&!t.write.overridePolicy)return;let r=e?.ndimArray??0;e&&(1===r||"type"in e&&(0,s.P)(e.type))?t.write.writer=f:r>1?t.write.writer=function(e){return(t,r,i,s)=>{let o;if(null===t)o=null;else{o=d(t,s,e);let r=e,i=o;for(;r>0&&Array.isArray(i);)r--,i=i[0];if(void 0!==i)for(let e=0;e<r;e++)o=[o]}(0,n.sM)(i,o,r)}}(r):t.types?Array.isArray(t.types)?t.write.writer=function(e){return(t,r,i,n)=>u(t&&Array.isArray(t)?t.filter(t=>l(t,e,n)):t,r,i,n)}(t.types[0]):t.write.writer=function(e){return(t,r,i,n)=>{if(!t||l(t,e,n))return u(t,r,i,n)}}(t.types):t.write.writer=u}function l(e,t,r){for(let r in t.typeMap)if(e instanceof t.typeMap[r])return!0;if(r?.messages){let n=t.errorContext??"type",s=`Values of type '${("function"==typeof t.key?e.declaredClass:e[t.key])??"Unknown"}' cannot be written`;r&&r.messages&&e&&(0,o.Yc)(r,"error",n,s,{definition:e,context:r}),i.A.getLogger("esri.core.accessorSupport.extensions.serializableProperty.writer").error(s)}return!1}function u(e,t,r,i){(0,n.sM)(r,c(e,i),t)}function c(e,t){return e&&"function"==typeof e.write?e.write({},t):e&&"function"==typeof e.toJSON?e.toJSON():"number"==typeof e?h(e):e}function h(e){return e===-1/0?-Number.MAX_VALUE:e===1/0?Number.MAX_VALUE:isNaN(e)?null:e}function f(e,t,r,i){let s;null===e?s=null:e&&"function"==typeof e.map?(s=e.map(e=>c(e,i)),"function"==typeof s.toArray&&(s=s.toArray())):s=[c(e,i)],(0,n.sM)(r,s,t)}function d(e,t,r){return 0!==r&&Array.isArray(e)?e.map(e=>d(e,t,r-1)):c(e,t)}},16649(e,t,r){r.d(t,{Jt:()=>a,RP:()=>o,t2:()=>l});var i=r(88620);function n(e,t){let r=e.endsWith("?")?e.slice(0,-1):e;if(null!=t.getItemAt||Array.isArray(t)){let e=parseInt(r,10);if(!isNaN(e))return Array.isArray(t)?t[e]:t.at(e)}let n=(0,i.oY)(t);return(0,i.yh)(n,r)?n.get(r):t[r]}function s(e,t,r){if(null==e)return e;let i=n(t[r],e);return!i&&r<t.length-1?void 0:r===t.length-1?i:s(i,t,r+1)}function o(e,t,r=0){return"string"!=typeof t||t.includes(".")?s(e,(0,i.AH)(t),r):n(t,e)}function a(e,t){return o(e,t)}function l(e,t){return void 0!==o(t,e)}},96156(e,t,r){r.d(t,{CX:()=>a,tD:()=>s,z4:()=>o});var i=r(4718),n=r(88620);function s(e){let t=e.constructor.__accessorMetadata__,r=Object.prototype.hasOwnProperty.call(e.constructor,"__accessorMetadata__");if(t){if(!r){t=Object.create(t);for(let e in t)t[e]=(0,i.o8)(t[e]);Object.defineProperty(e.constructor,"__accessorMetadata__",{value:t,enumerable:!1,configurable:!0,writable:!0})}}else t={},Object.defineProperty(e.constructor,"__accessorMetadata__",{value:t,enumerable:!1,configurable:!0,writable:!0});return e.constructor.__accessorMetadata__}function o(e,t){let r=s(e),i=r[t];return i||=r[t]={},i}function a(e,t){return(0,n.h1)(e,t,u)}const l=/^(?:[^.]+\.)?(?:value|type|(?:json\.type|json\.origins\.[^.]\.type))$/;function u(e){return l.test(e)?"replace":"merge"}},45917(e,t,r){r.d(t,{L:()=>c,t:()=>h});var i=r(16649),n=r(88620),s=r(7142);function o(e,t,r){if(!e?.read||!1===e.read.enabled||!e.read.source)return!1;let n=e.read.source;if("string"==typeof n){if(n===t||n.includes(".")&&n.startsWith(t)&&(0,i.t2)(n,r))return!0}else for(let e of n)if(e===t||e.includes(".")&&e.startsWith(t)&&(0,i.t2)(e,r))return!0;return!1}function a(e,t,r,i,n){let a=(0,s.N5)(t[r],n);(function(e){return e&&(!e.read||!1!==e.read.enabled&&!e.read.source)})(a)&&(e[r]=!0);for(let l of Object.getOwnPropertyNames(t))a=(0,s.N5)(t[l],n),o(a,r,i)&&(e[l]=!0)}function l(e,t,r,i){let n=r.metadata,o=(0,s.xF)(n[t],i)?.default;if(void 0===o)return;let a="function"==typeof o?o.call(e,t,i):o;void 0!==a&&r.set(t,a)}const u={origin:"service"};function c(e,t,r=u){if(!t||"object"!=typeof t)return;let o=(0,n.oY)(e),c=o.metadata,h={};for(let e of Object.getOwnPropertyNames(t))a(h,c,e,t,r);o.setDefaultOrigin(r.origin);for(let n of Object.getOwnPropertyNames(h)){let a,l=(0,s.N5)(c[n],r).read,u=l?.source;a=u&&"string"==typeof u?(0,i.RP)(t,u):t[n],l?.reader&&(a=l.reader.call(e,a,t,r)),void 0!==a&&o.set(n,a)}if(!r||!r.ignoreDefaults){o.setDefaultOrigin("defaults");for(let t of Object.getOwnPropertyNames(c))h[t]||l(e,t,o,r)}o.setDefaultOrigin("user")}function h(e,t,r,i=u){let n={...i,messages:[]};r(n),n.messages?.forEach(t=>{"warning"!==t.type||e.loaded?i?.messages&&i.messages.push(t):e.loadWarnings.push(t)})}},47821(e,t,r){r.d(t,{h:()=>o});var i=r(49186),n=r(44208),s=(r(53966),r(16649));function o(e,t,r){if(e&&t)if("object"==typeof t)for(let r of Object.getOwnPropertyNames(t))o(e,r,t[r]);else{if(t.includes(".")){let i=t.split("."),n=i.splice(-1,1)[0];return void o((0,s.Jt)(e,i),n,r)}let a=e.__accessor__;null!=a&&function(e,t){if((0,n.A)("esri-unknown-property-errors")&&!function(e,t){return null!=t.metadata[e]}(e,t))throw new i.A("set:unknown-property",function(e,t){return"setting unknown property '"+e+"' on instance of "+t.host.declaredClass}(e,t))}(t,a),e[t]=r}}},62788(e,t,r){r.d(t,{F_:()=>d,Xr:()=>v,a:()=>f,fE:()=>g,gc:()=>u}),r(44208);var i=r(53966),n=r(88620),s=r(47328);const o=new(r(67867).R),a=[];let l=o;function u(e){l.onAccessed(e)}let c=!1,h=!1;function f(e,t,r){if(c)return p(e,t,r);let n;if(h){l=e,a.push(e);try{n=t.call(r)}catch(e){throw i.A.getLogger("esri.core.accessorSupport.tracking").error(e),e}finally{y()}}else{l=e,a.push(e);try{n=t.call(r)}finally{y()}}return n}function d(e,t){return f(o,e,t)}function p(e,t,r){let n,s=c;c=!0,l=e,a.push(e);try{n=t.call(r)}catch(e){h&&i.A.getLogger("esri.core.accessorSupport.tracking").error(e)}return y(),c=s,n}function y(){let e=a.length;if(e>1){let t=a.pop();l=a[e-2],t.onTrackingEnd()}else if(1===e){let e=a.pop();l=o,e.onTrackingEnd()}else l=o}function g(e,t){if(t.flags&s.i.DepTrackingInitialized)return;t.flags|=s.i.DepTrackingInitialized;let r=h;h=!1,t.flags&s.i.AutoTracked?p(t.trackingTarget,t.metadata.get,e):v(e,t),h=r}const _=[];function v(e,t){t.flags&s.i.ExplicitlyTracking||(t.flags|=s.i.ExplicitlyTracking,p(t.trackingTarget,()=>{let r=t.metadata.dependsOn||_;for(let t of r)if("string"!=typeof t||t.includes(".")){let r=(0,n.AH)(t);for(let t=0,i=e;t<r.length&&"object"==typeof i&&i;++t)i=m(i,r[t],t!==r.length-1)}else m(e,t,!1)}),t.flags&=~s.i.ExplicitlyTracking)}function m(e,t,r){let i=t.endsWith("?")?t.slice(0,-1):t;if(null!=e.getItemAt||Array.isArray(e)){let t=parseInt(i,10);if(!isNaN(t))return Array.isArray(e)?e[t]:e.at(t)}let s=(0,n.oY)(e);if(s){let t=s.propertiesByName.get(i);t&&(u(t),g(e,t))}return r?e[i]:void 0}},47328(e,t,r){r.d(t,["i",0,{Dirty:1,Overridden:2,Computing:4,NonNullable:8,HasDefaultValue:16,DepTrackingInitialized:32,AutoTracked:64,ExplicitlyTracking:128}])},71429(e,t,r){r.d(t,{r:()=>n});var i=r(67867);class n extends i.R{constructor(e){super(new s(e)),this._observer&&o.register(this,new WeakRef(this._observer),this)}destroy(){this._observer&&o.unregister(this),this.accessed?.clear(),this.clear(),this._observer?.destroy()}}class s{constructor(e){this._notify=e,this._invalidCount=0,this.destroyed=!1}onInvalidated(){this._invalidCount++}onCommitted(){if(this.destroyed)return;let e=this._invalidCount;1===e?(this._invalidCount=0,this._notify()):this._invalidCount=e>0?e-1:0}destroy(){this.destroyed=!0,this._notify=a}}const o=new FinalizationRegistry(e=>{e.deref()?.destroy()});function a(){}},67867(e,t,r){r.d(t,{R:()=>i});class i{constructor(e){this.accessed=void 0,this._handles=void 0,this._observer=e}destroy(){this.clear(),this.accessed=void 0,this._observer=void 0}onAccessed(e){null!=this._observer&&e!==this._observer&&(this.accessed??=new Set,this.accessed.add(e))}onTrackingEnd(){null!=this._observer&&(this.clear(),null!=this.accessed&&(this._handles??=[],this.accessed.forEach(e=>{this._handles.push(e.observe(this._observer))}),this.accessed.clear()))}clear(){if(null!=this._handles)for(;this._handles.length;)this._handles.pop().remove()}}},80559(e,t,r){r.d(t,{Df:()=>u,fm:()=>c,mJ:()=>l});var i=r(36563),n=r(62788),s=r(71429);let o=!1;const a=[];function l(e,t){let r=new s.r(function i(){if(!r||l)return;if(o)return void h(i);let s=a;r.clear(),o=!0,l=!0,a=(0,n.a)(r,e),l=!1,o=!1,t(a,s),f()}),a=null,l=!1;return l=!0,a=(0,n.a)(r,e),l=!1,(0,i.hA)(function(){r&&(r.destroy(),r=null,a=null)})}function u(e,t){let r=new s.r(function(){t(o,a)}),o=null;function a(){return r?(r.clear(),o=(0,n.a)(r,e),o):null}return a(),(0,i.hA)(function(){r&&=(r.destroy(),null),o=null})}function c(e,t){let r=!1,a=!1,l=!!t?.sync,u=new s.r(()=>{!r&&!a&&(a=!0,l?c():queueMicrotask(c))});function c(){a=!1,u&&!r&&(o?h(c):(u.clear(),o=!0,r=!0,(0,n.a)(u,e),r=!1,o=!1,f()))}return r=!0,(0,n.a)(u,e),r=!1,(0,i.hA)(function(){u&&=(u.destroy(),null)})}function h(e){a.includes(e)||a.unshift(e)}function f(){for(;a.length;)a.pop()()}},88620(e,t,r){r.d(t,{AH:()=>u,h1:()=>a,oY:()=>s,qg:()=>h,yh:()=>o});var i=r(36563),n=r(4718);function s(e){return e.__accessor__??null}function o(e,t){return null!=e?.metadata?.[t]}function a(e,t,r){return l(e,t,r?{policy:r,path:""}:null)}function l(e,t,r){return t?Object.keys(t).reduce((e,i)=>{let s=i;if("__proto__"===s)return e;let o=null,a="merge";if(r&&(o=r.path?`${r.path}.${i}`:i,a=r.policy(o)),"replace"===a||"replace-arrays"===a&&Array.isArray(e[s]))return e[s]=t[s],e;if(void 0===e[s])return e[s]=(0,n.o8)(t[s]),e;let u=e[s],c=t[s];if(u===c)return e;if(Array.isArray(c)||Array.isArray(e))u=e[s]=u?Array.isArray(u)?u.slice():[u]:[],c&&(Array.isArray(c)||(c=[c]),c.forEach(e=>{u.includes(e)||u.push(e)}));else if(c&&"object"==typeof c)if(r){let t=r.path;r.path=o,e[s]=l(u,c,r),r.path=t}else e[s]=l(u,c,null);else(!e.hasOwnProperty(i)||t.hasOwnProperty(i))&&(e[s]=c);return e},e||{}):e}function u(e){return Array.isArray(e)?e:e.split(".")}function c(e){return e.includes(",")?e.split(",").map(e=>e.trim()):[e.trim()]}function h(e,t,r,n){let s=function(e){if(Array.isArray(e)){let t=[];for(let r of e)t.push(...c(r));return t}return c(e)}(t);if(1!==s.length){let t=s.map(t=>n(e,t,r));return(0,i.vE)(t)}return n(e,s[0],r)}},14012(e,t,r){r.d(t,{iS:()=>w,wB:()=>N,Cn:()=>k});var i=r(98291),n=r(36563),s=r(4718),o=r(93687);class a extends o.A{constructor(){super(...arguments),this._set=new Set}destroy(){super.destroy(),this._set=null}acquire(...e){let t=super.acquire(...e);return this._set.delete(t),t}release(e){e&&!this._set.has(e)&&(super.release(e),this._set.add(e))}_dispose(e){this._set.delete(e),super._dispose(e)}}var l=r(76030),u=r(24326),c=r(16649),h=r(85537),f=r(80559),d=r(88620);class p{constructor(){this.uid=(0,u.c)(),this.removed=!1,this.type=null,this.oldValue=null,this.callback=null,this.getValue=null,this.target=null,this.path=null,this.equals=null}static{this.pool=new a(()=>new p)}static acquireUntracked(e,t,r,i,n){return this.pool.acquire(0,e,t,r,i,n,s.aI)}static acquireTracked(e,t,r,i){return this.pool.acquire(1,e,t,r,null,null,i)}notify(e,t){0===this.type?this.callback.call(this.target,e,t,this.path,this.target):this.callback.call(null,e,t,void 0,void 0)}acquire(e,t,r,i,n,s,o){this.uid=(0,u.c)(),this.removed=!1,this.type=e,this.oldValue=t,this.callback=r,this.getValue=i,this.target=n,this.path=s,this.equals=o}release(){this.target=this.path=this.oldValue=this.callback=this.getValue=null,this.uid=(0,u.c)(),this.removed=!0}}const y=new i.A,g=new Set;let _;function v(e){g.delete(e),g.add(e),_||=(0,l._)(b)}function m(e){if(e.removed)return;let t=e.oldValue,r=e.getValue();e.equals(t,r)||(e.oldValue=r,e.notify(r,t))}function w(e){for(let t of g.values())t.target===e&&(t.removed=!0)}function b(){let e=10;for(;_&&e--;){_=null;let e=A(),t=y.acquire();for(let r of e){let e=r.uid;m(r),e===r.uid&&r.removed&&t.push(r)}for(let e of g)e.removed&&(t.push(e),g.delete(e));for(let e of t)p.pool.release(e);y.release(t),y.release(e),O.forEach(e=>e())}}function A(){let e=y.acquire();e.length=g.size;let t=0;for(let r of g)e[t]=r,++t;return g.clear(),e}const O=new Set;function N(e,t,r,i=!1){return e.__accessor__&&e.__accessor__.lifecycle!==h.v.DESTROYED?i?function(e,t,r){let i=(0,d.qg)(e,t,r,(e,t,r)=>{let n=!1;return(0,f.mJ)(()=>(0,c.RP)(e,t),(o,a)=>{e.__accessor__.lifecycle===h.v.DESTROYED?i.remove():n||=(n=!0,(0,s.aI)(a,o)||r.call(e,o,a,t,e),!1)})});return i}(e,t,r):function(e,t,r){let i=(0,d.qg)(e,t,r,(e,t,r)=>{let s,o,a=(0,f.Df)(()=>(0,c.RP)(e,t),(n,a)=>{e.__accessor__?.lifecycle===h.v.DESTROYED||s&&s.uid!==o?i.remove():(s||(s=p.acquireUntracked(n,r,a,e,t),o=s.uid),v(s))});return(0,n.hA)(()=>{a.remove(),s&&=(s.uid===o&&!s.removed&&(s.removed=!0,v(s)),null),i=a=null})});return i}(e,t,r):(0,n.hA)()}function k(e,t,r=!1,i=s.gh){return r?function(e,t,r){let i=!1;return(0,f.mJ)(e,(e,n)=>{i||=(i=!0,r(n,e)||t(e,n),!1)})}(e,t,i):function(e,t,r){let i,s,o=(0,f.Df)(e,(e,n)=>{i&&i.uid!==s?o.remove():(i||(i=p.acquireTracked(e,t,n,r),s=i.uid),v(i))});return(0,n.hA)(()=>{o.remove(),i&&=(i.uid===s&&!i.removed&&(i.removed=!0,v(i)),null),o=null})}(e,t,i)}},49422(e,t,r){r.d(t,{M:()=>d,R:()=>f});var i=r(4576),n=r(49186),s=r(53966),o=r(16649),a=r(35666),l=r(88620),u=r(7142);function c(e,t,r,i,n){let s={};return t.write?.writer?.call(e,i,s,r,n),s}function h(e,t,r,l,u,c){if(!l?.write)return!1;let h=(0,o.Jt)(e,r);if(!u&&l.write.overridePolicy){let t=l.write.overridePolicy.call(e,h,r,c??void 0);void 0!==t&&(u=t)}if(u||=l.write,!u||!1===u.enabled||u.layerContainerTypes&&c?.layerContainerType&&!u.layerContainerTypes.includes(c.layerContainerType))return!1;if((null===h&&!u.allowNull&&!u.writerEnsuresNonNull||void 0===h)&&u.isRequired){let t=new n.A("web-document-write:property-required",`Missing value for required property '${r}' on '${e.declaredClass}'`,{propertyName:r,target:e});return t&&c?.messages?c.messages.push(t):t&&!c&&s.A.getLogger("esri.core.accessorSupport.write").error(t.name,t.message),!1}return!(void 0===h||null===h&&!u.allowNull&&!u.writerEnsuresNonNull||!u.alwaysWriteDefaults&&(!t.store.multipleOriginsSupported||0===t.store.originOf(r))&&function(e,t,r,n,s){let o=n.default;if(void 0===o)return!1;if(null!=n.defaultEquals)return n.defaultEquals(s);if("function"==typeof o){if(Array.isArray(s)){let n=o.call(e,t,r??void 0);return(0,i.aI)(n,s)}return!1}return o===s}(e,r,c,l,h)||!u.ignoreOrigin&&c?.origin&&t.store.multipleOriginsSupported&&t.store.originOf(r)<(0,a.aB)(c.origin))}function f(e,t,r,i){let n=(0,l.oY)(e),s=n.metadata,o=(0,u.k4)(s[t],i);return!!o&&h(e,n,t,o,r,i)}function d(e,t,r){if(e&&"function"==typeof e.toJSON&&(!e.toJSON.isDefaultToJSON||!e.write))return(0,l.h1)(t,e.toJSON(r));let i=(0,l.oY)(e),n=i.metadata;for(let s in n){let f=(0,u.k4)(n[s],r);if(!h(e,i,s,f,void 0,r))continue;let d=(0,o.Jt)(e,s),p=c(e,f,f.write&&"string"==typeof f.write.target?f.write.target:s,d,r);Object.keys(p).length>0&&(t=(0,l.h1)(t,p),r?.resources?.pendingOperations?.length&&r.resources.pendingOperations.push(Promise.all(r.resources.pendingOperations).then(()=>(0,l.h1)(t,p,()=>"replace-arrays"))),r?.writtenProperties&&r.writtenProperties.push({target:e,propName:s,oldOrigin:(0,a.in)(i.store.originOf(s)),newOrigin:r.origin}))}return t}},5479(e,t,r){function i(e){let t=[];return function*(){yield*t;let r,i=t.length;for(;!(r=e.next()).done;)for(t.push(r.value),yield r.value;++i<t.length;)yield t[i]}}r.d(t,{I6:()=>o,N5:()=>s,PP:()=>i,xZ:()=>l,zN:()=>a});const n=Object.freeze({done:!0,value:void 0});function s(e){let t=[],r=null,i=null,s=!1;async function o(){if(s)return n;if(null!=i)return i;i=e.next();try{let e=await i;return i=null,e.done?(s=!0,n):(t.push(e.value),e)}catch(e){throw s=!0,i=null,r=e,e}}return async function*(){yield*t;let e,i=t.length;for(;!(e=await o()).done;)for(yield e.value;++i<t.length;)yield t[i];if(null!=r)throw r}}function o(e,t){for(let r of e)if(null!=r&&t(r))return r}function a(e,t){for(let r of e)if(t(r))return!0;return!1}function l(e){return null!=e&&"function"==typeof e[Symbol.iterator]}},66552(e,t,r){r.d(t,{J:()=>n,O:()=>o});var i=r(93637);class n{constructor(e,t={ignoreUnknown:!1,useNumericKeys:!1}){this._jsonToAPI=e,this._options=t,this.apiValues=[],this.jsonValues=[],this._apiToJSON=function(e){let t={};for(let r in e)t[e[r]]=r;return t}(e),this.apiValues=s(this._apiToJSON),this.jsonValues=s(this._jsonToAPI),this.read=e=>this.fromJSON(e),this.write=(e,t,r)=>{let n=this.toJSON(e);void 0!==n&&(0,i.sM)(r,n,t)},this.write.isJSONMapWriter=!0}toJSON(e){if(null==e)return null;if(this._apiToJSON.hasOwnProperty(e)){let t=this._apiToJSON[e];return this._options.useNumericKeys?+t:t}return this._options.ignoreUnknown?null:e}fromJSON(e){return null!=e&&this._jsonToAPI.hasOwnProperty(e)?this._jsonToAPI[e]:this._options.ignoreUnknown?void 0:e}}function s(e){let t=[];for(let r in e)t.push(r);return t.sort(),t}function o(){return function(e,t){return new n(e,{ignoreUnknown:!0,...t})}}},26390(e,t,r){r.d(t,{d:()=>n});const i=[];function n(e){i.push(e),1===i.length&&queueMicrotask(()=>{let e=i.slice();i.length=0;for(let t of e)t()})}},76030(e,t,r){r.d(t,{_:()=>g,$m:()=>O,md:()=>A});var i=r(26390);function n(e,t,r,i,n){console.timeStamp(e,t,r,n,i)}class s{constructor(e,t=30){this.name=e,this._counter=0,this._samples=Array(t)}push(e){null!=e&&(this._samples[++this._counter%this._samples.length]=e)}set(e){null!=e&&(this._samples[this._counter%this._samples.length]=e)}get median(){return this._samples.slice().sort((e,t)=>e-t)[Math.floor(this._samples.length/2)]}get average(){return this._samples.reduce((e,t)=>e+t,0)/this._samples.length}get last(){return this._samples[this._counter%this._samples.length]}}var o=r(15142),a=r(17676),l=r(78659);class u{constructor(e){this.callback=e,this.isActive=!0}remove(){this.isActive=!1}}let c=0;const h={time:(0,l.l5)(0),deltaTime:(0,l.l5)(0),elapsedFrameTime:(0,l.l5)(0),frameDuration:(0,l.l5)(0)},f=["prepare","preRender","render","postRender","update","finish"],d=[],p=new o.A,y={frameTasks:p,willDispatch:!1,clearFrameTasks:function(e=!1){p.forAll(e=>{e.removed=!0}),e&&w()},dispatch:b,executeFrameTasks:function(e){let t=(0,l.l5)(e-c);c=e;let r=1e3/60,i=Math.max(0,t-r);h.time=e,h.frameDuration=(0,l.l5)(r-i);for(let r=0;r<f.length;r++){let i=performance.now(),s=f[r];p.forAll(i=>{i.paused||i.removed||(0===r&&i.ticks++,!i.phases[s])||(h.elapsedFrameTime=(0,l.l5)(performance.now()-e),h.deltaTime=0===i.ticks?(0,l.l5)(0):t,i.phases[s]?.call(i,h))});let o=performance.now();N[r].push(o-i),n(s,i,o,"Maps SDK","Scheduling")}w();let s=performance.now();k.push(s-e),n("Animation Frame",e,s,"Maps SDK","Scheduling")},reschedule:function(){null!=_&&(cancelAnimationFrame(_),_=requestAnimationFrame(v))}};function g(e){let t=new u(e);return d.push(t),y.willDispatch||(y.willDispatch=!0,(0,i.d)(b)),t}let _=null;function v(){let e=performance.now();_=null,_=p.some(e=>!e.paused&&!e.removed)?requestAnimationFrame(v):null,y.executeFrameTasks(e)}const m=new o.A;function w(){p.forAll(e=>{e.removed&&m.push(e)}),p.removeUnorderedMany(m.data,m.length),m.clear()}function b(){for(;d.length;){let e=d.shift();e.isActive&&e.callback()}y.willDispatch=!1}function A(e=1,t){let r=Promise.withResolvers(),n=()=>{(0,a.G4)(t)?r.reject((0,a.NK)()):0===e?r.resolve():(--e,(0,i.d)(()=>n()))};return n(),r.promise}async function O(e){await function(e){return A(1,e)}(e),await new Promise(t=>requestAnimationFrame(()=>{e?.aborted||t()}))}const N=f.map(e=>new s(e)),k=new s("total")},78659(e,t,r){function i(e){return e}function n(e){return 1e3*e}function s(e){return e}r.d(t,{Kp:()=>s,gr:()=>n,l5:()=>i})},24326(e,t,r){r.d(t,{c:()=>n});let i=0;function n(){return++i}},59923(e,t,r){r.d(t,{GL:()=>h,U4:()=>a,Yc:()=>c,bA:()=>u,qt:()=>l});var i=r(49186),n=r(67076);const s=["layer","property","renderer","symbol","symbol-layer","url","visual-variable","type","elevation-profile-line","field-configuration-field-format","parquet-data"].map(e=>`${e}:unsupported`),o=new Set(s);function a(e,t,r){if(!e)return;let i=`${e.origin}/${e.layerContainerType||"operational-layers"}`;e?.messages?.push(h("layer",`Layer (${t.title}, ${t.id}) of type '${t.declaredClass}' is not supported in the context of '${i}'${r?`: ${r}`:""}`,{layer:t}))}function l(e,t,r){if(!e)return;let i=`${e.origin}/${e.layerContainerType||"operational-layers"}`;e?.messages?.push(h("property",`Property '${t}' is not supported in the context of '${i}'${r?`: ${r}`:""}`))}function u(e,t,r,i){if(!e)return;let n=`${e.origin}/${e.layerContainerType||"operational-layers"}`;e?.messages?.push(h("symbol",`Symbol '${t.declaredClass}' is not supported in the context of '${n}'${r?`: ${r}`:""}`,i))}function c(e,t,r,s,o){e&&e?.messages?.push(f("warning"===t?n.A:i.A,r,s,o))}function h(e,t,r){return f(i.A,e,t,r)}function f(e,t,r,i){return new e(`${t}:unsupported`,r,i)}r.d(t,["MG",0,o])}}]);
|