@arcgis/core 4.34.0-next.82 → 4.34.0-next.83
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/{9789f178ece126c4006d.js → 25ea02dd7d45a90cbb3b.js} +1 -1
- package/assets/esri/core/workers/chunks/{6271a706ac3fcba91432.js → 609abf071c4ea24955c2.js} +1 -1
- package/assets/esri/core/workers/chunks/{afb2770c4abbff9bab3d.js → 71c2a8e5a17803d3e949.js} +1 -1
- package/assets/esri/core/workers/chunks/77705d0c7c17bd46d81a.js +1 -0
- package/assets/esri/core/workers/chunks/{22f196d173711ebd64c7.js → 8513c9282c44bb0a736e.js} +1 -1
- package/assets/esri/core/workers/chunks/{b8810711d058300395cd.js → 8bdbd94a59269e216fba.js} +1 -1
- package/assets/esri/core/workers/chunks/{ecac5ca00c742bfb5898.js → 998d164b3e0b99a0ff1e.js} +1 -1
- package/assets/esri/core/workers/chunks/{96e483db7dd1f5dbb07a.js → 9a6fa91dd204f64d2590.js} +1 -1
- package/assets/esri/core/workers/chunks/{b6c4712e00fce87bd0f4.js → aa1eb7b4d9ccda725da5.js} +1 -1
- package/assets/esri/core/workers/chunks/{20ae2316d927415f3df9.js → b43473e84b3f7fa2634d.js} +1 -1
- package/assets/esri/core/workers/chunks/{b168b6ffc16cd509d316.js → bd028badc07270eda3d0.js} +1 -1
- package/assets/esri/core/workers/chunks/{6593b419339e7598b760.js → d5363e5637d37e89a25f.js} +1 -1
- package/assets/esri/core/workers/chunks/{81a8addcb858086ff9ee.js → e17df11c98dbd869302b.js} +1 -1
- package/assets/esri/core/workers/chunks/{6e2a3abc3dbc342212c4.js → f35003a90163847fe1e2.js} +1 -1
- package/assets/esri/core/workers/chunks/{9c5dcef2a75d4bb9b3d6.js → fcac475e4e82911b3126.js} +1 -1
- package/assets/esri/libs/lyr3d/lyr3DMain.wasm +0 -0
- package/assets/esri/libs/lyr3d/lyr3DWorker.wasm +0 -0
- package/config.js +1 -1
- package/geometry/Extent.js +1 -1
- package/geometry/support/aaBoundingRect.js +1 -1
- package/interfaces.d.ts +22 -82
- package/kernel.js +1 -1
- package/layers/ImageryLayer.js +1 -1
- package/layers/ImageryTileLayer.js +1 -1
- package/layers/Lyr3DWasmPerSceneView.js +1 -1
- package/layers/support/tiles3DUtils.js +1 -1
- package/package.json +1 -1
- package/portal/schemas/definitions.js +1 -1
- package/smartMapping/renderers/color.js +1 -1
- package/smartMapping/renderers/location.js +1 -1
- package/smartMapping/renderers/predominance.js +1 -1
- package/smartMapping/renderers/relationship.js +1 -1
- package/smartMapping/renderers/size.js +1 -1
- package/smartMapping/renderers/type.js +1 -1
- package/smartMapping/statistics/summaryStatistics.js +1 -1
- package/smartMapping/support/adapters/FeatureLayerAdapter.js +1 -1
- package/smartMapping/support/adapters/support/utils.js +1 -1
- package/smartMapping/support/utils.js +1 -1
- package/support/elevationInfoUtils.js +1 -1
- package/support/revision.js +1 -1
- package/tables/elements.js +1 -1
- package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementCutFillVisualization.js +1 -1
- package/views/3d/layers/FlowSubView3D.js +1 -1
- package/views/3d/layers/GaussianSplatLayerView3D.js +1 -1
- package/views/3d/support/DisplayQualityProfile.js +1 -1
- package/views/3d/support/QualitySettings.js +1 -1
- package/views/3d/support/flow/StreamlineResources3D.js +1 -1
- package/views/3d/support/flow/StreamlineResources3DOverlay.js +1 -1
- package/views/3d/support/flow/StreamlineResources3DShape.js +1 -1
- package/views/3d/support/gaussianSplatting/GaussianSplatDataStore.js +1 -1
- package/views/3d/terrain/OverlayManager.js +1 -1
- package/views/3d/terrain/Queue.js +5 -0
- package/views/3d/terrain/TerrainSurface.js +1 -1
- package/views/3d/terrain/Tile.js +1 -1
- package/views/3d/terrain/isTerrainSurfaceLayer.js +1 -1
- package/views/3d/webgl-engine/lib/GaussianSplatRenderNode.js +1 -1
- package/views/3d/webgl-engine/lib/Renderer.js +1 -1
- package/views/support/DefaultsFromMap.js +1 -1
- package/widgets/Editor/CreateFeaturesWorkflow.js +1 -1
- package/widgets/Editor/EditorViewModel.js +1 -1
- package/widgets/Editor/SplitFeatureWorkflow.js +5 -0
- package/widgets/Editor/SplitFeatureWorkflowData.js +5 -0
- package/widgets/Editor/UpdateWorkflow.js +1 -1
- package/widgets/Editor/support/splitFeatureUtils.js +1 -1
- package/widgets/Editor/workflowUtils.js +1 -1
- package/widgets/Legend/support/ActiveLayerInfo.js +1 -1
- package/widgets/UtilityNetworkTrace/UtilityNetworkTraceViewModel.js +1 -1
- package/widgets/UtilityNetworkTrace.js +1 -1
- package/widgets/VersionManagement/VersionManagementViewModel.js +1 -1
- package/assets/esri/core/workers/chunks/5f079be7f322768aef21.js +0 -1
- package/views/3d/support/gaussianSplatting/GaussianSplatQualitySettings.js +0 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[873],{8303:(e,t,i)=>{i.d(t,{A:()=>S});var r=i(31635),s=i(92602),n=i(70333),l=i(78888),o=i(60999),a=i(49186),d=i(53966),u=i(97768),p=i(74887),c=i(84952),h=i(10107),g=(i(44208),i(87811),i(36005)),y=i(40608),f=i(43937),m=i(77548),v=i(20655),w=i(80812),C=i(41318),b=i(10407);const S=e=>{const t=e;let S=class extends t{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){this.portalItem=(0,u.pR)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,i){if(t.itemId)return new w.default({id:t.itemId,portal:i?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem?.id)try{const{load:r}=await i.e(1204).then(i.bind(i,41204));return(0,p.Te)(t),await r({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},t)}catch(e){throw(0,p.zf)(e)||d.A.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch(e=>((0,p.QP)(e),!0)))}async setUserPrivileges(e,t){if(!s.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:i,fullEdit:r},content:{updateItem:s}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",i),this._set("userHasFullEditingPrivileges",r),this._set("userHasUpdateItemPrivileges",s)}catch(e){(0,p.QP)(e)}}async _fetchUserPrivileges(e,t){let i=this.portalItem;if(!e||!i||!i.loaded||i.sourceUrl)return this._fetchFallbackUserPrivileges(t);const r=!n.id?.findCredential(this.url),s=e===i.id;if(s&&i.portal.user)return this._getUserPrivileges(i,r);let l,o;if(s)l=i.portal.url;else try{l=await(0,m.wI)(this.url,t)}catch(e){(0,p.QP)(e)}if(!l||!(0,c.b8)(l,i.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;o=await(n.id?.getCredential(`${l}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,p.QP)(e)}const a=!0,d=!1,u=!1;if(!o)return{features:{edit:a,fullEdit:d},content:{updateItem:u}};try{if(s?await i.reload():(i=new w.default({id:e,portal:{url:l}}),await i.load(t)),i.portal.user)return this._getUserPrivileges(i,r)}catch(e){(0,p.QP)(e)}return{features:{edit:a,fullEdit:d},content:{updateItem:u}}}_getUserPrivileges(e,t){const i=(0,b.It)(e);return t&&(i.features.edit=!0),i}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,p.QP)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){const t=this.url?n.id?.findCredential(this.url):null;if(!t)return!0;const i=I.credential===t?I.user:await this._fetchEditingUser(e);return I.credential=t,I.user=i,null==i?.privileges||i.privileges.includes("features:user:edit")}async _fetchEditingUser(e){const t=this.portalItem?.portal?.user;if(t)return t;const i=n.id?.findServerInfo(this.url??"");if(!i?.owningSystemUrl)return null;const r=`${i.owningSystemUrl}/sharing/rest`,s=v.A.getDefault();if(s&&s.loaded&&(0,c.S8)(s.restUrl)===(0,c.S8)(r))return s.user;const a=`${r}/community/self`,d=null!=e?e.signal:null,u=await(0,o.Ke)((0,l.A)(a,{authMode:"no-prompt",query:{f:"json"},signal:d}));return u.ok?C.A.fromJSON(u.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const i=t?.portal,r=this.portalItem?.id&&(this.portalItem.portal||v.A.getDefault());return i&&r&&!(0,c.ut)(r.restUrl,i.restUrl)?(t.messages&&t.messages.push(new a.A("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,r.Cg)([(0,h.MZ)({type:w.default})],S.prototype,"portalItem",null),(0,r.Cg)([(0,g.w)("web-document","portalItem",["itemId"])],S.prototype,"readPortalItem",null),(0,r.Cg)([(0,f.K)("web-document","portalItem",{itemId:{type:String}})],S.prototype,"writePortalItem",null),(0,r.Cg)([(0,h.MZ)({clonable:!1})],S.prototype,"resourceReferences",void 0),(0,r.Cg)([(0,h.MZ)({type:Boolean,readOnly:!0})],S.prototype,"userHasEditingPrivileges",void 0),(0,r.Cg)([(0,h.MZ)({type:Boolean,readOnly:!0})],S.prototype,"userHasFullEditingPrivileges",void 0),(0,r.Cg)([(0,h.MZ)({type:Boolean,readOnly:!0})],S.prototype,"userHasUpdateItemPrivileges",void 0),S=(0,r.Cg)([(0,y.$)("esri.layers.mixins.PortalLayer")],S),S},I={credential:null,user:null}},10407:(e,t,i)=>{i.d(t,{It:()=>h,LG:()=>l,OM:()=>d,Sm:()=>u,Y:()=>o,bK:()=>a,mm:()=>c,sQ:()=>p});var r=i(98988),s=i(16930),n=i(28735);function l(e,t){if(!o(e,t)){const i=e.typeKeywords;i?i.push(t):e.typeKeywords=[t]}}function o(e,t){return!!e.typeKeywords?.includes(t)}function a(e){return o(e,c.HOSTED_SERVICE)}function d(e,t){const i=e.typeKeywords;if(i){const e=i.indexOf(t);e>-1&&i.splice(e,1)}}function u(e,t,i){i?l(e,t):d(e,t)}async function p(e){const t=e.clone().normalize();let i;if(t.length>1)for(const e of t)i?e.width>i.width&&(i=e):i=e;else i=t[0];return async function(e){const t=e.spatialReference;if(t.isWGS84)return e.clone();if(t.isWebMercator)return(0,n.ci)(e);const i=s.A.WGS84;return await(0,r.initializeProjection)(t,i),(0,r.project)(e,i)}(i)}const c={CHARTS:"Charts",DYNAMIC:"Dynamic",DEVELOPER_BASEMAP:"DeveloperBasemap",GROUP_LAYER_MAP:"Map",HOSTED_SERVICE:"Hosted Service",JSAPI:"ArcGIS API for JavaScript",LOCAL_SCENE:"ViewingMode-Local",METADATA:"Metadata",MULTI_LAYER:"Multilayer",ORIENTED_IMAGERY_LAYER:"OrientedImageryLayer",SINGLE_LAYER:"Singlelayer",SUBTYPE_GROUP_LAYER:"SubtypeGroupLayer",SUBTYPE_GROUP_TABLE:"SubtypeGroupTable",TABLE:"Table",TILED_IMAGERY:"Tiled Imagery"};function h(e){const{portal:t,isOrgItem:i,itemControl:r}=e,s=t.user?.privileges;let n=!s||s.includes("features:user:edit"),l=!!i&&!!s?.includes("features:user:fullEdit");const o="update"===r||"admin"===r;return o?l=n=!0:l&&(n=!0),{features:{edit:n,fullEdit:l},content:{updateItem:o}}}},17036:(e,t,i)=>{i.d(t,{p:()=>a});var r=i(44208),s=i(53966),n=i(20437),l=i(95466),o=i(30524);function a(){return{fields:{type:[n.A],value:null,set:function(e){if(e&&(0,r.A)("big-integer-warning-enabled")){const t=e.filter(e=>"big-integer"===e.type||"oid"===e.type&&(e.length||0)>=8);if(t.length){const e=t.map(e=>`'${e.name}'`).join(", ");s.A.getLogger(this).warn("#fields",`Layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}') references big-integer field(s): ${e}, support for which is experimental. Only integers less than ${Number.MAX_SAFE_INTEGER} (Number.MAX_SAFE_INTEGER) are supported.`)}}this._set("fields",e)}},fieldsIndex:{readOnly:!0,get(){return l.A.fromLayer(this)}},outFields:{type:[String],json:{read:!1},set:function(e){this._userOutFields=e,this.notifyChange("outFields")},get:function(){const e=this._userOutFields;if(!e?.length)return null;if(e.includes("*"))return["*"];if(!this.fields)return e;for(const t of e){const i=this.fieldsIndex?.has(t);i||s.A.getLogger("esri.layers.support.fieldProperties").error("field-attributes-layer:invalid-field",`Invalid field ${t} found in outFields`,{layer:this,outFields:e})}return(0,o.DB)(this.fieldsIndex,e)}}}}},18768:(e,t,i)=>{i.d(t,{b:()=>a});var r=i(31635),s=i(53966),n=i(10107),l=(i(44208),i(87811),i(40608)),o=i(60694);const a=e=>{const t=e;let i=class extends t{get title(){if(this._get("title")&&"defaults"!==this.originOf("title"))return this._get("title");if(this.url){const e=(0,o.qg)(this.url);if(e?.title)return e.title}return this._get("title")||""}set title(e){this._set("title",e)}set url(e){this._set("url",(0,o.Jf)(e,s.A.getLogger(this)))}};return(0,r.Cg)([(0,n.MZ)()],i.prototype,"title",null),(0,r.Cg)([(0,n.MZ)({type:String})],i.prototype,"url",null),i=(0,r.Cg)([(0,l.$)("esri.layers.mixins.ArcGISService")],i),i}},25036:(e,t,i)=>{i.d(t,{j:()=>l});var r=i(31635),s=i(10107),n=(i(44208),i(53966),i(87811),i(40608));const l=e=>{const t=e;let i=class extends t{constructor(){super(...arguments),this.minScale=0,this.maxScale=0}get effectiveScaleRange(){const e={minScale:this.minScale,maxScale:this.maxScale},t=this.parent;void 0!==t?.effectiveScaleRange&&function(e,t){e.minScale=e.minScale>0?t.minScale>0?Math.min(e.minScale,t.minScale):e.minScale:t.minScale,e.maxScale=e.maxScale>0?t.maxScale>0?Math.max(e.maxScale,t.maxScale):e.maxScale:t.maxScale}(e,t.effectiveScaleRange);const i=this._get("effectiveScaleRange");return i&&i.minScale===e.minScale&&i.maxScale===e.maxScale?i:e}};return(0,r.Cg)([(0,s.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],i.prototype,"minScale",void 0),(0,r.Cg)([(0,s.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],i.prototype,"maxScale",void 0),(0,r.Cg)([(0,s.MZ)({readOnly:!0})],i.prototype,"effectiveScaleRange",null),i=(0,r.Cg)([(0,n.$)("esri.layers.mixins.ScaleRangeLayer")],i),i}},30291:(e,t,i)=>{i.d(t,{tn:()=>d});var r=i(37838),s=i(30524),n=i(41227),l=i(89893),o=i(66159),a=i(68780);function d({displayField:e,editFieldsInfo:t,fields:i,objectIdField:a,title:d},h){if(!i)return null;const y=function(e,t){const i=t?.visibleFieldNames;return function({fields:e,ignoreFieldTypes:t,sortDisabled:i}){const r=e;return t&&(e=e.filter(e=>!t.includes(e.type))),e===r&&(e=e.slice()),!0!==i&&e.sort(p),e}({fields:e.fields??[],ignoreFieldTypes:t?.ignoreFieldTypes||g,sortDisabled:t?.sortDisabled}).map(t=>new n.A({fieldName:t.name,isEditable:(0,s.R$)(t,e),label:t.alias,format:c(t),visible:u(t,{...e,visibleFieldNames:i})}))}({editFieldsInfo:t,fields:i,objectIdField:a},h);if(!y.length)return null;const f=function(e){const t=(0,s.mB)(e),{titleBase:i}=e;return t?`${i}: {${t.trim()}}`:i??""}({titleBase:d,fields:i,displayField:e}),m=[new o.A,new l.A];return new r.A({title:f,content:m,fieldInfos:y})}const u=(e,t)=>t.visibleFieldNames?t.visibleFieldNames.has(e.name):(0,s.Bz)(e,t);function p(e,t){return"oid"===e.type?-1:"oid"===t.type?1:h(e)?-1:h(t)?1:(e.alias||e.name).toLocaleLowerCase().localeCompare((t.alias||t.name).toLocaleLowerCase())}function c(e){switch(e.type){case"small-integer":case"integer":case"single":return new a.A({digitSeparator:!0,places:0});case"double":return new a.A({digitSeparator:!0,places:2});case"string":return(0,s.JL)(e.name)?new a.A({digitSeparator:!0,places:0}):void 0;default:return}}function h(e){if("name"===(e.name&&e.name.toLowerCase()))return!0;const t=e.alias?.toLowerCase();return"name"===t}const g=["geometry","blob","raster","guid","xml"]},54239:(e,t,i)=>{i.d(t,{A:()=>m});var r,s=i(31635),n=i(4576),l=i(66552),o=i(25482),a=i(83047),d=i(67076),u=i(10107),p=(i(44208),i(53966),i(36005)),c=i(40608),h=i(43937);const g=(0,l.O)()({orthometric:"gravity-related-height",gravity_related_height:"gravity-related-height",ellipsoidal:"ellipsoidal"}),y=g.jsonValues.slice();(0,n.Xy)(y,"orthometric");const f=(0,l.O)()({meter:"meters",foot:"feet","us-foot":"us-feet","clarke-foot":"clarke-feet","clarke-yard":"clarke-yards","clarke-link":"clarke-links","sears-yard":"sears-yards","sears-foot":"sears-feet","sears-chain":"sears-chains","benoit-1895-b-chain":"benoit-1895-b-chains","indian-yard":"indian-yards","indian-1937-yard":"indian-1937-yards","gold-coast-foot":"gold-coast-feet","sears-1922-truncated-chain":"sears-1922-truncated-chains","50-kilometers":"50-kilometers","150-kilometers":"150-kilometers"});let m=r=class extends o.o{constructor(e){super(e),this.heightModel="gravity-related-height",this.heightUnit="meters",this.vertCRS=null}writeHeightModel(e,t,i){return g.write(e,t,i)}readHeightModel(e,t,i){return g.read(e)||(i?.messages&&i.messages.push(function(e,t){return new d.A("height-model:unsupported",`Height model of value '${e}' is not supported`,t)}(e,{context:i})),null)}readHeightUnit(e,t,i){return f.read(e)||(i?.messages&&i.messages.push(v(e,{context:i})),null)}readHeightUnitService(e,t,i){return(0,a.LA)(e)||f.read(e)||(i?.messages&&i.messages.push(v(e,{context:i})),null)}readVertCRS(e,t){return t.vertCRS||t.ellipsoid||t.geoid}clone(){return new r({heightModel:this.heightModel,heightUnit:this.heightUnit,vertCRS:this.vertCRS})}equals(e){return!!e&&(this===e||this.heightModel===e.heightModel&&this.heightUnit===e.heightUnit&&this.vertCRS===e.vertCRS)}static deriveUnitFromSR(e,t){const i=(0,a.k1)(t);return new r({heightModel:e.heightModel,heightUnit:i??void 0,vertCRS:e.vertCRS})}write(e,t){return t={origin:"web-scene",...t},super.write(e,t)}static fromJSON(e){if(!e)return null;const t=new r;return t.read(e,{origin:"web-scene"}),t}};function v(e,t){return new d.A("height-unit:unsupported",`Height unit of value '${e}' is not supported`,t)}(0,s.Cg)([(0,u.MZ)({type:g.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:y,default:"ellipsoidal",write:{isRequired:!0}}}}})],m.prototype,"heightModel",void 0),(0,s.Cg)([(0,h.K)("web-scene","heightModel")],m.prototype,"writeHeightModel",null),(0,s.Cg)([(0,p.w)(["web-scene","service"],"heightModel")],m.prototype,"readHeightModel",null),(0,s.Cg)([(0,u.MZ)({type:f.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:f.jsonValues,write:{writer:f.write,isRequired:!0}}}}})],m.prototype,"heightUnit",void 0),(0,s.Cg)([(0,p.w)("web-scene","heightUnit")],m.prototype,"readHeightUnit",null),(0,s.Cg)([(0,p.w)("service","heightUnit")],m.prototype,"readHeightUnitService",null),(0,s.Cg)([(0,u.MZ)({type:String,constructOnly:!0,json:{origins:{"web-scene":{write:!0}}}})],m.prototype,"vertCRS",void 0),(0,s.Cg)([(0,p.w)("service","vertCRS",["vertCRS","ellipsoid","geoid"])],m.prototype,"readVertCRS",null),m=r=(0,s.Cg)([(0,c.$)("esri.geometry.HeightModelInfo")],m)},60999:(e,t,i)=>{i.d(t,{DZ:()=>g,Ke:()=>h,Tj:()=>u,UT:()=>y,jJ:()=>d});var r=i(31635),s=i(65008),n=i(97768),l=i(74887),o=i(10107),a=i(40608);function d(e,t,i){return(0,l.Lx)(e.map((e,r)=>t.apply(i,[e,r])))}async function u(e,t,i){return(await(0,l.Lx)(e.map((e,r)=>t.apply(i,[e,r])))).map(e=>e.value)}function p(e){return{ok:!0,value:e}}function c(e){return{ok:!1,error:e}}async function h(e){if(null==e)return{ok:!1,error:new Error("no promise provided")};try{return p(await e)}catch(e){return c(e)}}async function g(e){try{return p(await e)}catch(e){return(0,l.QP)(e),c(e)}}function y(e,t){return new f(e,t)}let f=class extends s.A{get value(){return null!=(e=this._result)&&!0===e.ok?e.value:null;var e}get error(){return null!=(e=this._result)&&!1===e.ok?e.error:null;var e}get finished(){return null!=this._result}constructor(e,t){super({}),this._result=null,this._abortHandle=null,this.abort=()=>{this._abortController=(0,n.DC)(this._abortController)},this.remove=this.abort,this._abortController=new AbortController;const{signal:i}=this._abortController;this.promise=e(i),this.promise.then(e=>{this._result=p(e),this._cleanup()},e=>{this._result=c(e),this._cleanup()}),this._abortHandle=(0,l.u7)(t,this.abort)}normalizeCtorArgs(){return{}}destroy(){this.abort()}_cleanup(){this._abortHandle=(0,n.xt)(this._abortHandle),this._abortController=null}};(0,r.Cg)([(0,o.MZ)()],f.prototype,"value",null),(0,r.Cg)([(0,o.MZ)()],f.prototype,"error",null),(0,r.Cg)([(0,o.MZ)()],f.prototype,"finished",null),(0,r.Cg)([(0,o.MZ)()],f.prototype,"promise",void 0),(0,r.Cg)([(0,o.MZ)()],f.prototype,"_result",void 0),f=(0,r.Cg)([(0,a.$)("esri.core.asyncUtils.ReactiveTask")],f)},69208:(e,t,i)=>{i.d(t,{d:()=>l});var r=i(31635),s=i(10107),n=(i(44208),i(53966),i(87811),i(40608));const l=e=>{const t=e;let i=class extends t{constructor(){super(...arguments),this.customParameters=null}};return(0,r.Cg)([(0,s.MZ)({type:Object,json:{write:{overridePolicy:e=>({enabled:!!(e&&Object.keys(e).length>0)})}}})],i.prototype,"customParameters",void 0),i=(0,r.Cg)([(0,n.$)("esri.layers.mixins.CustomParametersMixin")],i),i}},73179:(e,t,i)=>{i.d(t,{b:()=>a,h:()=>d});var r=i(4718),s=i(53966),n=i(84952),l=i(60694),o=i(10873);function a(e){const{nonStandardUrlAllowed:t=!1,separator:i}=e??{},n=(0,r.o8)(o.OZ),a=n.json?.write;return"object"==typeof a&&a&&(a.writer=function(e,t,r,s){(0,l.LS)(this,e,i,t,s)}),{...n,set:function(e){if(null==e)return void this._set("url",e);const i=(0,l.HZ)({layer:this,url:e,nonStandardUrlAllowed:t,logger:s.A.getLogger(this)});this._set("url",i.url),null!=i.layerId&&this._set("layerId",i.layerId)}}}function d(e,t){const{separator:i}=t??{},r=(0,n.An)(e.url);return null!=r&&(null!=e.dynamicDataSource?r.path=(0,n.fj)(r.path,"dynamicLayer"):null!=e.layerId&&(r.path=(0,n.fj)(r.path,i??"",e.layerId.toString()))),r}},77885:(e,t,i)=>{i.r(t),i.d(t,{default:()=>ae});var r=i(31635),s=i(37838),n=i(78888),l=i(69540),o=i(49186),a=i(4718),d=i(53966),u=i(92071),p=i(93637),c=i(74887),h=i(84952),g=i(10107),y=(i(44208),i(36005)),f=i(40608),m=i(43937),v=i(60950),w=i(89808),C=i(99959);const b=Symbol("isPointCloudGraphicOrigin");var S;class I extends C.A{get[(S=b,v.ym)](){return this.layer}get[w.Q](){return this.layer}constructor(e){super(),this[S]=!0,this.type="point-cloud",this.layer=e}get id(){return this.layer.id}}var F=i(4146),_=i(52136),M=i(18768),A=i(69208),P=i(16131),R=i(8303),T=i(25036),x=i(58947),Z=i(56507),E=i(93223),L=i(25482);i(87811);let O=class extends L.o{constructor(e){super(e),this.field=null,this.type=null}clone(){return console.warn(".clone() is not implemented for "+this.declaredClass),null}};(0,r.Cg)([(0,g.MZ)({type:String,json:{write:{enabled:!0,isRequired:!0}}})],O.prototype,"field",void 0),(0,r.Cg)([(0,g.MZ)({readOnly:!0,nonNullable:!0,json:{read:!1,write:{isRequired:!0}}})],O.prototype,"type",void 0),O=(0,r.Cg)([(0,f.$)("esri.layers.pointCloudFilters.PointCloudFilter")],O);const U=O;var j;let N=j=class extends U{constructor(e){super(e),this.requiredClearBits=null,this.requiredSetBits=null,this.type="bitfield"}clone(){return new j({field:this.field,requiredClearBits:(0,a.o8)(this.requiredClearBits),requiredSetBits:(0,a.o8)(this.requiredSetBits)})}};(0,r.Cg)([(0,g.MZ)({type:[Z.jz],json:{write:{enabled:!0,overridePolicy(){return{enabled:!0,isRequired:!this.requiredSetBits}}}}})],N.prototype,"requiredClearBits",void 0),(0,r.Cg)([(0,g.MZ)({type:[Z.jz],json:{write:{enabled:!0,overridePolicy(){return{enabled:!0,isRequired:!this.requiredClearBits}}}}})],N.prototype,"requiredSetBits",void 0),(0,r.Cg)([(0,E.e)({pointCloudBitfieldFilter:"bitfield"})],N.prototype,"type",void 0),N=j=(0,r.Cg)([(0,f.$)("esri.layers.pointCloudFilters.PointCloudBitfieldFilter")],N);const $=N;var B;let k=B=class extends U{constructor(e){super(e),this.includedReturns=[],this.type="return"}clone(){return new B({field:this.field,includedReturns:(0,a.o8)(this.includedReturns)})}};(0,r.Cg)([(0,g.MZ)({type:[["firstOfMany","last","lastOfMany","single"]],json:{write:{enabled:!0,isRequired:!0}}})],k.prototype,"includedReturns",void 0),(0,r.Cg)([(0,E.e)({pointCloudReturnFilter:"return"})],k.prototype,"type",void 0),k=B=(0,r.Cg)([(0,f.$)("esri.layers.pointCloudFilters.PointCloudReturnFilter")],k);const q=k;var H;let D=H=class extends U{constructor(e){super(e),this.mode="exclude",this.type="value",this.values=[]}clone(){return new H({field:this.field,mode:this.mode,values:(0,a.o8)(this.values)})}};(0,r.Cg)([(0,g.MZ)({type:["exclude","include"],json:{write:{enabled:!0,isRequired:!0}}})],D.prototype,"mode",void 0),(0,r.Cg)([(0,E.e)({pointCloudValueFilter:"value"})],D.prototype,"type",void 0),(0,r.Cg)([(0,g.MZ)({type:[Number],json:{write:{enabled:!0,isRequired:!0}}})],D.prototype,"values",void 0),D=H=(0,r.Cg)([(0,f.$)("esri.layers.pointCloudFilters.PointCloudValueFilter")],D);const G={key:"type",base:U,typeMap:{value:D,bitfield:$,return:q}};var V,z=i(10873),K=i(20437),Q=i(17036),Y=i(93705),J=i(63531),X=i(51857);let W=V=class extends X.A{constructor(e){super(e),this.type="point-cloud-rgb",this.field=null}clone(){return new V({...this.cloneProperties(),field:(0,a.o8)(this.field)})}};(0,r.Cg)([(0,E.e)({pointCloudRGBRenderer:"point-cloud-rgb"})],W.prototype,"type",void 0),(0,r.Cg)([(0,g.MZ)({type:String,json:{write:{isRequired:!0}}})],W.prototype,"field",void 0),W=V=(0,r.Cg)([(0,f.$)("esri.renderers.PointCloudRGBRenderer")],W);const ee=W;var te=i(69846),ie=i(48425);const re={key:"type",base:X.A,typeMap:{"point-cloud-class-breaks":J.A,"point-cloud-rgb":ee,"point-cloud-stretch":te.A,"point-cloud-unique-value":ie.A},errorContext:"renderer"};var se=i(24212),ne=i(30291);const le=(0,Q.p)();let oe=class extends((0,x.w)((0,M.b)((0,P.q)((0,R.A)((0,T.j)((0,u.P)((0,A.d)((0,_.p)((0,l.OU)(F.A)))))))))){constructor(...e){super(...e),this.operationalLayerType="PointCloudLayer",this.popupEnabled=!0,this.popupTemplate=null,this.opacity=1,this.filters=[],this.fields=null,this.fieldsIndex=null,this.outFields=null,this.path=null,this.legendEnabled=!0,this.renderer=null,this.type="point-cloud",this.graphicOrigin=new I(this)}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}get defaultPopupTemplate(){return this.attributeStorageInfo?this.createPopupTemplate():null}getFieldDomain(e){const t=this.fieldsIndex.get(e);return t?.domain?t.domain:null}readServiceFields(e,t,i){return Array.isArray(e)?e.map(e=>{const t=new K.A;return"FieldTypeInteger"===e.type&&((e=(0,a.o8)(e)).type="esriFieldTypeInteger"),t.read(e,i),t}):Array.isArray(t.attributeStorageInfo)?t.attributeStorageInfo.map(e=>new K.A({name:e.name,type:"ELEVATION"===e.name?"double":"integer"})):null}set elevationInfo(e){null!=e&&"absolute-height"!==e.mode||this._set("elevationInfo",e),this._validateElevationInfo(e)}writeRenderer(e,t,i,r){(0,p.sM)("layerDefinition.drawingInfo.renderer",e.write({},r),t)}load(e){const t=null!=e?e.signal:null,i=this.loadFromPortal({supportedTypes:["Scene Service"]},e).catch(c.QP).then(()=>this._fetchService(t));return this.addResolvingPromise(i),Promise.resolve(this)}createPopupTemplate(e){const t=(0,ne.tn)(this,e);return t&&(this._formatPopupTemplateReturnsField(t),this._formatPopupTemplateRGBField(t)),t}_formatPopupTemplateReturnsField(e){const t=this.fieldsIndex.get("RETURNS");if(!t)return;const i=e.fieldInfos?.find(e=>e.fieldName===t.name);if(!i)return;const r=new Y.A({name:"pcl-returns-decoded",title:t.alias||t.name,expression:`\n var returnValue = $feature.${t.name};\n return (returnValue % 16) + " / " + Floor(returnValue / 16);\n `});e.expressionInfos=[...e.expressionInfos||[],r],i.fieldName="expression/pcl-returns-decoded"}_formatPopupTemplateRGBField(e){const t=this.fieldsIndex.get("RGB");if(!t)return;const i=e.fieldInfos?.find(e=>e.fieldName===t.name);if(!i)return;const r=new Y.A({name:"pcl-rgb-decoded",title:t.alias||t.name,expression:`\n var rgb = $feature.${t.name};\n var red = Floor(rgb / 65536, 0);\n var green = Floor((rgb - (red * 65536)) / 256,0);\n var blue = rgb - (red * 65536) - (green * 256);\n\n return "rgb(" + red + "," + green + "," + blue + ")";\n `});e.expressionInfos=[...e.expressionInfos||[],r],i.fieldName="expression/pcl-rgb-decoded"}async queryCachedStatistics(e,t){if(await this.load(t),!this.attributeStorageInfo)throw new o.A("scenelayer:no-cached-statistics","Cached statistics are not available for this layer");const i=this.fieldsIndex.get(e);if(!i)throw new o.A("pointcloudlayer:field-unexisting",`Field '${e}' does not exist on the layer`);for(const e of this.attributeStorageInfo)if(e.name===i.name){const i=(0,h.fj)(this.parsedUrl?.path??"",`./statistics/${e.key}`);return(0,n.A)(i,{query:{f:"json",...this.customParameters,token:this.apiKey},responseType:"json",signal:t?t.signal:null}).then(e=>e.data)}throw new o.A("pointcloudlayer:no-cached-statistics","Cached statistics for this attribute are not available")}async saveAs(e,t){return this._debouncedSaveOperations(1,{...t,getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"point-cloud"},e)}async save(){const e={getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"point-cloud"};return this._debouncedSaveOperations(0,e)}validateLayer(e){if(e.layerType&&"PointCloud"!==e.layerType)throw new o.A("pointcloudlayer:layer-type-not-supported","PointCloudLayer does not support this layer type",{layerType:e.layerType});if(isNaN(this.version.major)||isNaN(this.version.minor))throw new o.A("layer:service-version-not-supported","Service version is not supported.",{serviceVersion:this.version.versionString,supportedVersions:"1.x-2.x"});if(this.version.major>2)throw new o.A("layer:service-version-too-new","Service version is too new.",{serviceVersion:this.version.versionString,supportedVersions:"1.x-2.x"})}hasCachedStatistics(e){return null!=this.attributeStorageInfo&&this.attributeStorageInfo.some(t=>t.name===e)}_getTypeKeywords(){return["PointCloud"]}_validateElevationInfo(e){(0,se.XF)(d.A.getLogger(this),(0,se.B)("Point cloud layers","absolute-height",e)),(0,se.XF)(d.A.getLogger(this),(0,se.tW)("Point cloud layers",e))}};(0,r.Cg)([(0,g.MZ)({type:["PointCloudLayer"]})],oe.prototype,"operationalLayerType",void 0),(0,r.Cg)([(0,g.MZ)(z.M6)],oe.prototype,"popupEnabled",void 0),(0,r.Cg)([(0,g.MZ)({type:s.A,json:{name:"popupInfo",write:!0}})],oe.prototype,"popupTemplate",void 0),(0,r.Cg)([(0,g.MZ)({readOnly:!0,json:{read:!1}})],oe.prototype,"defaultPopupTemplate",null),(0,r.Cg)([(0,g.MZ)({readOnly:!0,json:{write:!1,read:!1,origins:{"web-document":{write:!1,read:!1}}}})],oe.prototype,"opacity",void 0),(0,r.Cg)([(0,g.MZ)({type:["show","hide"]})],oe.prototype,"listMode",void 0),(0,r.Cg)([(0,g.MZ)({types:[G],json:{origins:{service:{read:{source:"filters"}}},name:"layerDefinition.filters",write:!0}})],oe.prototype,"filters",void 0),(0,r.Cg)([(0,g.MZ)({type:[K.A]})],oe.prototype,"fields",void 0),(0,r.Cg)([(0,g.MZ)(le.fieldsIndex)],oe.prototype,"fieldsIndex",void 0),(0,r.Cg)([(0,y.w)("service","fields",["fields","attributeStorageInfo"])],oe.prototype,"readServiceFields",null),(0,r.Cg)([(0,g.MZ)(le.outFields)],oe.prototype,"outFields",void 0),(0,r.Cg)([(0,g.MZ)({readOnly:!0})],oe.prototype,"attributeStorageInfo",void 0),(0,r.Cg)([(0,g.MZ)(z.Yj)],oe.prototype,"elevationInfo",null),(0,r.Cg)([(0,g.MZ)({type:String,json:{origins:{"web-scene":{read:!0,write:!0},"portal-item":{read:!0,write:!0}},read:!1}})],oe.prototype,"path",void 0),(0,r.Cg)([(0,g.MZ)(z.fV)],oe.prototype,"legendEnabled",void 0),(0,r.Cg)([(0,g.MZ)({types:re,json:{origins:{service:{read:{source:"drawingInfo.renderer"}}},name:"layerDefinition.drawingInfo.renderer",write:{target:{"layerDefinition.drawingInfo.renderer":{types:re},"layerDefinition.drawingInfo.transparency":{type:Number}}}}})],oe.prototype,"renderer",void 0),(0,r.Cg)([(0,m.K)("renderer")],oe.prototype,"writeRenderer",null),(0,r.Cg)([(0,g.MZ)({json:{read:!1},readOnly:!0})],oe.prototype,"type",void 0),(0,r.Cg)([(0,g.MZ)({readOnly:!0})],oe.prototype,"graphicOrigin",void 0),oe=(0,r.Cg)([(0,f.$)("esri.layers.PointCloudLayer")],oe);const ae=oe},89808:(e,t,i)=>{i.d(t,{Q:()=>r});const r=Symbol("getSliceableSymbol")},95466:(e,t,i)=>{i.d(t,{A:()=>h});var r=i(49186),s=i(53966),n=i(91869),l=i(3330),o=i(12195),a=i(30524),d=i(98623),u=i(56400),p=i(28097);const c=new Map;class h{static fromJSON(e){return new h(e.fields,e.timeZoneByFieldName)}static fromLayer(e){return new h(e.fields??[],m(e))}static fromLayerJSON(e){return new h(e.fields??[],m(e))}constructor(e=[],t){this._fieldsMap=new Map,this._normalizedFieldsMap=new Map,this._dateFieldsSet=new Set,this._numericFieldsSet=new Set,this._requiredFields=null,this.dateFields=[],this.numericFields=[],this.fields=e||[],this._timeZoneByFieldName=t?new Map(t):null;const i=[];for(const e of this.fields){const t=e?.name,r=y(t);if(t&&r){const s=g(t);this._fieldsMap.set(t,e),this._fieldsMap.set(s,e),this._normalizedFieldsMap.set(r,e),i.push(`${s}:${e.type}:${this._timeZoneByFieldName?.get(t)}`),(0,a.vE)(e)?(this.dateFields.push(e),this._dateFieldsSet.add(e)):(0,a.WA)(e)&&(this._numericFieldsSet.add(e),this.numericFields.push(e)),(0,a.te)(e)||(0,a.Xz)(e)||(e.editable=null==e.editable||!!e.editable,e.nullable=null==e.nullable||!!e.nullable)}}i.sort(),this.uid=i.join()}get requiredFields(){if(!this._requiredFields){this._requiredFields=[];for(const e of this.fields)(0,a.te)(e)||(0,a.Xz)(e)||e.nullable||void 0!==(0,a.lD)(e)||this._requiredFields.push(e)}return this._requiredFields}equals(e){return this.uid===e?.uid}has(e){return null!=this.get(e)}get(e){if(!e)return;let t=this._fieldsMap.get(e);return t||(t=this._fieldsMap.get(g(e))??this._normalizedFieldsMap.get(y(e)),t&&this._fieldsMap.set(e,t),t)}getTimeZone(e){const t=this.get(e&&"string"!=typeof e?e.name:e);return t?this._timeZoneByFieldName?this._timeZoneByFieldName.get(t.name):"date"===t.type||"esriFieldTypeDate"===t.type?(s.A.getLogger("esri.layers.support.FieldsIndex").errorOnce(new r.A("getTimeZone:no-timezone-information",`no time zone information for field '${t.name}'`)),d.n$):f.has(t.type)?d.L5:null:null}getLuxonTimeZone(e){const t=this.getTimeZone(e);return t?t===d.L5?l.GB.instance:t===d.n$?p.mQ.utcInstance:(0,n.tE)(c,t,()=>p.oh.create(t)):null}isDateField(e){return this._dateFieldsSet.has(this.get(e))}isTimeOnlyField(e){return(0,a.OH)(this.get(e))}isNumericField(e){return this._numericFieldsSet.has(this.get(e))}normalizeFieldName(e){return this.get(e)?.name??void 0}toJSON(){return{fields:this.fields.map(e=>(0,o.W)(e)?e.toJSON():e),timeZoneByFieldName:this._timeZoneByFieldName?Array.from(this._timeZoneByFieldName.entries()):null}}}function g(e){return e.trim().toLowerCase()}function y(e){return(0,a.rS)(e)?.toLowerCase()??""}const f=new Set(["time-only","date-only","timestamp-offset","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"]);function m(e){const t=new Map;if(!e.fields)return t;const i=!0===e.datesInUnknownTimezone,{timeInfo:r,editFieldsInfo:s}=e,n=(r?"startField"in r?r.startField:r.startTimeField:"")??"",l=(r?"endField"in r?r.endField:r.endTimeField:"")??"",o=function(e){return"dateFieldsTimeZone"in e}(e)?e.dateFieldsTimeZone??null:e.dateFieldsTimeReference?(0,u.ZS)(e.dateFieldsTimeReference):null,a=s?function(e){return"timeZone"in e}(s)?s.timeZone??o:s.dateFieldsTimeReference?(0,u.ZS)(s.dateFieldsTimeReference):o??d.n$:null,p=r?function(e){return"timeZone"in e}(r)?r.timeZone??o:r.timeReference?(0,u.ZS)(r.timeReference):o:null,c=new Map([[g(s?.creationDateField??""),a],[g(s?.editDateField??""),a],[g(n),p],[g(l),p]]);for(const{name:r,type:s}of e.fields)if(f.has(s))t.set(r,d.L5);else if("date"!==s&&"esriFieldTypeDate"!==s)t.set(r,null);else if(i)t.set(r,d.L5);else{const e=c.get(g(r??""))??o;t.set(r,e)}return t}},99959:(e,t,i)=>{i.d(t,{A:()=>n});var r=i(31635),s=(i(53966),i(44208),i(87811),i(49186),i(40608));let n=class{};n=(0,r.Cg)([(0,s.$)("esri.graphic.GraphicOrigin")],n)}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[873],{8303:(e,t,i)=>{i.d(t,{A:()=>S});var r=i(31635),s=i(92602),n=i(70333),l=i(78888),o=i(60999),a=i(49186),d=i(53966),u=i(97768),p=i(74887),c=i(84952),h=i(10107),g=(i(44208),i(87811),i(36005)),y=i(40608),f=i(43937),m=i(77548),v=i(20655),w=i(80812),C=i(41318),b=i(10407);const S=e=>{const t=e;let S=class extends t{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){this.portalItem=(0,u.pR)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,i){if(t.itemId)return new w.default({id:t.itemId,portal:i?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem?.id)try{const{load:r}=await i.e(1204).then(i.bind(i,41204));return(0,p.Te)(t),await r({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},t)}catch(e){throw(0,p.zf)(e)||d.A.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch(e=>((0,p.QP)(e),!0)))}async setUserPrivileges(e,t){if(!s.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:i,fullEdit:r},content:{updateItem:s}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",i),this._set("userHasFullEditingPrivileges",r),this._set("userHasUpdateItemPrivileges",s)}catch(e){(0,p.QP)(e)}}async _fetchUserPrivileges(e,t){let i=this.portalItem;if(!e||!i||!i.loaded||i.sourceUrl)return this._fetchFallbackUserPrivileges(t);const r=!n.id?.findCredential(this.url),s=e===i.id;if(s&&i.portal.user)return this._getUserPrivileges(i,r);let l,o;if(s)l=i.portal.url;else try{l=await(0,m.wI)(this.url,t)}catch(e){(0,p.QP)(e)}if(!l||!(0,c.b8)(l,i.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;o=await(n.id?.getCredential(`${l}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,p.QP)(e)}const a=!0,d=!1,u=!1;if(!o)return{features:{edit:a,fullEdit:d},content:{updateItem:u}};try{if(s?await i.reload():(i=new w.default({id:e,portal:{url:l}}),await i.load(t)),i.portal.user)return this._getUserPrivileges(i,r)}catch(e){(0,p.QP)(e)}return{features:{edit:a,fullEdit:d},content:{updateItem:u}}}_getUserPrivileges(e,t){const i=(0,b.It)(e);return t&&(i.features.edit=!0),i}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,p.QP)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){const t=this.url?n.id?.findCredential(this.url):null;if(!t)return!0;const i=I.credential===t?I.user:await this._fetchEditingUser(e);return I.credential=t,I.user=i,null==i?.privileges||i.privileges.includes("features:user:edit")}async _fetchEditingUser(e){const t=this.portalItem?.portal?.user;if(t)return t;const i=n.id?.findServerInfo(this.url??"");if(!i?.owningSystemUrl)return null;const r=`${i.owningSystemUrl}/sharing/rest`,s=v.A.getDefault();if(s&&s.loaded&&(0,c.S8)(s.restUrl)===(0,c.S8)(r))return s.user;const a=`${r}/community/self`,d=null!=e?e.signal:null,u=await(0,o.Ke)((0,l.A)(a,{authMode:"no-prompt",query:{f:"json"},signal:d}));return u.ok?C.A.fromJSON(u.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const i=t?.portal,r=this.portalItem?.id&&(this.portalItem.portal||v.A.getDefault());return i&&r&&!(0,c.ut)(r.restUrl,i.restUrl)?(t.messages&&t.messages.push(new a.A("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,r.Cg)([(0,h.MZ)({type:w.default})],S.prototype,"portalItem",null),(0,r.Cg)([(0,g.w)("web-document","portalItem",["itemId"])],S.prototype,"readPortalItem",null),(0,r.Cg)([(0,f.K)("web-document","portalItem",{itemId:{type:String}})],S.prototype,"writePortalItem",null),(0,r.Cg)([(0,h.MZ)({clonable:!1})],S.prototype,"resourceReferences",void 0),(0,r.Cg)([(0,h.MZ)({type:Boolean,readOnly:!0})],S.prototype,"userHasEditingPrivileges",void 0),(0,r.Cg)([(0,h.MZ)({type:Boolean,readOnly:!0})],S.prototype,"userHasFullEditingPrivileges",void 0),(0,r.Cg)([(0,h.MZ)({type:Boolean,readOnly:!0})],S.prototype,"userHasUpdateItemPrivileges",void 0),S=(0,r.Cg)([(0,y.$)("esri.layers.mixins.PortalLayer")],S),S},I={credential:null,user:null}},10407:(e,t,i)=>{i.d(t,{It:()=>h,LG:()=>l,OM:()=>d,Sm:()=>u,Y:()=>o,bK:()=>a,mm:()=>c,sQ:()=>p});var r=i(98988),s=i(16930),n=i(28735);function l(e,t){if(!o(e,t)){const i=e.typeKeywords;i?i.push(t):e.typeKeywords=[t]}}function o(e,t){return!!e.typeKeywords?.includes(t)}function a(e){return o(e,c.HOSTED_SERVICE)}function d(e,t){const i=e.typeKeywords;if(i){const e=i.indexOf(t);e>-1&&i.splice(e,1)}}function u(e,t,i){i?l(e,t):d(e,t)}async function p(e){const t=e.clone().normalize();let i;if(t.length>1)for(const e of t)i?e.width>i.width&&(i=e):i=e;else i=t[0];return async function(e){const t=e.spatialReference;if(t.isWGS84)return e.clone();if(t.isWebMercator)return(0,n.ci)(e);const i=s.A.WGS84;return await(0,r.initializeProjection)(t,i),(0,r.project)(e,i)}(i)}const c={CHARTS:"Charts",DYNAMIC:"Dynamic",DEVELOPER_BASEMAP:"DeveloperBasemap",GROUP_LAYER_MAP:"Map",HOSTED_SERVICE:"Hosted Service",JSAPI:"ArcGIS API for JavaScript",LOCAL_SCENE:"ViewingMode-Local",METADATA:"Metadata",MULTI_LAYER:"Multilayer",ORIENTED_IMAGERY_LAYER:"OrientedImageryLayer",SINGLE_LAYER:"Singlelayer",SUBTYPE_GROUP_LAYER:"SubtypeGroupLayer",SUBTYPE_GROUP_TABLE:"SubtypeGroupTable",TABLE:"Table",TILED_IMAGERY:"Tiled Imagery"};function h(e){const{portal:t,isOrgItem:i,itemControl:r}=e,s=t.user?.privileges;let n=!s||s.includes("features:user:edit"),l=!!i&&!!s?.includes("features:user:fullEdit");const o="update"===r||"admin"===r;return o?l=n=!0:l&&(n=!0),{features:{edit:n,fullEdit:l},content:{updateItem:o}}}},17036:(e,t,i)=>{i.d(t,{p:()=>a});var r=i(44208),s=i(53966),n=i(20437),l=i(95466),o=i(30524);function a(){return{fields:{type:[n.A],value:null,set:function(e){if(e&&(0,r.A)("big-integer-warning-enabled")){const t=e.filter(e=>"big-integer"===e.type||"oid"===e.type&&(e.length||0)>=8);if(t.length){const e=t.map(e=>`'${e.name}'`).join(", ");s.A.getLogger(this).warn("#fields",`Layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}') references big-integer field(s): ${e}, support for which is experimental. Only integers less than ${Number.MAX_SAFE_INTEGER} (Number.MAX_SAFE_INTEGER) are supported.`)}}this._set("fields",e)}},fieldsIndex:{readOnly:!0,get(){return l.A.fromLayer(this)}},outFields:{type:[String],json:{read:!1},set:function(e){this._userOutFields=e,this.notifyChange("outFields")},get:function(){const e=this._userOutFields;if(!e?.length)return null;if(e.includes("*"))return["*"];if(!this.fields)return e;for(const t of e){const i=this.fieldsIndex?.has(t);i||s.A.getLogger("esri.layers.support.fieldProperties").error("field-attributes-layer:invalid-field",`Invalid field ${t} found in outFields`,{layer:this,outFields:e})}return(0,o.DB)(this.fieldsIndex,e)}}}}},18768:(e,t,i)=>{i.d(t,{b:()=>a});var r=i(31635),s=i(53966),n=i(10107),l=(i(44208),i(87811),i(40608)),o=i(60694);const a=e=>{const t=e;let i=class extends t{get title(){if(this._get("title")&&"defaults"!==this.originOf("title"))return this._get("title");if(this.url){const e=(0,o.qg)(this.url);if(e?.title)return e.title}return this._get("title")||""}set title(e){this._set("title",e)}set url(e){this._set("url",(0,o.Jf)(e,s.A.getLogger(this)))}};return(0,r.Cg)([(0,n.MZ)()],i.prototype,"title",null),(0,r.Cg)([(0,n.MZ)({type:String})],i.prototype,"url",null),i=(0,r.Cg)([(0,l.$)("esri.layers.mixins.ArcGISService")],i),i}},25036:(e,t,i)=>{i.d(t,{j:()=>l});var r=i(31635),s=i(10107),n=(i(44208),i(53966),i(87811),i(40608));const l=e=>{const t=e;let i=class extends t{constructor(){super(...arguments),this.minScale=0,this.maxScale=0}get effectiveScaleRange(){const e={minScale:this.minScale,maxScale:this.maxScale},t=this.parent;void 0!==t?.effectiveScaleRange&&function(e,t){e.minScale=e.minScale>0?t.minScale>0?Math.min(e.minScale,t.minScale):e.minScale:t.minScale,e.maxScale=e.maxScale>0?t.maxScale>0?Math.max(e.maxScale,t.maxScale):e.maxScale:t.maxScale}(e,t.effectiveScaleRange);const i=this._get("effectiveScaleRange");return i&&i.minScale===e.minScale&&i.maxScale===e.maxScale?i:e}};return(0,r.Cg)([(0,s.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],i.prototype,"minScale",void 0),(0,r.Cg)([(0,s.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],i.prototype,"maxScale",void 0),(0,r.Cg)([(0,s.MZ)({readOnly:!0})],i.prototype,"effectiveScaleRange",null),i=(0,r.Cg)([(0,n.$)("esri.layers.mixins.ScaleRangeLayer")],i),i}},30291:(e,t,i)=>{i.d(t,{tn:()=>d});var r=i(37838),s=i(30524),n=i(41227),l=i(89893),o=i(66159),a=i(68780);function d({displayField:e,editFieldsInfo:t,fields:i,objectIdField:a,title:d},h){if(!i)return null;const y=function(e,t){const i=t?.visibleFieldNames;return function({fields:e,ignoreFieldTypes:t,sortDisabled:i}){const r=e;return t&&(e=e.filter(e=>!t.includes(e.type))),e===r&&(e=e.slice()),!0!==i&&e.sort(p),e}({fields:e.fields??[],ignoreFieldTypes:t?.ignoreFieldTypes||g,sortDisabled:t?.sortDisabled}).map(t=>new n.A({fieldName:t.name,isEditable:(0,s.R$)(t,e),label:t.alias,format:c(t),visible:u(t,{...e,visibleFieldNames:i})}))}({editFieldsInfo:t,fields:i,objectIdField:a},h);if(!y.length)return null;const f=function(e){const t=(0,s.mB)(e),{titleBase:i}=e;return t?`${i}: {${t.trim()}}`:i??""}({titleBase:d,fields:i,displayField:e}),m=[new o.A,new l.A];return new r.A({title:f,content:m,fieldInfos:y})}const u=(e,t)=>t.visibleFieldNames?t.visibleFieldNames.has(e.name):(0,s.Bz)(e,t);function p(e,t){return"oid"===e.type?-1:"oid"===t.type?1:h(e)?-1:h(t)?1:(e.alias||e.name).toLocaleLowerCase().localeCompare((t.alias||t.name).toLocaleLowerCase())}function c(e){switch(e.type){case"small-integer":case"integer":case"single":return new a.A({digitSeparator:!0,places:0});case"double":return new a.A({digitSeparator:!0,places:2});case"string":return(0,s.JL)(e.name)?new a.A({digitSeparator:!0,places:0}):void 0;default:return}}function h(e){if("name"===(e.name&&e.name.toLowerCase()))return!0;const t=e.alias?.toLowerCase();return"name"===t}const g=["geometry","blob","raster","guid","xml"]},54239:(e,t,i)=>{i.d(t,{A:()=>m});var r,s=i(31635),n=i(4576),l=i(66552),o=i(25482),a=i(83047),d=i(67076),u=i(10107),p=(i(44208),i(53966),i(36005)),c=i(40608),h=i(43937);const g=(0,l.O)()({orthometric:"gravity-related-height",gravity_related_height:"gravity-related-height",ellipsoidal:"ellipsoidal"}),y=g.jsonValues.slice();(0,n.Xy)(y,"orthometric");const f=(0,l.O)()({meter:"meters",foot:"feet","us-foot":"us-feet","clarke-foot":"clarke-feet","clarke-yard":"clarke-yards","clarke-link":"clarke-links","sears-yard":"sears-yards","sears-foot":"sears-feet","sears-chain":"sears-chains","benoit-1895-b-chain":"benoit-1895-b-chains","indian-yard":"indian-yards","indian-1937-yard":"indian-1937-yards","gold-coast-foot":"gold-coast-feet","sears-1922-truncated-chain":"sears-1922-truncated-chains","50-kilometers":"50-kilometers","150-kilometers":"150-kilometers"});let m=r=class extends o.o{constructor(e){super(e),this.heightModel="gravity-related-height",this.heightUnit="meters",this.vertCRS=null}writeHeightModel(e,t,i){return g.write(e,t,i)}readHeightModel(e,t,i){return g.read(e)||(i?.messages&&i.messages.push(function(e,t){return new d.A("height-model:unsupported",`Height model of value '${e}' is not supported`,t)}(e,{context:i})),null)}readHeightUnit(e,t,i){return f.read(e)||(i?.messages&&i.messages.push(v(e,{context:i})),null)}readHeightUnitService(e,t,i){return(0,a.LA)(e)||f.read(e)||(i?.messages&&i.messages.push(v(e,{context:i})),null)}readVertCRS(e,t){return t.vertCRS||t.ellipsoid||t.geoid}clone(){return new r({heightModel:this.heightModel,heightUnit:this.heightUnit,vertCRS:this.vertCRS})}equals(e){return!!e&&(this===e||this.heightModel===e.heightModel&&this.heightUnit===e.heightUnit&&this.vertCRS===e.vertCRS)}static deriveUnitFromSR(e,t){const i=(0,a.k1)(t);return new r({heightModel:e.heightModel,heightUnit:i??void 0,vertCRS:e.vertCRS})}write(e,t){return t={origin:"web-scene",...t},super.write(e,t)}static fromJSON(e){if(!e)return null;const t=new r;return t.read(e,{origin:"web-scene"}),t}};function v(e,t){return new d.A("height-unit:unsupported",`Height unit of value '${e}' is not supported`,t)}(0,s.Cg)([(0,u.MZ)({type:g.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:y,default:"ellipsoidal",write:{isRequired:!0}}}}})],m.prototype,"heightModel",void 0),(0,s.Cg)([(0,h.K)("web-scene","heightModel")],m.prototype,"writeHeightModel",null),(0,s.Cg)([(0,p.w)(["web-scene","service"],"heightModel")],m.prototype,"readHeightModel",null),(0,s.Cg)([(0,u.MZ)({type:f.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:f.jsonValues,write:{writer:f.write,isRequired:!0}}}}})],m.prototype,"heightUnit",void 0),(0,s.Cg)([(0,p.w)("web-scene","heightUnit")],m.prototype,"readHeightUnit",null),(0,s.Cg)([(0,p.w)("service","heightUnit")],m.prototype,"readHeightUnitService",null),(0,s.Cg)([(0,u.MZ)({type:String,constructOnly:!0,json:{origins:{"web-scene":{write:!0}}}})],m.prototype,"vertCRS",void 0),(0,s.Cg)([(0,p.w)("service","vertCRS",["vertCRS","ellipsoid","geoid"])],m.prototype,"readVertCRS",null),m=r=(0,s.Cg)([(0,c.$)("esri.geometry.HeightModelInfo")],m)},60999:(e,t,i)=>{i.d(t,{DZ:()=>g,Ke:()=>h,Tj:()=>u,UT:()=>y,jJ:()=>d});var r=i(31635),s=i(65008),n=i(97768),l=i(74887),o=i(10107),a=i(40608);function d(e,t,i){return(0,l.Lx)(e.map((e,r)=>t.apply(i,[e,r])))}async function u(e,t,i){return(await(0,l.Lx)(e.map((e,r)=>t.apply(i,[e,r])))).map(e=>e.value)}function p(e){return{ok:!0,value:e}}function c(e){return{ok:!1,error:e}}async function h(e){if(null==e)return{ok:!1,error:new Error("no promise provided")};try{return p(await e)}catch(e){return c(e)}}async function g(e){try{return p(await e)}catch(e){return(0,l.QP)(e),c(e)}}function y(e,t){return new f(e,t)}let f=class extends s.A{get value(){return null!=(e=this._result)&&!0===e.ok?e.value:null;var e}get error(){return null!=(e=this._result)&&!1===e.ok?e.error:null;var e}get finished(){return null!=this._result}constructor(e,t){super({}),this._result=null,this._abortHandle=null,this.abort=()=>{this._abortController=(0,n.DC)(this._abortController)},this.remove=this.abort,this._abortController=new AbortController;const{signal:i}=this._abortController;this.promise=e(i),this.promise.then(e=>{this._result=p(e),this._cleanup()},e=>{this._result=c(e),this._cleanup()}),this._abortHandle=(0,l.u7)(t,this.abort)}normalizeCtorArgs(){return{}}destroy(){this.abort()}_cleanup(){this._abortHandle=(0,n.xt)(this._abortHandle),this._abortController=null}};(0,r.Cg)([(0,o.MZ)()],f.prototype,"value",null),(0,r.Cg)([(0,o.MZ)()],f.prototype,"error",null),(0,r.Cg)([(0,o.MZ)()],f.prototype,"finished",null),(0,r.Cg)([(0,o.MZ)()],f.prototype,"promise",void 0),(0,r.Cg)([(0,o.MZ)()],f.prototype,"_result",void 0),f=(0,r.Cg)([(0,a.$)("esri.core.asyncUtils.ReactiveTask")],f)},69208:(e,t,i)=>{i.d(t,{d:()=>l});var r=i(31635),s=i(10107),n=(i(44208),i(53966),i(87811),i(40608));const l=e=>{const t=e;let i=class extends t{constructor(){super(...arguments),this.customParameters=null}};return(0,r.Cg)([(0,s.MZ)({type:Object,json:{write:{overridePolicy:e=>({enabled:!!(e&&Object.keys(e).length>0)})}}})],i.prototype,"customParameters",void 0),i=(0,r.Cg)([(0,n.$)("esri.layers.mixins.CustomParametersMixin")],i),i}},73179:(e,t,i)=>{i.d(t,{b:()=>a,h:()=>d});var r=i(4718),s=i(53966),n=i(84952),l=i(60694),o=i(10873);function a(e){const{nonStandardUrlAllowed:t=!1,separator:i}=e??{},n=(0,r.o8)(o.OZ),a=n.json?.write;return"object"==typeof a&&a&&(a.writer=function(e,t,r,s){(0,l.LS)(this,e,i,t,s)}),{...n,set:function(e){if(null==e)return void this._set("url",e);const i=(0,l.HZ)({layer:this,url:e,nonStandardUrlAllowed:t,logger:s.A.getLogger(this)});this._set("url",i.url),null!=i.layerId&&this._set("layerId",i.layerId)}}}function d(e,t){const{separator:i}=t??{},r=(0,n.An)(e.url);return null!=r&&(null!=e.dynamicDataSource?r.path=(0,n.fj)(r.path,"dynamicLayer"):null!=e.layerId&&(r.path=(0,n.fj)(r.path,i??"",e.layerId.toString()))),r}},77885:(e,t,i)=>{i.r(t),i.d(t,{default:()=>ae});var r=i(31635),s=i(37838),n=i(78888),l=i(69540),o=i(49186),a=i(4718),d=i(53966),u=i(92071),p=i(93637),c=i(74887),h=i(84952),g=i(10107),y=(i(44208),i(36005)),f=i(40608),m=i(43937),v=i(60950),w=i(89808),C=i(99959);const b=Symbol("isPointCloudGraphicOrigin");var S;class I extends C.A{get[(S=b,v.ym)](){return this.layer}get[w.Q](){return this.layer}constructor(e){super(),this[S]=!0,this.type="point-cloud",this.layer=e}get id(){return this.layer.id}}var F=i(4146),_=i(52136),M=i(18768),A=i(69208),P=i(16131),R=i(8303),T=i(25036),x=i(58947),Z=i(56507),E=i(93223),L=i(25482);i(87811);let O=class extends L.o{constructor(e){super(e),this.field=null,this.type=null}clone(){return console.warn(".clone() is not implemented for "+this.declaredClass),null}};(0,r.Cg)([(0,g.MZ)({type:String,json:{write:{enabled:!0,isRequired:!0}}})],O.prototype,"field",void 0),(0,r.Cg)([(0,g.MZ)({readOnly:!0,nonNullable:!0,json:{read:!1,write:{isRequired:!0}}})],O.prototype,"type",void 0),O=(0,r.Cg)([(0,f.$)("esri.layers.pointCloudFilters.PointCloudFilter")],O);const U=O;var j;let N=j=class extends U{constructor(e){super(e),this.requiredClearBits=null,this.requiredSetBits=null,this.type="bitfield"}clone(){return new j({field:this.field,requiredClearBits:(0,a.o8)(this.requiredClearBits),requiredSetBits:(0,a.o8)(this.requiredSetBits)})}};(0,r.Cg)([(0,g.MZ)({type:[Z.jz],json:{write:{enabled:!0,overridePolicy(){return{enabled:!0,isRequired:!this.requiredSetBits}}}}})],N.prototype,"requiredClearBits",void 0),(0,r.Cg)([(0,g.MZ)({type:[Z.jz],json:{write:{enabled:!0,overridePolicy(){return{enabled:!0,isRequired:!this.requiredClearBits}}}}})],N.prototype,"requiredSetBits",void 0),(0,r.Cg)([(0,E.e)({pointCloudBitfieldFilter:"bitfield"})],N.prototype,"type",void 0),N=j=(0,r.Cg)([(0,f.$)("esri.layers.pointCloudFilters.PointCloudBitfieldFilter")],N);const $=N;var B;let k=B=class extends U{constructor(e){super(e),this.includedReturns=[],this.type="return"}clone(){return new B({field:this.field,includedReturns:(0,a.o8)(this.includedReturns)})}};(0,r.Cg)([(0,g.MZ)({type:[["firstOfMany","last","lastOfMany","single"]],json:{write:{enabled:!0,isRequired:!0}}})],k.prototype,"includedReturns",void 0),(0,r.Cg)([(0,E.e)({pointCloudReturnFilter:"return"})],k.prototype,"type",void 0),k=B=(0,r.Cg)([(0,f.$)("esri.layers.pointCloudFilters.PointCloudReturnFilter")],k);const q=k;var H;let D=H=class extends U{constructor(e){super(e),this.mode="exclude",this.type="value",this.values=[]}clone(){return new H({field:this.field,mode:this.mode,values:(0,a.o8)(this.values)})}};(0,r.Cg)([(0,g.MZ)({type:["exclude","include"],json:{write:{enabled:!0,isRequired:!0}}})],D.prototype,"mode",void 0),(0,r.Cg)([(0,E.e)({pointCloudValueFilter:"value"})],D.prototype,"type",void 0),(0,r.Cg)([(0,g.MZ)({type:[Number],json:{write:{enabled:!0,isRequired:!0}}})],D.prototype,"values",void 0),D=H=(0,r.Cg)([(0,f.$)("esri.layers.pointCloudFilters.PointCloudValueFilter")],D);const G={key:"type",base:U,typeMap:{value:D,bitfield:$,return:q}};var V,z=i(10873),K=i(20437),Q=i(17036),Y=i(93705),J=i(63531),X=i(51857);let W=V=class extends X.A{constructor(e){super(e),this.type="point-cloud-rgb",this.field=null}clone(){return new V({...this.cloneProperties(),field:(0,a.o8)(this.field)})}};(0,r.Cg)([(0,E.e)({pointCloudRGBRenderer:"point-cloud-rgb"})],W.prototype,"type",void 0),(0,r.Cg)([(0,g.MZ)({type:String,json:{write:{isRequired:!0}}})],W.prototype,"field",void 0),W=V=(0,r.Cg)([(0,f.$)("esri.renderers.PointCloudRGBRenderer")],W);const ee=W;var te=i(69846),ie=i(48425);const re={key:"type",base:X.A,typeMap:{"point-cloud-class-breaks":J.A,"point-cloud-rgb":ee,"point-cloud-stretch":te.A,"point-cloud-unique-value":ie.A},errorContext:"renderer"};var se=i(56776),ne=i(30291);const le=(0,Q.p)();let oe=class extends((0,x.w)((0,M.b)((0,P.q)((0,R.A)((0,T.j)((0,u.P)((0,A.d)((0,_.p)((0,l.OU)(F.A)))))))))){constructor(...e){super(...e),this.operationalLayerType="PointCloudLayer",this.popupEnabled=!0,this.popupTemplate=null,this.opacity=1,this.filters=[],this.fields=null,this.fieldsIndex=null,this.outFields=null,this.path=null,this.legendEnabled=!0,this.renderer=null,this.type="point-cloud",this.graphicOrigin=new I(this)}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}get defaultPopupTemplate(){return this.attributeStorageInfo?this.createPopupTemplate():null}getFieldDomain(e){const t=this.fieldsIndex.get(e);return t?.domain?t.domain:null}readServiceFields(e,t,i){return Array.isArray(e)?e.map(e=>{const t=new K.A;return"FieldTypeInteger"===e.type&&((e=(0,a.o8)(e)).type="esriFieldTypeInteger"),t.read(e,i),t}):Array.isArray(t.attributeStorageInfo)?t.attributeStorageInfo.map(e=>new K.A({name:e.name,type:"ELEVATION"===e.name?"double":"integer"})):null}set elevationInfo(e){null!=e&&"absolute-height"!==e.mode||this._set("elevationInfo",e),this._validateElevationInfo(e)}writeRenderer(e,t,i,r){(0,p.sM)("layerDefinition.drawingInfo.renderer",e.write({},r),t)}load(e){const t=null!=e?e.signal:null,i=this.loadFromPortal({supportedTypes:["Scene Service"]},e).catch(c.QP).then(()=>this._fetchService(t));return this.addResolvingPromise(i),Promise.resolve(this)}createPopupTemplate(e){const t=(0,ne.tn)(this,e);return t&&(this._formatPopupTemplateReturnsField(t),this._formatPopupTemplateRGBField(t)),t}_formatPopupTemplateReturnsField(e){const t=this.fieldsIndex.get("RETURNS");if(!t)return;const i=e.fieldInfos?.find(e=>e.fieldName===t.name);if(!i)return;const r=new Y.A({name:"pcl-returns-decoded",title:t.alias||t.name,expression:`\n var returnValue = $feature.${t.name};\n return (returnValue % 16) + " / " + Floor(returnValue / 16);\n `});e.expressionInfos=[...e.expressionInfos||[],r],i.fieldName="expression/pcl-returns-decoded"}_formatPopupTemplateRGBField(e){const t=this.fieldsIndex.get("RGB");if(!t)return;const i=e.fieldInfos?.find(e=>e.fieldName===t.name);if(!i)return;const r=new Y.A({name:"pcl-rgb-decoded",title:t.alias||t.name,expression:`\n var rgb = $feature.${t.name};\n var red = Floor(rgb / 65536, 0);\n var green = Floor((rgb - (red * 65536)) / 256,0);\n var blue = rgb - (red * 65536) - (green * 256);\n\n return "rgb(" + red + "," + green + "," + blue + ")";\n `});e.expressionInfos=[...e.expressionInfos||[],r],i.fieldName="expression/pcl-rgb-decoded"}async queryCachedStatistics(e,t){if(await this.load(t),!this.attributeStorageInfo)throw new o.A("scenelayer:no-cached-statistics","Cached statistics are not available for this layer");const i=this.fieldsIndex.get(e);if(!i)throw new o.A("pointcloudlayer:field-unexisting",`Field '${e}' does not exist on the layer`);for(const e of this.attributeStorageInfo)if(e.name===i.name){const i=(0,h.fj)(this.parsedUrl?.path??"",`./statistics/${e.key}`);return(0,n.A)(i,{query:{f:"json",...this.customParameters,token:this.apiKey},responseType:"json",signal:t?t.signal:null}).then(e=>e.data)}throw new o.A("pointcloudlayer:no-cached-statistics","Cached statistics for this attribute are not available")}async saveAs(e,t){return this._debouncedSaveOperations(1,{...t,getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"point-cloud"},e)}async save(){const e={getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"point-cloud"};return this._debouncedSaveOperations(0,e)}validateLayer(e){if(e.layerType&&"PointCloud"!==e.layerType)throw new o.A("pointcloudlayer:layer-type-not-supported","PointCloudLayer does not support this layer type",{layerType:e.layerType});if(isNaN(this.version.major)||isNaN(this.version.minor))throw new o.A("layer:service-version-not-supported","Service version is not supported.",{serviceVersion:this.version.versionString,supportedVersions:"1.x-2.x"});if(this.version.major>2)throw new o.A("layer:service-version-too-new","Service version is too new.",{serviceVersion:this.version.versionString,supportedVersions:"1.x-2.x"})}hasCachedStatistics(e){return null!=this.attributeStorageInfo&&this.attributeStorageInfo.some(t=>t.name===e)}_getTypeKeywords(){return["PointCloud"]}_validateElevationInfo(e){(0,se.XF)(d.A.getLogger(this),(0,se.B)("Point cloud layers","absolute-height",e)),(0,se.XF)(d.A.getLogger(this),(0,se.tW)("Point cloud layers",e))}};(0,r.Cg)([(0,g.MZ)({type:["PointCloudLayer"]})],oe.prototype,"operationalLayerType",void 0),(0,r.Cg)([(0,g.MZ)(z.M6)],oe.prototype,"popupEnabled",void 0),(0,r.Cg)([(0,g.MZ)({type:s.A,json:{name:"popupInfo",write:!0}})],oe.prototype,"popupTemplate",void 0),(0,r.Cg)([(0,g.MZ)({readOnly:!0,json:{read:!1}})],oe.prototype,"defaultPopupTemplate",null),(0,r.Cg)([(0,g.MZ)({readOnly:!0,json:{write:!1,read:!1,origins:{"web-document":{write:!1,read:!1}}}})],oe.prototype,"opacity",void 0),(0,r.Cg)([(0,g.MZ)({type:["show","hide"]})],oe.prototype,"listMode",void 0),(0,r.Cg)([(0,g.MZ)({types:[G],json:{origins:{service:{read:{source:"filters"}}},name:"layerDefinition.filters",write:!0}})],oe.prototype,"filters",void 0),(0,r.Cg)([(0,g.MZ)({type:[K.A]})],oe.prototype,"fields",void 0),(0,r.Cg)([(0,g.MZ)(le.fieldsIndex)],oe.prototype,"fieldsIndex",void 0),(0,r.Cg)([(0,y.w)("service","fields",["fields","attributeStorageInfo"])],oe.prototype,"readServiceFields",null),(0,r.Cg)([(0,g.MZ)(le.outFields)],oe.prototype,"outFields",void 0),(0,r.Cg)([(0,g.MZ)({readOnly:!0})],oe.prototype,"attributeStorageInfo",void 0),(0,r.Cg)([(0,g.MZ)(z.Yj)],oe.prototype,"elevationInfo",null),(0,r.Cg)([(0,g.MZ)({type:String,json:{origins:{"web-scene":{read:!0,write:!0},"portal-item":{read:!0,write:!0}},read:!1}})],oe.prototype,"path",void 0),(0,r.Cg)([(0,g.MZ)(z.fV)],oe.prototype,"legendEnabled",void 0),(0,r.Cg)([(0,g.MZ)({types:re,json:{origins:{service:{read:{source:"drawingInfo.renderer"}}},name:"layerDefinition.drawingInfo.renderer",write:{target:{"layerDefinition.drawingInfo.renderer":{types:re},"layerDefinition.drawingInfo.transparency":{type:Number}}}}})],oe.prototype,"renderer",void 0),(0,r.Cg)([(0,m.K)("renderer")],oe.prototype,"writeRenderer",null),(0,r.Cg)([(0,g.MZ)({json:{read:!1},readOnly:!0})],oe.prototype,"type",void 0),(0,r.Cg)([(0,g.MZ)({readOnly:!0})],oe.prototype,"graphicOrigin",void 0),oe=(0,r.Cg)([(0,f.$)("esri.layers.PointCloudLayer")],oe);const ae=oe},89808:(e,t,i)=>{i.d(t,{Q:()=>r});const r=Symbol("getSliceableSymbol")},95466:(e,t,i)=>{i.d(t,{A:()=>h});var r=i(49186),s=i(53966),n=i(91869),l=i(3330),o=i(12195),a=i(30524),d=i(98623),u=i(56400),p=i(28097);const c=new Map;class h{static fromJSON(e){return new h(e.fields,e.timeZoneByFieldName)}static fromLayer(e){return new h(e.fields??[],m(e))}static fromLayerJSON(e){return new h(e.fields??[],m(e))}constructor(e=[],t){this._fieldsMap=new Map,this._normalizedFieldsMap=new Map,this._dateFieldsSet=new Set,this._numericFieldsSet=new Set,this._requiredFields=null,this.dateFields=[],this.numericFields=[],this.fields=e||[],this._timeZoneByFieldName=t?new Map(t):null;const i=[];for(const e of this.fields){const t=e?.name,r=y(t);if(t&&r){const s=g(t);this._fieldsMap.set(t,e),this._fieldsMap.set(s,e),this._normalizedFieldsMap.set(r,e),i.push(`${s}:${e.type}:${this._timeZoneByFieldName?.get(t)}`),(0,a.vE)(e)?(this.dateFields.push(e),this._dateFieldsSet.add(e)):(0,a.WA)(e)&&(this._numericFieldsSet.add(e),this.numericFields.push(e)),(0,a.te)(e)||(0,a.Xz)(e)||(e.editable=null==e.editable||!!e.editable,e.nullable=null==e.nullable||!!e.nullable)}}i.sort(),this.uid=i.join()}get requiredFields(){if(!this._requiredFields){this._requiredFields=[];for(const e of this.fields)(0,a.te)(e)||(0,a.Xz)(e)||e.nullable||void 0!==(0,a.lD)(e)||this._requiredFields.push(e)}return this._requiredFields}equals(e){return this.uid===e?.uid}has(e){return null!=this.get(e)}get(e){if(!e)return;let t=this._fieldsMap.get(e);return t||(t=this._fieldsMap.get(g(e))??this._normalizedFieldsMap.get(y(e)),t&&this._fieldsMap.set(e,t),t)}getTimeZone(e){const t=this.get(e&&"string"!=typeof e?e.name:e);return t?this._timeZoneByFieldName?this._timeZoneByFieldName.get(t.name):"date"===t.type||"esriFieldTypeDate"===t.type?(s.A.getLogger("esri.layers.support.FieldsIndex").errorOnce(new r.A("getTimeZone:no-timezone-information",`no time zone information for field '${t.name}'`)),d.n$):f.has(t.type)?d.L5:null:null}getLuxonTimeZone(e){const t=this.getTimeZone(e);return t?t===d.L5?l.GB.instance:t===d.n$?p.mQ.utcInstance:(0,n.tE)(c,t,()=>p.oh.create(t)):null}isDateField(e){return this._dateFieldsSet.has(this.get(e))}isTimeOnlyField(e){return(0,a.OH)(this.get(e))}isNumericField(e){return this._numericFieldsSet.has(this.get(e))}normalizeFieldName(e){return this.get(e)?.name??void 0}toJSON(){return{fields:this.fields.map(e=>(0,o.W)(e)?e.toJSON():e),timeZoneByFieldName:this._timeZoneByFieldName?Array.from(this._timeZoneByFieldName.entries()):null}}}function g(e){return e.trim().toLowerCase()}function y(e){return(0,a.rS)(e)?.toLowerCase()??""}const f=new Set(["time-only","date-only","timestamp-offset","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"]);function m(e){const t=new Map;if(!e.fields)return t;const i=!0===e.datesInUnknownTimezone,{timeInfo:r,editFieldsInfo:s}=e,n=(r?"startField"in r?r.startField:r.startTimeField:"")??"",l=(r?"endField"in r?r.endField:r.endTimeField:"")??"",o=function(e){return"dateFieldsTimeZone"in e}(e)?e.dateFieldsTimeZone??null:e.dateFieldsTimeReference?(0,u.ZS)(e.dateFieldsTimeReference):null,a=s?function(e){return"timeZone"in e}(s)?s.timeZone??o:s.dateFieldsTimeReference?(0,u.ZS)(s.dateFieldsTimeReference):o??d.n$:null,p=r?function(e){return"timeZone"in e}(r)?r.timeZone??o:r.timeReference?(0,u.ZS)(r.timeReference):o:null,c=new Map([[g(s?.creationDateField??""),a],[g(s?.editDateField??""),a],[g(n),p],[g(l),p]]);for(const{name:r,type:s}of e.fields)if(f.has(s))t.set(r,d.L5);else if("date"!==s&&"esriFieldTypeDate"!==s)t.set(r,null);else if(i)t.set(r,d.L5);else{const e=c.get(g(r??""))??o;t.set(r,e)}return t}},99959:(e,t,i)=>{i.d(t,{A:()=>n});var r=i(31635),s=(i(53966),i(44208),i(87811),i(49186),i(40608));let n=class{};n=(0,r.Cg)([(0,s.$)("esri.graphic.GraphicOrigin")],n)}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6277],{9762:(n,t,e)=>{e.r(t),e.d(t,{projectBuffer:()=>r});var l=e(37539);function r(n,t,e,r,i,u,s=Math.floor(n.length/3)){const o=(0,l.jd)(t,i);if(null==o)return!1;if(o===l.pO){if(n===r&&e===u)return!0;const t=e+3*s;for(let l=e,i=u;l<t;l++,i++)r[i]=n[l];return!0}const a=e+3*s;for(let t=e,l=u;t<a;t+=3,l+=3)o(n,t,r,l);return!0}},24212:(n,t,e)=>{function l(n,t){return function(n,t){return t?.mode?t.mode:function(n){return n?o:a}(n).mode}(null==n||(n.hasZ??!1),t)}function r(n,t,e){return e&&e.mode!==t?`${n} only support ${t} elevation mode`:null}function i(n,t,e){return e?.mode===t?`${n} do not support ${t} elevation mode`:null}function u(n,t){return null!=t?.featureExpressionInfo&&"0"!==t.featureExpressionInfo.expression?`${n} do not support featureExpressionInfo`:null}function s(n,t){t&&n.warn(".elevationInfo=",t)}e.d(t,{$7:()=>i,B:()=>r,XF:()=>s,tW:()=>u,w7:()=>l}),e(83047),e(16271);const o={mode:"absolute-height",offset:0},a={mode:"on-the-ground",offset:null}},37539:(n,t,e)=>{e.d(t,{pO:()=>m,jd:()=>h,Tp:()=>p,w5:()=>f});var l=e(34727),r=e(83047),i=e(73941),u=e(79258);Math.PI;const s=u.$O.radius,o=u.$O.eccentricitySquared,a={a1:s*o,a2:s*o*s*o,a3:s*o*o/2,a4:s*o*s*o*2.5,a5:s*o+s*o*o/2,a6:1-o};u.$O.radius,u.$O.flattening,u.Sw.radius,u.Sw.flattening,u.sH.radius,u.sH.flattening,u.sH.radius;var c=e(21325);const f={2:{5:m,7:null,9:null,10:m,1:j,6:null,8:null,0:null,3:g,11:y,2:m,4:S},5:{5:m,7:null,9:null,10:m,1:j,6:null,8:null,0:null,3:g,11:y,2:m,4:S},7:{5:null,7:m,9:null,10:m,1:null,6:I,8:null,0:null,3:null,11:null,2:null,4:null},9:{5:null,7:null,9:m,10:m,1:null,6:null,8:k,0:null,3:null,11:null,2:null,4:null},3:{5:w,7:null,9:null,10:w,1:function(n,t,e,l){const r=n[t]/q,i=$-2*Math.atan(Math.exp(-n[t+1]/q)),u=q+n[t+2],s=Math.cos(i)*u;e[l]=Math.cos(r)*s,e[l+1]=Math.sin(r)*s,e[l+2]=Math.sin(i)*u},6:null,8:null,0:null,3:m,11:function(n,t,e,l){w(n,t,e,l),y(e,l,e,l)},2:w,4:function(n,t,e,l){w(n,t,e,l),S(e,l,e,l)}},4:{5:A,7:null,9:null,10:A,1:function(n,t,e,l){A(n,t,e,l),j(e,l,e,l)},6:null,8:null,0:null,3:function(n,t,e,l){A(n,t,e,l),g(e,l,e,l)},11:function(n,t,e,l){A(n,t,e,l),y(e,l,e,l)},2:A,4:m},1:{5:P,7:null,9:null,10:P,1:m,6:null,8:null,0:null,3:function(n,t,e,l){P(n,t,e,l),g(e,l,e,l)},11:function(n,t,e,l){P(n,t,e,l),y(e,l,e,l)},2:P,4:function(n,t,e,l){P(n,t,e,l),S(e,l,e,l)}},6:{5:null,7:v,9:null,10:v,1:null,6:m,8:null,0:null,3:null,11:null,2:null,4:null},8:{5:null,7:null,9:_,10:_,1:null,6:null,8:m,0:null,3:null,11:null,2:null,4:null},0:{5:null,7:null,9:null,10:null,1:null,6:null,8:null,0:m,3:null,11:null,2:null,4:null},10:{5:m,7:m,9:m,10:m,1:j,6:I,8:k,0:null,3:g,11:y,2:m,4:S},11:{5:R,7:null,9:null,10:R,1:function(n,t,e,l){R(n,t,e,l),j(e,l,e,l)},6:null,8:null,0:null,3:function(n,t,e,l){R(n,t,e,l),g(e,l,e,l)},11:m,2:R,4:function(n,t,e,l){R(n,t,e,l),S(e,l,e,l)}}};function h(n,t){return p(n,t)?.projector}function p(n,t){if(null==n||null==t)return null;if(G.source.spatialReference===n&&G.dest.spatialReference===t)return G;const e=d(n,G.source),l=d(t,G.dest);return 0===e&&0===l?(0,c.aI)(n,t)?G.projector=m:G.projector=null:G.projector=f[e][l],G}function d(n,t){return n?t.spatialReference===n?t.spatialReferenceId:(t.spatialReference=n,"metersPerUnit"in t&&(t.metersPerUnit=(0,r.GA)(n,1)),(0,i.jA)(n)?t.spatialReferenceId=1:(0,c.oT)(n)?t.spatialReferenceId=2:(0,c.K8)(n)?t.spatialReferenceId=3:(0,c.r1)(n)?t.spatialReferenceId=11:n.wkt===i.Ro.wkt?t.spatialReferenceId=4:4490===n.wkid?t.spatialReferenceId=5:n.wkt===i.FY.wkt?t.spatialReferenceId=6:n.wkt===i.LJ.wkt?t.spatialReferenceId=8:(0,c.q8)(n)?t.spatialReferenceId=7:(0,c.KQ)(n)?t.spatialReferenceId=9:t.spatialReferenceId=0):0}function m(n,t,e,l){n!==e&&(e[l++]=n[t++],e[l++]=n[t++],e[l]=n[t])}function w(n,t,e,l){e[l]=z*(n[t]/q),e[l+1]=z*($-2*Math.atan(Math.exp(-n[t+1]/q))),e[l+2]=n[t+2]}function g(n,t,e,r){!function(n,t,e,r,i){const u=.4999999*Math.PI,s=(0,l.qE)(O*n[t+1],-u,u),o=Math.sin(s);e[r++]=O*n[t]*i.radius,e[r++]=i.halfSemiMajorAxis*Math.log((1+o)/(1-o)),e[r]=n[t+2]}(n,t,e,r,u.$O)}function y(n,t,e,l){e[l]=n[t]*E,e[l+1]=n[t+1]*E,e[l+2]=n[t+2]}function R(n,t,e,l){e[l]=n[t]*T,e[l+1]=n[t+1]*T,e[l+2]=n[t+2]}function M(n,t,e,l,r){const i=r+n[t+2],u=O*n[t+1],s=O*n[t],o=Math.cos(u)*i;e[l]=Math.cos(s)*o,e[l+1]=Math.sin(s)*o,e[l+2]=Math.sin(u)*i}function k(n,t,e,l){M(n,t,e,l,u.Sw.radius)}function I(n,t,e,l){M(n,t,e,l,u.sH.radius)}function j(n,t,e,l){M(n,t,e,l,u.$O.radius)}function x(n,t,e,r,i){const u=n[t],s=n[t+1],o=n[t+2],a=Math.sqrt(u*u+s*s+o*o),c=(0,l.YN)(o/(0===a?1:a)),f=Math.atan2(s,u);e[r++]=z*f,e[r++]=z*c,e[r]=a-i}function _(n,t,e,l){x(n,t,e,l,u.Sw.radius)}function v(n,t,e,l){x(n,t,e,l,u.sH.radius)}function P(n,t,e,l){x(n,t,e,l,u.$O.radius)}function S(n,t,e,l){!function(n,t,e,l,r){const i=O*n[t],u=O*n[t+1],s=n[t+2],o=Math.sin(u),a=Math.cos(u),c=r.radius/Math.sqrt(1-r.eccentricitySquared*o*o);e[l++]=(c+s)*a*Math.cos(i),e[l++]=(c+s)*a*Math.sin(i),e[l++]=(c*(1-r.eccentricitySquared)+s)*o}(n,t,e,l,u.$O)}function A(n,t,e,l){const r=a,i=n[t],s=n[t+1],o=n[t+2];let c,f,h,p,d,m,w,g,y,R,M,k,I,j,x,_,v,P,S,A,G;c=Math.abs(o),f=i*i+s*s,h=Math.sqrt(f),p=f+o*o,d=Math.sqrt(p),A=Math.atan2(s,i),m=o*o/p,w=f/p,j=r.a2/d,x=r.a3-r.a4/d,w>.3?(g=c/d*(1+w*(r.a1+j+m*x)/d),S=Math.asin(g),R=g*g,y=Math.sqrt(1-R)):(y=h/d*(1-m*(r.a5-j-w*x)/d),S=Math.acos(y),R=1-y*y,g=Math.sqrt(R)),M=1-u.$O.eccentricitySquared*R,k=u.$O.radius/Math.sqrt(M),I=r.a6*k,j=h-k*y,x=c-I*g,v=y*j+g*x,_=y*x-g*j,P=_/(I/M+v),S+=P,G=v+_*P/2,o<0&&(S=-S),e[l++]=z*A,e[l++]=z*S,e[l]=G}const G={source:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},projector:m},O=(0,l.kU)(1),z=(0,l.KJ)(1),$=.5*Math.PI,q=u.$O.radius,E=q*Math.PI/180,T=180/(q*Math.PI)},62815:(n,t,e)=>{e.d(t,{N:()=>u});var l=e(83047),r=e(73941),i=e(21325);function u(n,t,e){if(null==t||null==e||e.vcsWkid||(0,i.aI)(t,e)||(0,r.xP)(t)||(0,r.xP)(e))return null;const u=(0,l.G9)(t)/(0,l.G9)(e);if(1===u)return null;switch(n){case"point":case"esriGeometryPoint":return n=>function(n,t){null!=n?.z&&(n.z*=t)}(n,u);case"polyline":case"esriGeometryPolyline":return n=>function(n,t){if(n)for(const e of n.paths)for(const n of e)n.length>2&&(n[2]*=t)}(n,u);case"polygon":case"esriGeometryPolygon":return n=>function(n,t){if(n)for(const e of n.rings)for(const n of e)n.length>2&&(n[2]*=t)}(n,u);case"multipoint":case"esriGeometryMultipoint":return n=>function(n,t){if(n)for(const e of n.points)e.length>2&&(e[2]*=t)}(n,u);case"extent":case"esriGeometryEnvelope":return n=>function(n,t){n&&null!=n.zmin&&null!=n.zmax&&(n.zmin*=t,n.zmax*=t)}(n,u);default:return null}}},98988:(n,t,e)=>{e.r(t),e.d(t,{canProjectWithoutEngine:()=>F,getTransformation:()=>K,getTransformations:()=>W,initializeProjection:()=>Y,isEqualBaseGCS:()=>J,isLoaded:()=>O,isLoadedOrLoad:()=>z,isLoadedOrLoadFor:()=>$,load:()=>E,project:()=>T,projectExtent:()=>un,projectMany:()=>Z,projectMultipoint:()=>V,projectOrLoad:()=>L,projectOrLoadMany:()=>C,projectPoint:()=>X,projectPolygon:()=>ln,projectPolyline:()=>tn,projectWithZConversion:()=>U,projectWithoutEngine:()=>Q,requiresLoad:()=>q,test:()=>H,tryProjectWithZConversion:()=>N,unload:()=>B});var l=e(49186),r=e(74887),i=e(62788),u=e(95488),s=e(51850),o=e(21276),a=e(73941),c=e(5443),f=e(48526),h=e(83290),p=e(86738),d=e(39829),m=e(82799),w=e(16930),g=e(9762),y=e(37539);function R(n,t,e,l,r,i){return M[0]=n,M[1]=t,M[2]=e,(0,g.projectBuffer)(M,l,0,r,i,0)}const M=(0,s.vt)();let k=0;class I{static fromGE(n){const t=new I;return t._wkt=n.wkt,t._wkid=n.wkid,t._isInverse=n.isInverse,t}constructor(n){this.uid=k++,n?(this._wkt=null!=n.wkt?n.wkt:null,this._wkid=null!=n.wkid?n.wkid:-1,this._isInverse=null!=n.isInverse&&!0===n.isInverse):(this._wkt=null,this._wkid=-1,this._isInverse=!1)}get wkt(){return this._wkt}set wkt(n){this._wkt=n,this.uid=k++}get wkid(){return this._wkid}set wkid(n){this._wkid=n,this.uid=k++}get isInverse(){return this._isInverse}set isInverse(n){this._isInverse=n,this.uid=k++}getInverse(){const n=new I;return n._wkt=this.wkt,n._wkid=this._wkid,n._isInverse=!this.isInverse,n}}class j{static cacheKey(n,t){return[n.wkid?.toString()??"-1",n.wkt?.toString()??"",n.wkt2?.toString()??"",t.wkid?.toString()??"-1",t.wkt?.toString()??"",t.wkt2?.toString()??""].join()}static fromGE(n){const t=new j;let e="";for(const l of n.steps){const n=I.fromGE(l);t.steps.push(n),e+=n.uid.toString()+","}return t._cachedProjection={},t._gtlistentry=null,t._chain=e,t}constructor(n){if(this.steps=[],this._cachedProjection={},this._chain="",this._gtlistentry=null,n?.steps)for(const t of n.steps)t instanceof I?this.steps.push(t):this.steps.push(new I({wkid:t.wkid,wkt:t.wkt,isInverse:t.isInverse}))}getInverse(){const n=new j;n.steps=[];for(let t=this.steps.length-1;t>=0;t--){const e=this.steps[t];n.steps.push(e.getInverse())}return n}getGTListEntry(){let n="";for(const t of this.steps)n+=t.uid.toString()+",";return n!==this._chain&&(this._gtlistentry=null,this._cachedProjection={},this._chain=n),this._gtlistentry}assignCachedGe(n,t,e){this._cachedProjection[j.cacheKey(n,t)]=e}getCachedGeTransformation(n,t){let e="";for(const n of this.steps)e+=n.uid.toString()+",";e!==this._chain&&(this._gtlistentry=null,this._cachedProjection={},this._chain=e);const l=this._cachedProjection[j.cacheKey(n,t)];return void 0===l?null:l}}var x=e(21325),_=e(62815);let v=null,P=null,S=null,A={};const G=new u.I;function O(){return!!v&&(0,h.i)()}function z(){return!!O()||((0,i.gc)(G),E(),!1)}function $(n,t){return!n||!t||F(n,t)||z()}function q(n,t){return!F(n,t)&&!O()}function E(n){return null==S&&(S=Promise.all([(0,h.l)(),e.e(9930).then(e.bind(e,49930)).then(n=>n.g),e.e(2731).then(e.bind(e,12731))])),S.then(([,t,{hydratedAdapter:e}])=>{(0,r.Te)(n),P=e,v=t.default,v._enableProjection(h.p),G.notify()})}function T(n,t,e=null,l=null){return Array.isArray(n)?0===n.length?[]:((0,o.H)(n),Z(P,n,n[0].spatialReference,t,e,l)):((0,o.f)(n),Z(P,[n],n.spatialReference,t,e,l)[0])}function Z(n,t,e,l,r=null,i=null){if(null==e||null==l)return t;if(F(e,l,r))return t.map(n=>Q(n,e,l));if(null==r&&(0,a.jA)(e))return t.map(n=>Q(n,e,w.A.WGS84)).map(n=>N(n,l));if(null==r&&(0,a.jA)(l))return t.map(n=>N(n,w.A.WGS84)).map(n=>Q(n,w.A.WGS84,l));if(null==r){const n=j.cacheKey(e,l);void 0!==A[n]?r=A[n]:(null==(r=K(e,l,void 0))&&(r=new j),A[n]=r)}if(null==v||null==n)throw new b;return null!=i?v._project(n,t,e,l,r,i):v._project(n,t,e,l,r)}function L(n,t){const e=C([n],t);return null!=e.pending?{pending:e.pending,geometry:null}:null!=e.geometries?{pending:null,geometry:e.geometries[0]}:{pending:null,geometry:null}}function C(n,t){if(!O())for(const e of n)if(null!=e&&!(0,x.aI)(e.spatialReference,t)&&(0,x.fn)(e.spatialReference)&&(0,x.fn)(t)&&!F(e.spatialReference,t))return(0,i.gc)(G),{pending:E(),geometries:null};return{pending:null,geometries:n.map(n=>null==n?null:(0,x.aI)(n.spatialReference,t)?n:(0,x.fn)(n.spatialReference)&&(0,x.fn)(t)?N(n,t):null)}}function K(n,t,e=null){if(null==n||null==t)return null;if(null==v||null==P)throw new b;const l=v._getTransformation(P,n,t,e,e?.spatialReference);return null!==l?j.fromGE(l):null}function W(n,t,e=null){if(null==v||null==P)throw new b;const l=v._getTransformationBySuitability(P,n,t,e,e?.spatialReference);if(null!==l){const n=[];for(const t of l)n.push(j.fromGE(t));return n}return[]}class b extends l.A{constructor(){super("projection:not-loaded","projection engine not fully loaded yet, please call load()")}}function B(){v=null,P=null,S=null,A={}}const H={get loadPromise(){return S}};function N(n,t){try{const e=T(n,t);if(null==e)return null;"xmin"in n&&"xmin"in e&&(e.zmin=n.zmin,e.zmax=n.zmax);const l=(0,_.N)(e.type,n.spatialReference,t);return null!=l&&l(e),e}catch(n){if(!(n instanceof b))throw n;return null}}async function U(n,t,e){const l=n.spatialReference;return null!=l&&null!=t&&await Y(l,t,null,e),N(n,t)}function F(n,t,e){return!e&&(!!(0,x.aI)(n,t)||(0,x.fn)(n)&&(0,x.fn)(t)&&!!(0,y.jd)(n,t))}function J(n,t){if((0,x.aI)(n,t))return!0;if(!(0,x.fn)(n)||!(0,x.fn)(t))return!1;const e=(0,x.oT)(n)||(0,x.K8)(n)||(0,x.x1)(n),l=(0,x.oT)(t)||(0,x.K8)(t)||(0,x.x1)(t);return e&&l}async function Y(n,t,e,l){if(O())return(0,r.NO)(l);if(Array.isArray(n)){for(const{source:t,dest:e,geographicTransformation:r}of n)if(t&&e&&!F(t,e,r))return E(l)}else if(n&&t&&!F(n,t,e))return E(l);return(0,r.NO)(l)}function Q(n,t,e){return n?"x"in n?D(n,t,new p.A,e,0):"xmin"in n?sn(n,t,new c.A,e,0):"rings"in n?rn(n,t,new d.A,e,0):"paths"in n?en(n,t,new m.A,e,0):"points"in n?nn(n,t,new f.A,e,0):null:null}function X(n,t,e=t.spatialReference,l=0){return null!=e&&null!=n.spatialReference&&null!=D(n,n.spatialReference,t,e,l)}function D(n,t,e,l,r){an[0]=n.x,an[1]=n.y;const i=n.z;return an[2]=void 0!==i?i:r,(0,g.projectBuffer)(an,t,0,an,l,0)?(e.x=an[0],e.y=an[1],e.spatialReference=l,void 0!==i||(0,a.xP)(l)?(e.z=an[2],e.hasZ=!0):(e.z=void 0,e.hasZ=!1),void 0===n.m?(e.m=void 0,e.hasM=!1):(e.m=n.m,e.hasM=!0),e):null}function V(n,t,e=t.spatialReference,l=0){return null!=n.spatialReference&&null!=e&&null!=nn(n,n.spatialReference,t,e,l)}function nn(n,t,e,l,r){const{points:i,hasZ:u,hasM:s}=n,o=[],c=i.length,f=[];for(const n of i)f.push(n[0],n[1],u?n[2]:r);if(!(0,g.projectBuffer)(f,t,0,f,l,0,c))return null;const h=u||(0,a.xP)(l);for(let n=0;n<c;++n){const t=3*n,e=f[t],l=f[t+1];h&&s?o.push([e,l,f[t+2],i[n][3]]):h?o.push([e,l,f[t+2]]):s?o.push([e,l,i[n][2]]):o.push([e,l])}return e.points=o,e.spatialReference=l,e.hasZ=u,e.hasM=s,e}function tn(n,t,e=t.spatialReference,l=0){return null!=n.spatialReference&&null!=e&&null!=en(n,n.spatialReference,t,e,l)}function en(n,t,e,l,r){const{paths:i,hasZ:u,hasM:s}=n,o=[];if(!on(i,u??!1,s??!1,t,o,l,r))return null;const c=u||(0,a.xP)(l);return e.paths=o,e.spatialReference=l,e.hasZ=c,e.hasM=s,e}function ln(n,t,e=t.spatialReference,l=0){return null!=n.spatialReference&&null!=e&&null!=rn(n,n.spatialReference,t,e,l)}function rn(n,t,e,l,r){const{rings:i,hasZ:u,hasM:s}=n,o=[];if(!on(i,u??!1,s??!1,t,o,l,r))return null;const c=u||(0,a.xP)(l);return e.rings=o,e.spatialReference=l,e.hasZ=c,e.hasM=s,e}function un(n,t,e=t.spatialReference,l=0){return null!=n.spatialReference&&null!=e&&null!=sn(n,n.spatialReference,t,e,l)}function sn(n,t,e,l,r){const{xmin:i,ymin:u,xmax:s,ymax:o,hasZ:c,hasM:f}=n;if(!R(i,u,c?n.zmin:r,t,an,l))return null;const h=c||(0,a.xP)(l);return e.xmin=an[0],e.ymin=an[1],h&&(e.zmin=an[2]),R(s,o,c?n.zmax:r,t,an,l)?(e.xmax=an[0],e.ymax=an[1],h&&(e.zmax=an[2]),f&&(e.mmin=n.mmin,e.mmax=n.mmax),e.spatialReference=l,e):null}function on(n,t,e,l,r,i,u=0){const s=new Array;for(const e of n)for(const n of e)s.push(n[0],n[1],t?n[2]:u);if(!(0,g.projectBuffer)(s,l,0,s,i,0))return!1;let o=0;r.length=0;const c=t||(0,a.xP)(i);for(const t of n){const n=new Array;for(const l of t)c&&e?n.push([s[o++],s[o++],s[o++],l[3]]):c?n.push([s[o++],s[o++],s[o++]]):e?(n.push([s[o++],s[o++],l[2]]),o++):(n.push([s[o++],s[o++]]),o++);r.push(n)}return!0}const an=(0,s.vt)()}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9719],{9762:(n,t,e)=>{e.r(t),e.d(t,{projectBuffer:()=>r});var l=e(37539);function r(n,t,e,r,i,u,s=Math.floor(n.length/3)){const o=(0,l.jd)(t,i);if(null==o)return!1;if(o===l.pO){if(n===r&&e===u)return!0;const t=e+3*s;for(let l=e,i=u;l<t;l++,i++)r[i]=n[l];return!0}const a=e+3*s;for(let t=e,l=u;t<a;t+=3,l+=3)o(n,t,r,l);return!0}},37539:(n,t,e)=>{e.d(t,{pO:()=>m,jd:()=>h,Tp:()=>p,w5:()=>f});var l=e(34727),r=e(83047),i=e(73941),u=e(79258);Math.PI;const s=u.$O.radius,o=u.$O.eccentricitySquared,a={a1:s*o,a2:s*o*s*o,a3:s*o*o/2,a4:s*o*s*o*2.5,a5:s*o+s*o*o/2,a6:1-o};u.$O.radius,u.$O.flattening,u.Sw.radius,u.Sw.flattening,u.sH.radius,u.sH.flattening,u.sH.radius;var c=e(21325);const f={2:{5:m,7:null,9:null,10:m,1:j,6:null,8:null,0:null,3:g,11:y,2:m,4:S},5:{5:m,7:null,9:null,10:m,1:j,6:null,8:null,0:null,3:g,11:y,2:m,4:S},7:{5:null,7:m,9:null,10:m,1:null,6:I,8:null,0:null,3:null,11:null,2:null,4:null},9:{5:null,7:null,9:m,10:m,1:null,6:null,8:k,0:null,3:null,11:null,2:null,4:null},3:{5:w,7:null,9:null,10:w,1:function(n,t,e,l){const r=n[t]/q,i=$-2*Math.atan(Math.exp(-n[t+1]/q)),u=q+n[t+2],s=Math.cos(i)*u;e[l]=Math.cos(r)*s,e[l+1]=Math.sin(r)*s,e[l+2]=Math.sin(i)*u},6:null,8:null,0:null,3:m,11:function(n,t,e,l){w(n,t,e,l),y(e,l,e,l)},2:w,4:function(n,t,e,l){w(n,t,e,l),S(e,l,e,l)}},4:{5:A,7:null,9:null,10:A,1:function(n,t,e,l){A(n,t,e,l),j(e,l,e,l)},6:null,8:null,0:null,3:function(n,t,e,l){A(n,t,e,l),g(e,l,e,l)},11:function(n,t,e,l){A(n,t,e,l),y(e,l,e,l)},2:A,4:m},1:{5:P,7:null,9:null,10:P,1:m,6:null,8:null,0:null,3:function(n,t,e,l){P(n,t,e,l),g(e,l,e,l)},11:function(n,t,e,l){P(n,t,e,l),y(e,l,e,l)},2:P,4:function(n,t,e,l){P(n,t,e,l),S(e,l,e,l)}},6:{5:null,7:v,9:null,10:v,1:null,6:m,8:null,0:null,3:null,11:null,2:null,4:null},8:{5:null,7:null,9:_,10:_,1:null,6:null,8:m,0:null,3:null,11:null,2:null,4:null},0:{5:null,7:null,9:null,10:null,1:null,6:null,8:null,0:m,3:null,11:null,2:null,4:null},10:{5:m,7:m,9:m,10:m,1:j,6:I,8:k,0:null,3:g,11:y,2:m,4:S},11:{5:R,7:null,9:null,10:R,1:function(n,t,e,l){R(n,t,e,l),j(e,l,e,l)},6:null,8:null,0:null,3:function(n,t,e,l){R(n,t,e,l),g(e,l,e,l)},11:m,2:R,4:function(n,t,e,l){R(n,t,e,l),S(e,l,e,l)}}};function h(n,t){return p(n,t)?.projector}function p(n,t){if(null==n||null==t)return null;if(G.source.spatialReference===n&&G.dest.spatialReference===t)return G;const e=d(n,G.source),l=d(t,G.dest);return 0===e&&0===l?(0,c.aI)(n,t)?G.projector=m:G.projector=null:G.projector=f[e][l],G}function d(n,t){return n?t.spatialReference===n?t.spatialReferenceId:(t.spatialReference=n,"metersPerUnit"in t&&(t.metersPerUnit=(0,r.GA)(n,1)),(0,i.jA)(n)?t.spatialReferenceId=1:(0,c.oT)(n)?t.spatialReferenceId=2:(0,c.K8)(n)?t.spatialReferenceId=3:(0,c.r1)(n)?t.spatialReferenceId=11:n.wkt===i.Ro.wkt?t.spatialReferenceId=4:4490===n.wkid?t.spatialReferenceId=5:n.wkt===i.FY.wkt?t.spatialReferenceId=6:n.wkt===i.LJ.wkt?t.spatialReferenceId=8:(0,c.q8)(n)?t.spatialReferenceId=7:(0,c.KQ)(n)?t.spatialReferenceId=9:t.spatialReferenceId=0):0}function m(n,t,e,l){n!==e&&(e[l++]=n[t++],e[l++]=n[t++],e[l]=n[t])}function w(n,t,e,l){e[l]=z*(n[t]/q),e[l+1]=z*($-2*Math.atan(Math.exp(-n[t+1]/q))),e[l+2]=n[t+2]}function g(n,t,e,r){!function(n,t,e,r,i){const u=.4999999*Math.PI,s=(0,l.qE)(O*n[t+1],-u,u),o=Math.sin(s);e[r++]=O*n[t]*i.radius,e[r++]=i.halfSemiMajorAxis*Math.log((1+o)/(1-o)),e[r]=n[t+2]}(n,t,e,r,u.$O)}function y(n,t,e,l){e[l]=n[t]*E,e[l+1]=n[t+1]*E,e[l+2]=n[t+2]}function R(n,t,e,l){e[l]=n[t]*T,e[l+1]=n[t+1]*T,e[l+2]=n[t+2]}function M(n,t,e,l,r){const i=r+n[t+2],u=O*n[t+1],s=O*n[t],o=Math.cos(u)*i;e[l]=Math.cos(s)*o,e[l+1]=Math.sin(s)*o,e[l+2]=Math.sin(u)*i}function k(n,t,e,l){M(n,t,e,l,u.Sw.radius)}function I(n,t,e,l){M(n,t,e,l,u.sH.radius)}function j(n,t,e,l){M(n,t,e,l,u.$O.radius)}function x(n,t,e,r,i){const u=n[t],s=n[t+1],o=n[t+2],a=Math.sqrt(u*u+s*s+o*o),c=(0,l.YN)(o/(0===a?1:a)),f=Math.atan2(s,u);e[r++]=z*f,e[r++]=z*c,e[r]=a-i}function _(n,t,e,l){x(n,t,e,l,u.Sw.radius)}function v(n,t,e,l){x(n,t,e,l,u.sH.radius)}function P(n,t,e,l){x(n,t,e,l,u.$O.radius)}function S(n,t,e,l){!function(n,t,e,l,r){const i=O*n[t],u=O*n[t+1],s=n[t+2],o=Math.sin(u),a=Math.cos(u),c=r.radius/Math.sqrt(1-r.eccentricitySquared*o*o);e[l++]=(c+s)*a*Math.cos(i),e[l++]=(c+s)*a*Math.sin(i),e[l++]=(c*(1-r.eccentricitySquared)+s)*o}(n,t,e,l,u.$O)}function A(n,t,e,l){const r=a,i=n[t],s=n[t+1],o=n[t+2];let c,f,h,p,d,m,w,g,y,R,M,k,I,j,x,_,v,P,S,A,G;c=Math.abs(o),f=i*i+s*s,h=Math.sqrt(f),p=f+o*o,d=Math.sqrt(p),A=Math.atan2(s,i),m=o*o/p,w=f/p,j=r.a2/d,x=r.a3-r.a4/d,w>.3?(g=c/d*(1+w*(r.a1+j+m*x)/d),S=Math.asin(g),R=g*g,y=Math.sqrt(1-R)):(y=h/d*(1-m*(r.a5-j-w*x)/d),S=Math.acos(y),R=1-y*y,g=Math.sqrt(R)),M=1-u.$O.eccentricitySquared*R,k=u.$O.radius/Math.sqrt(M),I=r.a6*k,j=h-k*y,x=c-I*g,v=y*j+g*x,_=y*x-g*j,P=_/(I/M+v),S+=P,G=v+_*P/2,o<0&&(S=-S),e[l++]=z*A,e[l++]=z*S,e[l]=G}const G={source:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},projector:m},O=(0,l.kU)(1),z=(0,l.KJ)(1),$=.5*Math.PI,q=u.$O.radius,E=q*Math.PI/180,T=180/(q*Math.PI)},56776:(n,t,e)=>{e.d(t,{B:()=>r,$7:()=>i,tW:()=>u,w7:()=>l,XF:()=>s});e(83047);function l(n,t){return function(n,t){return t?.mode?t.mode:function(n){return n?o:a}(n).mode}(null==n||(n.hasZ??!1),t)}function r(n,t,e){return e&&e.mode!==t?`${n} only support ${t} elevation mode`:null}function i(n,t,e){return e?.mode===t?`${n} do not support ${t} elevation mode`:null}function u(n,t){return null!=t?.featureExpressionInfo&&"0"!==t.featureExpressionInfo.expression?`${n} do not support featureExpressionInfo`:null}function s(n,t){t&&n.warn(".elevationInfo=",t)}e(16271);const o={mode:"absolute-height",offset:0},a={mode:"on-the-ground",offset:null}},62815:(n,t,e)=>{e.d(t,{N:()=>u});var l=e(83047),r=e(73941),i=e(21325);function u(n,t,e){if(null==t||null==e||e.vcsWkid||(0,i.aI)(t,e)||(0,r.xP)(t)||(0,r.xP)(e))return null;const u=(0,l.G9)(t)/(0,l.G9)(e);if(1===u)return null;switch(n){case"point":case"esriGeometryPoint":return n=>function(n,t){null!=n?.z&&(n.z*=t)}(n,u);case"polyline":case"esriGeometryPolyline":return n=>function(n,t){if(n)for(const e of n.paths)for(const n of e)n.length>2&&(n[2]*=t)}(n,u);case"polygon":case"esriGeometryPolygon":return n=>function(n,t){if(n)for(const e of n.rings)for(const n of e)n.length>2&&(n[2]*=t)}(n,u);case"multipoint":case"esriGeometryMultipoint":return n=>function(n,t){if(n)for(const e of n.points)e.length>2&&(e[2]*=t)}(n,u);case"extent":case"esriGeometryEnvelope":return n=>function(n,t){n&&null!=n.zmin&&null!=n.zmax&&(n.zmin*=t,n.zmax*=t)}(n,u);default:return null}}},98988:(n,t,e)=>{e.r(t),e.d(t,{canProjectWithoutEngine:()=>F,getTransformation:()=>K,getTransformations:()=>W,initializeProjection:()=>Y,isEqualBaseGCS:()=>J,isLoaded:()=>O,isLoadedOrLoad:()=>z,isLoadedOrLoadFor:()=>$,load:()=>E,project:()=>T,projectExtent:()=>un,projectMany:()=>Z,projectMultipoint:()=>V,projectOrLoad:()=>L,projectOrLoadMany:()=>C,projectPoint:()=>X,projectPolygon:()=>ln,projectPolyline:()=>tn,projectWithZConversion:()=>U,projectWithoutEngine:()=>Q,requiresLoad:()=>q,test:()=>H,tryProjectWithZConversion:()=>N,unload:()=>B});var l=e(49186),r=e(74887),i=e(62788),u=e(95488),s=e(51850),o=e(21276),a=e(73941),c=e(5443),f=e(48526),h=e(83290),p=e(86738),d=e(39829),m=e(82799),w=e(16930),g=e(9762),y=e(37539);function R(n,t,e,l,r,i){return M[0]=n,M[1]=t,M[2]=e,(0,g.projectBuffer)(M,l,0,r,i,0)}const M=(0,s.vt)();let k=0;class I{static fromGE(n){const t=new I;return t._wkt=n.wkt,t._wkid=n.wkid,t._isInverse=n.isInverse,t}constructor(n){this.uid=k++,n?(this._wkt=null!=n.wkt?n.wkt:null,this._wkid=null!=n.wkid?n.wkid:-1,this._isInverse=null!=n.isInverse&&!0===n.isInverse):(this._wkt=null,this._wkid=-1,this._isInverse=!1)}get wkt(){return this._wkt}set wkt(n){this._wkt=n,this.uid=k++}get wkid(){return this._wkid}set wkid(n){this._wkid=n,this.uid=k++}get isInverse(){return this._isInverse}set isInverse(n){this._isInverse=n,this.uid=k++}getInverse(){const n=new I;return n._wkt=this.wkt,n._wkid=this._wkid,n._isInverse=!this.isInverse,n}}class j{static cacheKey(n,t){return[n.wkid?.toString()??"-1",n.wkt?.toString()??"",n.wkt2?.toString()??"",t.wkid?.toString()??"-1",t.wkt?.toString()??"",t.wkt2?.toString()??""].join()}static fromGE(n){const t=new j;let e="";for(const l of n.steps){const n=I.fromGE(l);t.steps.push(n),e+=n.uid.toString()+","}return t._cachedProjection={},t._gtlistentry=null,t._chain=e,t}constructor(n){if(this.steps=[],this._cachedProjection={},this._chain="",this._gtlistentry=null,n?.steps)for(const t of n.steps)t instanceof I?this.steps.push(t):this.steps.push(new I({wkid:t.wkid,wkt:t.wkt,isInverse:t.isInverse}))}getInverse(){const n=new j;n.steps=[];for(let t=this.steps.length-1;t>=0;t--){const e=this.steps[t];n.steps.push(e.getInverse())}return n}getGTListEntry(){let n="";for(const t of this.steps)n+=t.uid.toString()+",";return n!==this._chain&&(this._gtlistentry=null,this._cachedProjection={},this._chain=n),this._gtlistentry}assignCachedGe(n,t,e){this._cachedProjection[j.cacheKey(n,t)]=e}getCachedGeTransformation(n,t){let e="";for(const n of this.steps)e+=n.uid.toString()+",";e!==this._chain&&(this._gtlistentry=null,this._cachedProjection={},this._chain=e);const l=this._cachedProjection[j.cacheKey(n,t)];return void 0===l?null:l}}var x=e(21325),_=e(62815);let v=null,P=null,S=null,A={};const G=new u.I;function O(){return!!v&&(0,h.i)()}function z(){return!!O()||((0,i.gc)(G),E(),!1)}function $(n,t){return!n||!t||F(n,t)||z()}function q(n,t){return!F(n,t)&&!O()}function E(n){return null==S&&(S=Promise.all([(0,h.l)(),e.e(9930).then(e.bind(e,49930)).then(n=>n.g),e.e(2731).then(e.bind(e,12731))])),S.then(([,t,{hydratedAdapter:e}])=>{(0,r.Te)(n),P=e,v=t.default,v._enableProjection(h.p),G.notify()})}function T(n,t,e=null,l=null){return Array.isArray(n)?0===n.length?[]:((0,o.H)(n),Z(P,n,n[0].spatialReference,t,e,l)):((0,o.f)(n),Z(P,[n],n.spatialReference,t,e,l)[0])}function Z(n,t,e,l,r=null,i=null){if(null==e||null==l)return t;if(F(e,l,r))return t.map(n=>Q(n,e,l));if(null==r&&(0,a.jA)(e))return t.map(n=>Q(n,e,w.A.WGS84)).map(n=>N(n,l));if(null==r&&(0,a.jA)(l))return t.map(n=>N(n,w.A.WGS84)).map(n=>Q(n,w.A.WGS84,l));if(null==r){const n=j.cacheKey(e,l);void 0!==A[n]?r=A[n]:(null==(r=K(e,l,void 0))&&(r=new j),A[n]=r)}if(null==v||null==n)throw new b;return null!=i?v._project(n,t,e,l,r,i):v._project(n,t,e,l,r)}function L(n,t){const e=C([n],t);return null!=e.pending?{pending:e.pending,geometry:null}:null!=e.geometries?{pending:null,geometry:e.geometries[0]}:{pending:null,geometry:null}}function C(n,t){if(!O())for(const e of n)if(null!=e&&!(0,x.aI)(e.spatialReference,t)&&(0,x.fn)(e.spatialReference)&&(0,x.fn)(t)&&!F(e.spatialReference,t))return(0,i.gc)(G),{pending:E(),geometries:null};return{pending:null,geometries:n.map(n=>null==n?null:(0,x.aI)(n.spatialReference,t)?n:(0,x.fn)(n.spatialReference)&&(0,x.fn)(t)?N(n,t):null)}}function K(n,t,e=null){if(null==n||null==t)return null;if(null==v||null==P)throw new b;const l=v._getTransformation(P,n,t,e,e?.spatialReference);return null!==l?j.fromGE(l):null}function W(n,t,e=null){if(null==v||null==P)throw new b;const l=v._getTransformationBySuitability(P,n,t,e,e?.spatialReference);if(null!==l){const n=[];for(const t of l)n.push(j.fromGE(t));return n}return[]}class b extends l.A{constructor(){super("projection:not-loaded","projection engine not fully loaded yet, please call load()")}}function B(){v=null,P=null,S=null,A={}}const H={get loadPromise(){return S}};function N(n,t){try{const e=T(n,t);if(null==e)return null;"xmin"in n&&"xmin"in e&&(e.zmin=n.zmin,e.zmax=n.zmax);const l=(0,_.N)(e.type,n.spatialReference,t);return null!=l&&l(e),e}catch(n){if(!(n instanceof b))throw n;return null}}async function U(n,t,e){const l=n.spatialReference;return null!=l&&null!=t&&await Y(l,t,null,e),N(n,t)}function F(n,t,e){return!e&&(!!(0,x.aI)(n,t)||(0,x.fn)(n)&&(0,x.fn)(t)&&!!(0,y.jd)(n,t))}function J(n,t){if((0,x.aI)(n,t))return!0;if(!(0,x.fn)(n)||!(0,x.fn)(t))return!1;const e=(0,x.oT)(n)||(0,x.K8)(n)||(0,x.x1)(n),l=(0,x.oT)(t)||(0,x.K8)(t)||(0,x.x1)(t);return e&&l}async function Y(n,t,e,l){if(O())return(0,r.NO)(l);if(Array.isArray(n)){for(const{source:t,dest:e,geographicTransformation:r}of n)if(t&&e&&!F(t,e,r))return E(l)}else if(n&&t&&!F(n,t,e))return E(l);return(0,r.NO)(l)}function Q(n,t,e){return n?"x"in n?D(n,t,new p.A,e,0):"xmin"in n?sn(n,t,new c.A,e,0):"rings"in n?rn(n,t,new d.A,e,0):"paths"in n?en(n,t,new m.A,e,0):"points"in n?nn(n,t,new f.A,e,0):null:null}function X(n,t,e=t.spatialReference,l=0){return null!=e&&null!=n.spatialReference&&null!=D(n,n.spatialReference,t,e,l)}function D(n,t,e,l,r){an[0]=n.x,an[1]=n.y;const i=n.z;return an[2]=void 0!==i?i:r,(0,g.projectBuffer)(an,t,0,an,l,0)?(e.x=an[0],e.y=an[1],e.spatialReference=l,void 0!==i||(0,a.xP)(l)?(e.z=an[2],e.hasZ=!0):(e.z=void 0,e.hasZ=!1),void 0===n.m?(e.m=void 0,e.hasM=!1):(e.m=n.m,e.hasM=!0),e):null}function V(n,t,e=t.spatialReference,l=0){return null!=n.spatialReference&&null!=e&&null!=nn(n,n.spatialReference,t,e,l)}function nn(n,t,e,l,r){const{points:i,hasZ:u,hasM:s}=n,o=[],c=i.length,f=[];for(const n of i)f.push(n[0],n[1],u?n[2]:r);if(!(0,g.projectBuffer)(f,t,0,f,l,0,c))return null;const h=u||(0,a.xP)(l);for(let n=0;n<c;++n){const t=3*n,e=f[t],l=f[t+1];h&&s?o.push([e,l,f[t+2],i[n][3]]):h?o.push([e,l,f[t+2]]):s?o.push([e,l,i[n][2]]):o.push([e,l])}return e.points=o,e.spatialReference=l,e.hasZ=u,e.hasM=s,e}function tn(n,t,e=t.spatialReference,l=0){return null!=n.spatialReference&&null!=e&&null!=en(n,n.spatialReference,t,e,l)}function en(n,t,e,l,r){const{paths:i,hasZ:u,hasM:s}=n,o=[];if(!on(i,u??!1,s??!1,t,o,l,r))return null;const c=u||(0,a.xP)(l);return e.paths=o,e.spatialReference=l,e.hasZ=c,e.hasM=s,e}function ln(n,t,e=t.spatialReference,l=0){return null!=n.spatialReference&&null!=e&&null!=rn(n,n.spatialReference,t,e,l)}function rn(n,t,e,l,r){const{rings:i,hasZ:u,hasM:s}=n,o=[];if(!on(i,u??!1,s??!1,t,o,l,r))return null;const c=u||(0,a.xP)(l);return e.rings=o,e.spatialReference=l,e.hasZ=c,e.hasM=s,e}function un(n,t,e=t.spatialReference,l=0){return null!=n.spatialReference&&null!=e&&null!=sn(n,n.spatialReference,t,e,l)}function sn(n,t,e,l,r){const{xmin:i,ymin:u,xmax:s,ymax:o,hasZ:c,hasM:f}=n;if(!R(i,u,c?n.zmin:r,t,an,l))return null;const h=c||(0,a.xP)(l);return e.xmin=an[0],e.ymin=an[1],h&&(e.zmin=an[2]),R(s,o,c?n.zmax:r,t,an,l)?(e.xmax=an[0],e.ymax=an[1],h&&(e.zmax=an[2]),f&&(e.mmin=n.mmin,e.mmax=n.mmax),e.spatialReference=l,e):null}function on(n,t,e,l,r,i,u=0){const s=new Array;for(const e of n)for(const n of e)s.push(n[0],n[1],t?n[2]:u);if(!(0,g.projectBuffer)(s,l,0,s,i,0))return!1;let o=0;r.length=0;const c=t||(0,a.xP)(i);for(const t of n){const n=new Array;for(const l of t)c&&e?n.push([s[o++],s[o++],s[o++],l[3]]):c?n.push([s[o++],s[o++],s[o++]]):e?(n.push([s[o++],s[o++],l[2]]),o++):(n.push([s[o++],s[o++]]),o++);r.push(n)}return!0}const an=(0,s.vt)()}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9695],{13069:(t,e,r)=>{r.d(e,{AG:()=>a,lk:()=>s,vD:()=>i,yS:()=>o});const n="randomUUID"in crypto;function s(){if(n)return crypto.randomUUID();const t=crypto.getRandomValues(new Uint16Array(8));t[3]=4095&t[3]|16384,t[4]=16383&t[4]|32768;const e=e=>t[e].toString(16).padStart(4,"0");return e(0)+e(1)+"-"+e(2)+"-"+e(3)+"-"+e(4)+"-"+e(5)+e(6)+e(7)}function o(){return`{${s().toUpperCase()}}`}function i(){return`{${s()}}`}function a(t){const e=t.toUpperCase();return t.startsWith("{")?e:`{${e}}`}},49695:(t,e,r)=>{r.r(e),r.d(e,{default:()=>P});var n=r(31635),s=r(79608),o=r(29133),i=r(65008),a=r(69540),l=r(25482),p=r(97768),u=r(10107),c=(r(44208),r(53966),r(87811),r(40608)),g=r(87024),y=r(86738),d=r(88625);let f=class extends((0,l.T)((0,a.OU)(i.A))){constructor(t){super(t),this.position=null,this.elevationInfo=null,this.feature=null}equals(t){return(0,p.CM)(this.position,t.position)&&(0,p.CM)(this.elevationInfo,t.elevationInfo)&&(0,o.xH)(this.feature,t.feature)}};(0,n.Cg)([(0,u.MZ)({type:y.A,json:{write:{isRequired:!0}}})],f.prototype,"position",void 0),(0,n.Cg)([(0,u.MZ)({type:d.A}),(0,g.P)()],f.prototype,"elevationInfo",void 0),(0,n.Cg)([(0,u.MZ)(o.N1)],f.prototype,"feature",void 0),f=(0,n.Cg)([(0,c.$)("esri.analysis.LineOfSightAnalysisObserver")],f);const h=f;let v=class extends((0,l.T)(a.Pw)){constructor(t){super(t),this.position=null,this.elevationInfo=null,this.feature=null}equals(t){return(0,p.CM)(this.position,t.position)&&(0,p.CM)(this.elevationInfo,t.elevationInfo)&&(0,o.xH)(this.feature,t.feature)}};(0,n.Cg)([(0,u.MZ)({type:y.A,json:{write:!0,origins:{"web-scene":{write:{isRequired:!0}}}}}),(0,g.P)()],v.prototype,"position",void 0),(0,n.Cg)([(0,u.MZ)({type:d.A}),(0,g.P)()],v.prototype,"elevationInfo",void 0),(0,n.Cg)([(0,u.MZ)(o.N1)],v.prototype,"feature",void 0),v=(0,n.Cg)([(0,c.$)("esri.analysis.LineOfSightAnalysisTarget")],v);var m=r(4576),w=r(7762),b=r(62885),C=r(36708),x=r(98988),A=r(70328),j=r(24212);const M=w.A.ofType(v);let R=class extends s.A{constructor(t){super(t),this.type="line-of-sight",this.observer=null,this.extent=null}initialize(){this.addHandles((0,C.wB)(()=>this._computeExtent(),t=>{null==t?.pending&&this._set("extent",null!=t?t.extent:null)},C.pc))}get targets(){return this._get("targets")||new M}set targets(t){this._set("targets",(0,b.V)(t,this.targets,M))}get spatialReference(){return null!=this.observer?.position?this.observer.position.spatialReference:null}get valid(){return null!=this.observer?.position}async waitComputeExtent(){const t=this._computeExtent();return null!=t?t.pending:Promise.resolve()}_computeExtent(){const t=this.spatialReference;if(null==this.observer?.position||null==t)return null;const e=t=>"absolute-height"===(0,j.w7)(t.position,t.elevationInfo),r=this.observer.position,n=(0,A.fA)(r.x,r.y,r.z,r.x,r.y,r.z);for(const e of this.targets)if(null!=e.position){const r=(0,x.projectOrLoad)(e.position,t);if(null!=r.pending)return{pending:r.pending,extent:null};if(null!=r.geometry){const{x:t,y:e,z:s}=r.geometry;(0,A.iT)(n,[t,e,s])}}const s=(0,A.w1)(n,t);return e(this.observer)&&this.targets.every(e)||(s.zmin=void 0,s.zmax=void 0),{pending:null,extent:s}}clear(){this.observer=null,this.targets.removeAll()}equals(t){return this===t||super.equals(t)&&(0,p.CM)(this.observer,t.observer)&&(0,m.aI)(this.targets.toArray(),t.targets.toArray(),(t,e)=>t.equals(e))}};(0,n.Cg)([(0,u.MZ)({type:["line-of-sight"]})],R.prototype,"type",void 0),(0,n.Cg)([(0,u.MZ)({type:h,json:{read:!0,write:!0}})],R.prototype,"observer",void 0),(0,n.Cg)([(0,u.MZ)({cast:b.H,type:M,nonNullable:!0,json:{read:!0,write:!0}})],R.prototype,"targets",null),(0,n.Cg)([(0,u.MZ)({value:null,readOnly:!0})],R.prototype,"extent",void 0),(0,n.Cg)([(0,u.MZ)()],R.prototype,"spatialReference",null),(0,n.Cg)([(0,u.MZ)({readOnly:!0})],R.prototype,"valid",null),R=(0,n.Cg)([(0,c.$)("esri.analysis.LineOfSightAnalysis")],R);var I=r(92071),O=r(4146),Z=r(16131);const U=w.A.ofType(v);let S=class extends((0,Z.q)((0,I.P)(O.A))){constructor(t){super(t),this.type="line-of-sight",this.operationalLayerType="LineOfSightLayer",this.analysis=new R,this.opacity=1}initialize(){this.addHandles((0,C.wB)(()=>this.analysis,(t,e)=>{null!=e&&e.parent===this&&(e.parent=null),null!=t&&(t.parent=this)},C.pc))}async load(){return null!=this.analysis&&this.addResolvingPromise(this.analysis.waitComputeExtent()),this}get observer(){return this.analysis?.observer}set observer(t){const{analysis:e}=this;e&&(e.observer=t)}get targets(){return null!=this.analysis?this.analysis.targets:new w.A}set targets(t){(0,b.V)(t,this.analysis?.targets)}get fullExtent(){return null!=this.analysis?this.analysis.extent:null}get spatialReference(){return null!=this.analysis?this.analysis.spatialReference:null}releaseAnalysis(t){this.analysis===t&&(this.analysis=new R)}};(0,n.Cg)([(0,u.MZ)({json:{read:!1},readOnly:!0})],S.prototype,"type",void 0),(0,n.Cg)([(0,u.MZ)({type:["LineOfSightLayer"]})],S.prototype,"operationalLayerType",void 0),(0,n.Cg)([(0,u.MZ)({type:h,json:{read:!0,write:{isRequired:!0,ignoreOrigin:!0}}})],S.prototype,"observer",null),(0,n.Cg)([(0,u.MZ)({type:U,json:{read:!0,write:{ignoreOrigin:!0,isRequired:!0}}})],S.prototype,"targets",null),(0,n.Cg)([(0,u.MZ)({type:R,nonNullable:!0,json:{read:!1,write:!1}})],S.prototype,"analysis",void 0),(0,n.Cg)([(0,u.MZ)({readOnly:!0})],S.prototype,"fullExtent",null),(0,n.Cg)([(0,u.MZ)({readOnly:!0})],S.prototype,"spatialReference",null),(0,n.Cg)([(0,u.MZ)({readOnly:!0,json:{read:!1,write:!1,origins:{service:{read:!1,write:!1},"portal-item":{read:!1,write:!1},"web-document":{read:!1,write:!1}}}})],S.prototype,"opacity",void 0),(0,n.Cg)([(0,u.MZ)({type:["show","hide"]})],S.prototype,"listMode",void 0),S=(0,n.Cg)([(0,c.$)("esri.layers.LineOfSightLayer")],S);const P=S},76553:(t,e,r)=>{function n(t){return t&&"getAtOrigin"in t&&"originOf"in t}r.d(e,{H:()=>n})},80200:(t,e,r)=>{r.d(e,{T:()=>n,d:()=>f});const n={Base64:0,Hex:1,String:2,Raw:3},s=8,o=(1<<s)-1;function i(t,e){const r=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(r>>16)<<16|65535&r}function a(t){const e=[];for(let r=0,n=t.length*s;r<n;r+=s)e[r>>5]|=(t.charCodeAt(r/s)&o)<<r%32;return e}function l(t){const e=[];for(let r=0,n=32*t.length;r<n;r+=s)e.push(String.fromCharCode(t[r>>5]>>>r%32&o));return e.join("")}function p(t,e,r,n,s,o){return i(function(t,e){return t<<e|t>>>32-e}(i(i(e,t),i(n,o)),s),r)}function u(t,e,r,n,s,o,i){return p(e&r|~e&n,t,e,s,o,i)}function c(t,e,r,n,s,o,i){return p(e&n|r&~n,t,e,s,o,i)}function g(t,e,r,n,s,o,i){return p(e^r^n,t,e,s,o,i)}function y(t,e,r,n,s,o,i){return p(r^(e|~n),t,e,s,o,i)}function d(t,e){t[e>>5]|=128<<e%32,t[14+(e+64>>>9<<4)]=e;let r=1732584193,n=-271733879,s=-1732584194,o=271733878;for(let e=0;e<t.length;e+=16){const a=r,l=n,p=s,d=o;r=u(r,n,s,o,t[e],7,-680876936),o=u(o,r,n,s,t[e+1],12,-389564586),s=u(s,o,r,n,t[e+2],17,606105819),n=u(n,s,o,r,t[e+3],22,-1044525330),r=u(r,n,s,o,t[e+4],7,-176418897),o=u(o,r,n,s,t[e+5],12,1200080426),s=u(s,o,r,n,t[e+6],17,-1473231341),n=u(n,s,o,r,t[e+7],22,-45705983),r=u(r,n,s,o,t[e+8],7,1770035416),o=u(o,r,n,s,t[e+9],12,-1958414417),s=u(s,o,r,n,t[e+10],17,-42063),n=u(n,s,o,r,t[e+11],22,-1990404162),r=u(r,n,s,o,t[e+12],7,1804603682),o=u(o,r,n,s,t[e+13],12,-40341101),s=u(s,o,r,n,t[e+14],17,-1502002290),n=u(n,s,o,r,t[e+15],22,1236535329),r=c(r,n,s,o,t[e+1],5,-165796510),o=c(o,r,n,s,t[e+6],9,-1069501632),s=c(s,o,r,n,t[e+11],14,643717713),n=c(n,s,o,r,t[e],20,-373897302),r=c(r,n,s,o,t[e+5],5,-701558691),o=c(o,r,n,s,t[e+10],9,38016083),s=c(s,o,r,n,t[e+15],14,-660478335),n=c(n,s,o,r,t[e+4],20,-405537848),r=c(r,n,s,o,t[e+9],5,568446438),o=c(o,r,n,s,t[e+14],9,-1019803690),s=c(s,o,r,n,t[e+3],14,-187363961),n=c(n,s,o,r,t[e+8],20,1163531501),r=c(r,n,s,o,t[e+13],5,-1444681467),o=c(o,r,n,s,t[e+2],9,-51403784),s=c(s,o,r,n,t[e+7],14,1735328473),n=c(n,s,o,r,t[e+12],20,-1926607734),r=g(r,n,s,o,t[e+5],4,-378558),o=g(o,r,n,s,t[e+8],11,-2022574463),s=g(s,o,r,n,t[e+11],16,1839030562),n=g(n,s,o,r,t[e+14],23,-35309556),r=g(r,n,s,o,t[e+1],4,-1530992060),o=g(o,r,n,s,t[e+4],11,1272893353),s=g(s,o,r,n,t[e+7],16,-155497632),n=g(n,s,o,r,t[e+10],23,-1094730640),r=g(r,n,s,o,t[e+13],4,681279174),o=g(o,r,n,s,t[e],11,-358537222),s=g(s,o,r,n,t[e+3],16,-722521979),n=g(n,s,o,r,t[e+6],23,76029189),r=g(r,n,s,o,t[e+9],4,-640364487),o=g(o,r,n,s,t[e+12],11,-421815835),s=g(s,o,r,n,t[e+15],16,530742520),n=g(n,s,o,r,t[e+2],23,-995338651),r=y(r,n,s,o,t[e],6,-198630844),o=y(o,r,n,s,t[e+7],10,1126891415),s=y(s,o,r,n,t[e+14],15,-1416354905),n=y(n,s,o,r,t[e+5],21,-57434055),r=y(r,n,s,o,t[e+12],6,1700485571),o=y(o,r,n,s,t[e+3],10,-1894986606),s=y(s,o,r,n,t[e+10],15,-1051523),n=y(n,s,o,r,t[e+1],21,-2054922799),r=y(r,n,s,o,t[e+8],6,1873313359),o=y(o,r,n,s,t[e+15],10,-30611744),s=y(s,o,r,n,t[e+6],15,-1560198380),n=y(n,s,o,r,t[e+13],21,1309151649),r=y(r,n,s,o,t[e+4],6,-145523070),o=y(o,r,n,s,t[e+11],10,-1120210379),s=y(s,o,r,n,t[e+2],15,718787259),n=y(n,s,o,r,t[e+9],21,-343485551),r=i(r,a),n=i(n,l),s=i(s,p),o=i(o,d)}return[r,n,s,o]}function f(t,e=n.Hex){const r=e||n.Base64,o=d(a(t),t.length*s);switch(r){case n.Raw:return o;case n.Hex:return function(t){const e="0123456789abcdef",r=[];for(let n=0,s=4*t.length;n<s;n++)r.push(e.charAt(t[n>>2]>>n%4*8+4&15)+e.charAt(t[n>>2]>>n%4*8&15));return r.join("")}(o);case n.String:return l(o);case n.Base64:return function(t){const e=[];for(let r=0,n=4*t.length;r<n;r+=3){const n=(t[r>>2]>>r%4*8&255)<<16|(t[r+1>>2]>>(r+1)%4*8&255)<<8|t[r+2>>2]>>(r+2)%4*8&255;for(let s=0;s<4;s++)8*r+6*s>32*t.length?e.push("="):e.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(n>>6*(3-s)&63))}return e.join("")}(o)}}},85648:(t,e,r)=>{r.d(e,{n:()=>s});var n=r(84952);function s(t){return o[function(t){return"json"===t.type?"application/json":"blob"===t.type?t.blob.type:function(t){const e=(0,n.Zo)(t);return l[e]||i}(t.url)}(t)]||a}const o={},i="text/plain",a=o[i],l={png:"image/png",jpeg:"image/jpeg",jpg:"image/jpg",bmp:"image/bmp",gif:"image/gif",json:"application/json",txt:"text/plain",xml:"application/xml",svg:"image/svg+xml",zip:"application/zip",pbf:"application/vnd.mapbox-vector-tile",gz:"application/gzip","bin.gz":"application/octet-stream"};for(const t in l)o[l[t]]=t},87024:(t,e,r)=>{r.d(e,{P:()=>y});var n=r(49186),s=r(80200),o=r(76553),i=r(84952),a=r(13069),l=r(96156),p=r(35666),u=r(10107),c=r(85648),g=r(97159);function y(t){const e=t?.origins??[void 0];return(r,n)=>{const s=function(t,e,r){if("resource"===t?.type)return function(t,e,r){const n=(0,l.z4)(e,r);return{type:String,read:(t,e,r)=>{const s=(0,g.r)(t,e,r);return n.type===String?s:"function"==typeof n.type?new n.type({url:s}):void 0},write:{isRequired:n.json?.write?.isRequired,writer(e,s,a,l){if(!l?.resources)return"string"==typeof e?void(s[a]=(0,g.t)(e,l)):void(s[a]=e.write({},l));const u=function(t){return null==t?null:"string"==typeof t?t:t.url}(e),y=(0,g.t)(u,{...l,verifyItemRelativeUrls:l?.verifyItemRelativeUrls?{writtenUrls:l.verifyItemRelativeUrls.writtenUrls,rootPath:void 0}:void 0},1),v=n.type!==String&&(!(0,o.H)(this)||l?.origin&&this.originIdOf(r)>(0,p.aB)(l.origin)),m={object:this,propertyName:r,value:e,targetUrl:y,dest:s,targetPropertyName:a,context:l,params:t};l?.portalItem&&y&&!(0,i.oP)(y)?v&&t?.contentAddressed?d(m):v?function(t){const{context:e,targetUrl:r,params:n,value:s,dest:o,targetPropertyName:a}=t;if(!e.portalItem)return;const l=e.portalItem.resourceFromPath(r),p=h(s,r,e),u=(0,c.n)(p),g=(0,i.Zo)(l.path),y=n?.compress??!1;u===g?(e.resources&&f({...t,resource:l,content:p,compress:y,updates:e.resources.toUpdate}),o[a]=r):d(t)}(m):function({context:t,targetUrl:e,dest:r,targetPropertyName:n}){t.portalItem&&t.resources&&(t.resources.toKeep.push({resource:t.portalItem.resourceFromPath(e),compress:!1}),r[n]=e)}(m):l?.portalItem&&(null==y||null!=(0,g.i)(y)||(0,i.w8)(y)||v)?d(m):s[a]=y}}}}(t,e,r);switch(t?.type??"other"){case"other":return{read:!0,write:!0};case"url":{const{read:t,write:e}=g.b;return{read:t,write:e}}}}(t,r,n);for(const t of e){const e=(0,u.rM)(r,t,n);for(const t in s)e[t]=s[t]}}}function d(t){const{targetUrl:e,params:r,value:o,context:l,dest:p,targetPropertyName:u}=t;if(!l.portalItem)return;const y=(0,g.p)(e),d=h(o,e,l);if(r?.contentAddressed&&"json"!==d.type)return void l.messages?.push(new n.A("persistable:contentAddressingUnsupported",`Property "${u}" is trying to serializing a resource with content of type ${d.type} with content addressing. Content addressing is only supported for json resources.`,{content:d}));const v=r?.contentAddressed&&"json"===d.type?(0,s.d)(d.jsonString):y?.filename??(0,a.lk)(),m=(0,i.fj)(r?.prefix??y?.prefix,v),w=`${m}.${(0,c.n)(d)}`;if(r?.contentAddressed&&l.resources&&"json"===d.type){const t=l.resources.toKeep.find(({resource:t})=>t.path===w)??l.resources.toAdd.find(({resource:t})=>t.path===w);if(t)return void(p[u]=t.resource.itemRelativeUrl)}const b=l.portalItem.resourceFromPath(w);(0,i.w8)(e)&&l.resources&&l.resources.pendingOperations.push((0,i.tk)(e).then(t=>{b.path=`${m}.${(0,c.n)({type:"blob",blob:t})}`,p[u]=b.itemRelativeUrl}).catch(()=>{}));const C=r?.compress??!1;l.resources&&f({...t,resource:b,content:d,compress:C,updates:l.resources.toAdd}),p[u]=b.itemRelativeUrl}function f({object:t,propertyName:e,updates:r,resource:n,content:s,compress:o}){r.push({resource:n,content:s,compress:o,finish:r=>{!function(t,e,r){"string"==typeof t[e]?t[e]=r.url:t[e].url=r.url}(t,e,r)}})}function h(t,e,r){return"string"==typeof t?{type:"url",url:e}:{type:"json",jsonString:JSON.stringify(t.toJSON(r))}}}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9695],{13069:(t,e,r)=>{r.d(e,{AG:()=>a,lk:()=>s,vD:()=>i,yS:()=>o});const n="randomUUID"in crypto;function s(){if(n)return crypto.randomUUID();const t=crypto.getRandomValues(new Uint16Array(8));t[3]=4095&t[3]|16384,t[4]=16383&t[4]|32768;const e=e=>t[e].toString(16).padStart(4,"0");return e(0)+e(1)+"-"+e(2)+"-"+e(3)+"-"+e(4)+"-"+e(5)+e(6)+e(7)}function o(){return`{${s().toUpperCase()}}`}function i(){return`{${s()}}`}function a(t){const e=t.toUpperCase();return t.startsWith("{")?e:`{${e}}`}},49695:(t,e,r)=>{r.r(e),r.d(e,{default:()=>P});var n=r(31635),s=r(79608),o=r(29133),i=r(65008),a=r(69540),l=r(25482),p=r(97768),u=r(10107),c=(r(44208),r(53966),r(87811),r(40608)),g=r(87024),y=r(86738),d=r(88625);let f=class extends((0,l.T)((0,a.OU)(i.A))){constructor(t){super(t),this.position=null,this.elevationInfo=null,this.feature=null}equals(t){return(0,p.CM)(this.position,t.position)&&(0,p.CM)(this.elevationInfo,t.elevationInfo)&&(0,o.xH)(this.feature,t.feature)}};(0,n.Cg)([(0,u.MZ)({type:y.A,json:{write:{isRequired:!0}}})],f.prototype,"position",void 0),(0,n.Cg)([(0,u.MZ)({type:d.A}),(0,g.P)()],f.prototype,"elevationInfo",void 0),(0,n.Cg)([(0,u.MZ)(o.N1)],f.prototype,"feature",void 0),f=(0,n.Cg)([(0,c.$)("esri.analysis.LineOfSightAnalysisObserver")],f);const h=f;let v=class extends((0,l.T)(a.Pw)){constructor(t){super(t),this.position=null,this.elevationInfo=null,this.feature=null}equals(t){return(0,p.CM)(this.position,t.position)&&(0,p.CM)(this.elevationInfo,t.elevationInfo)&&(0,o.xH)(this.feature,t.feature)}};(0,n.Cg)([(0,u.MZ)({type:y.A,json:{write:!0,origins:{"web-scene":{write:{isRequired:!0}}}}}),(0,g.P)()],v.prototype,"position",void 0),(0,n.Cg)([(0,u.MZ)({type:d.A}),(0,g.P)()],v.prototype,"elevationInfo",void 0),(0,n.Cg)([(0,u.MZ)(o.N1)],v.prototype,"feature",void 0),v=(0,n.Cg)([(0,c.$)("esri.analysis.LineOfSightAnalysisTarget")],v);var m=r(4576),w=r(7762),b=r(62885),C=r(36708),x=r(98988),A=r(70328),j=r(56776);const M=w.A.ofType(v);let R=class extends s.A{constructor(t){super(t),this.type="line-of-sight",this.observer=null,this.extent=null}initialize(){this.addHandles((0,C.wB)(()=>this._computeExtent(),t=>{null==t?.pending&&this._set("extent",null!=t?t.extent:null)},C.pc))}get targets(){return this._get("targets")||new M}set targets(t){this._set("targets",(0,b.V)(t,this.targets,M))}get spatialReference(){return null!=this.observer?.position?this.observer.position.spatialReference:null}get valid(){return null!=this.observer?.position}async waitComputeExtent(){const t=this._computeExtent();return null!=t?t.pending:Promise.resolve()}_computeExtent(){const t=this.spatialReference;if(null==this.observer?.position||null==t)return null;const e=t=>"absolute-height"===(0,j.w7)(t.position,t.elevationInfo),r=this.observer.position,n=(0,A.fA)(r.x,r.y,r.z,r.x,r.y,r.z);for(const e of this.targets)if(null!=e.position){const r=(0,x.projectOrLoad)(e.position,t);if(null!=r.pending)return{pending:r.pending,extent:null};if(null!=r.geometry){const{x:t,y:e,z:s}=r.geometry;(0,A.iT)(n,[t,e,s])}}const s=(0,A.w1)(n,t);return e(this.observer)&&this.targets.every(e)||(s.zmin=void 0,s.zmax=void 0),{pending:null,extent:s}}clear(){this.observer=null,this.targets.removeAll()}equals(t){return this===t||super.equals(t)&&(0,p.CM)(this.observer,t.observer)&&(0,m.aI)(this.targets.toArray(),t.targets.toArray(),(t,e)=>t.equals(e))}};(0,n.Cg)([(0,u.MZ)({type:["line-of-sight"]})],R.prototype,"type",void 0),(0,n.Cg)([(0,u.MZ)({type:h,json:{read:!0,write:!0}})],R.prototype,"observer",void 0),(0,n.Cg)([(0,u.MZ)({cast:b.H,type:M,nonNullable:!0,json:{read:!0,write:!0}})],R.prototype,"targets",null),(0,n.Cg)([(0,u.MZ)({value:null,readOnly:!0})],R.prototype,"extent",void 0),(0,n.Cg)([(0,u.MZ)()],R.prototype,"spatialReference",null),(0,n.Cg)([(0,u.MZ)({readOnly:!0})],R.prototype,"valid",null),R=(0,n.Cg)([(0,c.$)("esri.analysis.LineOfSightAnalysis")],R);var I=r(92071),O=r(4146),Z=r(16131);const U=w.A.ofType(v);let S=class extends((0,Z.q)((0,I.P)(O.A))){constructor(t){super(t),this.type="line-of-sight",this.operationalLayerType="LineOfSightLayer",this.analysis=new R,this.opacity=1}initialize(){this.addHandles((0,C.wB)(()=>this.analysis,(t,e)=>{null!=e&&e.parent===this&&(e.parent=null),null!=t&&(t.parent=this)},C.pc))}async load(){return null!=this.analysis&&this.addResolvingPromise(this.analysis.waitComputeExtent()),this}get observer(){return this.analysis?.observer}set observer(t){const{analysis:e}=this;e&&(e.observer=t)}get targets(){return null!=this.analysis?this.analysis.targets:new w.A}set targets(t){(0,b.V)(t,this.analysis?.targets)}get fullExtent(){return null!=this.analysis?this.analysis.extent:null}get spatialReference(){return null!=this.analysis?this.analysis.spatialReference:null}releaseAnalysis(t){this.analysis===t&&(this.analysis=new R)}};(0,n.Cg)([(0,u.MZ)({json:{read:!1},readOnly:!0})],S.prototype,"type",void 0),(0,n.Cg)([(0,u.MZ)({type:["LineOfSightLayer"]})],S.prototype,"operationalLayerType",void 0),(0,n.Cg)([(0,u.MZ)({type:h,json:{read:!0,write:{isRequired:!0,ignoreOrigin:!0}}})],S.prototype,"observer",null),(0,n.Cg)([(0,u.MZ)({type:U,json:{read:!0,write:{ignoreOrigin:!0,isRequired:!0}}})],S.prototype,"targets",null),(0,n.Cg)([(0,u.MZ)({type:R,nonNullable:!0,json:{read:!1,write:!1}})],S.prototype,"analysis",void 0),(0,n.Cg)([(0,u.MZ)({readOnly:!0})],S.prototype,"fullExtent",null),(0,n.Cg)([(0,u.MZ)({readOnly:!0})],S.prototype,"spatialReference",null),(0,n.Cg)([(0,u.MZ)({readOnly:!0,json:{read:!1,write:!1,origins:{service:{read:!1,write:!1},"portal-item":{read:!1,write:!1},"web-document":{read:!1,write:!1}}}})],S.prototype,"opacity",void 0),(0,n.Cg)([(0,u.MZ)({type:["show","hide"]})],S.prototype,"listMode",void 0),S=(0,n.Cg)([(0,c.$)("esri.layers.LineOfSightLayer")],S);const P=S},76553:(t,e,r)=>{function n(t){return t&&"getAtOrigin"in t&&"originOf"in t}r.d(e,{H:()=>n})},80200:(t,e,r)=>{r.d(e,{T:()=>n,d:()=>f});const n={Base64:0,Hex:1,String:2,Raw:3},s=8,o=(1<<s)-1;function i(t,e){const r=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(r>>16)<<16|65535&r}function a(t){const e=[];for(let r=0,n=t.length*s;r<n;r+=s)e[r>>5]|=(t.charCodeAt(r/s)&o)<<r%32;return e}function l(t){const e=[];for(let r=0,n=32*t.length;r<n;r+=s)e.push(String.fromCharCode(t[r>>5]>>>r%32&o));return e.join("")}function p(t,e,r,n,s,o){return i(function(t,e){return t<<e|t>>>32-e}(i(i(e,t),i(n,o)),s),r)}function u(t,e,r,n,s,o,i){return p(e&r|~e&n,t,e,s,o,i)}function c(t,e,r,n,s,o,i){return p(e&n|r&~n,t,e,s,o,i)}function g(t,e,r,n,s,o,i){return p(e^r^n,t,e,s,o,i)}function y(t,e,r,n,s,o,i){return p(r^(e|~n),t,e,s,o,i)}function d(t,e){t[e>>5]|=128<<e%32,t[14+(e+64>>>9<<4)]=e;let r=1732584193,n=-271733879,s=-1732584194,o=271733878;for(let e=0;e<t.length;e+=16){const a=r,l=n,p=s,d=o;r=u(r,n,s,o,t[e],7,-680876936),o=u(o,r,n,s,t[e+1],12,-389564586),s=u(s,o,r,n,t[e+2],17,606105819),n=u(n,s,o,r,t[e+3],22,-1044525330),r=u(r,n,s,o,t[e+4],7,-176418897),o=u(o,r,n,s,t[e+5],12,1200080426),s=u(s,o,r,n,t[e+6],17,-1473231341),n=u(n,s,o,r,t[e+7],22,-45705983),r=u(r,n,s,o,t[e+8],7,1770035416),o=u(o,r,n,s,t[e+9],12,-1958414417),s=u(s,o,r,n,t[e+10],17,-42063),n=u(n,s,o,r,t[e+11],22,-1990404162),r=u(r,n,s,o,t[e+12],7,1804603682),o=u(o,r,n,s,t[e+13],12,-40341101),s=u(s,o,r,n,t[e+14],17,-1502002290),n=u(n,s,o,r,t[e+15],22,1236535329),r=c(r,n,s,o,t[e+1],5,-165796510),o=c(o,r,n,s,t[e+6],9,-1069501632),s=c(s,o,r,n,t[e+11],14,643717713),n=c(n,s,o,r,t[e],20,-373897302),r=c(r,n,s,o,t[e+5],5,-701558691),o=c(o,r,n,s,t[e+10],9,38016083),s=c(s,o,r,n,t[e+15],14,-660478335),n=c(n,s,o,r,t[e+4],20,-405537848),r=c(r,n,s,o,t[e+9],5,568446438),o=c(o,r,n,s,t[e+14],9,-1019803690),s=c(s,o,r,n,t[e+3],14,-187363961),n=c(n,s,o,r,t[e+8],20,1163531501),r=c(r,n,s,o,t[e+13],5,-1444681467),o=c(o,r,n,s,t[e+2],9,-51403784),s=c(s,o,r,n,t[e+7],14,1735328473),n=c(n,s,o,r,t[e+12],20,-1926607734),r=g(r,n,s,o,t[e+5],4,-378558),o=g(o,r,n,s,t[e+8],11,-2022574463),s=g(s,o,r,n,t[e+11],16,1839030562),n=g(n,s,o,r,t[e+14],23,-35309556),r=g(r,n,s,o,t[e+1],4,-1530992060),o=g(o,r,n,s,t[e+4],11,1272893353),s=g(s,o,r,n,t[e+7],16,-155497632),n=g(n,s,o,r,t[e+10],23,-1094730640),r=g(r,n,s,o,t[e+13],4,681279174),o=g(o,r,n,s,t[e],11,-358537222),s=g(s,o,r,n,t[e+3],16,-722521979),n=g(n,s,o,r,t[e+6],23,76029189),r=g(r,n,s,o,t[e+9],4,-640364487),o=g(o,r,n,s,t[e+12],11,-421815835),s=g(s,o,r,n,t[e+15],16,530742520),n=g(n,s,o,r,t[e+2],23,-995338651),r=y(r,n,s,o,t[e],6,-198630844),o=y(o,r,n,s,t[e+7],10,1126891415),s=y(s,o,r,n,t[e+14],15,-1416354905),n=y(n,s,o,r,t[e+5],21,-57434055),r=y(r,n,s,o,t[e+12],6,1700485571),o=y(o,r,n,s,t[e+3],10,-1894986606),s=y(s,o,r,n,t[e+10],15,-1051523),n=y(n,s,o,r,t[e+1],21,-2054922799),r=y(r,n,s,o,t[e+8],6,1873313359),o=y(o,r,n,s,t[e+15],10,-30611744),s=y(s,o,r,n,t[e+6],15,-1560198380),n=y(n,s,o,r,t[e+13],21,1309151649),r=y(r,n,s,o,t[e+4],6,-145523070),o=y(o,r,n,s,t[e+11],10,-1120210379),s=y(s,o,r,n,t[e+2],15,718787259),n=y(n,s,o,r,t[e+9],21,-343485551),r=i(r,a),n=i(n,l),s=i(s,p),o=i(o,d)}return[r,n,s,o]}function f(t,e=n.Hex){const r=e||n.Base64,o=d(a(t),t.length*s);switch(r){case n.Raw:return o;case n.Hex:return function(t){const e="0123456789abcdef",r=[];for(let n=0,s=4*t.length;n<s;n++)r.push(e.charAt(t[n>>2]>>n%4*8+4&15)+e.charAt(t[n>>2]>>n%4*8&15));return r.join("")}(o);case n.String:return l(o);case n.Base64:return function(t){const e=[];for(let r=0,n=4*t.length;r<n;r+=3){const n=(t[r>>2]>>r%4*8&255)<<16|(t[r+1>>2]>>(r+1)%4*8&255)<<8|t[r+2>>2]>>(r+2)%4*8&255;for(let s=0;s<4;s++)8*r+6*s>32*t.length?e.push("="):e.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(n>>6*(3-s)&63))}return e.join("")}(o)}}},85648:(t,e,r)=>{r.d(e,{n:()=>s});var n=r(84952);function s(t){return o[function(t){return"json"===t.type?"application/json":"blob"===t.type?t.blob.type:function(t){const e=(0,n.Zo)(t);return l[e]||i}(t.url)}(t)]||a}const o={},i="text/plain",a=o[i],l={png:"image/png",jpeg:"image/jpeg",jpg:"image/jpg",bmp:"image/bmp",gif:"image/gif",json:"application/json",txt:"text/plain",xml:"application/xml",svg:"image/svg+xml",zip:"application/zip",pbf:"application/vnd.mapbox-vector-tile",gz:"application/gzip","bin.gz":"application/octet-stream"};for(const t in l)o[l[t]]=t},87024:(t,e,r)=>{r.d(e,{P:()=>y});var n=r(49186),s=r(80200),o=r(76553),i=r(84952),a=r(13069),l=r(96156),p=r(35666),u=r(10107),c=r(85648),g=r(97159);function y(t){const e=t?.origins??[void 0];return(r,n)=>{const s=function(t,e,r){if("resource"===t?.type)return function(t,e,r){const n=(0,l.z4)(e,r);return{type:String,read:(t,e,r)=>{const s=(0,g.r)(t,e,r);return n.type===String?s:"function"==typeof n.type?new n.type({url:s}):void 0},write:{isRequired:n.json?.write?.isRequired,writer(e,s,a,l){if(!l?.resources)return"string"==typeof e?void(s[a]=(0,g.t)(e,l)):void(s[a]=e.write({},l));const u=function(t){return null==t?null:"string"==typeof t?t:t.url}(e),y=(0,g.t)(u,{...l,verifyItemRelativeUrls:l?.verifyItemRelativeUrls?{writtenUrls:l.verifyItemRelativeUrls.writtenUrls,rootPath:void 0}:void 0},1),v=n.type!==String&&(!(0,o.H)(this)||l?.origin&&this.originIdOf(r)>(0,p.aB)(l.origin)),m={object:this,propertyName:r,value:e,targetUrl:y,dest:s,targetPropertyName:a,context:l,params:t};l?.portalItem&&y&&!(0,i.oP)(y)?v&&t?.contentAddressed?d(m):v?function(t){const{context:e,targetUrl:r,params:n,value:s,dest:o,targetPropertyName:a}=t;if(!e.portalItem)return;const l=e.portalItem.resourceFromPath(r),p=h(s,r,e),u=(0,c.n)(p),g=(0,i.Zo)(l.path),y=n?.compress??!1;u===g?(e.resources&&f({...t,resource:l,content:p,compress:y,updates:e.resources.toUpdate}),o[a]=r):d(t)}(m):function({context:t,targetUrl:e,dest:r,targetPropertyName:n}){t.portalItem&&t.resources&&(t.resources.toKeep.push({resource:t.portalItem.resourceFromPath(e),compress:!1}),r[n]=e)}(m):l?.portalItem&&(null==y||null!=(0,g.i)(y)||(0,i.w8)(y)||v)?d(m):s[a]=y}}}}(t,e,r);switch(t?.type??"other"){case"other":return{read:!0,write:!0};case"url":{const{read:t,write:e}=g.b;return{read:t,write:e}}}}(t,r,n);for(const t of e){const e=(0,u.rM)(r,t,n);for(const t in s)e[t]=s[t]}}}function d(t){const{targetUrl:e,params:r,value:o,context:l,dest:p,targetPropertyName:u}=t;if(!l.portalItem)return;const y=(0,g.p)(e),d=h(o,e,l);if(r?.contentAddressed&&"json"!==d.type)return void l.messages?.push(new n.A("persistable:contentAddressingUnsupported",`Property "${u}" is trying to serializing a resource with content of type ${d.type} with content addressing. Content addressing is only supported for json resources.`,{content:d}));const v=r?.contentAddressed&&"json"===d.type?(0,s.d)(d.jsonString):y?.filename??(0,a.lk)(),m=(0,i.fj)(r?.prefix??y?.prefix,v),w=`${m}.${(0,c.n)(d)}`;if(r?.contentAddressed&&l.resources&&"json"===d.type){const t=l.resources.toKeep.find(({resource:t})=>t.path===w)??l.resources.toAdd.find(({resource:t})=>t.path===w);if(t)return void(p[u]=t.resource.itemRelativeUrl)}const b=l.portalItem.resourceFromPath(w);(0,i.w8)(e)&&l.resources&&l.resources.pendingOperations.push((0,i.tk)(e).then(t=>{b.path=`${m}.${(0,c.n)({type:"blob",blob:t})}`,p[u]=b.itemRelativeUrl}).catch(()=>{}));const C=r?.compress??!1;l.resources&&f({...t,resource:b,content:d,compress:C,updates:l.resources.toAdd}),p[u]=b.itemRelativeUrl}function f({object:t,propertyName:e,updates:r,resource:n,content:s,compress:o}){r.push({resource:n,content:s,compress:o,finish:r=>{!function(t,e,r){"string"==typeof t[e]?t[e]=r.url:t[e].url=r.url}(t,e,r)}})}function h(t,e,r){return"string"==typeof t?{type:"url",url:e}:{type:"json",jsonString:JSON.stringify(t.toJSON(r))}}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6730],{8303:(e,t,r)=>{r.d(t,{A:()=>x});var i=r(31635),n=r(92602),s=r(70333),a=r(78888),o=r(60999),l=r(49186),u=r(53966),c=r(97768),h=r(74887),d=r(84952),p=r(10107),f=(r(44208),r(87811),r(36005)),g=r(40608),m=r(43937),y=r(77548),v=r(20655),M=r(80812),S=r(41318),w=r(10407);const x=e=>{const t=e;let x=class extends t{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){this.portalItem=(0,c.pR)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,r){if(t.itemId)return new M.default({id:t.itemId,portal:r?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem?.id)try{const{load:i}=await r.e(1204).then(r.bind(r,41204));return(0,h.Te)(t),await i({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},t)}catch(e){throw(0,h.zf)(e)||u.A.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch(e=>((0,h.QP)(e),!0)))}async setUserPrivileges(e,t){if(!n.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:r,fullEdit:i},content:{updateItem:n}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",r),this._set("userHasFullEditingPrivileges",i),this._set("userHasUpdateItemPrivileges",n)}catch(e){(0,h.QP)(e)}}async _fetchUserPrivileges(e,t){let r=this.portalItem;if(!e||!r||!r.loaded||r.sourceUrl)return this._fetchFallbackUserPrivileges(t);const i=!s.id?.findCredential(this.url),n=e===r.id;if(n&&r.portal.user)return this._getUserPrivileges(r,i);let a,o;if(n)a=r.portal.url;else try{a=await(0,y.wI)(this.url,t)}catch(e){(0,h.QP)(e)}if(!a||!(0,d.b8)(a,r.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;o=await(s.id?.getCredential(`${a}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,h.QP)(e)}const l=!0,u=!1,c=!1;if(!o)return{features:{edit:l,fullEdit:u},content:{updateItem:c}};try{if(n?await r.reload():(r=new M.default({id:e,portal:{url:a}}),await r.load(t)),r.portal.user)return this._getUserPrivileges(r,i)}catch(e){(0,h.QP)(e)}return{features:{edit:l,fullEdit:u},content:{updateItem:c}}}_getUserPrivileges(e,t){const r=(0,w.It)(e);return t&&(r.features.edit=!0),r}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,h.QP)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){const t=this.url?s.id?.findCredential(this.url):null;if(!t)return!0;const r=b.credential===t?b.user:await this._fetchEditingUser(e);return b.credential=t,b.user=r,null==r?.privileges||r.privileges.includes("features:user:edit")}async _fetchEditingUser(e){const t=this.portalItem?.portal?.user;if(t)return t;const r=s.id?.findServerInfo(this.url??"");if(!r?.owningSystemUrl)return null;const i=`${r.owningSystemUrl}/sharing/rest`,n=v.A.getDefault();if(n&&n.loaded&&(0,d.S8)(n.restUrl)===(0,d.S8)(i))return n.user;const l=`${i}/community/self`,u=null!=e?e.signal:null,c=await(0,o.Ke)((0,a.A)(l,{authMode:"no-prompt",query:{f:"json"},signal:u}));return c.ok?S.A.fromJSON(c.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const r=t?.portal,i=this.portalItem?.id&&(this.portalItem.portal||v.A.getDefault());return r&&i&&!(0,d.ut)(i.restUrl,r.restUrl)?(t.messages&&t.messages.push(new l.A("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,i.Cg)([(0,p.MZ)({type:M.default})],x.prototype,"portalItem",null),(0,i.Cg)([(0,f.w)("web-document","portalItem",["itemId"])],x.prototype,"readPortalItem",null),(0,i.Cg)([(0,m.K)("web-document","portalItem",{itemId:{type:String}})],x.prototype,"writePortalItem",null),(0,i.Cg)([(0,p.MZ)({clonable:!1})],x.prototype,"resourceReferences",void 0),(0,i.Cg)([(0,p.MZ)({type:Boolean,readOnly:!0})],x.prototype,"userHasEditingPrivileges",void 0),(0,i.Cg)([(0,p.MZ)({type:Boolean,readOnly:!0})],x.prototype,"userHasFullEditingPrivileges",void 0),(0,i.Cg)([(0,p.MZ)({type:Boolean,readOnly:!0})],x.prototype,"userHasUpdateItemPrivileges",void 0),x=(0,i.Cg)([(0,g.$)("esri.layers.mixins.PortalLayer")],x),x},b={credential:null,user:null}},10407:(e,t,r)=>{r.d(t,{It:()=>p,LG:()=>a,OM:()=>u,Sm:()=>c,Y:()=>o,bK:()=>l,mm:()=>d,sQ:()=>h});var i=r(98988),n=r(16930),s=r(28735);function a(e,t){if(!o(e,t)){const r=e.typeKeywords;r?r.push(t):e.typeKeywords=[t]}}function o(e,t){return!!e.typeKeywords?.includes(t)}function l(e){return o(e,d.HOSTED_SERVICE)}function u(e,t){const r=e.typeKeywords;if(r){const e=r.indexOf(t);e>-1&&r.splice(e,1)}}function c(e,t,r){r?a(e,t):u(e,t)}async function h(e){const t=e.clone().normalize();let r;if(t.length>1)for(const e of t)r?e.width>r.width&&(r=e):r=e;else r=t[0];return async function(e){const t=e.spatialReference;if(t.isWGS84)return e.clone();if(t.isWebMercator)return(0,s.ci)(e);const r=n.A.WGS84;return await(0,i.initializeProjection)(t,r),(0,i.project)(e,r)}(r)}const d={CHARTS:"Charts",DYNAMIC:"Dynamic",DEVELOPER_BASEMAP:"DeveloperBasemap",GROUP_LAYER_MAP:"Map",HOSTED_SERVICE:"Hosted Service",JSAPI:"ArcGIS API for JavaScript",LOCAL_SCENE:"ViewingMode-Local",METADATA:"Metadata",MULTI_LAYER:"Multilayer",ORIENTED_IMAGERY_LAYER:"OrientedImageryLayer",SINGLE_LAYER:"Singlelayer",SUBTYPE_GROUP_LAYER:"SubtypeGroupLayer",SUBTYPE_GROUP_TABLE:"SubtypeGroupTable",TABLE:"Table",TILED_IMAGERY:"Tiled Imagery"};function p(e){const{portal:t,isOrgItem:r,itemControl:i}=e,n=t.user?.privileges;let s=!n||n.includes("features:user:edit"),a=!!r&&!!n?.includes("features:user:fullEdit");const o="update"===i||"admin"===i;return o?a=s=!0:a&&(s=!0),{features:{edit:s,fullEdit:a},content:{updateItem:o}}}},25036:(e,t,r)=>{r.d(t,{j:()=>a});var i=r(31635),n=r(10107),s=(r(44208),r(53966),r(87811),r(40608));const a=e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.minScale=0,this.maxScale=0}get effectiveScaleRange(){const e={minScale:this.minScale,maxScale:this.maxScale},t=this.parent;void 0!==t?.effectiveScaleRange&&function(e,t){e.minScale=e.minScale>0?t.minScale>0?Math.min(e.minScale,t.minScale):e.minScale:t.minScale,e.maxScale=e.maxScale>0?t.maxScale>0?Math.max(e.maxScale,t.maxScale):e.maxScale:t.maxScale}(e,t.effectiveScaleRange);const r=this._get("effectiveScaleRange");return r&&r.minScale===e.minScale&&r.maxScale===e.maxScale?r:e}};return(0,i.Cg)([(0,n.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],r.prototype,"minScale",void 0),(0,i.Cg)([(0,n.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],r.prototype,"maxScale",void 0),(0,i.Cg)([(0,n.MZ)({readOnly:!0})],r.prototype,"effectiveScaleRange",null),r=(0,i.Cg)([(0,s.$)("esri.layers.mixins.ScaleRangeLayer")],r),r}},36475:(e,t,r)=>{r.r(t),r.d(t,{default:()=>b});var i=r(31635),n=r(78888),s=r(49186),a=r(53966),o=r(92071),l=r(74887),u=r(10107),c=(r(44208),r(87811),r(40608)),h=r(5443),d=r(16930),p=r(4146),f=r(52136),g=r(69208),m=r(16131),y=r(8303),v=r(25036),M=r(10873),S=r(88546),w=r(24212);let x=class extends((0,m.q)((0,y.A)((0,v.j)((0,o.P)((0,g.d)((0,f.p)(p.A))))))){constructor(e){super(e),this.operationalLayerType="GaussianSplatLayer",this.type="gaussian-splat",this.opacity=1,this.minScale=0,this.maxScale=0,this.url=null,this.rootTilesetJSON=null,this.fullExtent=new h.A(-180,-90,180,90,this.spatialReference),this.spatialReference=new d.A({wkid:4326,vcsWkid:115700}),this.esriCrsSpatialReference=null,this.esriCrsFullExtent=null}get supportedSpatialReferences(){return this.initialized&&this.esriCrsSpatialReference?[this.spatialReference,this.esriCrsSpatialReference]:[this.spatialReference]}get fullExtents(){return this.initialized&&this.esriCrsFullExtent?[this.fullExtent,this.esriCrsFullExtent]:[this.fullExtent]}set elevationInfo(e){null!=e&&"absolute-height"!==e.mode||this._set("elevationInfo",e),this._validateElevationInfo(e)}async load(e){return this.addResolvingPromise(this._doLoad(e)),this}async _doLoad(e){const t=null!=e?e.signal:null;try{await this.loadFromPortal({supportedTypes:["3DTiles Service"],validateItem:e=>{throw new s.A("portal:invalid-layer-item-type","Invalid layer item, expected '${expectedType}' ",{expectedType:"3DTiles Service"})}},e)}catch(e){(0,l.QP)(e)}if(this.url){const e=(0,n.A)(this.url,{query:{...this.customParameters,token:this.apiKey},responseType:"json",signal:t}).then(e=>{this.rootTilesetJSON=e.data;const t=(0,S._8)(this.rootTilesetJSON);this.fullExtent=(0,S.uB)(this.rootTilesetJSON,!1),this.spatialReference=this.fullExtent.spatialReference,t&&(this.esriCrsFullExtent=(0,S.uB)(this.rootTilesetJSON,!0),this.esriCrsSpatialReference=this.esriCrsFullExtent.spatialReference)},e=>{(0,l.QP)(e)});await e}}_validateElevationInfo(e){const t="Gaussian Splat layers";(0,w.XF)(a.A.getLogger(this),(0,w.B)(t,"absolute-height",e)),(0,w.XF)(a.A.getLogger(this),(0,w.tW)(t,e))}};(0,i.Cg)([(0,u.MZ)({type:["GaussianSplatLayer"]})],x.prototype,"operationalLayerType",void 0),(0,i.Cg)([(0,u.MZ)({readOnly:!0})],x.prototype,"type",void 0),(0,i.Cg)([(0,u.MZ)({readOnly:!0,json:{read:!1,write:!1,origins:{service:{read:!1,write:!1},"portal-item":{read:!1,write:!1},"web-document":{read:!1,write:!1}}}})],x.prototype,"opacity",void 0),(0,i.Cg)([(0,u.MZ)({type:Number,json:{name:"layerDefinition.minScale",write:!0,origins:{service:{read:!1,write:!1}}}})],x.prototype,"minScale",void 0),(0,i.Cg)([(0,u.MZ)({type:Number,json:{name:"layerDefinition.maxScale",write:!0,origins:{service:{read:!1,write:!1}}}})],x.prototype,"maxScale",void 0),(0,i.Cg)([(0,u.MZ)(M.OZ)],x.prototype,"url",void 0),(0,i.Cg)([(0,u.MZ)({type:h.A})],x.prototype,"fullExtent",void 0),(0,i.Cg)([(0,u.MZ)({type:d.A})],x.prototype,"spatialReference",void 0),(0,i.Cg)([(0,u.MZ)({readOnly:!0})],x.prototype,"supportedSpatialReferences",null),(0,i.Cg)([(0,u.MZ)({type:[h.A]})],x.prototype,"fullExtents",null),(0,i.Cg)([(0,u.MZ)({type:["show","hide"]})],x.prototype,"listMode",void 0),(0,i.Cg)([(0,u.MZ)(M.Yj)],x.prototype,"elevationInfo",null),x=(0,i.Cg)([(0,c.$)("esri.layers.GaussianSplatLayer")],x);const b=x},38954:(e,t,r)=>{r.d(t,{A:()=>f,B:()=>p,C:()=>c,D:()=>h,E:()=>O,F:()=>Z,H:()=>G,a:()=>T,b:()=>y,c:()=>a,d:()=>u,e:()=>C,f:()=>l,g:()=>m,h:()=>A,i:()=>o,j:()=>v,k:()=>S,l:()=>s,m:()=>_,n:()=>b,o:()=>R,q:()=>L,r:()=>x,s:()=>M,t:()=>E,u:()=>w,v:()=>I,w:()=>d,x:()=>j,y:()=>D,z:()=>g});var i=r(51850),n=r(34304);function s(e){const t=e[0],r=e[1],i=e[2];return Math.sqrt(t*t+r*r+i*i)}function a(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function o(e,t,r,i){return e[0]=t,e[1]=r,e[2]=i,e}function l(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e[2]=t[2]+r[2],e}function u(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e[2]=t[2]-r[2],e}function c(e,t,r){return e[0]=t[0]*r[0],e[1]=t[1]*r[1],e[2]=t[2]*r[2],e}function h(e,t,r){return e[0]=t[0]/r[0],e[1]=t[1]/r[1],e[2]=t[2]/r[2],e}function d(e,t){return e[0]=Math.abs(t[0]),e[1]=Math.abs(t[1]),e[2]=Math.abs(t[2]),e}function p(e,t){return e[0]=Math.sign(t[0]),e[1]=Math.sign(t[1]),e[2]=Math.sign(t[2]),e}function f(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e[2]=Math.min(t[2],r[2]),e}function g(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e[2]=Math.max(t[2],r[2]),e}function m(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e}function y(e,t,r,i){return e[0]=t[0]+r[0]*i,e[1]=t[1]+r[1]*i,e[2]=t[2]+r[2]*i,e}function v(e,t){const r=t[0]-e[0],i=t[1]-e[1],n=t[2]-e[2];return Math.sqrt(r*r+i*i+n*n)}function M(e,t){const r=t[0]-e[0],i=t[1]-e[1],n=t[2]-e[2];return r*r+i*i+n*n}function S(e){const t=e[0],r=e[1],i=e[2];return t*t+r*r+i*i}function w(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e}function x(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e}function b(e,t){const r=t[0],i=t[1],n=t[2];let s=r*r+i*i+n*n;return s>0&&(s=1/Math.sqrt(s),e[0]=t[0]*s,e[1]=t[1]*s,e[2]=t[2]*s),e}function C(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function A(e,t,r){const i=t[0],n=t[1],s=t[2],a=r[0],o=r[1],l=r[2];return e[0]=n*l-s*o,e[1]=s*a-i*l,e[2]=i*o-n*a,e}function _(e,t,r,i){const n=t[0],s=t[1],a=t[2];return e[0]=n+i*(r[0]-n),e[1]=s+i*(r[1]-s),e[2]=a+i*(r[2]-a),e}function E(e,t,r){const i=t[0],n=t[1],s=t[2];return e[0]=r[0]*i+r[4]*n+r[8]*s+r[12],e[1]=r[1]*i+r[5]*n+r[9]*s+r[13],e[2]=r[2]*i+r[6]*n+r[10]*s+r[14],e}function R(e,t,r){const i=t[0],n=t[1],s=t[2];return e[0]=i*r[0]+n*r[3]+s*r[6],e[1]=i*r[1]+n*r[4]+s*r[7],e[2]=i*r[2]+n*r[5]+s*r[8],e}function I(e,t,r){const i=r[0],n=r[1],s=r[2],a=r[3],o=t[0],l=t[1],u=t[2],c=n*u-s*l,h=s*o-i*u,d=i*l-n*o,p=n*d-s*h,f=s*c-i*d,g=i*h-n*c,m=2*a;return e[0]=o+c*m+2*p,e[1]=l+h*m+2*f,e[2]=u+d*m+2*g,e}const P=(0,i.vt)(),U=(0,i.vt)();function L(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]}function O(e,t,r){const i=r[0]-t[0],n=r[1]-t[1],s=r[2]-t[2];let a=i*i+n*n+s*s;return a>0?(a=1/Math.sqrt(a),e[0]=i*a,e[1]=n*a,e[2]=s*a,e):(e[0]=0,e[1]=0,e[2]=0,e)}const T=u,k=c,H=h,Z=v,j=M,G=s,D=S;Object.freeze(Object.defineProperty({__proto__:null,abs:d,add:l,angle:function(e,t){b(P,e),b(U,t);const r=C(P,U);return r>1?0:r<-1?Math.PI:Math.acos(r)},bezier:function(e,t,r,i,n,s){const a=1-s,o=a*a,l=s*s,u=o*a,c=3*s*o,h=3*l*a,d=l*s;return e[0]=t[0]*u+r[0]*c+i[0]*h+n[0]*d,e[1]=t[1]*u+r[1]*c+i[1]*h+n[1]*d,e[2]=t[2]*u+r[2]*c+i[2]*h+n[2]*d,e},ceil:function(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e[2]=Math.ceil(t[2]),e},clamp:function(e,t=0,r=1){return e[0]=Math.min(Math.max(e[0],t),r),e[1]=Math.min(Math.max(e[1],t),r),e[2]=Math.min(Math.max(e[2],t),r),e},copy:a,cross:A,crossAndNormalize:function(e,t,r){const i=t[0],n=t[1],s=t[2],a=r[0],o=r[1],l=r[2],u=n*l-s*o,c=s*a-i*l,h=i*o-n*a,d=Math.sqrt(u*u+c*c+h*h);return e[0]=u/d,e[1]=c/d,e[2]=h/d,e},direction:O,dist:Z,distance:v,div:H,divide:h,dot:C,equals:function(e,t){if(e===t)return!0;const r=e[0],i=e[1],s=e[2],a=t[0],o=t[1],l=t[2],u=(0,n.FD)();return Math.abs(r-a)<=u*Math.max(1,Math.abs(r),Math.abs(a))&&Math.abs(i-o)<=u*Math.max(1,Math.abs(i),Math.abs(o))&&Math.abs(s-l)<=u*Math.max(1,Math.abs(s),Math.abs(l))},exactEquals:L,floor:function(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e[2]=Math.floor(t[2]),e},hermite:function(e,t,r,i,n,s){const a=s*s,o=a*(2*s-3)+1,l=a*(s-2)+s,u=a*(s-1),c=a*(3-2*s);return e[0]=t[0]*o+r[0]*l+i[0]*u+n[0]*c,e[1]=t[1]*o+r[1]*l+i[1]*u+n[1]*c,e[2]=t[2]*o+r[2]*l+i[2]*u+n[2]*c,e},inverse:x,len:G,length:s,lerp:_,max:g,min:f,mul:k,multiply:c,negate:w,normalize:b,random:function(e,t=1){const r=n.Ov,i=2*r()*Math.PI,s=2*r()-1,a=Math.sqrt(1-s*s)*t;return e[0]=Math.cos(i)*a,e[1]=Math.sin(i)*a,e[2]=s*t,e},rotateX:function(e,t,r,i){const n=[],s=[];return n[0]=t[0]-r[0],n[1]=t[1]-r[1],n[2]=t[2]-r[2],s[0]=n[0],s[1]=n[1]*Math.cos(i)-n[2]*Math.sin(i),s[2]=n[1]*Math.sin(i)+n[2]*Math.cos(i),e[0]=s[0]+r[0],e[1]=s[1]+r[1],e[2]=s[2]+r[2],e},rotateY:function(e,t,r,i){const n=[],s=[];return n[0]=t[0]-r[0],n[1]=t[1]-r[1],n[2]=t[2]-r[2],s[0]=n[2]*Math.sin(i)+n[0]*Math.cos(i),s[1]=n[1],s[2]=n[2]*Math.cos(i)-n[0]*Math.sin(i),e[0]=s[0]+r[0],e[1]=s[1]+r[1],e[2]=s[2]+r[2],e},rotateZ:function(e,t,r,i){const n=[],s=[];return n[0]=t[0]-r[0],n[1]=t[1]-r[1],n[2]=t[2]-r[2],s[0]=n[0]*Math.cos(i)-n[1]*Math.sin(i),s[1]=n[0]*Math.sin(i)+n[1]*Math.cos(i),s[2]=n[2],e[0]=s[0]+r[0],e[1]=s[1]+r[1],e[2]=s[2]+r[2],e},round:function(e,t){return e[0]=Math.round(t[0]),e[1]=Math.round(t[1]),e[2]=Math.round(t[2]),e},scale:m,scaleAndAdd:y,set:o,sign:p,sqrDist:j,sqrLen:D,squaredDistance:M,squaredLength:S,str:function(e){return"vec3("+e[0]+", "+e[1]+", "+e[2]+")"},sub:T,subtract:u,transformMat3:R,transformMat4:E,transformQuat:I},Symbol.toStringTag,{value:"Module"}))},52136:(e,t,r)=>{r.d(t,{p:()=>a});var i=r(31635),n=r(10107),s=(r(44208),r(53966),r(87811),r(40608));const a=e=>{const t=e;let r=class extends t{get apiKey(){return this._isOverridden("apiKey")?this._get("apiKey"):"portalItem"in this?this.portalItem?.apiKey:null}set apiKey(e){null!=e?this._override("apiKey",e):(this._clearOverride("apiKey"),this.clear("apiKey","user"))}};return(0,i.Cg)([(0,n.MZ)({type:String})],r.prototype,"apiKey",null),r=(0,i.Cg)([(0,s.$)("esri.layers.mixins.APIKeyMixin")],r),r}},54239:(e,t,r)=>{r.d(t,{A:()=>y});var i,n=r(31635),s=r(4576),a=r(66552),o=r(25482),l=r(83047),u=r(67076),c=r(10107),h=(r(44208),r(53966),r(36005)),d=r(40608),p=r(43937);const f=(0,a.O)()({orthometric:"gravity-related-height",gravity_related_height:"gravity-related-height",ellipsoidal:"ellipsoidal"}),g=f.jsonValues.slice();(0,s.Xy)(g,"orthometric");const m=(0,a.O)()({meter:"meters",foot:"feet","us-foot":"us-feet","clarke-foot":"clarke-feet","clarke-yard":"clarke-yards","clarke-link":"clarke-links","sears-yard":"sears-yards","sears-foot":"sears-feet","sears-chain":"sears-chains","benoit-1895-b-chain":"benoit-1895-b-chains","indian-yard":"indian-yards","indian-1937-yard":"indian-1937-yards","gold-coast-foot":"gold-coast-feet","sears-1922-truncated-chain":"sears-1922-truncated-chains","50-kilometers":"50-kilometers","150-kilometers":"150-kilometers"});let y=i=class extends o.o{constructor(e){super(e),this.heightModel="gravity-related-height",this.heightUnit="meters",this.vertCRS=null}writeHeightModel(e,t,r){return f.write(e,t,r)}readHeightModel(e,t,r){return f.read(e)||(r?.messages&&r.messages.push(function(e,t){return new u.A("height-model:unsupported",`Height model of value '${e}' is not supported`,t)}(e,{context:r})),null)}readHeightUnit(e,t,r){return m.read(e)||(r?.messages&&r.messages.push(v(e,{context:r})),null)}readHeightUnitService(e,t,r){return(0,l.LA)(e)||m.read(e)||(r?.messages&&r.messages.push(v(e,{context:r})),null)}readVertCRS(e,t){return t.vertCRS||t.ellipsoid||t.geoid}clone(){return new i({heightModel:this.heightModel,heightUnit:this.heightUnit,vertCRS:this.vertCRS})}equals(e){return!!e&&(this===e||this.heightModel===e.heightModel&&this.heightUnit===e.heightUnit&&this.vertCRS===e.vertCRS)}static deriveUnitFromSR(e,t){const r=(0,l.k1)(t);return new i({heightModel:e.heightModel,heightUnit:r??void 0,vertCRS:e.vertCRS})}write(e,t){return t={origin:"web-scene",...t},super.write(e,t)}static fromJSON(e){if(!e)return null;const t=new i;return t.read(e,{origin:"web-scene"}),t}};function v(e,t){return new u.A("height-unit:unsupported",`Height unit of value '${e}' is not supported`,t)}(0,n.Cg)([(0,c.MZ)({type:f.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:g,default:"ellipsoidal",write:{isRequired:!0}}}}})],y.prototype,"heightModel",void 0),(0,n.Cg)([(0,p.K)("web-scene","heightModel")],y.prototype,"writeHeightModel",null),(0,n.Cg)([(0,h.w)(["web-scene","service"],"heightModel")],y.prototype,"readHeightModel",null),(0,n.Cg)([(0,c.MZ)({type:m.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:m.jsonValues,write:{writer:m.write,isRequired:!0}}}}})],y.prototype,"heightUnit",void 0),(0,n.Cg)([(0,h.w)("web-scene","heightUnit")],y.prototype,"readHeightUnit",null),(0,n.Cg)([(0,h.w)("service","heightUnit")],y.prototype,"readHeightUnitService",null),(0,n.Cg)([(0,c.MZ)({type:String,constructOnly:!0,json:{origins:{"web-scene":{write:!0}}}})],y.prototype,"vertCRS",void 0),(0,n.Cg)([(0,h.w)("service","vertCRS",["vertCRS","ellipsoid","geoid"])],y.prototype,"readVertCRS",null),y=i=(0,n.Cg)([(0,d.$)("esri.geometry.HeightModelInfo")],y)},60999:(e,t,r)=>{r.d(t,{DZ:()=>f,Ke:()=>p,Tj:()=>c,UT:()=>g,jJ:()=>u});var i=r(31635),n=r(65008),s=r(97768),a=r(74887),o=r(10107),l=r(40608);function u(e,t,r){return(0,a.Lx)(e.map((e,i)=>t.apply(r,[e,i])))}async function c(e,t,r){return(await(0,a.Lx)(e.map((e,i)=>t.apply(r,[e,i])))).map(e=>e.value)}function h(e){return{ok:!0,value:e}}function d(e){return{ok:!1,error:e}}async function p(e){if(null==e)return{ok:!1,error:new Error("no promise provided")};try{return h(await e)}catch(e){return d(e)}}async function f(e){try{return h(await e)}catch(e){return(0,a.QP)(e),d(e)}}function g(e,t){return new m(e,t)}let m=class extends n.A{get value(){return null!=(e=this._result)&&!0===e.ok?e.value:null;var e}get error(){return null!=(e=this._result)&&!1===e.ok?e.error:null;var e}get finished(){return null!=this._result}constructor(e,t){super({}),this._result=null,this._abortHandle=null,this.abort=()=>{this._abortController=(0,s.DC)(this._abortController)},this.remove=this.abort,this._abortController=new AbortController;const{signal:r}=this._abortController;this.promise=e(r),this.promise.then(e=>{this._result=h(e),this._cleanup()},e=>{this._result=d(e),this._cleanup()}),this._abortHandle=(0,a.u7)(t,this.abort)}normalizeCtorArgs(){return{}}destroy(){this.abort()}_cleanup(){this._abortHandle=(0,s.xt)(this._abortHandle),this._abortController=null}};(0,i.Cg)([(0,o.MZ)()],m.prototype,"value",null),(0,i.Cg)([(0,o.MZ)()],m.prototype,"error",null),(0,i.Cg)([(0,o.MZ)()],m.prototype,"finished",null),(0,i.Cg)([(0,o.MZ)()],m.prototype,"promise",void 0),(0,i.Cg)([(0,o.MZ)()],m.prototype,"_result",void 0),m=(0,i.Cg)([(0,l.$)("esri.core.asyncUtils.ReactiveTask")],m)},69208:(e,t,r)=>{r.d(t,{d:()=>a});var i=r(31635),n=r(10107),s=(r(44208),r(53966),r(87811),r(40608));const a=e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.customParameters=null}};return(0,i.Cg)([(0,n.MZ)({type:Object,json:{write:{overridePolicy:e=>({enabled:!!(e&&Object.keys(e).length>0)})}}})],r.prototype,"customParameters",void 0),r=(0,i.Cg)([(0,s.$)("esri.layers.mixins.CustomParametersMixin")],r),r}},69540:(e,t,r)=>{r.d(t,{OU:()=>c,Pw:()=>h});var i=r(31635),n=r(65008),s=(r(44208),r(4718)),a=(r(53966),r(97768)),o=r(88620),l=r(40608);const u=Symbol("ClonableMixin"),c=e=>{var t;const r=e;let n=class extends r{constructor(){super(...arguments),this[t]=!0}static{t=u}clone(e){const t=(0,o.oY)(this);(0,a.Lw)(t,"unable to clone instance of non-accessor class");const r=t.metadata,i=t.store,n={},l=new Map;for(const t in r){const a=r[t],o=i?.originOf(t),u=a.clonable;if(a.readOnly||!1===u||7!==o&&0!==o&&5!==o&&4!==o)continue;const c=this[t];let h=null;if("function"==typeof u)h=u(c,e);else if("reference"===u)h=c;else if(h=(0,s.TU)(c,e),null!=c&&null==h)continue;0===o?l.set(t,h):n[t]=h}const u=new(0,Object.getPrototypeOf(this).constructor)(n);if(l.size){const e=(0,o.oY)(u)?.store;if(e)for(const[t,r]of l)e.set(t,r,0)}return u}};return n=(0,i.Cg)([(0,l.$)("esri.core.Clonable")],n),n},h=c(n.A)},78553:(e,t,r)=>{r.d(t,{D:()=>s,p:()=>n});var i=r(56507);function n(e){const t=(0,i.Vr)(100*(1-e));return Math.max(0,Math.min(t,100))}function s(e){const t=1-e/100;return Math.max(0,Math.min(t,1))}},88546:(e,t,r)=>{r.d(t,{_8:()=>f,uB:()=>g});var i=r(34727),n=r(38954),s=r(51850),a=r(73941),o=r(5443),l=r(54239),u=r(16930),c=r(9762);function h(e,t){if(!Array.isArray(e)||e.length<t)return!1;for(const t of e)if("number"!=typeof t)return!1;return!0}const d=7645211,p={xmin:-180,ymin:-90,zmin:-450,xmax:180,ymax:90,zmax:8850};function f(e){return!(!(e.extensions?.ESRI_crs?.wkid||e.extensions?.ESRI_crs?.latestWkid||e.extensions?.ESRI_crs?.wkt)||!e.root?.extensions?.ESRI_crs?.boundingVolume?.box&&!e.root?.extensions?.ESRI_crs?.boundingVolume?.sphere)}function g(e,t=!1){let r=new u.A({wkid:4326,vcsWkid:115700}),l=e.root?.boundingVolume,f=!1,g=e?.root?.transform;if(t&&(e.extensions?.ESRI_crs?.wkid||e.extensions?.ESRI_crs?.latestWkid||e.extensions?.ESRI_crs?.wkt)&&(e.root?.extensions?.ESRI_crs?.boundingVolume?.box||e.root?.extensions?.ESRI_crs?.boundingVolume?.sphere))r=new u.A(e.extensions?.ESRI_crs),l=e.root?.extensions?.ESRI_crs?.boundingVolume,g=e.root?.transform,f=!0;else if(!l)return new o.A(-180,-90,180,90,r);if(l.box){const e=l?.box;if(e[3]>d&&e[7]>d&&e[11]>d)return new o.A({...p,spatialReference:r})}const m=(0,s.vt)();if(!f&&l.region&&h(l.region,6)){const e=l.region,t=(0,i.KJ)(e[0]),n=(0,i.KJ)(e[1]),s=e[4],a=(0,i.KJ)(e[2]),u=(0,i.KJ)(e[3]),c=e[5];return new o.A({xmin:t,ymin:n,zmin:s,xmax:a,ymax:u,zmax:c,spatialReference:r})}if(l.sphere&&h(l.sphere,4)){const e=l.sphere,t=(0,s.fA)(e[0],e[1],e[2]),i=e[3]/Math.sqrt(3),d=(0,s.vt)();(0,n.d)(d,t,(0,s.fA)(i,i,i));const p=(0,s.vt)();if((0,n.f)(p,t,(0,s.fA)(i,i,i)),g&&h(g,16)){const e=g;(0,n.t)(m,d,e),(0,n.c)(d,m),(0,n.t)(m,p,e),(0,n.c)(p,m)}f||((0,c.projectBuffer)(d,a.Ro,0,d,u.A.WGS84,0),(0,c.projectBuffer)(p,a.Ro,0,p,u.A.WGS84,0));const y=(0,s.vt)(),v=(0,s.vt)();return(0,n.A)(y,d,p),(0,n.z)(v,d,p),new o.A({xmin:y[0],ymin:y[1],zmin:y[2],xmax:v[0],ymax:v[1],zmax:v[2],spatialReference:r})}if(l.box&&h(l.box,12)){const e=l.box,t=(0,s.fA)(e[0],e[1],e[2]),i=(0,s.fA)(e[3],e[4],e[5]),d=(0,s.fA)(e[6],e[7],e[8]),p=(0,s.fA)(e[9],e[10],e[11]),m=[];for(let e=0;e<8;++e)m.push((0,s.vt)());if((0,n.f)(m[0],t,i),(0,n.f)(m[0],m[0],d),(0,n.f)(m[0],m[0],p),(0,n.a)(m[1],t,i),(0,n.f)(m[1],m[1],d),(0,n.f)(m[1],m[1],p),(0,n.f)(m[2],t,i),(0,n.a)(m[2],m[2],d),(0,n.f)(m[2],m[2],p),(0,n.a)(m[3],t,i),(0,n.a)(m[3],m[3],d),(0,n.f)(m[3],m[3],p),(0,n.f)(m[4],t,i),(0,n.f)(m[4],m[4],d),(0,n.a)(m[4],m[4],p),(0,n.a)(m[5],t,i),(0,n.f)(m[5],m[5],d),(0,n.a)(m[5],m[5],p),(0,n.f)(m[6],t,i),(0,n.a)(m[6],m[6],d),(0,n.a)(m[6],m[6],p),(0,n.a)(m[7],t,i),(0,n.a)(m[7],m[7],d),(0,n.a)(m[7],m[7],p),g&&h(g,16)){const e=g;for(let t=0;t<8;++t)(0,n.t)(m[t],m[t],e)}const y=(0,s.fA)(-Number.MAX_VALUE,-Number.MAX_VALUE,-Number.MAX_VALUE),v=(0,s.fA)(Number.MAX_VALUE,Number.MAX_VALUE,Number.MAX_VALUE);for(let e=0;e<8;++e)f||(0,c.projectBuffer)(m[e],a.Ro,0,m[e],u.A.WGS84,0),(0,n.A)(v,v,m[e]),(0,n.z)(y,y,m[e]);return new o.A({xmin:v[0],ymin:v[1],zmin:v[2],xmax:y[0],ymax:y[1],zmax:y[2],spatialReference:r})}return new o.A(-180,-90,180,90,r)}new Map([[5773,new l.A({heightModel:"gravity-related-height",heightUnit:"meters",vertCRS:"EGM96_Geoid"})],[3855,new l.A({heightModel:"gravity-related-height",heightUnit:"meters",vertCRS:"EGM2008_Geoid"})],[115700,new l.A({heightModel:"ellipsoidal",heightUnit:"meters",vertCRS:"WGS_1984"})],[115701,new l.A({heightModel:"ellipsoidal",heightUnit:"meters",vertCRS:"ETRS_1989"})]])}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6730],{8303:(e,t,r)=>{r.d(t,{A:()=>x});var i=r(31635),n=r(92602),s=r(70333),a=r(78888),o=r(60999),l=r(49186),u=r(53966),c=r(97768),h=r(74887),d=r(84952),p=r(10107),f=(r(44208),r(87811),r(36005)),g=r(40608),m=r(43937),y=r(77548),v=r(20655),M=r(80812),S=r(41318),w=r(10407);const x=e=>{const t=e;let x=class extends t{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){this.portalItem=(0,c.pR)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,r){if(t.itemId)return new M.default({id:t.itemId,portal:r?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem?.id)try{const{load:i}=await r.e(1204).then(r.bind(r,41204));return(0,h.Te)(t),await i({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},t)}catch(e){throw(0,h.zf)(e)||u.A.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch(e=>((0,h.QP)(e),!0)))}async setUserPrivileges(e,t){if(!n.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:r,fullEdit:i},content:{updateItem:n}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",r),this._set("userHasFullEditingPrivileges",i),this._set("userHasUpdateItemPrivileges",n)}catch(e){(0,h.QP)(e)}}async _fetchUserPrivileges(e,t){let r=this.portalItem;if(!e||!r||!r.loaded||r.sourceUrl)return this._fetchFallbackUserPrivileges(t);const i=!s.id?.findCredential(this.url),n=e===r.id;if(n&&r.portal.user)return this._getUserPrivileges(r,i);let a,o;if(n)a=r.portal.url;else try{a=await(0,y.wI)(this.url,t)}catch(e){(0,h.QP)(e)}if(!a||!(0,d.b8)(a,r.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;o=await(s.id?.getCredential(`${a}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,h.QP)(e)}const l=!0,u=!1,c=!1;if(!o)return{features:{edit:l,fullEdit:u},content:{updateItem:c}};try{if(n?await r.reload():(r=new M.default({id:e,portal:{url:a}}),await r.load(t)),r.portal.user)return this._getUserPrivileges(r,i)}catch(e){(0,h.QP)(e)}return{features:{edit:l,fullEdit:u},content:{updateItem:c}}}_getUserPrivileges(e,t){const r=(0,w.It)(e);return t&&(r.features.edit=!0),r}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,h.QP)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){const t=this.url?s.id?.findCredential(this.url):null;if(!t)return!0;const r=b.credential===t?b.user:await this._fetchEditingUser(e);return b.credential=t,b.user=r,null==r?.privileges||r.privileges.includes("features:user:edit")}async _fetchEditingUser(e){const t=this.portalItem?.portal?.user;if(t)return t;const r=s.id?.findServerInfo(this.url??"");if(!r?.owningSystemUrl)return null;const i=`${r.owningSystemUrl}/sharing/rest`,n=v.A.getDefault();if(n&&n.loaded&&(0,d.S8)(n.restUrl)===(0,d.S8)(i))return n.user;const l=`${i}/community/self`,u=null!=e?e.signal:null,c=await(0,o.Ke)((0,a.A)(l,{authMode:"no-prompt",query:{f:"json"},signal:u}));return c.ok?S.A.fromJSON(c.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const r=t?.portal,i=this.portalItem?.id&&(this.portalItem.portal||v.A.getDefault());return r&&i&&!(0,d.ut)(i.restUrl,r.restUrl)?(t.messages&&t.messages.push(new l.A("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,i.Cg)([(0,p.MZ)({type:M.default})],x.prototype,"portalItem",null),(0,i.Cg)([(0,f.w)("web-document","portalItem",["itemId"])],x.prototype,"readPortalItem",null),(0,i.Cg)([(0,m.K)("web-document","portalItem",{itemId:{type:String}})],x.prototype,"writePortalItem",null),(0,i.Cg)([(0,p.MZ)({clonable:!1})],x.prototype,"resourceReferences",void 0),(0,i.Cg)([(0,p.MZ)({type:Boolean,readOnly:!0})],x.prototype,"userHasEditingPrivileges",void 0),(0,i.Cg)([(0,p.MZ)({type:Boolean,readOnly:!0})],x.prototype,"userHasFullEditingPrivileges",void 0),(0,i.Cg)([(0,p.MZ)({type:Boolean,readOnly:!0})],x.prototype,"userHasUpdateItemPrivileges",void 0),x=(0,i.Cg)([(0,g.$)("esri.layers.mixins.PortalLayer")],x),x},b={credential:null,user:null}},10407:(e,t,r)=>{r.d(t,{It:()=>p,LG:()=>a,OM:()=>u,Sm:()=>c,Y:()=>o,bK:()=>l,mm:()=>d,sQ:()=>h});var i=r(98988),n=r(16930),s=r(28735);function a(e,t){if(!o(e,t)){const r=e.typeKeywords;r?r.push(t):e.typeKeywords=[t]}}function o(e,t){return!!e.typeKeywords?.includes(t)}function l(e){return o(e,d.HOSTED_SERVICE)}function u(e,t){const r=e.typeKeywords;if(r){const e=r.indexOf(t);e>-1&&r.splice(e,1)}}function c(e,t,r){r?a(e,t):u(e,t)}async function h(e){const t=e.clone().normalize();let r;if(t.length>1)for(const e of t)r?e.width>r.width&&(r=e):r=e;else r=t[0];return async function(e){const t=e.spatialReference;if(t.isWGS84)return e.clone();if(t.isWebMercator)return(0,s.ci)(e);const r=n.A.WGS84;return await(0,i.initializeProjection)(t,r),(0,i.project)(e,r)}(r)}const d={CHARTS:"Charts",DYNAMIC:"Dynamic",DEVELOPER_BASEMAP:"DeveloperBasemap",GROUP_LAYER_MAP:"Map",HOSTED_SERVICE:"Hosted Service",JSAPI:"ArcGIS API for JavaScript",LOCAL_SCENE:"ViewingMode-Local",METADATA:"Metadata",MULTI_LAYER:"Multilayer",ORIENTED_IMAGERY_LAYER:"OrientedImageryLayer",SINGLE_LAYER:"Singlelayer",SUBTYPE_GROUP_LAYER:"SubtypeGroupLayer",SUBTYPE_GROUP_TABLE:"SubtypeGroupTable",TABLE:"Table",TILED_IMAGERY:"Tiled Imagery"};function p(e){const{portal:t,isOrgItem:r,itemControl:i}=e,n=t.user?.privileges;let s=!n||n.includes("features:user:edit"),a=!!r&&!!n?.includes("features:user:fullEdit");const o="update"===i||"admin"===i;return o?a=s=!0:a&&(s=!0),{features:{edit:s,fullEdit:a},content:{updateItem:o}}}},25036:(e,t,r)=>{r.d(t,{j:()=>a});var i=r(31635),n=r(10107),s=(r(44208),r(53966),r(87811),r(40608));const a=e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.minScale=0,this.maxScale=0}get effectiveScaleRange(){const e={minScale:this.minScale,maxScale:this.maxScale},t=this.parent;void 0!==t?.effectiveScaleRange&&function(e,t){e.minScale=e.minScale>0?t.minScale>0?Math.min(e.minScale,t.minScale):e.minScale:t.minScale,e.maxScale=e.maxScale>0?t.maxScale>0?Math.max(e.maxScale,t.maxScale):e.maxScale:t.maxScale}(e,t.effectiveScaleRange);const r=this._get("effectiveScaleRange");return r&&r.minScale===e.minScale&&r.maxScale===e.maxScale?r:e}};return(0,i.Cg)([(0,n.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],r.prototype,"minScale",void 0),(0,i.Cg)([(0,n.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],r.prototype,"maxScale",void 0),(0,i.Cg)([(0,n.MZ)({readOnly:!0})],r.prototype,"effectiveScaleRange",null),r=(0,i.Cg)([(0,s.$)("esri.layers.mixins.ScaleRangeLayer")],r),r}},36475:(e,t,r)=>{r.r(t),r.d(t,{default:()=>b});var i=r(31635),n=r(78888),s=r(49186),a=r(53966),o=r(92071),l=r(74887),u=r(10107),c=(r(44208),r(87811),r(40608)),h=r(5443),d=r(16930),p=r(4146),f=r(52136),g=r(69208),m=r(16131),y=r(8303),v=r(25036),M=r(10873),S=r(88546),w=r(56776);let x=class extends((0,m.q)((0,y.A)((0,v.j)((0,o.P)((0,g.d)((0,f.p)(p.A))))))){constructor(e){super(e),this.operationalLayerType="GaussianSplatLayer",this.type="gaussian-splat",this.opacity=1,this.minScale=0,this.maxScale=0,this.url=null,this.rootTilesetJSON=null,this.fullExtent=new h.A(-180,-90,180,90,this.spatialReference),this.spatialReference=new d.A({wkid:4326,vcsWkid:115700}),this.esriCrsSpatialReference=null,this.esriCrsFullExtent=null}get supportedSpatialReferences(){return this.initialized&&this.esriCrsSpatialReference?[this.spatialReference,this.esriCrsSpatialReference]:[this.spatialReference]}get fullExtents(){return this.initialized&&this.esriCrsFullExtent?[this.fullExtent,this.esriCrsFullExtent]:[this.fullExtent]}set elevationInfo(e){null!=e&&"absolute-height"!==e.mode||this._set("elevationInfo",e),this._validateElevationInfo(e)}async load(e){return this.addResolvingPromise(this._doLoad(e)),this}async _doLoad(e){const t=null!=e?e.signal:null;try{await this.loadFromPortal({supportedTypes:["3DTiles Service"],validateItem:e=>{throw new s.A("portal:invalid-layer-item-type","Invalid layer item, expected '${expectedType}' ",{expectedType:"3DTiles Service"})}},e)}catch(e){(0,l.QP)(e)}if(this.url){const e=(0,n.A)(this.url,{query:{...this.customParameters,token:this.apiKey},responseType:"json",signal:t}).then(e=>{this.rootTilesetJSON=e.data;const t=(0,S._8)(this.rootTilesetJSON);this.fullExtent=(0,S.uB)(this.rootTilesetJSON,!1),this.spatialReference=this.fullExtent.spatialReference,t&&(this.esriCrsFullExtent=(0,S.uB)(this.rootTilesetJSON,!0),this.esriCrsSpatialReference=this.esriCrsFullExtent.spatialReference)},e=>{(0,l.QP)(e)});await e}}_validateElevationInfo(e){const t="Gaussian Splat layers";(0,w.XF)(a.A.getLogger(this),(0,w.B)(t,"absolute-height",e)),(0,w.XF)(a.A.getLogger(this),(0,w.tW)(t,e))}};(0,i.Cg)([(0,u.MZ)({type:["GaussianSplatLayer"]})],x.prototype,"operationalLayerType",void 0),(0,i.Cg)([(0,u.MZ)({readOnly:!0})],x.prototype,"type",void 0),(0,i.Cg)([(0,u.MZ)({readOnly:!0,json:{read:!1,write:!1,origins:{service:{read:!1,write:!1},"portal-item":{read:!1,write:!1},"web-document":{read:!1,write:!1}}}})],x.prototype,"opacity",void 0),(0,i.Cg)([(0,u.MZ)({type:Number,json:{name:"layerDefinition.minScale",write:!0,origins:{service:{read:!1,write:!1}}}})],x.prototype,"minScale",void 0),(0,i.Cg)([(0,u.MZ)({type:Number,json:{name:"layerDefinition.maxScale",write:!0,origins:{service:{read:!1,write:!1}}}})],x.prototype,"maxScale",void 0),(0,i.Cg)([(0,u.MZ)(M.OZ)],x.prototype,"url",void 0),(0,i.Cg)([(0,u.MZ)({type:h.A})],x.prototype,"fullExtent",void 0),(0,i.Cg)([(0,u.MZ)({type:d.A})],x.prototype,"spatialReference",void 0),(0,i.Cg)([(0,u.MZ)({readOnly:!0})],x.prototype,"supportedSpatialReferences",null),(0,i.Cg)([(0,u.MZ)({type:[h.A]})],x.prototype,"fullExtents",null),(0,i.Cg)([(0,u.MZ)({type:["show","hide"]})],x.prototype,"listMode",void 0),(0,i.Cg)([(0,u.MZ)(M.Yj)],x.prototype,"elevationInfo",null),x=(0,i.Cg)([(0,c.$)("esri.layers.GaussianSplatLayer")],x);const b=x},38954:(e,t,r)=>{r.d(t,{A:()=>f,B:()=>p,C:()=>c,D:()=>h,E:()=>O,F:()=>Z,H:()=>D,a:()=>T,b:()=>y,c:()=>a,d:()=>u,e:()=>C,f:()=>l,g:()=>m,h:()=>A,i:()=>o,j:()=>v,k:()=>S,l:()=>s,m:()=>_,n:()=>b,o:()=>R,q:()=>L,r:()=>x,s:()=>M,t:()=>E,u:()=>w,v:()=>I,w:()=>d,x:()=>j,y:()=>G,z:()=>g});var i=r(51850),n=r(34304);function s(e){const t=e[0],r=e[1],i=e[2];return Math.sqrt(t*t+r*r+i*i)}function a(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function o(e,t,r,i){return e[0]=t,e[1]=r,e[2]=i,e}function l(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e[2]=t[2]+r[2],e}function u(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e[2]=t[2]-r[2],e}function c(e,t,r){return e[0]=t[0]*r[0],e[1]=t[1]*r[1],e[2]=t[2]*r[2],e}function h(e,t,r){return e[0]=t[0]/r[0],e[1]=t[1]/r[1],e[2]=t[2]/r[2],e}function d(e,t){return e[0]=Math.abs(t[0]),e[1]=Math.abs(t[1]),e[2]=Math.abs(t[2]),e}function p(e,t){return e[0]=Math.sign(t[0]),e[1]=Math.sign(t[1]),e[2]=Math.sign(t[2]),e}function f(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e[2]=Math.min(t[2],r[2]),e}function g(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e[2]=Math.max(t[2],r[2]),e}function m(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e}function y(e,t,r,i){return e[0]=t[0]+r[0]*i,e[1]=t[1]+r[1]*i,e[2]=t[2]+r[2]*i,e}function v(e,t){const r=t[0]-e[0],i=t[1]-e[1],n=t[2]-e[2];return Math.sqrt(r*r+i*i+n*n)}function M(e,t){const r=t[0]-e[0],i=t[1]-e[1],n=t[2]-e[2];return r*r+i*i+n*n}function S(e){const t=e[0],r=e[1],i=e[2];return t*t+r*r+i*i}function w(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e}function x(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e}function b(e,t){const r=t[0],i=t[1],n=t[2];let s=r*r+i*i+n*n;return s>0&&(s=1/Math.sqrt(s),e[0]=t[0]*s,e[1]=t[1]*s,e[2]=t[2]*s),e}function C(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function A(e,t,r){const i=t[0],n=t[1],s=t[2],a=r[0],o=r[1],l=r[2];return e[0]=n*l-s*o,e[1]=s*a-i*l,e[2]=i*o-n*a,e}function _(e,t,r,i){const n=t[0],s=t[1],a=t[2];return e[0]=n+i*(r[0]-n),e[1]=s+i*(r[1]-s),e[2]=a+i*(r[2]-a),e}function E(e,t,r){const i=t[0],n=t[1],s=t[2];return e[0]=r[0]*i+r[4]*n+r[8]*s+r[12],e[1]=r[1]*i+r[5]*n+r[9]*s+r[13],e[2]=r[2]*i+r[6]*n+r[10]*s+r[14],e}function R(e,t,r){const i=t[0],n=t[1],s=t[2];return e[0]=i*r[0]+n*r[3]+s*r[6],e[1]=i*r[1]+n*r[4]+s*r[7],e[2]=i*r[2]+n*r[5]+s*r[8],e}function I(e,t,r){const i=r[0],n=r[1],s=r[2],a=r[3],o=t[0],l=t[1],u=t[2],c=n*u-s*l,h=s*o-i*u,d=i*l-n*o,p=n*d-s*h,f=s*c-i*d,g=i*h-n*c,m=2*a;return e[0]=o+c*m+2*p,e[1]=l+h*m+2*f,e[2]=u+d*m+2*g,e}const P=(0,i.vt)(),U=(0,i.vt)();function L(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]}function O(e,t,r){const i=r[0]-t[0],n=r[1]-t[1],s=r[2]-t[2];let a=i*i+n*n+s*s;return a>0?(a=1/Math.sqrt(a),e[0]=i*a,e[1]=n*a,e[2]=s*a,e):(e[0]=0,e[1]=0,e[2]=0,e)}const T=u,k=c,H=h,Z=v,j=M,D=s,G=S;Object.freeze(Object.defineProperty({__proto__:null,abs:d,add:l,angle:function(e,t){b(P,e),b(U,t);const r=C(P,U);return r>1?0:r<-1?Math.PI:Math.acos(r)},bezier:function(e,t,r,i,n,s){const a=1-s,o=a*a,l=s*s,u=o*a,c=3*s*o,h=3*l*a,d=l*s;return e[0]=t[0]*u+r[0]*c+i[0]*h+n[0]*d,e[1]=t[1]*u+r[1]*c+i[1]*h+n[1]*d,e[2]=t[2]*u+r[2]*c+i[2]*h+n[2]*d,e},ceil:function(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e[2]=Math.ceil(t[2]),e},clamp:function(e,t=0,r=1){return e[0]=Math.min(Math.max(e[0],t),r),e[1]=Math.min(Math.max(e[1],t),r),e[2]=Math.min(Math.max(e[2],t),r),e},copy:a,cross:A,crossAndNormalize:function(e,t,r){const i=t[0],n=t[1],s=t[2],a=r[0],o=r[1],l=r[2],u=n*l-s*o,c=s*a-i*l,h=i*o-n*a,d=Math.sqrt(u*u+c*c+h*h);return e[0]=u/d,e[1]=c/d,e[2]=h/d,e},direction:O,dist:Z,distance:v,div:H,divide:h,dot:C,equals:function(e,t){if(e===t)return!0;const r=e[0],i=e[1],s=e[2],a=t[0],o=t[1],l=t[2],u=(0,n.FD)();return Math.abs(r-a)<=u*Math.max(1,Math.abs(r),Math.abs(a))&&Math.abs(i-o)<=u*Math.max(1,Math.abs(i),Math.abs(o))&&Math.abs(s-l)<=u*Math.max(1,Math.abs(s),Math.abs(l))},exactEquals:L,floor:function(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e[2]=Math.floor(t[2]),e},hermite:function(e,t,r,i,n,s){const a=s*s,o=a*(2*s-3)+1,l=a*(s-2)+s,u=a*(s-1),c=a*(3-2*s);return e[0]=t[0]*o+r[0]*l+i[0]*u+n[0]*c,e[1]=t[1]*o+r[1]*l+i[1]*u+n[1]*c,e[2]=t[2]*o+r[2]*l+i[2]*u+n[2]*c,e},inverse:x,len:D,length:s,lerp:_,max:g,min:f,mul:k,multiply:c,negate:w,normalize:b,random:function(e,t=1){const r=n.Ov,i=2*r()*Math.PI,s=2*r()-1,a=Math.sqrt(1-s*s)*t;return e[0]=Math.cos(i)*a,e[1]=Math.sin(i)*a,e[2]=s*t,e},rotateX:function(e,t,r,i){const n=[],s=[];return n[0]=t[0]-r[0],n[1]=t[1]-r[1],n[2]=t[2]-r[2],s[0]=n[0],s[1]=n[1]*Math.cos(i)-n[2]*Math.sin(i),s[2]=n[1]*Math.sin(i)+n[2]*Math.cos(i),e[0]=s[0]+r[0],e[1]=s[1]+r[1],e[2]=s[2]+r[2],e},rotateY:function(e,t,r,i){const n=[],s=[];return n[0]=t[0]-r[0],n[1]=t[1]-r[1],n[2]=t[2]-r[2],s[0]=n[2]*Math.sin(i)+n[0]*Math.cos(i),s[1]=n[1],s[2]=n[2]*Math.cos(i)-n[0]*Math.sin(i),e[0]=s[0]+r[0],e[1]=s[1]+r[1],e[2]=s[2]+r[2],e},rotateZ:function(e,t,r,i){const n=[],s=[];return n[0]=t[0]-r[0],n[1]=t[1]-r[1],n[2]=t[2]-r[2],s[0]=n[0]*Math.cos(i)-n[1]*Math.sin(i),s[1]=n[0]*Math.sin(i)+n[1]*Math.cos(i),s[2]=n[2],e[0]=s[0]+r[0],e[1]=s[1]+r[1],e[2]=s[2]+r[2],e},round:function(e,t){return e[0]=Math.round(t[0]),e[1]=Math.round(t[1]),e[2]=Math.round(t[2]),e},scale:m,scaleAndAdd:y,set:o,sign:p,sqrDist:j,sqrLen:G,squaredDistance:M,squaredLength:S,str:function(e){return"vec3("+e[0]+", "+e[1]+", "+e[2]+")"},sub:T,subtract:u,transformMat3:R,transformMat4:E,transformQuat:I},Symbol.toStringTag,{value:"Module"}))},52136:(e,t,r)=>{r.d(t,{p:()=>a});var i=r(31635),n=r(10107),s=(r(44208),r(53966),r(87811),r(40608));const a=e=>{const t=e;let r=class extends t{get apiKey(){return this._isOverridden("apiKey")?this._get("apiKey"):"portalItem"in this?this.portalItem?.apiKey:null}set apiKey(e){null!=e?this._override("apiKey",e):(this._clearOverride("apiKey"),this.clear("apiKey","user"))}};return(0,i.Cg)([(0,n.MZ)({type:String})],r.prototype,"apiKey",null),r=(0,i.Cg)([(0,s.$)("esri.layers.mixins.APIKeyMixin")],r),r}},54239:(e,t,r)=>{r.d(t,{A:()=>y});var i,n=r(31635),s=r(4576),a=r(66552),o=r(25482),l=r(83047),u=r(67076),c=r(10107),h=(r(44208),r(53966),r(36005)),d=r(40608),p=r(43937);const f=(0,a.O)()({orthometric:"gravity-related-height",gravity_related_height:"gravity-related-height",ellipsoidal:"ellipsoidal"}),g=f.jsonValues.slice();(0,s.Xy)(g,"orthometric");const m=(0,a.O)()({meter:"meters",foot:"feet","us-foot":"us-feet","clarke-foot":"clarke-feet","clarke-yard":"clarke-yards","clarke-link":"clarke-links","sears-yard":"sears-yards","sears-foot":"sears-feet","sears-chain":"sears-chains","benoit-1895-b-chain":"benoit-1895-b-chains","indian-yard":"indian-yards","indian-1937-yard":"indian-1937-yards","gold-coast-foot":"gold-coast-feet","sears-1922-truncated-chain":"sears-1922-truncated-chains","50-kilometers":"50-kilometers","150-kilometers":"150-kilometers"});let y=i=class extends o.o{constructor(e){super(e),this.heightModel="gravity-related-height",this.heightUnit="meters",this.vertCRS=null}writeHeightModel(e,t,r){return f.write(e,t,r)}readHeightModel(e,t,r){return f.read(e)||(r?.messages&&r.messages.push(function(e,t){return new u.A("height-model:unsupported",`Height model of value '${e}' is not supported`,t)}(e,{context:r})),null)}readHeightUnit(e,t,r){return m.read(e)||(r?.messages&&r.messages.push(v(e,{context:r})),null)}readHeightUnitService(e,t,r){return(0,l.LA)(e)||m.read(e)||(r?.messages&&r.messages.push(v(e,{context:r})),null)}readVertCRS(e,t){return t.vertCRS||t.ellipsoid||t.geoid}clone(){return new i({heightModel:this.heightModel,heightUnit:this.heightUnit,vertCRS:this.vertCRS})}equals(e){return!!e&&(this===e||this.heightModel===e.heightModel&&this.heightUnit===e.heightUnit&&this.vertCRS===e.vertCRS)}static deriveUnitFromSR(e,t){const r=(0,l.k1)(t);return new i({heightModel:e.heightModel,heightUnit:r??void 0,vertCRS:e.vertCRS})}write(e,t){return t={origin:"web-scene",...t},super.write(e,t)}static fromJSON(e){if(!e)return null;const t=new i;return t.read(e,{origin:"web-scene"}),t}};function v(e,t){return new u.A("height-unit:unsupported",`Height unit of value '${e}' is not supported`,t)}(0,n.Cg)([(0,c.MZ)({type:f.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:g,default:"ellipsoidal",write:{isRequired:!0}}}}})],y.prototype,"heightModel",void 0),(0,n.Cg)([(0,p.K)("web-scene","heightModel")],y.prototype,"writeHeightModel",null),(0,n.Cg)([(0,h.w)(["web-scene","service"],"heightModel")],y.prototype,"readHeightModel",null),(0,n.Cg)([(0,c.MZ)({type:m.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:m.jsonValues,write:{writer:m.write,isRequired:!0}}}}})],y.prototype,"heightUnit",void 0),(0,n.Cg)([(0,h.w)("web-scene","heightUnit")],y.prototype,"readHeightUnit",null),(0,n.Cg)([(0,h.w)("service","heightUnit")],y.prototype,"readHeightUnitService",null),(0,n.Cg)([(0,c.MZ)({type:String,constructOnly:!0,json:{origins:{"web-scene":{write:!0}}}})],y.prototype,"vertCRS",void 0),(0,n.Cg)([(0,h.w)("service","vertCRS",["vertCRS","ellipsoid","geoid"])],y.prototype,"readVertCRS",null),y=i=(0,n.Cg)([(0,d.$)("esri.geometry.HeightModelInfo")],y)},60999:(e,t,r)=>{r.d(t,{DZ:()=>f,Ke:()=>p,Tj:()=>c,UT:()=>g,jJ:()=>u});var i=r(31635),n=r(65008),s=r(97768),a=r(74887),o=r(10107),l=r(40608);function u(e,t,r){return(0,a.Lx)(e.map((e,i)=>t.apply(r,[e,i])))}async function c(e,t,r){return(await(0,a.Lx)(e.map((e,i)=>t.apply(r,[e,i])))).map(e=>e.value)}function h(e){return{ok:!0,value:e}}function d(e){return{ok:!1,error:e}}async function p(e){if(null==e)return{ok:!1,error:new Error("no promise provided")};try{return h(await e)}catch(e){return d(e)}}async function f(e){try{return h(await e)}catch(e){return(0,a.QP)(e),d(e)}}function g(e,t){return new m(e,t)}let m=class extends n.A{get value(){return null!=(e=this._result)&&!0===e.ok?e.value:null;var e}get error(){return null!=(e=this._result)&&!1===e.ok?e.error:null;var e}get finished(){return null!=this._result}constructor(e,t){super({}),this._result=null,this._abortHandle=null,this.abort=()=>{this._abortController=(0,s.DC)(this._abortController)},this.remove=this.abort,this._abortController=new AbortController;const{signal:r}=this._abortController;this.promise=e(r),this.promise.then(e=>{this._result=h(e),this._cleanup()},e=>{this._result=d(e),this._cleanup()}),this._abortHandle=(0,a.u7)(t,this.abort)}normalizeCtorArgs(){return{}}destroy(){this.abort()}_cleanup(){this._abortHandle=(0,s.xt)(this._abortHandle),this._abortController=null}};(0,i.Cg)([(0,o.MZ)()],m.prototype,"value",null),(0,i.Cg)([(0,o.MZ)()],m.prototype,"error",null),(0,i.Cg)([(0,o.MZ)()],m.prototype,"finished",null),(0,i.Cg)([(0,o.MZ)()],m.prototype,"promise",void 0),(0,i.Cg)([(0,o.MZ)()],m.prototype,"_result",void 0),m=(0,i.Cg)([(0,l.$)("esri.core.asyncUtils.ReactiveTask")],m)},69208:(e,t,r)=>{r.d(t,{d:()=>a});var i=r(31635),n=r(10107),s=(r(44208),r(53966),r(87811),r(40608));const a=e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.customParameters=null}};return(0,i.Cg)([(0,n.MZ)({type:Object,json:{write:{overridePolicy:e=>({enabled:!!(e&&Object.keys(e).length>0)})}}})],r.prototype,"customParameters",void 0),r=(0,i.Cg)([(0,s.$)("esri.layers.mixins.CustomParametersMixin")],r),r}},69540:(e,t,r)=>{r.d(t,{OU:()=>c,Pw:()=>h});var i=r(31635),n=r(65008),s=(r(44208),r(4718)),a=(r(53966),r(97768)),o=r(88620),l=r(40608);const u=Symbol("ClonableMixin"),c=e=>{var t;const r=e;let n=class extends r{constructor(){super(...arguments),this[t]=!0}static{t=u}clone(e){const t=(0,o.oY)(this);(0,a.Lw)(t,"unable to clone instance of non-accessor class");const r=t.metadata,i=t.store,n={},l=new Map;for(const t in r){const a=r[t],o=i?.originOf(t),u=a.clonable;if(a.readOnly||!1===u||7!==o&&0!==o&&5!==o&&4!==o)continue;const c=this[t];let h=null;if("function"==typeof u)h=u(c,e);else if("reference"===u)h=c;else if(h=(0,s.TU)(c,e),null!=c&&null==h)continue;0===o?l.set(t,h):n[t]=h}const u=new(0,Object.getPrototypeOf(this).constructor)(n);if(l.size){const e=(0,o.oY)(u)?.store;if(e)for(const[t,r]of l)e.set(t,r,0)}return u}};return n=(0,i.Cg)([(0,l.$)("esri.core.Clonable")],n),n},h=c(n.A)},78553:(e,t,r)=>{r.d(t,{D:()=>s,p:()=>n});var i=r(56507);function n(e){const t=(0,i.Vr)(100*(1-e));return Math.max(0,Math.min(t,100))}function s(e){const t=1-e/100;return Math.max(0,Math.min(t,1))}},88546:(e,t,r)=>{r.d(t,{_8:()=>f,uB:()=>g});var i=r(34727),n=r(38954),s=r(51850),a=r(73941),o=r(5443),l=r(54239),u=r(16930),c=r(9762);function h(e,t){if(!Array.isArray(e)||e.length<t)return!1;for(const t of e)if("number"!=typeof t)return!1;return!0}const d=7645211,p={xmin:-180,ymin:-90,zmin:-450,xmax:180,ymax:90,zmax:8850};function f(e){return!(!(e.extensions?.ESRI_crs?.wkid||e.extensions?.ESRI_crs?.latestWkid||e.extensions?.ESRI_crs?.wkt)||!e.root?.extensions?.ESRI_crs?.boundingVolume?.box&&!e.root?.extensions?.ESRI_crs?.boundingVolume?.sphere)}function g(e,t=!1){let r=new u.A({wkid:4326,vcsWkid:115700}),l=e.root?.boundingVolume,f=!1,g=e?.root?.transform;if(t&&(e.extensions?.ESRI_crs?.wkid||e.extensions?.ESRI_crs?.latestWkid||e.extensions?.ESRI_crs?.wkt)&&(e.root?.extensions?.ESRI_crs?.boundingVolume?.box||e.root?.extensions?.ESRI_crs?.boundingVolume?.sphere))r=new u.A(e.extensions?.ESRI_crs),l=e.root?.extensions?.ESRI_crs?.boundingVolume,g=e.root?.transform,f=!0;else if(!l)return new o.A(-180,-90,180,90,r);if(l.box){const e=l?.box;if(e[3]>d&&e[7]>d&&e[11]>d)return new o.A({...p,spatialReference:r})}const m=(0,s.vt)();if(!f&&l.region&&h(l.region,6)){const e=l.region,t=(0,i.KJ)(e[0]),n=(0,i.KJ)(e[1]),s=e[4],a=(0,i.KJ)(e[2]),u=(0,i.KJ)(e[3]),c=e[5];return new o.A({xmin:t,ymin:n,zmin:s,xmax:a,ymax:u,zmax:c,spatialReference:r})}if(l.sphere&&h(l.sphere,4)){const e=l.sphere,t=(0,s.fA)(e[0],e[1],e[2]),i=e[3]/Math.sqrt(3),d=(0,s.vt)();(0,n.d)(d,t,(0,s.fA)(i,i,i));const p=(0,s.vt)();if((0,n.f)(p,t,(0,s.fA)(i,i,i)),g&&h(g,16)){const e=g;(0,n.t)(m,d,e),(0,n.c)(d,m),(0,n.t)(m,p,e),(0,n.c)(p,m)}f||((0,c.projectBuffer)(d,a.Ro,0,d,u.A.WGS84,0),(0,c.projectBuffer)(p,a.Ro,0,p,u.A.WGS84,0));const y=(0,s.vt)(),v=(0,s.vt)();return(0,n.A)(y,d,p),(0,n.z)(v,d,p),new o.A({xmin:y[0],ymin:y[1],zmin:y[2],xmax:v[0],ymax:v[1],zmax:v[2],spatialReference:r})}if(l.box&&h(l.box,12)){const e=l.box,t=(0,s.fA)(e[0],e[1],e[2]),i=(0,s.fA)(e[3],e[4],e[5]),d=(0,s.fA)(e[6],e[7],e[8]),p=(0,s.fA)(e[9],e[10],e[11]),m=[];for(let e=0;e<8;++e)m.push((0,s.vt)());if((0,n.f)(m[0],t,i),(0,n.f)(m[0],m[0],d),(0,n.f)(m[0],m[0],p),(0,n.a)(m[1],t,i),(0,n.f)(m[1],m[1],d),(0,n.f)(m[1],m[1],p),(0,n.f)(m[2],t,i),(0,n.a)(m[2],m[2],d),(0,n.f)(m[2],m[2],p),(0,n.a)(m[3],t,i),(0,n.a)(m[3],m[3],d),(0,n.f)(m[3],m[3],p),(0,n.f)(m[4],t,i),(0,n.f)(m[4],m[4],d),(0,n.a)(m[4],m[4],p),(0,n.a)(m[5],t,i),(0,n.f)(m[5],m[5],d),(0,n.a)(m[5],m[5],p),(0,n.f)(m[6],t,i),(0,n.a)(m[6],m[6],d),(0,n.a)(m[6],m[6],p),(0,n.a)(m[7],t,i),(0,n.a)(m[7],m[7],d),(0,n.a)(m[7],m[7],p),g&&h(g,16)){const e=g;for(let t=0;t<8;++t)(0,n.t)(m[t],m[t],e)}const y=(0,s.fA)(-Number.MAX_VALUE,-Number.MAX_VALUE,-Number.MAX_VALUE),v=(0,s.fA)(Number.MAX_VALUE,Number.MAX_VALUE,Number.MAX_VALUE);for(let e=0;e<8;++e)f||(0,c.projectBuffer)(m[e],a.Ro,0,m[e],u.A.WGS84,0),(0,n.A)(v,v,m[e]),(0,n.z)(y,y,m[e]);return new o.A({xmin:v[0],ymin:v[1],zmin:v[2],xmax:y[0],ymax:y[1],zmax:y[2],spatialReference:r})}return new o.A(-180,-90,180,90,r)}new Map([[5773,new l.A({heightModel:"gravity-related-height",heightUnit:"meters",vertCRS:"EGM96_Geoid"})],[3855,new l.A({heightModel:"gravity-related-height",heightUnit:"meters",vertCRS:"EGM2008_Geoid"})],[115700,new l.A({heightModel:"ellipsoidal",heightUnit:"meters",vertCRS:"WGS_1984"})],[115701,new l.A({heightModel:"ellipsoidal",heightUnit:"meters",vertCRS:"ETRS_1989"})],[6360,new l.A({heightModel:"gravity-related-height",heightUnit:"us-feet",vertCRS:"NAVD88_height_(ftUS)"})],[7837,new l.A({heightModel:"gravity-related-height",heightUnit:"meters",vertCRS:"DHHN2016_(height) "})]])}}]);
|