{"version":3,"sources":["webpack:///./node_modules/@arcgis/core/portal/support/resourceExtension.js","webpack:///./node_modules/@arcgis/core/core/accessorSupport/decorators/persistable.js","webpack:///./node_modules/@arcgis/core/layers/support/RangeInfo.js","webpack:///./node_modules/@arcgis/core/layers/support/PolygonCollection.js","webpack:///./node_modules/@arcgis/core/layers/support/SceneFilter.js","webpack:///./node_modules/@arcgis/core/layers/SceneLayer.js"],"names":["p","i","o","n","e","Blob","type","t","url","g","a","png","jpeg","jpg","bmp","gif","json","txt","xml","svg","zip","pbf","gz","l","w","r","origins","v","U","read","write","s","u","String","m","writer","f","resources","y","R","verifyItemRelativeUrls","writtenUrls","rootPath","h","NO","this","origin","originIdOf","c","portalItem","I","O","d","j","b","resourceFromPath","pendingOperations","push","P","then","path","itemRelativeUrl","catch","S","toAdd","toUpdate","toKeep","resource","content","finish","N","JSON","stringify","toJSON","async","default","data","responseType","constructor","super","arguments","name","field","currentRangeExtent","fullRangeExtent","prototype","Number","readOnly","ofType","clone","items","map","layer","spatialReference","toArray","equals","messages","modification","context","filter","forEach","add","fromJSON","spatialRelationship","geometries","_geometriesSource","_handles","initialize","destroy","readGeometries","signal","nonNullable","prefix","X","Y","getLogger","ee","q","te","F","L","featureReduction","rangeInfos","operationalLayerType","fields","floorInfo","outFields","nodePages","materialDefinitions","textureSetDefinitions","geometryDefinitions","serviceUpdateTimeStamp","excludeObjectIds","definitionExpression","labelsVisible","labelingInfo","legendEnabled","priority","semantic","cachedDrawingInfo","color","popupEnabled","popupTemplate","objectIdField","globalIdField","_fieldUsageInfo","screenSizePerspectiveEnabled","normalizeCtorArgs","getField","fieldsIndex","get","getFieldDomain","getFeatureType","feature","domains","domain","associatedLayer","types","typeIdField","formTemplate","Q","readNodePages","layerType","pointNodePages","C","_set","loaded","_validateElevationInfo","ie","profile","readCachedDrawingInfo","capabilities","T","query","editing","supportsGlobalId","supportsRollbackOnFailure","supportsUploadWithItemId","supportsReturnServiceEditsInSourceSpatialReference","supportsZ","supportsM","isVersioned","supportsAttachment","operations","supportsEditing","supportsUpdate","supportsQuery","supportsQueryAttachments","supportsChangeTracking","supportsGeometryUpdate","supportsAdd","supportsDelete","_isOverridden","_get","userHasEditingPrivileges","_override","_clearOverride","attributeStorageInfo","createPopupTemplate","readObjectIdField","some","readGlobalIdField","displayField","readProfile","store","re","error","load","loadFromPortal","supportedTypes","_fetchService","Promise","all","_fetchIndexAndUpdateExtent","_setAssociatedFeatureLayer","loadGeometries","_applyAssociatedLayerOverrides","_populateFieldUsageInfo","H","renderer","finishLoadEditablePortalLayer","addResolvingPromise","resolve","createQuery","Z","geometryType","returnGeometry","returnZ","where","sqlFormat","queryExtent","_getAssociatedLayerForQuery","queryFeatureCount","queryFeatures","features","sourceLayer","queryObjectIds","queryAttachments","getFieldUsageInfo","supportsLabelingInfo","supportsRenderer","supportsPopupTemplate","supportsLayerQuery","B","_loadAssociatedLayerForQuery","hasCachedStatistics","statisticsInfo","parsedUrl","href","token","apiKey","_debouncedSaveOperations","SAVE_AS","getTypeKeywords","_getTypeKeywords","portalItemLayerType","SAVE","applyEdits","source","on","validateLayer","includes","isNaN","version","major","minor","serviceVersion","versionString","supportedVersions","isGeographic","normalReferenceFrame","_applyAssociatedLayerFieldsOverrides","_applyAssociatedLayerPopupOverrides","editable","nullable","length","slice","SERVICE","PORTAL_ITEM","setAtOrigin","fetch","_logWarningOnPopupEnabled","title","warn","info","elevationInfo","mode","featureExpressionInfo","expression","key","base","D","typeMap","selection","W","service","$","target","k","G","V","enabled","allowNull","z","E","_","K","reader","M","opacity","layerDefinition","drawingInfo","transparency","J","value","Boolean","x","A","meshpyramids","points","lines","polygons","se"],"mappings":"0OAI0D,SAASA,EAAEC,GAAG,OAAOC,EAAEC,EAAEF,KAAKG,EAAE,SAASD,EAAEF,GAAG,OAAOA,aAAaI,KAAKJ,EAAEK,KAAKC,EAAEN,EAAEO,KAAK,SAASD,EAAEP,GAAG,MAAMG,EAAEF,eAAED,GAAG,OAAOS,EAAEN,IAAIO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,CAACU,QAAQ,CAAC6Q,QAAQ,CAAC1Q,KAAK,CAACqO,OAAO,gCAAgCrO,MAAK,MAAOyF,GAAGjC,UAAU,4BAAuB,GAAQjF,eAAE,CAACgC,eAAEyR,SAAIvM,GAAGjC,UAAU,oCAA+B,GAAQiC,GAAGlH,eAAE,CAACK,eAAE,2BAA2B6G,IAAI,MAAMuF,GAAG,CAAC,gBAAgB,gBAAgBiH,aAAa,gBAAgB,kBAAkB,gBAAgBC,OAAO,SAAS,kBAAkB,SAASC,MAAM,QAAQ,iBAAiB,QAAQC,SAAS,WAAW,oBAAoB,YAAYzJ,GAAG,CAAC,gBAAgB,OAAOuJ,OAAO,QAAQC,MAAM,WAAWC,SAAS,WAAWC,GAAG5M","file":"js/chunk-550e06f3.9c16fbf0.js","sourcesContent":["/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.24/esri/copyright.txt for details.\n*/\nimport{getPathExtension as i}from\"../../core/urlUtils.js\";function p(i){return o[n(i)]||e}function n(i){return i instanceof Blob?i.type:t(i.url)}function t(p){const n=i(p);return g[n]||a}const o={},a=\"text/plain\",e=o[a],g={png:\"image/png\",jpeg:\"image/jpeg\",jpg:\"image/jpg\",bmp:\"image/bmp\",gif:\"image/gif\",json:\"application/json\",txt:\"text/plain\",xml:\"application/xml\",svg:\"image/svg+xml\",zip:\"application/zip\",pbf:\"application/vnd.mapbox-vector-tile\",gz:\"application/gzip\"};for(const l in g)o[g[l]]=l;export{p as getResourceContentExtension};\n","/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.24/esri/copyright.txt for details.\n*/\nimport{isSome as t,isNone as r,get as e}from\"../../maybe.js\";import{isMultiOriginJSONMixin as o}from\"../../multiOriginJSONSupportUtils.js\";import{isAbsolute as i,isBlobProtocol as n,join as s,getPathExtension as u}from\"../../urlUtils.js\";import{generateUUID as p}from\"../../uuid.js\";import{getOwnPropertyMetadata as a}from\"../metadata.js\";import{nameToId as c}from\"../PropertyOrigin.js\";import{propertyJSONMeta as l}from\"./property.js\";import{getResourceContentExtension as f}from\"../../../portal/support/resourceExtension.js\";import{r as m,t as y,M as h,i as d,p as g}from\"../../../chunks/persistableUrlUtils.js\";function w(r){const e=t(r)&&r.origins?r.origins:[void 0];return(t,o)=>{const i=v(r,t,o);for(const r of e){const e=l(t,r,o);for(const t in i)e[t]=i[t]}}}function v(r,e,o){if(t(r)&&\"resource\"===r.type)return U(r,e,o);switch(t(r)&&r.type?r.type:\"other\"){case\"other\":return{read:!0,write:!0};case\"url\":{const{read:t,write:r}=g;return{read:t,write:r}}}}function U(e,s,u){const p=a(s,u);return{type:String,read:(t,r,e)=>{const o=m(t,r,e);return p.type===String?o:\"function\"==typeof p.type?new p.type({url:o}):void 0},write:{writer(s,a,l,f){if(!f||!f.resources)return\"string\"==typeof s?void(a[l]=y(s,f)):void(a[l]=s.write({},f));const m=R(s),g=m?y(m,{...f,verifyItemRelativeUrls:f&&f.verifyItemRelativeUrls?{writtenUrls:f.verifyItemRelativeUrls.writtenUrls,rootPath:null}:null},h.NO):null,w=p.type!==String&&(!o(this)||f&&f.origin&&this.originIdOf(u)>c(f.origin));f&&f.portalItem&&t(g)&&!i(g)?w?I(this,u,s,g,a,l,f,e):O(g,a,l,f):f&&f.portalItem&&(r(g)||t(d(g))||n(g)||w)?j(this,u,s,g,a,l,f,e):a[l]=g}}}}function j(t,r,o,i,u,a,c,l){const m=p(),y=b(o,i,c),h=s(e(l,\"prefix\"),m),d=`${h}.${f(y)}`,g=c.portalItem.resourceFromPath(d);n(i)&&c.resources.pendingOperations.push(P(i).then((t=>{g.path=`${h}.${f(t)}`,u[a]=g.itemRelativeUrl})).catch((()=>{}))),S(t,r,g,y,c.resources.toAdd),u[a]=g.itemRelativeUrl}function I(t,r,e,o,i,n,s,p){const a=s.portalItem.resourceFromPath(o),c=b(e,o,s);f(c)===u(a.path)?(S(t,r,a,c,s.resources.toUpdate),i[n]=o):j(t,r,e,o,i,n,s,p)}function O(t,r,e,o){o.resources.toKeep.push({resource:o.portalItem.resourceFromPath(t)}),r[e]=t}function S(t,r,e,o,i){i.push({resource:e,content:o,finish:e=>{N(t,r,e)}})}function b(t,r,e){return\"string\"==typeof t?{url:r}:new Blob([JSON.stringify(t.toJSON(e))],{type:\"application/json\"})}async function P(t){const r=(await import(\"../../../request.js\")).default,{data:e}=await r(t,{responseType:\"blob\"});return e}function R(t){return r(t)?null:\"string\"==typeof t?t:t.url}function N(t,r,e){\"string\"==typeof t[r]?t[r]=e.url:t[r].url=e.url}export{w as persistable};\n","/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.24/esri/copyright.txt for details.\n*/\nimport{_ as r}from\"../../chunks/tslib.es6.js\";import{JSONSupport as e}from\"../../core/JSONSupport.js\";import{property as t}from\"../../core/accessorSupport/decorators/property.js\";import\"../../core/arrayUtils.js\";import\"../../core/has.js\";import\"../../core/accessorSupport/ensureType.js\";import{subclass as o}from\"../../core/accessorSupport/decorators/subclass.js\";let s=class extends e{constructor(){super(...arguments),this.name=null,this.field=null,this.currentRangeExtent=null,this.fullRangeExtent=null,this.type=\"rangeInfo\"}};r([t({type:String,json:{read:!0,write:!0}})],s.prototype,\"name\",void 0),r([t({type:String,json:{read:!0,write:!0}})],s.prototype,\"field\",void 0),r([t({type:[Number],json:{read:!0,write:!0}})],s.prototype,\"currentRangeExtent\",void 0),r([t({type:[Number],json:{read:!0,write:!0}})],s.prototype,\"fullRangeExtent\",void 0),r([t({type:[\"rangeInfo\"],readOnly:!0,json:{read:!1,write:!0}})],s.prototype,\"type\",void 0),s=r([o(\"esri.layers.support.RangeInfo\")],s);export{s as RangeInfo};\n","/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.24/esri/copyright.txt for details.\n*/\nimport{_ as e}from\"../../chunks/tslib.es6.js\";import r from\"../../core/Collection.js\";import{JSONSupportMixin as t}from\"../../core/JSONSupport.js\";import o from\"../../core/Warning.js\";import\"../../core/Logger.js\";import\"../../core/accessorSupport/ensureType.js\";import\"../../core/arrayUtils.js\";import\"../../core/has.js\";import\"../../core/accessorSupport/set.js\";import{subclass as s}from\"../../core/accessorSupport/decorators/subclass.js\";import i from\"../../geometry/Polygon.js\";import{canProjectWithoutEngine as n,projectPolygon as a}from\"../../geometry/projection.js\";var c;let p=c=class extends(t(r.ofType(i))){constructor(e){super(e)}clone(){return new c(this.items.map((e=>e.clone())))}write(e,r){return this.toJSON(r)}toJSON(e){const r=e?.layer?.spatialReference;return r?this.toArray().map((t=>{if(!r.equals(t.spatialReference)){if(!n(t.spatialReference,r))return e&&e.messages&&e.messages.push(new o(\"scenefilter:unsupported\",\"Scene filters with incompatible spatial references are not supported\",{modification:this,spatialReference:e.layer.spatialReference,context:e})),null;const s=new i;a(t,s,r),t=s}const s=t.toJSON(e);return delete s.spatialReference,s})).filter((e=>null!=e)):(e?.messages&&e.messages.push(new o(\"scenefilter:unsupported\",\"Writing Scene filters without context layer is not supported\",{modification:this,spatialReference:e.layer.spatialReference,context:e})),this.toArray().map((r=>r.toJSON(e))))}static fromJSON(e,r){const t=new c;return e.forEach((e=>t.add(i.fromJSON(e,r)))),t}};p=c=e([s(\"esri.layers.support.PolygonCollection\")],p);const l=p;export{l as default};\n","/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.24/esri/copyright.txt for details.\n*/\nimport{_ as e}from\"../../chunks/tslib.es6.js\";import o from\"../../request.js\";import r from\"../../core/Handles.js\";import{JSONSupport as s}from\"../../core/JSONSupport.js\";import{clone as t}from\"../../core/lang.js\";import{isNone as i,get as a}from\"../../core/maybe.js\";import{on as p,sync as n}from\"../../core/reactiveUtils.js\";import{property as c}from\"../../core/accessorSupport/decorators/property.js\";import\"../../core/accessorSupport/ensureType.js\";import{reader as l}from\"../../core/accessorSupport/decorators/reader.js\";import{subclass as m}from\"../../core/accessorSupport/decorators/subclass.js\";import{persistable as u}from\"../../core/accessorSupport/decorators/persistable.js\";import h from\"./PolygonCollection.js\";import{f as d}from\"../../chunks/persistableUrlUtils.js\";var g;let f=g=class extends s{constructor(e){super(e),this.spatialRelationship=\"disjoint\",this.geometries=new h,this._geometriesSource=null,this._handles=new r}initialize(){this._handles.add(p((()=>this.geometries),\"after-changes\",(()=>this.geometries=this.geometries),n))}destroy(){this._handles.destroy()}readGeometries(e,o,r){this._geometriesSource={url:d(e,r),context:r}}async loadGeometries(e,r){if(i(this._geometriesSource))return;const{url:s,context:t}=this._geometriesSource,p=await o(s,{responseType:\"json\",signal:a(r,\"signal\")}),n=e.toJSON(),c=p.data.map((e=>({...e,spatialReference:n})));this.geometries=h.fromJSON(c,t),this._geometriesSource=null}clone(){return new g({geometries:t(this.geometries),spatialRelationship:this.spatialRelationship})}};e([c({type:[\"disjoint\",\"contains\"],nonNullable:!0,json:{write:!0}})],f.prototype,\"spatialRelationship\",void 0),e([c({type:h,nonNullable:!0,json:{write:!0}}),u({origins:[\"web-scene\",\"portal-item\"],type:\"resource\",prefix:\"geometries\"})],f.prototype,\"geometries\",void 0),e([l([\"web-scene\",\"portal-item\"],\"geometries\")],f.prototype,\"readGeometries\",null),f=g=e([m(\"esri.layers.support.SceneFilter\")],f);const j=f;export{j as default};\n","/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.24/esri/copyright.txt for details.\n*/\nimport{_ as e}from\"../chunks/tslib.es6.js\";import t from\"../PopupTemplate.js\";import\"../renderers/ClassBreaksRenderer.js\";import\"../renderers/DictionaryRenderer.js\";import\"../renderers/DotDensityRenderer.js\";import\"../renderers/HeatmapRenderer.js\";import\"../renderers/PieChartRenderer.js\";import\"../renderers/Renderer.js\";import\"../renderers/SimpleRenderer.js\";import\"../renderers/UniqueValueRenderer.js\";import\"../renderers/support/jsonUtils.js\";import{webSceneRendererTypes as r}from\"../renderers/support/types.js\";import i from\"../request.js\";import s from\"../core/Collection.js\";import o from\"../core/Error.js\";import a from\"../core/Logger.js\";import{isSome as n,isNone as p}from\"../core/maybe.js\";import{MultiOriginJSONMixin as l}from\"../core/MultiOriginJSONSupport.js\";import{throwIfAbortError as d,isAbortError as y}from\"../core/promiseUtils.js\";import{whenOnce as u}from\"../core/reactiveUtils.js\";import{join as c}from\"../core/urlUtils.js\";import{property as f}from\"../core/accessorSupport/decorators/property.js\";import\"../core/arrayUtils.js\";import\"../core/has.js\";import{getProperties as h}from\"../core/accessorSupport/utils.js\";import\"../core/accessorSupport/ensureType.js\";import{reader as m}from\"../core/accessorSupport/decorators/reader.js\";import{subclass as g}from\"../core/accessorSupport/decorators/subclass.js\";import{OriginId as v}from\"../core/accessorSupport/PropertyOrigin.js\";import b from\"./Layer.js\";import{APIKeyMixin as I}from\"./mixins/APIKeyMixin.js\";import{ArcGISService as j}from\"./mixins/ArcGISService.js\";import{OperationalLayer as w}from\"./mixins/OperationalLayer.js\";import{PortalLayer as L}from\"./mixins/PortalLayer.js\";import{ScaleRangeLayer as S}from\"./mixins/ScaleRangeLayer.js\";import{SceneService as F,SaveOperationType as O}from\"./mixins/SceneService.js\";import{zeroCapabilities as T}from\"./support/capabilities.js\";import{elevationInfo as E,labelsVisible as _,legendEnabled as P,popupEnabled as x,screenSizePerspectiveEnabled as A}from\"./support/commonProperties.js\";import{FeatureReduction as D}from\"./support/FeatureReduction.js\";import R from\"./support/FeatureReductionSelection.js\";import{FetchAssociatedFeatureLayer as U}from\"./support/FetchAssociatedFeatureLayer.js\";import{defineFieldProperties as q}from\"./support/fieldProperties.js\";import Q from\"./support/FieldsIndex.js\";import{fixRendererFields as N}from\"./support/fieldUtils.js\";import{I3SNodePageDefinition as C,I3SMaterialDefinition as k,I3STextureSetDefinition as G,I3SGeometryDefinition as V}from\"./support/I3SLayerDefinitions.js\";import K from\"./support/LabelClass.js\";import{reader as M}from\"./support/labelingInfo.js\";import $ from\"./support/LayerFloorInfo.js\";import{RangeInfo as W}from\"./support/RangeInfo.js\";import z from\"./support/SceneFilter.js\";import{loadStyleRenderer as H}from\"../renderers/support/styleUtils.js\";import Z from\"../rest/support/Query.js\";import{createPopupTemplate as B}from\"../support/popupUtils.js\";import{transparencyToOpacity as J}from\"../webdoc/support/opacityUtils.js\";const X=[\"3DObject\",\"Point\"],Y=a.getLogger(\"esri.layers.SceneLayer\"),ee=q();let te=class extends(F(j(w(L(S(l(I(b)))))))){constructor(...e){super(...e),this.featureReduction=null,this.rangeInfos=null,this.operationalLayerType=\"ArcGISSceneServiceLayer\",this.type=\"scene\",this.fields=null,this.floorInfo=null,this.outFields=null,this.nodePages=null,this.materialDefinitions=null,this.textureSetDefinitions=null,this.geometryDefinitions=null,this.serviceUpdateTimeStamp=null,this.excludeObjectIds=new s,this.definitionExpression=null,this.filter=null,this.path=null,this.labelsVisible=!0,this.labelingInfo=null,this.legendEnabled=!0,this.priority=null,this.semantic=null,this.cachedDrawingInfo={color:!1},this.popupEnabled=!0,this.popupTemplate=null,this.objectIdField=null,this.globalIdField=null,this._fieldUsageInfo={},this.screenSizePerspectiveEnabled=!0}normalizeCtorArgs(e,t){return\"string\"==typeof e?{url:e,...t}:e}getField(e){return this.fieldsIndex.get(e)}getFieldDomain(e,t){const r=this.getFeatureType(t?.feature)?.domains?.[e];return r&&\"inherited\"!==r.type?r:this.getField(e)?.domain??null}getFeatureType(e){return e&&n(this.associatedLayer)?this.associatedLayer.getFeatureType(e):null}get types(){return n(this.associatedLayer)?this.associatedLayer.types:[]}get typeIdField(){return n(this.associatedLayer)?this.associatedLayer.typeIdField:null}get formTemplate(){return n(this.associatedLayer)?this.associatedLayer.formTemplate:null}get fieldsIndex(){return new Q(this.fields)}readNodePages(e,t,r){return\"Point\"===t.layerType&&(e=t.pointNodePages),null==e||\"object\"!=typeof e?null:C.fromJSON(e,r)}set elevationInfo(e){this._set(\"elevationInfo\",e),this.loaded&&this._validateElevationInfo()}get geometryType(){return ie[this.profile]||\"mesh\"}set renderer(e){N(e,this.fieldsIndex),this._set(\"renderer\",e)}readCachedDrawingInfo(e){return null!=e&&\"object\"==typeof e||(e={}),null==e.color&&(e.color=!1),e}get capabilities(){const e=n(this.associatedLayer)&&this.associatedLayer.capabilities?this.associatedLayer.capabilities:T,{query:t,editing:{supportsGlobalId:r,supportsRollbackOnFailure:i,supportsUploadWithItemId:s,supportsReturnServiceEditsInSourceSpatialReference:o},data:{supportsZ:a,supportsM:p,isVersioned:l,supportsAttachment:d},operations:{supportsEditing:y,supportsUpdate:u,supportsQuery:c,supportsQueryAttachments:f}}=e,h=e.operations.supportsChangeTracking;return{query:t,editing:{supportsGlobalId:r,supportsReturnServiceEditsInSourceSpatialReference:o,supportsRollbackOnFailure:i,supportsGeometryUpdate:!1,supportsUploadWithItemId:s},data:{supportsAttachment:d,supportsZ:a,supportsM:p,isVersioned:l},operations:{supportsQuery:c,supportsQueryAttachments:f,supportsEditing:y&&h,supportsAdd:!1,supportsDelete:!1,supportsUpdate:u&&h}}}get editingEnabled(){return this._isOverridden(\"editingEnabled\")?this._get(\"editingEnabled\"):this.userHasEditingPrivileges}set editingEnabled(e){null!=e?this._override(\"editingEnabled\",e):this._clearOverride(\"editingEnabled\")}get defaultPopupTemplate(){return n(this.associatedLayer)||this.attributeStorageInfo?this.createPopupTemplate():null}readObjectIdField(e,t){return!e&&t.fields&&t.fields.some((t=>(\"esriFieldTypeOID\"===t.type&&(e=t.name),!!e))),e||void 0}readGlobalIdField(e,t){return!e&&t.fields&&t.fields.some((t=>(\"esriFieldTypeGlobalID\"===t.type&&(e=t.name),!!e))),e||void 0}get displayField(){return n(this.associatedLayer)?this.associatedLayer.displayField:null}readProfile(e,t){const r=t.store.profile;return null!=r&&re[r]?re[r]:(Y.error(\"Unknown or missing profile\",{profile:r,layer:this}),\"mesh-pyramids\")}load(e){const t=n(e)?e.signal:null,r=this.loadFromPortal({supportedTypes:[\"Scene Service\"]},e).catch(d).then((()=>this._fetchService(t))).then((()=>Promise.all([this._fetchIndexAndUpdateExtent(this.nodePages,t),this._setAssociatedFeatureLayer(t),n(this.filter)?this.filter.loadGeometries(this.spatialReference):null]))).then((()=>this._validateElevationInfo())).then((()=>this._applyAssociatedLayerOverrides())).then((()=>this._populateFieldUsageInfo())).then((()=>H(this,{origin:\"service\"},t))).then((()=>N(this.renderer,this.fieldsIndex))).then((()=>this.finishLoadEditablePortalLayer(e)));return this.addResolvingPromise(r),Promise.resolve(this)}async beforeSave(){n(this.filter)&&await this.load()}createQuery(){const e=new Z;return\"mesh\"!==this.geometryType&&(e.returnGeometry=!0,e.returnZ=!0),e.where=this.definitionExpression||\"1=1\",e.sqlFormat=\"standard\",e}queryExtent(e,t){return this._getAssociatedLayerForQuery().then((r=>r.queryExtent(e||this.createQuery(),t)))}queryFeatureCount(e,t){return this._getAssociatedLayerForQuery().then((r=>r.queryFeatureCount(e||this.createQuery(),t)))}queryFeatures(e,t){return this._getAssociatedLayerForQuery().then((r=>r.queryFeatures(e||this.createQuery(),t))).then((e=>{if(e?.features)for(const t of e.features)t.layer=this,t.sourceLayer=this;return e}))}queryObjectIds(e,t){return this._getAssociatedLayerForQuery().then((r=>r.queryObjectIds(e||this.createQuery(),t)))}queryAttachments(e,t){return this._getAssociatedLayerForQuery().then((r=>r.queryAttachments(e,t)))}getFieldUsageInfo(e){const t={supportsLabelingInfo:!1,supportsRenderer:!1,supportsPopupTemplate:!1,supportsLayerQuery:!1};return this.loaded?this._fieldUsageInfo[e]||t:(Y.error(\"#getFieldUsageInfo()\",\"Unavailable until layer is loaded\"),t)}createPopupTemplate(e){return B(this,e)}_getAssociatedLayerForQuery(){const e=this.associatedLayer;return n(e)&&e.loaded?Promise.resolve(e):this._loadAssociatedLayerForQuery()}async _loadAssociatedLayerForQuery(){if(await this.load(),p(this.associatedLayer))throw new o(\"scenelayer:query-not-available\",\"SceneLayer queries are not available without an associated feature layer\",{layer:this});try{await this.associatedLayer.load()}catch(e){throw new o(\"scenelayer:query-not-available\",\"SceneLayer associated feature layer could not be loaded\",{layer:this,error:e})}return this.associatedLayer}hasCachedStatistics(e){return null!=this.statisticsInfo&&this.statisticsInfo.some((t=>t.name===e))}async queryCachedStatistics(e,t){if(await this.load(t),!this.statisticsInfo)throw new o(\"scenelayer:no-cached-statistics\",\"Cached statistics are not available for this layer\");const r=this.fieldsIndex.get(e);if(!r)throw new o(\"scenelayer:field-unexisting\",`Field '${e}' does not exist on the layer`);for(const s of this.statisticsInfo)if(s.name===r.name){const e=c(this.parsedUrl.path,s.href);return i(e,{query:{f:\"json\",token:this.apiKey},responseType:\"json\",signal:t?t.signal:null}).then((e=>e.data))}throw new o(\"scenelayer:no-cached-statistics\",\"Cached statistics for this attribute are not available\")}async saveAs(e,t){return this._debouncedSaveOperations(O.SAVE_AS,{...t,getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:\"scene\"},e)}async save(){const e={getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:\"scene\"};return this._debouncedSaveOperations(O.SAVE,e)}async applyEdits(e,t){const r=await import(\"./graphics/editingSupport.js\");if(await this.load(),p(this.associatedLayer))throw new o(`${this.type}-layer:not-editable`,\"Service is not editable\");return await this.associatedLayer.load(),r.applyEdits(this,this.associatedLayer.source,e,t)}on(e,t){return super.on(e,t)}validateLayer(e){if(e.layerType&&!X.includes(e.layerType))throw new o(\"scenelayer:layer-type-not-supported\",\"SceneLayer does not support this layer type\",{layerType:e.layerType});if(isNaN(this.version.major)||isNaN(this.version.minor))throw new o(\"layer:service-version-not-supported\",\"Service version is not supported.\",{serviceVersion:this.version.versionString,supportedVersions:\"1.x, 2.x\"});if(this.version.major>2)throw new o(\"layer:service-version-too-new\",\"Service version is too new.\",{serviceVersion:this.version.versionString,supportedVersions:\"1.x, 2.x\"});function t(e,t){let r=!1,i=!1;if(null==e)r=!0,i=!0;else{const s=t&&t.isGeographic;switch(e){case\"east-north-up\":case\"earth-centered\":r=!0,i=s;break;case\"vertex-reference-frame\":r=!0,i=!s;break;default:r=!1}}if(!r)throw new o(\"scenelayer:unsupported-normal-reference-frame\",\"Normal reference frame is invalid.\");if(!i)throw new o(\"scenelayer:incompatible-normal-reference-frame\",\"Normal reference frame is incompatible with layer spatial reference.\")}t(this.normalReferenceFrame,this.spatialReference)}_getTypeKeywords(){const e=[];if(\"points\"===this.profile)e.push(\"Point\");else{if(\"mesh-pyramids\"!==this.profile)throw new o(\"scenelayer:unknown-profile\",\"SceneLayer:save() encountered an unknown SceneLayer profile: \"+this.profile);e.push(\"3DObject\")}return e}_populateFieldUsageInfo(){if(this._fieldUsageInfo={},this.fields)for(const e of this.fields){const t=!(!this.attributeStorageInfo||!this.attributeStorageInfo.some((t=>t.name===e.name))),r=!!(n(this.associatedLayer)&&this.associatedLayer.fields&&this.associatedLayer.fields.some((t=>t&&e.name===t.name))),i={supportsLabelingInfo:t,supportsRenderer:t,supportsPopupTemplate:t||r,supportsLayerQuery:r};this._fieldUsageInfo[e.name]=i}}_applyAssociatedLayerOverrides(){this._applyAssociatedLayerFieldsOverrides(),this._applyAssociatedLayerPopupOverrides()}_applyAssociatedLayerFieldsOverrides(){if(p(this.associatedLayer)||!this.associatedLayer.fields)return;let e=null;for(const t of this.associatedLayer.fields){const r=this.getField(t.name);r?(!r.domain&&t.domain&&(r.domain=t.domain.clone()),r.editable=t.editable,r.nullable=t.nullable,r.length=t.length):(e||(e=this.fields?this.fields.slice():[]),e.push(t.clone()))}e&&this._set(\"fields\",e)}_applyAssociatedLayerPopupOverrides(){if(p(this.associatedLayer))return;const e=[\"popupTemplate\",\"popupEnabled\"],t=h(this);for(let r=0;rthis.popupEnabled&&null!=this.popupTemplate));const e=`this SceneLayer: ${this.title}`;null==this.attributeStorageInfo?Y.warn(`Associated FeatureLayer could not be loaded and no binary attributes found. Popups will not work on ${e}`):Y.info(`Associated FeatureLayer could not be loaded. Falling back to binary attributes for Popups on ${e}`)}_validateElevationInfo(){const e=this.elevationInfo;e&&(\"mesh-pyramids\"===this.profile&&\"relative-to-scene\"===e.mode&&Y.warn(\".elevationInfo=\",\"Mesh scene layers don't support relative-to-scene elevation mode\"),e.featureExpressionInfo&&\"0\"!==e.featureExpressionInfo.expression&&Y.warn(\".elevationInfo=\",\"Scene layers do not support featureExpressionInfo\"))}};e([f({types:{key:\"type\",base:D,typeMap:{selection:R}},json:{origins:{\"web-scene\":{name:\"layerDefinition.featureReduction\",write:!0},\"portal-item\":{name:\"layerDefinition.featureReduction\",write:!0}}}})],te.prototype,\"featureReduction\",void 0),e([f({type:[W],json:{read:!1,origins:{\"web-scene\":{name:\"layerDefinition.rangeInfos\",write:!0},\"portal-item\":{name:\"layerDefinition.rangeInfos\",write:!0}}}})],te.prototype,\"rangeInfos\",void 0),e([f({json:{read:!1}})],te.prototype,\"associatedLayer\",void 0),e([f({type:[\"show\",\"hide\"]})],te.prototype,\"listMode\",void 0),e([f({type:[\"ArcGISSceneServiceLayer\"]})],te.prototype,\"operationalLayerType\",void 0),e([f({json:{read:!1},readOnly:!0})],te.prototype,\"type\",void 0),e([f({...ee.fields,readOnly:!0,json:{read:!1,origins:{service:{read:!0}}}})],te.prototype,\"fields\",void 0),e([f()],te.prototype,\"types\",null),e([f()],te.prototype,\"typeIdField\",null),e([f()],te.prototype,\"formTemplate\",null),e([f({readOnly:!0})],te.prototype,\"fieldsIndex\",null),e([f({type:$,json:{read:{source:\"layerDefinition.floorInfo\"},write:{target:\"layerDefinition.floorInfo\"}}})],te.prototype,\"floorInfo\",void 0),e([f(ee.outFields)],te.prototype,\"outFields\",void 0),e([f({type:C,readOnly:!0,json:{read:!1}})],te.prototype,\"nodePages\",void 0),e([m(\"service\",\"nodePages\",[\"nodePages\",\"pointNodePages\"])],te.prototype,\"readNodePages\",null),e([f({type:[k],readOnly:!0})],te.prototype,\"materialDefinitions\",void 0),e([f({type:[G],readOnly:!0})],te.prototype,\"textureSetDefinitions\",void 0),e([f({type:[V],readOnly:!0})],te.prototype,\"geometryDefinitions\",void 0),e([f({readOnly:!0})],te.prototype,\"serviceUpdateTimeStamp\",void 0),e([f({readOnly:!0})],te.prototype,\"attributeStorageInfo\",void 0),e([f({readOnly:!0})],te.prototype,\"statisticsInfo\",void 0),e([f({type:s.ofType(Number),nonNullable:!0,json:{origins:{service:{read:!1,write:!1}},name:\"layerDefinition.excludeObjectIds\",write:{enabled:!0}}})],te.prototype,\"excludeObjectIds\",void 0),e([f({type:String,json:{origins:{service:{read:!1,write:!1}},name:\"layerDefinition.definitionExpression\",write:{enabled:!0,allowNull:!0}}})],te.prototype,\"definitionExpression\",void 0),e([f({type:z,json:{name:\"layerDefinition.polygonFilter\",write:!0}})],te.prototype,\"filter\",void 0),e([f({type:String,json:{origins:{\"web-scene\":{read:!0,write:!0}},read:!1}})],te.prototype,\"path\",void 0),e([f(E)],te.prototype,\"elevationInfo\",null),e([f({type:String})],te.prototype,\"geometryType\",null),e([f(_)],te.prototype,\"labelsVisible\",void 0),e([f({type:[K],json:{origins:{service:{name:\"drawingInfo.labelingInfo\",read:{reader:M},write:!1}},name:\"layerDefinition.drawingInfo.labelingInfo\",read:{reader:M},write:!0}})],te.prototype,\"labelingInfo\",void 0),e([f(P)],te.prototype,\"legendEnabled\",void 0),e([f({type:Number,json:{origins:{\"web-document\":{default:1,write:{enabled:!0,target:{opacity:{type:Number},\"layerDefinition.drawingInfo.transparency\":{type:Number}}},read:{source:[\"opacity\",\"layerDefinition.drawingInfo.transparency\"],reader(e,t){if(\"number\"==typeof e&&e>=0&&e<=1)return e;const r=t.layerDefinition?.drawingInfo?.transparency;return void 0!==r?J(r):void 0}}},\"portal-item\":{write:!0},service:{read:!1}}}})],te.prototype,\"opacity\",void 0),e([f({type:[\"Low\",\"High\"],readOnly:!0,json:{read:!1,origins:{service:{read:!0}}}})],te.prototype,\"priority\",void 0),e([f({type:[\"Labels\"],readOnly:!0,json:{read:!1,origins:{service:{read:!0}}}})],te.prototype,\"semantic\",void 0),e([f({types:r,json:{origins:{service:{read:{source:\"drawingInfo.renderer\"}}},name:\"layerDefinition.drawingInfo.renderer\",write:!0},value:null})],te.prototype,\"renderer\",null),e([f({json:{read:!1}})],te.prototype,\"cachedDrawingInfo\",void 0),e([m(\"service\",\"cachedDrawingInfo\")],te.prototype,\"readCachedDrawingInfo\",null),e([f({readOnly:!0,json:{read:!1}})],te.prototype,\"capabilities\",null),e([f({type:Boolean,json:{read:!1}})],te.prototype,\"editingEnabled\",null),e([f(x)],te.prototype,\"popupEnabled\",void 0),e([f({type:t,json:{name:\"popupInfo\",write:!0}})],te.prototype,\"popupTemplate\",void 0),e([f({readOnly:!0,json:{read:!1}})],te.prototype,\"defaultPopupTemplate\",null),e([f({type:String,json:{read:!1}})],te.prototype,\"objectIdField\",void 0),e([m(\"service\",\"objectIdField\",[\"objectIdField\",\"fields\"])],te.prototype,\"readObjectIdField\",null),e([f({type:String,json:{read:!1}})],te.prototype,\"globalIdField\",void 0),e([m(\"service\",\"globalIdField\",[\"globalIdField\",\"fields\"])],te.prototype,\"readGlobalIdField\",null),e([f({readOnly:!0,type:String,json:{read:!1}})],te.prototype,\"displayField\",null),e([f({type:String,json:{read:!1}})],te.prototype,\"profile\",void 0),e([m(\"service\",\"profile\",[\"store.profile\"])],te.prototype,\"readProfile\",null),e([f({readOnly:!0,type:String,json:{origins:{service:{read:{source:\"store.normalReferenceFrame\"}}},read:!1}})],te.prototype,\"normalReferenceFrame\",void 0),e([f(A)],te.prototype,\"screenSizePerspectiveEnabled\",void 0),te=e([g(\"esri.layers.SceneLayer\")],te);const re={\"mesh-pyramids\":\"mesh-pyramids\",meshpyramids:\"mesh-pyramids\",\"features-meshes\":\"mesh-pyramids\",points:\"points\",\"features-points\":\"points\",lines:\"lines\",\"features-lines\":\"lines\",polygons:\"polygons\",\"features-polygons\":\"polygons\"},ie={\"mesh-pyramids\":\"mesh\",points:\"point\",lines:\"polyline\",polygons:\"polygon\"},se=te;export{se as default};\n"],"sourceRoot":""}