@arcgis/core 4.32.0-next.20241113 → 4.32.0-next.20241114
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/{3bc3a78ce8de37f5c546.js → 5a39a370a29fc2fb15bf.js} +14 -17
- package/assets/esri/core/workers/chunks/7f8fea3af2cf333510d6.js +1 -0
- package/assets/esri/core/workers/chunks/{ad44b0f749e5ca5a9772.js → 8e5bfcebb10194d0cbc1.js} +1 -1
- package/assets/esri/core/workers/chunks/{8f0afcbf5372e53e0e2c.js → a44aaa90078f494f5022.js} +1 -1
- package/assets/esri/core/workers/chunks/e901edcadc64f89f95d5.js +1 -0
- package/assets/esri/themes/base/widgets/_Tooltip.scss +14 -2
- package/assets/esri/themes/dark/main.css +1 -1
- package/assets/esri/themes/light/main.css +1 -1
- package/assets/esri/themes/light/view.css +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/Tooltip.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/Tooltip_en.json +1 -1
- package/chunks/ComponentShader.glsl.js +26 -26
- package/chunks/RibbonLine.glsl.js +35 -33
- package/layers/ImageryLayer.js +1 -1
- package/layers/ImageryTileLayer.js +1 -1
- package/layers/WCSLayer.js +1 -1
- package/layers/mixins/ArcGISImageService.js +1 -1
- package/layers/support/rasterFieldUtils.js +1 -1
- package/package.json +1 -1
- package/support/revision.js +1 -1
- package/views/3d/layers/I3SMeshView3D.js +1 -1
- package/views/3d/layers/i3s/I3SAsyncElevationUpdater.js +1 -1
- package/views/3d/layers/support/FeatureVisibilityFilter.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterial.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/ComponentTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/shader/ComponentShader.glsl.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/shader/VertexDiscardMode.js +5 -0
- package/views/3d/webgl-engine/core/shaderLibrary/util/DiscardOrAdjustAlpha.glsl.js +5 -5
- package/views/3d/webgl-engine/shaders/OutputColorHighlightOID.glsl.js +2 -5
- package/views/interactive/tooltip/components/TooltipEditableField.js +1 -1
- package/views/interactive/tooltip/fields/TooltipField.js +1 -1
- package/views/layers/ImageryTileLayerView.js +1 -1
- package/assets/esri/core/workers/chunks/197522478b2fd57b422c.js +0 -1
- package/assets/esri/core/workers/chunks/262b2889e003db5e6043.js +0 -1
- package/views/3d/webgl-engine/collections/Component/Material/shader/VertexDiscardByOpacity.glsl.js +0 -7
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6071],{69208:(e,t,i)=>{i.d(t,{d:()=>o});var r=i(90237),n=i(10107),a=(i(44208),i(53966),i(87811),i(40608));const o=e=>{let t=class extends e{constructor(){super(...arguments),this.customParameters=null}};return(0,r._)([(0,n.MZ)({type:Object,json:{write:{overridePolicy:e=>({enabled:!!(e&&Object.keys(e).length>0)})}}})],t.prototype,"customParameters",void 0),t=(0,r._)([(0,a.$)("esri.layers.mixins.CustomParametersMixin")],t),t}},8303:(e,t,i)=>{i.d(t,{A:()=>v});var r=i(90237),n=i(92602),a=i(70333),o=i(78888),s=i(60999),l=i(49186),c=i(53966),u=i(97768),d=i(74887),p=i(84952),m=i(10107),M=(i(44208),i(87811),i(36005)),g=i(40608),y=i(43937),h=i(83531),w=i(20655),I=i(80812),f=i(41318),A=i(10407);const v=e=>{let t=class extends e{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 I.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 Promise.all([i.e(5356),i.e(1204)]).then(i.bind(i,41204));return(0,d.Te)(t),await r({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap},t)}catch(e){throw(0,d.zf)(e)||c.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,d.QP)(e),!0))))}async setUserPrivileges(e,t){if(!n.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:i,fullEdit:r},content:{updateItem:n}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",i),this._set("userHasFullEditingPrivileges",r),this._set("userHasUpdateItemPrivileges",n)}catch(e){(0,d.QP)(e)}}async _fetchUserPrivileges(e,t){let i=this.portalItem;if(!e||!i||!i.loaded||i.sourceUrl)return this._fetchFallbackUserPrivileges(t);const r=e===i.id;if(r&&i.portal.user)return(0,A.It)(i);let n,o;if(r)n=i.portal.url;else try{n=await(0,h.wI)(this.url,t)}catch(e){(0,d.QP)(e)}if(!n||!(0,p.b8)(n,i.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;o=await(a.id?.getCredential(`${n}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,d.QP)(e)}const s=!0,l=!1,c=!1;if(!o)return{features:{edit:s,fullEdit:l},content:{updateItem:c}};try{if(r?await i.reload():(i=new I.default({id:e,portal:{url:n}}),await i.load(t)),i.portal.user)return(0,A.It)(i)}catch(e){(0,d.QP)(e)}return{features:{edit:s,fullEdit:l},content:{updateItem:c}}}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,d.QP)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){const t=this.url?a.id?.findCredential(this.url):null;if(!t)return!0;const i=b.credential===t?b.user:await this._fetchEditingUser(e);return b.credential=t,b.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=a.id?.findServerInfo(this.url??"");if(!i?.owningSystemUrl)return null;const r=`${i.owningSystemUrl}/sharing/rest`,n=w.A.getDefault();if(n&&n.loaded&&(0,p.S8)(n.restUrl)===(0,p.S8)(r))return n.user;const l=`${r}/community/self`,c=null!=e?e.signal:null,u=await(0,s.Ke)((0,o.A)(l,{authMode:"no-prompt",query:{f:"json"},signal:c}));return u.ok?f.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||w.A.getDefault());return i&&r&&!(0,p.ut)(r.restUrl,i.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,r._)([(0,m.MZ)({type:I.default})],t.prototype,"portalItem",null),(0,r._)([(0,M.w)("web-document","portalItem",["itemId"])],t.prototype,"readPortalItem",null),(0,r._)([(0,y.K)("web-document","portalItem",{itemId:{type:String}})],t.prototype,"writePortalItem",null),(0,r._)([(0,m.MZ)({clonable:!1})],t.prototype,"resourceReferences",void 0),(0,r._)([(0,m.MZ)({type:Boolean,readOnly:!0})],t.prototype,"userHasEditingPrivileges",void 0),(0,r._)([(0,m.MZ)({type:Boolean,readOnly:!0})],t.prototype,"userHasFullEditingPrivileges",void 0),(0,r._)([(0,m.MZ)({type:Boolean,readOnly:!0})],t.prototype,"userHasUpdateItemPrivileges",void 0),t=(0,r._)([(0,g.$)("esri.layers.mixins.PortalLayer")],t),t},b={credential:null,user:null}},45617:(e,t,i)=>{i.d(t,{A:()=>d});var r,n=i(90237),a=i(25482),o=i(4718),s=i(10107),l=i(56507),c=i(40608);let u=r=class extends a.oY{constructor(e){super(e),this.variableName=null,this.dimensionName=null,this.values=[],this.isSlice=!1}clone(){return new r({variableName:this.variableName,dimensionName:this.dimensionName,values:(0,o.o8)(this.values),isSlice:this.isSlice})}};(0,n._)([(0,s.MZ)({type:String,json:{write:!0}})],u.prototype,"variableName",void 0),(0,n._)([(0,s.MZ)({type:String,json:{write:!0}})],u.prototype,"dimensionName",void 0),(0,n._)([(0,s.MZ)({type:l.gK.array(l.gK.oneOf([l.gK.native(Number),l.gK.array(l.gK.native(Number))])),json:{write:!0}})],u.prototype,"values",void 0),(0,n._)([(0,s.MZ)({type:Boolean,json:{write:!0}})],u.prototype,"isSlice",void 0),u=r=(0,n._)([(0,c.$)("esri.layers.support.DimensionalDefinition")],u);const d=u},85675:(e,t,i)=>{i.d(t,{A:()=>f});var r,n=i(90237),a=i(66552),o=i(25482),s=i(4718),l=i(10107),c=i(79901),u=i(36005),d=i(40608),p=i(43937),m=i(56507),M=i(86738),g=i(45617),y=i(22796);const h=(0,a.O)()({MT_FIRST:"first",MT_LAST:"last",MT_MIN:"min",MT_MAX:"max",MT_MEAN:"mean",MT_BLEND:"blend",MT_SUM:"sum"}),w=(0,a.O)()({esriMosaicNone:"none",esriMosaicCenter:"center",esriMosaicNadir:"nadir",esriMosaicViewpoint:"viewpoint",esriMosaicAttribute:"attribute",esriMosaicLockRaster:"lock-raster",esriMosaicNorthwest:"northwest",esriMosaicSeamline:"seamline"});let I=r=class extends o.oY{constructor(e){super(e),this.ascending=!0,this.itemRasterFunction=null,this.lockRasterIds=null,this.method=null,this.multidimensionalDefinition=null,this.objectIds=null,this.operation=null,this.sortField=null,this.sortValue=null,this.viewpoint=null,this.where=null}readAscending(e,t){return null!=t.ascending?t.ascending:null==t.sortAscending||t.sortAscending}readMethod(e,t){return function(e){let t;switch(e?e.toLowerCase().replace("esrimosaic",""):""){case"byattribute":case"attribute":t="esriMosaicAttribute";break;case"lockraster":t="esriMosaicLockRaster";break;case"center":t="esriMosaicCenter";break;case"northwest":t="esriMosaicNorthwest";break;case"nadir":t="esriMosaicNadir";break;case"viewpoint":t="esriMosaicViewpoint";break;case"seamline":t="esriMosaicSeamline";break;default:t="esriMosaicNone"}return w.fromJSON(t)}(t.mosaicMethod||t.defaultMosaicMethod)}writeMultidimensionalDefinition(e,t,i){null!=e&&(e=e.filter((({variableName:e,dimensionName:t})=>e&&"*"!==e||t))).length&&(t[i]=e.map((e=>e.toJSON())))}readOperation(e,t){const i=t.mosaicOperation,r=t.mosaicOperator?.toLowerCase(),n=i||(r?h.toJSON(r):null);return h.fromJSON(n)||"first"}castSortValue(e){return null==e||"string"==typeof e||"number"==typeof e?e:`${e}`}clone(){return new r({ascending:this.ascending,itemRasterFunction:(0,s.o8)(this.itemRasterFunction),lockRasterIds:(0,s.o8)(this.lockRasterIds),method:this.method,multidimensionalDefinition:(0,s.o8)(this.multidimensionalDefinition),objectIds:(0,s.o8)(this.objectIds),operation:this.operation,sortField:this.sortField,sortValue:this.sortValue,viewpoint:(0,s.o8)(this.viewpoint),where:this.where})}};(0,n._)([(0,l.MZ)({type:Boolean,json:{write:!0}})],I.prototype,"ascending",void 0),(0,n._)([(0,u.w)("ascending",["ascending","sortAscending"])],I.prototype,"readAscending",null),(0,n._)([(0,l.MZ)({type:y.A,json:{name:"itemRenderingRule",write:!0}})],I.prototype,"itemRasterFunction",void 0),(0,n._)([(0,l.MZ)({type:[m.jz],json:{write:{overridePolicy(){return{enabled:"lock-raster"===this.method}}}}})],I.prototype,"lockRasterIds",void 0),(0,n._)([(0,l.MZ)({type:String,json:{type:w.jsonValues,write:{target:"mosaicMethod",writer:w.write}}})],I.prototype,"method",void 0),(0,n._)([(0,u.w)("method",["mosaicMethod","defaultMosaicMethod"])],I.prototype,"readMethod",null),(0,n._)([(0,l.MZ)({type:[g.A],json:{write:!0}})],I.prototype,"multidimensionalDefinition",void 0),(0,n._)([(0,p.K)("multidimensionalDefinition")],I.prototype,"writeMultidimensionalDefinition",null),(0,n._)([(0,l.MZ)({type:[m.jz],json:{name:"fids",write:!0}})],I.prototype,"objectIds",void 0),(0,n._)([(0,l.MZ)({json:{type:h.jsonValues,read:{reader:h.read},write:{target:"mosaicOperation",writer:h.write}}})],I.prototype,"operation",void 0),(0,n._)([(0,u.w)("operation",["mosaicOperation","mosaicOperator"])],I.prototype,"readOperation",null),(0,n._)([(0,l.MZ)({type:String,json:{write:{overridePolicy(){return{enabled:"attribute"===this.method}}}}})],I.prototype,"sortField",void 0),(0,n._)([(0,l.MZ)({type:[String,Number],json:{write:{allowNull:!0,overridePolicy(){return{enabled:"attribute"===this.method,allowNull:!0}}}}})],I.prototype,"sortValue",void 0),(0,n._)([(0,c.w)("sortValue")],I.prototype,"castSortValue",null),(0,n._)([(0,l.MZ)({type:M.A,json:{write:!0}})],I.prototype,"viewpoint",void 0),(0,n._)([(0,l.MZ)({type:String,json:{write:!0}})],I.prototype,"where",void 0),I=r=(0,n._)([(0,d.$)("esri.layers.support.MosaicRule")],I);const f=I},43577:(e,t,i)=>{i.d(t,{A:()=>M});var r,n=i(90237),a=(i(59456),i(25482)),o=i(10107),s=(i(44208),i(53966),i(87811),i(40608)),l=i(5443),c=i(39829),u=i(65864),d=i(45617);const p={base:i(91075).A,key:"type",typeMap:{extent:l.A,polygon:c.A}};let m=r=class extends a.oY{constructor(e){super(e),this.areaOfInterest=null,this.subsetDefinitions=null}get dimensions(){const{subsetDefinitions:e}=this;if(null==e||0===e.length)return[];const t=new Map;e.forEach((e=>{if(!e.dimensionName)return;let i,r;if(Array.isArray(e.values[0])){const t=e.values;i=t[0][0],r=t[e.values.length-1][1]}else{const t=e.values;i=t[0],r=t[e.values.length-1]}if(t.has(e.dimensionName)){const n=t.get(e.dimensionName);n[0]=Math.min(i,n[0]),n[1]=Math.max(r,n[1])}else t.set(e.dimensionName,[i,r])}));const i=[];for(const e of t)i.push({name:e[0],extent:e[1]});return i}get variables(){const{subsetDefinitions:e}=this;if(null==e||0===e.length)return[];const t=new Set;return e.forEach((e=>{e.variableName&&t.add(e.variableName)})),[...t]}clone(){const e=this.subsetDefinitions?.map((e=>e.clone())),t=this.areaOfInterest?this.areaOfInterest.clone():this.areaOfInterest;return new r({areaOfInterest:t,subsetDefinitions:e})}};(0,n._)([(0,o.MZ)({types:p,json:{read:u.rS,write:!0}})],m.prototype,"areaOfInterest",void 0),(0,n._)([(0,o.MZ)({readOnly:!0})],m.prototype,"dimensions",null),(0,n._)([(0,o.MZ)({readOnly:!0})],m.prototype,"variables",null),(0,n._)([(0,o.MZ)({type:[d.A],json:{write:!0}})],m.prototype,"subsetDefinitions",void 0),m=r=(0,n._)([(0,s.$)("esri.layers.support.MultidimensionalSubset")],m);const M=m},22796:(e,t,i)=>{i.d(t,{A:()=>x});var r=i(90237),n=i(25482),a=i(4718),o=i(10107),s=(i(44208),i(53966),i(93223)),l=i(36005),c=i(40608),u=i(43937),d=i(66552),p=i(56507),m=(i(87811),i(13868));let M=class extends n.oY{constructor(){super(...arguments),this.pixelType="unknown"}};(0,r._)([(0,o.MZ)({type:String,json:{write:!0}})],M.prototype,"name",void 0),(0,r._)([(0,o.MZ)({type:String,json:{write:!0}})],M.prototype,"description",void 0),(0,r._)([(0,o.MZ)({type:p.jz,json:{type:p.jz,write:!0,name:"_object_id"}})],M.prototype,"id",void 0),(0,r._)([(0,o.MZ)({type:String,json:{type:m.e8.jsonValues,read:m.e8.read,write:m.e8.write}})],M.prototype,"pixelType",void 0),(0,r._)([(0,o.MZ)({type:String,json:{write:!0}})],M.prototype,"type",void 0),M=(0,r._)([(0,c.$)("esri.layers.support.RasterFunctionInfo")],M);const g=M;let y=class extends n.oY{constructor(){super(...arguments),this.isDataset=!1,this.isPublic=!1,this.type="RasterFunctionVariable"}};(0,r._)([(0,o.MZ)({type:String,json:{write:!0}})],y.prototype,"name",void 0),(0,r._)([(0,o.MZ)({type:Number,json:{type:p.jz,write:!0,name:"_object_id"}})],y.prototype,"id",void 0),(0,r._)([(0,o.MZ)({type:Boolean,json:{write:!0}})],y.prototype,"isDataset",void 0),(0,r._)([(0,o.MZ)({type:Boolean,json:{write:!0}})],y.prototype,"isPublic",void 0),(0,r._)([(0,o.MZ)({json:{write:!0}})],y.prototype,"value",void 0),(0,r._)([(0,o.MZ)({type:String,json:{write:!0}})],y.prototype,"type",void 0),y=(0,r._)([(0,c.$)("esri.layers.support.RasterFunctionVariable")],y);const h={key:"type",base:null,typeMap:{RasterFunctionVariable:y}};let w=class extends n.oY{};(0,r._)([(0,o.MZ)({types:h,json:{types:h,name:"MatchVariable"}})],w.prototype,"matchVariable",void 0),(0,r._)([(0,o.MZ)({types:h,json:{types:h,name:"UnionDimension"}})],w.prototype,"unionDimension",void 0),(0,r._)([(0,o.MZ)({type:Number,json:{type:p.jz,write:!0,name:"_object_id"}})],w.prototype,"id",void 0),(0,r._)([(0,o.MZ)({type:String,json:{write:!0}})],w.prototype,"type",void 0),w=(0,r._)([(0,c.$)("esri.layers.support.RasterFunctionProperties")],w);const I=w,f=new d.J({0:"mosaic",1:"item",2:"item-group"},{useNumericKeys:!0});let A=class extends n.oY{constructor(){super(...arguments),this.functionType="mosaic",this.type="RasterFunctionTemplate"}};(0,r._)([(0,o.MZ)({type:[String],json:{write:!0}})],A.prototype,"aliases",void 0),(0,r._)([(0,o.MZ)({type:Object,json:{write:!0}})],A.prototype,"arguments",void 0),(0,r._)([(0,o.MZ)({type:String,json:{write:!0}})],A.prototype,"description",void 0),(0,r._)([(0,o.MZ)({type:g,json:{write:!0,name:"function"}})],A.prototype,"functionInfo",void 0),(0,r._)([(0,o.MZ)({type:f.apiValues,json:{type:[0,1,2],read:f.read,write:f.write}})],A.prototype,"functionType",void 0),(0,r._)([(0,o.MZ)({type:String,json:{write:!0}})],A.prototype,"group",void 0),(0,r._)([(0,o.MZ)({type:String,json:{write:!0}})],A.prototype,"help",void 0),(0,r._)([(0,o.MZ)({type:Number,json:{type:p.jz,write:!0,name:"_object_id"}})],A.prototype,"id",void 0),(0,r._)([(0,o.MZ)({type:String,json:{write:!0}})],A.prototype,"name",void 0),(0,r._)([(0,o.MZ)({type:String,json:{write:!0,name:"definition"}})],A.prototype,"queryDefinition",void 0),(0,r._)([(0,o.MZ)({type:String,json:{write:!0}})],A.prototype,"tag",void 0),(0,r._)([(0,o.MZ)({type:I,json:{write:!0}})],A.prototype,"properties",void 0),(0,r._)([(0,o.MZ)({type:String,json:{write:!0}})],A.prototype,"thumbnail",void 0),(0,r._)([(0,o.MZ)({type:String,json:{write:!0}})],A.prototype,"thumbnailEx",void 0),(0,r._)([(0,o.MZ)({json:{type:["RasterFunctionTemplate"],write:!0}})],A.prototype,"type",void 0),A=(0,r._)([(0,c.$)("esri.layers.support.RasterFunctionTemplate")],A);const v=A;var b;const D=new Set(["raster","raster2","dem","fillraster"]),S=new Set(["rasters"]),T=e=>e?.rasterFunction?Z.fromJSON(e):e,N=e=>e&&e instanceof Z?e.toJSON():e,j=e=>e?.functionName&&!e.declaredClass,C=e=>j(e)?new Z(e):e,L={types:{key:"type",base:null,typeMap:{RasterFunctionTemplate:v}},json:{write:!0,name:"rasterFunctionDefinition"}};let Z=b=class extends n.oY{constructor(e){super(e),this.functionName=null,this.outputPixelType="unknown",this.variableName=null,this.functionDefinition=null}set functionArguments(e){if(e){const t=Object.keys(e);if(t.some((t=>D.has(t.toLowerCase())&&j(e[t])))||t.some((t=>S.has(t.toLowerCase())&&Array.isArray(e[t])&&e[t].some((e=>j(e)))))){e=(0,a.o8)(e);for(const i of t)D.has(i.toLowerCase())?e[i]=C(e[i]):S.has(i.toLowerCase())&&Array.isArray(e[i])&&(e[i]=e[i].map((e=>C(e))))}}this._set("functionArguments",e)}readFunctionArguments(e){return(e=>{if(null==e)return null;e=(0,a.o8)(e);const t={};for(const i of Object.keys(e))D.has(i.toLowerCase())?t[i]=T(e[i]):S.has(i.toLowerCase())&&Array.isArray(e[i])?t[i]=e[i].map(T):t[i]=e[i];return t})(e)}writeFunctionArguments(e,t,i){const r={};for(const t of Object.keys(e))D.has(t.toLowerCase())?r[t]=N(e[t]):S.has(t.toLowerCase())&&Array.isArray(e[t])?r[t]=e[t].map(N):r[t]=N(e[t]);t[i]=r}readFunctionName(e,t){const i=t.rasterFunctionInfos;return t.name||(i?.length&&"None"!==i[0].name?i[0].name:t.rasterFunction||t.rasterFunctionDefinition?.name)}get rasterFunctionDefinition(){return this.functionDefinition?.toJSON()}set rasterFunctionDefinition(e){this.functionDefinition=e?v.fromJSON(e):null}get hasClipFunction(){return this.rasterFunctionDefinition?JSON.stringify(this.rasterFunctionDefinition).includes('"type":"ClipFunction"'):JSON.stringify(this).includes('"rasterFunction":"Clip"')}clone(){return new b({functionName:this.functionName,functionArguments:(0,a.o8)(this.functionArguments),outputPixelType:this.outputPixelType,variableName:this.variableName,rasterFunctionDefinition:(0,a.o8)(this.rasterFunctionDefinition)})}};(0,r._)([(0,o.MZ)({json:{type:Object,name:"rasterFunctionArguments"}})],Z.prototype,"functionArguments",null),(0,r._)([(0,l.w)("functionArguments")],Z.prototype,"readFunctionArguments",null),(0,r._)([(0,u.K)("functionArguments")],Z.prototype,"writeFunctionArguments",null),(0,r._)([(0,o.MZ)({json:{type:String,write:{target:"rasterFunction"}}})],Z.prototype,"functionName",void 0),(0,r._)([(0,l.w)("functionName",["rasterFunction","rasterFunctionInfos","rasterFunctionDefinition"])],Z.prototype,"readFunctionName",null),(0,r._)([(0,s.e)({C128:"c128",C64:"c64",F32:"f32",F64:"f64",S16:"s16",S32:"s32",S8:"s8",U1:"u1",U16:"u16",U2:"u2",U32:"u32",U4:"u4",U8:"u8",UNKNOWN:"unknown"},{ignoreUnknown:!1,default:"unknown"})],Z.prototype,"outputPixelType",void 0),(0,r._)([(0,o.MZ)({type:String,json:{read:!0,write:!0}})],Z.prototype,"variableName",void 0),(0,r._)([(0,o.MZ)()],Z.prototype,"rasterFunctionDefinition",null),(0,r._)([(0,o.MZ)(L)],Z.prototype,"functionDefinition",void 0),(0,r._)([(0,o.MZ)()],Z.prototype,"hasClipFunction",null),Z=b=(0,r._)([(0,c.$)("esri.layers.support.RasterFunction")],Z);const x=Z},69409:(e,t,i)=>{i.d(t,{A:()=>o});var r=i(49186),n=i(29953),a=i(14140);class o{constructor(){this._workerThread=null,this._destroyed=!1}async initialize(){const e=await(0,n.ho)("RasterWorker");this._destroyed?e.close():this._workerThread=e}destroy(){this._destroyed=!0,this._workerThread&&(this._workerThread.close(),this._workerThread=null)}async convertVectorFieldData(e,t){if(!this._workerThread)throw new r.A("raster-jobhandler:no-connection","no available worker connection");const i=await this._workerThread.invoke("convertVectorFieldData",{pixelBlock:e.pixelBlock.toJSON(),type:e.dataType},t);return i?new a.A(i):null}computeStatisticsHistograms(e,t){if(!this._workerThread)throw new r.A("raster-jobhandler:no-connection","no available worker connection");return this._workerThread.invoke("computeStatisticsHistograms",{pixelBlock:e.pixelBlock.toJSON()},t)}async decode(e,t){if(!this._workerThread)throw new r.A("raster-jobhandler:no-connection","no available worker connection");const i=await this._workerThread.invoke("decode",e,t);return i?new a.A(i):null}async symbolize(e,t){if(!this._workerThread)throw new r.A("raster-jobhandler:no-connection","no available worker connection");const i={extent:e.extent?.toJSON(),pixelBlock:e.pixelBlock?.toJSON(),simpleStretchParams:e.simpleStretchParams,bandIds:e.bandIds},n=await this._workerThread.invoke("symbolize",i,t);return n?new a.A(n):null}async updateSymbolizer(e,t){if(!this._workerThread)throw new r.A("raster-jobhandler:no-connection","no available worker connection");const i=e?.rendererJSON?.histograms;await Promise.all(this._workerThread.broadcast("updateSymbolizer",{symbolizerJSON:e.toJSON(),histograms:i},t))}async updateRasterFunction(e,t){if(!this._workerThread)throw new r.A("raster-jobhandler:no-connection","no available worker connection");await Promise.all(this._workerThread.broadcast("updateRasterFunction",{rasterFunctionJSON:e.toJSON()},t))}async process(e,t){if(!this._workerThread)throw new r.A("raster-jobhandler:no-connection","no available worker connection");const i=await this._workerThread.invoke("process",{extent:e.extent?.toJSON(),primaryPixelSizes:e.primaryPixelSizes?.map((e=>null!=e?e.toJSON():null)),primaryPixelBlocks:e.primaryPixelBlocks.map((e=>null!=e?e.toJSON():null)),primaryRasterIds:e.primaryRasterIds},t);return i?new a.A(i):null}async stretch(e,t){if(!this._workerThread)throw new r.A("raster-jobhandler:no-connection","no available worker connection");if(!e?.pixelBlock)return null;const i={srcPixelBlock:e.pixelBlock.toJSON(),stretchParams:e.stretchParams},n=await this._workerThread.invoke("stretch",i,t);return n?new a.A(n):null}async split(e,t){if(!this._workerThread)throw new r.A("raster-jobhandler:no-connection","no available worker connection");if(!e?.pixelBlock)return null;const i={srcPixelBlock:e.pixelBlock.toJSON(),tileSize:e.tileSize,maximumPyramidLevel:e.maximumPyramidLevel,useBilinear:e.useBilinear},n=await this._workerThread.invoke("split",i,t);return n&&n.forEach(((e,t)=>{n.set(t,e?a.A.fromJSON(e):null)})),n}async clipTile(e,t){if(!this._workerThread)throw new r.A("raster-jobhandler:no-connection","no available worker connection");if(!e?.pixelBlock)return null;const i={...e,pixelBlock:e.pixelBlock.toJSON()},n=await this._workerThread.invoke("clipTile",i,t);return n?a.A.fromJSON(n):null}async estimateStatisticsHistograms(e,t){if(!this._workerThread)throw new r.A("raster-jobhandler:no-connection","no available worker connection");if(!e?.pixelBlock)return null;const i={srcPixelBlock:e.pixelBlock.toJSON()};return await this._workerThread.invoke("estimateStatisticsHistograms",i,t)}async mosaicAndTransform(e,t){if(!this._workerThread)throw new r.A("raster-jobhandler:no-connection","no available worker connection");if(!e?.srcPixelBlocks?.length)return{pixelBlock:null};const i={...e,srcPixelBlocks:e.srcPixelBlocks.map((e=>null!=e?e.toJSON():null))},n=await this._workerThread.invoke("mosaicAndTransform",i,t);return{pixelBlock:n.pixelBlock?new a.A(n.pixelBlock):null,localNorthDirections:n.localNorthDirections}}async createFlowMesh(e,t){if(!this._workerThread)throw new r.A("raster-jobhandler:no-connection","no available worker connection");const i={buffer:e.flowData.data.buffer,maskBuffer:e.flowData.mask.buffer,width:e.flowData.width,height:e.flowData.height},{meshType:n,simulationSettings:a}=e,o=await this._workerThread.invoke("createFlowMesh",{meshType:n,flowData:i,simulationSettings:a},{...t,transferList:[i.buffer,i.maskBuffer]});return{vertexData:new Float32Array(o.vertexBuffer),indexData:new Uint32Array(o.indexBuffer)}}getProjectionOffsetGrid(e,t){if(!this._workerThread)throw new r.A("raster-jobhandler:no-connection","no available worker connection");const i=null!=e.datumTransformation?e.datumTransformation.steps.map((e=>({wkid:e.wkid,wkt:e.wkt,isInverse:e.isInverse}))):null,n=null!=e.rasterTransform?e.rasterTransform.toJSON():null,a={projectedExtent:e.projectedExtent.toJSON(),srcBufferExtent:e.srcBufferExtent.toJSON(),pixelSize:e.pixelSize,hasWrapAround:e.hasWrapAround,spacing:e.spacing,datumTransformationSteps:i,rasterTransform:n,isAdaptive:e.isAdaptive,includeGCSGrid:e.includeGCSGrid};return this._workerThread.invoke("getProjectionOffsetGrid",a,t)}}},77301:(e,t,i)=>{i.d(t,{DY:()=>y,NG:()=>A,QW:()=>o,Rp:()=>m,Xg:()=>f,ct:()=>M,fy:()=>g,sx:()=>p,xx:()=>s,z2:()=>h});var r=i(4576),n=i(45617);function a(e,t,i){const r=t.shift();if(0===i.length){const e=[];i.push({sliceId:-1,multidimensionalDefinition:e})}const n=i.length;for(let t=0;t<n;t++){const t=i.shift().multidimensionalDefinition;r.values?.forEach((n=>{i.push({sliceId:-1,multidimensionalDefinition:[...t,{variableName:e,dimensionName:r.name,values:[n]}]})}))}t.length&&a(e,t,i)}function o(e,t){const i=[];let r=0;return(t?e.variables.filter((e=>e.name.toLowerCase()===t.toLowerCase())):[...e.variables].sort(((e,t)=>e.name>t.name?1:-1))).forEach((e=>{const t=[],n=[...e.dimensions].sort(((e,t)=>e.name>t.name?-1:1));a(e.name,n,t),t.forEach((e=>{i.push({...e,sliceId:r++})}))})),i}function s(e,t,i){let r=e;if(t&&(t=[...t].sort(((e,t)=>e.dimensionName<t.dimensionName?-1:1))).forEach((({dimensionName:e,values:t,isSlice:i})=>{t.length&&(r=r.filter((r=>{const n=r.multidimensionalDefinition.find((t=>t.dimensionName===e));if(null==n)return!1;const a=n.values[0];return"number"==typeof a?"number"==typeof t[0]?t.includes(a):t.some((e=>e[0]<=a&&e[1]>=a)):"number"==typeof t[0]?t.some((e=>a[0]<=e&&a[1]>=e)):i?t.some((e=>e[0]===a[0]&&e[0]===a[1])):t.some((e=>e[0]>=a[0]&&e[0]<=a[1]||e[1]>=a[0]&&e[1]<=a[1]||e[0]<a[0]&&e[1]>a[1]))})))})),r.length&&null!=i?.start&&null!=i.end){const e=i.start.getTime(),t=i.end.getTime(),n=r[0].multidimensionalDefinition.findIndex((e=>"StdTime"===e.dimensionName));n>-1&&(r=r.filter((i=>{const r=i.multidimensionalDefinition[n].values[0];return e<=r&&t>=r})))}return r.map((e=>e.sliceId))}function l(e,t){return Array.isArray(e)?t[0]===t[1]?e[0]===t[0]||e[1]===t[0]:e[0]>=t[0]&&e[0]<=t[1]&&e[1]>=t[0]&&e[1]<=t[1]:e>=t[0]&&e<=t[1]}function c(e,t){return e[0]<=t[0]&&e[1]>=t[0]||e[0]<=t[1]&&e[1]>=t[1]||e[0]>=t[0]&&e[1]<=t[1]}function u(e){return 1===e.length?[e[0],e[0]]:[e[0],e[e.length-1]]}function d(e,t,i){if(!t?.subsetDefinitions?.length)return e;let r;if(i){const{variables:n}=t;if(n.length&&!n.includes(i))return null;const a=t.subsetDefinitions.find((t=>t.dimensionName===e.name&&t.variableName===i));if(!a?.values?.length)return e;r=u(a.values)}else{const i=t.dimensions.find((({name:t})=>t===e.name));r=i?.extent}const n=r;if(!n?.length)return e;const a=e.values.filter((e=>l(e,n)));return{...e,extent:[...n],values:a}}function p(e,t,i){if(!t?.subsetDefinitions?.length)return!1;const{variables:r}=t;if(r.length&&e.some((({variableName:e})=>e&&!r.includes(e))))return!0;for(let r=0;r<e.length;r++){const n=e[r],a=t.subsetDefinitions.find((e=>(""===n.variableName||e.variableName===n.variableName)&&e.dimensionName===n.dimensionName));if(a?.values.length){const e=u(a.values);if(n.isSlice||2!==n.values.length||Array.isArray(n.values[0])||n.values[0]===n.values[1]||!i){if(n.values.some((t=>!l(t,e))))return!0}else if(!c(n.values,e))return!0}}return!1}function m(e,t){if(null==e)return{isOutside:!1};const{geometry:i,timeExtent:r,multidimensionalDefinition:a}=t;let o=null;if(null!=r&&(o=function(e,t){const i=e.dimensions.find((({name:e})=>"StdTime"===e));if(null==i||null==t.start&&null==t.end)return t;t=t.clone();const{start:r,end:a}=t.toJSON(),o=r===a?[r]:null!=r&&null!=a?[r,a]:[r??a];return 2===o.length&&i?.extent.length&&(o[0]=Math.max(o[0],i.extent[0]),o[1]=Math.min(o[1],i.extent[1]??i.extent[0]),o[1]<o[0])||p([new n.A({variableName:"",dimensionName:"StdTime",isSlice:1===o.length,values:o})],e,!0)?null:(t.start=new Date(o[0]),t.end=new Date(o[1]??o[0]),t)}(e,r),null==o))return{isOutside:!0};const{areaOfInterest:s}=e;if(s&&i){const e="point"===i.type?i:"extent"===i.type?i.center:"polygon"===i.type?i.centroid:null;if(e&&!s.contains(e))return{isOutside:!0}}return null!=a&&a.length&&p(a,e,!0)?{isOutside:!0}:{isOutside:!1,intersection:{geometry:i,timeExtent:o,multidimensionalDefinition:a}}}function M(e,t={}){const{multidimensionalInfo:i,keyProperties:r}=e;if(null==i)return null;const{variableName:n,multidimensionalSubset:a,multidimensionalDefinition:o}=t,s=null!=o?o[0]?.variableName:null,l=n||s||r?.DefaultVariable;let{variables:c}=i;return a?.variables?.length&&(c=c.filter((({name:e})=>a.variables.includes(e)))),l?c.find((({name:e})=>e===l))??c[0]:c[0]}function g(e,t={}){const i=M(e,t);if(!i)return null;const r=[],{dimensions:a,name:o}=i;if(0===a.length)return[new n.A({variableName:o,dimensionName:"",values:[],isSlice:!0})];for(let e=0;e<a.length;e++){const i=d(a[e],t.multidimensionalSubset,o);if(!i)return null;const{values:s,extent:l}=i;let c=s?.[0]??l?.[0];"stdz"===i.name.toLowerCase()&&!i.hasRanges&&l&&Math.abs(l[1])<=Math.abs(l[0])&&(c=s?.length?s[s.length-1]:l[1]),r.push(new n.A({variableName:o,dimensionName:i.name,values:[c],isSlice:!t.useRangeForRangedDimensionInfo||!!i.hasRanges}))}return r}function y(e){return!!e?.length&&e.some((e=>{if(null==e.values)return!0;const t=e.values.length;return 0===t||t>1||!e.isSlice&&Array.isArray(e.values[0])}))}function h(e,t){if(null==t||null==e)return null;let i=t.variables.map((e=>({...e})));return e?.variables?.length&&(i=i.filter((({name:t})=>e.variables.includes(t))),i.forEach((t=>{t.dimensions=t.dimensions.map((i=>d(i,e,t.name))).filter(r.Ru)}))),i}function w(e,t){const{values:i}=t;if(i?.length){const t=Array.isArray(i[0]),r=Array.isArray(e);return t!==r?-1:t&&r?i.findIndex((t=>t[0]===e[0]&&t[1]===e[1])):i.indexOf(e)}const{extent:r}=t;if(Array.isArray(e)||!r||e<r[0]||e>r[1])return-1;const n=t.interval||1;if("ISO8601"!==t.unit)return Math.round((e-r[0])/n);const a=r[0];let o=-1;switch(t.intervalUnit?.toLowerCase()||"days"){case"seconds":o=Math.round((e-a)/1e3/n);break;case"minutes":o=Math.round((e-a)/6e4/n);break;case"hours":o=Math.round((e-a)/36e5/n);break;case"days":o=Math.round((e-a)/864e5/n);break;case"months":{const t=new Date(e).getUTCFullYear()-new Date(a).getUTCFullYear(),i=new Date(a).getUTCMonth(),r=new Date(e).getUTCMonth();o=0===t?r-i:r+11-i+12*(t-1)}break;case"years":o=Math.round((new Date(e).getUTCFullYear()-new Date(a).getUTCFullYear())/n);break;case"decades":o=Math.round((new Date(e).getUTCFullYear()-new Date(a).getUTCFullYear())/10/n)}return o}function I(e){let t=e.values?.length;if(t)return t;const{extent:i,unit:r}=e,n=e.interval||1,a=i?i[1]-i[0]:0;if("ISO8601"!==r)return Math.round(a/n);switch(e.intervalUnit?.toLowerCase()??"seconds"){case"seconds":t=Math.round(a/1e3/n);break;case"minutes":t=Math.round(a/6e4/n);break;case"hours":t=Math.round(a/36e5/n);break;case"days":t=Math.round(a/864e5/n);break;case"months":if(i){const e=new Date(i[1]).getUTCFullYear()-new Date(i[0]).getUTCFullYear(),r=new Date(i[0]).getUTCMonth(),n=new Date(i[1]).getUTCMonth();t=0===e?n-r+1:n+11-r+12*(e-1)+1}else t=0;break;case"years":t=i?Math.round((new Date(i[1]).getUTCFullYear()-new Date(i[0]).getUTCFullYear())/n):0;break;case"decades":t=i?Math.round((new Date(i[1]).getUTCFullYear()-new Date(i[0]).getUTCFullYear())/10/n):0;break;default:t=0}return t}function f(e){if(2!==e.extent?.length||!e.interval)return[];const{extent:[t,i],interval:r}=e;if("ISO8601"===e.unit){const n=e.intervalUnit?.toLowerCase()??"days";return["decades","years","months","days","hours","minutes","seconds"].includes(n)?function(e,t,i,r){const n=[];let a=e;const o=new Date(e);for(;a<=t;)switch(n.push(a),r){case"decades":o.setUTCFullYear(o.getUTCFullYear()+10*i),a=o.getTime();break;case"years":o.setUTCFullYear(o.getUTCFullYear()+i),a=o.getTime();break;case"months":o.setUTCMonth(o.getUTCMonth()+i),a=o.getTime();break;case"days":a+=864e5*i;break;case"hours":a+=36e5*i;break;case"minutes":a+=6e4*i;break;case"seconds":a+=1e3*i}return 1===n.length?n[1]=t:n[n.length-1]=t,n}(t,i,r,n):[]}const n=Math.round((i-t)/r);return Array.from({length:n},((e,a)=>a===n-1?i:t+a*r))}function A(e,t){let i=0;const r=e[0].variableName,n=[...t.variables].sort(((e,t)=>e.name>t.name?1:-1));for(let t=0;t<n.length;t++){const a=n[t],o=[...a.dimensions].sort(((e,t)=>e.name>t.name?-1:1));if(a.name!==r){i+=o.map((e=>I(e))).reduce(((e,t)=>e*t));continue}const s=o.map((e=>I(e))),l=o.length;for(let t=0;t<l;t++){const r=e.find((e=>e.dimensionName===o[t].name));if(null==r)return null;const n=w(r.values[0],o[t]);if(-1===n)return null;s.shift(),i+=t===l-1?n:n*s.reduce(((e,t)=>e*t))}break}return i}},13868:(e,t,i)=>{i.d(t,{SZ:()=>n,e8:()=>o,hm:()=>a});var r=i(66552);const n=(0,r.O)()({RSP_NearestNeighbor:"nearest",RSP_BilinearInterpolation:"bilinear",RSP_CubicConvolution:"cubic",RSP_Majority:"majority"}),a=(0,r.O)()({esriNoDataMatchAny:"any",esriNoDataMatchAll:"all"}),o=(0,r.O)()({U1:"u1",U2:"u2",U4:"u4",U8:"u8",S8:"s8",U16:"u16",S16:"s16",U32:"u32",S32:"s32",F32:"f32",F64:"f64",C64:"c64",C128:"c128",UNKNOWN:"unknown"})},74797:(e,t,i)=>{i.d(t,{AL:()=>h,DV:()=>M,ER:()=>n,F_:()=>s,Nd:()=>p,Oo:()=>a,dy:()=>d,eS:()=>f,jC:()=>y,nq:()=>m,rZ:()=>u,y6:()=>g});var r=i(20437);const n="Raster.",a="Raster.Dim.",o=".Max",s={servicePixelValue:"Raster.ServicePixelValue",rawServicePixelValue:"Raster.ServicePixelValue.Raw",itemPixelValue:"Raster.ItemPixelValue",magnitude:"Raster.Magnitude",direction:"Raster.Direction",variable:"Raster.Variable"};function l(e,t){return new r.A({name:e,alias:t,domain:null,editable:!1,length:50,type:"string"})}function c(e,t){return new r.A({name:e,alias:t,domain:null,editable:!1,type:"double"})}function u(e){return l(s.servicePixelValue,e??"Service Pixel Value")}function d(e){return l(s.rawServicePixelValue,e??"Raw Service Pixel Value")}function p(){return l(s.itemPixelValue,"Item Pixel Value")}function m(e){return l(`${s.servicePixelValue}.${e}`,e)}function M(e){return c(`${s.magnitude}`,"Magnitude"+(e?` (${e})`:""))}function g(){return c(`${s.direction}`,"Direction (°)")}function y(e){return e.fields.filter((e=>"oid"!==e.type&&"value"!==e.name.toLowerCase())).map((e=>{const t=e.clone();return t.name=`${n}${e.name}`,t}))}function h(e){const t=new Set,i=new Set;return e.variables.forEach((({dimensions:e})=>{e.forEach((e=>{const r="ISO8601"!==e.unit?.trim()||e.recurring?i:t;r.add(e.name),e.hasRanges&&r.add(`${e.name}${o}`)}))})),[l(s.variable,"Variable"),...[...t].map((e=>function(e,t){return new r.A({name:e,alias:t,domain:null,editable:!1,type:"date"})}(`${a}${e}`,w(e)))),...[...i].map((e=>c(`${a}${e}`,w(e))))]}function w(e){const t=e.endsWith(o),i=t?e.slice(0,-4):e,r="StdTime"===i?"Standard Time":"StdZ"===i?"Standard Z":i;return t?`${r} Max`:r}function I(e,t){return t?new Date(e):e}function f(e,t,i){i?.length&&(t[s.variable]=i[0].variableName,i.forEach((({dimensionName:i,values:r})=>{if(i&&r?.length){const n=`${a}${i}`,s=e.find((({name:e})=>e===n));if(!s)return;const l="date"===s.type,c=r[0];if(Array.isArray(c)){if(t[`${a}${i}`]=I(c[0],l),null!=c[1]){const r=`${a}${i}${o}`;if(e.some((({name:e})=>e===r))){const e=I(c[1],l);t[r]=e}}}else t[`${a}${i}`]=I(c,l)}})))}},68729:(e,t,i)=>{i.d(t,{Gj:()=>p,LF:()=>M,uy:()=>d});var r=i(67076),n=i(86162),a=i(67730),o=i(80498),s=i(46981),l=i(36280),c=i(93618),u=i(18031);const d={key:"type",base:null,typeMap:{"unique-value":c.A,"class-breaks":n.A,"raster-colormap":o.A,"raster-stretch":l.A,"vector-field":u.A,"raster-shaded-relief":s.A,flow:a.A}},p={...d,typeMap:{...d.typeMap}};delete p.typeMap["vector-field"],delete p.typeMap.flow;const m={uniqueValue:c.A,classBreaks:n.A,rasterStretch:l.A,rasterColormap:o.A,vectorField:u.A,rasterShadedRelief:s.A,flowRenderer:a.A};function M(e,t){if(!e)return null;if("classBreaks"===e.type&&e.classificationMethod){const t=e.authoringInfo||{classificationMethod:""};t.classificationMethod=e.classificationMethod,e.authoringInfo=t}"vectorField"===e.type&&e.visualVariables&&!Array.isArray(e.visualVariables)&&(e.visualVariables=[e.visualVariables]);const i=(n=e)&&m[n.type]||null;var n;if(i){const r=new i;return r.read(e,t),r}return t?.messages&&e&&t.messages.push(new r.A("renderer:unsupported","Renderers of type '"+(e.type||"unknown")+"' are not supported",{definition:e,context:t})),null}},67730:(e,t,i)=>{i.d(t,{A:()=>h});var r,n=i(90237),a=i(68197),o=i(66552),s=i(25482),l=i(90629),c=i(10107),u=(i(44208),i(53966),i(87811),i(93223)),d=i(40608),p=i(63988),m=i(30943),M=i(20061);const g=new o.J({flow_from:"flow-from",flow_to:"flow-to"});let y=r=class extends((0,p.h)(s.oY)){constructor(e){super(e),this.density=.8,this.color=new a.A([255,255,255,1]),this.maxPathLength=200,this.trailWidth=1.5,this.flowSpeed=10,this.trailLength=100,this.smoothing=0,this.flowRepresentation="flow-from",this.type="flow",this.authoringInfo=null,this.legendOptions=null,this.trailCap="butt",this.background="none"}clone(){const{density:e,maxPathLength:t,trailWidth:i,flowSpeed:n,trailLength:a,smoothing:o,flowRepresentation:s,trailCap:l,background:c}=this,u=this.color.clone(),d=(this.visualVariables||[]).map((e=>e.clone())),p=this.authoringInfo?.clone(),m=this.legendOptions?.clone();return new r({density:e,color:u,maxPathLength:t,trailWidth:i,flowSpeed:n,trailLength:a,trailCap:l,background:c,smoothing:o,flowRepresentation:s,visualVariables:d,authoringInfo:p,legendOptions:m})}getSymbol(e,t){}async getSymbolAsync(e,t){}getSymbols(){return[]}};(0,n._)([(0,c.MZ)({type:Number,json:{write:!0}})],y.prototype,"density",void 0),(0,n._)([(0,c.MZ)({type:a.A,json:{write:{allowNull:!0}}})],y.prototype,"color",void 0),(0,n._)([(0,c.MZ)({type:Number,cast:l.cr,json:{write:!0}})],y.prototype,"maxPathLength",void 0),(0,n._)([(0,c.MZ)({type:Number,cast:l.cr,json:{write:!0}})],y.prototype,"trailWidth",void 0),(0,n._)([(0,c.MZ)({type:Number,json:{write:!0}})],y.prototype,"flowSpeed",void 0),(0,n._)([(0,c.MZ)({type:Number,json:{write:!0}})],y.prototype,"trailLength",void 0),(0,n._)([(0,c.MZ)({type:Number,cast:l.cr,json:{write:!1}})],y.prototype,"smoothing",void 0),(0,n._)([(0,c.MZ)({type:g.apiValues,json:{type:g.jsonValues,read:{reader:g.read},write:{writer:g.write}}})],y.prototype,"flowRepresentation",void 0),(0,n._)([(0,u.e)({flowRenderer:"flow"})],y.prototype,"type",void 0),(0,n._)([(0,c.MZ)({type:m.A,json:{write:!0}})],y.prototype,"authoringInfo",void 0),(0,n._)([(0,c.MZ)({type:M.A,json:{write:!0}})],y.prototype,"legendOptions",void 0),(0,n._)([(0,c.MZ)({type:String,json:{write:!0}})],y.prototype,"trailCap",void 0),(0,n._)([(0,c.MZ)({type:String,json:{write:!0}})],y.prototype,"background",void 0),y=r=(0,n._)([(0,d.$)("esri.renderers.FlowRenderer")],y);const h=y},80498:(e,t,i)=>{i.d(t,{A:()=>g});var r=i(90237),n=i(25482),a=i(10107),o=(i(44208),i(53966),i(87811),i(93223)),s=i(40608),l=i(68197),c=i(56507);let u=class extends n.oY{constructor(){super(...arguments),this.value=null,this.label=null,this.color=null}};(0,r._)([(0,a.MZ)({type:Number,json:{write:!0}})],u.prototype,"value",void 0),(0,r._)([(0,a.MZ)({type:String,json:{write:!0}})],u.prototype,"label",void 0),(0,r._)([(0,a.MZ)({type:l.A,json:{type:[c.jz],write:!0}})],u.prototype,"color",void 0),u=(0,r._)([(0,s.$)("esri.renderers.support.ColormapInfo")],u);const d=u;var p,m=i(67369);let M=p=class extends n.oY{constructor(e){super(e),this.colormapInfos=null,this.type="raster-colormap"}static createFromColormap(e,t){if(!e)return null;const i=5===e[0].length,r=[...e].sort(((e,t)=>e[0]-t[0])).map((e=>d.fromJSON({value:e[0],color:i?e.slice(1,5):e.slice(1,4).concat([255]),label:t?t[e[0]]??"":e[0]})));return new p({colormapInfos:r})}static createFromColorramp(e){const t=(0,m.R8)(e);return p.createFromColormap(t)}clone(){return new p({colormapInfos:this.colormapInfos.map((e=>e.toJSON()))})}extractColormap(){return this.colormapInfos.map((({value:e,color:t})=>[e,t.r,t.g,t.b,t.a>1?t.a:255*t.a&255])).sort(((e,t)=>e[0]-t[0]))}};(0,r._)([(0,a.MZ)({type:[d],json:{write:!0}})],M.prototype,"colormapInfos",void 0),(0,r._)([(0,o.e)({rasterColormap:"raster-colormap"})],M.prototype,"type",void 0),M=p=(0,r._)([(0,s.$)("esri.renderers.RasterColormapRenderer")],M);const g=M},46981:(e,t,i)=>{i.d(t,{A:()=>m});var r,n=i(90237),a=i(25482),o=i(4718),s=i(10107),l=(i(44208),i(53966),i(93223)),c=i(36005),u=i(40608),d=i(95349);let p=r=class extends a.oY{constructor(e){super(e),this.altitude=45,this.azimuth=315,this.colorRamp=null,this.hillshadeType="traditional",this.pixelSizePower=.664,this.pixelSizeFactor=.024,this.scalingType="none",this.type="raster-shaded-relief",this.zFactor=1}readColorRamp(e){return(0,d.r)(e)}clone(){return new r({hillshadeType:this.hillshadeType,altitude:this.altitude,azimuth:this.azimuth,zFactor:this.zFactor,scalingType:this.scalingType,pixelSizeFactor:this.pixelSizeFactor,pixelSizePower:this.pixelSizePower,colorRamp:(0,o.o8)(this.colorRamp)})}};(0,n._)([(0,s.MZ)({type:Number,json:{write:!0}})],p.prototype,"altitude",void 0),(0,n._)([(0,s.MZ)({type:Number,json:{write:!0}})],p.prototype,"azimuth",void 0),(0,n._)([(0,s.MZ)({types:d.g,json:{write:!0}})],p.prototype,"colorRamp",void 0),(0,n._)([(0,c.w)("colorRamp")],p.prototype,"readColorRamp",null),(0,n._)([(0,s.MZ)({type:["traditional","multi-directional"],json:{write:!0}})],p.prototype,"hillshadeType",void 0),(0,n._)([(0,s.MZ)({type:Number,json:{write:!0}})],p.prototype,"pixelSizePower",void 0),(0,n._)([(0,s.MZ)({type:Number,json:{write:!0}})],p.prototype,"pixelSizeFactor",void 0),(0,n._)([(0,s.MZ)({type:["none","adjusted"],json:{write:!0}})],p.prototype,"scalingType",void 0),(0,n._)([(0,l.e)({rasterShadedRelief:"raster-shaded-relief"})],p.prototype,"type",void 0),(0,n._)([(0,s.MZ)({type:Number,json:{write:!0}})],p.prototype,"zFactor",void 0),p=r=(0,n._)([(0,u.$)("esri.renderers.RasterShadedReliefRenderer")],p);const m=p},36280:(e,t,i)=>{i.d(t,{A:()=>h});var r,n=i(90237),a=i(51447),o=i(25482),s=i(4718),l=i(53966),c=i(10107),u=(i(44208),i(93223)),d=i(36005),p=i(40608),m=i(43937),M=i(70274),g=i(95349);let y=r=class extends o.oY{constructor(e){super(e),this.colorRamp=null,this.computeGamma=!1,this.dynamicRangeAdjustment=!1,this.gamma=[],this.maxPercent=null,this.minPercent=null,this.numberOfStandardDeviations=null,this.outputMax=null,this.outputMin=null,this.sigmoidStrengthLevel=null,this.histograms=null,this.useGamma=!1,this.stretchType="none",this.type="raster-stretch"}readColorRamp(e){if(e)return(0,g.r)(e)}get statistics(){return this._get("statistics")}set statistics(e){(0,a.Lx)(l.A.getLogger(this),"statistics",{replacement:"customStatistics",version:"4.31",warnOnce:!0}),this._set("statistics",e)}get customStatistics(){const e=this.statistics;return e&&Array.isArray(e[0])?e.map((e=>({min:e[0],max:e[1],avg:e[2],stddev:e[3]}))):e}set customStatistics(e){this._set("statistics",e?.map((e=>[e.min,e.max,e.avg??0,e.stddev??1])))}readCustomStatistics(e){return e?.map((e=>({min:e[0],max:e[1],avg:e[2],stddev:e[3]})))}writeCustomStatistics(e,t,i){e?.length&&(t[i]=e.map((e=>[e.min,e.max,e.avg??0,e.stddev??1])))}readStretchType(e,t){let i=t.stretchType;return"number"==typeof i&&(i=M.x[i]),M.u.read(i)}clone(){return new r({stretchType:this.stretchType,outputMin:this.outputMin,outputMax:this.outputMax,useGamma:this.useGamma,computeGamma:this.computeGamma,statistics:(0,s.o8)(this.statistics),customStatistics:(0,s.o8)(this.customStatistics),gamma:(0,s.o8)(this.gamma),sigmoidStrengthLevel:this.sigmoidStrengthLevel,numberOfStandardDeviations:this.numberOfStandardDeviations,minPercent:this.minPercent,maxPercent:this.maxPercent,colorRamp:(0,s.o8)(this.colorRamp),histograms:(0,s.o8)(this.histograms),dynamicRangeAdjustment:this.dynamicRangeAdjustment})}};(0,n._)([(0,c.MZ)({types:g.g,json:{write:!0}})],y.prototype,"colorRamp",void 0),(0,n._)([(0,d.w)("colorRamp")],y.prototype,"readColorRamp",null),(0,n._)([(0,c.MZ)({type:Boolean,json:{write:!0}})],y.prototype,"computeGamma",void 0),(0,n._)([(0,c.MZ)({type:Boolean,json:{write:{target:"dra"},read:{source:"dra"}}})],y.prototype,"dynamicRangeAdjustment",void 0),(0,n._)([(0,c.MZ)({type:[Number],json:{write:!0}})],y.prototype,"gamma",void 0),(0,n._)([(0,c.MZ)({type:Number,json:{write:!0}})],y.prototype,"maxPercent",void 0),(0,n._)([(0,c.MZ)({type:Number,json:{write:!0}})],y.prototype,"minPercent",void 0),(0,n._)([(0,c.MZ)({type:Number,json:{write:!0}})],y.prototype,"numberOfStandardDeviations",void 0),(0,n._)([(0,c.MZ)({type:Number,json:{read:{source:"max"},write:{target:"max"}}})],y.prototype,"outputMax",void 0),(0,n._)([(0,c.MZ)({type:Number,json:{read:{source:"min"},write:{target:"min"}}})],y.prototype,"outputMin",void 0),(0,n._)([(0,c.MZ)({type:Number,json:{write:!0}})],y.prototype,"sigmoidStrengthLevel",void 0),(0,n._)([(0,c.MZ)({})],y.prototype,"statistics",null),(0,n._)([(0,c.MZ)()],y.prototype,"histograms",void 0),(0,n._)([(0,c.MZ)({json:{type:[[Number]],name:"statistics",write:!0}})],y.prototype,"customStatistics",null),(0,n._)([(0,d.w)("customStatistics")],y.prototype,"readCustomStatistics",null),(0,n._)([(0,m.K)("customStatistics")],y.prototype,"writeCustomStatistics",null),(0,n._)([(0,c.MZ)({type:Boolean,json:{write:!0}})],y.prototype,"useGamma",void 0),(0,n._)([(0,c.MZ)({type:M.u.apiValues,json:{type:M.u.jsonValues,write:M.u.write}})],y.prototype,"stretchType",void 0),(0,n._)([(0,d.w)("stretchType",["stretchType"])],y.prototype,"readStretchType",null),(0,n._)([(0,u.e)({rasterStretch:"raster-stretch"})],y.prototype,"type",void 0),y=r=(0,n._)([(0,p.$)("esri.renderers.RasterStretchRenderer")],y);const h=y},18031:(e,t,i)=>{i.d(t,{A:()=>Z});var r,n=i(90237),a=i(68197),o=(i(59456),i(52106)),s=(i(61147),i(66552)),l=i(25482),c=i(4718),u=i(10107),d=(i(44208),i(53966),i(93223)),p=i(36005),m=i(40608),M=i(17136),g=i(14636),y=i(86162),h=i(63988),w=i(88542),I=i(23461),f=i(48940),A=i(29266),v=i(31593),b=i(53930),D=i(37531),S=i(86738),T=i(58592);const N=new Set(["esriMetersPerSecond","esriKilometersPerHour","esriKnots","esriFeetPerSecond","esriMilesPerHour"]),j=new s.J({beaufort_ft:"beaufort-ft",beaufort_km:"beaufort-km",beaufort_kn:"beaufort-kn",beaufort_m:"beaufort-m",beaufort_mi:"beaufort-mi",classified_arrow:"classified-arrow",ocean_current_kn:"ocean-current-kn",ocean_current_m:"ocean-current-m",simple_scalar:"simple-scalar",single_arrow:"single-arrow",wind_speed:"wind-barb"}),C=new s.J({flow_from:"flow-from",flow_to:"flow-to"});let L=r=class extends((0,h.h)(l.oY)){constructor(e){super(e),this.attributeField="Magnitude",this.flowRepresentation="flow-from",this.rotationType="arithmetic",this.style="single-arrow",this.symbolTileSize=50,this.type="vector-field"}readInputUnit(e,t){return N.has(e)?g.MD.fromJSON(e):null}readOutputUnit(e,t){return N.has(e)?g.MD.fromJSON(e):null}get styleRenderer(){const e=this.style,t=this.attributeField,i=this._createStyleRenderer(e);return i.field=t,i}get sizeVariables(){const e=[];if(this.visualVariables)for(const t of this.visualVariables)"size"===t.type&&e.push(t);if(0===e.length){const t=new f.A({field:"Magnitude",minSize:.2*this.symbolTileSize,maxSize:.8*this.symbolTileSize});this.visualVariables?this.visualVariables.push(t):this._set("visualVariables",[t]),e.push(t)}return e}get rotationVariables(){const e=[];if(this.visualVariables)for(const t of this.visualVariables)"rotation"===t.type&&e.push(t);if(0===e.length){const t=new I.A({field:"Direction",rotationType:this.rotationType});this.visualVariables?this.visualVariables.push(t):this._set("visualVariables",[t]),e.push(t)}return e}clone(){return new r({attributeField:this.attributeField,flowRepresentation:this.flowRepresentation,rotationType:this.rotationType,symbolTileSize:this.symbolTileSize,style:this.style,visualVariables:(0,c.o8)(this.visualVariables),inputUnit:this.inputUnit,outputUnit:this.outputUnit})}async getGraphicsFromPixelData(e,t=!1,i=[]){const r=new Array,n=(0,g.KL)(this.inputUnit,this.outputUnit),a=this.rotationVariables[0]?.rotationType||this.rotationType,s=t?(0,g.FI)(e.pixelBlock,"vector-uv",a,n):(0,g.Rn)(e.pixelBlock,"vector-magdir",n);if(null==s)return r;const l=e.extent,c=null!=s.mask&&s.mask.length>0;let u=0;const d=(l.xmax-l.xmin)/s.width,p=(l.ymax-l.ymin)/s.height;for(let e=0;e<s.height;e++)for(let t=0;t<s.width;t++,u++){let n=new S.A({x:l.xmin+t*d+d/2,y:l.ymax-e*p-p/2,spatialReference:l.spatialReference});n=(await(0,M.el)(n))[0];const a=i.some((e=>e.intersects(n)));if((!c||s.mask[u])&&!a){const e={Magnitude:s.pixels[0][u],Direction:s.pixels[1][u]},t=new o.A({geometry:new S.A({x:n.x,y:n.y,spatialReference:l.spatialReference}),attributes:e});t.symbol=this._getVisualVariablesAppliedSymbol(t),r.push(t)}}return r}getSymbol(e,t){}async getSymbolAsync(e,t){}getSymbols(){return[]}getClassBreakInfos(){return this.styleRenderer?.classBreakInfos}getDefaultSymbol(){return this.styleRenderer?.defaultSymbol}_getDefaultSymbol(e){return new b.A({path:"M14,32 14,18 9,23 16,3 22,23 17,18 17,32 z",outline:new v.A({width:0}),size:20,color:e||new a.A([0,92,230])})}_getVisualVariablesAppliedSymbol(e){if(!e)return;const t=this.styleRenderer?.getSymbol(e)?.clone(),i=this.sizeVariables,r=this.rotationVariables;if(i&&i.length&&this.sizeVariables.forEach((i=>(0,D.UQ)(t,(0,A.Yz)([i],e)))),r&&r.length){const i="flow-to"===this.flowRepresentation==("ocean-current-kn"===this.style||"ocean-current-m"===this.style)?0:180;e.attributes.Direction=e.attributes.Direction+i,this.rotationVariables.forEach((i=>(0,D.GG)(t,(0,A.UT)(i,e),i.axis)))}return t}_createStyleRenderer(e){let t={defaultSymbol:this._getDefaultSymbol(),classBreakInfos:[]};switch(e){case"single-arrow":t=this._createSingleArrowRenderer();break;case"beaufort-kn":t=this._createBeaufortKnotsRenderer();break;case"beaufort-m":t=this._createBeaufortMeterRenderer();break;case"beaufort-ft":t=this._createBeaufortFeetRenderer();break;case"beaufort-mi":t=this._createBeaufortMilesRenderer();break;case"beaufort-km":t=this._createBeaufortKilometersRenderer();break;case"ocean-current-m":t=this._createCurrentMeterRenderer();break;case"ocean-current-kn":t=this._createCurrentKnotsRenderer();break;case"simple-scalar":t=this._createSimpleScalarRenderer();break;case"wind-barb":t=this._createWindBarbsRenderer();break;case"classified-arrow":t=this._createClassifiedArrowRenderer()}return new y.A(t)}_createSingleArrowRenderer(){return{defaultSymbol:this._getDefaultSymbol()}}_createBeaufortKnotsRenderer(){return{defaultSymbol:this._getDefaultSymbol(new a.A([214,47,39])),classBreakInfos:this._getClassBreaks([0,1,3,6,10,16,21,27,33,40,47,55,63],[[40,146,199],[89,162,186],[129,179,171],[160,194,155],[191,212,138],[218,230,119],[250,250,100],[252,213,83],[252,179,102],[250,141,52],[247,110,42],[240,71,29]])}}_createBeaufortMeterRenderer(){return{defaultSymbol:this._getDefaultSymbol(new a.A([214,47,39])),classBreakInfos:this._getClassBreaks([0,.2,1.8,3.3,5.4,8.5,11,14.1,17.2,20.8,24.4,28.6,32.7],[[69,117,181],[101,137,184],[132,158,186],[162,180,189],[192,204,190],[222,227,191],[255,255,191],[255,220,161],[250,185,132],[245,152,105],[237,117,81],[232,21,21]])}}_createBeaufortFeetRenderer(){const e=this._getDefaultSymbol(new a.A([214,47,39]));let t=[0,.2,1.8,3.3,5.4,8.5,11,14.1,17.2,20.8,24.4,28.6,32.7];return t=t.map((e=>3.28084*e)),{defaultSymbol:e,classBreakInfos:this._getClassBreaks(t,[[69,117,181],[101,137,184],[132,158,186],[162,180,189],[192,204,190],[222,227,191],[255,255,191],[255,220,161],[250,185,132],[245,152,105],[237,117,81],[232,21,21]])}}_createBeaufortMilesRenderer(){const e=this._getDefaultSymbol(new a.A([214,47,39]));let t=[0,.2,1.8,3.3,5.4,8.5,11,14.1,17.2,20.8,24.4,28.6,32.7];return t=t.map((e=>2.23694*e)),{defaultSymbol:e,classBreakInfos:this._getClassBreaks(t,[[69,117,181],[101,137,184],[132,158,186],[162,180,189],[192,204,190],[222,227,191],[255,255,191],[255,220,161],[250,185,132],[245,152,105],[237,117,81],[232,21,21]])}}_createBeaufortKilometersRenderer(){const e=this._getDefaultSymbol(new a.A([214,47,39]));let t=[0,.2,1.8,3.3,5.4,8.5,11,14.1,17.2,20.8,24.4,28.6,32.7];return t=t.map((e=>3.6*e)),{defaultSymbol:e,classBreakInfos:this._getClassBreaks(t,[[69,117,181],[101,137,184],[132,158,186],[162,180,189],[192,204,190],[222,227,191],[255,255,191],[255,220,161],[250,185,132],[245,152,105],[237,117,81],[232,21,21]])}}_createCurrentMeterRenderer(){return{defaultSymbol:this._getDefaultSymbol(new a.A([177,177,177])),classBreakInfos:this._getClassBreaks([0,.5,1,1.5,2],[[78,26,153],[179,27,26],[202,128,26],[177,177,177]])}}_createCurrentKnotsRenderer(){return{defaultSymbol:this._getDefaultSymbol(new a.A([177,177,177])),classBreakInfos:this._getClassBreaks([0,.25,.5,1,1.5,2,2.5,3,3.5,4],[[0,0,0],[0,37,100],[78,26,153],[151,0,100],[179,27,26],[177,78,26],[202,128,26],[177,179,52],[177,177,177]])}}_createClassifiedArrowRenderer(){const e=this._getDefaultSymbol(new a.A([56,168,0]));let t=[0,1e-6,3.5,7,10.5,14];if(this.sizeVariables?.length){const e=this.sizeVariables[0].minDataValue,i=this.sizeVariables[0].maxDataValue;if(e&&i){const r=(i-e)/5;t=Array.from(Array(6).keys()).map((t=>e+r*t))}}return{defaultSymbol:e,classBreakInfos:this._getClassBreaks(t,[[56,168,0],[139,309,0],[255,255,0],[255,128,0],[255,0,0]])}}_createSimpleScalarRenderer(){return{defaultSymbol:T.A.fromJSON({imageData:"iVBORw0KGgoAAAANSUhEUgAAACsAAAArCAQAAABLVLlLAAAABGdBTUEAAYagMeiWXwAAAAJiS0dEAACqjSMyAAAACXBIWXMAAABIAAAASABGyWs+AAAC3ElEQVRIx9XXvW4cVRQH8N982btpsIREJECyiCXsxX4DKh6AliqGKCBBE2SlwlHgAbBD/AKmyEYUeQ1KahPZSZQvBCkQLTHZ7KGY8Xodz4w3a1NwbzVzz/znfJ//zbStVC5q3icKak9GAs2QIdDx3PtW/S011NW3p+M5Eomh11ipTIKe6+4LQzHaQ+G+63pIZNJJQXMpljwTwj1brpgx5w1zZlyx5Z4QnllEIm2xeeSUHBf0hV0bejo1Uh09G3aFvgXk7cCJFBc9EdaRVuHJJaOdKyTV2TVhYLMduNR0Q9gxL5GaaTDw8GzejrDRBpxWoGsySRW0dttKuattwNkIlFw2YXgzOdYq4Ox49PlM+JrKd5OusjTWhBuVxUfMX/KXXZ3WEmkuqa67wspR4BTbwtKr/5u4fFgStse/T7EifFPnnYl9zPq4vmUOPrRndgoHjDti1gOPqlyXoifcRNGQzUd31lDyfHmob1Gp35vSr+P6vilcQ5Egtyd8YF/ySg9NhPM+9M/IOaHwp5+PSZayXTvCogEUwlatC3J8LLwYtcWB8EuDXQVuCkV5/B4eNHb7wGBs87LBDS+xjdVSn09wq1G8dFM+9tSUhIGneLvUdniKxKpTYljCpu3j7rVWlHj/P23v4NPGUEyeCQnexe9lJjzEQqMjJs+EzNAX6B98dBZVRmroJx95x/A/6gln18EyfCUsl+qdXb/tjvfbw+mwforpUOBz4XLVoBwAn3aWnfeH246NyBXhrq7TTN5lNSP9RkU+puUJm3W2Tsdq0nZWM07srk7MwQrZSRysjjGWBLRJNsNbfj2JMR4AbxpU1XLAb9Mxfpsq5EjMuuiR8L0JiHOOBX3hiUvOmavN0nMueSzcceFk0BK4pMqLo7vDD1Z0qrtDx7Itt4Xwm9UqbMmk8S0Dtuzb2pvOU99Z1nLTOfleNmvfZfP2pYZmPfajwosKdDBNpacNpVGGsWX9CyDI8Xq/Sj6QAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDE0LTExLTEwVDAzOjE3OjU4LTA1OjAwF+tHyQAAACV0RVh0ZGF0ZTptb2RpZnkAMjAxNC0xMS0xMFQwMzoxNzo1OC0wNTowMGa2/3UAAAAASUVORK5CYII=",height:20,width:20,type:"esriPMS",angle:0})}}_createWindBarbsRenderer(){const e=Array.from(Array(31).keys()).map((e=>5*e)),t=[{range:"0-5",path:"M20 20 M5 20 A15 15 0 1 0 35 20 A15 15 0 1 0 5 20 M20 20 M10 20 A10 10 0 1 0 30 20 A10 10 0 1 0 10 20",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzJweCIgd2lkdGg9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTIwIDIwIE01IDIwIEExNSAxNSAwIDEgMCAzNSAyMCBBMTUgMTUgMCAxIDAgNSAyMCBNMjAgMjAgTTEwIDIwIEExMCAxMCAwIDEgMCAzMCAyMCBBMTAgMTAgMCAxIDAgMTAgMjAiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4="},{range:"5-10",path:"M25 0 L25 40 M25 35 L17.5 37.5",imageData:"PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjkgMCAyNyA0NiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8cGF0aCBkPSJNMjUgMCBMMjUgNDAgTTI1IDM1IEwxNy41IDM3LjUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4="},{range:"10-15",path:"M25 0 L25 40 L10 45 L25 40",imageData:"PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjkgMCAyNyA0NiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8cGF0aCBkPSJNMjUgMCBMMjUgNDAgTDEwIDQ1IEwyNSA0MCIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg=="},{range:"15-20",path:"M25 0 L25 40 L10 45 L25 40 M25 35 L17.5 37.5",imageData:"PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjEyIDAgMTUgNDUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0NSBMMjUgNDAgTTI1IDM1IEwxNy41IDM3LjUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4="},{range:"20-25",path:"M25 0 L25 40 L10 45 L25 40 M25 35 L10 40",imageData:"PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjkgMCAyNiA0NiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8cGF0aCBkPSJNMjUgMCBMMjUgNDAgTDEwIDQ1IEwyNSA0MCBNMjUgMzUgTDEwIDQwIiBzdHlsZT0ic3Ryb2tlOnJnYigwLDAsMCk7c3Ryb2tlLXdpZHRoOjEuNSIvPgogPC9zdmc+"},{range:"25-30",path:"M25 0 L25 40 L10 45 L25 40 M25 35 L10 40 L25 35 M25 30 L17.5 32.5",imageData:"PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjkgMCAyNiA0NiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8cGF0aCBkPSJNMjUgMCBMMjUgNDAgTDEwIDQ1IEwyNSA0MCBNMjUgMzUgTDEwIDQwIEwyNSAzNSBNMjUgMzAgTDE3LjUgMzIuNSIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg=="},{range:"30-35",path:"M25 0 L25 40 L10 45 L25 40 M25 35 L10 40 L25 35 M25 30 L10 35",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMHB4IiBoZWlnaHQ9IjIwcHgiIHZpZXdCb3g9IjkgMCAyNiA0NiI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0NSBMMjUgNDAgTTI1IDM1IEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg=="},{range:"35-40",path:"M25 0 L25 40 L10 45 L25 40 M25 35 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L17.5 27.5",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMHB4IiBoZWlnaHQ9IjIwcHgiIHZpZXdCb3g9IjkgMCAyNiA0NiI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0NSBMMjUgNDAgTTI1IDM1IEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSBMMjUgMzAgTTI1IDI1IEwxNy41IDI3LjUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4="},{range:"40-45",path:"M25 0 L25 40 L10 45 L25 40 M25 35 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L10 30",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMHB4IiBoZWlnaHQ9IjIwcHgiIHZpZXdCb3g9IjkgMCAyNiA0NiI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0NSBMMjUgNDAgTTI1IDM1IEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSBMMjUgMzAgTTI1IDI1IEwxMCAzMCIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg=="},{range:"45-50",path:"M25 0 L25 40 L10 45 L25 40 M25 35 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L10 30 L25 25 M25 20 L17.5 22.5",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMHB4IiBoZWlnaHQ9IjIwcHgiIHZpZXdCb3g9IjkgMCAyNiA0NiI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0NSBMMjUgNDAgTTI1IDM1IEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSBMMjUgMzAgTTI1IDI1IEwxMCAzMCBMMjUgMjUgTTI1IDIwIEwxNy41IDIyLjUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4="},{range:"50-55",path:"M25 0 L25 40 L10 40 L25 35",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMHB4IiBoZWlnaHQ9IjIwcHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4="},{range:"55-60",path:"M25 0 L25 40 L10 40 L25 35 M25 30 L17.5 32.5",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMHB4IiBoZWlnaHQ9IjIwcHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxNy41IDMyLjUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4="},{range:"60-65",path:"M25 0 L25 40 L10 40 L25 35 M25 30 L10 35",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMnB4IiBoZWlnaHQ9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg=="},{range:"65-70",path:"M25 0 L25 40 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L17.5 27.5",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMnB4IiBoZWlnaHQ9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSBMMjUgMzAgTTI1IDI1IEwxNy41IDI3LjUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4="},{range:"70-75",path:"M25 0 L25 40 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L10 30",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMnB4IiBoZWlnaHQ9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSBMMjUgMzAgTTI1IDI1IEwxMCAzMCIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg=="},{range:"75-80",path:"M25 0 L25 40 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L10 30 L25 25 M25 20 L17.5 22.5",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMnB4IiBoZWlnaHQ9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSBMMjUgMzAgTTI1IDI1IEwxMCAzMCBMMjUgMjUgTTI1IDIwIEwxNy41IDIyLjUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4="},{range:"80-85",path:"M25 0 L25 40 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L10 30 L25 25 M25 20 L10 25",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMnB4IiBoZWlnaHQ9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSBMMjUgMzAgTTI1IDI1IEwxMCAzMCBMMjUgMjUgTTI1IDIwIEwxMCAyNSIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg=="},{range:"85-90",path:"M25 0 L25 40 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L10 30 L25 25 M25 20 L10 25 L25 20 M25 15 L17.5 17.5",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMnB4IiBoZWlnaHQ9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSBMMjUgMzAgTTI1IDI1IEwxMCAzMCBMMjUgMjUgTTI1IDIwIEwxMCAyNSBMMjUgMjAgTTI1IDE1IEwxNy41IDE3LjUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4="},{range:"90-95",path:"M25 0 L25 40 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L10 30 L25 25 M25 20 L10 25 L25 20 M25 15 L10 20",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMnB4IiBoZWlnaHQ9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSBMMjUgMzAgTTI1IDI1IEwxMCAzMCBMMjUgMjUgTTI1IDIwIEwxMCAyNSBMMjUgMjAgTTI1IDE1IEwxMCAyMCIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg=="},{range:"95-100",path:"M25 0 L25 40 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L10 30 L25 25 M25 20 L10 25 L25 20 M25 15 L10 20 L25 15 M25 10 L17.5 12.5",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMnB4IiBoZWlnaHQ9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSBMMjUgMzAgTTI1IDI1IEwxMCAzMCBMMjUgMjUgTTI1IDIwIEwxMCAyNSBMMjUgMjAgTTI1IDE1IEwxMCAyMCBMMjUgMTUgTTI1IDEwIEwxNy41IDEyLjUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4="},{range:"100-105",path:"M25 0 L25 40 L10 40 L25 35 L10 35 L25 30",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMnB4IiBoZWlnaHQ9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTDEwIDM1IEwyNSAzMCIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg=="},{range:"105-110",path:"M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L17.5 27.5",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzJweCIgd2lkdGg9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTDEwIDM1IEwyNSAzMCBNMjUgMjUgTDE3LjUgMjcuNSIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg=="},{range:"110-115",path:"M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L10 30",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzJweCIgd2lkdGg9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTDEwIDM1IEwyNSAzMCBNMjUgMjUgTDEwIDMwIiBzdHlsZT0ic3Ryb2tlOnJnYigwLDAsMCk7c3Ryb2tlLXdpZHRoOjEuNSIvPgogPC9zdmc+"},{range:"115-120",path:"M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L10 30 M25 25 M25 20 L17.5 22.5",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzJweCIgd2lkdGg9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTDEwIDM1IEwyNSAzMCBNMjUgMjUgTDEwIDMwIE0yNSAyNSBNMjUgMjAgTDE3LjUgMjIuNSIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg=="},{range:"120-125",path:"M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L10 30 M25 25 M25 20 L10 25",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzJweCIgd2lkdGg9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTDEwIDM1IEwyNSAzMCBNMjUgMjUgTDEwIDMwIE0yNSAyNSBNMjUgMjAgTDEwIDI1IiBzdHlsZT0ic3Ryb2tlOnJnYigwLDAsMCk7c3Ryb2tlLXdpZHRoOjEuNSIvPgogPC9zdmc+"},{range:"125-130",path:"M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L10 30 M25 25 M25 20 L10 25 M25 20 M25 15 L17.5 17.5",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzJweCIgd2lkdGg9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTDEwIDM1IEwyNSAzMCBNMjUgMjUgTDEwIDMwIE0yNSAyNSBNMjUgMjAgTDEwIDI1IE0yNSAyMCBNMjUgMTUgTDE3LjUgMTcuNSIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg=="},{range:"130-135",path:"M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L10 30 M25 25 M25 20 L10 25 M25 20 M25 15 L10 20",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzJweCIgd2lkdGg9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTDEwIDM1IEwyNSAzMCBNMjUgMjUgTDEwIDMwIE0yNSAyNSBNMjUgMjAgTDEwIDI1IE0yNSAyMCBNMjUgMTUgTDEwIDIwIiBzdHlsZT0ic3Ryb2tlOnJnYigwLDAsMCk7c3Ryb2tlLXdpZHRoOjEuNSIvPgogPC9zdmc+"},{range:"135-140",path:"M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L10 30 M25 25 M25 20 L10 25 M25 20 M25 15 L10 20 M25 15 M25 10 L17.5 12.5",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzJweCIgd2lkdGg9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTDEwIDM1IEwyNSAzMCBNMjUgMjUgTDEwIDMwIE0yNSAyNSBNMjUgMjAgTDEwIDI1IE0yNSAyMCBNMjUgMTUgTDEwIDIwIE0yNSAxNSBNMjUgMTAgTDE3LjUgMTIuNSIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg=="},{range:"140-145",path:"M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L10 30 M25 25 M25 20 L10 25 M25 20 M25 15 L10 20 M25 15 M25 10 L17.5 12.5",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzJweCIgd2lkdGg9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTDEwIDM1IEwyNSAzMCBNMjUgMjUgTDEwIDMwIE0yNSAyNSBNMjUgMjAgTDEwIDI1IE0yNSAyMCBNMjUgMTUgTDEwIDIwIE0yNSAxNSBNMjUgMTAgTDEwIDE1IiBzdHlsZT0ic3Ryb2tlOnJnYigwLDAsMCk7c3Ryb2tlLXdpZHRoOjEuNSIvPgogPC9zdmc+"},{range:"145-150",path:"M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L10 30 M25 25 M25 20 L10 25 M25 20 M25 15 L10 20 M25 15 M25 10 L17.5 12.5",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzJweCIgd2lkdGg9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTDEwIDM1IEwyNSAzMCBNMjUgMjUgTDEwIDMwIE0yNSAyNSBNMjUgMjAgTDEwIDI1IE0yNSAyMCBNMjUgMTUgTDEwIDIwIE0yNSAxNSBNMjUgMTAgTDEwIDE1IE0yNSAxMCBNMjUgNSBMMTcuNSA3LjUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4="}],i=T.A.fromJSON({imageData:"iVBORw0KGgoAAAANSUhEUgAAACgAAAApCAQAAADtq6NDAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAJiS0dEAP+Hj8y/AAAACXBIWXMAAA7DAAAOwwHHb6hkAAAEY0lEQVRIx5XXWWxWRRQH8N+d+31tUdGAVjGglYJABFEBY91jfDAg7piYaFTccA++uMQEFRcSXlATtxiXqMQt4G4iisYl0ai4sIQYtVFZ1KIFKdTS0l4f7vRCS5fPebozc+bM/2z/Mzcx0AgSiUxXnKfIdMn875FIhX53U2n/B/s+kKM4UINTjTBZImixxnrv+9a2iL6zEoUBXcoudrWj/OtHm3wt02lfU9Qao9OnHvIhgmww84MEl1qnxfNmGrqHxAizLdPpC6chGcAxKGGcL+30gOERf1BSpUqVslQSV8d5ReZFe8VQ9avufJn31cWwlJV7iafKStGOE/1qvfH9qUxxu8ydUdmuSKbGO8YUdT2inKLG69pM70tliktl5qIkCAJGmusDG7Vqsc0WjZa4UBlBiA5YZIcjYzB7qDtH5kaUJFLs7RGZTZ42W4PRRmtwvbdt1+wGiaS4drEtDttdZYIDNVuAclR3vA3+dI3qHqmVSy7U6Tv1MScCPvPR7nIpFlsdCy3FdTLPGhK92e2CUITjMJ9ocwKxnsZqc3O3JwMma3d6UVLnyVxB4aXemZqvPqLdpJhW3KVVbY4yYImPo6M5Urv50fj+0z/FG9YaEiENs8UtMfXUaTeTePNHlhXfA1UU+2lyD1Il3Gtt9+adfpNG7dNlpg2U/T3KYLZ2dUWFdTgp3/rQ4sK973qnInV5TIf40x3dhvrJPBiqyWUo4wAtLqhQYS71qK+QKOFRywmGK/kpikzV6WMKhh58vGWs4TIJNjiEYLIuP8Tt4/zmLyqk+AyrJSbF+Qq1DgqRUPMxyl+9q3IQhX/rMCJ6tEunriDs1oSyQZKlr9AkhT2ZIARbJfaJS1vtVbHB+Rgi0RK/y1q1BWsEEyLoz40xtGKcARPVWB1BTPO7f4LNtpkUl1aoMbViLyZo0GRjPD3BxnxjqXeLYlvhqYrzMMG3HoyJXa3JjfnGlbYYFlP7Jh3qKsKY4hQ7TY0nG+xwRL61n63mxHtqNHosigyMLmClNwvuecFnOZB88nNBDzNkzhxEZaKMBVoKapggMzvHHXBEpNSSFAvtcFRsVn0bW8LlMmcXs+c0Kne3gRR32+zg4uXwjC6zit6Wt4a8LXVfcp/MtQXHn2ynGbuCmb8GvvFeJLEE82ReU9/n6+dkq2x3buG9Wn94smcgAw631RPR7BTH+kbmHReZoEpOdEe7zWqZl40s0JWs9Hmv7hjBHqPDwsjGKVJnWWqjbdZp1KhJi0aPmxYZsIRhlttgeF+Jlke41QcOQKoqilSb6HJzSvNG3G/UoWnxwsmt+sVaYwd63dRbqdnMyCPVeyRPvpYgdavM22oGKoMUVRbJfOWMwidJ8Zzb1UvmWK/VVUXzHaTjjrVYh1897HT7xxYEVUaa5SWb/WO+YUWa9SrwvigzM8YlzlYv2GSdVCYxxlBtVnnFq5olwp5/BEk/OLsf5LUmG2+inRJdVvjZ97ZH9/zP34ug1O91pf4p+D+JYBpvrKxfbwAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAxNC0xMS0xMFQwMzoxMjowOS0wNTowMB9ViV0AAAAldEVYdGRhdGU6bW9kaWZ5ADIwMTQtMTEtMTBUMDM6MTI6MDktMDU6MDBuCDHhAAAAAElFTkSuQmCC",height:20,width:20,type:"esriPMS",angle:0}),r=e.map(((r,n)=>{let a;if(n!==e.length-1)if(0===n)a={minValue:r,maxValue:e[n+1],symbol:i};else{const i=T.A.fromJSON({type:"esriPMS",imageData:t[n].imageData,contentType:"image/svg+xml",height:32,width:32,angle:0});a={minValue:r,maxValue:e[n+1],symbol:i}}return new w.A(a)}));return{defaultSymbol:i,classBreakInfos:r}}_getClassBreaks(e,t){return t.map(((t,i)=>new w.A({minValue:e[i],maxValue:e[i+1],symbol:this._getDefaultSymbol(new a.A(t))})))}};(0,n._)([(0,u.MZ)({type:["Magnitude"],json:{write:!0}})],L.prototype,"attributeField",void 0),(0,n._)([(0,u.MZ)({type:C.apiValues,json:{type:C.jsonValues,read:{reader:C.read},write:{writer:C.write}}})],L.prototype,"flowRepresentation",void 0),(0,n._)([(0,u.MZ)({type:["geographic","arithmetic"],json:{write:!0}})],L.prototype,"rotationType",void 0),(0,n._)([(0,u.MZ)({type:j.apiValues,json:{type:j.jsonValues,read:{reader:j.read},write:{writer:j.write}}})],L.prototype,"style",void 0),(0,n._)([(0,u.MZ)({json:{write:!0}})],L.prototype,"symbolTileSize",void 0),(0,n._)([(0,u.MZ)({type:g.MD.apiValues,json:{type:g.MD.jsonValues,write:{writer:g.MD.write}}})],L.prototype,"inputUnit",void 0),(0,n._)([(0,p.w)("inputUnit")],L.prototype,"readInputUnit",null),(0,n._)([(0,u.MZ)({type:g.MD.apiValues,json:{type:g.MD.jsonValues,read:{reader:g.MD.read},write:{writer:g.MD.write}}})],L.prototype,"outputUnit",void 0),(0,n._)([(0,p.w)("outputUnit")],L.prototype,"readOutputUnit",null),(0,n._)([(0,d.e)({vectorField:"vector-field"})],L.prototype,"type",void 0),(0,n._)([(0,u.MZ)({type:y.A})],L.prototype,"styleRenderer",null),(0,n._)([(0,u.MZ)({type:f.A})],L.prototype,"sizeVariables",null),(0,n._)([(0,u.MZ)({type:I.A})],L.prototype,"rotationVariables",null),L=r=(0,n._)([(0,m.$)("esri.renderers.VectorFieldRenderer")],L);const Z=L},12711:(e,t,i)=>{i.d(t,{$P:()=>x,I8:()=>f,Mm:()=>b,PD:()=>A,ci:()=>N,fp:()=>v,m7:()=>T,w6:()=>D});var r=i(68197),n=(i(68729),i(83047),i(20437)),a=(i(67730),i(30943)),o=(i(88542),i(67369)),s=i(88178),l=i(94833),c=(i(2024),i(48940)),u=(i(72500),i(9760),i(84892),i(1626)),d=i(94985),p=i(36280),m=i(93618),M=i(80498),g=(i(46981),i(86162),i(18031));const y=.25,h=u.A.fromJSON({type:"multipart",colorRamps:[{fromColor:[0,0,255],toColor:[0,255,255]},{fromColor:[0,255,255],toColor:[255,255,0]},{fromColor:[255,255,0],toColor:[255,0,0]}]}),w=u.A.fromJSON(o.vj[0]),I=new Set(["scientific","standard-time","vector-uv","vector-magdir","vector-u","vector-v","vector-magnitude","vector-direction"]);function f(e){return e.presetRenderers?.find((({method:t,value:i})=>"raster-function-template"===t?i===e.rasterFunctionName:"variable"===t&&i===e.variableName))}function A(e,t){const{attributeTable:i,colormap:n}=e;if((0,s.rd)(e)){const t=function(e){if(!(0,s.rd)(e))return null;let t;if(null!=e.statistics&&e.statistics.length&&("vector-magdir"===e.dataType||"vector-uv"===e.dataType)){const{minMagnitude:i,maxMagnitude:r}=function(e,t){let i,r;if("vector-magdir"===e)i=t[0].min,r=t[0].max;else{const e=t[0].min,n=t[0].max,a=t[1].min,o=t[1].max;i=0,r=Math.max(Math.abs(e),Math.abs(a),Math.abs(n),Math.abs(o))}return{minMagnitude:i,maxMagnitude:r}}(e.dataType,e.statistics);t=[new c.A({field:"Magnitude",minSize:10,maxSize:40,minDataValue:i,maxDataValue:r})]}const i=null!=e.multidimensionalInfo?L.get(e.multidimensionalInfo.variables[0].unit):void 0,r=new g.A({visualVariables:t,inputUnit:i,rotationType:"geographic"});return r.visualVariables=[...r.sizeVariables,...r.rotationVariables],r}(e);if(null!=t)return t}if(t?.rasterFunctionColorRamp){const i=S(e,t);return i.colorRamp=t.rasterFunctionColorRamp,i}if(null!=n){const t=function(e){if(!(0,s.FA)(e))return null;let t;const{attributeTable:i,colormap:r}=e;if(null!=i){const e=C(i,"value"),r=j(i,null,!0);"string"===r.type&&(t={},i.features.forEach((i=>{const n=i.attributes;t[n[e.name]]=r?n[r.name]:n[e.name]})))}return M.A.createFromColormap(r,t)}(e);if(null!=t)return t}if(null!=i){const t=function(e,t){if(!(0,s.hu)(e,t))return null;const{attributeTable:i,statistics:n}=e,c=j(i,t),u=C(i,"red"),p=C(i,"green"),M=C(i,"blue"),g=new a.A,y=[],h=new Set,I=!!(u&&p&&M);if(null!=i)i.features.forEach((e=>{const t=e.attributes[c.name];if(!h.has(e.attributes[c.name])&&null!=t){h.add(t);const n=I&&("single"===u.type||"double"===u.type)&&("single"===p.type||"double"===p.type)&&("single"===M.type||"double"===M.type)&&!i.features.some((e=>e.attributes[u.name]>1||e.attributes[p.name]>1||e.attributes[M.name]>1)),a=n?255:1;y.push(new l.A({value:e.attributes[c.name],label:e.attributes[c.name]+"",symbol:new d.A({style:"solid",outline:null,color:new r.A(I?[e.attributes[u.name]*a,e.attributes[p.name]*a,e.attributes[M.name]*a,1]:[0,0,0,0])})}))}}));else if(n?.[0])for(let e=n[0].min;e<=n[0].max;e++)y.push(new l.A({value:e,label:e.toString(),symbol:new d.A({style:"solid",outline:null,color:new r.A([0,0,0,0])})}));if(y.sort(((e,t)=>e.value&&"string"==typeof e.value.valueOf()?0:e.value>t.value?1:-1)),!I){const e=(0,o.R8)(w,{numColors:y.length});y.forEach(((t,i)=>t.symbol.color=new r.A(e[i].slice(1,4)))),g.colorRamp=w}return new m.A({field:c.name,uniqueValueInfos:y,authoringInfo:g})}(e);if(null!=t)return t}return S(e,t)}function v(e,t=!1){const i=["raster-stretch"];return(0,s.FA)(e,t)&&i.push("raster-colormap"),(0,s.hu)(e)&&i.push("unique-value"),(0,s.xX)(e,t)&&i.push("class-breaks"),(0,s.iL)(e)&&i.push("raster-shaded-relief"),(0,s.rd)(e)&&i.push("vector-field"),(0,s.QJ)(e)&&i.push("flow"),i}function b(e){return"Function"===e.datasetFormat&&"Colormap"===e.rasterFunction.functionName?e.rasterFunction.colorRamp:void 0}function D(e,t,i){const r=i?.toLowerCase().replace("bicubic","cubic"),n=["nearest","bilinear","cubic","majority"].find((e=>e===r));return"Map"===t?n??"bilinear":"standard-time"===e.dataType?n??"nearest":"thematic"===e.dataType||e.attributeTable||e.colormap?"nearest"===n||"majority"===n?n:"nearest":n??"bilinear"}function S(e,t){e=T(e,t?.variableName);const{bandCount:i}=e;let{bandIds:r,stretchType:n}=t||{};r?.some((e=>e>=i))&&(r=null);let a=e.statistics,o=e.histograms;i>1?(r=r?.length?r:N(e),a=null==a?null:r?.map((e=>a[e])),o=null==o?null:r?.map((e=>o[e]))):r=[0],null==n&&(n=function(e){let t="percent-clip";const{pixelType:i,dataType:r,histograms:n,statistics:a,multidimensionalInfo:o}=e,s=I.has(r)||"generic"===r&&null!=o;return"u8"!==i||"processed"!==r&&null!=n&&null!=a?"u8"===i||"elevation"===r||s?t="min-max":null!=n?t="percent-clip":null!=a&&(t="min-max"):t="none",t}(e)),t?.includeStatisticsInStretch&&("percent-clip"===n||"histogram-equalization"===n)&&e.statistics?.length&&(n="min-max");let s=!1;switch(n){case"none":s=!1;break;case"percent-clip":s=!o?.length;break;default:s=!a?.length}const{dataType:l}=e,c=1===r?.length&&I.has(l)?h:null,u=new p.A({stretchType:n,dynamicRangeAdjustment:s,colorRamp:c,outputMin:0,outputMax:255,gamma:1===r?.length?[1]:[1,1,1],useGamma:!1});return"percent-clip"===n?u.maxPercent=u.minPercent=y:"standard-deviation"===n&&(u.numberOfStandardDeviations=2),s||null==e.multidimensionalInfo&&!t?.includeStatisticsInStretch||("percent-clip"===n?u.histograms=o:"min-max"!==n&&"standard-deviation"!==n||(u.statistics=a)),u}function T(e,t){const{multidimensionalInfo:i}=e;if(!t||!i)return e;const r=i.variables.find((e=>e.name===t));if(!r)return e;if(e=e.clone(),r){const{statistics:t,histograms:i}=r;t?.length&&(e.statistics=t.map((e=>({min:e.min,max:e.max,avg:e.avg,stddev:e.stddev})))),i?.length&&(e.histograms=i)}return e}function N(e){const t=e.bandCount;if(1===t)return null;if(2===t)return[0];const{bandInfos:i}=e;let r;if(i.length===t){const{red:e,green:t,blue:n,nir:a}=function(e){const t={};for(let i=0;i<e.length;i++){const r=e[i],n=r.name.toLowerCase();if("red"===n)t.red=i;else if("green"===n)t.green=i;else if("blue"===n)t.blue=i;else if("nearinfrared"===n||"nearinfrared_1"===n||"nir"===n)t.nir=i;else if(r.maxWavelength&&r.minWavelength){const e=r.minWavelength,n=r.maxWavelength;null==t.blue&&e>=410&&e<=480&&n>=480&&n<=540?t.blue=i:null==t.green&&e>=490&&e<=560&&n>=560&&n<=610?t.green=i:null==t.red&&e>=595&&e<=670&&n>=660&&n<=730?t.red=i:null==t.nir&&e>=700&&e<=860&&n>=800&&n<=950&&(t.nir=i)}}return t}(i);null!=e&&null!=t&&null!=n?r=[e,t,n]:null!=a&&null!=e&&null!=t&&(r=[a,e,t])}return!r&&t>=3&&(r=[0,1,2]),r}function j(e,t,i){let r;return null!=e?(r=t?e.fields.find((e=>t.toLowerCase()===e.name.toLowerCase())):function(e){let t;for(let i=0;i<e.length;i++){const r=e[i].name.toLowerCase();if("string"===e[i].type){if(r.startsWith("class")){t=e[i];break}null==t&&(r.endsWith("name")||r.endsWith("type"))&&(t=e[i])}}return t}(e.fields),r||(i||(r=e.fields.find((e=>"string"===e.type))),r||(r=C(e,"value")))):r=new n.A({name:"value"}),r}function C(e,t){return null==e?null:e.fields.find((e=>e.name.toLowerCase()===t))}const L=new Map([["m/s","meter-per-second"],["km/h","kilometer-per-hour"],["knots","knots"],["ft/s","feet-per-second"],["mph","mile-per-hour"]]);function Z(e){return{color:e.symbolLayers[0].material?.color,type:"esriSFS",style:"esriSFSSolid"}}function x(e){if("uniqueValue"===e.type){const t=e.uniqueValueInfos,i=t?.[0].symbol;return i?.symbolLayers?.length&&(e.uniqueValueInfos=t?.map((e=>({value:e.value,label:e.label,symbol:e.symbol?Z(e.symbol):null})))),e}if("classBreaks"===e.type){const t=e.classBreakInfos,i=t[0].symbol;return i?.symbolLayers?.length&&(e.classBreakInfos=t.map((e=>({classMinValue:e.classMinValue,classMaxValue:e.classMaxValue,label:e.label,symbol:e.symbol?Z(e.symbol):null})))),e}return e}},22671:(e,t,i)=>{i.d(t,{A:()=>I});var r,n=i(90237),a=i(59456),o=i(52106),s=i(66552),l=i(25482),c=i(4718),u=i(10107),d=(i(44208),i(53966),i(36005)),p=i(40608),m=i(43937),M=i(16930),g=i(65864),y=i(20437);const h=new s.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let w=r=class extends l.oY{constructor(e){super(e),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(e,t){const i=M.A.fromJSON(t.spatialReference),r=[];for(let t=0;t<e.length;t++){const n=e[t],a=o.A.fromJSON(n),s=n.geometry?.spatialReference;null==a.geometry||s||(a.geometry.spatialReference=i);const l=n.aggregateGeometries,c=a.aggregateGeometries;if(l&&null!=c)for(const e in c){const t=c[e],r=l[e],n=r?.spatialReference;null==t||n||(t.spatialReference=i)}r.push(a)}return r}writeGeometryType(e,t,i,r){if(e)return void h.write(e,t,i,r);const{features:n}=this;if(n)for(const e of n)if(null!=e?.geometry)return void h.write(e.geometry.type,t,i,r)}readQueryGeometry(e,t){if(!e)return null;const i=!!e.spatialReference,r=(0,g.rS)(e);return r&&!i&&t.spatialReference&&(r.spatialReference=M.A.fromJSON(t.spatialReference)),r}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());const{features:i}=this;if(i)for(const e of i)if(e&&null!=e.geometry&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new r(this.cloneProperties())}cloneProperties(){return(0,c.o8)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(e){const t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let i=0;i<t.features.length;i++){const r=t.features[i];if(r.geometry){const t=e?.[i];r.geometry=t?.toJSON()||r.geometry}}return t}quantize(e){const{scale:[t,i],translate:[r,n]}=e,a=this.features,o=this._getQuantizationFunction(this.geometryType,(e=>Math.round((e-r)/t)),(e=>Math.round((n-e)/i)));for(let e=0,t=a.length;e<t;e++)o?.(a[e].geometry)||(a.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){const{geometryType:e,features:t,transform:i}=this;if(!i)return this;const{translate:[r,n],scale:[a,o]}=i;let s=null,l=null;if(this.hasZ&&null!=i?.scale?.[2]){const{translate:[,,e],scale:[,,t]}=i;s=i=>i*t+e}if(this.hasM&&null!=i?.scale?.[3]){const{translate:[,,,e],scale:[,,,t]}=i;l=i=>null==i?i:i*t+e}const c=this._getHydrationFunction(e,(e=>e*a+r),(e=>n-e*o),s,l);for(const{geometry:e}of t)null!=e&&c&&c(e);return this.transform=null,this}_quantizePoints(e,t,i){let r,n;const a=[];for(let o=0,s=e.length;o<s;o++){const s=e[o];if(o>0){const e=t(s[0]),o=i(s[1]);e===r&&o===n||(a.push([e-r,o-n]),r=e,n=o)}else r=t(s[0]),n=i(s[1]),a.push([r,n])}return a.length>0?a:null}_getQuantizationFunction(e,t,i){return"point"===e?e=>(e.x=t(e.x),e.y=i(e.y),e):"polyline"===e||"polygon"===e?e=>{const r=(0,g.Bi)(e)?e.rings:e.paths,n=[];for(let e=0,a=r.length;e<a;e++){const a=r[e],o=this._quantizePoints(a,t,i);o&&n.push(o)}return n.length>0?((0,g.Bi)(e)?e.rings=n:e.paths=n,e):null}:"multipoint"===e?e=>{const r=this._quantizePoints(e.points,t,i);return r&&r.length>0?(e.points=r,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,i,r,n){return"point"===e?e=>{e.x=t(e.x),e.y=i(e.y),r&&(e.z=r(e.z))}:"polyline"===e||"polygon"===e?e=>{const a=(0,g.Bi)(e)?e.rings:e.paths;let o,s;for(let e=0,r=a.length;e<r;e++){const r=a[e];for(let e=0,n=r.length;e<n;e++){const n=r[e];e>0?(o+=n[0],s+=n[1]):(o=n[0],s=n[1]),n[0]=t(o),n[1]=i(s)}}if(r&&n)for(let e=0,t=a.length;e<t;e++){const t=a[e];for(let e=0,i=t.length;e<i;e++){const i=t[e];i[2]=r(i[2]),i[3]=n(i[3])}}else if(r)for(let e=0,t=a.length;e<t;e++){const t=a[e];for(let e=0,i=t.length;e<i;e++){const i=t[e];i[2]=r(i[2])}}else if(n)for(let e=0,t=a.length;e<t;e++){const t=a[e];for(let e=0,i=t.length;e<i;e++){const i=t[e];i[2]=n(i[2])}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=i(e.ymin),e.xmax=t(e.xmax),e.ymax=i(e.ymax),r&&null!=e.zmax&&null!=e.zmin&&(e.zmax=r(e.zmax),e.zmin=r(e.zmin)),n&&null!=e.mmax&&null!=e.mmin&&(e.mmax=n(e.mmax),e.mmin=n(e.mmin))}:"multipoint"===e?e=>{const a=e.points;let o,s;for(let e=0,r=a.length;e<r;e++){const r=a[e];e>0?(o+=r[0],s+=r[1]):(o=r[0],s=r[1]),r[0]=t(o),r[1]=i(s)}if(r&&n)for(let e=0,t=a.length;e<t;e++){const t=a[e];t[2]=r(t[2]),t[3]=n(t[3])}else if(r)for(let e=0,t=a.length;e<t;e++){const t=a[e];t[2]=r(t[2])}else if(n)for(let e=0,t=a.length;e<t;e++){const t=a[e];t[2]=n(t[2])}}:null}};(0,n._)([(0,u.MZ)({type:String,json:{write:!0}})],w.prototype,"displayFieldName",void 0),(0,n._)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],w.prototype,"exceededTransferLimit",void 0),(0,n._)([(0,u.MZ)({type:[o.A],json:{write:!0}})],w.prototype,"features",void 0),(0,n._)([(0,d.w)("features")],w.prototype,"readFeatures",null),(0,n._)([(0,u.MZ)({type:[y.A],json:{write:!0}})],w.prototype,"fields",void 0),(0,n._)([(0,u.MZ)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:h.read}}})],w.prototype,"geometryType",void 0),(0,n._)([(0,m.K)("geometryType")],w.prototype,"writeGeometryType",null),(0,n._)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],w.prototype,"hasM",void 0),(0,n._)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],w.prototype,"hasZ",void 0),(0,n._)([(0,u.MZ)({types:a.yR,json:{write:!0}})],w.prototype,"queryGeometry",void 0),(0,n._)([(0,d.w)("queryGeometry")],w.prototype,"readQueryGeometry",null),(0,n._)([(0,u.MZ)({type:M.A,json:{write:!0}})],w.prototype,"spatialReference",void 0),(0,n._)([(0,m.K)("spatialReference")],w.prototype,"writeSpatialReference",null),(0,n._)([(0,u.MZ)({json:{write:!0}})],w.prototype,"transform",void 0),w=r=(0,n._)([(0,p.$)("esri.rest.support.FeatureSet")],w),w.prototype.toJSON.isDefaultToJSON=!0;const I=w},22048:(e,t,i)=>{i.d(t,{A:()=>h});var r,n=i(90237),a=i(59456),o=i(25482),s=i(4718),l=i(10107),c=(i(44208),i(53966),i(40608)),u=i(43937),d=i(65864),p=i(85675),m=i(22796),M=i(79677),g=i(86738);let y=r=class extends o.oY{constructor(){super(...arguments),this.geometry=null,this.mosaicRule=null,this.rasterFunction=null,this.pixelSize=null,this.raster=void 0,this.timeExtent=null}writeGeometry(e,t,i){null!=e&&(t.geometryType=(0,d.$B)(e),t[i]=e.toJSON())}clone(){return new r((0,s.o8)({geometry:this.geometry,mosaicRule:this.mosaicRule,rasterFunction:this.rasterFunction,pixelSize:this.pixelSize,raster:this.raster,timeExtent:this.timeExtent}))}};(0,n._)([(0,l.MZ)({types:a.yR,json:{read:d.rS}})],y.prototype,"geometry",void 0),(0,n._)([(0,u.K)("geometry")],y.prototype,"writeGeometry",null),(0,n._)([(0,l.MZ)({type:p.A,json:{write:!0}})],y.prototype,"mosaicRule",void 0),(0,n._)([(0,l.MZ)({type:m.A,json:{write:!0,name:"renderingRule"}})],y.prototype,"rasterFunction",void 0),(0,n._)([(0,l.MZ)({type:g.A,json:{write:!0}})],y.prototype,"pixelSize",void 0),(0,n._)([(0,l.MZ)({json:{write:!0}})],y.prototype,"raster",void 0),(0,n._)([(0,l.MZ)({type:M.A,json:{read:{source:"time"},write:{target:"time"}}})],y.prototype,"timeExtent",void 0),y=r=(0,n._)([(0,c.$)("esri.rest.support.ImageHistogramParameters")],y);const h=y},30291:(e,t,i)=>{i.d(t,{tn:()=>c});var r=i(13874),n=i(30524),a=i(28122),o=(i(84424),i(80737),i(96808),i(66159)),s=(i(67336),i(92094),i(23721),i(70696),i(41227)),l=i(68780);function c({displayField:e,editFieldsInfo:t,fields:i,objectIdField:l,title:c},m){if(!i)return null;const g=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(d),e}({fields:e.fields??[],ignoreFieldTypes:t?.ignoreFieldTypes||M,sortDisabled:t?.sortDisabled}).map((t=>new s.A({fieldName:t.name,isEditable:(0,n.R$)(t,e),label:t.alias,format:p(t),visible:u(t,{...e,visibleFieldNames:i})})))}({editFieldsInfo:t,fields:i,objectIdField:l},m);if(!g.length)return null;const y=function(e){const t=(0,n.mB)(e),{titleBase:i}=e;return t?`${i}: {${t.trim()}}`:i??""}({titleBase:c,fields:i,displayField:e}),h=[new o.A,new a.A];return new r.A({title:y,content:h,fieldInfos:g})}const u=(e,t)=>t.visibleFieldNames?t.visibleFieldNames.has(e.name):(0,n.Bz)(e,t);function d(e,t){return"oid"===e.type?-1:"oid"===t.type?1:m(e)?-1:m(t)?1:(e.alias||e.name).toLocaleLowerCase().localeCompare((t.alias||t.name).toLocaleLowerCase())}function p(e){switch(e.type){case"small-integer":case"integer":case"single":return new l.A({digitSeparator:!0,places:0});case"double":return new l.A({digitSeparator:!0,places:2});case"string":return(0,n.JL)(e.name)?new l.A({digitSeparator:!0,places:0}):void 0;default:return}}function m(e){if("name"===(e.name&&e.name.toLowerCase()))return!0;const t=e.alias?.toLowerCase();return"name"===t}const M=["geometry","blob","raster","guid","xml"]}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9547],{19547:(e,t,n)=>{n.r(t),n.d(t,{default:()=>Ie});var i=n(90237),s=n(13874),o=n(49186),a=n(92071),r=n(74887),l=n(36708),c=n(10107),u=(n(44208),n(53966)),p=(n(87811),n(40608)),d=n(4146),m=n(63074),f=n(69208),g=n(89015),h=n(16131),v=n(8303),y=n(54310),b=n(25036),w=n(82935),x=n(10873),C=n(20437),I=n(74797),S=(n(59456),n(38458)),A=n(78888),D=n(5443),T=n(50103);function L(e){return e.endsWith("?")?e.slice(0,-1):e}function V(e){return e.filter((({coverageSubType:e})=>null==e||""===e||/^rectified(grid|dataset)/i.test(e)))}function N(e){const t={};for(let n=0;n<e.childNodes.length;n++){const i=e.childNodes[n];if(1!==i.nodeType)continue;const s=(0,T.vv)(i).toLowerCase();switch(s){case"title":case"abstract":t[s]=(0,T.mX)(i);break;case"identifier":t.id=(0,T.mX)(i);break;case"wgs84boundingbox":{const e=(0,T.pN)(i,"LowerCorner"),n=(0,T.pN)(i,"UpperCorner");t.lonLatEnvelope=new D.A({xmin:e[0],ymin:e[1],xmax:n[0],ymax:n[1],spatialReference:{wkid:4326}})}break;case"coveragesummary":t.coverageSummaries=t.coverageSummaries||[],t.coverageSummaries.push(N(i))}}return t}function M(e,t){if(e.coverageSummaries)for(let n=0;n<e.coverageSummaries.length;n++)e.coverageSummaries[n].abstract=e.coverageSummaries[n].abstract||e.abstract,e.coverageSummaries[n].lonLatEnvelope=e.coverageSummaries[n].lonLatEnvelope||e.lonLatEnvelope,e.coverageSummaries[n].title=e.coverageSummaries[n].title||e.title,M(e.coverageSummaries[n],t);null!=e.id&&t.push(e)}function R(e){const t=(0,T.V6)(e.querySelector("Operation[name=GetCapabilities]"),"Get")?.getAttribute("xlink:href")||"",n=(0,T.V6)(e.querySelector("Operation[name=DescribeCoverage]"),"Get")?.getAttribute("xlink:href")||"",i=(0,T.V6)(e.querySelector("Operation[name=GetCoverage]"),"Get")?.getAttribute("xlink:href")||"";return{getCapabilities:L(t),describeCoverage:L(n),getCoverage:L(i)}}function P(e,t=null){let n=null;n="string"==typeof e?(new DOMParser).parseFromString(e,"text/xml"):e;let i=n.documentElement.getAttribute("version");"1.0"===i?i="1.0.0":"1.1"===i&&(i="1.1.0");const s=i||t||"1.0.0",a=s.slice(0,3);let r;if("2.0"===a)r=function(e){const t=(0,T.V6)(e,"ServiceIdentification"),n=(0,T.mX)(t,"Title"),i=(0,T.Dy)(t,"ServiceTypeVersion"),s=(0,T.Dy)(t,"Profile"),o=R((0,T.V6)(e,"OperationsMetadata")),a=(0,T.IC)(e,"Contents/CoverageSummary"),r=[];for(let e=0;e<a.length;e++){const t=a[e],n=(0,T.mX)(t,"CoverageId"),i=(0,T.V6)(t,"WGS84BoundingBox");let s;if(i){const e=(0,T.pN)(i,"LowerCorner"),t=(0,T.pN)(i,"UpperCorner");s=new D.A({xmin:e[0],ymin:e[1],xmax:t[0],ymax:t[1],spatialReference:{wkid:4326}})}const o=(0,T.mX)(t,"CoverageSubtype")||"RectifiedGridCoverage";r.push({id:n,lonLatEnvelope:s,coverageSubType:o})}const l=(0,T.V6)(e,"ServiceMetadata");return{name:n,supportedVersions:i,supportedFormats:(0,T.Dy)(l,"formatSupported"),supportedInterpolations:(0,T.Dy)(l,"interpolationSupported").concat((0,T.Dy)(l,"InterpolationSupported")),onlineResources:o,profiles:s,coverages:r,gridCoverages:V(r),version:"2.0.1"}}(n);else if("1.1"===a)r=function(e){const t=(0,T.mX)(e,"ServiceIdentification/Title"),n=(0,T.Dy)(e,"ServiceIdentification/ServiceTypeVersion"),i=R((0,T.V6)(e,"OperationsMetadata")),s=[],o=(0,T.V6)(e,"Contents");for(let e=0;e<o.childNodes.length;e++){const t=o.childNodes[e];1===t.nodeType&&(0,T.g7)(t,"CoverageSummary")&&M(N(t),s)}const a=(0,T.Dy)(o,"SupportedFormat");return{name:t,onlineResources:i,coverages:s,gridCoverages:V(s),supportedVersions:n,supportedFormats:a,version:"1.1.0"}}(n);else{if("1.0"!==a)throw new o.A("wcsraster:parsecapabilities","the capabilities version is not supported");r=function(e){const t=(0,T.mX)(e,"Service/name"),n=(0,T.V6)(e,"Capability"),i=(0,T.V6)(n,"GetCapabilities/Get/OnlineResource")?.getAttribute("xlink:href")??"",s=(0,T.V6)(n,"DescribeCoverage/Get/OnlineResource")?.getAttribute("xlink:href")??"",o=(0,T.V6)(n,"GetCoverage/Get/OnlineResource")?.getAttribute("xlink:href")??"",a={getCapabilities:L(i),describeCoverage:L(s),getCoverage:L(o)},r=(0,T.IC)(e,"CoverageOfferingBrief"),l=[];for(let e=0;e<r.length;e++){const t=r[e],n=(0,T.mX)(t,"name"),i=(0,T.IC)(t,"pos"),s=(0,T.pN)(i[0]),o=(0,T.pN)(i[1]),a=new D.A({xmin:s[0],ymin:s[1],xmax:o[0],ymax:o[1],spatialReference:{wkid:4326}});l.push({id:n,lonLatEnvelope:a})}return{name:t,onlineResources:a,coverages:l,gridCoverages:V(l),supportedVersions:["1.0.0"],version:"1.0.0"}}(n)}return r.version=s,r}var E=n(39829),X=n(87186),$=n(77301);function O(e){e.variables.forEach((e=>e.dimensions.forEach((e=>e.values??=(0,$.Xg)(e)))))}function _(e){return{requestResponseCRSs:(0,T.Dy)(e,"requestResponseCRSs").map((e=>e.split(":")[1])),nativeCRSs:(0,T.Dy)(e,"nativeCRSs").map((e=>e.split(":")[1]))}}function k(e,t){const n=(0,T.Dy)(e,"1.0.0"===t?"interpolationMethod":"InterpolationMethod"),i="1.0.0"===t?e.getAttribute("default"):(0,T.mX)(e,"InterpolationMethods/Default");return null!=i?[i].concat(n.filter((e=>e.toLowerCase()!==i.toLowerCase()))):n}function F(e){return null==e?["nearest"]:e.map((e=>{const t=e.toLowerCase();return t.includes("nearest")?"nearest":t.includes("linear")?"bilinear":t.includes("cubic")?"cubic":null})).filter((e=>!!e))}function G(e){const t=(0,T.IC)(e,"pos"),n=(0,T.pN)(t[0]),i=(0,T.pN)(t[1]);return new D.A({xmin:n[0],ymin:n[1],xmax:i[0],ymax:i[1],spatialReference:{wkid:4326}})}function B(e,t){const n=(0,T.Dy)(e,t);return n?.length&&""!==n[0]&&!isNaN(Number(n[0]))?n.map((e=>Number(e))):null}function j(e){const t=(0,T.pN)(e,"MinimumValue"),n=(0,T.pN)(e,"MaximumValue");return t.length&&n.length?t.map(((e,t)=>({min:e,max:n[t],avg:-1,stddev:-1}))):null}function W(e){return null==e?null:e.every((t=>t===e[0]))?e[0]:e}function q(e){const t=[],n=(0,T.IC)(e,"RangeSet");let i=[];for(let e=0;e<n.length;e++){const s=(0,T.mX)(n[e],"name"),o=(0,T.mX)(n[e],"label"),a=[],r=B(n[e],"nullValues/singleValue"),l=(0,T.IC)(n[e],"AxisDescription");for(let e=0;e<l.length;e++){const t=(0,T.mX)(l[e],"name"),n=(0,T.mX)(l[e],"label"),s=(0,T.Dy)(l[e],"singleValue");if(0===s.length){const t=(0,T.mX)(l[e],"min"),n=(0,T.mX)(l[e],"max"),i=Number((0,T.mX)(l[e],"res"))||1;if(null!==t&&null!==n)for(let e=parseInt(t,10);e<=parseInt(n,10);e+=i)s.push(e.toString())}"band"===t.toLowerCase()&&(i=s),a.push({name:t,label:n,values:s})}t.push({name:s,label:o,nullValues:r,axis:a})}return{rangeSet:t,bandNames:i}}function U(e=null){if(!e)return{resolution:null,units:null};let t=e.toUpperCase();const n=["Years","Months","Days","Hours","Minutes","Seconds"];let i,s,o;return t.includes("PT")?(t=t.slice(2),o=["H","M","S"].findIndex((e=>t.includes(e))),i=n[3+o],s=parseFloat(t.slice(0,-1))):(t=t.slice(1),o=["Y","M","D"].findIndex((e=>t.includes(e))),o>-1&&(i=n[o]),s=parseFloat(t.slice(0,-1))),{resolution:s,units:i}}function Z(e){const t=(0,T.IC)(e,"timeposition");if(t.length>0){const e=[];for(let n=0;n<t.length;n++)e.push(new Date((0,T.mX)(t[n])));return{begin:e[0],end:e[e.length-1],values:e}}const n=(0,T.V6)(e,"timePeriod")||(0,T.V6)(e,"TimePeriod");return n?{begin:new Date((0,T.mX)(n,"beginPosition")||(0,T.mX)(n,"BeginPosition")),end:new Date((0,T.mX)(n,"endPosition")||(0,T.mX)(n,"EndPosition")),...U((0,T.mX)(n,"timeResolution")||(0,T.mX)(n,"TimeResolution"))}:null}function z(e){const t=(0,T.V6)(e,"spatialDomain"),n=(0,T.V6)(t,"Envelope")||(0,T.V6)(t,"EnvelopeWithTimePeriod"),i=n.getAttribute("srsName").split(":"),s=i[i.length-1],o=(0,T.IC)(n,"pos"),a=(0,T.pN)(o[0]),r=(0,T.pN)(o[1]),l=parseInt(s,10),c=isNaN(l)?null:{wkid:l},u=new D.A({xmin:a[0],ymin:a[1],xmax:r[0],ymax:r[1],spatialReference:c}),p=(0,T.V6)(t,"RectifiedGrid"),d=(0,T.mX)(p,"low").split(" "),m=(0,T.mX)(p,"high").split(" "),f=parseInt(m[0],10)-parseInt(d[0],10)+1,g=parseInt(m[1],10)-parseInt(d[1],10)+1,h=(0,T.pN)(t,"origin/pos"),v=(0,T.IC)(t,"offsetVector"),y={envelope:u,columns:f,rows:g,offset:{x:parseFloat((0,T.mX)(v[0]).split(" ")[0]),y:parseFloat((0,T.mX)(v[1]).split(" ")[1])},origin:{x:h[0],y:h[1]}},b=(0,T.V6)(e,"temporalDomain")||(0,T.V6)(e,"TemporalDomain");return{spatialDomain:y,temporalDomain:b?Z(b):null}}function H(e){if(!e.temporalDomain)return null;const{begin:t,end:n,values:i,units:s,resolution:o}=e.temporalDomain,a={variables:[{name:"default",description:"",dimensions:[{name:"StdTime",description:"",unit:"ISO8601",values:i?.map((e=>e.getTime())),hasRegularIntervals:!i,interval:o,intervalUnit:s,extent:[t.getTime(),n.getTime()]}]}]};return O(a),a}function Y(e,t){const n=[],i=(0,T.IC)(e,"Field");let s,o=[];for(let e=0;e<i.length;e++){const a=(0,T.mX)(i[e],"Identifier"),r=(0,T.mX)(i[e],"Description"),l=(0,T.mX)(i[e],"Definition"),c=(0,T.mX)(i[e],"Abstract"),u=(0,T.mX)(i[e],"Title"),p=B(i[e],"NullValue"),d=(0,T.V6)(i[e],"AllowedValues"),m=d?j(d):null,f=k(i[e],"1.1.0"),g=[],h=(0,T.IC)(i[e],"Axis");for(let e=0;e<h.length;e++){const n=h[e].getAttribute("identifier"),i=(0,T.mX)(h[e],"UOM"),a=(0,T.mX)(h[e],"DataType"),r=(0,T.Dy)(h[e],"Key");t&&!n.toLowerCase().includes("band")||(o=r,s=p),g.push({identifier:n,uom:i,dataType:a,values:r,bandNoDataValues:s})}n.push({identifier:a,description:r,definition:l,abstract:c,title:u,supportedInterpolations:f,axis:g,nullValues:p,statistics:m})}return{rangeSet:n,bandNames:o,bandNoDataValues:s,statistics:n[0].statistics}}function Q(e,t){if(!t.temporalDomain)return null;const n=e.filter((e=>!e.identifier.toLowerCase().includes("field_1")&&!e.axis.some((e=>e.identifier.includes("band"))))),i=[];if(n.length&&n.forEach((e=>{const t=e.axis.map((e=>{const t=e.values.map((t=>"ISO8601"===e.uom?(t=t.trim()).toLowerCase().includes("z")?new Date(t).getTime():new Date(t+"Z").getTime():parseFloat(t.trim()))),n=[Math.min.apply(null,t),Math.max.apply(null,t)];return{name:e.identifier.trim(),description:"",field:e.identifier.trim(),unit:e.uom?e.uom.trim():"",hasRegularIntervals:!1,values:t,extent:n}}));i.push({name:e.identifier.trim(),description:e.description?.trim()??"",unit:"",dimensions:t,statistics:e.statistics})})),t.temporalDomain){const{begin:e,end:n,values:s,units:o,resolution:a}=t.temporalDomain;i.some((e=>e.dimensions.some((e=>"stdtime"===e.name.toLowerCase()))))||i.forEach((t=>{t.dimensions.push({name:"StdTime",description:"",unit:"ISO8601",values:s?.map((e=>e.getTime())),hasRegularIntervals:!s,interval:a,intervalUnit:o,extent:[e.getTime(),n.getTime()]})}))}if(i.length){const e={variables:i};return O(e),e}return null}function J(e){const t=(0,T.V6)(e,"SpatialDomain"),n=(0,T.V6)(t,"GridCRS"),i=(0,T.mX)(n,"GridBaseCRS"),s=(0,T.mX)(n,"GridOrigin"),o=s?.split(" ").map((e=>parseFloat(e)))??[0,0],a=(0,T.pN)(n,"GridOffsets"),r=(0,T.IC)(t,"BoundingBox");let l,c,u,p;for(let e=0;e<r.length;e++){const t=r[e].getAttribute("crs")?.toLowerCase();if(null!=t)if(t.includes("imagecrs")){const t=(0,T.pN)(r[e],"LowerCorner"),n=(0,T.pN)(r[e],"UpperCorner");l=n[0]-t[0]+1,c=n[1]-t[1]+1}else if(t.indexOf("epsg")>0){const n=t.split(":");u=parseInt(n[n.length-1],10);const i=(0,T.pN)(r[e],"LowerCorner"),s=(0,T.pN)(r[e],"UpperCorner");p=new D.A({xmin:i[0],ymin:i[1],xmax:s[0],ymax:s[1],spatialReference:{wkid:u}})}}const d=l>c,m=p.xmax-p.xmin>p.ymax-p.ymin;let f=!1;(0,S.m)(u)&&(d===m?f=!1:(f=!0,p=new D.A({xmin:p.ymin,ymin:p.xmin,xmax:p.ymax,ymax:p.xmax,spatialReference:{wkid:u}})));const g={columns:l,rows:c,origin:{x:o[0],y:o[1]},offset:{x:a[0],y:a[a.length-1]},gridBaseCRS:i,envelope:p,useEPSGAxis:f},h=(0,T.V6)(e,"temporalDomain")||(0,T.V6)(e,"TemporalDomain");return{spatialDomain:g,temporalDomain:h?Z(h):null}}function K(e){const t=(0,T.V6)(e,"Envelope")||(0,T.V6)(e,"EnvelopeWithTimePeriod"),n=t.getAttribute("srsName"),i=n.slice(n.lastIndexOf("/")+1),s=t.getAttribute("axisLabels").split(" ").map((e=>e.trim())).filter((e=>""!==e.trim())),o=(0,T.pN)(t,"lowerCorner"),a=(0,T.pN)(t,"upperCorner"),r=!["y","lat","latitude","north","nor","n","b"].includes(s[0].toLowerCase());let l;const c=parseInt(i,10),u=isNaN(c)?null:{wkid:c};l=new D.A(r?{xmin:o[0],ymin:o[1],xmax:a[0],ymax:a[1],spatialReference:u}:{xmin:o[1],ymin:o[0],xmax:a[1],ymax:a[0],spatialReference:u});const p={mins:o,maxs:a},d=t.getAttribute("uomLabels").trim().split(" ");let m,f;if((0,T.g7)(t,"EnvelopeWithTimePeriod")){m=new Date((0,T.mX)(e,"beginPosition")||(0,T.mX)(e,"BeginPosition")),f=new Date((0,T.mX)(e,"endPosition")||(0,T.mX)(e,"EndPosition"));const t=d?.findIndex((e=>"oledatetime"===e?.toLowerCase()));t>-1&&(d[t]="ISO8601")}return{envelope:l,axisLabels:s,uomLabels:d.length?d:null,envelopeAllDims:p,beginPosition:m,endPosition:f,isEastFirst:r}}function ee(e,t){const n=[],i=(0,T.IC)(e,"DataRecord"),s=[];let o,a=[];for(let e=0;e<i.length;e++){const r=(0,T.IC)(i[e],"field"),l=[];for(let e=0;e<r.length;e++){const n=r[e].getAttribute("name"),i=(0,T.mX)(r[e],"description")||"",c=(0,T.V6)(r[e],"uom")?.getAttribute("code")||"",u=(0,T.pN)(r[e],"interval"),p=B(r[e],"nilValue")?.[0];t&&!n.toLowerCase().includes("band")||(s.push(n),u?.length&&(o=o||[],o.push({min:u[0],max:u[1],avg:-1,stddev:-1})),a.push(p)),l.push({name:n,description:i,uom:c,allowedValues:u,nilValue:p})}n.push(l)}return a.some((e=>null!=e))||(a=null),{rangeType:n,bandNames:s,bandStats:o,bandNoDataValues:a}}function te(e){let t=1,n="";const i=.01;return Math.abs(e-1/24)<1/24*i?n="Hours":Math.abs(e-1)<1*i?n="Days":e<1?(t=Math.round(24*e),n="Hours"):e>28-i&&e<31+i||Math.round(e/30)<12?n="Months":e>365-i&&e<366+i&&(n="Years"),{interval:t,intervalUnit:n}}function ne(e,t,n){if(n.axisLabels.length<=2)return null;const i=[];for(let t=0;t<e.length;t++){const n=e[t];for(let e=0;e<n.length;e++)n[e].name.toLowerCase().includes("band")||i.push(n[e])}const s=[];if(i.length){const e=[];for(let i=2;i<n.axisLabels.length;i++){const s=t.uomLabels?.[i]?.trim()??"",o=n.axisLabels[i].toLowerCase().includes("time")||"iso8601"===s.toLowerCase()||"oledatetime"===s.toLowerCase();let a,r;if(o){const e=te(n.offset[i]);a=e.interval,r=e.intervalUnit}else a=n.offset[i],r=s;const l=[];o?(l.push((new Date).setTime(24*(t.envelopeAllDims.mins[i]-25569)*3600*1e3)),l.push((new Date).setTime(24*(t.envelopeAllDims.maxs[i]-25569)*3600*1e3))):(l.push(t.envelopeAllDims.mins[i]),l.push(t.envelopeAllDims.maxs[i])),e.push({name:n.axisLabels[i].trim(),description:n.axisLabels[i].trim(),unit:o?"ISO8601":s,hasRegularIntervals:!0,extent:l,interval:a,intervalUnit:r})}if(i.forEach((t=>{const{allowedValues:n}=t,i=2===n?.length?[{min:n[0],max:n[1],avg:-1,stddev:-1}]:null;s.push({name:t.name.trim(),description:t.description?.trim()??"",unit:t.uom.trim(),statistics:i,dimensions:e})})),s.length){const e={variables:s};return O(e),e}}return null}function ie(e,t){const n=(0,T.V6)(e,"RectifiedGrid"),i=(0,T.pN)(n,"low"),s=(0,T.pN)(n,"high"),o=[];for(let e=0;e<i.length;e++)o.push(s[e]-i[e]+1);const a=(0,T.mX)(n,"axisLabels").split(" "),r=(0,T.pN)(n,"origin/pos"),l=(0,T.IC)(n,"offsetVector"),c=[];for(let e=0;e<l.length;e++){const t=(0,T.pN)(l[e]),n=t.findIndex((e=>0!==e));c[n]=t[n]}let u,p,d,m=!1;return t?.length&&a?.length&&(m=[...t].sort(((e,t)=>e<t?-1:1)).join(",")===[...a].sort(((e,t)=>e<t?-1:1)).join(",")),["y","lat","latitude","north","nor","n","b"].includes((m?a:t)[0].toLowerCase())?(u=o[1],p=o[0],d={y:Math.abs(c[0]),x:Math.abs(c[1])}):(u=o[0],p=o[1],d={x:Math.abs(c[0]),y:Math.abs(c[1])}),{columns:u,rows:p,origin:r,offset:c,resolution:d,gridSamples:o,axisLabels:a,hasSameAxisLabelsAsBoundedBy:m}}function se(e){const t=(0,T.V6)(e,"EarthObservation");if(!t)return null;const n=(0,T.V6)(t,"phenomenonTime"),i=n?Z(n):null,s=(0,T.V6)(t,"phenomenonTime"),o=s?Z(s):null,a=(0,T.mX)(t,"featureOfInterest/Footprint/multiExtentOf/MultiSurface/surfaceMembers/Polygon/exterior/LinearRing/posList");let r=null;if(a){const e=a.split(" ").map((e=>e.trim())).filter((e=>null!=e&&""!==e)).map(Number);if(e.length){const t=[];for(let n=0;n<e.length/2;n+=2)t.push(e[n],e[n+1]);r=new E.A({rings:[[t]]})}}return{observation:{phenomenonTime:i,resultTime:o,footprint:r,identifier:(0,T.mX)(e,"metaDataProperty/EarthObservationMetaData/identifier"),acquisitionType:(0,T.mX)(e,"metaDataProperty/EarthObservationMetaData/acquisitionType"),status:(0,T.mX)(e,"metaDataProperty/EarthObservationMetaData/status")}}}var oe=n(45617),ae=n(4916);function re(e){const t=function(e){const t=e.getHeader?.("Content-Type")?.split(";");if(!t)return null;if(!(t[0].trim()??"").startsWith("multipart/"))return null;const n={boundary:"",start:"",type:""};for(let e=1;e<t.length;e++){const i=t[e].indexOf("=");if(i>0){const s=t[e].slice(0,i).trim(),o=t[e].slice(i+1).trim();n[s]=o.startsWith('"')?o.slice(1,-1):o}}return n}(e);return t?{isMultipart:!0,data:t.boundary?le(e.data,t,0):null}:{isMultipart:!1,data:null}}function le(e,t,n=0){const i="--"+t.boundary,s=[];for(let e=0;e<i.length;e++)s.push(i.charCodeAt(e));const o=[],a="\n--"+t.boundary+"--";for(let e=0;e<a.length;e++)o.push(a.charCodeAt(e));const r=[10],l=[13,10],c=[],u=s.length,p=new Uint8Array(e,n),d=Math.min(5e4,p.length-u);let m=0,f=0;for(let e=0;e<d;e++){for(f=0;f<u&&p[e+f]===s[f];f++);f===u&&(m&&c.push(ce(p.subarray(m,e),t)),e+=u-1,p[e+1]===r[0]?e+=1:p[e+1]===l[0]&&p[e+2]===l[1]&&(e+=2),m=e+1)}const g=o.length;for(let e=p.length-g-10;e<p.length-g;e++){for(f=0;f<g&&p[e+f]===o[f];f++);if(f===g){c.push(ce(p.subarray(m,e),t));break}}return c}function ce(e,t){const n=String.fromCharCode.apply(null,e.subarray(0,Math.min(300,e.length))).split("\n"),i=Math.min(n.length,7),s={contentDisposition:"inline"};let o=0;for(let a=0;a<i;a++)if(n[a].length<4)o=o+n[a].length+1;else if("content"===n[a].slice(0,7).toLowerCase()){o=o+n[a].length+1;const e=n[a].indexOf(":");if(-1===e)continue;const t=n[a].slice(0,e).trim(),i=n[a].slice(e+1).trim();switch(t.toLowerCase()){case"content-type":s.contentType=i;break;case"content-description":s.contentDescription=i;break;case"content-transfer-encoding":s.contentTransferEncoding=i;break;case"content-id":s.contentID=i;break;case"content-disposition":s.contentDisposition=i;break;case"content-location":s.contentLocation=i}}else{if(s.contentDisposition.toLowerCase().includes("inline")&&n[a].length>=4&&s.contentType?.toLowerCase().indexOf("image")>-1){let t=!0,n=e.subarray(o,e.length);if(s.contentType.toLowerCase().indexOf("tif")>0){if("base64"===s.contentTransferEncoding){let e="";const t=n;for(let n=0;n<t.length;n+=65535){const i=t.subarray(n,n+65535>t.length-1?t.length-1:n+65535);e+=String.fromCharCode.apply(null,i)}const i=atob(e);n=new Uint8Array(i.length);for(let e=0;e<n.length;e++)n[e]=i.charCodeAt(e)}t=73===n[0]&&73===n[1]||77===n[0]&&77===n[1]}if(t){let t=n.buffer;"base64"!==s.contentTransferEncoding&&(t=new ArrayBuffer(e.length-o),n=new Uint8Array(t),n.set(e.subarray(o,e.length))),s.contentData=t}break}if((""===t.start||s.contentID===t.start)&&s.contentType){if(s.contentType.includes("text")||s.contentType.includes("xml")){s.contentData=String.fromCharCode.apply(null,e.subarray(o,e.length));break}s.contentData=e.subarray(o,e.length)}}return s}var ue=n(51244),pe=n(28435);const de=["nearest neighbor","bilinear","bicubic"],me=["nearest","linear","cubic"],fe="response is not a supported multipart/related mediaType with inline tiff, switching to compatibility mode",ge=new Set(["1.0.0","1.1.0","1.1.1","1.1.2","2.0.1"]);let he=class extends ae.A{constructor(){super(...arguments),this.datasetFormat="WCSServer",this.tileType="Raster"}async fetchRawTile(e,t,n,i={}){if(this.isBlockOutside(e,t,n))return null;const{nativePixelSize:s,spatialReference:a}=this.rasterInfo,r=2**e,l=s.x*r,c=s.y*r,{blockWidth:u,blockHeight:p}=this.getBlockWidthHeight(e),{origin:d}=this.rasterInfo.storageInfo.tileInfo,m=this.getTileExtent({x:l,y:c},t,n,d,a,[u,p]),f=this.rasterInfo.extent,g=m.xmax>f.xmax,h=m.ymin<f.ymin,v=g||h;let y=m,b=u,w=p;if(v&&(y=m.clone().intersection(f),null!=y&&(g&&(b=Math.floor((y.xmax-y.xmin)/l),y.xmax=y.xmin+l*b),h&&(w=Math.floor((y.ymax-y.ymin)/c),y.ymin=y.ymax-c*w))),null==y||b<=1||w<=1)return null;const x=await this._getCoverage(y,b,w,r,i);if(!x)return null;const{coverageDescription:C}=this.coverageInfo;let{noDataValue:I,multidimensionalInfo:S}=this.rasterInfo;const{multidimensionalDefinition:A}=i;if(null!=S&&null!=A&&A.length){const e=A[0].variableName;if("2.0"===C.version){const t=C.rangeType[0].find((t=>t.name===e));I=t?.nilValue}else if("1.1"===C.version){const t=C.range.find((t=>t.identifier===e));I=t?.nullValues}}const D=await this.decodePixelBlock(x,{width:b,height:w,planes:null,pixelType:null,noDataValue:Array.isArray(I)?I[0]:I});if(null==D)return null;if(D&&(D.width!==b||D.height!==w))throw new o.A("wcsraster-fetch",`the response has unexpected dimension width: ${D.width}, height: {pixelBlock.height}`);return v?(0,pe.$Q)(D,{x:0,y:0},{width:p,height:p}):D}async _open(e){const{customFetchParameters:t}=this.ioConfig,n=e?.signal,i=await async function(e,t){const{version:n,customParameters:i,signal:s}=t??{},a=n?.startsWith("1.0")?"version":"acceptVersions",l={service:"WCS",request:"GetCapabilities",[a]:n,...i};try{const{data:t}=await(0,A.A)(e,{query:l,responseType:"xml",signal:s});return P(t)}catch(e){if(!(0,r.zf)(e))throw new o.A("wcslayer:open","wcs capabilities is not valid or supported");throw e}}(this.url,{version:this.version,customParameters:t,signal:n});if(this.capabilities=i,!this.version){let e=i.version.slice(0,3);"2.0"===e||"1.1"===e||"1.0"===e?this.version=i.version:(e=i.supportedVersions.find((e=>"2.0.1"===e))||i.supportedVersions.find((e=>"2.0"===e.slice(0,3)))||i.supportedVersions.find((e=>"1.1"===e.slice(0,3)))||i.supportedVersions.find((e=>"1.0"===e.slice(0,3)))||"1.0.0",this.version=e)}if(!ge.has(this.version))throw new o.A("wcsraster-open",`unsupported WCS version ${this.version}`);const{gridCoverages:s}=i;if(!s.length)throw new o.A("wcsraster-open","cannot find rectified grid coverages");null==this.coverageId&&(this.coverageId=s[0].id);const a=s.find((e=>e.id===this.coverageId));if(null==a)throw new o.A("wcsraster-open",`the coverageId ${this.coverageId} does not exist in capabilities`);const l=await async function(e,t){const{coverageIds:n,version:i,customParameters:s,signal:a}=t,l=i.slice(0,3),c="1.0"===l?"coverage":"1.1"===l?"identifiers":"coverageId",u={service:"WCS",request:"DescribeCoverage",version:i,[c]:n.join(","),...s};try{const{data:t}=await(0,A.A)(e,{query:u,responseType:"xml",signal:a});return function(e,t){let n=null;if(n="string"==typeof e?(new DOMParser).parseFromString(e,"text/xml"):e,"1.0.0"===t)return(0,T.IC)(n,"CoverageOffering").map((e=>function(e){const t={version:"1.0"};let n,i=[];for(let s=0;s<e.childNodes.length;s++){const o=e.childNodes[s];if(1===o.nodeType)if((0,T.g7)(o,"description"))t.description=(0,T.mX)(o);else if((0,T.g7)(o,"name"))t.name=(0,T.mX)(o);else if((0,T.g7)(o,"label"))t.label=(0,T.mX)(o);else if((0,T.g7)(o,"supportedFormats"))t.supportedFormats=(0,T.Dy)(o,"formats");else if((0,T.g7)(o,"supportedCRSs"))t.supportedCRSs=_(o);else if((0,T.g7)(o,"supportedInterpolations"))t.supportedInterpolations=k(o,"1.0.0");else if((0,T.g7)(o,"lonLatEnvelope"))t.lonLatEnvelope=G(o);else if((0,T.g7)(o,"rangeSet")){const e=q(o);t.rangeSet=e.rangeSet,i=e.bandNames;const s=e.rangeSet[0].nullValues;s?.length&&(n=W(s))}else(0,T.g7)(o,"domainSet")&&(t.domainSet=z(o))}const s=F(t.supportedInterpolations),{name:o,description:a,label:r,lonLatEnvelope:l,supportedFormats:c}=t,{spatialDomain:u}=t.domainSet,p={x:Math.abs(u.offset.x),y:Math.abs(u.offset.y)},d=H(t.domainSet),m=new X.A({width:u.columns,height:u.rows,pixelSize:p,pixelType:"unknown",extent:u.envelope,spatialReference:u.envelope.spatialReference,bandCount:i.length||1,noDataValue:n,multidimensionalInfo:d});return{id:o,title:t.name,description:a||r,lonLatEnvelope:l,rasterInfo:m,bandNames:i,supportedFormats:c,supportedInterpolations:s,coverageDescription:t,version:"1.0.0",useEPSGAxis:!1}}(e)));const i=(0,T.IC)(n,"CoverageDescription");return"1.1.0"===t||"1.1.1"===t||"1.1.2"===t?i.map((e=>function(e,t){const n=[],i=[],s={supportedFormats:n,supportedCRSs:i,version:"1.1"};let o,a,r=[];for(let t=0;t<e.childNodes.length;t++){const l=e.childNodes[t];if(1!==l.nodeType)continue;const c=(0,T.vv)(l).toLowerCase();switch(c){case"title":case"abstract":case"identifier":s[c]=(0,T.mX)(l);break;case"supportedformat":{const e=(0,T.mX)(l);n.includes(e)||n.push(e)}break;case"supportedcrs":{const e=(0,T.mX)(l);i.includes(e)||i.push(e)}break;case"range":{const e=Y(l,!!s.domain?.temporalDomain);s.range=e.rangeSet,r=e.bandNames;const{bandNoDataValues:t}=e;t?.length&&(o=W(t)),a=e.statistics}break;case"domain":s.domain=J(l)}}const l=F(s.range[0].supportedInterpolations),{identifier:c,abstract:u,title:p,domain:d,range:m}=s,f={x:Math.abs(d.spatialDomain.offset.x),y:Math.abs(d.spatialDomain.offset.y)},g=Q(m,d);g&&(o=m[0].nullValues,1===o?.length&&(o=o[0]));const h=new X.A({width:d.spatialDomain.columns,height:d.spatialDomain.rows,pixelSize:f,pixelType:"unknown",extent:d.spatialDomain.envelope,spatialReference:d.spatialDomain.envelope.spatialReference,bandCount:r.length||1,noDataValue:o,statistics:a,multidimensionalInfo:g});return{id:c,title:s.title,description:u||p,bandNames:r,rasterInfo:h,supportedFormats:n,supportedInterpolations:l,coverageDescription:s,version:t,useEPSGAxis:d.spatialDomain.useEPSGAxis}}(e,t))):i.map((e=>function(e){const t={version:"2.0"};let n,i,s=[];for(let o=0;o<e.childNodes.length;o++){const a=e.childNodes[o];if(1===a.nodeType)if((0,T.g7)(a,"coverageId"))t.coverageId=(0,T.mX)(a);else if((0,T.g7)(a,"ServiceParameters"))t.serviceParameters={supportedFormats:(0,T.Dy)(a,"nativeFormat")};else if((0,T.g7)(a,"boundedBy"))t.boundedBy=K(a);else if((0,T.g7)(a,"rangeType")){const e=ee(a,t.boundedBy?.axisLabels.length>2||t.domainSet?.axisLabels.length>2);t.rangeType=e.rangeType,s=e.bandNames,n=e.bandStats;const{bandNoDataValues:o}=e;o?.length&&(i=W(o))}else if((0,T.g7)(a,"domainSet"))t.domainSet=ie(a,t.boundedBy?.axisLabels);else if((0,T.g7)(a,"metadata")){const e=(0,T.V6)(a,"EOMetadata");t.eoMetadata=e?se(e):null}}const{coverageId:o,boundedBy:a,domainSet:r,rangeType:l,serviceParameters:c}=t,u=ne(l,a,r);return!n&&u&&(n=u?.variables[0].statistics),null!=u&&(i=l[0][0].nilValue),{id:o,title:o,description:o,bandNames:s,rasterInfo:new X.A({width:r.columns,height:r.rows,pixelSize:r.resolution,pixelType:"unknown",extent:a.envelope,spatialReference:a.envelope.spatialReference,bandCount:s.length||1,statistics:n,noDataValue:i,multidimensionalInfo:u}),supportedFormats:c.supportedFormats,coverageDescription:t,version:"2.0.1",useEPSGAxis:!1}}(e)))}(t,i)}catch(e){if(!(0,r.zf)(e))throw new o.A("wcslayer:open","wcs coverage description is not valid or supported");throw e}}(this.url,{coverageIds:[this.coverageId],version:this.version,customParameters:t,signal:n});this.coverageInfo=l[0],"2.0"===this.version.slice(0,3)&&(this.coverageInfo.lonLatEnvelope=a.lonLatEnvelope,this.coverageInfo.supportedInterpolations=F(i.supportedInterpolations)),this.datasetName=this.coverageInfo.title;const{rasterInfo:c}=this.coverageInfo;if(this.createRemoteDatasetStorageInfo(c,512,512),this._set("rasterInfo",c),null==c.spatialReference)throw new o.A("wcsraster-open",`coverage without spatial reference is not supported: ${this.coverageId}`);const{pixelType:u,bandCount:p}=await this._getPixelTypeAndBandCount(n);c.pixelType=u,1===c.bandCount&&p>1&&(c.bandCount=p),this.updateTileInfo()}async _getPixelTypeAndBandCount(e){const{pixelSize:t,extent:n,multidimensionalInfo:i}=this.rasterInfo,s=n.center,a=new D.A({xmin:s.x-t.x,xmax:s.x+t.x,ymin:s.y-t.y,ymax:s.y+t.y,spatialReference:n.spatialReference});let r=[];if(null!=i){const e=i.variables[0];r=[],e.dimensions.forEach((t=>{r.push(new oe.A({variableName:e.name,dimensionName:t.name,values:t.hasRegularIntervals?t.extent?.[0]:t.values?.[0],isSlice:!0}))}))}const{coverageDescription:l}=this.coverageInfo,c={interpolation:"nearest",multidimensionalDefinition:r,signal:e},{version:p}=l,{ioConfig:d}=this,m="2.0"===p&&null==d.allowAnyMediaType||"1.1"===p&&null==d.use2GridOffsets;let f;try{f=await this._getCoverage(a,2,2,1,c,!0)}catch(e){if(!m)throw e;if("1.1"===p){if(!e.details?.isResolutionMismatch)throw e;d.use2GridOffsets=!0}}if(!f&&m&&("2.0"===p&&(d.allowAnyMediaType=!0),f=await this._getCoverage(a,2,2,1,c),f&&u.A.getLogger(this).warn("wcsraster:getcoverage",fe)),!f)throw new o.A("wcsraster-open","unable to determine pixel type");const g=await this.decodePixelBlock(f,{width:2,height:2,planes:null,pixelType:null});if(null==g)throw new o.A("wcsraster-open","unable to determine pixel type");return{pixelType:g.pixelType,bandCount:g.getPlaneCount()??0}}async _getCoverage(e,t,n,i,s,a=!1){const{coverageDescription:r}=this.coverageInfo,{version:l}=r,c="2.0"===l?this._getCoverage201Parameters(e,t,n,i,s,r):"1.1"===l?this._getCoverage110Parameters(e,t,n,s,r):this._getCoverage100Parameters(e,t,n,s),p="2.0"===l?await this.request(this._constructWCS201Url(c),{signal:s.signal,responseType:"array-buffer"}):await this.request(this.url,{query:c,signal:s.signal,responseType:"array-buffer"});if("1.0"===l)return p.data;if("2.0"===l&&!1!==this.ioConfig.allowAnyMediaType&&"tiff"===(0,ue.g)(p.data))return a&&(this.ioConfig.allowAnyMediaType=!0,u.A.getLogger(this).warn("wcsraster:getcoverage",fe)),p.data;const d=re(p);if(d.isMultipart&&d.data){const e=d.data.find((e=>e.contentType?.toLowerCase().includes("image")&&null!=e.contentData));return a&&"base64"===e?.contentTransferEncoding&&u.A.getLogger(this).warn("wcsraster:getcoverage","response is base64 encoded which may impact layer display performance"),e?.contentData}const m=new Uint8Array(p.data,0,Math.min(p.data.byteLength,2e3)),f=String.fromCharCode.apply(null,m).toLowerCase().includes("exception"),g=f&&String.fromCharCode.apply(null,m).includes("A non-zero RESX/RESY or WIDTH/HEIGHT is required but neither was provided");if(f)throw new o.A("wcsraster:getcoverage","server returns an exception",{isResolutionMismatch:g});throw new o.A("wcsraster:getcoverage","response is not a supported multipart mediaType with inline tiff")}_getInterpolationIndex(e){return e&&this.coverageInfo.supportedInterpolations?.includes(e)?"nearest"===e?0:"bilinear"===e?1:"cubic"===e?2:0:0}_getCoverage100Parameters(e,t,n,i){const s=`${e.xmin},${e.ymin},${e.xmax},${e.ymax}`,o=e.spatialReference.wkid,a=(this.coverageInfo.supportedFormats||[]).find((e=>e.toLowerCase().includes("tiff")))||"GEOTIFF",{bandIds:r,interpolation:l}=i,c=this._getInterpolationIndex(l),u=r?r.map((e=>this.coverageInfo.bandNames[e])):null,p=de[c],{multidimensionalDefinition:d}=i;let m;if(null!=d&&null!=this.rasterInfo.multidimensionalInfo){const e=d.find((e=>"StdTime"===e.dimensionName));let t=e?.values;t&&t.length>0&&(Array.isArray(t[0])&&(t=t[0]),m=t.map((e=>ve(e))).join(","))}return{service:"WCS",request:"GetCoverage",version:this.version,coverage:this.coverageId,format:a,crs:`EPSG:${o}`,bbox:s,width:t,height:n,time:m,interpolation:p,band:u?.join(",")}}_getCoverage110Parameters(e,t,n,i,s){const{multidimensionalDefinition:o,bandIds:a,interpolation:r}=i,l=e.spatialReference.wkid,c=`urn:ogc:def:crs:EPSG::${l}`,u=(this.coverageInfo.supportedFormats||[]).find((e=>e.toLowerCase().includes("tiff")))||"image/tiff",p=this._getInterpolationIndex(r),d=me[p],m=null==r||0===this.coverageInfo.supportedInterpolations?.indexOf(r),f=s.domain.spatialDomain,g=f.origin.x<=f.envelope.xmin&&f.origin.y<=f.envelope.ymin,h=e.width/t,v=e.height/n*(g?1:-1),y=g?[e.xmin,e.ymin]:[e.xmin,e.ymax],b=f.useEPSGAxis&&(0,S.m)(l),w=b?`${y[1]},${y[0]}`:`${y[0]},${y[1]}`,x=this.ioConfig.use2GridOffsets,C=b?x?`${v},${h}`:`${v},0,0,${h}`:x?`${h},${v}`:`${h},0,0,${v}`,I=h/2,A=e.xmin+I,D=e.xmax-I,T=Math.abs(v)/2,L=e.ymin+T,V=e.ymax-T,N=b?`${L},${A},${V},${D},${c}`:`${A},${L},${D},${V},${c}`,M=s.range.find((e=>e.axis.some((e=>e.identifier.toLowerCase().includes("band")))));let R,P=M&&d&&a?m?`${M.identifier}[${M.axis[0].identifier}[${a.join(",")}]]`:`${M.identifier}:${d}[${M.axis[0].identifier}[${a.join(",")}]]`:null;if(null!=o&&o.length)for(let e=0;e<o.length;e++){let t=o[e].values;const n=o[e].dimensionName?.toLowerCase(),i=o[e].variableName?.toLowerCase();if(t.length>0)if(Array.isArray(t[0])&&(t=t[0]),"stdtime"===n)R=t.map((e=>ve(e))).join(",");else{const e=s.range.find((e=>e.identifier.toLowerCase()===i));if(e){const i=e.axis.find((e=>e.identifier.toLowerCase()===n));i&&(P=m?e.identifier+"["+i.identifier+"["+t.join(",")+"]]":e.identifier+":"+d+"["+i.identifier+"["+t.join(",")+"]]")}}}return{service:"WCS",request:"GetCoverage",version:this.version,identifier:this.coverageId,format:u,crs:`EPSG:${l}`,boundingbox:N,gridCS:"urn:ogc:def:cs:OGC:0.0:Grid2dSquareCS",gridType:"urn:ogc:def:method:WCS:1.1:2dGridIn2dCrs",gridOrigin:w,gridOffsets:C,gridBaseCRS:c,timeSequence:R,rangeSubset:P}}_getCoverage201Parameters(e,t,n,i,s,o){const{multidimensionalDefinition:a,interpolation:r}=s,l=this._getInterpolationIndex(r);let c=null;const{supportedInterpolations:u}=this.capabilities;if(u?.length)switch(l){case 0:c=u.find((e=>e.toLowerCase().includes("nearest")));break;case 1:c=u.find((e=>e.toLowerCase().includes("linear")));break;case 2:c=u.find((e=>e.toLowerCase().includes("cubic")||e.toLowerCase().includes("quadratic")))}const p=(this.coverageInfo.supportedFormats||[]).find((e=>e.toLowerCase().includes("tiff")))||"image/tiff",{bandNames:d}=this.coverageInfo,{boundedBy:m,domainSet:f,rangeType:g}=o,h=m.isEastFirst?0:1,v=1-h,{axisLabels:y}=m,b=y[h],w=y[v],x=`http://www.opengis.net/def/crs/EPSG/0/${e.spatialReference.wkid}`,C=x,I=[];I.push(`${b}(${e.xmin},${e.xmax})`),I.push(`${w}(${e.ymin},${e.ymax})`);const S=[];if(y.length>2)for(let e=2;e<y.length;e++){const t=f.origin[e];if(y[e].toLowerCase().includes("time")){let n=t.toString();m.uomLabels?.[e].toLowerCase().includes("ole")&&(S.push(y[e]),n=ve(t,!0)),I.push(y[e]+",http://www.opengis.net("+n+")")}else I.push(y[e]+",http://www.opengis.net("+t+")")}let A=null;if(null!=a&&a.length){const e=[];g.forEach((t=>t.forEach((t=>e.push(t.name)))));const t=[];for(let n=0;n<a.length;n++){const i=y.find((e=>e===a[n].dimensionName)),s=e.find((e=>e===a[n].variableName));if(t.includes(s)||t.push(s),i){let e=a[n].values;if(e.length>0){Array.isArray(e[0])&&(e=e[0]);let t="";t=i.toLowerCase().includes("time")?e.map((e=>ve(e))).join(","):e.join(",");const n=I.findIndex((e=>0===e.indexOf(i+",http://www.opengis.net")));-1===n&&I.push(i+",http://www.opengis.net("+t+")"),-1===n||I[n].includes("("+t+")")||I.splice(n,1,i+",http://www.opengis.net("+t+")")}}}t.length&&(A=t.join(","))}else d?.length>=2&&(A=(s.bandIds?s.bandIds.map((e=>d[e])):d).join(","));const D=I.join("&subset="),T=!o.domainSet.hasSameAxisLabelsAsBoundedBy&&!1!==this.ioConfig.allowScaleFactor,L=T?null:`${b}(${t}),${w}(${n})`,V=T?1/i:null;return{service:"WCS",request:"GetCoverage",version:this.version,coverageId:this.coverageId,rangesubset:A,interpolation:c,scaleSize:L,scaleFactor:V,subset:D,format:p,mediaType:this.ioConfig.allowAnyMediaType?null:"multipart/related",outputcrs:x,subsettingcrs:C}}_constructWCS201Url(e){const t={...this.ioConfig.customFetchParameters,...e},n=[];return Object.keys(t).forEach((e=>{const i=t[e];null!=i&&("subset"===e?"string"==typeof i&&i.split("&subset=").forEach((e=>{e&&n.push(`subset=${encodeURIComponent(e)}`)})):n.push(`${e}=${encodeURIComponent(i)}`))})),`${encodeURI(this.url)}?${n.join("&")}`}};function ve(e,t=!1){return(t?new Date(24*(e-25569)*60*60*1e3):new Date(e)).toISOString()}(0,i._)([(0,c.MZ)({type:String,json:{write:!0}})],he.prototype,"datasetFormat",void 0),(0,i._)([(0,c.MZ)({readOnly:!0})],he.prototype,"tileType",void 0),(0,i._)([(0,c.MZ)({type:String,json:{write:!0}})],he.prototype,"version",void 0),(0,i._)([(0,c.MZ)({type:String,json:{write:!0}})],he.prototype,"coverageId",void 0),he=(0,i._)([(0,p.$)("esri.layers.support.rasterDatasets.WCSRaster")],he);const ye=he;var be=n(30291),we=n(92935);const xe=new Set(["milliseconds","seconds","minutes","hours","days","weeks","months","years","decades","centuries"]);let Ce=class extends((0,m.dM)((0,b.j)((0,h.q)((0,v.A)((0,f.d)((0,g.o)((0,w.e)((0,y.J)((0,a.P)(d.A)))))))))){constructor(...e){super(...e),this.coverageId=null,this.version=null,this.isReference=null,this.legendEnabled=!0,this.operationalLayerType="WCS",this.type="wcs",this.popupEnabled=!0,this.popupTemplate=null,this.fields=null,this._debouncedSaveOperations=(0,r.sg)((async(e,t,i)=>{const{save:s,saveAs:o}=await n.e(9838).then(n.bind(n,59838));switch(e){case we.X.SAVE:return s(this,t);case we.X.SAVE_AS:return o(this,i,t)}}))}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}load(e){const t=null!=e?e.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["WCS"]},e).catch(r.QP).then((()=>this._openRaster(t)))),Promise.resolve(this)}get coverageInfo(){return this.raster.coverageInfo}get defaultPopupTemplate(){return this.createPopupTemplate()}get rasterFields(){return[(0,I.rZ)("Pixel Value")]}createPopupTemplate(e){return(0,be.tn)({fields:this.rasterFields,title:this.title},e)}async save(e){return this._debouncedSaveOperations(we.X.SAVE,e)}async saveAs(e,t){return this._debouncedSaveOperations(we.X.SAVE_AS,t,e)}async _openRaster(e){const t=new ye({url:this.url,version:this.version,coverageId:this.coverageId,ioConfig:{sampling:"closest",...this.ioConfig,customFetchParameters:this.customParameters}});if(await t.open({signal:e}),!t.rasterInfo)throw t.destroy(),new o.A("wcs-layer:load","cannot load resources on "+this.url);const{rasterInfo:n}=t;this._set("serviceRasterInfo",n),this._set("spatialReference",n.spatialReference),null==this.title&&this.setAtOrigin("title",t.datasetName,"service"),null==this.coverageId&&this.setAtOrigin("coverageId",t.coverageInfo.id,"service"),null==this.version&&t.version&&this.setAtOrigin("version",t.version,"service"),this.setAtOrigin("tileInfo",t.rasterInfo.storageInfo.tileInfo,"service");const{multidimensionalInfo:i}=n;if(null!=i){const e=i.variables[0].dimensions.find((({name:e})=>"StdTime"===e));if(e){let t=e.extent?.[0]??e.values[0];Array.isArray(t)&&(t=t[0]);let n=e.extent?.[1]??e.values[e.values.length-1];Array.isArray(n)&&(n=n[1]);const i=xe.has(e.intervalUnit?.toLowerCase())?e.intervalUnit?.toLowerCase():null;this.set("timeInfo",{startField:"StdTime",fullTimeExtent:{start:t,end:n},timeZone:null,interval:i?{value:e.interval,unit:i}:null})}}this.raster=t,this._configDefaultSettings(),this.addHandles((0,l.wB)((()=>this.customParameters),(e=>this.raster.ioConfig.customFetchParameters=e)))}};(0,i._)([(0,c.MZ)({type:String,nonNullable:!0,json:{name:"wcsInfo.coverageId",write:!0}})],Ce.prototype,"coverageId",void 0),(0,i._)([(0,c.MZ)()],Ce.prototype,"coverageInfo",null),(0,i._)([(0,c.MZ)({type:String,nonNullable:!0,json:{name:"wcsInfo.version",write:!0}})],Ce.prototype,"version",void 0),(0,i._)([(0,c.MZ)({type:Boolean,json:{read:!1,write:{enabled:!0,overridePolicy:()=>({enabled:!1})}}})],Ce.prototype,"isReference",void 0),(0,i._)([(0,c.MZ)({json:{read:!0,write:!0}})],Ce.prototype,"blendMode",void 0),(0,i._)([(0,c.MZ)(x.fV)],Ce.prototype,"legendEnabled",void 0),(0,i._)([(0,c.MZ)({type:["WCS"]})],Ce.prototype,"operationalLayerType",void 0),(0,i._)([(0,c.MZ)()],Ce.prototype,"raster",void 0),(0,i._)([(0,c.MZ)({readOnly:!0})],Ce.prototype,"type",void 0),(0,i._)([(0,c.MZ)(x.M6)],Ce.prototype,"popupEnabled",void 0),(0,i._)([(0,c.MZ)({type:s.A,json:{name:"popupInfo",write:!0}})],Ce.prototype,"popupTemplate",void 0),(0,i._)([(0,c.MZ)({readOnly:!0})],Ce.prototype,"defaultPopupTemplate",null),(0,i._)([(0,c.MZ)({readOnly:!0,type:[C.A]})],Ce.prototype,"fields",void 0),(0,i._)([(0,c.MZ)({readOnly:!0,type:[C.A]})],Ce.prototype,"rasterFields",null),Ce=(0,i._)([(0,p.$)("esri.layers.WCSLayer")],Ce);const Ie=Ce},38458:(e,t,n)=>{n.d(t,{m:()=>s});const i=[[3819,3819],[3821,3824],[3889,3889],[3906,3906],[4001,4025],[4027,4036],[4039,4047],[4052,4055],[4074,4075],[4080,4081],[4120,4176],[4178,4185],[4188,4216],[4218,4289],[4291,4304],[4306,4319],[4322,4326],[4463,4463],[4470,4470],[4475,4475],[4483,4483],[4490,4490],[4555,4558],[4600,4646],[4657,4765],[4801,4811],[4813,4821],[4823,4824],[4901,4904],[5013,5013],[5132,5132],[5228,5229],[5233,5233],[5246,5246],[5252,5252],[5264,5264],[5324,5340],[5354,5354],[5360,5360],[5365,5365],[5370,5373],[5381,5381],[5393,5393],[5451,5451],[5464,5464],[5467,5467],[5489,5489],[5524,5524],[5527,5527],[5546,5546],[2044,2045],[2081,2083],[2085,2086],[2093,2093],[2096,2098],[2105,2132],[2169,2170],[2176,2180],[2193,2193],[2200,2200],[2206,2212],[2319,2319],[2320,2462],[2523,2549],[2551,2735],[2738,2758],[2935,2941],[2953,2953],[3006,3030],[3034,3035],[3038,3051],[3058,3059],[3068,3068],[3114,3118],[3126,3138],[3150,3151],[3300,3301],[3328,3335],[3346,3346],[3350,3352],[3366,3366],[3389,3390],[3416,3417],[3833,3841],[3844,3850],[3854,3854],[3873,3885],[3907,3910],[4026,4026],[4037,4038],[4417,4417],[4434,4434],[4491,4554],[4839,4839],[5048,5048],[5105,5130],[5253,5259],[5269,5275],[5343,5349],[5479,5482],[5518,5519],[5520,5520],[20004,20032],[20064,20092],[21413,21423],[21473,21483],[21896,21899],[22171,22177],[22181,22187],[22191,22197],[25884,25884],[27205,27232],[27391,27398],[27492,27492],[28402,28432],[28462,28492],[30161,30179],[30800,30800],[31251,31259],[31275,31279],[31281,31290],[31466,31700]];function s(e){return null!=e&&i.some((([t,n])=>e>=t&&e<=n))}}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9547],{19547:(e,t,n)=>{n.r(t),n.d(t,{default:()=>Ie});var i=n(90237),s=n(13874),o=n(49186),a=n(92071),r=n(74887),l=n(36708),c=n(10107),u=(n(44208),n(53966)),p=(n(87811),n(40608)),d=n(4146),m=n(63074),f=n(69208),g=n(89015),h=n(16131),v=n(8303),y=n(54310),b=n(25036),w=n(82935),x=n(10873),C=n(20437),I=n(74797),S=(n(59456),n(38458)),A=n(78888),D=n(5443),T=n(50103);function L(e){return e.endsWith("?")?e.slice(0,-1):e}function V(e){return e.filter((({coverageSubType:e})=>null==e||""===e||/^rectified(grid|dataset)/i.test(e)))}function M(e){const t={};for(let n=0;n<e.childNodes.length;n++){const i=e.childNodes[n];if(1!==i.nodeType)continue;const s=(0,T.vv)(i).toLowerCase();switch(s){case"title":case"abstract":t[s]=(0,T.mX)(i);break;case"identifier":t.id=(0,T.mX)(i);break;case"wgs84boundingbox":{const e=(0,T.pN)(i,"LowerCorner"),n=(0,T.pN)(i,"UpperCorner");t.lonLatEnvelope=new D.A({xmin:e[0],ymin:e[1],xmax:n[0],ymax:n[1],spatialReference:{wkid:4326}})}break;case"coveragesummary":t.coverageSummaries=t.coverageSummaries||[],t.coverageSummaries.push(M(i))}}return t}function N(e,t){if(e.coverageSummaries)for(let n=0;n<e.coverageSummaries.length;n++)e.coverageSummaries[n].abstract=e.coverageSummaries[n].abstract||e.abstract,e.coverageSummaries[n].lonLatEnvelope=e.coverageSummaries[n].lonLatEnvelope||e.lonLatEnvelope,e.coverageSummaries[n].title=e.coverageSummaries[n].title||e.title,N(e.coverageSummaries[n],t);null!=e.id&&t.push(e)}function R(e){const t=(0,T.V6)(e.querySelector("Operation[name=GetCapabilities]"),"Get")?.getAttribute("xlink:href")||"",n=(0,T.V6)(e.querySelector("Operation[name=DescribeCoverage]"),"Get")?.getAttribute("xlink:href")||"",i=(0,T.V6)(e.querySelector("Operation[name=GetCoverage]"),"Get")?.getAttribute("xlink:href")||"";return{getCapabilities:L(t),describeCoverage:L(n),getCoverage:L(i)}}function P(e,t=null){let n=null;n="string"==typeof e?(new DOMParser).parseFromString(e,"text/xml"):e;let i=n.documentElement.getAttribute("version");"1.0"===i?i="1.0.0":"1.1"===i&&(i="1.1.0");const s=i||t||"1.0.0",a=s.slice(0,3);let r;if("2.0"===a)r=function(e){const t=(0,T.V6)(e,"ServiceIdentification"),n=(0,T.mX)(t,"Title"),i=(0,T.Dy)(t,"ServiceTypeVersion"),s=(0,T.Dy)(t,"Profile"),o=R((0,T.V6)(e,"OperationsMetadata")),a=(0,T.IC)(e,"Contents/CoverageSummary"),r=[];for(let e=0;e<a.length;e++){const t=a[e],n=(0,T.mX)(t,"CoverageId"),i=(0,T.V6)(t,"WGS84BoundingBox");let s;if(i){const e=(0,T.pN)(i,"LowerCorner"),t=(0,T.pN)(i,"UpperCorner");s=new D.A({xmin:e[0],ymin:e[1],xmax:t[0],ymax:t[1],spatialReference:{wkid:4326}})}const o=(0,T.mX)(t,"CoverageSubtype")||"RectifiedGridCoverage";r.push({id:n,lonLatEnvelope:s,coverageSubType:o})}const l=(0,T.V6)(e,"ServiceMetadata");return{name:n,supportedVersions:i,supportedFormats:(0,T.Dy)(l,"formatSupported"),supportedInterpolations:(0,T.Dy)(l,"interpolationSupported").concat((0,T.Dy)(l,"InterpolationSupported")),onlineResources:o,profiles:s,coverages:r,gridCoverages:V(r),version:"2.0.1"}}(n);else if("1.1"===a)r=function(e){const t=(0,T.mX)(e,"ServiceIdentification/Title"),n=(0,T.Dy)(e,"ServiceIdentification/ServiceTypeVersion"),i=R((0,T.V6)(e,"OperationsMetadata")),s=[],o=(0,T.V6)(e,"Contents");for(let e=0;e<o.childNodes.length;e++){const t=o.childNodes[e];1===t.nodeType&&(0,T.g7)(t,"CoverageSummary")&&N(M(t),s)}const a=(0,T.Dy)(o,"SupportedFormat");return{name:t,onlineResources:i,coverages:s,gridCoverages:V(s),supportedVersions:n,supportedFormats:a,version:"1.1.0"}}(n);else{if("1.0"!==a)throw new o.A("wcsraster:parsecapabilities","the capabilities version is not supported");r=function(e){const t=(0,T.mX)(e,"Service/name"),n=(0,T.V6)(e,"Capability"),i=(0,T.V6)(n,"GetCapabilities/Get/OnlineResource")?.getAttribute("xlink:href")??"",s=(0,T.V6)(n,"DescribeCoverage/Get/OnlineResource")?.getAttribute("xlink:href")??"",o=(0,T.V6)(n,"GetCoverage/Get/OnlineResource")?.getAttribute("xlink:href")??"",a={getCapabilities:L(i),describeCoverage:L(s),getCoverage:L(o)},r=(0,T.IC)(e,"CoverageOfferingBrief"),l=[];for(let e=0;e<r.length;e++){const t=r[e],n=(0,T.mX)(t,"name"),i=(0,T.IC)(t,"pos"),s=(0,T.pN)(i[0]),o=(0,T.pN)(i[1]),a=new D.A({xmin:s[0],ymin:s[1],xmax:o[0],ymax:o[1],spatialReference:{wkid:4326}});l.push({id:n,lonLatEnvelope:a})}return{name:t,onlineResources:a,coverages:l,gridCoverages:V(l),supportedVersions:["1.0.0"],version:"1.0.0"}}(n)}return r.version=s,r}var E=n(39829),X=n(87186),$=n(77301);function O(e){e.variables.forEach((e=>e.dimensions.forEach((e=>e.values??=(0,$.Xg)(e)))))}function _(e){return{requestResponseCRSs:(0,T.Dy)(e,"requestResponseCRSs").map((e=>e.split(":")[1])),nativeCRSs:(0,T.Dy)(e,"nativeCRSs").map((e=>e.split(":")[1]))}}function k(e,t){const n=(0,T.Dy)(e,"1.0.0"===t?"interpolationMethod":"InterpolationMethod"),i="1.0.0"===t?e.getAttribute("default"):(0,T.mX)(e,"InterpolationMethods/Default");return null!=i?[i].concat(n.filter((e=>e.toLowerCase()!==i.toLowerCase()))):n}function F(e){return null==e?["nearest"]:e.map((e=>{const t=e.toLowerCase();return t.includes("nearest")?"nearest":t.includes("linear")?"bilinear":t.includes("cubic")?"cubic":null})).filter((e=>!!e))}function G(e){const t=(0,T.IC)(e,"pos"),n=(0,T.pN)(t[0]),i=(0,T.pN)(t[1]);return new D.A({xmin:n[0],ymin:n[1],xmax:i[0],ymax:i[1],spatialReference:{wkid:4326}})}function B(e,t){const n=(0,T.Dy)(e,t);return n?.length&&""!==n[0]&&!isNaN(Number(n[0]))?n.map((e=>Number(e))):null}function j(e){const t=(0,T.pN)(e,"MinimumValue"),n=(0,T.pN)(e,"MaximumValue");return t.length&&n.length?t.map(((e,t)=>({min:e,max:n[t],avg:-1,stddev:-1}))):null}function W(e){return null==e?null:e.every((t=>t===e[0]))?e[0]:e}function q(e){const t=[],n=(0,T.IC)(e,"RangeSet");let i=[];for(let e=0;e<n.length;e++){const s=(0,T.mX)(n[e],"name"),o=(0,T.mX)(n[e],"label"),a=[],r=B(n[e],"nullValues/singleValue"),l=(0,T.IC)(n[e],"AxisDescription");for(let e=0;e<l.length;e++){const t=(0,T.mX)(l[e],"name"),n=(0,T.mX)(l[e],"label"),s=(0,T.Dy)(l[e],"singleValue");if(0===s.length){const t=(0,T.mX)(l[e],"min"),n=(0,T.mX)(l[e],"max"),i=Number((0,T.mX)(l[e],"res"))||1;if(null!==t&&null!==n)for(let e=parseInt(t,10);e<=parseInt(n,10);e+=i)s.push(e.toString())}"band"===t.toLowerCase()&&(i=s),a.push({name:t,label:n,values:s})}t.push({name:s,label:o,nullValues:r,axis:a})}return{rangeSet:t,bandNames:i}}function U(e=null){if(!e)return{resolution:null,units:null};let t=e.toUpperCase();const n=["Years","Months","Days","Hours","Minutes","Seconds"];let i,s,o;return t.includes("PT")?(t=t.slice(2),o=["H","M","S"].findIndex((e=>t.includes(e))),i=n[3+o],s=parseFloat(t.slice(0,-1))):(t=t.slice(1),o=["Y","M","D"].findIndex((e=>t.includes(e))),o>-1&&(i=n[o]),s=parseFloat(t.slice(0,-1))),{resolution:s,units:i}}function Z(e){const t=(0,T.IC)(e,"timeposition");if(t.length>0){const e=[];for(let n=0;n<t.length;n++)e.push(new Date((0,T.mX)(t[n])));return{begin:e[0],end:e[e.length-1],values:e}}const n=(0,T.V6)(e,"timePeriod")||(0,T.V6)(e,"TimePeriod");return n?{begin:new Date((0,T.mX)(n,"beginPosition")||(0,T.mX)(n,"BeginPosition")),end:new Date((0,T.mX)(n,"endPosition")||(0,T.mX)(n,"EndPosition")),...U((0,T.mX)(n,"timeResolution")||(0,T.mX)(n,"TimeResolution"))}:null}function z(e){const t=(0,T.V6)(e,"spatialDomain"),n=(0,T.V6)(t,"Envelope")||(0,T.V6)(t,"EnvelopeWithTimePeriod"),i=n.getAttribute("srsName").split(":"),s=i[i.length-1],o=(0,T.IC)(n,"pos"),a=(0,T.pN)(o[0]),r=(0,T.pN)(o[1]),l=parseInt(s,10),c=isNaN(l)?null:{wkid:l},u=new D.A({xmin:a[0],ymin:a[1],xmax:r[0],ymax:r[1],spatialReference:c}),p=(0,T.V6)(t,"RectifiedGrid"),d=(0,T.mX)(p,"low").split(" "),m=(0,T.mX)(p,"high").split(" "),f=parseInt(m[0],10)-parseInt(d[0],10)+1,g=parseInt(m[1],10)-parseInt(d[1],10)+1,h=(0,T.pN)(t,"origin/pos"),v=(0,T.IC)(t,"offsetVector"),y={envelope:u,columns:f,rows:g,offset:{x:parseFloat((0,T.mX)(v[0]).split(" ")[0]),y:parseFloat((0,T.mX)(v[1]).split(" ")[1])},origin:{x:h[0],y:h[1]}},b=(0,T.V6)(e,"temporalDomain")||(0,T.V6)(e,"TemporalDomain");return{spatialDomain:y,temporalDomain:b?Z(b):null}}function H(e){if(!e.temporalDomain)return null;const{begin:t,end:n,values:i,units:s,resolution:o}=e.temporalDomain,a={variables:[{name:"default",description:"",dimensions:[{name:"StdTime",description:"",unit:"ISO8601",values:i?.map((e=>e.getTime())),hasRegularIntervals:!i,interval:o,intervalUnit:s,extent:[t.getTime(),n.getTime()]}]}]};return O(a),a}function Y(e,t){const n=[],i=(0,T.IC)(e,"Field");let s,o=[];for(let e=0;e<i.length;e++){const a=(0,T.mX)(i[e],"Identifier"),r=(0,T.mX)(i[e],"Description"),l=(0,T.mX)(i[e],"Definition"),c=(0,T.mX)(i[e],"Abstract"),u=(0,T.mX)(i[e],"Title"),p=B(i[e],"NullValue"),d=(0,T.V6)(i[e],"AllowedValues"),m=d?j(d):null,f=k(i[e],"1.1.0"),g=[],h=(0,T.IC)(i[e],"Axis");for(let e=0;e<h.length;e++){const n=h[e].getAttribute("identifier"),i=(0,T.mX)(h[e],"UOM"),a=(0,T.mX)(h[e],"DataType"),r=(0,T.Dy)(h[e],"Key");t&&!n.toLowerCase().includes("band")||(o=r,s=p),g.push({identifier:n,uom:i,dataType:a,values:r,bandNoDataValues:s})}n.push({identifier:a,description:r,definition:l,abstract:c,title:u,supportedInterpolations:f,axis:g,nullValues:p,statistics:m})}return{rangeSet:n,bandNames:o,bandNoDataValues:s,statistics:n[0].statistics}}function Q(e,t){if(!t.temporalDomain)return null;const n=e.filter((e=>!e.identifier.toLowerCase().includes("field_1")&&!e.axis.some((e=>e.identifier.includes("band"))))),i=[];if(n.length&&n.forEach((e=>{const t=e.axis.map((e=>{const t=e.values.map((t=>"ISO8601"===e.uom?(t=t.trim()).toLowerCase().includes("z")?new Date(t).getTime():new Date(t+"Z").getTime():parseFloat(t.trim()))),n=[Math.min.apply(null,t),Math.max.apply(null,t)];return{name:e.identifier.trim(),description:"",field:e.identifier.trim(),unit:e.uom?e.uom.trim():"",hasRegularIntervals:!1,values:t,extent:n}}));i.push({name:e.identifier.trim(),description:e.description?.trim()??"",unit:"",dimensions:t,statistics:e.statistics})})),t.temporalDomain){const{begin:e,end:n,values:s,units:o,resolution:a}=t.temporalDomain;i.some((e=>e.dimensions.some((e=>"stdtime"===e.name.toLowerCase()))))||i.forEach((t=>{t.dimensions.push({name:"StdTime",description:"",unit:"ISO8601",values:s?.map((e=>e.getTime())),hasRegularIntervals:!s,interval:a,intervalUnit:o,extent:[e.getTime(),n.getTime()]})}))}if(i.length){const e={variables:i};return O(e),e}return null}function J(e){const t=(0,T.V6)(e,"SpatialDomain"),n=(0,T.V6)(t,"GridCRS"),i=(0,T.mX)(n,"GridBaseCRS"),s=(0,T.mX)(n,"GridOrigin"),o=s?.split(" ").map((e=>parseFloat(e)))??[0,0],a=(0,T.pN)(n,"GridOffsets"),r=(0,T.IC)(t,"BoundingBox");let l,c,u,p;for(let e=0;e<r.length;e++){const t=r[e].getAttribute("crs")?.toLowerCase();if(null!=t)if(t.includes("imagecrs")){const t=(0,T.pN)(r[e],"LowerCorner"),n=(0,T.pN)(r[e],"UpperCorner");l=n[0]-t[0]+1,c=n[1]-t[1]+1}else if(t.indexOf("epsg")>0){const n=t.split(":");u=parseInt(n[n.length-1],10);const i=(0,T.pN)(r[e],"LowerCorner"),s=(0,T.pN)(r[e],"UpperCorner");p=new D.A({xmin:i[0],ymin:i[1],xmax:s[0],ymax:s[1],spatialReference:{wkid:u}})}}const d=l>c,m=p.xmax-p.xmin>p.ymax-p.ymin;let f=!1;(0,S.m)(u)&&(d===m?f=!1:(f=!0,p=new D.A({xmin:p.ymin,ymin:p.xmin,xmax:p.ymax,ymax:p.xmax,spatialReference:{wkid:u}})));const g={columns:l,rows:c,origin:{x:o[0],y:o[1]},offset:{x:a[0],y:a[a.length-1]},gridBaseCRS:i,envelope:p,useEPSGAxis:f},h=(0,T.V6)(e,"temporalDomain")||(0,T.V6)(e,"TemporalDomain");return{spatialDomain:g,temporalDomain:h?Z(h):null}}function K(e){const t=(0,T.V6)(e,"Envelope")||(0,T.V6)(e,"EnvelopeWithTimePeriod"),n=t.getAttribute("srsName"),i=n.slice(n.lastIndexOf("/")+1),s=t.getAttribute("axisLabels").split(" ").map((e=>e.trim())).filter((e=>""!==e.trim())),o=(0,T.pN)(t,"lowerCorner"),a=(0,T.pN)(t,"upperCorner"),r=!["y","lat","latitude","north","nor","n","b"].includes(s[0].toLowerCase());let l;const c=parseInt(i,10),u=isNaN(c)?null:{wkid:c};l=new D.A(r?{xmin:o[0],ymin:o[1],xmax:a[0],ymax:a[1],spatialReference:u}:{xmin:o[1],ymin:o[0],xmax:a[1],ymax:a[0],spatialReference:u});const p={mins:o,maxs:a},d=t.getAttribute("uomLabels").trim().split(" ");let m,f;if((0,T.g7)(t,"EnvelopeWithTimePeriod")){m=new Date((0,T.mX)(e,"beginPosition")||(0,T.mX)(e,"BeginPosition")),f=new Date((0,T.mX)(e,"endPosition")||(0,T.mX)(e,"EndPosition"));const t=d?.findIndex((e=>"oledatetime"===e?.toLowerCase()));t>-1&&(d[t]="ISO8601")}return{envelope:l,axisLabels:s,uomLabels:d.length?d:null,envelopeAllDims:p,beginPosition:m,endPosition:f,isEastFirst:r}}function ee(e,t){const n=[],i=(0,T.IC)(e,"DataRecord"),s=[];let o,a=[];for(let e=0;e<i.length;e++){const r=(0,T.IC)(i[e],"field"),l=[];for(let e=0;e<r.length;e++){const n=r[e].getAttribute("name"),i=(0,T.mX)(r[e],"description")||"",c=(0,T.V6)(r[e],"uom")?.getAttribute("code")||"",u=(0,T.pN)(r[e],"interval"),p=B(r[e],"nilValue")?.[0];t&&!n.toLowerCase().includes("band")||(s.push(n),u?.length&&(o=o||[],o.push({min:u[0],max:u[1],avg:-1,stddev:-1})),a.push(p)),l.push({name:n,description:i,uom:c,allowedValues:u,nilValue:p})}n.push(l)}return a.some((e=>null!=e))||(a=null),{rangeType:n,bandNames:s,bandStats:o,bandNoDataValues:a}}function te(e){let t=1,n="";const i=.01;return Math.abs(e-1/24)<1/24*i?n="Hours":Math.abs(e-1)<1*i?n="Days":e<1?(t=Math.round(24*e),n="Hours"):e>28-i&&e<31+i||Math.round(e/30)<12?n="Months":e>365-i&&e<366+i&&(n="Years"),{interval:t,intervalUnit:n}}function ne(e,t,n){if(n.axisLabels.length<=2)return null;const i=[];for(let t=0;t<e.length;t++){const n=e[t];for(let e=0;e<n.length;e++)n[e].name.toLowerCase().includes("band")||i.push(n[e])}const s=[];if(i.length){const e=[];for(let i=2;i<n.axisLabels.length;i++){const s=t.uomLabels?.[i]?.trim()??"",o=n.axisLabels[i].toLowerCase().includes("time")||"iso8601"===s.toLowerCase()||"oledatetime"===s.toLowerCase();let a,r;if(o){const e=te(n.offset[i]);a=e.interval,r=e.intervalUnit}else a=n.offset[i],r=s;const l=[];o?(l.push((new Date).setTime(24*(t.envelopeAllDims.mins[i]-25569)*3600*1e3)),l.push((new Date).setTime(24*(t.envelopeAllDims.maxs[i]-25569)*3600*1e3))):(l.push(t.envelopeAllDims.mins[i]),l.push(t.envelopeAllDims.maxs[i])),e.push({name:n.axisLabels[i].trim(),description:n.axisLabels[i].trim(),unit:o?"ISO8601":s,hasRegularIntervals:!0,extent:l,interval:a,intervalUnit:r})}if(i.forEach((t=>{const{allowedValues:n}=t,i=2===n?.length?[{min:n[0],max:n[1],avg:-1,stddev:-1}]:null;s.push({name:t.name.trim(),description:t.description?.trim()??"",unit:t.uom.trim(),statistics:i,dimensions:e})})),s.length){const e={variables:s};return O(e),e}}return null}function ie(e,t){const n=(0,T.V6)(e,"RectifiedGrid"),i=(0,T.pN)(n,"low"),s=(0,T.pN)(n,"high"),o=[];for(let e=0;e<i.length;e++)o.push(s[e]-i[e]+1);const a=(0,T.mX)(n,"axisLabels").split(" "),r=(0,T.pN)(n,"origin/pos"),l=(0,T.IC)(n,"offsetVector"),c=[];for(let e=0;e<l.length;e++){const t=(0,T.pN)(l[e]),n=t.findIndex((e=>0!==e));c[n]=t[n]}let u,p,d,m=!1;return t?.length&&a?.length&&(m=[...t].sort(((e,t)=>e<t?-1:1)).join(",")===[...a].sort(((e,t)=>e<t?-1:1)).join(",")),["y","lat","latitude","north","nor","n","b"].includes((m?a:t)[0].toLowerCase())?(u=o[1],p=o[0],d={y:Math.abs(c[0]),x:Math.abs(c[1])}):(u=o[0],p=o[1],d={x:Math.abs(c[0]),y:Math.abs(c[1])}),{columns:u,rows:p,origin:r,offset:c,resolution:d,gridSamples:o,axisLabels:a,hasSameAxisLabelsAsBoundedBy:m}}function se(e){const t=(0,T.V6)(e,"EarthObservation");if(!t)return null;const n=(0,T.V6)(t,"phenomenonTime"),i=n?Z(n):null,s=(0,T.V6)(t,"phenomenonTime"),o=s?Z(s):null,a=(0,T.mX)(t,"featureOfInterest/Footprint/multiExtentOf/MultiSurface/surfaceMembers/Polygon/exterior/LinearRing/posList");let r=null;if(a){const e=a.split(" ").map((e=>e.trim())).filter((e=>null!=e&&""!==e)).map(Number);if(e.length){const t=[];for(let n=0;n<e.length/2;n+=2)t.push(e[n],e[n+1]);r=new E.A({rings:[[t]]})}}return{observation:{phenomenonTime:i,resultTime:o,footprint:r,identifier:(0,T.mX)(e,"metaDataProperty/EarthObservationMetaData/identifier"),acquisitionType:(0,T.mX)(e,"metaDataProperty/EarthObservationMetaData/acquisitionType"),status:(0,T.mX)(e,"metaDataProperty/EarthObservationMetaData/status")}}}var oe=n(45617),ae=n(4916);function re(e){const t=function(e){const t=e.getHeader?.("Content-Type")?.split(";");if(!t)return null;if(!(t[0].trim()??"").startsWith("multipart/"))return null;const n={boundary:"",start:"",type:""};for(let e=1;e<t.length;e++){const i=t[e].indexOf("=");if(i>0){const s=t[e].slice(0,i).trim(),o=t[e].slice(i+1).trim();n[s]=o.startsWith('"')?o.slice(1,-1):o}}return n}(e);return t?{isMultipart:!0,data:t.boundary?le(e.data,t,0):null}:{isMultipart:!1,data:null}}function le(e,t,n=0){const i="--"+t.boundary,s=[];for(let e=0;e<i.length;e++)s.push(i.charCodeAt(e));const o=[],a="\n--"+t.boundary+"--";for(let e=0;e<a.length;e++)o.push(a.charCodeAt(e));const r=[10],l=[13,10],c=[],u=s.length,p=new Uint8Array(e,n),d=Math.min(5e4,p.length-u);let m=0,f=0;for(let e=0;e<d;e++){for(f=0;f<u&&p[e+f]===s[f];f++);f===u&&(m&&c.push(ce(p.subarray(m,e),t)),e+=u-1,p[e+1]===r[0]?e+=1:p[e+1]===l[0]&&p[e+2]===l[1]&&(e+=2),m=e+1)}const g=o.length;for(let e=p.length-g-10;e<p.length-g;e++){for(f=0;f<g&&p[e+f]===o[f];f++);if(f===g){c.push(ce(p.subarray(m,e),t));break}}return c}function ce(e,t){const n=String.fromCharCode.apply(null,e.subarray(0,Math.min(300,e.length))).split("\n"),i=Math.min(n.length,7),s={contentDisposition:"inline"};let o=0;for(let a=0;a<i;a++)if(n[a].length<4)o=o+n[a].length+1;else if("content"===n[a].slice(0,7).toLowerCase()){o=o+n[a].length+1;const e=n[a].indexOf(":");if(-1===e)continue;const t=n[a].slice(0,e).trim(),i=n[a].slice(e+1).trim();switch(t.toLowerCase()){case"content-type":s.contentType=i;break;case"content-description":s.contentDescription=i;break;case"content-transfer-encoding":s.contentTransferEncoding=i;break;case"content-id":s.contentID=i;break;case"content-disposition":s.contentDisposition=i;break;case"content-location":s.contentLocation=i}}else{if(s.contentDisposition.toLowerCase().includes("inline")&&n[a].length>=4&&s.contentType?.toLowerCase().indexOf("image")>-1){let t=!0,n=e.subarray(o,e.length);if(s.contentType.toLowerCase().indexOf("tif")>0){if("base64"===s.contentTransferEncoding){let e="";const t=n;for(let n=0;n<t.length;n+=65535){const i=t.subarray(n,n+65535>t.length-1?t.length-1:n+65535);e+=String.fromCharCode.apply(null,i)}const i=atob(e);n=new Uint8Array(i.length);for(let e=0;e<n.length;e++)n[e]=i.charCodeAt(e)}t=73===n[0]&&73===n[1]||77===n[0]&&77===n[1]}if(t){let t=n.buffer;"base64"!==s.contentTransferEncoding&&(t=new ArrayBuffer(e.length-o),n=new Uint8Array(t),n.set(e.subarray(o,e.length))),s.contentData=t}break}if((""===t.start||s.contentID===t.start)&&s.contentType){if(s.contentType.includes("text")||s.contentType.includes("xml")){s.contentData=String.fromCharCode.apply(null,e.subarray(o,e.length));break}s.contentData=e.subarray(o,e.length)}}return s}var ue=n(51244),pe=n(28435);const de=["nearest neighbor","bilinear","bicubic"],me=["nearest","linear","cubic"],fe="response is not a supported multipart/related mediaType with inline tiff, switching to compatibility mode",ge=new Set(["1.0.0","1.1.0","1.1.1","1.1.2","2.0.1"]);let he=class extends ae.A{constructor(){super(...arguments),this.datasetFormat="WCSServer",this.tileType="Raster"}async fetchRawTile(e,t,n,i={}){if(this.isBlockOutside(e,t,n))return null;const{nativePixelSize:s,spatialReference:a}=this.rasterInfo,r=2**e,l=s.x*r,c=s.y*r,{blockWidth:u,blockHeight:p}=this.getBlockWidthHeight(e),{origin:d}=this.rasterInfo.storageInfo.tileInfo,m=this.getTileExtent({x:l,y:c},t,n,d,a,[u,p]),f=this.rasterInfo.extent,g=m.xmax>f.xmax,h=m.ymin<f.ymin,v=g||h;let y=m,b=u,w=p;if(v&&(y=m.clone().intersection(f),null!=y&&(g&&(b=Math.floor((y.xmax-y.xmin)/l),y.xmax=y.xmin+l*b),h&&(w=Math.floor((y.ymax-y.ymin)/c),y.ymin=y.ymax-c*w))),null==y||b<=1||w<=1)return null;const x=await this._getCoverage(y,b,w,r,i);if(!x)return null;const{coverageDescription:C}=this.coverageInfo;let{noDataValue:I,multidimensionalInfo:S}=this.rasterInfo;const{multidimensionalDefinition:A}=i;if(null!=S&&null!=A&&A.length){const e=A[0].variableName;if("2.0"===C.version){const t=C.rangeType[0].find((t=>t.name===e));I=t?.nilValue}else if("1.1"===C.version){const t=C.range.find((t=>t.identifier===e));I=t?.nullValues}}const D=await this.decodePixelBlock(x,{width:b,height:w,planes:null,pixelType:null,noDataValue:Array.isArray(I)?I[0]:I});if(null==D)return null;if(D&&(D.width!==b||D.height!==w))throw new o.A("wcsraster-fetch",`the response has unexpected dimension width: ${D.width}, height: {pixelBlock.height}`);return v?(0,pe.$Q)(D,{x:0,y:0},{width:p,height:p}):D}async _open(e){const{customFetchParameters:t}=this.ioConfig,n=e?.signal,i=await async function(e,t){const{version:n,customParameters:i,signal:s}=t??{},a=n?.startsWith("1.0")?"version":"acceptVersions",l={service:"WCS",request:"GetCapabilities",[a]:n,...i};try{const{data:t}=await(0,A.A)(e,{query:l,responseType:"xml",signal:s});return P(t)}catch(e){if(!(0,r.zf)(e))throw new o.A("wcslayer:open","wcs capabilities is not valid or supported");throw e}}(this.url,{version:this.version,customParameters:t,signal:n});if(this.capabilities=i,!this.version){let e=i.version.slice(0,3);"2.0"===e||"1.1"===e||"1.0"===e?this.version=i.version:(e=i.supportedVersions.find((e=>"2.0.1"===e))||i.supportedVersions.find((e=>"2.0"===e.slice(0,3)))||i.supportedVersions.find((e=>"1.1"===e.slice(0,3)))||i.supportedVersions.find((e=>"1.0"===e.slice(0,3)))||"1.0.0",this.version=e)}if(!ge.has(this.version))throw new o.A("wcsraster-open",`unsupported WCS version ${this.version}`);const{gridCoverages:s}=i;if(!s.length)throw new o.A("wcsraster-open","cannot find rectified grid coverages");null==this.coverageId&&(this.coverageId=s[0].id);const a=s.find((e=>e.id===this.coverageId));if(null==a)throw new o.A("wcsraster-open",`the coverageId ${this.coverageId} does not exist in capabilities`);const l=await async function(e,t){const{coverageIds:n,version:i,customParameters:s,signal:a}=t,l=i.slice(0,3),c="1.0"===l?"coverage":"1.1"===l?"identifiers":"coverageId",u={service:"WCS",request:"DescribeCoverage",version:i,[c]:n.join(","),...s};try{const{data:t}=await(0,A.A)(e,{query:u,responseType:"xml",signal:a});return function(e,t){let n=null;if(n="string"==typeof e?(new DOMParser).parseFromString(e,"text/xml"):e,"1.0.0"===t)return(0,T.IC)(n,"CoverageOffering").map((e=>function(e){const t={version:"1.0"};let n,i=[];for(let s=0;s<e.childNodes.length;s++){const o=e.childNodes[s];if(1===o.nodeType)if((0,T.g7)(o,"description"))t.description=(0,T.mX)(o);else if((0,T.g7)(o,"name"))t.name=(0,T.mX)(o);else if((0,T.g7)(o,"label"))t.label=(0,T.mX)(o);else if((0,T.g7)(o,"supportedFormats"))t.supportedFormats=(0,T.Dy)(o,"formats");else if((0,T.g7)(o,"supportedCRSs"))t.supportedCRSs=_(o);else if((0,T.g7)(o,"supportedInterpolations"))t.supportedInterpolations=k(o,"1.0.0");else if((0,T.g7)(o,"lonLatEnvelope"))t.lonLatEnvelope=G(o);else if((0,T.g7)(o,"rangeSet")){const e=q(o);t.rangeSet=e.rangeSet,i=e.bandNames;const s=e.rangeSet[0].nullValues;s?.length&&(n=W(s))}else(0,T.g7)(o,"domainSet")&&(t.domainSet=z(o))}const s=F(t.supportedInterpolations),{name:o,description:a,label:r,lonLatEnvelope:l,supportedFormats:c}=t,{spatialDomain:u}=t.domainSet,p={x:Math.abs(u.offset.x),y:Math.abs(u.offset.y)},d=H(t.domainSet),m=new X.A({width:u.columns,height:u.rows,pixelSize:p,pixelType:"unknown",extent:u.envelope,spatialReference:u.envelope.spatialReference,bandCount:i.length||1,noDataValue:n,multidimensionalInfo:d});return{id:o,title:t.name,description:a||r,lonLatEnvelope:l,rasterInfo:m,bandNames:i,supportedFormats:c,supportedInterpolations:s,coverageDescription:t,version:"1.0.0",useEPSGAxis:!1}}(e)));const i=(0,T.IC)(n,"CoverageDescription");return"1.1.0"===t||"1.1.1"===t||"1.1.2"===t?i.map((e=>function(e,t){const n=[],i=[],s={supportedFormats:n,supportedCRSs:i,version:"1.1"};let o,a,r=[];for(let t=0;t<e.childNodes.length;t++){const l=e.childNodes[t];if(1!==l.nodeType)continue;const c=(0,T.vv)(l).toLowerCase();switch(c){case"title":case"abstract":case"identifier":s[c]=(0,T.mX)(l);break;case"supportedformat":{const e=(0,T.mX)(l);n.includes(e)||n.push(e)}break;case"supportedcrs":{const e=(0,T.mX)(l);i.includes(e)||i.push(e)}break;case"range":{const e=Y(l,!!s.domain?.temporalDomain);s.range=e.rangeSet,r=e.bandNames;const{bandNoDataValues:t}=e;t?.length&&(o=W(t)),a=e.statistics}break;case"domain":s.domain=J(l)}}const l=F(s.range[0].supportedInterpolations),{identifier:c,abstract:u,title:p,domain:d,range:m}=s,f={x:Math.abs(d.spatialDomain.offset.x),y:Math.abs(d.spatialDomain.offset.y)},g=Q(m,d);g&&(o=m[0].nullValues,1===o?.length&&(o=o[0]));const h=new X.A({width:d.spatialDomain.columns,height:d.spatialDomain.rows,pixelSize:f,pixelType:"unknown",extent:d.spatialDomain.envelope,spatialReference:d.spatialDomain.envelope.spatialReference,bandCount:r.length||1,noDataValue:o,statistics:a,multidimensionalInfo:g});return{id:c,title:s.title,description:u||p,bandNames:r,rasterInfo:h,supportedFormats:n,supportedInterpolations:l,coverageDescription:s,version:t,useEPSGAxis:d.spatialDomain.useEPSGAxis}}(e,t))):i.map((e=>function(e){const t={version:"2.0"};let n,i,s=[];for(let o=0;o<e.childNodes.length;o++){const a=e.childNodes[o];if(1===a.nodeType)if((0,T.g7)(a,"coverageId"))t.coverageId=(0,T.mX)(a);else if((0,T.g7)(a,"ServiceParameters"))t.serviceParameters={supportedFormats:(0,T.Dy)(a,"nativeFormat")};else if((0,T.g7)(a,"boundedBy"))t.boundedBy=K(a);else if((0,T.g7)(a,"rangeType")){const e=ee(a,t.boundedBy?.axisLabels.length>2||t.domainSet?.axisLabels.length>2);t.rangeType=e.rangeType,s=e.bandNames,n=e.bandStats;const{bandNoDataValues:o}=e;o?.length&&(i=W(o))}else if((0,T.g7)(a,"domainSet"))t.domainSet=ie(a,t.boundedBy?.axisLabels);else if((0,T.g7)(a,"metadata")){const e=(0,T.V6)(a,"EOMetadata");t.eoMetadata=e?se(e):null}}const{coverageId:o,boundedBy:a,domainSet:r,rangeType:l,serviceParameters:c}=t,u=ne(l,a,r);return!n&&u&&(n=u?.variables[0].statistics),null!=u&&(i=l[0][0].nilValue),{id:o,title:o,description:o,bandNames:s,rasterInfo:new X.A({width:r.columns,height:r.rows,pixelSize:r.resolution,pixelType:"unknown",extent:a.envelope,spatialReference:a.envelope.spatialReference,bandCount:s.length||1,statistics:n,noDataValue:i,multidimensionalInfo:u}),supportedFormats:c.supportedFormats,coverageDescription:t,version:"2.0.1",useEPSGAxis:!1}}(e)))}(t,i)}catch(e){if(!(0,r.zf)(e))throw new o.A("wcslayer:open","wcs coverage description is not valid or supported");throw e}}(this.url,{coverageIds:[this.coverageId],version:this.version,customParameters:t,signal:n});this.coverageInfo=l[0],"2.0"===this.version.slice(0,3)&&(this.coverageInfo.lonLatEnvelope=a.lonLatEnvelope,this.coverageInfo.supportedInterpolations=F(i.supportedInterpolations)),this.datasetName=this.coverageInfo.title;const{rasterInfo:c}=this.coverageInfo;if(this.createRemoteDatasetStorageInfo(c,512,512),this._set("rasterInfo",c),null==c.spatialReference)throw new o.A("wcsraster-open",`coverage without spatial reference is not supported: ${this.coverageId}`);const{pixelType:u,bandCount:p}=await this._getPixelTypeAndBandCount(n);c.pixelType=u,1===c.bandCount&&p>1&&(c.bandCount=p),this.updateTileInfo()}async _getPixelTypeAndBandCount(e){const{pixelSize:t,extent:n,multidimensionalInfo:i}=this.rasterInfo,s=n.center,a=new D.A({xmin:s.x-t.x,xmax:s.x+t.x,ymin:s.y-t.y,ymax:s.y+t.y,spatialReference:n.spatialReference});let r=[];if(null!=i){const e=i.variables[0];r=[],e.dimensions.forEach((t=>{r.push(new oe.A({variableName:e.name,dimensionName:t.name,values:t.hasRegularIntervals?t.extent?.[0]:t.values?.[0],isSlice:!0}))}))}const{coverageDescription:l}=this.coverageInfo,c={interpolation:"nearest",multidimensionalDefinition:r,signal:e},{version:p}=l,{ioConfig:d}=this,m="2.0"===p&&null==d.allowAnyMediaType||"1.1"===p&&null==d.use2GridOffsets;let f;try{f=await this._getCoverage(a,2,2,1,c,!0)}catch(e){if(!m)throw e;if("1.1"===p){if(!e.details?.isResolutionMismatch)throw e;d.use2GridOffsets=!0}}if(!f&&m&&("2.0"===p&&(d.allowAnyMediaType=!0),f=await this._getCoverage(a,2,2,1,c),f&&u.A.getLogger(this).warn("wcsraster:getcoverage",fe)),!f)throw new o.A("wcsraster-open","unable to determine pixel type");const g=await this.decodePixelBlock(f,{width:2,height:2,planes:null,pixelType:null});if(null==g)throw new o.A("wcsraster-open","unable to determine pixel type");return{pixelType:g.pixelType,bandCount:g.getPlaneCount()??0}}async _getCoverage(e,t,n,i,s,a=!1){const{coverageDescription:r}=this.coverageInfo,{version:l}=r,c="2.0"===l?this._getCoverage201Parameters(e,t,n,i,s,r):"1.1"===l?this._getCoverage110Parameters(e,t,n,s,r):this._getCoverage100Parameters(e,t,n,s),p="2.0"===l?await this.request(this._constructWCS201Url(c),{signal:s.signal,responseType:"array-buffer"}):await this.request(this.url,{query:c,signal:s.signal,responseType:"array-buffer"});if("1.0"===l)return p.data;if("2.0"===l&&!1!==this.ioConfig.allowAnyMediaType&&"tiff"===(0,ue.g)(p.data))return a&&(this.ioConfig.allowAnyMediaType=!0,u.A.getLogger(this).warn("wcsraster:getcoverage",fe)),p.data;const d=re(p);if(d.isMultipart&&d.data){const e=d.data.find((e=>e.contentType?.toLowerCase().includes("image")&&null!=e.contentData));return a&&"base64"===e?.contentTransferEncoding&&u.A.getLogger(this).warn("wcsraster:getcoverage","response is base64 encoded which may impact layer display performance"),e?.contentData}const m=new Uint8Array(p.data,0,Math.min(p.data.byteLength,2e3)),f=String.fromCharCode.apply(null,m).toLowerCase().includes("exception"),g=f&&String.fromCharCode.apply(null,m).includes("A non-zero RESX/RESY or WIDTH/HEIGHT is required but neither was provided");if(f)throw new o.A("wcsraster:getcoverage","server returns an exception",{isResolutionMismatch:g});throw new o.A("wcsraster:getcoverage","response is not a supported multipart mediaType with inline tiff")}_getInterpolationIndex(e){return e&&this.coverageInfo.supportedInterpolations?.includes(e)?"nearest"===e?0:"bilinear"===e?1:"cubic"===e?2:0:0}_getCoverage100Parameters(e,t,n,i){const s=`${e.xmin},${e.ymin},${e.xmax},${e.ymax}`,o=e.spatialReference.wkid,a=(this.coverageInfo.supportedFormats||[]).find((e=>e.toLowerCase().includes("tiff")))||"GEOTIFF",{bandIds:r,interpolation:l}=i,c=this._getInterpolationIndex(l),u=r?r.map((e=>this.coverageInfo.bandNames[e])):null,p=de[c],{multidimensionalDefinition:d}=i;let m;if(null!=d&&null!=this.rasterInfo.multidimensionalInfo){const e=d.find((e=>"StdTime"===e.dimensionName));let t=e?.values;t&&t.length>0&&(Array.isArray(t[0])&&(t=t[0]),m=t.map((e=>ve(e))).join(","))}return{service:"WCS",request:"GetCoverage",version:this.version,coverage:this.coverageId,format:a,crs:`EPSG:${o}`,bbox:s,width:t,height:n,time:m,interpolation:p,band:u?.join(",")}}_getCoverage110Parameters(e,t,n,i,s){const{multidimensionalDefinition:o,bandIds:a,interpolation:r}=i,l=e.spatialReference.wkid,c=`urn:ogc:def:crs:EPSG::${l}`,u=(this.coverageInfo.supportedFormats||[]).find((e=>e.toLowerCase().includes("tiff")))||"image/tiff",p=this._getInterpolationIndex(r),d=me[p],m=null==r||0===this.coverageInfo.supportedInterpolations?.indexOf(r),f=s.domain.spatialDomain,g=f.origin.x<=f.envelope.xmin&&f.origin.y<=f.envelope.ymin,h=e.width/t,v=e.height/n*(g?1:-1),y=g?[e.xmin,e.ymin]:[e.xmin,e.ymax],b=f.useEPSGAxis&&(0,S.m)(l),w=b?`${y[1]},${y[0]}`:`${y[0]},${y[1]}`,x=this.ioConfig.use2GridOffsets,C=b?x?`${v},${h}`:`${v},0,0,${h}`:x?`${h},${v}`:`${h},0,0,${v}`,I=h/2,A=e.xmin+I,D=e.xmax-I,T=Math.abs(v)/2,L=e.ymin+T,V=e.ymax-T,M=b?`${L},${A},${V},${D},${c}`:`${A},${L},${D},${V},${c}`,N=s.range.find((e=>e.axis.some((e=>e.identifier.toLowerCase().includes("band")))));let R,P=N&&d&&a?m?`${N.identifier}[${N.axis[0].identifier}[${a.join(",")}]]`:`${N.identifier}:${d}[${N.axis[0].identifier}[${a.join(",")}]]`:null;if(null!=o&&o.length)for(let e=0;e<o.length;e++){let t=o[e].values;const n=o[e].dimensionName?.toLowerCase(),i=o[e].variableName?.toLowerCase();if(t.length>0)if(Array.isArray(t[0])&&(t=t[0]),"stdtime"===n)R=t.map((e=>ve(e))).join(",");else{const e=s.range.find((e=>e.identifier.toLowerCase()===i));if(e){const i=e.axis.find((e=>e.identifier.toLowerCase()===n));i&&(P=m?e.identifier+"["+i.identifier+"["+t.join(",")+"]]":e.identifier+":"+d+"["+i.identifier+"["+t.join(",")+"]]")}}}return{service:"WCS",request:"GetCoverage",version:this.version,identifier:this.coverageId,format:u,crs:`EPSG:${l}`,boundingbox:M,gridCS:"urn:ogc:def:cs:OGC:0.0:Grid2dSquareCS",gridType:"urn:ogc:def:method:WCS:1.1:2dGridIn2dCrs",gridOrigin:w,gridOffsets:C,gridBaseCRS:c,timeSequence:R,rangeSubset:P}}_getCoverage201Parameters(e,t,n,i,s,o){const{multidimensionalDefinition:a,interpolation:r}=s,l=this._getInterpolationIndex(r);let c=null;const{supportedInterpolations:u}=this.capabilities;if(u?.length)switch(l){case 0:c=u.find((e=>e.toLowerCase().includes("nearest")));break;case 1:c=u.find((e=>e.toLowerCase().includes("linear")));break;case 2:c=u.find((e=>e.toLowerCase().includes("cubic")||e.toLowerCase().includes("quadratic")))}const p=(this.coverageInfo.supportedFormats||[]).find((e=>e.toLowerCase().includes("tiff")))||"image/tiff",{bandNames:d}=this.coverageInfo,{boundedBy:m,domainSet:f,rangeType:g}=o,h=m.isEastFirst?0:1,v=1-h,{axisLabels:y}=m,b=y[h],w=y[v],x=`http://www.opengis.net/def/crs/EPSG/0/${e.spatialReference.wkid}`,C=x,I=[];I.push(`${b}(${e.xmin},${e.xmax})`),I.push(`${w}(${e.ymin},${e.ymax})`);const S=[];if(y.length>2)for(let e=2;e<y.length;e++){const t=f.origin[e];if(y[e].toLowerCase().includes("time")){let n=t.toString();m.uomLabels?.[e].toLowerCase().includes("ole")&&(S.push(y[e]),n=ve(t,!0)),I.push(y[e]+",http://www.opengis.net("+n+")")}else I.push(y[e]+",http://www.opengis.net("+t+")")}let A=null;if(null!=a&&a.length){const e=[];g.forEach((t=>t.forEach((t=>e.push(t.name)))));const t=[];for(let n=0;n<a.length;n++){const i=y.find((e=>e===a[n].dimensionName)),s=e.find((e=>e===a[n].variableName));if(t.includes(s)||t.push(s),i){let e=a[n].values;if(e.length>0){Array.isArray(e[0])&&(e=e[0]);let t="";t=i.toLowerCase().includes("time")?e.map((e=>ve(e))).join(","):e.join(",");const n=I.findIndex((e=>0===e.indexOf(i+",http://www.opengis.net")));-1===n&&I.push(i+",http://www.opengis.net("+t+")"),-1===n||I[n].includes("("+t+")")||I.splice(n,1,i+",http://www.opengis.net("+t+")")}}}t.length&&(A=t.join(","))}else d?.length>=2&&(A=(s.bandIds?s.bandIds.map((e=>d[e])):d).join(","));const D=I.join("&subset="),T=!o.domainSet.hasSameAxisLabelsAsBoundedBy&&!1!==this.ioConfig.allowScaleFactor,L=T?null:`${b}(${t}),${w}(${n})`,V=T?1/i:null;return{service:"WCS",request:"GetCoverage",version:this.version,coverageId:this.coverageId,rangesubset:A,interpolation:c,scaleSize:L,scaleFactor:V,subset:D,format:p,mediaType:this.ioConfig.allowAnyMediaType?null:"multipart/related",outputcrs:x,subsettingcrs:C}}_constructWCS201Url(e){const t={...this.ioConfig.customFetchParameters,...e},n=[];return Object.keys(t).forEach((e=>{const i=t[e];null!=i&&("subset"===e?"string"==typeof i&&i.split("&subset=").forEach((e=>{e&&n.push(`subset=${encodeURIComponent(e)}`)})):n.push(`${e}=${encodeURIComponent(i)}`))})),`${encodeURI(this.url)}?${n.join("&")}`}};function ve(e,t=!1){return(t?new Date(24*(e-25569)*60*60*1e3):new Date(e)).toISOString()}(0,i._)([(0,c.MZ)({type:String,json:{write:!0}})],he.prototype,"datasetFormat",void 0),(0,i._)([(0,c.MZ)({readOnly:!0})],he.prototype,"tileType",void 0),(0,i._)([(0,c.MZ)({type:String,json:{write:!0}})],he.prototype,"version",void 0),(0,i._)([(0,c.MZ)({type:String,json:{write:!0}})],he.prototype,"coverageId",void 0),he=(0,i._)([(0,p.$)("esri.layers.support.rasterDatasets.WCSRaster")],he);const ye=he;var be=n(30291),we=n(92935);const xe=new Set(["milliseconds","seconds","minutes","hours","days","weeks","months","years","decades","centuries"]);let Ce=class extends((0,m.dM)((0,b.j)((0,h.q)((0,v.A)((0,f.d)((0,g.o)((0,w.e)((0,y.J)((0,a.P)(d.A)))))))))){constructor(...e){super(...e),this.coverageId=null,this.version=null,this.isReference=null,this.legendEnabled=!0,this.operationalLayerType="WCS",this.type="wcs",this.popupEnabled=!0,this.popupTemplate=null,this.fields=null,this._debouncedSaveOperations=(0,r.sg)((async(e,t,i)=>{const{save:s,saveAs:o}=await n.e(9838).then(n.bind(n,59838));switch(e){case we.X.SAVE:return s(this,t);case we.X.SAVE_AS:return o(this,i,t)}}))}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}load(e){const t=null!=e?e.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["WCS"]},e).catch(r.QP).then((()=>this._openRaster(t)))),Promise.resolve(this)}get coverageInfo(){return this.raster.coverageInfo}get defaultPopupTemplate(){return this.createPopupTemplate()}get rasterFields(){return[(0,I.rZ)("Pixel Value")]}createPopupTemplate(e){return(0,be.tn)({fields:this.rasterFields,title:this.title},e)}async save(e){return this._debouncedSaveOperations(we.X.SAVE,e)}async saveAs(e,t){return this._debouncedSaveOperations(we.X.SAVE_AS,t,e)}async _openRaster(e){const t=new ye({url:this.url,version:this.version,coverageId:this.coverageId,ioConfig:{sampling:"closest",...this.ioConfig,customFetchParameters:this.customParameters}});if(await t.open({signal:e}),!t.rasterInfo)throw t.destroy(),new o.A("wcs-layer:load","cannot load resources on "+this.url);const{rasterInfo:n}=t;this._set("serviceRasterInfo",n),this._set("spatialReference",n.spatialReference),null==this.title&&this.setAtOrigin("title",t.datasetName,"service"),null==this.coverageId&&this.setAtOrigin("coverageId",t.coverageInfo.id,"service"),null==this.version&&t.version&&this.setAtOrigin("version",t.version,"service"),this.setAtOrigin("tileInfo",t.rasterInfo.storageInfo.tileInfo,"service");const{multidimensionalInfo:i}=n;if(null!=i){const e=i.variables[0].dimensions.find((({name:e})=>"StdTime"===e));if(e){let t=e.extent?.[0]??e.values[0];Array.isArray(t)&&(t=t[0]);let n=e.extent?.[1]??e.values[e.values.length-1];Array.isArray(n)&&(n=n[1]);const i=xe.has(e.intervalUnit?.toLowerCase())?e.intervalUnit?.toLowerCase():null;this.set("timeInfo",{startField:"StdTime",fullTimeExtent:{start:t,end:n},timeZone:null,interval:i?{value:e.interval,unit:i}:null})}}this.raster=t,this._configDefaultSettings(),this.addHandles((0,l.wB)((()=>this.customParameters),(e=>this.raster.ioConfig.customFetchParameters=e)))}};(0,i._)([(0,c.MZ)({type:String,nonNullable:!0,json:{name:"wcsInfo.coverageId",write:!0}})],Ce.prototype,"coverageId",void 0),(0,i._)([(0,c.MZ)()],Ce.prototype,"coverageInfo",null),(0,i._)([(0,c.MZ)({type:String,nonNullable:!0,json:{name:"wcsInfo.version",write:!0}})],Ce.prototype,"version",void 0),(0,i._)([(0,c.MZ)({type:Boolean,json:{read:!1,write:{enabled:!0,overridePolicy:()=>({enabled:!1})}}})],Ce.prototype,"isReference",void 0),(0,i._)([(0,c.MZ)({json:{read:!0,write:!0}})],Ce.prototype,"blendMode",void 0),(0,i._)([(0,c.MZ)(x.fV)],Ce.prototype,"legendEnabled",void 0),(0,i._)([(0,c.MZ)({type:["show","hide"]})],Ce.prototype,"listMode",void 0),(0,i._)([(0,c.MZ)({type:["WCS"]})],Ce.prototype,"operationalLayerType",void 0),(0,i._)([(0,c.MZ)()],Ce.prototype,"raster",void 0),(0,i._)([(0,c.MZ)({readOnly:!0})],Ce.prototype,"type",void 0),(0,i._)([(0,c.MZ)(x.M6)],Ce.prototype,"popupEnabled",void 0),(0,i._)([(0,c.MZ)({type:s.A,json:{name:"popupInfo",write:!0}})],Ce.prototype,"popupTemplate",void 0),(0,i._)([(0,c.MZ)({readOnly:!0})],Ce.prototype,"defaultPopupTemplate",null),(0,i._)([(0,c.MZ)({readOnly:!0,type:[C.A]})],Ce.prototype,"fields",void 0),(0,i._)([(0,c.MZ)({readOnly:!0,type:[C.A]})],Ce.prototype,"rasterFields",null),Ce=(0,i._)([(0,p.$)("esri.layers.WCSLayer")],Ce);const Ie=Ce},38458:(e,t,n)=>{n.d(t,{m:()=>s});const i=[[3819,3819],[3821,3824],[3889,3889],[3906,3906],[4001,4025],[4027,4036],[4039,4047],[4052,4055],[4074,4075],[4080,4081],[4120,4176],[4178,4185],[4188,4216],[4218,4289],[4291,4304],[4306,4319],[4322,4326],[4463,4463],[4470,4470],[4475,4475],[4483,4483],[4490,4490],[4555,4558],[4600,4646],[4657,4765],[4801,4811],[4813,4821],[4823,4824],[4901,4904],[5013,5013],[5132,5132],[5228,5229],[5233,5233],[5246,5246],[5252,5252],[5264,5264],[5324,5340],[5354,5354],[5360,5360],[5365,5365],[5370,5373],[5381,5381],[5393,5393],[5451,5451],[5464,5464],[5467,5467],[5489,5489],[5524,5524],[5527,5527],[5546,5546],[2044,2045],[2081,2083],[2085,2086],[2093,2093],[2096,2098],[2105,2132],[2169,2170],[2176,2180],[2193,2193],[2200,2200],[2206,2212],[2319,2319],[2320,2462],[2523,2549],[2551,2735],[2738,2758],[2935,2941],[2953,2953],[3006,3030],[3034,3035],[3038,3051],[3058,3059],[3068,3068],[3114,3118],[3126,3138],[3150,3151],[3300,3301],[3328,3335],[3346,3346],[3350,3352],[3366,3366],[3389,3390],[3416,3417],[3833,3841],[3844,3850],[3854,3854],[3873,3885],[3907,3910],[4026,4026],[4037,4038],[4417,4417],[4434,4434],[4491,4554],[4839,4839],[5048,5048],[5105,5130],[5253,5259],[5269,5275],[5343,5349],[5479,5482],[5518,5519],[5520,5520],[20004,20032],[20064,20092],[21413,21423],[21473,21483],[21896,21899],[22171,22177],[22181,22187],[22191,22197],[25884,25884],[27205,27232],[27391,27398],[27492,27492],[28402,28432],[28462,28492],[30161,30179],[30800,30800],[31251,31259],[31275,31279],[31281,31290],[31466,31700]];function s(e){return null!=e&&i.some((([t,n])=>e>=t&&e<=n))}}}]);
|