1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[12681],{2437:(e,t,i)=>{i.d(t,{E9:()=>y,Tw:()=>c,X6:()=>d});var r=i(49033),s=i(98189),a=i(32277),n=i(34880),o=i(87942),l=i(3663),u=i(56536),p=i(70109);async function m(e,t,i){let m=(0,u.Dl)(e),{rasterFunction:c,sourceJSON:d}=t||{},y=c?JSON.stringify(c.rasterFunctionDefinition||c):null,h=(0,u.lF)({...m.query,renderingRule:y,f:"json"}),g=(0,u.jV)(h,i);e=m.path;let f=d||await (0,r.A)(e,g).then(e=>e.data),w=f.hasRasterAttributeTable?(0,r.A)(`${e}/rasterAttributeTable`,g):null,v=f.hasColormap?(0,r.A)(`${e}/colormap`,g):null,R=f.hasHistograms?(0,r.A)(`${e}/histograms`,g):null,_=f.currentVersion>=10.3?(0,r.A)(`${e}/keyProperties`,g):null,b=f.hasMultidimensions?(0,r.A)(`${e}/multidimensionalInfo`,g):null,S=await Promise.allSettled([w,v,R,_,b]),M=null;if(f.minValues&&f.minValues.length===f.bandCount){M=[];for(let e=0;e<f.minValues.length;e++)M.push({min:f.minValues[e],max:f.maxValues[e],avg:f.meanValues[e],stddev:f.stdvValues[e]})}let x=s.A.fromJSON(f.extent),A=Math.ceil(x.width/f.pixelSizeX-.1),I=Math.ceil(x.height/f.pixelSizeY-.1),F=n.A.fromJSON(f.spatialReference||f.extent.spatialReference),D="fulfilled"===S[0].status?S[0].value?.data:null,j=D?.features?.length?p.A.fromJSON(D):null,T="fulfilled"===S[1].status?S[1].value?.data.colormap:null,P=T?.length?T:null,Z="fulfilled"===S[2].status?S[2].value?.data.histograms:null,N=Z?.[0]?.counts?.length?Z:null,C="fulfilled"===S[3].status?S[3].value?.data??{}:{},O="fulfilled"===S[4].status?S[4].value?.data.multidimensionalInfo:null,V=O?.variables?.length?O:null;
1V&&V.variables.forEach(e=>{e.statistics?.length&&e.statistics.forEach(e=>{e.avg=e.mean,e.stddev=e.standardDeviation}),e.dimensions?.forEach(e=>{"StdTime"!==e.name||e.recurring||e.unit||(e.unit="ISO8601")})});let{defaultVariable:J,serviceDataType:q}=f;J&&J!==C.DefaultVariable&&(C.DefaultVariable=J),q?.includes("esriImageServiceDataTypeVector")&&!q.includes(C.DataType)&&(C.DataType=q.replace("esriImageServiceDataType",""));let E=f.noDataValue;f.noDataValues?.length&&f.noDataValues.some(e=>e!==E)&&(E=f.noDataValues);let G=f.transposeInfo?new l.A({blockWidth:256,blockHeight:256,pyramidBlockWidth:256,pyramidBlockHeight:256,pyramidScalingFactor:2,compression:"lerc",origin:new a.A({x:f.extent.xmin,y:f.extent.ymax,spatialReference:F}),firstPyramidLevel:1,maximumPyramidLevel:Math.max(0,Math.round(Math.log(Math.max(A,I))/Math.LN2-8)),transposeInfo:f.transposeInfo}):void 0;return new o.A({width:A,height:I,bandCount:f.bandCount,extent:s.A.fromJSON(f.extent),spatialReference:F,pixelSize:new a.A({x:f.pixelSizeX,y:f.pixelSizeY,spatialReference:F}),pixelType:f.pixelType.toLowerCase(),statistics:M,attributeTable:j,colormap:P,histograms:N,keyProperties:C,noDataValue:E,multidimensionalInfo:V,storageInfo:G})}function c(e,t,i){return m(e,{sourceJSON:t},i)}function d(e,t,i){return m(e,{rasterFunction:t},i)}function y(e,t){e.attributeTable||(t.hasRasterAttributeTable=!1),e.histograms||(t.hasHistograms=!1),e.colormap||(t.hasColormap=!1),e.multidimensionalInfo||(t.hasMultidimensions=!1)}},12681:(e,t,i)=>{i.r(t),i.d(t,{default:()=>iq});var r,s,a,n,o,l,u,p,m,c=i(84533),d=i(24838),y=i(78870),h=i(16682),g=i(46686),f=i(56098),w=i(89875);i(2232);var v=i(82492);i(37779);var R=i(38820),_=i(80129),b=i(28040),S=i(38912),M=i(49033),x=i(21132),A=i(58584),I=i(90986),F=i(58961),D=i(31309),j=i(98189),T=i(49981),P=i(34880),Z=i(28045),N=i(42919),C=i(77221),O=i(51024),V=i(17203),J=i(80407);let q={StretchFunction:{arguments:{ComputeGamma:{isDataset:!1,isPublic:!1,name:"ComputeGamma",type:"RasterFunctionVariable",value:!1},DRA:{isDataset:!1,isPublic:!1,name:"DRA",type:"RasterFunctionVariable",value:!1},EstimateStatsHistogram:{isDataset:!1,isPublic:!1,name:"EstimateStatsHistogram",type:"RasterFunctionVariable",value:!1},Gamma:{displayName:"Gamma",isDataset:!1,isPublic:!1,name:"Gamma",type:"RasterFunctionVariable"},Histograms:{isDataset:!1,isPublic:!1,name:"Histograms",type:"RasterFunctionVariable"},Max:{isDataset:!1,isPublic:!1,name:"Max",type:"RasterFunctionVariable",value:255},MaxPercent:{isDataset:!1,isPublic:!1,name:"MaxPercent",type:"RasterFunctionVariable",value:.5},Min:{isDataset:!1,isPublic:!1,name:"Min",type:"RasterFunctionVariable",value:0},MinPercent:{isDataset:!1,isPublic:!1,name:"MinPercent",type:"RasterFunctionVariable",value:.25},NumberOfStandardDeviations:{isDataset:!1,isPublic:!1,name:"NumberOfStandardDeviation",type:"RasterFunctionVariable",value:2},Raster:{isDataset:!0,isPublic:!1,name:"Raster",type:"RasterFunctionVariable"},SigmoidStrengthLevel:{isDataset:!1,isPublic:!1,name:"SigmoidStrengthLevel",type:"RasterFunctionVariable",value:2},Statistics:{isDataset:!1,isPublic:!1,name:"Statistics",type:"RasterFunctionVariable"},StretchType:{isDataset:!1,isPublic:!1,name:"StretchType",type:"RasterFunctionVariable",value:0},type:"StretchFunctionArguments",UseGamma:{isDataset:!1,isPublic:!1,name:"UseGamma",type:"RasterFunctionVariable",value:!1}},description:"Enhances an image by adjusting the range of values displayed. This does not alter the underlying pixel values. If a pixel has a value outside of the specified range, it will appear as either the minimum or maximum value.",function:{description:"Enhances an image by adjusting the range of values displayed. This does not alter the underlying pixel values. If a pixel has a value outside of the specified range, it will appear as either the minimum or maximum value.",name:"Stretch",pixelType:"UNKNOWN",type:"StretchFunction"},functionType:0,name:"Stretch",thumbnail:""},RemapFunction:{name:"Remap",description:"Changes pixel values by assigning new values to ranges of pixel values or using an external table.",function:{type:"RemapFunction",pixelType:"UNKNOWN",name:"Remap",description:"Changes pixel values by assigning new values to ranges of pixel values or using an external table."},arguments:{Raster:{name:"Raster",isPublic:!1,isDataset:!0,type:"RasterFunctionVariable"},UseTable:{name:"UseTable",isPublic:!1,isDataset:!1,value:!1,type:"RasterFunctionVariable"},InputRanges:{name:"InputRanges",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable",displayName:"Input Ranges"},OutputValues:{name:"OutputValues",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable",displayName:"Output Values"}
1,NoDataRanges:{name:"NoDataRanges",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable",displayName:"NoData Ranges"},Table:{name:"Table",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable"},InputField:{name:"InputField",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable"},OutputField:{name:"OutputField",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable"},InputMaxField:{name:"InputMaxField",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable"},RemapTableType:{name:"RemapTableType",isPublic:!1,isDataset:!1,value:1,type:"RasterFunctionVariable"},AllowUnmatched:{name:"AllowUnmatched",isPublic:!1,isDataset:!1,value:!0,type:"RasterFunctionVariable"},type:"RemapFunctionArguments"},functionType:0,thumbnail:""},ColormapFunction:{name:"Colormap",description:"Changes pixel values to display the raster data as either a grayscale or a red, green, blue (RGB) image, based on a colormap or a color ramp.",function:{type:"ColormapFunction",pixelType:"UNKNOWN",name:"Colormap",description:"Changes pixel values to display the raster data as either a grayscale or a red, green, blue (RGB) image, based on a colormap or a color ramp."},arguments:{Raster:{name:"Raster",isPublic:!1,isDataset:!0,type:"RasterFunctionVariable"},ColorSchemeType:{name:"ColorSchemeType",isPublic:!1,isDataset:!1,value:1,type:"RasterFunctionVariable"},Colormap:{name:"Colormap",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable"},ColormapName:{name:"ColormapName",isPublic:!1,isDataset:!1,value:"Gray",type:"RasterFunctionVariable"},ColorRamp:{name:"ColorRamp",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable"},type:"ColormapFunctionArguments"},functionType:0,thumbnail:""},ShadedReliefFunction:{name:"Shaded Relief",description:"Creates a multiband, color coded, 3D representation of the surface, with the sun's relative position taken into account for shading the image.",function:{type:"ShadedReliefFunction",pixelType:"UNKNOWN",name:"Shaded Relief",description:"Creates a multiband, color coded, 3D representation of the surface, with the sun's relative position taken into account for shading the image."},arguments:{Raster:{name:"Raster",isPublic:!1,isDataset:!0,type:"RasterFunctionVariable"},ColorSchemeType:{name:"ColorSchemeType",isPublic:!1,isDataset:!1,value:1,type:"RasterFunctionVariable"},ColorRamp:{name:"ColorRamp",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable"},HillshadeType:{name:"HillshadeType",isPublic:!1,isDataset:!1,value:0,type:"RasterFunctionVariable"},Colormap:{name:"Colormap",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable"},Azimuth:{name:"Azimuth",isPublic:!1,isDataset:!1,value:315,type:"RasterFunctionVariable"},Altitude:{name:"Altitude",isPublic:!1,isDataset:!1,value:45,type:"RasterFunctionVariable"},SlopeType:{name:"SlopeType",isPublic:!1,isDataset:!1,value:1,type:"RasterFunctionVariable"},ZFactor:{name:"ZFactor",isPublic:!1,isDataset:!1,value:1,type:"RasterFunctionVariable"},PSPower:{name:"PSPower",isPublic:!1,isDataset:!1,value:.664,type:"RasterFunctionVariable"},PSZFactor:{name:"PSZFactor",isPublic:!1,isDataset:!1,value:.024,type:"RasterFunctionVariable"},RemoveEdgeEffect:{name:"RemoveEdgeEffect",isPublic:!1,isDataset:!1,value:!1,type:"RasterFunctionVariable"},type:"ShadedReliefFunctionArguments"},functionType:0,thumbnail:""},HillshadeFunction:{name:"Hillshade",description:"Creates a 3D representation of the surface, with the sun's relative position taken into account for shading the image",function:{type:"HillshadeFunction",pixelType:"UNKNOWN",name:"Hillshade",description:"Creates a 3D representation of the surface, with the sun's relative position taken into account for shading the image"},arguments:{DEM:{name:"DEM",isPublic:!1,isDataset:!0,type:"RasterFunctionVariable"},HillshadeType:{name:"HillshadeType",isPublic:!1,isDataset:!1,value:0,type:"RasterFunctionVariable"},Azimuth:{name:"Azimuth",isPublic:!1,isDataset:!1,value:315,type:"RasterFunctionVariable"},Altitude:{name:"Altitude",isPublic:!1,isDataset:!1,value:45,type:"RasterFunctionVariable"},SlopeType:{name:"SlopeType",isPublic:!1,isDataset:!1,value:1,type:"RasterFunctionVariable"},ZFactor:{name:"ZFactor",isPublic:!1,isDataset:!1,value:1,type:"RasterFunctionVariable"},PSPower:{name:"PSPower",isPublic:!1,isDataset:!1,value:.664,type:"RasterFunctionVariable"},PSZFactor:{name:"PSZFactor",isPublic:!1,isDataset:!1,value:.024,type:"RasterFunctionVariable"},RemoveEdgeEffect:{name:"RemoveEdgeEffect",isPublic:!1,isDataset:!1,value:!1,type:"RasterFunctionVariable"},type:"HillshadeFunctionArguments"},functionType:0,thumbnail:""},ResampleFunction:{name:"Resample",description:"Changes the cell size of a raster.",function:{type:"ResampleFunction",pixelType:"UNKNOWN",name:"Resample",description:"Changes the cell size of a raster."},arguments:{Raster:{name:"Raster",isPublic:!1,isDataset:!0,type:"RasterFunctionVariable"},ResamplingType:{name:"ResamplingType",isPublic:!1,isDataset:!1,value:0,type:"RasterFunctionVariable"},InputCellSize:{name:"InputCellsize",isPublic:!1,isDataset:!1,value:{x:0,y:0},type:"RasterFunctionVariable"},OutputCellSize:{name:"OutputCellsize",isPublic:!1,isDataset:!1,value:{x:0,y:0},type:"RasterFunctionVariable"},type:"ResampleFunctionArguments"},functionType:0,thumbnail:""}};var E=i(26237),G=i(85258),z=i(39761);let $=new Set(["u1","u2","u4","u8","s8","u16","s16"]),L={simple_scalar:"Simple Scalar",wind_barb:"Wind Barb",single_arrow:"Single Arrow",beaufort_kn:"Beaufort Wind (Knots)",beaufort_m:"Beaufort Wind (MetersPerSecond)",ocean_current_m:"Ocean Current (MetersPerSecond)",ocean_current_kn:"Ocean Current (Knots)"},U=new Set(["raster-stretch","unique-value","class-breaks","raster-sh
1aded-relief","vector-field","raster-colormap"]);function B(e){return U.has(e.type)}function H(e,t){if(!e||!t)return(0,x.o8)(e||t);let i=(0,x.o8)(e);if(i.functionDefinition&&t.rasterFunctionDefinition){let e=t.rasterFunctionDefinition;(e.thumbnail||e.thumbnailEx)&&(e.thumbnail=e.thumbnailEx=void 0),function e(t,i){for(let r in t)"raster"===r.toLowerCase()&&("RasterFunctionVariable"===t[r].type?(t[r]=i.rasterFunctionDefinition,t[r].type="RasterFunctionTemplate"):"RasterFunctionTemplate"===t[r].type&&e(t[r].arguments,i))}(i.functionDefinition.arguments,t),i.rasterFunctionDefinition=i.functionDefinition.toJSON()}else"none"!==t.functionName?.toLowerCase()&&(function e(t){let i=t?.Raster??t?.raster;return i&&"esri.layers.support.RasterFunction"===i.declaredClass?e(i.functionArguments):t}(i.functionArguments).Raster=t);return i}function k(e){let t=(0,x.o8)(q[e.functionName+"Function"]),i=e.functionArguments;for(let e in i)"raster"===e.toLowerCase()?(t.arguments[e]=k(i[e]),t.arguments[e].type="RasterFunctionTemplate"):"colormap"===e.toLowerCase()?(t.arguments[e].value=function(e){let t=[],i=[];return e.forEach(e=>{t.push(e[0]),i.push((0,E.vL)([...e.slice(1),255]))}),{type:"RasterColormap",values:t,colors:i}}(i[e]),t.arguments.ColorSchemeType.value=0):t.arguments[e].value=i[e];return t}let Q={none:0,standardDeviation:3,histogramEqualization:4,minMax:5,percentClip:6,sigmoid:9};function K(e,t){let i=$.has(t)?(0,J.hP)(t):null;return i&&e.push([Math.floor(i[0]-1),0,0,0],[Math.ceil(i[1]+1),0,0,0]),e}function W(e){if(null==e)return;let{fields:t}=e,i=t?.find(e=>e?.name&&"value"===e.name.toLowerCase());return i?.name}function X(e){return"polygon-3d"===e.symbol?.type?e.symbol.symbolLayers?.find(e=>"fill"===e.type)?.material?.color:e.symbol?.color}var Y=i(87338),ee=i(76752);let et=class extends O.A{constructor(){super(...arguments),this.layer=null,this.compression=void 0,this.lercVersion=2}get adjustAspectRatio(){return this.layer.adjustAspectRatio}writeAdjustAspectRatio(e,t,i){this.layer.version<10.3||(t[i]=e)}get bandIds(){return this.layer.bandIds}get compressionQuality(){return this.layer.compressionQuality}writeCompressionQuality(e,t,i){this.format&&this.format.toLowerCase().includes("jpg")&&null!=e&&(t[i]=e)}get compressionTolerance(){return this.layer.compressionTolerance}writeCompressionTolerance(e,t,i){"lerc"===this.format&&null!=e&&(t[i]=e)}get format(){return"vector-field"===this.layer.renderer?.type?"lerc":this.layer.format}get interpolation(){return this.layer.interpolation}get noData(){return this.layer.noData}get noDataInterpretation(){return this.layer.noDataInterpretation}get pixelType(){let{layer:e}=this;return e.pixelType!==e.serviceRasterInfo.pixelType?e.pixelType:void 0}writeLercVersion(e,t,i){"lerc"===this.format&&this.layer.version>=10.5&&(t[i]=e)}get version(){let e=this.layer;return e.commitProperty("bandIds"),e.commitProperty("format"),e.commitProperty("compressionQuality"),e.commitProperty("compressionTolerance"),e.commitProperty("interpolation"),e.commitProperty("noData"),e.commitProperty("noDataInterpretation"),e.commitProperty("mosaicRule"),e.commitProperty("rasterFunction"),e.commitProperty("adjustAspectRatio"),e.commitProperty("pixelFilter"),e.commitProperty("pixelType"),e.commitProperty("definitionExpression"),e.commitProperty("multidimensionalSubset"),(this._get("version")||0)+1}set version(e){this._set("version",e)}get mosaicRule(){let e=this.layer,t=e.mosaicRule,i=e.definitionExpression;return t?i&&i!==t.where&&((t=t.clone()).where=i):i&&(t=new Y.A({where:i})),t}get rasterFunction(){var e,t;let i=this.layer,{rasterFunction:r}=i,s=i.pixelFilter,a=!i.format||i.format.includes("jpg")||i.format.includes("png");r=this._addResampleRasterFunction(r);let n=i.multidimensionalSubset?.areaOfInterest;return n&&(e=r,t=n,r=H(new V.A({functionName:"Clip",functionArguments:{ClippingGeometry:t.toJSON(),ClippingType:1}}),e)),a&&!s&&"vector-field"!==i.renderer?.type&&(r=this.combineRendererWithRenderingRule(r)),r}combineRendererWithRenderingRule(e){let t=this.layer,{rasterInfo:i,renderer:r}=t;return(e=e||t.rasterFunction,r&&B(r))?H(function(e,t){switch(t=t||{},e.type){case"raster-stretch":return function(e,t){let i=t.convertToRFT,r=new V.A;r.functionName="Stretch";let s=Q[G.u.toJSON(e.stretchType)],a={StretchType:s,Statistics:e.customStatistics?.map(e=>[e.min,e.max,e.avg??0,e.stddev??1]),DRA:e.dynamicRangeAdjustment,UseGamma:e.useGamma,Gamma:e.gamma,ComputeGamma:e.computeGamma};if(null!=e.outputMin&&(a.Min=e.outputMin),null!=e.outputMax&&(a.Max=e.outputMax),s===Q.standardDeviation?(a.NumberOfStandardDeviations=e.numberOfStandardDeviations,r.outputPixelType="u8"):s===Q.percentClip?(a.MinPercent=e.minPercent,a.MaxPercent=e.maxPercent,r.outputPixelType="u8"):s===Q.minMax?r.outputPixelType="u8":s===Q.sigmoid&&(a.SigmoidStrengthLevel=e.sigmoidStrengthLevel),r.functionArguments=a,r.variableName="Raster",e.colorRamp){let s=e.colorRamp,a=new V.A;if(i)a.functionArguments={ColorRamp:(0,E.hf)(s)};else{let i=(0,E.hs)(s,!0);if(i)a.functionArguments={colorRampName:i};else if(t.convertColorRampToColormap&&("algorithmic"===s.type||"multipart"===s.type))a.functionArguments={Colormap:(0,E.R8)(s)};else{let t=e.colorRamp.toJSON();"algorithmic"===t.type?t.algorithm=t.algorithm||"esriCIELabAlgorithm":"multipart"===t.type&&t.colorRamps?.length&&t.colorRamps.forEach(e
1=>e.algorithm=e.algorithm||"esriCIELabAlgorithm"),a.functionArguments={colorRamp:t}}}return a.variableName="Raster",a.functionName="Colormap",a.functionArguments.Raster=r,i?new V.A({rasterFunctionDefinition:k(a)}):a}return i?new V.A({rasterFunctionDefinition:k(r)}):r}(e,t);case"class-breaks":return function(e,t){let i=[],r=[],s=[],a=[],{pixelType:n,rasterAttributeTable:o}=t,l=null==o?null:o.features,u=W(o);if(u&&l&&Array.isArray(l)&&e.classBreakInfos){e.classBreakInfos.forEach((t,i)=>{let r,s=t.symbol?.color;s?.a&&null!=t.minValue&&null!=t.maxValue&&l.forEach(n=>{null!=t.minValue&&null!=t.maxValue&&((r=n.attributes[e.field])>=t.minValue&&r<t.maxValue||i===e.classBreakInfos.length-1&&r>=t.minValue)&&a.push([n.attributes[u],s.r,s.g,s.b])})});let i=n?K(a,n):a,r=new V.A;return r.functionName="Colormap",r.functionArguments={},r.functionArguments.Colormap=i,r.variableName="Raster",t.convertToRFT?new V.A({rasterFunctionDefinition:k(r)}):r}e.classBreakInfos.forEach((e,t)=>{if(null==e.minValue||null==e.maxValue)return;let n=e.symbol&&e.symbol.color;n?.a?(0===t?i.push(e.minValue,e.maxValue+1e-4):i.push(e.minValue+1e-4,e.maxValue+1e-4),r.push(t),a.push([t,n.r,n.g,n.b])):s.push(e.minValue,e.maxValue)});let p=n?K(a,n):a,m=new V.A;m.functionName="Remap",m.functionArguments={InputRanges:i,OutputValues:r,NoDataRanges:s},m.variableName="Raster";let c=new V.A;return c.functionName="Colormap",c.functionArguments={Colormap:p,Raster:m},t.convertToRFT?new V.A({rasterFunctionDefinition:k(c)}):c}(e,t);case"unique-value":return function(e,t){let i=[],{pixelType:r,rasterAttributeTable:s}=t,a=null==s?null:s.features,n=W(s),o=e.defaultSymbol?.color?.toRgb(),l=e.uniqueValueInfos;if(l)if(a){if(n){let t=new Map;l.forEach(e=>{let i=e.value,r=X(e);null!=i&&r?.a&&t.set(String(i),r.toRgb())});let r=e.field;r&&a.forEach(({attributes:e})=>{let s=String(e[r]),a=e[n],l=t.get(s);l?i.push([a,...l]):o&&i.push([a,...o])})}}else for(let e=0;e<l.length;e++){let t=l[e],r=X(t),s=+t.value;if(r?.a){if(isNaN(s))return null;i.push([s,r.r,r.g,r.b])}}let u=r?K(i,r):i,p=new V.A;return p.functionName="Colormap",p.functionArguments={},p.functionArguments.Colormap=u,p.variableName="Raster",t.convertToRFT?new V.A({rasterFunctionDefinition:k(p)}):p}(e,t);case"raster-colormap":var i=e,r=t;let s=i.extractColormap();if(!s||0===s.length)return null;let{pixelType:a}=r,n=a?K(s,a):s,o=new V.A;return o.functionName="Colormap",o.functionArguments={},o.functionArguments.Colormap=n,r.convertToRFT?new V.A({rasterFunctionDefinition:k(o)}):o;case"vector-field":return function(e,t){let i,r,s=new V.A;s.functionName="VectorFieldRenderer";let{dataType:a,bandNames:n}=t;if(n&&2===n.length){let e=n.map(e=>e.toLowerCase());i=e.indexOf("magnitude"),r=e.indexOf("direction")}-1!==i&&null!==i||(i=0,r=1);let o="arithmetic"===e.rotationType?1:2,l=+("flow-from"!==e.flowRepresentation),u=e.visualVariables?e.visualVariables.find(e=>"Magnitude"===e.field):new z.A;s.functionArguments={magnitudeBandID:i,directionBandID:r,isUVComponents:"vector-uv"===a,referenceSystem:o,massFlowAngleRepresentation:l,symbolTileSize:50,symbolTileSizeUnits:100,calculationMethod:"Vector Average",symbologyName:L[e.style.toLowerCase().replace("-","_")],minimumMagnitude:u.minDataValue,maximumMagnitude:u.maxDataValue,minimumSymbolSize:u.minSize,maximumSymbolSize:u.maxSize};let p=k(s);return t.convertToRFT?V.A.fromJSON({rasterFunctionDefinition:p}):s}(e,t);case"raster-shaded-relief":return function(e,t){let i=t.convertToRFT;if("elevation"!==t.dataType&&("generic"!==t.dataType||1!==t.bandCount||"s16"!==t.pixelType&&"s32"!==t.pixelType&&"f32"!==t.pixelType&&"f64"!==t.pixelType))return new V.A;let r=new V.A;r.functionName="Hillshade";let s=+("traditional"!==e.hillshadeType),a="none"===e.scalingType?1:3,n={HillshadeType:s,SlopeType:a,ZFactor:e.zFactor};return 0===s&&(n.Azimuth=e.azimuth,n.Altitude=e.altitude),3===a&&(n.PSPower=e.pixelSizePower,n.PSZFactor=e.pixelSizeFactor),r.functionArguments=n,r.variableName="Raster",e.colorRamp&&(r.functionName="ShadedRelief",i?n.ColorRamp=(0,E.hf)(e.colorRamp):n.Colormap=(0,E.R8)(e.colorRamp)),i?new V.A({rasterFu
1nctionDefinition:k(r)}):r}(e,t);case"flow":throw Error("Unsupported rendering rule.")}}(r,{rasterAttributeTable:i.attributeTable,pixelType:i.pixelType,dataType:i.dataType,bandNames:i.bandInfos.map(({name:e})=>e),convertColorRampToColormap:t.version<10.6,convertToRFT:!!e?.rasterFunctionDefinition,bandCount:i.bandCount}),e):e}_addResampleRasterFunction(e){if("vector-field"!==this.layer.renderer?.type||"Resample"===e?.functionName)return e;let t="esriImageServiceDataTypeVector-UV"===this.layer.serviceDataType?7:10,i=this.layer.serviceRasterInfo.pixelSize,r=new V.A({functionName:"Resample",functionArguments:{ResamplingType:t,InputCellSize:i}});return H(r=e?.rasterFunctionDefinition?new V.A({rasterFunctionDefinition:k(r)}):r,e)}};(0,c._)([(0,w.MZ)()],et.prototype,"layer",void 0),(0,c._)([(0,w.MZ)({json:{write:!0}})],et.prototype,"adjustAspectRatio",null),(0,c._)([(0,_.K)("adjustAspectRatio")],et.prototype,"writeAdjustAspectRatio",null),(0,c._)([(0,w.MZ)({json:{write:!0}})],et.prototype,"bandIds",null),(0,c._)([(0,w.MZ)({json:{write:!0}})],et.prototype,"compression",void 0),(0,c._)([(0,w.MZ)({json:{write:!0}})],et.prototype,"compressionQuality",null),(0,c._)([(0,_.K)("compressionQuality")],et.prototype,"writeCompressionQuality",null),(0,c._)([(0,w.MZ)({json:{write:!0}})],et.prototype,"compressionTolerance",null),(0,c._)([(0,_.K)("compressionTolerance")],et.prototype,"writeCompressionTolerance",null),(0,c._)([(0,w.MZ)({json:{write:!0}})],et.prototype,"format",null),(0,c._)([(0,w.MZ)({type:String,json:{read:{reader:ee.SZ.read},write:{writer:ee.SZ.write}}})],et.prototype,"interpolation",null),(0,c._)([(0,w.MZ)({json:{write:!0}})],et.prototype,"noData",null),(0,c._)([(0,w.MZ)({type:String,json:{read:{reader:ee.hm.read},write:{writer:ee.hm.write}}})],et.prototype,"noDataInterpretation",null),(0,c._)([(0,w.MZ)({type:ee.e8.apiValues,json:{read:ee.e8.read,write:ee.e8.write}})],et.prototype,"pixelType",null),(0,c._)([(0,w.MZ)({json:{write:!0}})],et.prototype,"lercVersion",void 0),(0,c._)([(0,_.K)("lercVersion")],et.prototype,"writeLercVersion",null),(0,c._)([(0,w.MZ)({type:Number})],et.prototype,"version",null),(0,c._)([(0,w.MZ)({json:{write:!0}})],et.prototype,"mosaicRule",null),(0,c._)([(0,w.MZ)({json:{write:!0,name:"renderingRule"}})],et.prototype,"rasterFunction",null),et=(0,c._)([(0,R.$)("esri.layers.support.ExportImageServiceParameters")],et);var ei=i(7461),er=i(15774),es=i(63912),ea=i(27399),en=i(56558),eo=i(6991),el=i(87942),eu=i(28283),ep=i(56667),em=i(45860),ec=i(56930),ed=i(39043),ey=i(91740),eh=i(65489),eg=i(16036),ef=i(62858),ew=i(56536),ev=i(32277);let eR=class extends y.A.ClonableMixin(O.A){constructor(){super(...arguments),this.fromGeometry=null,this.toGeometry=null,this.objectIds=null,this.where=null,this.maxCount=null}};(0,c._)([(0,w.MZ)({type:ev.A,json:{read:!0}})],eR.prototype,"fromGeometry",void 0),(0,c._)([(0,w.MZ)({type:ev.A,json:{read:!0,write:!0}})],eR.prototype,"toGeometry",void 0),(0,c._)([(0,w.MZ)({json:{write:!0}})],eR.prototype,"objectIds",void 0),(0,c._)([(0,w.MZ)({type:String,json:{write:!0}})],eR.prototype,"where",void 0),(0,c._)([(0,w.MZ)({type:Number,json:{write:!0}})],eR.prototype,"maxCount",void 0);let e_=eR=(0,c._)([(0,R.$)("esri.rest.support.FindImagesParameters")],eR),eb=e=>{let t=class extends e{constructor(){super(...arguments),this.make=null,this.model=null,this.focalLength=null,this.pixelSize=null,this.rows=null,this.cols=null}};return(0,c._)([(0,w.MZ)({json:{write:!0}})],t.prototype,"make",void 0),(0,c._)([(0,w.MZ)({json:{write:!0}})],t.prototype,"model",void 0),(0,c._)([(0,w.MZ)({json:{write:!0}})],t.prototype,"focalLength",void 0),(0,c._)([(0,w.MZ)({json:{write:!0}})],t.prototype,"pixelSize",void 0),(0,c._)([(0,w.MZ)({json:{write:!0}})],t.prototype,"rows",void 0),(0,c._)([(0,w.MZ)({json:{write:!0}})],t.prototype,"cols",void 0),t=(0,c._)([(0,R.$)("esri.rest.support.CameraInfoMixin")],t)},eS=class extends eb(O.A){constructor(){super(...arguments),this.id=null,this.referenceUri=null,this.acquisitionDate=null,this.cameraID=null,this.center=null,this.perspectiveCenter=null,this.orientation=null}writeAcquisitionDate(e,t){t.acquisitionDate=e?.getTime()}};(0,c._)([(0,w.MZ)({json:{write:!0}})],eS.prototype,"id",void 0),(0,c._)([(0,w.MZ)({json:{name:"uri",write:!0}})],eS.prototype,"referenceUri",void 0),(0,c._)([(0,w.MZ)({type:Date,json:{write:!0}}
1)],eS.prototype,"acquisitionDate",void 0),(0,c._)([(0,_.K)("acquisitionDate")],eS.prototype,"writeAcquisitionDate",null),(0,c._)([(0,w.MZ)({json:{write:!0}})],eS.prototype,"cameraID",void 0),(0,c._)([(0,w.MZ)({type:ev.A,json:{write:!0}})],eS.prototype,"center",void 0),(0,c._)([(0,w.MZ)({type:ev.A,json:{write:!0}})],eS.prototype,"perspectiveCenter",void 0),(0,c._)([(0,w.MZ)({json:{write:!0}})],eS.prototype,"orientation",void 0);let eM=eS=(0,c._)([(0,R.$)("esri.rest.support.ImageInspectionInfo")],eS),ex=class extends O.A{constructor(){super(...arguments),this.images=null}};(0,c._)([(0,w.MZ)({type:[eM],json:{write:!0}})],ex.prototype,"images",void 0);let eA=ex=(0,c._)([(0,R.$)("esri.rest.support.FindImagesResult")],ex),eI=r=class extends O.A{constructor(e){super(e),this.angleNames=null,this.point=null,this.spatialReference=null,this.rasterId=null}clone(){return new r((0,x.o8)({angleNames:this.angleNames,point:this.point,spatialReference:this.spatialReference,rasterId:this.rasterId}))}};(0,c._)([(0,w.MZ)({type:[String],json:{name:"angleName",write:!0}})],eI.prototype,"angleNames",void 0),(0,c._)([(0,w.MZ)({type:ev.A,json:{write:!0}})],eI.prototype,"point",void 0),(0,c._)([(0,w.MZ)({type:P.A,json:{write:!0}})],eI.prototype,"spatialReference",void 0),(0,c._)([(0,w.MZ)({type:F.jz,json:{write:!0}})],eI.prototype,"rasterId",void 0);let eF=eI=r=(0,c._)([(0,R.$)("esri.rest.support.ImageAngleParameters")],eI),eD=class extends O.A{constructor(e){super(e),this.north=null,this.up=null,this.spatialReference=null}};(0,c._)([(0,w.MZ)({type:Number,json:{write:!0}})],eD.prototype,"north",void 0),(0,c._)([(0,w.MZ)({type:Number,json:{write:!0}})],eD.prototype,"up",void 0),(0,c._)([(0,w.MZ)({type:P.A,json:{write:!0}})],eD.prototype,"spatialReference",void 0);let ej=eD=(0,c._)([(0,R.$)("esri.rest.support.ImageAngleResult")],eD);var eT=i(52687),eP=i(32358),eZ=i(60576);let eN=new eZ.J({esriMensurationPoint:"point",esriMensurationCentroid:"centroid",esriMensurationDistanceAndAngle:"distance-and-angle",esriMensurationAreaAndPerimeter:"area-and-perimeter",esriMensurationHeightFromBaseAndTop:"base-and-top",esriMensurationHeightFromBaseAndTopShadow:"base-and-top-shadow",esriMensurationHeightFromTopAndTopShadow:"top-and-top-shadow",esriMensurationPoint3D:"point-3D",esriMensurationCentroid3D:"centroid-3D",esriMensurationDistanceAndAngle3D:"distance-and-angle-3D",esriMensurationAreaAndPerimeter3D:"area-and-perimeter-3D"}),eC=class extends O.A{constructor(){super(...arguments),this.value=null,this.displayValue=null,this.uncertainty=null}};(0,c._)([(0,w.MZ)({type:Number,json:{read:!0,write:!0}})],eC.prototype,"value",void 0),(0,c._)([(0,w.MZ)({type:String,json:{read:!0,write:!0}})],eC.prototype,"displayValue",void 0),(0,c._)([(0,w.MZ)({type:Number,json:{read:!0,write:!0}})],eC.prototype,"uncertainty",void 0),eC=(0,c._)([(0,R.$)("esri.rest.support.imageMeasureUtils.BaseImageMeasureResultValue")],eC);let eO=class extends eC{constructor(){super(...arguments),this.unit=null}};(0,c._)([(0,w.MZ)({type:String,json:{read:eT.Sk.read,write:eT.Sk.write}})],eO.prototype,"unit",void 0),eO=(0,c._)([(0,R.$)("esri.rest.support.imageMeasureUtils.ImageMeasureResultLengthValue")],eO);let eV=class extends eC{constructor(){super(...arguments),this.unit=null}};(0,c._)([(0,w.MZ)({type:String,json:{read:eT.dk.read,write:eT.dk.write}})],eV.prototype,"unit",void 0),eV=(0,c._)([(0,R.$)("esri.rest.support.imageMeasureUtils.ImageMeasureResultAreaValue")],eV);let eJ=class extends eC{constructor(){super(...arguments),this.unit=null}};(0,c._)([(0,w.MZ)({type:String,json:{read:eT.b$.read,write:eT.b$.write}})],eJ.prototype,"unit",void 0),eJ=(0,c._)([(0,R.$)("esri.rest.support.imageMeasureUtils.ImageMeasureResultAngleValue")],eJ);let eq=class extends O.A{constructor(e){super(e),this.type=null,this.measureOperation=null,this.mosaicRule=null,this.pixelSize=null,this.raster=void 0}};(0,c._)([(0,w.MZ)()],eq.prototype,"type",void 0),(0,c._)([(0,w.MZ)({type:eN.apiValues,json:{read:eN.read,write:eN.write}})],eq.prototype,"measureOperation",void 0),(0,c._)([(0,w.MZ)({type:Y.A,json:{write:!0}})],eq.prototype,"mosaicRule",void 0),(0,c._)([(0,w.MZ)({type:ev.A,json:{write:!0}})],eq.prototype,"pixelSize",void 0),(0,c._)([(0,w.MZ)({json:{write:!0}})],eq.prototype,"raster",void 0);let eE=eq=(0,c._)([(0,R.$)("esri.rest.support.BaseImageMeasureParameters")],eq),eG=s=class extends eE{constructor(){super(...arguments),this.type="area-perimeter",this.geometry=null,this.is3D=!1,this.linearUnit="meters",this.areaUnit="square-meters"}writeGeometry(e,t,i){null!=e&&(t.geometryType=(0,eg.$B)(e),t[i]=e.toJSON())}get measureOperation(){return this.is3D?"area-and-perimeter-3D":"area-and-perimeter"}clone(){return new s((0,x.o8)({geometry:this.geometry,is3D:this.is3D,linearUnit:this.linearUnit,areaUnit:this.areaUnit,mosaicRule:this.mosaicRule,pixelSize:this.pixelSize,raster:this.raster}))}};(0,c._)([(0,w.MZ)({types:eP.yR,json:{name:"fromGeometry",read:!0,write:!0}}
1)],eG.prototype,"geometry",void 0),(0,c._)([(0,_.K)("geometry")],eG.prototype,"writeGeometry",null),(0,c._)([(0,w.MZ)({type:eN.apiValues,json:{write:eN.write}})],eG.prototype,"measureOperation",null),(0,c._)([(0,w.MZ)({json:{read:!0}})],eG.prototype,"is3D",void 0),(0,c._)([(0,w.MZ)({type:String,json:{read:eT.Sk.read,write:eT.Sk.write}})],eG.prototype,"linearUnit",void 0),(0,c._)([(0,w.MZ)({type:String,json:{read:eT.dk.read,write:eT.dk.write}})],eG.prototype,"areaUnit",void 0);let ez=eG=s=(0,c._)([(0,R.$)("esri.rest.support.ImageAreaParameters")],eG),e$=class extends O.A{constructor(e){super(e),this.name=null,this.sensorName=null}};(0,c._)([(0,w.MZ)({type:String,json:{read:!0,write:!0}})],e$.prototype,"name",void 0),(0,c._)([(0,w.MZ)({type:String,json:{read:!0,write:!0}})],e$.prototype,"sensorName",void 0);let eL=e$=(0,c._)([(0,R.$)("esri.rest.support.BaseImageMeasureResult")],e$),eU=class extends eL{constructor(){super(...arguments),this.area=null,this.perimeter=null}};(0,c._)([(0,w.MZ)({type:eV,json:{read:!0,write:!0}})],eU.prototype,"area",void 0),(0,c._)([(0,w.MZ)({type:eO,json:{read:!0,write:!0}})],eU.prototype,"perimeter",void 0);let eB=eU=(0,c._)([(0,R.$)("esri.rest.support.ImageAreaResult")],eU),eH=class extends y.A.ClonableMixin(O.A){constructor(){super(...arguments),this.outSpatialReference=null}};(0,c._)([(0,w.MZ)({type:P.A,json:{name:"outSR",write:!0}})],eH.prototype,"outSpatialReference",void 0);let ek=eH=(0,c._)([(0,R.$)("esri.rest.support.ImageBoundaryParameters")],eH),eQ=class extends O.A{constructor(){super(...arguments),this.area=null,this.geometry=null}readGeometry(e,t){return null==e?null:e.rings?T.A.fromJSON(e):j.A.fromJSON(e)}};(0,c._)([(0,w.MZ)({type:Number,json:{write:!0}})],eQ.prototype,"area",void 0),(0,c._)([(0,w.MZ)({types:eP.yR,json:{name:"shape",write:!0}})],eQ.prototype,"geometry",void 0),(0,c._)([(0,D.w)("geometry")],eQ.prototype,"readGeometry",null);let eK=eQ=(0,c._)([(0,R.$)("esri.rest.support.ImageBoundaryResult")],eQ),eW=a=class extends eE{constructor(){super(...arguments),this.type="distance-angle",this.fromGeometry=null,this.toGeometry=null,this.is3D=!1,this.linearUnit="meters",this.angularUnit="degrees"}writeFromGeometry(e,t,i){null!=e&&(t.geometryType=(0,eg.$B)(e),t[i]=e.toJSON())}get measureOperation(){return this.is3D?"distance-and-angle-3D":"distance-and-angle"}clone(){return new a((0,x.o8)({fromGeometry:this.fromGeometry,toGeometry:this.toGeometry,is3D:this.is3D,linearUnit:this.linearUnit,angularUnit:this.angularUnit,mosaicRule:this.mosaicRule,pixelSize:this.pixelSize,raster:this.raster}))}};(0,c._)([(0,w.MZ)({type:ev.A,json:{read:!0,write:!0}})],eW.prototype,"fromGeometry",void 0),(0,c._)([(0,_.K)("fromGeometry")],eW.prototype,"writeFromGeometry",null),(0,c._)([(0,w.MZ)({type:ev.A,json:{read:!0,write:!0}})],eW.prototype,"toGeometry",void 0),(0,c._)([(0,w.MZ)({type:eN.apiValues,json:{write:eN.write}})],eW.prototype,"measureOperation",null),(0,c._)([(0,w.MZ)({json:{read:!0}})],eW.prototype,"is3D",void 0),(0,c._)([(0,w.MZ)({type:String,json:{read:eT.Sk.read,write:eT.Sk.write}})],eW.prototype,"linearUnit",void 0),(0,c._)([(0,w.MZ)({type:String,json:{read:eT.b$.read,write:eT.b$.write}})],eW.prototype,"angularUnit",void 0);let eX=eW=a=(0,c._)([(0,R.$)("esri.rest.support.ImageDistanceParameters")],eW),eY=class extends eL{constructor(){super(...arguments),this.distance=null,this.azimuthAngle=null,this.elevationAngle=null}};(0,c._)([(0,w.MZ)({type:eO,json:{read:!0,write:!0}})],eY.prototype,"distance",void 0),(0,c._)([(0,w.MZ)({type:eJ,json:{read:!0,write:!0}})],eY.prototype,"azimuthAngle",void 0),(0,c._)([(0,w.MZ)({type:eJ,json:{read:!0,write:!0}})],eY.prototype,"elevationAngle",void 0);let e0=eY=(0,c._)([(0,R.$)("esri.rest.support.ImageDistanceResult")],eY);var e1=i(8857),e8=i(38552),e3=i(6387);let e9=class extends y.A.ClonableMixin(O.A){constructor(){super(...arguments),this.geometry=null,this.objectIds=null,this.spatialRelationship="intersects",this.timeExtent=null,this.where=null}writeGeometry(e,t,i){null!=e&&(t.geometryType=(0,eg.$B)(e),t[i]=JSON.stringify(e.toJSON()))}};(0,c._)([(0,w.MZ)({types:eP.yR,json:{read:eg.rS,write:!0}}
1)],e9.prototype,"geometry",void 0),(0,c._)([(0,_.K)("geometry")],e9.prototype,"writeGeometry",null),(0,c._)([(0,w.MZ)({json:{write:!0}})],e9.prototype,"objectIds",void 0),(0,c._)([(0,e1.e)(e8.x,{ignoreUnknown:!1,name:"spatialRel"})],e9.prototype,"spatialRelationship",void 0),(0,c._)([(0,w.MZ)({type:e3.A,json:{name:"time",write:!0}})],e9.prototype,"timeExtent",void 0),(0,c._)([(0,w.MZ)({type:String,json:{write:!0}})],e9.prototype,"where",void 0);let e2=e9=(0,c._)([(0,R.$)("esri.rest.support.ImageGPSInfoParameters")],e9),e4=class extends eb(O.A){constructor(){super(...arguments),this.id=null}};(0,c._)([(0,w.MZ)({json:{write:!0}})],e4.prototype,"id",void 0);let e7=e4=(0,c._)([(0,R.$)("esri.rest.support.CameraInfo")],e4),e6=class extends O.A{constructor(){super(...arguments),this.id=null,this.name=null,this.acquisitionDate=null,this.cameraID=null,this.center=null,this.gps=null,this.orientation=null}writeAcquisitionDate(e,t){t.acquisitionDate=e?.getTime()}};(0,c._)([(0,w.MZ)({json:{write:!0}})],e6.prototype,"id",void 0),(0,c._)([(0,w.MZ)({json:{write:!0}})],e6.prototype,"name",void 0),(0,c._)([(0,w.MZ)({type:Date,json:{write:!0}})],e6.prototype,"acquisitionDate",void 0),(0,c._)([(0,_.K)("acquisitionDate")],e6.prototype,"writeAcquisitionDate",null),(0,c._)([(0,w.MZ)({json:{write:!0}})],e6.prototype,"cameraID",void 0),(0,c._)([(0,w.MZ)({type:ev.A,json:{write:!0}})],e6.prototype,"center",void 0),(0,c._)([(0,w.MZ)({json:{write:!0}})],e6.prototype,"gps",void 0),(0,c._)([(0,w.MZ)({json:{write:!0}})],e6.prototype,"orientation",void 0);let e5=e6=(0,c._)([(0,R.$)("esri.rest.support.ImageGPSInfo")],e6),te=class extends O.A{constructor(){super(...arguments),this.images=null,this.cameras=null}};(0,c._)([(0,w.MZ)({type:[e5],json:{write:!0}})],te.prototype,"images",void 0),(0,c._)([(0,w.MZ)({type:[e7],json:{write:!0}})],te.prototype,"cameras",void 0);let tt=te=(0,c._)([(0,R.$)("esri.rest.support.ImageGPSInfoResult")],te),ti=n=class extends eE{constructor(){super(...arguments),this.type="height",this.fromGeometry=null,this.toGeometry=null,this.operationType="base-and-top",this.linearUnit="meters"}writeFromGeometry(e,t,i){null!=e&&(t.geometryType=(0,eg.$B)(e),t[i]=e.toJSON())}get measureOperation(){return this.operationType}clone(){return new n((0,x.o8)({fromGeometry:this.fromGeometry,toGeometry:this.toGeometry,operationType:this.operationType,linearUnit:this.linearUnit,mosaicRule:this.mosaicRule,pixelSize:this.pixelSize,raster:this.raster}))}};(0,c._)([(0,w.MZ)({type:ev.A,json:{read:!0}})],ti.prototype,"fromGeometry",void 0),(0,c._)([(0,_.K)("fromGeometry")],ti.prototype,"writeFromGeometry",null),(0,c._)([(0,w.MZ)({type:ev.A,json:{read:!0,write:!0}})],ti.prototype,"toGeometry",void 0),(0,c._)([(0,w.MZ)({type:eN.apiValues,json:{write:eN.write}})],ti.prototype,"measureOperation",null),(0,c._)([(0,w.MZ)({json:{read:!0}})],ti.prototype,"operationType",void 0),(0,c._)([(0,w.MZ)({type:String,json:{read:eT.Sk.read,write:eT.Sk.write}})],ti.prototype,"linearUnit",void 0);let tr=ti=n=(0,c._)([(0,R.$)("esri.rest.support.ImageHeightParameters")],ti),ts=class extends eL{constructor(){super(...arguments),this.height=null}};(0,c._)([(0,w.MZ)({type:eO,json:{read:!0,write:!0}})],ts.prototype,"height",void 0);let ta=ts=(0,c._)([(0,R.$)("esri.rest.support.ImageHeightResult")],ts);var tn=i(87774);let to=o=class extends O.A{constructor(){super(...arguments),this.geometry=null,this.rasterFunctions=null,this.pixelSize=null,this.returnGeometry=!0,this.returnCatalogItems=!0,this.returnPixelValues=!0,this.maxItemCount=null,this.timeExtent=null,this.raster=void 0,this.viewId=void 0,this.processAsMultidimensional=!1}writeGeometry(e,t,i){null!=e&&(t.geometryType=(0,eg.$B)(e),t[i]=JSON.stringify(e.toJSON()))}set mosaicRule(e){let t=e;t?.mosaicMethod&&(t=Y.A.fromJSON({...t.toJSON(),mosaicMethod:t.mosaicMethod,mosaicOperation:t.mosaicOperation})),this._set("mosaicRule",t)}writeMosaicRule(e,t,i){null!=e&&(t[i]=JSON.stringify(e.toJSON()))}set rasterFunction(e){let t=e;t?.rasterFunction&&(t=V.A.fromJSON({...t.toJSON(),rasterFunction:t.rasterFunction,rasterFunctionArguments:t.rasterFu
1nctionArguments})),this._set("rasterFunction",t)}writeRasterFunction(e,t,i){null!=e&&(t[i]=JSON.stringify(e.toJSON())),e.rasterFunctionDefinition&&(t[i]=JSON.stringify(e.rasterFunctionDefinition))}writeRasterFunctions(e,t,i){null!=e&&(t[i]=JSON.stringify(e.map(e=>e.rasterFunctionDefinition||e.toJSON())))}writePixelSize(e,t,i){null!=e&&(t[i]=JSON.stringify(e))}writeTimeExtent(e,t,i){if(null!=e){let r=null!=e.start?e.start.getTime():null,s=null!=e.end?e.end.getTime():null;t[i]=null!=r?null!=s?`${r},${s}`:`${r}`:null}}clone(){return new o((0,x.o8)({geometry:this.geometry,mosaicRule:this.mosaicRule,rasterFunction:this.rasterFunction,rasterFunctions:this.rasterFunctions,pixelSize:this.pixelSize,returnGeometry:this.returnGeometry,returnCatalogItems:this.returnCatalogItems,returnPixelValues:this.returnPixelValues,maxItemCount:this.maxItemCount,processAsMultidimensional:this.processAsMultidimensional,raster:this.raster,viewId:this.viewId,timeExtent:this.timeExtent}))}};(0,c._)([(0,w.MZ)({types:eP.yR,json:{write:!0}})],to.prototype,"geometry",void 0),(0,c._)([(0,_.K)("geometry")],to.prototype,"writeGeometry",null),(0,c._)([(0,w.MZ)({type:Y.A,json:{write:!0}})],to.prototype,"mosaicRule",null),(0,c._)([(0,_.K)("mosaicRule")],to.prototype,"writeMosaicRule",null),(0,c._)([(0,w.MZ)({type:V.A,json:{write:!0,name:"renderingRule"}})],to.prototype,"rasterFunction",null),(0,c._)([(0,_.K)("rasterFunction")],to.prototype,"writeRasterFunction",null),(0,c._)([(0,w.MZ)({type:[V.A],json:{write:!0,name:"renderingRules"}})],to.prototype,"rasterFunctions",void 0),(0,c._)([(0,_.K)("rasterFunctions")],to.prototype,"writeRasterFunctions",null),(0,c._)([(0,w.MZ)({type:ev.A,json:{write:!0}})],to.prototype,"pixelSize",void 0),(0,c._)([(0,_.K)("pixelSize")],to.prototype,"writePixelSize",null),(0,c._)([(0,w.MZ)({type:Boolean,json:{write:!0}})],to.prototype,"returnGeometry",void 0),(0,c._)([(0,w.MZ)({type:Boolean,json:{write:!0}})],to.prototype,"returnCatalogItems",void 0),(0,c._)([(0,w.MZ)({type:Boolean,json:{write:!0}})],to.prototype,"returnPixelValues",void 0),(0,c._)([(0,w.MZ)({type:Number,json:{write:!0}})],to.prototype,"maxItemCount",void 0),(0,c._)([(0,w.MZ)({type:e3.A,json:{write:{target:"time"}}})],to.prototype,"timeExtent",void 0),(0,c._)([(0,_.K)("timeExtent")],to.prototype,"writeTimeExtent",null),(0,c._)([(0,w.MZ)({json:{write:!0}})],to.prototype,"raster",void 0),(0,c._)([(0,w.MZ)({json:{write:!0}})],to.prototype,"viewId",void 0),(0,c._)([(0,w.MZ)({type:Boolean,json:{write:!0}})],to.prototype,"processAsMultidimensional",void 0);let tl=to=o=(0,c._)([(0,R.$)("esri.rest.support.ImageIdentifyParameters")],to);var tu=i(70109);let tp=class extends O.A{constructor(){super(...arguments),this.catalogItemVisibilities=null,this.catalogItems=null,this.location=null,this.name=null,this.objectId=null,this.processedValues=null,this.properties=null,this.value=null}};(0,c._)([(0,w.MZ)({json:{write:!0}})],tp.prototype,"catalogItemVisibilities",void 0),(0,c._)([(0,w.MZ)({type:tu.A,json:{write:!0}})],tp.prototype,"catalogItems",void 0),(0,c._)([(0,w.MZ)({type:ev.A,json:{write:!0}})],tp.prototype,"location",void 0),(0,c._)([(0,w.MZ)({json:{write:!0}})],tp.prototype,"name",void 0),(0,c._)([(0,w.MZ)({json:{write:!0}})],tp.prototype,"objectId",void 0),(0,c._)([(0,w.MZ)({json:{write:!0}})],tp.prototype,"processedValues",void 0),(0,c._)([(0,w.MZ)({json:{write:!0}})],tp.prototype,"properties",void 0),(0,c._)([(0,w.MZ)({json:{write:!0}})],tp.prototype,"value",void 0);let tm=tp=(0,c._)([(0,R.$)("esri.rest.support.ImageIdentifyResult")],tp),tc=l=class extends O.A{constructor(){super(...arguments),this.geometries=null,this.rasterId=null}writeGeometry(e,t,i){t.geometries={geometryType:"esriGeometryPoint",geometries:e.map(e=>e.toJSON())}}clone(){return new l({geometries:this.geometries?.map(e=>e.clone())??[],rasterId:this.rasterId})}};(0,c._)([(0,w.MZ)({type:[ev.A],json:{write:!0}})],tc.prototype,"geometries",void 0),(0,c._)([(0,_.K)("geometries")],tc.prototype,"writeGeometry",null),(0,c._)([(0,w.MZ)({type:F.jz,json:{write:!0}})],tc.prototype,"rasterId",void 0);let td=tc=l=(0,c._)([(0,R.$)("esri.rest.support.ImagePixelLocationParameters")],tc),ty=class extends O.A{constructor(){super(...arguments),this.geometries=null}};(0,c._)([(0,w.MZ)({json:{write:!0}})],ty.prototype,"geometries",void 0);let th=ty=(0,c._)([(0,R.$)("esri.rest.support.ImagePixelLocationResult")],ty),tg=u=class extends eE{constructor(){super(...arguments),this.type="point",this.geometry=null,this.is3D=!1}writeGeometry(e,t,i){null!=e&&(t.geometryType=(0,eg.$B)(e),t[i]=e.toJSON())}get measureOperation(){let{is3D:e,geometry:t}=this;return"point"===t.type?e?"point-3D":"point":e?"centroid-3D":"centroid"}clone(){return new u((0,x.o8)({geometry:this.geometry,is3D:this.is3D,mosaicRule:this.mosaicRule,pixelSize:this.pixelSize,raster:this.raster}))}};(0,c._)([(0,w.MZ)({types:eP.yR,json:{name:"fromGeometry",read:eg.rS}}
1)],tg.prototype,"geometry",void 0),(0,c._)([(0,_.K)("geometry")],tg.prototype,"writeGeometry",null),(0,c._)([(0,w.MZ)({type:eN.apiValues,json:{read:eN.read,write:eN.write}})],tg.prototype,"measureOperation",null),(0,c._)([(0,w.MZ)({json:{read:!0}})],tg.prototype,"is3D",void 0);let tf=tg=u=(0,c._)([(0,R.$)("esri.rest.support.ImagePointParameters")],tg),tw=class extends eL{constructor(){super(...arguments),this.point=null}};(0,c._)([(0,w.MZ)({type:ev.A,json:{name:"point.value",read:!0,write:!0}})],tw.prototype,"point",void 0);let tv=tw=(0,c._)([(0,R.$)("esri.rest.support.ImagePointResult")],tw);var tR=i(75740);let t_=p=class extends O.A{constructor(){super(...arguments),this.geometry=null,this.interpolation="nearest",this.mosaicRule=null,this.outFields=null,this.pixelSize=null,this.raster=void 0,this.returnFirstValueOnly=!0,this.sampleDistance=null,this.sampleCount=null,this.sliceId=null,this.timeExtent=null}writeGeometry(e,t,i){null!=e&&(t.geometryType=(0,eg.$B)(e),t[i]=e.toJSON())}set locations(e){if(e?.length){let t=new tR.A({spatialReference:e[0].spatialReference,points:e.map(({x:e,y:t})=>[e,t])});this._set("locations",e),this.geometry=t}}clone(){return new p((0,x.o8)({geometry:this.geometry,locations:this.locations,interpolation:this.interpolation,mosaicRule:this.mosaicRule,outFields:this.outFields,raster:this.raster,returnFirstValueOnly:this.returnFirstValueOnly,sampleDistance:this.sampleDistance,sampleCount:this.sampleCount,sliceId:this.sliceId,pixelSize:this.pixelSize,timeExtent:this.timeExtent}))}};(0,c._)([(0,w.MZ)({types:eP.yR,json:{read:eg.rS}})],t_.prototype,"geometry",void 0),(0,c._)([(0,_.K)("geometry")],t_.prototype,"writeGeometry",null),(0,c._)([(0,w.MZ)({type:[ev.A]})],t_.prototype,"locations",null),(0,c._)([(0,w.MZ)({type:String,json:{type:ee.SZ.jsonValues,read:ee.SZ.read,write:ee.SZ.write}})],t_.prototype,"interpolation",void 0),(0,c._)([(0,w.MZ)({type:Y.A,json:{write:!0}})],t_.prototype,"mosaicRule",void 0),(0,c._)([(0,w.MZ)({type:[String],json:{write:!0}})],t_.prototype,"outFields",void 0),(0,c._)([(0,w.MZ)({type:ev.A,json:{write:!0}})],t_.prototype,"pixelSize",void 0),(0,c._)([(0,w.MZ)({type:String,json:{write:!0}})],t_.prototype,"raster",void 0),(0,c._)([(0,w.MZ)({type:Boolean,json:{write:!0}})],t_.prototype,"returnFirstValueOnly",void 0),(0,c._)([(0,w.MZ)({type:Number,json:{write:!0}})],t_.prototype,"sampleDistance",void 0),(0,c._)([(0,w.MZ)({type:Number,json:{write:!0}})],t_.prototype,"sampleCount",void 0),(0,c._)([(0,w.MZ)({type:Number,json:{write:!0}})],t_.prototype,"sliceId",void 0),(0,c._)([(0,w.MZ)({type:e3.A,json:{read:{source:"time"},write:{target:"time"}}})],t_.prototype,"timeExtent",void 0);let tb=t_=p=(0,c._)([(0,R.$)("esri.rest.support.ImageSampleParameters")],t_),tS=class extends O.A{constructor(){super(...arguments),this.attributes=null,this.location=null,this.locationId=null,this.rasterId=null,this.resolution=null,this.pixelValue=null}};(0,c._)([(0,w.MZ)({json:{write:!0}})],tS.prototype,"attributes",void 0),(0,c._)([(0,w.MZ)({type:ev.A,json:{write:!0}})],tS.prototype,"location",void 0),(0,c._)([(0,w.MZ)({json:{write:!0}})],tS.prototype,"locationId",void 0),(0,c._)([(0,w.MZ)({json:{write:!0}})],tS.prototype,"rasterId",void 0),(0,c._)([(0,w.MZ)({json:{write:!0}})],tS.prototype,"resolution",void 0),(0,c._)([(0,w.MZ)({json:{write:!0}})],tS.prototype,"pixelValue",void 0);let tM=tS=(0,c._)([(0,R.$)("esri.rest.support.ImageSample")],tS),tx=class extends O.A{constructor(){super(...arguments),this.samples=[]}};(0,c._)([(0,w.MZ)({type:[tM],json:{write:!0}})],tx.prototype,"samples",void 0);let tA=tx=(0,c._)([(0,R.$)("esri.rest.support.ImageSampleResult")],tx),tI=class extends y.A.ClonableMixin(O.A){constructor(){super(...arguments),this.geometries=[],this.rasterIds=null,this.outSpatialReference=null}writeGeometries(e,t,i){t.geometries=e?.length?{geometryType:(0,eg.$B)(e[0]),geometries:e.map(e=>({...e.toJSON(),spatialReference:void 0}))}:null}};(0,c._)([(0,w.MZ)({types:[eP.yR]})],tI.prototype,"geometries",void 0),(0,c._)([(0,_.K)("geometries")],tI.prototype,"writeGeometries",null),(0,c._)([(0,w.MZ)({type:[F.jz],json:{write:!0}})],tI.prototype,"rasterIds",void 0),(0,c._)([(0,w.MZ)({type:P.A,json:{name:"outSR",write:!0}})],tI.prototype,"outSpatialReference",void 0);let tF=tI=(0,c._)([(0,R.$)("esri.rest.support.ImageToMapMultirayParameters")],tI),tD=class extends y.A.ClonableMixin(O.A){constructor(){super(...arguments),this.geometry=null,this.rasterId=null,this.outSpatialReference=null,this.depthOffset=0,this.adjust=!1}writeGeometry(e,t,i){null!=e&&(t.geometryType=(0,eg.$B)(e),t[i]={...e.toJSON(),spatialReference:void 0})}};(0,c._)([(0,w.MZ)({types:eP.yR,json:{read:eg.rS,write:!0}}
1)],tD.prototype,"geometry",void 0),(0,c._)([(0,_.K)("geometry")],tD.prototype,"writeGeometry",null),(0,c._)([(0,w.MZ)({json:{write:!0}})],tD.prototype,"rasterId",void 0),(0,c._)([(0,w.MZ)({type:P.A,json:{name:"outSR",write:!0}})],tD.prototype,"outSpatialReference",void 0),(0,c._)([(0,w.MZ)({json:{name:"options.DOff",write:!0}})],tD.prototype,"depthOffset",void 0),(0,c._)([(0,w.MZ)({json:{name:"options.Adjust",write:!0}})],tD.prototype,"adjust",void 0);let tj=tD=(0,c._)([(0,R.$)("esri.rest.support.ImageToMapParameters")],tD),tT=class extends y.A.ClonableMixin(O.A){constructor(){super(...arguments),this.referenceUri=null,this.rasterId=null}};(0,c._)([(0,w.MZ)({type:String,json:{name:"uri",write:!0}})],tT.prototype,"referenceUri",void 0),(0,c._)([(0,w.MZ)({type:Number,json:{write:!0}})],tT.prototype,"rasterId",void 0);let tP=tT=(0,c._)([(0,R.$)("esri.rest.support.ImageUrlParameters")],tT),tZ=class extends O.A{constructor(){super(...arguments),this.url=null}};(0,c._)([(0,w.MZ)({json:{name:"imageURL",write:!0}})],tZ.prototype,"url",void 0);let tN=tZ=(0,c._)([(0,R.$)("esri.rest.support.ImageUrlResult")],tZ),tC=new eZ.J({0:"constant",1:"plane",2:"minimum",3:"maximum",4:"average"},{useNumericKeys:!0}),tO=class extends y.A.ClonableMixin(O.A){constructor(){super(...arguments),this.geometries=[],this.mosaicRule=null,this.pixelSize=null,this.constantZ=null,this.baseType="plane"}writeGeometries(e,t,i){e?.length&&(t.geometryType=(0,eg.$B)(e[0]),t.geometries=e.map(e=>e.toJSON()))}};(0,c._)([(0,w.MZ)({types:[eP.yR]})],tO.prototype,"geometries",void 0),(0,c._)([(0,_.K)("geometries")],tO.prototype,"writeGeometries",null),(0,c._)([(0,w.MZ)({type:Y.A,json:{write:!0}})],tO.prototype,"mosaicRule",void 0),(0,c._)([(0,w.MZ)({type:ev.A,json:{write:!0}})],tO.prototype,"pixelSize",void 0),(0,c._)([(0,w.MZ)({json:{write:!0}})],tO.prototype,"constantZ",void 0),(0,c._)([(0,w.MZ)({type:tC.apiValues,json:{read:tC.read,write:tC.write}})],tO.prototype,"baseType",void 0);let tV=tO=(0,c._)([(0,R.$)("esri.rest.support.ImageVolumeParameters")],tO),tJ=class extends O.A{constructor(){super(...arguments),this.area=null,this.cut=null,this.fill=null,this.maxZ=null,this.minZ=null,this.meanZ=null,this.cutCellCount=null,this.fillCellCount=null}};(0,c._)([(0,w.MZ)({json:{write:!0}})],tJ.prototype,"area",void 0),(0,c._)([(0,w.MZ)({json:{write:!0}})],tJ.prototype,"cut",void 0),(0,c._)([(0,w.MZ)({json:{write:!0}})],tJ.prototype,"fill",void 0),(0,c._)([(0,w.MZ)({json:{name:"maxz",write:!0}})],tJ.prototype,"maxZ",void 0),(0,c._)([(0,w.MZ)({json:{name:"minz",write:!0}})],tJ.prototype,"minZ",void 0),(0,c._)([(0,w.MZ)({json:{name:"meanz",write:!0}})],tJ.prototype,"meanZ",void 0),(0,c._)([(0,w.MZ)({json:{write:!0}})],tJ.prototype,"cutCellCount",void 0),(0,c._)([(0,w.MZ)({json:{write:!0}})],tJ.prototype,"fillCellCount",void 0);let tq=tJ=(0,c._)([(0,R.$)("esri.rest.support.ImageVolume")],tJ),tE=class extends O.A{constructor(){super(...arguments),this.volumes=[]}};(0,c._)([(0,w.MZ)({type:[tq],json:{write:!0}})],tE.prototype,"volumes",void 0);let tG=tE=(0,c._)([(0,R.$)("esri.rest.support.ImageVolumeResult")],tE),tz=class extends y.A.ClonableMixin(O.A){constructor(){super(...arguments),this.geometry=null,this.rasterId=null,this.visibleOnly=!1}writeGeometry(e,t,i){null!=e&&(t.geometryType=(0,eg.$B)(e),t[i]=JSON.stringify(e))}};(0,c._)([(0,w.MZ)({types:eP.yR,json:{read:eg.rS,write:!0}})],tz.prototype,"geometry",void 0),(0,c._)([(0,_.K)("geometry")],tz.prototype,"writeGeometry",null),(0,c._)([(0,w.MZ)({json:{write:!0}})],tz.prototype,"rasterId",void 0),(0,c._)([(0,w.MZ)({json:{name:"options.VisibleOnly",write:!0}})],tz.prototype,"visibleOnly",void 0);let t$=tz=(0,c._)([(0,R.$)("esri.rest.support.MapToImageParameters")],tz),tL=class extends O.A{constructor(){super(...arguments),this.geometry=null,this.length=null,this.area=null,this.center=null}readCenter(e,t){return e.spatialReference||(e={...e,spatialReference:t.Shape.spatialReference}),ev.A.fromJSON(e)}};(0,c._)([(0,w.MZ)({types:eP.yR,json:{name:"Shape",read:eg.rS,write:!0}})],tL.prototype,"geometry",void 0),(0,c._)([(0,w.MZ)({json:{name:"Length",write:!0}})],tL.prototype,"length",void 0),(0,c._)([(0,w.MZ)({json:{name:"Area",write:!0}})],tL.prototype,"area",void 0),(0,c._)([(0,w.MZ)({type:ev.A,json:{name:"Center",write:!0}})],tL.prototype,"center",void 0),(0,c._)([(0,D.w)("center")],tL.prototype,"readCenter",null);let tU=tL=(0,c._)([(0,R.$)("esri.rest.support.MeasureAreaFromImageResult")],tL),tB=m=class extends O.A{constructor(){super(...arguments),this.geometry=null,this.rasterId=void 0}writeGeometry(e,t,i){null!=e&&(t.geometryType=(0,eg.$B)(e),t[i]={...e.toJSON(),spatialReference:void 0})}clone(){let e=(0,x.o8)({geometry:this.geometry,rasterId:this.rasterId});return new m(e)}};(0,c._)([(0,w.MZ)({types:eP.yR,json:{name:"fromGeometry",read:eg.rS,write:!0}}
1)],tB.prototype,"geometry",void 0),(0,c._)([(0,_.K)("geometry")],tB.prototype,"writeGeometry",null),(0,c._)([(0,w.MZ)({json:{write:!0}})],tB.prototype,"rasterId",void 0);let tH=tB=m=(0,c._)([(0,R.$)("esri.rest.support.MeasureFromImageParameters")],tB),tk=class extends O.A{constructor(){super(...arguments),this.geometry=null,this.length=null}};(0,c._)([(0,w.MZ)({types:eP.yR,json:{name:"Shape",read:eg.rS,write:!0}})],tk.prototype,"geometry",void 0),(0,c._)([(0,w.MZ)({json:{name:"Length",write:!0}})],tk.prototype,"length",void 0);let tQ=tk=(0,c._)([(0,R.$)("esri.rest.support.MeasureLengthFromImageResult")],tk);function tK(e){let t=e?.time;if(t&&(null!=t.start||null!=t.end)){let i=[];null!=t.start&&i.push(t.start),null==t.end||i.includes(t.end)||i.push(t.end),e.time=i.join(",")}}async function tW(e,t,i){t=(0,F.PZ)(tn.A,t);let r=(0,ew.Dl)(e),s=t.geometry?[t.geometry]:[],a=await (0,ef.el)(s),n=t.toJSON();tK(n);let o=a?.[0];null!=o&&(n.geometry=ir(o));let l=(0,ew.lF)({...r.query,f:"json",...n});return(0,ew.jV)(l,i)}async function tX(e,t,i){let r=(t=(0,F.PZ)(tV,t)).toJSON();r.geometries=JSON.stringify(r.geometries);let s=(0,ew.Dl)(e),a=(0,ew.lF)({...s.query,f:"json",...r}),n=(0,ew.jV)(a,i),{data:o}=await (0,M.A)(`${s.path}/calculateVolume`,n);return tG.fromJSON({volumes:o.results})}async function tY(e,t,i){let r=(t=(0,F.PZ)(eF,t)).toJSON();null!=r.angleName&&(r.angleName=r.angleName.join(",")),t?.point?.spatialReference?.imageCoordinateSystem&&(r.point.spatialReference=is(t.point.spatialReference)),t?.spatialReference?.imageCoordinateSystem&&(r.spatialReference=ia(t.spatialReference));let s=(0,ew.Dl)(e),a=(0,ew.lF)({...s.query,f:"json",...r}),n=(0,ew.jV)(a,i),{data:o}=await (0,M.A)(`${s.path}/computeAngles`,n);return o.spatialReference=o.spatialReference?null!=o.spatialReference.geodataXform?new P.A({wkid:0,imageCoordinateSystem:o.spatialReference}):P.A.fromJSON(o.spatialReference):null,"NaN"===o.north&&(o.north=null),"NaN"===o.up&&(o.up=null),new ej(o)}async function t0(e,t,i){let r=(t=(0,F.PZ)(td,t)).toJSON(),{geometries:s}=t;if(s)for(let e=0;e<s.length;e++)s[e].spatialReference?.imageCoordinateSystem&&(r.geometries.geometries[e].spatialReference=is(s[e].spatialReference));let a=(0,ew.Dl)(e),n=(0,ew.lF)({...a.query,f:"json",...r}),o=(0,ew.jV)(n,i),{data:l}=await (0,M.A)(`${a.path}/computePixelLocation`,o);return th.fromJSON(l)}async function t1(e,t,i){let r=await tW(e,t,i),s=(0,ew.Dl)(e),{data:a}=await (0,M.A)(`${s.path}/computeStatisticsHistograms`,r),{statistics:n}=a;return n?.length&&n.forEach(e=>{e.avg=e.mean,e.stddev=e.standardDeviation}),{statistics:n,histograms:a.histograms}}async function t8(e,t,i){let r=await tW(e,t,i),s=(0,ew.Dl)(e),{data:a}=await (0,M.A)(`${s.path}/computeHistograms`,r);return{histograms:a.histograms}}async function t3(e,t,i){let r=(t=(0,F.PZ)(tb,t)).toJSON();tK(r),r.outFields?.length&&(r.outFields=r.outFields.join(","));let s=await (0,ef.el)(t.geometry),a=s?.[0];null!=a&&(r.geometry=ir(a));let n=(0,ew.Dl)(e),o=(0,ew.lF)({...n.query,f:"json",...r}),l=(0,ew.jV)(o,i),{data:u}=await (0,M.A)(`${n.path}/getSamples`,l),p=u.samples.map(e=>{let t="NaN"===e.value||""===e.value?null:e.value.split(" ").map(e=>Number(e));return{...e,pixelValue:t}});return tA.fromJSON({samples:p})}async function t9(e,t,i){t=(0,F.PZ)(tl,t);let r=(0,ew.Dl)(e),s=t.geometry?[t.geometry]:[];return(0,ef.el)(s).then(e=>{let s=t.toJSON(),a=e?.[0];null!=a&&(s.geometry=JSON.stringify(ir(a)));let n=(0,ew.lF)({...r.query,f:"json",...s}),o=(0,ew.jV)(n,i);return(0,M.A)(r.path+"/identify",o)}).then(e=>tm.fromJSON(e.data))}async function t2(e,t,i){t=(0,F.PZ)(tr,t);let r=await t5(e,t,[t.fromGeometry,t.toGeometry],i);return ta.fromJSON(r)}async function t4(e,t,i){t=(0,F.PZ)(ez,t);let r=await t5(e,t,[t.geometry],i);return eB.fromJSON(r)}async function t7(e,t,i){t=(0,F.PZ)(tf,t);let r=await t5(e,t,[t.geometry],i);return tv.fromJSON(r)}async function t6(e,t,i){t=(0,F.PZ)(eX,t);let r=await t5(e,t,[t.fromGeometry,t.toGeometry],i);return e0.fromJSON(r)}async function t5(e,t,i,r){let s=(0,ew.Dl)(e),a=await (0,ef.el)(i),n=t.toJSON();null!=a[0]&&(n.fromGeometry=JSON.stringify(ir(a[0]))),null!=a[1]&&(n.toGeometry=JSON.stringify(ir(a[1])));let o=(0,ew.lF)({...s.query,f:"json",...n}),l=(0,ew.jV)(o,r),{data:u}=await (0,M.A)(s.path+"/measure",l);return u}async function ie(e,t,i){let r=await ii(e,t,i);return tQ.fromJSON(r)}async function it(e,t,i){let r=await ii(e,t,i);return tU.fromJSON(r)}async function ii(e,t,i){t=(0,F.PZ)(tH,t);let r=(0,ew.Dl)(e),s=t.toJSON(),a=(0,ew.lF)({...r.query,f:"json",...s}),n=(0,ew.jV)(a,i),{data:o}=await (0,M.A)(r.path+"/measureFromImage",n);return o}function ir(e){let t=e.toJSON();return e.spatialReference?.imageCoordinateSystem&&(t.spatialReference=is(e.spatialReference)),t}function is(e){let{imageCoordinateSystem:t}=e;if(t){let{id:e,referenceServiceName:i}=t;return null!=e?i?{icsid:e,icsns:i}:{icsid:e}:{ics:t}}return e.toJSON()}function ia(e,t){if(!e.imageCoordinateSystem)return(0,Z.YX)(e);let i=is(e),{icsid:r,icsns:s}=i;return null!=r&&(null==s||t?.toLowerCase().includes("/"+s.toLowerCase()+"/"))?`0:${r}`:JSON.stringify(i)}async function io(e,t,i){t=(0,F.PZ)(ek,t);let r=(0,ew.Dl)(e),s=t.toJSON();t.outSpatialReference&&(s.outSR=ia(t.outSpatialReference));let a=(0,ew.lF)({...r.query,f:"json",...s}),n=(0,ew.jV)(a,i),{data:o}=await (0,M.A)(r.path+"/queryBoundary",n);return eK.fromJSON(o)}async function il(e,t,i){let r=(t=(0,F.PZ)(e2,t)).toJSON();tK(r),r.objectIds?.length&&(r.objectIds=r.objectIds.join(",")),r.geometry||r.objectIds||r.time||r.where||(r.where="1=1");let s=await (0,ef.el)(t.geometry),a=s?.[0];null!=a&&(r.geometry=ir(a));let n=a?.spatialReference??t.geometry?.spatialReference;n&&(r.inSR=ia(n));let o=(0,ew.Dl)(e),l=(0,ew.lF)({...o.query,f:"json",...r}),u=(0,ew.jV)(l,i),{data:p}=await (0,M.A)(`${o.path}/queryGPSInfo`,u);return tt.fromJSON(p)}async function iu(e,t,i){let r=(t=(0,F.PZ)(tj,t)).toJSON();t.geometry.spatialReference.imageCoordinateSystem&&(r.geometry=ir(t.geometry)),t.depthOffset&&t.adjust||delete r.options;let s=(0,ew.Dl)(e),a=(0,ew.lF)({...s.query,f:"json",...r}),n=(0,ew.jV)(a,i),{data:o}=await (0,M.A)(`${s.path}/imageToMap`,n);return(0,eg.rS)(o)}async function ip(e,t,i){let r=(t=(0,F.PZ)(tF,t)).toJSON();t.rasterIds?.length&&(r.rasterIds=t.rasterIds.join(","));let s=(0,ew.Dl)(e),a=(0,ew.lF)({...s.query,f:"json",...r}),n=(0,ew.jV)(a,i),{data:o}=await (0,M.A)(`${s.path}/imageToMapMultiray`,n);return(0,eg.rS)(o)}async function im(e,t,i){let r=(t=(0,F.PZ)(t$,t)).toJSON(),s=await (0,ef.el)(t.geometry),a=s?.[0];null!=a&&(r.geometry=ir(a)),t.visibleOnly||delete r.options;let n=a?.spatialReference??t.geometry?.spatialReference;n&&(r.inSR=ia(n));let o=(0,ew.Dl)(e),l=(0,ew.lF)({...o.query,f:"json",...r}),u=(0,ew.jV)(l,i),{data:p}=await (0,M.A)(`${o.path}/mapToImage`,u);return(0,eg.rS)(p)}async function ic(e,t,i){let r=(t=(0,F.PZ)(tP,t)).toJSON(),s=(0,ew.Dl)(e),a=(0,ew.lF)({...s.query,f:"json",...r}),n=(0,ew.jV)(a,i),{data:o}=await (0,M.A)(`${s.path}/getImageUrl`,n);return tN.fromJSON(o)}async function id(e,t,i){let r=(t=(0,F.PZ)(e_,t)).toJSON(),s=await (0,ef.el)([t.fromGeometry,t.toGeometry]);null!=s[0]&&(r.fromGeometry=ir(s[0]),s[0].spatialReference&&(r.inSR=ia(s[0].spatialReference))),null!=s[1]&&(r.toGeometry=ir(s[1])),t.objectIds?.length&&(r.objectIds=r.objectIds.join(","));let a=(0,ew.Dl)(e),n=(0,ew.lF)({...a.query,f:"json",...r}),o=(0,ew.jV)(n,i),{data:l}=await (0,M.A)(`${a.path}/find`,o);return eA.fromJSON(l)}var iy=i(2437),ih=i(3663);async function ig(e,t,i){let r=(0,ew.Dl)(e),s=(0,ew.lF)({...r?.query,f:"json"}),a=(0,ew.jV)(s,i),n=`${r?.path}/${t}/info`,o=(0,M.A)(`${n}`,a),l=(0,M.A)(`${n}/keyProperties`,a),u=await Promise.allSettled([o,l]),p="fulfilled"===u[0].status?u[0].value.data:null,m="fulfilled"===u[1].status?u[1].value.data:null,c=null;p.statistics?.length&&(c=p.statistics.map(e=>({min:e[0],max:e[1],avg:e[2],stddev:e[3]})));let d=j.A.fromJSON(p.extent),y=Math.ceil(d.width/p.pixelSizeX-.1),h=Math.ceil(d.height/p.pixelSizeY-.1),g=d.spatialReference,f=new ev.A({x:p.pixelSizeX,y:p.pixelSizeY,spatialReference:g}),w=p.histograms?.length?p.histograms:null,v=new ih.A({origin:p.origin,blockWidth:p.blockWidth,blockHeight:p.blockHeight,firstPyramidLevel:p.firstPyramidLevel,maximumPyramidLevel:p.maxPyramidLevel});return new el.A({width:y,height:h,bandCount:p.bandCount,extent:d,spatialReference:g,pixelSize:f,pixelType:p.pixelType.toLowerCase(),statistics:c,histograms:w,keyProperties:m,storageInfo:v})}var iw=i(97415),iv=i(78970),iR=i(1433),i_=i(44945),ib=i(49367);let iS=new Set(["png","png8","png24","png32","jpg","bmp","gif","jpgpng","lerc","tiff"]),i
1M=(0,F.Qp)(F.GB,{min:0,max:255}),ix=e=>{let t=class extends e{constructor(){super(...arguments),this._functionRasterInfos={},this._rasterJobHandler={instance:null,refCount:0,connectionPromise:null},this._cachedRendererJson=null,this._serviceSupportsMosaicRule=null,this.adjustAspectRatio=null,this.bandIds=void 0,this.capabilities=null,this.compressionQuality=void 0,this.compressionTolerance=.01,this.copyright=null,this.defaultMosaicRule=null,this.definitionExpression=null,this.exportImageServiceParameters=null,this.rasterInfo=null,this.fields=null,this.fullExtent=null,this.hasMultidimensions=!1,this.imageMaxHeight=4100,this.imageMaxWidth=4100,this.interpolation=void 0,this.minScale=0,this.maxScale=0,this.multidimensionalInfo=null,this.multidimensionalSubset=null,this.noData=null,this.noDataInterpretation=void 0,this.objectIdField=null,this.geometryType="polygon",this.typeIdField=null,this.types=[],this.pixelFilter=null,this.raster=void 0,this.sourceType=null,this.viewId=void 0,this.symbolizer=null,this.rasterFunctionInfos=null,this.serviceDataType=null,this.spatialReference=null,this.pixelType=null,this.serviceRasterInfo=null,this.sourceJSON=null,this.url=null,this.version=void 0}initialize(){this._set("exportImageServiceParameters",new et({layer:this}))}readServiceSupportsMosaicRule(e,t){return this._isMosaicRuleSupported(t)}get _rasterFunctionNamesIndex(){let e=new Map;return!this.rasterFunctionInfos||null!=this.rasterFunctionInfos&&this.rasterFunctionInfos.length<1||null!=this.rasterFunctionInfos&&this.rasterFunctionInfos.forEach(t=>{e.set(t.name.toLowerCase().replaceAll(/ /gi,"_"),t.name)}),e}readBandIds(e,t){if(Array.isArray(e)&&e.length>0&&e.every(e=>"number"==typeof e))return e}readCapabilities(e,t){return this._readCapabilities(t)}writeCompressionQuality(e,t,i){null!=e&&"lerc"!==this.format&&(t[i]=e)}writeCompressionTolerance(e,t,i){"lerc"===this.format&&null!=e&&(t[i]=e)}readDefaultMosaicRule(e,t){return this._serviceSupportsMosaicRule?Y.A.fromJSON(t):null}get fieldsIndex(){return this.fields?new er.A(this.fields):null}set format(e){e&&iS.has(e.toLowerCase())&&this._set("format",e.toLowerCase())}readFormat(e,t){return"esriImageServiceDataTypeVector-UV"===t.serviceDataType||"esriImageServiceDataTypeVector-MagDir"===t.serviceDataType||null!=this.pixelFilter?"lerc":"jpgpng"}readMinScale(e,t){return null!=t.minLOD&&null!=t.maxLOD?e:0}readMaxScale(e,t){return null!=t.minLOD&&null!=t.maxLOD?e:0}set mosaicRule(e){let t=e;t?.mosaicMethod&&(t=Y.A.fromJSON({...t.toJSON(),mosaicMethod:t.mosaicMethod,mosaicOperation:t.mosaicOperation})),this._set("mosaicRule",t)}readMosaicRule(e,t){let i=e||t.mosaicRule;return i?Y.A.fromJSON(i):this._isMosaicRuleSupported(t)?Y.A.fromJSON(t):null}writeMosaicRule(e,t,i){let{mosaicRule:r}=this;this._isValidCustomizedMosaicRule(r)&&(t[i]=r.toJSON())}writeNoData(e,t,i){null!=e&&"number"==typeof e&&(t[i]=iM(e))}readObjectIdField(e,t){if(!e){let i=t.fields.find(e=>"esriFieldTypeOID"===e.type||"oid"===e.type);e=i?.name}return e}get parsedUrl(){return(0,I.An)(this.url)}readSourceType(e,t){return this._isMosaicDataset(t)?"mosaic-dataset":"raster-dataset"}get renderer(){let{activePresetRendererName:e,presetRenderers:t}=this;if(e){let i=t?.find(({name:t})=>t===e);return i?.renderer.clone()}return this.internalRenderer}set renderer(e){this.activePresetRendererName=null,this.internalRenderer=e}set internalRenderer(e){this.loaded&&(e=this._configRenderer(e)),this._set("internalRenderer",e)}readRenderer(e,t,i){let r=t?.layerDefinition?.drawingInfo?.renderer,s=(0,eh.LF)(r,i);return null==s?null:("vector-field"===s.type&&t.symbolTileSize&&!r.symbolTileSize&&(s.symbolTileSize=t.symbolTileSize),B(s)||v.A.getLogger(this).warn("ArcGISImageService","Imagery layer doesn't support given renderer type."),s)}writeRenderer(e,t,i){t.layerDefinition=t.layerDefinition||{},t.layerDefinition.drawingInfo=t.layerDefinition.drawingInfo||{},t.layerDefinition.drawingInfo.renderer=e.toJSON(),"vector-field"===e.type&&(t.symbolTileSize=e.symbolTileSize)}get rasterFields(){let e=this.fields?.map(e=>e.clone())??[];e.push((0,eo.rZ)()),"mosaic-dataset"===this.sourceType&&this.fields?.length&&e.push((0,eo.Nd)()),this.version>
1=10.4&&null!=this.rasterFunctionInfos&&this.rasterFunctionInfos.some(({name:e})=>"none"===e.toLowerCase())&&e.push((0,eo.dy)()),null!=this.rasterFunctionInfos&&this.rasterFunctionInfos.filter(({name:e})=>"none"!==e.toLowerCase()).forEach(({name:t})=>e.push((0,eo.nq)(t)));let{rasterInfo:t}=this;if(this._isVectorDataSet()){let i=t?.multidimensionalInfo?.variables[0].unit?.trim(),r=(0,eo.DV)(i),s=(0,eo.y6)();e.push(r,s)}if(t?.multidimensionalInfo&&"raster-dataset"===this.sourceType){let i=(0,eo.AL)(t.multidimensionalInfo);e.push(...i)}let i=t?.attributeTable;if(null!=i){let t=(0,eo.jC)(i);e.push(...t)}return e}set rasterFunction(e){let t=e;t?.rasterFunction&&(t=V.A.fromJSON({...t.toJSON(),rasterFunction:t.rasterFunction,rasterFunctionArguments:t.rasterFunctionArguments})),this._set("rasterFunction",t)}readRasterFunction(e,t){let i=t.rasterFunctionInfos;return t.renderingRule||i?.length&&"None"!==i[0].name?this._isRFTJson(t.renderingRule)?V.A.fromJSON({rasterFunctionDefinition:t.renderingRule}):V.A.fromJSON(t.renderingRule||{rasterFunctionInfos:t.rasterFunctionInfos}):null}readSpatialReference(e,t){let i=e||t.extent.spatialReference;return i?P.A.fromJSON(i):null}writePixelType(e,t,i){null!=this.serviceRasterInfo&&this.pixelType===this.serviceRasterInfo.pixelType||(t[i]=ee.e8.toJSON(e))}readVersion(e,t){let i=t.currentVersion;return i||(i=t.hasOwnProperty("fields")||t.hasOwnProperty("timeInfo")?10:9.3),i}applyFilter(e){let t=e;return this.pixelFilter&&(t=this._clonePixelData(e),this.pixelFilter(t)),t}async applyRenderer(e,t){let i=e,{renderer:r,symbolizer:s,pixelFilter:a,bandIds:n}=this;if(!this._isPicture()&&r&&s&&!a){let a=JSON.stringify(this._cachedRendererJson)!==JSON.stringify(r.toJSON()),o=this._rasterJobHandler.instance;if(o){a&&(s.bind(),await o.updateSymbolizer(s,t),this._cachedRendererJson=r.toJSON());let l=await o.symbolize({bandIds:n,...e},t);i={extent:e.extent,pixelBlock:l}}else i={extent:e.extent,pixelBlock:s.symbolize({bandIds:n,...e})}}return i}destroy(){this._shutdownJobHandler()}increaseRasterJobHandlerUsage(){this._rasterJobHandler.refCount++}decreaseRasterJobHandlerUsage(){this._rasterJobHandler.refCount--,this._rasterJobHandler.refCount<=0&&this._shutdownJobHandler()}async calculateVolume(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsCalculateVolume)throw new h.A("imagery-layer:compute-pixel-space-locations","this operation is not supported on the input image service");return e=(0,x.o8)(e),this.mosaicRule&&null==e.mosaicRule&&(e.mosaicRule=this.mosaicRule),tX(this.url,e,this._getRequestOptions(t))}async computeAngles(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsComputeAngles)throw new h.A("imagery-layer:compute-angles","this operation is not supported on the input image service");return tY(this.url,e,this._getRequestOptions(t))}async computePixelSpaceLocations(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsComputePixelLocation)throw new h.A("imagery-layer:compute-pixel-space-locations","this operation is not supported on the input image service");return t0(this.url,e,this._getRequestOptions(t))}async computeHistograms(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsComputeHistograms)throw new h.A("imagery-layer:compute-histograms","this operation is not supported on the input image service");return e=(0,x.o8)(e),this._applyMosaicAndRenderingRules(e),t8(this.url,e,this._getRequestOptions(t))}async computeStatisticsHistograms(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsComputeStatisticsHistograms)throw new h.A("imagery-layer:compute-statistics-histograms","this operation is not supported on the input image service");return e=(0,x.o8)(e),this._applyMosaicAndRenderingRules(e),t1(this.url,e,this._getRequestOptions(t))}async measureHeight(e,t){let i=await this._fetchCapabilities(t?.signal);if(!("base-and-top"===e.operationType?i.mensuration.supportsHeightFromBaseAndTop:"base-and-top-shadow"===e.operationType?i.mensuration.supportsHeightFromBaseAndTopShadow:i.mensuration.supportsHeightFromTopAndTopShadow))throw new h.A("imagery-layer:measure-height","this operation is not supported on the input image service");return e=(0,x.o8)(e),this._applyMosaicRule(e),t2(this.url,e,this._getRequestOptions(t))}async measureAreaAndPerimeter(e,t){let i=await this._fetchCapabilities(t?.signal);if(!(i.mensuration.supportsAreaAndPerimeter&&(!e.is3D||i.mensuration.supports3D)))throw new h.A("imagery-layer:measure-area-and-perimeter","this operation is not supported on the input image service");return e=(0,x.o8)(e),this._applyMosaicRule(e),t4(this.url,e,this._getRequestOptions(t))}async measureDistanceAndAngle(e,t){let i=await this._fetchCapabilities(t?.signal);if(!(i.mensuration.supportsDistanceAndAngle&&(!e.is3D||i.mensuration.supports3D)))throw new h.A("imagery-layer:measure-distance-and-angle","this operation is not supported on the input image service");return e=(0,x.o8)(e),this._applyMosaicRule(e),t6(this.url,e,this._getRequestOptions(t))}async measurePointOrCentroid(e,t){let i=await this._fetchCapabilities(t?.signal);if(!(i.mensuration.supportsPointOrCentroid&&(!e.is3D||i.mensuration.supports3D)))throw new h.A("imagery-layer:measure-point-or-centroid","this operation is not supported on the input image service");return e=(0,x.o8)(e),this._applyMosaicRule(e),t7(this.url,e,this._getRequestOptions(t))}async measureLengthFromImage(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsMeasureFromImage)throw new h.A("imagery-layer:measure-length-from-image","this operation is not supported on the input image service");if("polyline"!==e.geometry.type)throw new h.A("imagery-layer:measure-length-from-image","this input geometry must be a polyline");return ie(this.url,e,this._getRequestOptions(t))}async measureAreaFromImage(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsMeasureFromImage)throw new h.A("imagery-layer:measure-area-from-image","this operation is not supported on the input image service");if("polygon"!==e.geometry.type)throw new h.A("imagery-layer:measure-area-from-image","this input geometry must be a polygon");return it(this.url,e,this._getRequestOptions(t))}getField(e){let{fieldsIndex:t}=this;return null!=t?t.get(e):void 0}getFieldDomain(e,t){let i=this.getField(e);return i?i.domain:null}async fetchImage(e,t,r,s={}){if(null==e||null==t||null==r)throw new h.A("imagery-layer:fetch-image","Insufficient parameters for requesting an image. A valid extent, width and height values are required.");
1if(this.renderer||this.symbolizer){let e=await this._generateRasterInfo(this.rasterFunction,{signal:s.signal});e&&(this.rasterInfo=e)}let a=this.getExportImageServiceParameters(e,t,r,s.timeExtent);if(null==a){if(s.requestAsImageElement&&this._canRequestImageElement(this.format)){let e=document.createElement("canvas");return(e.width=t,e.height=r,s.returnImageBitmap)?{imageBitmap:await (0,es.m)(e,`${i(this.parsedUrl)}/exportImage`,s.signal)}:{imageOrCanvasElement:e}}let{bandIds:a,rasterInfo:n}=this,o=(a?.length||n.bandCount)??0,l=t*r,u=n.pixelType,p=[];for(let e=0;e<o;e++)p.push(en.A.createEmptyBand(u,l));return{pixelData:{pixelBlock:new en.A({width:t,height:r,pixels:p,mask:new Uint8Array(l),pixelType:u}),extent:e}}}let n=!!s.requestAsImageElement&&!this.pixelFilter,o=n&&!!s.returnImageBitmap,l={imageServiceParameters:a,imageProps:{extent:e,width:t,height:r,format:this.format},requestAsImageElement:n,returnImageBitmap:o,signal:s.signal};return this._requestArrayBuffer(l)}fetchKeyProperties(e){return(0,M.A)(i(this.parsedUrl)+"/keyProperties",{query:this._getQueryParams({renderingRule:this.version>=10.3?e?.rasterFunction:null})}).then(e=>e.data)}fetchRasterAttributeTable(e){return this.version<10.1?Promise.reject(new h.A("#fetchRasterAttributeTable()","Failed to get rasterAttributeTable")):(0,M.A)(i(this.parsedUrl)+"/rasterAttributeTable",{query:this._getQueryParams({renderingRule:this.version>=10.3?e?.rasterFunction:null})}).then(e=>tu.A.fromJSON(e.data))}getCatalogItemRasterInfo(e,t){let r={...t,query:this._getQueryParams()};return ig(i(this.parsedUrl),e,r)}async getCatalogItemICSInfo(e,t){let{data:r}=await (0,M.A)(i(this.parsedUrl)+"/"+e+"/info/ics",{query:this._getQueryParams(),...t}),s=r?.ics;if(!s)return;let a=null;try{a=(await (0,M.A)(i(this.parsedUrl)+"/"+e+"/info",{query:this._getQueryParams(),...t})).data.extent}catch{}if(!a?.spatialReference)return{ics:s,icsToPixelTransform:null,icsExtent:null,northDirection:null};let n=this.version>=10.7?(0,M.A)(i(this.parsedUrl)+"/"+e+"/info/icstopixel",{query:this._getQueryParams(),...t}).then(e=>e.data).catch(()=>({})):{},o=a.spatialReference,l={geometries:JSON.stringify({geometryType:"esriGeometryEnvelope",geometries:[a]}),inSR:(0,Z.YX)(o),outSR:"0:"+e},u=(0,M.A)(i(this.parsedUrl)+"/project",{query:this._getQueryParams(l),...t}).then(e=>e.data).catch(()=>({})),p=(a.xmin+a.xmax)/2,m=(a.ymax-a.ymin)/6,c=a.ymin+m,d=[];for(let e=0;e<5;e++)d.push({x:p,y:c+m*e});let y={geometries:JSON.stringify({geometryType:"esriGeometryPoint",geometries:d}),inSR:(0,Z.YX)(o),outSR:"0:"+e},h=(0,M.A)(i(this.parsedUrl)+"/project",{query:this._getQueryParams(y),...t}).then(e=>e.data).catch(()=>({})),g=await Promise.all([n,u,h]),f=g[0].ipxf;if(null==f){let e=s.geodataXform?.xf_0;"topup"===e?.name?.toLowerCase()&&6===e?.coefficients?.length&&(f={affine:{name:"ics [sensor: Frame] to pixel (column, row) transformation",coefficients:e.coefficients,cellsizeRatio:0,type:"GeometricXform"}})}let w=j.A.fromJSON(g[1]?.geometries?.[0]);w&&(w.spatialReference=new P.A({wkid:0,imageCoordinateSystem:s}));let v=g[2].geometries?g[2].geometries.filter(e=>null!=e?.x&&null!=e.y&&"NaN"!==e.x&&"NaN"!==e.y):[],R=v.length;if(R<3)return{ics:s,icsToPixelTransform:f,icsExtent:w,northDirection:null};let _=0,b=0,S=0,x=0;for(let e=0;e<R;e++)_+=v[e].x,b+=v[e].y,S+=v[e].x*v[e].x,x+=v[e].x*v[e].y;let A=(R*x-_*b)/(R*S-_*_),I=0,F=v[4].x>v[0].x,D=v[4].y>v[0].y;return A===1/0?I=D?90:270:0===A?I=180*!F:A>0?I=F?180*Math.atan(A)/Math.PI:180*Math.atan(A)/Math.PI+180:A<0&&(I=D?180+180*Math.atan(A)/Math.PI:360+180*Math.atan(A)/Math.PI),{ics:s,icsToPixelTransform:f,icsExtent:w,northDirection:I}}async generateRasterInfo(e,t){e=(0,F.PZ)(V.A,e);let r={...t,query:this._getQueryParams()};if(!e||"none"===e.functionName?.toLowerCase()||this._isVectorFieldResampleFunction(e))return this.serviceRasterInfo??(0,iy.Tw)(i(this.parsedUrl),this.sourceJSON,r);let s=function(e){let t=JSON.stringify(e),i=t.includes('"rasterFunctionDefinition":{'),r=i?t.match(/"type":"(.*?FunctionArguments")/gi):t.match(/"rasterFunction":"(.*?")/gi),s=r?.map(e=>i?e.slice(8,-18):e.slice(18,-1));return s?s.join("/"):null}(e);if(!s)throw new h.A("imagery-layer:generate-raster-info","the rendering rule is not supported");if(this._functionRasterInfos[s])return this._functionRasterInfos[s];let a=(0,iy.X6)(i(this.parsedUrl),e,r);this._functionRasterInfos[s]=a;try{return await a}catch(e){throw this._functionRasterInfos[s]=null,e}}getExportImageServiceParameters(e,t,r,s){let a=ia((e=e.clone().shiftCentralMeridian()).spatialReference,i(this.parsedUrl)),n=this.exportImageServiceParameters.toJSON(),{bandIds:o,noData:l}=n,{renderingRule:u}
1=n,p=this.rasterFunction?.rasterFunctionDefinition,m=this.renderer?.type,c=!m||"raster-stretch"===m||"raster-colormap"===m||"unique-value"===m||"class-breaks"===m||"raster-shaded-relief"===m;if(o?.length&&this._hasRasterFunction(this.rasterFunction)&&!p&&c){let e={rasterFunction:"ExtractBand",rasterFunctionArguments:{BandIds:o}};if("Stretch"===u.rasterFunction)e.rasterFunctionArguments.Raster=u.rasterFunctionArguments.Raster,u.rasterFunctionArguments.Raster=e;else if("Colormap"===u.rasterFunction){let t=u.rasterFunctionArguments.Raster;"Stretch"===t?.rasterFunction?(e.rasterFunctionArguments.Raster=t.rasterFunctionArguments.Raster,t.rasterFunctionArguments.Raster=e):(e.rasterFunctionArguments.Raster=t,u.rasterFunctionArguments.Raster=e)}else e.rasterFunctionArguments.Raster=u,u=e;n.bandIds=void 0}else n.bandIds=o?.join(",");Array.isArray(l)&&l.length>0&&(n.noData=l.join(","));let d=this._processMultidimensionalIntersection(null,s,this.exportImageServiceParameters.mosaicRule);if(d.isOutSide)return null;n.mosaicRule=null!=d.mosaicRule?JSON.stringify(d.mosaicRule):null,s=d.timeExtent,n.renderingRule=this._getRenderingRuleString(V.A.fromJSON(u));let y={};if(null!=s){let{start:e,end:t}=s.toJSON();e&&t&&e===t?y.time=""+e:null==e&&null==t||(y.time=`${e??"null"},${t??"null"}`)}return{bbox:e.xmin+","+e.ymin+","+e.xmax+","+e.ymax,bboxSR:a,imageSR:a,size:t+","+r,...n,...y}}async getSamples(e,t){let i=await this._fetchCapabilities(t?.signal);if(!i?.operations.supportsGetSamples)throw new h.A("imagery-layer:get-samples","getSamples operation is not supported on the input image service");e=(0,x.o8)(e);let{raster:r}=this;return r&&null==e.raster&&(e.raster=r),t3(this.url,e,this._getRequestOptions(t))}async identify(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsIdentify)throw new h.A("imagery-layer:identify","identify operation is not supported on the input image service");e=(0,x.o8)(e),this.version<10.91&&"extent"===e.geometry?.type&&(e.geometry=T.A.fromExtent(e.geometry));let i=this._processMultidimensionalIntersection(e.geometry,e.timeExtent,e.mosaicRule||this.mosaicRule);if(i.isOutSide)throw new h.A("imagery-layer:identify","the request cannot be fulfilled when falling outside of the multidimensional subset");e.timeExtent=i.timeExtent,e.mosaicRule=i.mosaicRule;let{raster:r,rasterFunction:s}=this;return s&&null==e.rasterFunction&&(e.rasterFunction=s),r&&null==e.raster&&(e.raster=r),t9(this.url,e,this._getRequestOptions(t))}async imageToMap(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsImageToMap)throw new h.A("imagery-layer:image-to-map","imageToMap operation is not supported on the input image service");return iu(i(this.parsedUrl),e,this._getRequestOptions(t))}async imageToMapMultiray(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsImageToMapMultiray)throw new h.A("imagery-layer:image-to-map-multiray","imageToMapMultiray operation is not supported on the input image service");return ip(i(this.parsedUrl),e,this._getRequestOptions(t))}async mapToImage(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsMapToImage)throw new h.A("imagery-layer:map-to-image","mapToImage operation is not supported on the input image service");return im(i(this.parsedUrl),e,this._getRequestOptions(t))}async findImages(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsFindImages)throw new h.A("imagery-layer:find-images","findImages operation is not supported on the input image service");return id(i(this.parsedUrl),e,this._getRequestOptions(t))}async getImageUrl(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsGetImageUrl)throw new h.A("imagery-layer:get-image-url","getImageUrl operation is not supported on the input image service");return ic(i(this.parsedUrl),e,this._getRequestOptions(t))}createQuery(){return new i_.A({outFields:["*"],returnGeometry:!0,where:this.definitionExpression||"1=1"})}async queryBoundary(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsQueryBoundary)throw new h.A("imagery-layer:query-boundary","queryBoundary operation is not supported on the input image service");return e=e??{outSpatialReference:this.spatialReference},io(i(this.parsedUrl),e,this._getRequestOptions(t))}async queryRasters(e,t){return{query:e,requestOptions:t}=await this._prepareForQuery(e,t),(0,iR.s)(this.url,e,t)}async queryObjectIds(e,t){return{query:e,requestOptions:t}=await this._prepareForQuery(e,t),(0,iv.V)(this.url,e,t)}async queryGPSInfo(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsQueryGPSInfo)throw new h.A("imagery-layer:query-gps-info","queryGPSInfo operation is not supported on the input image service");return e=e??{where:"1=1"},il(i(this.parsedUrl),e,this._getRequestOptions(t))}async queryRasterCount(e,t){return{query:e,requestOptions:t}=await this._prepareForQuery(e,t),(0,iw.I)(this.url,e,t)}async queryVisibleRasters(e,t){if(!e)throw new h.A("imagery-layer: query-visible-rasters","missing query parameter");await this.load();let{pixelSize:i,returnDomainValues:r,returnTopmostRaster:s,showNoDataRecords:a}=t||{pixelSize:null,returnDomainValues:!1,returnTopmostRaster:!1,showNoDataRecords:!1},n=!1,o=null,l=null,u=eo.F_.servicePixelValue.toLowerCase(),p=this._rasterFu
1nctionNamesIndex;if(null!=e.outFields&&(n=e.outFields.some(e=>!e.toLowerCase().startsWith(u)),this.version>=10.4)){let t=e.outFields.filter(e=>e.toLowerCase().startsWith(u)&&e.length>u.length).map(e=>{let t=e.slice(u.length+1);return[this._updateRenderingRulesFunctionName(t,p),t]});o=t.map(e=>new V.A({functionName:e[0]})),l=t.map(e=>e[1]);let{rasterFunction:i}=this;0===o.length?i?.functionName?(o.push(i),l.push(i.functionName)):o=null:i?.functionName&&!o.some(e=>e.functionName===i.functionName)&&(o.push(i),l.push(i.functionName))}let m=null==e.outSpatialReference||e.outSpatialReference.equals(this.spatialReference),{multidimensionalSubset:c}=this,d=e.timeExtent||this.timeExtent;if(c){let{isOutside:t,intersection:i}=(0,ep.Rp)(c,{geometry:e.geometry,timeExtent:e.timeExtent,multidimensionalDefinition:this.exportImageServiceParameters.mosaicRule?.multidimensionalDefinition});if(t)throw new h.A("imagery-layer:query-visible-rasters","the request cannot be fulfilled when falling outside of the multidimensional subset");null!=i?.timeExtent&&(d=i.timeExtent)}let y=this._combineMosaicRuleWithTimeExtent(this.exportImageServiceParameters.mosaicRule,d),g=e.geometry;this.version<10.91&&"extent"===g?.type&&(g=T.A.fromExtent(g));let f=this._getQueryParams({geometry:g,timeExtent:d,mosaicRule:y,rasterFunction:this.version<10.4?this.rasterFunction:null,rasterFunctions:o,pixelSize:i,returnCatalogItems:n,returnGeometry:m,raster:this.raster,maxItemCount:s?1:null});delete f.f;let w=new tl(f);try{await this._generateRasterInfo(this.rasterFunction);let i=await t9(this.url,w,{signal:t?.signal,query:{...this.customParameters}}),s=e.outFields,o=null!=i.value&&i.value.toLowerCase().includes("nodata"),u=n&&!m&&i?.catalogItems?.features.length&&(a||!o),p=this.multidimensionalInfo&&"raster-dataset"===this.sourceType?(0,ep.XU)({rasterInfo:this.rasterInfo,multidimensionalDefinition:y?.multidimensionalDefinition,timeExtent:d,multidimensionalSubset:this.multidimensionalSubset}):null;if(!u)return this._processVisibleRastersResponse(i,{returnDomainValues:r,templateRRFunctionNames:l,showNoDataRecords:a,templateFields:s,effectiveMultidimensionalDefinition:p});let c=this.objectIdField||"ObjectId",h=i.catalogItems?.features??[],g=h.map(e=>e.attributes?.[c]),f=new i_.A({objectIds:g,returnGeometry:!0,outSpatialReference:e.outSpatialReference,outFields:[c]}),v=await this.queryRasters(f);return v?.features?.length&&v.features.forEach(t=>{h.forEach(i=>{i.attributes[c]===t.attributes[c]&&t.geometry&&(i.geometry=t.geometry.clone(),null!=e.outSpatialReference&&(i.geometry.spatialReference=e.outSpatialReference))})}),this._processVisibleRastersResponse(i,{returnDomainValues:r,templateRRFunctionNames:l,showNoDataRecords:a,templateFields:s,effectiveMultidimensionalDefinition:p})}catch{throw new h.A("imagery-layer:query-visible-rasters","encountered error when querying visible rasters")}}async fetchVariableStatisticsHistograms(e,t){let r=(0,M.A)(i(this.parsedUrl)+"/statistics",{query:this._getQueryParams({variable:e}),signal:t}).then(e=>e.data?.statistics),s=(0,M.A)(i(this.parsedUrl)+"/histograms",{query:this._getQueryParams({variable:e}),signal:t}).then(e=>e.data?.histograms),a=await Promise.all([r,s]);return a[0]&&a[0].forEach(e=>{e.avg=e.mean,e.stddev=e.standardDeviation}),{statistics:a[0]||null,histograms:a[1]||null}}async createFlowMesh(e,t){let i=this._rasterJobHandler.instance;return i?i.createFlowMesh(e,t):(0,ib.CW)(e.meshType,e.simulationSettings,e.flowData,null!=t.signal?t.signal:(new AbortController).signal)}getMultidimensionalSubsetVariables(e){let t=e??this.serviceRasterInfo.multidimensionalInfo;return(0,ep.z2)(this.multidimensionalSubset,t)}async _fetchService(e){await this._fetchServiceInfo(e),this.rasterInfo||(this.rasterInfo=this.serviceRasterInfo);let t=this.sourceJSON,r=null!=this.serviceRasterInfo?Promise.resolve(this.serviceRasterInfo):(0,iy.Tw)(i(this.parsedUrl),t,{signal:e,query:this._getQueryParams()}).then(e=>(this._set("serviceRasterInfo",e),this._set("multidimensionalInfo",e.multidimensionalInfo),(0,iy.E9)(e,t),e));
1return Promise.all([r,this._hasRasterFunction(this.rasterFunction)?this._generateRasterInfo(this.rasterFunction,{signal:e}):null,this._getRasterFunctionInfos()]).then(e=>{e[1]?this._set("rasterInfo",e[1]):this._set("rasterInfo",e[0]),e[2]&&this._set("rasterFunctionInfos",e[2]),this.internalRenderer&&!this._isSupportedRenderer(this.internalRenderer)&&(this._set("internalRenderer",null),v.A.getLogger(this).warn("ArcGISImageService","Switching to the default renderer. Renderer applied is not valid for this Imagery Layer")),this._set("internalRenderer",this._configRenderer(this.renderer)),this.addHandles([(0,A.wB)(()=>this.rasterFunction,e=>{(this.renderer||this.symbolizer||this.popupEnabled&&this.popupTemplate)&&this._generateRasterInfo(e).then(e=>{e&&(this.rasterInfo=e)})})]);let{serviceRasterInfo:t}=this;null!=t.multidimensionalInfo&&this._updateMultidimensionalDefinition(t)})}_combineMosaicRuleWithTimeExtent(e,t){let i=this.timeInfo,{multidimensionalInfo:r}=this.serviceRasterInfo;if(null==e||null==r||null==t||null==i?.startField)return e;let{startField:s}=i,a=r.variables.some(e=>e.dimensions.some(e=>e.name===s))?s:"StdTime";if(e=e.clone(),"mosaic-dataset"===this.sourceType)return e.multidimensionalDefinition=e.multidimensionalDefinition?.filter(e=>e.dimensionName!==a),this._cleanupMultidimensionalDefinition(e);e.multidimensionalDefinition=e.multidimensionalDefinition||[];let n=e.multidimensionalDefinition.filter(e=>e.dimensionName===a),o=null!=t.start?t.start.getTime():null,l=null!=t.end?t.end.getTime():null,u=null==o||null==l||o===l,p=u?[o||l]:[[o,l]],m=this.version>=10.8;if(n.length)n.forEach(e=>{e.dimensionName===a&&(m?(e.dimensionName=null,e.isSlice=!1,e.values=[]):(e.isSlice=u,e.values=p))});else if(!m){let t=e.multidimensionalDefinition.filter(e=>null!=e.variableName&&null==e.dimensionName);t.length?t.forEach(e=>{e.dimensionName=a,e.isSlice=u,e.values=p}):e.multidimensionalDefinition.push(new C.A({variableName:"",dimensionName:a,isSlice:u,values:p}))}return this._cleanupMultidimensionalDefinition(e)}_cleanupMultidimensionalDefinition(e){return null==e?null:(e.multidimensionalDefinition&&(e.multidimensionalDefinition=e.multidimensionalDefinition.filter(e=>!(!e.variableName&&!e.dimensionName)),0===e.multidimensionalDefinition.length&&(e.multidimensionalDefinition=null)),"mosaic-dataset"!==this.sourceType&&null==e.multidimensionalDefinition?null:e)}async _prepareForQuery(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsQuery)throw new h.A("imagery-layer:query-rasters","query operation is not supported on the input image service");return e=null!=e?(0,F.PZ)(i_.A,e):this.createQuery(),t=this._getRequestOptions(t),this.raster&&(t.query={...t.query,raster:this.raster}),{query:e,requestOptions:t}}async _initJobHandler(){if(null!=this._rasterJobHandler.connectionPromise)return this._rasterJobHandler.connectionPromise;let e=new eu.A;this._rasterJobHandler.connectionPromise=e.initialize().then(()=>{this._rasterJobHandler.instance=e},()=>{}),await this._rasterJobHandler.connectionPromise}_shutdownJobHandler(){this._rasterJobHandler.instance&&this._rasterJobHandler.instance.destroy(),this._rasterJobHandler.instance=null,this._rasterJobHandler.connectionPromise=null,this._rasterJobHandler.refCount=0,this._cachedRendererJson=null}_isSupportedRenderer(e){let{rasterInfo:t,rasterFunction:i}=this;return"unique-value"===e.type&&this._hasRasterFunction(i)&&1===t?.bandCount&&["u8","s8"].includes(t.pixelType)||null!=t&&null!=e&&(0,ed.fp)(t).includes(e.type)}async _fetchCapabilities(e){return this.capabilities||await this._fetchServiceInfo(e),this.capabilities}async _fetchServiceInfo(e){let t=this.sourceJSON;if(!t){let{data:r,ssl:s}=await (0,M.A)(i(this.parsedUrl),{query:this._getQueryParams(),signal:e});t=r,this.sourceJSON=t,s&&(this.url=this.url.replace(/^http:/i,"https:"))}if(t.capabilities?.toLowerCase().split(",").map(e=>e.trim()).indexOf("tilesonly")>-1)throw new h.A("imagery-layer:fetch-service-info","use ImageryTileLayer to open tiles-only image services");this.read(t,{origin:"service",url:this.parsedUrl})}_isMosaicDataset(e){return e.serviceSourceType?"esriImageServiceSourceTypeMosaicDataset"===e.serviceSourceType:e.fields?.length>0}_isMosaicRuleSupported(e){if(!e)return!1;let t=this._isMosaicDataset(e),i=e.currentVersion>=10.71&&e.hasMultidimensions&&!(e.fields?.length>1);return t||i}_isVectorFieldResampleFunction(e){if(null==e)return!1;let{functionName:t,functionArguments:i}=e,r="resample"===t?.toLowerCase(),s=i?.ResampleType||i?.resampleType;return r&&(7===s||10===s)}_isPicture(){return!this.format||this.format.includes("jpg")||this.format.includes("png")}_configRenderer(e){let t=this._isPicture(),{rasterInfo:i}=this;if(!t&&!this.pixelFilter||this._isVectorDataSet()){let t=this.mosaicRule?.multidimensionalDefinition?.[0].variableName,r=(0,ed.I8)({variableName:t,rasterFu
1nctionName:this.rasterFunction?.functionName,presetRenderers:this.presetRenderers});if(!this.bandIds&&i.bandCount>=3){let e=r?.bandIds??(0,ed.ci)(i);e&&(3!==i.bandCount||0!==e[0]||1!==e[1]||2!==e[2])&&(this.bandIds=e)}e||(e=r?.renderer??(0,ed.PD)(i,{bandIds:this.bandIds,variableName:this.rasterFunction?null:t}));let s=(0,ed.$P)(e.toJSON());this.symbolizer?(this.symbolizer.rendererJSON=s,this.symbolizer.rasterInfo=i):this.symbolizer=new ey.A({rendererJSON:s,rasterInfo:i}),this.symbolizer.bind().success||(this.symbolizer=null)}return e}_clonePixelData(e){return null==e?e:{extent:e.extent&&e.extent.clone(),pixelBlock:null!=e.pixelBlock?e.pixelBlock.clone():null}}_getQueryParams(e){null!=e?.renderingRule&&"string"!=typeof e.renderingRule&&(e.renderingRule=this._getRenderingRuleString(e.renderingRule));let{raster:t,viewId:i}=this;return{raster:t,viewId:i,f:"json",...e,...this.customParameters}}_getRequestOptions(e){return{...e,query:{...e?.query,...this.customParameters}}}_decodePixelBlock(e,t,i){return this._rasterJobHandler.instance?this._rasterJobHandler.instance.decode({data:e,options:t}):(0,em.D)(e,t,i)}
1async _getRasterFunctionInfos(e){let t=this.sourceJSON.rasterFunctionInfos;if(this.loaded)return t;if(t&&this.version>=10.3){if(1===t.length&&"none"===t[0].name.toLowerCase())return t;let r=await (0,M.A)(i(this.parsedUrl)+"/rasterFunctionInfos",{query:this._getQueryParams(),signal:e});return r.data?.rasterFunctionInfos}return null}_canRequestImageElement(e){return!this.pixelFilter&&(!e||e.includes("png"))}async _requestArrayBuffer(e){let{imageProps:t,requestAsImageElement:r,returnImageBitmap:s,signal:a}=e;if(r&&this._canRequestImageElement(t.format)){let r=`${i(this.parsedUrl)}/exportImage`,{data:n}=await (0,M.A)(r,{responseType:s?"blob":"image",query:this._getQueryParams({f:"image",...this.refreshParameters,...e.imageServiceParameters}),signal:a});return n instanceof Blob?{imageBitmap:await (0,es.m)(n,r,a),params:t}:{imageOrCanvasElement:n,params:t}}let n=this._initJobHandler(),o=(0,M.A)(i(this.parsedUrl)+"/exportImage",{responseType:"array-buffer",query:this._getQueryParams({f:"image",...e.imageServiceParameters}),signal:a}),l=(await Promise.all([o,n]))[0].data,u=t.format||"jpgpng",p=u;if("bsq"!==p&&"bip"!==p&&(p=(0,em.g)(l)),!p)throw new h.A("imagery-layer:fetch-image","unsupported format signature "+String.fromCharCode.apply(null,new Uint8Array(l)));let m={signal:a},c="gif"===u||"bmp"===u||u.includes("png")&&("png"===p||"jpg"===p)?(0,em.D)(l,{useCanvas:!0,...t},m):this._decodePixelBlock(l,{width:t.width,height:t.height,planes:null,pixelType:null,noDataValue:null,format:u},m);return{pixelData:{pixelBlock:await c,extent:t.extent},params:t}}_generateRasterInfo(e,t){return this.generateRasterInfo(e,t).catch(()=>null)}_isValidCustomizedMosaicRule(e){return e&&JSON.stringify(e.toJSON())!==JSON.stringify(this.defaultMosaicRule?.toJSON())}_updateMultidimensionalDefinition(e){if(this._isValidCustomizedMosaicRule(this.mosaicRule))return;let t=(0,ep.fy)(e,{multidimensionalSubset:this.multidimensionalSubset});if(null!=t&&t.length>0){this.mosaicRule=this.mosaicRule||new Y.A;let e=this.mosaicRule.multidimensionalDefinition;!this.sourceJSON.defaultVariableName&&this.rasterFunction&&"none"!==this.rasterFunction.functionName?.toLowerCase()&&t.forEach(e=>e.variableName=""),t=t.filter(({variableName:e,dimensionName:t})=>e&&"*"!==e||t),!e?.length&&t.length&&(this.mosaicRule.multidimensionalDefinition=t)}}_processVisibleRastersResponse(e,t){t=t||{};let i=e.value,{templateRRFunctionNames:r,showNoDataRecords:s,returnDomainValues:a,templateFields:n}=t,o=e.processedValues,l=e.catalogItems?.features,u=e.properties?.Values?.map(e=>e.replaceAll(/ /gi,", "))||[],p=this.objectIdField||"ObjectId",m="string"==typeof i&&i.toLowerCase().includes("nodata"),c=[];if(i&&!l&&!m){let e={};e[p]=0,u=[i],l=[new S.A({geometry:this.fullExtent,attributes:e})],this.multidimensionalInfo&&"raster-dataset"===this.sourceType&&(0,eo.eS)(this.rasterFields,e,t.effectiveMultidimensionalDefinition)}if(!l)return[];this._updateResponseFieldNames(l,n),m&&!s&&(l=[]);let{itemPixelValue:d,servicePixelValue:y}=eo.F_,h=this.rasterFields.some(e=>e.name===d);for(let e=0;e<l.length;e++){let t=l[e];if(null!=i){let a=u[e],n=this.rasterFunction&&o&&o.length>0&&r&&r.length>0&&r.includes(this.rasterFunction.functionName)?o[r.indexOf(this.rasterFunction.functionName)]:i;if("nodata"===a.toLowerCase()&&!s)continue;h&&(t.attributes[d]=a),t.attributes[y]=n,this._updateFeatureWithMagDirValues(t,a);let l=this.fields&&this.fields.length>0,p=this.rasterFunction&&null!=this.serviceRasterInfo.attributeTable?l?a:i:n;this.rasterFunction||(p=l?a:i),this._updateFeatureWithRasterAttributeTableValues(t,p)}if(t.sourceLayer=t.layer=this,a&&this._updateFeatureWithDomainValues(t),r&&o&&r.length===o.length)for(let e=0;e<r.length;e++){let i=`${eo.F_.servicePixelValue}.${r[e]}`;t.attributes[i]=o[e]}c.push(l[e])}return c}_processMultidimensionalIntersection(e,t,i){let{multidimensionalSubset:r}=this;if(!r)return{isOutSide:!1,timeExtent:t,mosaicRule:i=this._combineMosaicRuleWithTimeExtent(i,t)};if(r){let{isOutside:i,intersection:s}=(0,ep.Rp)(r,{geometry:e,timeExtent:t});if(i)return{isOutSide:!0,timeExtent:null,mosaicRule:null};null!=s?.timeExtent&&(t=s.timeExtent)}if(i=this._combineMosaicRuleWithTimeExtent(i,t),i?.multidimensionalDefinition){let{isOutside:e}=(0,ep.Rp)(r,{multidimensionalDefinition:i.multidimensionalDefinition});if(e)return{isOutSide:!0,timeExtent:null,mosaicRule:null}}return{isOutSide:!1,timeExtent:t,mosaicRule:i}}_updateFeatureWithRasterAttributeTableValues(e,t){let i=this.rasterInfo.attributeTable||this.serviceRasterInfo.attributeTable;if(null==i)return;let{features:r,fields:s}=i,a=s.map(e=>e.name).find(e=>"value"===e.toLowerCase());if(!a)return;let n=r.filter(e=>e.attributes[a]===(null!=t?parseInt(t,10):null));
1n&&n[0]&&s.forEach(t=>{let i=eo.ER+t.name;e.attributes[i]=n[0].attributes[t.name]})}_updateFeatureWithMagDirValues(e,t){if(!this._isVectorDataSet())return;let i=t.split(/,\s*/).map(e=>parseFloat(e)),r=i.map(e=>[e]),s=i.map(e=>({minValue:e,maxValue:e,noDataValue:null})),a=new en.A({height:1,width:1,pixelType:"f32",pixels:r,statistics:s});null!=this.pixelFilter&&this.pixelFilter({pixelBlock:a,extent:new j.A(0,0,0,0,this.spatialReference)});let n="esriImageServiceDataTypeVector-MagDir"===this.serviceDataType?[a.pixels[0][0],a.pixels[1][0]]:(0,ec.Lu)([a.pixels[0][0],a.pixels[1][0]]);e.attributes[eo.F_.magnitude]=n[0],e.attributes[eo.F_.direction]=n[1]}_updateFeatureWithDomainValues(e){let t=this.fields&&this.fields.filter(e=>e.domain&&"coded-value"===e.domain.type);null!=t&&t.forEach(t=>{let i=e.attributes[t.name];if(null!=i){let r=t.domain.codedValues.find(e=>e.code===i);r&&(e.attributes[t.name]=r.name)}})}_updateResponseFieldNames(e,t){if(!t||t.length<1)return;let i=this.fieldsIndex;null!=i&&e.forEach(e=>{if(e?.attributes)for(let r of t){let t=i.get(r)?.name;t&&t!==r&&(e.attributes[r]=e.attributes[t],delete e.attributes[t])}})}_getRenderingRuleString(e){if(e){let t=e.toJSON();return((t=t.rasterFunctionDefinition??t).thumbnail||t.thumbnailEx)&&(t.thumbnail=t.thumbnailEx=null),JSON.stringify(t)}return null}_hasRasterFunction(e){return null!=e?.functionName&&"none"!==e.functionName.toLowerCase()}_updateRenderingRulesFunctionName(e,t){if(!e||e.length<1)return;if("Raw"===e)return e.replace("Raw","None");let i=e.toLowerCase().replaceAll(/ /gi,"_");return t.has(i)?t.get(i):e}_isRFTJson(e){return e?.name&&e.arguments&&e.function&&e.hasOwnProperty("functionType")}_isVectorDataSet(){return"esriImageServiceDataTypeVector-UV"===this.serviceDataType||"esriImageServiceDataTypeVector-MagDir"===this.serviceDataType}_applyMosaicAndRenderingRules(e){let{raster:t,mosaicRule:i,rasterFunction:r}=this;r&&null==e.rasterFunction&&(e.rasterFunction=r),i&&null==e.mosaicRule&&(e.mosaicRule=i),t&&null==e.raster&&(e.raster=t)}_applyMosaicRule(e){let{raster:t,mosaicRule:i}=this;i&&null==e.mosaicRule&&(e.mosaicRule=i),t&&null==e.raster&&(e.raster=t)}_readCapabilities(e){let t=e.capabilities?e.capabilities.toLowerCase().split(",").map(e=>e.trim()):["image","catalog"],{currentVersion:i,advancedQueryCapabilities:r,maxRecordCount:s}=e,a=t.includes("image"),n="esriImageServiceDataTypeElevation"===e.serviceDataType,o=!(!e.spatialReference&&!e.extent?.spatialReference),l=t.includes("edit"),u=t.includes("mensuration")&&o,p=null==e.mensurationCapabilities?[]:e.mensurationCapabilities.toLowerCase().split(",").map(e=>e.trim()),m=u&&p.includes("basic"),c=this._isMosaicDataset(e)&&t.includes("catalog"),d=t.includes("download"),y=i>=10.7&&n||i>=11.4&&(n||u&&p.includes("3d"));return{data:{supportsAttachment:!1},operations:{supportsComputeHistograms:a,supportsExportImage:a,supportsIdentify:a,supportsImageToMap:i>=11.2&&c,supportsImageToMapMultiray:i>=11.2&&c,supportsMapToImage:i>=11.2&&c,supportsFindImages:i>=11.2&&c,supportsGetImageUrl:i>=11.3&&d,supportsMeasure:u,supportsMeasureFromImage:i>=11.2,supportsDownload:d,supportsQuery:c&&e.fields&&e.fields.length>0,supportsGetSamples:i>=10.2&&a,supportsProject:i>=10.3&&a,supportsComputeStatisticsHistograms:i>=10.4&&a,supportsQueryBoundary:i>=10.6&&a,supportsCalculateVolume:y,supportsComputePixelLocation:i>=10.7&&c,supportsComputeAngles:i>=10.91,supportsQueryGPSInfo:i>=11.2&&c,supportsAdd:l,supportsDelete:l,supportsEditing:l,supportsUpdate:l,supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsChangeTracking:!1,supportsQueryAttachments:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsExceedsLimitStatistics:!1,supportsQueryAnalytics:!1,supportsQueryBins:!1,supportsQueryTopFeatures:!1,supportsAsyncConvert3D:!1},query:{maxRecordCount:s,maxRecordCountFactor:void 0,supportsStatistics:!!r?.supportsStatistics,supportsOrderBy:!!r?.supportsOrderBy,supportsDistinct:!!r?.supportsDistinct,supportsPagination:!!r?.supportsPagination,supportsStandardizedQueriesOnly:!!r?.useStandardizedQueries,supportsPercentileStatistics:!!r?.supportsPercentileStatistics,supportsCentroid:!!r?.supportsReturningGeometryCentroid,supportsCurrentUser:!1,supportsDistance:!!r?.supportsQueryWithDistance,supportsExtent:!!r?.supportsReturningQueryExtent,supportsGeometryProperties:!!r?.supportsReturningGeometryProperties,supportsHavingClause:!!r?.supportsHavingClause,supportsQuantization:!1,supportsQuantizationEditMode:!1,supportsQueryGeometry:!1,supportsResultType:!1,supportsReturnMesh:!1,supportsMaxRecordCountFactor:!1,supportsSqlExpression:!1,supportsTopFeaturesQuery:!1,supportsQueryByAnonymous:!1,supportsQueryByOthers:!1,supportsHistoricMoment:!1,supportsFormatPBF:!1,supportsDisjointSpatialRelationship:!1,supportsCacheHint:!1,supportsSpatialAggregationStatistics:!1,supportedSpatialAggregationStatistics:{envelope:!1,centroid:!1,convexHull:!1},supportsDefaultSpatialReference:!!r?.supportsDefaultSR,supportsFullTextSearch:!1,supportsCompactGeometry:!1,standardMaxRecordCount:void 0,tileMaxRecordCount:void 0,supportsTrueCurve:!1},mensuration:{supportsDistanceAndAngle:m,supportsAreaAndPerimeter:m,supportsPointOrCentroid:m,supportsHeightFromBaseAndTop:u&&p.includes("base-top height"),supportsHeightFromBaseAndTopShadow:u&&p.includes("base-top shadow height"),supportsHeightFromTopAndTopShadow:u&&p.includes("top-top shadow height"),supports3D:u&&p.includes("3d")}}}};function i(e){return e?.path??""}return(0,c._)([(0,w.MZ)({clonable:!1})],t.prototype,"_functionRasterInfos",void 0),(0,c._)([(0,w.MZ)({clonable:!1})],t.prototype,"_rasterJobHandler",void 0),(0,c._)([(0,w.MZ)({clonable:!1})],t.prototype,"_cachedRendererJson",void 0),(0,c._)([(0,w.MZ)({readOnly:!0}
1)],t.prototype,"_serviceSupportsMosaicRule",void 0),(0,c._)([(0,D.w)("_serviceSupportsMosaicRule",["currentVersion","fields"])],t.prototype,"readServiceSupportsMosaicRule",null),(0,c._)([(0,w.MZ)({readOnly:!0})],t.prototype,"_rasterFunctionNamesIndex",null),(0,c._)([(0,w.MZ)()],t.prototype,"adjustAspectRatio",void 0),(0,c._)([(0,w.MZ)({type:[F.jz],json:{write:!0}})],t.prototype,"bandIds",void 0),(0,c._)([(0,D.w)("bandIds")],t.prototype,"readBandIds",null),(0,c._)([(0,w.MZ)({readOnly:!0,json:{read:!1}})],t.prototype,"capabilities",void 0),(0,c._)([(0,D.w)("service","capabilities",["capabilities","currentVersion","serviceDataType"])],t.prototype,"readCapabilities",null),(0,c._)([(0,w.MZ)({type:Number})],t.prototype,"compressionQuality",void 0),(0,c._)([(0,_.K)("compressionQuality")],t.prototype,"writeCompressionQuality",null),(0,c._)([(0,w.MZ)({type:Number})],t.prototype,"compressionTolerance",void 0),(0,c._)([(0,_.K)("compressionTolerance")],t.prototype,"writeCompressionTolerance",null),(0,c._)([(0,w.MZ)({json:{read:{source:"copyrightText"}}})],t.prototype,"copyright",void 0),(0,c._)([(0,w.MZ)({readOnly:!0,dependsOn:["_serviceSupportsMosaicRule"]})],t.prototype,"defaultMosaicRule",void 0),(0,c._)([(0,D.w)("defaultMosaicRule",["defaultMosaicMethod"])],t.prototype,"readDefaultMosaicRule",null),(0,c._)([(0,w.MZ)({type:String,json:{name:"layerDefinition.definitionExpression",write:{enabled:!0,allowNull:!0}}})],t.prototype,"definitionExpression",void 0),(0,c._)([(0,w.MZ)({readOnly:!0,constructOnly:!0})],t.prototype,"exportImageServiceParameters",void 0),(0,c._)([(0,w.MZ)()],t.prototype,"rasterInfo",void 0),(0,c._)([(0,w.MZ)({readOnly:!0,type:[ei.A]})],t.prototype,"fields",void 0),(0,c._)([(0,w.MZ)({readOnly:!0})],t.prototype,"fieldsIndex",null),(0,c._)([(0,w.MZ)({type:["png","png8","png24","png32","jpg","bmp","gif","jpgpng","lerc","tiff","bip","bsq"],json:{write:!0}})],t.prototype,"format",null),(0,c._)([(0,D.w)("service","format",["serviceDataType"])],t.prototype,"readFormat",null),(0,c._)([(0,w.MZ)({type:j.A})],t.prototype,"fullExtent",void 0),(0,c._)([(0,w.MZ)({readOnly:!0})],t.prototype,"hasMultidimensions",void 0),(0,c._)([(0,w.MZ)({json:{read:{source:"maxImageHeight"}}})],t.prototype,"imageMaxHeight",void 0),(0,c._)([(0,w.MZ)({json:{read:{source:"maxImageWidth"}}})],t.prototype,"imageMaxWidth",void 0),(0,c._)([(0,w.MZ)({type:String,json:{type:ee.SZ.jsonValues,read:ee.SZ.read,write:ee.SZ.write}})],t.prototype,"interpolation",void 0),(0,c._)([(0,w.MZ)()],t.prototype,"minScale",void 0),(0,c._)([(0,D.w)("service","minScale")],t.prototype,"readMinScale",null),(0,c._)([(0,w.MZ)()],t.prototype,"maxScale",void 0),(0,c._)([(0,D.w)("service","maxScale")],t.prototype,"readMaxScale",null),(0,c._)([(0,w.MZ)({type:Y.A})],t.prototype,"mosaicRule",null),(0,c._)([(0,D.w)("mosaicRule",["mosaicRule","defaultMosaicMethod"])],t.prototype,"readMosaicRule",null),(0,c._)([(0,_.K)("mosaicRule")],t.prototype,"writeMosaicRule",null),(0,c._)([(0,w.MZ)()],t.prototype,"multidimensionalInfo",void 0),(0,c._)([(0,w.MZ)({type:ea.A,json:{write:!0}})],t.prototype,"multidimensionalSubset",void 0),(0,c._)([(0,w.MZ)({json:{type:F.jz}})],t.prototype,"noData",void 0),(0,c._)([(0,_.K)("noData")],t.prototype,"writeNoData",null),(0,c._)([(0,w.MZ)({type:String,json:{type:ee.hm.jsonValues,read:ee.hm.read,write:ee.hm.write}})],t.prototype,"noDataInterpretation",void 0),(0,c._)([(0,w.MZ)({type:String,readOnly:!0,json:{read:{source:["fields"]}}})],t.prototype,"objectIdField",void 0),(0,c._)([(0,D.w)("objectIdField")],t.prototype,"readObjectIdField",null),(0,c._)([(0,w.MZ)({readOnly:!0})],t.prototype,"geometryType",void 0),(0,c._)([(0,w.MZ)({})],t.prototype,"typeIdField",void 0),(0,c._)([(0,w.MZ)({})],t.prototype,"types",void 0),(0,c._)([(0,w.MZ)({readOnly:!0})],t.prototype,"parsedUrl",null),(0,c._)([(0,w.MZ)({type:Function})],t.prototype,"pixelFilter",void 0),(0,c._)([(0,w.MZ)()],t.prototype,"raster",void 0),(0,c._)([(0,w.MZ)({readOnly:!0})],t.prototype,"sourceType",void 0),(0,c._)([(0,D.w)("sourceType",["serviceSourceType","fields"])],t.prototype,"readSourceType",null),(0,c._)([(0,w.MZ)()],t.prototype,"viewId",void 0),(0,c._)([(0,w.MZ)()],t.prototype,"renderer",null),(0,c._)([(0,w.MZ)({types:eh.uy,json:{name:"layerDefinition.drawingInfo.renderer",origins:{"web-scene":{types:eh.Gj,name:"layerDefinition.drawingInfo.renderer",write:{overridePolicy:e=>({enabled:e&&"vector-field"!==e.type&&"flow"!==e.type})}}}}})],t.prototype,"internalRenderer",null),(0,c._)([(0,D.w)("internalRenderer")],t.prototype,"readRenderer",null),(0,c._)([(0,_.K
1)("internalRenderer")],t.prototype,"writeRenderer",null),(0,c._)([(0,w.MZ)({clonable:!1})],t.prototype,"symbolizer",void 0),(0,c._)([(0,w.MZ)(N.ke)],t.prototype,"opacity",void 0),(0,c._)([(0,w.MZ)({readOnly:!0})],t.prototype,"rasterFields",null),(0,c._)([(0,w.MZ)({constructOnly:!0})],t.prototype,"rasterFunctionInfos",void 0),(0,c._)([(0,w.MZ)({type:V.A,json:{name:"renderingRule"}})],t.prototype,"rasterFunction",null),(0,c._)([(0,D.w)("rasterFunction",["renderingRule","rasterFunctionInfos"])],t.prototype,"readRasterFunction",null),(0,c._)([(0,w.MZ)({readOnly:!0})],t.prototype,"serviceDataType",void 0),(0,c._)([(0,w.MZ)({readOnly:!0,type:P.A})],t.prototype,"spatialReference",void 0),(0,c._)([(0,D.w)("spatialReference",["spatialReference","extent"])],t.prototype,"readSpatialReference",null),(0,c._)([(0,w.MZ)({type:ee.e8.apiValues,json:{read:ee.e8.read,type:ee.e8.jsonValues}})],t.prototype,"pixelType",void 0),(0,c._)([(0,_.K)("pixelType")],t.prototype,"writePixelType",null),(0,c._)([(0,w.MZ)({constructOnly:!0,type:el.A})],t.prototype,"serviceRasterInfo",void 0),(0,c._)([(0,w.MZ)()],t.prototype,"sourceJSON",void 0),(0,c._)([(0,w.MZ)(N.OZ)],t.prototype,"url",void 0),(0,c._)([(0,w.MZ)({readOnly:!0})],t.prototype,"version",void 0),(0,c._)([(0,D.w)("version",["currentVersion","fields","timeInfo"])],t.prototype,"readVersion",null),t=(0,c._)([(0,R.$)("esri.layers.mixins.ArcGISImageService")],t)};var iA=i(69750),iI=i(53022),iF=i(41138),iD=i(34139),ij=i(27133),iT=i(38829),iP=i(89386),iZ=i(474),iN=i(43837),iC=i(12857),iO=i(92483),iV=i(51617);let iJ=class extends(0,iI.dM)((0,iN.e)((0,iZ.j)((0,iD.q)((0,ij.A)((0,iT.H)(ix((0,iP.J)((0,iF.d)((0,iA.b)((0,g.P)(y.A.ClonableMixin(b.A)))))))))))){constructor(...e){super(...e),this.isReference=null,this.operationalLayerType="ArcGISImageServiceLayer",this.popupEnabled=!0,this.popupTemplate=null,this.type="imagery",this._debouncedSaveOperations=(0,f.sg)(async(e,t,r)=>{let{save:s,saveAs:a}=await i.e(98754).then(i.bind(i,98754));switch(e){case iV.X.SAVE:return s(this,t);case iV.X.SAVE_AS:return a(this,r,t)}})}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}load(e){let t=null!=e?e.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Image Service"]},e).catch(f.QP).then(()=>this._fetchService(t))),Promise.resolve(this)}get legendEnabled(){return!this._isPreviewLayer&&(this._get("legendEnabled")??!0)}set legendEnabled(e){this._set("legendEnabled",e)}get listMode(){return this._isPreviewLayer?"hide":this._get("listMode")}set listMode(e){this._set("listMode",e)}writeOperationalLayerType(e,t,i){let r="vector-field"===this.renderer?.type;t[i]=r?"ArcGISImageServiceVectorLayer":"ArcGISImageServiceLayer"}get defaultPopupTemplate(){return this.createPopupTemplate()}get _isPreviewLayer(){return!(!this.raster||!this.url?.toLowerCase().includes("/rasterrendering/imageserver"))}createPopupTemplate(e){let{rasterFields:t}=this,i=new Set,r=eo.F_.itemPixelValue.toLowerCase(),s="raster-dataset"===this.sourceType,a=eo.Oo.toLowerCase(),n=`${eo.F_.servicePixelValue.toLowerCase()}.`;for(let e of t){let t=e.name.toLowerCase();t===r||t.startsWith(n)||s&&t.startsWith(a)||i.add(e.name)}let o=(0,iO.tn)({fields:t,title:this.title},{...e,visibleFieldNames:i}),{rasterInfo:l}=this;return o?.fieldInfos&&l&&(0,eo.h4)(o.fieldInfos,l),o}queryFeatures(e,t){return this.queryRasters(e,t).then(e=>{if(e?.features)for(let t of e.features)t.layer=t.sourceLayer=this;return e})}queryFeatureCount(e,t){return this.queryRasterCount(e,t)}redraw(){this.emit("redraw")}async save(e){return this._debouncedSaveOperations(iV.X.SAVE,e)}async saveAs(e,t){return this._debouncedSaveOperations(iV.X.SAVE_AS,t,e)}serviceSupportsSpatialReference(e){return(0,iC.D)(this,e)}write(e,t){if(!this._isPreviewLayer)return super.write(e,t);if(t?.messages){let e=`${t.origin}/${t.layerContainerType||"operational-layers"}`;t.messages.push(new h.A("layer:unsupported",`Imagery preview layer (${this.title}, ${this.id}) of type '${this.declaredClass}' are not supported in the context of '${e}'`,{layer:this}))}return null}};(0,c._)([(0,w.MZ)(N.fV)],iJ.prototype,"legendEnabled",null),(0,c._)([(0,w.MZ)({type:["show","hide"]})],iJ.prototype,"listMode",null),(0,c._)([(0,w.MZ)({type:Boolean,json:{read:!1,write:{enabled:!0,overridePolicy:()=>({enabled:!1})}}})],iJ.prototype,"isReference",void 0),(0,c._)([(0,w.MZ)({type:["ArcGISImageServiceLayer"],json:{origins:{"web-map":{type:["ArcGISImageServiceLayer","ArcGISImageServiceVectorLayer"],read:!1,write:{target:"layerType",ignoreOrigin:!0}}}}}
1)],iJ.prototype,"operationalLayerType",void 0),(0,c._)([(0,_.K)("web-map","operationalLayerType")],iJ.prototype,"writeOperationalLayerType",null),(0,c._)([(0,w.MZ)(N.M6)],iJ.prototype,"popupEnabled",void 0),(0,c._)([(0,w.MZ)({type:d.A,json:{read:{source:"popupInfo"},write:{target:"popupInfo"}}})],iJ.prototype,"popupTemplate",void 0),(0,c._)([(0,w.MZ)({readOnly:!0})],iJ.prototype,"defaultPopupTemplate",null),(0,c._)([(0,w.MZ)({readOnly:!0,json:{read:!1}})],iJ.prototype,"type",void 0),(0,c._)([(0,w.MZ)({readOnly:!0})],iJ.prototype,"_isPreviewLayer",null);let iq=iJ=(0,c._)([(0,R.$)("esri.layers.ImageryLayer")],iJ)},12857:(e,t,i)=>{i.d(t,{D:()=>a});var r=i(49112);let s=[];function a(e,t){if((0,r.Wo)(e.url??""))return!0;let{wkid:i}=t;for(let t of s){if((e.version??0)>=t[0])break;if("function"==typeof t[1]&&(t[1]=t[1]()),t[1].has(i))return!1}return!0}s.push([10.91,()=>{let e=new Set([9709,9716,9741,9761,9766]);for(let t=9712;t<=9713;t++)e.add(t);for(let t=9748;t<=9749;t++)e.add(t);for(let t=20904;t<=20932;t++)e.add(t);for(let t=21004;t<=21032;t++)e.add(t);for(let t=21207;t<=21264;t++)e.add(t);for(let t=21307;t<=21364;t++)e.add(t);for(let t=23301;t<=23333;t++)e.add(t);for(let t=102759;t<=102760;t++)e.add(t);for(let t=102934;t<=102955;t++)e.add(t);return e}]),s.push([10.9,()=>{let e=new Set([9300,9354,9364,9367,9373,9377,9387,9456,9473,9498,9678,9680,29874,103599,103872,104028]);for(let t=9356;t<=9360;t++)e.add(t);for(let t=9404;t<=9407;t++)e.add(t);for(let t=9476;t<=9482;t++)e.add(t);for(let t=9487;t<=9494;t++)e.add(t);for(let t=9697;t<=9699;t++)e.add(t);return e}]),s.push([10.81,()=>{let e=new Set([9265,9333,103598,103699]);for(let t=9248;t<=9254;t++)e.add(t);for(let t=9271;t<=9273;t++)e.add(t);for(let t=9284;t<=9285;t++)e.add(t);for(let t=21453;t<=21463;t++)e.add(t);return e}]),s.push([10.8,()=>{let e=new Set([8088,8395,8428,8433,8531,8687,8692,8694,8699,8900,9003,9006,9009,9012,9017,9191]);for(let t=8035;t<=8036;t++)e.add(t);for(let t=8455;t<=8456;t++)e.add(t);for(let t=8518;t<=8529;t++)e.add(t);for(let t=8533;t<=8536;t++)e.add(t);for(let t=8538;t<=8540;t++)e.add(t);for(let t=8677;t<=8679;t++)e.add(t);for(let t=8902;t<=8903;t++)e.add(t);for(let t=8907;t<=8910;t++)e.add(t);for(let t=8949;t<=8951;t++)e.add(t);for(let t=8972;t<=8987;t++)e.add(t);for(let t=9039;t<=9040;t++)e.add(t);for(let t=9068;t<=9069;t++)e.add(t);for(let t=9140;t<=9141;t++)e.add(t);for(let t=9148;t<=9150;t++)e.add(t);for(let t=9153;t<=9159;t++)e.add(t);for(let t=9205;t<=9218;t++)e.add(t);for(let t=9221;t<=9222;t++)e.add(t);for(let t=54098;t<=54101;t++)e.add(t);return e}]),s.push([10.71,()=>{let e=new Set([6316]);for(let t=8351;t<=8353;t++)e.add(t);for(let t=9294;t<=9297;t++)e.add(t);for(let t=22619;t<=22621;t++)e.add(t);for(let t=103586;t<=103594;t++)e.add(t);return e}])},38829:(e,t,i)=>{i.d(t,{H:()=>d});var r=i(84533),s=i(89875);i(2232),i(82492),i(37779);var a=i(38820),n=i(78870),o=i(51024),l=i(58961),u=i(8857),p=i(65489);let m=class extends n.A.ClonableMixin(o.A){constructor(e){super(e),this.name=void 0,this.method="none",this.value=void 0,this.bandIds=void 0,this.renderer=void 0}};(0,r._)([(0,s.MZ)({type:String,json:{write:{isRequired:!0}}})],m.prototype,"name",void 0),(0,r._)([(0,s.MZ)({type:["raster-function-template","variable","none"],json:{write:{isRequired:!0}}}),(0,u.e)({rasterFunctionTemplate:"raster-function-template",variable:"variable",none:"none"})],m.prototype,"method",void 0),(0,r._)([(0,s.MZ)({type:String,json:{write:{isRequired:!0}}})],m.prototype,"value",void 0),(0,r._)([(0,s.MZ)({type:[l.jz],json:{write:{isRequired:!0}}})],m.prototype,"bandIds",void 0),(0,r._)([(0,s.MZ)({types:p.uy,json:{write:!0,origins:{"web-scene":{types:p.Gj,write:{overridePolicy:e=>({enabled:e&&"vector-field"!==e.type&&"flow"!==e.type})}}}}})],m.prototype,"renderer",void 0);let c=m=(0,r._)([(0,a.$)("esri.renderers.support.RasterPresetRenderer")],m),d=e=>{let t=class extends e{constructor(){super(...arguments),this.activePresetRendererName=null,this.presetRenderers=null}};return(0,r._)([(0,s.MZ)({type:String,json:{name:"layerDefinition.activePresetRendererName",write:{allowNull:!0}}})],t.prototype,"activePresetRendererName",void 0),(0,r._)([(0,s.MZ)({type:[c],json:{name:"layerDefinition.presetRenderers",write:!0}})],t.prototype,"presetRenderers",void 0),t=(0,r._)([(0,a.$)("esri.layers.mixins.RasterPresetRendererMixin")],t)}}}]); 2//# sourceMappingURL=12681.1ab25d6999fe0caa.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.