@arcgis/core 4.34.0-next.66 → 4.34.0-next.67
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/WebDocument2D.js +1 -1
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/{09dd8613bc03e7a3a4cb.js → 0814676e4bac81f96140.js} +1 -1
- package/assets/esri/core/workers/chunks/{44031bef6d500167ef0b.js → 09dbb3e200ef8d514eb3.js} +1 -1
- package/assets/esri/core/workers/chunks/0b71100fa1e7ca706dbb.js +1 -0
- package/assets/esri/core/workers/chunks/{3167230555c63f943485.js → 0cbd5335cc92f5891bcf.js} +1 -1
- package/assets/esri/core/workers/chunks/{16fe21ca9b24eaee3069.js → 144bfd64daf103a06734.js} +1 -1
- package/assets/esri/core/workers/chunks/{c20aead85cdea91c4b74.js → 170ec7fb070c63230c81.js} +1 -1
- package/assets/esri/core/workers/chunks/{af1030e4c4437d4eb600.js → 1ada9e6cdd6792e3847a.js} +1 -1
- package/assets/esri/core/workers/chunks/1e86df439c564fe752e3.js +1 -0
- package/assets/esri/core/workers/chunks/{4459c8e495a37d4c4eb8.js → 25118304c9a914194e90.js} +1 -1
- package/assets/esri/core/workers/chunks/{d823277612f971a9c2f0.js → 3245663da75e168bf85c.js} +1 -1
- package/assets/esri/core/workers/chunks/37d7c249114994a7dfac.js +1 -0
- package/assets/esri/core/workers/chunks/{1c7b5ca80e80c314f78d.js → 39d69afc9da9db0c75ab.js} +1 -1
- package/assets/esri/core/workers/chunks/{dbcef57073075e9cfdfe.js → 489fa17e60f25d5f33ae.js} +1 -1
- package/assets/esri/core/workers/chunks/{19e5e011f929b6b940fe.js → 4bc091770bab38874848.js} +1 -1
- package/assets/esri/core/workers/chunks/{09f0c9f0b6aa58ae3c52.js → 4f22e5a7f81883e8e5b6.js} +1 -1
- package/assets/esri/core/workers/chunks/{7a17e78c76076ed4476f.js → 5185c63fecc5f493e142.js} +1 -1
- package/assets/esri/core/workers/chunks/{6fff219dfaa86167c326.js → 5303d77a3ab1b7ddeef3.js} +1 -1
- package/assets/esri/core/workers/chunks/{22ec2b0a853911692dc8.js → 5993427325d1add18ed9.js} +1 -1
- package/assets/esri/core/workers/chunks/{9e3f8c06b4e090a35710.js → 5b84eba4a28e25b6d5c0.js} +1 -1
- package/assets/esri/core/workers/chunks/{497214e9e82b936fc94e.js → 5ed381a268855bcad072.js} +1 -1
- package/assets/esri/core/workers/chunks/{33718ea851645d9078d1.js → 605acf18cbeb89e4f29f.js} +1 -1
- package/assets/esri/core/workers/chunks/{4d7fcec769369c576847.js → 6e59ba2afd444eb4be18.js} +1 -1
- package/assets/esri/core/workers/chunks/{a700f57af6856cb5313c.js → 70dc7ec6474f0801bc04.js} +1 -1
- package/assets/esri/core/workers/chunks/{60920d4856a011ace7e2.js → 80b0c88a76bd523a406a.js} +1 -1
- package/assets/esri/core/workers/chunks/{117eb1422e9795d37ea3.js → 837830e1cf712d4243a5.js} +1 -1
- package/assets/esri/core/workers/chunks/{ad7aa7d09bfceb12609e.js → 87fb5d755860057da164.js} +1 -1
- package/assets/esri/core/workers/chunks/{481aea82501d04667ba2.js → 8a104b35708a492bd614.js} +1 -1
- package/assets/esri/core/workers/chunks/{5cb238318a24b70d5ac3.js → 8bc8caa384b24af12411.js} +1 -1
- package/assets/esri/core/workers/chunks/{dcad3dcbd4ea2f5a6a04.js → 8e2558b14be70b273ce4.js} +1 -1
- package/assets/esri/core/workers/chunks/{8e40c409a9b0a2a768a9.js → 8f02349602b072186a1f.js} +1 -1
- package/assets/esri/core/workers/chunks/{fa0f94318173db2034de.js → 90491262b6d6a126c32f.js} +1 -1
- package/assets/esri/core/workers/chunks/{0952aeddddc16705b7a3.js → 99f133a152afb4f1b067.js} +1 -1
- package/assets/esri/core/workers/chunks/{8e3c09c3524654830b14.js → a634764dec5404f4a1d7.js} +1 -1
- package/assets/esri/core/workers/chunks/a895da7fd64ebad3d5a4.js +1 -0
- package/assets/esri/core/workers/chunks/{31e7358fe802abb3f8db.js → aa970a547c60c43d6c7f.js} +1 -1
- package/assets/esri/core/workers/chunks/{9a6d359ead62a8eadd3c.js → ab727ed4417b7dd94ce9.js} +1 -1
- package/assets/esri/core/workers/chunks/{707311e24b2f458d9209.js → ad3ebd4f05cc673140f3.js} +1 -1
- package/assets/esri/core/workers/chunks/{05016b0713ef760fc57d.js → b052d3ef5493eedb44a5.js} +1 -1
- package/assets/esri/core/workers/chunks/b335e96f6bcac6d2f0ee.js +1 -0
- package/assets/esri/core/workers/chunks/{dd1d9913b33d4e48baff.js → c35dad3d5ceaac6ad5a4.js} +1 -1
- package/assets/esri/core/workers/chunks/{e1b573840ec1f7c3afd3.js → c4b2678dd46fa1e22f7e.js} +1 -1
- package/assets/esri/core/workers/chunks/{bc931865a77fc48871d3.js → c94c797864a85342b105.js} +1 -1
- package/assets/esri/core/workers/chunks/{e97250ae8da4bd0d6bc9.js → cad03967e132a28512c2.js} +1 -1
- package/assets/esri/core/workers/chunks/{c7a386ac90e58eb71935.js → da1a5537e2f2ca6cc247.js} +1 -1
- package/assets/esri/core/workers/chunks/dd447dfc50ee7f511b84.js +1 -0
- package/assets/esri/core/workers/chunks/{0f9813e7d4e2b47b2c39.js → e47acdb1fbf797342716.js} +1 -1
- package/assets/esri/core/workers/chunks/{a16b471c3706ee37f9b6.js → e6f2ac738df16fb5e13a.js} +1 -1
- package/assets/esri/core/workers/chunks/{f5101f5f93f776a6456f.js → ed1272e7681e561d843f.js} +1 -1
- package/assets/esri/core/workers/chunks/{66ffefd46fe6175c2af4.js → efea3e82cec476d486e0.js} +1 -1
- package/assets/esri/core/workers/chunks/{ff2614d96ca5228e9685.js → f4d4c1f13522f20b00d1.js} +1 -1
- package/assets/esri/core/workers/chunks/{4be2bab8ff3bd14ffdfb.js → f9385d7fb5ff20f7b252.js} +1 -1
- package/assets/esri/core/workers/chunks/{b30de4936caa654d7817.js → fac020b6886ff2d75015.js} +1 -1
- package/assets/esri/core/workers/chunks/fe353a53968827bcd9cc.js +1 -0
- package/chunks/GlowComposition.glsl.js +5 -5
- package/chunks/RibbonLine.glsl.js +2 -2
- package/config.js +1 -1
- package/interfaces.d.ts +66 -193
- package/kernel.js +1 -1
- package/layers/GaussianSplatLayer.js +1 -1
- package/layers/Layer.js +1 -1
- package/layers/MapImageLayer.js +1 -1
- package/layers/OrientedImageryLayer.js +1 -1
- package/layers/VoxelLayer.js +1 -1
- package/layers/graphics/controllers/FeatureTileController3D.js +1 -1
- package/layers/graphics/sources/FeatureLayerSource.js +1 -1
- package/layers/mixins/ArcGISImageService.js +1 -1
- package/layers/mixins/ImageryTileMixin.js +1 -1
- package/layers/mixins/OperationalLayer.js +1 -1
- package/layers/mixins/TemporalLayer.js +1 -1
- package/layers/mixins/TemporalSceneLayer.js +1 -1
- package/layers/mixins/operationalLayers.js +1 -1
- package/layers/support/FeatureFilter.js +1 -1
- package/layers/support/TimeInfo.js +1 -1
- package/layers/support/TrackInfo.js +1 -1
- package/layers/support/layersCreator.js +1 -1
- package/package.json +2 -2
- package/portal/schemas/definitions.js +1 -1
- package/portal/support/portalLayers.js +1 -1
- package/rest/support/AttributeBinsQuery.js +1 -1
- package/rest/support/IdentifyParameters.js +1 -1
- package/rest/support/ImageGPSInfoParameters.js +1 -1
- package/rest/support/ImageHistogramParameters.js +1 -1
- package/rest/support/ImageIdentifyParameters.js +1 -1
- package/rest/support/ImageParameters.js +1 -1
- package/rest/support/ImageSampleParameters.js +1 -1
- package/rest/support/Query.js +1 -1
- package/rest/support/TopFeaturesQuery.js +1 -1
- package/support/revision.js +1 -1
- package/support/timeUtils.js +1 -1
- package/time/TimeExtent.js +1 -1
- package/time/TimeInterval.js +1 -1
- package/views/2d/analysis/ElevationProfileAnalysisView2D.js +1 -1
- package/views/2d/engine/webgl/Painter.js +1 -1
- package/views/2d/engine/webgl/effects/FeatureEffect.js +1 -1
- package/views/2d/engine/webgl/effects/post-processing/EffectManager.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/TestTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/TextureStatisticsTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/bloom/BloomTechnique.js +5 -0
- package/views/2d/engine/webgl/shaderGraph/techniques/blur/BlurTechnique.js +5 -0
- package/views/2d/engine/webgl/shaderGraph/techniques/colorize/ColorizeTechnique.js +5 -0
- package/views/2d/engine/webgl/shaderGraph/techniques/dotDensity/DotDensityTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/drop-shadow/DropShadowTechnique.js +5 -0
- package/views/2d/engine/webgl/shaderGraph/techniques/fill/ComplexFillTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/fill/ComplexOutlineFillTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/fill/FillTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/fill/GradientFillTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/fill/OutlineFillTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/fill/PatternFillTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/fill/PatternOutlineFillTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/grid/GridTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/heatmap/HeatmapTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/labels/LabelTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/line/GradientStrokeTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/line/LineTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/line/TexturedLineTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/magnifier/MagnifierTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/markers/MarkerTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/mesh/MeshWriterRegistry.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/opacity/OpacityTechnique.js +5 -0
- package/views/2d/engine/webgl/shaderGraph/techniques/overlay/OverlayTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/pieChart/PieChartTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/BlitShader.js +5 -0
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/BloomShader.js +5 -0
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/BlurShader.js +5 -0
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/ColorizeShader.js +5 -0
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/DropShadowShader.js +5 -0
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/PostProcessingShader.js +5 -0
- package/views/2d/engine/webgl/shaderGraph/techniques/text/TextTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/videoScreenRenderer/VideoScreenTechnique.js +1 -1
- package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
- package/views/2d/layers/MediaLayerView2D.js +1 -1
- package/views/2d/layers/TileLayerView2D.js +1 -1
- package/views/2d/layers/features/FeatureContainer.js +1 -1
- package/views/2d/layers/features/RenderState.js +1 -1
- package/views/2d/layers/features/sources/FeatureSourceQueryInfo.js +1 -1
- package/views/3d/analysis/ElevationProfileAnalysisView3D.js +1 -1
- package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementTool.js +5 -0
- package/views/3d/analysis/VolumeMeasurement/volumeMeasurementGeometryUtils.js +5 -0
- package/views/3d/analysis/VolumeMeasurementAnalysisView3D.js +1 -1
- package/views/3d/layers/FeatureLikeLayerView3D.js +1 -1
- package/views/3d/layers/graphics/Graphics3DGraphicsPipeline.js +1 -1
- package/views/3d/layers/graphics/QueryEngine.js +1 -1
- package/views/3d/layers/graphics/pipeline/Feature3DPipeline.js +1 -1
- package/views/3d/layers/graphics/pipeline/Feature3DPipelineWorker.js +1 -1
- package/views/3d/layers/graphics/pipeline/Feature3DPipelineWorkerHandle.js +1 -1
- package/views/3d/layers/support/FeatureTileFetcher3D.js +1 -1
- package/views/3d/layers/support/FeatureVisibilityFilter.js +1 -1
- package/views/3d/webgl-engine/effects/focusArea/FocusAreaColor.glsl.js +5 -0
- package/views/3d/webgl-engine/effects/focusArea/FocusAreaColorNode.js +1 -1
- package/views/3d/webgl-engine/effects/focusArea/FocusAreaColorTechnique.js +1 -1
- package/views/3d/webgl-engine/effects/focusArea/FocusAreaMask.glsl.js +5 -0
- package/views/3d/webgl-engine/effects/focusArea/FocusAreaMaskNode.js +1 -1
- package/views/3d/webgl-engine/effects/focusArea/FocusAreaMaskTechnique.js +1 -1
- package/views/3d/webgl-engine/effects/focusArea/FocusAreaOutlineItem.js +1 -1
- package/views/3d/webgl-engine/effects/glow/GlowComposition.glsl.js +1 -1
- package/views/3d/webgl-engine/effects/glow/GlowRenderNode.js +1 -1
- package/views/3d/webgl-engine/materials/renderers/MergedBuffer.js +1 -1
- package/views/3d/webgl-engine/materials/renderers/PerBufferData.js +1 -1
- package/views/3d/webgl-engine/materials/renderers/VaoWriter.js +5 -0
- package/views/VideoView.js +1 -1
- package/views/View.js +1 -1
- package/views/analysis/ElevationProfile/ElevationProfileController.js +1 -1
- package/views/analysis/ElevationProfile/ElevationProfileGenerationError.js +1 -1
- package/views/analysis/ElevationProfile/ElevationProfileResult.js +1 -1
- package/webdoc/support/timeProperties.js +1 -1
- package/webdoc/widgets/TimeSlider.js +1 -1
- package/webmap/InitialViewProperties.js +1 -1
- package/widgets/FeatureTable/support/FeatureStore.js +1 -1
- package/widgets/TimeSlider/TimeSliderViewModel.js +1 -1
- package/widgets/TimeSlider.js +1 -1
- package/TimeExtent.d.ts +0 -4
- package/TimeExtent.js +0 -5
- package/TimeInterval.d.ts +0 -4
- package/TimeInterval.js +0 -5
- package/assets/esri/core/workers/chunks/0b01c87db77246632ad9.js +0 -1
- package/assets/esri/core/workers/chunks/0cb2f7172190babb4139.js +0 -1
- package/assets/esri/core/workers/chunks/0e28cb5d8d89ae29cdd0.js +0 -1
- package/assets/esri/core/workers/chunks/2a938096a42613425c7b.js +0 -1
- package/assets/esri/core/workers/chunks/3bc50ee639a4d16c4f80.js +0 -1
- package/assets/esri/core/workers/chunks/8f60804c7ba445f25df8.js +0 -1
- package/assets/esri/core/workers/chunks/c696615cae5daefa2d98.js +0 -1
- package/chunks/TimeExtent.js +0 -5
- package/chunks/TimeInterval.js +0 -5
- package/views/2d/engine/webgl/effects/post-processing/Bloom.js +0 -5
- package/views/2d/engine/webgl/effects/post-processing/Blur.js +0 -5
- package/views/2d/engine/webgl/effects/post-processing/Colorize.js +0 -5
- package/views/2d/engine/webgl/effects/post-processing/DropShadow.js +0 -5
- package/views/2d/engine/webgl/effects/post-processing/Opacity.js +0 -5
- package/views/3d/webgl-engine/shaders/FocusAreaColor.glsl.js +0 -5
- package/views/3d/webgl-engine/shaders/FocusAreaMask.glsl.js +0 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8506],{6455:(e,t,i)=>{i.d(t,{FJ:()=>v,Dp:()=>w,KV:()=>C});var r=i(31635),o=i(93637),n=i(10107),s=(i(44208),i(53966),i(87811),i(40608)),l=i(89317),p=i(69540),a=i(7762),d=i(25482),u=i(43937),y=i(83960),c=i(13069);const h={write:{overridePolicy:(e,t,i)=>({enabled:!i||"scale"===i.filterMode})}};let m=class extends((0,p.OU)(d.o)){constructor(e){super(e),this.id=(0,c.lk)(),this.maxScale=0,this.minScale=0,this.title="",this.where=null}};(0,r.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],m.prototype,"id",void 0),(0,r.Cg)([(0,n.MZ)({type:Number,json:h})],m.prototype,"maxScale",void 0),(0,r.Cg)([(0,n.MZ)({type:Number,json:h})],m.prototype,"minScale",void 0),(0,r.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],m.prototype,"title",void 0),(0,r.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],m.prototype,"where",void 0),m=(0,r.Cg)([(0,s.$)("esri.layers.support.DisplayFilter")],m);var g=i(41560);let f=class extends((0,p.OU)(d.o)){constructor(e){super(e),this.activeFilterId=null,this.filters=new(a.A.ofType(m)),this.mode="manual"}writeFilters(e,t,i,r){const o=e.toArray();"scale"===this.mode&&o.sort((e,t)=>{const i=(0,y.oW)(t.minScale,e.minScale),r=e.maxScale-t.maxScale;return 0===i?r:i}),t[i]=o.map(e=>e.toJSON(r))}write(e,t){return super.write(e,(0,g.mW)(this,t))}};(0,r.Cg)([(0,n.MZ)({type:String,json:{write:{overridePolicy:(e,t,i)=>({enabled:"manual"===i.filterMode,isRequired:!0})}}})],f.prototype,"activeFilterId",void 0),(0,r.Cg)([(0,n.MZ)({type:a.A.ofType(m),nonNullable:!0,json:{write:!0}})],f.prototype,"filters",void 0),(0,r.Cg)([(0,u.K)("filters")],f.prototype,"writeFilters",null),(0,r.Cg)([(0,n.MZ)({type:["manual","scale"],nonNullable:!0,json:{name:"filterMode",write:!0}})],f.prototype,"mode",void 0),f=(0,r.Cg)([(0,s.$)("esri.layers.support.DisplayFilterInfo")],f);const v=e=>{const t=e;let i=class extends t{constructor(){super(...arguments),this.displayFilterEnabled=!0,this.displayFilterInfo=null}};return(0,r.Cg)([(0,n.MZ)(w)],i.prototype,"displayFilterEnabled",void 0),(0,r.Cg)([(0,n.MZ)(C)],i.prototype,"displayFilterInfo",void 0),i=(0,r.Cg)([(0,s.$)("esri.layers.mixins.DisplayFilteredLayer")],i),i},w={type:Boolean,json:{name:"layerDefinition.disableDisplayFilter",read:{reader:e=>!e},write:{layerContainerTypes:l.K,writer(e,t,i){(0,o.sM)(i,!e,t)}},origins:{"web-scene":{write:!1,read:!1}}}},C={type:f,json:{name:"layerDefinition.displayFilterInfo",write:{enabled:!0,allowNull:!0,layerContainerTypes:l.K},origins:{"web-scene":{write:!1,read:!1}}}}},17036:(e,t,i)=>{i.d(t,{p:()=>p});var r=i(44208),o=i(53966),n=i(20437),s=i(95466),l=i(30524);function p(){return{fields:{type:[n.A],value:null,set:function(e){if(e&&(0,r.A)("big-integer-warning-enabled")){const t=e.filter(e=>"big-integer"===e.type||"oid"===e.type&&(e.length||0)>=8);if(t.length){const e=t.map(e=>`'${e.name}'`).join(", ");o.A.getLogger(this).warn("#fields",`Layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}') references big-integer field(s): ${e}, support for which is experimental. Only integers less than ${Number.MAX_SAFE_INTEGER} (Number.MAX_SAFE_INTEGER) are supported.`)}}this._set("fields",e)}},fieldsIndex:{readOnly:!0,get(){return s.A.fromLayer(this)}},outFields:{type:[String],json:{read:!1},set:function(e){this._userOutFields=e,this.notifyChange("outFields")},get:function(){const e=this._userOutFields;if(!e?.length)return null;if(e.includes("*"))return["*"];if(!this.fields)return e;for(const t of e){const i=this.fieldsIndex?.has(t);i||o.A.getLogger("esri.layers.support.fieldProperties").error("field-attributes-layer:invalid-field",`Invalid field ${t} found in outFields`,{layer:this,outFields:e})}return(0,l.DB)(this.fieldsIndex,e)}}}}},20816:(e,t,i)=>{i.d(t,{TA:()=>o,We:()=>l,Z3:()=>n,ZJ:()=>p,w5:()=>a});var r=i(78888);const o=(0,i(13069).vD)(),n=new Map,s=new Map;async function l(e,t,i){if(!e||!i)return!1;if(!t)return!0;const o=new URL(e).host;let s=n.get(o);if(!s){const t=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,"");s=(await(0,r.A)(t,{responseType:"json",query:{f:"json"}})).data.defaultVersionName}return s===t}async function p(e,t,r=!1){if(!e||!t)return!0;const n=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,""),l=s.get(n)?.entries();if(l)for(const[e,s]of l)if(s.name===t){const t=!s.stack?.hasForwardEdits();if(!t&&r){const[{deleteForwardEdits:t},{default:r}]=await Promise.all([i.e(2186).then(i.bind(i,32186)),i.e(2558).then(i.bind(i,32558))]),l=await t(n,e,new r({sessionId:o,moment:s.moment}));return l.success&&s.stack?.clearForwardEdits(),l.success}return t}return!0}function a(e,t){if(!e)return!1;const i=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,""),r=s.get(i)?.entries();if(r)for(const[e,i]of r)if(i.name===t)return"edit"===i.lockType;return!1}new Map},26253:(e,t,i)=>{i.d(t,{T:()=>u});var r=i(31635),o=i(69540),n=i(25482),s=i(88930),l=i(10107),p=(i(44208),i(53966),i(87811),i(93223)),a=i(40608),d=i(73133);let u=class extends((0,o.OU)(n.o)){constructor(e){super(e),this.unit="milliseconds",this.value=0}toMilliseconds(){return(0,s.t)(this.value,this.unit,"milliseconds")}};(0,r.Cg)([(0,p.e)(d.j,{nonNullable:!0})],u.prototype,"unit",void 0),(0,r.Cg)([(0,l.MZ)({type:Number,json:{write:!0},nonNullable:!0})],u.prototype,"value",void 0),u=(0,r.Cg)([(0,a.$)("esri.time.TimeInterval")],u)},38141:(e,t,i)=>{i.d(t,{A:()=>nt});var r,o=i(31635),n=i(25482),s=i(4718),l=i(3483),p=i(10107),a=i(79901),d=i(36005),u=i(40608),y=i(43937);i(44208),i(53966),i(87811);let c=r=class extends n.o{constructor(e){super(e),this.expression=null,this.name=null,this.returnType="boolean",this.title=null}clone(){return new r({name:this.name,title:this.title,expression:this.expression,returnType:this.returnType})}};(0,o.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],c.prototype,"expression",void 0),(0,o.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],c.prototype,"name",void 0),(0,o.Cg)([(0,p.MZ)({type:["boolean","date","number","string"],json:{write:!0}})],c.prototype,"returnType",void 0),(0,o.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],c.prototype,"title",void 0),c=r=(0,o.Cg)([(0,u.$)("esri.form.ExpressionInfo")],c);const h=c;let m=class extends n.o{constructor(e){super(e),this.description=null,this.label=null,this.type=null,this.visibilityExpression=null}};(0,o.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],m.prototype,"description",void 0),(0,o.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],m.prototype,"label",void 0),(0,o.Cg)([(0,p.MZ)()],m.prototype,"type",void 0),(0,o.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],m.prototype,"visibilityExpression",void 0),m=(0,o.Cg)([(0,u.$)("esri.form.elements.Element")],m);const g=m;var f=i(56507),v=i(69540);let w=class extends((0,v.OU)(n.o)){constructor(e){super(e),this.type=null}};(0,o.Cg)([(0,p.MZ)()],w.prototype,"type",void 0),w=(0,o.Cg)([(0,u.$)("esri.form.elements.inputs.attachments.Input")],w);const C=w,M=["any","capture","upload"];let x=class extends C{constructor(e){super(e),this.type="audio",this.inputMethod="any",this.maxDuration=null}};(0,o.Cg)([(0,p.MZ)({type:["audio"],readOnly:!0,json:{write:!0}})],x.prototype,"type",void 0),(0,o.Cg)([(0,p.MZ)({type:M,json:{write:!0}})],x.prototype,"inputMethod",void 0),(0,o.Cg)([(0,p.MZ)({type:Number,json:{write:!0}})],x.prototype,"maxDuration",void 0),x=(0,o.Cg)([(0,u.$)("esri.form.elements.inputs.attachments.AudioInput")],x);const b=x;let Z=class extends C{constructor(e){super(e),this.type="document",this.maxFileSize=null}};(0,o.Cg)([(0,p.MZ)({type:["document"],readOnly:!0,json:{write:!0}})],Z.prototype,"type",void 0),(0,o.Cg)([(0,p.MZ)({type:Number,json:{write:!0}})],Z.prototype,"maxFileSize",void 0),Z=(0,o.Cg)([(0,u.$)("esri.form.elements.inputs.attachments.DocumentInput")],Z);const I=Z;let j=class extends C{constructor(e){super(e),this.type="image",this.inputMethod="any",this.maxImageSize=null}};(0,o.Cg)([(0,p.MZ)({type:["image"],readOnly:!0,json:{write:!0}})],j.prototype,"type",void 0),(0,o.Cg)([(0,p.MZ)({type:M,json:{write:!0}})],j.prototype,"inputMethod",void 0),(0,o.Cg)([(0,p.MZ)({type:Number,json:{write:!0}})],j.prototype,"maxImageSize",void 0),j=(0,o.Cg)([(0,u.$)("esri.form.elements.inputs.attachments.ImageInput")],j);const F=j;let S=class extends C{constructor(e){super(e),this.type="signature",this.inputMethod="any"}};(0,o.Cg)([(0,p.MZ)({type:["signature"],readOnly:!0,json:{write:!0}})],S.prototype,"type",void 0),(0,o.Cg)([(0,p.MZ)({type:M,json:{write:!0}})],S.prototype,"inputMethod",void 0),S=(0,o.Cg)([(0,u.$)("esri.form.elements.inputs.attachments.SignatureInput")],S);const E=S;let T=class extends C{constructor(e){super(e),this.type="video",this.inputMethod="any",this.maxDuration=null}};(0,o.Cg)([(0,p.MZ)({type:["video"],readOnly:!0,json:{write:!0}})],T.prototype,"type",void 0),(0,o.Cg)([(0,p.MZ)({type:M,json:{write:!0}})],T.prototype,"inputMethod",void 0),(0,o.Cg)([(0,p.MZ)({type:Number,json:{write:!0}})],T.prototype,"maxDuration",void 0),T=(0,o.Cg)([(0,u.$)("esri.form.elements.inputs.attachments.VideoInput")],T);const O=T;function U(e){return{nestableTypes:{base:C,key:"type",typeMap:{audio:b,document:I,image:F,signature:E,video:O}},allTypes:{base:C,key:"type",typeMap:{attachment:e,audio:b,document:I,image:F,signature:E,video:O}}}}let A=class extends C{constructor(e){super(e),this.type="attachment",this.attachmentAssociationType="exact",this.inputTypes=null}castInputs(e){return function(e,t){return e?e.map(e=>(0,f.aq)(t.nestableTypes,e)):null}(e,R)}readInputs(e,t){return function(e,t){if(!e)return null;const i=t.nestableTypes.typeMap;return e.filter(e=>i[e.type]).map(e=>i[e.type].fromJSON(e))}(t.inputTypes,R)}writeInputs(e,t){t.inputTypes=function(e,t){if(!e)return null;const i=t.nestableTypes.typeMap;return e.filter(e=>i[e.type]).map(e=>e.toJSON())}(e,R)}};(0,o.Cg)([(0,p.MZ)({type:["attachment"],readOnly:!0,json:{write:!0}})],A.prototype,"type",void 0),(0,o.Cg)([(0,p.MZ)({type:["any","exact","exactOrNone"],json:{write:!0}})],A.prototype,"attachmentAssociationType",void 0),(0,o.Cg)([(0,p.MZ)({json:{write:{isRequired:!0}}})],A.prototype,"inputTypes",void 0),(0,o.Cg)([(0,a.w)("inputTypes")],A.prototype,"castInputs",null),(0,o.Cg)([(0,d.w)("inputTypes")],A.prototype,"readInputs",null),(0,o.Cg)([(0,y.K)("inputTypes")],A.prototype,"writeInputs",null),A=(0,o.Cg)([(0,u.$)("esri.form.elements.inputs.attachments.AttachmentInput")],A);const R=U(A);var N;const k=U(A);let D=N=class extends g{constructor(e){super(e),this.allowUserRename=!0,this.attachmentKeyword=null,this.displayFilename=!1,this.editableExpression=null,this.filenameExpression="{attachmentKeyword}_{now}",this.input=null,this.maxAttachmentCount=null,this.minAttachmentCount=null,this.type="attachment",this.useOriginalFilename=!0}clone(){return new N({allowUserRename:this.allowUserRename,attachmentKeyword:this.attachmentKeyword,description:this.description,displayFilename:this.displayFilename,editableExpression:this.editableExpression,filenameExpression:this.filenameExpression,input:this.input?.clone(),label:this.label,maxAttachmentCount:this.maxAttachmentCount,minAttachmentCount:this.minAttachmentCount,useOriginalFilename:this.useOriginalFilename,visibilityExpression:this.visibilityExpression})}};(0,o.Cg)([(0,p.MZ)({type:Boolean,json:{write:!0}})],D.prototype,"allowUserRename",void 0),(0,o.Cg)([(0,p.MZ)({type:String,json:{write:{isRequired:!0}}})],D.prototype,"attachmentKeyword",void 0),(0,o.Cg)([(0,p.MZ)({type:Boolean,json:{write:!0}})],D.prototype,"displayFilename",void 0),(0,o.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],D.prototype,"editableExpression",void 0),(0,o.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],D.prototype,"filenameExpression",void 0),(0,o.Cg)([(0,p.MZ)({types:k.allTypes,json:{read:{source:"inputType"},write:{target:"inputType",isRequired:!0}}})],D.prototype,"input",void 0),(0,o.Cg)([(0,p.MZ)({type:Number,json:{write:!0}})],D.prototype,"maxAttachmentCount",void 0),(0,o.Cg)([(0,p.MZ)({type:Number,json:{write:!0}})],D.prototype,"minAttachmentCount",void 0),(0,o.Cg)([(0,p.MZ)({type:["attachment"],readOnly:!0,json:{read:!1,write:!0}})],D.prototype,"type",void 0),(0,o.Cg)([(0,p.MZ)({type:Boolean,json:{write:!0}})],D.prototype,"useOriginalFilename",void 0),D=N=(0,o.Cg)([(0,u.$)("esri.form.elements.AttachmentElement")],D);const V=D;let $=class extends n.o{constructor(e){super(e),this.type=null}};(0,o.Cg)([(0,p.MZ)()],$.prototype,"type",void 0),$=(0,o.Cg)([(0,u.$)("esri.form.elements.inputs.Input")],$);const L=$;let B=class extends L{constructor(e){super(e),this.maxLength=null,this.minLength=0}};(0,o.Cg)([(0,p.MZ)({type:Number,json:{write:!0}})],B.prototype,"maxLength",void 0),(0,o.Cg)([(0,p.MZ)({type:Number,json:{write:!0}})],B.prototype,"minLength",void 0),B=(0,o.Cg)([(0,u.$)("esri.form.elements.inputs.TextInput")],B);const H=B;var _;let q=_=class extends H{constructor(e){super(e),this.type="barcode-scanner"}clone(){return new _({maxLength:this.maxLength,minLength:this.minLength})}};(0,o.Cg)([(0,p.MZ)({type:["barcode-scanner"],json:{read:!1,write:!0}})],q.prototype,"type",void 0),q=_=(0,o.Cg)([(0,u.$)("esri.form.elements.inputs.BarcodeScannerInput")],q);const P=q;var K;let G=K=class extends L{constructor(e){super(e),this.noValueOptionLabel=null,this.showNoValueOption=!0,this.type="combo-box"}clone(){return new K({showNoValueOption:this.showNoValueOption,noValueOptionLabel:this.noValueOptionLabel})}};(0,o.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],G.prototype,"noValueOptionLabel",void 0),(0,o.Cg)([(0,p.MZ)({type:Boolean,json:{write:!0}})],G.prototype,"showNoValueOption",void 0),(0,o.Cg)([(0,p.MZ)({type:["combo-box"],json:{read:!1,write:!0}})],G.prototype,"type",void 0),G=K=(0,o.Cg)([(0,u.$)("esri.form.elements.inputs.ComboBoxInput")],G);const W=G;var Q;function J(e){return null!=e?e:null}function z(e){return null!=e?e:null}let X=Q=class extends L{constructor(e){super(e),this.max=null,this.min=null,this.type="date-picker"}readMax(e,t){return J(t.max)}writeMax(e,t){t.max=z(e)}readMin(e,t){return J(t.min)}writeMin(e,t){t.min=z(e)}clone(){return new Q({max:this.max,min:this.min})}};(0,o.Cg)([(0,p.MZ)({type:String,json:{type:String,write:!0}})],X.prototype,"max",void 0),(0,o.Cg)([(0,d.w)("max")],X.prototype,"readMax",null),(0,o.Cg)([(0,y.K)("max")],X.prototype,"writeMax",null),(0,o.Cg)([(0,p.MZ)({type:String,json:{type:String,write:!0}})],X.prototype,"min",void 0),(0,o.Cg)([(0,d.w)("min")],X.prototype,"readMin",null),(0,o.Cg)([(0,y.K)("min")],X.prototype,"writeMin",null),(0,o.Cg)([(0,p.MZ)({type:["date-picker"],json:{read:!1,write:!0}})],X.prototype,"type",void 0),X=Q=(0,o.Cg)([(0,u.$)("esri.form.elements.inputs.DatePickerInput")],X);const Y=X;var ee;function te(e){return null!=e?e:null}function ie(e){return null!=e?e:null}let re=ee=class extends L{constructor(e){super(e),this.includeTimeOffset=!0,this.max=null,this.min=null,this.timeResolution="minutes",this.type="datetimeoffset-picker"}readMax(e,t){return te(t.max)}writeMax(e,t){t.max=ie(e)}readMin(e,t){return te(t.min)}writeMin(e,t){t.min=ie(e)}readTimeResolution(e,t){return te(t.timeResolution)}writeTimeResolution(e,t){t.timeResolution=ie(e)}clone(){return new ee({includeTimeOffset:this.includeTimeOffset,max:this.max,min:this.min,timeResolution:this.timeResolution})}};(0,o.Cg)([(0,p.MZ)({type:Boolean,json:{write:!0}})],re.prototype,"includeTimeOffset",void 0),(0,o.Cg)([(0,p.MZ)({type:String,json:{type:String,write:!0}})],re.prototype,"max",void 0),(0,o.Cg)([(0,d.w)("max")],re.prototype,"readMax",null),(0,o.Cg)([(0,y.K)("max")],re.prototype,"writeMax",null),(0,o.Cg)([(0,p.MZ)({type:String,json:{type:String,write:!0}})],re.prototype,"min",void 0),(0,o.Cg)([(0,d.w)("min")],re.prototype,"readMin",null),(0,o.Cg)([(0,y.K)("min")],re.prototype,"writeMin",null),(0,o.Cg)([(0,p.MZ)({type:String,json:{type:String,write:!0}})],re.prototype,"timeResolution",void 0),(0,o.Cg)([(0,d.w)("timeResolution")],re.prototype,"readTimeResolution",null),(0,o.Cg)([(0,y.K)("timeResolution")],re.prototype,"writeTimeResolution",null),(0,o.Cg)([(0,p.MZ)({type:["datetimeoffset-picker"],json:{read:!1,write:!0}})],re.prototype,"type",void 0),re=ee=(0,o.Cg)([(0,u.$)("esri.form.elements.inputs.DateTimeOffsetPickerInput")],re);const oe=re;var ne;function se(e){return null!=e?new Date(e):null}function le(e){return e?e.getTime():null}let pe=ne=class extends L{constructor(e){super(e),this.includeTime=!1,this.max=null,this.min=null,this.type="datetime-picker"}readMax(e,t){return se(t.max)}writeMax(e,t){t.max=le(e)}readMin(e,t){return se(t.min)}writeMin(e,t){t.min=le(e)}clone(){return new ne({includeTime:this.includeTime,max:this.max,min:this.min})}};(0,o.Cg)([(0,p.MZ)({type:Boolean,json:{write:!0}})],pe.prototype,"includeTime",void 0),(0,o.Cg)([(0,p.MZ)({type:Date,json:{type:Number,write:!0}})],pe.prototype,"max",void 0),(0,o.Cg)([(0,d.w)("max")],pe.prototype,"readMax",null),(0,o.Cg)([(0,y.K)("max")],pe.prototype,"writeMax",null),(0,o.Cg)([(0,p.MZ)({type:Date,json:{type:Number,write:!0}})],pe.prototype,"min",void 0),(0,o.Cg)([(0,d.w)("min")],pe.prototype,"readMin",null),(0,o.Cg)([(0,y.K)("min")],pe.prototype,"writeMin",null),(0,o.Cg)([(0,p.MZ)({type:["datetime-picker"],json:{read:!1,write:!0}})],pe.prototype,"type",void 0),pe=ne=(0,o.Cg)([(0,u.$)("esri.form.elements.inputs.DateTimePickerInput")],pe);const ae=pe;var de;let ue=de=class extends L{constructor(e){super(e),this.noValueOptionLabel=null,this.showNoValueOption=!0,this.type="radio-buttons"}clone(){return new de({noValueOptionLabel:this.noValueOptionLabel,showNoValueOption:this.showNoValueOption})}};(0,o.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],ue.prototype,"noValueOptionLabel",void 0),(0,o.Cg)([(0,p.MZ)({type:Boolean,json:{write:!0}})],ue.prototype,"showNoValueOption",void 0),(0,o.Cg)([(0,p.MZ)({type:["radio-buttons"],json:{read:!1,write:!0}})],ue.prototype,"type",void 0),ue=de=(0,o.Cg)([(0,u.$)("esri.form.elements.inputs.RadioButtonsInput")],ue);const ye=ue;var ce;let he=ce=class extends L{constructor(e){super(e),this.offValue=null,this.onValue=null,this.type="switch"}clone(){return new ce({offValue:this.offValue,onValue:this.onValue})}};(0,o.Cg)([(0,p.MZ)({type:[String,Number],json:{write:!0}})],he.prototype,"offValue",void 0),(0,o.Cg)([(0,p.MZ)({type:[String,Number],json:{write:!0}})],he.prototype,"onValue",void 0),(0,o.Cg)([(0,p.MZ)({type:["switch"],json:{read:!1,write:!0}})],he.prototype,"type",void 0),he=ce=(0,o.Cg)([(0,u.$)("esri.form.elements.inputs.SwitchInput")],he);const me=he;var ge;let fe=ge=class extends H{constructor(e){super(e),this.type="text-area"}clone(){return new ge({maxLength:this.maxLength,minLength:this.minLength})}};(0,o.Cg)([(0,p.MZ)({type:["text-area"],json:{read:!1,write:!0}})],fe.prototype,"type",void 0),fe=ge=(0,o.Cg)([(0,u.$)("esri.form.elements.inputs.TextAreaInput")],fe);const ve=fe;var we;let Ce=we=class extends H{constructor(e){super(e),this.type="text-box"}clone(){return new we({maxLength:this.maxLength,minLength:this.minLength})}};(0,o.Cg)([(0,p.MZ)({type:["text-box"],json:{read:!1,write:!0}})],Ce.prototype,"type",void 0),Ce=we=(0,o.Cg)([(0,u.$)("esri.form.elements.inputs.TextBoxInput")],Ce);const Me=Ce;var xe;function be(e){return null!=e?e:null}function Ze(e){return null!=e?e:null}let Ie=xe=class extends L{constructor(e){super(e),this.max=null,this.min=null,this.timeResolution="minutes",this.type="time-picker"}readMax(e,t){return be(t.max)}writeMax(e,t){t.max=Ze(e)}readMin(e,t){return be(t.min)}writeMin(e,t){t.min=Ze(e)}readTimeResolution(e,t){return be(t.timeResolution)}writeTimeResolution(e,t){t.timeResolution=Ze(e)}clone(){return new xe({max:this.max,min:this.min,timeResolution:this.timeResolution})}};(0,o.Cg)([(0,p.MZ)({type:String,json:{type:String,write:!0}})],Ie.prototype,"max",void 0),(0,o.Cg)([(0,d.w)("max")],Ie.prototype,"readMax",null),(0,o.Cg)([(0,y.K)("max")],Ie.prototype,"writeMax",null),(0,o.Cg)([(0,p.MZ)({type:String,json:{type:String,write:!0}})],Ie.prototype,"min",void 0),(0,o.Cg)([(0,d.w)("min")],Ie.prototype,"readMin",null),(0,o.Cg)([(0,y.K)("min")],Ie.prototype,"writeMin",null),(0,o.Cg)([(0,p.MZ)({type:String,json:{type:String,write:!0}})],Ie.prototype,"timeResolution",void 0),(0,o.Cg)([(0,d.w)("timeResolution")],Ie.prototype,"readTimeResolution",null),(0,o.Cg)([(0,y.K)("timeResolution")],Ie.prototype,"writeTimeResolution",null),(0,o.Cg)([(0,p.MZ)({type:["time-picker"],json:{read:!1,write:!0}})],Ie.prototype,"type",void 0),Ie=xe=(0,o.Cg)([(0,u.$)("esri.form.elements.inputs.TimePickerInput")],Ie);const je={base:L,key:"type",typeMap:{"barcode-scanner":P,"combo-box":W,"date-picker":Y,"datetime-picker":ae,"datetimeoffset-picker":oe,"radio-buttons":ye,switch:me,"text-area":ve,"text-box":Me,"time-picker":Ie}};var Fe,Se=i(80451);let Ee=Fe=class extends g{constructor(e){super(e),this.domain=null,this.editable=null,this.editableExpression=null,this.fieldName=null,this.hint=null,this.input=null,this.requiredExpression=null,this.type="field",this.valueExpression=null}clone(){return new Fe({description:this.description,domain:this.domain,editable:this.editable,editableExpression:this.editableExpression,fieldName:this.fieldName,hint:this.hint,input:this.input,label:this.label,requiredExpression:this.requiredExpression,valueExpression:this.valueExpression,visibilityExpression:this.visibilityExpression})}};(0,o.Cg)([(0,p.MZ)({types:Se.gK,json:{read:{reader:Se.rS},write:!0}})],Ee.prototype,"domain",void 0),(0,o.Cg)([(0,p.MZ)({type:Boolean,json:{write:!0}})],Ee.prototype,"editable",void 0),(0,o.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],Ee.prototype,"editableExpression",void 0),(0,o.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],Ee.prototype,"fieldName",void 0),(0,o.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],Ee.prototype,"hint",void 0),(0,o.Cg)([(0,p.MZ)({types:je,json:{read:{source:"inputType"},write:{target:"inputType"}}})],Ee.prototype,"input",void 0),(0,o.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],Ee.prototype,"requiredExpression",void 0),(0,o.Cg)([(0,p.MZ)({type:String,json:{read:!1,write:!0}})],Ee.prototype,"type",void 0),(0,o.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],Ee.prototype,"valueExpression",void 0),Ee=Fe=(0,o.Cg)([(0,u.$)("esri.form.elements.FieldElement")],Ee);const Te=Ee;var Oe,Ue=i(49852);let Ae=Oe=class extends g{constructor(e){super(e),this.displayCount=null,this.displayType="list",this.editableExpression=null,this.orderByFields=null,this.relationshipId=null,this.type="relationship"}clone(){return new Oe({description:this.description,displayCount:this.displayCount,displayType:this.displayType,editableExpression:this.editableExpression,label:this.label,orderByFields:(0,s.o8)(this.orderByFields),relationshipId:this.relationshipId,visibilityExpression:this.visibilityExpression})}};(0,o.Cg)([(0,p.MZ)({type:Number,json:{write:!0}})],Ae.prototype,"displayCount",void 0),(0,o.Cg)([(0,p.MZ)({type:["list"],json:{write:!0}})],Ae.prototype,"displayType",void 0),(0,o.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],Ae.prototype,"editableExpression",void 0),(0,o.Cg)([(0,p.MZ)({type:[Ue.A],json:{write:!0}})],Ae.prototype,"orderByFields",void 0),(0,o.Cg)([(0,p.MZ)({type:Number,json:{write:!0}})],Ae.prototype,"relationshipId",void 0),(0,o.Cg)([(0,p.MZ)({type:["relationship"],json:{read:!1,write:!0}})],Ae.prototype,"type",void 0),Ae=Oe=(0,o.Cg)([(0,u.$)("esri.form.elements.RelationshipElement")],Ae);const Re=Ae;var Ne;let ke=Ne=class extends g{constructor(e){super(e),this.text=null,this.textFormat="plain-text",this.type="text"}clone(){return new Ne({text:this.text,textFormat:this.textFormat,visibilityExpression:this.visibilityExpression})}};(0,o.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],ke.prototype,"text",void 0),(0,o.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],ke.prototype,"textFormat",void 0),(0,o.Cg)([(0,p.MZ)({type:["text"],readOnly:!0,json:{read:!1,write:!0}})],ke.prototype,"type",void 0),ke=Ne=(0,o.Cg)([(0,u.$)("esri.form.elements.TextElement")],ke);const De=ke;var Ve=i(83342);let $e=class extends((0,v.OU)(g)){constructor(e){super(e),this.associationTypes=null,this.editableExpression=null,this.type="utilityNetworkAssociations"}};(0,o.Cg)([(0,p.MZ)({type:[Ve.A],json:{write:{isRequired:!0}}})],$e.prototype,"associationTypes",void 0),(0,o.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],$e.prototype,"editableExpression",void 0),(0,o.Cg)([(0,p.MZ)({type:["utilityNetworkAssociations"],json:{read:!1,write:!0}})],$e.prototype,"type",void 0),$e=(0,o.Cg)([(0,u.$)("esri.form.elements.UtilityNetworkAssociationsElement")],$e);const Le=$e,Be=e=>"field"===e.type,He=e=>"group"===e.type,_e=e=>"text"===e.type;function qe(e){return{typesWithGroup:{base:g,key:"type",typeMap:{attachment:V,field:Te,group:e,relationship:Re,text:De,utilityNetworkAssociations:Le}},typesWithoutGroup:{base:g,key:"type",typeMap:{attachment:V,field:Te,relationship:Re,text:De,utilityNetworkAssociations:Le}}}}function Pe(e,t,i=!0){if(!e)return null;const r=i?t.typesWithGroup.typeMap:t.typesWithoutGroup.typeMap;return e.filter(e=>r[e.type]).map(e=>r[e.type].fromJSON(e))}function Ke(e,t,i=!0){if(!e)return null;const r=i?t.typesWithGroup.typeMap:t.typesWithoutGroup.typeMap;return e.filter(e=>r[e.type]).map(e=>e.toJSON())}function Ge(e,t,i=!0){return e?e.map(e=>(0,f.aq)(i?t.typesWithGroup:t.typesWithoutGroup,e)):null}var We;let Qe=We=class extends g{constructor(e){super(e),this.elements=null,this.initialState="expanded",this.type="group"}castElements(e){return Ge(e,Je,!1)}readElements(e,t){return Pe(t.formElements,Je,!1)}writeElements(e,t){t.formElements=Ke(e,Je,!1)}clone(){return new We({description:this.description,elements:(0,s.o8)(this.elements),initialState:this.initialState,label:this.label,visibilityExpression:this.visibilityExpression})}};(0,o.Cg)([(0,p.MZ)({json:{write:!0}})],Qe.prototype,"elements",void 0),(0,o.Cg)([(0,a.w)("elements")],Qe.prototype,"castElements",null),(0,o.Cg)([(0,d.w)("elements",["formElements"])],Qe.prototype,"readElements",null),(0,o.Cg)([(0,y.K)("elements")],Qe.prototype,"writeElements",null),(0,o.Cg)([(0,p.MZ)({type:["collapsed","expanded"],json:{write:!0}})],Qe.prototype,"initialState",void 0),(0,o.Cg)([(0,p.MZ)({type:String,json:{read:!1,write:!0}})],Qe.prototype,"type",void 0),Qe=We=(0,o.Cg)([(0,u.$)("esri.form.elements.GroupElement")],Qe);const Je=qe(Qe),ze=Qe;var Xe,Ye=i(30524);const et=qe(ze);let tt=Xe=class extends n.o{constructor(e){super(e),this.description=null,this.elements=null,this.expressionInfos=null,this.preserveFieldValuesWhenHidden=!1,this.title=null}castElements(e){return Ge(e,et)}readElements(e,t){return Pe(t.formElements,et)}writeElements(e,t){t.formElements=Ke(e,et)}clone(){return new Xe({description:this.description,expressionInfos:(0,s.o8)(this.expressionInfos),elements:(0,s.o8)(this.elements),title:this.title,preserveFieldValuesWhenHidden:this.preserveFieldValuesWhenHidden})}async getFieldsUsed(e,t){const i=new Set,{description:r,elements:o,expressionInfos:n,title:s}=this;if(ot(i,e,r),ot(i,e,s),!o)return[];const l=function(e,t){if(!t||0===t.length)return[];const i=rt(e),r=[];for(const e of t)i.has(e.name)&&r.push(e.expression);return r}(o,n).map(t=>(0,Ye.Dx)(i,e,t));await Promise.all(l);for(const r of o)it(i,{fieldsIndex:e,relationships:t},r);return Array.from(i).sort()}};function it(e,t,i){const{fieldsIndex:r}=t;if(!r||r.fields.length!==e.size)switch(ot(e,r,i.label),ot(e,r,i.description),i.type){case"field":(0,Ye.rq)(e,r,i.fieldName);break;case"group":i.elements.forEach(i=>it(e,t,i));break;case"relationship":if(t.relationships){const o=t.relationships.find(e=>e.id===i.relationshipId);o&&(0,Ye.rq)(e,r,o.keyField)}(0,Ye._w)(e,r,i.orderByFields?.map(e=>e.field));break;case"text":ot(e,r,i.text)}}function rt(e){const t=new Set;for(const i of e)if((0,l.kb)(t,i.visibilityExpression),!_e(i))if(He(i))(0,l.FB)(t,rt(i.elements));else if((0,l.kb)(t,i.editableExpression),Be(i)){const{requiredExpression:e,valueExpression:r}=i;(0,l.FB)(t,[e,r])}return t}function ot(e,t,i){(0,Ye._w)(e,t,(0,Ye.nw)(i))}(0,o.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],tt.prototype,"description",void 0),(0,o.Cg)([(0,p.MZ)({json:{write:!0}})],tt.prototype,"elements",void 0),(0,o.Cg)([(0,a.w)("elements")],tt.prototype,"castElements",null),(0,o.Cg)([(0,d.w)("elements",["formElements"])],tt.prototype,"readElements",null),(0,o.Cg)([(0,y.K)("elements")],tt.prototype,"writeElements",null),(0,o.Cg)([(0,p.MZ)({type:[h],json:{write:!0}})],tt.prototype,"expressionInfos",void 0),(0,o.Cg)([(0,p.MZ)({type:Boolean,json:{default:!1,write:!0}})],tt.prototype,"preserveFieldValuesWhenHidden",void 0),(0,o.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],tt.prototype,"title",void 0),tt=Xe=(0,o.Cg)([(0,u.$)("esri.form.FormTemplate")],tt);const nt=tt},47685:(e,t,i)=>{i.d(t,{Mk:()=>m,Zk:()=>c,w6:()=>v});var r=i(31635),o=i(65529),n=i(4718),s=i(74887),l=i(10107),p=(i(44208),i(53966),i(40608)),a=i(20816);const d=new o.bk;function u(e){return d.on("apply-edits",new WeakRef(e))}function y(e){return d.on("update-moment",new WeakRef(e))}function c(e,t,i=null,r=!1){const o=(0,s.Tw)();return r=null==t||r,d.emit("apply-edits",{serviceUrl:e,layerId:t,gdbVersion:i,mayReceiveServiceEdits:r,result:o.promise}),o}const h=Symbol();function m(e){return null!=e&&"object"==typeof e&&h in e}function g(e){return null!=e&&"object"==typeof e&&"gdbVersion"in e}function f(e,t,i){const r=new URL(e).host,o=a.Z3.get(r),n=e=>!e||e===o;return n(t)&&n(i)||t===i}const v=e=>{var t;const i=e;let o=class extends i{static{t=h}constructor(...e){super(...e),this[t]=!0,this._applyEditsHandler=e=>{const{serviceUrl:t,layerId:i,gdbVersion:r,mayReceiveServiceEdits:o,result:s}=e,l=t===this.url,p=null!=i&&null!=this.layerId&&i===this.layerId,a=g(this),d=g(this)&&f(t,r,this.gdbVersion);if(!l||a&&!d||!p&&!o)return;const u=s.then(e=>{if(this.lastEditsEventDate=new Date,p&&(e.addedFeatures.length||e.updatedFeatures.length||e.deletedFeatures.length||e.addedAttachments.length||e.updatedAttachments.length||e.deletedAttachments.length))return this.emit("edits",(0,n.o8)(e)),e;const i=e.editedFeatures?.find(({layerId:e})=>e===this.layerId);if(i){const{adds:t,updates:r,deletes:o}=i.editedFeatures,s={edits:null,addedAttachments:[],deletedAttachments:[],updatedAttachments:[],addedFeatures:t?t.map(({attributes:e})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]})):[],deletedFeatures:o?o.map(({attributes:e})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]})):[],updatedFeatures:r?r.map(({current:{attributes:e}})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]})):[],editedFeatures:(0,n.o8)(e.editedFeatures),exceededTransferLimit:!1,historicMoment:(0,n.o8)(e.historicMoment)};return this.emit("edits",s),s}const o={edits:null,addedAttachments:[],deletedAttachments:[],updatedAttachments:[],addedFeatures:[],deletedFeatures:[],updatedFeatures:[],editedFeatures:(0,n.o8)(e.editedFeatures),exceededTransferLimit:!1,historicMoment:(0,n.o8)(e.historicMoment)};return"historicMoment"in this&&this._shouldUpdateHistoricMoment(t,r,o.historicMoment)&&this.emit("edits",o),o}).then(e=>("historicMoment"in this&&this._shouldUpdateHistoricMoment(t,r,e.historicMoment)&&(this.historicMoment=e.historicMoment),e));this.emit("apply-edits",{result:u})},this._updateMomentHandler=e=>{const{serviceUrl:t,gdbVersion:i,moment:r}=e,o=t===this.url,n=g(this),s=g(this)&&f(t,i,this.gdbVersion),l=g(this)&&!f(t,this.gdbVersion,null);o&&n&&s&&l&&"historicMoment"in this&&this.historicMoment!==r&&(this.historicMoment=r)},this.when().then(()=>{this.addHandles(u(this._applyEditsHandler)),"historicMoment"in this&&this.addHandles(y(this._updateMomentHandler))},()=>{})}_shouldUpdateHistoricMoment(e,t,i){return"historicMoment"in this&&this.historicMoment!==i&&(0,a.w5)(e,t)}};return(0,r.Cg)([(0,l.MZ)()],o.prototype,"lastEditsEventDate",void 0),o=(0,r.Cg)([(0,p.$)("esri.layers.mixins.EditBusLayer")],o),o}},54239:(e,t,i)=>{i.d(t,{A:()=>f});var r,o=i(31635),n=i(4576),s=i(66552),l=i(25482),p=i(83047),a=i(67076),d=i(10107),u=(i(44208),i(53966),i(36005)),y=i(40608),c=i(43937);const h=(0,s.O)()({orthometric:"gravity-related-height",gravity_related_height:"gravity-related-height",ellipsoidal:"ellipsoidal"}),m=h.jsonValues.slice();(0,n.Xy)(m,"orthometric");const g=(0,s.O)()({meter:"meters",foot:"feet","us-foot":"us-feet","clarke-foot":"clarke-feet","clarke-yard":"clarke-yards","clarke-link":"clarke-links","sears-yard":"sears-yards","sears-foot":"sears-feet","sears-chain":"sears-chains","benoit-1895-b-chain":"benoit-1895-b-chains","indian-yard":"indian-yards","indian-1937-yard":"indian-1937-yards","gold-coast-foot":"gold-coast-feet","sears-1922-truncated-chain":"sears-1922-truncated-chains","50-kilometers":"50-kilometers","150-kilometers":"150-kilometers"});let f=r=class extends l.o{constructor(e){super(e),this.heightModel="gravity-related-height",this.heightUnit="meters",this.vertCRS=null}writeHeightModel(e,t,i){return h.write(e,t,i)}readHeightModel(e,t,i){return h.read(e)||(i?.messages&&i.messages.push(function(e,t){return new a.A("height-model:unsupported",`Height model of value '${e}' is not supported`,t)}(e,{context:i})),null)}readHeightUnit(e,t,i){return g.read(e)||(i?.messages&&i.messages.push(v(e,{context:i})),null)}readHeightUnitService(e,t,i){return(0,p.LA)(e)||g.read(e)||(i?.messages&&i.messages.push(v(e,{context:i})),null)}readVertCRS(e,t){return t.vertCRS||t.ellipsoid||t.geoid}clone(){return new r({heightModel:this.heightModel,heightUnit:this.heightUnit,vertCRS:this.vertCRS})}equals(e){return!!e&&(this===e||this.heightModel===e.heightModel&&this.heightUnit===e.heightUnit&&this.vertCRS===e.vertCRS)}static deriveUnitFromSR(e,t){const i=(0,p.k1)(t);return new r({heightModel:e.heightModel,heightUnit:i??void 0,vertCRS:e.vertCRS})}write(e,t){return t={origin:"web-scene",...t},super.write(e,t)}static fromJSON(e){if(!e)return null;const t=new r;return t.read(e,{origin:"web-scene"}),t}};function v(e,t){return new a.A("height-unit:unsupported",`Height unit of value '${e}' is not supported`,t)}(0,o.Cg)([(0,d.MZ)({type:h.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:m,default:"ellipsoidal",write:{isRequired:!0}}}}})],f.prototype,"heightModel",void 0),(0,o.Cg)([(0,c.K)("web-scene","heightModel")],f.prototype,"writeHeightModel",null),(0,o.Cg)([(0,u.w)(["web-scene","service"],"heightModel")],f.prototype,"readHeightModel",null),(0,o.Cg)([(0,d.MZ)({type:g.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:g.jsonValues,write:{writer:g.write,isRequired:!0}}}}})],f.prototype,"heightUnit",void 0),(0,o.Cg)([(0,u.w)("web-scene","heightUnit")],f.prototype,"readHeightUnit",null),(0,o.Cg)([(0,u.w)("service","heightUnit")],f.prototype,"readHeightUnitService",null),(0,o.Cg)([(0,d.MZ)({type:String,constructOnly:!0,json:{origins:{"web-scene":{write:!0}}}})],f.prototype,"vertCRS",void 0),(0,o.Cg)([(0,u.w)("service","vertCRS",["vertCRS","ellipsoid","geoid"])],f.prototype,"readVertCRS",null),f=r=(0,o.Cg)([(0,y.$)("esri.geometry.HeightModelInfo")],f)},73133:(e,t,i)=>{i.d(t,{j:()=>r});const r=(0,i(66552).O)()({esriTimeUnitsMilliseconds:"milliseconds",esriTimeUnitsSeconds:"seconds",esriTimeUnitsMinutes:"minutes",esriTimeUnitsHours:"hours",esriTimeUnitsDays:"days",esriTimeUnitsWeeks:"weeks",esriTimeUnitsMonths:"months",esriTimeUnitsYears:"years",esriTimeUnitsDecades:"decades",esriTimeUnitsCenturies:"centuries",esriTimeUnitsUnknown:void 0})},73179:(e,t,i)=>{i.d(t,{b:()=>p,h:()=>a});var r=i(4718),o=i(53966),n=i(84952),s=i(60694),l=i(10873);function p(e){const{nonStandardUrlAllowed:t=!1,separator:i}=e??{},n=(0,r.o8)(l.OZ),p=n.json?.write;return"object"==typeof p&&p&&(p.writer=function(e,t,r,o){(0,s.LS)(this,e,i,t,o)}),{...n,set:function(e){if(null==e)return void this._set("url",e);const i=(0,s.HZ)({layer:this,url:e,nonStandardUrlAllowed:t,logger:o.A.getLogger(this)});this._set("url",i.url),null!=i.layerId&&this._set("layerId",i.layerId)}}}function a(e,t){const{separator:i}=t??{},r=(0,n.An)(e.url);return null!=r&&(null!=e.dynamicDataSource?r.path=(0,n.fj)(r.path,"dynamicLayer"):null!=e.layerId&&(r.path=(0,n.fj)(r.path,i??"",e.layerId.toString()))),r}},82935:(e,t,i)=>{i.d(t,{B:()=>c,e:()=>h});var r=i(31635),o=i(10107),n=(i(44208),i(53966),i(87811),i(36005)),s=i(40608),l=i(89317),p=i(30524),a=i(96184),d=i(73133),u=i(64272),y=i(26253);const c={type:Boolean,json:{read:{source:"timeAnimation"},write:{target:"timeAnimation",layerContainerTypes:l.K}}},h=e=>{const t=e;let i=class extends t{constructor(){super(...arguments),this.timeExtent=null,this.timeOffset=null,this.useViewTime=!0}readOffset(e,t){const i=t.timeInfo.exportOptions;if(!i)return null;const r=i.timeOffset,o=d.j.fromJSON(i.timeOffsetUnits);return r&&o?new y.T({value:r,unit:o}):null}set timeInfo(e){(0,p.sv)(e,this.fieldsIndex),this._set("timeInfo",e)}};return(0,r.Cg)([(0,o.MZ)({type:u.T,json:{write:!1}})],i.prototype,"timeExtent",void 0),(0,r.Cg)([(0,o.MZ)({type:y.T})],i.prototype,"timeOffset",void 0),(0,r.Cg)([(0,n.w)("service","timeOffset",["timeInfo.exportOptions"])],i.prototype,"readOffset",null),(0,r.Cg)([(0,o.MZ)({value:null,type:a.A,json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],i.prototype,"timeInfo",null),(0,r.Cg)([(0,o.MZ)(c)],i.prototype,"useViewTime",void 0),i=(0,r.Cg)([(0,s.$)("esri.layers.mixins.TemporalLayer")],i),i}},83960:(e,t,i)=>{i.d(t,{X_:()=>s,oW:()=>p,zx:()=>l});var r=i(34727),o=i(83047);const n=96;function s(e,t){const i=t||e.extent,r=e.width,s=(0,o.GA)(i?.spatialReference);return i&&r?i.width/r*s*o.dy*n:0}function l(e,t,i){return function(e,t){return 0===t||(0,r.Sp)(e,t)||e<t}(e,t)&&function(e,t){return 0===t||(0,r.Sp)(e,t)||e>t}(e,i)}function p(e,t){return(0,r.Sp)(e,t)?0:(e||Number.POSITIVE_INFINITY)>(t||Number.POSITIVE_INFINITY)?1:-1}},87796:(e,t,i)=>{i.d(t,{j:()=>A});var r=i(31635),o=i(7762),n=i(4718),s=i(84952),l=i(10107),p=(i(44208),i(53966),i(36005)),a=i(40608),d=i(89317),u=i(35666),y=i(5443),c=i(54239),h=i(16930),m=i(10873),g=i(69540),f=i(25482),v=(i(87811),i(56400));let w=class extends((0,g.OU)(f.o)){constructor(e){super(e),this.creatorField=null,this.creationDateField=null,this.editorField=null,this.editDateField=null,this.realm=null,this.timeZone=null}};(0,r.Cg)([(0,l.MZ)()],w.prototype,"creatorField",void 0),(0,r.Cg)([(0,l.MZ)()],w.prototype,"creationDateField",void 0),(0,r.Cg)([(0,l.MZ)()],w.prototype,"editorField",void 0),(0,r.Cg)([(0,l.MZ)()],w.prototype,"editDateField",void 0),(0,r.Cg)([(0,l.MZ)()],w.prototype,"realm",void 0),(0,r.Cg)([(0,l.MZ)((0,v.P6)("dateFieldsTimeReference",!0))],w.prototype,"timeZone",void 0),w=(0,r.Cg)([(0,a.$)("esri.layers.support.EditFieldsInfo")],w);let C=class extends((0,g.OU)(f.o)){constructor(e){super(e)}};(0,r.Cg)([(0,l.MZ)({constructOnly:!0,json:{write:!0}})],C.prototype,"name",void 0),(0,r.Cg)([(0,l.MZ)({constructOnly:!0,json:{write:!0}})],C.prototype,"fields",void 0),(0,r.Cg)([(0,l.MZ)({constructOnly:!0,json:{write:!0}})],C.prototype,"isAscending",void 0),(0,r.Cg)([(0,l.MZ)({constructOnly:!0,json:{write:!0}})],C.prototype,"indexType",void 0),(0,r.Cg)([(0,l.MZ)({constructOnly:!0,json:{write:!0}})],C.prototype,"isUnique",void 0),(0,r.Cg)([(0,l.MZ)({constructOnly:!0,json:{write:!0}})],C.prototype,"description",void 0),C=(0,r.Cg)([(0,a.$)("esri.layers.support.FeatureIndex")],C);var M=i(15426),x=i(83047);let b=class extends((0,g.OU)(f.o)){constructor(e){super(e),this.shapeAreaField=null,this.shapeLengthField=null,this.units=null}};(0,r.Cg)([(0,l.MZ)({type:String,json:{read:{source:"shapeAreaFieldName"}}})],b.prototype,"shapeAreaField",void 0),(0,r.Cg)([(0,l.MZ)({type:String,json:{read:{source:"shapeLengthFieldName"}}})],b.prototype,"shapeLengthField",void 0),(0,r.Cg)([(0,l.MZ)({type:String,json:{read:e=>x.dk.read(e)||x.Sk.read(e)}})],b.prototype,"units",void 0),b=(0,r.Cg)([(0,a.$)("esri.layers.support.GeometryFieldsInfo")],b);var Z=i(37352),I=i(77548),j=i(73179),F=i(45067),S=i(22453),E=i(43937),T=i(80451);let O=class extends((0,g.OU)(f.o)){constructor(e){super(e),this.code=null,this.defaultValues={},this.domains=null,this.name=null}readDomains(e){if(!e)return null;const t={};for(const i of Object.keys(e))t[i]=(0,T.rS)(e[i]);return t}writeDomains(e,t){if(!e)return;const i={};for(const t of Object.keys(e))e[t]&&(i[t]=e[t]?.toJSON());t.domains=i}};(0,r.Cg)([(0,l.MZ)({type:Number,json:{write:!0}})],O.prototype,"code",void 0),(0,r.Cg)([(0,l.MZ)({type:Object,json:{write:!0}})],O.prototype,"defaultValues",void 0),(0,r.Cg)([(0,l.MZ)({json:{write:!0}})],O.prototype,"domains",void 0),(0,r.Cg)([(0,p.w)("domains")],O.prototype,"readDomains",null),(0,r.Cg)([(0,E.K)("domains")],O.prototype,"writeDomains",null),(0,r.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],O.prototype,"name",void 0),O=(0,r.Cg)([(0,a.$)("esri.layers.support.Subtype")],O);var U=i(10407);const A=e=>{const t=e;let i=class extends t{constructor(){super(...arguments),this.copyright=null,this.capabilities=null,this.dateFieldsTimeZone=null,this.datesInUnknownTimezone=!1,this.definitionExpression=null,this.displayField=null,this.editFieldsInfo=null,this.editingInfo=null,this.elevationInfo=null,this.fieldsIndex=null,this.floorInfo=null,this.fullExtent=null,this.gdbVersion=null,this.geometryFieldsInfo=null,this.geometryType=null,this.globalIdField=null,this.hasM=void 0,this.hasZ=void 0,this.heightModelInfo=null,this.historicMoment=null,this.indexes=new(o.A.ofType(C)),this.isTable=!1,this.layerId=void 0,this.maxScale=0,this.minScale=0,this.objectIdField=null,this.preferredTimeZone=null,this.relationships=null,this.returnM=void 0,this.returnZ=void 0,this.serviceDefinitionExpression=null,this.serviceItemId=null,this.sourceJSON=null,this.spatialReference=h.A.WGS84,this.subtypeField=null,this.subtypes=null,this.trackIdField=null,this.uniqueIdFields=null,this.url=null,this.version=void 0,this._isUrlHostModified=!1,this._isUrlHostModificationEnabled=!1}getFieldDomain(e,t){throw new Error("Not implemented")}getField(e){return this.fieldsIndex.get(e)}get authenticationTriggerEvent(){if(!this.url)return null;const{capabilities:e}=this;if(e){const{query:t,operations:i,editing:r}=e;if(!t.supportsQueryByOthers||!t.supportsQueryByAnonymous)return"load";if(i.supportsEditing&&!(r.supportsUpdateByOthers&&r.supportsUpdateByAnonymous&&r.supportsDeleteByOthers&&r.supportsDeleteByAnonymous))return"load"}if((0,M.rQ)(this.serviceDefinitionExpression)||(0,M.rQ)(this.definitionExpression))return"load";if(this.userHasUpdateItemPrivileges){if((0,M.tG)(this))return"load";if(this.hasUpdateItemRestrictions)return e.operations.supportsQuery?"editing":"load"}if(this.userHasFullEditingPrivileges&&this.hasFullEditingRestrictions)return"editing";const t=this.editFieldsInfo;return(t?.creatorField||t?.editorField)&&e?.operations.supportsEditing?"editing":null}readCapabilitiesFromService(e,t){return(0,S.S)(t,this.url)}readEditingInfo(e,t){const{editingInfo:i}=t;return i?{lastEditDate:null!=i.lastEditDate?new Date(i.lastEditDate):null}:null}get effectiveCapabilities(){const e=this.capabilities;if(!e)return null;const t=(0,n.o8)(e),{operations:i,editing:r}=t;return(0,M.Pt)(this)?(this.userHasUpdateItemPrivileges&&(i.supportsQuery=!0),t):this.userHasUpdateItemPrivileges?(i.supportsAdd=i.supportsDelete=i.supportsEditing=i.supportsQuery=i.supportsUpdate=r.supportsDeleteByOthers=r.supportsGeometryUpdate=r.supportsUpdateByOthers=!0,t):(this.userHasFullEditingPrivileges&&i.supportsEditing&&(i.supportsAdd=i.supportsDelete=i.supportsUpdate=r.supportsGeometryUpdate=!0),t)}get effectiveEditingEnabled(){return!1}readGlobalIdFieldFromService(e,t){return(0,M.jD)(t)}get hasFullEditingRestrictions(){const e=this.capabilities;if(!e||(0,M.Pt)(this))return!1;const{operations:t,editing:i}=e;return t.supportsEditing&&!(t.supportsAdd&&t.supportsDelete&&t.supportsUpdate&&i.supportsGeometryUpdate)}get hasUpdateItemRestrictions(){const e=this.capabilities;if(!e)return!1;const{operations:t,editing:i}=e;return(0,M.Pt)(this)?!t.supportsQuery:!(t.supportsAdd&&t.supportsDelete&&t.supportsEditing&&t.supportsQuery&&t.supportsUpdate&&i.supportsDeleteByOthers&&i.supportsGeometryUpdate&&i.supportsUpdateByOthers)}readIsTableFromService(e,t){return"Table"===t.type}readMaxScale(e,t){return t.effectiveMaxScale||e||0}readMinScale(e,t){return t.effectiveMinScale||e||0}readObjectIdFieldFromService(e,t){return(0,M.Zm)(t)}get parsedUrl(){return(0,j.h)(this)}readServiceDefinitionExpression(e,t){return t.definitionQuery||t.definitionExpression}readUniqueIdFields(e,t){return t.uniqueIdInfo?.OIDFieldContainsHashValue?t.uniqueIdInfo.fields:null}readVersion(e,t){return(0,M.$4)(t)}get isUrlHostModified(){const{loaded:e,url:t,_isUrlHostModified:i}=this;if(i)return!0;if(!e||!t)return!1;if(this.originIdOf("url")<7)return!1;const r=this.sourceJSON?.preferredHost;if(!r)return!1;if(!(0,s.FX)(t,`https://${r}`,!0))return!1;for(let e=6;e>=3;e--){const i=this.getAtOrigin("url",(0,u.OL)(e));if(i)return!(0,s.FX)(t,i,!0)}return!1}applyPreferredHost(e){const{url:t,portalItem:i}=this;if(!t||!(0,I.OP)(i))return;const r=(0,I.$x)();r&&this._isUrlHostModificationEnabled&&(this._set("url",r),this._isUrlHostModified=!0,i&&(0,I.Gh)(i,(0,I.G$)()))}applyHostFromPortalItem(){const{url:e,portalItem:t}=this;if(!e||7===this.originIdOf("url")||!t?.url||!(0,I.OP)(t)||!(0,U.Y)(t,U.mm.HOSTED_SERVICE)||(0,s.FX)(e,t.url,!0)||!this._isUrlHostModificationEnabled)return;const i=(0,s.Ln)(t.url);this._set("url",(0,s.hf)(e,i)),this._isUrlHostModified=!0}};return(0,r.Cg)([(0,l.MZ)({readOnly:!0})],i.prototype,"authenticationTriggerEvent",null),(0,r.Cg)([(0,l.MZ)({type:String,json:{origins:{service:{read:{source:"copyrightText"}}}}})],i.prototype,"copyright",void 0),(0,r.Cg)([(0,l.MZ)({readOnly:!0,json:{read:!1,origins:{service:{read:{source:["advancedQueryCapabilities","allowGeometryUpdates","allowUpdateWithoutMValues","archivingInfo","capabilities","datesInUnknownTimezone","hasAttachments","hasM","hasZ","isDataBranchVersioned","isDataVersioned","maxRecordCount","maxRecordCountFactor","maxUniqueIDCount","ownershipBasedAccessControlForFeatures","standardMaxRecordCount","supportedQueryFormats","supportsAdvancedQueries","supportsApplyEditsWithGlobalIds","supportsAttachmentsByUploadId","supportsAttachmentsResizing","supportsCalculate","supportsCoordinatesQuantization","supportsExceedsLimitStatistics","supportsFieldDescriptionProperty","supportsQuantizationEditMode","supportsRollbackOnFailureParameter","supportsStatistics","supportsTruncate","supportsValidateSql","tileMaxRecordCount","useStandardizedQueries"]}}}}})],i.prototype,"capabilities",void 0),(0,r.Cg)([(0,p.w)("service","capabilities")],i.prototype,"readCapabilitiesFromService",null),(0,r.Cg)([(0,l.MZ)((0,v.P6)("dateFieldsTimeReference"))],i.prototype,"dateFieldsTimeZone",void 0),(0,r.Cg)([(0,l.MZ)({type:Boolean})],i.prototype,"datesInUnknownTimezone",void 0),(0,r.Cg)([(0,l.MZ)({type:String,json:{origins:{service:{read:!1,write:!1}},name:"layerDefinition.definitionExpression",write:{enabled:!0,allowNull:!0}}})],i.prototype,"definitionExpression",void 0),(0,r.Cg)([(0,l.MZ)({type:String,json:{origins:{service:{read:{source:"displayField"}}}}})],i.prototype,"displayField",void 0),(0,r.Cg)([(0,l.MZ)({readOnly:!0,type:w})],i.prototype,"editFieldsInfo",void 0),(0,r.Cg)([(0,l.MZ)({readOnly:!0})],i.prototype,"editingInfo",void 0),(0,r.Cg)([(0,p.w)("editingInfo")],i.prototype,"readEditingInfo",null),(0,r.Cg)([(0,l.MZ)({readOnly:!0})],i.prototype,"effectiveCapabilities",null),(0,r.Cg)([(0,l.MZ)()],i.prototype,"effectiveEditingEnabled",null),(0,r.Cg)([(0,l.MZ)((()=>{const e=(0,n.o8)(m.Yj),t=e.json.origins;return t["web-map"]={read:!1,write:!1},t["portal-item"]={read:!1,write:!1},e})())],i.prototype,"elevationInfo",void 0),(0,r.Cg)([(0,l.MZ)()],i.prototype,"fieldsIndex",void 0),(0,r.Cg)([(0,l.MZ)({type:Z.A,json:{name:"layerDefinition.floorInfo",write:{layerContainerTypes:d.K}}})],i.prototype,"floorInfo",void 0),(0,r.Cg)([(0,l.MZ)({type:y.A,json:{origins:{service:{read:{source:"extent"}}}}})],i.prototype,"fullExtent",void 0),(0,r.Cg)([(0,l.MZ)()],i.prototype,"gdbVersion",void 0),(0,r.Cg)([(0,l.MZ)({readOnly:!0,type:b,json:{read:{source:"geometryProperties"}}})],i.prototype,"geometryFieldsInfo",void 0),(0,r.Cg)([(0,l.MZ)({type:["point","polygon","polyline","multipoint","multipatch","mesh"],json:{origins:{service:{read:M.iX.read}}}})],i.prototype,"geometryType",void 0),(0,r.Cg)([(0,l.MZ)({type:String})],i.prototype,"globalIdField",void 0),(0,r.Cg)([(0,p.w)("service","globalIdField",["globalIdField","fields"])],i.prototype,"readGlobalIdFieldFromService",null),(0,r.Cg)([(0,l.MZ)({readOnly:!0})],i.prototype,"hasFullEditingRestrictions",null),(0,r.Cg)([(0,l.MZ)({type:Boolean,json:{origins:{service:{read:!0}}}})],i.prototype,"hasM",void 0),(0,r.Cg)([(0,l.MZ)({readOnly:!0})],i.prototype,"hasUpdateItemRestrictions",null),(0,r.Cg)([(0,l.MZ)({type:Boolean,json:{origins:{service:{read:!0}}}})],i.prototype,"hasZ",void 0),(0,r.Cg)([(0,l.MZ)({readOnly:!0,type:c.A})],i.prototype,"heightModelInfo",void 0),(0,r.Cg)([(0,l.MZ)({type:Date})],i.prototype,"historicMoment",void 0),(0,r.Cg)([(0,l.MZ)({type:o.A.ofType(C),readOnly:!0})],i.prototype,"indexes",void 0),(0,r.Cg)([(0,l.MZ)({readOnly:!0})],i.prototype,"isTable",void 0),(0,r.Cg)([(0,p.w)("service","isTable",["type"])],i.prototype,"readIsTableFromService",null),(0,r.Cg)([(0,l.MZ)({type:Number,json:{origins:{service:{read:{source:"id"}},"portal-item":{read:!1,write:{target:"id"}}},read:!1}})],i.prototype,"layerId",void 0),(0,r.Cg)([(0,l.MZ)(m.hG)],i.prototype,"maxScale",void 0),(0,r.Cg)([(0,p.w)("service","maxScale",["maxScale","effectiveMaxScale"])],i.prototype,"readMaxScale",null),(0,r.Cg)([(0,l.MZ)(m.hn)],i.prototype,"minScale",void 0),(0,r.Cg)([(0,p.w)("service","minScale",["minScale","effectiveMinScale"])],i.prototype,"readMinScale",null),(0,r.Cg)([(0,l.MZ)({type:String})],i.prototype,"objectIdField",void 0),(0,r.Cg)([(0,p.w)("service","objectIdField",["objectIdField","fields"])],i.prototype,"readObjectIdFieldFromService",null),(0,r.Cg)([(0,l.MZ)({readOnly:!0})],i.prototype,"parsedUrl",null),(0,r.Cg)([(0,l.MZ)((0,v.P6)("preferredTimeReference"))],i.prototype,"preferredTimeZone",void 0),(0,r.Cg)([(0,l.MZ)({type:[F.A],readOnly:!0})],i.prototype,"relationships",void 0),(0,r.Cg)([(0,l.MZ)({type:Boolean})],i.prototype,"returnM",void 0),(0,r.Cg)([(0,l.MZ)({type:Boolean})],i.prototype,"returnZ",void 0),(0,r.Cg)([(0,l.MZ)({readOnly:!0,json:{write:!1}})],i.prototype,"serverGens",void 0),(0,r.Cg)([(0,l.MZ)({readOnly:!0})],i.prototype,"serviceDefinitionExpression",void 0),(0,r.Cg)([(0,p.w)("service","serviceDefinitionExpression",["definitionQuery","definitionExpression"])],i.prototype,"readServiceDefinitionExpression",null),(0,r.Cg)([(0,l.MZ)({type:String,readOnly:!0,json:{read:!1,origins:{service:{read:!0}}}})],i.prototype,"serviceItemId",void 0),(0,r.Cg)([(0,l.MZ)()],i.prototype,"sourceJSON",void 0),(0,r.Cg)([(0,l.MZ)({type:h.A,json:{origins:{service:{read:{source:"extent.spatialReference"}}}}})],i.prototype,"spatialReference",void 0),(0,r.Cg)([(0,l.MZ)({type:String,readOnly:!0,json:{origins:{service:{read:!0}}}})],i.prototype,"subtypeField",void 0),(0,r.Cg)([(0,l.MZ)({type:[O],readOnly:!0,json:{read:!1,origins:{service:{read:!0}}}})],i.prototype,"subtypes",void 0),(0,r.Cg)([(0,l.MZ)({type:String,json:{read:{source:"timeInfo.trackIdField"}}})],i.prototype,"trackIdField",void 0),(0,r.Cg)([(0,l.MZ)({type:[String],readOnly:!0})],i.prototype,"uniqueIdFields",void 0),(0,r.Cg)([(0,p.w)("service","uniqueIdFields",["uniqueIdInfo.OIDFieldContainsHashValue","uniqueIdInfo.fields"])],i.prototype,"readUniqueIdFields",null),(0,r.Cg)([(0,l.MZ)((0,j.b)({nonStandardUrlAllowed:!0}))],i.prototype,"url",void 0),(0,r.Cg)([(0,l.MZ)({json:{origins:{service:{read:!0}},read:!1}})],i.prototype,"version",void 0),(0,r.Cg)([(0,p.w)("service","version",["currentVersion","capabilities","drawingInfo","hasAttachments","htmlPopupType","relationships","timeInfo","typeIdField","types"])],i.prototype,"readVersion",null),(0,r.Cg)([(0,l.MZ)({readOnly:!0})],i.prototype,"isUrlHostModified",null),i=(0,r.Cg)([(0,a.$)("esri.layers.mixins.FeatureLayerBase")],i),i}},91908:(e,t,i)=>{i.d(t,{D:()=>n});var r=i(60694);const o=[];function n(e,t){if((0,r.Wo)(e.url??""))return!0;const{wkid:i}=t;for(const t of o){if((e.version??0)>=t[0])return!0;if("function"==typeof t[1]&&(t[1]=t[1]()),t[1].has(i))return!1}return!0}o.push([10.91,()=>{const e=new Set([9709,9716,9741,9761,9766]);for(let t=9712;t<=9713;t++)e.add(t);for(let t=9748;t<=9749;t++)e.add(t);for(let t=20904;t<=20932;t++)e.add(t);for(let t=21004;t<=21032;t++)e.add(t);for(let t=21207;t<=21264;t++)e.add(t);for(let t=21307;t<=21364;t++)e.add(t);for(let t=23301;t<=23333;t++)e.add(t);for(let t=102759;t<=102760;t++)e.add(t);for(let t=102934;t<=102955;t++)e.add(t);return e}]),o.push([10.9,()=>{const e=new Set([9300,9354,9364,9367,9373,9377,9387,9456,9473,9498,9678,9680,29874,103599,103872,104028]);for(let t=9356;t<=9360;t++)e.add(t);for(let t=9404;t<=9407;t++)e.add(t);for(let t=9476;t<=9482;t++)e.add(t);for(let t=9487;t<=9494;t++)e.add(t);for(let t=9697;t<=9699;t++)e.add(t);return e}]),o.push([10.81,()=>{const e=new Set([9265,9333,103598,103699]);for(let t=9248;t<=9254;t++)e.add(t);for(let t=9271;t<=9273;t++)e.add(t);for(let t=9284;t<=9285;t++)e.add(t);for(let t=21453;t<=21463;t++)e.add(t);return e}]),o.push([10.8,()=>{const e=new Set([8088,8395,8428,8433,8531,8687,8692,8694,8699,8900,9003,9006,9009,9012,9017,9191]);for(let t=8035;t<=8036;t++)e.add(t);for(let t=8455;t<=8456;t++)e.add(t);for(let t=8518;t<=8529;t++)e.add(t);for(let t=8533;t<=8536;t++)e.add(t);for(let t=8538;t<=8540;t++)e.add(t);for(let t=8677;t<=8679;t++)e.add(t);for(let t=8902;t<=8903;t++)e.add(t);for(let t=8907;t<=8910;t++)e.add(t);for(let t=8949;t<=8951;t++)e.add(t);for(let t=8972;t<=8987;t++)e.add(t);for(let t=9039;t<=9040;t++)e.add(t);for(let t=9068;t<=9069;t++)e.add(t);for(let t=9140;t<=9141;t++)e.add(t);for(let t=9148;t<=9150;t++)e.add(t);for(let t=9153;t<=9159;t++)e.add(t);for(let t=9205;t<=9218;t++)e.add(t);for(let t=9221;t<=9222;t++)e.add(t);for(let t=54098;t<=54101;t++)e.add(t);return e}]),o.push([10.71,()=>{const e=new Set([6316]);for(let t=8351;t<=8353;t++)e.add(t);for(let t=9294;t<=9297;t++)e.add(t);for(let t=22619;t<=22621;t++)e.add(t);for(let t=103586;t<=103594;t++)e.add(t);return e}])},96184:(e,t,i)=>{i.d(t,{A:()=>h});var r=i(31635),o=i(69540),n=i(25482),s=i(10107),l=(i(44208),i(53966),i(87811),i(36005)),p=i(40608),a=i(43937),d=i(64272),u=i(26253),y=i(56400);function c(e,t){return u.T.fromJSON({value:e,unit:t})}let h=class extends((0,o.OU)(n.o)){constructor(e){super(e),this.cumulative=!1,this.endField=null,this.fullTimeExtent=null,this.hasLiveData=!1,this.interval=null,this.startField=null,this.timeZone=null,this.trackIdField=null,this.useTime=!0,this.stops=null}readFullTimeExtent(e,t){return t.timeExtent&&Array.isArray(t.timeExtent)&&2===t.timeExtent.length?d.T.fromArray(t.timeExtent):null}writeFullTimeExtent(e,t){null!=e?.start&&null!=e.end?t.timeExtent=e.toArray():t.timeExtent=null}readInterval(e,t){return t.timeInterval&&t.timeIntervalUnits?c(t.timeInterval,t.timeIntervalUnits):t.defaultTimeInterval&&t.defaultTimeIntervalUnits?c(t.defaultTimeInterval,t.defaultTimeIntervalUnits):null}writeInterval(e,t){t.timeInterval=e?.toJSON().value??null,t.timeIntervalUnits=e?.toJSON().unit??null}};(0,r.Cg)([(0,s.MZ)({type:Boolean,json:{name:"exportOptions.timeDataCumulative",write:!0}})],h.prototype,"cumulative",void 0),(0,r.Cg)([(0,s.MZ)({type:String,json:{name:"endTimeField",write:{enabled:!0,allowNull:!0}}})],h.prototype,"endField",void 0),(0,r.Cg)([(0,s.MZ)({type:d.T,json:{write:{enabled:!0,allowNull:!0}}})],h.prototype,"fullTimeExtent",void 0),(0,r.Cg)([(0,l.w)("fullTimeExtent",["timeExtent"])],h.prototype,"readFullTimeExtent",null),(0,r.Cg)([(0,a.K)("fullTimeExtent")],h.prototype,"writeFullTimeExtent",null),(0,r.Cg)([(0,s.MZ)({type:Boolean,json:{write:!0}})],h.prototype,"hasLiveData",void 0),(0,r.Cg)([(0,s.MZ)({type:u.T,json:{write:{enabled:!0,allowNull:!0}}})],h.prototype,"interval",void 0),(0,r.Cg)([(0,l.w)("interval",["timeInterval","timeIntervalUnits","defaultTimeInterval","defaultTimeIntervalUnits"])],h.prototype,"readInterval",null),(0,r.Cg)([(0,a.K)("interval")],h.prototype,"writeInterval",null),(0,r.Cg)([(0,s.MZ)({type:String,json:{name:"startTimeField",write:{enabled:!0,allowNull:!0}}})],h.prototype,"startField",void 0),(0,r.Cg)([(0,s.MZ)((0,y.P6)("timeReference",!0))],h.prototype,"timeZone",void 0),(0,r.Cg)([(0,s.MZ)({type:String,json:{write:{enabled:!0,allowNull:!0}}})],h.prototype,"trackIdField",void 0),(0,r.Cg)([(0,s.MZ)({type:Boolean,json:{name:"exportOptions.useTime",write:!0}})],h.prototype,"useTime",void 0),(0,r.Cg)([(0,s.MZ)({type:[Date],json:{read:!1}})],h.prototype,"stops",void 0),h=(0,r.Cg)([(0,p.$)("esri.layers.support.TimeInfo")],h)}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8506],{6455:(e,t,i)=>{i.d(t,{FJ:()=>v,Dp:()=>w,KV:()=>C});var r=i(31635),o=i(93637),n=i(10107),s=(i(44208),i(53966),i(87811),i(40608)),l=i(89317),p=i(69540),a=i(7762),d=i(25482),u=i(43937),y=i(83960),c=i(13069);const h={write:{overridePolicy:(e,t,i)=>({enabled:!i||"scale"===i.filterMode})}};let m=class extends((0,p.OU)(d.o)){constructor(e){super(e),this.id=(0,c.lk)(),this.maxScale=0,this.minScale=0,this.title="",this.where=null}};(0,r.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],m.prototype,"id",void 0),(0,r.Cg)([(0,n.MZ)({type:Number,json:h})],m.prototype,"maxScale",void 0),(0,r.Cg)([(0,n.MZ)({type:Number,json:h})],m.prototype,"minScale",void 0),(0,r.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],m.prototype,"title",void 0),(0,r.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],m.prototype,"where",void 0),m=(0,r.Cg)([(0,s.$)("esri.layers.support.DisplayFilter")],m);var g=i(41560);let f=class extends((0,p.OU)(d.o)){constructor(e){super(e),this.activeFilterId=null,this.filters=new(a.A.ofType(m)),this.mode="manual"}writeFilters(e,t,i,r){const o=e.toArray();"scale"===this.mode&&o.sort((e,t)=>{const i=(0,y.oW)(t.minScale,e.minScale),r=e.maxScale-t.maxScale;return 0===i?r:i}),t[i]=o.map(e=>e.toJSON(r))}write(e,t){return super.write(e,(0,g.mW)(this,t))}};(0,r.Cg)([(0,n.MZ)({type:String,json:{write:{overridePolicy:(e,t,i)=>({enabled:"manual"===i.filterMode,isRequired:!0})}}})],f.prototype,"activeFilterId",void 0),(0,r.Cg)([(0,n.MZ)({type:a.A.ofType(m),nonNullable:!0,json:{write:!0}})],f.prototype,"filters",void 0),(0,r.Cg)([(0,u.K)("filters")],f.prototype,"writeFilters",null),(0,r.Cg)([(0,n.MZ)({type:["manual","scale"],nonNullable:!0,json:{name:"filterMode",write:!0}})],f.prototype,"mode",void 0),f=(0,r.Cg)([(0,s.$)("esri.layers.support.DisplayFilterInfo")],f);const v=e=>{const t=e;let i=class extends t{constructor(){super(...arguments),this.displayFilterEnabled=!0,this.displayFilterInfo=null}};return(0,r.Cg)([(0,n.MZ)(w)],i.prototype,"displayFilterEnabled",void 0),(0,r.Cg)([(0,n.MZ)(C)],i.prototype,"displayFilterInfo",void 0),i=(0,r.Cg)([(0,s.$)("esri.layers.mixins.DisplayFilteredLayer")],i),i},w={type:Boolean,json:{name:"layerDefinition.disableDisplayFilter",read:{reader:e=>!e},write:{layerContainerTypes:l.K,writer(e,t,i){(0,o.sM)(i,!e,t)}},origins:{"web-scene":{write:!1,read:!1}}}},C={type:f,json:{name:"layerDefinition.displayFilterInfo",write:{enabled:!0,allowNull:!0,layerContainerTypes:l.K},origins:{"web-scene":{write:!1,read:!1}}}}},10184:(e,t,i)=>{i.d(t,{A:()=>u});var r=i(31635),o=i(69540),n=i(25482),s=i(88930),l=i(10107),p=(i(44208),i(53966),i(87811),i(93223)),a=i(40608),d=i(73133);let u=class extends((0,o.OU)(n.o)){constructor(e){super(e),this.unit="milliseconds",this.value=0}toMilliseconds(){return(0,s.t)(this.value,this.unit,"milliseconds")}};(0,r.Cg)([(0,p.e)(d.j,{nonNullable:!0})],u.prototype,"unit",void 0),(0,r.Cg)([(0,l.MZ)({type:Number,json:{write:!0},nonNullable:!0})],u.prototype,"value",void 0),u=(0,r.Cg)([(0,a.$)("esri.time.TimeInterval")],u)},17036:(e,t,i)=>{i.d(t,{p:()=>p});var r=i(44208),o=i(53966),n=i(20437),s=i(95466),l=i(30524);function p(){return{fields:{type:[n.A],value:null,set:function(e){if(e&&(0,r.A)("big-integer-warning-enabled")){const t=e.filter(e=>"big-integer"===e.type||"oid"===e.type&&(e.length||0)>=8);if(t.length){const e=t.map(e=>`'${e.name}'`).join(", ");o.A.getLogger(this).warn("#fields",`Layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}') references big-integer field(s): ${e}, support for which is experimental. Only integers less than ${Number.MAX_SAFE_INTEGER} (Number.MAX_SAFE_INTEGER) are supported.`)}}this._set("fields",e)}},fieldsIndex:{readOnly:!0,get(){return s.A.fromLayer(this)}},outFields:{type:[String],json:{read:!1},set:function(e){this._userOutFields=e,this.notifyChange("outFields")},get:function(){const e=this._userOutFields;if(!e?.length)return null;if(e.includes("*"))return["*"];if(!this.fields)return e;for(const t of e){const i=this.fieldsIndex?.has(t);i||o.A.getLogger("esri.layers.support.fieldProperties").error("field-attributes-layer:invalid-field",`Invalid field ${t} found in outFields`,{layer:this,outFields:e})}return(0,l.DB)(this.fieldsIndex,e)}}}}},20816:(e,t,i)=>{i.d(t,{TA:()=>o,We:()=>l,Z3:()=>n,ZJ:()=>p,w5:()=>a});var r=i(78888);const o=(0,i(13069).vD)(),n=new Map,s=new Map;async function l(e,t,i){if(!e||!i)return!1;if(!t)return!0;const o=new URL(e).host;let s=n.get(o);if(!s){const t=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,"");s=(await(0,r.A)(t,{responseType:"json",query:{f:"json"}})).data.defaultVersionName}return s===t}async function p(e,t,r=!1){if(!e||!t)return!0;const n=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,""),l=s.get(n)?.entries();if(l)for(const[e,s]of l)if(s.name===t){const t=!s.stack?.hasForwardEdits();if(!t&&r){const[{deleteForwardEdits:t},{default:r}]=await Promise.all([i.e(2186).then(i.bind(i,32186)),i.e(2558).then(i.bind(i,32558))]),l=await t(n,e,new r({sessionId:o,moment:s.moment}));return l.success&&s.stack?.clearForwardEdits(),l.success}return t}return!0}function a(e,t){if(!e)return!1;const i=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,""),r=s.get(i)?.entries();if(r)for(const[e,i]of r)if(i.name===t)return"edit"===i.lockType;return!1}new Map},38141:(e,t,i)=>{i.d(t,{A:()=>nt});var r,o=i(31635),n=i(25482),s=i(4718),l=i(3483),p=i(10107),a=i(79901),d=i(36005),u=i(40608),y=i(43937);i(44208),i(53966),i(87811);let c=r=class extends n.o{constructor(e){super(e),this.expression=null,this.name=null,this.returnType="boolean",this.title=null}clone(){return new r({name:this.name,title:this.title,expression:this.expression,returnType:this.returnType})}};(0,o.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],c.prototype,"expression",void 0),(0,o.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],c.prototype,"name",void 0),(0,o.Cg)([(0,p.MZ)({type:["boolean","date","number","string"],json:{write:!0}})],c.prototype,"returnType",void 0),(0,o.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],c.prototype,"title",void 0),c=r=(0,o.Cg)([(0,u.$)("esri.form.ExpressionInfo")],c);const h=c;let m=class extends n.o{constructor(e){super(e),this.description=null,this.label=null,this.type=null,this.visibilityExpression=null}};(0,o.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],m.prototype,"description",void 0),(0,o.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],m.prototype,"label",void 0),(0,o.Cg)([(0,p.MZ)()],m.prototype,"type",void 0),(0,o.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],m.prototype,"visibilityExpression",void 0),m=(0,o.Cg)([(0,u.$)("esri.form.elements.Element")],m);const g=m;var f=i(56507),v=i(69540);let w=class extends((0,v.OU)(n.o)){constructor(e){super(e),this.type=null}};(0,o.Cg)([(0,p.MZ)()],w.prototype,"type",void 0),w=(0,o.Cg)([(0,u.$)("esri.form.elements.inputs.attachments.Input")],w);const C=w,M=["any","capture","upload"];let x=class extends C{constructor(e){super(e),this.type="audio",this.inputMethod="any",this.maxDuration=null}};(0,o.Cg)([(0,p.MZ)({type:["audio"],readOnly:!0,json:{write:!0}})],x.prototype,"type",void 0),(0,o.Cg)([(0,p.MZ)({type:M,json:{write:!0}})],x.prototype,"inputMethod",void 0),(0,o.Cg)([(0,p.MZ)({type:Number,json:{write:!0}})],x.prototype,"maxDuration",void 0),x=(0,o.Cg)([(0,u.$)("esri.form.elements.inputs.attachments.AudioInput")],x);const b=x;let Z=class extends C{constructor(e){super(e),this.type="document",this.maxFileSize=null}};(0,o.Cg)([(0,p.MZ)({type:["document"],readOnly:!0,json:{write:!0}})],Z.prototype,"type",void 0),(0,o.Cg)([(0,p.MZ)({type:Number,json:{write:!0}})],Z.prototype,"maxFileSize",void 0),Z=(0,o.Cg)([(0,u.$)("esri.form.elements.inputs.attachments.DocumentInput")],Z);const I=Z;let j=class extends C{constructor(e){super(e),this.type="image",this.inputMethod="any",this.maxImageSize=null}};(0,o.Cg)([(0,p.MZ)({type:["image"],readOnly:!0,json:{write:!0}})],j.prototype,"type",void 0),(0,o.Cg)([(0,p.MZ)({type:M,json:{write:!0}})],j.prototype,"inputMethod",void 0),(0,o.Cg)([(0,p.MZ)({type:Number,json:{write:!0}})],j.prototype,"maxImageSize",void 0),j=(0,o.Cg)([(0,u.$)("esri.form.elements.inputs.attachments.ImageInput")],j);const F=j;let S=class extends C{constructor(e){super(e),this.type="signature",this.inputMethod="any"}};(0,o.Cg)([(0,p.MZ)({type:["signature"],readOnly:!0,json:{write:!0}})],S.prototype,"type",void 0),(0,o.Cg)([(0,p.MZ)({type:M,json:{write:!0}})],S.prototype,"inputMethod",void 0),S=(0,o.Cg)([(0,u.$)("esri.form.elements.inputs.attachments.SignatureInput")],S);const E=S;let T=class extends C{constructor(e){super(e),this.type="video",this.inputMethod="any",this.maxDuration=null}};(0,o.Cg)([(0,p.MZ)({type:["video"],readOnly:!0,json:{write:!0}})],T.prototype,"type",void 0),(0,o.Cg)([(0,p.MZ)({type:M,json:{write:!0}})],T.prototype,"inputMethod",void 0),(0,o.Cg)([(0,p.MZ)({type:Number,json:{write:!0}})],T.prototype,"maxDuration",void 0),T=(0,o.Cg)([(0,u.$)("esri.form.elements.inputs.attachments.VideoInput")],T);const O=T;function U(e){return{nestableTypes:{base:C,key:"type",typeMap:{audio:b,document:I,image:F,signature:E,video:O}},allTypes:{base:C,key:"type",typeMap:{attachment:e,audio:b,document:I,image:F,signature:E,video:O}}}}let A=class extends C{constructor(e){super(e),this.type="attachment",this.attachmentAssociationType="exact",this.inputTypes=null}castInputs(e){return function(e,t){return e?e.map(e=>(0,f.aq)(t.nestableTypes,e)):null}(e,R)}readInputs(e,t){return function(e,t){if(!e)return null;const i=t.nestableTypes.typeMap;return e.filter(e=>i[e.type]).map(e=>i[e.type].fromJSON(e))}(t.inputTypes,R)}writeInputs(e,t){t.inputTypes=function(e,t){if(!e)return null;const i=t.nestableTypes.typeMap;return e.filter(e=>i[e.type]).map(e=>e.toJSON())}(e,R)}};(0,o.Cg)([(0,p.MZ)({type:["attachment"],readOnly:!0,json:{write:!0}})],A.prototype,"type",void 0),(0,o.Cg)([(0,p.MZ)({type:["any","exact","exactOrNone"],json:{write:!0}})],A.prototype,"attachmentAssociationType",void 0),(0,o.Cg)([(0,p.MZ)({json:{write:{isRequired:!0}}})],A.prototype,"inputTypes",void 0),(0,o.Cg)([(0,a.w)("inputTypes")],A.prototype,"castInputs",null),(0,o.Cg)([(0,d.w)("inputTypes")],A.prototype,"readInputs",null),(0,o.Cg)([(0,y.K)("inputTypes")],A.prototype,"writeInputs",null),A=(0,o.Cg)([(0,u.$)("esri.form.elements.inputs.attachments.AttachmentInput")],A);const R=U(A);var N;const k=U(A);let D=N=class extends g{constructor(e){super(e),this.allowUserRename=!0,this.attachmentKeyword=null,this.displayFilename=!1,this.editableExpression=null,this.filenameExpression="{attachmentKeyword}_{now}",this.input=null,this.maxAttachmentCount=null,this.minAttachmentCount=null,this.type="attachment",this.useOriginalFilename=!0}clone(){return new N({allowUserRename:this.allowUserRename,attachmentKeyword:this.attachmentKeyword,description:this.description,displayFilename:this.displayFilename,editableExpression:this.editableExpression,filenameExpression:this.filenameExpression,input:this.input?.clone(),label:this.label,maxAttachmentCount:this.maxAttachmentCount,minAttachmentCount:this.minAttachmentCount,useOriginalFilename:this.useOriginalFilename,visibilityExpression:this.visibilityExpression})}};(0,o.Cg)([(0,p.MZ)({type:Boolean,json:{write:!0}})],D.prototype,"allowUserRename",void 0),(0,o.Cg)([(0,p.MZ)({type:String,json:{write:{isRequired:!0}}})],D.prototype,"attachmentKeyword",void 0),(0,o.Cg)([(0,p.MZ)({type:Boolean,json:{write:!0}})],D.prototype,"displayFilename",void 0),(0,o.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],D.prototype,"editableExpression",void 0),(0,o.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],D.prototype,"filenameExpression",void 0),(0,o.Cg)([(0,p.MZ)({types:k.allTypes,json:{read:{source:"inputType"},write:{target:"inputType",isRequired:!0}}})],D.prototype,"input",void 0),(0,o.Cg)([(0,p.MZ)({type:Number,json:{write:!0}})],D.prototype,"maxAttachmentCount",void 0),(0,o.Cg)([(0,p.MZ)({type:Number,json:{write:!0}})],D.prototype,"minAttachmentCount",void 0),(0,o.Cg)([(0,p.MZ)({type:["attachment"],readOnly:!0,json:{read:!1,write:!0}})],D.prototype,"type",void 0),(0,o.Cg)([(0,p.MZ)({type:Boolean,json:{write:!0}})],D.prototype,"useOriginalFilename",void 0),D=N=(0,o.Cg)([(0,u.$)("esri.form.elements.AttachmentElement")],D);const V=D;let $=class extends n.o{constructor(e){super(e),this.type=null}};(0,o.Cg)([(0,p.MZ)()],$.prototype,"type",void 0),$=(0,o.Cg)([(0,u.$)("esri.form.elements.inputs.Input")],$);const L=$;let B=class extends L{constructor(e){super(e),this.maxLength=null,this.minLength=0}};(0,o.Cg)([(0,p.MZ)({type:Number,json:{write:!0}})],B.prototype,"maxLength",void 0),(0,o.Cg)([(0,p.MZ)({type:Number,json:{write:!0}})],B.prototype,"minLength",void 0),B=(0,o.Cg)([(0,u.$)("esri.form.elements.inputs.TextInput")],B);const H=B;var _;let q=_=class extends H{constructor(e){super(e),this.type="barcode-scanner"}clone(){return new _({maxLength:this.maxLength,minLength:this.minLength})}};(0,o.Cg)([(0,p.MZ)({type:["barcode-scanner"],json:{read:!1,write:!0}})],q.prototype,"type",void 0),q=_=(0,o.Cg)([(0,u.$)("esri.form.elements.inputs.BarcodeScannerInput")],q);const P=q;var K;let G=K=class extends L{constructor(e){super(e),this.noValueOptionLabel=null,this.showNoValueOption=!0,this.type="combo-box"}clone(){return new K({showNoValueOption:this.showNoValueOption,noValueOptionLabel:this.noValueOptionLabel})}};(0,o.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],G.prototype,"noValueOptionLabel",void 0),(0,o.Cg)([(0,p.MZ)({type:Boolean,json:{write:!0}})],G.prototype,"showNoValueOption",void 0),(0,o.Cg)([(0,p.MZ)({type:["combo-box"],json:{read:!1,write:!0}})],G.prototype,"type",void 0),G=K=(0,o.Cg)([(0,u.$)("esri.form.elements.inputs.ComboBoxInput")],G);const W=G;var Q;function J(e){return null!=e?e:null}function z(e){return null!=e?e:null}let X=Q=class extends L{constructor(e){super(e),this.max=null,this.min=null,this.type="date-picker"}readMax(e,t){return J(t.max)}writeMax(e,t){t.max=z(e)}readMin(e,t){return J(t.min)}writeMin(e,t){t.min=z(e)}clone(){return new Q({max:this.max,min:this.min})}};(0,o.Cg)([(0,p.MZ)({type:String,json:{type:String,write:!0}})],X.prototype,"max",void 0),(0,o.Cg)([(0,d.w)("max")],X.prototype,"readMax",null),(0,o.Cg)([(0,y.K)("max")],X.prototype,"writeMax",null),(0,o.Cg)([(0,p.MZ)({type:String,json:{type:String,write:!0}})],X.prototype,"min",void 0),(0,o.Cg)([(0,d.w)("min")],X.prototype,"readMin",null),(0,o.Cg)([(0,y.K)("min")],X.prototype,"writeMin",null),(0,o.Cg)([(0,p.MZ)({type:["date-picker"],json:{read:!1,write:!0}})],X.prototype,"type",void 0),X=Q=(0,o.Cg)([(0,u.$)("esri.form.elements.inputs.DatePickerInput")],X);const Y=X;var ee;function te(e){return null!=e?e:null}function ie(e){return null!=e?e:null}let re=ee=class extends L{constructor(e){super(e),this.includeTimeOffset=!0,this.max=null,this.min=null,this.timeResolution="minutes",this.type="datetimeoffset-picker"}readMax(e,t){return te(t.max)}writeMax(e,t){t.max=ie(e)}readMin(e,t){return te(t.min)}writeMin(e,t){t.min=ie(e)}readTimeResolution(e,t){return te(t.timeResolution)}writeTimeResolution(e,t){t.timeResolution=ie(e)}clone(){return new ee({includeTimeOffset:this.includeTimeOffset,max:this.max,min:this.min,timeResolution:this.timeResolution})}};(0,o.Cg)([(0,p.MZ)({type:Boolean,json:{write:!0}})],re.prototype,"includeTimeOffset",void 0),(0,o.Cg)([(0,p.MZ)({type:String,json:{type:String,write:!0}})],re.prototype,"max",void 0),(0,o.Cg)([(0,d.w)("max")],re.prototype,"readMax",null),(0,o.Cg)([(0,y.K)("max")],re.prototype,"writeMax",null),(0,o.Cg)([(0,p.MZ)({type:String,json:{type:String,write:!0}})],re.prototype,"min",void 0),(0,o.Cg)([(0,d.w)("min")],re.prototype,"readMin",null),(0,o.Cg)([(0,y.K)("min")],re.prototype,"writeMin",null),(0,o.Cg)([(0,p.MZ)({type:String,json:{type:String,write:!0}})],re.prototype,"timeResolution",void 0),(0,o.Cg)([(0,d.w)("timeResolution")],re.prototype,"readTimeResolution",null),(0,o.Cg)([(0,y.K)("timeResolution")],re.prototype,"writeTimeResolution",null),(0,o.Cg)([(0,p.MZ)({type:["datetimeoffset-picker"],json:{read:!1,write:!0}})],re.prototype,"type",void 0),re=ee=(0,o.Cg)([(0,u.$)("esri.form.elements.inputs.DateTimeOffsetPickerInput")],re);const oe=re;var ne;function se(e){return null!=e?new Date(e):null}function le(e){return e?e.getTime():null}let pe=ne=class extends L{constructor(e){super(e),this.includeTime=!1,this.max=null,this.min=null,this.type="datetime-picker"}readMax(e,t){return se(t.max)}writeMax(e,t){t.max=le(e)}readMin(e,t){return se(t.min)}writeMin(e,t){t.min=le(e)}clone(){return new ne({includeTime:this.includeTime,max:this.max,min:this.min})}};(0,o.Cg)([(0,p.MZ)({type:Boolean,json:{write:!0}})],pe.prototype,"includeTime",void 0),(0,o.Cg)([(0,p.MZ)({type:Date,json:{type:Number,write:!0}})],pe.prototype,"max",void 0),(0,o.Cg)([(0,d.w)("max")],pe.prototype,"readMax",null),(0,o.Cg)([(0,y.K)("max")],pe.prototype,"writeMax",null),(0,o.Cg)([(0,p.MZ)({type:Date,json:{type:Number,write:!0}})],pe.prototype,"min",void 0),(0,o.Cg)([(0,d.w)("min")],pe.prototype,"readMin",null),(0,o.Cg)([(0,y.K)("min")],pe.prototype,"writeMin",null),(0,o.Cg)([(0,p.MZ)({type:["datetime-picker"],json:{read:!1,write:!0}})],pe.prototype,"type",void 0),pe=ne=(0,o.Cg)([(0,u.$)("esri.form.elements.inputs.DateTimePickerInput")],pe);const ae=pe;var de;let ue=de=class extends L{constructor(e){super(e),this.noValueOptionLabel=null,this.showNoValueOption=!0,this.type="radio-buttons"}clone(){return new de({noValueOptionLabel:this.noValueOptionLabel,showNoValueOption:this.showNoValueOption})}};(0,o.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],ue.prototype,"noValueOptionLabel",void 0),(0,o.Cg)([(0,p.MZ)({type:Boolean,json:{write:!0}})],ue.prototype,"showNoValueOption",void 0),(0,o.Cg)([(0,p.MZ)({type:["radio-buttons"],json:{read:!1,write:!0}})],ue.prototype,"type",void 0),ue=de=(0,o.Cg)([(0,u.$)("esri.form.elements.inputs.RadioButtonsInput")],ue);const ye=ue;var ce;let he=ce=class extends L{constructor(e){super(e),this.offValue=null,this.onValue=null,this.type="switch"}clone(){return new ce({offValue:this.offValue,onValue:this.onValue})}};(0,o.Cg)([(0,p.MZ)({type:[String,Number],json:{write:!0}})],he.prototype,"offValue",void 0),(0,o.Cg)([(0,p.MZ)({type:[String,Number],json:{write:!0}})],he.prototype,"onValue",void 0),(0,o.Cg)([(0,p.MZ)({type:["switch"],json:{read:!1,write:!0}})],he.prototype,"type",void 0),he=ce=(0,o.Cg)([(0,u.$)("esri.form.elements.inputs.SwitchInput")],he);const me=he;var ge;let fe=ge=class extends H{constructor(e){super(e),this.type="text-area"}clone(){return new ge({maxLength:this.maxLength,minLength:this.minLength})}};(0,o.Cg)([(0,p.MZ)({type:["text-area"],json:{read:!1,write:!0}})],fe.prototype,"type",void 0),fe=ge=(0,o.Cg)([(0,u.$)("esri.form.elements.inputs.TextAreaInput")],fe);const ve=fe;var we;let Ce=we=class extends H{constructor(e){super(e),this.type="text-box"}clone(){return new we({maxLength:this.maxLength,minLength:this.minLength})}};(0,o.Cg)([(0,p.MZ)({type:["text-box"],json:{read:!1,write:!0}})],Ce.prototype,"type",void 0),Ce=we=(0,o.Cg)([(0,u.$)("esri.form.elements.inputs.TextBoxInput")],Ce);const Me=Ce;var xe;function be(e){return null!=e?e:null}function Ze(e){return null!=e?e:null}let Ie=xe=class extends L{constructor(e){super(e),this.max=null,this.min=null,this.timeResolution="minutes",this.type="time-picker"}readMax(e,t){return be(t.max)}writeMax(e,t){t.max=Ze(e)}readMin(e,t){return be(t.min)}writeMin(e,t){t.min=Ze(e)}readTimeResolution(e,t){return be(t.timeResolution)}writeTimeResolution(e,t){t.timeResolution=Ze(e)}clone(){return new xe({max:this.max,min:this.min,timeResolution:this.timeResolution})}};(0,o.Cg)([(0,p.MZ)({type:String,json:{type:String,write:!0}})],Ie.prototype,"max",void 0),(0,o.Cg)([(0,d.w)("max")],Ie.prototype,"readMax",null),(0,o.Cg)([(0,y.K)("max")],Ie.prototype,"writeMax",null),(0,o.Cg)([(0,p.MZ)({type:String,json:{type:String,write:!0}})],Ie.prototype,"min",void 0),(0,o.Cg)([(0,d.w)("min")],Ie.prototype,"readMin",null),(0,o.Cg)([(0,y.K)("min")],Ie.prototype,"writeMin",null),(0,o.Cg)([(0,p.MZ)({type:String,json:{type:String,write:!0}})],Ie.prototype,"timeResolution",void 0),(0,o.Cg)([(0,d.w)("timeResolution")],Ie.prototype,"readTimeResolution",null),(0,o.Cg)([(0,y.K)("timeResolution")],Ie.prototype,"writeTimeResolution",null),(0,o.Cg)([(0,p.MZ)({type:["time-picker"],json:{read:!1,write:!0}})],Ie.prototype,"type",void 0),Ie=xe=(0,o.Cg)([(0,u.$)("esri.form.elements.inputs.TimePickerInput")],Ie);const je={base:L,key:"type",typeMap:{"barcode-scanner":P,"combo-box":W,"date-picker":Y,"datetime-picker":ae,"datetimeoffset-picker":oe,"radio-buttons":ye,switch:me,"text-area":ve,"text-box":Me,"time-picker":Ie}};var Fe,Se=i(80451);let Ee=Fe=class extends g{constructor(e){super(e),this.domain=null,this.editable=null,this.editableExpression=null,this.fieldName=null,this.hint=null,this.input=null,this.requiredExpression=null,this.type="field",this.valueExpression=null}clone(){return new Fe({description:this.description,domain:this.domain,editable:this.editable,editableExpression:this.editableExpression,fieldName:this.fieldName,hint:this.hint,input:this.input,label:this.label,requiredExpression:this.requiredExpression,valueExpression:this.valueExpression,visibilityExpression:this.visibilityExpression})}};(0,o.Cg)([(0,p.MZ)({types:Se.gK,json:{read:{reader:Se.rS},write:!0}})],Ee.prototype,"domain",void 0),(0,o.Cg)([(0,p.MZ)({type:Boolean,json:{write:!0}})],Ee.prototype,"editable",void 0),(0,o.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],Ee.prototype,"editableExpression",void 0),(0,o.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],Ee.prototype,"fieldName",void 0),(0,o.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],Ee.prototype,"hint",void 0),(0,o.Cg)([(0,p.MZ)({types:je,json:{read:{source:"inputType"},write:{target:"inputType"}}})],Ee.prototype,"input",void 0),(0,o.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],Ee.prototype,"requiredExpression",void 0),(0,o.Cg)([(0,p.MZ)({type:String,json:{read:!1,write:!0}})],Ee.prototype,"type",void 0),(0,o.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],Ee.prototype,"valueExpression",void 0),Ee=Fe=(0,o.Cg)([(0,u.$)("esri.form.elements.FieldElement")],Ee);const Te=Ee;var Oe,Ue=i(49852);let Ae=Oe=class extends g{constructor(e){super(e),this.displayCount=null,this.displayType="list",this.editableExpression=null,this.orderByFields=null,this.relationshipId=null,this.type="relationship"}clone(){return new Oe({description:this.description,displayCount:this.displayCount,displayType:this.displayType,editableExpression:this.editableExpression,label:this.label,orderByFields:(0,s.o8)(this.orderByFields),relationshipId:this.relationshipId,visibilityExpression:this.visibilityExpression})}};(0,o.Cg)([(0,p.MZ)({type:Number,json:{write:!0}})],Ae.prototype,"displayCount",void 0),(0,o.Cg)([(0,p.MZ)({type:["list"],json:{write:!0}})],Ae.prototype,"displayType",void 0),(0,o.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],Ae.prototype,"editableExpression",void 0),(0,o.Cg)([(0,p.MZ)({type:[Ue.A],json:{write:!0}})],Ae.prototype,"orderByFields",void 0),(0,o.Cg)([(0,p.MZ)({type:Number,json:{write:!0}})],Ae.prototype,"relationshipId",void 0),(0,o.Cg)([(0,p.MZ)({type:["relationship"],json:{read:!1,write:!0}})],Ae.prototype,"type",void 0),Ae=Oe=(0,o.Cg)([(0,u.$)("esri.form.elements.RelationshipElement")],Ae);const Re=Ae;var Ne;let ke=Ne=class extends g{constructor(e){super(e),this.text=null,this.textFormat="plain-text",this.type="text"}clone(){return new Ne({text:this.text,textFormat:this.textFormat,visibilityExpression:this.visibilityExpression})}};(0,o.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],ke.prototype,"text",void 0),(0,o.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],ke.prototype,"textFormat",void 0),(0,o.Cg)([(0,p.MZ)({type:["text"],readOnly:!0,json:{read:!1,write:!0}})],ke.prototype,"type",void 0),ke=Ne=(0,o.Cg)([(0,u.$)("esri.form.elements.TextElement")],ke);const De=ke;var Ve=i(83342);let $e=class extends((0,v.OU)(g)){constructor(e){super(e),this.associationTypes=null,this.editableExpression=null,this.type="utilityNetworkAssociations"}};(0,o.Cg)([(0,p.MZ)({type:[Ve.A],json:{write:{isRequired:!0}}})],$e.prototype,"associationTypes",void 0),(0,o.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],$e.prototype,"editableExpression",void 0),(0,o.Cg)([(0,p.MZ)({type:["utilityNetworkAssociations"],json:{read:!1,write:!0}})],$e.prototype,"type",void 0),$e=(0,o.Cg)([(0,u.$)("esri.form.elements.UtilityNetworkAssociationsElement")],$e);const Le=$e,Be=e=>"field"===e.type,He=e=>"group"===e.type,_e=e=>"text"===e.type;function qe(e){return{typesWithGroup:{base:g,key:"type",typeMap:{attachment:V,field:Te,group:e,relationship:Re,text:De,utilityNetworkAssociations:Le}},typesWithoutGroup:{base:g,key:"type",typeMap:{attachment:V,field:Te,relationship:Re,text:De,utilityNetworkAssociations:Le}}}}function Pe(e,t,i=!0){if(!e)return null;const r=i?t.typesWithGroup.typeMap:t.typesWithoutGroup.typeMap;return e.filter(e=>r[e.type]).map(e=>r[e.type].fromJSON(e))}function Ke(e,t,i=!0){if(!e)return null;const r=i?t.typesWithGroup.typeMap:t.typesWithoutGroup.typeMap;return e.filter(e=>r[e.type]).map(e=>e.toJSON())}function Ge(e,t,i=!0){return e?e.map(e=>(0,f.aq)(i?t.typesWithGroup:t.typesWithoutGroup,e)):null}var We;let Qe=We=class extends g{constructor(e){super(e),this.elements=null,this.initialState="expanded",this.type="group"}castElements(e){return Ge(e,Je,!1)}readElements(e,t){return Pe(t.formElements,Je,!1)}writeElements(e,t){t.formElements=Ke(e,Je,!1)}clone(){return new We({description:this.description,elements:(0,s.o8)(this.elements),initialState:this.initialState,label:this.label,visibilityExpression:this.visibilityExpression})}};(0,o.Cg)([(0,p.MZ)({json:{write:!0}})],Qe.prototype,"elements",void 0),(0,o.Cg)([(0,a.w)("elements")],Qe.prototype,"castElements",null),(0,o.Cg)([(0,d.w)("elements",["formElements"])],Qe.prototype,"readElements",null),(0,o.Cg)([(0,y.K)("elements")],Qe.prototype,"writeElements",null),(0,o.Cg)([(0,p.MZ)({type:["collapsed","expanded"],json:{write:!0}})],Qe.prototype,"initialState",void 0),(0,o.Cg)([(0,p.MZ)({type:String,json:{read:!1,write:!0}})],Qe.prototype,"type",void 0),Qe=We=(0,o.Cg)([(0,u.$)("esri.form.elements.GroupElement")],Qe);const Je=qe(Qe),ze=Qe;var Xe,Ye=i(30524);const et=qe(ze);let tt=Xe=class extends n.o{constructor(e){super(e),this.description=null,this.elements=null,this.expressionInfos=null,this.preserveFieldValuesWhenHidden=!1,this.title=null}castElements(e){return Ge(e,et)}readElements(e,t){return Pe(t.formElements,et)}writeElements(e,t){t.formElements=Ke(e,et)}clone(){return new Xe({description:this.description,expressionInfos:(0,s.o8)(this.expressionInfos),elements:(0,s.o8)(this.elements),title:this.title,preserveFieldValuesWhenHidden:this.preserveFieldValuesWhenHidden})}async getFieldsUsed(e,t){const i=new Set,{description:r,elements:o,expressionInfos:n,title:s}=this;if(ot(i,e,r),ot(i,e,s),!o)return[];const l=function(e,t){if(!t||0===t.length)return[];const i=rt(e),r=[];for(const e of t)i.has(e.name)&&r.push(e.expression);return r}(o,n).map(t=>(0,Ye.Dx)(i,e,t));await Promise.all(l);for(const r of o)it(i,{fieldsIndex:e,relationships:t},r);return Array.from(i).sort()}};function it(e,t,i){const{fieldsIndex:r}=t;if(!r||r.fields.length!==e.size)switch(ot(e,r,i.label),ot(e,r,i.description),i.type){case"field":(0,Ye.rq)(e,r,i.fieldName);break;case"group":i.elements.forEach(i=>it(e,t,i));break;case"relationship":if(t.relationships){const o=t.relationships.find(e=>e.id===i.relationshipId);o&&(0,Ye.rq)(e,r,o.keyField)}(0,Ye._w)(e,r,i.orderByFields?.map(e=>e.field));break;case"text":ot(e,r,i.text)}}function rt(e){const t=new Set;for(const i of e)if((0,l.kb)(t,i.visibilityExpression),!_e(i))if(He(i))(0,l.FB)(t,rt(i.elements));else if((0,l.kb)(t,i.editableExpression),Be(i)){const{requiredExpression:e,valueExpression:r}=i;(0,l.FB)(t,[e,r])}return t}function ot(e,t,i){(0,Ye._w)(e,t,(0,Ye.nw)(i))}(0,o.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],tt.prototype,"description",void 0),(0,o.Cg)([(0,p.MZ)({json:{write:!0}})],tt.prototype,"elements",void 0),(0,o.Cg)([(0,a.w)("elements")],tt.prototype,"castElements",null),(0,o.Cg)([(0,d.w)("elements",["formElements"])],tt.prototype,"readElements",null),(0,o.Cg)([(0,y.K)("elements")],tt.prototype,"writeElements",null),(0,o.Cg)([(0,p.MZ)({type:[h],json:{write:!0}})],tt.prototype,"expressionInfos",void 0),(0,o.Cg)([(0,p.MZ)({type:Boolean,json:{default:!1,write:!0}})],tt.prototype,"preserveFieldValuesWhenHidden",void 0),(0,o.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],tt.prototype,"title",void 0),tt=Xe=(0,o.Cg)([(0,u.$)("esri.form.FormTemplate")],tt);const nt=tt},47685:(e,t,i)=>{i.d(t,{Mk:()=>m,Zk:()=>c,w6:()=>v});var r=i(31635),o=i(65529),n=i(4718),s=i(74887),l=i(10107),p=(i(44208),i(53966),i(40608)),a=i(20816);const d=new o.bk;function u(e){return d.on("apply-edits",new WeakRef(e))}function y(e){return d.on("update-moment",new WeakRef(e))}function c(e,t,i=null,r=!1){const o=(0,s.Tw)();return r=null==t||r,d.emit("apply-edits",{serviceUrl:e,layerId:t,gdbVersion:i,mayReceiveServiceEdits:r,result:o.promise}),o}const h=Symbol();function m(e){return null!=e&&"object"==typeof e&&h in e}function g(e){return null!=e&&"object"==typeof e&&"gdbVersion"in e}function f(e,t,i){const r=new URL(e).host,o=a.Z3.get(r),n=e=>!e||e===o;return n(t)&&n(i)||t===i}const v=e=>{var t;const i=e;let o=class extends i{static{t=h}constructor(...e){super(...e),this[t]=!0,this._applyEditsHandler=e=>{const{serviceUrl:t,layerId:i,gdbVersion:r,mayReceiveServiceEdits:o,result:s}=e,l=t===this.url,p=null!=i&&null!=this.layerId&&i===this.layerId,a=g(this),d=g(this)&&f(t,r,this.gdbVersion);if(!l||a&&!d||!p&&!o)return;const u=s.then(e=>{if(this.lastEditsEventDate=new Date,p&&(e.addedFeatures.length||e.updatedFeatures.length||e.deletedFeatures.length||e.addedAttachments.length||e.updatedAttachments.length||e.deletedAttachments.length))return this.emit("edits",(0,n.o8)(e)),e;const i=e.editedFeatures?.find(({layerId:e})=>e===this.layerId);if(i){const{adds:t,updates:r,deletes:o}=i.editedFeatures,s={edits:null,addedAttachments:[],deletedAttachments:[],updatedAttachments:[],addedFeatures:t?t.map(({attributes:e})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]})):[],deletedFeatures:o?o.map(({attributes:e})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]})):[],updatedFeatures:r?r.map(({current:{attributes:e}})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]})):[],editedFeatures:(0,n.o8)(e.editedFeatures),exceededTransferLimit:!1,historicMoment:(0,n.o8)(e.historicMoment)};return this.emit("edits",s),s}const o={edits:null,addedAttachments:[],deletedAttachments:[],updatedAttachments:[],addedFeatures:[],deletedFeatures:[],updatedFeatures:[],editedFeatures:(0,n.o8)(e.editedFeatures),exceededTransferLimit:!1,historicMoment:(0,n.o8)(e.historicMoment)};return"historicMoment"in this&&this._shouldUpdateHistoricMoment(t,r,o.historicMoment)&&this.emit("edits",o),o}).then(e=>("historicMoment"in this&&this._shouldUpdateHistoricMoment(t,r,e.historicMoment)&&(this.historicMoment=e.historicMoment),e));this.emit("apply-edits",{result:u})},this._updateMomentHandler=e=>{const{serviceUrl:t,gdbVersion:i,moment:r}=e,o=t===this.url,n=g(this),s=g(this)&&f(t,i,this.gdbVersion),l=g(this)&&!f(t,this.gdbVersion,null);o&&n&&s&&l&&"historicMoment"in this&&this.historicMoment!==r&&(this.historicMoment=r)},this.when().then(()=>{this.addHandles(u(this._applyEditsHandler)),"historicMoment"in this&&this.addHandles(y(this._updateMomentHandler))},()=>{})}_shouldUpdateHistoricMoment(e,t,i){return"historicMoment"in this&&this.historicMoment!==i&&(0,a.w5)(e,t)}};return(0,r.Cg)([(0,l.MZ)()],o.prototype,"lastEditsEventDate",void 0),o=(0,r.Cg)([(0,p.$)("esri.layers.mixins.EditBusLayer")],o),o}},54239:(e,t,i)=>{i.d(t,{A:()=>f});var r,o=i(31635),n=i(4576),s=i(66552),l=i(25482),p=i(83047),a=i(67076),d=i(10107),u=(i(44208),i(53966),i(36005)),y=i(40608),c=i(43937);const h=(0,s.O)()({orthometric:"gravity-related-height",gravity_related_height:"gravity-related-height",ellipsoidal:"ellipsoidal"}),m=h.jsonValues.slice();(0,n.Xy)(m,"orthometric");const g=(0,s.O)()({meter:"meters",foot:"feet","us-foot":"us-feet","clarke-foot":"clarke-feet","clarke-yard":"clarke-yards","clarke-link":"clarke-links","sears-yard":"sears-yards","sears-foot":"sears-feet","sears-chain":"sears-chains","benoit-1895-b-chain":"benoit-1895-b-chains","indian-yard":"indian-yards","indian-1937-yard":"indian-1937-yards","gold-coast-foot":"gold-coast-feet","sears-1922-truncated-chain":"sears-1922-truncated-chains","50-kilometers":"50-kilometers","150-kilometers":"150-kilometers"});let f=r=class extends l.o{constructor(e){super(e),this.heightModel="gravity-related-height",this.heightUnit="meters",this.vertCRS=null}writeHeightModel(e,t,i){return h.write(e,t,i)}readHeightModel(e,t,i){return h.read(e)||(i?.messages&&i.messages.push(function(e,t){return new a.A("height-model:unsupported",`Height model of value '${e}' is not supported`,t)}(e,{context:i})),null)}readHeightUnit(e,t,i){return g.read(e)||(i?.messages&&i.messages.push(v(e,{context:i})),null)}readHeightUnitService(e,t,i){return(0,p.LA)(e)||g.read(e)||(i?.messages&&i.messages.push(v(e,{context:i})),null)}readVertCRS(e,t){return t.vertCRS||t.ellipsoid||t.geoid}clone(){return new r({heightModel:this.heightModel,heightUnit:this.heightUnit,vertCRS:this.vertCRS})}equals(e){return!!e&&(this===e||this.heightModel===e.heightModel&&this.heightUnit===e.heightUnit&&this.vertCRS===e.vertCRS)}static deriveUnitFromSR(e,t){const i=(0,p.k1)(t);return new r({heightModel:e.heightModel,heightUnit:i??void 0,vertCRS:e.vertCRS})}write(e,t){return t={origin:"web-scene",...t},super.write(e,t)}static fromJSON(e){if(!e)return null;const t=new r;return t.read(e,{origin:"web-scene"}),t}};function v(e,t){return new a.A("height-unit:unsupported",`Height unit of value '${e}' is not supported`,t)}(0,o.Cg)([(0,d.MZ)({type:h.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:m,default:"ellipsoidal",write:{isRequired:!0}}}}})],f.prototype,"heightModel",void 0),(0,o.Cg)([(0,c.K)("web-scene","heightModel")],f.prototype,"writeHeightModel",null),(0,o.Cg)([(0,u.w)(["web-scene","service"],"heightModel")],f.prototype,"readHeightModel",null),(0,o.Cg)([(0,d.MZ)({type:g.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:g.jsonValues,write:{writer:g.write,isRequired:!0}}}}})],f.prototype,"heightUnit",void 0),(0,o.Cg)([(0,u.w)("web-scene","heightUnit")],f.prototype,"readHeightUnit",null),(0,o.Cg)([(0,u.w)("service","heightUnit")],f.prototype,"readHeightUnitService",null),(0,o.Cg)([(0,d.MZ)({type:String,constructOnly:!0,json:{origins:{"web-scene":{write:!0}}}})],f.prototype,"vertCRS",void 0),(0,o.Cg)([(0,u.w)("service","vertCRS",["vertCRS","ellipsoid","geoid"])],f.prototype,"readVertCRS",null),f=r=(0,o.Cg)([(0,y.$)("esri.geometry.HeightModelInfo")],f)},73133:(e,t,i)=>{i.d(t,{j:()=>r});const r=(0,i(66552).O)()({esriTimeUnitsMilliseconds:"milliseconds",esriTimeUnitsSeconds:"seconds",esriTimeUnitsMinutes:"minutes",esriTimeUnitsHours:"hours",esriTimeUnitsDays:"days",esriTimeUnitsWeeks:"weeks",esriTimeUnitsMonths:"months",esriTimeUnitsYears:"years",esriTimeUnitsDecades:"decades",esriTimeUnitsCenturies:"centuries",esriTimeUnitsUnknown:void 0})},73179:(e,t,i)=>{i.d(t,{b:()=>p,h:()=>a});var r=i(4718),o=i(53966),n=i(84952),s=i(60694),l=i(10873);function p(e){const{nonStandardUrlAllowed:t=!1,separator:i}=e??{},n=(0,r.o8)(l.OZ),p=n.json?.write;return"object"==typeof p&&p&&(p.writer=function(e,t,r,o){(0,s.LS)(this,e,i,t,o)}),{...n,set:function(e){if(null==e)return void this._set("url",e);const i=(0,s.HZ)({layer:this,url:e,nonStandardUrlAllowed:t,logger:o.A.getLogger(this)});this._set("url",i.url),null!=i.layerId&&this._set("layerId",i.layerId)}}}function a(e,t){const{separator:i}=t??{},r=(0,n.An)(e.url);return null!=r&&(null!=e.dynamicDataSource?r.path=(0,n.fj)(r.path,"dynamicLayer"):null!=e.layerId&&(r.path=(0,n.fj)(r.path,i??"",e.layerId.toString()))),r}},82935:(e,t,i)=>{i.d(t,{B:()=>c,e:()=>h});var r=i(31635),o=i(10107),n=(i(44208),i(53966),i(87811),i(36005)),s=i(40608),l=i(89317),p=i(30524),a=i(96184),d=i(73133),u=i(79677),y=i(10184);const c={type:Boolean,json:{read:{source:"timeAnimation"},write:{target:"timeAnimation",layerContainerTypes:l.K}}},h=e=>{const t=e;let i=class extends t{constructor(){super(...arguments),this.timeExtent=null,this.timeOffset=null,this.useViewTime=!0}readOffset(e,t){const i=t.timeInfo.exportOptions;if(!i)return null;const r=i.timeOffset,o=d.j.fromJSON(i.timeOffsetUnits);return r&&o?new y.A({value:r,unit:o}):null}set timeInfo(e){(0,p.sv)(e,this.fieldsIndex),this._set("timeInfo",e)}};return(0,r.Cg)([(0,o.MZ)({type:u.A,json:{write:!1}})],i.prototype,"timeExtent",void 0),(0,r.Cg)([(0,o.MZ)({type:y.A})],i.prototype,"timeOffset",void 0),(0,r.Cg)([(0,n.w)("service","timeOffset",["timeInfo.exportOptions"])],i.prototype,"readOffset",null),(0,r.Cg)([(0,o.MZ)({value:null,type:a.A,json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],i.prototype,"timeInfo",null),(0,r.Cg)([(0,o.MZ)(c)],i.prototype,"useViewTime",void 0),i=(0,r.Cg)([(0,s.$)("esri.layers.mixins.TemporalLayer")],i),i}},83960:(e,t,i)=>{i.d(t,{X_:()=>s,oW:()=>p,zx:()=>l});var r=i(34727),o=i(83047);const n=96;function s(e,t){const i=t||e.extent,r=e.width,s=(0,o.GA)(i?.spatialReference);return i&&r?i.width/r*s*o.dy*n:0}function l(e,t,i){return function(e,t){return 0===t||(0,r.Sp)(e,t)||e<t}(e,t)&&function(e,t){return 0===t||(0,r.Sp)(e,t)||e>t}(e,i)}function p(e,t){return(0,r.Sp)(e,t)?0:(e||Number.POSITIVE_INFINITY)>(t||Number.POSITIVE_INFINITY)?1:-1}},87796:(e,t,i)=>{i.d(t,{j:()=>A});var r=i(31635),o=i(7762),n=i(4718),s=i(84952),l=i(10107),p=(i(44208),i(53966),i(36005)),a=i(40608),d=i(89317),u=i(35666),y=i(5443),c=i(54239),h=i(16930),m=i(10873),g=i(69540),f=i(25482),v=(i(87811),i(56400));let w=class extends((0,g.OU)(f.o)){constructor(e){super(e),this.creatorField=null,this.creationDateField=null,this.editorField=null,this.editDateField=null,this.realm=null,this.timeZone=null}};(0,r.Cg)([(0,l.MZ)()],w.prototype,"creatorField",void 0),(0,r.Cg)([(0,l.MZ)()],w.prototype,"creationDateField",void 0),(0,r.Cg)([(0,l.MZ)()],w.prototype,"editorField",void 0),(0,r.Cg)([(0,l.MZ)()],w.prototype,"editDateField",void 0),(0,r.Cg)([(0,l.MZ)()],w.prototype,"realm",void 0),(0,r.Cg)([(0,l.MZ)((0,v.P6)("dateFieldsTimeReference",!0))],w.prototype,"timeZone",void 0),w=(0,r.Cg)([(0,a.$)("esri.layers.support.EditFieldsInfo")],w);let C=class extends((0,g.OU)(f.o)){constructor(e){super(e)}};(0,r.Cg)([(0,l.MZ)({constructOnly:!0,json:{write:!0}})],C.prototype,"name",void 0),(0,r.Cg)([(0,l.MZ)({constructOnly:!0,json:{write:!0}})],C.prototype,"fields",void 0),(0,r.Cg)([(0,l.MZ)({constructOnly:!0,json:{write:!0}})],C.prototype,"isAscending",void 0),(0,r.Cg)([(0,l.MZ)({constructOnly:!0,json:{write:!0}})],C.prototype,"indexType",void 0),(0,r.Cg)([(0,l.MZ)({constructOnly:!0,json:{write:!0}})],C.prototype,"isUnique",void 0),(0,r.Cg)([(0,l.MZ)({constructOnly:!0,json:{write:!0}})],C.prototype,"description",void 0),C=(0,r.Cg)([(0,a.$)("esri.layers.support.FeatureIndex")],C);var M=i(15426),x=i(83047);let b=class extends((0,g.OU)(f.o)){constructor(e){super(e),this.shapeAreaField=null,this.shapeLengthField=null,this.units=null}};(0,r.Cg)([(0,l.MZ)({type:String,json:{read:{source:"shapeAreaFieldName"}}})],b.prototype,"shapeAreaField",void 0),(0,r.Cg)([(0,l.MZ)({type:String,json:{read:{source:"shapeLengthFieldName"}}})],b.prototype,"shapeLengthField",void 0),(0,r.Cg)([(0,l.MZ)({type:String,json:{read:e=>x.dk.read(e)||x.Sk.read(e)}})],b.prototype,"units",void 0),b=(0,r.Cg)([(0,a.$)("esri.layers.support.GeometryFieldsInfo")],b);var Z=i(37352),I=i(77548),j=i(73179),F=i(45067),S=i(22453),E=i(43937),T=i(80451);let O=class extends((0,g.OU)(f.o)){constructor(e){super(e),this.code=null,this.defaultValues={},this.domains=null,this.name=null}readDomains(e){if(!e)return null;const t={};for(const i of Object.keys(e))t[i]=(0,T.rS)(e[i]);return t}writeDomains(e,t){if(!e)return;const i={};for(const t of Object.keys(e))e[t]&&(i[t]=e[t]?.toJSON());t.domains=i}};(0,r.Cg)([(0,l.MZ)({type:Number,json:{write:!0}})],O.prototype,"code",void 0),(0,r.Cg)([(0,l.MZ)({type:Object,json:{write:!0}})],O.prototype,"defaultValues",void 0),(0,r.Cg)([(0,l.MZ)({json:{write:!0}})],O.prototype,"domains",void 0),(0,r.Cg)([(0,p.w)("domains")],O.prototype,"readDomains",null),(0,r.Cg)([(0,E.K)("domains")],O.prototype,"writeDomains",null),(0,r.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],O.prototype,"name",void 0),O=(0,r.Cg)([(0,a.$)("esri.layers.support.Subtype")],O);var U=i(10407);const A=e=>{const t=e;let i=class extends t{constructor(){super(...arguments),this.copyright=null,this.capabilities=null,this.dateFieldsTimeZone=null,this.datesInUnknownTimezone=!1,this.definitionExpression=null,this.displayField=null,this.editFieldsInfo=null,this.editingInfo=null,this.elevationInfo=null,this.fieldsIndex=null,this.floorInfo=null,this.fullExtent=null,this.gdbVersion=null,this.geometryFieldsInfo=null,this.geometryType=null,this.globalIdField=null,this.hasM=void 0,this.hasZ=void 0,this.heightModelInfo=null,this.historicMoment=null,this.indexes=new(o.A.ofType(C)),this.isTable=!1,this.layerId=void 0,this.maxScale=0,this.minScale=0,this.objectIdField=null,this.preferredTimeZone=null,this.relationships=null,this.returnM=void 0,this.returnZ=void 0,this.serviceDefinitionExpression=null,this.serviceItemId=null,this.sourceJSON=null,this.spatialReference=h.A.WGS84,this.subtypeField=null,this.subtypes=null,this.trackIdField=null,this.uniqueIdFields=null,this.url=null,this.version=void 0,this._isUrlHostModified=!1,this._isUrlHostModificationEnabled=!1}getFieldDomain(e,t){throw new Error("Not implemented")}getField(e){return this.fieldsIndex.get(e)}get authenticationTriggerEvent(){if(!this.url)return null;const{capabilities:e}=this;if(e){const{query:t,operations:i,editing:r}=e;if(!t.supportsQueryByOthers||!t.supportsQueryByAnonymous)return"load";if(i.supportsEditing&&!(r.supportsUpdateByOthers&&r.supportsUpdateByAnonymous&&r.supportsDeleteByOthers&&r.supportsDeleteByAnonymous))return"load"}if((0,M.rQ)(this.serviceDefinitionExpression)||(0,M.rQ)(this.definitionExpression))return"load";if(this.userHasUpdateItemPrivileges){if((0,M.tG)(this))return"load";if(this.hasUpdateItemRestrictions)return e.operations.supportsQuery?"editing":"load"}if(this.userHasFullEditingPrivileges&&this.hasFullEditingRestrictions)return"editing";const t=this.editFieldsInfo;return(t?.creatorField||t?.editorField)&&e?.operations.supportsEditing?"editing":null}readCapabilitiesFromService(e,t){return(0,S.S)(t,this.url)}readEditingInfo(e,t){const{editingInfo:i}=t;return i?{lastEditDate:null!=i.lastEditDate?new Date(i.lastEditDate):null}:null}get effectiveCapabilities(){const e=this.capabilities;if(!e)return null;const t=(0,n.o8)(e),{operations:i,editing:r}=t;return(0,M.Pt)(this)?(this.userHasUpdateItemPrivileges&&(i.supportsQuery=!0),t):this.userHasUpdateItemPrivileges?(i.supportsAdd=i.supportsDelete=i.supportsEditing=i.supportsQuery=i.supportsUpdate=r.supportsDeleteByOthers=r.supportsGeometryUpdate=r.supportsUpdateByOthers=!0,t):(this.userHasFullEditingPrivileges&&i.supportsEditing&&(i.supportsAdd=i.supportsDelete=i.supportsUpdate=r.supportsGeometryUpdate=!0),t)}get effectiveEditingEnabled(){return!1}readGlobalIdFieldFromService(e,t){return(0,M.jD)(t)}get hasFullEditingRestrictions(){const e=this.capabilities;if(!e||(0,M.Pt)(this))return!1;const{operations:t,editing:i}=e;return t.supportsEditing&&!(t.supportsAdd&&t.supportsDelete&&t.supportsUpdate&&i.supportsGeometryUpdate)}get hasUpdateItemRestrictions(){const e=this.capabilities;if(!e)return!1;const{operations:t,editing:i}=e;return(0,M.Pt)(this)?!t.supportsQuery:!(t.supportsAdd&&t.supportsDelete&&t.supportsEditing&&t.supportsQuery&&t.supportsUpdate&&i.supportsDeleteByOthers&&i.supportsGeometryUpdate&&i.supportsUpdateByOthers)}readIsTableFromService(e,t){return"Table"===t.type}readMaxScale(e,t){return t.effectiveMaxScale||e||0}readMinScale(e,t){return t.effectiveMinScale||e||0}readObjectIdFieldFromService(e,t){return(0,M.Zm)(t)}get parsedUrl(){return(0,j.h)(this)}readServiceDefinitionExpression(e,t){return t.definitionQuery||t.definitionExpression}readUniqueIdFields(e,t){return t.uniqueIdInfo?.OIDFieldContainsHashValue?t.uniqueIdInfo.fields:null}readVersion(e,t){return(0,M.$4)(t)}get isUrlHostModified(){const{loaded:e,url:t,_isUrlHostModified:i}=this;if(i)return!0;if(!e||!t)return!1;if(this.originIdOf("url")<7)return!1;const r=this.sourceJSON?.preferredHost;if(!r)return!1;if(!(0,s.FX)(t,`https://${r}`,!0))return!1;for(let e=6;e>=3;e--){const i=this.getAtOrigin("url",(0,u.OL)(e));if(i)return!(0,s.FX)(t,i,!0)}return!1}applyPreferredHost(e){const{url:t,portalItem:i}=this;if(!t||!(0,I.OP)(i))return;const r=(0,I.$x)();r&&this._isUrlHostModificationEnabled&&(this._set("url",r),this._isUrlHostModified=!0,i&&(0,I.Gh)(i,(0,I.G$)()))}applyHostFromPortalItem(){const{url:e,portalItem:t}=this;if(!e||7===this.originIdOf("url")||!t?.url||!(0,I.OP)(t)||!(0,U.Y)(t,U.mm.HOSTED_SERVICE)||(0,s.FX)(e,t.url,!0)||!this._isUrlHostModificationEnabled)return;const i=(0,s.Ln)(t.url);this._set("url",(0,s.hf)(e,i)),this._isUrlHostModified=!0}};return(0,r.Cg)([(0,l.MZ)({readOnly:!0})],i.prototype,"authenticationTriggerEvent",null),(0,r.Cg)([(0,l.MZ)({type:String,json:{origins:{service:{read:{source:"copyrightText"}}}}})],i.prototype,"copyright",void 0),(0,r.Cg)([(0,l.MZ)({readOnly:!0,json:{read:!1,origins:{service:{read:{source:["advancedQueryCapabilities","allowGeometryUpdates","allowUpdateWithoutMValues","archivingInfo","capabilities","datesInUnknownTimezone","hasAttachments","hasM","hasZ","isDataBranchVersioned","isDataVersioned","maxRecordCount","maxRecordCountFactor","maxUniqueIDCount","ownershipBasedAccessControlForFeatures","standardMaxRecordCount","supportedQueryFormats","supportsAdvancedQueries","supportsApplyEditsWithGlobalIds","supportsAttachmentsByUploadId","supportsAttachmentsResizing","supportsCalculate","supportsCoordinatesQuantization","supportsExceedsLimitStatistics","supportsFieldDescriptionProperty","supportsQuantizationEditMode","supportsRollbackOnFailureParameter","supportsStatistics","supportsTruncate","supportsValidateSql","tileMaxRecordCount","useStandardizedQueries"]}}}}})],i.prototype,"capabilities",void 0),(0,r.Cg)([(0,p.w)("service","capabilities")],i.prototype,"readCapabilitiesFromService",null),(0,r.Cg)([(0,l.MZ)((0,v.P6)("dateFieldsTimeReference"))],i.prototype,"dateFieldsTimeZone",void 0),(0,r.Cg)([(0,l.MZ)({type:Boolean})],i.prototype,"datesInUnknownTimezone",void 0),(0,r.Cg)([(0,l.MZ)({type:String,json:{origins:{service:{read:!1,write:!1}},name:"layerDefinition.definitionExpression",write:{enabled:!0,allowNull:!0}}})],i.prototype,"definitionExpression",void 0),(0,r.Cg)([(0,l.MZ)({type:String,json:{origins:{service:{read:{source:"displayField"}}}}})],i.prototype,"displayField",void 0),(0,r.Cg)([(0,l.MZ)({readOnly:!0,type:w})],i.prototype,"editFieldsInfo",void 0),(0,r.Cg)([(0,l.MZ)({readOnly:!0})],i.prototype,"editingInfo",void 0),(0,r.Cg)([(0,p.w)("editingInfo")],i.prototype,"readEditingInfo",null),(0,r.Cg)([(0,l.MZ)({readOnly:!0})],i.prototype,"effectiveCapabilities",null),(0,r.Cg)([(0,l.MZ)()],i.prototype,"effectiveEditingEnabled",null),(0,r.Cg)([(0,l.MZ)((()=>{const e=(0,n.o8)(m.Yj),t=e.json.origins;return t["web-map"]={read:!1,write:!1},t["portal-item"]={read:!1,write:!1},e})())],i.prototype,"elevationInfo",void 0),(0,r.Cg)([(0,l.MZ)()],i.prototype,"fieldsIndex",void 0),(0,r.Cg)([(0,l.MZ)({type:Z.A,json:{name:"layerDefinition.floorInfo",write:{layerContainerTypes:d.K}}})],i.prototype,"floorInfo",void 0),(0,r.Cg)([(0,l.MZ)({type:y.A,json:{origins:{service:{read:{source:"extent"}}}}})],i.prototype,"fullExtent",void 0),(0,r.Cg)([(0,l.MZ)()],i.prototype,"gdbVersion",void 0),(0,r.Cg)([(0,l.MZ)({readOnly:!0,type:b,json:{read:{source:"geometryProperties"}}})],i.prototype,"geometryFieldsInfo",void 0),(0,r.Cg)([(0,l.MZ)({type:["point","polygon","polyline","multipoint","multipatch","mesh"],json:{origins:{service:{read:M.iX.read}}}})],i.prototype,"geometryType",void 0),(0,r.Cg)([(0,l.MZ)({type:String})],i.prototype,"globalIdField",void 0),(0,r.Cg)([(0,p.w)("service","globalIdField",["globalIdField","fields"])],i.prototype,"readGlobalIdFieldFromService",null),(0,r.Cg)([(0,l.MZ)({readOnly:!0})],i.prototype,"hasFullEditingRestrictions",null),(0,r.Cg)([(0,l.MZ)({type:Boolean,json:{origins:{service:{read:!0}}}})],i.prototype,"hasM",void 0),(0,r.Cg)([(0,l.MZ)({readOnly:!0})],i.prototype,"hasUpdateItemRestrictions",null),(0,r.Cg)([(0,l.MZ)({type:Boolean,json:{origins:{service:{read:!0}}}})],i.prototype,"hasZ",void 0),(0,r.Cg)([(0,l.MZ)({readOnly:!0,type:c.A})],i.prototype,"heightModelInfo",void 0),(0,r.Cg)([(0,l.MZ)({type:Date})],i.prototype,"historicMoment",void 0),(0,r.Cg)([(0,l.MZ)({type:o.A.ofType(C),readOnly:!0})],i.prototype,"indexes",void 0),(0,r.Cg)([(0,l.MZ)({readOnly:!0})],i.prototype,"isTable",void 0),(0,r.Cg)([(0,p.w)("service","isTable",["type"])],i.prototype,"readIsTableFromService",null),(0,r.Cg)([(0,l.MZ)({type:Number,json:{origins:{service:{read:{source:"id"}},"portal-item":{read:!1,write:{target:"id"}}},read:!1}})],i.prototype,"layerId",void 0),(0,r.Cg)([(0,l.MZ)(m.hG)],i.prototype,"maxScale",void 0),(0,r.Cg)([(0,p.w)("service","maxScale",["maxScale","effectiveMaxScale"])],i.prototype,"readMaxScale",null),(0,r.Cg)([(0,l.MZ)(m.hn)],i.prototype,"minScale",void 0),(0,r.Cg)([(0,p.w)("service","minScale",["minScale","effectiveMinScale"])],i.prototype,"readMinScale",null),(0,r.Cg)([(0,l.MZ)({type:String})],i.prototype,"objectIdField",void 0),(0,r.Cg)([(0,p.w)("service","objectIdField",["objectIdField","fields"])],i.prototype,"readObjectIdFieldFromService",null),(0,r.Cg)([(0,l.MZ)({readOnly:!0})],i.prototype,"parsedUrl",null),(0,r.Cg)([(0,l.MZ)((0,v.P6)("preferredTimeReference"))],i.prototype,"preferredTimeZone",void 0),(0,r.Cg)([(0,l.MZ)({type:[F.A],readOnly:!0})],i.prototype,"relationships",void 0),(0,r.Cg)([(0,l.MZ)({type:Boolean})],i.prototype,"returnM",void 0),(0,r.Cg)([(0,l.MZ)({type:Boolean})],i.prototype,"returnZ",void 0),(0,r.Cg)([(0,l.MZ)({readOnly:!0,json:{write:!1}})],i.prototype,"serverGens",void 0),(0,r.Cg)([(0,l.MZ)({readOnly:!0})],i.prototype,"serviceDefinitionExpression",void 0),(0,r.Cg)([(0,p.w)("service","serviceDefinitionExpression",["definitionQuery","definitionExpression"])],i.prototype,"readServiceDefinitionExpression",null),(0,r.Cg)([(0,l.MZ)({type:String,readOnly:!0,json:{read:!1,origins:{service:{read:!0}}}})],i.prototype,"serviceItemId",void 0),(0,r.Cg)([(0,l.MZ)()],i.prototype,"sourceJSON",void 0),(0,r.Cg)([(0,l.MZ)({type:h.A,json:{origins:{service:{read:{source:"extent.spatialReference"}}}}})],i.prototype,"spatialReference",void 0),(0,r.Cg)([(0,l.MZ)({type:String,readOnly:!0,json:{origins:{service:{read:!0}}}})],i.prototype,"subtypeField",void 0),(0,r.Cg)([(0,l.MZ)({type:[O],readOnly:!0,json:{read:!1,origins:{service:{read:!0}}}})],i.prototype,"subtypes",void 0),(0,r.Cg)([(0,l.MZ)({type:String,json:{read:{source:"timeInfo.trackIdField"}}})],i.prototype,"trackIdField",void 0),(0,r.Cg)([(0,l.MZ)({type:[String],readOnly:!0})],i.prototype,"uniqueIdFields",void 0),(0,r.Cg)([(0,p.w)("service","uniqueIdFields",["uniqueIdInfo.OIDFieldContainsHashValue","uniqueIdInfo.fields"])],i.prototype,"readUniqueIdFields",null),(0,r.Cg)([(0,l.MZ)((0,j.b)({nonStandardUrlAllowed:!0}))],i.prototype,"url",void 0),(0,r.Cg)([(0,l.MZ)({json:{origins:{service:{read:!0}},read:!1}})],i.prototype,"version",void 0),(0,r.Cg)([(0,p.w)("service","version",["currentVersion","capabilities","drawingInfo","hasAttachments","htmlPopupType","relationships","timeInfo","typeIdField","types"])],i.prototype,"readVersion",null),(0,r.Cg)([(0,l.MZ)({readOnly:!0})],i.prototype,"isUrlHostModified",null),i=(0,r.Cg)([(0,a.$)("esri.layers.mixins.FeatureLayerBase")],i),i}},91908:(e,t,i)=>{i.d(t,{D:()=>n});var r=i(60694);const o=[];function n(e,t){if((0,r.Wo)(e.url??""))return!0;const{wkid:i}=t;for(const t of o){if((e.version??0)>=t[0])return!0;if("function"==typeof t[1]&&(t[1]=t[1]()),t[1].has(i))return!1}return!0}o.push([10.91,()=>{const e=new Set([9709,9716,9741,9761,9766]);for(let t=9712;t<=9713;t++)e.add(t);for(let t=9748;t<=9749;t++)e.add(t);for(let t=20904;t<=20932;t++)e.add(t);for(let t=21004;t<=21032;t++)e.add(t);for(let t=21207;t<=21264;t++)e.add(t);for(let t=21307;t<=21364;t++)e.add(t);for(let t=23301;t<=23333;t++)e.add(t);for(let t=102759;t<=102760;t++)e.add(t);for(let t=102934;t<=102955;t++)e.add(t);return e}]),o.push([10.9,()=>{const e=new Set([9300,9354,9364,9367,9373,9377,9387,9456,9473,9498,9678,9680,29874,103599,103872,104028]);for(let t=9356;t<=9360;t++)e.add(t);for(let t=9404;t<=9407;t++)e.add(t);for(let t=9476;t<=9482;t++)e.add(t);for(let t=9487;t<=9494;t++)e.add(t);for(let t=9697;t<=9699;t++)e.add(t);return e}]),o.push([10.81,()=>{const e=new Set([9265,9333,103598,103699]);for(let t=9248;t<=9254;t++)e.add(t);for(let t=9271;t<=9273;t++)e.add(t);for(let t=9284;t<=9285;t++)e.add(t);for(let t=21453;t<=21463;t++)e.add(t);return e}]),o.push([10.8,()=>{const e=new Set([8088,8395,8428,8433,8531,8687,8692,8694,8699,8900,9003,9006,9009,9012,9017,9191]);for(let t=8035;t<=8036;t++)e.add(t);for(let t=8455;t<=8456;t++)e.add(t);for(let t=8518;t<=8529;t++)e.add(t);for(let t=8533;t<=8536;t++)e.add(t);for(let t=8538;t<=8540;t++)e.add(t);for(let t=8677;t<=8679;t++)e.add(t);for(let t=8902;t<=8903;t++)e.add(t);for(let t=8907;t<=8910;t++)e.add(t);for(let t=8949;t<=8951;t++)e.add(t);for(let t=8972;t<=8987;t++)e.add(t);for(let t=9039;t<=9040;t++)e.add(t);for(let t=9068;t<=9069;t++)e.add(t);for(let t=9140;t<=9141;t++)e.add(t);for(let t=9148;t<=9150;t++)e.add(t);for(let t=9153;t<=9159;t++)e.add(t);for(let t=9205;t<=9218;t++)e.add(t);for(let t=9221;t<=9222;t++)e.add(t);for(let t=54098;t<=54101;t++)e.add(t);return e}]),o.push([10.71,()=>{const e=new Set([6316]);for(let t=8351;t<=8353;t++)e.add(t);for(let t=9294;t<=9297;t++)e.add(t);for(let t=22619;t<=22621;t++)e.add(t);for(let t=103586;t<=103594;t++)e.add(t);return e}])},96184:(e,t,i)=>{i.d(t,{A:()=>h});var r=i(31635),o=i(69540),n=i(25482),s=i(10107),l=(i(44208),i(53966),i(87811),i(36005)),p=i(40608),a=i(43937),d=i(79677),u=i(10184),y=i(56400);function c(e,t){return u.A.fromJSON({value:e,unit:t})}let h=class extends((0,o.OU)(n.o)){constructor(e){super(e),this.cumulative=!1,this.endField=null,this.fullTimeExtent=null,this.hasLiveData=!1,this.interval=null,this.startField=null,this.timeZone=null,this.trackIdField=null,this.useTime=!0,this.stops=null}readFullTimeExtent(e,t){return t.timeExtent&&Array.isArray(t.timeExtent)&&2===t.timeExtent.length?d.A.fromArray(t.timeExtent):null}writeFullTimeExtent(e,t){null!=e?.start&&null!=e.end?t.timeExtent=e.toArray():t.timeExtent=null}readInterval(e,t){return t.timeInterval&&t.timeIntervalUnits?c(t.timeInterval,t.timeIntervalUnits):t.defaultTimeInterval&&t.defaultTimeIntervalUnits?c(t.defaultTimeInterval,t.defaultTimeIntervalUnits):null}writeInterval(e,t){t.timeInterval=e?.toJSON().value??null,t.timeIntervalUnits=e?.toJSON().unit??null}};(0,r.Cg)([(0,s.MZ)({type:Boolean,json:{name:"exportOptions.timeDataCumulative",write:!0}})],h.prototype,"cumulative",void 0),(0,r.Cg)([(0,s.MZ)({type:String,json:{name:"endTimeField",write:{enabled:!0,allowNull:!0}}})],h.prototype,"endField",void 0),(0,r.Cg)([(0,s.MZ)({type:d.A,json:{write:{enabled:!0,allowNull:!0}}})],h.prototype,"fullTimeExtent",void 0),(0,r.Cg)([(0,l.w)("fullTimeExtent",["timeExtent"])],h.prototype,"readFullTimeExtent",null),(0,r.Cg)([(0,a.K)("fullTimeExtent")],h.prototype,"writeFullTimeExtent",null),(0,r.Cg)([(0,s.MZ)({type:Boolean,json:{write:!0}})],h.prototype,"hasLiveData",void 0),(0,r.Cg)([(0,s.MZ)({type:u.A,json:{write:{enabled:!0,allowNull:!0}}})],h.prototype,"interval",void 0),(0,r.Cg)([(0,l.w)("interval",["timeInterval","timeIntervalUnits","defaultTimeInterval","defaultTimeIntervalUnits"])],h.prototype,"readInterval",null),(0,r.Cg)([(0,a.K)("interval")],h.prototype,"writeInterval",null),(0,r.Cg)([(0,s.MZ)({type:String,json:{name:"startTimeField",write:{enabled:!0,allowNull:!0}}})],h.prototype,"startField",void 0),(0,r.Cg)([(0,s.MZ)((0,y.P6)("timeReference",!0))],h.prototype,"timeZone",void 0),(0,r.Cg)([(0,s.MZ)({type:String,json:{write:{enabled:!0,allowNull:!0}}})],h.prototype,"trackIdField",void 0),(0,r.Cg)([(0,s.MZ)({type:Boolean,json:{name:"exportOptions.useTime",write:!0}})],h.prototype,"useTime",void 0),(0,r.Cg)([(0,s.MZ)({type:[Date],json:{read:!1}})],h.prototype,"stops",void 0),h=(0,r.Cg)([(0,p.$)("esri.layers.support.TimeInfo")],h)}}]);
|