@arcgis/core 4.24.0-next.20220520 → 4.24.0-next.20220521
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/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/{26646a7545a194e67441.js → 27572edd67242e1b6646.js} +1 -1
- package/assets/esri/core/workers/chunks/{d94c5f36d52cf71f0bb9.js → 27f974dae930eb12fe38.js} +1 -1
- package/assets/esri/core/workers/chunks/2b708cc5ba0edd6c80e1.js +1 -0
- package/assets/esri/core/workers/chunks/{c5fadaa98749ffb490f5.js → 3c258ac11c963b7d9509.js} +1 -1
- package/assets/esri/core/workers/chunks/40d70d446abe357d6f43.js +1 -0
- package/assets/esri/core/workers/chunks/5cf2064bfd9d0847d9ec.js +1 -0
- package/assets/esri/core/workers/chunks/{f5089121d845ec594008.js → 6ac32325a961f1cf3c1b.js} +1 -1
- package/assets/esri/core/workers/chunks/{1c2805cc97dcee70e60d.js → 816ae3f0513ecf856f8f.js} +1 -1
- package/assets/esri/core/workers/chunks/{8033531b0cc706b40d86.js → 8523d45cf4765eddc380.js} +1 -1
- package/assets/esri/core/workers/chunks/{a5ee17cdc9eb23ebeaf0.js → 85f2f6a50cf1b6c7ce82.js} +1 -1
- package/assets/esri/core/workers/chunks/{c40d9caf5189be2c698e.js → 87b83dfce3ee252aba94.js} +1 -1
- package/assets/esri/core/workers/chunks/{6e48b0db65bcaaace838.js → 8cd8dad8bcd5c0ef445e.js} +1 -1
- package/assets/esri/core/workers/chunks/{54711b8a98104eeec833.js → 8ec860742695e5bbbcb2.js} +1 -1
- package/assets/esri/core/workers/chunks/{e51f0e71f2a55af604d3.js → 93c4e01b237a6b3f871f.js} +1 -1
- package/assets/esri/core/workers/chunks/{3e94e35f44aadbb332ff.js → aae70408958f6ee7279e.js} +1 -1
- package/assets/esri/core/workers/chunks/{7e150c38e25fbb8bacaf.js → b476a80ef81c211685be.js} +1 -1
- package/assets/esri/core/workers/chunks/b8db486a3dba68a8030a.js +1 -0
- package/assets/esri/core/workers/chunks/{82b6535a30287c74ba13.js → c0e6dbecdbd30066a82c.js} +1 -1
- package/assets/esri/core/workers/chunks/{66e8a253312d72a8e7f9.js → c4115e8d1eb2ca6bb605.js} +1 -1
- package/assets/esri/core/workers/chunks/cd04bae81e5fc27ec97b.js +1 -0
- package/assets/esri/core/workers/chunks/{24217129d492e170f0f0.js → f668ccaf8bd0be0ab57b.js} +1 -1
- package/core/CollectionFlattener.js +1 -1
- package/core/promiseUtils.js +1 -1
- package/interfaces.d.ts +78 -2
- package/layers/FeatureLayer.js +1 -1
- package/layers/SubtypeGroupLayer.js +1 -1
- package/layers/graphics/sources/OGCFeatureSource.js +1 -1
- package/layers/graphics/sources/support/clientSideDefaults.js +1 -1
- package/layers/mixins/ArcGISImageService.js +1 -1
- package/layers/mixins/refresh.js +1 -1
- package/layers/support/FeatureReductionCluster.js +1 -1
- package/layers/support/capabilities.js +1 -1
- package/package.json +1 -1
- package/support/revision.js +1 -1
- package/views/2d/engine/webgl/SpriteMosaic.js +1 -1
- package/views/2d/engine/webgl/TextureManager.js +1 -1
- package/views/2d/engine/webgl/animatedFormats/BaseAnimatableTextureResource.js +1 -1
- package/views/2d/engine/webgl/animatedFormats/apng.js +1 -1
- package/views/2d/engine/webgl/animatedFormats/gif.js +1 -1
- package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
- package/views/2d/layers/FeatureLayerView2D.js +1 -1
- package/views/2d/layers/features/schemaUtils.js +1 -1
- package/views/SceneView.js +1 -1
- package/assets/esri/core/workers/chunks/128f461007ef039d4f73.js +0 -1
- package/assets/esri/core/workers/chunks/672da24bbf86718bf48d.js +0 -1
- package/assets/esri/core/workers/chunks/824a700ba611e6c4fa9a.js +0 -1
- package/assets/esri/core/workers/chunks/be4bf1e4cbe2a593f8b3.js +0 -1
- package/assets/esri/core/workers/chunks/d6315aa9eedf79a7bca1.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8899],{61159:(t,e,r)=>{r.d(e,{g:()=>s});const s={supportsStatistics:!0,supportsPercentileStatistics:!0,supportsSpatialAggregationStatistics:!1,supportedSpatialAggregationStatistics:{envelope:!1,centroid:!1,convexHull:!1},supportsCentroid:!0,supportsCacheHint:!1,supportsDistance:!0,supportsDistinct:!0,supportsExtent:!0,supportsGeometryProperties:!1,supportsHavingClause:!0,supportsOrderBy:!0,supportsPagination:!0,supportsQuantization:!0,supportsQuantizationEditMode:!1,supportsQueryGeometry:!0,supportsResultType:!1,supportsSqlExpression:!0,supportsMaxRecordCountFactor:!1,supportsStandardizedQueriesOnly:!0,supportsTopFeaturesQuery:!1,supportsQueryByOthers:!0,supportsHistoricMoment:!1,supportsFormatPBF:!1,supportsDisjointSpatialRelationship:!0,supportsDefaultSpatialReference:!1,supportsCompactGeometry:!1,maxRecordCountFactor:void 0,maxRecordCount:void 0,standardMaxRecordCount:void 0,tileMaxRecordCount:void 0}},38899:(t,e,r)=>{r.r(e),r.d(e,{default:()=>dt});var s=r(43697),n=(r(66577),r(38171)),o=r(3172),a=r(92835),i=r(20102),u=r(80442),d=r(35454),l=r(83379),c=r(70586),p=r(78286),h=r(95330),y=r(17452),f=r(5600),m=(r(67676),r(75215),r(52011)),g=r(6570),b=r(33955),F=r(25278),R=r(10158),O=r(4967),S=r(11282),I=r(74085),_=r(69285),q=r(98732);function C(t,e){return e}function x(t,e,r,s){switch(r){case 0:return E(t,e+s,0);case 1:return"lowerLeft"===t.originPosition?E(t,e+s,1):function({translate:t,scale:e},r,s){return t[s]-r*e[s]}(t,e+s,1)}}function w(t,e,r,s){return 2===r?E(t,e,2):x(t,e,r,s)}function j(t,e,r,s){return 2===r?E(t,e,3):x(t,e,r,s)}function v(t,e,r,s){return 3===r?E(t,e,3):w(t,e,r,s)}function E({translate:t,scale:e},r,s){return t[s]+r*e[s]}class T{constructor(t){this.options=t,this.geometryTypes=["esriGeometryPoint","esriGeometryMultipoint","esriGeometryPolyline","esriGeometryPolygon"],this.previousCoordinate=[0,0],this.transform=null,this.applyTransform=C,this.lengths=[],this.currentLengthIndex=0,this.toAddInCurrentPath=0,this.vertexDimension=0,this.coordinateBuffer=null,this.coordinateBufferPtr=0,this._attributesConstructor=()=>{}}createFeatureResult(){return{fields:[],features:[]}}finishFeatureResult(t){if(this.options.applyTransform&&(t.transform=null),this._attributesConstructor=()=>{},this.coordinateBuffer=null,this.lengths.length=0,!t.hasZ)return;const e=(0,_.k)(t.geometryType,this.options.sourceSpatialReference,t.spatialReference);if(!(0,c.Wi)(e))for(const r of t.features)e(r.geometry)}createSpatialReference(){return{}}addField(t,e){t.fields.push(e);const r=t.fields.map((t=>t.name));this._attributesConstructor=function(){for(const t of r)this[t]=null}}addFeature(t,e){t.features.push(e)}prepareFeatures(t){switch(this.transform=t.transform,this.options.applyTransform&&t.transform&&(this.applyTransform=this._deriveApplyTransform(t)),this.vertexDimension=2,t.hasZ&&this.vertexDimension++,t.hasM&&this.vertexDimension++,t.geometryType){case"esriGeometryPoint":this.addCoordinate=(t,e,r)=>this.addCoordinatePoint(t,e,r),this.createGeometry=t=>this.createPointGeometry(t);break;case"esriGeometryPolygon":this.addCoordinate=(t,e,r)=>this._addCoordinatePolygon(t,e,r),this.createGeometry=t=>this._createPolygonGeometry(t);break;case"esriGeometryPolyline":this.addCoordinate=(t,e,r)=>this._addCoordinatePolyline(t,e,r),this.createGeometry=t=>this._createPolylineGeometry(t);break;case"esriGeometryMultipoint":this.addCoordinate=(t,e,r)=>this._addCoordinateMultipoint(t,e,r),this.createGeometry=t=>this._createMultipointGeometry(t);break;default:(0,I.Bg)(t.geometryType)}}createFeature(){return this.lengths.length=0,this.currentLengthIndex=0,this.previousCoordinate[0]=0,this.previousCoordinate[1]=0,this.coordinateBuffer=null,this.coordinateBufferPtr=0,{attributes:new this._attributesConstructor}}allocateCoordinates(){}addLength(t,e,r){0===this.lengths.length&&(this.toAddInCurrentPath=e),this.lengths.push(e)}addQueryGeometry(t,e){const{queryGeometry:r,queryGeometryType:s}=e,n=(0,q.$g)(r.clone(),r,!1,!1,this.transform),o=(0,q.di)(n,s,!1,!1);t.queryGeometryType=s,t.queryGeometry={...o}}createPointGeometry(t){const e={x:0,y:0,spatialReference:t.spatialReference};return t.hasZ&&(e.z=0),t.hasM&&(e.m=0),e}addCoordinatePoint(t,e,r){switch(e=this.applyTransform(this.transform,e,r,0),r){case 0:t.x=e;break;case 1:t.y=e;break;case 2:"z"in t?t.z=e:t.m=e;break;case 3:t.m=e}}_transformPathLikeValue(t,e){let r=0;return e<=1&&(r=this.previousCoordinate[e],this.previousCoordinate[e]+=t),this.applyTransform(this.transform,t,e,r)}_addCoordinatePolyline(t,e,r){this._dehydratedAddPointsCoordinate(t.paths,e,r)}_addCoordinatePolygon(t,e,r){this._dehydratedAddPointsCoordinate(t.rings,e,r)}_addCoordinateMultipoint(t,e,r){0===r&&t.points.push([]);const s=this._transformPathLikeValue(e,r);t.points[t.points.length-1].push(s)}_createPolygonGeometry(t){return{rings:[[]],spatialReference:t.spatialReference,hasZ:!!t.hasZ,hasM:!!t.hasM}}_createPolylineGeometry(t){return{paths:[[]],spatialReference:t.spatialReference,hasZ:!!t.hasZ,hasM:!!t.hasM}}_createMultipointGeometry(t){return{points:[],spatialReference:t.spatialReference,hasZ:!!t.hasZ,hasM:!!t.hasM}}_dehydratedAddPointsCoordinate(t,e,r){0===r&&0==this.toAddInCurrentPath--&&(t.push([]),this.toAddInCurrentPath=this.lengths[++this.currentLengthIndex]-1,this.previousCoordinate[0]=0,this.previousCoordinate[1]=0);const s=this._transformPathLikeValue(e,r),n=t[t.length-1];0===r&&(this.coordinateBufferPtr=0,this.coordinateBuffer=new Array(this.vertexDimension),n.push(this.coordinateBuffer)),this.coordinateBuffer[this.coordinateBufferPtr++]=s}_deriveApplyTransform(t){const{hasZ:e,hasM:r}=t;return e&&r?v:e?w:r?j:x}}var D=r(34599),A=r(74889),N=r(57444);var P=r(40330),G=r(76497),J=r(98326);function k(t){const e=t.toJSON();return e.attachmentTypes&&(e.attachmentTypes=e.attachmentTypes.join(",")),e.keywords&&(e.keywords=e.keywords.join(",")),e.globalIds&&(e.globalIds=e.globalIds.join(",")),e.objectIds&&(e.objectIds=e.objectIds.join(",")),e.size&&(e.size=e.size.join(",")),e}function Z(t,e){const r={};for(const s of t){const{parentObjectId:t,parentGlobalId:n,attachmentInfos:o}=s;for(const s of o){const{id:o}=s,a=(0,y.qg)((0,P.Dp)(`${e}/${t}/attachments/${o}`)),i=J.Z.fromJSON(s);i.set({url:a,parentObjectId:t,parentGlobalId:n}),r[t]?r[t].push(i):r[t]=[i]}}return r}var Q=r(56545);var M=r(41818),z=r(5396);function B(t,e){const r=t.toJSON();return r.objectIds&&(r.objectIds=r.objectIds.join(",")),r.orderByFields&&(r.orderByFields=r.orderByFields.join(",")),r.outFields&&!e?.returnCountOnly?r.outFields.includes("*")?r.outFields="*":r.outFields=r.outFields.join(","):delete r.outFields,r.outSpatialReference&&(r.outSR=r.outSR.wkid||JSON.stringify(r.outSR.toJSON()),delete r.outSpatialReference),r.dynamicDataSource&&(r.layer=JSON.stringify({source:r.dynamicDataSource}),delete r.dynamicDataSource),r}async function U(t,e,r={},s){const n=(0,G.A)({...t.query,f:"json",...s,...B(e,s)});return(0,o.default)(t.path+"/queryRelatedRecords",{...r,query:{...r.query,...n}})}var V=r(75935);var L=r(82526),$=r(28694);const W="Layer does not support extent calculation.";function H(t,e){const r=t.geometry,s=t.toJSON(),n=s;if((0,c.pC)(r)&&(n.geometry=JSON.stringify(r),n.geometryType=(0,b.Ji)(r),n.inSR=r.spatialReference.wkid||JSON.stringify(r.spatialReference)),s.topFilter?.groupByFields&&(n.topFilter.groupByFields=s.topFilter.groupByFields.join(",")),s.topFilter?.orderByFields&&(n.topFilter.orderByFields=s.topFilter.orderByFields.join(",")),s.topFilter&&(n.topFilter=JSON.stringify(n.topFilter)),s.objectIds&&(n.objectIds=s.objectIds.join(",")),s.orderByFields&&(n.orderByFields=s.orderByFields.join(",")),s.outFields&&!(e?.returnCountOnly||e?.returnExtentOnly||e?.returnIdsOnly)?s.outFields.includes("*")?n.outFields="*":n.outFields=s.outFields.join(","):delete n.outFields,s.outSR?n.outSR=s.outSR.wkid||JSON.stringify(s.outSR):r&&s.returnGeometry&&(n.outSR=n.inSR),s.returnGeometry&&delete s.returnGeometry,s.timeExtent){const t=s.timeExtent,{start:e,end:r}=t;null==e&&null==r||(n.time=e===r?e:`${null==e?"null":e},${null==r?"null":r}`),delete s.timeExtent}return n}function X(t,e,r,s={},n={}){const a="string"==typeof t?(0,y.mN)(t):t,i=e.geometry?[e.geometry]:[];return s.responseType="pbf"===r?"array-buffer":"json",(0,L.aX)(i,null,s).then((t=>{const i=t&&t[0];(0,c.pC)(i)&&((e=e.clone()).geometry=i);const u=(0,G.A)({...a.query,f:r,...n,...H(e,n)});return(0,o.default)((0,y.v_)(a.path,"queryTopFeatures"),{...s,query:{...u,...s.query}})}))}var Y=r(28141);var K=r(15923);let tt=class extends K.Z{constructor(...t){super(...t),this.requestOptions=null,this.url=null}normalizeCtorArgs(t,e){return"string"!=typeof t?t:{url:t,...e}}get parsedUrl(){return this._parseUrl(this.url)}_parseUrl(t){return t?(0,y.mN)(t):null}_encode(t,e,r){const s={};for(const n in t){if("declaredClass"===n)continue;const o=t[n];if(null!=o&&"function"!=typeof o)if(Array.isArray(o)){s[n]=[];for(let t=0;t<o.length;t++)s[n][t]=this._encode(o[t])}else if("object"==typeof o)if(o.toJSON){const t=o.toJSON(r&&r[n]);s[n]=e?t:JSON.stringify(t)}else s[n]=e?o:JSON.stringify(o);else s[n]=o}return s}};(0,s._)([(0,f.Cb)({readOnly:!0})],tt.prototype,"parsedUrl",null),(0,s._)([(0,f.Cb)()],tt.prototype,"requestOptions",void 0),(0,s._)([(0,f.Cb)({type:String})],tt.prototype,"url",void 0),tt=(0,s._)([(0,m.j)("esri.tasks.Task")],tt);const et=tt;let rt=class extends et{constructor(t){super(t),this.dynamicDataSource=null,this.fieldsIndex=null,this.format="json",this.gdbVersion=null,this.infoFor3D=null,this.sourceSpatialReference=null}execute(t,e){return this.executeJSON(t,e).then((r=>this.featureSetFromJSON(t,r,e)))}async executeJSON(t,e){const r={...this.requestOptions,...e},s=this._normalizeQuery(t),n=null!=t.outStatistics?.[0],o=(0,u.Z)("featurelayer-pbf-statistics"),a=!n||o;let i;if("pbf"===this.format&&a)try{i=await async function(t,e,r){const s=(0,S.en)(t),n={...r},o=N.Z.from(e),a=!o.quantizationParameters,{data:i}=await(0,D.executeQueryPBF)(s,o,new T({sourceSpatialReference:o.sourceSpatialReference,applyTransform:a}),n);return i}(this.url,s,r)}catch(t){if("query:parsing-pbf"!==t.name)throw t;this.format="json"}return"json"!==this.format&&a||(i=await(0,O.F)(this.url,s,r)),this._normalizeFields(i.fields),i}async featureSetFromJSON(t,e,s){if(!this._queryIs3DObjectFormat(t)||(0,c.Wi)(this.infoFor3D)||!e.features||!e.features.length)return A.default.fromJSON(e);const{meshFeatureSetFromJSON:n}=await(0,h.Hl)(Promise.all([r.e(4547),r.e(6481),r.e(6459),r.e(8163)]).then(r.bind(r,38163)),s);return n(t,this.infoFor3D,e)}executeForCount(t,e){const r={...this.requestOptions,...e},s=this._normalizeQuery(t);return(0,M.P)(this.url,s,r)}executeForExtent(t,e){const r={...this.requestOptions,...e},s=this._normalizeQuery(t);return async function(t,e,r){const s=(0,S.en)(t);return(0,D.executeQueryForExtent)(s,N.Z.from(e),{...r}).then((t=>({count:t.data.count,extent:g.Z.fromJSON(t.data.extent)})))}(this.url,s,r)}executeForIds(t,e){const r={...this.requestOptions,...e},s=this._normalizeQuery(t);return(0,z.G)(this.url,s,r)}executeRelationshipQuery(t,e){t=V.Z.from(t);const r={...this.requestOptions,...e};return(this.gdbVersion||this.dynamicDataSource)&&((t=t.clone()).gdbVersion=t.gdbVersion||this.gdbVersion,t.dynamicDataSource=t.dynamicDataSource||this.dynamicDataSource),async function(t,e,r){return e=V.Z.from(e),async function(t,e,r){const s=await U(t,e,r),n=s.data,o=n.geometryType,a=n.spatialReference,i={};for(const t of n.relatedRecordGroups){const e={fields:void 0,objectIdFieldName:void 0,geometryType:o,spatialReference:a,hasZ:!!n.hasZ,hasM:!!n.hasM,features:t.relatedRecords};if(null!=t.objectId)i[t.objectId]=e;else for(const r in t)t.hasOwnProperty(r)&&"relatedRecords"!==r&&(i[t[r]]=e)}return{...s,data:i}}((0,S.en)(t),e,r).then((t=>{const e=t.data,r={};return Object.keys(e).forEach((t=>r[t]=A.default.fromJSON(e[t]))),r}))}(this.url,t,r)}executeRelationshipQueryForCount(t,e){t=V.Z.from(t);const r={...this.requestOptions,...e};return(this.gdbVersion||this.dynamicDataSource)&&((t=t.clone()).gdbVersion=t.gdbVersion||this.gdbVersion,t.dynamicDataSource=t.dynamicDataSource||this.dynamicDataSource),async function(t,e,r){return e=V.Z.from(e),async function(t,e,r){const s=await U(t,e,r,{returnCountOnly:!0}),n=s.data,o={};for(const t of n.relatedRecordGroups)null!=t.objectId&&(o[t.objectId]=t.count);return{...s,data:o}}((0,S.en)(t),e,{...r}).then((t=>t.data))}(this.url,t,r)}executeAttachmentQuery(t,e){const r={...this.requestOptions,...e};return async function(t,e,r){const s=(0,S.en)(t);return function(t,e,r){let s={query:(0,G.A)({...t.query,f:"json",...k(e)})};return r&&(s={...r,...s,query:{...r.query,...s.query}}),(0,o.default)(t.path+"/queryAttachments",s)}(s,Q.Z.from(e),{...r}).then((t=>Z(t.data.attachmentGroups,s.path)))}(this.url,t,r)}executeTopFeaturesQuery(t,e){const r={...this.requestOptions,...e};return async function(t,e,r,s){const n=(0,S.en)(t),o={...s},{data:a}=await async function(t,e,r,s){const n=await X(t,e,"json",s);return(0,$.p)(e,r,n.data),n}(n,Y.Z.from(e),r,o);return A.default.fromJSON(a)}(this.parsedUrl,t,this.sourceSpatialReference,r)}executeForTopIds(t,e){const r={...this.requestOptions,...e};return async function(t,e,r){const s=(0,S.en)(t);return(await async function(t,e,r){return(0,c.pC)(e.timeExtent)&&e.timeExtent.isEmpty?{data:{objectIds:[]}}:X(t,e,"json",r,{returnIdsOnly:!0})}(s,Y.Z.from(e),{...r})).data.objectIds}(this.parsedUrl,t,r)}executeForTopExtents(t,e){const r={...this.requestOptions,...e};return async function(t,e,r){const s=(0,S.en)(t),n=await async function(t,e,r){return(0,c.pC)(e.timeExtent)&&e.timeExtent.isEmpty?{data:{count:0,extent:null}}:X(t,e,"json",r,{returnExtentOnly:!0,returnCountOnly:!0}).then((t=>{const e=t.data;if(e.hasOwnProperty("extent"))return t;if(e.features)throw new Error(W);if(e.hasOwnProperty("count"))throw new Error(W);return t}))}(s,Y.Z.from(e),{...r});return{count:n.data.count,extent:g.Z.fromJSON(n.data.extent)}}(this.parsedUrl,t,r)}executeForTopCount(t,e){const r={...this.requestOptions,...e};return async function(t,e,r){const s=(0,S.en)(t);return(await(n=s,o=Y.Z.from(e),a={...r},(0,c.pC)(o.timeExtent)&&o.timeExtent.isEmpty?Promise.resolve({data:{count:0}}):X(n,o,"json",a,{returnIdsOnly:!0,returnCountOnly:!0}))).data.count;var n,o,a}(this.parsedUrl,t,r)}_normalizeQuery(t){let e=N.Z.from(t);if(e.sourceSpatialReference=e.sourceSpatialReference||this.sourceSpatialReference,(this.gdbVersion||this.dynamicDataSource)&&(e=e===t?e.clone():e,e.gdbVersion=t.gdbVersion||this.gdbVersion,e.dynamicDataSource=t.dynamicDataSource?R.n.from(t.dynamicDataSource):this.dynamicDataSource),(0,c.pC)(this.infoFor3D)&&this._queryIs3DObjectFormat(t)){e=e===t?e.clone():e,e.formatOf3DObjects=null;for(const t of this.infoFor3D.queryFormats){if("3D_glb"===t.id){e.formatOf3DObjects=t.id;break}"3D_gltf"!==t.id||e.formatOf3DObjects||(e.formatOf3DObjects=t.id)}if(!e.formatOf3DObjects)throw new i.Z("query:unsupported-3d-query-formats","Could not find any supported 3D object query format. Only supported formats are 3D_glb and 3D_gltf");if((0,c.Wi)(e.outFields)||!e.outFields.includes("*")){e=e===t?e.clone():e,(0,c.Wi)(e.outFields)&&(e.outFields=[]);const{originX:r,originY:s,originZ:n,translationX:o,translationY:a,translationZ:i,scaleX:u,scaleY:d,scaleZ:l,rotationX:p,rotationY:h,rotationZ:y,rotationDeg:f}=this.infoFor3D.transformFieldRoles;e.outFields.push(r,s,n,o,a,i,u,d,l,p,h,y,f)}}return e}_normalizeFields(t){if((0,c.pC)(this.fieldsIndex)&&(0,c.pC)(t))for(const e of t){const t=this.fieldsIndex.get(e.name);t&&Object.assign(e,t.toJSON())}}_queryIs3DObjectFormat(t){return(0,c.pC)(this.infoFor3D)&&t.returnGeometry&&"xyFootprint"!==t.multipatchOption&&!t.outStatistics}};(0,s._)([(0,f.Cb)({type:R.n})],rt.prototype,"dynamicDataSource",void 0),(0,s._)([(0,f.Cb)()],rt.prototype,"fieldsIndex",void 0),(0,s._)([(0,f.Cb)()],rt.prototype,"format",void 0),(0,s._)([(0,f.Cb)()],rt.prototype,"gdbVersion",void 0),(0,s._)([(0,f.Cb)()],rt.prototype,"infoFor3D",void 0),(0,s._)([(0,f.Cb)()],rt.prototype,"sourceSpatialReference",void 0),rt=(0,s._)([(0,m.j)("esri.tasks.QueryTask")],rt);const st=rt;var nt=r(59431),ot=r(82971);const at=new d.X({originalAndCurrentFeatures:"original-and-current-features",none:"none"}),it=new Set(["Feature Layer","Table"]);let ut=class extends l.Z{constructor(){super(...arguments),this.type="feature-layer",this.refresh=(0,h.Ds)((async()=>{await this.load();const t=this.sourceJSON.editingInfo?.lastEditDate;if(null==t)return{dataChanged:!0,updates:{}};try{await this._fetchService(null)}catch{return{dataChanged:!0,updates:{}}}const e=t!==this.sourceJSON.editingInfo?.lastEditDate;return{dataChanged:e,updates:e?{editingInfo:this.sourceJSON.editingInfo,extent:this.sourceJSON.extent}:null}}))}load(t){const e=(0,c.pC)(t)?t.signal:null;return this.addResolvingPromise(this._fetchService(this.layer.sourceJSON,e)),Promise.resolve(this)}get queryTask(){const{capabilities:{query:{supportsFormatPBF:t}},parsedUrl:e,dynamicDataSource:r,infoFor3D:s,gdbVersion:n,spatialReference:o,fieldsIndex:a}=this.layer,i=(0,u.Z)("featurelayer-pbf")&&t&&(0,c.Wi)(s)?"pbf":"json";return new st({url:e.path,format:i,fieldsIndex:a,infoFor3D:s,dynamicDataSource:r,gdbVersion:n,sourceSpatialReference:o})}async addAttachment(t,e){await this.load();const r=t.attributes[this.layer.objectIdField],s=this.layer.parsedUrl.path+"/"+r+"/addAttachment",n=this._getLayerRequestOptions(),a=this._getFormDataForAttachment(e,n.query);try{const t=await(0,o.default)(s,{body:a});return this._createFeatureEditResult(t.data.addAttachmentResult)}catch(t){throw this._createAttachmentErrorResult(r,t)}}async updateAttachment(t,e,r){await this.load();const s=t.attributes[this.layer.objectIdField],n=this.layer.parsedUrl.path+"/"+s+"/updateAttachment",a=this._getLayerRequestOptions({query:{attachmentId:e}}),i=this._getFormDataForAttachment(r,a.query);try{const t=await(0,o.default)(n,{body:i});return this._createFeatureEditResult(t.data.updateAttachmentResult)}catch(t){throw this._createAttachmentErrorResult(s,t)}}async applyEdits(t,e){await this.load();const r=t.addFeatures.map(this._serializeFeature,this),s=t.updateFeatures.map(this._serializeFeature,this),n=this._getFeatureIds(t.deleteFeatures,e?.globalIdUsed);(0,nt.P)(r,s,this.layer.spatialReference);const a=[],i=[],u=[...t.deleteAttachments];for(const e of t.addAttachments)a.push(await this._serializeAttachment(e));for(const e of t.updateAttachments)i.push(await this._serializeAttachment(e));const d=a.length||i.length||u.length?{adds:a,updates:i,deletes:u}:null,l={gdbVersion:e?.gdbVersion||this.layer.gdbVersion,rollbackOnFailure:e?.rollbackOnFailureEnabled,useGlobalIds:e?.globalIdUsed,returnEditMoment:e?.returnEditMoment,usePreviousEditMoment:e?.usePreviousEditMoment,sessionId:e?.sessionId};e?.returnServiceEditsOption?(l.edits=JSON.stringify([{id:this.layer.layerId,adds:r,updates:s,deletes:n,attachments:d}]),l.returnServiceEditsOption=at.toJSON(e?.returnServiceEditsOption),l.returnServiceEditsInSourceSR=e?.returnServiceEditsInSourceSR):(l.adds=r.length?JSON.stringify(r):null,l.updates=s.length?JSON.stringify(s):null,l.deletes=n.length?e?.globalIdUsed?JSON.stringify(n):n.join(","):null,l.attachments=d&&JSON.stringify(d));const c=this._getLayerRequestOptions({method:"post",query:l}),p=e?.returnServiceEditsOption?this.layer.url:this.layer.parsedUrl.path,h=await(0,o.default)(p+"/applyEdits",c);return this._createEditsResult(h)}async deleteAttachments(t,e){await this.load();const r=t.attributes[this.layer.objectIdField],s=this.layer.parsedUrl.path+"/"+r+"/deleteAttachments";try{return(await(0,o.default)(s,this._getLayerRequestOptions({query:{attachmentIds:e.join(",")},method:"post"}))).data.deleteAttachmentResults.map(this._createFeatureEditResult)}catch(t){throw this._createAttachmentErrorResult(r,t)}}fetchRecomputedExtents(t={}){const e=t.signal;return this.load({signal:e}).then((async()=>{const e=this._getLayerRequestOptions({...t,query:{returnUpdates:!0}}),{layerId:r,url:s}=this.layer,{data:n}=await(0,o.default)(`${s}/${r}`,e),{id:i,extent:u,fullExtent:d,timeExtent:l}=n,c=u||d;return{id:i,fullExtent:c&&g.Z.fromJSON(c),timeExtent:l&&a.Z.fromJSON({start:l[0],end:l[1]})}}))}async queryAttachments(t,e={}){const{parsedUrl:r}=this.layer,s=r.path;await this.load();const n=this._getLayerRequestOptions(e);if(!this.layer.get("capabilities.operations.supportsQueryAttachments")){const{objectIds:e}=t,r=[];for(const t of e){const e=s+"/"+t+"/attachments";r.push((0,o.default)(e,n))}return Promise.all(r).then((t=>e.map(((e,r)=>({parentObjectId:e,attachmentInfos:t[r].data.attachmentInfos}))))).then((t=>Z(t,s)))}return this.queryTask.executeAttachmentQuery(t,n)}async queryFeatures(t,e){return await this.load(),this.queryTask.execute(t,{...e,query:this._createRequestQueryOptions(e)})}async queryFeaturesJSON(t,e){return await this.load(),this.queryTask.executeJSON(t,{...e,query:this._createRequestQueryOptions(e)})}async queryObjectIds(t,e){return await this.load(),this.queryTask.executeForIds(t,{...e,query:this._createRequestQueryOptions(e)})}async queryFeatureCount(t,e){return await this.load(),this.queryTask.executeForCount(t,{...e,query:this._createRequestQueryOptions(e)})}async queryExtent(t,e){return await this.load(),this.queryTask.executeForExtent(t,{...e,query:this._createRequestQueryOptions(e)})}async queryRelatedFeatures(t,e){return await this.load(),this.queryTask.executeRelationshipQuery(t,{...e,query:this._createRequestQueryOptions(e)})}async queryRelatedFeaturesCount(t,e){return await this.load(),this.queryTask.executeRelationshipQueryForCount(t,{...e,query:this._createRequestQueryOptions(e)})}async queryTopFeatures(t,e){return await this.load(),this.queryTask.executeTopFeaturesQuery(t,{...e,query:this._createRequestQueryOptions(e)})}async queryTopObjectIds(t,e){return await this.load(),this.queryTask.executeForTopIds(t,{...e,query:this._createRequestQueryOptions(e)})}async queryTopExtents(t,e){return await this.load(),this.queryTask.executeForTopExtents(t,{...e,query:this._createRequestQueryOptions(e)})}async queryTopCount(t,e){return await this.load(),this.queryTask.executeForTopCount(t,{...e,query:this._createRequestQueryOptions(e)})}_createRequestQueryOptions(t){const e={...this.layer.customParameters,token:this.layer.apiKey,...t?.query};return this.layer.datesInUnknownTimezone&&(e.timeReferenceUnknownClient=!0),e}async _fetchService(t,e){if(!t){const{data:r}=await(0,o.default)(this.layer.parsedUrl.path,this._getLayerRequestOptions({query:(0,u.Z)("featurelayer-advanced-symbols")?{returnAdvancedSymbols:!0}:{},signal:e}));t=r}this.sourceJSON=this._patchServiceJSON(t);const r=t.type;if(!it.has(r))throw new i.Z("feature-layer-source:unsupported-type",`Source type "${r}" is not supported`)}_patchServiceJSON(t){if("Table"!==t.type&&t.geometryType&&!t?.drawingInfo?.renderer&&!t.defaultSymbol){const e=(0,F.bU)(t.geometryType).renderer;(0,p.RB)("drawingInfo.renderer",e,t)}return"esriGeometryMultiPatch"===t.geometryType&&t.infoFor3D&&(t.geometryType="mesh"),t}_serializeFeature(t){const{geometry:e,attributes:r}=t;return(0,c.Wi)(e)?{attributes:r}:"mesh"===e.type||"extent"===e.type?null:{geometry:e.toJSON(),attributes:r}}async _serializeAttachment(t){const{feature:e,attachment:r}=t,{globalId:s,name:n,contentType:o,data:a,uploadId:i}=r,u={globalId:s,parentGlobalId:null,contentType:null,name:null,uploadId:null,data:null};if(e&&(u.parentGlobalId="attributes"in e?e.attributes&&e.attributes[this.layer.globalIdField]:e.globalId),i)u.uploadId=i;else if(a){const t=await async function(t){return"string"==typeof t?(0,y.sJ)(t)||{data:t}:new Promise(((e,r)=>{const s=new FileReader;s.readAsDataURL(t),s.onload=()=>e((0,y.sJ)(s.result)),s.onerror=t=>r(t)}))}(a);u.contentType=t.mediaType,u.data=t.data,a instanceof File&&(u.name=a.name)}return n&&(u.name=n),o&&(u.contentType=o),u}_getFeatureIds(t,e){const r=t[0];return r?this._canUseGlobalIds(e,t)?this._getGlobalIdsFromFeatureIdentifier(t):"objectId"in r?this._getObjectIdsFromFeatureIdentifier(t):this._getIdsFromFeatures(t):[]}_getIdsFromFeatures(t){const e=this.layer.objectIdField;return t.map((t=>t.attributes&&t.attributes[e]))}_canUseGlobalIds(t,e){return t&&"globalId"in e[0]}_getObjectIdsFromFeatureIdentifier(t){return t.map((t=>t.objectId))}_getGlobalIdsFromFeatureIdentifier(t){return t.map((t=>t.globalId))}_createEditsResult(t){const e=t.data,{layerId:r}=this.layer,s=[];let n=null;if(Array.isArray(e))for(const t of e)s.push({id:t.id,editedFeatures:t.editedFeatures}),t.id===r&&(n={addResults:t.addResults,updateResults:t.updateResults,deleteResults:t.deleteResults,attachments:t.attachments,editMoment:t.editMoment});else n=e;const o=n?.attachments,a={addFeatureResults:n.addResults?n.addResults.map(this._createFeatureEditResult,this):[],updateFeatureResults:n.updateResults?n.updateResults.map(this._createFeatureEditResult,this):[],deleteFeatureResults:n.deleteResults?n.deleteResults.map(this._createFeatureEditResult,this):[],addAttachmentResults:o&&o.addResults?o.addResults.map(this._createFeatureEditResult,this):[],updateAttachmentResults:o&&o.updateResults?o.updateResults.map(this._createFeatureEditResult,this):[],deleteAttachmentResults:o&&o.deleteResults?o.deleteResults.map(this._createFeatureEditResult,this):[]};if(n.editMoment&&(a.editMoment=n.editMoment),s.length>0){a.editedFeatureResults=[];for(const t of s){const{adds:e,updates:r,deletes:s,spatialReference:n}=t.editedFeatures,o=n?new ot.Z(n):null;a.editedFeatureResults.push({layerId:t.id,editedFeatures:{adds:e?.map((t=>this._createEditedFeature(t,o)))||[],updates:r?.map((t=>({original:this._createEditedFeature(t[0],o),current:this._createEditedFeature(t[1],o)})))||[],deletes:s?.map((t=>this._createEditedFeature(t,o)))||[],spatialReference:o}})}}return a}_createEditedFeature(t,e){return new n.Z({attributes:t.attributes,geometry:(0,b.im)({...t.geometry,spatialReference:e})})}_createFeatureEditResult(t){const e=!0===t.success?null:t.error||{code:void 0,description:void 0};return{objectId:t.objectId,globalId:t.globalId,error:e?new i.Z("feature-layer-source:edit-failure",e.description,{code:e.code}):null}}_createAttachmentErrorResult(t,e){const r=e.details.messages&&e.details.messages[0]||e.message,s=e.details.httpStatus||e.details.messageCode;return{objectId:t,globalId:null,error:new i.Z("feature-layer-source:attachment-failure",r,{code:s})}}_getFormDataForAttachment(t,e){const r=t instanceof FormData?t:t&&t.elements?new FormData(t):null;if(r)for(const t in e){const s=e[t];null!=s&&(r.set?r.set(t,s):r.append(t,s))}return r}_getLayerRequestOptions(t={}){const{parsedUrl:e,gdbVersion:r,dynamicDataSource:s}=this.layer;return{...t,query:{gdbVersion:r,layer:s?JSON.stringify({source:s}):void 0,...e.query,f:"json",...this._createRequestQueryOptions(t)},responseType:"json"}}};(0,s._)([(0,f.Cb)()],ut.prototype,"type",void 0),(0,s._)([(0,f.Cb)({constructOnly:!0})],ut.prototype,"layer",void 0),(0,s._)([(0,f.Cb)({readOnly:!0})],ut.prototype,"queryTask",null),ut=(0,s._)([(0,m.j)("esri.layers.graphics.sources.FeatureLayerSource")],ut);const dt=ut},25278:(t,e,r)=>{r.d(e,{Dm:()=>l,Hq:()=>c,MS:()=>p,bU:()=>i});var s=r(80442),n=r(22974),o=r(61159),a=r(58333);function i(t){return{renderer:{type:"simple",symbol:"esriGeometryPoint"===t||"esriGeometryMultipoint"===t?a.I4:"esriGeometryPolyline"===t?a.ET:a.lF}}}const u=/^[_$a-zA-Z][_$a-zA-Z0-9]*$/;let d=1;function l(t,e){if((0,s.Z)("esri-csp-restrictions"))return()=>({[e]:null,...t});try{let r=`this.${e} = null;`;for(const e in t)r+=`this${u.test(e)?`.${e}`:`["${e}"]`} = ${JSON.stringify(t[e])};`;const s=new Function(`\n return class AttributesClass$${d++} {\n constructor() {\n ${r};\n }\n }\n `)();return()=>new s}catch(r){return()=>({[e]:null,...t})}}function c(t={}){return[{name:"New Feature",description:"",prototype:{attributes:(0,n.d9)(t)}}]}function p(t,e){return{attachment:null,data:{isVersioned:!1,supportsAttachment:!1,supportsM:!1,supportsZ:t},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:e,supportsDelete:e,supportsEditing:e,supportsChangeTracking:!1,supportsQuery:!0,supportsQueryAttachments:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:e,supportsExceedsLimitStatistics:!0},query:o.g,queryRelated:{supportsCount:!0,supportsOrderBy:!0,supportsPagination:!0},editing:{supportsGeometryUpdate:e,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1}}}},41818:(t,e,r)=>{r.d(e,{P:()=>a});var s=r(11282),n=r(34599),o=r(57444);async function a(t,e,r){const a=(0,s.en)(t);return(0,n.executeQueryForCount)(a,o.Z.from(e),{...r}).then((t=>t.data.count))}},5396:(t,e,r)=>{r.d(e,{G:()=>a});var s=r(11282),n=r(34599),o=r(57444);async function a(t,e,r){const a=(0,s.en)(t);return(0,n.executeQueryForIds)(a,o.Z.from(e),{...r}).then((t=>t.data.objectIds))}},4967:(t,e,r)=>{r.d(e,{F:()=>u,e:()=>i});var s=r(11282),n=r(34599),o=r(74889),a=r(57444);async function i(t,e,r){const s=await u(t,e,r);return o.default.fromJSON(s)}async function u(t,e,r){const o=(0,s.en)(t),i={...r},u=a.Z.from(e),{data:d}=await(0,n.executeQuery)(o,u,u.sourceSpatialReference,i);return d}},98326:(t,e,r)=>{r.d(e,{Z:()=>c});var s,n=r(43697),o=r(96674),a=r(5600),i=(r(67676),r(80442),r(75215)),u=r(52011);const d={1:{id:1,rotation:0,mirrored:!1},2:{id:2,rotation:0,mirrored:!0},3:{id:3,rotation:180,mirrored:!1},4:{id:4,rotation:180,mirrored:!0},5:{id:5,rotation:-90,mirrored:!0},6:{id:6,rotation:90,mirrored:!1},7:{id:7,rotation:90,mirrored:!0},8:{id:8,rotation:-90,mirrored:!1}};let l=s=class extends o.wq{constructor(t){super(t),this.contentType=null,this.exifInfo=null,this.id=null,this.globalId=null,this.keywords=null,this.name=null,this.parentGlobalId=null,this.parentObjectId=null,this.size=null,this.url=null}get orientationInfo(){const{exifInfo:t}=this,e=function(t){const{exifInfo:e,exifName:r,tagName:s}=t;if(!e||!r||!s)return null;const n=e.find((t=>t.name===r));return n?function(t){const{tagName:e,tags:r}=t;if(!r||!e)return null;const s=r.find((t=>t.name===e));return s&&s.value||null}({tagName:s,tags:n.tags}):null}({exifName:"Exif IFD0",tagName:"Orientation",exifInfo:t});return d[e]||null}clone(){return new s({contentType:this.contentType,exifInfo:this.exifInfo,id:this.id,globalId:this.globalId,keywords:this.keywords,name:this.name,parentGlobalId:this.parentGlobalId,parentObjectId:this.parentObjectId,size:this.size,url:this.url})}};(0,n._)([(0,a.Cb)({type:String})],l.prototype,"contentType",void 0),(0,n._)([(0,a.Cb)()],l.prototype,"exifInfo",void 0),(0,n._)([(0,a.Cb)({readOnly:!0})],l.prototype,"orientationInfo",null),(0,n._)([(0,a.Cb)({type:i.z8})],l.prototype,"id",void 0),(0,n._)([(0,a.Cb)({type:String})],l.prototype,"globalId",void 0),(0,n._)([(0,a.Cb)({type:String})],l.prototype,"keywords",void 0),(0,n._)([(0,a.Cb)({type:String})],l.prototype,"name",void 0),(0,n._)([(0,a.Cb)({json:{read:!1}})],l.prototype,"parentGlobalId",void 0),(0,n._)([(0,a.Cb)({json:{read:!1}})],l.prototype,"parentObjectId",void 0),(0,n._)([(0,a.Cb)({type:i.z8})],l.prototype,"size",void 0),(0,n._)([(0,a.Cb)({json:{read:!1}})],l.prototype,"url",void 0),l=s=(0,n._)([(0,u.j)("esri.layers.support.AttachmentInfo")],l);const c=l},11282:(t,e,r)=>{r.d(e,{cv:()=>i,en:()=>a,lA:()=>o});var s=r(22974),n=r(17452);function o(t,e){return e?{...e,query:{...t,...e.query}}:{query:t}}function a(t){return"string"==typeof t?(0,n.mN)(t):(0,s.d9)(t)}function i(t,e,r){const s={};for(const n in t){if("declaredClass"===n)continue;const o=t[n];if(null!=o&&"function"!=typeof o)if(Array.isArray(o)){s[n]=[];for(let t=0;t<o.length;t++)s[n][t]=i(o[t])}else if("object"==typeof o)if(o.toJSON){const t=o.toJSON(r&&r[n]);s[n]=e?t:JSON.stringify(t)}else s[n]=e?o:JSON.stringify(o);else s[n]=o}return s}}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8899],{61159:(t,e,r)=>{r.d(e,{g:()=>s});const s={supportsStatistics:!0,supportsPercentileStatistics:!0,supportsSpatialAggregationStatistics:!1,supportedSpatialAggregationStatistics:{envelope:!1,centroid:!1,convexHull:!1},supportsCentroid:!0,supportsCacheHint:!1,supportsDistance:!0,supportsDistinct:!0,supportsExtent:!0,supportsGeometryProperties:!1,supportsHavingClause:!0,supportsOrderBy:!0,supportsPagination:!0,supportsQuantization:!0,supportsQuantizationEditMode:!1,supportsQueryGeometry:!0,supportsResultType:!1,supportsSqlExpression:!0,supportsMaxRecordCountFactor:!1,supportsStandardizedQueriesOnly:!0,supportsTopFeaturesQuery:!1,supportsQueryByOthers:!0,supportsHistoricMoment:!1,supportsFormatPBF:!1,supportsDisjointSpatialRelationship:!0,supportsDefaultSpatialReference:!1,supportsCompactGeometry:!1,maxRecordCountFactor:void 0,maxRecordCount:void 0,standardMaxRecordCount:void 0,tileMaxRecordCount:void 0}},38899:(t,e,r)=>{r.r(e),r.d(e,{default:()=>lt});var s=r(43697),n=(r(66577),r(38171)),o=r(3172),a=r(92835),i=r(20102),u=r(80442),l=r(35454),d=r(83379),c=r(70586),p=r(78286),h=r(95330),y=r(17452),f=r(5600),m=(r(67676),r(75215),r(52011)),g=r(6570),b=r(33955),F=r(25278),R=r(10158),O=r(4967),S=r(11282),I=r(74085),_=r(69285),q=r(98732);function C(t,e){return e}function x(t,e,r,s){switch(r){case 0:return T(t,e+s,0);case 1:return"lowerLeft"===t.originPosition?T(t,e+s,1):function({translate:t,scale:e},r,s){return t[s]-r*e[s]}(t,e+s,1)}}function w(t,e,r,s){return 2===r?T(t,e,2):x(t,e,r,s)}function j(t,e,r,s){return 2===r?T(t,e,3):x(t,e,r,s)}function v(t,e,r,s){return 3===r?T(t,e,3):w(t,e,r,s)}function T({translate:t,scale:e},r,s){return t[s]+r*e[s]}class E{constructor(t){this.options=t,this.geometryTypes=["esriGeometryPoint","esriGeometryMultipoint","esriGeometryPolyline","esriGeometryPolygon"],this.previousCoordinate=[0,0],this.transform=null,this.applyTransform=C,this.lengths=[],this.currentLengthIndex=0,this.toAddInCurrentPath=0,this.vertexDimension=0,this.coordinateBuffer=null,this.coordinateBufferPtr=0,this._attributesConstructor=()=>{}}createFeatureResult(){return{fields:[],features:[]}}finishFeatureResult(t){if(this.options.applyTransform&&(t.transform=null),this._attributesConstructor=()=>{},this.coordinateBuffer=null,this.lengths.length=0,!t.hasZ)return;const e=(0,_.k)(t.geometryType,this.options.sourceSpatialReference,t.spatialReference);if(!(0,c.Wi)(e))for(const r of t.features)e(r.geometry)}createSpatialReference(){return{}}addField(t,e){t.fields.push(e);const r=t.fields.map((t=>t.name));this._attributesConstructor=function(){for(const t of r)this[t]=null}}addFeature(t,e){t.features.push(e)}prepareFeatures(t){switch(this.transform=t.transform,this.options.applyTransform&&t.transform&&(this.applyTransform=this._deriveApplyTransform(t)),this.vertexDimension=2,t.hasZ&&this.vertexDimension++,t.hasM&&this.vertexDimension++,t.geometryType){case"esriGeometryPoint":this.addCoordinate=(t,e,r)=>this.addCoordinatePoint(t,e,r),this.createGeometry=t=>this.createPointGeometry(t);break;case"esriGeometryPolygon":this.addCoordinate=(t,e,r)=>this._addCoordinatePolygon(t,e,r),this.createGeometry=t=>this._createPolygonGeometry(t);break;case"esriGeometryPolyline":this.addCoordinate=(t,e,r)=>this._addCoordinatePolyline(t,e,r),this.createGeometry=t=>this._createPolylineGeometry(t);break;case"esriGeometryMultipoint":this.addCoordinate=(t,e,r)=>this._addCoordinateMultipoint(t,e,r),this.createGeometry=t=>this._createMultipointGeometry(t);break;default:(0,I.Bg)(t.geometryType)}}createFeature(){return this.lengths.length=0,this.currentLengthIndex=0,this.previousCoordinate[0]=0,this.previousCoordinate[1]=0,this.coordinateBuffer=null,this.coordinateBufferPtr=0,{attributes:new this._attributesConstructor}}allocateCoordinates(){}addLength(t,e,r){0===this.lengths.length&&(this.toAddInCurrentPath=e),this.lengths.push(e)}addQueryGeometry(t,e){const{queryGeometry:r,queryGeometryType:s}=e,n=(0,q.$g)(r.clone(),r,!1,!1,this.transform),o=(0,q.di)(n,s,!1,!1);t.queryGeometryType=s,t.queryGeometry={...o}}createPointGeometry(t){const e={x:0,y:0,spatialReference:t.spatialReference};return t.hasZ&&(e.z=0),t.hasM&&(e.m=0),e}addCoordinatePoint(t,e,r){switch(e=this.applyTransform(this.transform,e,r,0),r){case 0:t.x=e;break;case 1:t.y=e;break;case 2:"z"in t?t.z=e:t.m=e;break;case 3:t.m=e}}_transformPathLikeValue(t,e){let r=0;return e<=1&&(r=this.previousCoordinate[e],this.previousCoordinate[e]+=t),this.applyTransform(this.transform,t,e,r)}_addCoordinatePolyline(t,e,r){this._dehydratedAddPointsCoordinate(t.paths,e,r)}_addCoordinatePolygon(t,e,r){this._dehydratedAddPointsCoordinate(t.rings,e,r)}_addCoordinateMultipoint(t,e,r){0===r&&t.points.push([]);const s=this._transformPathLikeValue(e,r);t.points[t.points.length-1].push(s)}_createPolygonGeometry(t){return{rings:[[]],spatialReference:t.spatialReference,hasZ:!!t.hasZ,hasM:!!t.hasM}}_createPolylineGeometry(t){return{paths:[[]],spatialReference:t.spatialReference,hasZ:!!t.hasZ,hasM:!!t.hasM}}_createMultipointGeometry(t){return{points:[],spatialReference:t.spatialReference,hasZ:!!t.hasZ,hasM:!!t.hasM}}_dehydratedAddPointsCoordinate(t,e,r){0===r&&0==this.toAddInCurrentPath--&&(t.push([]),this.toAddInCurrentPath=this.lengths[++this.currentLengthIndex]-1,this.previousCoordinate[0]=0,this.previousCoordinate[1]=0);const s=this._transformPathLikeValue(e,r),n=t[t.length-1];0===r&&(this.coordinateBufferPtr=0,this.coordinateBuffer=new Array(this.vertexDimension),n.push(this.coordinateBuffer)),this.coordinateBuffer[this.coordinateBufferPtr++]=s}_deriveApplyTransform(t){const{hasZ:e,hasM:r}=t;return e&&r?v:e?w:r?j:x}}var D=r(34599),A=r(74889),N=r(57444);var P=r(40330),G=r(76497),J=r(98326);function k(t){const e=t.toJSON();return e.attachmentTypes&&(e.attachmentTypes=e.attachmentTypes.join(",")),e.keywords&&(e.keywords=e.keywords.join(",")),e.globalIds&&(e.globalIds=e.globalIds.join(",")),e.objectIds&&(e.objectIds=e.objectIds.join(",")),e.size&&(e.size=e.size.join(",")),e}function Z(t,e){const r={};for(const s of t){const{parentObjectId:t,parentGlobalId:n,attachmentInfos:o}=s;for(const s of o){const{id:o}=s,a=(0,y.qg)((0,P.Dp)(`${e}/${t}/attachments/${o}`)),i=J.Z.fromJSON(s);i.set({url:a,parentObjectId:t,parentGlobalId:n}),r[t]?r[t].push(i):r[t]=[i]}}return r}var Q=r(56545);var M=r(41818),z=r(5396);function B(t,e){const r=t.toJSON();return r.objectIds&&(r.objectIds=r.objectIds.join(",")),r.orderByFields&&(r.orderByFields=r.orderByFields.join(",")),r.outFields&&!e?.returnCountOnly?r.outFields.includes("*")?r.outFields="*":r.outFields=r.outFields.join(","):delete r.outFields,r.outSpatialReference&&(r.outSR=r.outSR.wkid||JSON.stringify(r.outSR.toJSON()),delete r.outSpatialReference),r.dynamicDataSource&&(r.layer=JSON.stringify({source:r.dynamicDataSource}),delete r.dynamicDataSource),r}async function U(t,e,r={},s){const n=(0,G.A)({...t.query,f:"json",...s,...B(e,s)});return(0,o.default)(t.path+"/queryRelatedRecords",{...r,query:{...r.query,...n}})}var V=r(75935);var L=r(82526),$=r(28694);const H="Layer does not support extent calculation.";function W(t,e){const r=t.geometry,s=t.toJSON(),n=s;if((0,c.pC)(r)&&(n.geometry=JSON.stringify(r),n.geometryType=(0,b.Ji)(r),n.inSR=r.spatialReference.wkid||JSON.stringify(r.spatialReference)),s.topFilter?.groupByFields&&(n.topFilter.groupByFields=s.topFilter.groupByFields.join(",")),s.topFilter?.orderByFields&&(n.topFilter.orderByFields=s.topFilter.orderByFields.join(",")),s.topFilter&&(n.topFilter=JSON.stringify(n.topFilter)),s.objectIds&&(n.objectIds=s.objectIds.join(",")),s.orderByFields&&(n.orderByFields=s.orderByFields.join(",")),s.outFields&&!(e?.returnCountOnly||e?.returnExtentOnly||e?.returnIdsOnly)?s.outFields.includes("*")?n.outFields="*":n.outFields=s.outFields.join(","):delete n.outFields,s.outSR?n.outSR=s.outSR.wkid||JSON.stringify(s.outSR):r&&s.returnGeometry&&(n.outSR=n.inSR),s.returnGeometry&&delete s.returnGeometry,s.timeExtent){const t=s.timeExtent,{start:e,end:r}=t;null==e&&null==r||(n.time=e===r?e:`${null==e?"null":e},${null==r?"null":r}`),delete s.timeExtent}return n}function X(t,e,r,s={},n={}){const a="string"==typeof t?(0,y.mN)(t):t,i=e.geometry?[e.geometry]:[];return s.responseType="pbf"===r?"array-buffer":"json",(0,L.aX)(i,null,s).then((t=>{const i=t&&t[0];(0,c.pC)(i)&&((e=e.clone()).geometry=i);const u=(0,G.A)({...a.query,f:r,...n,...W(e,n)});return(0,o.default)((0,y.v_)(a.path,"queryTopFeatures"),{...s,query:{...u,...s.query}})}))}var Y=r(28141);var K=r(15923);let tt=class extends K.Z{constructor(...t){super(...t),this.requestOptions=null,this.url=null}normalizeCtorArgs(t,e){return"string"!=typeof t?t:{url:t,...e}}get parsedUrl(){return this._parseUrl(this.url)}_parseUrl(t){return t?(0,y.mN)(t):null}_encode(t,e,r){const s={};for(const n in t){if("declaredClass"===n)continue;const o=t[n];if(null!=o&&"function"!=typeof o)if(Array.isArray(o)){s[n]=[];for(let t=0;t<o.length;t++)s[n][t]=this._encode(o[t])}else if("object"==typeof o)if(o.toJSON){const t=o.toJSON(r&&r[n]);s[n]=e?t:JSON.stringify(t)}else s[n]=e?o:JSON.stringify(o);else s[n]=o}return s}};(0,s._)([(0,f.Cb)({readOnly:!0})],tt.prototype,"parsedUrl",null),(0,s._)([(0,f.Cb)()],tt.prototype,"requestOptions",void 0),(0,s._)([(0,f.Cb)({type:String})],tt.prototype,"url",void 0),tt=(0,s._)([(0,m.j)("esri.tasks.Task")],tt);const et=tt;let rt=class extends et{constructor(t){super(t),this.dynamicDataSource=null,this.fieldsIndex=null,this.format="json",this.gdbVersion=null,this.infoFor3D=null,this.sourceSpatialReference=null}execute(t,e){return this.executeJSON(t,e).then((r=>this.featureSetFromJSON(t,r,e)))}async executeJSON(t,e){const r={...this.requestOptions,...e},s=this._normalizeQuery(t),n=null!=t.outStatistics?.[0],o=(0,u.Z)("featurelayer-pbf-statistics"),a=!n||o;let i;if("pbf"===this.format&&a)try{i=await async function(t,e,r){const s=(0,S.en)(t),n={...r},o=N.Z.from(e),a=!o.quantizationParameters,{data:i}=await(0,D.executeQueryPBF)(s,o,new E({sourceSpatialReference:o.sourceSpatialReference,applyTransform:a}),n);return i}(this.url,s,r)}catch(t){if("query:parsing-pbf"!==t.name)throw t;this.format="json"}return"json"!==this.format&&a||(i=await(0,O.F)(this.url,s,r)),this._normalizeFields(i.fields),i}async featureSetFromJSON(t,e,s){if(!this._queryIs3DObjectFormat(t)||(0,c.Wi)(this.infoFor3D)||!e.features||!e.features.length)return A.default.fromJSON(e);const{meshFeatureSetFromJSON:n}=await(0,h.Hl)(Promise.all([r.e(4547),r.e(6481),r.e(6459),r.e(8163)]).then(r.bind(r,38163)),s);return n(t,this.infoFor3D,e)}executeForCount(t,e){const r={...this.requestOptions,...e},s=this._normalizeQuery(t);return(0,M.P)(this.url,s,r)}executeForExtent(t,e){const r={...this.requestOptions,...e},s=this._normalizeQuery(t);return async function(t,e,r){const s=(0,S.en)(t);return(0,D.executeQueryForExtent)(s,N.Z.from(e),{...r}).then((t=>({count:t.data.count,extent:g.Z.fromJSON(t.data.extent)})))}(this.url,s,r)}executeForIds(t,e){const r={...this.requestOptions,...e},s=this._normalizeQuery(t);return(0,z.G)(this.url,s,r)}executeRelationshipQuery(t,e){t=V.Z.from(t);const r={...this.requestOptions,...e};return(this.gdbVersion||this.dynamicDataSource)&&((t=t.clone()).gdbVersion=t.gdbVersion||this.gdbVersion,t.dynamicDataSource=t.dynamicDataSource||this.dynamicDataSource),async function(t,e,r){return e=V.Z.from(e),async function(t,e,r){const s=await U(t,e,r),n=s.data,o=n.geometryType,a=n.spatialReference,i={};for(const t of n.relatedRecordGroups){const e={fields:void 0,objectIdFieldName:void 0,geometryType:o,spatialReference:a,hasZ:!!n.hasZ,hasM:!!n.hasM,features:t.relatedRecords};if(null!=t.objectId)i[t.objectId]=e;else for(const r in t)t.hasOwnProperty(r)&&"relatedRecords"!==r&&(i[t[r]]=e)}return{...s,data:i}}((0,S.en)(t),e,r).then((t=>{const e=t.data,r={};return Object.keys(e).forEach((t=>r[t]=A.default.fromJSON(e[t]))),r}))}(this.url,t,r)}executeRelationshipQueryForCount(t,e){t=V.Z.from(t);const r={...this.requestOptions,...e};return(this.gdbVersion||this.dynamicDataSource)&&((t=t.clone()).gdbVersion=t.gdbVersion||this.gdbVersion,t.dynamicDataSource=t.dynamicDataSource||this.dynamicDataSource),async function(t,e,r){return e=V.Z.from(e),async function(t,e,r){const s=await U(t,e,r,{returnCountOnly:!0}),n=s.data,o={};for(const t of n.relatedRecordGroups)null!=t.objectId&&(o[t.objectId]=t.count);return{...s,data:o}}((0,S.en)(t),e,{...r}).then((t=>t.data))}(this.url,t,r)}executeAttachmentQuery(t,e){const r={...this.requestOptions,...e};return async function(t,e,r){const s=(0,S.en)(t);return function(t,e,r){let s={query:(0,G.A)({...t.query,f:"json",...k(e)})};return r&&(s={...r,...s,query:{...r.query,...s.query}}),(0,o.default)(t.path+"/queryAttachments",s)}(s,Q.Z.from(e),{...r}).then((t=>Z(t.data.attachmentGroups,s.path)))}(this.url,t,r)}executeTopFeaturesQuery(t,e){const r={...this.requestOptions,...e};return async function(t,e,r,s){const n=(0,S.en)(t),o={...s},{data:a}=await async function(t,e,r,s){const n=await X(t,e,"json",s);return(0,$.p)(e,r,n.data),n}(n,Y.Z.from(e),r,o);return A.default.fromJSON(a)}(this.parsedUrl,t,this.sourceSpatialReference,r)}executeForTopIds(t,e){const r={...this.requestOptions,...e};return async function(t,e,r){const s=(0,S.en)(t);return(await async function(t,e,r){return(0,c.pC)(e.timeExtent)&&e.timeExtent.isEmpty?{data:{objectIds:[]}}:X(t,e,"json",r,{returnIdsOnly:!0})}(s,Y.Z.from(e),{...r})).data.objectIds}(this.parsedUrl,t,r)}executeForTopExtents(t,e){const r={...this.requestOptions,...e};return async function(t,e,r){const s=(0,S.en)(t),n=await async function(t,e,r){return(0,c.pC)(e.timeExtent)&&e.timeExtent.isEmpty?{data:{count:0,extent:null}}:X(t,e,"json",r,{returnExtentOnly:!0,returnCountOnly:!0}).then((t=>{const e=t.data;if(e.hasOwnProperty("extent"))return t;if(e.features)throw new Error(H);if(e.hasOwnProperty("count"))throw new Error(H);return t}))}(s,Y.Z.from(e),{...r});return{count:n.data.count,extent:g.Z.fromJSON(n.data.extent)}}(this.parsedUrl,t,r)}executeForTopCount(t,e){const r={...this.requestOptions,...e};return async function(t,e,r){const s=(0,S.en)(t);return(await(n=s,o=Y.Z.from(e),a={...r},(0,c.pC)(o.timeExtent)&&o.timeExtent.isEmpty?Promise.resolve({data:{count:0}}):X(n,o,"json",a,{returnIdsOnly:!0,returnCountOnly:!0}))).data.count;var n,o,a}(this.parsedUrl,t,r)}_normalizeQuery(t){let e=N.Z.from(t);if(e.sourceSpatialReference=e.sourceSpatialReference||this.sourceSpatialReference,(this.gdbVersion||this.dynamicDataSource)&&(e=e===t?e.clone():e,e.gdbVersion=t.gdbVersion||this.gdbVersion,e.dynamicDataSource=t.dynamicDataSource?R.n.from(t.dynamicDataSource):this.dynamicDataSource),(0,c.pC)(this.infoFor3D)&&this._queryIs3DObjectFormat(t)){e=e===t?e.clone():e,e.formatOf3DObjects=null;for(const t of this.infoFor3D.queryFormats){if("3D_glb"===t.id){e.formatOf3DObjects=t.id;break}"3D_gltf"!==t.id||e.formatOf3DObjects||(e.formatOf3DObjects=t.id)}if(!e.formatOf3DObjects)throw new i.Z("query:unsupported-3d-query-formats","Could not find any supported 3D object query format. Only supported formats are 3D_glb and 3D_gltf");if((0,c.Wi)(e.outFields)||!e.outFields.includes("*")){e=e===t?e.clone():e,(0,c.Wi)(e.outFields)&&(e.outFields=[]);const{originX:r,originY:s,originZ:n,translationX:o,translationY:a,translationZ:i,scaleX:u,scaleY:l,scaleZ:d,rotationX:p,rotationY:h,rotationZ:y,rotationDeg:f}=this.infoFor3D.transformFieldRoles;e.outFields.push(r,s,n,o,a,i,u,l,d,p,h,y,f)}}return e}_normalizeFields(t){if((0,c.pC)(this.fieldsIndex)&&(0,c.pC)(t))for(const e of t){const t=this.fieldsIndex.get(e.name);t&&Object.assign(e,t.toJSON())}}_queryIs3DObjectFormat(t){return(0,c.pC)(this.infoFor3D)&&t.returnGeometry&&"xyFootprint"!==t.multipatchOption&&!t.outStatistics}};(0,s._)([(0,f.Cb)({type:R.n})],rt.prototype,"dynamicDataSource",void 0),(0,s._)([(0,f.Cb)()],rt.prototype,"fieldsIndex",void 0),(0,s._)([(0,f.Cb)()],rt.prototype,"format",void 0),(0,s._)([(0,f.Cb)()],rt.prototype,"gdbVersion",void 0),(0,s._)([(0,f.Cb)()],rt.prototype,"infoFor3D",void 0),(0,s._)([(0,f.Cb)()],rt.prototype,"sourceSpatialReference",void 0),rt=(0,s._)([(0,m.j)("esri.tasks.QueryTask")],rt);const st=rt;var nt=r(59431),ot=r(82971);const at=new l.X({originalAndCurrentFeatures:"original-and-current-features",none:"none"}),it=new Set(["Feature Layer","Table"]);let ut=class extends d.Z{constructor(){super(...arguments),this.type="feature-layer",this.refresh=(0,h.Ds)((async()=>{await this.load();const t=this.sourceJSON.editingInfo?.lastEditDate;if(null==t)return{dataChanged:!0,updates:{}};try{await this._fetchService(null)}catch{return{dataChanged:!0,updates:{}}}const e=t!==this.sourceJSON.editingInfo?.lastEditDate;return{dataChanged:e,updates:e?{editingInfo:this.sourceJSON.editingInfo,extent:this.sourceJSON.extent}:null}}))}load(t){const e=(0,c.pC)(t)?t.signal:null;return this.addResolvingPromise(this._fetchService(this.layer.sourceJSON,e)),Promise.resolve(this)}get queryTask(){const{capabilities:{query:{supportsFormatPBF:t}},parsedUrl:e,dynamicDataSource:r,infoFor3D:s,gdbVersion:n,spatialReference:o,fieldsIndex:a}=this.layer,i=(0,u.Z)("featurelayer-pbf")&&t&&(0,c.Wi)(s)?"pbf":"json";return new st({url:e.path,format:i,fieldsIndex:a,infoFor3D:s,dynamicDataSource:r,gdbVersion:n,sourceSpatialReference:o})}async addAttachment(t,e){await this.load();const r=t.attributes[this.layer.objectIdField],s=this.layer.parsedUrl.path+"/"+r+"/addAttachment",n=this._getLayerRequestOptions(),a=this._getFormDataForAttachment(e,n.query);try{const t=await(0,o.default)(s,{body:a});return this._createFeatureEditResult(t.data.addAttachmentResult)}catch(t){throw this._createAttachmentErrorResult(r,t)}}async updateAttachment(t,e,r){await this.load();const s=t.attributes[this.layer.objectIdField],n=this.layer.parsedUrl.path+"/"+s+"/updateAttachment",a=this._getLayerRequestOptions({query:{attachmentId:e}}),i=this._getFormDataForAttachment(r,a.query);try{const t=await(0,o.default)(n,{body:i});return this._createFeatureEditResult(t.data.updateAttachmentResult)}catch(t){throw this._createAttachmentErrorResult(s,t)}}async applyEdits(t,e){await this.load();const r=t.addFeatures.map(this._serializeFeature,this),s=t.updateFeatures.map(this._serializeFeature,this),n=this._getFeatureIds(t.deleteFeatures,e?.globalIdUsed);(0,nt.P)(r,s,this.layer.spatialReference);const a=[],i=[],u=[...t.deleteAttachments];for(const e of t.addAttachments)a.push(await this._serializeAttachment(e));for(const e of t.updateAttachments)i.push(await this._serializeAttachment(e));const l=a.length||i.length||u.length?{adds:a,updates:i,deletes:u}:null,d={gdbVersion:e?.gdbVersion||this.layer.gdbVersion,rollbackOnFailure:e?.rollbackOnFailureEnabled,useGlobalIds:e?.globalIdUsed,returnEditMoment:e?.returnEditMoment,usePreviousEditMoment:e?.usePreviousEditMoment,sessionId:e?.sessionId};e?.returnServiceEditsOption?(d.edits=JSON.stringify([{id:this.layer.layerId,adds:r,updates:s,deletes:n,attachments:l}]),d.returnServiceEditsOption=at.toJSON(e?.returnServiceEditsOption),d.returnServiceEditsInSourceSR=e?.returnServiceEditsInSourceSR):(d.adds=r.length?JSON.stringify(r):null,d.updates=s.length?JSON.stringify(s):null,d.deletes=n.length?e?.globalIdUsed?JSON.stringify(n):n.join(","):null,d.attachments=l&&JSON.stringify(l));const c=this._getLayerRequestOptions({method:"post",query:d}),p=e?.returnServiceEditsOption?this.layer.url:this.layer.parsedUrl.path,h=await(0,o.default)(p+"/applyEdits",c);return this._createEditsResult(h)}async deleteAttachments(t,e){await this.load();const r=t.attributes[this.layer.objectIdField],s=this.layer.parsedUrl.path+"/"+r+"/deleteAttachments";try{return(await(0,o.default)(s,this._getLayerRequestOptions({query:{attachmentIds:e.join(",")},method:"post"}))).data.deleteAttachmentResults.map(this._createFeatureEditResult)}catch(t){throw this._createAttachmentErrorResult(r,t)}}fetchRecomputedExtents(t={}){const e=t.signal;return this.load({signal:e}).then((async()=>{const e=this._getLayerRequestOptions({...t,query:{returnUpdates:!0}}),{layerId:r,url:s}=this.layer,{data:n}=await(0,o.default)(`${s}/${r}`,e),{id:i,extent:u,fullExtent:l,timeExtent:d}=n,c=u||l;return{id:i,fullExtent:c&&g.Z.fromJSON(c),timeExtent:d&&a.Z.fromJSON({start:d[0],end:d[1]})}}))}async queryAttachments(t,e={}){const{parsedUrl:r}=this.layer,s=r.path;await this.load();const n=this._getLayerRequestOptions(e);if(!this.layer.get("capabilities.operations.supportsQueryAttachments")){const{objectIds:e}=t,r=[];for(const t of e){const e=s+"/"+t+"/attachments";r.push((0,o.default)(e,n))}return Promise.all(r).then((t=>e.map(((e,r)=>({parentObjectId:e,attachmentInfos:t[r].data.attachmentInfos}))))).then((t=>Z(t,s)))}return this.queryTask.executeAttachmentQuery(t,n)}async queryFeatures(t,e){return await this.load(),this.queryTask.execute(t,{...e,query:this._createRequestQueryOptions(e)})}async queryFeaturesJSON(t,e){return await this.load(),this.queryTask.executeJSON(t,{...e,query:this._createRequestQueryOptions(e)})}async queryObjectIds(t,e){return await this.load(),this.queryTask.executeForIds(t,{...e,query:this._createRequestQueryOptions(e)})}async queryFeatureCount(t,e){return await this.load(),this.queryTask.executeForCount(t,{...e,query:this._createRequestQueryOptions(e)})}async queryExtent(t,e){return await this.load(),this.queryTask.executeForExtent(t,{...e,query:this._createRequestQueryOptions(e)})}async queryRelatedFeatures(t,e){return await this.load(),this.queryTask.executeRelationshipQuery(t,{...e,query:this._createRequestQueryOptions(e)})}async queryRelatedFeaturesCount(t,e){return await this.load(),this.queryTask.executeRelationshipQueryForCount(t,{...e,query:this._createRequestQueryOptions(e)})}async queryTopFeatures(t,e){return await this.load(),this.queryTask.executeTopFeaturesQuery(t,{...e,query:this._createRequestQueryOptions(e)})}async queryTopObjectIds(t,e){return await this.load(),this.queryTask.executeForTopIds(t,{...e,query:this._createRequestQueryOptions(e)})}async queryTopExtents(t,e){return await this.load(),this.queryTask.executeForTopExtents(t,{...e,query:this._createRequestQueryOptions(e)})}async queryTopCount(t,e){return await this.load(),this.queryTask.executeForTopCount(t,{...e,query:this._createRequestQueryOptions(e)})}_createRequestQueryOptions(t){const e={...this.layer.customParameters,token:this.layer.apiKey,...t?.query};return this.layer.datesInUnknownTimezone&&(e.timeReferenceUnknownClient=!0),e}async _fetchService(t,e){if(!t){const{data:r}=await(0,o.default)(this.layer.parsedUrl.path,this._getLayerRequestOptions({query:(0,u.Z)("featurelayer-advanced-symbols")?{returnAdvancedSymbols:!0}:{},signal:e}));t=r}this.sourceJSON=this._patchServiceJSON(t);const r=t.type;if(!it.has(r))throw new i.Z("feature-layer-source:unsupported-type",`Source type "${r}" is not supported`)}_patchServiceJSON(t){if("Table"!==t.type&&t.geometryType&&!t?.drawingInfo?.renderer&&!t.defaultSymbol){const e=(0,F.bU)(t.geometryType).renderer;(0,p.RB)("drawingInfo.renderer",e,t)}return"esriGeometryMultiPatch"===t.geometryType&&t.infoFor3D&&(t.geometryType="mesh"),t}_serializeFeature(t){const{geometry:e,attributes:r}=t;return(0,c.Wi)(e)?{attributes:r}:"mesh"===e.type||"extent"===e.type?null:{geometry:e.toJSON(),attributes:r}}async _serializeAttachment(t){const{feature:e,attachment:r}=t,{globalId:s,name:n,contentType:o,data:a,uploadId:i}=r,u={globalId:s,parentGlobalId:null,contentType:null,name:null,uploadId:null,data:null};if(e&&(u.parentGlobalId="attributes"in e?e.attributes&&e.attributes[this.layer.globalIdField]:e.globalId),i)u.uploadId=i;else if(a){const t=await async function(t){return"string"==typeof t?(0,y.sJ)(t)||{data:t}:new Promise(((e,r)=>{const s=new FileReader;s.readAsDataURL(t),s.onload=()=>e((0,y.sJ)(s.result)),s.onerror=t=>r(t)}))}(a);u.contentType=t.mediaType,u.data=t.data,a instanceof File&&(u.name=a.name)}return n&&(u.name=n),o&&(u.contentType=o),u}_getFeatureIds(t,e){const r=t[0];return r?this._canUseGlobalIds(e,t)?this._getGlobalIdsFromFeatureIdentifier(t):"objectId"in r?this._getObjectIdsFromFeatureIdentifier(t):this._getIdsFromFeatures(t):[]}_getIdsFromFeatures(t){const e=this.layer.objectIdField;return t.map((t=>t.attributes&&t.attributes[e]))}_canUseGlobalIds(t,e){return t&&"globalId"in e[0]}_getObjectIdsFromFeatureIdentifier(t){return t.map((t=>t.objectId))}_getGlobalIdsFromFeatureIdentifier(t){return t.map((t=>t.globalId))}_createEditsResult(t){const e=t.data,{layerId:r}=this.layer,s=[];let n=null;if(Array.isArray(e))for(const t of e)s.push({id:t.id,editedFeatures:t.editedFeatures}),t.id===r&&(n={addResults:t.addResults,updateResults:t.updateResults,deleteResults:t.deleteResults,attachments:t.attachments,editMoment:t.editMoment});else n=e;const o=n?.attachments,a={addFeatureResults:n.addResults?n.addResults.map(this._createFeatureEditResult,this):[],updateFeatureResults:n.updateResults?n.updateResults.map(this._createFeatureEditResult,this):[],deleteFeatureResults:n.deleteResults?n.deleteResults.map(this._createFeatureEditResult,this):[],addAttachmentResults:o&&o.addResults?o.addResults.map(this._createFeatureEditResult,this):[],updateAttachmentResults:o&&o.updateResults?o.updateResults.map(this._createFeatureEditResult,this):[],deleteAttachmentResults:o&&o.deleteResults?o.deleteResults.map(this._createFeatureEditResult,this):[]};if(n.editMoment&&(a.editMoment=n.editMoment),s.length>0){a.editedFeatureResults=[];for(const t of s){const{adds:e,updates:r,deletes:s,spatialReference:n}=t.editedFeatures,o=n?new ot.Z(n):null;a.editedFeatureResults.push({layerId:t.id,editedFeatures:{adds:e?.map((t=>this._createEditedFeature(t,o)))||[],updates:r?.map((t=>({original:this._createEditedFeature(t[0],o),current:this._createEditedFeature(t[1],o)})))||[],deletes:s?.map((t=>this._createEditedFeature(t,o)))||[],spatialReference:o}})}}return a}_createEditedFeature(t,e){return new n.Z({attributes:t.attributes,geometry:(0,b.im)({...t.geometry,spatialReference:e})})}_createFeatureEditResult(t){const e=!0===t.success?null:t.error||{code:void 0,description:void 0};return{objectId:t.objectId,globalId:t.globalId,error:e?new i.Z("feature-layer-source:edit-failure",e.description,{code:e.code}):null}}_createAttachmentErrorResult(t,e){const r=e.details.messages&&e.details.messages[0]||e.message,s=e.details.httpStatus||e.details.messageCode;return{objectId:t,globalId:null,error:new i.Z("feature-layer-source:attachment-failure",r,{code:s})}}_getFormDataForAttachment(t,e){const r=t instanceof FormData?t:t&&t.elements?new FormData(t):null;if(r)for(const t in e){const s=e[t];null!=s&&(r.set?r.set(t,s):r.append(t,s))}return r}_getLayerRequestOptions(t={}){const{parsedUrl:e,gdbVersion:r,dynamicDataSource:s}=this.layer;return{...t,query:{gdbVersion:r,layer:s?JSON.stringify({source:s}):void 0,...e.query,f:"json",...this._createRequestQueryOptions(t)},responseType:"json"}}};(0,s._)([(0,f.Cb)()],ut.prototype,"type",void 0),(0,s._)([(0,f.Cb)({constructOnly:!0})],ut.prototype,"layer",void 0),(0,s._)([(0,f.Cb)({readOnly:!0})],ut.prototype,"queryTask",null),ut=(0,s._)([(0,m.j)("esri.layers.graphics.sources.FeatureLayerSource")],ut);const lt=ut},25278:(t,e,r)=>{r.d(e,{Dm:()=>d,Hq:()=>c,MS:()=>p,bU:()=>i});var s=r(80442),n=r(22974),o=r(61159),a=r(58333);function i(t){return{renderer:{type:"simple",symbol:"esriGeometryPoint"===t||"esriGeometryMultipoint"===t?a.I4:"esriGeometryPolyline"===t?a.ET:a.lF}}}const u=/^[_$a-zA-Z][_$a-zA-Z0-9]*$/;let l=1;function d(t,e){if((0,s.Z)("esri-csp-restrictions"))return()=>({[e]:null,...t});try{let r=`this.${e} = null;`;for(const e in t)r+=`this${u.test(e)?`.${e}`:`["${e}"]`} = ${JSON.stringify(t[e])};`;const s=new Function(`\n return class AttributesClass$${l++} {\n constructor() {\n ${r};\n }\n }\n `)();return()=>new s}catch(r){return()=>({[e]:null,...t})}}function c(t={}){return[{name:"New Feature",description:"",prototype:{attributes:(0,n.d9)(t)}}]}function p(t,e){return{analytics:{supportsCacheHint:!1},attachment:null,data:{isVersioned:!1,supportsAttachment:!1,supportsM:!1,supportsZ:t},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:e,supportsDelete:e,supportsEditing:e,supportsChangeTracking:!1,supportsQuery:!0,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:e,supportsExceedsLimitStatistics:!0},query:o.g,queryRelated:{supportsCount:!0,supportsOrderBy:!0,supportsPagination:!0,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},editing:{supportsGeometryUpdate:e,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1}}}},41818:(t,e,r)=>{r.d(e,{P:()=>a});var s=r(11282),n=r(34599),o=r(57444);async function a(t,e,r){const a=(0,s.en)(t);return(0,n.executeQueryForCount)(a,o.Z.from(e),{...r}).then((t=>t.data.count))}},5396:(t,e,r)=>{r.d(e,{G:()=>a});var s=r(11282),n=r(34599),o=r(57444);async function a(t,e,r){const a=(0,s.en)(t);return(0,n.executeQueryForIds)(a,o.Z.from(e),{...r}).then((t=>t.data.objectIds))}},4967:(t,e,r)=>{r.d(e,{F:()=>u,e:()=>i});var s=r(11282),n=r(34599),o=r(74889),a=r(57444);async function i(t,e,r){const s=await u(t,e,r);return o.default.fromJSON(s)}async function u(t,e,r){const o=(0,s.en)(t),i={...r},u=a.Z.from(e),{data:l}=await(0,n.executeQuery)(o,u,u.sourceSpatialReference,i);return l}},98326:(t,e,r)=>{r.d(e,{Z:()=>c});var s,n=r(43697),o=r(96674),a=r(5600),i=(r(67676),r(80442),r(75215)),u=r(52011);const l={1:{id:1,rotation:0,mirrored:!1},2:{id:2,rotation:0,mirrored:!0},3:{id:3,rotation:180,mirrored:!1},4:{id:4,rotation:180,mirrored:!0},5:{id:5,rotation:-90,mirrored:!0},6:{id:6,rotation:90,mirrored:!1},7:{id:7,rotation:90,mirrored:!0},8:{id:8,rotation:-90,mirrored:!1}};let d=s=class extends o.wq{constructor(t){super(t),this.contentType=null,this.exifInfo=null,this.id=null,this.globalId=null,this.keywords=null,this.name=null,this.parentGlobalId=null,this.parentObjectId=null,this.size=null,this.url=null}get orientationInfo(){const{exifInfo:t}=this,e=function(t){const{exifInfo:e,exifName:r,tagName:s}=t;if(!e||!r||!s)return null;const n=e.find((t=>t.name===r));return n?function(t){const{tagName:e,tags:r}=t;if(!r||!e)return null;const s=r.find((t=>t.name===e));return s&&s.value||null}({tagName:s,tags:n.tags}):null}({exifName:"Exif IFD0",tagName:"Orientation",exifInfo:t});return l[e]||null}clone(){return new s({contentType:this.contentType,exifInfo:this.exifInfo,id:this.id,globalId:this.globalId,keywords:this.keywords,name:this.name,parentGlobalId:this.parentGlobalId,parentObjectId:this.parentObjectId,size:this.size,url:this.url})}};(0,n._)([(0,a.Cb)({type:String})],d.prototype,"contentType",void 0),(0,n._)([(0,a.Cb)()],d.prototype,"exifInfo",void 0),(0,n._)([(0,a.Cb)({readOnly:!0})],d.prototype,"orientationInfo",null),(0,n._)([(0,a.Cb)({type:i.z8})],d.prototype,"id",void 0),(0,n._)([(0,a.Cb)({type:String})],d.prototype,"globalId",void 0),(0,n._)([(0,a.Cb)({type:String})],d.prototype,"keywords",void 0),(0,n._)([(0,a.Cb)({type:String})],d.prototype,"name",void 0),(0,n._)([(0,a.Cb)({json:{read:!1}})],d.prototype,"parentGlobalId",void 0),(0,n._)([(0,a.Cb)({json:{read:!1}})],d.prototype,"parentObjectId",void 0),(0,n._)([(0,a.Cb)({type:i.z8})],d.prototype,"size",void 0),(0,n._)([(0,a.Cb)({json:{read:!1}})],d.prototype,"url",void 0),d=s=(0,n._)([(0,u.j)("esri.layers.support.AttachmentInfo")],d);const c=d},11282:(t,e,r)=>{r.d(e,{cv:()=>i,en:()=>a,lA:()=>o});var s=r(22974),n=r(17452);function o(t,e){return e?{...e,query:{...t,...e.query}}:{query:t}}function a(t){return"string"==typeof t?(0,n.mN)(t):(0,s.d9)(t)}function i(t,e,r){const s={};for(const n in t){if("declaredClass"===n)continue;const o=t[n];if(null!=o&&"function"!=typeof o)if(Array.isArray(o)){s[n]=[];for(let t=0;t<o.length;t++)s[n][t]=i(o[t])}else if("object"==typeof o)if(o.toJSON){const t=o.toJSON(r&&r[n]);s[n]=e?t:JSON.stringify(t)}else s[n]=e?o:JSON.stringify(o);else s[n]=o}return s}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1920],{42033:(e,t,r)=>{r.d(t,{E:()=>s,_:()=>i});var o=r(70586);async function s(e,t){const{WhereClause:o}=await Promise.resolve().then(r.bind(r,41534));return o.create(e,t)}function i(e,t){return(0,o.pC)(e)?(0,o.pC)(t)?`(${e}) AND (${t})`:e:t}},68196:(e,t,r)=>{r.r(t),r.d(t,{default:()=>oe});var o,s=r(43697),i=r(51773),n=(r(16050),r(12501),r(28756),r(92271),r(18746),r(5499),r(84382),r(30687),r(91423),r(32400)),a=r(3172),l=r(80539),p=r(20102),d=r(92604),u=r(70586),y=r(16453),c=r(95330),h=r(17445),f=r(17452),m=r(5600),g=(r(67676),r(80442),r(1153)),b=(r(75215),r(71715)),v=r(52011),_=r(31263),I=r(87085),w=r(54295),C=r(17287),S=r(38009),F=r(16859),L=r(72965),x=r(32271),j=r(15506),P=r(21506),T=r(61960),A=r(85857),R=r(14147),E=r(53518),D=r(99514),U=r(35671),O=r(51161),q=r(2319),N=r(30707),k=r(56765),Z=(r(66577),r(70921)),M=r(96674),Q=r(22974),V=r(38913);let W=o=class extends M.wq{constructor(e){super(e),this.spatialRelationship="disjoint"}set geometries(e){this._set("geometries",(0,Z.Z)(e,this._get("geometries"),l.Z.ofType(V.Z)))}clone(){return new o({geometries:(0,Q.d9)(this.geometries),spatialRelationship:this.spatialRelationship})}};(0,s._)([(0,m.Cb)({type:["disjoint","contains"],nonNullable:!0,json:{write:!0}})],W.prototype,"spatialRelationship",void 0),(0,s._)([(0,m.Cb)({type:l.Z.ofType(V.Z),json:{write:!0}})],W.prototype,"geometries",null),W=o=(0,s._)([(0,v.j)("esri.layers.support.PolygonFilter")],W);const G=W;let $=class extends M.wq{constructor(){super(...arguments),this.name=null,this.field=null,this.currentRangeExtent=null,this.fullRangeExtent=null,this.type="rangeInfo"}};(0,s._)([(0,m.Cb)({type:String,json:{read:!0,write:!0}})],$.prototype,"name",void 0),(0,s._)([(0,m.Cb)({type:String,json:{read:!0,write:!0}})],$.prototype,"field",void 0),(0,s._)([(0,m.Cb)({type:[Number],json:{read:!0,write:!0}})],$.prototype,"currentRangeExtent",void 0),(0,s._)([(0,m.Cb)({type:[Number],json:{read:!0,write:!0}})],$.prototype,"fullRangeExtent",void 0),(0,s._)([(0,m.Cb)({type:["rangeInfo"],readOnly:!0,json:{read:!1,write:!0}})],$.prototype,"type",void 0),$=(0,s._)([(0,v.j)("esri.layers.support.RangeInfo")],$);var z=r(40555),B=r(57444),K=r(32163),H=r(65242);const Y=["3DObject","Point"],J=d.Z.getLogger("esri.layers.SceneLayer"),X=(0,E.v)();let ee=class extends((0,x.Vt)((0,C.Y)((0,S.q)((0,F.I)((0,L.M)((0,y.R)((0,w.V)(I.Z)))))))){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 l.Z,this.definitionExpression=null,this.polygonFilter=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&&(0,u.pC)(this.associatedLayer)?this.associatedLayer.getFeatureType(e):null}get types(){return(0,u.pC)(this.associatedLayer)?this.associatedLayer.types:[]}get typeIdField(){return(0,u.pC)(this.associatedLayer)?this.associatedLayer.typeIdField:null}get formTemplate(){return(0,u.pC)(this.associatedLayer)?this.associatedLayer.formTemplate:null}get fieldsIndex(){return new D.Z(this.fields)}readNodePages(e,t,r){return"Point"===t.layerType&&(e=t.pointNodePages),null==e||"object"!=typeof e?null:O.U4.fromJSON(e,r)}set elevationInfo(e){this._set("elevationInfo",e),this.loaded&&this._validateElevationInfo()}get geometryType(){return re[this.profile]||"mesh"}set renderer(e){(0,U.YN)(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=(0,u.pC)(this.associatedLayer)&&this.associatedLayer.capabilities?this.associatedLayer.capabilities:j.C,{query:t,editing:{supportsGlobalId:r,supportsRollbackOnFailure:o,supportsUploadWithItemId:s,supportsReturnServiceEditsInSourceSpatialReference:i},data:{supportsZ:n,supportsM:a,isVersioned:l,supportsAttachment:p},operations:{supportsEditing:d,supportsUpdate:y,supportsQuery:c,supportsQueryAttachments:h}}=e,f=e.operations.supportsChangeTracking;return{query:t,editing:{supportsGlobalId:r,supportsReturnServiceEditsInSourceSpatialReference:i,supportsRollbackOnFailure:o,supportsGeometryUpdate:!1,supportsUploadWithItemId:s},data:{supportsAttachment:p,supportsZ:n,supportsM:a,isVersioned:l},operations:{supportsQuery:c,supportsQueryAttachments:h,supportsEditing:d&&f,supportsAdd:!1,supportsDelete:!1,supportsUpdate:y&&f}}}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(0,u.pC)(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(0,u.pC)(this.associatedLayer)?this.associatedLayer.displayField:null}readProfile(e,t){const r=t.store.profile;return null!=r&&te[r]?te[r]:(J.error("Unknown or missing profile",{profile:r,layer:this}),"mesh-pyramids")}load(e){const t=(0,u.pC)(e)?e.signal:null,r=this.loadFromPortal({supportedTypes:["Scene Service"]},e).catch(c.r9).then((()=>this._fetchService(t))).then((()=>Promise.all([this._fetchIndexAndUpdateExtent(this.nodePages,t),this._setAssociatedFeatureLayer(t)]))).then((()=>this._validateElevationInfo())).then((()=>this._applyAssociatedLayerOverrides())).then((()=>this._populateFieldUsageInfo())).then((()=>(0,z.y)(this,{origin:"service"},t))).then((()=>(0,U.YN)(this.renderer,this.fieldsIndex))).then((()=>this.finishLoadEditablePortalLayer(e)));return this.addResolvingPromise(r),Promise.resolve(this)}createQuery(){const e=new B.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:(J.error("#getFieldUsageInfo()","Unavailable until layer is loaded"),t)}createPopupTemplate(e){return(0,K.eZ)(this,e)}_getAssociatedLayerForQuery(){const e=this.associatedLayer;return(0,u.pC)(e)&&e.loaded?Promise.resolve(e):this._loadAssociatedLayerForQuery()}async _loadAssociatedLayerForQuery(){if(await this.load(),(0,u.Wi)(this.associatedLayer))throw new p.Z("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 p.Z("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 p.Z("scenelayer:no-cached-statistics","Cached statistics are not available for this layer");const r=this.fieldsIndex.get(e);if(!r)throw new p.Z("scenelayer:field-unexisting",`Field '${e}' does not exist on the layer`);for(const e of this.statisticsInfo)if(e.name===r.name){const r=(0,f.v_)(this.parsedUrl.path,e.href);return(0,a.default)(r,{query:{f:"json",token:this.apiKey},responseType:"json",signal:t?t.signal:null}).then((e=>e.data))}throw new p.Z("scenelayer:no-cached-statistics","Cached statistics for this attribute are not available")}async saveAs(e,t){return this._debouncedSaveOperations(x.xp.SAVE_AS,{...t,getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"scene"},e)}async save(){const e={getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"scene"};return this._debouncedSaveOperations(x.xp.SAVE,e)}async applyEdits(e,t){const o=await r.e(4720).then(r.bind(r,14720));if(await this.load(),(0,u.Wi)(this.associatedLayer))throw new p.Z(`${this.type}-layer:not-editable`,"Service is not editable");return await this.associatedLayer.load(),o.applyEdits(this,this.associatedLayer.source,e,t)}on(e,t){return super.on(e,t)}validateLayer(e){if(e.layerType&&!Y.includes(e.layerType))throw new p.Z("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 p.Z("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 p.Z("layer:service-version-too-new","Service version is too new.",{serviceVersion:this.version.versionString,supportedVersions:"1.x, 2.x"});!function(e,t){let r=!1,o=!1;if(null==e)r=!0,o=!0;else{const s=t&&t.isGeographic;switch(e){case"east-north-up":case"earth-centered":r=!0,o=s;break;case"vertex-reference-frame":r=!0,o=!s;break;default:r=!1}}if(!r)throw new p.Z("scenelayer:unsupported-normal-reference-frame","Normal reference frame is invalid.");if(!o)throw new p.Z("scenelayer:incompatible-normal-reference-frame","Normal reference frame is incompatible with layer spatial reference.")}(this.normalReferenceFrame,this.spatialReference)}_getTypeKeywords(){const e=[];if("points"===this.profile)e.push("Point");else{if("mesh-pyramids"!==this.profile)throw new p.Z("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=!!((0,u.pC)(this.associatedLayer)&&this.associatedLayer.fields&&this.associatedLayer.fields.some((t=>t&&e.name===t.name))),o={supportsLabelingInfo:t,supportsRenderer:t,supportsPopupTemplate:t||r,supportsLayerQuery:r};this._fieldUsageInfo[e.name]=o}}_applyAssociatedLayerOverrides(){this._applyAssociatedLayerFieldsOverrides(),this._applyAssociatedLayerPopupOverrides()}_applyAssociatedLayerFieldsOverrides(){if((0,u.Wi)(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((0,u.Wi)(this.associatedLayer))return;const e=["popupTemplate","popupEnabled"],t=(0,g.vw)(this);for(let r=0;r<e.length;r++){const o=e[r],s=this.originIdOf(o),i=this.associatedLayer.originIdOf(o);s<i&&(i===_.s3.SERVICE||i===_.s3.PORTAL_ITEM)&&t.setAtOrigin(o,this.associatedLayer[o],i)}}async _setAssociatedFeatureLayer(e){if(!["mesh-pyramids","points"].includes(this.profile))return;const t=new R.W(this.parsedUrl,this.portalItem,this.apiKey,e);try{this.associatedLayer=await t.fetch()}catch(e){(0,c.D_)(e)||this._logWarningOnPopupEnabled()}}async _logWarningOnPopupEnabled(){await(0,h.N1)((()=>this.popupEnabled&&null!=this.popupTemplate));const e=`this SceneLayer: ${this.title}`;null==this.attributeStorageInfo?J.warn(`Associated FeatureLayer could not be loaded and no binary attributes found. Popups will not work on ${e}`):J.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&&J.warn(".elevationInfo=","Mesh scene layers don't support relative-to-scene elevation mode"),e.featureExpressionInfo&&"0"!==e.featureExpressionInfo.expression&&J.warn(".elevationInfo=","Scene layers do not support featureExpressionInfo"))}};(0,s._)([(0,m.Cb)({types:{key:"type",base:T.B,typeMap:{selection:A.Z}},json:{origins:{"web-scene":{name:"layerDefinition.featureReduction",write:!0},"portal-item":{name:"layerDefinition.featureReduction",write:!0}}}})],ee.prototype,"featureReduction",void 0),(0,s._)([(0,m.Cb)({type:[$],json:{read:!1,origins:{"web-scene":{name:"layerDefinition.rangeInfos",write:!0},"portal-item":{name:"layerDefinition.rangeInfos",write:!0}}}})],ee.prototype,"rangeInfos",void 0),(0,s._)([(0,m.Cb)({json:{read:!1}})],ee.prototype,"associatedLayer",void 0),(0,s._)([(0,m.Cb)({type:["show","hide"]})],ee.prototype,"listMode",void 0),(0,s._)([(0,m.Cb)({type:["ArcGISSceneServiceLayer"]})],ee.prototype,"operationalLayerType",void 0),(0,s._)([(0,m.Cb)({json:{read:!1},readOnly:!0})],ee.prototype,"type",void 0),(0,s._)([(0,m.Cb)({...X.fields,readOnly:!0,json:{read:!1,origins:{service:{read:!0}}}})],ee.prototype,"fields",void 0),(0,s._)([(0,m.Cb)()],ee.prototype,"types",null),(0,s._)([(0,m.Cb)()],ee.prototype,"typeIdField",null),(0,s._)([(0,m.Cb)()],ee.prototype,"formTemplate",null),(0,s._)([(0,m.Cb)({readOnly:!0})],ee.prototype,"fieldsIndex",null),(0,s._)([(0,m.Cb)({type:k.Z,json:{read:{source:"layerDefinition.floorInfo"},write:{target:"layerDefinition.floorInfo"}}})],ee.prototype,"floorInfo",void 0),(0,s._)([(0,m.Cb)(X.outFields)],ee.prototype,"outFields",void 0),(0,s._)([(0,m.Cb)({type:O.U4,readOnly:!0,json:{read:!1}})],ee.prototype,"nodePages",void 0),(0,s._)([(0,b.r)("service","nodePages",["nodePages","pointNodePages"])],ee.prototype,"readNodePages",null),(0,s._)([(0,m.Cb)({type:[O.QI],readOnly:!0})],ee.prototype,"materialDefinitions",void 0),(0,s._)([(0,m.Cb)({type:[O.Yh],readOnly:!0})],ee.prototype,"textureSetDefinitions",void 0),(0,s._)([(0,m.Cb)({type:[O.H3],readOnly:!0})],ee.prototype,"geometryDefinitions",void 0),(0,s._)([(0,m.Cb)({readOnly:!0})],ee.prototype,"serviceUpdateTimeStamp",void 0),(0,s._)([(0,m.Cb)({readOnly:!0})],ee.prototype,"attributeStorageInfo",void 0),(0,s._)([(0,m.Cb)({readOnly:!0})],ee.prototype,"statisticsInfo",void 0),(0,s._)([(0,m.Cb)({type:l.Z.ofType(Number),nonNullable:!0,json:{origins:{service:{read:!1,write:!1}},name:"layerDefinition.excludeObjectIds",write:{enabled:!0}}})],ee.prototype,"excludeObjectIds",void 0),(0,s._)([(0,m.Cb)({type:String,json:{origins:{service:{read:!1,write:!1}},name:"layerDefinition.definitionExpression",write:{enabled:!0,allowNull:!0}}})],ee.prototype,"definitionExpression",void 0),(0,s._)([(0,m.Cb)({type:G})],ee.prototype,"polygonFilter",void 0),(0,s._)([(0,m.Cb)({type:String,json:{origins:{"web-scene":{read:!0,write:!0}},read:!1}})],ee.prototype,"path",void 0),(0,s._)([(0,m.Cb)(P.PV)],ee.prototype,"elevationInfo",null),(0,s._)([(0,m.Cb)({type:String})],ee.prototype,"geometryType",null),(0,s._)([(0,m.Cb)(P.iR)],ee.prototype,"labelsVisible",void 0),(0,s._)([(0,m.Cb)({type:[q.Z],json:{origins:{service:{name:"drawingInfo.labelingInfo",read:{reader:N.r},write:!1}},name:"layerDefinition.drawingInfo.labelingInfo",read:{reader:N.r},write:!0}})],ee.prototype,"labelingInfo",void 0),(0,s._)([(0,m.Cb)(P.rn)],ee.prototype,"legendEnabled",void 0),(0,s._)([(0,m.Cb)({type:Number,json:{origins:{"web-document":{default:1,write:{enabled:!0,target:{opacity:{type:Number},"layerDefinition.drawingInfo.transparency":{type:Number}}},read:{source:["opacity","layerDefinition.drawingInfo.transparency"],reader(e,t){if("number"==typeof e&&e>=0&&e<=1)return e;const r=t.layerDefinition?.drawingInfo?.transparency;return void 0!==r?(0,H.b)(r):void 0}}},"portal-item":{write:!0},service:{read:!1}}}})],ee.prototype,"opacity",void 0),(0,s._)([(0,m.Cb)({type:["Low","High"],readOnly:!0,json:{read:!1,origins:{service:{read:!0}}}})],ee.prototype,"priority",void 0),(0,s._)([(0,m.Cb)({type:["Labels"],readOnly:!0,json:{read:!1,origins:{service:{read:!0}}}})],ee.prototype,"semantic",void 0),(0,s._)([(0,m.Cb)({types:n.o,json:{origins:{service:{read:{source:"drawingInfo.renderer"}}},name:"layerDefinition.drawingInfo.renderer",write:!0},value:null})],ee.prototype,"renderer",null),(0,s._)([(0,m.Cb)({json:{read:!1}})],ee.prototype,"cachedDrawingInfo",void 0),(0,s._)([(0,b.r)("service","cachedDrawingInfo")],ee.prototype,"readCachedDrawingInfo",null),(0,s._)([(0,m.Cb)({readOnly:!0,json:{read:!1}})],ee.prototype,"capabilities",null),(0,s._)([(0,m.Cb)({type:Boolean,json:{read:!1}})],ee.prototype,"editingEnabled",null),(0,s._)([(0,m.Cb)(P.C_)],ee.prototype,"popupEnabled",void 0),(0,s._)([(0,m.Cb)({type:i.Z,json:{name:"popupInfo",write:!0}})],ee.prototype,"popupTemplate",void 0),(0,s._)([(0,m.Cb)({readOnly:!0,json:{read:!1}})],ee.prototype,"defaultPopupTemplate",null),(0,s._)([(0,m.Cb)({type:String,json:{read:!1}})],ee.prototype,"objectIdField",void 0),(0,s._)([(0,b.r)("service","objectIdField",["objectIdField","fields"])],ee.prototype,"readObjectIdField",null),(0,s._)([(0,m.Cb)({type:String,json:{read:!1}})],ee.prototype,"globalIdField",void 0),(0,s._)([(0,b.r)("service","globalIdField",["globalIdField","fields"])],ee.prototype,"readGlobalIdField",null),(0,s._)([(0,m.Cb)({readOnly:!0,type:String,json:{read:!1}})],ee.prototype,"displayField",null),(0,s._)([(0,m.Cb)({type:String,json:{read:!1}})],ee.prototype,"profile",void 0),(0,s._)([(0,b.r)("service","profile",["store.profile"])],ee.prototype,"readProfile",null),(0,s._)([(0,m.Cb)({readOnly:!0,type:String,json:{origins:{service:{read:{source:"store.normalReferenceFrame"}}},read:!1}})],ee.prototype,"normalReferenceFrame",void 0),(0,s._)([(0,m.Cb)(P.YI)],ee.prototype,"screenSizePerspectiveEnabled",void 0),ee=(0,s._)([(0,v.j)("esri.layers.SceneLayer")],ee);const te={"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"},re={"mesh-pyramids":"mesh",points:"point",lines:"polyline",polygons:"polygon"},oe=ee},14147:(e,t,r)=>{r.d(t,{W:()=>d});var o=r(40330),s=r(3172),i=r(70586),n=r(95330),a=r(3121),l=r(65587),p=r(15235);class d{constructor(e,t,r,o){this.parsedUrl=e,this.portalItem=t,this.apiKey=r,this.signal=o,this.rootDocument=null;const s=this.parsedUrl.path.match(/^(.*)\/SceneServer\/layers\/([\d]*)\/?$/i);s&&(this.urlParts={root:s[1],layerId:parseInt(s[2],10)})}async fetch(){if(!this.urlParts)return null;const e=this.portalItem??await this._portalItemFromServiceItemId();if((0,i.Wi)(e))return this._loadFromUrl();const t=await this._findAndLoadRelatedPortalItem(e);return(0,i.Wi)(t)?null:this._loadFeatureLayerFromPortalItem(t)}async fetchPortalItem(){if(!this.urlParts)return null;const e=this.portalItem??await this._portalItemFromServiceItemId();return(0,i.Wi)(e)?null:this._findAndLoadRelatedPortalItem(e)}async _fetchRootDocument(){if((0,i.pC)(this.rootDocument))return this.rootDocument;if((0,i.Wi)(this.urlParts))return this.rootDocument={},{};const e={query:{f:"json",token:this.apiKey},responseType:"json",signal:this.signal},t=`${this.urlParts.root}/SceneServer`;try{const r=await(0,s.default)(t,e);this.rootDocument=r.data}catch{this.rootDocument={}}return this.rootDocument}async _fetchServiceOwningPortalUrl(){const e=o.id?.findServerInfo(this.parsedUrl.path);if(e?.owningSystemUrl)return e.owningSystemUrl;const t=this.parsedUrl.path.replace(/(.*\/rest)\/.*/i,"$1")+"/info";try{const e=(await(0,s.default)(t,{query:{f:"json"},responseType:"json",signal:this.signal})).data.owningSystemUrl;if(e)return e}catch(e){(0,n.r9)(e)}return null}async _findAndLoadRelatedPortalItem(e){try{return(await e.fetchRelatedItems({relationshipType:"Service2Service",direction:"reverse"},{signal:this.signal})).find((e=>"Feature Service"===e.type))||null}catch(e){return(0,n.r9)(e),null}}async _loadFeatureLayerFromPortalItem(e){await e.load({signal:this.signal});const t=await this._findMatchingAssociatedSublayerUrl(e.url);return new a.default({url:t,portalItem:e}).load({signal:this.signal})}async _loadFromUrl(){const e=await this._findMatchingAssociatedSublayerUrl(`${this.urlParts.root}/FeatureServer`);return new a.default({url:e}).load({signal:this.signal})}async _findMatchingAssociatedSublayerUrl(e){const t=e.replace(/^(.*FeatureServer)(\/[\d]*\/?)?$/i,"$1"),r={query:{f:"json"},responseType:"json",authMode:"no-prompt",signal:this.signal},o=this.urlParts.layerId,i=this._fetchRootDocument(),n=(0,s.default)(t,r),[a,l]=await Promise.all([n,i]),p=l&&l.layers,d=a.data&&a.data.layers;if(!Array.isArray(d))throw new Error("expected layers array");if(Array.isArray(p)){for(let e=0;e<Math.min(p.length,d.length);e++)if(p[e].id===o)return`${t}/${d[e].id}`}else if(o<d.length)return`${t}/${d[o].id}`;throw new Error("could not find matching associated sublayer")}async _portalItemFromServiceItemId(){const e=(await this._fetchRootDocument()).serviceItemId;if(!e)return null;const t=new p.default({id:e,apiKey:this.apiKey}),r=await this._fetchServiceOwningPortalUrl();(0,i.pC)(r)&&(t.portal=new l.Z({url:r}));try{return t.load({signal:this.signal})}catch(e){return(0,n.r9)(e),null}}}},51161:(e,t,r)=>{r.d(t,{H3:()=>g,QI:()=>u,U4:()=>l,Yh:()=>c});var o=r(43697),s=r(96674),i=r(5600),n=(r(67676),r(80442),r(75215),r(36030)),a=r(52011);let l=class extends s.wq{constructor(){super(...arguments),this.nodesPerPage=null,this.rootIndex=0,this.lodSelectionMetricType=null}};(0,o._)([(0,i.Cb)({type:Number})],l.prototype,"nodesPerPage",void 0),(0,o._)([(0,i.Cb)({type:Number})],l.prototype,"rootIndex",void 0),(0,o._)([(0,i.Cb)({type:String})],l.prototype,"lodSelectionMetricType",void 0),l=(0,o._)([(0,a.j)("esri.layer.support.I3SNodePageDefinition")],l);let p=class extends s.wq{constructor(){super(...arguments),this.factor=1}};(0,o._)([(0,i.Cb)({type:Number,json:{read:{source:"textureSetDefinitionId"}}})],p.prototype,"id",void 0),(0,o._)([(0,i.Cb)({type:Number})],p.prototype,"factor",void 0),p=(0,o._)([(0,a.j)("esri.layer.support.I3SMaterialTexture")],p);let d=class extends s.wq{constructor(){super(...arguments),this.baseColorFactor=[1,1,1,1],this.baseColorTexture=null,this.metallicRoughnessTexture=null,this.metallicFactor=1,this.roughnessFactor=1}};(0,o._)([(0,i.Cb)({type:[Number]})],d.prototype,"baseColorFactor",void 0),(0,o._)([(0,i.Cb)({type:p})],d.prototype,"baseColorTexture",void 0),(0,o._)([(0,i.Cb)({type:p})],d.prototype,"metallicRoughnessTexture",void 0),(0,o._)([(0,i.Cb)({type:Number})],d.prototype,"metallicFactor",void 0),(0,o._)([(0,i.Cb)({type:Number})],d.prototype,"roughnessFactor",void 0),d=(0,o._)([(0,a.j)("esri.layer.support.I3SMaterialPBRMetallicRoughness")],d);let u=class extends s.wq{constructor(){super(...arguments),this.alphaMode="opaque",this.alphaCutoff=.25,this.doubleSided=!1,this.cullFace="none",this.normalTexture=null,this.occlusionTexture=null,this.emissiveTexture=null,this.emissiveFactor=null,this.pbrMetallicRoughness=null}};(0,o._)([(0,n.J)({opaque:"opaque",mask:"mask",blend:"blend"})],u.prototype,"alphaMode",void 0),(0,o._)([(0,i.Cb)({type:Number})],u.prototype,"alphaCutoff",void 0),(0,o._)([(0,i.Cb)({type:Boolean})],u.prototype,"doubleSided",void 0),(0,o._)([(0,n.J)({none:"none",back:"back",front:"front"})],u.prototype,"cullFace",void 0),(0,o._)([(0,i.Cb)({type:p})],u.prototype,"normalTexture",void 0),(0,o._)([(0,i.Cb)({type:p})],u.prototype,"occlusionTexture",void 0),(0,o._)([(0,i.Cb)({type:p})],u.prototype,"emissiveTexture",void 0),(0,o._)([(0,i.Cb)({type:[Number]})],u.prototype,"emissiveFactor",void 0),(0,o._)([(0,i.Cb)({type:d})],u.prototype,"pbrMetallicRoughness",void 0),u=(0,o._)([(0,a.j)("esri.layer.support.I3SMaterialDefinition")],u);let y=class extends s.wq{};(0,o._)([(0,i.Cb)({type:String,json:{read:{source:["name","index"],reader:(e,t)=>null!=e?e:`${t.index}`}}})],y.prototype,"name",void 0),(0,o._)([(0,n.J)({jpg:"jpg",png:"png",dds:"dds","ktx-etc2":"ktx-etc2",ktx2:"ktx2",basis:"basis"})],y.prototype,"format",void 0),y=(0,o._)([(0,a.j)("esri.layer.support.I3STextureFormat")],y);let c=class extends s.wq{constructor(){super(...arguments),this.atlas=!1}};(0,o._)([(0,i.Cb)({type:[y]})],c.prototype,"formats",void 0),(0,o._)([(0,i.Cb)({type:Boolean})],c.prototype,"atlas",void 0),c=(0,o._)([(0,a.j)("esri.layer.support.I3STextureSetDefinition")],c);let h=class extends s.wq{};(0,o._)([(0,n.J)({Float32:"Float32",UInt64:"UInt64",UInt32:"UInt32",UInt16:"UInt16",UInt8:"UInt8"})],h.prototype,"type",void 0),(0,o._)([(0,i.Cb)({type:Number})],h.prototype,"component",void 0),h=(0,o._)([(0,a.j)("esri.layer.support.I3SGeometryAttribute")],h);let f=class extends s.wq{};(0,o._)([(0,n.J)({draco:"draco"})],f.prototype,"encoding",void 0),(0,o._)([(0,i.Cb)({type:[String]})],f.prototype,"attributes",void 0),f=(0,o._)([(0,a.j)("esri.layer.support.I3SGeometryCompressedAttributes")],f);let m=class extends s.wq{constructor(){super(...arguments),this.offset=0}};(0,o._)([(0,i.Cb)({type:Number})],m.prototype,"offset",void 0),(0,o._)([(0,i.Cb)({type:h})],m.prototype,"position",void 0),(0,o._)([(0,i.Cb)({type:h})],m.prototype,"normal",void 0),(0,o._)([(0,i.Cb)({type:h})],m.prototype,"uv0",void 0),(0,o._)([(0,i.Cb)({type:h})],m.prototype,"color",void 0),(0,o._)([(0,i.Cb)({type:h})],m.prototype,"uvRegion",void 0),(0,o._)([(0,i.Cb)({type:h})],m.prototype,"featureId",void 0),(0,o._)([(0,i.Cb)({type:h})],m.prototype,"faceRange",void 0),(0,o._)([(0,i.Cb)({type:f})],m.prototype,"compressedAttributes",void 0),m=(0,o._)([(0,a.j)("esri.layer.support.I3SGeometryBuffer")],m);let g=class extends s.wq{};(0,o._)([(0,n.J)({triangle:"triangle"})],g.prototype,"topology",void 0),(0,o._)([(0,i.Cb)()],g.prototype,"geometryBuffers",void 0),g=(0,o._)([(0,a.j)("esri.layer.support.I3SGeometryDefinition")],g)},56765:(e,t,r)=>{r.d(t,{Z:()=>d});var o,s=r(43697),i=r(80539),n=r(96674),a=r(5600),l=(r(67676),r(80442),r(75215),r(52011));let p=o=class extends n.wq{constructor(e){super(e),this.floorField=null,this.viewAllMode=!1,this.viewAllLevelIds=new i.Z}clone(){return new o({floorField:this.floorField,viewAllMode:this.viewAllMode,viewAllLevelIds:this.viewAllLevelIds})}};(0,s._)([(0,a.Cb)({type:String,json:{write:!0}})],p.prototype,"floorField",void 0),(0,s._)([(0,a.Cb)({json:{read:!1,write:!1}})],p.prototype,"viewAllMode",void 0),(0,s._)([(0,a.Cb)({json:{read:!1,write:!1}})],p.prototype,"viewAllLevelIds",void 0),p=o=(0,s._)([(0,l.j)("esri.layers.support.LayerFloorInfo")],p);const d=p},15506:(e,t,r)=>{r.d(t,{C:()=>o});const o={attachment:{supportsContentType:!1,supportsExifInfo:!1,supportsKeywords:!1,supportsName:!1,supportsSize:!1},data:{isVersioned:!1,supportsAttachment:!1,supportsM:!1,supportsZ:!1},editing:{supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsGeometryUpdate:!1,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:!1,supportsDelete:!1,supportsEditing:!1,supportsChangeTracking:!1,supportsQuery:!1,supportsQueryAttachments:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:!1,supportsExceedsLimitStatistics:!1},queryRelated:{supportsCount:!1,supportsOrderBy:!1,supportsPagination:!1},query:{maxRecordCount:0,maxRecordCountFactor:0,standardMaxRecordCount:0,supportsCacheHint:!1,supportsCentroid:!1,supportsCompactGeometry:!1,supportsDefaultSpatialReference:!1,supportsDisjointSpatialRelationship:!1,supportsDistance:!1,supportsDistinct:!1,supportsExtent:!1,supportsFormatPBF:!1,supportsGeometryProperties:!1,supportsHavingClause:!1,supportsHistoricMoment:!1,supportsMaxRecordCountFactor:!1,supportsOrderBy:!1,supportsPagination:!1,supportsPercentileStatistics:!1,supportsQuantization:!1,supportsQuantizationEditMode:!1,supportsQueryByOthers:!1,supportsQueryGeometry:!1,supportsResultType:!1,supportsSqlExpression:!1,supportsStandardizedQueriesOnly:!1,supportsTopFeaturesQuery:!1,supportsSpatialAggregationStatistics:!1,supportedSpatialAggregationStatistics:{envelope:!1,centroid:!1,convexHull:!1},supportsStatistics:!1,tileMaxRecordCount:0}}},51706:(e,t,r)=>{var o,s;function i(e){return e&&"esri.renderers.visualVariables.SizeVariable"===e.declaredClass}function n(e){return null!=e&&!isNaN(e)&&isFinite(e)}function a(e){return e.valueExpression?o.Expression:e.field&&"string"==typeof e.field?o.Field:o.Unknown}function l(e,t){const r=t||a(e),i=e.valueUnit||"unknown";return r===o.Unknown?s.Constant:e.stops?s.Stops:null!=e.minSize&&null!=e.maxSize&&null!=e.minDataValue&&null!=e.maxDataValue?s.ClampedLinear:"unknown"===i?null!=e.minSize&&null!=e.minDataValue?e.minSize&&e.minDataValue?s.Proportional:s.Additive:s.Identity:s.RealWorldSize}r.d(t,{PS:()=>a,QW:()=>l,RY:()=>o,hL:()=>s,iY:()=>i,qh:()=>n}),function(e){e.Unknown="unknown",e.Expression="expression",e.Field="field"}(o||(o={})),function(e){e.Unknown="unknown",e.Stops="stops",e.ClampedLinear="clamped-linear",e.Proportional="proportional",e.Additive="additive",e.Constant="constant",e.Identity="identity",e.RealWorldSize="real-world-size"}(s||(s={}))}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1920],{42033:(e,t,r)=>{r.d(t,{E:()=>s,_:()=>i});var o=r(70586);async function s(e,t){const{WhereClause:o}=await Promise.resolve().then(r.bind(r,41534));return o.create(e,t)}function i(e,t){return(0,o.pC)(e)?(0,o.pC)(t)?`(${e}) AND (${t})`:e:t}},68196:(e,t,r)=>{r.r(t),r.d(t,{default:()=>oe});var o,s=r(43697),i=r(51773),n=(r(16050),r(12501),r(28756),r(92271),r(18746),r(5499),r(84382),r(30687),r(91423),r(32400)),a=r(3172),p=r(80539),l=r(20102),d=r(92604),u=r(70586),y=r(16453),c=r(95330),h=r(17445),f=r(17452),m=r(5600),g=(r(67676),r(80442),r(1153)),b=(r(75215),r(71715)),v=r(52011),_=r(31263),I=r(87085),w=r(54295),C=r(17287),S=r(38009),F=r(16859),L=r(72965),x=r(32271),j=r(15506),T=r(21506),P=r(61960),A=r(85857),R=r(14147),E=r(53518),D=r(99514),U=r(35671),O=r(51161),q=r(2319),N=r(30707),k=r(56765),Z=(r(66577),r(70921)),M=r(96674),Q=r(22974),V=r(38913);let W=o=class extends M.wq{constructor(e){super(e),this.spatialRelationship="disjoint"}set geometries(e){this._set("geometries",(0,Z.Z)(e,this._get("geometries"),p.Z.ofType(V.Z)))}clone(){return new o({geometries:(0,Q.d9)(this.geometries),spatialRelationship:this.spatialRelationship})}};(0,s._)([(0,m.Cb)({type:["disjoint","contains"],nonNullable:!0,json:{write:!0}})],W.prototype,"spatialRelationship",void 0),(0,s._)([(0,m.Cb)({type:p.Z.ofType(V.Z),json:{write:!0}})],W.prototype,"geometries",null),W=o=(0,s._)([(0,v.j)("esri.layers.support.PolygonFilter")],W);const G=W;let $=class extends M.wq{constructor(){super(...arguments),this.name=null,this.field=null,this.currentRangeExtent=null,this.fullRangeExtent=null,this.type="rangeInfo"}};(0,s._)([(0,m.Cb)({type:String,json:{read:!0,write:!0}})],$.prototype,"name",void 0),(0,s._)([(0,m.Cb)({type:String,json:{read:!0,write:!0}})],$.prototype,"field",void 0),(0,s._)([(0,m.Cb)({type:[Number],json:{read:!0,write:!0}})],$.prototype,"currentRangeExtent",void 0),(0,s._)([(0,m.Cb)({type:[Number],json:{read:!0,write:!0}})],$.prototype,"fullRangeExtent",void 0),(0,s._)([(0,m.Cb)({type:["rangeInfo"],readOnly:!0,json:{read:!1,write:!0}})],$.prototype,"type",void 0),$=(0,s._)([(0,v.j)("esri.layers.support.RangeInfo")],$);var z=r(40555),B=r(57444),H=r(32163),K=r(65242);const Y=["3DObject","Point"],J=d.Z.getLogger("esri.layers.SceneLayer"),X=(0,E.v)();let ee=class extends((0,x.Vt)((0,C.Y)((0,S.q)((0,F.I)((0,L.M)((0,y.R)((0,w.V)(I.Z)))))))){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 p.Z,this.definitionExpression=null,this.polygonFilter=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&&(0,u.pC)(this.associatedLayer)?this.associatedLayer.getFeatureType(e):null}get types(){return(0,u.pC)(this.associatedLayer)?this.associatedLayer.types:[]}get typeIdField(){return(0,u.pC)(this.associatedLayer)?this.associatedLayer.typeIdField:null}get formTemplate(){return(0,u.pC)(this.associatedLayer)?this.associatedLayer.formTemplate:null}get fieldsIndex(){return new D.Z(this.fields)}readNodePages(e,t,r){return"Point"===t.layerType&&(e=t.pointNodePages),null==e||"object"!=typeof e?null:O.U4.fromJSON(e,r)}set elevationInfo(e){this._set("elevationInfo",e),this.loaded&&this._validateElevationInfo()}get geometryType(){return re[this.profile]||"mesh"}set renderer(e){(0,U.YN)(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=(0,u.pC)(this.associatedLayer)&&this.associatedLayer.capabilities?this.associatedLayer.capabilities:j.C,{query:t,editing:{supportsGlobalId:r,supportsRollbackOnFailure:o,supportsUploadWithItemId:s,supportsReturnServiceEditsInSourceSpatialReference:i},data:{supportsZ:n,supportsM:a,isVersioned:p,supportsAttachment:l},operations:{supportsEditing:d,supportsUpdate:y,supportsQuery:c,supportsQueryAttachments:h}}=e,f=e.operations.supportsChangeTracking;return{query:t,editing:{supportsGlobalId:r,supportsReturnServiceEditsInSourceSpatialReference:i,supportsRollbackOnFailure:o,supportsGeometryUpdate:!1,supportsUploadWithItemId:s},data:{supportsAttachment:l,supportsZ:n,supportsM:a,isVersioned:p},operations:{supportsQuery:c,supportsQueryAttachments:h,supportsEditing:d&&f,supportsAdd:!1,supportsDelete:!1,supportsUpdate:y&&f}}}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(0,u.pC)(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(0,u.pC)(this.associatedLayer)?this.associatedLayer.displayField:null}readProfile(e,t){const r=t.store.profile;return null!=r&&te[r]?te[r]:(J.error("Unknown or missing profile",{profile:r,layer:this}),"mesh-pyramids")}load(e){const t=(0,u.pC)(e)?e.signal:null,r=this.loadFromPortal({supportedTypes:["Scene Service"]},e).catch(c.r9).then((()=>this._fetchService(t))).then((()=>Promise.all([this._fetchIndexAndUpdateExtent(this.nodePages,t),this._setAssociatedFeatureLayer(t)]))).then((()=>this._validateElevationInfo())).then((()=>this._applyAssociatedLayerOverrides())).then((()=>this._populateFieldUsageInfo())).then((()=>(0,z.y)(this,{origin:"service"},t))).then((()=>(0,U.YN)(this.renderer,this.fieldsIndex))).then((()=>this.finishLoadEditablePortalLayer(e)));return this.addResolvingPromise(r),Promise.resolve(this)}createQuery(){const e=new B.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:(J.error("#getFieldUsageInfo()","Unavailable until layer is loaded"),t)}createPopupTemplate(e){return(0,H.eZ)(this,e)}_getAssociatedLayerForQuery(){const e=this.associatedLayer;return(0,u.pC)(e)&&e.loaded?Promise.resolve(e):this._loadAssociatedLayerForQuery()}async _loadAssociatedLayerForQuery(){if(await this.load(),(0,u.Wi)(this.associatedLayer))throw new l.Z("scenelayer:query-not-available","SceneLayer queries are not available without an associated feature layer",{layer:this});try{await this.associatedLayer.load()}catch(e){throw new l.Z("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 l.Z("scenelayer:no-cached-statistics","Cached statistics are not available for this layer");const r=this.fieldsIndex.get(e);if(!r)throw new l.Z("scenelayer:field-unexisting",`Field '${e}' does not exist on the layer`);for(const e of this.statisticsInfo)if(e.name===r.name){const r=(0,f.v_)(this.parsedUrl.path,e.href);return(0,a.default)(r,{query:{f:"json",token:this.apiKey},responseType:"json",signal:t?t.signal:null}).then((e=>e.data))}throw new l.Z("scenelayer:no-cached-statistics","Cached statistics for this attribute are not available")}async saveAs(e,t){return this._debouncedSaveOperations(x.xp.SAVE_AS,{...t,getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"scene"},e)}async save(){const e={getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"scene"};return this._debouncedSaveOperations(x.xp.SAVE,e)}async applyEdits(e,t){const o=await r.e(4720).then(r.bind(r,14720));if(await this.load(),(0,u.Wi)(this.associatedLayer))throw new l.Z(`${this.type}-layer:not-editable`,"Service is not editable");return await this.associatedLayer.load(),o.applyEdits(this,this.associatedLayer.source,e,t)}on(e,t){return super.on(e,t)}validateLayer(e){if(e.layerType&&!Y.includes(e.layerType))throw new l.Z("scenelayer:layer-type-not-supported","SceneLayer does not support this layer type",{layerType:e.layerType});if(isNaN(this.version.major)||isNaN(this.version.minor))throw new l.Z("layer:service-version-not-supported","Service version is not supported.",{serviceVersion:this.version.versionString,supportedVersions:"1.x, 2.x"});if(this.version.major>2)throw new l.Z("layer:service-version-too-new","Service version is too new.",{serviceVersion:this.version.versionString,supportedVersions:"1.x, 2.x"});!function(e,t){let r=!1,o=!1;if(null==e)r=!0,o=!0;else{const s=t&&t.isGeographic;switch(e){case"east-north-up":case"earth-centered":r=!0,o=s;break;case"vertex-reference-frame":r=!0,o=!s;break;default:r=!1}}if(!r)throw new l.Z("scenelayer:unsupported-normal-reference-frame","Normal reference frame is invalid.");if(!o)throw new l.Z("scenelayer:incompatible-normal-reference-frame","Normal reference frame is incompatible with layer spatial reference.")}(this.normalReferenceFrame,this.spatialReference)}_getTypeKeywords(){const e=[];if("points"===this.profile)e.push("Point");else{if("mesh-pyramids"!==this.profile)throw new l.Z("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=!!((0,u.pC)(this.associatedLayer)&&this.associatedLayer.fields&&this.associatedLayer.fields.some((t=>t&&e.name===t.name))),o={supportsLabelingInfo:t,supportsRenderer:t,supportsPopupTemplate:t||r,supportsLayerQuery:r};this._fieldUsageInfo[e.name]=o}}_applyAssociatedLayerOverrides(){this._applyAssociatedLayerFieldsOverrides(),this._applyAssociatedLayerPopupOverrides()}_applyAssociatedLayerFieldsOverrides(){if((0,u.Wi)(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((0,u.Wi)(this.associatedLayer))return;const e=["popupTemplate","popupEnabled"],t=(0,g.vw)(this);for(let r=0;r<e.length;r++){const o=e[r],s=this.originIdOf(o),i=this.associatedLayer.originIdOf(o);s<i&&(i===_.s3.SERVICE||i===_.s3.PORTAL_ITEM)&&t.setAtOrigin(o,this.associatedLayer[o],i)}}async _setAssociatedFeatureLayer(e){if(!["mesh-pyramids","points"].includes(this.profile))return;const t=new R.W(this.parsedUrl,this.portalItem,this.apiKey,e);try{this.associatedLayer=await t.fetch()}catch(e){(0,c.D_)(e)||this._logWarningOnPopupEnabled()}}async _logWarningOnPopupEnabled(){await(0,h.N1)((()=>this.popupEnabled&&null!=this.popupTemplate));const e=`this SceneLayer: ${this.title}`;null==this.attributeStorageInfo?J.warn(`Associated FeatureLayer could not be loaded and no binary attributes found. Popups will not work on ${e}`):J.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&&J.warn(".elevationInfo=","Mesh scene layers don't support relative-to-scene elevation mode"),e.featureExpressionInfo&&"0"!==e.featureExpressionInfo.expression&&J.warn(".elevationInfo=","Scene layers do not support featureExpressionInfo"))}};(0,s._)([(0,m.Cb)({types:{key:"type",base:P.B,typeMap:{selection:A.Z}},json:{origins:{"web-scene":{name:"layerDefinition.featureReduction",write:!0},"portal-item":{name:"layerDefinition.featureReduction",write:!0}}}})],ee.prototype,"featureReduction",void 0),(0,s._)([(0,m.Cb)({type:[$],json:{read:!1,origins:{"web-scene":{name:"layerDefinition.rangeInfos",write:!0},"portal-item":{name:"layerDefinition.rangeInfos",write:!0}}}})],ee.prototype,"rangeInfos",void 0),(0,s._)([(0,m.Cb)({json:{read:!1}})],ee.prototype,"associatedLayer",void 0),(0,s._)([(0,m.Cb)({type:["show","hide"]})],ee.prototype,"listMode",void 0),(0,s._)([(0,m.Cb)({type:["ArcGISSceneServiceLayer"]})],ee.prototype,"operationalLayerType",void 0),(0,s._)([(0,m.Cb)({json:{read:!1},readOnly:!0})],ee.prototype,"type",void 0),(0,s._)([(0,m.Cb)({...X.fields,readOnly:!0,json:{read:!1,origins:{service:{read:!0}}}})],ee.prototype,"fields",void 0),(0,s._)([(0,m.Cb)()],ee.prototype,"types",null),(0,s._)([(0,m.Cb)()],ee.prototype,"typeIdField",null),(0,s._)([(0,m.Cb)()],ee.prototype,"formTemplate",null),(0,s._)([(0,m.Cb)({readOnly:!0})],ee.prototype,"fieldsIndex",null),(0,s._)([(0,m.Cb)({type:k.Z,json:{read:{source:"layerDefinition.floorInfo"},write:{target:"layerDefinition.floorInfo"}}})],ee.prototype,"floorInfo",void 0),(0,s._)([(0,m.Cb)(X.outFields)],ee.prototype,"outFields",void 0),(0,s._)([(0,m.Cb)({type:O.U4,readOnly:!0,json:{read:!1}})],ee.prototype,"nodePages",void 0),(0,s._)([(0,b.r)("service","nodePages",["nodePages","pointNodePages"])],ee.prototype,"readNodePages",null),(0,s._)([(0,m.Cb)({type:[O.QI],readOnly:!0})],ee.prototype,"materialDefinitions",void 0),(0,s._)([(0,m.Cb)({type:[O.Yh],readOnly:!0})],ee.prototype,"textureSetDefinitions",void 0),(0,s._)([(0,m.Cb)({type:[O.H3],readOnly:!0})],ee.prototype,"geometryDefinitions",void 0),(0,s._)([(0,m.Cb)({readOnly:!0})],ee.prototype,"serviceUpdateTimeStamp",void 0),(0,s._)([(0,m.Cb)({readOnly:!0})],ee.prototype,"attributeStorageInfo",void 0),(0,s._)([(0,m.Cb)({readOnly:!0})],ee.prototype,"statisticsInfo",void 0),(0,s._)([(0,m.Cb)({type:p.Z.ofType(Number),nonNullable:!0,json:{origins:{service:{read:!1,write:!1}},name:"layerDefinition.excludeObjectIds",write:{enabled:!0}}})],ee.prototype,"excludeObjectIds",void 0),(0,s._)([(0,m.Cb)({type:String,json:{origins:{service:{read:!1,write:!1}},name:"layerDefinition.definitionExpression",write:{enabled:!0,allowNull:!0}}})],ee.prototype,"definitionExpression",void 0),(0,s._)([(0,m.Cb)({type:G})],ee.prototype,"polygonFilter",void 0),(0,s._)([(0,m.Cb)({type:String,json:{origins:{"web-scene":{read:!0,write:!0}},read:!1}})],ee.prototype,"path",void 0),(0,s._)([(0,m.Cb)(T.PV)],ee.prototype,"elevationInfo",null),(0,s._)([(0,m.Cb)({type:String})],ee.prototype,"geometryType",null),(0,s._)([(0,m.Cb)(T.iR)],ee.prototype,"labelsVisible",void 0),(0,s._)([(0,m.Cb)({type:[q.Z],json:{origins:{service:{name:"drawingInfo.labelingInfo",read:{reader:N.r},write:!1}},name:"layerDefinition.drawingInfo.labelingInfo",read:{reader:N.r},write:!0}})],ee.prototype,"labelingInfo",void 0),(0,s._)([(0,m.Cb)(T.rn)],ee.prototype,"legendEnabled",void 0),(0,s._)([(0,m.Cb)({type:Number,json:{origins:{"web-document":{default:1,write:{enabled:!0,target:{opacity:{type:Number},"layerDefinition.drawingInfo.transparency":{type:Number}}},read:{source:["opacity","layerDefinition.drawingInfo.transparency"],reader(e,t){if("number"==typeof e&&e>=0&&e<=1)return e;const r=t.layerDefinition?.drawingInfo?.transparency;return void 0!==r?(0,K.b)(r):void 0}}},"portal-item":{write:!0},service:{read:!1}}}})],ee.prototype,"opacity",void 0),(0,s._)([(0,m.Cb)({type:["Low","High"],readOnly:!0,json:{read:!1,origins:{service:{read:!0}}}})],ee.prototype,"priority",void 0),(0,s._)([(0,m.Cb)({type:["Labels"],readOnly:!0,json:{read:!1,origins:{service:{read:!0}}}})],ee.prototype,"semantic",void 0),(0,s._)([(0,m.Cb)({types:n.o,json:{origins:{service:{read:{source:"drawingInfo.renderer"}}},name:"layerDefinition.drawingInfo.renderer",write:!0},value:null})],ee.prototype,"renderer",null),(0,s._)([(0,m.Cb)({json:{read:!1}})],ee.prototype,"cachedDrawingInfo",void 0),(0,s._)([(0,b.r)("service","cachedDrawingInfo")],ee.prototype,"readCachedDrawingInfo",null),(0,s._)([(0,m.Cb)({readOnly:!0,json:{read:!1}})],ee.prototype,"capabilities",null),(0,s._)([(0,m.Cb)({type:Boolean,json:{read:!1}})],ee.prototype,"editingEnabled",null),(0,s._)([(0,m.Cb)(T.C_)],ee.prototype,"popupEnabled",void 0),(0,s._)([(0,m.Cb)({type:i.Z,json:{name:"popupInfo",write:!0}})],ee.prototype,"popupTemplate",void 0),(0,s._)([(0,m.Cb)({readOnly:!0,json:{read:!1}})],ee.prototype,"defaultPopupTemplate",null),(0,s._)([(0,m.Cb)({type:String,json:{read:!1}})],ee.prototype,"objectIdField",void 0),(0,s._)([(0,b.r)("service","objectIdField",["objectIdField","fields"])],ee.prototype,"readObjectIdField",null),(0,s._)([(0,m.Cb)({type:String,json:{read:!1}})],ee.prototype,"globalIdField",void 0),(0,s._)([(0,b.r)("service","globalIdField",["globalIdField","fields"])],ee.prototype,"readGlobalIdField",null),(0,s._)([(0,m.Cb)({readOnly:!0,type:String,json:{read:!1}})],ee.prototype,"displayField",null),(0,s._)([(0,m.Cb)({type:String,json:{read:!1}})],ee.prototype,"profile",void 0),(0,s._)([(0,b.r)("service","profile",["store.profile"])],ee.prototype,"readProfile",null),(0,s._)([(0,m.Cb)({readOnly:!0,type:String,json:{origins:{service:{read:{source:"store.normalReferenceFrame"}}},read:!1}})],ee.prototype,"normalReferenceFrame",void 0),(0,s._)([(0,m.Cb)(T.YI)],ee.prototype,"screenSizePerspectiveEnabled",void 0),ee=(0,s._)([(0,v.j)("esri.layers.SceneLayer")],ee);const te={"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"},re={"mesh-pyramids":"mesh",points:"point",lines:"polyline",polygons:"polygon"},oe=ee},14147:(e,t,r)=>{r.d(t,{W:()=>d});var o=r(40330),s=r(3172),i=r(70586),n=r(95330),a=r(3121),p=r(65587),l=r(15235);class d{constructor(e,t,r,o){this.parsedUrl=e,this.portalItem=t,this.apiKey=r,this.signal=o,this.rootDocument=null;const s=this.parsedUrl.path.match(/^(.*)\/SceneServer\/layers\/([\d]*)\/?$/i);s&&(this.urlParts={root:s[1],layerId:parseInt(s[2],10)})}async fetch(){if(!this.urlParts)return null;const e=this.portalItem??await this._portalItemFromServiceItemId();if((0,i.Wi)(e))return this._loadFromUrl();const t=await this._findAndLoadRelatedPortalItem(e);return(0,i.Wi)(t)?null:this._loadFeatureLayerFromPortalItem(t)}async fetchPortalItem(){if(!this.urlParts)return null;const e=this.portalItem??await this._portalItemFromServiceItemId();return(0,i.Wi)(e)?null:this._findAndLoadRelatedPortalItem(e)}async _fetchRootDocument(){if((0,i.pC)(this.rootDocument))return this.rootDocument;if((0,i.Wi)(this.urlParts))return this.rootDocument={},{};const e={query:{f:"json",token:this.apiKey},responseType:"json",signal:this.signal},t=`${this.urlParts.root}/SceneServer`;try{const r=await(0,s.default)(t,e);this.rootDocument=r.data}catch{this.rootDocument={}}return this.rootDocument}async _fetchServiceOwningPortalUrl(){const e=o.id?.findServerInfo(this.parsedUrl.path);if(e?.owningSystemUrl)return e.owningSystemUrl;const t=this.parsedUrl.path.replace(/(.*\/rest)\/.*/i,"$1")+"/info";try{const e=(await(0,s.default)(t,{query:{f:"json"},responseType:"json",signal:this.signal})).data.owningSystemUrl;if(e)return e}catch(e){(0,n.r9)(e)}return null}async _findAndLoadRelatedPortalItem(e){try{return(await e.fetchRelatedItems({relationshipType:"Service2Service",direction:"reverse"},{signal:this.signal})).find((e=>"Feature Service"===e.type))||null}catch(e){return(0,n.r9)(e),null}}async _loadFeatureLayerFromPortalItem(e){await e.load({signal:this.signal});const t=await this._findMatchingAssociatedSublayerUrl(e.url);return new a.default({url:t,portalItem:e}).load({signal:this.signal})}async _loadFromUrl(){const e=await this._findMatchingAssociatedSublayerUrl(`${this.urlParts.root}/FeatureServer`);return new a.default({url:e}).load({signal:this.signal})}async _findMatchingAssociatedSublayerUrl(e){const t=e.replace(/^(.*FeatureServer)(\/[\d]*\/?)?$/i,"$1"),r={query:{f:"json"},responseType:"json",authMode:"no-prompt",signal:this.signal},o=this.urlParts.layerId,i=this._fetchRootDocument(),n=(0,s.default)(t,r),[a,p]=await Promise.all([n,i]),l=p&&p.layers,d=a.data&&a.data.layers;if(!Array.isArray(d))throw new Error("expected layers array");if(Array.isArray(l)){for(let e=0;e<Math.min(l.length,d.length);e++)if(l[e].id===o)return`${t}/${d[e].id}`}else if(o<d.length)return`${t}/${d[o].id}`;throw new Error("could not find matching associated sublayer")}async _portalItemFromServiceItemId(){const e=(await this._fetchRootDocument()).serviceItemId;if(!e)return null;const t=new l.default({id:e,apiKey:this.apiKey}),r=await this._fetchServiceOwningPortalUrl();(0,i.pC)(r)&&(t.portal=new p.Z({url:r}));try{return t.load({signal:this.signal})}catch(e){return(0,n.r9)(e),null}}}},51161:(e,t,r)=>{r.d(t,{H3:()=>g,QI:()=>u,U4:()=>p,Yh:()=>c});var o=r(43697),s=r(96674),i=r(5600),n=(r(67676),r(80442),r(75215),r(36030)),a=r(52011);let p=class extends s.wq{constructor(){super(...arguments),this.nodesPerPage=null,this.rootIndex=0,this.lodSelectionMetricType=null}};(0,o._)([(0,i.Cb)({type:Number})],p.prototype,"nodesPerPage",void 0),(0,o._)([(0,i.Cb)({type:Number})],p.prototype,"rootIndex",void 0),(0,o._)([(0,i.Cb)({type:String})],p.prototype,"lodSelectionMetricType",void 0),p=(0,o._)([(0,a.j)("esri.layer.support.I3SNodePageDefinition")],p);let l=class extends s.wq{constructor(){super(...arguments),this.factor=1}};(0,o._)([(0,i.Cb)({type:Number,json:{read:{source:"textureSetDefinitionId"}}})],l.prototype,"id",void 0),(0,o._)([(0,i.Cb)({type:Number})],l.prototype,"factor",void 0),l=(0,o._)([(0,a.j)("esri.layer.support.I3SMaterialTexture")],l);let d=class extends s.wq{constructor(){super(...arguments),this.baseColorFactor=[1,1,1,1],this.baseColorTexture=null,this.metallicRoughnessTexture=null,this.metallicFactor=1,this.roughnessFactor=1}};(0,o._)([(0,i.Cb)({type:[Number]})],d.prototype,"baseColorFactor",void 0),(0,o._)([(0,i.Cb)({type:l})],d.prototype,"baseColorTexture",void 0),(0,o._)([(0,i.Cb)({type:l})],d.prototype,"metallicRoughnessTexture",void 0),(0,o._)([(0,i.Cb)({type:Number})],d.prototype,"metallicFactor",void 0),(0,o._)([(0,i.Cb)({type:Number})],d.prototype,"roughnessFactor",void 0),d=(0,o._)([(0,a.j)("esri.layer.support.I3SMaterialPBRMetallicRoughness")],d);let u=class extends s.wq{constructor(){super(...arguments),this.alphaMode="opaque",this.alphaCutoff=.25,this.doubleSided=!1,this.cullFace="none",this.normalTexture=null,this.occlusionTexture=null,this.emissiveTexture=null,this.emissiveFactor=null,this.pbrMetallicRoughness=null}};(0,o._)([(0,n.J)({opaque:"opaque",mask:"mask",blend:"blend"})],u.prototype,"alphaMode",void 0),(0,o._)([(0,i.Cb)({type:Number})],u.prototype,"alphaCutoff",void 0),(0,o._)([(0,i.Cb)({type:Boolean})],u.prototype,"doubleSided",void 0),(0,o._)([(0,n.J)({none:"none",back:"back",front:"front"})],u.prototype,"cullFace",void 0),(0,o._)([(0,i.Cb)({type:l})],u.prototype,"normalTexture",void 0),(0,o._)([(0,i.Cb)({type:l})],u.prototype,"occlusionTexture",void 0),(0,o._)([(0,i.Cb)({type:l})],u.prototype,"emissiveTexture",void 0),(0,o._)([(0,i.Cb)({type:[Number]})],u.prototype,"emissiveFactor",void 0),(0,o._)([(0,i.Cb)({type:d})],u.prototype,"pbrMetallicRoughness",void 0),u=(0,o._)([(0,a.j)("esri.layer.support.I3SMaterialDefinition")],u);let y=class extends s.wq{};(0,o._)([(0,i.Cb)({type:String,json:{read:{source:["name","index"],reader:(e,t)=>null!=e?e:`${t.index}`}}})],y.prototype,"name",void 0),(0,o._)([(0,n.J)({jpg:"jpg",png:"png",dds:"dds","ktx-etc2":"ktx-etc2",ktx2:"ktx2",basis:"basis"})],y.prototype,"format",void 0),y=(0,o._)([(0,a.j)("esri.layer.support.I3STextureFormat")],y);let c=class extends s.wq{constructor(){super(...arguments),this.atlas=!1}};(0,o._)([(0,i.Cb)({type:[y]})],c.prototype,"formats",void 0),(0,o._)([(0,i.Cb)({type:Boolean})],c.prototype,"atlas",void 0),c=(0,o._)([(0,a.j)("esri.layer.support.I3STextureSetDefinition")],c);let h=class extends s.wq{};(0,o._)([(0,n.J)({Float32:"Float32",UInt64:"UInt64",UInt32:"UInt32",UInt16:"UInt16",UInt8:"UInt8"})],h.prototype,"type",void 0),(0,o._)([(0,i.Cb)({type:Number})],h.prototype,"component",void 0),h=(0,o._)([(0,a.j)("esri.layer.support.I3SGeometryAttribute")],h);let f=class extends s.wq{};(0,o._)([(0,n.J)({draco:"draco"})],f.prototype,"encoding",void 0),(0,o._)([(0,i.Cb)({type:[String]})],f.prototype,"attributes",void 0),f=(0,o._)([(0,a.j)("esri.layer.support.I3SGeometryCompressedAttributes")],f);let m=class extends s.wq{constructor(){super(...arguments),this.offset=0}};(0,o._)([(0,i.Cb)({type:Number})],m.prototype,"offset",void 0),(0,o._)([(0,i.Cb)({type:h})],m.prototype,"position",void 0),(0,o._)([(0,i.Cb)({type:h})],m.prototype,"normal",void 0),(0,o._)([(0,i.Cb)({type:h})],m.prototype,"uv0",void 0),(0,o._)([(0,i.Cb)({type:h})],m.prototype,"color",void 0),(0,o._)([(0,i.Cb)({type:h})],m.prototype,"uvRegion",void 0),(0,o._)([(0,i.Cb)({type:h})],m.prototype,"featureId",void 0),(0,o._)([(0,i.Cb)({type:h})],m.prototype,"faceRange",void 0),(0,o._)([(0,i.Cb)({type:f})],m.prototype,"compressedAttributes",void 0),m=(0,o._)([(0,a.j)("esri.layer.support.I3SGeometryBuffer")],m);let g=class extends s.wq{};(0,o._)([(0,n.J)({triangle:"triangle"})],g.prototype,"topology",void 0),(0,o._)([(0,i.Cb)()],g.prototype,"geometryBuffers",void 0),g=(0,o._)([(0,a.j)("esri.layer.support.I3SGeometryDefinition")],g)},56765:(e,t,r)=>{r.d(t,{Z:()=>d});var o,s=r(43697),i=r(80539),n=r(96674),a=r(5600),p=(r(67676),r(80442),r(75215),r(52011));let l=o=class extends n.wq{constructor(e){super(e),this.floorField=null,this.viewAllMode=!1,this.viewAllLevelIds=new i.Z}clone(){return new o({floorField:this.floorField,viewAllMode:this.viewAllMode,viewAllLevelIds:this.viewAllLevelIds})}};(0,s._)([(0,a.Cb)({type:String,json:{write:!0}})],l.prototype,"floorField",void 0),(0,s._)([(0,a.Cb)({json:{read:!1,write:!1}})],l.prototype,"viewAllMode",void 0),(0,s._)([(0,a.Cb)({json:{read:!1,write:!1}})],l.prototype,"viewAllLevelIds",void 0),l=o=(0,s._)([(0,p.j)("esri.layers.support.LayerFloorInfo")],l);const d=l},15506:(e,t,r)=>{r.d(t,{C:()=>o});const o={analytics:{supportsCacheHint:!1},attachment:{supportsContentType:!1,supportsExifInfo:!1,supportsKeywords:!1,supportsName:!1,supportsSize:!1,supportsCacheHint:!1,supportsResize:!1},data:{isVersioned:!1,supportsAttachment:!1,supportsM:!1,supportsZ:!1},editing:{supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsGeometryUpdate:!1,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:!1,supportsDelete:!1,supportsEditing:!1,supportsChangeTracking:!1,supportsQuery:!1,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:!1,supportsExceedsLimitStatistics:!1},queryRelated:{supportsCount:!1,supportsOrderBy:!1,supportsPagination:!1,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},query:{maxRecordCount:0,maxRecordCountFactor:0,standardMaxRecordCount:0,supportsCacheHint:!1,supportsCentroid:!1,supportsCompactGeometry:!1,supportsDefaultSpatialReference:!1,supportsDisjointSpatialRelationship:!1,supportsDistance:!1,supportsDistinct:!1,supportsExtent:!1,supportsFormatPBF:!1,supportsGeometryProperties:!1,supportsHavingClause:!1,supportsHistoricMoment:!1,supportsMaxRecordCountFactor:!1,supportsOrderBy:!1,supportsPagination:!1,supportsPercentileStatistics:!1,supportsQuantization:!1,supportsQuantizationEditMode:!1,supportsQueryByOthers:!1,supportsQueryGeometry:!1,supportsResultType:!1,supportsSqlExpression:!1,supportsStandardizedQueriesOnly:!1,supportsTopFeaturesQuery:!1,supportsSpatialAggregationStatistics:!1,supportedSpatialAggregationStatistics:{envelope:!1,centroid:!1,convexHull:!1},supportsStatistics:!1,tileMaxRecordCount:0}}},51706:(e,t,r)=>{var o,s;function i(e){return e&&"esri.renderers.visualVariables.SizeVariable"===e.declaredClass}function n(e){return null!=e&&!isNaN(e)&&isFinite(e)}function a(e){return e.valueExpression?o.Expression:e.field&&"string"==typeof e.field?o.Field:o.Unknown}function p(e,t){const r=t||a(e),i=e.valueUnit||"unknown";return r===o.Unknown?s.Constant:e.stops?s.Stops:null!=e.minSize&&null!=e.maxSize&&null!=e.minDataValue&&null!=e.maxDataValue?s.ClampedLinear:"unknown"===i?null!=e.minSize&&null!=e.minDataValue?e.minSize&&e.minDataValue?s.Proportional:s.Additive:s.Identity:s.RealWorldSize}r.d(t,{PS:()=>a,QW:()=>p,RY:()=>o,hL:()=>s,iY:()=>i,qh:()=>n}),function(e){e.Unknown="unknown",e.Expression="expression",e.Field="field"}(o||(o={})),function(e){e.Unknown="unknown",e.Stops="stops",e.ClampedLinear="clamped-linear",e.Proportional="proportional",e.Additive="additive",e.Constant="constant",e.Identity="identity",e.RealWorldSize="real-world-size"}(s||(s={}))}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6105],{84552:(e,t,i)=>{i.d(t,{Z:()=>d});var s,r=i(43697),n=i(96674),l=i(35463),o=i(5600),a=(i(67676),i(80442),i(75215),i(52011)),p=i(78981);let u=s=class extends n.wq{constructor(e){super(e),this.value=0,this.unit="milliseconds"}toMilliseconds(){return(0,l.rJ)(this.value,this.unit,"milliseconds")}clone(){return new s({value:this.value,unit:this.unit})}};(0,r._)([(0,o.Cb)({type:Number,json:{write:!0},nonNullable:!0})],u.prototype,"value",void 0),(0,r._)([(0,o.Cb)({type:p.v.apiValues,json:{type:p.v.jsonValues,read:p.v.read,write:p.v.write},nonNullable:!0})],u.prototype,"unit",void 0),u=s=(0,r._)([(0,a.j)("esri.TimeInterval")],u);const d=u},69637:(e,t,i)=>{i.d(t,{b:()=>T});var s,r=i(43697),n=i(5600),l=(i(67676),i(80442),i(75215),i(52011)),o=i(20102),a=i(96674),p=i(70586),u=i(78286),d=i(57520),c=i(66577),y=i(92835),m=i(35454),f=i(22974),h=i(57444);const v=new m.X({esriSpatialRelIntersects:"intersects",esriSpatialRelContains:"contains",esriSpatialRelCrosses:"crosses",esriSpatialRelDisjoint:"disjoint",esriSpatialRelEnvelopeIntersects:"envelope-intersects",esriSpatialRelIndexIntersects:"index-intersects",esriSpatialRelOverlaps:"overlaps",esriSpatialRelTouches:"touches",esriSpatialRelWithin:"within",esriSpatialRelRelation:"relation"}),b=new m.X({esriSRUnit_Meter:"meters",esriSRUnit_Kilometer:"kilometers",esriSRUnit_Foot:"feet",esriSRUnit_StatuteMile:"miles",esriSRUnit_NauticalMile:"nautical-miles",esriSRUnit_USNauticalMile:"us-nautical-miles"});let w=s=class extends a.wq{constructor(e){super(e),this.where=null,this.geometry=null,this.spatialRelationship="intersects",this.distance=void 0,this.objectIds=null,this.units=null,this.timeExtent=null}createQuery(e={}){const{where:t,geometry:i,spatialRelationship:s,timeExtent:r,objectIds:n,units:l,distance:o}=this;return new h.Z({geometry:(0,f.d9)(i),objectIds:(0,f.d9)(n),spatialRelationship:s,timeExtent:(0,f.d9)(r),where:t,units:l,distance:o,...e})}clone(){const{where:e,geometry:t,spatialRelationship:i,timeExtent:r,objectIds:n,units:l,distance:o}=this;return new s({geometry:(0,f.d9)(t),objectIds:(0,f.d9)(n),spatialRelationship:i,timeExtent:(0,f.d9)(r),where:e,units:l,distance:o})}};(0,r._)([(0,n.Cb)({type:String,json:{write:!0}})],w.prototype,"where",void 0),(0,r._)([(0,n.Cb)({types:c.qM,json:{write:!0}})],w.prototype,"geometry",void 0),(0,r._)([(0,n.Cb)({type:v.apiValues,json:{name:"spatialRel",read:{reader:v.read},write:{allowNull:!1,writer:v.write,overridePolicy(){return{enabled:(0,p.pC)(this.geometry)}}}}})],w.prototype,"spatialRelationship",void 0),(0,r._)([(0,n.Cb)({type:Number,json:{write:{overridePolicy(e){return{enabled:null!=e&&null!=this.geometry}}}}})],w.prototype,"distance",void 0),(0,r._)([(0,n.Cb)({type:[Number],json:{write:!0}})],w.prototype,"objectIds",void 0),(0,r._)([(0,n.Cb)({type:b.apiValues,json:{read:b.read,write:{writer:b.write,overridePolicy(e){return{enabled:null!=e&&null!=this.geometry}}}}})],w.prototype,"units",void 0),(0,r._)([(0,n.Cb)({type:y.Z,json:{write:!0}})],w.prototype,"timeExtent",void 0),w=s=(0,r._)([(0,l.j)("esri.layers.support.FeatureFilter")],w);const g=w;var _;const x={read:{reader:d.ij},write:{writer:d.cW,overridePolicy(){return{allowNull:null!=this.excludedEffect,isRequired:null==this.excludedEffect}}}},j={read:{reader:d.ij},write:{writer:d.cW,overridePolicy(){return{allowNull:null!=this.includedEffect,isRequired:null==this.includedEffect}}}},C={name:"showExcludedLabels",default:!0};let S=_=class extends a.wq{constructor(e){super(e),this.filter=null,this.includedEffect=null,this.excludedEffect=null,this.excludedLabelsVisible=!1}write(e,t){const i=super.write(e,t);if(t?.origin){if(i.filter){const e=Object.keys(i.filter);if(e.length>1||"where"!==e[0])return t.messages?.push(new o.Z("web-document-write:unsupported-feature-effect","Invalid feature effect 'filter'. A filter can only contain a 'where' property",{layer:t.layer,effect:this})),null}if("showExcludedLabels"in i)return t.messages?.push(new o.Z("web-document-write:unsupported-feature-effect","Invalid value for property 'excludedLabelsVisible' which should always be 'true'",{layer:t.layer,effect:this})),null}return i}clone(){return new _({filter:(0,p.pC)(this.filter)&&this.filter.clone(),includedEffect:this.includedEffect,excludedEffect:this.excludedEffect,excludedLabelsVisible:this.excludedLabelsVisible})}};(0,r._)([(0,n.Cb)({type:g,json:{write:{allowNull:!0,writer(e,t,i,s){const r=e?.write({},s);r&&0!==Object.keys(r).length?(0,u.RB)(i,r,t):(0,u.RB)(i,null,t)}}}})],S.prototype,"filter",void 0),(0,r._)([(0,n.Cb)({json:{write:!0,origins:{"web-map":x,"portal-item":x}}})],S.prototype,"includedEffect",void 0),(0,r._)([(0,n.Cb)({json:{write:!0,origins:{"web-map":j,"portal-item":j}}})],S.prototype,"excludedEffect",void 0),(0,r._)([(0,n.Cb)({type:Boolean,json:{write:!0,name:"showExcludedLabels",origins:{"web-map":C,"portal-item":C}}})],S.prototype,"excludedLabelsVisible",void 0),S=_=(0,r._)([(0,l.j)("esri.layers.support.FeatureEffect")],S);const I=S,E={write:{allowNull:!0}},T=e=>{let t=class extends e{constructor(){super(...arguments),this.featureEffect=null}};return(0,r._)([(0,n.Cb)({type:I,json:{origins:{"web-map":E,"portal-item":E}}})],t.prototype,"featureEffect",void 0),t=(0,r._)([(0,l.j)("esri.layers.mixins.FeatureEffectLayer")],t),t}},28294:(e,t,i)=>{i.d(t,{n:()=>c});var s=i(43697),r=i(92835),n=i(84552),l=i(5600),o=(i(67676),i(80442),i(75215),i(71715)),a=i(52011),p=i(35671),u=i(30547),d=i(78981);const c=e=>{let t=class extends e{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 s=i.timeOffset,r=d.v.fromJSON(i.timeOffsetUnits);return s&&r?new n.Z({value:s,unit:r}):null}set timeInfo(e){(0,p.UF)(e,this.fieldsIndex),this._set("timeInfo",e)}};return(0,s._)([(0,l.Cb)({type:r.Z,json:{write:!1}})],t.prototype,"timeExtent",void 0),(0,s._)([(0,l.Cb)({type:n.Z})],t.prototype,"timeOffset",void 0),(0,s._)([(0,o.r)("service","timeOffset",["timeInfo.exportOptions"])],t.prototype,"readOffset",null),(0,s._)([(0,l.Cb)({value:null,type:u.Z,json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],t.prototype,"timeInfo",null),(0,s._)([(0,l.Cb)({type:Boolean,json:{read:{source:"timeAnimation"},write:{target:"timeAnimation"},origins:{"web-scene":{read:!1,write:!1}}}})],t.prototype,"useViewTime",void 0),t=(0,s._)([(0,a.j)("esri.layers.mixins.TemporalLayer")],t),t}},61960:(e,t,i)=>{i.d(t,{B:()=>o});var s=i(43697),r=i(96674),n=i(5600),l=(i(67676),i(80442),i(75215),i(52011));let o=class extends r.wq{constructor(){super(...arguments),this.type=null}};(0,s._)([(0,n.Cb)({type:["selection","cluster","binning"],readOnly:!0,json:{read:!1,write:!0}})],o.prototype,"type",void 0),o=(0,s._)([(0,l.j)("esri.layers.support.FeatureReduction")],o)},85857:(e,t,i)=>{i.d(t,{Z:()=>p});var s,r=i(43697),n=i(5600),l=(i(67676),i(80442),i(75215),i(52011)),o=i(61960);let a=s=class extends o.B{constructor(e){super(e),this.type="selection"}clone(){return new s}};(0,r._)([(0,n.Cb)({type:["selection"]})],a.prototype,"type",void 0),a=s=(0,r._)([(0,l.j)("esri.layers.support.FeatureReductionSelection")],a);const p=a},30547:(e,t,i)=>{i.d(t,{Z:()=>w});var s,r=i(43697),n=i(92835),l=i(84552),o=i(96674),a=i(22974),p=i(70586),u=i(5600),d=(i(75215),i(71715)),c=i(52011),y=i(30556);i(67676),i(80442);let m=s=class extends o.wq{constructor(e){super(e),this.respectsDaylightSaving=!1,this.timezone=null}readRespectsDaylightSaving(e,t){return void 0!==t.respectsDaylightSaving?t.respectsDaylightSaving:void 0!==t.respectDaylightSaving&&t.respectDaylightSaving}clone(){const{respectsDaylightSaving:e,timezone:t}=this;return new s({respectsDaylightSaving:e,timezone:t})}};(0,r._)([(0,u.Cb)({type:Boolean,json:{write:!0}})],m.prototype,"respectsDaylightSaving",void 0),(0,r._)([(0,d.r)("respectsDaylightSaving",["respectsDaylightSaving","respectDaylightSaving"])],m.prototype,"readRespectsDaylightSaving",null),(0,r._)([(0,u.Cb)({type:String,json:{read:{source:"timeZone"},write:{target:"timeZone"}}})],m.prototype,"timezone",void 0),m=s=(0,r._)([(0,c.j)("esri.layers.support.TimeReference")],m);const f=m;var h,v=i(78981);let b=h=class extends o.wq{constructor(e){super(e),this.cumulative=!1,this.endField=null,this.fullTimeExtent=null,this.hasLiveData=!1,this.interval=null,this.startField=null,this.timeReference=null,this.trackIdField=null,this.useTime=!0}readFullTimeExtent(e,t){if(!t.timeExtent||!Array.isArray(t.timeExtent)||2!==t.timeExtent.length)return null;const i=new Date(t.timeExtent[0]),s=new Date(t.timeExtent[1]);return new n.Z({start:i,end:s})}writeFullTimeExtent(e,t){e&&(0,p.pC)(e.start)&&(0,p.pC)(e.end)?t.timeExtent=[e.start.getTime(),e.end.getTime()]:t.timeExtent=null}readInterval(e,t){return t.timeInterval&&t.timeIntervalUnits?new l.Z({value:t.timeInterval,unit:v.v.fromJSON(t.timeIntervalUnits)}):t.defaultTimeInterval&&t.defaultTimeIntervalUnits?new l.Z({value:t.defaultTimeInterval,unit:v.v.fromJSON(t.defaultTimeIntervalUnits)}):null}writeInterval(e,t){if(e){const i=e.toJSON();t.timeInterval=i.value,t.timeIntervalUnits=i.unit}else t.timeInterval=null,t.timeIntervalUnits=null}clone(){const{cumulative:e,endField:t,hasLiveData:i,interval:s,startField:r,timeReference:n,fullTimeExtent:l,trackIdField:o,useTime:p}=this;return new h({cumulative:e,endField:t,hasLiveData:i,interval:s,startField:r,timeReference:(0,a.d9)(n),fullTimeExtent:(0,a.d9)(l),trackIdField:o,useTime:p})}};(0,r._)([(0,u.Cb)({type:Boolean,json:{read:{source:"exportOptions.timeDataCumulative"},write:{target:"exportOptions.timeDataCumulative"}}})],b.prototype,"cumulative",void 0),(0,r._)([(0,u.Cb)({type:String,json:{read:{source:"endTimeField"},write:{target:"endTimeField",allowNull:!0}}})],b.prototype,"endField",void 0),(0,r._)([(0,u.Cb)({type:n.Z,json:{write:{enabled:!0,allowNull:!0}}})],b.prototype,"fullTimeExtent",void 0),(0,r._)([(0,d.r)("fullTimeExtent",["timeExtent"])],b.prototype,"readFullTimeExtent",null),(0,r._)([(0,y.c)("fullTimeExtent")],b.prototype,"writeFullTimeExtent",null),(0,r._)([(0,u.Cb)({type:Boolean,json:{write:!0}})],b.prototype,"hasLiveData",void 0),(0,r._)([(0,u.Cb)({type:l.Z,json:{write:{enabled:!0,allowNull:!0}}})],b.prototype,"interval",void 0),(0,r._)([(0,d.r)("interval",["timeInterval","timeIntervalUnits","defaultTimeInterval","defaultTimeIntervalUnits"])],b.prototype,"readInterval",null),(0,r._)([(0,y.c)("interval")],b.prototype,"writeInterval",null),(0,r._)([(0,u.Cb)({type:String,json:{read:{source:"startTimeField"},write:{target:"startTimeField",allowNull:!0}}})],b.prototype,"startField",void 0),(0,r._)([(0,u.Cb)({type:f,json:{write:{enabled:!0,allowNull:!0}}})],b.prototype,"timeReference",void 0),(0,r._)([(0,u.Cb)({type:String,json:{write:{enabled:!0,allowNull:!0}}})],b.prototype,"trackIdField",void 0),(0,r._)([(0,u.Cb)({type:Boolean,json:{read:{source:"exportOptions.useTime"},write:{target:"exportOptions.useTime"}}})],b.prototype,"useTime",void 0),b=h=(0,r._)([(0,c.j)("esri.layers.support.TimeInfo")],b);const w=b},2075:(e,t,i)=>{i.d(t,{d:()=>F});var s,r=i(61960),n=i(43697),l=i(51773),o=(i(16050),i(12501),i(28756),i(92271),i(18746),i(5499),i(84382),i(30687),i(91423),i(32400)),a=i(22974),p=i(5600),u=(i(75215),i(36030)),d=i(52011),c=i(96674);i(67676),i(80442);let y=s=class extends c.wq{constructor(){super(...arguments),this.statisticType=null,this.onStatisticField=null,this.onStatisticValueExpression=null}clone(){return new s({statisticType:this.statisticType,onStatisticField:this.onStatisticField,onStatisticValueExpression:this.onStatisticValueExpression})}};(0,n._)([(0,p.Cb)({type:String,json:{write:!0}})],y.prototype,"statisticType",void 0),(0,n._)([(0,p.Cb)({type:String,json:{write:!0}})],y.prototype,"onStatisticField",void 0),(0,n._)([(0,p.Cb)({type:String,json:{write:!0}})],y.prototype,"onStatisticValueExpression",void 0),y=s=(0,n._)([(0,d.j)("esri.layers.support.OutStatistic")],y);const m=y;var f;let h=f=class extends c.wq{constructor(){super(...arguments),this.name=null,this.outStatistic=null}clone(){return new f({name:this.name,outStatistic:this.outStatistic.clone()})}};(0,n._)([(0,p.Cb)({type:String,json:{write:!0}})],h.prototype,"name",void 0),(0,n._)([(0,p.Cb)({type:m,json:{write:!0}})],h.prototype,"outStatistic",void 0),h=f=(0,n._)([(0,d.j)("esri.layers.support.AggregateField")],h);const v=h;var b,w=i(21506),g=i(2319);let _=b=class extends r.B{constructor(e){super(e),this.type="binning",this.fixedBinLevel=3,this.labelingInfo=null,this.labelsVisible=!0,this.popupEnabled=!0,this.popupTemplate=null,this.fields=[]}clone(){return new b({fields:(0,a.d9)(this.fields),fixedBinLevel:this.fixedBinLevel,labelingInfo:(0,a.d9)(this.labelingInfo),labelsVisible:this.labelsVisible,popupEnabled:this.popupEnabled,popupTemplate:(0,a.d9)(this.popupTemplate),renderer:(0,a.d9)(this.renderer)})}};(0,n._)([(0,u.J)({binning:"binning"})],_.prototype,"type",void 0),(0,n._)([(0,p.Cb)({type:Number,json:{write:!0}})],_.prototype,"fixedBinLevel",void 0),(0,n._)([(0,p.Cb)({type:[g.Z],json:{read:{source:"drawingInfo.labelingInfo"},write:{target:"drawingInfo.labelingInfo"}}})],_.prototype,"labelingInfo",void 0),(0,n._)([(0,p.Cb)(w.iR)],_.prototype,"labelsVisible",void 0),(0,n._)([(0,p.Cb)(w.C_)],_.prototype,"popupEnabled",void 0),(0,n._)([(0,p.Cb)({type:l.Z,json:{name:"popupInfo",write:!0}})],_.prototype,"popupTemplate",void 0),(0,n._)([(0,p.Cb)({type:[v],json:{write:!0,origins:{"web-document":{write:!1},"portal-item":{write:!1}}}})],_.prototype,"fields",void 0),(0,n._)([(0,p.Cb)({types:o.A,json:{write:!0}})],_.prototype,"renderer",void 0),_=b=(0,n._)([(0,d.j)("esri.layers.support.FeatureReductionBinning")],_);const x=_;var j,C=i(78223),S=i(62357);let I=j=class extends c.wq{constructor(e){super(e),this.type="cluster",this.clusterRadius=(0,S.t_)("80px"),this.clusterMinSize=(0,S.t_)("12px"),this.clusterMaxSize=(0,S.t_)("50px"),this.popupEnabled=!0,this.popupTemplate=null,this.symbol=null,this.labelingInfo=null,this.labelsVisible=!0,this.fields=null}clone(){return new j({clusterRadius:this.clusterRadius,clusterMinSize:this.clusterMinSize,clusterMaxSize:this.clusterMaxSize,labelingInfo:(0,a.d9)(this.labelingInfo),labelsVisible:this.labelsVisible,fields:(0,a.d9)(this.fields),popupEnabled:this.popupEnabled,popupTemplate:(0,a.d9)(this.popupTemplate)})}};(0,n._)([(0,p.Cb)({type:["cluster"],readOnly:!0,json:{write:!0}})],I.prototype,"type",void 0),(0,n._)([(0,p.Cb)({type:Number,cast:e=>"auto"===e?e:(0,S.t_)(e),json:{write:!0}})],I.prototype,"clusterRadius",void 0),(0,n._)([(0,p.Cb)({type:Number,cast:S.t_,json:{write:!0}})],I.prototype,"clusterMinSize",void 0),(0,n._)([(0,p.Cb)({type:Number,cast:S.t_,json:{write:!0}})],I.prototype,"clusterMaxSize",void 0),(0,n._)([(0,p.Cb)(w.C_)],I.prototype,"popupEnabled",void 0),(0,n._)([(0,p.Cb)({type:l.Z,json:{read:{source:"popupInfo"},write:{target:"popupInfo"}}})],I.prototype,"popupTemplate",void 0),(0,n._)([(0,p.Cb)({types:C.AH})],I.prototype,"symbol",void 0),(0,n._)([(0,p.Cb)({type:[g.Z],json:{read:{source:"drawingInfo.labelingInfo"},write:{target:"drawingInfo.labelingInfo"}}})],I.prototype,"labelingInfo",void 0),(0,n._)([(0,p.Cb)(w.iR)],I.prototype,"labelsVisible",void 0),(0,n._)([(0,p.Cb)({type:[v],json:{write:!0,origins:{"web-document":{write:!1},"portal-item":{write:!1}}}})],I.prototype,"fields",void 0),I=j=(0,n._)([(0,d.j)("esri.layers.support.FeatureReductionCluster")],I);const E=I;var T=i(85857);const R={key:"type",base:r.B,typeMap:{selection:E}},F={types:{key:"type",base:r.B,typeMap:{selection:T.Z,cluster:E,binning:x}},json:{name:"layerDefinition.featureReduction",write:{allowNull:!0},origins:{"web-map":{types:R},"portal-item":{types:R},"web-scene":{types:{key:"type",base:r.B,typeMap:{selection:T.Z}}}}}}},53518:(e,t,i)=>{i.d(t,{v:()=>a});var s=i(92604),r=i(1231),n=i(99514),l=i(35671);const o=s.Z.getLogger("esri.layers.support.fieldProperties");function a(){return{fields:{type:[r.Z],value:null},fieldsIndex:{readOnly:!0,get(){return new n.Z(this.fields||[])}},outFields:{type:[String],json:{read:!1},set:function(e){this._userOutFields=e,this.notifyChange("outFields")},get:function(){const e=this._userOutFields;if(!e||!e.length)return null;if(e.includes("*"))return["*"];if(!this.fields)return e;for(const t of e)this.fieldsIndex.has(t)||o.error("field-attributes-layer:invalid-field",`Invalid field ${t} found in outFields`,{layer:this,outFields:e});return(0,l.Q0)(this.fieldsIndex,e)}}}}},30707:(e,t,i)=>{i.d(t,{r:()=>n});var s=i(2319);const r=/\[([^\[\]]+)\]/gi;function n(e,t,i){return e?e.map((e=>{const n=new s.Z;if(n.read(e,i),n.labelExpression){const e=t.fields||t.layerDefinition&&t.layerDefinition.fields||this.fields;n.labelExpression=n.labelExpression.replace(r,((t,i)=>`[${function(e,t){if(!t)return e;const i=e.toLowerCase();for(let e=0;e<t.length;e++){const s=t[e].name;if(s.toLowerCase()===i)return s}return e}(i,e)}]`))}return n})):null}},78981:(e,t,i)=>{i.d(t,{v:()=>s});const s=(0,i(35454).w)()({esriTimeUnitsMilliseconds:"milliseconds",esriTimeUnitsSeconds:"seconds",esriTimeUnitsMinutes:"minutes",esriTimeUnitsHours:"hours",esriTimeUnitsDays:"days",esriTimeUnitsWeeks:"weeks",esriTimeUnitsMonths:"months",esriTimeUnitsYears:"years",esriTimeUnitsDecades:"decades",esriTimeUnitsCenturies:"centuries",esriTimeUnitsUnknown:void 0})}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6105],{84552:(e,t,i)=>{i.d(t,{Z:()=>d});var s,r=i(43697),n=i(96674),l=i(35463),o=i(5600),a=(i(67676),i(80442),i(75215),i(52011)),p=i(78981);let u=s=class extends n.wq{constructor(e){super(e),this.value=0,this.unit="milliseconds"}toMilliseconds(){return(0,l.rJ)(this.value,this.unit,"milliseconds")}clone(){return new s({value:this.value,unit:this.unit})}};(0,r._)([(0,o.Cb)({type:Number,json:{write:!0},nonNullable:!0})],u.prototype,"value",void 0),(0,r._)([(0,o.Cb)({type:p.v.apiValues,json:{type:p.v.jsonValues,read:p.v.read,write:p.v.write},nonNullable:!0})],u.prototype,"unit",void 0),u=s=(0,r._)([(0,a.j)("esri.TimeInterval")],u);const d=u},69637:(e,t,i)=>{i.d(t,{b:()=>T});var s,r=i(43697),n=i(5600),l=(i(67676),i(80442),i(75215),i(52011)),o=i(20102),a=i(96674),p=i(70586),u=i(78286),d=i(57520),c=i(66577),y=i(92835),m=i(35454),f=i(22974),h=i(57444);const v=new m.X({esriSpatialRelIntersects:"intersects",esriSpatialRelContains:"contains",esriSpatialRelCrosses:"crosses",esriSpatialRelDisjoint:"disjoint",esriSpatialRelEnvelopeIntersects:"envelope-intersects",esriSpatialRelIndexIntersects:"index-intersects",esriSpatialRelOverlaps:"overlaps",esriSpatialRelTouches:"touches",esriSpatialRelWithin:"within",esriSpatialRelRelation:"relation"}),b=new m.X({esriSRUnit_Meter:"meters",esriSRUnit_Kilometer:"kilometers",esriSRUnit_Foot:"feet",esriSRUnit_StatuteMile:"miles",esriSRUnit_NauticalMile:"nautical-miles",esriSRUnit_USNauticalMile:"us-nautical-miles"});let w=s=class extends a.wq{constructor(e){super(e),this.where=null,this.geometry=null,this.spatialRelationship="intersects",this.distance=void 0,this.objectIds=null,this.units=null,this.timeExtent=null}createQuery(e={}){const{where:t,geometry:i,spatialRelationship:s,timeExtent:r,objectIds:n,units:l,distance:o}=this;return new h.Z({geometry:(0,f.d9)(i),objectIds:(0,f.d9)(n),spatialRelationship:s,timeExtent:(0,f.d9)(r),where:t,units:l,distance:o,...e})}clone(){const{where:e,geometry:t,spatialRelationship:i,timeExtent:r,objectIds:n,units:l,distance:o}=this;return new s({geometry:(0,f.d9)(t),objectIds:(0,f.d9)(n),spatialRelationship:i,timeExtent:(0,f.d9)(r),where:e,units:l,distance:o})}};(0,r._)([(0,n.Cb)({type:String,json:{write:!0}})],w.prototype,"where",void 0),(0,r._)([(0,n.Cb)({types:c.qM,json:{write:!0}})],w.prototype,"geometry",void 0),(0,r._)([(0,n.Cb)({type:v.apiValues,json:{name:"spatialRel",read:{reader:v.read},write:{allowNull:!1,writer:v.write,overridePolicy(){return{enabled:(0,p.pC)(this.geometry)}}}}})],w.prototype,"spatialRelationship",void 0),(0,r._)([(0,n.Cb)({type:Number,json:{write:{overridePolicy(e){return{enabled:null!=e&&null!=this.geometry}}}}})],w.prototype,"distance",void 0),(0,r._)([(0,n.Cb)({type:[Number],json:{write:!0}})],w.prototype,"objectIds",void 0),(0,r._)([(0,n.Cb)({type:b.apiValues,json:{read:b.read,write:{writer:b.write,overridePolicy(e){return{enabled:null!=e&&null!=this.geometry}}}}})],w.prototype,"units",void 0),(0,r._)([(0,n.Cb)({type:y.Z,json:{write:!0}})],w.prototype,"timeExtent",void 0),w=s=(0,r._)([(0,l.j)("esri.layers.support.FeatureFilter")],w);const g=w;var _;const x={read:{reader:d.ij},write:{writer:d.cW,overridePolicy(){return{allowNull:null!=this.excludedEffect,isRequired:null==this.excludedEffect}}}},j={read:{reader:d.ij},write:{writer:d.cW,overridePolicy(){return{allowNull:null!=this.includedEffect,isRequired:null==this.includedEffect}}}},C={name:"showExcludedLabels",default:!0};let S=_=class extends a.wq{constructor(e){super(e),this.filter=null,this.includedEffect=null,this.excludedEffect=null,this.excludedLabelsVisible=!1}write(e,t){const i=super.write(e,t);if(t?.origin){if(i.filter){const e=Object.keys(i.filter);if(e.length>1||"where"!==e[0])return t.messages?.push(new o.Z("web-document-write:unsupported-feature-effect","Invalid feature effect 'filter'. A filter can only contain a 'where' property",{layer:t.layer,effect:this})),null}if("showExcludedLabels"in i)return t.messages?.push(new o.Z("web-document-write:unsupported-feature-effect","Invalid value for property 'excludedLabelsVisible' which should always be 'true'",{layer:t.layer,effect:this})),null}return i}clone(){return new _({filter:(0,p.pC)(this.filter)&&this.filter.clone(),includedEffect:this.includedEffect,excludedEffect:this.excludedEffect,excludedLabelsVisible:this.excludedLabelsVisible})}};(0,r._)([(0,n.Cb)({type:g,json:{write:{allowNull:!0,writer(e,t,i,s){const r=e?.write({},s);r&&0!==Object.keys(r).length?(0,u.RB)(i,r,t):(0,u.RB)(i,null,t)}}}})],S.prototype,"filter",void 0),(0,r._)([(0,n.Cb)({json:{write:!0,origins:{"web-map":x,"portal-item":x}}})],S.prototype,"includedEffect",void 0),(0,r._)([(0,n.Cb)({json:{write:!0,origins:{"web-map":j,"portal-item":j}}})],S.prototype,"excludedEffect",void 0),(0,r._)([(0,n.Cb)({type:Boolean,json:{write:!0,name:"showExcludedLabels",origins:{"web-map":C,"portal-item":C}}})],S.prototype,"excludedLabelsVisible",void 0),S=_=(0,r._)([(0,l.j)("esri.layers.support.FeatureEffect")],S);const I=S,E={write:{allowNull:!0}},T=e=>{let t=class extends e{constructor(){super(...arguments),this.featureEffect=null}};return(0,r._)([(0,n.Cb)({type:I,json:{origins:{"web-map":E,"portal-item":E}}})],t.prototype,"featureEffect",void 0),t=(0,r._)([(0,l.j)("esri.layers.mixins.FeatureEffectLayer")],t),t}},28294:(e,t,i)=>{i.d(t,{n:()=>c});var s=i(43697),r=i(92835),n=i(84552),l=i(5600),o=(i(67676),i(80442),i(75215),i(71715)),a=i(52011),p=i(35671),u=i(30547),d=i(78981);const c=e=>{let t=class extends e{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 s=i.timeOffset,r=d.v.fromJSON(i.timeOffsetUnits);return s&&r?new n.Z({value:s,unit:r}):null}set timeInfo(e){(0,p.UF)(e,this.fieldsIndex),this._set("timeInfo",e)}};return(0,s._)([(0,l.Cb)({type:r.Z,json:{write:!1}})],t.prototype,"timeExtent",void 0),(0,s._)([(0,l.Cb)({type:n.Z})],t.prototype,"timeOffset",void 0),(0,s._)([(0,o.r)("service","timeOffset",["timeInfo.exportOptions"])],t.prototype,"readOffset",null),(0,s._)([(0,l.Cb)({value:null,type:u.Z,json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],t.prototype,"timeInfo",null),(0,s._)([(0,l.Cb)({type:Boolean,json:{read:{source:"timeAnimation"},write:{target:"timeAnimation"},origins:{"web-scene":{read:!1,write:!1}}}})],t.prototype,"useViewTime",void 0),t=(0,s._)([(0,a.j)("esri.layers.mixins.TemporalLayer")],t),t}},61960:(e,t,i)=>{i.d(t,{B:()=>o});var s=i(43697),r=i(96674),n=i(5600),l=(i(67676),i(80442),i(75215),i(52011));let o=class extends r.wq{constructor(){super(...arguments),this.type=null}};(0,s._)([(0,n.Cb)({type:["selection","cluster","binning"],readOnly:!0,json:{read:!1,write:!0}})],o.prototype,"type",void 0),o=(0,s._)([(0,l.j)("esri.layers.support.FeatureReduction")],o)},85857:(e,t,i)=>{i.d(t,{Z:()=>p});var s,r=i(43697),n=i(5600),l=(i(67676),i(80442),i(75215),i(52011)),o=i(61960);let a=s=class extends o.B{constructor(e){super(e),this.type="selection"}clone(){return new s}};(0,r._)([(0,n.Cb)({type:["selection"]})],a.prototype,"type",void 0),a=s=(0,r._)([(0,l.j)("esri.layers.support.FeatureReductionSelection")],a);const p=a},30547:(e,t,i)=>{i.d(t,{Z:()=>w});var s,r=i(43697),n=i(92835),l=i(84552),o=i(96674),a=i(22974),p=i(70586),u=i(5600),d=(i(75215),i(71715)),c=i(52011),y=i(30556);i(67676),i(80442);let m=s=class extends o.wq{constructor(e){super(e),this.respectsDaylightSaving=!1,this.timezone=null}readRespectsDaylightSaving(e,t){return void 0!==t.respectsDaylightSaving?t.respectsDaylightSaving:void 0!==t.respectDaylightSaving&&t.respectDaylightSaving}clone(){const{respectsDaylightSaving:e,timezone:t}=this;return new s({respectsDaylightSaving:e,timezone:t})}};(0,r._)([(0,u.Cb)({type:Boolean,json:{write:!0}})],m.prototype,"respectsDaylightSaving",void 0),(0,r._)([(0,d.r)("respectsDaylightSaving",["respectsDaylightSaving","respectDaylightSaving"])],m.prototype,"readRespectsDaylightSaving",null),(0,r._)([(0,u.Cb)({type:String,json:{read:{source:"timeZone"},write:{target:"timeZone"}}})],m.prototype,"timezone",void 0),m=s=(0,r._)([(0,c.j)("esri.layers.support.TimeReference")],m);const f=m;var h,v=i(78981);let b=h=class extends o.wq{constructor(e){super(e),this.cumulative=!1,this.endField=null,this.fullTimeExtent=null,this.hasLiveData=!1,this.interval=null,this.startField=null,this.timeReference=null,this.trackIdField=null,this.useTime=!0}readFullTimeExtent(e,t){if(!t.timeExtent||!Array.isArray(t.timeExtent)||2!==t.timeExtent.length)return null;const i=new Date(t.timeExtent[0]),s=new Date(t.timeExtent[1]);return new n.Z({start:i,end:s})}writeFullTimeExtent(e,t){e&&(0,p.pC)(e.start)&&(0,p.pC)(e.end)?t.timeExtent=[e.start.getTime(),e.end.getTime()]:t.timeExtent=null}readInterval(e,t){return t.timeInterval&&t.timeIntervalUnits?new l.Z({value:t.timeInterval,unit:v.v.fromJSON(t.timeIntervalUnits)}):t.defaultTimeInterval&&t.defaultTimeIntervalUnits?new l.Z({value:t.defaultTimeInterval,unit:v.v.fromJSON(t.defaultTimeIntervalUnits)}):null}writeInterval(e,t){if(e){const i=e.toJSON();t.timeInterval=i.value,t.timeIntervalUnits=i.unit}else t.timeInterval=null,t.timeIntervalUnits=null}clone(){const{cumulative:e,endField:t,hasLiveData:i,interval:s,startField:r,timeReference:n,fullTimeExtent:l,trackIdField:o,useTime:p}=this;return new h({cumulative:e,endField:t,hasLiveData:i,interval:s,startField:r,timeReference:(0,a.d9)(n),fullTimeExtent:(0,a.d9)(l),trackIdField:o,useTime:p})}};(0,r._)([(0,u.Cb)({type:Boolean,json:{read:{source:"exportOptions.timeDataCumulative"},write:{target:"exportOptions.timeDataCumulative"}}})],b.prototype,"cumulative",void 0),(0,r._)([(0,u.Cb)({type:String,json:{read:{source:"endTimeField"},write:{target:"endTimeField",allowNull:!0}}})],b.prototype,"endField",void 0),(0,r._)([(0,u.Cb)({type:n.Z,json:{write:{enabled:!0,allowNull:!0}}})],b.prototype,"fullTimeExtent",void 0),(0,r._)([(0,d.r)("fullTimeExtent",["timeExtent"])],b.prototype,"readFullTimeExtent",null),(0,r._)([(0,y.c)("fullTimeExtent")],b.prototype,"writeFullTimeExtent",null),(0,r._)([(0,u.Cb)({type:Boolean,json:{write:!0}})],b.prototype,"hasLiveData",void 0),(0,r._)([(0,u.Cb)({type:l.Z,json:{write:{enabled:!0,allowNull:!0}}})],b.prototype,"interval",void 0),(0,r._)([(0,d.r)("interval",["timeInterval","timeIntervalUnits","defaultTimeInterval","defaultTimeIntervalUnits"])],b.prototype,"readInterval",null),(0,r._)([(0,y.c)("interval")],b.prototype,"writeInterval",null),(0,r._)([(0,u.Cb)({type:String,json:{read:{source:"startTimeField"},write:{target:"startTimeField",allowNull:!0}}})],b.prototype,"startField",void 0),(0,r._)([(0,u.Cb)({type:f,json:{write:{enabled:!0,allowNull:!0}}})],b.prototype,"timeReference",void 0),(0,r._)([(0,u.Cb)({type:String,json:{write:{enabled:!0,allowNull:!0}}})],b.prototype,"trackIdField",void 0),(0,r._)([(0,u.Cb)({type:Boolean,json:{read:{source:"exportOptions.useTime"},write:{target:"exportOptions.useTime"}}})],b.prototype,"useTime",void 0),b=h=(0,r._)([(0,c.j)("esri.layers.support.TimeInfo")],b);const w=b},2075:(e,t,i)=>{i.d(t,{d:()=>F});var s,r=i(61960),n=i(43697),l=i(51773),o=(i(16050),i(12501),i(28756),i(92271),i(18746),i(5499),i(84382),i(30687),i(91423),i(32400)),a=i(22974),p=i(5600),u=(i(75215),i(36030)),d=i(52011),c=i(96674);i(67676),i(80442);let y=s=class extends c.wq{constructor(){super(...arguments),this.statisticType=null,this.onStatisticField=null,this.onStatisticValueExpression=null}clone(){return new s({statisticType:this.statisticType,onStatisticField:this.onStatisticField,onStatisticValueExpression:this.onStatisticValueExpression})}};(0,n._)([(0,p.Cb)({type:String,json:{write:!0}})],y.prototype,"statisticType",void 0),(0,n._)([(0,p.Cb)({type:String,json:{write:!0}})],y.prototype,"onStatisticField",void 0),(0,n._)([(0,p.Cb)({type:String,json:{write:!0}})],y.prototype,"onStatisticValueExpression",void 0),y=s=(0,n._)([(0,d.j)("esri.layers.support.OutStatistic")],y);const m=y;var f;let h=f=class extends c.wq{constructor(){super(...arguments),this.name=null,this.outStatistic=null}clone(){return new f({name:this.name,outStatistic:this.outStatistic.clone()})}};(0,n._)([(0,p.Cb)({type:String,json:{write:!0}})],h.prototype,"name",void 0),(0,n._)([(0,p.Cb)({type:m,json:{write:!0}})],h.prototype,"outStatistic",void 0),h=f=(0,n._)([(0,d.j)("esri.layers.support.AggregateField")],h);const v=h;var b,w=i(21506),g=i(2319);let _=b=class extends r.B{constructor(e){super(e),this.type="binning",this.fixedBinLevel=3,this.labelingInfo=null,this.labelsVisible=!0,this.popupEnabled=!0,this.popupTemplate=null,this.fields=[]}clone(){return new b({fields:(0,a.d9)(this.fields),fixedBinLevel:this.fixedBinLevel,labelingInfo:(0,a.d9)(this.labelingInfo),labelsVisible:this.labelsVisible,popupEnabled:this.popupEnabled,popupTemplate:(0,a.d9)(this.popupTemplate),renderer:(0,a.d9)(this.renderer)})}};(0,n._)([(0,u.J)({binning:"binning"})],_.prototype,"type",void 0),(0,n._)([(0,p.Cb)({type:Number,json:{write:!0}})],_.prototype,"fixedBinLevel",void 0),(0,n._)([(0,p.Cb)({type:[g.Z],json:{read:{source:"drawingInfo.labelingInfo"},write:{target:"drawingInfo.labelingInfo"}}})],_.prototype,"labelingInfo",void 0),(0,n._)([(0,p.Cb)(w.iR)],_.prototype,"labelsVisible",void 0),(0,n._)([(0,p.Cb)(w.C_)],_.prototype,"popupEnabled",void 0),(0,n._)([(0,p.Cb)({type:l.Z,json:{name:"popupInfo",write:!0}})],_.prototype,"popupTemplate",void 0),(0,n._)([(0,p.Cb)({type:[v],json:{write:!0,origins:{"web-document":{write:!1},"portal-item":{write:!1}}}})],_.prototype,"fields",void 0),(0,n._)([(0,p.Cb)({types:o.A,json:{write:!0}})],_.prototype,"renderer",void 0),_=b=(0,n._)([(0,d.j)("esri.layers.support.FeatureReductionBinning")],_);const x=_;var j,C=i(78223),S=i(62357);let I=j=class extends c.wq{constructor(e){super(e),this.type="cluster",this.clusterRadius=(0,S.t_)("80px"),this.clusterMinSize=(0,S.t_)("12px"),this.clusterMaxSize=(0,S.t_)("50px"),this.popupEnabled=!0,this.popupTemplate=null,this.symbol=null,this.labelingInfo=null,this.labelsVisible=!0,this.fields=null}clone(){return new j({clusterRadius:this.clusterRadius,clusterMinSize:this.clusterMinSize,clusterMaxSize:this.clusterMaxSize,labelingInfo:(0,a.d9)(this.labelingInfo),labelsVisible:this.labelsVisible,fields:(0,a.d9)(this.fields),renderer:(0,a.d9)(this.renderer),popupEnabled:this.popupEnabled,popupTemplate:(0,a.d9)(this.popupTemplate)})}};(0,n._)([(0,p.Cb)({type:["cluster"],readOnly:!0,json:{write:!0}})],I.prototype,"type",void 0),(0,n._)([(0,p.Cb)({type:Number,cast:e=>"auto"===e?e:(0,S.t_)(e),json:{write:!0}})],I.prototype,"clusterRadius",void 0),(0,n._)([(0,p.Cb)({type:Number,cast:S.t_,json:{write:!0}})],I.prototype,"clusterMinSize",void 0),(0,n._)([(0,p.Cb)({type:Number,cast:S.t_,json:{write:!0}})],I.prototype,"clusterMaxSize",void 0),(0,n._)([(0,p.Cb)(w.C_)],I.prototype,"popupEnabled",void 0),(0,n._)([(0,p.Cb)({type:l.Z,json:{read:{source:"popupInfo"},write:{target:"popupInfo"}}})],I.prototype,"popupTemplate",void 0),(0,n._)([(0,p.Cb)({types:o.A,json:{write:!0}})],I.prototype,"renderer",void 0),(0,n._)([(0,p.Cb)({types:C.AH})],I.prototype,"symbol",void 0),(0,n._)([(0,p.Cb)({type:[g.Z],json:{read:{source:"drawingInfo.labelingInfo"},write:{target:"drawingInfo.labelingInfo"}}})],I.prototype,"labelingInfo",void 0),(0,n._)([(0,p.Cb)(w.iR)],I.prototype,"labelsVisible",void 0),(0,n._)([(0,p.Cb)({type:[v],json:{write:!0,origins:{"web-document":{write:!1},"portal-item":{write:!1}}}})],I.prototype,"fields",void 0),I=j=(0,n._)([(0,d.j)("esri.layers.support.FeatureReductionCluster")],I);const E=I;var T=i(85857);const R={key:"type",base:r.B,typeMap:{selection:E}},F={types:{key:"type",base:r.B,typeMap:{selection:T.Z,cluster:E,binning:x}},json:{name:"layerDefinition.featureReduction",write:{allowNull:!0},origins:{"web-map":{types:R},"portal-item":{types:R},"web-scene":{types:{key:"type",base:r.B,typeMap:{selection:T.Z}}}}}}},53518:(e,t,i)=>{i.d(t,{v:()=>a});var s=i(92604),r=i(1231),n=i(99514),l=i(35671);const o=s.Z.getLogger("esri.layers.support.fieldProperties");function a(){return{fields:{type:[r.Z],value:null},fieldsIndex:{readOnly:!0,get(){return new n.Z(this.fields||[])}},outFields:{type:[String],json:{read:!1},set:function(e){this._userOutFields=e,this.notifyChange("outFields")},get:function(){const e=this._userOutFields;if(!e||!e.length)return null;if(e.includes("*"))return["*"];if(!this.fields)return e;for(const t of e)this.fieldsIndex.has(t)||o.error("field-attributes-layer:invalid-field",`Invalid field ${t} found in outFields`,{layer:this,outFields:e});return(0,l.Q0)(this.fieldsIndex,e)}}}}},30707:(e,t,i)=>{i.d(t,{r:()=>n});var s=i(2319);const r=/\[([^\[\]]+)\]/gi;function n(e,t,i){return e?e.map((e=>{const n=new s.Z;if(n.read(e,i),n.labelExpression){const e=t.fields||t.layerDefinition&&t.layerDefinition.fields||this.fields;n.labelExpression=n.labelExpression.replace(r,((t,i)=>`[${function(e,t){if(!t)return e;const i=e.toLowerCase();for(let e=0;e<t.length;e++){const s=t[e].name;if(s.toLowerCase()===i)return s}return e}(i,e)}]`))}return n})):null}},78981:(e,t,i)=>{i.d(t,{v:()=>s});const s=(0,i(35454).w)()({esriTimeUnitsMilliseconds:"milliseconds",esriTimeUnitsSeconds:"seconds",esriTimeUnitsMinutes:"minutes",esriTimeUnitsHours:"hours",esriTimeUnitsDays:"days",esriTimeUnitsWeeks:"weeks",esriTimeUnitsMonths:"months",esriTimeUnitsYears:"years",esriTimeUnitsDecades:"decades",esriTimeUnitsCenturies:"centuries",esriTimeUnitsUnknown:void 0})}}]);
|