@arcgis/core 5.1.0-next.86 → 5.1.0-next.88
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/Graphic.js +1 -1
- package/analysis/LineOfSightAnalysisObserver.d.ts +2 -2
- package/analysis/LineOfSightAnalysisTarget.d.ts +2 -2
- package/applications/Components/arcadeUtils.d.ts +23 -0
- package/applications/Components/arcadeUtils.js +2 -0
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/00e9e25269d5776f8645.js +1 -0
- package/assets/esri/core/workers/chunks/015fc0a17b17d69cc3bb.js +1 -0
- package/assets/esri/core/workers/chunks/0a6df243b18acae471be.js +1 -0
- package/assets/esri/core/workers/chunks/0cc4b3100a7a453bd058.js +1 -0
- package/assets/esri/core/workers/chunks/10cf6a70bf79f04a7208.js +1 -0
- package/assets/esri/core/workers/chunks/{e9a42f0262fc44a79d4b.js → 164ee62f2211987ad850.js} +1 -1
- package/assets/esri/core/workers/chunks/169ca3724053fc046d1b.js +1 -0
- package/assets/esri/core/workers/chunks/206bdfd868a9ef88f3a8.js +1 -0
- package/assets/esri/core/workers/chunks/2343b1105bc4c1b4a086.js +1 -0
- package/assets/esri/core/workers/chunks/{1bad4331a43169f3cc34.js → 2549a07f403447482f4e.js} +1 -1
- package/assets/esri/core/workers/chunks/{f89b7b0ccfbd1e5f9a0f.js → 3092184350d66c79f610.js} +1 -1
- package/assets/esri/core/workers/chunks/3469df5c4846b0cee012.js +1 -0
- package/assets/esri/core/workers/chunks/{26f804c92077c11c626d.js → 394812e19b6915d560b0.js} +1 -1
- package/assets/esri/core/workers/chunks/{2f8b173d1dac73ba0d9e.js → 3cf77b7a61f78f9bcd62.js} +1 -1
- package/assets/esri/core/workers/chunks/{edbdee69440dbfc05644.js → 3e72bd6dbfc52d956c06.js} +1 -1
- package/assets/esri/core/workers/chunks/3feec3d08424b94e1bcf.js +1 -0
- package/assets/esri/core/workers/chunks/{ce4dfc3a470230ddc9e4.js → 43f58604ba4a94a9167c.js} +1 -1
- package/assets/esri/core/workers/chunks/{ff57a071156d8a7e47be.js → 456d269e3982c437010a.js} +1 -1
- package/assets/esri/core/workers/chunks/46b16501db6681dc467b.js +1 -0
- package/assets/esri/core/workers/chunks/48549d3d7bf0154c0afa.js +1 -0
- package/assets/esri/core/workers/chunks/{713ab619060bd5087479.js → 4baf66314f82cfa76beb.js} +182 -157
- package/assets/esri/core/workers/chunks/{1ab66600579fa4232d7b.js → 4dc91c2208201ba34c90.js} +1 -1
- package/assets/esri/core/workers/chunks/{b14c4c3f295970f731ab.js → 500be1fb7cc9efec875c.js} +1 -1
- package/assets/esri/core/workers/chunks/{fc6ca7ffb9f1b875059c.js → 51716e411fad624ac21c.js} +1 -1
- package/assets/esri/core/workers/chunks/54c035cdc171998d0776.js +1 -0
- package/assets/esri/core/workers/chunks/{b23e677c33db6f9bac8a.js → 566f6319ded0634769e0.js} +1 -1
- package/assets/esri/core/workers/chunks/{701b823763e941b71f4f.js → 7185486c6dc28fc367a1.js} +1 -1
- package/assets/esri/core/workers/chunks/752f4e0e2961fc315dca.js +1 -0
- package/assets/esri/core/workers/chunks/7ba67f1d7831a5576a5a.js +1 -0
- package/assets/esri/core/workers/chunks/{186bfde8c552e3b42302.js → 7ef51b0ebd560113ae7e.js} +1 -1
- package/assets/esri/core/workers/chunks/7f0f10946f05a09b5654.js +1 -0
- package/assets/esri/core/workers/chunks/{fce2306a1b31c6680f90.js → 7f34fa9f154f5101cb13.js} +1 -1
- package/assets/esri/core/workers/chunks/8178e9ba3c568d406a87.js +1 -0
- package/assets/esri/core/workers/chunks/83f1871d04c979fa23b7.js +1 -0
- package/assets/esri/core/workers/chunks/85da2987e17b6755a94e.js +1 -0
- package/assets/esri/core/workers/chunks/8a5a827ee557d9f9a66e.js +1 -0
- package/assets/esri/core/workers/chunks/9c09097e390985bbac58.js +1 -0
- package/assets/esri/core/workers/chunks/{618106f5fbdf88ef2278.js → a401d44a5b45c05072c2.js} +1 -1
- package/assets/esri/core/workers/chunks/{d0aee7c80c5c7e23d216.js → a429355534bf6cbd8304.js} +1 -1
- package/assets/esri/core/workers/chunks/a432219de6a873f88776.js +1 -0
- package/assets/esri/core/workers/chunks/{455d08294e0f5c5509ff.js → a6b75576d598ec161cc4.js} +1 -1
- package/assets/esri/core/workers/chunks/{99c6bd2125f4eb6796fe.js → aae40d70eb01249c1bab.js} +1 -1
- package/assets/esri/core/workers/chunks/b2662bfdbd1e3623ceb9.js +1 -0
- package/assets/esri/core/workers/chunks/b4bac22467e96be7a974.js +1 -0
- package/assets/esri/core/workers/chunks/{5166f204fd078dced5db.js → baea6f86b2dbe067940e.js} +1 -1
- package/assets/esri/core/workers/chunks/c3e89c7c7b677bd18557.js +1 -0
- package/assets/esri/core/workers/chunks/cb81d524f12edcadb9bb.js +1 -0
- package/assets/esri/core/workers/chunks/cc0f3b9b153a0c232afe.js +1 -0
- package/assets/esri/core/workers/chunks/cd0c232f4e3868d91a05.js +1 -0
- package/assets/esri/core/workers/chunks/{bae8f2a5dfe0cfbc0688.js → d00dddc3881fa29446e1.js} +1 -1
- package/assets/esri/core/workers/chunks/{9bd713d96502ddc2ce25.js → d8ccc713c5ad93e7a0c3.js} +1 -1
- package/assets/esri/core/workers/chunks/{e66b9d00d02fc08cbb2d.js → da008d6a3afb30d18392.js} +1 -1
- package/assets/esri/core/workers/chunks/dde94664110ff231a52d.js +1 -0
- package/assets/esri/core/workers/chunks/de3e5d82502ee15b7eae.js +1 -0
- package/assets/esri/core/workers/chunks/defac06f9e2b43090677.js +2 -0
- package/assets/esri/core/workers/chunks/e6fe8b5fbe95de01453b.js +1 -0
- package/assets/esri/core/workers/chunks/ee7e9bca57160694b3c4.js +1 -0
- package/assets/esri/core/workers/chunks/f36345ebb9851ab92453.js +1 -0
- package/assets/esri/core/workers/chunks/{add000f51c778114c028.js → f37e4ae0e9be80210db0.js} +1 -1
- package/assets/esri/core/workers/chunks/{c503c79ba5761f7abbeb.js → fa869bfe4366f7f49cca.js} +1 -1
- package/assets/esri/core/workers/chunks/{d8de7fe49dba9ed589df.js → fade7b878a9498382bb2.js} +1 -1
- package/assets/esri/core/workers/chunks/fe30e61652716fcccf16.js +2 -0
- package/assets/esri/libs/lyr3d/lyr3DMain.wasm +0 -0
- package/assets/esri/libs/lyr3d/lyr3DWorker.wasm +0 -0
- package/assets/esri/libs/text/pkg/bundle_bg.wasm +0 -0
- package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_ar.json +1 -1
- package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_bg.json +1 -1
- package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_bs.json +1 -1
- package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_ca.json +1 -1
- package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_cs.json +1 -1
- package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_da.json +1 -1
- package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_de.json +1 -1
- package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_el.json +1 -1
- package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_es.json +1 -1
- package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_et.json +1 -1
- package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_fi.json +1 -1
- package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_fr.json +1 -1
- package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_he.json +1 -1
- package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_hr.json +1 -1
- package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_hu.json +1 -1
- package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_id.json +1 -1
- package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_it.json +1 -1
- package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_ja.json +1 -1
- package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_ko.json +1 -1
- package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_lt.json +1 -1
- package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_lv.json +1 -1
- package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_nl.json +1 -1
- package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_no.json +1 -1
- package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_pl.json +1 -1
- package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_pt-BR.json +1 -1
- package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_pt-PT.json +1 -1
- package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_ro.json +1 -1
- package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_ru.json +1 -1
- package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_sk.json +1 -1
- package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_sl.json +1 -1
- package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_sr.json +1 -1
- package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_sv.json +1 -1
- package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_th.json +1 -1
- package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_tr.json +1 -1
- package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_uk.json +1 -1
- package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_vi.json +1 -1
- package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_zh-CN.json +1 -1
- package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_zh-HK.json +1 -1
- package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_zh-TW.json +1 -1
- package/chunks/GlobalIllumination.glsl.js +25 -17
- package/chunks/GlowBlur.glsl.js +11 -8
- package/chunks/OITBlend.glsl.js +1 -1
- package/chunks/bundle2.js +1 -1
- package/config.js +1 -1
- package/core/has.js +1 -1
- package/interfaces.d.ts +0 -3
- package/kernel.js +1 -1
- package/layers/Lyr3DWasmPerSceneView.js +1 -1
- package/layers/graphics/data/QueryEngineCapabilities.js +1 -1
- package/layers/graphics/data/QueryEngineResult.js +1 -1
- package/layers/graphics/sources/OGCFeatureSource.js +1 -1
- package/layers/graphics/sources/support/ParquetSourceWorker.js +1 -1
- package/layers/mixins/ArcGISImageService.js +1 -1
- package/layers/support/SubtypeSublayer.js +1 -1
- package/layers/support/capabilities.js +1 -1
- package/layers/support/layerUtils.js +1 -1
- package/layers/support/serviceCapabilitiesUtils.js +1 -1
- package/networks/CircuitManager.d.ts +33 -25
- package/networks/CircuitManager.js +1 -1
- package/networks/support/typeUtils.d.ts +4 -1
- package/networks/support/typeUtils.js +1 -1
- package/package.json +3 -3
- package/renderers/ClassBreaksRenderer.js +1 -1
- package/renderers/UniqueValueRenderer.js +1 -1
- package/renderers/support/scaleDependentSymbolUtils.js +2 -0
- package/rest/networks/circuits/queryCircuits.js +1 -1
- package/rest/networks/circuits/support/QueryCircuitsParameters.d.ts +21 -15
- package/rest/networks/circuits/support/QueryCircuitsParameters.js +1 -1
- package/rest/query/operations/query.js +1 -1
- package/rest/support/Query.js +1 -1
- package/support/revision.js +1 -1
- package/third-party-notices.txt +19 -12
- package/views/2d/engine/webgl/GlyphSDFCreator.js +1 -1
- package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
- package/views/3d/analysis/LineOfSight/LineOfSightAuthoringStore.js +2 -0
- package/views/3d/analysis/LineOfSight/LineOfSightAuthoringUtils.js +2 -0
- package/views/3d/analysis/LineOfSight/LineOfSightController.js +1 -1
- package/views/3d/analysis/LineOfSight/LineOfSightDrawToolRenderer.js +2 -0
- package/views/3d/analysis/LineOfSight/LineOfSightObserverPlugin.js +2 -0
- package/views/3d/analysis/LineOfSight/LineOfSightPlacementTool.js +2 -0
- package/views/3d/analysis/LineOfSight/LineOfSightRootPlugin.js +2 -0
- package/views/3d/analysis/LineOfSight/LineOfSightTargetPlugin.js +2 -0
- package/views/3d/analysis/LineOfSight/LineOfSightTool2.js +1 -1
- package/views/3d/analysis/LineOfSightAnalysisView3D.js +1 -1
- package/views/3d/layers/FeatureLikeLayerViewBase3D.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/ComponentTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/shading/ScreenSpaceRayMarching.glsl.js +149 -0
- package/views/3d/webgl-engine/core/shaderLibrary/shading/WaterColor.glsl.js +2 -2
- package/views/3d/webgl-engine/effects/globalIllumination/GlobalIllumination.glsl.js +1 -1
- package/views/3d/webgl-engine/effects/globalIllumination/GlobalIllumination.js +1 -1
- package/views/3d/webgl-engine/effects/globalIllumination/GlobalIlluminationTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/effects/glow/Glow.js +1 -1
- package/views/3d/webgl-engine/materials/WaterTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/parts/RenderView.js +1 -1
- package/views/3d/webgl-engine/shaders/TerrainTechniqueConfiguration.js +1 -1
- package/webmap/utils.js +1 -1
- package/widgets/Legend/support/ActiveLayerInfo.js +1 -1
- package/assets/esri/core/workers/chunks/0c074c46d106ca4d3bad.js +0 -1
- package/assets/esri/core/workers/chunks/1f16bc8c02d8c4b2f693.js +0 -1
- package/assets/esri/core/workers/chunks/29878b52aa12b3815230.js +0 -1
- package/assets/esri/core/workers/chunks/2c916b93d8a6e6b9c0d7.js +0 -1
- package/assets/esri/core/workers/chunks/3ea5a18b264628dc37f0.js +0 -1
- package/assets/esri/core/workers/chunks/41913575dd45c65d645e.js +0 -1
- package/assets/esri/core/workers/chunks/46e622857ba92a72a317.js +0 -1
- package/assets/esri/core/workers/chunks/49e8144effc299dfcd66.js +0 -1
- package/assets/esri/core/workers/chunks/4d0f793dee4ad919221b.js +0 -1
- package/assets/esri/core/workers/chunks/65ac73de5bb133c6bf89.js +0 -1
- package/assets/esri/core/workers/chunks/67ec1694d6e18b7c234c.js +0 -1
- package/assets/esri/core/workers/chunks/6e526c06825ecc6c99c0.js +0 -1
- package/assets/esri/core/workers/chunks/6f7aaba26773fe416ac2.js +0 -1
- package/assets/esri/core/workers/chunks/7acf82763aeba44049d0.js +0 -1
- package/assets/esri/core/workers/chunks/88eb1e4320c4ada01711.js +0 -1
- package/assets/esri/core/workers/chunks/8af9a78cf316581ea482.js +0 -1
- package/assets/esri/core/workers/chunks/96bba4d93a32ad34a1c8.js +0 -1
- package/assets/esri/core/workers/chunks/97719271a3e4c9f2b2c9.js +0 -1
- package/assets/esri/core/workers/chunks/9ea23cd4b2664c08b670.js +0 -1
- package/assets/esri/core/workers/chunks/a1a12552d34ea9eea130.js +0 -1
- package/assets/esri/core/workers/chunks/a844547bf33a8527ee9f.js +0 -2
- package/assets/esri/core/workers/chunks/ac5999c88c27b49cd760.js +0 -1
- package/assets/esri/core/workers/chunks/b575292013bceef9b015.js +0 -1
- package/assets/esri/core/workers/chunks/bbc27d9285162696d089.js +0 -1
- package/assets/esri/core/workers/chunks/bc8a74da48b08309875f.js +0 -1
- package/assets/esri/core/workers/chunks/cd7159600ce132e32d04.js +0 -1
- package/assets/esri/core/workers/chunks/ce66c551b7083913eee5.js +0 -1
- package/assets/esri/core/workers/chunks/cf7acf5acb6d322fd996.js +0 -1
- package/assets/esri/core/workers/chunks/d9c3f14eee4db7a7137b.js +0 -1
- package/assets/esri/core/workers/chunks/db3c484bfa607dec6050.js +0 -1
- package/assets/esri/core/workers/chunks/dcc719e15b2e0cce1f3b.js +0 -1
- package/assets/esri/core/workers/chunks/ded2f19a1685db2137f4.js +0 -2
- package/assets/esri/core/workers/chunks/f43d628d47eec7d530c7.js +0 -1
- package/assets/esri/core/workers/chunks/fae147d03ed723ab234d.js +0 -1
- package/assets/esri/core/workers/chunks/fcf51697c361e0075cc2.js +0 -1
- package/views/3d/webgl-engine/core/shaderLibrary/shading/ScreenSpaceReflections.glsl.js +0 -132
- /package/assets/esri/core/workers/chunks/{ded2f19a1685db2137f4.js.LICENSE.txt → defac06f9e2b43090677.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{a844547bf33a8527ee9f.js.LICENSE.txt → fe30e61652716fcccf16.js.LICENSE.txt} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3300],{52106(t,e,n){n.d(e,{A:()=>I});var r,i,o=n(5482),s=n(37838),a=n(69540),l=n(51447),u=n(25482),c=n(4718),h=n(53966),p=n(36708),f=n(24326),d=n(91429),m=n(12195),y=n(65864),g=n(50498),M=n(55156),v=n(60950),b=n(54339),x=n(94128),w=n(33910);function S(t){if(null==t)return null;const e={};for(const n in t){const r=t[n];r&&(e[n]=r.toJSON())}return 0!==Object.keys(e).length?e:null}let I=class extends((0,a.OU)(u.o)){static{r=x.Z}static{i=this}constructor(t){super(t),this[r]=!0,this.aggregateIds=void 0,this.isAggregate=!1,this.layer=null,this.origin=null,this.sourceLayer=null,this._version=0,Object.defineProperty(this,"uid",{value:(0,f.c)(),configurable:!0}),Object.defineProperty(this,"_lastMeshTransform",{value:{},configurable:!0,writable:!0,enumerable:!1}),arguments.length>1&&(0,l.eF)(h.A.getLogger(this),"Graphic",{version:"4.30"})}initialize(){this._watchMeshGeometryChanges()}set aggregateGeometries(t){const e=this._get("aggregateGeometries");JSON.stringify(e)!==JSON.stringify(t)&&this._set("aggregateGeometries",t)}set attributes(t){const e=this._get("attributes");e!==t&&(this._set("attributes",t),this._notifyLayer("attributes",e,t))}set geometry(t){const e=this._get("geometry");e!==t&&(this._set("geometry",t),"mesh"!==t?.type&&this._notifyLayer("geometry",e,t))}set popupTemplate(t){const e=this._get("popupTemplate");e!==t&&(this._set("popupTemplate",t),this._notifyLayer("popupTemplate",e,t))}set symbol(t){const e=this._get("symbol");e!==t&&(this._set("symbol",t),this._notifyLayer("symbol",e,t))}get version(){return this._version}set visible(t){const e=this._get("visible");e!==t&&(this._set("visible",t),this._notifyLayer("visible",e,t))}cloneShallow(){return new i({aggregateGeometries:this.aggregateGeometries,aggregateIds:this.aggregateIds,attributes:this.attributes,geometry:this.geometry,isAggregate:this.isAggregate,layer:this.layer,popupTemplate:this.popupTemplate,sourceLayer:this.sourceLayer,symbol:this.symbol,visible:this.visible,origin:this.origin})}getEffectivePopupTemplate(t=!1){if(this.popupTemplate)return this.popupTemplate;const e=(0,v.E_)(this.origin);if(e)return e.popupTemplate??(t?e.defaultPopupTemplate:null)??null;const n=this.origin&&"layer"in this.origin?this.origin.layer:null;for(const e of[n,this.sourceLayer,this.layer])if(e&&"object"==typeof e){if("popupTemplate"in e&&e.popupTemplate)return e.popupTemplate;if(t&&"defaultPopupTemplate"in e&&null!=e.defaultPopupTemplate)return e.defaultPopupTemplate}return null}getAttribute(t){return this.attributes?.[t]}setAttribute(t,e){if(this.attributes){const n=this.getAttribute(t);this.attributes[t]=e,this._notifyLayer("attributes",n,e,t)}else this.attributes={[t]:e}}getObjectId(){const t=(0,M.I)(this.origin);if(t)return(0,b.r)(this,t);const e=this.sourceLayer??this.layer;return e?(0,b.r)(this,e):null}getGlobalId(){const t=(0,M.I)(this.origin);if(t?.globalIdField)return this.getAttribute(t.globalIdField);const e=this.sourceLayer??this.layer;return e&&"globalIdField"in e&&e.globalIdField?this.getAttribute(e.globalIdField):null}toJSON(){const t={aggregateGeometries:S(this.aggregateGeometries),geometry:null!=this.geometry?this.geometry.toJSON():null,symbol:null!=this.symbol?this.symbol.toJSON():null,attributes:(0,m.W)(this.attributes)?this.attributes.toJSON():{...this.attributes},popupTemplate:this.popupTemplate?.toJSON()??null};return this.aggregateIds?.length&&(t.aggregateIds=(0,c.o8)(this.aggregateIds)),t}notifyMeshTransformChanged(t={}){const{geometry:e}=this;if("mesh"===e?.type){const n={origin:e.origin,transform:e.transform};this._notifyLayer("origin-transform",n,n,t.action)}}_notifyLayer(t,e,n,r){if(this._version++,!this.layer||!("graphicChanged"in this.layer))return;const i={graphic:this,property:t,oldValue:e,newValue:n};"origin-transform"===t&&(i.action=r),"attributes"===t&&(i.attributeName=r),this.layer.graphicChanged(i)}_watchMeshGeometryChanges(){this.addHandles([(0,p.z7)(()=>"mesh"===this.geometry?.type&&this.geometry.vertexSpace.origin?{localMatrix:this.geometry.transform?.localMatrix,origin:this.geometry.vertexSpace.origin}:void 0,({localMatrix:t,origin:e})=>{this._lastMeshTransform.localMatrix===t&&this._lastMeshTransform.origin===e||(this._lastMeshTransform.localMatrix=t,this._lastMeshTransform.origin=e,this.notifyMeshTransformChanged())}),(0,p.z7)(()=>"mesh"===this.geometry?.type?{vertexAttributes:this.geometry.vertexAttributes}:void 0,()=>{const t=this.geometry;"mesh"===t?.type&&t.vertexSpace.origin?(this._lastMeshTransform.localMatrix=t.transform?.localMatrix,this._lastMeshTransform.origin=t.vertexSpace.origin):(this._lastMeshTransform.localMatrix=void 0,this._lastMeshTransform.origin=void 0),this._notifyLayer("geometry",this.geometry,this.geometry)},{equals:(t,e)=>t===e,sync:!0})])}};(0,o.Cg)([(0,d.MZ)({value:null,json:{read:function(t){if(!t)return null;const e={};for(const n in t){const r=(0,y.rS)(t[n]);r&&(e[n]=r)}return 0!==Object.keys(e).length?e:null}}})],I.prototype,"aggregateGeometries",null),(0,o.Cg)([(0,d.MZ)()],I.prototype,"aggregateIds",void 0),(0,o.Cg)([(0,d.MZ)({value:null})],I.prototype,"attributes",null),(0,o.Cg)([(0,d.MZ)({value:null,types:g.yR,json:{read:y.rS}})],I.prototype,"geometry",null),(0,o.Cg)([(0,d.MZ)({type:Boolean})],I.prototype,"isAggregate",void 0),(0,o.Cg)([(0,d.MZ)({clonable:!1})],I.prototype,"layer",void 0),(0,o.Cg)([(0,d.MZ)({clonable:"reference"})],I.prototype,"origin",void 0),(0,o.Cg)([(0,d.MZ)({type:s.A,value:null})],I.prototype,"popupTemplate",null),(0,o.Cg)([(0,d.MZ)({clonable:"reference"})],I.prototype,"sourceLayer",void 0),(0,o.Cg)([(0,d.MZ)({value:null,types:w.Es})],I.prototype,"symbol",null),(0,o.Cg)([(0,d.MZ)({clonable:!1,json:{read:!1,write:!1}})],I.prototype,"_version",void 0),(0,o.Cg)([(0,d.MZ)({type:Boolean,value:!0})],I.prototype,"visible",null),I=i=(0,o.Cg)([(0,d.$K)("esri.Graphic")],I)},69052(t,e,n){n.d(e,{hr:()=>i,ie:()=>l,uC:()=>a});var r=n(34727);class i{constructor(t,e){this.min=t,this.max=e,this.range=e-t}normalize(t,e=0,n=!1){return o(this.range,this.min,this.max,t,e,n)}clamp(t,e=0){return(0,r.qE)(t-e,this.min,this.max)+e}monotonic(t,e,n){return t<e?e:e+s(this.range,t-e,n)}minimalMonotonic(t,e,n){return o(this.range,t,t+this.range,e,n)}center(t,e,n){return e=this.monotonic(t,e,n),this.normalize((t+e)/2,n)}diff(t,e,n){return this.monotonic(t,e,n)-t}shortestSignedDiff(t,e){t=this.normalize(t);const n=(e=this.normalize(e))-t,r=e<t?this.minimalMonotonic(t,e)-t:e-this.minimalMonotonic(e,t);return Math.abs(n)<Math.abs(r)?n:r}contains(t,e,n){return e=this.minimalMonotonic(t,e),(n=this.minimalMonotonic(t,n))>t&&n<e}}function o(t,e,n,r,i=0,o=!1){return(r-=i)<e?r+=s(t,e-r):r>n&&(r-=s(t,r-n)),o&&r===n&&(r=e),r+i}function s(t,e,n=0){return Math.ceil((e-n)/t)*t+n}const a=new i(0,2*Math.PI),l=(new i(-Math.PI,Math.PI),new i(0,360))},9093(t,e,n){function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function i(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]]}n.d(e,{o8:()=>i,vt:()=>r,zK:()=>o});const o=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:o,clone:i,create:r,fromValues:function(t,e,n,r,i,o,s,a,l,u,c,h,p,f,d,m){return[t,e,n,r,i,o,s,a,l,u,c,h,p,f,d,m]}},Symbol.toStringTag,{value:"Module"}))},35522(t,e,n){n.d(e,{$A:()=>C,Bw:()=>o,C:()=>s,Cc:()=>A,DI:()=>w,Il:()=>q,Io:()=>M,Ln:()=>g,Om:()=>I,Qr:()=>h,Re:()=>u,S8:()=>S,T9:()=>m,WQ:()=>l,Z0:()=>R,_S:()=>f,aI:()=>k,ei:()=>T,fw:()=>j,g7:()=>Z,gL:()=>E,hG:()=>v,hZ:()=>a,hs:()=>y,jb:()=>N,jk:()=>d,lo:()=>$,lw:()=>c,m3:()=>b,oW:()=>L,t2:()=>_,tn:()=>p,uE:()=>D,xg:()=>G,ze:()=>x});var r=n(51850),i=n(34304);function o(t){const e=t[0],n=t[1],r=t[2];return Math.sqrt(e*e+n*n+r*r)}function s(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function a(t,e,n,r){return t[0]=e,t[1]=n,t[2]=r,t}function l(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t}function u(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function c(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t}function h(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t}function p(t,e){return t[0]=Math.abs(e[0]),t[1]=Math.abs(e[1]),t[2]=Math.abs(e[2]),t}function f(t,e){return t[0]=Math.sign(e[0]),t[1]=Math.sign(e[1]),t[2]=Math.sign(e[2]),t}function d(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t}function m(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t}function y(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t}function g(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t}function M(t,e){const n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2];return Math.sqrt(n*n+r*r+i*i)}function v(t,e){const n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2];return n*n+r*r+i*i}function b(t){const e=t[0],n=t[1],r=t[2];return e*e+n*n+r*r}function x(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}function w(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}function S(t,e){const n=e[0],r=e[1],i=e[2];let o=n*n+r*r+i*i;return o>0&&(o=1/Math.sqrt(o),t[0]=e[0]*o,t[1]=e[1]*o,t[2]=e[2]*o),t}function I(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function C(t,e,n){const r=e[0],i=e[1],o=e[2],s=n[0],a=n[1],l=n[2];return t[0]=i*l-o*a,t[1]=o*s-r*l,t[2]=r*a-i*s,t}function A(t,e,n,r){const i=e[0],o=e[1],s=e[2];return t[0]=i+r*(n[0]-i),t[1]=o+r*(n[1]-o),t[2]=s+r*(n[2]-s),t}function R(t,e,n){const r=e[0],i=e[1],o=e[2];return t[0]=n[0]*r+n[4]*i+n[8]*o+n[12],t[1]=n[1]*r+n[5]*i+n[9]*o+n[13],t[2]=n[2]*r+n[6]*i+n[10]*o+n[14],t}function T(t,e,n){const r=e[0],i=e[1],o=e[2];return t[0]=r*n[0]+i*n[3]+o*n[6],t[1]=r*n[1]+i*n[4]+o*n[7],t[2]=r*n[2]+i*n[5]+o*n[8],t}function E(t,e,n){return j(t,e,n[0],n[1],n[2],n[3])}function j(t,e,n,r,i,o){const s=e[0],a=e[1],l=e[2],u=r*l-i*a,c=i*s-n*l,h=n*a-r*s,p=r*h-i*c,f=i*u-n*h,d=n*c-r*u,m=2*o;return t[0]=s+u*m+2*p,t[1]=a+c*m+2*f,t[2]=l+h*m+2*d,t}function Z(t,e){S(P,t),S(O,e);const n=I(P,O);return n>1?0:n<-1?Math.PI:Math.acos(n)}const P=(0,r.vt)(),O=(0,r.vt)();function _(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function k(t,e){if(t===e)return!0;const n=t[0],r=t[1],o=t[2],s=e[0],a=e[1],l=e[2],u=(0,i.FD)();return Math.abs(n-s)<=u*Math.max(1,Math.abs(n),Math.abs(s))&&Math.abs(r-a)<=u*Math.max(1,Math.abs(r),Math.abs(a))&&Math.abs(o-l)<=u*Math.max(1,Math.abs(o),Math.abs(l))}function L(t,e,n){const r=n[0]-e[0],i=n[1]-e[1],o=n[2]-e[2];let s=r*r+i*i+o*o;return s>0?(s=1/Math.sqrt(s),t[0]=r*s,t[1]=i*s,t[2]=o*s,t):(t[0]=0,t[1]=0,t[2]=0,t)}const N=u,z=c,F=h,G=M,$=v,q=o,D=b;Object.freeze(Object.defineProperty({__proto__:null,abs:p,add:l,angle:Z,bezier:function(t,e,n,r,i,o){const s=1-o,a=s*s,l=o*o,u=a*s,c=3*o*a,h=3*l*s,p=l*o;return t[0]=e[0]*u+n[0]*c+r[0]*h+i[0]*p,t[1]=e[1]*u+n[1]*c+r[1]*h+i[1]*p,t[2]=e[2]*u+n[2]*c+r[2]*h+i[2]*p,t},ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t},clamp:function(t,e=0,n=1){return t[0]=Math.min(Math.max(t[0],e),n),t[1]=Math.min(Math.max(t[1],e),n),t[2]=Math.min(Math.max(t[2],e),n),t},copy:s,cross:C,crossAndNormalize:function(t,e,n){const r=e[0],i=e[1],o=e[2],s=n[0],a=n[1],l=n[2],u=i*l-o*a,c=o*s-r*l,h=r*a-i*s,p=Math.sqrt(u*u+c*c+h*h);return t[0]=u/p,t[1]=c/p,t[2]=h/p,t},direction:L,dist:G,distance:M,div:F,divide:h,dot:I,equals:k,exactEquals:_,floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t},hermite:function(t,e,n,r,i,o){const s=o*o,a=s*(2*o-3)+1,l=s*(o-2)+o,u=s*(o-1),c=s*(3-2*o);return t[0]=e[0]*a+n[0]*l+r[0]*u+i[0]*c,t[1]=e[1]*a+n[1]*l+r[1]*u+i[1]*c,t[2]=e[2]*a+n[2]*l+r[2]*u+i[2]*c,t},inverse:w,len:q,length:o,lerp:A,max:m,min:d,mul:z,multiply:c,negate:x,normalize:S,random:function(t,e=1){const n=i.Ov,r=2*n()*Math.PI,o=2*n()-1,s=Math.sqrt(1-o*o)*e;return t[0]=Math.cos(r)*s,t[1]=Math.sin(r)*s,t[2]=o*e,t},rotateX:function(t,e,n,r){const i=[],o=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],o[0]=i[0],o[1]=i[1]*Math.cos(r)-i[2]*Math.sin(r),o[2]=i[1]*Math.sin(r)+i[2]*Math.cos(r),t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t},rotateY:function(t,e,n,r){const i=[],o=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],o[0]=i[2]*Math.sin(r)+i[0]*Math.cos(r),o[1]=i[1],o[2]=i[2]*Math.cos(r)-i[0]*Math.sin(r),t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t},rotateZ:function(t,e,n,r){const i=[],o=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],o[0]=i[0]*Math.cos(r)-i[1]*Math.sin(r),o[1]=i[0]*Math.sin(r)+i[1]*Math.cos(r),o[2]=i[2],t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t},round:function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t},scale:y,scaleAndAdd:g,set:a,sign:f,sqrDist:$,sqrLen:D,squaredDistance:v,squaredLength:b,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:N,subtract:u,transformMat3:T,transformMat4:R,transformQuat:E,transformQuatValues:j},Symbol.toStringTag,{value:"Module"}))},56512(t,e,n){function r(t){let e,n,r=[],i=!1;return function(...o){return i&&e===this&&function(t,e){if(t.length!==e.length)return!1;for(let n=0;n<t.length;++n)if(t[n]!==e[n])return!1;return!0}(o,r)||(n=t.apply(this,o),e=this,r=o,i=!0),n}}n.d(e,{B:()=>r})},69397(t,e,n){n.d(e,{Qf:()=>l,Qh:()=>s,RS:()=>i,Ul:()=>f,i5:()=>p,lM:()=>o,qK:()=>c});var r=n(34275);const i=16;function o(t){if(!t)return 0;let e=c;for(const n in t)t.hasOwnProperty(n)&&(e+=a(t[n],!1));return e}function s(t){if(!t)return 0;if("number"==typeof t[0])return l(t);if(Array.isArray(t))return function(t){const e=t.length;if(0===e||"number"==typeof t[0])return u(t,8);let n=h;for(let r=0;r<e;r++)n+=a(t[r]);return n}(t);let e=c;for(const n in t)t.hasOwnProperty(n)&&(e+=a(t[n]));return e}function a(t,e=!0){switch(typeof t){case"object":return e?s(t):c;case"string":return function(t){return 32+t.length}(t);case"number":return i;case"boolean":return 4;default:return 8}}function l(...t){return t.reduce((t,e)=>t+(e?(0,r.iu)(e)?e.byteLength+p:Array.isArray(e)?u(e,i):0:0),0)}function u(t,e){return h+t.length*e}const c=32,h=16,p=145,f=64},13069(t,e,n){n.d(e,{AG:()=>a,lk:()=>i,vD:()=>s,yS:()=>o});const r="randomUUID"in crypto;function i(){if(r)return crypto.randomUUID();const t=crypto.getRandomValues(new Uint16Array(8));t[3]=4095&t[3]|16384,t[4]=16383&t[4]|32768;const e=e=>t[e].toString(16).padStart(4,"0");return e(0)+e(1)+"-"+e(2)+"-"+e(3)+"-"+e(4)+"-"+e(5)+e(6)+e(7)}function o(){return`{${i().toUpperCase()}}`}function s(){return`{${i()}}`}function a(t){const e=t.toUpperCase();return t.startsWith("{")?e:`{${e}}`}},159(t,e,n){n.d(e,{A:()=>u});var r,i=n(5482),o=n(69540),s=n(25482),a=n(91429),l=n(99157);let u=r=class extends((0,o.OU)(s.o)){constructor(t){super(t),this.steps=[]}getInverse(){const t=new r;for(let e=this.steps.length-1;e>=0;e--){const n=this.steps[e];t.steps.push(n.getInverse())}return t}};(0,i.Cg)([(0,a.MZ)({type:[l.A],nonNullable:!0,json:{name:"geoTransforms"}})],u.prototype,"steps",void 0),u=r=(0,i.Cg)([(0,a.$K)("esri.geometry.operators.support.GeographicTransformation")],u)},99157(t,e,n){n.d(e,{A:()=>l});var r,i=n(5482),o=n(69540),s=n(25482),a=n(91429);let l=r=class extends((0,o.OU)(s.o)){constructor(t){super(t),this.isInverse=!1,this.wkt=null,this.wkid=null}getInverse(){return new r({isInverse:!this.isInverse,wkid:this.wkid,wkt:this.wkt})}};(0,i.Cg)([(0,a.MZ)({json:{name:"transformForward",read:t=>!t,write:(t,e,n)=>{e[n]=!t}}})],l.prototype,"isInverse",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],l.prototype,"wkt",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],l.prototype,"wkid",void 0),l=r=(0,i.Cg)([(0,a.$K)("esri.geometry.operators.support.GeographicTransformationStep")],l)},9762(t,e,n){n.r(e),n.d(e,{projectBuffer:()=>i});var r=n(49208);function i(t,e,n,i,o,s,a=Math.floor(t.length/3)){const l=(0,r.jd)(e,o);if(null==l)return!1;if(l===r.pO){if(t===i&&n===s)return!0;const e=n+3*a;for(let r=n,o=s;r<e;r++,o++)i[o]=t[r]??0;return!0}const u=n+3*a;for(let e=n,r=s;e<u;e+=3,r+=3)l(t,e,i,r);return!0}},49208(t,e,n){n.d(e,{Tp:()=>h,jd:()=>c,pO:()=>f,w5:()=>u});var r=n(34727),i=n(86211),o=n(73941),s=n(79258),a=n(34403),l=n(21325);const u={2:{5:f,7:null,9:null,10:f,1:x,6:null,8:null,0:null,3:m,11:y,2:f,4:A},5:{5:f,7:null,9:null,10:f,1:x,6:null,8:null,0:null,3:m,11:y,2:f,4:A},7:{5:null,7:f,9:null,10:f,1:null,6:b,8:null,0:null,3:null,11:null,2:null,4:null},9:{5:null,7:null,9:f,10:f,1:null,6:null,8:v,0:null,3:null,11:null,2:null,4:null},3:{5:d,7:null,9:null,10:d,1:function(t,e,n,r){const i=t[e]/P,o=Z-2*Math.atan(Math.exp(-t[e+1]/P)),s=P+(t[e+2]??0),a=Math.cos(o)*s;n[r]=Math.cos(i)*a,n[r+1]=Math.sin(i)*a,n[r+2]=Math.sin(o)*s},6:null,8:null,0:null,3:f,11:function(t,e,n,r){d(t,e,n,r),y(n,r,n,r)},2:d,4:function(t,e,n,r){d(t,e,n,r),A(n,r,n,r)}},4:{5:R,7:null,9:null,10:R,1:function(t,e,n,r){R(t,e,n,r),x(n,r,n,r)},6:null,8:null,0:null,3:function(t,e,n,r){R(t,e,n,r),m(n,r,n,r)},11:function(t,e,n,r){R(t,e,n,r),y(n,r,n,r)},2:R,4:f},1:{5:C,7:null,9:null,10:C,1:f,6:null,8:null,0:null,3:function(t,e,n,r){C(t,e,n,r),m(n,r,n,r)},11:function(t,e,n,r){C(t,e,n,r),y(n,r,n,r)},2:C,4:function(t,e,n,r){C(t,e,n,r),A(n,r,n,r)}},6:{5:null,7:I,9:null,10:I,1:null,6:f,8:null,0:null,3:null,11:null,2:null,4:null},8:{5:null,7:null,9:S,10:S,1:null,6:null,8:f,0:null,3:null,11:null,2:null,4:null},0:{5:null,7:null,9:null,10:null,1:null,6:null,8:null,0:f,3:null,11:null,2:null,4:null},10:{5:f,7:f,9:f,10:f,1:x,6:b,8:v,0:null,3:m,11:y,2:f,4:A},11:{5:g,7:null,9:null,10:g,1:function(t,e,n,r){g(t,e,n,r),x(n,r,n,r)},6:null,8:null,0:null,3:function(t,e,n,r){g(t,e,n,r),m(n,r,n,r)},11:f,2:g,4:function(t,e,n,r){g(t,e,n,r),A(n,r,n,r)}}};function c(t,e){return h(t,e)?.projector}function h(t,e){if(null==t||null==e)return null;if(T.source.spatialReference===t&&T.dest.spatialReference===e)return T;const n=p(t,T.source),r=p(e,T.dest);return 0===n&&0===r?(0,l.aI)(t,e)?T.projector=f:T.projector=null:T.projector=u[n][r],T}function p(t,e){return t?e.spatialReference===t?e.spatialReferenceId:(e.spatialReference=t,"metersPerUnit"in e&&(e.metersPerUnit=(0,i.GA)(t,1)),(0,o.jA)(t)?e.spatialReferenceId=1:(0,l.oT)(t)?e.spatialReferenceId=2:(0,l.K8)(t)?e.spatialReferenceId=3:(0,l.r1)(t)?e.spatialReferenceId=11:t.wkt===o.Ro.wkt?e.spatialReferenceId=4:4490===t.wkid?e.spatialReferenceId=5:t.wkt===o.FY.wkt?e.spatialReferenceId=6:t.wkt===o.LJ.wkt?e.spatialReferenceId=8:(0,o.q8)(t)?e.spatialReferenceId=7:(0,o.KQ)(t)?e.spatialReferenceId=9:e.spatialReferenceId=0):0}function f(t,e,n,r){t!==n&&(n[r++]=t[e++],n[r++]=t[e++],n[r]=t[e]??0)}function d(t,e,n,r){n[r]=j*(t[e]/P),n[r+1]=j*(Z-2*Math.atan(Math.exp(-t[e+1]/P))),n[r+2]=t[e+2]??0}function m(t,e,n,i){!function(t,e,n,i,o){const s=.4999999*Math.PI,a=(0,r.qE)(E*t[e+1],-s,s),l=Math.sin(a);n[i++]=E*t[e]*o.radius,n[i++]=o.halfSemiMajorAxis*Math.log((1+l)/(1-l)),n[i]=t[e+2]??0}(t,e,n,i,s.$O)}function y(t,e,n,r){n[r]=t[e]*O,n[r+1]=t[e+1]*O,n[r+2]=t[e+2]??0}function g(t,e,n,r){n[r]=t[e]*_,n[r+1]=t[e+1]*_,n[r+2]=t[e+2]??0}function M(t,e,n,r,i){const o=i+(t[e+2]??0),s=E*t[e],a=E*t[e+1],l=Math.cos(a)*o;n[r]=Math.cos(s)*l,n[r+1]=Math.sin(s)*l,n[r+2]=Math.sin(a)*o}function v(t,e,n,r){M(t,e,n,r,s.Sw.radius)}function b(t,e,n,r){M(t,e,n,r,s.sH.radius)}function x(t,e,n,r){M(t,e,n,r,s.$O.radius)}function w(t,e,n,i,o){const s=t[e],a=t[e+1],l=t[e+2]??0,u=Math.sqrt(s*s+a*a+l*l),c=(0,r.YN)(l/(0===u?1:u)),h=Math.atan2(a,s);n[i++]=j*h,n[i++]=j*c,n[i]=u-o}function S(t,e,n,r){w(t,e,n,r,s.Sw.radius)}function I(t,e,n,r){w(t,e,n,r,s.sH.radius)}function C(t,e,n,r){w(t,e,n,r,s.$O.radius)}function A(t,e,n,r){!function(t,e,n,r,i){const o=E*t[e],s=E*t[e+1],a=t[e+2]??0,l=Math.sin(s),u=Math.cos(s),c=i.radius/Math.sqrt(1-i.eccentricitySquared*l*l);n[r++]=(c+a)*u*Math.cos(o),n[r++]=(c+a)*u*Math.sin(o),n[r++]=(c*(1-i.eccentricitySquared)+a)*l}(t,e,n,r,s.$O)}function R(t,e,n,r){const i=a.TP,o=t[e],l=t[e+1],u=t[e+2]??0;let c,h,p,f,d,m,y,g,M,v,b,x,w,S,I,C,A,R,T,E,Z;c=Math.abs(u),h=o*o+l*l,p=Math.sqrt(h),f=h+u*u,d=Math.sqrt(f),E=Math.atan2(l,o),m=u*u/f,y=h/f,S=i.a2/d,I=i.a3-i.a4/d,y>.3?(g=c/d*(1+y*(i.a1+S+m*I)/d),T=Math.asin(g),v=g*g,M=Math.sqrt(1-v)):(M=p/d*(1-m*(i.a5-S-y*I)/d),T=Math.acos(M),v=1-M*M,g=Math.sqrt(v)),b=1-s.$O.eccentricitySquared*v,x=s.$O.radius/Math.sqrt(b),w=i.a6*x,S=p-x*M,I=c-w*g,A=M*S+g*I,C=M*I-g*S,R=C/(w/b+A),T+=R,Z=A+C*R/2,u<0&&(T=-T),n[r++]=j*E,n[r++]=j*T,n[r]=Z}const T={source:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},projector:f},E=(0,r.kU)(1),j=(0,r.KJ)(1),Z=.5*Math.PI,P=s.$O.radius,O=P*Math.PI/180,_=180/(P*Math.PI)},91218(t,e,n){n.r(e),n.d(e,{canProjectWithoutEngine:()=>B,initializeProjection:()=>V,isEqualBaseGCS:()=>W,isLoaded:()=>P,isLoadedOrLoad:()=>O,isLoadedOrLoadFor:()=>_,load:()=>L,project:()=>N,projectAsync:()=>U,projectExtent:()=>it,projectMany:()=>z,projectMultipoint:()=>X,projectOrLoad:()=>G,projectOrLoadMany:()=>$,projectPoint:()=>H,projectPolygon:()=>nt,projectPolyline:()=>tt,projectWithoutEngine:()=>K,requiresLoad:()=>k,test:()=>J,tryProject:()=>F,unload:()=>D});var r=n(49186),i=n(17676),o=n(62788),s=n(95488),a=n(51850),l=n(21276),u=n(73941),c=n(5443),h=n(91075),p=n(48526),f=n(86738),d=n(39829),m=n(82799),y=n(16930),g=n(98764),M=n(159),v=n(9762),b=n(49208);function x(t,e,n,r,i,o){return w[0]=t,w[1]=e,w[2]=n,(0,v.projectBuffer)(w,r,0,i,o,0)}const w=(0,a.vt)();var S=n(60408),I=n(21325),C=n(52006);let A=null,R=null,T=null,E=null,j={};const Z=new s.I;function P(){return!!(R?.isLoaded()&&T?.isLoaded()&&E?.isLoaded())}function O(){return!!P()||((0,o.gc)(Z),L(),!1)}function _(t,e){return!t||!e||B(t,e)||O()}function k(t,e){return!B(t,e)&&!P()}async function L(t){null==A&&(A=Promise.all([n.e(3276).then(n.bind(n,83276)).then(t=>(R=t,R.load())),n.e(8377).then(n.bind(n,8377)).then(t=>(T=t,T.load())),n.e(2158).then(n.bind(n,12158)).then(t=>(E=t,E.load()))])),await A,(0,i.Te)(t),Z.notify()}function N(t,e,n){return Array.isArray(t)?0===t.length?[]:((0,l.H)(t),z(t,t[0].spatialReference,e,n)):((0,l.f)(t),z([t],t.spatialReference,e,n)[0])}function z(t,e,n,r){if(null==e||null==n)return t;if(B(e,n,r))return t.map(t=>K(t,e,n));if(null==r?.geographicTransformation&&(0,u.jA)(e))return z(t.map(t=>K(t,e,y.A.WGS84)),y.A.WGS84,n,{zConversionDisabled:r?.zConversionDisabled});if(null==r?.geographicTransformation&&(0,u.jA)(n))return z(t,e,y.A.WGS84).map(t=>K(t,y.A.WGS84,n));if(!P())throw new q;if(!r?.geographicTransformation)if(r?.extendedParams)r={...r,geographicTransformation:E.getTransformation(e,n,r.areaOfInterestExtent)||new M.A};else if(!r?.areaOfInterestExtent){const t=function(t,e){return[t.wkid?.toString()??"-1",t.wkt?.toString()??"",t.wkt2?.toString()??"",e.wkid?.toString()??"-1",e.wkt?.toString()??"",e.wkt2?.toString()??""].join()}(e,n);let i=j[t];i||(i=E.getTransformation(e,n)||new M.A,j[t]=i),r={geographicTransformation:i,zConversionDisabled:r?.zConversionDisabled}}return t[0].spatialReference||(t[0].spatialReference=e),t[0]instanceof h.A?R.executeMany(t,n,r):T.executeMany(t,n,r)}function F(t,e,n){try{return N(t,e,n)}catch(t){return null}}function G(t,e){const n=$([t],e);return null!=n.pending?{pending:n.pending,geometry:null}:null!=n.geometries?{pending:null,geometry:n.geometries[0]}:{pending:null,geometry:null}}function $(t,e,n){if(!P())for(const n of t)if(null!=n&&!(0,I.aI)(n.spatialReference,e)&&(0,I.fn)(n.spatialReference)&&(0,I.fn)(e)&&!B(n.spatialReference,e))return(0,o.gc)(Z),{pending:L(),geometries:null};return{pending:null,geometries:t.map(t=>null==t?null:(0,I.aI)(t.spatialReference,e)?t:(0,I.fn)(t.spatialReference)&&(0,I.fn)(e)?N(t,e,n):null)}}class q extends r.A{constructor(){super("projection:not-loaded","projection engine not fully loaded yet, please call load()")}}function D(){A=null,R=null,T=null,E=null,j={}}const J={get loadPromise(){return A}};async function U(t,e,n){if((0,i.Te)(n),!t)return t;const r=$(Array.isArray(t)?t:[t],e,n);if(r.pending)return await r.pending,(0,i.Te)(n),U(t,e,n);const o=r.geometries??[];return Array.isArray(t)?o:o[0]}function B(t,e,n){return!(n?.areaOfInterestExtent||n?.extendedParams||n?.geographicTransformation)&&(!!(0,I.aI)(t,e)||(0,I.fn)(t)&&(0,I.fn)(e)&&!!(0,b.jd)(t,e))}function W(t,e){if((0,I.aI)(t,e))return!0;if(!(0,I.fn)(t)||!(0,I.fn)(e))return!1;const n=(0,I.oT)(t)||(0,I.K8)(t)||(0,I.x1)(t),r=(0,I.oT)(e)||(0,I.K8)(e)||(0,I.x1)(e);return n&&r}async function V(t,e,n,r){if(P())return(0,i.NO)(r);if(Array.isArray(t)){for(const{source:e,dest:n,options:i}of t)if(e&&n&&!B(e,n,i))return L(r)}else if(t&&e&&!B(t,e,n))return L(r);return(0,i.NO)(r)}function K(t,e,n){return t?(0,S.fT)(t)?Y(t,e,new f.A,n,0):(0,S.ZC)(t)?ot(t,e,new c.A,n,0):(0,S.Bi)(t)?rt(t,e,new d.A,n,0):(0,S.Rg)(t)?et(t,e,new m.A,n,0):(0,S.U9)(t)?Q(t,e,new p.A,n,0):null:null}function H(t,e,n=e.spatialReference,r=0){return null!=n&&null!=t.spatialReference&&null!=Y(t,t.spatialReference,e,n,r)}function Y(t,e,n,r,i){ut[0]=t.x,ut[1]=t.y;const o=t.z;return ut[2]=void 0!==o?o:i,(0,v.projectBuffer)(ut,e,0,ut,r,0)?(n.x=ut[0],n.y=ut[1],n.spatialReference=r,void 0!==o||(0,u.xP)(r)?(n.z=ut[2],n.hasZ=!0):(n.z=void 0,n.hasZ=!1),void 0===t.m?(n.m=void 0,n.hasM=!1):(n.m=t.m,n.hasM=!0),n):null}function X(t,e,n=e.spatialReference,r=0){return null!=t.spatialReference&&null!=n&&null!=Q(t,t.spatialReference,e,n,r)}function Q(t,e,n,r,i){const{points:o,hasZ:s,hasM:a}=t,l=[],u=o.length,c=[];for(const t of o)c.push(t[0],t[1],s?t[2]:i);if(!(0,v.projectBuffer)(c,e,0,c,r,0,u))return null;const h=lt(s,r);for(let t=0;t<u;++t){const e=3*t,n=c[e],r=c[e+1];h&&a?l.push([n,r,c[e+2],o[t][3]]):h?l.push([n,r,c[e+2]]):a?l.push([n,r,o[t][2]]):l.push([n,r])}return n.points=l,n.spatialReference=r,n.hasZ=s,n.hasM=a,n}function tt(t,e,n=e.spatialReference,r=0){return null!=t.spatialReference&&null!=n&&null!=et(t,t.spatialReference,e,n,r)}function et(t,e,n,r,i){const{curvePaths:o,paths:s,hasZ:a,hasM:l}=t;if(!(o?at(o,a??!1,l??!1,e,n.curvePaths=[],r,i):st(s,a??!1,l??!1,e,n.paths,r,i)))return null;const u=lt(a,r);return n.spatialReference=r,n.hasZ=u,n.hasM=l,n}function nt(t,e,n=e.spatialReference,r=0){return null!=t.spatialReference&&null!=n&&null!=rt(t,t.spatialReference,e,n,r)}function rt(t,e,n,r,i){const{curveRings:o,rings:s,hasZ:a,hasM:l}=t;return(o?at(o,a??!1,l??!1,e,n.curveRings=[],r,i):st(s,a??!1,l??!1,e,n.rings,r,i))?(n.spatialReference=r,n.hasZ=lt(a,r),n.hasM=l,n):null}function it(t,e,n=e.spatialReference,r=0){return null!=t.spatialReference&&null!=n&&null!=ot(t,t.spatialReference,e,n,r)}function ot(t,e,n,r,i){const{xmin:o,ymin:s,xmax:a,ymax:l,hasZ:u,hasM:c}=t;if(!x(o,s,u?t.zmin:i,e,ut,r))return null;const h=lt(u,r);return n.xmin=ut[0],n.ymin=ut[1],h&&(n.zmin=ut[2]),x(a,l,u?t.zmax:i,e,ut,r)?(n.xmax=ut[0],n.ymax=ut[1],h&&(n.zmax=ut[2]),c&&(n.mmin=t.mmin,n.mmax=t.mmax),n.spatialReference=r,n):null}function st(t,e,n,r,i,o,s=0){const a=new Array;for(const n of t)for(const t of n)a.push(t[0],t[1],e?t[2]:s);if(!(0,v.projectBuffer)(a,r,0,a,o,0))return!1;let l=0;i.length=0;const u=e?3:2,c=lt(e,o);for(const e of t){const t=new Array;for(const r of e){const e=a.slice(l,l+=3);c||e.pop(),n&&e.push(r[u]),t.push(e)}i.push(t)}return!0}function at(t,e,n,r,i,o,s=0){const a=new Array;for(const n of t)for(const t of n){if((0,C.FG)(t))return!1;if((0,C.aO)(t)){const[n,r]=t.c;a.push(n[0],n[1],e?n[2]:s,r[0],r[1],s);continue}if((0,C.n1)(t)){const[n,r,i]=t.b;a.push(n[0],n[1],e?n[2]:s,r[0],r[1],s,i[0],i[1],s);continue}const n=t;a.push(n[0],n[1],e?n[2]:s)}if(!(0,v.projectBuffer)(a,r,0,a,o,0))return!1;let l=0;i.length=0;const u=e?3:2,c=lt(e,o);for(const e of t){const t=new Array;for(const r of e){const e=a.slice(l,l+=3);if(c||e.pop(),n&&e.push((0,C.yP)(r)[u]),(0,C.FG)(r))return!1;if((0,C.aO)(r)){const n=a[l++],r=a[l++];++l,t.push({c:[e,[n,r]]});continue}if((0,C.n1)(r)){const n=a[l++],r=a[l++];++l;const i=a[l++],o=a[l++];++l,t.push({b:[e,[n,r],[i,o]]});continue}t.push(e)}i.push(t)}return!0}function lt(t,e){return t||(0,u.xP)(e)||(0,I.aI)(e,g.Y0)}const ut=(0,a.vt)()},98764(t,e,n){n.d(e,{GD:()=>s,Y0:()=>u,lO:()=>c});var r=n(73941),i=n(16930),o=n(21325);const s=new i.A(r.fv),a=new i.A(r.FY),l=new i.A(r.LJ),u=new i.A(r.Ro);function c(t){const e=h.get(t);if(e)return e;let n=s;if(t)if(t===a)n=a;else if(t===l)n=l;else{const e=t.wkid,r=t.latestWkid;if(null!=e||null!=r)(0,o.tl)(e)||(0,o.tl)(r)?n=a:((0,o.ZL)(e)||(0,o.ZL)(r))&&(n=l);else{const e=t.wkt2??t.wkt;if(e){const t=e.toUpperCase();t===p?n=a:t===f&&(n=l)}}}return h.set(t,n),n}const h=new Map,p=a.wkt.toUpperCase(),f=l.wkt.toUpperCase()},4197(t,e,n){n.d(e,{Vj:()=>l,cj:()=>a,jh:()=>o,l5:()=>s});var r=n(34275),i=n(9093);function o(t){return t<=r.y9?new Array(t).fill(0):new Float64Array(t)}function s(t,e,n){return Array.isArray(t)?t.slice(e,e+n):t.subarray(e,e+n)}function a(t){return[...t]}function l(t){const e=(0,i.vt)();for(let n=0;n<16;++n)e[n]=t[n];return e}},70328(t,e,n){n.d(e,{BI:()=>v,DC:()=>h,Ej:()=>f,Ie:()=>g,Jt:()=>M,Ne:()=>d,RF:()=>c,aI:()=>x,fA:()=>s,gE:()=>l,hZ:()=>y,iT:()=>p,is:()=>b,qv:()=>w,vI:()=>m,vY:()=>a,v_:()=>S,vt:()=>o,w1:()=>u}),n(35522);var r=n(5443),i=(n(19419),n(4197));function o(t=S){return[t[0],t[1],t[2],t[3],t[4],t[5]]}function s(t,e,n,r,i,s,a=o()){return a[0]=t,a[1]=e,a[2]=n,a[3]=r,a[4]=i,a[5]=s,a}function a(t,e=o()){return function(t,e,n,r=o()){return y(r,w),function(t,e,n=0,r=e.length/3){let i=t[0],o=t[1],s=t[2],a=t[3],l=t[4],u=t[5];for(let t=0;t<r;t++)i=Math.min(i,e[n+3*t]),o=Math.min(o,e[n+3*t+1]),s=Math.min(s,e[n+3*t+2]),a=Math.max(a,e[n+3*t]),l=Math.max(l,e[n+3*t+1]),u=Math.max(u,e[n+3*t+2]);t[0]=i,t[1]=o,t[2]=s,t[3]=a,t[4]=l,t[5]=u}(r,t,e,n),r}(t,0,t.length/3,e)}function l(t,e=(0,i.jh)(24)){const[n,r,o,s,a,l]=t;return e[0]=n,e[1]=r,e[2]=o,e[3]=n,e[4]=r,e[5]=l,e[6]=n,e[7]=a,e[8]=o,e[9]=n,e[10]=a,e[11]=l,e[12]=s,e[13]=r,e[14]=o,e[15]=s,e[16]=r,e[17]=l,e[18]=s,e[19]=a,e[20]=o,e[21]=s,e[22]=a,e[23]=l,e}function u(t,e){const n=isFinite(t[2])||isFinite(t[5]);return new r.A(n?{xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],zmin:t[2],zmax:t[5],spatialReference:e}:{xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],spatialReference:e})}function c(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.min(t[2],e[2]),t[3]=Math.max(t[3],e[3]),t[4]=Math.max(t[4],e[4]),t[5]=Math.max(t[5],e[5])}function h(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[3]=Math.max(t[3],e[2]),t[4]=Math.max(t[4],e[3])}function p(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.min(t[2],e[2]),t[3]=Math.max(t[3],e[0]),t[4]=Math.max(t[4],e[1]),t[5]=Math.max(t[5],e[2])}function f(t,e=[0,0,0]){return e[0]=function(t){return t[0]>=t[3]?0:t[3]-t[0]}(t),e[1]=function(t){return t[1]>=t[4]?0:t[4]-t[1]}(t),e[2]=function(t){return t[2]>=t[5]?0:t[5]-t[2]}(t),e}function d(t,e,n=t){return n[0]=e[0],n[1]=e[1],n[2]=e[2],n!==t&&(n[3]=t[3],n[4]=t[4],n[5]=t[5]),n}function m(t,e,n=t){return n[3]=e[0],n[4]=e[1],n[5]=e[2],n!==t&&(n[0]=t[0],n[1]=t[1],n[2]=t[2]),t}function y(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function g(t){return t?y(t,w):o(w)}function M(t,e){return t[0]=e[0],t[1]=e[1],t[2]=Number.NEGATIVE_INFINITY,t[3]=e[2],t[4]=e[3],t[5]=Number.POSITIVE_INFINITY,t}function v(t,e,n,r,i){return t[0]=e,t[1]=n,t[2]=Number.NEGATIVE_INFINITY,t[3]=r,t[4]=i,t[5]=Number.POSITIVE_INFINITY,t}function b(t){return 6===t.length}function x(t,e,n){if(null==t||null==e)return t===e;if(!b(t)||!b(e))return!1;if(n){for(let r=0;r<t.length;r++)if(!n(t[r],e[r]))return!1}else for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}const w=[1/0,1/0,1/0,-1/0,-1/0,-1/0],S=[0,0,0,0,0,0];o()},31411(t,e,n){n.d(e,{GS:()=>I,gh:()=>A});var r=n(49186),i=n(56512),o=n(65864),s=n(4305),a=n(50954),l=n(52006),u=n(49663),c=n(46068),h=n(15507);const p=1e-6,f=[0,0];function d(t){return{maxSegmentLength:t.maxSegmentLength??0,maxDeviation:t.maxDeviation??0,maxSegmentsPerCurve:t.maxSegmentsPerCurve??12e3,minSegmentsPerCurve:Math.max(t.minSegmentsPerCurve??1,1)}}class m{constructor(t,e){this.curveStart=t,this.curveEnd=e,this.tStart=0,this.tEnd=0,this.tEndStack=[],this.arcEndStack=[]}get stackSize(){return this.tEndStack.length}initialize(t,e){this.tStart=0,this.arcStart=t,this.tEndStack.push(1),this.arcEndStack.push(e)}splitAt(t){this.tEndStack.push(this.tEnd),this.arcEndStack.push(this.arcEnd),this.tEndStack.push(t),this.arcEndStack.push(this.interpolate(t))}splitInHalf(){return this.splitAt((this.tStart+this.tEnd)/2)}pop(){this.tEnd=this.tEndStack.pop(),this.arcEnd=this.arcEndStack.pop()}next(){this.tStart=this.tEnd,this.arcStart=this.arcEnd}densify(t,{maxDeviation:e,maxSegmentLength:n,maxSegmentsPerCurve:r,minSegmentsPerCurve:i}){const o=n*n,s=e*e,a=1/r,l=this.interpolate(0),u=this.interpolate(1);(0,h.kb)(this.curveStart,l)>p&&t.push(l),this.initialize(l,u);const c=1/i;for(let t=i-1;t>0;t--){const e=t*c;this.pop(),this.splitAt(e)}for(;this.stackSize>0;)this.pop(),this.tStart===this.tEnd||this.tEnd-this.tStart<a||(0===o||!isFinite(o)||(0,h.kb)(this.arcStart,this.arcEnd)<o)&&(0===s||!isFinite(s)||this.getDeviation2()<s)?(t.push(this.arcEnd),this.next()):this.splitInHalf();return(0,h.kb)(this.curveEnd,u)>p&&t.push([...this.curveEnd]),t}}class y extends m{constructor(t,e){const[n,r,i]=e.b;super(t,n),this._controlPointsStack=[],this._curveControlPoints=[r,i],this._arcControlPoints=[r,i],this._controlPointsStack.push(this._arcControlPoints)}splitAt(t){const{arcStart:e,arcEnd:n,tStart:r,tEnd:i}=this,[o,s]=this._arcControlPoints,a=(t-r)/(i-r),l=(0,h.RS)([],e,o,a),u=(0,h.RS)(f,o,s,a),c=(0,h.RS)([],s,n,a),p=(0,h.RS)([],l,u,a),d=(0,h.RS)([],u,c,a),m=(0,h.RS)([],p,d,a);this.tEndStack.push(this.tEnd),this.arcEndStack.push(this.arcEnd),this._controlPointsStack.push([d,c]),this.tEndStack.push(t),this.arcEndStack.push(m),this._arcControlPoints[0]=l,this._arcControlPoints[1]=p,this._controlPointsStack.push(this._arcControlPoints)}pop(){super.pop(),this._arcControlPoints=this._controlPointsStack.pop()}interpolate(t){const{curveStart:e,curveEnd:n}=this,[r,i]=this._curveControlPoints;return(0,s.B4)(e,r,i,n,t)}getDeviation2(){const{arcStart:t,arcEnd:e}=this,[n,r]=this._arcControlPoints;return Math.max((0,h.yE)(n,t,e),(0,h.yE)(r,t,e))}}class g extends m{constructor(t,e){const[n]=e.a;super(t,n),this._derivedEllipse=(0,c.SW)(t,e)}pop(){super.pop(),this._tMid=(this.tStart+this.tEnd)/2,this._arcMid=this.interpolate(this._tMid)}splitInHalf(){this.tEndStack.push(this.tEnd),this.arcEndStack.push(this.arcEnd),this.tEndStack.push(this._tMid),this.arcEndStack.push(this._arcMid)}interpolate(t){return(0,c.Uk)(this._derivedEllipse,t)}getDeviation2(){return(0,h.yE)(this._arcMid,this.arcStart,this.arcEnd)}}function M(t,e,n,{cx:r,cy:i,radius:o,thetaStart:s,thetaEnd:a,isInvalid:l},{maxDeviation:u,maxSegmentLength:c,maxSegmentsPerCurve:f,minSegmentsPerCurve:d}){if(l)return t.push([...n]),t;const m=2*o,y=[r+o*Math.cos(s),i+o*Math.sin(s)],g=[r+o*Math.cos(a),i+o*Math.sin(a)];(0,h.kb)(e,y)>p&&t.push(y);const M=Math.abs(a-s),v=c>0&&c<m?2*Math.asin(c/m):M,b=u>0&&u<=o?2*Math.acos(1-u/o):M,x=Math.min(v,b),w=Math.min(f,Math.max(d,Math.ceil(Math.abs(M/x)))),S=1/w;for(let e=1;e<w;e++){const n=e*S,l=s*(1-n)+a*n;t.push([r+o*Math.cos(l),i+o*Math.sin(l)])}return t.push(g),(0,h.kb)(n,g)>p&&t.push([...n]),t}function v(t,e,n,r){return new y(e,n).densify(t,r)}function b(t,e,n,r){const i=(0,a.pM)(e,n),[o]=n.c;return M(t,e,o,i,r)}function x(t,e,n,r){const i=(0,u.io)(e,n),[o]=n.a;return M(t,e,o,i,r)}function w(t,e,n,r){const[i,o,s,a,l,u,c]=n.a;return 0===u||0===c?(t.push([...i]),t):new g(e,n).densify(t,r)}function S(t,e,n,r){return(0,l.Xq)(n)?(t.push([...n]),t):(0,l.n1)(n)?v(t,e,n,r):(0,l.aO)(n)?b(t,e,n,r):(0,l.DA)(n)?x(t,e,n,r):w(t,e,n,r)}function I(t,e={}){if(!(0,l.Ed)(t))return t;const n=d(e),r=(0,l.FD)(t),i=[];for(const t of r){const e=[];for(let r=0;r<t.length-1;r++){const i=r+1,o=[...(0,l.yP)(t[r])];0===r&&e.push(o),S(e,o,t[i],n)}i.push(e)}return"curvePaths"in t?{...void 0!==t.hasZ?{hasZ:t.hasZ}:{},...void 0!==t.hasM?{hasM:t.hasM}:{},paths:i,spatialReference:t.spatialReference}:{...void 0!==t.hasZ?{hasZ:t.hasZ}:{},...void 0!==t.hasM?{hasM:t.hasM}:{},rings:i,spatialReference:t.spatialReference}}const C=(0,i.B)(t=>({maxDeviation:0,maxSegmentLength:100*t,maxSegmentsPerCurve:12e3,minSegmentsPerCurve:1}));async function A(t,e,i){const s=new Set(e);return await async function(t,e,i){let o=null;for(const s of t)if(s&&(0,l.Ed)(s)&&null==s.spatialReference.xyTolerance&&(0,l.V8)(s,e)){const t=s.spatialReference;if(!t)throw new r.A("geometry:missing-spatial-reference","Geometry contains an unsupported curve type, but it cannot be densified because it has no spatial reference.");const e=R(t);if(i.has(e))s.spatialReference=i.get(e);else{o||(o=await Promise.all([n.e(6042),n.e(1878),n.e(8885),n.e(5756),n.e(3299),n.e(6312)]).then(n.bind(n,78125)));const a=o.fromSpatialReference(t),l=a?.getTolerance();if(null==l)throw new r.A("geometry:missing-tolerance","Geometry contains an unsupported curve type, but it cannot be densified because the tolerance of its spatial reference is unknown. Set the `xyTolerance` property of the spatial reference.");const u=s.spatialReference.clone();u.read({xyTolerance:l}),s.spatialReference=u,i.set(e,u)}}}(t,s,i),t.map(t=>{if(!t||!(0,l.Ed)(t))return t;const n=t.spatialReference.xyTolerance;if(null==n)return t;const r=C(n);return(0,o.rS)(function(t,e,n){if(!(0,l.Ed)(t))return t;const r=new Set(e),i=d(n),o=(0,l.FD)(t),s=[];let a=!1;for(const t of o){const e=[];for(let n=0;n<t.length-1;n++){const o=n+1,s=[...(0,l.yP)(t[n])];0===n&&e.push(s);const u=t[o];(0,l.Xq)(u)?e.push([...u]):(0,l.n1)(u)&&!r.has("cubic-bezier")?v(e,s,u,i):(0,l.aO)(u)&&!r.has("circular-arc")?b(e,s,u,i):(0,l.DA)(u)&&!r.has("elliptic-arc")?x(e,s,u,i):(0,l.wY)(u)&&!r.has("elliptic-arc")?w(e,s,u,i):(e.push((0,l.tk)(u)),a=!0)}s.push(e)}return"curvePaths"in t?{...void 0!==t.hasZ?{hasZ:t.hasZ}:{},...void 0!==t.hasM?{hasM:t.hasM}:{},spatialReference:t.spatialReference,...a?{curvePaths:s}:{paths:s}}:{hasZ:t.hasZ,hasM:t.hasM,spatialReference:t.spatialReference,...a?{curveRings:s}:{rings:s}}}(t,e,r))})}function R(t){if(null!=t.wkid)return`${t.wkid}`;if(null!=t.wkt)return t.wkt;const e="toJSON"in t&&"function"==typeof t.toJSON?t.toJSON():t;return JSON.stringify(e)}},34403(t,e,n){n.d(e,{TP:()=>s});var r=n(79258);Math.PI;const i=r.$O.radius,o=r.$O.eccentricitySquared,s={a1:i*o,a2:i*o*i*o,a3:i*o*o/2,a4:i*o*i*o*2.5,a5:i*o+i*o*o/2,a6:1-o};r.$O.radius,r.$O.flattening,r.Sw.radius,r.Sw.flattening,r.sH.radius,r.sH.flattening,r.sH.radius},17136(t,e,n){n.d(e,{Y_:()=>j,O7:()=>T,el:()=>R});var r=n(92602),i=n(69052),o=n(49186),s=n(53966),a=n(39829),l=n(82799),u=n(16930),c=n(80754),h=n(21325),p=n(28735),f=n(52006),d=n(31411),m=n(11254),y=n(60408),g=n(65864),M=n(2272),v=n(84952),b=n(92300);const x=()=>s.A.getLogger("esri.geometry.support.normalizeUtils");function w(t){return"polygon"===t[0].type}function S(t){return"polyline"===t[0].type}function I(t,e,n){const r=1e6;if(e){const e=(0,f.Ed)(t)?(0,d.GS)(t,{maxSegmentLength:r}):function(t,e){if(!(t instanceof l.A||t instanceof a.A)){const t="straightLineDensify: the input geometry is neither polyline nor polygon";throw x().error(t),new o.A("internal:geometry",t)}const n=(0,c.r8)(t),r=[];for(const t of n){const n=[];r.push(n),n.push([t[0][0],t[0][1]]);for(let r=0;r<t.length-1;r++){const i=t[r][0],o=t[r][1],s=t[r+1][0],a=t[r+1][1],l=Math.sqrt((s-i)*(s-i)+(a-o)*(a-o)),u=(a-o)/l,c=(s-i)/l,h=l/e;if(h>1){for(let t=1;t<=h-1;t++){const r=t*e,s=c*r+i,a=u*r+o;n.push([s,a])}const t=(l+Math.floor(h-1)*e)/2,r=c*t+i,s=u*t+o;n.push([r,s])}n.push([s,a])}}return function(t){return"polygon"===t.type}(t)?new a.A({rings:r,spatialReference:t.spatialReference}):new l.A({paths:r,spatialReference:t.spatialReference})}(t,r);t=(0,p.ci)(e,!0)}return n&&(t=(0,c.kS)(t,n)),t}function C(t,e,n){if(Array.isArray(t)){const r=t[0];if(r>e){const n=(0,c.kd)(r,e);t[0]=r+n*(-2*e)}else if(r<n){const e=(0,c.kd)(r,n);t[0]=r+e*(-2*n)}}else{const r=t.x;if(r>e){const n=(0,c.kd)(r,e);t=t.clone().offset(n*(-2*e),0)}else if(r<n){const e=(0,c.kd)(r,n);t=t.clone().offset(e*(-2*n),0)}}return t}function A(t,e){let n=-1;for(let r=0;r<e.cutIndexes.length;r++){const i=e.cutIndexes[r],o=e.geometries[r],s=(0,c.r8)(o);for(let t=0;t<s.length;t++){const e=s[t];e.some(n=>{if(n[0]<180)return!0;{let n=0;for(let t=0;t<e.length;t++){const r=e[t][0];n=r>n?r:n}n=Number(n.toFixed(9));const r=-360*(0,c.kd)(n,180);for(let n=0;n<e.length;n++){const e=o.getPoint(t,n);o.setPoint(t,n,e.clone().offset(r,0))}return!0}})}if(i===n){if(w(t))for(const e of(0,c.r8)(o))t[i]=t[i].addRing(e);else if(S(t))for(const e of(0,c.r8)(o))t[i]=t[i].addPath(e)}else n=i,t[i]=o}return t}async function R(t,e,n){if(!Array.isArray(t))return R([t],e);e&&"string"!=typeof e&&x().warn("normalizeCentralMeridian()","The url object is deprecated, use the url string instead");const i="string"==typeof e?e:e?.url??r.A.geometryServiceUrl;let o,s,u,f,d,w,S,T,E=0;const j=[],Z=[];for(const e of t)if(null!=e)if(o||(o=e.spatialReference,s=(0,h.Vp)(o),u=o.isWebMercator,w=u?102100:4326,f=c.j7[w].maxX,d=c.j7[w].minX,S=c.j7[w].plus180Line,T=c.j7[w].minus180Line),s)if("mesh"===e.type)Z.push(e);else if("point"===e.type)Z.push(C(e.clone(),f,d));else if("multipoint"===e.type){const t=e.clone();t.points=t.points.map(t=>C(t,f,d)),Z.push(t)}else if("extent"===e.type){const t=e.clone()._normalize(!1,!1,s);Z.push(t.rings?new a.A(t):t)}else if(e.extent){const t=e.extent,n=(0,c.kd)(t.xmin,d)*(2*f);let r=0===n?e.clone():(0,c.kS)(e.clone(),n);t.offset(n,0);let{xmin:i,xmax:o}=t;i=Number(i.toFixed(9)),o=Number(o.toFixed(9)),t.intersects(S)&&o!==f?(E=o>E?o:E,r=I(r,u),j.push(r),Z.push("cut")):t.intersects(T)&&i!==d?(E=o*(2*f)>E?o*(2*f):E,r=I(r,u,360),j.push(r),Z.push("cut")):Z.push(r)}else Z.push(e.clone());else Z.push(e);else Z.push(e);let P=(0,c.kd)(E,f),O=-90;const _=P,k=new l.A;for(;P>0;){const t=360*P-180;k.addPath([[t,O],[t,-1*O]]),O*=-1,P--}if(j.length>0&&_>0){const e=A(j,await async function(t,e,n,r){const i=(0,M.Dl)(t),o=e[0].spatialReference,s={...r,responseType:"json",query:{...i.query,f:"json",sr:(0,h.YX)(o),target:JSON.stringify({geometryType:(0,y.$B)(e[0]),geometries:e}),cutter:JSON.stringify(n)}},a=await(0,m.A)(i.path+"/cut",s),{cutIndexes:l,geometries:u=[]}=a.data;return{cutIndexes:l,geometries:u.map(t=>{const e=(0,g.rS)(t);return e.spatialReference=o,e})}}(i,j,k,n)),r=[],o=[];for(let n=0;n<Z.length;n++){const i=Z[n];if("cut"!==i)o.push(i);else{const i=e.shift(),s=t[n];null!=s&&"polygon"===s.type&&s.rings&&s.rings.length>1&&i.rings.length>=s.rings.length?(r.push(i),o.push("simplify")):o.push(u?(0,p.Gh)(i):i)}}if(!r.length)return o;const s=await async function(t,e,n){const r="string"==typeof t?(0,v.An)(t):t,i=e[0].spatialReference,o=(0,y.$B)(e[0]),s={...n,query:{...r.query,f:"json",sr:(0,h.YX)(i),geometries:JSON.stringify((0,b.X)(e))}},{data:a}=await(0,m.A)(r.path+"/simplify",s);return(0,b.V)(a.geometries,o,i)}(i,r,n),a=[];for(let t=0;t<o.length;t++){const e=o[t];"simplify"!==e?a.push(e):a.push(u?(0,p.Gh)(s.shift()):s.shift())}return a}const L=[];for(let t=0;t<Z.length;t++){const e=Z[t];if("cut"!==e)L.push(e);else{const t=j.shift();L.push(!0===u?(0,p.Gh)(t):t)}}return L}function T(t,e,n){const r=(0,h.Vp)(n);if(null==r)return t;const[i,o]=r.valid,s=2*o;let a=0,l=0;e>o?a=Math.ceil(Math.abs(e-o)/s):e<i&&(a=-Math.ceil(Math.abs(e-i)/s)),t>o?l=Math.ceil(Math.abs(t-o)/s):t<i&&(l=-Math.ceil(Math.abs(t-i)/s));let u=t+(a-l)*s;const c=u-e;return c>o?u-=s:c<i&&(u+=s),u}function E(t){const e=(0,h.Vp)(t);if(null==e)return null;const[n,r]=e.valid;return new i.hr(n,r)}const j=E(u.A.WGS84);E(u.A.WebMercator)},80754(t,e,n){n.d(e,{j7:()=>a,kS:()=>u,kd:()=>l,r8:()=>c});var r=n(82799),i=n(16930),o=n(60408),s=n(52006);const a={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new r.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:i.A.WebMercator}),minus180Line:new r.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:i.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new r.A({paths:[[[180,-180],[180,180]]],spatialReference:i.A.WGS84}),minus180Line:new r.A({paths:[[[-180,-180],[-180,180]]],spatialReference:i.A.WGS84})}};function l(t,e){return Math.ceil((t-e)/(2*e))}function u(t,e){if((0,s.Ed)(t))for(const n of function(t){return(0,o.Bi)(t)?t.curveRings:t.curvePaths}(t))for(const t of n){if((0,s.aO)(t)){const[n,r]=t.c;n[0]+=e,r[0]+=e;continue}if((0,s.FG)(t)){const[n,r]=t.a;n[0]+=e,r[0]+=e;continue}if((0,s.n1)(t)){const[n,r,i]=t.b;n[0]+=e,r[0]+=e,i[0]+=e;continue}t[0]+=e}for(const n of c(t))for(const t of n)t[0]+=e;return t}function c(t){return(0,o.Bi)(t)?t.rings:t.paths}},83960(t,e,n){n.d(e,{X_:()=>o,oW:()=>a,zx:()=>s});var r=n(34727),i=n(86211);function o(t,e){const n=e||t.extent,r=t.width,o=(0,i.GA)(n?.spatialReference);return n&&r?n.width/r*o*i.dy*96:0}function s(t,e,n){return function(t,e){return 0===e||(0,r.Sp)(t,e)||t<e}(t,e)&&function(t,e){return 0===e||(0,r.Sp)(t,e)||t>e}(t,n)}function a(t,e){return(0,r.Sp)(t,e)?0:(t||Number.POSITIVE_INFINITY)>(e||Number.POSITIVE_INFINITY)?1:-1}},50498(t,e,n){n.d(e,{Ye:()=>h,gy:()=>c,iI:()=>f,yR:()=>p});var r=n(66552),i=n(5443),o=n(91075),s=n(48526),a=n(86738),l=n(39829),u=n(82799);const c=(0,r.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),h=(0,r.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"}),p={base:o.A,key:"type",typeMap:{extent:i.A,multipoint:s.A,point:a.A,polyline:u.A,polygon:l.A}},f=new r.J({esriGeometryBezier3Curve:"cubic-bezier",esriGeometryCircularArc:"circular-arc",esriGeometryEllipticArc:"elliptic-arc"},{ignoreUnknown:!0})},55156(t,e,n){n.d(e,{I:()=>i,e:()=>r});const r=Symbol("idFieldsProviderSymbol");function i(t){return(e=t)&&r in e?t[r]:void 0;var e}},7656(t,e,n){n.r(e),n.d(e,{default:()=>U});var r=n(5482),i=n(11254),o=n(7762),s=n(49186),a=n(81583),l=n(25728),u=n(17676),c=n(86211),h=n(91429),p=n(56507),f=n(35666),d=n(5443),m=n(83960),y=n(21325),g=n(4146),M=n(52136),v=n(98534),b=n(18768),x=n(63074),w=n(69208),S=n(34287),I=n(8303),C=n(54310),A=n(25036),R=n(91921),T=n(82935),E=n(10873),j=n(69622),Z=n(39516);function P(t,e){return"floorInfo"in e&&e.floorInfo?.floorField?function(t,e){if(!t?.length)return null;const n=t.filter(t=>""!==t).map(t=>`'${t}'`);return n.push("''"),`${e} IN (${n.join(",")}) OR ${e} IS NULL`}(t,e.floorInfo.floorField):null}var O=n(63389);const _={visible:"visibleSublayers",definitionExpression:"layerDefs",labelingInfo:"hasDynamicLayers",labelsVisible:"hasDynamicLayers",opacity:"hasDynamicLayers",minScale:"visibleSublayers",maxScale:"visibleSublayers",renderer:"hasDynamicLayers",source:"hasDynamicLayers"};let k=class extends j.A{constructor(t){super(t),this.floors=null,this.scale=0}destroy(){this.layer=null}get dynamicLayers(){if(!this.hasDynamicLayers)return null;const t=this.visibleSublayers.map(t=>{const e=P(this.floors,t);return t.toExportImageJSON(e)});return t.length?JSON.stringify(t):null}get hasDynamicLayers(){return this.layer&&(0,O.Sk)(this.visibleSublayers,this.layer.serviceSublayers,this.layer.gdbVersion)}set layer(t){this._get("layer")!==t&&(this._set("layer",t),this.removeHandles("layer"),t&&this.addHandles([t.allSublayers.on("change",()=>this.notifyChange("visibleSublayers")),t.on("sublayer-update",t=>this.notifyChange(_[t.propertyName]))],"layer"))}get layers(){const t=this.visibleSublayers;return t?t.length?"show:"+t.map(t=>t.id).join(","):"show:-1":null}get layerDefs(){const t=!!this.floors?.length,e=this.visibleSublayers.filter(e=>null!=e.definitionExpression||t&&null!=e.floorInfo);return e.length?JSON.stringify(e.reduce((t,e)=>{const n=P(this.floors,e),r=(0,Z.mA)(n,e.definitionExpression);return null!=r&&(t[e.id]=r),t},{})):null}get version(){this.commitProperty("layers"),this.commitProperty("layerDefs"),this.commitProperty("dynamicLayers");const t=this.layer;return t&&(t.commitProperty("dpi"),t.commitProperty("imageFormat"),t.commitProperty("imageTransparency"),t.commitProperty("gdbVersion")),(this._get("version")||0)+1}get visibleSublayers(){const t=[];if(!this.layer)return t;const e=this.layer.sublayers,n=this.scale,r=e=>{e.visible&&(0===n||(0,m.zx)(n,e.minScale,e.maxScale))&&(e.sublayers?e.sublayers.forEach(r):t.unshift(e))};e?.forEach(r);const i=this._get("visibleSublayers");return!i||i.length!==t.length||i.some((e,n)=>t[n]!==e)?t:i}toJSON(){const t=this.layer;let e={dpi:t.dpi,format:t.imageFormat,transparent:t.imageTransparency,gdbVersion:t.gdbVersion||null};return this.hasDynamicLayers&&this.dynamicLayers?e.dynamicLayers=this.dynamicLayers:e={...e,layers:this.layers,layerDefs:this.layerDefs},e}};(0,r.Cg)([(0,h.MZ)({readOnly:!0})],k.prototype,"dynamicLayers",null),(0,r.Cg)([(0,h.MZ)()],k.prototype,"floors",void 0),(0,r.Cg)([(0,h.MZ)({readOnly:!0})],k.prototype,"hasDynamicLayers",null),(0,r.Cg)([(0,h.MZ)()],k.prototype,"layer",null),(0,r.Cg)([(0,h.MZ)({readOnly:!0})],k.prototype,"layers",null),(0,r.Cg)([(0,h.MZ)({readOnly:!0})],k.prototype,"layerDefs",null),(0,r.Cg)([(0,h.MZ)({type:Number})],k.prototype,"scale",void 0),(0,r.Cg)([(0,h.MZ)({readOnly:!0})],k.prototype,"version",null),(0,r.Cg)([(0,h.MZ)({readOnly:!0})],k.prototype,"visibleSublayers",null),k=(0,r.Cg)([(0,h.$K)("esri.layers.support.ExportImageParameters")],k);var L=n(33446),N=n(15775),z=n(91908),F=n(88625),G=n(79677),$=n(56400),q=n(36005),D=n(43937);let J=class extends((0,x.dM)((0,T.e)((0,A.j)((0,R.I)((0,v.V)((0,b.b)((0,S.q)((0,I.A)((0,l.M)((0,C.J)((0,M.p)((0,w.d)(g.A))))))))))))){constructor(...t){super(...t),this._exportImageParameters=new k({layer:this}),this.dateFieldsTimeZone=null,this.datesInUnknownTimezone=!1,this.dpi=96,this.elevationInfo=new F.A({mode:"on-the-ground"}),this.gdbVersion=null,this.imageFormat="png24",this.imageMaxHeight=2048,this.imageMaxWidth=2048,this.imageTransparency=!0,this.isReference=null,this.labelsVisible=!1,this.operationalLayerType="ArcGISMapServiceLayer",this.preferredTimeZone=null,this.sourceJSON=null,this.sublayers=null,this.type="map-image",this.url=null,this._debouncedSaveOperations=(0,u.sg)(async(t,e,r)=>{const{save:i,saveAs:o}=await n.e(390).then(n.bind(n,10390));switch(t){case 0:return i(this,e);case 1:return o(this,r,e)}})}normalizeCtorArgs(t,e){return"string"==typeof t?{url:t,...e}:t}load(t){const e=null!=t?t.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Map Service"]},t).catch(u.QP).then(()=>this._fetchService(e))),Promise.resolve(this)}destroy(){this._exportImageParameters.destroy()}readImageFormat(t,e){const n=e.supportedImageFormatTypes;return n&&n.includes("PNG32")?"png32":"png24"}get loaded(){return super.loaded}get portalItem(){return super.portalItem}set portalItem(t){super.portalItem=t}writeSublayers(t,e,n,r){if(!this.loaded||!t)return;const i=t.slice().reverse().flatten(({sublayers:t})=>t&&t.toArray().reverse()).toArray();let o=!1;const s=(0,f.aB)(r.origin);let a;if(this.capabilities?.operations.supportsExportMap&&this.capabilities?.exportMap?.supportsDynamicLayers)if(3===s){const t=this.createSublayersForOrigin("service").sublayers;o=(0,O.Zx)(i,t,2)}else if(s>3){const t=this.createSublayersForOrigin("portal-item");o=(0,O.Zx)(i,t.sublayers,(0,f.aB)(t.origin)),a=t.originWithPartialOverrides}const l=[],u={writeSublayerStructure:o,...r,minimumWritableOrigin:a};let c=o||this.hasVisibleLayersForOrigin(s);i.forEach(t=>{const e=t.write({},u);l.push(e),c=c||"user"===t.originOf("visible")}),l.some(t=>Object.keys(t).length>1)&&(e.layers=l),c&&(e.visibleLayers=i.filter(t=>t.visible).map(t=>t.id))}createExportImageParameters(t,e,n,r){const i=r?.pixelRatio||1;t&&this.version>=10&&(t=t.clone().shiftCentralMeridian()),this._exportImageParameters.floors=r?.floors??null,this._exportImageParameters.scale=r?.scale||(0,m.X_)({extent:t,width:e})*i;const o=this._exportImageParameters.toJSON(),s=!r?.rotation||this.version<10.3?{}:{rotation:-r.rotation},a=t?.spatialReference,l=(0,y.YX)(a);if(r?.scale&&t){const n=t.width/e*((0,c.GA)(t?.spatialReference)*c.dy);o.dpi=r.scale/n}o.dpi*=i;const u={};if(r?.timeExtent){const{start:t,end:e}=r.timeExtent.toJSON();u.time=t&&e&&t===e?""+t:`${t??"null"},${e??"null"}`}else this.timeInfo&&!this.timeInfo.hasLiveData&&(u.time="null,null");return{bbox:t?t.xmin+","+t.ymin+","+t.xmax+","+t.ymax:void 0,bboxSR:l,imageSR:l,size:e+","+n,...o,...s,...u}}async fetchImage(t,e,n,r){const{data:i}=await this._fetchImage("image",t,e,n,r);return i}async fetchImageBitmap(t,e,n,r){const{data:i,url:o}=await this._fetchImage("blob",t,e,n,r);return(0,L.mn)(i,o,r)}async fetchRecomputedExtents(t={}){const e={...t,query:{returnUpdates:!0,f:"json",...this.customParameters,token:this.apiKey}},{data:n}=await(0,i.A)(this.url,e),{extent:r,fullExtent:o,timeExtent:s}=n,a=r||o;return{fullExtent:a&&d.A.fromJSON(a),timeExtent:s&&G.A.fromJSON({start:s[0],end:s[1]})}}loadAll(){return(0,a.g)(this,t=>{t(this.allSublayers),t(this.subtables)})}async save(t){return this._debouncedSaveOperations(0,t)}async saveAs(t,e){return this._debouncedSaveOperations(1,e,t)}serviceSupportsSpatialReference(t){return(0,z.D)(this,t)}async _fetchImage(t,e,n,r,o){const a={responseType:t,signal:o?.signal??null,query:{...this.parsedUrl.query,...this.createExportImageParameters(e,n,r,o),f:"image",...this.refreshParameters,...this.customParameters,token:this.apiKey}},l=this.parsedUrl.path+"/export";if(null!=a.query?.dynamicLayers&&!this.capabilities?.exportMap?.supportsDynamicLayers)throw new s.A("mapimagelayer:dynamiclayer-not-supported",`service ${this.url} doesn't support dynamic layers, which is required to be able to change the sublayer's order, rendering, labeling or source.`,{query:a.query});try{const{data:t}=await(0,i.A)(l,a);return{data:t,url:l}}catch(t){if((0,u.zf)(t))throw t;throw new s.A("mapimagelayer:image-fetch-error",`Unable to load image: ${l}`,{error:t})}}async _fetchService(t){if(this.sourceJSON)return void this.read(this.sourceJSON,{origin:"service",url:this.parsedUrl});const{data:e,ssl:n}=await(0,i.A)(this.parsedUrl.path,{query:{f:"json",...this.parsedUrl.query,...this.customParameters,token:this.apiKey},signal:t});n&&(this.url=this.url.replace(/^http:/i,"https:")),this.sourceJSON=e,this.read(e,{origin:"service",url:this.parsedUrl})}hasVisibleLayersForOrigin(t){return!(null==t||!this.sublayersSourceJSON[t]?.visibleLayers)}};(0,r.Cg)([(0,h.MZ)((0,$.P6)("dateFieldsTimeReference"))],J.prototype,"dateFieldsTimeZone",void 0),(0,r.Cg)([(0,h.MZ)({type:Boolean})],J.prototype,"datesInUnknownTimezone",void 0),(0,r.Cg)([(0,h.MZ)()],J.prototype,"dpi",void 0),(0,r.Cg)([(0,h.MZ)()],J.prototype,"elevationInfo",void 0),(0,r.Cg)([(0,h.MZ)()],J.prototype,"gdbVersion",void 0),(0,r.Cg)([(0,h.MZ)()],J.prototype,"imageFormat",void 0),(0,r.Cg)([(0,q.w)("imageFormat",["supportedImageFormatTypes"])],J.prototype,"readImageFormat",null),(0,r.Cg)([(0,h.MZ)({json:{origins:{service:{read:{source:"maxImageHeight"}}}}})],J.prototype,"imageMaxHeight",void 0),(0,r.Cg)([(0,h.MZ)({json:{origins:{service:{read:{source:"maxImageWidth"}}}}})],J.prototype,"imageMaxWidth",void 0),(0,r.Cg)([(0,h.MZ)()],J.prototype,"imageTransparency",void 0),(0,r.Cg)([(0,h.MZ)({type:Boolean,json:{read:!1,write:{enabled:!0,overridePolicy:()=>({enabled:!1})}}})],J.prototype,"isReference",void 0),(0,r.Cg)([(0,h.MZ)({json:{read:!1,write:!1}})],J.prototype,"labelsVisible",void 0),(0,r.Cg)([(0,h.MZ)({type:["ArcGISMapServiceLayer"]})],J.prototype,"operationalLayerType",void 0),(0,r.Cg)([(0,h.MZ)({json:{read:!1,write:!1}})],J.prototype,"popupEnabled",void 0),(0,r.Cg)([(0,h.MZ)((0,$.P6)("preferredTimeReference"))],J.prototype,"preferredTimeZone",void 0),(0,r.Cg)([(0,h.MZ)()],J.prototype,"sourceJSON",void 0),(0,r.Cg)([(0,h.MZ)({type:o.A.ofType(N.A),json:{write:{ignoreOrigin:!0}}})],J.prototype,"sublayers",void 0),(0,r.Cg)([(0,D.K)("sublayers",{layers:{type:[N.A]},visibleLayers:{type:[p.jz]}})],J.prototype,"writeSublayers",null),(0,r.Cg)([(0,h.MZ)({type:["show","hide","hide-children"],json:{origins:{"portal-item":{read:!1,write:!1}}}})],J.prototype,"listMode",void 0),(0,r.Cg)([(0,h.MZ)({json:{read:!1},readOnly:!0,value:"map-image"})],J.prototype,"type",void 0),(0,r.Cg)([(0,h.MZ)(E.OZ)],J.prototype,"url",void 0),J=(0,r.Cg)([(0,h.$K)("esri.layers.MapImageLayer")],J);const U=J},54339(t,e,n){function r(t,e){switch(e.type){case"object-id":case"unique-id-simple":return t.attributes[e.fieldName];case"unique-id-composite":{const n=[];for(const r of e.fieldNames)n.push(t.attributes[r]??null);return JSON.stringify(n)}}}function i(t,e){if("uniqueIdFields"in e&&e.uniqueIdFields?.length){if(1===e.uniqueIdFields.length)return t.attributes?.[e.uniqueIdFields[0]];const n=e.uniqueIdFields.map(e=>t.attributes?.[e]);return JSON.stringify(n)}return"objectIdField"in e&&e.objectIdField?t.attributes?.[e.objectIdField]:null}n.d(e,{W:()=>r,r:()=>i})},82935(t,e,n){n.d(e,{B:()=>p,e:()=>f});var r=n(5482),i=n(91429),o=n(89317),s=n(30524),a=n(96184),l=n(73133),u=n(79677),c=n(10184),h=n(36005);const p={type:Boolean,json:{read:{source:"timeAnimation"},write:{target:"timeAnimation",layerContainerTypes:o.K}}},f=t=>{const e=t;let n=class extends e{constructor(){super(...arguments),this.timeExtent=null,this.timeOffset=null,this.useViewTime=!0}readOffset(t,e){const n=e.timeInfo.exportOptions;if(!n)return null;const r=n.timeOffset,i=l.j.fromJSON(n.timeOffsetUnits);return r&&i?new c.A({value:r,unit:i}):null}get timeInfo(){return this._get("timeInfo")}set timeInfo(t){(0,s.sv)(t,this.fieldsIndex),this._set("timeInfo",t)}};return(0,r.Cg)([(0,i.MZ)({type:u.A,json:{write:!1}})],n.prototype,"timeExtent",void 0),(0,r.Cg)([(0,i.MZ)({type:c.A})],n.prototype,"timeOffset",void 0),(0,r.Cg)([(0,h.w)("service","timeOffset",["timeInfo.exportOptions"])],n.prototype,"readOffset",null),(0,r.Cg)([(0,i.MZ)({value:null,type:a.A,json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],n.prototype,"timeInfo",null),(0,r.Cg)([(0,i.MZ)(p)],n.prototype,"useViewTime",void 0),n=(0,r.Cg)([(0,i.$K)("esri.layers.mixins.TemporalLayer")],n),n}},96184(t,e,n){n.d(e,{A:()=>f});var r=n(5482),i=n(69540),o=n(25482),s=n(91429),a=n(79677),l=n(10184),u=n(56400),c=n(36005),h=n(43937);function p(t,e){return l.A.fromJSON({value:t,unit:e})}let f=class extends((0,i.OU)(o.o)){constructor(t){super(t),this.cumulative=!1,this.endField=null,this.fullTimeExtent=null,this.hasLiveData=!1,this.interval=null,this.startField=null,this.timeZone=null,this.trackIdField=null,this.useTime=!0,this.stops=null}readFullTimeExtent(t,e){return e.timeExtent&&Array.isArray(e.timeExtent)&&2===e.timeExtent.length?a.A.fromArray(e.timeExtent):null}writeFullTimeExtent(t,e){null!=t?.start&&null!=t.end?e.timeExtent=t.toArray():e.timeExtent=null}readInterval(t,e){return e.timeInterval&&e.timeIntervalUnits?p(e.timeInterval,e.timeIntervalUnits):e.defaultTimeInterval&&e.defaultTimeIntervalUnits?p(e.defaultTimeInterval,e.defaultTimeIntervalUnits):null}writeInterval(t,e){e.timeInterval=t?.toJSON().value??null,e.timeIntervalUnits=t?.toJSON().unit??null}};(0,r.Cg)([(0,s.MZ)({type:Boolean,json:{name:"exportOptions.timeDataCumulative",write:!0}})],f.prototype,"cumulative",void 0),(0,r.Cg)([(0,s.MZ)({type:String,json:{name:"endTimeField",write:{enabled:!0,allowNull:!0}}})],f.prototype,"endField",void 0),(0,r.Cg)([(0,s.MZ)({type:a.A,json:{write:{enabled:!0,allowNull:!0}}})],f.prototype,"fullTimeExtent",void 0),(0,r.Cg)([(0,c.w)("fullTimeExtent",["timeExtent"])],f.prototype,"readFullTimeExtent",null),(0,r.Cg)([(0,h.K)("fullTimeExtent")],f.prototype,"writeFullTimeExtent",null),(0,r.Cg)([(0,s.MZ)({type:Boolean,json:{write:!0}})],f.prototype,"hasLiveData",void 0),(0,r.Cg)([(0,s.MZ)({type:l.A,json:{write:{enabled:!0,allowNull:!0}}})],f.prototype,"interval",void 0),(0,r.Cg)([(0,c.w)("interval",["timeInterval","timeIntervalUnits","defaultTimeInterval","defaultTimeIntervalUnits"])],f.prototype,"readInterval",null),(0,r.Cg)([(0,h.K)("interval")],f.prototype,"writeInterval",null),(0,r.Cg)([(0,s.MZ)({type:String,json:{name:"startTimeField",write:{enabled:!0,allowNull:!0}}})],f.prototype,"startField",void 0),(0,r.Cg)([(0,s.MZ)((0,u.P6)("timeReference",!0))],f.prototype,"timeZone",void 0),(0,r.Cg)([(0,s.MZ)({type:String,json:{write:{enabled:!0,allowNull:!0}}})],f.prototype,"trackIdField",void 0),(0,r.Cg)([(0,s.MZ)({type:Boolean,json:{name:"exportOptions.useTime",write:!0}})],f.prototype,"useTime",void 0),(0,r.Cg)([(0,s.MZ)({type:[Date],json:{read:!1}})],f.prototype,"stops",void 0),f=(0,r.Cg)([(0,s.$K)("esri.layers.support.TimeInfo")],f)},32730(t,e,n){n.d(e,{BI:()=>f,D3:()=>h,XJ:()=>p,lc:()=>c,mX:()=>m,rU:()=>d,tH:()=>b,vK:()=>x,zA:()=>w});var r=n(799);const i="__begin__",o="__end__",s=new RegExp(i,"ig"),a=new RegExp(o,"ig"),l=new RegExp("^"+i,"i"),u=new RegExp(o+"$","i");function c(t){return t.replaceAll(new RegExp("\\[","g"),"{").replaceAll(new RegExp("\\]","g"),"}")}function h(t){return t.replaceAll(new RegExp("\\{","g"),"[").replaceAll(new RegExp("\\}","g"),"]")}function p(t){const e={expression:"",type:"none"};return t.labelExpressionInfo?t.labelExpressionInfo.value?(e.expression=t.labelExpressionInfo.value,e.type="conventional"):t.labelExpressionInfo.expression&&(e.expression=t.labelExpressionInfo.expression,e.type="arcade"):null!=t.labelExpression&&(e.expression=c(t.labelExpression),e.type="conventional"),e}function f(t){const e=p(t);if(!e)return null;switch(e.type){case"conventional":return m(e.expression);case"arcade":return e.expression}return null}function d(t){const e=p(t);if(!e)return null;switch(e.type){case"conventional":return function(t){const e=t?.match(y);return e?.[1].trim()||null}(e.expression);case"arcade":return b(e.expression)}return null}function m(t){let e;return t?(e=(0,r.HC)(t,t=>i+'$feature["'+t+'"]'+o),e=l.test(e)?e.replace(l,""):'"'+e,e=u.test(e)?e.replace(u,""):e+'"',e=e.replaceAll(s,'" + ').replaceAll(a,' + "')):e='""',e}const y=/^\s*\{([^}]+)\}\s*$/i,g=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*$/i,M=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(\1|\3)(\5)\s*\));?\s*$/i,v=/^\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(.+)(\1)\s*\));?\s*$/i;function b(t){if(!t)return null;let e=g.exec(t)||M.exec(t);return e?e[1]||e[3]:(e=v.exec(t),e?e[2]:null)}const x=Symbol("LabelClassInstance");function w(t){return null!=t&&"object"==typeof t&&x in t}},91908(t,e,n){n.d(e,{D:()=>o});var r=n(60694);const i=[];function o(t,e){if((0,r.Wo)(t.url??""))return!0;const{wkid:n}=e;for(const e of i){if((t.version??0)>=e[0])return!0;if("function"==typeof e[1]&&(e[1]=e[1]()),e[1].has(n))return!1}return!0}i.push([10.91,()=>{const t=new Set([9709,9716,9741,9761,9766]);for(let e=9712;e<=9713;e++)t.add(e);for(let e=9748;e<=9749;e++)t.add(e);for(let e=20904;e<=20932;e++)t.add(e);for(let e=21004;e<=21032;e++)t.add(e);for(let e=21207;e<=21264;e++)t.add(e);for(let e=21307;e<=21364;e++)t.add(e);for(let e=23301;e<=23333;e++)t.add(e);for(let e=102759;e<=102760;e++)t.add(e);for(let e=102934;e<=102955;e++)t.add(e);return t}]),i.push([10.9,()=>{const t=new Set([9300,9354,9364,9367,9373,9377,9387,9456,9473,9498,9678,9680,29874,103599,103872,104028]);for(let e=9356;e<=9360;e++)t.add(e);for(let e=9404;e<=9407;e++)t.add(e);for(let e=9476;e<=9482;e++)t.add(e);for(let e=9487;e<=9494;e++)t.add(e);for(let e=9697;e<=9699;e++)t.add(e);return t}]),i.push([10.81,()=>{const t=new Set([9265,9333,103598,103699]);for(let e=9248;e<=9254;e++)t.add(e);for(let e=9271;e<=9273;e++)t.add(e);for(let e=9284;e<=9285;e++)t.add(e);for(let e=21453;e<=21463;e++)t.add(e);return t}]),i.push([10.8,()=>{const t=new Set([8088,8395,8428,8433,8531,8687,8692,8694,8699,8900,9003,9006,9009,9012,9017,9191]);for(let e=8035;e<=8036;e++)t.add(e);for(let e=8455;e<=8456;e++)t.add(e);for(let e=8518;e<=8529;e++)t.add(e);for(let e=8533;e<=8536;e++)t.add(e);for(let e=8538;e<=8540;e++)t.add(e);for(let e=8677;e<=8679;e++)t.add(e);for(let e=8902;e<=8903;e++)t.add(e);for(let e=8907;e<=8910;e++)t.add(e);for(let e=8949;e<=8951;e++)t.add(e);for(let e=8972;e<=8987;e++)t.add(e);for(let e=9039;e<=9040;e++)t.add(e);for(let e=9068;e<=9069;e++)t.add(e);for(let e=9140;e<=9141;e++)t.add(e);for(let e=9148;e<=9150;e++)t.add(e);for(let e=9153;e<=9159;e++)t.add(e);for(let e=9205;e<=9218;e++)t.add(e);for(let e=9221;e<=9222;e++)t.add(e);for(let e=54098;e<=54101;e++)t.add(e);return t}]),i.push([10.71,()=>{const t=new Set([6316]);for(let e=8351;e<=8353;e++)t.add(e);for(let e=9294;e<=9297;e++)t.add(e);for(let e=22619;e<=22621;e++)t.add(e);for(let e=103586;e<=103594;e++)t.add(e);return t}])},5757(t,e,n){n.d(e,{B:()=>i,P:()=>r});const r=Symbol("PopupTemplateInstance");function i(t){return null!=t&&"object"==typeof t&&r in t}},98205(t,e,n){n.d(e,{KZ:()=>a,eh:()=>s,gf:()=>o,of:()=>i,uY:()=>r});const r=Symbol("SizeVariableInstance");function i(t){return null!=t&&"object"==typeof t&&r in t}function o(t){return null!=t&&!isNaN(t)&&isFinite(t)}function s(t){return t.valueExpression?"expression":t.field&&"string"==typeof t.field?"field":"unknown"}function a(t,e){const n=e||s(t),r=t.valueUnit||"unknown";return"unknown"===n?"constant":t.stops?"stops":null!=t.minSize&&null!=t.maxSize&&null!=t.minDataValue&&null!=t.maxDataValue?"clamped-linear":"unknown"===r?null!=t.minSize&&null!=t.minDataValue?t.minSize&&t.minDataValue?"proportional":"additive":"identity":"real-world-size"}},92300(t,e,n){n.d(e,{V:()=>s,X:()=>o});var r=n(60408),i=n(65864);function o(t){return{geometryType:(0,r.$B)(t[0]),geometries:t.map(t=>t.toJSON())}}function s(t,e,n){const r=(0,i.xD)(e);return t.map(t=>{const e=r.fromJSON(t);return e.spatialReference=n,e})}},22671(t,e,n){n.d(e,{A:()=>M});var r,i=n(5482),o=n(52106),s=n(66552),a=n(25482),l=n(4718),u=n(91429),c=n(16930),h=n(60408),p=n(65864),f=n(50498),d=n(20437),m=n(36005),y=n(43937);const g=new s.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let M=r=class extends a.o{constructor(t){super(t),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(t,e){return this.readFeaturesWithClass(t,e,o.A)}writeGeometryType(t,e,n,r){if(t)return void g.write(t,e,n,r);const{features:i}=this;if(i)for(const t of i)if(null!=t?.geometry)return void g.write(t.geometry.type,e,n,r)}readQueryGeometry(t,e){if(!t)return null;const n=!!t.spatialReference,r=(0,p.rS)(t);return r&&!n&&e.spatialReference&&(r.spatialReference=c.A.fromJSON(e.spatialReference)),r}writeSpatialReference(t,e){if(t)return void(e.spatialReference=t.toJSON());const{features:n}=this;if(n)for(const t of n)if(t&&null!=t.geometry&&t.geometry.spatialReference)return void(e.spatialReference=t.geometry.spatialReference.toJSON())}clone(){return new r(this.cloneProperties())}cloneProperties(){return(0,l.o8)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(t){const e=this.write();if(e.features&&Array.isArray(t)&&t.length>0)for(let n=0;n<e.features.length;n++){const r=e.features[n];if(r.geometry){const e=t?.[n];r.geometry=e?.toJSON()||r.geometry}}return e}quantize(t){const{scale:[e,n],translate:[r,i]}=t,o=this.features,s=this._getQuantizationFunction(this.geometryType,t=>Math.round((t-r)/e),t=>Math.round((i-t)/n));for(let t=0,e=o.length;t<e;t++)s?.(o[t].geometry)||(o.splice(t,1),t--,e--);return this.transform=t,this}unquantize(){const{geometryType:t,features:e,transform:n}=this;if(!n)return this;const{translate:[r,i],scale:[o,s]}=n;let a=null,l=null;if(this.hasZ&&null!=n?.scale?.[2]){const{translate:[,,t],scale:[,,e]}=n;a=n=>n*e+t}if(this.hasM&&null!=n?.scale?.[3]){const{translate:[,,,t],scale:[,,,e]}=n;l=n=>null==n?n:n*e+t}const u=this._getHydrationFunction(t,t=>t*o+r,t=>i-t*s,a,l);for(const{geometry:t}of e)null!=t&&u&&u(t);return this.transform=null,this}readFeaturesWithClass(t,e,n){const r=c.A.fromJSON(e.spatialReference),i=[];for(let e=0;e<t.length;e++){const o=t[e],s=n.fromJSON(o),a=o.geometry?.spatialReference;null==s.geometry||a||(s.geometry.spatialReference=r);const l=o.aggregateGeometries,u=s.aggregateGeometries;if(l&&null!=u)for(const t in u){const e=u[t],n=l[t],i=n?.spatialReference;null==e||i||(e.spatialReference=r)}i.push(s)}return i}_quantizePoints(t,e,n){let r,i;const o=[];for(let s=0,a=t.length;s<a;s++){const a=t[s];if(s>0){const t=e(a[0]),s=n(a[1]);t===r&&s===i||(o.push([t-r,s-i]),r=t,i=s)}else r=e(a[0]),i=n(a[1]),o.push([r,i])}return o.length>0?o:null}_getQuantizationFunction(t,e,n){return"point"===t?t=>(t.x=e(t.x),t.y=n(t.y),t):"polyline"===t||"polygon"===t?t=>{const r=(0,h.Bi)(t)?t.rings:t.paths,i=[];for(let t=0,o=r.length;t<o;t++){const o=r[t],s=this._quantizePoints(o,e,n);s&&i.push(s)}return i.length>0?((0,h.Bi)(t)?t.rings=i:t.paths=i,t):null}:"multipoint"===t?t=>{const r=this._quantizePoints(t.points,e,n);return r&&r.length>0?(t.points=r,t):null}:"extent"===t?t=>t:null}_getHydrationFunction(t,e,n,r,i){return"point"===t?t=>{t.x=e(t.x),t.y=n(t.y),r&&(t.z=r(t.z))}:"polyline"===t||"polygon"===t?t=>{const o=(0,h.Bi)(t)?t.rings:t.paths;let s,a;for(let t=0,r=o.length;t<r;t++){const r=o[t];for(let t=0,i=r.length;t<i;t++){const i=r[t];t>0?(s+=i[0],a+=i[1]):(s=i[0],a=i[1]),i[0]=e(s),i[1]=n(a)}}if(r&&i)for(let t=0,e=o.length;t<e;t++){const e=o[t];for(let t=0,n=e.length;t<n;t++){const n=e[t];n[2]=r(n[2]),n[3]=i(n[3])}}else if(r)for(let t=0,e=o.length;t<e;t++){const e=o[t];for(let t=0,n=e.length;t<n;t++){const n=e[t];n[2]=r(n[2])}}else if(i)for(let t=0,e=o.length;t<e;t++){const e=o[t];for(let t=0,n=e.length;t<n;t++){const n=e[t];n[2]=i(n[2])}}}:"extent"===t?t=>{t.xmin=e(t.xmin),t.ymin=n(t.ymin),t.xmax=e(t.xmax),t.ymax=n(t.ymax),r&&null!=t.zmax&&null!=t.zmin&&(t.zmax=r(t.zmax),t.zmin=r(t.zmin)),i&&null!=t.mmax&&null!=t.mmin&&(t.mmax=i(t.mmax),t.mmin=i(t.mmin))}:"multipoint"===t?t=>{const o=t.points;let s,a;for(let t=0,r=o.length;t<r;t++){const r=o[t];t>0?(s+=r[0],a+=r[1]):(s=r[0],a=r[1]),r[0]=e(s),r[1]=n(a)}if(r&&i)for(let t=0,e=o.length;t<e;t++){const e=o[t];e[2]=r(e[2]),e[3]=i(e[3])}else if(r)for(let t=0,e=o.length;t<e;t++){const e=o[t];e[2]=r(e[2])}else if(i)for(let t=0,e=o.length;t<e;t++){const e=o[t];e[2]=i(e[2])}}:null}};(0,i.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],M.prototype,"displayFieldName",void 0),(0,i.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:t=>({enabled:t})}}})],M.prototype,"exceededTransferLimit",void 0),(0,i.Cg)([(0,u.MZ)({type:[o.A],json:{write:!0}})],M.prototype,"features",void 0),(0,i.Cg)([(0,m.w)("features")],M.prototype,"readFeatures",null),(0,i.Cg)([(0,u.MZ)({type:[d.A],json:{write:!0}})],M.prototype,"fields",void 0),(0,i.Cg)([(0,u.MZ)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:g.read}}})],M.prototype,"geometryType",void 0),(0,i.Cg)([(0,y.K)("geometryType")],M.prototype,"writeGeometryType",null),(0,i.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:t=>({enabled:t})}}})],M.prototype,"hasM",void 0),(0,i.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:t=>({enabled:t})}}})],M.prototype,"hasZ",void 0),(0,i.Cg)([(0,u.MZ)({types:f.yR,json:{write:!0}})],M.prototype,"queryGeometry",void 0),(0,i.Cg)([(0,m.w)("queryGeometry")],M.prototype,"readQueryGeometry",null),(0,i.Cg)([(0,u.MZ)({type:c.A,json:{write:!0}})],M.prototype,"spatialReference",void 0),(0,i.Cg)([(0,y.K)("spatialReference")],M.prototype,"writeSpatialReference",null),(0,i.Cg)([(0,u.MZ)({json:{write:!0}})],M.prototype,"transform",void 0),M=r=(0,i.Cg)([(0,u.$K)("esri.rest.support.FeatureSet")],M),M.prototype.toJSON.isDefaultToJSON=!0},11831(t,e,n){n.d(e,{A:()=>u});var r,i=n(5482),o=n(25482),s=n(90629),a=n(91429),l=n(5760);let u=r=class extends o.o{constructor(t){super(t),this.decoration="none",this.family="sans-serif",this.style="normal",this.weight="normal"}get size(){return this._get("size")??9}set size(t){this._set("size",t)}castSize(t){return(0,s.cr)(t)}clone(){return new r({decoration:this.decoration,family:this.family,size:this.size,style:this.style,weight:this.weight})}hash(){return`${this.decoration}.${this.family}.${this.size}.${this.style}.${this.weight}`}};(0,i.Cg)([(0,a.MZ)({type:l.h9,json:{default:"none",write:!0}})],u.prototype,"decoration",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],u.prototype,"family",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,json:{write:{overridePolicy:(t,e,n)=>({enabled:!n||!n.textSymbol3D})}}})],u.prototype,"size",null),(0,i.Cg)([(0,a.wg)("size")],u.prototype,"castSize",null),(0,i.Cg)([(0,a.MZ)({type:l._R,json:{default:"normal",write:!0}})],u.prototype,"style",void 0),(0,i.Cg)([(0,a.MZ)({type:l.NM,json:{default:"normal",write:!0}})],u.prototype,"weight",void 0),u=r=(0,i.Cg)([(0,a.$K)("esri.symbols.Font")],u)},68249(t,e,n){n.d(e,{A:()=>d});var r,i=n(5482),o=n(68197),s=n(4718),a=n(90629),l=n(91429),u=n(11831),c=n(20378),h=n(5760),p=n(93223),f=n(43937);let d=r=class extends c.A{constructor(...t){super(...t),this.backgroundColor=null,this.borderLineColor=null,this.borderLineSize=null,this.font=new u.A,this.horizontalAlignment="center",this.kerning=!0,this.haloColor=null,this.rightToLeft=null,this.rotated=!1,this.text="",this.type="text",this.verticalAlignment="baseline",this.angle=0,this.width=null,this.lineHeight=1}normalizeCtorArgs(t,e,n){if(t&&"string"!=typeof t)return t;const r={};return t&&(r.text=t),e&&(r.font=e),n&&(r.color=n),r}get haloSize(){return this._get("haloSize")??null}set haloSize(t){this._set("haloSize",t)}get xoffset(){return this._get("xoffset")??0}set xoffset(t){this._set("xoffset",t)}get yoffset(){return this._get("yoffset")??0}set yoffset(t){this._set("yoffset",t)}get lineWidth(){return this._get("lineWidth")??192}set lineWidth(t){this._set("lineWidth",t)}writeLineWidth(t,e,n,r){r&&"string"!=typeof r?r.origin:e[n]=t}castLineWidth(t){return(0,a.cr)(t)}writeLineHeight(t,e,n,r){r&&"string"!=typeof r?r.origin:e[n]=t}clone(){return new r({angle:this.angle,backgroundColor:(0,s.o8)(this.backgroundColor),borderLineColor:(0,s.o8)(this.borderLineColor),borderLineSize:this.borderLineSize,color:(0,s.o8)(this.color),font:this.font&&this.font.clone(),haloColor:(0,s.o8)(this.haloColor),haloSize:this.haloSize,horizontalAlignment:this.horizontalAlignment,kerning:this.kerning,lineHeight:this.lineHeight,lineWidth:this.lineWidth,rightToLeft:this.rightToLeft,rotated:this.rotated,text:this.text,verticalAlignment:this.verticalAlignment,width:this.width,xoffset:this.xoffset,yoffset:this.yoffset})}hash(){return`${this.backgroundColor?.hash()}.${this.borderLineColor}.${this.borderLineSize}.${this.color?.hash()}.${this.font&&this.font.hash()}.${this.haloColor?.hash()}.${this.haloSize}.${this.horizontalAlignment}.${this.kerning}.${this.rightToLeft}.${this.rotated}.${this.text}.${this.verticalAlignment}.${this.width}.${this.xoffset}.${this.yoffset}.${this.lineHeight}.${this.lineWidth}.${this.angle}`}};(0,i.Cg)([(0,l.MZ)({type:o.A,json:{write:!0}})],d.prototype,"backgroundColor",void 0),(0,i.Cg)([(0,l.MZ)({type:o.A,json:{write:!0}})],d.prototype,"borderLineColor",void 0),(0,i.Cg)([(0,l.MZ)({type:Number,json:{write:!0},cast:a.cr})],d.prototype,"borderLineSize",void 0),(0,i.Cg)([(0,l.MZ)({type:u.A,json:{write:!0}})],d.prototype,"font",void 0),(0,i.Cg)([(0,l.MZ)({...h.rM,json:{write:!0}})],d.prototype,"horizontalAlignment",void 0),(0,i.Cg)([(0,l.MZ)({type:Boolean,json:{write:!0}})],d.prototype,"kerning",void 0),(0,i.Cg)([(0,l.MZ)({type:o.A,json:{write:!0}})],d.prototype,"haloColor",void 0),(0,i.Cg)([(0,l.MZ)({type:Number,cast:a.cr,json:{write:!0}})],d.prototype,"haloSize",null),(0,i.Cg)([(0,l.MZ)({type:Boolean,json:{write:!0}})],d.prototype,"rightToLeft",void 0),(0,i.Cg)([(0,l.MZ)({type:Boolean,json:{write:!0}})],d.prototype,"rotated",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],d.prototype,"text",void 0),(0,i.Cg)([(0,p.e)({esriTS:"text"},{readOnly:!0})],d.prototype,"type",void 0),(0,i.Cg)([(0,l.MZ)({...h.x0,json:{write:!0}})],d.prototype,"verticalAlignment",void 0),(0,i.Cg)([(0,l.MZ)({type:Number,cast:a.cr,json:{write:!0}})],d.prototype,"xoffset",null),(0,i.Cg)([(0,l.MZ)({type:Number,cast:a.cr,json:{write:!0}})],d.prototype,"yoffset",null),(0,i.Cg)([(0,l.MZ)({type:Number,json:{read:t=>t&&-1*t,write:(t,e)=>e.angle=t&&-1*t}})],d.prototype,"angle",void 0),(0,i.Cg)([(0,l.MZ)({type:Number,json:{write:!0}})],d.prototype,"width",void 0),(0,i.Cg)([(0,l.MZ)({type:Number})],d.prototype,"lineWidth",null),(0,i.Cg)([(0,f.K)("lineWidth")],d.prototype,"writeLineWidth",null),(0,i.Cg)([(0,l.wg)("lineWidth")],d.prototype,"castLineWidth",null),(0,i.Cg)([(0,l.MZ)(h.Tb)],d.prototype,"lineHeight",void 0),(0,i.Cg)([(0,f.K)("lineHeight")],d.prototype,"writeLineHeight",null),d=r=(0,i.Cg)([(0,l.$K)("esri.symbols.TextSymbol")],d)},5760(t,e,n){n.d(e,{NM:()=>a,Tb:()=>l,_R:()=>s,h9:()=>o,rM:()=>u,x0:()=>c,y7:()=>h});var r=n(34727),i=n(56507);const o=["none","underline","line-through"],s=["normal","italic","oblique"],a=["normal","lighter","bold","bolder"],l={type:Number,cast:t=>{const e=(0,i.GB)(t);return 0===e?1:(0,r.qE)(e,.1,4)},nonNullable:!0},u={type:["left","right","center"],nonNullable:!0},c={type:["baseline","top","middle","bottom"],nonNullable:!0},h=8}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[926,7229],{69540(e,t,i){i.d(t,{OU:()=>d,Pw:()=>h});var s=i(5482),n=i(69622),r=(i(44208),i(4718)),o=(i(53966),i(97768)),a=i(88620),l=i(64108);const u=Symbol("ClonableMixin"),d=e=>{var t;const i=e;let n=class extends i{constructor(){super(...arguments),this[t]=!0}static{t=u}clone(e){const t=(0,a.oY)(this);(0,o.Lw)(t,"unable to clone instance of non-accessor class");const i=t.metadata,s=t.store,n={},l=new Map;for(const t in i){const o=i[t],a=s?.originOf(t),u=o.clonable;if(o.readOnly||!1===u||7!==a&&0!==a&&5!==a&&4!==a)continue;const d=this[t];let h=null;if("function"==typeof u)h=u(d,e);else if("reference"===u)h=d;else if(h=(0,r.TU)(d,e),null!=d&&null==h)continue;0===a?l.set(t,h):n[t]=h}const u=new(0,Object.getPrototypeOf(this).constructor)(n);if(l.size){const e=(0,a.oY)(u)?.store;if(e)for(const[t,i]of l)e.set(t,i,0)}return u}};return n=(0,s.Cg)([(0,l.$)("esri.core.Clonable")],n),n},h=d(n.A)},66344(e,t,i){i.d(t,{q:()=>a});const s=!!(0,i(44208).A)("esri-tests-disable-gpu-memory-measurements");Symbol.iterator;class n{get size(){return this._size}constructor(e=10485760,t=.3){this._maxSize=e,this._maxClientSizeRatio=t,this._db=new Map,this._size=0,this._hit=0,this._miss=0,this._clients=new Map,this._sizeLimits=new Map}destroy(){this.clearAll(),this._sizeLimits.clear(),this._clients.clear(),this._db.clear()}register(e){this._clients.set(e.id.slice(0,-1),e)}deregister(e){this.clear(e),this._sizeLimits.delete(e),this._clients.delete(e.id.slice(0,-1))}get maxSize(){return this._maxSize}set maxSize(e){this._maxSize=Math.max(e,-1),this._checkSize()}get _maxClientSize(){return this._maxSize*this._maxClientSizeRatio}getSize(e,t){const i=this._db.get(e.id+t);return i?.size??0}put(e,t,i,n,o){t=e.id+t;const a=this._db.get(t);if(a&&(this._size-=a.size,e.size-=a.size,this._db.delete(t),a.entry!==i&&this._notifyRemove(t,a.entry,a.size,0)),n>this._maxSize)return void this._notifyRemove(t,i,n,0);if(void 0===i)return void console.warn("Refusing to cache undefined entry ");if(!n||n<0)return s||console.warn(`Refusing to cache entry with size ${n} for key ${t}`),void this._notifyRemove(t,i,0,0);const l=1+Math.max(o,-4)- -3;this._db.set(t,new r(i,n,l)),this._size+=n,e.size+=n,this._checkSize()}updateSize(e,t){t=e.id+t;const i=this._db.get(t);if(!i)return;this._size-=i.size,e.size-=i.size;let s=i.entry.usedMemory;for(;s>this._maxSize;){const e=this._notifyRemove(t,i.entry,s,1);if(!(null!=e&&e>0))return void this._db.delete(t);s=e}i.size=s,this._size+=s,e.size+=s,this._checkSize()}pop(e,t){t=e.id+t;const i=this._db.get(t);if(i)return this._size-=i.size,e.size-=i.size,this._db.delete(t),++this._hit,i.entry;++this._miss}get(e,t){t=e.id+t;const i=this._db.get(t);if(void 0!==i)return this._db.delete(t),i.lives=i.lifetime,this._db.set(t,i),++this._hit,i.entry;++this._miss}peek(e,t){const i=this._db.get(e.id+t);return i?++this._hit:++this._miss,i?.entry}get performanceInfo(){const e={Size:Math.round(this._size/1048576)+"/"+Math.round(this._maxSize/1048576)+"MB","Hit rate":Math.round(100*this._getHitRate())+"%",Entries:this._db.size.toString()},t={},i=new Array;this._db.forEach((e,s)=>{const n=e.lifetime;i[n]=(i[n]||0)+e.size,this._clients.forEach(i=>{const{id:n,name:r}=i;if(s.startsWith(n)){const i=t[r]||0;t[r]=i+e.size}})});const s={};this._clients.forEach(e=>{const i=e.name;if("hitRate"in e&&"number"==typeof e.hitRate&&!isNaN(e.hitRate)&&e.hitRate>0){const n=t[i]||0;t[i]=n,s[i]=Math.round(100*e.hitRate)+"%"}else s[i]="0%"});const n=Object.keys(t);n.sort((e,i)=>t[i]-t[e]),n.forEach(i=>e[i]=Math.round(t[i]/2**20)+"MB / "+s[i]);for(let t=i.length-1;t>=0;--t){const s=i[t];s&&(e["Priority "+(t+-3-1)]=Math.round(s/this._size*100)+"%")}return e}resetStats(){this._hit=this._miss=0,this._clients.forEach(e=>e.resetHitRate())}clear(e){const t=e.id;this._db.forEach((e,i)=>{i.startsWith(t)&&(this._size-=e.size,this._db.delete(i),this._notifyRemove(i,e.entry,e.size,0))}),e.size=0}clearAll(){this._db.forEach((e,t)=>this._notifyRemove(t,e.entry,e.size,0)),this._clients.forEach(e=>e.size=0),this._size=0,this._db.clear()}*values(e){for(const[t,i]of this._db)t.startsWith(e.id)&&(yield i.entry)}_getHitRate(){return this._hit/(this._hit+this._miss)}_notifyRemove(e,t,i,s){const n=this._clients.get(e.split(o)[0])?.removeFunc,r=n?.(t,s,i);return"number"==typeof r?r:null}_checkSize(){this._sizeLimits.forEach((e,t)=>this._checkSizeLimits(e,t)),this._clients.forEach(e=>this._checkSizeLimits(this._maxClientSize,e)),this._checkSizeLimits(this.maxSize)}setMaxClientSize(e,t){null==t||t<=0?this._sizeLimits.delete(e):this._sizeLimits.set(e,t)}_checkSizeLimits(e,t){const i=t??this;if(i.size<=e)return;const s=t?.id;let n=!0;for(;n;){n=!1;for(const[r,a]of this._db)if(0===a.lifetime&&(!s||r.startsWith(s))){const s=t??this._clients.get(r.split(o)[0]);if(this._purgeItem(r,a,s),i.size<=.9*e)return;n||=this._db.has(r)}}for(const[n,r]of this._db)if(!s||n.startsWith(s)){const s=t??this._clients.get(n.split(o)[0]);if(this._purgeItem(n,r,s),i.size<=.9*e)return}}_purgeItem(e,t,i){if(this._db.delete(e),t.lives<=1){this._size-=t.size,i&&(i.size-=t.size);const s=this._notifyRemove(e,t.entry,t.size,1);null!=s&&s>0&&(this._size+=s,i&&(i.size+=s),t.lives=t.lifetime,t.size=s,this._db.set(e,t))}else--t.lives,this._db.set(e,t)}}new n(0);class r{constructor(e,t,i){this.entry=e,this.size=t,this.lifetime=i,this.lives=i}}const o=":";class a{constructor(e,t){this.removeFunc=t,this.id="",this.name="",this.size=0,this._storage=new n(e,1),this._storage.register(this)}destroy(){this._storage.deregister(this),this._storage.destroy()}put(e,t,i=1){this._storage.put(this,e,t,i,1)}pop(e){return this._storage.pop(this,e)}get(e){return this._storage.get(this,e)}clear(){this._storage.clearAll()}get maxSize(){return this._storage.maxSize}set maxSize(e){this._storage.maxSize=e}resetHitRate(){}}},67482(e,t,i){function s(e){return null!=a(e)||null!=o(e)}function n(e){return l.test(e)}function r(e){return a(e)??o(e)}function o(e){const t=new Date(e);return function(e,t){if(Number.isNaN(e.getTime()))return!1;let i=!0;if(d&&/\d+\W*$/.test(t)){const e=t.match(/[a-zA-Z]{2,}/);if(e){let t=!1,s=0;for(;!t&&s<=e.length;)t=!u.test(e[s]),s++;i=!t}}return i}(t,e)?Number.isNaN(t.getTime())?null:t.getTime()-6e4*t.getTimezoneOffset():null}function a(e){const t=l.exec(e);if(!t?.groups)return null;const i=t.groups,s=+i.year,n=+i.month-1,r=+i.day,o=+(i.hours??"0"),a=+(i.minutes??"0"),u=+(i.seconds??"0");if(o>23)return null;if(a>59)return null;if(u>59)return null;const d=i.ms??"0",h=d?+d.padEnd(3,"0").slice(0,3):0;let c;if(i.isUTC||!i.offsetSign)c=Date.UTC(s,n,r,o,a,u,h);else{const e=+i.offsetHours,t=+i.offsetMinutes;c=6e4*("+"===i.offsetSign?-1:1)*(60*e+t)+Date.UTC(s,n,r,o,a,u,h)}return Number.isNaN(c)?null:c}i.d(t,{Br:()=>n,Cq:()=>s,_U:()=>r});const l=/^(?:(?<year>-?\d{4,})-(?<month>\d{2})-(?<day>\d{2}))(?:T(?<hours>\d{2}):(?<minutes>\d{2}):(?<seconds>\d{2})(?:\.(?<ms>\d+))?)?(?:(?<isUTC>Z)|(?:(?<offsetSign>\+|-)(?<offsetHours>\d{2}):(?<offsetMinutes>\d{2})))?$/,u=/^((jan(uary)?)|(feb(ruary)?)|(mar(ch)?)|(apr(il)?)|(may)|(jun(e)?)|(jul(y)?)|(aug(ust)?)|(sep(tember)?)|(oct(ober)?)|(nov(ember)?)|(dec(ember)?)|(am)|(pm)|(gmt)|(utc))$/i,d=!Number.isNaN(new Date("technology 10").getTime())},75503(e,t,i){i.d(t,{wq:()=>a});var s=i(4576),n=i(21818),r=(i(44208),i(15142)),o=i(11006);class a{constructor(e=9,t){this._compareMinX=c,this._compareMinY=f,this._toBBox=e=>e,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()}destroy(){this.clear(),I.prune(),S.prune(),v.prune(),B.prune()}all(e){l(this._data,e)}search(e,t){let i=this._data;const s=this._toBBox;if(b(e,i))for(I.clear();i;){for(let n=0,r=i.children.length;n<r;n++){const r=i.children[n],o=i.leaf?s(r):r;b(e,o)&&(i.leaf?t(r):_(e,o)?l(r,t):I.push(r))}i=I.pop()}}collides(e){let t=this._data;const i=this._toBBox;if(!b(e,t))return!1;for(I.clear();t;){for(let s=0,n=t.children.length;s<n;s++){const n=t.children[s],r=t.leaf?i(n):n;if(b(e,r)){if(t.leaf||_(e,r))return!0;I.push(n)}}t=I.pop()}return!1}load(e){if(!e.length)return this;if(e.length<this._minEntries){for(let t=0,i=e.length;t<i;t++)this.insert(e[t]);return this}let t=this._build(e.slice(),0,e.length-1,0);if(this._data.children.length)if(this._data.height===t.height)this._splitRoot(this._data,t);else{if(this._data.height<t.height){const e=this._data;this._data=t,t=e}this._insert(t,this._data.height-t.height-1,!0)}else this._data=t;return this}insert(e){return e&&this._insert(e,this._data.height-1),this}clear(){return this._data=new A([]),this}remove(e){if(!e)return this;let t,i=this._data,r=null,o=0,a=!1;const l=this._toBBox(e);for(v.clear(),B.clear();i||v.length>0;){if(i||(i=v.pop(),r=v.data[v.length-1],o=B.pop()??0,a=!0),i.leaf&&(t=(0,s.qh)(i.children,(0,n.z)(e),i.children.length,i.indexHint),-1!==t))return i.children.splice(t,1),v.push(i),this._condense(v),this;a||i.leaf||!_(i,l)?r?(o++,i=r.children[o],a=!1):i=null:(v.push(i),B.push(o),o=0,r=i,i=i.children[0])}return this}toJSON(){return this._data}fromJSON(e){return this._data=e,this}_build(e,t,i,s){const n=i-t+1;let r=this._maxEntries;if(n<=r){const s=new A(e.slice(t,i+1));return u(s,this._toBBox),s}s||(s=Math.ceil(Math.log(n)/Math.log(r)),r=Math.ceil(n/r**(s-1)));const o=new z([]);o.height=s;const a=Math.ceil(n/r),l=a*Math.ceil(Math.sqrt(r));x(e,t,i,l,this._compareMinX);for(let n=t;n<=i;n+=l){const t=Math.min(n+l-1,i);x(e,n,t,a,this._compareMinY);for(let i=n;i<=t;i+=a){const n=Math.min(i+a-1,t);o.children.push(this._build(e,i,n,s-1))}}return u(o,this._toBBox),o}_insert(e,t,i){const s=this._toBBox,n=i?e:s(e);v.clear();const r=function(e,t,i,s){for(;s.push(t),!0!==t.leaf&&s.length-1!==i;){let i,s=1/0,n=1/0;for(let r=0,o=t.children.length;r<o;r++){const o=t.children[r],a=m(o),l=y(e,o)-a;l<n?(n=l,s=a<s?a:s,i=o):l===n&&a<s&&(s=a,i=o)}t=i||t.children[0]}return t}(n,this._data,t,v);for(r.children.push(e),h(r,n);t>=0&&v.data[t].children.length>this._maxEntries;)this._split(v,t),t--;!function(e,t,i){for(let s=i;s>=0;s--)h(t.data[s],e)}(n,v,t)}_split(e,t){const i=e.data[t],s=i.children.length,n=this._minEntries;this._chooseSplitAxis(i,n,s);const r=this._chooseSplitIndex(i,n,s);if(!r)return;const o=i.children.splice(r,i.children.length-r),a=i.leaf?new A(o):new z(o);a.height=i.height,u(i,this._toBBox),u(a,this._toBBox),t?e.data[t-1].children.push(a):this._splitRoot(i,a)}_splitRoot(e,t){this._data=new z([e,t]),this._data.height=e.height+1,u(this._data,this._toBBox)}_chooseSplitIndex(e,t,i){let s,n,r;s=n=1/0;for(let o=t;o<=i-t;o++){const t=d(e,0,o,this._toBBox),a=d(e,o,i,this._toBBox),l=g(t,a),u=m(t)+m(a);l<s?(s=l,r=o,n=u<n?u:n):l===s&&u<n&&(n=u,r=o)}return r}_chooseSplitAxis(e,t,i){const s=e.leaf?this._compareMinX:c,n=e.leaf?this._compareMinY:f;this._allDistMargin(e,t,i,s)<this._allDistMargin(e,t,i,n)&&e.children.sort(s)}_allDistMargin(e,t,i,s){e.children.sort(s);const n=this._toBBox,r=d(e,0,t,n),o=d(e,i-t,i,n);let a=p(r)+p(o);for(let s=t;s<i-t;s++){const t=e.children[s];h(r,e.leaf?n(t):t),a+=p(r)}for(let s=i-t-1;s>=t;s--){const t=e.children[s];h(o,e.leaf?n(t):t),a+=p(o)}return a}_condense(e){for(let t=e.length-1;t>=0;t--){const i=e.data[t];if(0===i.children.length)if(t>0){const n=e.data[t-1],r=n.children;r.splice((0,s.qh)(r,i,r.length,n.indexHint),1)}else this.clear();else u(i,this._toBBox)}}_initFormat(e){const t=["return a"," - b",";"];this._compareMinX=new Function("a","b",t.join(e[0])),this._compareMinY=new Function("a","b",t.join(e[1])),this._toBBox=new Function("a","return {minX: a"+e[0]+", minY: a"+e[1]+", maxX: a"+e[2]+", maxY: a"+e[3]+"};")}}function l(e,t){let i=e;for(S.clear();i;){if(!0===i.leaf)for(const e of i.children)t((0,n.z)(e));else S.pushArray(i.children);i=S.pop()??null}}function u(e,t){d(e,0,e.children.length,t,e)}function d(e,t,i,s,n){n||(n=new A([])),n.minX=1/0,n.minY=1/0,n.maxX=-1/0,n.maxY=-1/0;for(let r,o=t;o<i;o++)r=e.children[o],h(n,e.leaf?s(r):r);return n}function h(e,t){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)}function c(e,t){return e.minX-t.minX}function f(e,t){return e.minY-t.minY}function m(e){return(e.maxX-e.minX)*(e.maxY-e.minY)}function p(e){return e.maxX-e.minX+(e.maxY-e.minY)}function y(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 g(e,t){const i=Math.max(e.minX,t.minX),s=Math.max(e.minY,t.minY),n=Math.min(e.maxX,t.maxX),r=Math.min(e.maxY,t.maxY);return Math.max(0,n-i)*Math.max(0,r-s)}function _(e,t){return e.minX<=t.minX&&e.minY<=t.minY&&t.maxX<=e.maxX&&t.maxY<=e.maxY}function b(e,t){return t.minX<=e.maxX&&t.minY<=e.maxY&&t.maxX>=e.minX&&t.maxY>=e.minY}function x(e,t,i,s,n){const r=[t,i];for(;r.length;){const t=r.pop(),i=r.pop();if(t-i<=s)continue;const a=i+Math.ceil((t-i)/s/2)*s;(0,o.q)(e,a,i,t,n),r.push(i,a,a,t)}}const I=new r.A,S=new r.A,v=new r.A,B=new r.A({deallocator:void 0});class M{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}}class F extends M{constructor(){super(...arguments),this.height=1,this.indexHint=new s.vW}}class A extends F{constructor(e){super(),this.children=e,this.leaf=!0}}class z extends F{constructor(e){super(),this.children=e,this.leaf=!1}}},36708(e,t,i){i.d(t,{C_:()=>c,OH:()=>p,Vh:()=>y,on:()=>h,pc:()=>g,wB:()=>l,z7:()=>u});var s=i(37955),n=i(36563),r=i(97768),o=i(17676),a=i(14012);function l(e,t,i={}){return d(e,t,i,f)}function u(e,t,i={}){return d(e,t,i,m)}function d(e,t,i={},s){let n=null;const o=i.once?(e,i)=>{s(e)&&((0,r.xt)(n),t(e,i))}:(e,i)=>{s(e)&&t(e,i)};if(n=(0,a.Cn)(e,o,i.sync,i.equals),i.initial){const t=e();o(t,t)}return n}function h(e,t,i,o={}){let a=null,u=null,d=null;function h(){a&&u&&(u.remove(),o.onListenerRemove?.(a),a=null,u=null)}function c(e){o.once&&o.once&&(0,r.xt)(d),i(e)}const f=l(e,(e,i)=>{h(),(0,s.wb)(e)&&(a=e,u=(0,s.on)(e,t,c),o.onListenerAdd?.(e))},{sync:o.sync,initial:!0});return d=(0,n.hA)(()=>{f.remove(),h()}),d}function c(e,t){return function(e,t,i){if((0,o.G4)(i))return Promise.reject((0,o.NK)());const s=e();if(t?.(s))return Promise.resolve(s);let a=null;function l(){a=(0,r.xt)(a)}return new Promise((s,r)=>{a=(0,n.vE)([(0,o.u7)(i,()=>{l(),r((0,o.NK)())}),d(e,e=>{l(),s(e)},{sync:!1,once:!0},t??f)])})}(e,m,t)}function f(e){return!0}function m(e){return!!e}i(80559);const p={sync:!0},y={initial:!0},g={sync:!0,initial:!0}},60408(e,t,i){function s(e){return void 0!==e.xmin&&void 0!==e.ymin&&void 0!==e.xmax&&void 0!==e.ymax}function n(e){return void 0!==e.points}function r(e){return void 0!==e.x&&void 0!==e.y}function o(e){return void 0!==e.paths||void 0!==e.curvePaths}function a(e){return void 0!==e.rings||void 0!==e.curveRings}function l(e){return"object"==typeof e&&"vertexAttributes"in e}function u(e){return e?r(e)?"esriGeometryPoint":o(e)?"esriGeometryPolyline":a(e)?"esriGeometryPolygon":s(e)?"esriGeometryEnvelope":n(e)?"esriGeometryMultipoint":null:null}function d(e){return null!=e&&("hasZ"in e&&e.hasZ||"z"in e&&null!=e.z)}function h(e){return null!=e&&("hasM"in e&&e.hasM||"m"in e&&null!=e.m)}i.d(t,{$B:()=>u,Bi:()=>a,Pv:()=>d,Rg:()=>o,U9:()=>n,W0:()=>h,ZC:()=>s,fT:()=>r,uW:()=>l})},65864(e,t,i){i.d(t,{rS:()=>d,xD:()=>c});var s=i(5443),n=i(91075),r=i(48526),o=i(86738),a=i(39829),l=i(82799),u=i(60408);function d(e){return null==e?null:e instanceof n.A?e:(0,u.fT)(e)?o.A.fromJSON(e):(0,u.Rg)(e)?l.A.fromJSON(e):(0,u.Bi)(e)?a.A.fromJSON(e):(0,u.U9)(e)?r.A.fromJSON(e):(0,u.ZC)(e)?s.A.fromJSON(e):null}const h={esriGeometryPoint:o.A,esriGeometryPolyline:l.A,esriGeometryPolygon:a.A,esriGeometryEnvelope:s.A,esriGeometryMultipoint:r.A,esriGeometryMultiPatch:a.A};function c(e){return e&&h[e]||null}},6518(e,t,i){i.d(t,{F:()=>a});var s=i(44208),n=i(75503),r=i(19419);const o={minX:0,minY:0,maxX:0,maxY:0};class a{constructor(){this._indexInvalid=!1,this._boundsToLoad=[],this._boundsById=new Map,this._idByBounds=new Map,this._index=new n.wq(9,(0,s.A)("esri-csp-restrictions")?e=>({minX:e[0],minY:e[1],maxX:e[2],maxY:e[3]}):["[0]","[1]","[2]","[3]"]),this._loadIndex=()=>{if(this._indexInvalid){const e=new Array(this._idByBounds.size);let t=0;this._idByBounds.forEach((i,s)=>{e[t++]=s}),this._indexInvalid=!1,this._index.clear(),this._index.load(e)}else this._boundsToLoad.length&&(this._index.load(Array.from(new Set(this._boundsToLoad.filter(e=>this._idByBounds.has(e))))),this._boundsToLoad.length=0)}}get fullBounds(){if(!this._boundsById.size)return null;const e=(0,r.Ie)();for(const t of this._boundsById.values())t&&(e[0]=Math.min(t[0],e[0]),e[1]=Math.min(t[1],e[1]),e[2]=Math.max(t[2],e[2]),e[3]=Math.max(t[3],e[3]));return e}get valid(){return!this._indexInvalid}clear(){this._indexInvalid=!1,this._boundsToLoad.length=0,this._boundsById.clear(),this._idByBounds.clear(),this._index.clear()}delete(e){const t=this._boundsById.get(e);this._boundsById.delete(e),t&&(this._idByBounds.delete(t),this._indexInvalid||this._index.remove(t))}forEachInBounds(e,t){this._loadIndex(),function(e,t,i){(function(e){o.minX=e[0],o.minY=e[1],o.maxX=e[2],o.maxY=e[3]})(t),e.search(o,i)}(this._index,e,e=>t(this._idByBounds.get(e)))}get(e){return this._boundsById.get(e)}has(e){return this._boundsById.has(e)}invalidateIndex(){this._indexInvalid||(this._indexInvalid=!0,this._boundsToLoad.length=0)}set(e,t){if(!this._indexInvalid){const t=this._boundsById.get(e);t&&(this._index.remove(t),this._idByBounds.delete(t))}this._boundsById.set(e,t),t&&(this._idByBounds.set(t,e),this._indexInvalid||(this._boundsToLoad.push(t),this._boundsToLoad.length>5e4&&this._loadIndex()))}}},83221(e,t,i){i.d(t,{A:()=>m});var s=i(4576),n=i(49186),r=i(65529),o=i(53966),a=i(70328),l=i(19419),u=i(90708),d=i(6518),h=i(51441),c=i(37730);const f=(0,a.vt)();class m{constructor(e){this.geometryInfo=e,this._boundsStore=new d.F,this._featuresById=new Map,this._usedMemory=0,this.events=new r.bk,this.featureAdapter=c.T}get usedMemory(){return this._usedMemory}get geometryType(){return this.geometryInfo.geometryType}get hasM(){return this.geometryInfo.hasM}get hasZ(){return this.geometryInfo.hasZ}get numFeatures(){return this._featuresById.size}get fullBounds(){return this._boundsStore.fullBounds}get storeStatistics(){let e=0;return this._featuresById.forEach(t=>{null!=t.geometry&&t.geometry.coords&&(e+=t.geometry.coords.length)}),{featureCount:this._featuresById.size,vertexCount:e/(this.hasZ?this.hasM?4:3:this.hasM?3:2)}}getFullExtent(e){if(null==this.fullBounds)return null;const[t,i,s,n]=this.fullBounds;return{xmin:t,ymin:i,xmax:s,ymax:n,spatialReference:(0,h.ag)(e)}}add(e){this._add(e),this._emitChanged()}addMany(e){for(const t of e)this._add(t);this._emitChanged()}upsertMany(e){const t=e.map(e=>this._upsert(e));return this._emitChanged(),t.filter(s.Ru)}clear(){this._featuresById.clear(),this._boundsStore.clear(),this._emitChanged(),this._usedMemory=0}removeById(e){const t=this._featuresById.get(e);return t?(this._remove(t),this._emitChanged(),t):null}removeManyById(e){this._boundsStore.invalidateIndex();for(const t of e){const e=this._featuresById.get(t);e&&this._remove(e)}this._emitChanged()}forEachBounds(e,t){for(const i of e){const e=this._boundsStore.get(i.objectId);e&&t((0,a.Jt)(f,e))}}getFeature(e){return this._featuresById.get(e)}has(e){return this._featuresById.has(e)}forEach(e){this._featuresById.forEach(t=>e(t))}forEachInBounds(e,t){this._boundsStore.forEachInBounds(e,e=>{t(this._featuresById.get(e))})}_emitChanged(){this.events.emit("changed",void 0)}_add(e){if(!e)return;const t=e.objectId;if(null==t)return void o.A.getLogger("esri.layers.graphics.data.FeatureStore").error(new n.A("featurestore:invalid-feature","feature id is missing",{feature:e}));const i=this._featuresById.get(t);let s;if(i?(e.displayId=i.displayId,s=this._boundsStore.get(t),this._boundsStore.delete(t),this._usedMemory-=this.estimateFeatureUsedMemory?.(i)??0):null!=this.onFeatureAdd&&this.onFeatureAdd(e),!e.geometry?.coords?.length)return this._boundsStore.set(t,null),void this._featuresById.set(t,e);s=(0,u.jQ)(null!=s?s:(0,l.vt)(),e.geometry),null!=s&&this._boundsStore.set(t,s),this._featuresById.set(t,e),this._usedMemory+=this.estimateFeatureUsedMemory?.(e)??0}_upsert(e){const t=e?.objectId;if(null==t)return o.A.getLogger("esri.layers.graphics.data.FeatureStore").error(new n.A("featurestore:invalid-feature","feature id is missing",{feature:e})),null;const i=this._featuresById.get(t);if(!i)return this._add(e),e;this._usedMemory-=this.estimateFeatureUsedMemory?.(i)??0;const{geometry:s,attributes:r}=e;for(const e in r)i.attributes[e]=r[e];return s&&(i.geometry=s,this._boundsStore.set(t,(0,u.jQ)((0,l.vt)(),s)??null)),this._usedMemory+=this.estimateFeatureUsedMemory?.(i)??0,i}_remove(e){null!=this.onFeatureRemove&&this.onFeatureRemove(e);const t=e.objectId;return this._boundsStore.delete(t),this._featuresById.delete(t),this._usedMemory-=this.estimateFeatureUsedMemory?.(e)??0,e}}},37730(e,t,i){i.d(t,{T:()=>n});var s=i(43334);const n={getObjectId:e=>e.objectId,getAttributes:e=>e.attributes,getAttribute:(e,t)=>e.attributes[t],cloneWithGeometry:(e,t,i)=>new s.Om(t,e.attributes,null,e.objectId,e.displayId,e.distance),getGeometry:e=>e.geometry,getCentroid:(e,t)=>e.ensureCentroid(t)}},33032(e,t,i){i.d(t,{H:()=>n,L:()=>s});const s=1;function n(e,t){let i=0;for(const s of t){const t=s.attributes?.[e];"number"==typeof t&&isFinite(t)&&(i=Math.max(i,t))}return i}},29432(e,t,i){i.r(t),i.d(t,{default:()=>v});var s=i(49186),n=i(60408),r=i(21325),o=i(90708),a=i(33032),l=i(83221),u=i(31464),d=i(75752),h=i(64714),c=i(82832),f=i(95466),m=i(98453),p=i(30524),y=i(98623);const g=r.KK,_={xmin:-180,ymin:-90,xmax:180,ymax:90,spatialReference:r.KK},b={hasAttachments:!1,capabilities:"query, editing, create, delete, update",useStandardizedQueries:!0,supportsCoordinatesQuantization:!0,supportsReturningQueryGeometry:!0,advancedQueryCapabilities:{supportsQueryAttachments:!1,supportsQueryAttachmentsCountOnly:!1,supportsQueryAttachmentOrderByFields:!1,supportsQueryAttachmentWithTypeWildcard:!1,supportsQueryBins:!0,supportsQueryPivot:!1,supportsSpatialAggregationStatistics:!0,supportedSpatialAggregationStatistics:["EnvelopeAggregate","CentroidAggregate","ConvexHullAggregate"],supportsStatistics:!0,supportsPercentileStatistics:!0,supportsReturningGeometryCentroid:!0,supportsQueryWithDistance:!0,supportsDistinct:!0,supportsReturningQueryExtent:!0,supportsReturningGeometryProperties:!1,supportsHavingClause:!0,supportsOrderBy:!0,supportsPagination:!0,supportsQueryWithResultType:!0,supportsSqlExpression:!0,supportsDisjointSpatialRel:!0,supportsQueryWithCacheHint:!0},queryBinsCapabilities:c.PC};function x(e){return(0,n.fT)(e)?null!=e.z:!!e.hasZ}function I(e){return(0,n.fT)(e)?null!=e.m:!!e.hasM}function S(e,t){let i;const s=[];if("unique-id-composite"===t.type){const n=[];for(const i of t.fieldNames)e.attributes[i]?n.push(e.attributes[i]):s.push(i);i=0===s.length?JSON.stringify(n):null}else i=e.attributes[t.fieldName],i||s.push(t.fieldName);return{objectId:i,missingFields:s}}class v{constructor(){this._uniqueIdInfo=null,this._queryEngine=null,this._nextObjectId=null}destroy(){this._queryEngine?.destroy(),this._queryEngine=this._createDefaultAttributes=null}async load(e){const t=[],{features:i}=e,n=this._inferLayerProperties(i,e.fields),r=e.fields||[],o=null!=e.hasM?e.hasM:!!n.hasM,c=null!=e.hasZ?e.hasZ:!!n.hasZ,x=!e.spatialReference&&!n.spatialReference,I=x?g:e.spatialReference||n.spatialReference,S=x?_:null,v=e.geometryType||n.geometryType,B=!v,M=e.uniqueIdInfo;let F=e.objectIdField??n.objectIdField,A=e.timeInfo;const z=new f.A(r);if(!B&&(x&&t.push({name:"feature-layer:spatial-reference-not-found",message:"Spatial reference not provided or found in features. Defaults to WGS84"}),!v))throw new s.A("feature-layer:missing-property","geometryType not set and couldn't be inferred from the provided features");if(M){const e=new Set(r.map(({name:e})=>e));if(!M.fields.every(t=>e.has(t))){const t=M.fields.filter(t=>!e.has(t));throw new s.A("feature-layer:missing-property","UniqueIdFields not set and couldn't be found in the provided fields. Fields: "+t+" are mssing.")}F=null}else if(!F)throw new s.A("feature-layer:missing-property","objectIdField not set and uniqueIdInfo not provided.");if(n.objectIdField&&F!==n.objectIdField&&(t.push({name:"feature-layer:duplicated-oid-field",message:`Provided objectIdField "${F}" doesn't match the field name "${n.objectIdField}", found in the provided fields`}),F=n.objectIdField),F&&!n.objectIdField){const e=z.get(F);e?(F=e.name,e.type="esriFieldTypeOID",e.editable=!1,e.nullable=!1):r.unshift({alias:F,name:F,type:"esriFieldTypeOID",editable:!1,nullable:!1})}for(const e of r){if(null==e.name&&(e.name=e.alias),null==e.alias&&(e.alias=e.name),!e.name)throw new s.A("feature-layer:invalid-field-name","field name is missing",{field:e});if(e.name===F&&(e.type="esriFieldTypeOID"),!m.m.jsonValues.includes(e.type))throw new s.A("feature-layer:invalid-field-type",`invalid type for field "${e.name}"`,{field:e});null==e.length&&(e.length=(0,p._b)(e))}const T={};for(const e of r)if("esriFieldTypeOID"!==e.type&&"esriFieldTypeGlobalID"!==e.type){const t=(0,p.lD)(e);void 0!==t&&(T[e.name]=t)}if(A){if(A.startTimeField){const e=z.get(A.startTimeField);e?(A.startTimeField=e.name,e.type="esriFieldTypeDate"):A.startTimeField=null}if(A.endTimeField){const e=z.get(A.endTimeField);e?(A.endTimeField=e.name,e.type="esriFieldTypeDate"):A.endTimeField=null}if(A.trackIdField){const e=z.get(A.trackIdField);e?A.trackIdField=e.name:(A.trackIdField=null,t.push({name:"feature-layer:invalid-timeInfo-trackIdField",message:"trackIdField is missing",details:{timeInfo:A}}))}A.startTimeField||A.endTimeField||(t.push({name:"feature-layer:invalid-timeInfo",message:"startTimeField and endTimeField are missing or invalid",details:{timeInfo:A}}),A=null)}const w=z.dateFields.length?{timeZoneIANA:e.dateFieldsTimeZone??y.n$}:null;this._createDefaultAttributes=(0,h.Vx)(T,F),this._uniqueIdInfo=e.uniqueIdInfo??void 0;const E={warnings:t,featureErrors:[],layerDefinition:{...b,drawingInfo:(0,h.F0)(v),templates:(0,h.e2)(T),extent:S,geometryType:v,objectIdField:F,fields:r,hasZ:c,hasM:o,timeInfo:A,dateFieldsTimeReference:w,uniqueIdInfo:this._uniqueIdInfo??void 0},assignedObjectIds:{}},R=this._uniqueIdInfo?.OIDFieldContainsHashValue?"simple"===this._uniqueIdInfo.type?{type:"unique-id-simple",fieldName:this._uniqueIdInfo.fields[0]}:{type:"unique-id-composite",fieldNames:this._uniqueIdInfo.fields}:{type:"object-id",fieldName:F};if(this._queryEngine=new d.do({fieldsIndex:f.A.fromLayerJSON({fields:r,timeInfo:A,dateFieldsTimeReference:w}),geometryType:v,hasM:o,hasZ:c,featureIdInfo:R,spatialReference:I,featureStore:new l.A({geometryType:v,hasM:o,hasZ:c}),timeInfo:A}),!i?.length)return this._nextObjectId=a.L,E;if(F){const e=(0,a.H)(F,i);this._nextObjectId=e+1}return await(0,u.Nk)(i,I),this._loadInitialFeatures(E,i)}async applyEdits(e){const{spatialReference:t,geometryType:i}=this._queryEngine;return await Promise.all([(0,c.$1)(t,i),(0,u.Nk)(e.adds,t),(0,u.Nk)(e.updates,t)]),this._applyEdits(e)}queryFeatures(e,t={}){return this._queryEngine.executeQuery(e,t.signal)}queryFeatureCount(e,t={}){return this._queryEngine.executeQueryForCount(e,t.signal)}queryObjectIds(e,t={}){return this._queryEngine.executeQueryForIds(e,t.signal)}queryExtent(e,t={}){return this._queryEngine.executeQueryForExtent(e,t.signal)}querySnapping(e,t={}){return this._queryEngine.executeQueryForSnapping(e,t.signal)}queryAttributeBins(e,t={}){return this._queryEngine.executeAttributeBinsQuery(e,t.signal)}_inferLayerProperties(e,t){let i,s,r=null,o=null,a=null;for(const t of e){const e=t.geometry;if(null!=e&&(r||(r=(0,n.$B)(e)),o||(o=e.spatialReference),null==i&&(i=x(e)),null==s&&(s=I(e)),r&&o&&null!=i&&null!=s))break}if(t&&t.length){let e=null;t.some(t=>{const i="esriFieldTypeOID"===t.type,s=!t.type&&t.name&&"objectid"===t.name.toLowerCase();return e=t,i||s})&&(a=e.name)}return{geometryType:r,spatialReference:o,objectIdField:a,hasM:s,hasZ:i}}async _loadInitialFeatures(e,t){const{geometryType:i,hasM:s,hasZ:r,spatialReference:a,featureStore:l,fieldsIndex:d,featureIdInfo:h}=this._queryEngine,f=[];for(const s of t){if(null!=s.uid&&(e.assignedObjectIds[s.uid]=-1),s.geometry&&i!==(0,n.$B)(s.geometry)){e.featureErrors.push((0,c.Yx)("Incorrect geometry type."));continue}const t=this._createDefaultAttributes(),r=(0,c.MB)(d,t,s.attributes,!0);r?e.featureErrors.push(r):(this._assignObjectId(t,s.attributes,!0),s.attributes=t,s.uid&&(e.assignedObjectIds[s.uid]=S(s,h).objectId),null!=s.geometry&&(s.geometry=(0,u.Cv)(s.geometry,s.geometry.spatialReference,a)),f.push(s))}l.addMany((0,o.Di)([],f,i,r,s,h));const{fullExtent:m,timeExtent:p}=await this._queryEngine.fetchRecomputedExtents();if(e.layerDefinition.extent=m,p){const{start:t,end:i}=p;e.layerDefinition.timeInfo.timeExtent=[t,i]}return e}async _applyEdits(e){const{adds:t,updates:i,deletes:s}=e,n={addResults:[],deleteResults:[],updateResults:[],uidToObjectId:{}};if(t?.length&&this._applyAddEdits(n,t),i?.length&&this._applyUpdateEdits(n,i),s?.length){for(const e of s)n.deleteResults.push((0,c.bP)(e));this._queryEngine.featureStore.removeManyById(s)}const{fullExtent:r,timeExtent:o}=await this._queryEngine.fetchRecomputedExtents();return{extent:r,timeExtent:o,featureEditResults:n}}_applyAddEdits(e,t){const{addResults:i,updateResults:s}=e,{geometryType:r,hasM:a,hasZ:l,spatialReference:d,featureStore:h,featureIdInfo:f,fieldsIndex:m}=this._queryEngine,p=[];for(const y of t){if(y.geometry&&r!==(0,n.$B)(y.geometry)){i.push((0,c.Yx)("Incorrect geometry type."));continue}const t=this._createDefaultAttributes(),g=(0,c.MB)(m,t,y.attributes);if(g){i.push(g);continue}this._assignObjectId(t,y.attributes),y.attributes=t;const{objectId:_,missingFields:b}=S(y,f);if(_){if(null!=y.uid&&(e.uidToObjectId[y.uid]=_),null!=y.geometry){const e=y.geometry.spatialReference??d;y.geometry=(0,u.Cv)((0,c.CR)(y.geometry,e),e,d)}p.push(y);const t=(0,c.bP)(_);h.has(_)?s.push(t):i.push(t),h.addMany((0,o.Di)([],p,r,l,a,f))}else i.push((0,c.Yx)(`Missing unique id field value for fields: ${b.join()}`))}}_applyUpdateEdits({updateResults:e},t){const{geometryType:i,hasM:s,hasZ:r,spatialReference:a,featureStore:l,fieldsIndex:d,featureIdInfo:h}=this._queryEngine;for(const f of t){const{attributes:t,geometry:m}=f,{objectId:p,missingFields:y}=S(f,h);if(null==p){const t="unique-id-composite"===h.type?y:h.fieldName;e.push((0,c.Yx)(`Identifier fields: ${t} missing`));continue}if(!l.has(p)){e.push((0,c.Yx)(`Feature with object id ${p} missing`));continue}const g=(0,o.oN)(l.getFeature(p),i,r,s);if(null!=m){if(i!==(0,n.$B)(m)){e.push((0,c.Yx)("Incorrect geometry type."));continue}const t=m.spatialReference??a;g.geometry=(0,u.Cv)((0,c.CR)(m,t),t,a)}if(t){const i=(0,c.MB)(d,g.attributes,t);if(i){e.push(i);continue}}l.add((0,o.E2)(g,i,r,s,h)),e.push((0,c.bP)(p))}}_assignObjectId(e,t,i=!1){if("object-id"===this._queryEngine.featureIdInfo.type){const s=this._queryEngine.featureIdInfo.fieldName;i&&t&&isFinite(t[s])?e[s]=t[s]:e[s]=this._nextObjectId++}}}},64714(e,t,i){i.d(t,{F0:()=>a,Vx:()=>d,e2:()=>c,f:()=>f});var s=i(44208),n=i(4718),r=i(99352),o=i(93470);function a(e){return{renderer:{type:"simple",symbol:"esriGeometryPoint"===e||"esriGeometryMultipoint"===e?o.Cb:"esriGeometryPolyline"===e?o.yM:o.WR}}}const l=/^[_$a-zA-Z][_$a-zA-Z0-9]*$/;let u=1;function d(e,t){if((0,s.A)("esri-csp-restrictions"))return()=>t?{[t]:null,...e}:{...e};try{let i="";t&&(i+=`this${h(t)} = null;`);for(const t in e)i+=`this${h(t)} = ${JSON.stringify(e[t])};`;const s=new Function(`\n return class AttributesClass$${u++} {\n constructor() {\n ${i};\n }\n }\n `)();return()=>new s}catch(i){return()=>t?{[t]:null,...e}:{...e}}}function h(e){return l.test(e)?`.${e}`:`[${JSON.stringify(e)}]`}function c(e={}){return[{name:"New Feature",description:"",prototype:{attributes:(0,n.o8)(e)}}]}function f(e,t){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,queryRelated:{supportsCount:!0,supportsOrderBy:!0,supportsPagination:!0,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},queryAttributeBins:r.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}}}},82832(e,t,i){i.d(t,{$1:()=>y,CR:()=>p,MB:()=>c,PC:()=>g,Yx:()=>l,bP:()=>d});var s=i(67482),n=i(21325),r=i(30524);class o{constructor(e){this.description=e,this.code=null}}class a{constructor(e){this.globalId=null,this.objectId=null,this.success=!1,this.uniqueId=null,this.error=new o(e)}}function l(e){return new a(e)}class u{constructor(e){this.globalId=null,this.success=!0,this.objectId=this.uniqueId=e}}function d(e){return new u(e)}const h=new Set;function c(e,t,i,s=!1){h.clear();for(const n in i){const o=e.get(n);if(!o)continue;const a=f(o,i[n]);if(h.add(o.name),o&&(s||o.editable)){const e=(0,r.CJ)(o,a);if(e)return l((0,r.uo)(e,o,a));t[o.name]=a}}for(const t of e.requiredFields??[])if(!h.has(t.name))return l(`missing required field "${t.name}"`);return null}function f(e,t){let i=t;return(0,r.WA)(e)&&"string"==typeof t?i=parseFloat(t):(0,r.yM)(e)&&null!=t&&"string"!=typeof t?i=String(t):(0,r.vE)(e)&&"string"==typeof t&&(i=(0,s._U)(t)),(0,r.WX)(i)}let m;function p(e,t){if(!e||!(0,n.fn)(t))return e;if("rings"in e||"paths"in e){if(null==m)throw new TypeError("geometry engine not loaded");return m.simplify(t,e)}return e}async function y(e,t){!(0,n.fn)(e)||"esriGeometryPolygon"!==t&&"esriGeometryPolyline"!==t||await async function(){return null==m&&(m=await i.e(1023).then(i.bind(i,81023))),m}()}const g={supportsAutoIntervalBin:!0,supportsFixedIntervalBin:!0,supportsFixedBoundariesBin:!0,supportsDateBin:!0,supportsStackBy:!0,supportsSplitBy:!0,supportsNormalization:!0,supportedStatisticTypes:["COUNT","SUM","AVG","VAR","STDDEV","MIN","MAX","PERCENTILE_CONT","PERCENTILE_DISC","CentroidAggregate","EnvelopeAggregate","ConvexHullAggregate"],supportedNormalizationTypes:["field","log","naturalLog","percentOfTotal","squareRoot"]}},98453(e,t,i){i.d(t,{m:()=>s});const s=new(i(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"})},2272(e,t,i){i.d(t,{Dl:()=>u,gf:()=>h,jV:()=>l,lF:()=>d});var s=i(92602),n=i(70333),r=i(4718),o=i(84952),a=i(926);function l(e,t){return t?{...t,query:{...e,...t.query}}:{query:e}}function u(e){return"string"==typeof e?(0,o.An)(e):(0,r.o8)(e)}function d(e,t,i){const s={};for(const n in e){if("declaredClass"===n)continue;const r=e[n];if(null!=r&&"function"!=typeof r)if(Array.isArray(r))s[n]=r.map(e=>d(e));else if("object"==typeof r)if(r.toJSON){const e=r.toJSON(i?.[n]);s[n]=t?e:JSON.stringify(e)}else s[n]=t?r:JSON.stringify(r);else s[n]=r}return s}async function h(e,t,r){const o=function(e,t){return e?t&&(0,a.Qc)(e)?t:(0,a.getApiKey)(e)??n.id?.findCredential(e)?.token:null}(e,t);if(o)return o;!n.id&&s.A.request.useIdentity&&await Promise.all([i.e(7632),i.e(6333),i.e(148)]).then(i.bind(i,50148));const l=await n.id.getCredential(e,r);return l?.token}},926(e,t,i){i.d(t,{Dd:()=>c,Jn:()=>f,Qc:()=>m,getApiKey:()=>d,getSessionToken:()=>h});var s=i(92602),n=i(11254),r=i(84952);const o=/^https?:\/\/(i?basemaps|basemapstyles)-api\.arcgis\.com\//i,a=new Set(["elevation3d.arcgis.com","js.arcgis.com","jsdev.arcgis.com","jsqa.arcgis.com","static.arcgis.com"]),l=new Map;let u=null;function d(e){if(!m(e))return null;const t=t=>t instanceof RegExp?t.test(e):"string"==typeof t&&e.startsWith(t),i=s.A.apiKeys;if(Array.isArray(i.scopes))for(const e of i.scopes)if(Array.isArray(e.urls)){if(e.urls.some(t))return e.token}else if(t(e.urls))return e.token;return i.basemapStyles&&o.test(e)?i.basemapStyles:s.A.apiKey&&/^https?:\/\/.+\.arcgis\.com(\/|$)/i.test(e)?s.A.apiKey:null}async function h(e){if(!s.A.sessions?.basemap?.enabled||!o.test(e))return null;const t=d(e);if(!t)return null;u&&await u;const{styleFamily:i="arcgis",autoRefresh:r,duration:a=43200}=s.A.sessions.basemap,h=`${t}:${i}`,c=l.get(h);if(c&&(!r||c.endTime>Date.now()))return c.sessionToken;let f;u=(0,n.A)("https://basemapstyles-api.arcgis.com/arcgis/rest/services/styles/v2/sessions/start",{cacheBust:!0,query:{durationSeconds:a,styleFamily:i,token:t}});try{f=(await u).data,f.endTime-=5e3,l.set(h,f)}finally{u=null}return f.sessionToken}function c(){return null!=s.A.apiKey||null!=s.A.apiKeys.basemapStyles}function f(e,t){return t?m(e):null!=d(e)}function m(e){const t=(0,r.$z)(e,!0);return!!t&&!a.has(t)&&!e.endsWith("/sharing/rest/generateToken")}},93470(e,t,i){i.d(t,{Cb:()=>r,HW:()=>d,JR:()=>n,JZ:()=>l,WR:()=>a,b6:()=>h,fT:()=>s,nC:()=>u,yM:()=>o});const s=[252,146,31,255],n=[153,153,153,255],r={type:"esriSMS",style:"esriSMSCircle",size:6,color:s,outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[153,153,153,255]}},o={type:"esriSLS",style:"esriSLSSolid",width:.75,color:s},a={type:"esriSFS",style:"esriSFSSolid",color:[252,146,31,196],outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[255,255,255,191]}},l={type:"esriTS",color:[255,255,255,255],font:{family:"arial-unicode-ms",size:10,weight:"bold"},horizontalAlignment:"center",kerning:!0,haloColor:[0,0,0,255],haloSize:1,rotated:!1,text:"",xoffset:0,yoffset:0,angle:0},u={type:"esriSMS",style:"esriSMSCircle",color:[0,0,0,255],outline:null,size:10.5},d={type:"esriSLS",style:"esriSLSSolid",color:[0,0,0,255],width:1.5},h={type:"esriSFS",style:"esriSFSSolid",color:[0,0,0,255],outline:null}}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[926,7229],{69540(e,t,i){i.d(t,{OU:()=>d,Pw:()=>h});var s=i(5482),n=i(69622),r=(i(44208),i(4718)),o=(i(53966),i(97768)),a=i(88620),l=i(64108);const u=Symbol("ClonableMixin"),d=e=>{var t;const i=e;let n=class extends i{constructor(){super(...arguments),this[t]=!0}static{t=u}clone(e){const t=(0,a.oY)(this);(0,o.Lw)(t,"unable to clone instance of non-accessor class");const i=t.metadata,s=t.store,n={},l=new Map;for(const t in i){const o=i[t],a=s?.originOf(t),u=o.clonable;if(o.readOnly||!1===u||7!==a&&0!==a&&5!==a&&4!==a)continue;const d=this[t];let h=null;if("function"==typeof u)h=u(d,e);else if("reference"===u)h=d;else if(h=(0,r.TU)(d,e),null!=d&&null==h)continue;0===a?l.set(t,h):n[t]=h}const u=new(0,Object.getPrototypeOf(this).constructor)(n);if(l.size){const e=(0,a.oY)(u)?.store;if(e)for(const[t,i]of l)e.set(t,i,0)}return u}};return n=(0,s.Cg)([(0,l.$)("esri.core.Clonable")],n),n},h=d(n.A)},66344(e,t,i){i.d(t,{q:()=>a});const s=!!(0,i(44208).A)("esri-tests-disable-gpu-memory-measurements");Symbol.iterator;class n{get size(){return this._size}constructor(e=10485760,t=.3){this._maxSize=e,this._maxClientSizeRatio=t,this._db=new Map,this._size=0,this._hit=0,this._miss=0,this._clients=new Map,this._sizeLimits=new Map}destroy(){this.clearAll(),this._sizeLimits.clear(),this._clients.clear(),this._db.clear()}register(e){this._clients.set(e.id.slice(0,-1),e)}deregister(e){this.clear(e),this._sizeLimits.delete(e),this._clients.delete(e.id.slice(0,-1))}get maxSize(){return this._maxSize}set maxSize(e){this._maxSize=Math.max(e,-1),this._checkSize()}get _maxClientSize(){return this._maxSize*this._maxClientSizeRatio}getSize(e,t){const i=this._db.get(e.id+t);return i?.size??0}put(e,t,i,n,o){t=e.id+t;const a=this._db.get(t);if(a&&(this._size-=a.size,e.size-=a.size,this._db.delete(t),a.entry!==i&&this._notifyRemove(t,a.entry,a.size,0)),n>this._maxSize)return void this._notifyRemove(t,i,n,0);if(void 0===i)return void console.warn("Refusing to cache undefined entry ");if(!n||n<0)return s||console.warn(`Refusing to cache entry with size ${n} for key ${t}`),void this._notifyRemove(t,i,0,0);const l=1+Math.max(o,-4)- -3;this._db.set(t,new r(i,n,l)),this._size+=n,e.size+=n,this._checkSize()}updateSize(e,t){t=e.id+t;const i=this._db.get(t);if(!i)return;this._size-=i.size,e.size-=i.size;let s=i.entry.usedMemory;for(;s>this._maxSize;){const e=this._notifyRemove(t,i.entry,s,1);if(!(null!=e&&e>0))return void this._db.delete(t);s=e}i.size=s,this._size+=s,e.size+=s,this._checkSize()}pop(e,t){t=e.id+t;const i=this._db.get(t);if(i)return this._size-=i.size,e.size-=i.size,this._db.delete(t),++this._hit,i.entry;++this._miss}get(e,t){t=e.id+t;const i=this._db.get(t);if(void 0!==i)return this._db.delete(t),i.lives=i.lifetime,this._db.set(t,i),++this._hit,i.entry;++this._miss}peek(e,t){const i=this._db.get(e.id+t);return i?++this._hit:++this._miss,i?.entry}get performanceInfo(){const e={Size:Math.round(this._size/1048576)+"/"+Math.round(this._maxSize/1048576)+"MB","Hit rate":Math.round(100*this._getHitRate())+"%",Entries:this._db.size.toString()},t={},i=new Array;this._db.forEach((e,s)=>{const n=e.lifetime;i[n]=(i[n]||0)+e.size,this._clients.forEach(i=>{const{id:n,name:r}=i;if(s.startsWith(n)){const i=t[r]||0;t[r]=i+e.size}})});const s={};this._clients.forEach(e=>{const i=e.name;if("hitRate"in e&&"number"==typeof e.hitRate&&!isNaN(e.hitRate)&&e.hitRate>0){const n=t[i]||0;t[i]=n,s[i]=Math.round(100*e.hitRate)+"%"}else s[i]="0%"});const n=Object.keys(t);n.sort((e,i)=>t[i]-t[e]),n.forEach(i=>e[i]=Math.round(t[i]/2**20)+"MB / "+s[i]);for(let t=i.length-1;t>=0;--t){const s=i[t];s&&(e["Priority "+(t+-3-1)]=Math.round(s/this._size*100)+"%")}return e}resetStats(){this._hit=this._miss=0,this._clients.forEach(e=>e.resetHitRate())}clear(e){const t=e.id;this._db.forEach((e,i)=>{i.startsWith(t)&&(this._size-=e.size,this._db.delete(i),this._notifyRemove(i,e.entry,e.size,0))}),e.size=0}clearAll(){this._db.forEach((e,t)=>this._notifyRemove(t,e.entry,e.size,0)),this._clients.forEach(e=>e.size=0),this._size=0,this._db.clear()}*values(e){for(const[t,i]of this._db)t.startsWith(e.id)&&(yield i.entry)}_getHitRate(){return this._hit/(this._hit+this._miss)}_notifyRemove(e,t,i,s){const n=this._clients.get(e.split(o)[0])?.removeFunc,r=n?.(t,s,i);return"number"==typeof r?r:null}_checkSize(){this._sizeLimits.forEach((e,t)=>this._checkSizeLimits(e,t)),this._clients.forEach(e=>this._checkSizeLimits(this._maxClientSize,e)),this._checkSizeLimits(this.maxSize)}setMaxClientSize(e,t){null==t||t<=0?this._sizeLimits.delete(e):this._sizeLimits.set(e,t)}_checkSizeLimits(e,t){const i=t??this;if(i.size<=e)return;const s=t?.id;let n=!0;for(;n;){n=!1;for(const[r,a]of this._db)if(0===a.lifetime&&(!s||r.startsWith(s))){const s=t??this._clients.get(r.split(o)[0]);if(this._purgeItem(r,a,s),i.size<=.9*e)return;n||=this._db.has(r)}}for(const[n,r]of this._db)if(!s||n.startsWith(s)){const s=t??this._clients.get(n.split(o)[0]);if(this._purgeItem(n,r,s),i.size<=.9*e)return}}_purgeItem(e,t,i){if(this._db.delete(e),t.lives<=1){this._size-=t.size,i&&(i.size-=t.size);const s=this._notifyRemove(e,t.entry,t.size,1);null!=s&&s>0&&(this._size+=s,i&&(i.size+=s),t.lives=t.lifetime,t.size=s,this._db.set(e,t))}else--t.lives,this._db.set(e,t)}}new n(0);class r{constructor(e,t,i){this.entry=e,this.size=t,this.lifetime=i,this.lives=i}}const o=":";class a{constructor(e,t){this.removeFunc=t,this.id="",this.name="",this.size=0,this._storage=new n(e,1),this._storage.register(this)}destroy(){this._storage.deregister(this),this._storage.destroy()}put(e,t,i=1){this._storage.put(this,e,t,i,1)}pop(e){return this._storage.pop(this,e)}get(e){return this._storage.get(this,e)}clear(){this._storage.clearAll()}get maxSize(){return this._storage.maxSize}set maxSize(e){this._storage.maxSize=e}resetHitRate(){}}},67482(e,t,i){function s(e){return null!=a(e)||null!=o(e)}function n(e){return l.test(e)}function r(e){return a(e)??o(e)}function o(e){const t=new Date(e);return function(e,t){if(Number.isNaN(e.getTime()))return!1;let i=!0;if(d&&/\d+\W*$/.test(t)){const e=t.match(/[a-zA-Z]{2,}/);if(e){let t=!1,s=0;for(;!t&&s<=e.length;)t=!u.test(e[s]),s++;i=!t}}return i}(t,e)?Number.isNaN(t.getTime())?null:t.getTime()-6e4*t.getTimezoneOffset():null}function a(e){const t=l.exec(e);if(!t?.groups)return null;const i=t.groups,s=+i.year,n=+i.month-1,r=+i.day,o=+(i.hours??"0"),a=+(i.minutes??"0"),u=+(i.seconds??"0");if(o>23)return null;if(a>59)return null;if(u>59)return null;const d=i.ms??"0",h=d?+d.padEnd(3,"0").slice(0,3):0;let c;if(i.isUTC||!i.offsetSign)c=Date.UTC(s,n,r,o,a,u,h);else{const e=+i.offsetHours,t=+i.offsetMinutes;c=6e4*("+"===i.offsetSign?-1:1)*(60*e+t)+Date.UTC(s,n,r,o,a,u,h)}return Number.isNaN(c)?null:c}i.d(t,{Br:()=>n,Cq:()=>s,_U:()=>r});const l=/^(?:(?<year>-?\d{4,})-(?<month>\d{2})-(?<day>\d{2}))(?:T(?<hours>\d{2}):(?<minutes>\d{2}):(?<seconds>\d{2})(?:\.(?<ms>\d+))?)?(?:(?<isUTC>Z)|(?:(?<offsetSign>\+|-)(?<offsetHours>\d{2}):(?<offsetMinutes>\d{2})))?$/,u=/^((jan(uary)?)|(feb(ruary)?)|(mar(ch)?)|(apr(il)?)|(may)|(jun(e)?)|(jul(y)?)|(aug(ust)?)|(sep(tember)?)|(oct(ober)?)|(nov(ember)?)|(dec(ember)?)|(am)|(pm)|(gmt)|(utc))$/i,d=!Number.isNaN(new Date("technology 10").getTime())},75503(e,t,i){i.d(t,{wq:()=>a});var s=i(4576),n=i(21818),r=(i(44208),i(15142)),o=i(11006);class a{constructor(e=9,t){this._compareMinX=c,this._compareMinY=f,this._toBBox=e=>e,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()}destroy(){this.clear(),I.prune(),S.prune(),v.prune(),B.prune()}all(e){l(this._data,e)}search(e,t){let i=this._data;const s=this._toBBox;if(b(e,i))for(I.clear();i;){for(let n=0,r=i.children.length;n<r;n++){const r=i.children[n],o=i.leaf?s(r):r;b(e,o)&&(i.leaf?t(r):_(e,o)?l(r,t):I.push(r))}i=I.pop()}}collides(e){let t=this._data;const i=this._toBBox;if(!b(e,t))return!1;for(I.clear();t;){for(let s=0,n=t.children.length;s<n;s++){const n=t.children[s],r=t.leaf?i(n):n;if(b(e,r)){if(t.leaf||_(e,r))return!0;I.push(n)}}t=I.pop()}return!1}load(e){if(!e.length)return this;if(e.length<this._minEntries){for(let t=0,i=e.length;t<i;t++)this.insert(e[t]);return this}let t=this._build(e.slice(),0,e.length-1,0);if(this._data.children.length)if(this._data.height===t.height)this._splitRoot(this._data,t);else{if(this._data.height<t.height){const e=this._data;this._data=t,t=e}this._insert(t,this._data.height-t.height-1,!0)}else this._data=t;return this}insert(e){return e&&this._insert(e,this._data.height-1),this}clear(){return this._data=new A([]),this}remove(e){if(!e)return this;let t,i=this._data,r=null,o=0,a=!1;const l=this._toBBox(e);for(v.clear(),B.clear();i||v.length>0;){if(i||(i=v.pop(),r=v.data[v.length-1],o=B.pop()??0,a=!0),i.leaf&&(t=(0,s.qh)(i.children,(0,n.z)(e),i.children.length,i.indexHint),-1!==t))return i.children.splice(t,1),v.push(i),this._condense(v),this;a||i.leaf||!_(i,l)?r?(o++,i=r.children[o],a=!1):i=null:(v.push(i),B.push(o),o=0,r=i,i=i.children[0])}return this}toJSON(){return this._data}fromJSON(e){return this._data=e,this}_build(e,t,i,s){const n=i-t+1;let r=this._maxEntries;if(n<=r){const s=new A(e.slice(t,i+1));return u(s,this._toBBox),s}s||(s=Math.ceil(Math.log(n)/Math.log(r)),r=Math.ceil(n/r**(s-1)));const o=new z([]);o.height=s;const a=Math.ceil(n/r),l=a*Math.ceil(Math.sqrt(r));x(e,t,i,l,this._compareMinX);for(let n=t;n<=i;n+=l){const t=Math.min(n+l-1,i);x(e,n,t,a,this._compareMinY);for(let i=n;i<=t;i+=a){const n=Math.min(i+a-1,t);o.children.push(this._build(e,i,n,s-1))}}return u(o,this._toBBox),o}_insert(e,t,i){const s=this._toBBox,n=i?e:s(e);v.clear();const r=function(e,t,i,s){for(;s.push(t),!0!==t.leaf&&s.length-1!==i;){let i,s=1/0,n=1/0;for(let r=0,o=t.children.length;r<o;r++){const o=t.children[r],a=m(o),l=y(e,o)-a;l<n?(n=l,s=a<s?a:s,i=o):l===n&&a<s&&(s=a,i=o)}t=i||t.children[0]}return t}(n,this._data,t,v);for(r.children.push(e),h(r,n);t>=0&&v.data[t].children.length>this._maxEntries;)this._split(v,t),t--;!function(e,t,i){for(let s=i;s>=0;s--)h(t.data[s],e)}(n,v,t)}_split(e,t){const i=e.data[t],s=i.children.length,n=this._minEntries;this._chooseSplitAxis(i,n,s);const r=this._chooseSplitIndex(i,n,s);if(!r)return;const o=i.children.splice(r,i.children.length-r),a=i.leaf?new A(o):new z(o);a.height=i.height,u(i,this._toBBox),u(a,this._toBBox),t?e.data[t-1].children.push(a):this._splitRoot(i,a)}_splitRoot(e,t){this._data=new z([e,t]),this._data.height=e.height+1,u(this._data,this._toBBox)}_chooseSplitIndex(e,t,i){let s,n,r;s=n=1/0;for(let o=t;o<=i-t;o++){const t=d(e,0,o,this._toBBox),a=d(e,o,i,this._toBBox),l=g(t,a),u=m(t)+m(a);l<s?(s=l,r=o,n=u<n?u:n):l===s&&u<n&&(n=u,r=o)}return r}_chooseSplitAxis(e,t,i){const s=e.leaf?this._compareMinX:c,n=e.leaf?this._compareMinY:f;this._allDistMargin(e,t,i,s)<this._allDistMargin(e,t,i,n)&&e.children.sort(s)}_allDistMargin(e,t,i,s){e.children.sort(s);const n=this._toBBox,r=d(e,0,t,n),o=d(e,i-t,i,n);let a=p(r)+p(o);for(let s=t;s<i-t;s++){const t=e.children[s];h(r,e.leaf?n(t):t),a+=p(r)}for(let s=i-t-1;s>=t;s--){const t=e.children[s];h(o,e.leaf?n(t):t),a+=p(o)}return a}_condense(e){for(let t=e.length-1;t>=0;t--){const i=e.data[t];if(0===i.children.length)if(t>0){const n=e.data[t-1],r=n.children;r.splice((0,s.qh)(r,i,r.length,n.indexHint),1)}else this.clear();else u(i,this._toBBox)}}_initFormat(e){const t=["return a"," - b",";"];this._compareMinX=new Function("a","b",t.join(e[0])),this._compareMinY=new Function("a","b",t.join(e[1])),this._toBBox=new Function("a","return {minX: a"+e[0]+", minY: a"+e[1]+", maxX: a"+e[2]+", maxY: a"+e[3]+"};")}}function l(e,t){let i=e;for(S.clear();i;){if(!0===i.leaf)for(const e of i.children)t((0,n.z)(e));else S.pushArray(i.children);i=S.pop()??null}}function u(e,t){d(e,0,e.children.length,t,e)}function d(e,t,i,s,n){n||(n=new A([])),n.minX=1/0,n.minY=1/0,n.maxX=-1/0,n.maxY=-1/0;for(let r,o=t;o<i;o++)r=e.children[o],h(n,e.leaf?s(r):r);return n}function h(e,t){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)}function c(e,t){return e.minX-t.minX}function f(e,t){return e.minY-t.minY}function m(e){return(e.maxX-e.minX)*(e.maxY-e.minY)}function p(e){return e.maxX-e.minX+(e.maxY-e.minY)}function y(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 g(e,t){const i=Math.max(e.minX,t.minX),s=Math.max(e.minY,t.minY),n=Math.min(e.maxX,t.maxX),r=Math.min(e.maxY,t.maxY);return Math.max(0,n-i)*Math.max(0,r-s)}function _(e,t){return e.minX<=t.minX&&e.minY<=t.minY&&t.maxX<=e.maxX&&t.maxY<=e.maxY}function b(e,t){return t.minX<=e.maxX&&t.minY<=e.maxY&&t.maxX>=e.minX&&t.maxY>=e.minY}function x(e,t,i,s,n){const r=[t,i];for(;r.length;){const t=r.pop(),i=r.pop();if(t-i<=s)continue;const a=i+Math.ceil((t-i)/s/2)*s;(0,o.q)(e,a,i,t,n),r.push(i,a,a,t)}}const I=new r.A,S=new r.A,v=new r.A,B=new r.A({deallocator:void 0});class M{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}}class F extends M{constructor(){super(...arguments),this.height=1,this.indexHint=new s.vW}}class A extends F{constructor(e){super(),this.children=e,this.leaf=!0}}class z extends F{constructor(e){super(),this.children=e,this.leaf=!1}}},36708(e,t,i){i.d(t,{C_:()=>c,OH:()=>p,Vh:()=>y,on:()=>h,pc:()=>g,wB:()=>l,z7:()=>u});var s=i(37955),n=i(36563),r=i(97768),o=i(17676),a=i(14012);function l(e,t,i={}){return d(e,t,i,f)}function u(e,t,i={}){return d(e,t,i,m)}function d(e,t,i={},s){let n=null;const o=i.once?(e,i)=>{s(e)&&((0,r.xt)(n),t(e,i))}:(e,i)=>{s(e)&&t(e,i)};if(n=(0,a.Cn)(e,o,i.sync,i.equals),i.initial){const t=e();o(t,t)}return n}function h(e,t,i,o={}){let a=null,u=null,d=null;function h(){a&&u&&(u.remove(),o.onListenerRemove?.(a),a=null,u=null)}function c(e){o.once&&o.once&&(0,r.xt)(d),i(e)}const f=l(e,(e,i)=>{h(),(0,s.wb)(e)&&(a=e,u=(0,s.on)(e,t,c),o.onListenerAdd?.(e))},{sync:o.sync,initial:!0});return d=(0,n.hA)(()=>{f.remove(),h()}),d}function c(e,t){return function(e,t,i){if((0,o.G4)(i))return Promise.reject((0,o.NK)());const s=e();if(t?.(s))return Promise.resolve(s);let a=null;function l(){a=(0,r.xt)(a)}return new Promise((s,r)=>{a=(0,n.vE)([(0,o.u7)(i,()=>{l(),r((0,o.NK)())}),d(e,e=>{l(),s(e)},{sync:!1,once:!0},t??f)])})}(e,m,t)}function f(e){return!0}function m(e){return!!e}i(80559);const p={sync:!0},y={initial:!0},g={sync:!0,initial:!0}},60408(e,t,i){function s(e){return void 0!==e.xmin&&void 0!==e.ymin&&void 0!==e.xmax&&void 0!==e.ymax}function n(e){return void 0!==e.points}function r(e){return void 0!==e.x&&void 0!==e.y}function o(e){return void 0!==e.paths||void 0!==e.curvePaths}function a(e){return void 0!==e.rings||void 0!==e.curveRings}function l(e){return"object"==typeof e&&"vertexAttributes"in e}function u(e){return e?r(e)?"esriGeometryPoint":o(e)?"esriGeometryPolyline":a(e)?"esriGeometryPolygon":s(e)?"esriGeometryEnvelope":n(e)?"esriGeometryMultipoint":null:null}function d(e){return null!=e&&("hasZ"in e&&e.hasZ||"z"in e&&null!=e.z)}function h(e){return null!=e&&("hasM"in e&&e.hasM||"m"in e&&null!=e.m)}i.d(t,{$B:()=>u,Bi:()=>a,Pv:()=>d,Rg:()=>o,U9:()=>n,W0:()=>h,ZC:()=>s,fT:()=>r,uW:()=>l})},65864(e,t,i){i.d(t,{rS:()=>d,xD:()=>c});var s=i(5443),n=i(91075),r=i(48526),o=i(86738),a=i(39829),l=i(82799),u=i(60408);function d(e){return null==e?null:e instanceof n.A?e:(0,u.fT)(e)?o.A.fromJSON(e):(0,u.Rg)(e)?l.A.fromJSON(e):(0,u.Bi)(e)?a.A.fromJSON(e):(0,u.U9)(e)?r.A.fromJSON(e):(0,u.ZC)(e)?s.A.fromJSON(e):null}const h={esriGeometryPoint:o.A,esriGeometryPolyline:l.A,esriGeometryPolygon:a.A,esriGeometryEnvelope:s.A,esriGeometryMultipoint:r.A,esriGeometryMultiPatch:a.A};function c(e){return e&&h[e]||null}},6518(e,t,i){i.d(t,{F:()=>a});var s=i(44208),n=i(75503),r=i(19419);const o={minX:0,minY:0,maxX:0,maxY:0};class a{constructor(){this._indexInvalid=!1,this._boundsToLoad=[],this._boundsById=new Map,this._idByBounds=new Map,this._index=new n.wq(9,(0,s.A)("esri-csp-restrictions")?e=>({minX:e[0],minY:e[1],maxX:e[2],maxY:e[3]}):["[0]","[1]","[2]","[3]"]),this._loadIndex=()=>{if(this._indexInvalid){const e=new Array(this._idByBounds.size);let t=0;this._idByBounds.forEach((i,s)=>{e[t++]=s}),this._indexInvalid=!1,this._index.clear(),this._index.load(e)}else this._boundsToLoad.length&&(this._index.load(Array.from(new Set(this._boundsToLoad.filter(e=>this._idByBounds.has(e))))),this._boundsToLoad.length=0)}}get fullBounds(){if(!this._boundsById.size)return null;const e=(0,r.Ie)();for(const t of this._boundsById.values())t&&(e[0]=Math.min(t[0],e[0]),e[1]=Math.min(t[1],e[1]),e[2]=Math.max(t[2],e[2]),e[3]=Math.max(t[3],e[3]));return e}get valid(){return!this._indexInvalid}clear(){this._indexInvalid=!1,this._boundsToLoad.length=0,this._boundsById.clear(),this._idByBounds.clear(),this._index.clear()}delete(e){const t=this._boundsById.get(e);this._boundsById.delete(e),t&&(this._idByBounds.delete(t),this._indexInvalid||this._index.remove(t))}forEachInBounds(e,t){this._loadIndex(),function(e,t,i){(function(e){o.minX=e[0],o.minY=e[1],o.maxX=e[2],o.maxY=e[3]})(t),e.search(o,i)}(this._index,e,e=>t(this._idByBounds.get(e)))}get(e){return this._boundsById.get(e)}has(e){return this._boundsById.has(e)}invalidateIndex(){this._indexInvalid||(this._indexInvalid=!0,this._boundsToLoad.length=0)}set(e,t){if(!this._indexInvalid){const t=this._boundsById.get(e);t&&(this._index.remove(t),this._idByBounds.delete(t))}this._boundsById.set(e,t),t&&(this._idByBounds.set(t,e),this._indexInvalid||(this._boundsToLoad.push(t),this._boundsToLoad.length>5e4&&this._loadIndex()))}}},83221(e,t,i){i.d(t,{A:()=>m});var s=i(4576),n=i(49186),r=i(65529),o=i(53966),a=i(70328),l=i(19419),u=i(90708),d=i(6518),h=i(51441),c=i(37730);const f=(0,a.vt)();class m{constructor(e){this.geometryInfo=e,this._boundsStore=new d.F,this._featuresById=new Map,this._usedMemory=0,this.events=new r.bk,this.featureAdapter=c.T}get usedMemory(){return this._usedMemory}get geometryType(){return this.geometryInfo.geometryType}get hasM(){return this.geometryInfo.hasM}get hasZ(){return this.geometryInfo.hasZ}get numFeatures(){return this._featuresById.size}get fullBounds(){return this._boundsStore.fullBounds}get storeStatistics(){let e=0;return this._featuresById.forEach(t=>{null!=t.geometry&&t.geometry.coords&&(e+=t.geometry.coords.length)}),{featureCount:this._featuresById.size,vertexCount:e/(this.hasZ?this.hasM?4:3:this.hasM?3:2)}}getFullExtent(e){if(null==this.fullBounds)return null;const[t,i,s,n]=this.fullBounds;return{xmin:t,ymin:i,xmax:s,ymax:n,spatialReference:(0,h.ag)(e)}}add(e){this._add(e),this._emitChanged()}addMany(e){for(const t of e)this._add(t);this._emitChanged()}upsertMany(e){const t=e.map(e=>this._upsert(e));return this._emitChanged(),t.filter(s.Ru)}clear(){this._featuresById.clear(),this._boundsStore.clear(),this._emitChanged(),this._usedMemory=0}removeById(e){const t=this._featuresById.get(e);return t?(this._remove(t),this._emitChanged(),t):null}removeManyById(e){this._boundsStore.invalidateIndex();for(const t of e){const e=this._featuresById.get(t);e&&this._remove(e)}this._emitChanged()}forEachBounds(e,t){for(const i of e){const e=this._boundsStore.get(i.objectId);e&&t((0,a.Jt)(f,e))}}getFeature(e){return this._featuresById.get(e)}has(e){return this._featuresById.has(e)}forEach(e){this._featuresById.forEach(t=>e(t))}forEachInBounds(e,t){this._boundsStore.forEachInBounds(e,e=>{t(this._featuresById.get(e))})}_emitChanged(){this.events.emit("changed",void 0)}_add(e){if(!e)return;const t=e.objectId;if(null==t)return void o.A.getLogger("esri.layers.graphics.data.FeatureStore").error(new n.A("featurestore:invalid-feature","feature id is missing",{feature:e}));const i=this._featuresById.get(t);let s;if(i?(e.displayId=i.displayId,s=this._boundsStore.get(t),this._boundsStore.delete(t),this._usedMemory-=this.estimateFeatureUsedMemory?.(i)??0):null!=this.onFeatureAdd&&this.onFeatureAdd(e),!e.geometry?.coords?.length)return this._boundsStore.set(t,null),void this._featuresById.set(t,e);s=(0,u.jQ)(null!=s?s:(0,l.vt)(),e.geometry),null!=s&&this._boundsStore.set(t,s),this._featuresById.set(t,e),this._usedMemory+=this.estimateFeatureUsedMemory?.(e)??0}_upsert(e){const t=e?.objectId;if(null==t)return o.A.getLogger("esri.layers.graphics.data.FeatureStore").error(new n.A("featurestore:invalid-feature","feature id is missing",{feature:e})),null;const i=this._featuresById.get(t);if(!i)return this._add(e),e;this._usedMemory-=this.estimateFeatureUsedMemory?.(i)??0;const{geometry:s,attributes:r}=e;for(const e in r)i.attributes[e]=r[e];return s&&(i.geometry=s,this._boundsStore.set(t,(0,u.jQ)((0,l.vt)(),s)??null)),this._usedMemory+=this.estimateFeatureUsedMemory?.(i)??0,i}_remove(e){null!=this.onFeatureRemove&&this.onFeatureRemove(e);const t=e.objectId;return this._boundsStore.delete(t),this._featuresById.delete(t),this._usedMemory-=this.estimateFeatureUsedMemory?.(e)??0,e}}},37730(e,t,i){i.d(t,{T:()=>n});var s=i(43334);const n={getObjectId:e=>e.objectId,getAttributes:e=>e.attributes,getAttribute:(e,t)=>e.attributes[t],cloneWithGeometry:(e,t,i)=>new s.Om(t,e.attributes,null,e.objectId,e.displayId,e.distance),getGeometry:e=>e.geometry,getCentroid:(e,t)=>e.ensureCentroid(t)}},33032(e,t,i){i.d(t,{H:()=>n,L:()=>s});const s=1;function n(e,t){let i=0;for(const s of t){const t=s.attributes?.[e];"number"==typeof t&&isFinite(t)&&(i=Math.max(i,t))}return i}},29432(e,t,i){i.r(t),i.d(t,{default:()=>v});var s=i(49186),n=i(60408),r=i(21325),o=i(90708),a=i(33032),l=i(83221),u=i(31464),d=i(75752),h=i(64714),c=i(82832),f=i(95466),m=i(98453),p=i(30524),y=i(98623);const g=r.KK,_={xmin:-180,ymin:-90,xmax:180,ymax:90,spatialReference:r.KK},b={hasAttachments:!1,capabilities:"query, editing, create, delete, update",useStandardizedQueries:!0,supportsCoordinatesQuantization:!0,supportsReturningQueryGeometry:!0,advancedQueryCapabilities:{supportsQueryAttachments:!1,supportsQueryAttachmentsCountOnly:!1,supportsQueryAttachmentOrderByFields:!1,supportsQueryAttachmentWithTypeWildcard:!1,supportsQueryBins:!0,supportsQueryPivot:!1,supportsSpatialAggregationStatistics:!0,supportedSpatialAggregationStatistics:["EnvelopeAggregate","CentroidAggregate","ConvexHullAggregate"],supportsStatistics:!0,supportsPercentileStatistics:!0,supportsReturningGeometryCentroid:!0,supportsQueryWithDistance:!0,supportsDistinct:!0,supportsReturningQueryExtent:!0,supportsReturningGeometryProperties:!1,supportsHavingClause:!0,supportsOrderBy:!0,supportsPagination:!0,supportsQueryWithResultType:!0,supportsSqlExpression:!0,supportsDisjointSpatialRel:!0,supportsQueryWithCacheHint:!0},queryBinsCapabilities:c.PC};function x(e){return(0,n.fT)(e)?null!=e.z:!!e.hasZ}function I(e){return(0,n.fT)(e)?null!=e.m:!!e.hasM}function S(e,t){let i;const s=[];if("unique-id-composite"===t.type){const n=[];for(const i of t.fieldNames)e.attributes[i]?n.push(e.attributes[i]):s.push(i);i=0===s.length?JSON.stringify(n):null}else i=e.attributes[t.fieldName],i||s.push(t.fieldName);return{objectId:i,missingFields:s}}class v{constructor(){this._uniqueIdInfo=null,this._queryEngine=null,this._nextObjectId=null}destroy(){this._queryEngine?.destroy(),this._queryEngine=this._createDefaultAttributes=null}async load(e){const t=[],{features:i}=e,n=this._inferLayerProperties(i,e.fields),r=e.fields||[],o=null!=e.hasM?e.hasM:!!n.hasM,c=null!=e.hasZ?e.hasZ:!!n.hasZ,x=!e.spatialReference&&!n.spatialReference,I=x?g:e.spatialReference||n.spatialReference,S=x?_:null,v=e.geometryType||n.geometryType,B=!v,M=e.uniqueIdInfo;let F=e.objectIdField??n.objectIdField,A=e.timeInfo;const z=new f.A(r);if(!B&&(x&&t.push({name:"feature-layer:spatial-reference-not-found",message:"Spatial reference not provided or found in features. Defaults to WGS84"}),!v))throw new s.A("feature-layer:missing-property","geometryType not set and couldn't be inferred from the provided features");if(M){const e=new Set(r.map(({name:e})=>e));if(!M.fields.every(t=>e.has(t))){const t=M.fields.filter(t=>!e.has(t));throw new s.A("feature-layer:missing-property","UniqueIdFields not set and couldn't be found in the provided fields. Fields: "+t+" are mssing.")}F=null}else if(!F)throw new s.A("feature-layer:missing-property","objectIdField not set and uniqueIdInfo not provided.");if(n.objectIdField&&F!==n.objectIdField&&(t.push({name:"feature-layer:duplicated-oid-field",message:`Provided objectIdField "${F}" doesn't match the field name "${n.objectIdField}", found in the provided fields`}),F=n.objectIdField),F&&!n.objectIdField){const e=z.get(F);e?(F=e.name,e.type="esriFieldTypeOID",e.editable=!1,e.nullable=!1):r.unshift({alias:F,name:F,type:"esriFieldTypeOID",editable:!1,nullable:!1})}for(const e of r){if(null==e.name&&(e.name=e.alias),null==e.alias&&(e.alias=e.name),!e.name)throw new s.A("feature-layer:invalid-field-name","field name is missing",{field:e});if(e.name===F&&(e.type="esriFieldTypeOID"),!m.m.jsonValues.includes(e.type))throw new s.A("feature-layer:invalid-field-type",`invalid type for field "${e.name}"`,{field:e});null==e.length&&(e.length=(0,p._b)(e))}const T={};for(const e of r)if("esriFieldTypeOID"!==e.type&&"esriFieldTypeGlobalID"!==e.type){const t=(0,p.lD)(e);void 0!==t&&(T[e.name]=t)}if(A){if(A.startTimeField){const e=z.get(A.startTimeField);e?(A.startTimeField=e.name,e.type="esriFieldTypeDate"):A.startTimeField=null}if(A.endTimeField){const e=z.get(A.endTimeField);e?(A.endTimeField=e.name,e.type="esriFieldTypeDate"):A.endTimeField=null}if(A.trackIdField){const e=z.get(A.trackIdField);e?A.trackIdField=e.name:(A.trackIdField=null,t.push({name:"feature-layer:invalid-timeInfo-trackIdField",message:"trackIdField is missing",details:{timeInfo:A}}))}A.startTimeField||A.endTimeField||(t.push({name:"feature-layer:invalid-timeInfo",message:"startTimeField and endTimeField are missing or invalid",details:{timeInfo:A}}),A=null)}const w=z.dateFields.length?{timeZoneIANA:e.dateFieldsTimeZone??y.n$}:null;this._createDefaultAttributes=(0,h.Vx)(T,F),this._uniqueIdInfo=e.uniqueIdInfo??void 0;const E={warnings:t,featureErrors:[],layerDefinition:{...b,drawingInfo:(0,h.F0)(v),templates:(0,h.e2)(T),extent:S,geometryType:v,objectIdField:F,fields:r,hasZ:c,hasM:o,timeInfo:A,dateFieldsTimeReference:w,uniqueIdInfo:this._uniqueIdInfo??void 0},assignedObjectIds:{}},R=this._uniqueIdInfo?.OIDFieldContainsHashValue?"simple"===this._uniqueIdInfo.type?{type:"unique-id-simple",fieldName:this._uniqueIdInfo.fields[0]}:{type:"unique-id-composite",fieldNames:this._uniqueIdInfo.fields}:{type:"object-id",fieldName:F};if(this._queryEngine=new d.do({fieldsIndex:f.A.fromLayerJSON({fields:r,timeInfo:A,dateFieldsTimeReference:w}),geometryType:v,hasM:o,hasZ:c,featureIdInfo:R,spatialReference:I,featureStore:new l.A({geometryType:v,hasM:o,hasZ:c}),timeInfo:A}),!i?.length)return this._nextObjectId=a.L,E;if(F){const e=(0,a.H)(F,i);this._nextObjectId=e+1}return await(0,u.Nk)(i,I),this._loadInitialFeatures(E,i)}async applyEdits(e){const{spatialReference:t,geometryType:i}=this._queryEngine;return await Promise.all([(0,c.$1)(t,i),(0,u.Nk)(e.adds,t),(0,u.Nk)(e.updates,t)]),this._applyEdits(e)}queryFeatures(e,t={}){return this._queryEngine.executeQuery(e,t.signal)}queryFeatureCount(e,t={}){return this._queryEngine.executeQueryForCount(e,t.signal)}queryObjectIds(e,t={}){return this._queryEngine.executeQueryForIds(e,t.signal)}queryExtent(e,t={}){return this._queryEngine.executeQueryForExtent(e,t.signal)}querySnapping(e,t={}){return this._queryEngine.executeQueryForSnapping(e,t.signal)}queryAttributeBins(e,t={}){return this._queryEngine.executeAttributeBinsQuery(e,t.signal)}_inferLayerProperties(e,t){let i,s,r=null,o=null,a=null;for(const t of e){const e=t.geometry;if(null!=e&&(r||(r=(0,n.$B)(e)),o||(o=e.spatialReference),null==i&&(i=x(e)),null==s&&(s=I(e)),r&&o&&null!=i&&null!=s))break}if(t&&t.length){let e=null;t.some(t=>{const i="esriFieldTypeOID"===t.type,s=!t.type&&t.name&&"objectid"===t.name.toLowerCase();return e=t,i||s})&&(a=e.name)}return{geometryType:r,spatialReference:o,objectIdField:a,hasM:s,hasZ:i}}async _loadInitialFeatures(e,t){const{geometryType:i,hasM:s,hasZ:r,spatialReference:a,featureStore:l,fieldsIndex:d,featureIdInfo:h}=this._queryEngine,f=[];for(const s of t){if(null!=s.uid&&(e.assignedObjectIds[s.uid]=-1),s.geometry&&i!==(0,n.$B)(s.geometry)){e.featureErrors.push((0,c.Yx)("Incorrect geometry type."));continue}const t=this._createDefaultAttributes(),r=(0,c.MB)(d,t,s.attributes,!0);r?e.featureErrors.push(r):(this._assignObjectId(t,s.attributes,!0),s.attributes=t,s.uid&&(e.assignedObjectIds[s.uid]=S(s,h).objectId),null!=s.geometry&&(s.geometry=(0,u.Cv)(s.geometry,s.geometry.spatialReference,a)),f.push(s))}l.addMany((0,o.Di)([],f,i,r,s,h));const{fullExtent:m,timeExtent:p}=await this._queryEngine.fetchRecomputedExtents();if(e.layerDefinition.extent=m,p){const{start:t,end:i}=p;e.layerDefinition.timeInfo.timeExtent=[t,i]}return e}async _applyEdits(e){const{adds:t,updates:i,deletes:s}=e,n={addResults:[],deleteResults:[],updateResults:[],uidToObjectId:{}};if(t?.length&&this._applyAddEdits(n,t),i?.length&&this._applyUpdateEdits(n,i),s?.length){for(const e of s)n.deleteResults.push((0,c.bP)(e));this._queryEngine.featureStore.removeManyById(s)}const{fullExtent:r,timeExtent:o}=await this._queryEngine.fetchRecomputedExtents();return{extent:r,timeExtent:o,featureEditResults:n}}_applyAddEdits(e,t){const{addResults:i,updateResults:s}=e,{geometryType:r,hasM:a,hasZ:l,spatialReference:d,featureStore:h,featureIdInfo:f,fieldsIndex:m}=this._queryEngine,p=[];for(const y of t){if(y.geometry&&r!==(0,n.$B)(y.geometry)){i.push((0,c.Yx)("Incorrect geometry type."));continue}const t=this._createDefaultAttributes(),g=(0,c.MB)(m,t,y.attributes);if(g){i.push(g);continue}this._assignObjectId(t,y.attributes),y.attributes=t;const{objectId:_,missingFields:b}=S(y,f);if(_){if(null!=y.uid&&(e.uidToObjectId[y.uid]=_),null!=y.geometry){const e=y.geometry.spatialReference??d;y.geometry=(0,u.Cv)((0,c.CR)(y.geometry,e),e,d)}p.push(y);const t=(0,c.bP)(_);h.has(_)?s.push(t):i.push(t),h.addMany((0,o.Di)([],p,r,l,a,f))}else i.push((0,c.Yx)(`Missing unique id field value for fields: ${b.join()}`))}}_applyUpdateEdits({updateResults:e},t){const{geometryType:i,hasM:s,hasZ:r,spatialReference:a,featureStore:l,fieldsIndex:d,featureIdInfo:h}=this._queryEngine;for(const f of t){const{attributes:t,geometry:m}=f,{objectId:p,missingFields:y}=S(f,h);if(null==p){const t="unique-id-composite"===h.type?y:h.fieldName;e.push((0,c.Yx)(`Identifier fields: ${t} missing`));continue}if(!l.has(p)){e.push((0,c.Yx)(`Feature with object id ${p} missing`));continue}const g=(0,o.oN)(l.getFeature(p),i,r,s);if(null!=m){if(i!==(0,n.$B)(m)){e.push((0,c.Yx)("Incorrect geometry type."));continue}const t=m.spatialReference??a;g.geometry=(0,u.Cv)((0,c.CR)(m,t),t,a)}if(t){const i=(0,c.MB)(d,g.attributes,t);if(i){e.push(i);continue}}l.add((0,o.E2)(g,i,r,s,h)),e.push((0,c.bP)(p))}}_assignObjectId(e,t,i=!1){if("object-id"===this._queryEngine.featureIdInfo.type){const s=this._queryEngine.featureIdInfo.fieldName;i&&t&&isFinite(t[s])?e[s]=t[s]:e[s]=this._nextObjectId++}}}},64714(e,t,i){i.d(t,{F0:()=>a,Vx:()=>d,e2:()=>c,f:()=>f});var s=i(44208),n=i(4718),r=i(99352),o=i(93470);function a(e){return{renderer:{type:"simple",symbol:"esriGeometryPoint"===e||"esriGeometryMultipoint"===e?o.Cb:"esriGeometryPolyline"===e?o.yM:o.WR}}}const l=/^[_$a-zA-Z][_$a-zA-Z0-9]*$/;let u=1;function d(e,t){if((0,s.A)("esri-csp-restrictions"))return()=>t?{[t]:null,...e}:{...e};try{let i="";t&&(i+=`this${h(t)} = null;`);for(const t in e)i+=`this${h(t)} = ${JSON.stringify(e[t])};`;const s=new Function(`\n return class AttributesClass$${u++} {\n constructor() {\n ${i};\n }\n }\n `)();return()=>new s}catch(i){return()=>t?{[t]:null,...e}:{...e}}}function h(e){return l.test(e)?`.${e}`:`[${JSON.stringify(e)}]`}function c(e={}){return[{name:"New Feature",description:"",prototype:{attributes:(0,n.o8)(e)}}]}function f(e,t){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,queryRelated:{supportsCount:!0,supportsOrderBy:!0,supportsPagination:!0,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},queryAttributeBins:r.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}}}},82832(e,t,i){i.d(t,{$1:()=>y,CR:()=>p,MB:()=>c,PC:()=>g,Yx:()=>l,bP:()=>d});var s=i(67482),n=i(21325),r=i(30524);class o{constructor(e){this.description=e,this.code=null}}class a{constructor(e){this.globalId=null,this.objectId=null,this.success=!1,this.uniqueId=null,this.error=new o(e)}}function l(e){return new a(e)}class u{constructor(e){this.globalId=null,this.success=!0,this.objectId=this.uniqueId=e}}function d(e){return new u(e)}const h=new Set;function c(e,t,i,s=!1){h.clear();for(const n in i){const o=e.get(n);if(!o)continue;const a=f(o,i[n]);if(h.add(o.name),o&&(s||o.editable)){const e=(0,r.CJ)(o,a);if(e)return l((0,r.uo)(e,o,a));t[o.name]=a}}for(const t of e.requiredFields??[])if(!h.has(t.name))return l(`missing required field "${t.name}"`);return null}function f(e,t){let i=t;return(0,r.WA)(e)&&"string"==typeof t?i=parseFloat(t):(0,r.yM)(e)&&null!=t&&"string"!=typeof t?i=String(t):(0,r.vE)(e)&&"string"==typeof t&&(i=(0,s._U)(t)),(0,r.WX)(i)}let m;function p(e,t){if(!e||!(0,n.fn)(t))return e;if("rings"in e||"paths"in e){if(null==m)throw new TypeError("geometry engine not loaded");return m.simplify(t,e)}return e}async function y(e,t){!(0,n.fn)(e)||"esriGeometryPolygon"!==t&&"esriGeometryPolyline"!==t||await async function(){return null==m&&(m=await i.e(1023).then(i.bind(i,81023))),m}()}const g={supportsAutoIntervalBin:!0,supportsFixedIntervalBin:!0,supportsFixedBoundariesBin:!0,supportsDateBin:!0,supportsStackBy:!0,supportsSplitBy:!0,supportsNormalization:!0,supportedStatisticTypes:["COUNT","SUM","AVG","VAR","STDDEV","MIN","MAX","PERCENTILE_CONT","PERCENTILE_DISC","CentroidAggregate","EnvelopeAggregate","ConvexHullAggregate"],supportedNormalizationTypes:["field","log","naturalLog","percentOfTotal","squareRoot"]}},98453(e,t,i){i.d(t,{m:()=>s});const s=new(i(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"})},2272(e,t,i){i.d(t,{Dl:()=>u,gf:()=>h,jV:()=>l,lF:()=>d});var s=i(92602),n=i(70333),r=i(4718),o=i(84952),a=i(926);function l(e,t){return t?{...t,query:{...e,...t.query}}:{query:e}}function u(e){return"string"==typeof e?(0,o.An)(e):(0,r.o8)(e)}function d(e,t,i){const s={};for(const n in e){if("declaredClass"===n)continue;const r=e[n];if(null!=r&&"function"!=typeof r)if(Array.isArray(r))s[n]=r.map(e=>d(e));else if("object"==typeof r)if(r.toJSON){const e=r.toJSON(i?.[n]);s[n]=t?e:JSON.stringify(e)}else s[n]=t?r:JSON.stringify(r);else s[n]=r}return s}async function h(e,t,r){const o=function(e,t){return e?t&&(0,a.Qc)(e)?t:(0,a.getApiKey)(e)??n.id?.findCredential(e)?.token:null}(e,t);if(o)return o;!n.id&&s.A.request.useIdentity&&await Promise.all([i.e(7632),i.e(1431),i.e(148)]).then(i.bind(i,50148));const l=await n.id.getCredential(e,r);return l?.token}},926(e,t,i){i.d(t,{Dd:()=>c,Jn:()=>f,Qc:()=>m,getApiKey:()=>d,getSessionToken:()=>h});var s=i(92602),n=i(11254),r=i(84952);const o=/^https?:\/\/(i?basemaps|basemapstyles)-api\.arcgis\.com\//i,a=new Set(["elevation3d.arcgis.com","js.arcgis.com","jsdev.arcgis.com","jsqa.arcgis.com","static.arcgis.com"]),l=new Map;let u=null;function d(e){if(!m(e))return null;const t=t=>t instanceof RegExp?t.test(e):"string"==typeof t&&e.startsWith(t),i=s.A.apiKeys;if(Array.isArray(i.scopes))for(const e of i.scopes)if(Array.isArray(e.urls)){if(e.urls.some(t))return e.token}else if(t(e.urls))return e.token;return i.basemapStyles&&o.test(e)?i.basemapStyles:s.A.apiKey&&/^https?:\/\/.+\.arcgis\.com(\/|$)/i.test(e)?s.A.apiKey:null}async function h(e){if(!s.A.sessions?.basemap?.enabled||!o.test(e))return null;const t=d(e);if(!t)return null;u&&await u;const{styleFamily:i="arcgis",autoRefresh:r,duration:a=43200}=s.A.sessions.basemap,h=`${t}:${i}`,c=l.get(h);if(c&&(!r||c.endTime>Date.now()))return c.sessionToken;let f;u=(0,n.A)("https://basemapstyles-api.arcgis.com/arcgis/rest/services/styles/v2/sessions/start",{cacheBust:!0,query:{durationSeconds:a,styleFamily:i,token:t}});try{f=(await u).data,f.endTime-=5e3,l.set(h,f)}finally{u=null}return f.sessionToken}function c(){return null!=s.A.apiKey||null!=s.A.apiKeys.basemapStyles}function f(e,t){return t?m(e):null!=d(e)}function m(e){const t=(0,r.$z)(e,!0);return!!t&&!a.has(t)&&!e.endsWith("/sharing/rest/generateToken")}},93470(e,t,i){i.d(t,{Cb:()=>r,HW:()=>d,JR:()=>n,JZ:()=>l,WR:()=>a,b6:()=>h,fT:()=>s,nC:()=>u,yM:()=>o});const s=[252,146,31,255],n=[153,153,153,255],r={type:"esriSMS",style:"esriSMSCircle",size:6,color:s,outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[153,153,153,255]}},o={type:"esriSLS",style:"esriSLSSolid",width:.75,color:s},a={type:"esriSFS",style:"esriSFSSolid",color:[252,146,31,196],outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[255,255,255,191]}},l={type:"esriTS",color:[255,255,255,255],font:{family:"arial-unicode-ms",size:10,weight:"bold"},horizontalAlignment:"center",kerning:!0,haloColor:[0,0,0,255],haloSize:1,rotated:!1,text:"",xoffset:0,yoffset:0,angle:0},u={type:"esriSMS",style:"esriSMSCircle",color:[0,0,0,255],outline:null,size:10.5},d={type:"esriSLS",style:"esriSLSSolid",color:[0,0,0,255],width:1.5},h={type:"esriSFS",style:"esriSFSSolid",color:[0,0,0,255],outline:null}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1017],{80200(e,t,i){i.d(t,{T:()=>r,d:()=>p});const r={Base64:0,Hex:1,String:2,Raw:3};function n(e,t){const i=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(i>>16)<<16|65535&i}function s(e,t,i,r,s,o){return n(function(e,t){return e<<t|e>>>32-t}(n(n(t,e),n(r,o)),s),i)}function o(e,t,i,r,n,o,l){return s(t&i|~t&r,e,t,n,o,l)}function l(e,t,i,r,n,o,l){return s(t&r|i&~r,e,t,n,o,l)}function a(e,t,i,r,n,o,l){return s(t^i^r,e,t,n,o,l)}function u(e,t,i,r,n,o,l){return s(i^(t|~r),e,t,n,o,l)}function d(e,t){e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;let i=1732584193,r=-271733879,s=-1732584194,d=271733878;for(let t=0;t<e.length;t+=16){const p=i,c=r,f=s,g=d;i=o(i,r,s,d,e[t],7,-680876936),d=o(d,i,r,s,e[t+1],12,-389564586),s=o(s,d,i,r,e[t+2],17,606105819),r=o(r,s,d,i,e[t+3],22,-1044525330),i=o(i,r,s,d,e[t+4],7,-176418897),d=o(d,i,r,s,e[t+5],12,1200080426),s=o(s,d,i,r,e[t+6],17,-1473231341),r=o(r,s,d,i,e[t+7],22,-45705983),i=o(i,r,s,d,e[t+8],7,1770035416),d=o(d,i,r,s,e[t+9],12,-1958414417),s=o(s,d,i,r,e[t+10],17,-42063),r=o(r,s,d,i,e[t+11],22,-1990404162),i=o(i,r,s,d,e[t+12],7,1804603682),d=o(d,i,r,s,e[t+13],12,-40341101),s=o(s,d,i,r,e[t+14],17,-1502002290),r=o(r,s,d,i,e[t+15],22,1236535329),i=l(i,r,s,d,e[t+1],5,-165796510),d=l(d,i,r,s,e[t+6],9,-1069501632),s=l(s,d,i,r,e[t+11],14,643717713),r=l(r,s,d,i,e[t],20,-373897302),i=l(i,r,s,d,e[t+5],5,-701558691),d=l(d,i,r,s,e[t+10],9,38016083),s=l(s,d,i,r,e[t+15],14,-660478335),r=l(r,s,d,i,e[t+4],20,-405537848),i=l(i,r,s,d,e[t+9],5,568446438),d=l(d,i,r,s,e[t+14],9,-1019803690),s=l(s,d,i,r,e[t+3],14,-187363961),r=l(r,s,d,i,e[t+8],20,1163531501),i=l(i,r,s,d,e[t+13],5,-1444681467),d=l(d,i,r,s,e[t+2],9,-51403784),s=l(s,d,i,r,e[t+7],14,1735328473),r=l(r,s,d,i,e[t+12],20,-1926607734),i=a(i,r,s,d,e[t+5],4,-378558),d=a(d,i,r,s,e[t+8],11,-2022574463),s=a(s,d,i,r,e[t+11],16,1839030562),r=a(r,s,d,i,e[t+14],23,-35309556),i=a(i,r,s,d,e[t+1],4,-1530992060),d=a(d,i,r,s,e[t+4],11,1272893353),s=a(s,d,i,r,e[t+7],16,-155497632),r=a(r,s,d,i,e[t+10],23,-1094730640),i=a(i,r,s,d,e[t+13],4,681279174),d=a(d,i,r,s,e[t],11,-358537222),s=a(s,d,i,r,e[t+3],16,-722521979),r=a(r,s,d,i,e[t+6],23,76029189),i=a(i,r,s,d,e[t+9],4,-640364487),d=a(d,i,r,s,e[t+12],11,-421815835),s=a(s,d,i,r,e[t+15],16,530742520),r=a(r,s,d,i,e[t+2],23,-995338651),i=u(i,r,s,d,e[t],6,-198630844),d=u(d,i,r,s,e[t+7],10,1126891415),s=u(s,d,i,r,e[t+14],15,-1416354905),r=u(r,s,d,i,e[t+5],21,-57434055),i=u(i,r,s,d,e[t+12],6,1700485571),d=u(d,i,r,s,e[t+3],10,-1894986606),s=u(s,d,i,r,e[t+10],15,-1051523),r=u(r,s,d,i,e[t+1],21,-2054922799),i=u(i,r,s,d,e[t+8],6,1873313359),d=u(d,i,r,s,e[t+15],10,-30611744),s=u(s,d,i,r,e[t+6],15,-1560198380),r=u(r,s,d,i,e[t+13],21,1309151649),i=u(i,r,s,d,e[t+4],6,-145523070),d=u(d,i,r,s,e[t+11],10,-1120210379),s=u(s,d,i,r,e[t+2],15,718787259),r=u(r,s,d,i,e[t+9],21,-343485551),i=n(i,p),r=n(r,c),s=n(s,f),d=n(d,g)}return[i,r,s,d]}function p(e,t=r.Hex){const i=t||r.Base64,n=d(function(e){const t=[];for(let i=0,r=8*e.length;i<r;i+=8)t[i>>5]|=(255&e.charCodeAt(i/8))<<i%32;return t}(e),8*e.length);switch(i){case r.Raw:return n;case r.Hex:return function(e){const t="0123456789abcdef",i=[];for(let r=0,n=4*e.length;r<n;r++)i.push(t.charAt(e[r>>2]>>r%4*8+4&15)+t.charAt(e[r>>2]>>r%4*8&15));return i.join("")}(n);case r.String:return function(e){const t=[];for(let i=0,r=32*e.length;i<r;i+=8)t.push(String.fromCharCode(e[i>>5]>>>i%32&255));return t.join("")}(n);case r.Base64:return function(e){const t=[];for(let i=0,r=4*e.length;i<r;i+=3){const r=(e[i>>2]>>i%4*8&255)<<16|(e[i+1>>2]>>(i+1)%4*8&255)<<8|e[i+2>>2]>>(i+2)%4*8&255;for(let n=0;n<4;n++)8*i+6*n>32*e.length?t.push("="):t.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(r>>6*(3-n)&63))}return t.join("")}(n)}}},87718(e,t,i){i.d(t,{F:()=>F,Y:()=>S});var r,n=i(5482),s=i(91429),o=i(49186),l=i(25482),a=i(93637),u=i(76369),d=i(66552),p=i(4718),c=i(50498),f=i(61956),g=i(79677);const y=new d.J({esriSpatialRelIntersects:"intersects",esriSpatialRelContains:"contains",esriSpatialRelCrosses:"crosses",esriSpatialRelDisjoint:"disjoint",esriSpatialRelEnvelopeIntersects:"envelope-intersects",esriSpatialRelIndexIntersects:"index-intersects",esriSpatialRelOverlaps:"overlaps",esriSpatialRelTouches:"touches",esriSpatialRelWithin:"within",esriSpatialRelRelation:"relation"}),h=new d.J({esriSRUnit_Meter:"meters",esriSRUnit_Kilometer:"kilometers",esriSRUnit_Foot:"feet",esriSRUnit_StatuteMile:"miles",esriSRUnit_NauticalMile:"nautical-miles",esriSRUnit_USNauticalMile:"us-nautical-miles"});let m=r=class extends l.o{constructor(e){super(e),this.where=null,this.geometry=null,this.spatialRelationship="intersects",this.distance=void 0,this.objectIds=null,this.units=null,this.timeExtent=null}createQuery(e={}){const{where:t,geometry:i,spatialRelationship:r,timeExtent:n,objectIds:s,units:o,distance:l}=this;return new f.A({geometry:(0,p.o8)(i),objectIds:(0,p.o8)(s),spatialRelationship:r,timeExtent:(0,p.o8)(n),where:t,units:o,distance:l,...e})}clone(){const{where:e,geometry:t,spatialRelationship:i,timeExtent:n,objectIds:s,units:o,distance:l}=this;return new r({geometry:(0,p.o8)(t),objectIds:(0,p.o8)(s),spatialRelationship:i,timeExtent:(0,p.o8)(n),where:e,units:o,distance:l})}};(0,n.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],m.prototype,"where",void 0),(0,n.Cg)([(0,s.MZ)({types:c.yR,json:{write:!0}})],m.prototype,"geometry",void 0),(0,n.Cg)([(0,s.MZ)({type:y.apiValues,json:{name:"spatialRel",read:{reader:y.read},write:{allowNull:!1,writer:y.write,overridePolicy(){return{enabled:null!=this.geometry}}}}})],m.prototype,"spatialRelationship",void 0),(0,n.Cg)([(0,s.MZ)({type:Number,json:{write:{overridePolicy(e){return{enabled:null!=e&&null!=this.geometry}}}}})],m.prototype,"distance",void 0),(0,n.Cg)([(0,s.MZ)({type:[Number],json:{write:!0}})],m.prototype,"objectIds",void 0),(0,n.Cg)([(0,s.MZ)({type:h.apiValues,json:{read:h.read,write:{writer:h.write,overridePolicy(e){return{enabled:null!=e&&null!=this.geometry}}}}})],m.prototype,"units",void 0),(0,n.Cg)([(0,s.MZ)({type:g.A,json:{write:!0}})],m.prototype,"timeExtent",void 0),m=r=(0,n.Cg)([(0,s.$K)("esri.layers.support.FeatureFilter")],m);const w=m;var v;const b={read:{reader:u.LF},write:{writer:u.M9,overridePolicy(){return{allowNull:null!=this.excludedEffect,isRequired:null==this.excludedEffect}}}},C={read:{reader:u.LF},write:{writer:u.M9,overridePolicy(){return{allowNull:null!=this.includedEffect,isRequired:null==this.includedEffect}}}},x={name:"showExcludedLabels",default:!0};let M=v=class extends l.o{constructor(e){super(e),this.filter=null,this.includedEffect=null,this.excludedEffect=null,this.excludedLabelsVisible=!1}write(e,t){const i=super.write(e,t);if(t?.origin){if(i.filter){const e=Object.keys(i.filter);if(e.length>1||"where"!==e[0])return t.messages?.push(new o.A("web-document-write:unsupported-feature-effect","Invalid feature effect 'filter'. A filter can only contain a 'where' property",{layer:t.layer,effect:this})),null}if("showExcludedLabels"in i)return t.messages?.push(new o.A("web-document-write:unsupported-feature-effect","Invalid value for property 'excludedLabelsVisible' which should always be 'true'",{layer:t.layer,effect:this})),null}return i}clone(){return new v({filter:null!=this.filter?this.filter.clone():null,includedEffect:this.includedEffect,excludedEffect:this.excludedEffect,excludedLabelsVisible:this.excludedLabelsVisible})}};(0,n.Cg)([(0,s.MZ)({type:w,json:{write:{allowNull:!0,writer(e,t,i,r){const n=e?.write({},r);n&&0!==Object.keys(n).length?(0,a.sM)(i,n,t):(0,a.sM)(i,null,t)}}}})],M.prototype,"filter",void 0),(0,n.Cg)([(0,s.MZ)({json:{read:u.LF,write:{writer:u.M9,allowNull:!0},origins:{"web-map":b,"portal-item":b}}})],M.prototype,"includedEffect",void 0),(0,n.Cg)([(0,s.MZ)({json:{read:u.LF,write:{writer:u.M9,allowNull:!0},origins:{"web-map":C,"portal-item":C}}})],M.prototype,"excludedEffect",void 0),(0,n.Cg)([(0,s.MZ)({type:Boolean,json:{write:!0,name:"showExcludedLabels",origins:{"web-map":x,"portal-item":x}}})],M.prototype,"excludedLabelsVisible",void 0),M=v=(0,n.Cg)([(0,s.$K)("esri.layers.support.FeatureEffect")],M);const R={write:{allowNull:!0}},S={type:M,json:{origins:{"web-map":R,"portal-item":R}}},F=e=>{const t=e;let i=class extends t{constructor(){super(...arguments),this.featureEffect=null}};return(0,n.Cg)([(0,s.MZ)(S)],i.prototype,"featureEffect",void 0),i=(0,n.Cg)([(0,s.$K)("esri.layers.mixins.FeatureEffectLayer")],i),i}},56658(e,t,i){i.d(t,{J:()=>A});var r=i(5482),n=i(36708),s=i(91429),o=i(60950),l=i(99959);class a extends l.A{constructor(e){super(),this.type="aggregate",this.featureReductionProvider=e}get id(){return this.featureReductionProvider.id}get[o.ym](){const e=this.featureReductionProvider.featureReduction;return e&&"popupTemplate"in e?e:null}}var u=i(50820),d=i(20569),p=i(77548),c=i(96576),f=i(48940),g=i(12330),y=i(49186),h=i(44208),m=i(53966),w=i(80200),v=i(39767),b=i(30943),C=i(53930);h.A.add("esri-cluster-arcade-enabled",!0);const x=(0,h.A)("esri-cluster-arcade-enabled"),M=new Set(["simple-line","simple-fill","picture-fill"]);function R(e,t){let i=t.clone();if(!S(i))return i;if(t.symbols.some(e=>M.has(e.type))&&(i=new c.A({symbol:new C.A})),i.authoringInfo||(i.authoringInfo=new b.A),i.authoringInfo.isAutoGenerated=!0,"visualVariables"in i){const t=(i.visualVariables||[]).filter(e=>"$view.scale"!==e.valueExpression);t.forEach(t=>{"rotation"===t.type?t.field?t.field=_(e,t.field,"avg_angle","number"):t.valueExpression&&(t.field=F(e,t.valueExpression,"avg_angle","number"),t.valueExpression=null):t.normalizationField?(t.field=_(e,t.field,"avg_norm","number",t.normalizationField),t.normalizationField=null):t.field?t.field=_(e,t.field,"avg","number"):t.valueExpression&&(t.field=F(e,t.valueExpression,"avg","number"),t.valueExpression=null)}),i.visualVariables=t}switch(i.type){case"simple":break;case"pie-chart":for(const t of i.attributes)t.field?t.field=_(e,t.field,"sum","number"):t.valueExpression&&(t.field=F(e,t.valueExpression,"sum","number"),t.valueExpression=null);break;case"unique-value":i.field?i.field=_(e,i.field,"mode","string"):i.valueExpression&&(i.field=F(e,i.valueExpression,"mode","string"),i.valueExpression=null);break;case"class-breaks":i.normalizationField?(i.field=_(e,i.field,"avg_norm","number",i.normalizationField),i.normalizationField=null):i.field?i.field=_(e,i.field,"avg","number"):i.valueExpression&&(i.field=F(e,i.valueExpression,"avg","number"),i.valueExpression=null)}return i}const S=e=>{const t=t=>m.A.getLogger("esri.views.2d.layers.support.clusterUtils").error(new y.A("Unsupported-renderer",t,{renderer:e}));if(!e)return!1;switch(e.type){case"unique-value":if(e.field2||e.field3)return t("FeatureReductionCluster does not support multi-field UniqueValueRenderers"),!1;break;case"class-breaks":if(e.normalizationField){const i=e.normalizationType;if("field"!==i)return t(`FeatureReductionCluster does not support a normalizationType of ${i}`),!1}break;case"simple":case"pie-chart":break;default:return t(`FeatureReductionCluster does not support renderers of type ${e.type}`),!1}if(!x){if("valueExpression"in e&&e.valueExpression)return t("FeatureReductionCluster does not currently support renderer.valueExpression. Support will be added in a future release"),!1;if(("visualVariables"in e&&e.visualVariables||[]).some(e=>!(!("valueExpression"in e)||!e.valueExpression)))return t("FeatureReductionCluster does not currently support visualVariables with a valueExpression. Support will be added in a future release"),!1}return!0};function F(e,t,i,r){const n=(0,w.d)(t),s="mode"===i?`cluster_type_${n}`:"sum"===i?`cluster_sum_${n}`:`cluster_avg_${n}`;return e.some(e=>e.name===s)||e.push(new u.A({name:s,isAutoGenerated:!0,onStatisticExpression:new v.A({expression:t,returnType:r}),statisticType:i})),s}function _(e,t,i,r,n){if("cluster_count"===t||e.some(e=>e.name===t))return t;const s=function(e,t,i){switch(e){case"sum":return`cluster_sum_${t}`;case"avg":case"avg_angle":return`cluster_avg_${t}`;case"mode":return`cluster_type_${t}`;case"avg_norm":{const e=i,r="field",n=t.toLowerCase()+",norm:"+r+","+e.toLowerCase();return"cluster_avg_"+(0,w.d)(n)}}}(i,t,n);return e.some(e=>e.name===s)||("avg_norm"===i?e.push(new u.A({name:s,isAutoGenerated:!0,onStatisticExpression:new v.A({expression:`$feature.${t} / $feature.${n}`,returnType:r}),statisticType:"avg"})):e.push(new u.A({name:s,isAutoGenerated:!0,onStatisticField:t,statisticType:i}))),s}const A=e=>{const t=e;let i=class extends t{constructor(...e){super(...e),this.aggregateGraphicOrigin=new a(this),this.addHandles([(0,n.wB)(()=>this.renderer,()=>{this.featureReduction&&this._setFeatureReduction(this.featureReduction)},n.OH),(0,n.wB)(()=>[this.loaded],()=>{this.loaded&&this._setLayerReference(this.featureReduction,this)})])}set featureReduction(e){this._setFeatureReduction(e)}set renderer(e){}_withClusterVariable(e,t,i){const r=e.clone();return"visualVariables"in r&&(r.visualVariables||(r.visualVariables=[]),r.visualVariables.some(e=>"size"===e.type)||r.visualVariables.push(new f.A({field:"cluster_count",stops:[new g.A({value:1}),new g.A({useMinValue:!0,size:t}),new g.A({useMaxValue:!0,size:i})]}))),r}_normalizeFeatureReduction(e){if("cluster"!==e?.type)return e;const t=e.clone(),i=[new u.A({name:"cluster_count",alias:"cluster_count",isAutoGenerated:!0,statisticType:"count"})],r=(t.fields??[]).filter(e=>!e.isAutoGenerated),n=e.renderer&&!e.renderer.authoringInfo?.isAutoGenerated,{clusterMinSize:s,clusterMaxSize:o}=t;if(n){t.fields=[...i,...r];const e=this._withClusterVariable(t.renderer,s,o);return t.effectiveFeatureRenderer=e,t.effectiveClusterRenderer=e,t}if(e.symbol){if(t.fields=[...i,...r],t.renderer=null,!this.renderer)return t.effectiveFeatureRenderer=null,t.effectiveClusterRenderer=null,t;const n=R(i,this.renderer),l=this._withClusterVariable(n,s,o),a="visualVariables"in l&&l.visualVariables?l.visualVariables:[],u=new c.A({symbol:e.symbol,visualVariables:a});return t.fields=[...i,...r],t.effectiveFeatureRenderer=l,t.effectiveClusterRenderer=u,t}if(!this.renderer)return e;const l=R(i,this.renderer);t.fields=[...i,...r],t.renderer=l;const a=this._withClusterVariable(l,s,o);return t.effectiveFeatureRenderer=a,t.effectiveClusterRenderer=a,t}_setFeatureReduction(e){const t=this._get("featureReduction");this._setLayerReference(t,null);const i=this._normalizeFeatureReduction(e);this._setLayerReference(i,this),this._set("featureReduction",i)}_setLayerReference(e,t){e&&"layer"in e&&(e.layer=(0,p.jy)(t)?t:null)}};return(0,r.Cg)([(0,s.MZ)({readOnly:!0,clonable:!1})],i.prototype,"aggregateGraphicOrigin",void 0),(0,r.Cg)([(0,s.MZ)(d.d)],i.prototype,"featureReduction",null),i=(0,r.Cg)([(0,s.$K)("esri.layers.mixins.FeatureReductionLayer")],i),i}},50820(e,t,i){i.d(t,{A:()=>d});var r,n=i(5482),s=i(25482),o=i(4718),l=i(91429),a=i(39767),u=i(30524);let d=class extends s.o{static{r=this}constructor(e){super(e),this.isAutoGenerated=!1,this.name=null,this.alias=null,this.onStatisticField=null,this.onStatisticExpression=null,this.statisticType=null}get type(){return this.layer?(0,u.e7)(this,this.layer.fieldsIndex):null}clone(){return new r({name:this.name,alias:this.alias,isAutoGenerated:this.isAutoGenerated,onStatisticExpression:(0,o.o8)(this.onStatisticExpression),onStatisticField:this.onStatisticField,statisticType:this.statisticType})}};(0,n.Cg)([(0,l.MZ)({type:Boolean,json:{write:!0}})],d.prototype,"isAutoGenerated",void 0),(0,n.Cg)([(0,l.MZ)({clonable:!1})],d.prototype,"layer",void 0),(0,n.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],d.prototype,"name",void 0),(0,n.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],d.prototype,"alias",void 0),(0,n.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],d.prototype,"onStatisticField",void 0),(0,n.Cg)([(0,l.MZ)({type:a.A,json:{write:!0}})],d.prototype,"onStatisticExpression",void 0),(0,n.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],d.prototype,"statisticType",void 0),(0,n.Cg)([(0,l.MZ)({readOnly:!0,clonable:!1,json:{read:!1}})],d.prototype,"type",null),d=r=(0,n.Cg)([(0,l.$K)("esri.layers.support.AggregateField")],d)},39767(e,t,i){i.d(t,{A:()=>l});var r=i(5482),n=i(69540),s=i(25482),o=i(91429);let l=class extends((0,n.OU)(s.o)){constructor(e){super(e),this.expression=null,this.title=null,this.returnType=null}};(0,r.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],l.prototype,"expression",void 0),(0,r.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],l.prototype,"title",void 0),(0,r.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],l.prototype,"returnType",void 0),l=(0,r.Cg)([(0,o.$K)("esri.layers.support.ExpressionInfo")],l)},67202(e,t,i){i.d(t,{A:()=>l});var r,n=i(5482),s=i(25482),o=i(91429);let l=r=class extends s.o{constructor(e){super(e),this.type="selection"}clone(){return new r}};(0,n.Cg)([(0,o.MZ)({type:["selection"],readOnly:!0,json:{write:!0}})],l.prototype,"type",void 0),l=r=(0,n.Cg)([(0,o.$K)("esri.layers.support.FeatureReductionSelection")],l)},30279(e,t,i){i.d(t,{A:()=>u});var r=i(5482),n=i(69540),s=i(25482),o=i(10107),l=i(64108),a=i(62044);let u=class extends((0,n.OU)(s.o)){constructor(e){super(e),this.alias=null,this.name=void 0,this.fieldFormat=null}};(0,r.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],u.prototype,"alias",void 0),(0,r.Cg)([(0,o.MZ)({type:String,nonNullable:!0,json:{write:{isRequired:!0}}})],u.prototype,"name",void 0),(0,r.Cg)([(0,o.MZ)({types:a.fg,json:{write:!0}})],u.prototype,"fieldFormat",void 0),u=(0,r.Cg)([(0,l.$)("esri.layers.support.FieldConfiguration")],u)},20569(e,t,i){i.d(t,{d:()=>B});var r=i(89317),n=i(5482),s=i(69540),o=i(25482),l=i(4718),a=i(90629),u=i(91429),d=i(56507),p=i(15426),c=i(37838),f=i(93637),g=i(50820),y=i(30524);class h{constructor(e){this._fieldsMap=new Map,this._normalizedFieldsMap=new Map,this.fields=e;const t=[];for(const e of this.fields){const i=e?.name,r=(0,y.GZ)(i);if(i&&r){const n=(0,y.NF)(i);this._fieldsMap.set(i,e),this._fieldsMap.set(n,e),this._normalizedFieldsMap.set(r,e),t.push(`${n}:${e.type||""}`)}}t.sort(),this.uid=t.join()}equals(e){return this.uid===e?.uid}get(e){return(0,y.Vb)({fieldName:e,fieldsMap:this._fieldsMap,normalizedFieldsMap:this._normalizedFieldsMap})}}var m=i(10873),w=i(30279),v=i(16194),b=i(46499),C=i(77548),x=i(41214);function M(){return{type:[w.A],clonable:!1,json:{name:"fieldConfigurations",write:{overridePolicy(e){return{enabled:(0,C.jy)(this.layer),ignoreOrigin:!0}}}},set:function(e){if(this._override("fieldConfigurations",e),!this.layer?.loaded)return;const t=(0,v.sS)(this,e);t&&this._set("popupTemplate",t)},get:function(){return this._isOverridden("fieldConfigurations")?this._get("fieldConfigurations"):this.layer?.loaded?(0,v.QX)(this)||null:void 0}}}function R(){return{type:[g.A],value:[],json:{write:{ignoreOrigin:!0,writer(e,t,i){const r=e.filter(e=>"avg_angle"!==e.statisticType).map(e=>e.toJSON());(0,f.sM)(i,r,t)}}},set:function(e){V(this._get("fields"),null),V(e,this.layer),this._set("fields",e)}}}function S(){return{readOnly:!0,get:function(){return new h(this.fields)}}}function F(){return{type:[b.A],json:{read:{source:"drawingInfo.labelingInfo"},write:{target:"drawingInfo.labelingInfo",ignoreOrigin:!0}}}}function _(){return O((0,l.o8)(m.kF))}function A(){return{clonable:!1,set:function(e){V(this.fields,e),this._set("layer",e)}}}function E(){return{type:Number,json:{default:0,name:"visibilityInfo.maxScale",write:{ignoreOrigin:!0}}}}function j(){return O((0,l.o8)(m.M6))}function Z(){return{type:c.A,json:{name:"popupInfo",write:{ignoreOrigin:!0,writer(e,t,i,r){e&&(t[i]=e.toJSON({...r,writeFieldFormat:(0,C.jy)(this.layer)}))}}}}}function I(){return{types:x.Hg,json:{write:{target:"drawingInfo.renderer",ignoreOrigin:!0}}}}function V(e,t){e?.forEach(e=>{e.layer=t})}function O(e){let t=e.json;t||(t=e.json={});let i=t.write;return null!=i&&"object"==typeof i||(i=t.write={}),i.ignoreOrigin=!0,e}var z=i(65494),L=i(93223),T=i(36005);let N=class extends((0,o.T)(s.Pw)){constructor(e){super(e),this.type="binning",this.binType="geohash",this.fixedBinLevel=null,this.labelingInfo=null,this.labelsVisible=!0,this.maxScale=0,this.popupEnabled=!0,this.popupTemplate=null,this.size=(0,a.cr)("12px"),this.fields=[],this.renderer=null}readRenderer(e,t,i){const r=t.drawingInfo?.renderer;return r?(0,z.L)(r,t,i)??void 0:(0,p.PD)(t,i)}clone(){const e=super.clone();return this._isOverridden("fieldConfigurations")&&(e.fieldConfigurations=(0,l.o8)(this.fieldConfigurations)),e}getField(e){return this.fieldsIndex.get(e)}getFieldAlias(e){const t=this.getField(e);if(t)return this.getFieldConfiguration(t.name)?.alias||t.alias}getFieldConfiguration(e){return e=e.toLowerCase(),this.fieldConfigurations?.find(t=>t.name.toLowerCase()===e)}};(0,n.Cg)([(0,u.MZ)({type:["binning"],readOnly:!0,json:{read:!1,write:{ignoreOrigin:!0}}})],N.prototype,"type",void 0),(0,n.Cg)([(0,L.e)({geohash:"geohash",square:"square"}),(0,u.MZ)({type:["geohash","square"],json:{write:{ignoreOrigin:!0}}})],N.prototype,"binType",void 0),(0,n.Cg)([(0,u.MZ)({type:Number,json:{write:{ignoreOrigin:!0}}})],N.prototype,"fixedBinLevel",void 0),(0,n.Cg)([(0,u.MZ)(F())],N.prototype,"labelingInfo",void 0),(0,n.Cg)([(0,u.MZ)(_())],N.prototype,"labelsVisible",void 0),(0,n.Cg)([(0,u.MZ)(A())],N.prototype,"layer",void 0),(0,n.Cg)([(0,u.MZ)(E())],N.prototype,"maxScale",void 0),(0,n.Cg)([(0,u.MZ)(j())],N.prototype,"popupEnabled",void 0),(0,n.Cg)([(0,u.MZ)(Z())],N.prototype,"popupTemplate",void 0),(0,n.Cg)([(0,u.MZ)({cast:e=>"auto"===e?e:(0,d.GB)((0,a.cr)(e))})],N.prototype,"size",void 0),(0,n.Cg)([(0,u.MZ)(M())],N.prototype,"fieldConfigurations",void 0),(0,n.Cg)([(0,u.MZ)(R())],N.prototype,"fields",void 0),(0,n.Cg)([(0,u.MZ)(S())],N.prototype,"fieldsIndex",void 0),(0,n.Cg)([(0,u.MZ)(I())],N.prototype,"renderer",void 0),(0,n.Cg)([(0,T.w)("renderer",["drawingInfo.renderer"])],N.prototype,"readRenderer",null),N=(0,n.Cg)([(0,u.$K)("esri.layers.support.FeatureReductionBinning")],N);var $=i(96576),G=i(33910),k=i(43937);function q(e){return"simple"===e.type&&!e.visualVariables?.length}let P=class extends((0,o.T)(s.Pw)){constructor(e){super(e),this.type="cluster",this.maxScale=0,this.popupEnabled=!0,this.popupTemplate=null,this.renderer=null,this.symbol=null,this.labelingInfo=null,this.labelsVisible=!0,this.fields=[]}get clusterRadius(){return this._get("clusterRadius")??(0,a.cr)("80px")}set clusterRadius(e){this._set("clusterRadius",e)}get clusterMinSize(){return this._get("clusterMinSize")??(0,a.cr)("12px")}set clusterMinSize(e){this._set("clusterMinSize",e)}get clusterMaxSize(){return this._get("clusterMaxSize")??(0,a.cr)("50px")}set clusterMaxSize(e){this._set("clusterMaxSize",e)}readRenderer(e,t,i){const r=t.drawingInfo?.renderer;return r?.authoringInfo?.isAutoGenerated?null:r?q(r)?null:(0,z.L)(r,t,i)??void 0:(0,p.PD)(t,i)}readSymbol(e,t,i){const r=t.drawingInfo?.renderer;if(r?.authoringInfo?.isAutoGenerated)return null;if(r&&q(r)){const e=(0,z.L)(r,t,i);return e?.symbol}return null}writeSymbol(e,t,i,r){const n=this.renderer?.authoringInfo?.isAutoGenerated;if(!this.renderer||n){const i=new $.A({symbol:e});t.drawingInfo={renderer:i.write({},r)}}}readFields(e,t,i){return e.filter(e=>!e.isAutoGenerated).map(e=>g.A.fromJSON(e))}clone(){const e=super.clone();return this._isOverridden("fieldConfigurations")&&(e.fieldConfigurations=(0,l.o8)(this.fieldConfigurations)),e}getField(e){return this.fieldsIndex.get(e)}getFieldAlias(e){const t=this.getField(e);if(t)return this.getFieldConfiguration(t.name)?.alias||t.alias}getFieldConfiguration(e){return e=e.toLowerCase(),this.fieldConfigurations?.find(t=>t.name.toLowerCase()===e)}};(0,n.Cg)([(0,u.MZ)({type:["cluster"],readOnly:!0,json:{read:!1,write:{ignoreOrigin:!0}}})],P.prototype,"type",void 0),(0,n.Cg)([(0,u.MZ)({cast:e=>"auto"===e?e:(0,d.GB)((0,a.cr)(e)),json:{write:{ignoreOrigin:!0}}})],P.prototype,"clusterRadius",null),(0,n.Cg)([(0,u.MZ)({type:Number,cast:a.cr,json:{write:{ignoreOrigin:!0}}})],P.prototype,"clusterMinSize",null),(0,n.Cg)([(0,u.MZ)({type:Number,cast:a.cr,json:{write:{ignoreOrigin:!0}}})],P.prototype,"clusterMaxSize",null),(0,n.Cg)([(0,u.MZ)(E())],P.prototype,"maxScale",void 0),(0,n.Cg)([(0,u.MZ)(j())],P.prototype,"popupEnabled",void 0),(0,n.Cg)([(0,u.MZ)(Z())],P.prototype,"popupTemplate",void 0),(0,n.Cg)([(0,u.MZ)(I())],P.prototype,"renderer",void 0),(0,n.Cg)([(0,T.w)("renderer",["drawingInfo.renderer"])],P.prototype,"readRenderer",null),(0,n.Cg)([(0,u.MZ)({types:G.q8,json:{write:{ignoreOrigin:!0}}})],P.prototype,"symbol",void 0),(0,n.Cg)([(0,T.w)("symbol",["drawingInfo.renderer"])],P.prototype,"readSymbol",null),(0,n.Cg)([(0,k.K)("symbol")],P.prototype,"writeSymbol",null),(0,n.Cg)([(0,u.MZ)(F())],P.prototype,"labelingInfo",void 0),(0,n.Cg)([(0,u.MZ)(_())],P.prototype,"labelsVisible",void 0),(0,n.Cg)([(0,u.MZ)(A())],P.prototype,"layer",void 0),(0,n.Cg)([(0,u.MZ)(M())],P.prototype,"fieldConfigurations",void 0),(0,n.Cg)([(0,u.MZ)(R())],P.prototype,"fields",void 0),(0,n.Cg)([(0,T.w)("fields")],P.prototype,"readFields",null),(0,n.Cg)([(0,u.MZ)(S())],P.prototype,"fieldsIndex",void 0),P=(0,n.Cg)([(0,u.$K)("esri.layers.support.FeatureReductionCluster")],P);var K=i(67202);const U={key:"type",base:null,typeMap:{cluster:P,binning:N}},B={types:{key:"type",base:null,typeMap:{selection:K.A,cluster:P,binning:N}},json:{name:"layerDefinition.featureReduction",write:{allowNull:!0},origins:{"web-map":{types:U},"portal-item":{types:U},"web-scene":{types:{key:"type",base:null,typeMap:{selection:K.A}},name:"layerDefinition.featureReduction",write:{allowNull:!0,layerContainerTypes:r.K}}}}}},16194(e,t,i){i.d(t,{QX:()=>a,sS:()=>d,xY:()=>u});var r=i(4718),n=i(30279),s=i(62044),o=i(30524),l=i(41227);function a(e){const{popupTemplate:t,fieldsIndex:i}=e,r=t?.fieldInfos;if(!r?.length||!i)return;const o=[];for(const e of r){const{fieldName:t,label:r}=e,l=i.get(t);if(!l)continue;const a=r&&r!==l.alias?r:null,u=(0,s.iu)(e,l);(a||u)&&o.push(new n.A({name:l.name,alias:a,fieldFormat:u}))}return o.length?o:null}function u(e){const{fields:t}=e;if(!t?.length)return;const i=[];for(const e of t){const t=(0,s.qH)(e)?(0,s.$P)(e):null;t&&i.push(new n.A({name:e.name,fieldFormat:t}))}return i.length?i:null}function d(e,t){const{popupTemplate:i,fieldsIndex:n}=e;if(!i||!n)return;const o=function(e,t,i){t??=[],i=(0,r.o8)(i)??[];let n=!1;const o=new Map;for(const i of t){const t=e.fieldsIndex.get(i.name);t&&o.set(t.name,i)}for(const t of i){const i=e.fieldsIndex.get(t.fieldName);if(!i)continue;const r=o.get(i.name);t.label=r?.alias||i.alias,t.format=(0,s.qH)(i)&&r?.fieldFormat?(0,s.PK)(r.fieldFormat,i):null,n=!0,o.delete(i.name)}for(const t of o.values()){const r=p(e,t);r&&(i.push(r),n=!0)}return n?i:null}(e,t,i.fieldInfos);if(!o)return;const l=i.clone();return l.fieldInfos=o,l}function p(e,t){const{name:i,alias:r,fieldFormat:n}=t,a=e.fieldsIndex.get(i);if(!a||!r&&!n)return;const u=r||a.alias,d=(0,s.qH)(a)&&n?(0,s.PK)(n,a):null;return new l.A({fieldName:a.name,label:u,format:d,visible:!1,isEditable:(0,o.R$)(a,e)})}},65494(e,t,i){i.d(t,{L:()=>a,r:()=>o});var r=i(90360),n=i(41214),s=i(59923);function o(e,t){return a(e,null,t)}const l=(0,r.C)({types:n.Hg});function a(e,t,i){return e?e&&(e.styleName||e.styleUrl)&&"uniqueValue"!==e.type?((0,s.Yc)(i,"warning","renderer",`Only UniqueValueRenderer can be referenced from a web style, but found '${e.type}'`,{definition:e}),null):l(e,t,i):null}}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1017],{80200(e,t,i){i.d(t,{T:()=>r,d:()=>p});const r={Base64:0,Hex:1,String:2,Raw:3};function n(e,t){const i=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(i>>16)<<16|65535&i}function s(e,t,i,r,s,o){return n(function(e,t){return e<<t|e>>>32-t}(n(n(t,e),n(r,o)),s),i)}function o(e,t,i,r,n,o,l){return s(t&i|~t&r,e,t,n,o,l)}function l(e,t,i,r,n,o,l){return s(t&r|i&~r,e,t,n,o,l)}function a(e,t,i,r,n,o,l){return s(t^i^r,e,t,n,o,l)}function u(e,t,i,r,n,o,l){return s(i^(t|~r),e,t,n,o,l)}function d(e,t){e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;let i=1732584193,r=-271733879,s=-1732584194,d=271733878;for(let t=0;t<e.length;t+=16){const p=i,c=r,f=s,g=d;i=o(i,r,s,d,e[t],7,-680876936),d=o(d,i,r,s,e[t+1],12,-389564586),s=o(s,d,i,r,e[t+2],17,606105819),r=o(r,s,d,i,e[t+3],22,-1044525330),i=o(i,r,s,d,e[t+4],7,-176418897),d=o(d,i,r,s,e[t+5],12,1200080426),s=o(s,d,i,r,e[t+6],17,-1473231341),r=o(r,s,d,i,e[t+7],22,-45705983),i=o(i,r,s,d,e[t+8],7,1770035416),d=o(d,i,r,s,e[t+9],12,-1958414417),s=o(s,d,i,r,e[t+10],17,-42063),r=o(r,s,d,i,e[t+11],22,-1990404162),i=o(i,r,s,d,e[t+12],7,1804603682),d=o(d,i,r,s,e[t+13],12,-40341101),s=o(s,d,i,r,e[t+14],17,-1502002290),r=o(r,s,d,i,e[t+15],22,1236535329),i=l(i,r,s,d,e[t+1],5,-165796510),d=l(d,i,r,s,e[t+6],9,-1069501632),s=l(s,d,i,r,e[t+11],14,643717713),r=l(r,s,d,i,e[t],20,-373897302),i=l(i,r,s,d,e[t+5],5,-701558691),d=l(d,i,r,s,e[t+10],9,38016083),s=l(s,d,i,r,e[t+15],14,-660478335),r=l(r,s,d,i,e[t+4],20,-405537848),i=l(i,r,s,d,e[t+9],5,568446438),d=l(d,i,r,s,e[t+14],9,-1019803690),s=l(s,d,i,r,e[t+3],14,-187363961),r=l(r,s,d,i,e[t+8],20,1163531501),i=l(i,r,s,d,e[t+13],5,-1444681467),d=l(d,i,r,s,e[t+2],9,-51403784),s=l(s,d,i,r,e[t+7],14,1735328473),r=l(r,s,d,i,e[t+12],20,-1926607734),i=a(i,r,s,d,e[t+5],4,-378558),d=a(d,i,r,s,e[t+8],11,-2022574463),s=a(s,d,i,r,e[t+11],16,1839030562),r=a(r,s,d,i,e[t+14],23,-35309556),i=a(i,r,s,d,e[t+1],4,-1530992060),d=a(d,i,r,s,e[t+4],11,1272893353),s=a(s,d,i,r,e[t+7],16,-155497632),r=a(r,s,d,i,e[t+10],23,-1094730640),i=a(i,r,s,d,e[t+13],4,681279174),d=a(d,i,r,s,e[t],11,-358537222),s=a(s,d,i,r,e[t+3],16,-722521979),r=a(r,s,d,i,e[t+6],23,76029189),i=a(i,r,s,d,e[t+9],4,-640364487),d=a(d,i,r,s,e[t+12],11,-421815835),s=a(s,d,i,r,e[t+15],16,530742520),r=a(r,s,d,i,e[t+2],23,-995338651),i=u(i,r,s,d,e[t],6,-198630844),d=u(d,i,r,s,e[t+7],10,1126891415),s=u(s,d,i,r,e[t+14],15,-1416354905),r=u(r,s,d,i,e[t+5],21,-57434055),i=u(i,r,s,d,e[t+12],6,1700485571),d=u(d,i,r,s,e[t+3],10,-1894986606),s=u(s,d,i,r,e[t+10],15,-1051523),r=u(r,s,d,i,e[t+1],21,-2054922799),i=u(i,r,s,d,e[t+8],6,1873313359),d=u(d,i,r,s,e[t+15],10,-30611744),s=u(s,d,i,r,e[t+6],15,-1560198380),r=u(r,s,d,i,e[t+13],21,1309151649),i=u(i,r,s,d,e[t+4],6,-145523070),d=u(d,i,r,s,e[t+11],10,-1120210379),s=u(s,d,i,r,e[t+2],15,718787259),r=u(r,s,d,i,e[t+9],21,-343485551),i=n(i,p),r=n(r,c),s=n(s,f),d=n(d,g)}return[i,r,s,d]}function p(e,t=r.Hex){const i=t||r.Base64,n=d(function(e){const t=[];for(let i=0,r=8*e.length;i<r;i+=8)t[i>>5]|=(255&e.charCodeAt(i/8))<<i%32;return t}(e),8*e.length);switch(i){case r.Raw:return n;case r.Hex:return function(e){const t="0123456789abcdef",i=[];for(let r=0,n=4*e.length;r<n;r++)i.push(t.charAt(e[r>>2]>>r%4*8+4&15)+t.charAt(e[r>>2]>>r%4*8&15));return i.join("")}(n);case r.String:return function(e){const t=[];for(let i=0,r=32*e.length;i<r;i+=8)t.push(String.fromCharCode(e[i>>5]>>>i%32&255));return t.join("")}(n);case r.Base64:return function(e){const t=[];for(let i=0,r=4*e.length;i<r;i+=3){const r=(e[i>>2]>>i%4*8&255)<<16|(e[i+1>>2]>>(i+1)%4*8&255)<<8|e[i+2>>2]>>(i+2)%4*8&255;for(let n=0;n<4;n++)8*i+6*n>32*e.length?t.push("="):t.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(r>>6*(3-n)&63))}return t.join("")}(n)}}},87718(e,t,i){i.d(t,{F:()=>_,Y:()=>S});var r,n=i(5482),s=i(91429),o=i(49186),l=i(25482),a=i(93637),u=i(76369),d=i(66552),p=i(4718),c=i(50498),f=i(61956),g=i(79677);const y=new d.J({esriSpatialRelIntersects:"intersects",esriSpatialRelContains:"contains",esriSpatialRelCrosses:"crosses",esriSpatialRelDisjoint:"disjoint",esriSpatialRelEnvelopeIntersects:"envelope-intersects",esriSpatialRelIndexIntersects:"index-intersects",esriSpatialRelOverlaps:"overlaps",esriSpatialRelTouches:"touches",esriSpatialRelWithin:"within",esriSpatialRelRelation:"relation"}),h=new d.J({esriSRUnit_Meter:"meters",esriSRUnit_Kilometer:"kilometers",esriSRUnit_Foot:"feet",esriSRUnit_StatuteMile:"miles",esriSRUnit_NauticalMile:"nautical-miles",esriSRUnit_USNauticalMile:"us-nautical-miles"});let w=r=class extends l.o{constructor(e){super(e),this.where=null,this.geometry=null,this.spatialRelationship="intersects",this.distance=void 0,this.objectIds=null,this.units=null,this.timeExtent=null}createQuery(e={}){const{where:t,geometry:i,spatialRelationship:r,timeExtent:n,objectIds:s,units:o,distance:l}=this;return new f.A({geometry:(0,p.o8)(i),objectIds:(0,p.o8)(s),spatialRelationship:r,timeExtent:(0,p.o8)(n),where:t,units:o,distance:l,...e})}clone(){const{where:e,geometry:t,spatialRelationship:i,timeExtent:n,objectIds:s,units:o,distance:l}=this;return new r({geometry:(0,p.o8)(t),objectIds:(0,p.o8)(s),spatialRelationship:i,timeExtent:(0,p.o8)(n),where:e,units:o,distance:l})}};(0,n.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],w.prototype,"where",void 0),(0,n.Cg)([(0,s.MZ)({types:c.yR,json:{write:!0}})],w.prototype,"geometry",void 0),(0,n.Cg)([(0,s.MZ)({type:y.apiValues,json:{name:"spatialRel",read:{reader:y.read},write:{allowNull:!1,writer:y.write,overridePolicy(){return{enabled:null!=this.geometry}}}}})],w.prototype,"spatialRelationship",void 0),(0,n.Cg)([(0,s.MZ)({type:Number,json:{write:{overridePolicy(e){return{enabled:null!=e&&null!=this.geometry}}}}})],w.prototype,"distance",void 0),(0,n.Cg)([(0,s.MZ)({type:[Number],json:{write:!0}})],w.prototype,"objectIds",void 0),(0,n.Cg)([(0,s.MZ)({type:h.apiValues,json:{read:h.read,write:{writer:h.write,overridePolicy(e){return{enabled:null!=e&&null!=this.geometry}}}}})],w.prototype,"units",void 0),(0,n.Cg)([(0,s.MZ)({type:g.A,json:{write:!0}})],w.prototype,"timeExtent",void 0),w=r=(0,n.Cg)([(0,s.$K)("esri.layers.support.FeatureFilter")],w);const v=w;var m;const b={read:{reader:u.LF},write:{writer:u.M9,overridePolicy(){return{allowNull:null!=this.excludedEffect,isRequired:null==this.excludedEffect}}}},C={read:{reader:u.LF},write:{writer:u.M9,overridePolicy(){return{allowNull:null!=this.includedEffect,isRequired:null==this.includedEffect}}}},M={name:"showExcludedLabels",default:!0};let x=m=class extends l.o{constructor(e){super(e),this.filter=null,this.includedEffect=null,this.excludedEffect=null,this.excludedLabelsVisible=!1}write(e,t){const i=super.write(e,t);if(t?.origin){if(i.filter){const e=Object.keys(i.filter);if(e.length>1||"where"!==e[0])return t.messages?.push(new o.A("web-document-write:unsupported-feature-effect","Invalid feature effect 'filter'. A filter can only contain a 'where' property",{layer:t.layer,effect:this})),null}if("showExcludedLabels"in i)return t.messages?.push(new o.A("web-document-write:unsupported-feature-effect","Invalid value for property 'excludedLabelsVisible' which should always be 'true'",{layer:t.layer,effect:this})),null}return i}clone(){return new m({filter:null!=this.filter?this.filter.clone():null,includedEffect:this.includedEffect,excludedEffect:this.excludedEffect,excludedLabelsVisible:this.excludedLabelsVisible})}};(0,n.Cg)([(0,s.MZ)({type:v,json:{write:{allowNull:!0,writer(e,t,i,r){const n=e?.write({},r);n&&0!==Object.keys(n).length?(0,a.sM)(i,n,t):(0,a.sM)(i,null,t)}}}})],x.prototype,"filter",void 0),(0,n.Cg)([(0,s.MZ)({json:{read:u.LF,write:{writer:u.M9,allowNull:!0},origins:{"web-map":b,"portal-item":b}}})],x.prototype,"includedEffect",void 0),(0,n.Cg)([(0,s.MZ)({json:{read:u.LF,write:{writer:u.M9,allowNull:!0},origins:{"web-map":C,"portal-item":C}}})],x.prototype,"excludedEffect",void 0),(0,n.Cg)([(0,s.MZ)({type:Boolean,json:{write:!0,name:"showExcludedLabels",origins:{"web-map":M,"portal-item":M}}})],x.prototype,"excludedLabelsVisible",void 0),x=m=(0,n.Cg)([(0,s.$K)("esri.layers.support.FeatureEffect")],x);const R={write:{allowNull:!0}},S={type:x,json:{origins:{"web-map":R,"portal-item":R}}},_=e=>{const t=e;let i=class extends t{constructor(){super(...arguments),this.featureEffect=null}};return(0,n.Cg)([(0,s.MZ)(S)],i.prototype,"featureEffect",void 0),i=(0,n.Cg)([(0,s.$K)("esri.layers.mixins.FeatureEffectLayer")],i),i}},56658(e,t,i){i.d(t,{J:()=>F});var r=i(5482),n=i(36708),s=i(91429),o=i(60950),l=i(99959);class a extends l.A{constructor(e){super(),this.type="aggregate",this.featureReductionProvider=e}get id(){return this.featureReductionProvider.id}get[o.ym](){const e=this.featureReductionProvider.featureReduction;return e&&"popupTemplate"in e?e:null}}var u=i(50820),d=i(20569),p=i(77548),c=i(96576),f=i(48940),g=i(12330),y=i(49186),h=i(44208),w=i(53966),v=i(80200),m=i(39767),b=i(30943),C=i(53930);h.A.add("esri-cluster-arcade-enabled",!0);const M=(0,h.A)("esri-cluster-arcade-enabled"),x=new Set(["simple-line","simple-fill","picture-fill"]);function R(e,t){let i=t.clone();if(!S(i))return i;if(t.symbols.some(e=>x.has(e.type))&&(i=new c.A({symbol:new C.A})),i.authoringInfo||(i.authoringInfo=new b.A),i.authoringInfo.isAutoGenerated=!0,"visualVariables"in i){const t=(i.visualVariables||[]).filter(e=>"$view.scale"!==e.valueExpression);t.forEach(t=>{"rotation"===t.type?t.field?t.field=E(e,t.field,"avg_angle","number"):t.valueExpression&&(t.field=_(e,t.valueExpression,"avg_angle","number"),t.valueExpression=null):t.normalizationField?(t.field=E(e,t.field,"avg_norm","number",t.normalizationField),t.normalizationField=null):t.field?t.field=E(e,t.field,"avg","number"):t.valueExpression&&(t.field=_(e,t.valueExpression,"avg","number"),t.valueExpression=null)}),i.visualVariables=t}switch(i.type){case"simple":break;case"pie-chart":for(const t of i.attributes)t.field?t.field=E(e,t.field,"sum","number"):t.valueExpression&&(t.field=_(e,t.valueExpression,"sum","number"),t.valueExpression=null);break;case"unique-value":i.field?i.field=E(e,i.field,"mode","string"):i.valueExpression&&(i.field=_(e,i.valueExpression,"mode","string"),i.valueExpression=null);break;case"class-breaks":i.normalizationField?(i.field=E(e,i.field,"avg_norm","number",i.normalizationField),i.normalizationField=null):i.field?i.field=E(e,i.field,"avg","number"):i.valueExpression&&(i.field=_(e,i.valueExpression,"avg","number"),i.valueExpression=null)}return i}const S=e=>{const t=t=>w.A.getLogger("esri.views.2d.layers.support.clusterUtils").error(new y.A("Unsupported-renderer",t,{renderer:e}));if(!e)return!1;switch(e.type){case"unique-value":if(e.field2||e.field3)return t("FeatureReductionCluster does not support multi-field UniqueValueRenderers"),!1;break;case"class-breaks":if(e.normalizationField){const i=e.normalizationType;if("field"!==i)return t(`FeatureReductionCluster does not support a normalizationType of ${i}`),!1}break;case"simple":case"pie-chart":break;default:return t(`FeatureReductionCluster does not support renderers of type ${e.type}`),!1}if(!M){if("valueExpression"in e&&e.valueExpression)return t("FeatureReductionCluster does not currently support renderer.valueExpression. Support will be added in a future release"),!1;if(("visualVariables"in e&&e.visualVariables||[]).some(e=>!(!("valueExpression"in e)||!e.valueExpression)))return t("FeatureReductionCluster does not currently support visualVariables with a valueExpression. Support will be added in a future release"),!1}return!0};function _(e,t,i,r){const n=(0,v.d)(t),s="mode"===i?`cluster_type_${n}`:"sum"===i?`cluster_sum_${n}`:`cluster_avg_${n}`;return e.some(e=>e.name===s)||e.push(new u.A({name:s,isAutoGenerated:!0,onStatisticExpression:new m.A({expression:t,returnType:r}),statisticType:i})),s}function E(e,t,i,r,n){if("cluster_count"===t||e.some(e=>e.name===t))return t;const s=function(e,t,i){switch(e){case"sum":return`cluster_sum_${t}`;case"avg":case"avg_angle":return`cluster_avg_${t}`;case"mode":return`cluster_type_${t}`;case"avg_norm":{const e=i,r="field",n=t.toLowerCase()+",norm:"+r+","+e.toLowerCase();return"cluster_avg_"+(0,v.d)(n)}}}(i,t,n);return e.some(e=>e.name===s)||("avg_norm"===i?e.push(new u.A({name:s,isAutoGenerated:!0,onStatisticExpression:new m.A({expression:`$feature.${t} / $feature.${n}`,returnType:r}),statisticType:"avg"})):e.push(new u.A({name:s,isAutoGenerated:!0,onStatisticField:t,statisticType:i}))),s}const F=e=>{const t=e;let i=class extends t{constructor(...e){super(...e),this.aggregateGraphicOrigin=new a(this),this.addHandles([(0,n.wB)(()=>this.renderer,()=>{this.featureReduction&&this._setFeatureReduction(this.featureReduction)},n.OH),(0,n.wB)(()=>[this.loaded],()=>{this.loaded&&this._setLayerReference(this.featureReduction,this)})])}set featureReduction(e){this._setFeatureReduction(e)}set renderer(e){}_withClusterVariable(e,t,i){const r=e.clone();return"visualVariables"in r&&(r.visualVariables||(r.visualVariables=[]),r.visualVariables.some(e=>"size"===e.type)||r.visualVariables.push(new f.A({field:"cluster_count",stops:[new g.A({value:1}),new g.A({useMinValue:!0,size:t}),new g.A({useMaxValue:!0,size:i})]}))),r}_normalizeFeatureReduction(e){if("cluster"!==e?.type)return e;const t=e.clone(),i=[new u.A({name:"cluster_count",alias:"cluster_count",isAutoGenerated:!0,statisticType:"count"})],r=(t.fields??[]).filter(e=>!e.isAutoGenerated),n=e.renderer&&!e.renderer.authoringInfo?.isAutoGenerated,{clusterMinSize:s,clusterMaxSize:o}=t;if(n){t.fields=[...i,...r];const e=this._withClusterVariable(t.renderer,s,o);return t.effectiveFeatureRenderer=e,t.effectiveClusterRenderer=e,t}if(e.symbol){if(t.fields=[...i,...r],t.renderer=null,!this.renderer)return t.effectiveFeatureRenderer=null,t.effectiveClusterRenderer=null,t;const n=R(i,this.renderer),l=this._withClusterVariable(n,s,o),a="visualVariables"in l&&l.visualVariables?l.visualVariables:[],u=new c.A({symbol:e.symbol,visualVariables:a});return t.fields=[...i,...r],t.effectiveFeatureRenderer=l,t.effectiveClusterRenderer=u,t}if(!this.renderer)return e;const l=R(i,this.renderer);t.fields=[...i,...r],t.renderer=l;const a=this._withClusterVariable(l,s,o);return t.effectiveFeatureRenderer=a,t.effectiveClusterRenderer=a,t}_setFeatureReduction(e){const t=this._get("featureReduction");this._setLayerReference(t,null);const i=this._normalizeFeatureReduction(e);this._setLayerReference(i,this),this._set("featureReduction",i)}_setLayerReference(e,t){e&&"layer"in e&&(e.layer=(0,p.jy)(t)?t:null)}};return(0,r.Cg)([(0,s.MZ)({readOnly:!0,clonable:!1})],i.prototype,"aggregateGraphicOrigin",void 0),(0,r.Cg)([(0,s.MZ)(d.d)],i.prototype,"featureReduction",null),i=(0,r.Cg)([(0,s.$K)("esri.layers.mixins.FeatureReductionLayer")],i),i}},50820(e,t,i){i.d(t,{A:()=>d});var r,n=i(5482),s=i(25482),o=i(4718),l=i(91429),a=i(39767),u=i(30524);let d=class extends s.o{static{r=this}constructor(e){super(e),this.isAutoGenerated=!1,this.name=null,this.alias=null,this.onStatisticField=null,this.onStatisticExpression=null,this.statisticType=null}get type(){return this.layer?(0,u.e7)(this,this.layer.fieldsIndex):null}clone(){return new r({name:this.name,alias:this.alias,isAutoGenerated:this.isAutoGenerated,onStatisticExpression:(0,o.o8)(this.onStatisticExpression),onStatisticField:this.onStatisticField,statisticType:this.statisticType})}};(0,n.Cg)([(0,l.MZ)({type:Boolean,json:{write:!0}})],d.prototype,"isAutoGenerated",void 0),(0,n.Cg)([(0,l.MZ)({clonable:!1})],d.prototype,"layer",void 0),(0,n.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],d.prototype,"name",void 0),(0,n.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],d.prototype,"alias",void 0),(0,n.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],d.prototype,"onStatisticField",void 0),(0,n.Cg)([(0,l.MZ)({type:a.A,json:{write:!0}})],d.prototype,"onStatisticExpression",void 0),(0,n.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],d.prototype,"statisticType",void 0),(0,n.Cg)([(0,l.MZ)({readOnly:!0,clonable:!1,json:{read:!1}})],d.prototype,"type",null),d=r=(0,n.Cg)([(0,l.$K)("esri.layers.support.AggregateField")],d)},39767(e,t,i){i.d(t,{A:()=>l});var r=i(5482),n=i(69540),s=i(25482),o=i(91429);let l=class extends((0,n.OU)(s.o)){constructor(e){super(e),this.expression=null,this.title=null,this.returnType=null}};(0,r.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],l.prototype,"expression",void 0),(0,r.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],l.prototype,"title",void 0),(0,r.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],l.prototype,"returnType",void 0),l=(0,r.Cg)([(0,o.$K)("esri.layers.support.ExpressionInfo")],l)},67202(e,t,i){i.d(t,{A:()=>l});var r,n=i(5482),s=i(25482),o=i(91429);let l=r=class extends s.o{constructor(e){super(e),this.type="selection"}clone(){return new r}};(0,n.Cg)([(0,o.MZ)({type:["selection"],readOnly:!0,json:{write:!0}})],l.prototype,"type",void 0),l=r=(0,n.Cg)([(0,o.$K)("esri.layers.support.FeatureReductionSelection")],l)},20569(e,t,i){i.d(t,{d:()=>K});var r=i(89317),n=i(5482),s=i(69540),o=i(25482),l=i(4718),a=i(90629),u=i(91429),d=i(56507),p=i(15426),c=i(37838),f=i(93637),g=i(50820),y=i(30524);class h{constructor(e){this._fieldsMap=new Map,this._normalizedFieldsMap=new Map,this.fields=e;const t=[];for(const e of this.fields){const i=e?.name,r=(0,y.GZ)(i);if(i&&r){const n=(0,y.NF)(i);this._fieldsMap.set(i,e),this._fieldsMap.set(n,e),this._normalizedFieldsMap.set(r,e),t.push(`${n}:${e.type||""}`)}}t.sort(),this.uid=t.join()}equals(e){return this.uid===e?.uid}get(e){return(0,y.Vb)({fieldName:e,fieldsMap:this._fieldsMap,normalizedFieldsMap:this._normalizedFieldsMap})}}var w=i(10873),v=i(30279),m=i(16194),b=i(46499),C=i(77548),M=i(41214);function x(){return{type:[v.A],clonable:!1,json:{name:"fieldConfigurations",write:{overridePolicy(e){return{enabled:(0,C.jy)(this.layer),ignoreOrigin:!0}}}},set:function(e){if(this._override("fieldConfigurations",e),!this.layer?.loaded)return;const t=(0,m.sS)(this,e);t&&this._set("popupTemplate",t)},get:function(){return this._isOverridden("fieldConfigurations")?this._get("fieldConfigurations"):this.layer?.loaded?(0,m.QX)(this)||null:void 0}}}function R(){return{type:[g.A],value:[],json:{write:{ignoreOrigin:!0,writer(e,t,i){const r=e.filter(e=>"avg_angle"!==e.statisticType).map(e=>e.toJSON());(0,f.sM)(i,r,t)}}},set:function(e){V(this._get("fields"),null),V(e,this.layer),this._set("fields",e)}}}function S(){return{readOnly:!0,get:function(){return new h(this.fields)}}}function _(){return{type:[b.A],json:{read:{source:"drawingInfo.labelingInfo"},write:{target:"drawingInfo.labelingInfo",ignoreOrigin:!0}}}}function E(){return O((0,l.o8)(w.kF))}function F(){return{clonable:!1,set:function(e){V(this.fields,e),this._set("layer",e)}}}function j(){return{type:Number,json:{default:0,name:"visibilityInfo.maxScale",write:{ignoreOrigin:!0}}}}function A(){return O((0,l.o8)(w.M6))}function Z(){return{type:c.A,json:{name:"popupInfo",write:{ignoreOrigin:!0,writer(e,t,i,r){e&&(t[i]=e.toJSON({...r,writeFieldFormat:(0,C.jy)(this.layer)}))}}}}}function I(){return{types:M.Hg,json:{write:{target:"drawingInfo.renderer",ignoreOrigin:!0}}}}function V(e,t){e?.forEach(e=>{e.layer=t})}function O(e){let t=e.json;t||(t=e.json={});let i=t.write;return null!=i&&"object"==typeof i||(i=t.write={}),i.ignoreOrigin=!0,e}var z=i(65494),L=i(93223),T=i(36005);let $=class extends((0,o.T)(s.Pw)){constructor(e){super(e),this.type="binning",this.binType="geohash",this.fixedBinLevel=null,this.labelingInfo=null,this.labelsVisible=!0,this.maxScale=0,this.popupEnabled=!0,this.popupTemplate=null,this.size=(0,a.cr)("12px"),this.fields=[],this.renderer=null}readRenderer(e,t,i){const r=t.drawingInfo?.renderer;return r?(0,z.L)(r,t,i)??void 0:(0,p.PD)(t,i)}clone(){const e=super.clone();return this._isOverridden("fieldConfigurations")&&(e.fieldConfigurations=(0,l.o8)(this.fieldConfigurations)),e}getField(e){return this.fieldsIndex.get(e)}getFieldAlias(e){const t=this.getField(e);if(t)return this.getFieldConfiguration(t.name)?.alias||t.alias}getFieldConfiguration(e){return e=e.toLowerCase(),this.fieldConfigurations?.find(t=>t.name.toLowerCase()===e)}};(0,n.Cg)([(0,u.MZ)({type:["binning"],readOnly:!0,json:{read:!1,write:{ignoreOrigin:!0}}})],$.prototype,"type",void 0),(0,n.Cg)([(0,L.e)({geohash:"geohash",square:"square"}),(0,u.MZ)({type:["geohash","square"],json:{write:{ignoreOrigin:!0}}})],$.prototype,"binType",void 0),(0,n.Cg)([(0,u.MZ)({type:Number,json:{write:{ignoreOrigin:!0}}})],$.prototype,"fixedBinLevel",void 0),(0,n.Cg)([(0,u.MZ)(_())],$.prototype,"labelingInfo",void 0),(0,n.Cg)([(0,u.MZ)(E())],$.prototype,"labelsVisible",void 0),(0,n.Cg)([(0,u.MZ)(F())],$.prototype,"layer",void 0),(0,n.Cg)([(0,u.MZ)(j())],$.prototype,"maxScale",void 0),(0,n.Cg)([(0,u.MZ)(A())],$.prototype,"popupEnabled",void 0),(0,n.Cg)([(0,u.MZ)(Z())],$.prototype,"popupTemplate",void 0),(0,n.Cg)([(0,u.MZ)({cast:e=>"auto"===e?e:(0,d.GB)((0,a.cr)(e))})],$.prototype,"size",void 0),(0,n.Cg)([(0,u.MZ)(x())],$.prototype,"fieldConfigurations",void 0),(0,n.Cg)([(0,u.MZ)(R())],$.prototype,"fields",void 0),(0,n.Cg)([(0,u.MZ)(S())],$.prototype,"fieldsIndex",void 0),(0,n.Cg)([(0,u.MZ)(I())],$.prototype,"renderer",void 0),(0,n.Cg)([(0,T.w)("renderer",["drawingInfo.renderer"])],$.prototype,"readRenderer",null),$=(0,n.Cg)([(0,u.$K)("esri.layers.support.FeatureReductionBinning")],$);var N=i(96576),G=i(33910),k=i(43937);function P(e){return"simple"===e.type&&!e.visualVariables?.length}let U=class extends((0,o.T)(s.Pw)){constructor(e){super(e),this.type="cluster",this.maxScale=0,this.popupEnabled=!0,this.popupTemplate=null,this.renderer=null,this.symbol=null,this.labelingInfo=null,this.labelsVisible=!0,this.fields=[]}get clusterRadius(){return this._get("clusterRadius")??(0,a.cr)("80px")}set clusterRadius(e){this._set("clusterRadius",e)}get clusterMinSize(){return this._get("clusterMinSize")??(0,a.cr)("12px")}set clusterMinSize(e){this._set("clusterMinSize",e)}get clusterMaxSize(){return this._get("clusterMaxSize")??(0,a.cr)("50px")}set clusterMaxSize(e){this._set("clusterMaxSize",e)}readRenderer(e,t,i){const r=t.drawingInfo?.renderer;return r?.authoringInfo?.isAutoGenerated?null:r?P(r)?null:(0,z.L)(r,t,i)??void 0:(0,p.PD)(t,i)}readSymbol(e,t,i){const r=t.drawingInfo?.renderer;if(r?.authoringInfo?.isAutoGenerated)return null;if(r&&P(r)){const e=(0,z.L)(r,t,i);return e?.symbol}return null}writeSymbol(e,t,i,r){const n=this.renderer?.authoringInfo?.isAutoGenerated;if(!this.renderer||n){const i=new N.A({symbol:e});t.drawingInfo={renderer:i.write({},r)}}}readFields(e,t,i){return e.filter(e=>!e.isAutoGenerated).map(e=>g.A.fromJSON(e))}clone(){const e=super.clone();return this._isOverridden("fieldConfigurations")&&(e.fieldConfigurations=(0,l.o8)(this.fieldConfigurations)),e}getField(e){return this.fieldsIndex.get(e)}getFieldAlias(e){const t=this.getField(e);if(t)return this.getFieldConfiguration(t.name)?.alias||t.alias}getFieldConfiguration(e){return e=e.toLowerCase(),this.fieldConfigurations?.find(t=>t.name.toLowerCase()===e)}};(0,n.Cg)([(0,u.MZ)({type:["cluster"],readOnly:!0,json:{read:!1,write:{ignoreOrigin:!0}}})],U.prototype,"type",void 0),(0,n.Cg)([(0,u.MZ)({cast:e=>"auto"===e?e:(0,d.GB)((0,a.cr)(e)),json:{write:{ignoreOrigin:!0}}})],U.prototype,"clusterRadius",null),(0,n.Cg)([(0,u.MZ)({type:Number,cast:a.cr,json:{write:{ignoreOrigin:!0}}})],U.prototype,"clusterMinSize",null),(0,n.Cg)([(0,u.MZ)({type:Number,cast:a.cr,json:{write:{ignoreOrigin:!0}}})],U.prototype,"clusterMaxSize",null),(0,n.Cg)([(0,u.MZ)(j())],U.prototype,"maxScale",void 0),(0,n.Cg)([(0,u.MZ)(A())],U.prototype,"popupEnabled",void 0),(0,n.Cg)([(0,u.MZ)(Z())],U.prototype,"popupTemplate",void 0),(0,n.Cg)([(0,u.MZ)(I())],U.prototype,"renderer",void 0),(0,n.Cg)([(0,T.w)("renderer",["drawingInfo.renderer"])],U.prototype,"readRenderer",null),(0,n.Cg)([(0,u.MZ)({types:G.q8,json:{write:{ignoreOrigin:!0}}})],U.prototype,"symbol",void 0),(0,n.Cg)([(0,T.w)("symbol",["drawingInfo.renderer"])],U.prototype,"readSymbol",null),(0,n.Cg)([(0,k.K)("symbol")],U.prototype,"writeSymbol",null),(0,n.Cg)([(0,u.MZ)(_())],U.prototype,"labelingInfo",void 0),(0,n.Cg)([(0,u.MZ)(E())],U.prototype,"labelsVisible",void 0),(0,n.Cg)([(0,u.MZ)(F())],U.prototype,"layer",void 0),(0,n.Cg)([(0,u.MZ)(x())],U.prototype,"fieldConfigurations",void 0),(0,n.Cg)([(0,u.MZ)(R())],U.prototype,"fields",void 0),(0,n.Cg)([(0,T.w)("fields")],U.prototype,"readFields",null),(0,n.Cg)([(0,u.MZ)(S())],U.prototype,"fieldsIndex",void 0),U=(0,n.Cg)([(0,u.$K)("esri.layers.support.FeatureReductionCluster")],U);var q=i(67202);const B={key:"type",base:null,typeMap:{cluster:U,binning:$}},K={types:{key:"type",base:null,typeMap:{selection:q.A,cluster:U,binning:$}},json:{name:"layerDefinition.featureReduction",write:{allowNull:!0},origins:{"web-map":{types:B},"portal-item":{types:B},"web-scene":{types:{key:"type",base:null,typeMap:{selection:q.A}},name:"layerDefinition.featureReduction",write:{allowNull:!0,layerContainerTypes:r.K}}}}}},65494(e,t,i){i.d(t,{L:()=>a,r:()=>o});var r=i(90360),n=i(41214),s=i(59923);function o(e,t){return a(e,null,t)}const l=(0,r.C)({types:n.Hg});function a(e,t,i){return e?e&&(e.styleName||e.styleUrl)&&"uniqueValue"!==e.type?((0,s.Yc)(i,"warning","renderer",`Only UniqueValueRenderer can be referenced from a web style, but found '${e.type}'`,{definition:e}),null):l(e,t,i):null}}}]);
|