PageSourceSearch

https://tapped-demo-csun-cgst.netlify.app/tapped/_next/static/chunks/2396.d5e2556705dfc048.js

js tapped-demo-csun-cgst.netlify.app collected 2026-10-03 11:31:19 UTC 77,650 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2396],{22396:function(e,t,r){r.r(t),r.d(t,{default:function(){return et}});var i,n=r(36663),s=(r(39994),r(61681)),o=r(13802),a=r(7283),l=r(81977),u=r(66645),c=r(39835),p=r(3466),d=(r(12173),r(51876),r(66636)),m=r(76136),h=r(63314),y=r(23072),f=r(16908),g=r(87232),b=r(27668),v=r(18241),R=r(67827),w=r(95874),_=r(2030),x=r(10171),S=r(67134),I=r(42730),C=r(25709),N=r(34248),O=r(70375),T=r(78668),P=r(14685),j=r(86566),F=r(91772),D=r(89542),A=r(91957),M=r(11509),V=r(80085),J=r(34780),z=r(98549),q=r(12512),Z=r(28790),k=r(41017),L=r(27746),E=r(23277),B=r(59510),G=r(79438),Q=r(49004);const U=new Set(["raster","raster2","dem","fillraster"]),H=new Set(["rasters"]),W=e=>e&&e.rasterFunction?ee.fromJSON(e):e,X=e=>e&&e instanceof ee?e.toJSON():e,Y=e=>(null==e?void 0:e.functionName)&&!e.declaredClass,$=e=>Y(e)?new ee(e):e;var K;!function(e){e[e.MOSAIC=0]="MOSAIC",e[e.GROUP=1]="GROUP",e[e.ITEM=2]="ITEM"}(K||(K={}));let ee=i=class extends Q.wq{constructor(e){super(e),this.functionName=null,this.outputPixelType="unknown",this.variableName=null,this.description=null,this.functionDefinition=null,this.thumbnail=null}set functionArguments(e){if(e){const t=Object.keys(e);if(t.some((t=>U.has(t.toLowerCase())&&Y(e[t])))||t.some((t=>H.has(t.toLowerCase())&&Array.isArray(e[t])&&e[t].some((e=>Y(e)))))){e=(0,S.d9)(e);for(const r of t)U.has(r.toLowerCase())?e[r]=$(e[r]):H.has(r.toLowerCase())&&Array.isArray(e[r])&&(e[r]=e[r].map((e=>$(e))))}}this._set("functionArguments",e)}readFunctionArguments(e,t){return(e=>{if(null==e)return null;e=(0,S.d9)(e);const t={};for(const r of Object.keys(e))U.has(r.toLowerCase())?t[r]=W(e[r]):H.has(r.toLowerCase())&&Array.isArray(e[r])?t[r]=e[r].map(W):t[r]=e[r];return t})(t.arguments||t.rasterFunctionArguments)}writeFunctionArguments(e,t,r){const i={};for(const n of Object.keys(e))U.has(n.toLowerCase())?i[n]=X(e[n]):H.has(n.toLowerCase())&&Array.isArray(e[n])?i[n]=e[n].map(X):i[n]=X(e[n]);this.functionDefinition?t.arguments=i:t[r]=i}readFunctionName(e,t){const r=t.rasterFunctionInfos;return t.name||(r&&r.length&&"None"!==r[0].name?r[0].name:t.rasterFunction)}writeFunctionName(e,t,r){this.functionDefinition?t.name=e:t[r]=e}readFunctionType(e){return K[e]}writeFunctionType(e,t,r){t[r]=K[e]}clone(){return new i({functionName:this.functionName,functionArguments:(0,S.d9)(this.functionArguments),outputPixelType:this.outputPixelType,variableName:this.variableName,description:this.description,functionType:this.functionType,functionDefinition:this.functionDefinition,thumbnail:this.thumbnail})}};(0,n._)([(0,l.Cb)({json:{type:Object,write:{target:"rasterFunctionArguments"}}})],ee.prototype,"functionArguments",null),(0,n._)([(0,N.r)("functionArguments",["rasterFunctionArguments","arguments"])],ee.prototype,"readFunctionArguments",null),(0,n._)([(0,c.c)("functionArguments")],ee.prototype,"writeFunctionArguments",null),(0,n._)([(0,l.Cb)({json:{type:String,write:{target:"rasterFunction"}}})],ee.prototype,"functionName",void 0),(0,n._)([(0,N.r)("functionName",["rasterFunction","rasterFunctionInfos","name"])],ee.prototype,"readFunctionName",null),(0,n._)([(0,c.c)("functionName")],ee.prototype,"writeFunctionName",null),(0,n._)([(0,G.J)({C128:"c128",C64:"c64",F32:"f32",F64:"f64",S16:"s16",S32:"s32",S8:"s8",U1:"u1",U16:"u16",U2:"u2",U32:"u32",U4:"u4",U8:"u8",UNKNOWN:"unknown"},{ignoreUnknown:!1}),(0,l.Cb)({json:{default:"unknown"}})],ee.prototype,"outputPixelType",void 0),(0,n._)([(0,l.Cb)({type:String,json:{read:!0,write:!0}})],ee.prototype,"variableName",void 0),(0,n._)([(0,l.Cb)({type:String,json:{read:!0,write:!0,origins:{"web-document":{read:!1,write:!1}}}})],ee.prototype,"description",void 0),(0,n._)([(0,l.Cb)({json:{origins:{"web-document":{read:!1,write:!1}}}})],ee.prototype,"functionType",void 0),(0,n._)([(0,N.r)("functionType")],ee.prototype,"readFunctionType",null),(0,n._)([(0,c.c)("functionType")],ee.prototype,"writeFunctionType",null),(0,n._)([(0,l.Cb)({type:Object,json:{read:{source:"function"},write:{target:"function"},origins:{"web-document":{read:!1,write:!1}}}})],ee.prototype,"functionDefinition",void 0),(0,n._)([(0,l.Cb)({type:String,json:{read:!0,write:!0,origins:{"web-document":{read:!1,write:!1}}}})],ee.prototype,"thumbnail",void 0),ee=i=(0,n._)([(0,u.j)("esri.layers.support.RasterFunction")],ee);var te=ee,re=r(7803),ie=r(55987),ne=r(57988);const se={u1:[0,1],u2:[0,3],u4:[0,15],u8:[0,255],s8:[-128,127],u16:[0,65535],s16:[-32768,32767]},oe={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)"},ae=new Set(["raster-stretch","unique-value","class-breaks","raster-sh
1aded-relief","vector-field","raster-colormap"]);function le(e){return ae.has(e.type)}function ue(e,t){if(!e||!t)return(0,S.d9)(e||t);const r=(0,S.d9)(e);return"none"!==t.functionName.toLowerCase()&&(pe(r.functionArguments).Raster=t),r}function ce(e,t){switch(t=t||{},e.type){case"raster-stretch":return function(e,t){const r=new te;r.functionName="Stretch";const i=de[ne.v.toJSON(e.stretchType)],n="u8",s={StretchType:i,Statistics:ye(e.statistics),DRA:e.dynamicRangeAdjustment,UseGamma:e.useGamma,Gamma:e.gamma,ComputeGamma:e.computeGamma};if(null!=e.outputMin&&(s.Min=e.outputMin),null!=e.outputMax&&(s.Max=e.outputMax),i===de.standardDeviation?(s.NumberOfStandardDeviations=e.numberOfStandardDeviations,r.outputPixelType=n):i===de.percentClip?(s.MinPercent=e.minPercent,s.MaxPercent=e.maxPercent,r.outputPixelType=n):i===de.minMax?r.outputPixelType=n:i===de.sigmoid&&(s.SigmoidStrengthLevel=e.sigmoidStrengthLevel),r.functionArguments=s,r.variableName="Raster",e.colorRamp){const i=e.colorRamp,n=new te,s=(0,ie.Uh)(i);return s?n.functionArguments={colorRamp:s}:!t.convertColorRampToColormap||"algorithmic"!==i.type&&"multipart"!==i.type?n.functionArguments={colorRamp:e.colorRamp.toJSON()}:n.functionArguments={Colormap:(0,ie.Jw)(i,256)},n.variableName="Raster",n.functionName="Colormap",n.functionArguments.Raster=r,n}return r}(e,t);case"class-breaks":return function(e,t){const r=[],i=[],n=[],s=[],o=1e-6,{pixelType:a,rasterAttributeTable:l}=t,u=l&&l.features,c=he(l);if(u&&Array.isArray(u)&&e.classBreakInfos){e.classBreakInfos.forEach(((t,r)=>{const i=t.symbol.color;let n;i.a&&u.forEach((o=>{n=o.attributes[e.field],(n>=t.minValue&&n<t.maxValue||r===e.classBreakInfos.length-1&&n>=t.minValue)&&s.push([o.attributes[c],i.r,i.g,i.b])}))}));const t=a?me(s,a):s,r=new te;return r.functionName="Colormap",r.functionArguments={},r.functionArguments.Colormap=t,r.variableName="Raster",r}e.classBreakInfos.forEach(((e,t)=>{const a=e.symbol&&e.symbol.color;a.a?(0===t?r.push(e.minValue,e.maxValue+o):r.push(e.minValue+o,e.maxValue+o),i.push(t),s.push([t,a.r,a.g,a.b])):n.push(e.minValue,e.maxValue)}));const p=a?me(s,a):s,d=new te;d.functionName="Remap",d.functionArguments={InputRanges:r,OutputValues:i,NoDataRanges:n},d.variableName="Raster";const m=new te;return m.functionName="Colormap",m.functionArguments={Colormap:p,Raster:d},m}(e,t);case"unique-value":return function(e,t){const r=[],{pixelType:i,rasterAttributeTable:n}=t,s=n&&n.features,o=he(n);let a=!1;if(e.uniqueValueInfos&&e.uniqueValueInfos.forEach((t=>{const i=t.symbol.color;i.a&&(e.field!==o&&s?s&&s.forEach((n=>{String(n.attributes[e.field])===String(t.value)&&r.push([n.attributes[o],i.r,i.g,i.b])})):isNaN(+t.value)?a=!0:r.push([+t.value,i.r,i.g,i.b]))})),a)return null;const l=i&&r.length>0?me(r,i):r,u=new te;return u.functionName="Colormap",u.functionArguments={},u.functionArguments.Colormap=l,u.variableName="Raster",u}(e,t);case"raster-colormap":return function(e,t){const r=e.extractColormap();if(!r||0===r.length)return;const{pixelType:i}=t,n=i?me(r,i):r,s=new te;return s.functionName="Colormap",s.functionArguments={},s.functionArguments.Colormap=n,s}(e,t);case"vector-field":return function(e,t){const r=new te;r.functionName="VectorFieldRenderer";const{dataType:i,bandProperties:n}=t,s="vector-uv"===i;let o,a;n&&2===n.length&&(o=n.map((e=>e.BandName.toLowerCase())).indexOf("magnitude"),a=n.map((e=>e.BandName.toLowerCase())).indexOf("direction")),-1!==o&&null!==o||(o=0,a=1);const l="arithmetic"===e.rotationType?1:2,u="flow-from"===e.flowRepresentation?0:1,c=e.visualVariables?e.visualVariables.filter((e=>"Magnitude"===e.field))[0]:new re.Z,p={magnitudeBandID:o,directionBandID:a,isUVComponents:s,referenceSystem:l,massFlowAngleRepresentation:u,symbolTileSize:50,symbolTileSizeUnits:100,calculationMethod:"Vector Average",symbologyName:oe[e.style.toLowerCase().replace("-","_")],minimumMagnitude:c.minDataValue,maximumMagnitude:c.maxDataValue,minimumSymbolSize:c.minSize,maximumSymbolSize:c.maxSize};return r.functionArguments=p,r}(e,t);case"raster-shaded-relief":return function(e,t){if("elevation"!==t.dataType)return new te;const r=new te;r.functionName="Hillshade";const i="traditional"===e.hillshadeType?0:1,n="none"===e.scalingType?1:3,s={HillshadeType:i,SlopeType:n,ZFactor:e.zFactor};return 0===i&&(s.Azimuth=e.azimuth,s.Altitude=e.altitude),3===n&&(s.P
1SPower=e.pixelSizePower,s.PSZFactor=e.pixelSizeFactor),r.functionArguments=s,r.variableName="Raster",e.colorRamp&&(r.functionName="ShadedRelief",s.Colormap=(0,ie.Jw)(e.colorRamp,256)),r}(e,t)}}function pe(e){const t=e.Raster;return t&&"esri.layers.support.RasterFunction"===t.declaredClass?pe(t.functionArguments):e}const de={none:0,standardDeviation:3,histogramEqualization:4,minMax:5,percentClip:6,sigmoid:9};function me(e,t){const r=se[String(t).toLowerCase()];return r&&e.push([Math.floor(r[0]-1),0,0,0],[Math.ceil(r[1]+1),0,0,0]),e}function he(e){if(!e)return;const{fields:t}=e,r=t&&t.find((e=>e&&e.name&&"value"===e.name.toLowerCase()));return r&&r.name}function ye(e){const t=[];return e.forEach((e=>{const r=e;if(Array.isArray(r))t.push(r);else{if(null==r.min||null==r.max)return;const e=[r.min,r.max,r.avg||0,r.stddev||0];t.push(e)}})),t}var fe,ge=r(69236);const be=(0,C.wY)()({MT_FIRST:"first",MT_LAST:"last",MT_MIN:"min",MT_MAX:"max",MT_MEAN:"mean",MT_BLEND:"blend",MT_SUM:"sum"}),ve=(0,C.wY)()({esriMosaicNone:"none",esriMosaicCenter:"center",esriMosaicNadir:"nadir",esriMosaicViewpoint:"viewpoint",esriMosaicAttribute:"attribute",esriMosaicLockRaster:"lock-raster",esriMosaicNorthwest:"northwest",esriMosaicSeamline:"seamline"});let Re=fe=class extends Q.wq{constructor(e){super(e),this.ascending=!0,this.itemRenderingRule=null,this.lockRasterIds=null,this.method=null,this.multidimensionalDefinition=null,this.objectIds=null,this.operation=null,this.sortField=null,this.sortValue=null,this.viewpoint=null,this.where=null}readAscending(e,t){return null!=t.ascending?t.ascending:null==t.sortAscending||t.sortAscending}readMethod(e,t){return function(e){let t;switch(e?e.toLowerCase().replace("esrimosaic",""):""){case"byattribute":case"attribute":t="esriMosaicAttribute";break;case"lockraster":t="esriMosaicLockRaster";break;case"center":t="esriMosaicCenter";break;case"northwest":t="esriMosaicNorthwest";break;case"nadir":t="esriMosaicNadir";break;case"viewpoint":t="esriMosaicViewpoint";break;case"seamline":t="esriMosaicSeamline";break;default:t="esriMosaicNone"}return ve.fromJSON(t)}(t.mosaicMethod||t.defaultMosaicMethod)}readOperation(e,t){const r=t.mosaicOperation,i=t.mosaicOperator&&t.mosaicOperator.toLowerCase(),n=r||(i?be.toJSON(i):null);return be.fromJSON(n)||"first"}castSortValue(e){return null==e||"string"==typeof e||"number"==typeof e?e:`${e}`}clone(){return new fe({ascending:this.ascending,itemRenderingRule:(0,S.d9)(this.itemRenderingRule),lockRasterIds:(0,S.d9)(this.lockRasterIds),method:this.method,multidimensionalDefinition:(0,S.d9)(this.multidimensionalDefinition),objectIds:(0,S.d9)(this.objectIds),operation:this.operation,sortField:this.sortField,sortValue:this.sortValue,viewpoint:(0,S.d9)(this.viewpoint),where:this.where})}};(0,n._)([(0,l.Cb)({type:Boolean,json:{write:!0}})],Re.prototype,"ascending",void 0),(0,n._)([(0,N.r)("ascending",["ascending","sortAscending"])],Re.prototype,"readAscending",null),(0,n._)([(0,l.Cb)({type:te,json:{write:!0}})],Re.prototype,"itemRenderingRule",void 0),(0,n._)([(0,l.Cb)({type:[a.z8],json:{write:{overridePolicy(){return{enabled:"lock-raster"===this.method}}}}})],Re.prototype,"lockRasterIds",void 0),(0,n._)([(0,l.Cb)({type:String,json:{type:ve.jsonValues,write:{target:"mosaicMethod",writer:ve.write}}})],Re.prototype,"method",void 0),(0,n._)([(0,N.r)("method",["mosaicMethod","defaultMosaicMethod"])],Re.prototype,"readMethod",null),(0,n._)([(0,l.Cb)({type:[B.Z],json:{write:!0}})],Re.prototype,"multidimensionalDefinition",void 0),(0,n._)([(0,l.Cb)({type:[a.z8],json:{name:"fids",write:!0}})],Re.prototype,"objectIds",void 0),(0,n._)([(0,l.Cb)({json:{type:be.jsonValues,read:{reader:be.read},write:{target:"mosaicOperation",writer:be.write}}})],Re.prototype,"operation",void 0),(0,n._)([(0,N.r)("operation",["mosaicOperation","mosaicOperator"])],Re.prototype,"readOperation",null),(0,n._)([(0,l.Cb)({type:String,json:{write:{overridePolicy(){return{enabled:"attribute"===this.method}}}}})],Re.prototype,"sortField",void 0),(0,n._)([(0,l.Cb)({type:[String,Number],json:{write:{allowNull:!0,overridePolicy(){return{enabled:"attribute"===this.method,allowNull:!0}}}}})],Re.prototype,"sortValue",void 0),(0,n._)([(0,ge.p)("sortValue")],Re.prototype,"castSortValue",null),(0,n._)([(0,l.Cb)({type:j.Z,json:{write:!0}})],Re.prototype,"viewpoint",void 0),(0,n._)([(0,l.Cb)({type:String,json:{write:!0}})],Re.prototype,"where",void 0),Re=fe=(0,n._)([(0,u.j)("esri.layers.support.MosaicRule")],Re);var we=Re;const _e=new C.Xn({RSP_NearestNeighbor:"nearest",RSP_BilinearInterpolation:"bilinear",RSP_CubicConvolution:"cubic",RSP_Majority:"majority"}),xe=new C.Xn({esriNoDataMatchAny:"any",esriNoDataMatchAll:"all"});let Se=class extends Q.wq{constructor(){super(...arguments),this.layer=null,this.adjustAspectRatio=void 0,this.bandIds=void 0,this.compression=void 0,this.compressionQuality=void 0,this.compressionTolerance=.01,this.format=null,this.interpolation=null,this.noData=null,this.noDataInterpretation=void 0,this.pixelType=void 0,this.lercVersion=2}writeAdjustAspectRatio(e,t,r){this.layer.version<10.3||(t[r]=e)}writeCompressionQuality(e,t,r){this.format&&this.format.toLowerCase().indexOf("jpg")>-1&&null!=e&&(t[r]=e)}writeCompressionTolerance(e,t,r){"lerc"===this.format&&null!=e&&(t[r]=e)}writeLercVersion(e,t,r){"lerc"===this.format&&this.layer.version>=10.5&&(t[r]=e)}get version(){const 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("renderingRule"),e.commitProperty("adjustAspectRatio"),e.commitProperty("pixelFilter"),e.commitProperty("renderer"),e.commitProperty("definitionExpression"),(this._get("version")||0)+1}set version(e){this._set("version",e)}get mosaicRule(){const e=this.layer;let t=e.mosaicRule;const r=e.definitionExpression;return t?r&&r!==t.where&&(t=t.clone(),t.where=r):r&&(t=new we({where:r})),t}get renderingRule(){const e=this.layer;let t=e.renderingRule;const r=e.pixelFilter,i=!e.format||e.format.indexOf("jpg")>-1||e.format.indexOf("png")>-1;return t=this._addResampleRasterFunction(t),i&&!r&&(t=this.combineRendererWithRenderingRule()),t}combineRendererWithRenderingRule(){var e;const t=this.layer,{rasterInfo:r,renderingRule:i,renderer:n}=t;return n&&le(n)?ue(ce(n,{rasterAttributeTable:r.attributeTable,pixelType:r.pixelType,dataType:r.dataType,bandProperties:null==(e=r.keyProperties)?void 0:e.BandProperties,convertColorRampToColormap:t.version<10.6}),i):i}_addResampleRasterFunction(e){var t;if("vector-field"!==(null==(t=this.layer.renderer)?void 0:t.type)||"Resample"===(null==e?void 0:e.functionName))return e;const r="esriImageServiceDataTypeVector-UV"===this.layer.serviceDataType?7:10;return ue(new te({functionName:"Resample",functionArguments:{ResamplingType:r,InputCellSize:{x:this.layer.pixelSizeX,y:this.layer.pixelSizeY}}}),e)}};(0,n._)([(0,l.Cb)()],Se.prototype,"layer",void 0),(0,n._)([(0,l.Cb)({json:{write:!0}})],Se.prototype,"adjustAspectRatio",void 0),(0,n._)([(0,c.c)("adjustAspectRatio")],Se.prototype,"writeAdjustAspectRatio",null),(0,n._)([(0,l.Cb)({json:{write:!0}}),(0,I.B)("layer.bandIds")],Se.prototype,"bandIds",void 0),(0,n._)([(0,l.Cb)({json:{write:!0}})],Se.prototype,"compression",void 0),(0,n._)([(0,l.Cb)({json:{write:!0}}),(0,I.B)("layer.compressionQuality")],Se.prototype,"compressionQuality",void 0),(0,n._)([(0,c.c)("compressionQuality")],Se.prototype,"writeCompressionQuality",null),(0,n._)([(0,l.Cb)({json:{write:!0}}),(0,I.B)("layer.compressionTolerance")],Se.prototype,"compressionTolerance",void 0),(0,n._)([(0,c.c)("compressionTolerance")],Se.prototype,"writeCompressionTolerance",null),(0,n._)([(0,l.Cb)({json:{write:!0}}),(0,I.B)("layer.format")],Se.prototype,"format",void 0),(0,n._)([(0,l.Cb)({type:String,json:{read:{reader:_e.read},write:{writer:_e.write}}}),(0,I.B)("layer.interpolation")],Se.prototype,"interpolation",void 0),(0,n._)([(0,l.Cb)({json:{write:!0}}),(0,I.B)("layer.noData")],Se.prototype,"noData",void 0),(0,n._)([(0,l.Cb)({type:String,json:{read:{reader:xe.read},write:{writer:xe.write}}}),(0,I.B)("layer.noDataInterpretation")],Se.prototype,"noDataInterpretation",void 0),(0,n._)([(0,l.Cb)({json:{write:!0}})],Se.prototype,"pixelType",void 0),(0,n._)([(0,l.Cb)({json:{write:!0}})],Se.prototype,"lercVersion",void 0),(0,n._)([(0,c.c)("lercVersion")],Se.prototype,"writeLercVersion",null),(0,n._)([(0,l.Cb)({type:Number}
1)],Se.prototype,"version",null),(0,n._)([(0,l.Cb)({json:{write:!0}})],Se.prototype,"mosaicRule",null),(0,n._)([(0,l.Cb)({json:{write:!0}})],Se.prototype,"renderingRule",null),Se=(0,n._)([(0,u.j)("esri.layers.mixins.ExportImageServiceParameters")],Se);var Ie=r(71429),Ce=r(29410),Ne=r(21859),Oe=r(96389),Te=r(64590),Pe=r(16165),je=r(84238);let Fe=class extends Q.wq{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,n._)([(0,l.Cb)({json:{write:!0}})],Fe.prototype,"catalogItemVisibilities",void 0),(0,n._)([(0,l.Cb)({type:k.default,json:{write:!0}})],Fe.prototype,"catalogItems",void 0),(0,n._)([(0,l.Cb)({type:j.Z,json:{write:!0}})],Fe.prototype,"location",void 0),(0,n._)([(0,l.Cb)({json:{write:!0}})],Fe.prototype,"name",void 0),(0,n._)([(0,l.Cb)({json:{write:!0}})],Fe.prototype,"objectId",void 0),(0,n._)([(0,l.Cb)({json:{write:!0}})],Fe.prototype,"processedValues",void 0),(0,n._)([(0,l.Cb)({json:{write:!0}})],Fe.prototype,"properties",void 0),(0,n._)([(0,l.Cb)({json:{write:!0}})],Fe.prototype,"value",void 0),Fe=(0,n._)([(0,u.j)("esri.tasks.support.ImageIdentifyResult")],Fe);var De=Fe;async function Ae(e,t,r){const i=(0,je.en)(e),n=t.geometry?[t.geometry]:[],o=await(0,Pe.aX)(n),a=t.toJSON();!function(e){const t=null==e?void 0:e.time;if(t&&(null!=t.start||null!=t.end)){const r=[];null!=t.start&&r.push(t.start),null!=t.end&&-1===r.indexOf(t.end)&&r.push(t.end),e.time=r.join(",")}}(a);const l=o&&o[0];(0,s.pC)(l)&&(a.geometry=l.toJSON());const u=(0,je.cv)({...i.query,f:"json",...a});return(0,je.lA)(u,r)}var Me=r(42964);let Ve=class extends Me.Z{execute(e,t){return async function(e,t,r){const i=(0,je.en)(e),n=t.geometry?[t.geometry]:[];return(0,Pe.aX)(n).then((e=>{const n=t.toJSON(),o=e&&e[0];(0,s.pC)(o)&&(n.geometry=JSON.stringify(o.toJSON()));const a=(0,je.cv)({...i.query,f:"json",...n}),l=(0,je.lA)(a,r);return(0,M.default)(i.path+"/identify",l)})).then((e=>De.fromJSON(e.data)))}(this.url,e,t)}};Ve=(0,n._)([(0,u.j)("esri.tasks.ImageIdentifyTask")],Ve);var Je,ze=Ve,qe=r(53736),Ze=r(37956);let ke=Je=class extends Q.wq{constructor(){super(...arguments),this.geometry=null,this.mosaicRule=null,this.renderingRule=null,this.pixelSize=null,this.raster=void 0,this.timeExtent=null}writeGeometry(e,t,r){null!=e&&(t.geometryType=(0,qe.Ji)(e),t[r]=e.toJSON())}clone(){return new Je((0,S.d9)({geometry:this.geometry,mosaicRule:this.mosaicRule,renderingRule:this.renderingRule,pixelSize:this.pixelSize,raster:this.raster,timeExtent:this.timeExtent}))}};(0,n._)([(0,l.Cb)({types:A.qM,json:{read:qe.im}})],ke.prototype,"geometry",void 0),(0,n._)([(0,c.c)("geometry")],ke.prototype,"writeGeometry",null),(0,n._)([(0,l.Cb)({type:we,json:{write:!0}})],ke.prototype,"mosaicRule",void 0),(0,n._)([(0,l.Cb)({type:te,json:{write:!0}})],ke.prototype,"renderingRule",void 0),(0,n._)([(0,l.Cb)({type:j.Z,json:{write:!0}})],ke.prototype,"pixelSize",void 0),(0,n._)([(0,l.Cb)({json:{write:!0}})],ke.prototype,"raster",void 0),(0,n._)([(0,l.Cb)({type:Ze.Z,json:{read:{source:"time"},write:{target:"time"}}})],ke.prototype,"timeExtent",void 0),ke=Je=(0,n._)([(0,u.j)("esri.tasks.support.ImageHistogramParameters")],ke);var Le,Ee=ke;let Be=Le=class extends Q.wq{constructor(){super(...arguments),this.geometry=null,this.renderingRules=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}writeGeometry(e,t,r){null!=e&&(t.geometryType=(0,qe.Ji)(e),t[r]=JSON.stringify(e.toJSON()))}set mosaicRule(e){let t=e;t&&t.mosaicMethod&&(t=we.fromJSON({...t.toJSON(),mosaicMethod:t.mosaicMethod,mosaicOperation:t.mosaicOperation})),this._set("mosaicRule",t)}writeMosaicRule(e,t,r){null!=e&&(t[r]=JSON.stringify(e.toJSON()))}set renderingRule(e){let t=e;t&&t.rasterFunction&&(t=te.fromJSON({...t.toJSON(),rasterFunction:t.rasterFunction,rasterFunctionArguments:t.rasterFunctionArguments})),this._set("renderingRule",t)}writeRenderingRule(e,t,r){null!=e&&(t[r]=JSON.stringify(e.toJSON()))}writeRenderingRules(e,t,r){null!=e&&(t[r]=JSON.stringify(e.map((e=>e.toJSON()))))}writePixelSize(e,t,r){null!=e&&(t[r]=JSON.stringify(e))}writeTimeExtent(e,t,r){if(null!=e){const i=e.start?e.start.getTime():null,n=e.end?e.end.getTime():null;t[r]=null!=i?null!=n?`${i},${n}`:`${i}`:null}}clone(){return new Le((0,S.d9)({geometry:this.geometry,mosaicRule:this.mosaicRule,renderingRule:this.renderingRule,pixelSize:this.pixelSize,returnGeometry:this.returnGeometry,returnCatalogItems:this.returnCatalogItems,returnPixelValues:this.returnPixelValues,maxItemCount:this.maxItemCount,raster:this.raster,viewId:this.viewId,timeExtent:this.timeExtent}))}};(0,n._)([(0,l.Cb)({json:{write:!0}})],Be.prototype,"geometry",void 0),(0,n._)([(0,c.c)("geometry")],Be.prototype,"writeGeometry",null),(0,n._)([(0,l.Cb)({type:we,json:{write:!0}})],Be.prototype,"mosaicRule",null),(0,n._)([(0,c.c)("mosaicRule")],Be.prototype,"writeMosaicRule",null),(0,n._)([(0,l.Cb)({type:te,json:{write:!0}})],Be.prototype,"renderingRule",null),(0,n._)([(0,c.c)("renderingRule")],Be.prototype,"writeRenderingRule",null),(0,n._)([(0,l.Cb)({type:[te],json:{write:!0}})],Be.prototype,"renderingRules",void 0),(0,n._)([(0,c.c)("renderingRules")],Be.prototype,"writeRenderingRules",null),(0,n._)([(0,l.Cb)({type:j.Z,json:{write:!0}})],Be.prototype,"pixelSize",void 0),(0,n._)([(0,c.c)("pixelSize")],Be.prototype,"writePixelSize",null),(0,n._)([(0,l.Cb)({type:Boolean,json:{write:!0}})],Be.prototype,"returnGeometry",void 0),(0,n._)([(0,l.Cb)({type:Boolean,json:{write:!0}})],Be.prototype,"returnCatalogItems",void 0),(0,n._)([(0,l.Cb)({type:Boolean,json:{write:!0}})],Be.prototype,"returnPixelValues",void 0),(0,n._)([(0,l.Cb)({type:Number,json:{write:!0}})],Be.prototype,"maxItemCount",void 0),(0,n._)([(0,l.Cb)({type:Ze.Z,json:{write:{target:"time"}}})],Be.prototype,"timeExtent",void 0),(0,n._)([(0,c.c)("timeExtent")
1],Be.prototype,"writeTimeExtent",null),(0,n._)([(0,l.Cb)({json:{write:!0}})],Be.prototype,"raster",void 0),(0,n._)([(0,l.Cb)({json:{write:!0}})],Be.prototype,"viewId",void 0),Be=Le=(0,n._)([(0,u.j)("esri.tasks.support.ImageIdentifyParameters")],Be);var Ge=Be;const Qe=o.Z.getLogger("esri.layers.mixins.ArcGISImageService"),Ue=(0,C.wY)()({RSP_NearestNeighbor:"nearest",RSP_BilinearInterpolation:"bilinear",RSP_CubicConvolution:"cubic",RSP_Majority:"majority"}),He=(0,C.wY)()({esriNoDataMatchAny:"any",esriNoDataMatchAll:"all"}),We=(0,C.wY)()({U1:"u1",U2:"u2",U4:"u4",U8:"u8",S8:"s8",U16:"u16",S16:"s16",U32:"u32",S32:"s32",F32:"f32",F64:"f64",C64:"c64",C128:"c128",UNKNOWN:"unknown"}),Xe=new Set(["png","png8","png24","png32","jpg","bmp","gif","jpgpng","lerc","tiff"]),Ye=(0,l.Eg)(a.q9,{min:0,max:255});const $e=e=>{let t=class extends e{constructor(){super(...arguments),this._functionRasterInfos={},this._rasterJobHandler={instance:null,refCount:0,connectionPromise:null},this._symbolizer=null,this._defaultServiceMosaicRule=null,this.rasterAttributeTableFieldPrefix="Raster.",this.adjustAspectRatio=null,this.bandCount=null,this.bandIds=void 0,this.capabilities=null,this.compressionQuality=void 0,this.compressionTolerance=.01,this.copyright=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.noData=null,this.noDataInterpretation=void 0,this.objectIdField=null,this.pixelSizeX=null,this.pixelSizeY=null,this.pixelFilter=null,this.raster=void 0,this.viewId=void 0,this.renderer=null,this.rasterAttributeTable=null,this.rasterFunctionInfos=null,this.serviceDataType=null,this.spatialReference=null,this.pixelType=null,this.serviceRasterInfo=null,this.sourceJSON=null,this.url=null,this.version=null}initialize(){this._set("exportImageServiceParameters",new Se({layer:this}))}readDefaultServiceMosaicRule(e,t){return we.fromJSON(t)}get rasterFunctionNamesIndex(){const e=new Map;return!this.rasterFunctionInfos||this.rasterFunctionInfos.length<1||this.rasterFunctionInfos.forEach((t=>{e.set(t.name.toLowerCase().replace(/ /gi,"_"),t.name)})),e}get queryTask(){return new E.Z({url:this.url})}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,r){null!=e&&"lerc"!==this.format&&(t[r]=e)}writeCompressionTolerance(e,t,r){"lerc"===this.format&&null!=e&&(t[r]=e)}get fieldsIndex(){return this.fields?new Z.Z(this.fields):null}set format(e){e&&Xe.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&&t.mosaicMethod&&(t=we.fromJSON({...t.toJSON(),mosaicMethod:t.mosaicMethod,mosaicOperation:t.mosaicOperation})),this._set("mosaicRule",t)}readMosaicRule(e,t){return we.fromJSON(e||t.mosaicRule||t)}writeMosaicRule(e,t,r){let i=this.mosaicRule;const n=this.definitionExpression;i?n&&n!==i.where&&(i=i.clone(),i.where=n):n&&(i=new we({where:n})),this._isValidCustomizedMosaicRule(i)&&(t[r]=i.toJSON())}writeNoData(e,t,r){null!=e&&"number"==typeof e&&(t[r]=Ye(e))}readObjectIdField(e,t){if(!e){const r=t.fields.filter((e=>"esriFieldTypeOID"===e.type||"oid"===e.type));e=r&&r[0]&&r[0].name}return e}get parsedUrl(){return this.url?(0,p.mN)(this.url):null}readRenderer(e,t,r){var i,n;const s=null==t||null==(i=t.layerDefinition)||null==(n=i.drawingInfo)?void 0:n.renderer,o=(0,z.ij)(s,r);return null==o?null:("vector-field"===o.type&&t.symbolTileSize&&!s.symbolTileSize&&(o.symbolTileSize=t.symbolTileSize),le(o)||Qe.warn("ArcGISImageService","Imagery layer doesn't support given renderer type."),o)}writeRenderer(e,t,r){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(){const e=this.rasterAttributeTableFieldPrefix||"Raster.",t=new q.Z({name:"Raster.ItemPixelValue",alias:"Item Pixel V
1alue",domain:null,editable:!1,length:50,type:"string"}),r=new q.Z({name:"Raster.ServicePixelValue",alias:"Service Pixel Value",domain:null,editable:!1,length:50,type:"string"}),i=new q.Z({name:"Raster.ServicePixelValue.Raw",alias:"Raw Service Pixel Value",domain:null,editable:!1,length:50,type:"string"});let n=this.fields?(0,S.d9)(this.fields):[];n.push(r),this.capabilities.operations.supportsQuery&&this.fields&&this.fields.length>0&&n.push(t),this.version>=10.4&&this.rasterFunctionInfos&&this.rasterFunctionInfos.some((e=>"none"===e.name.toLowerCase()))&&n.push(i),this.rasterFunctionInfos&&this.rasterFunctionInfos.filter((e=>"none"!==e.name.toLowerCase())).forEach((e=>{n.push(new q.Z({name:"Raster.ServicePixelValue."+e.name,alias:e.name,domain:null,editable:!1,length:50,type:"string"}))})),null==this.pixelFilter||"esriImageServiceDataTypeVector-UV"!==this.serviceDataType&&"esriImageServiceDataTypeVector-MagDir"!==this.serviceDataType||(n.push(new q.Z({name:"Raster.Magnitude",alias:"Magnitude",domain:null,editable:!1,type:"double"})),n.push(new q.Z({name:"Raster.Direction",alias:"Direction",domain:null,editable:!1,type:"double"})));const s=this.rasterInfo.attributeTable&&this.rasterInfo.attributeTable.fields||null;if(s&&s.length>0){const t=s.filter((e=>"esriFieldTypeOID"!==e.type&&"value"!==e.name.toLowerCase())).map((t=>{const r=(0,S.d9)(t);return r.name=e+t.name,r}));n=n.concat(t)}return n}set renderingRule(e){let t=e;t&&t.rasterFunction&&(t=te.fromJSON({...t.toJSON(),rasterFunction:t.rasterFunction,rasterFunctionArguments:t.rasterFunctionArguments})),this._set("renderingRule",t)}readRenderingRule(e,t){const r=t.rasterFunctionInfos;return t.renderingRule||r&&r.length&&"None"!==r[0].name?te.fromJSON(t.renderingRule||{rasterFunctionInfos:t.rasterFunctionInfos}):null}writeRenderingRule(e,t,r){this._isRFTJson(e)||(t[r]=e.toJSON())}readSpatialReference(e,t){const r=e||t.extent.spatialReference;return r?P.Z.fromJSON(r):null}readPixelType(e){return We.fromJSON(e)||e}writePixelType(e,t,r){((0,s.Wi)(this.serviceRasterInfo)||this.pixelType!==this.serviceRasterInfo.pixelType)&&(t[r]=We.toJSON(e))}readVersion(e,t){let r=t.currentVersion;return r||(r=t.hasOwnProperty("fields")||t.hasOwnProperty("timeInfo")?10:9.3),r}applyFilter(e){let t=e;return this.pixelFilter&&(t=this._clonePixelData(e),this.pixelFilter(t)),t}async applyRenderer(e,t){let r=e;if(!this._isPicture()&&this.renderer&&this._symbolizer&&!this.pixelFilter){const i=JSON.stringify(this._cachedRendererJson)!==JSON.stringify(this.renderer.toJSON()),n=this._rasterJobHandler.instance,{bandIds:s}=this;if(n){i&&(this._symbolizer.bind(),await n.updateSymbolizer(this._symbolizer,t),this._cachedRendererJson=this.renderer.toJSON());const o=await n.symbolize({bandIds:s,...e},t);r={extent:e.extent,pixelBlock:o}}else r={extent:e.extent,pixelBlock:this._symbolizer.symbolize({bandIds:s,...e})}}return r}destroy(){this._shutdownJobHandler()}increaseRasterJobHandlerUsage(){this._rasterJobHandler.refCount++}decreaseRasterJobHandlerUsage(){this._rasterJobHandler.refCount--,this._rasterJobHandler.refCount<=0&&this._shutdownJobHandler()}async computeHistograms(e,t){const r=null==t?void 0:t.signal;if(await this._fetchCapabilities(r),!this.capabilities.operations.supportsComputeHistograms)throw new O.Z("imagery-layer:compute-histograms","this operation is not supported on the input image service");e=(0,a.TJ)(Ee,e).clone();const{raster:i,mosaicRule:n,renderingRule:s}=this;return s&&null==e.renderingRule&&(e.renderingRule=s),n&&null==e.mosaicRule&&(e.mosaicRule=n),i&&null==e.raster&&(e.raster=i),async function(e,t,r){const i=await Ae(e,t,r),n=(0,je.en)(e),{data:s}=await(0,M.default)(`${n.path}/computeHistograms`,i);return{histograms:s.histograms}}(this.url,e,{signal:r})}async computeStatisticsHistograms(e,t){const r=null==t?void 0:t.signal;if(await this._fetchCapabilities(r),!this.capabilities.operations.supportsComputeStatisticsHistograms)throw new O.Z("imagery-layer:compute-statistics-histograms","this operation is not supported on the input image service");e=(0,a.TJ)(Ee,e).clone();const{raster:i,mosaicRule:n,renderingRule:s}=this;return s&&null==e.renderingRule&&(e.renderingRule=s),n&&null==e.mosaicRule&&(e.mosaicRule=n),i&&null==e.raster&&(e.raster=i),async function(e,t,r){const i=await Ae(e,t,r),n=(0,je.en)(e),{data:s}=await(0,M.default)(`${n.path}/computeStatisticsHistograms`,i),{statistics:o}=s;return null!=o&&o.length&&o.forEach((e=>{e.avg=e.mean,e.stddev=e.standardDeviation})),{statistics:o,histograms:s.histograms}}(this.url,e,{signal:r})}fetchImage(e,t,r,i={}){if(null==e||null==t||null==r)return Promise.reject(new O.Z("imagery-layer:fetch-image","Insufficient parameters for requesting an image. A valid extent, width and height values are required."));const n=this.renderer||this._symbolizer?this.generateRasterInfo(this.renderingRule,{signal:i.signal}):null;return(0,T.gx)(n).then((n=>{n&&(this.rasterInfo=n);const s={imageServiceParameters:this.getExportImageServiceParameters(e,t,r,i.timeExtent),imageProps:{extent:e,width:t,height:r,format:this.format},requestAsImageElement:i.requestAsImageElement&&!this.pixelFilter||!1,signal:i.signal};return this._requestArrayBuffer(s)}))}fetchKeyProperties(e){const t=e&&e.renderingRule&&e.renderingRule.toJSON();return(0,M.default)(this.parsedUrl.path+"/keyProperties",{query:this._getQueryParams({renderingRule:this.version>=10.3&&t?JSON.stringify(t):null})}).then((e=>e.data))}fetchRasterAttributeTable(e){const t=e&&e.renderingRule&&e.renderingRule.toJSON();return this.version<10.1?Promise.reject(new O.Z("#fetchRasterAttributeTable()","Failed to get rasterAttributeTable")):(0,M.default)(this.parsedUrl.path+"/rasterAttributeTable",{query:this._getQueryParams({renderingRule:this.version>=10.3&&t?JSON.stringify(t):null})}).then((e=>k.default.fromJSON(e.data)))}async getCatalogItemRasterInfo(e,t){const r=(0,M.default)(this.parsedUrl.path+"/"+e+"/info",{query:this._getQueryParams(),...t}).then((e=>e.data)),i=(0,M.default)(this.parsedUrl.path+"/"+e+"/info/keyProperties",{query:this._getQueryParams(),...t}).then((e=>e.data)).catch((()=>{})),n=await Promise.all([r,i]);if(!n[0])return;const s=F.Z.fromJSON(n[0].extent),o=n[0].statistics?n[0].statistics.map((e=>({min:e[0],max:e[1],avg:e[2],stddev:e[3]}))):null;return new Ie.Z({bandCount:n[0].bandCount,extent:s,spatialReference:s.sr,pixelSize:new j.Z({x:n[0].pixelSizeX,y:n[0].pixelSizeY,spatialReference:s.sr}),pixelType:n[0].pixelType.toLowerCase(),statistics:o,histograms:n[0].histograms,keyProperties:n[1]||{}})}async getCatalogItemICSInfo(e,t){const{data:r}=await(0,M.default)(this.parsedUrl.path+"/"+e+"/info/ics",{query:this._getQueryParams(),...t}),i=r&&r.ics;if(!i)return;let n=null;try{n=(await(0,M.default)(this.parsedUrl.path+"/"+e+"/info",{query:this._getQueryParams(),...t})).data.extent}catch{}if(!n||!n.spatialReference)return{ics:i,icsToPixelTransform:null,icsExtent:null,northDirection:null};const s=this.version>=10.7?(0,M.default)(this.parsedUrl.path+"/"+e+"/info/icstopixel",{query:this._getQueryParams(),...t}).then((e=>e.data)).catch((()=>({}))):{},o=n.spatialReference,a={geometries:JSON.stringify({geometryType:"esriGeometryEnvelope",geometries:[n]}),inSR:o.wkid||JSON.stringify(o),outSR:"0:"+e},l=(0,M.default)(this.parsedUrl.path+"/project",{query:this._getQueryParams(a),...t}).then((e=>e.data)).catch((()=>({}))),u=(n.xmin+n.xmax)/2,c=(n.ymax-n.ymin)/6,p=n.ymin+c,d=[];for(let P=0;P<5;P++)d.push({x:u,y:p+c*P});const m={geometries:JSON.stringify({geometryType:"esriGeometryPoint",geometries:d}),inSR:o.wkid||JSON.stringify(o),outSR:"0:"+e},h=(0,M.default)(this.parsedUrl.path+"/project",{query:this._getQueryParams(m),...t}).then((e=>e.data)).catch((()=>({}))),y=await Promise.all([s,l,h]);let f=y[0].ipxf;if(null==f){var g,b,v;const e=null==(g=i.geodataXform)?void 0:g.xf_0;"topup"===(null==e||null==(b=e.name)?void 0:b.toLowerCase())&&6===(null==e||null==(v=e.coefficients)?void 0:v.length)&&(f={affine:{name:"ics [sensor: Frame] to pixel (column, row) transformation",coefficients:e.coefficients,cellsizeRatio:0,type:"GeometricXform"}})}const R=F.Z.fromJSON(y[1]&&y[1].geometries&&y[1].geometries[0]);R&&(R.spatialReference=new P.Z({wkid:0,imageCoordinateSystem:i}));const w=y[2].geometries?y[2].geometries.filter((e=>
1null!=e&&null!=e.x&&null!=e.y&&"NaN"!==e.x&&"NaN"!==e.y)):[],_=w.length;if(_<3)return{ics:i,icsToPixelTransform:f,icsExtent:R,northDirection:null};let x=0,S=0,I=0,C=0;for(let P=0;P<_;P++)x+=w[P].x,S+=w[P].y,I+=w[P].x*w[P].x,C+=w[P].x*w[P].y;const N=(_*C-x*S)/(_*I-x*x);let O=0;const T=w[4].x>w[0].x,j=w[4].y>w[0].y;return N===1/0?O=j?90:270:0===N?O=T?0:180:N>0?O=T?180*Math.atan(N)/Math.PI:180*Math.atan(N)/Math.PI+180:N<0&&(O=j?180+180*Math.atan(N)/Math.PI:360+180*Math.atan(N)/Math.PI),{ics:i,icsToPixelTransform:f,icsExtent:R,northDirection:O}}async generateRasterInfo(e,t){if((!e||"none"===e.functionName.toLowerCase()||this._isVectorFieldResampleFunction(e))&&(0,s.pC)(this.serviceRasterInfo))return this.serviceRasterInfo;const r=function(e){if(!e)return null;const t=JSON.stringify(e).match(/"rasterFunction":"(.*?")/gi),r=null==t?void 0:t.map((e=>e.replace('"rasterFunction":"',"").replace('"',"")));return r?r.join("/"):null}(e);if(this._functionRasterInfos[r])return this._functionRasterInfos[r];const i=this._generateRasterInfo(e,t);this._functionRasterInfos[r]=i;try{return await i}catch{return this._functionRasterInfos[r]=null,null}}getExportImageServiceParameters(e,t,r,i){const n=(e=e.clone().shiftCentralMeridian()).spatialReference;let o;if(n.imageCoordinateSystem){const{id:e,referenceServiceName:t}=n.imageCoordinateSystem;o=null!=e?t?this.parsedUrl.path.toLowerCase().indexOf("/"+t.toLowerCase()+"/")>-1?"0:"+e:JSON.stringify({icsid:e,icsns:t}):"0:"+e:JSON.stringify({ics:n.imageCoordinateSystem})}else o=n.wkid||JSON.stringify(n.toJSON());(0,s.pC)(this.serviceRasterInfo)&&this.pixelType!==this.serviceRasterInfo.pixelType&&(this.exportImageServiceParameters.pixelType=this.pixelType);const a=this.exportImageServiceParameters.toJSON(),{bandIds:l,noData:u,mosaicRule:c}=a;let{renderingRule:p}=a;if(l instanceof Array&&l.length>0&&!this.renderingRule?a.bandIds=l.join(","):a.bandIds=void 0,null!=l&&l.length&&this.renderingRule)if("Colormap"===p.rasterFunction){const e=new te({functionName:"ExtractBand",functionArguments:{BandIds:l,raster:p.rasterFu
1nctionArguments.Raster}});p.rasterFunctionArguments.Raster=e}else p=new te({functionName:"ExtractBand",functionArguments:{BandIds:l,raster:p}});u instanceof Array&&u.length>0&&(a.noData=u.join(","));const d=this.timeInfo;c&&c.multidimensionalDefinition&&i&&d&&d.startField&&(c.multidimensionalDefinition=c.multidimensionalDefinition.filter((e=>e.dimensionName!==d.startField))),a.mosaicRule=c&&JSON.stringify(c),a.renderingRule=p&&JSON.stringify(p);const m={};if(i){const{start:e,end:t}=i.toJSON();e&&t&&e===t?m.time=""+e:null==e&&null==t||(m.time=`${null==e?"null":e},${null==t?"null":t}`)}return{bbox:e.xmin+","+e.ymin+","+e.xmax+","+e.ymax,bboxSR:o,imageSR:o,size:t+","+r,...a,...m}}async identify(e,t){if(await this._fetchCapabilities(null==t?void 0:t.signal),!this.capabilities.operations.supportsIdentify)throw new O.Z("imagery-layer:query-rasters","query operation is not supported on the input image service");e=(0,a.TJ)(Ge,e).clone();const{raster:r,mosaicRule:i,renderingRule:n}=this;return n&&null==e.renderingRule&&(e.renderingRule=n),i&&null==e.mosaicRule&&(e.mosaicRule=i),r&&null==e.raster&&(e.raster=r),new ze({url:this.url}).execute(e,t)}async queryRasters(e,t){if(await this._fetchCapabilities(null==t?void 0:t.signal),!this.capabilities.operations.supportsQuery)throw new O.Z("imagery-layer:query-rasters","query operation is not supported on the input image service");return e=(0,a.TJ)(L.Z,e),this.queryTask.execute(e,t)}queryVisibleRasters(e,t){if(!e)return Promise.reject(new O.Z("imagery-layer: query-visible-rasters","missing query parameter"));const{pixelSize:r,returnDomainValues:i,returnTopmostRaster:n,showNoDataRecords:o}=t||{pixelSize:null,returnDomainValues:!1,returnTopmostRaster:!1,showNoDataRecords:!1};let a=!1,l=null,u=null;const c="raster.servicepixelvalue",p=this.rasterFunctionNamesIndex;if((0,s.pC)(e.outFields)&&(a=e.outFields.some((e=>-1===e.toLowerCase().indexOf(c))),this.version>=10.4)){const t=e.outFields.filter((e=>e.toLowerCase().indexOf(c)>-1&&e.length>c.length)).map((e=>{const t=e.slice(c.length+1);return[this._updateRenderingRulesFunctionName(t,p),t]}));l=t.map((e=>new te({functionName:e[0]}))),u=t.map((e=>e[1])),0===l.length?this.renderingRule?(l.push(this.renderingRule),u.push(this.renderingRule.functionName)):l=null:this.renderingRule&&!l.some((e=>e.functionName===this.renderingRule.functionName))&&(l.push(this.renderingRule),u.push(this.renderingRule.functionName))}const d=(0,s.Wi)(e.outSpatialReference)||e.outSpatialReference.equals(this.spatialReference),m=this._getQueryParams({geometry:e.geometry,timeExtent:e.timeExtent,mosaicRule:this.exportImageServiceParameters.mosaicRule,renderingRule:this.version<10.4?this.renderingRule:null,renderingRules:l,pixelSize:r,returnCatalogItems:a,returnGeometry:d,maxItemCount:n?1:null});delete m.f;const h=new Ge(m),y=new ze({url:this.url}),f=this.generateRasterInfo(this.renderingRule);return new Promise((t=>{f.then((()=>{y.execute(h).then((r=>{const n=e.outFields;if(a&&!d&&r.catalogItems&&r.catalogItems.features&&r.catalogItems.features.length>0){const s=this.objectIdField||"ObjectId",a=r.catalogItems.features,l=a.map((e=>e.attributes&&e.attributes[s])),c=new L.Z({objectIds:l,returnGeometry:!0,outSpatialReference:e.outSpatialReference,outFields:[s]});return this.queryRasters(c).then((l=>{l&&l.features&&l.features.length>0&&l.features.forEach((t=>{a.forEach((r=>{r.attributes[s]===t.attributes[s]&&(r.geometry=new D.Z(t.geometry),r.geometry.spatialReference=e.outSpatialReference)}))})),t(this._processVisibleRastersResponse(r,{returnDomainValues:i,templateRRFunctionNames:u,showNoDataRecords:o,templateFields:n}))})).catch((()=>{throw new O.Z("imagery-layer:query-visible-rasters","encountered error when querying visible rasters geometry")}))}t(this._processVisibleRastersResponse(r,{returnDomainValues:i,templateRRFunctionNames:u,showNoDataRecords:o,templateFields:n}))})).catch((()=>{throw new O.Z("imagery-layer:query-visible-rasters","encountered error when querying visible rasters")}))}))}))}async fetchVariableStatisticsHistograms(e,t){const r=(0,M.default)(this.parsedUrl.path+"/statistics",{query:this._getQueryParams({variable:e}),signal:t}).then((e=>{var t;return null==(t=e.data)?void 0:t.statistics})),i=(0,M.default)(this.parsedUrl.path+"/histograms",{query:this._getQueryParams({variable:e}),signal:t}).then((e=>{var t;return null==(t=e.data)?void 0:t.histograms})),n=await Promise.all([r,i]);
1return n[0]&&n[0].forEach((e=>{e.avg=e.mean,e.stddev=e.standardDeviation})),{statistics:n[0]||null,histograms:n[1]||null}}async _fetchService(e){await this._fetchServiceInfo(e),(0,s.pC)(this.serviceRasterInfo)&&!this.rasterInfo&&(this.rasterInfo=this.serviceRasterInfo);const t=this.sourceJSON,r=(0,s.pC)(this.serviceRasterInfo)?Promise.resolve(this.serviceRasterInfo):this._fetchAuxiliaryRasterInfo({serviceInfo:t,signal:e}).then((e=>(this._set("serviceRasterInfo",e),e))),i=this.renderingRule&&"none"!==this.renderingRule.functionName.toLowerCase()?this.generateRasterInfo(this.renderingRule,{signal:e}):null;return Promise.all([r,i]).then((e=>{e[1]?this._set("rasterInfo",e[1]):this._set("rasterInfo",e[0]),this.renderer&&(0,Oe.U0)(this.rasterInfo).indexOf(this.renderer.type)<0&&(this.renderer=null,Qe.warn("ArcGISImageService","Switching to the default renderer. Renderer applied is not valid for this Imagery Layer")),this._configDefaultRenderer(),this.watch("renderer",(()=>this._configDefaultRenderer())),this.watch("renderingRule",(e=>{(this.renderer||this._symbolizer||this.popupEnabled&&this.popupTemplate)&&this.generateRasterInfo(e).then((e=>{e&&(this.rasterInfo=e)}))}));const t=(0,s.pC)(this.serviceRasterInfo)&&this.serviceRasterInfo.multidimensionalInfo;t&&this._updateMultidimensionalDefinition(t)}))}async _initJobHandler(){if(null!=this._rasterJobHandler.connectionPromise)return this._rasterJobHandler.connectionPromise;const e=new Ce.Z;this._rasterJobHandler.connectionPromise=e.initialize().then((()=>{this._rasterJobHandler.instance=e}),(()=>null)),await this._rasterJobHandler.connectionPromise}_shutdownJobHandler(){this._rasterJobHandler.instance&&this._rasterJobHandler.instance.destroy(),this._rasterJobHandler.instance=null,this._rasterJobHandler.connectionPromise=null,this._rasterJobHandler.refCount=0}async _fetchCapabilities(e){return this.capabilities||await this._fetchServiceInfo(e),this.capabilities}async _fetchServiceInfo(e){var t;let r=this.sourceJSON;if(!r){const{data:t,ssl:i}=await(0,M.default)(this.parsedUrl.path,{query:this._getQueryParams(),signal:e});r=t,this.sourceJSON=r,i&&(this.url=this.url.replace(/^http:/i,"https:"))}if((null==(t=r.capabilities)?void 0:t.toLowerCase().split(",").map((e=>e.trim())).indexOf("tilesonly"))>-1)throw new O.Z("imagery-layer:fetch-service-info","use ImageryTileLayer to open tiles-only image services");this.read(r,{origin:"service",url:this.parsedUrl})}_isVectorFieldResampleFunction(e){if(!(0,s.pC)(e))return!1;const{functionName:t,functionArguments:r}=e,i="resample"===t.toLowerCase(),n=(null==r?void 0:r.ResampleType)||(null==r?void 0:r.resampleType);return i&&(7===n||10===n)}_isPicture(){return!this.format||this.format.indexOf("jpg")>-1||this.format.indexOf("png")>-1}_configDefaultRenderer(){if(!this._isPicture()&&!this.pixelFilter){if(!this.bandIds&&this.rasterInfo.bandCount>=3){const e=(0,Oe.YD)(this.rasterInfo);!e||3===this.rasterInfo.bandCount&&0===e[0]&&1===e[1]&&2===e[2]||(this.bandIds=e)}var e,t;this.renderer||(this.renderer=(0,Oe.Ob)(this.rasterInfo,{bandIds:this.bandIds,variableName:this.renderingRule?null:null==(e=this.mosaicRule)||null==(t=e.multidimensionalDefinition)?void 0:t[0].variableName})),this._symbolizer?(this._symbolizer.rendererJSON=(0,Oe.ol)(this.renderer.toJSON()),this._symbolizer.rasterInfo=this.rasterInfo):this._symbolizer=new Te.Z({rendererJSON:this.renderer.toJSON(),rasterInfo:this.rasterInfo}),this._symbolizer.bind()||(this._symbolizer=null)}}_clonePixelData(e){return null==e?e:{extent:e.extent&&e.extent.clone(),pixelBlock:e.pixelBlock&&e.pixelBlock.clone()}}_getQueryParams(e){const{raster:t,viewId:r}=this;return{raster:t,viewId:r,f:"json",...e}}_decodePixelBlock(e,t,r){return this._rasterJobHandler.instance?this._rasterJobHandler.instance.decode({data:e,options:t}):(0,Ne.J)(e,t,r)}async _fetchMultidimensionalInfo(e){var t;const r=await(0,M.default)(this.parsedUrl.path+"/multidimensionalInfo",{query:this._getQueryParams(),signal:e}).then((e=>{var t;return null==(t=e.data)?void 0:t.multidimensionalInfo}));
1return null!=(t=r.variables)&&t.length&&r.variables.forEach((e=>{var t;null!=(t=e.statistics)&&t.length&&e.statistics.forEach((e=>{e.avg=e.mean,e.stddev=e.standardDeviation}))})),r}_fetchAuxiliaryRasterInfo(e){const t=e&&e.serviceInfo;if(!t)return Promise.reject(new O.Z("imagery-layer:fetch-metadata","valid serviceInfo is required"));const r=e.renderingRule?JSON.stringify(e.renderingRule.toJSON()):null,i=e.signal,n=!!(t.hasRasterAttributeTable&&this.version>=10.1)&&(0,M.default)(this.parsedUrl.path+"/rasterAttributeTable",{query:this._getQueryParams({renderingRule:this.version>=10.1?r:null}),signal:i}).then((e=>k.default.fromJSON(e.data))).catch((()=>null)),s=!!(t.hasColormap&&this.version>=10.1)&&(0,M.default)(this.parsedUrl.path+"/colormap",{query:this._getQueryParams({renderingRule:this.version>=10.6?r:null}),signal:i}).then((e=>{var t;return null==(t=e.data)?void 0:t.colormap})),o=!!(t.hasHistograms&&this.version>=10.1)&&(0,M.default)(this.parsedUrl.path+"/histograms",{query:this._getQueryParams({renderingRule:this.version>=10.1?r:null}),signal:i}).then((e=>{var t;return null==(t=e.data)?void 0:t.histograms})),a=this.version>=10.3&&(0,M.default)(this.parsedUrl.path+"/keyProperties",{query:this._getQueryParams({renderingRule:r}),signal:i}).then((e=>e.data)).catch((()=>{})),l=!!(t.hasMultidimensions&&this.version>=10.3)&&this._fetchMultidimensionalInfo();return Promise.all([n,s,o,a,l]).then((e=>{let r=null;if(t.minValues&&t.minValues.length===t.bandCount){r=[];for(let e=0;e<t.minValues.length;e++)r.push({min:t.minValues[e],max:t.maxValues[e],avg:t.meanValues[e],stddev:t.stdvValues[e]})}const i=Math.ceil((t.extent.xmax-t.extent.xmin)/t.pixelSizeX-.1),n=Math.ceil((t.extent.ymax-t.extent.ymin)/t.pixelSizeY-.1),s=P.Z.fromJSON(t.spatialReference||t.extent.spatialReference);return new Ie.Z({width:i,height:n,bandCount:t.bandCount,extent:F.Z.fromJSON(t.extent),spatialReference:s,pixelSize:new j.Z({x:t.pixelSizeX,y:t.pixelSizeY,spatialReference:s}),pixelType:t.pixelType.toLowerCase(),statistics:r,attributeTable:e[0]||null,colormap:e[1]||null,histograms:e[2]||null,keyProperties:e[3]||{},multidimensionalInfo:e[4]||null})}))}_requestArrayBuffer(e){const{imageProps:t,requestAsImageElement:r,signal:i}=e;if(r&&!this.pixelFilter&&t.format&&t.format.indexOf("png")>-1)return(0,M.default)(this.parsedUrl.path+"/exportImage",{responseType:"image",query:this._getQueryParams({f:"image",...e.imageServiceParameters}),signal:i}).then((e=>({imageElement:e.data,params:t})));const n=this._initJobHandler(),s=(0,M.default)(this.parsedUrl.path+"/exportImage",{responseType:"array-buffer",query:this._getQueryParams({f:"image",...e.imageServiceParameters}),signal:i});return Promise.all([s,n]).then((e=>{const r=e[0].data,n=t.format||"jpgpng";let s=n;if("bsq"!==s&&"bip"!==s&&(s=(0,Ne.y)(r)),!s)throw new O.Z("imagery-layer:fetch-image","unsupported format signature "+String.fromCharCode.apply(null,new Uint8Array(r)));const o="gif"===n||"bmp"===n||n.indexOf("png")>-1&&("png"===s||"jpg"===s),a={signal:i};return o?(0,Ne.J)(r,{useCanvas:!0,...t},a).then((e=>({pixelData:{pixelBlock:e,extent:t.extent},params:t}))):this._decodePixelBlock(r,{width:t.width,height:t.height,planes:null,pixelType:null,noDataValue:null,format:n},a).then((e=>({pixelData:{pixelBlock:e,extent:t.extent},params:t})))}))}async _generateRasterInfo(e,t){const{data:r}=await(0,M.default)(this.parsedUrl.path,{query:this._getQueryParams({renderingRule:e}),...t});return await this._fetchAuxiliaryRasterInfo({serviceInfo:r,renderingRule:e,...t})}_isValidCustomizedMosaicRule(e){return e&&JSON.stringify(e.toJSON())!==JSON.stringify(this._defaultServiceMosaicRule&&this._defaultServiceMosaicRule.toJSON())}_updateMultidimensionalDefinition(e){if(this._isValidCustomizedMosaicRule(this.mosaicRule))return;const t=e.variables[0].dimensions,r=[];for(const i in t)if(t.hasOwnProperty(i)){const e=t[i],n=e.extent;let s=!0,o=[n[0]];e.hasRanges&&!0===e.hasRanges?(s=!1,o=[e.values[0]]):"stdz"===e.name.toLowerCase()&&Math.abs(n[1])<=Math.abs(n[0])&&(o=[n[1]]),r.push(new B.Z({variableName:"",dimensionName:t[i].name,isSlice:s,values:o}))}if(r.length>0){this.mosaicRule=this.mosaicRule||new we;const e=this.mosaicRule.multidimensionalDefinition;(!e||e&&e.length<=0)&&(this.mosaicRule.multidimensionalDefinition=r)}}_formatAttributeValue(e,t){if("string"==typeof e){const r=this.popupTemplate&&this.popupTemplate.fieldInfos,i=this._getFieldInfo(r,t),n=i&&i.format;if(n){let t,r;return e.trim().indexOf(",")>-1?(t=",",r=t+" ",this._formatDelimitedString(e,t,r,n)):e.trim().indexOf(" ")>-1?(t=r=" ",this._formatDelimitedString(e,t,r,n)):this._formatNumberFromString(e,n)}}return e}_getFieldInfo(e,t){if(!e||!e.length||!t)return;const r=t.toLowerCase();let i;return e.some((e=>!(!e.fieldName||e.fieldName.toLowerCase()!==r&&e.fieldName.toLowerCase()!==r.replace(/ /g,"_"))&&(i=e,!0))
1),i}_formatDelimitedString(e,t,r,i){return e&&t&&r&&i?e.trim().split(t).map((e=>this._formatNumberFromString(e,i))).join(r):e}_formatNumberFromString(e,t){if(!e||!t)return e;const r=Number(e);return isNaN(r)?e:t.format(r)}_processVisibleRastersResponse(e,t){t=t||{};const r=e.value,{templateRRFunctionNames:i,showNoDataRecords:n,returnDomainValues:o,templateFields:a}=t,l=e.processedValues;let u=e.catalogItems&&e.catalogItems.features,c=e.properties&&e.properties.Values&&e.properties.Values.map((e=>e.replace(/ /gi,", ")))||[];const p=this.objectIdField||"ObjectId",d="string"==typeof r&&r.toLowerCase().indexOf("nodata")>-1,m=[];if(r&&!u&&!d){const e={};e[p]=0,c=[r],u=[new V.Z(this.fullExtent,null,e)]}if(!u)return[];let h,y,f;this._updateResponseFieldNames(u,a);for(let g=0;g<u.length;g++){if(h=u[g],null!=r&&!d){if(y=c[g],f=this.renderingRule&&l&&l.length>0&&i&&i.length>0&&i.indexOf(this.renderingRule.functionName)>-1?l[i.indexOf(this.renderingRule.functionName)]:r,"nodata"===y.toLowerCase()&&!n)continue;const e="Raster.ItemPixelValue",t="Raster.ServicePixelValue";h.attributes[e]=this._formatAttributeValue(y,e),h.attributes[t]=this._formatAttributeValue(f,t),this._updateFeatureWithMagDirValues(h,y);const o=this.fields&&this.fields.length>0;let a=this.renderingRule&&(0,s.pC)(this.serviceRasterInfo)&&this.serviceRasterInfo.attributeTable?o?y:r:f;this.renderingRule||(a=o?y:r),this._updateFeatureWithRasterAttributeTableValues(h,a)}if(h.sourceLayer=this,o&&this._updateFeatureWithDomainValues(h),i&&l&&i.length===l.length)for(let e=0;e<i.length;e++){const t="Raster.ServicePixelValue."+i[e];h.attributes[t]=this._formatAttributeValue(l[e],t)}m.push(u[g])}return m}_updateFeatureWithRasterAttributeTableValues(e,t){const r=this.rasterInfo&&this.rasterInfo.attributeTable||(0,s.pC)(this.serviceRasterInfo)&&this.serviceRasterInfo.attributeTable,i=r&&r.features;if(!i)return;const n=r.fields,o=n.map((e=>e.name)).filter((e=>"value"===e.toLowerCase())),a=o&&o[0];if(!a)return;const l=i.filter((e=>e.attributes[a]===(null!=t?parseInt(t,10):null)));l&&l[0]&&n.forEach((t=>{const r=this.rasterAttributeTableFieldPrefix+t.name;e.attributes[r]=this._formatAttributeValue(l[0].attributes[t.name],r)}))}_updateFeatureWithMagDirValues(e,t){if(!this.pixelFilter||"esriImageServiceDataTypeVector-UV"!==this.serviceDataType&&"esriImageServiceDataTypeVector-MagDir"!==this.serviceDataType)return;const r=t.replace(" ",",").split(",").map((e=>parseFloat(e))),i=r.map((e=>[e])),n=r.map((e=>({minValue:e,maxValue:e,noDataValue:null}))),s=new J.Z({height:1,width:1,pixelType:"f32",pixels:i,statistics:n});this.pixelFilter({pixelBlock:s,extent:new F.Z(0,0,0,0,this.spatialReference)}),e.attributes["Raster.Magnitude"]=s.pixels[0][0],e.attributes["Raster.Direction"]=s.pixels[1][0]}_updateFeatureWithDomainValues(e){const t=this.fields&&this.fields.filter((e=>e.domain&&"coded-value"===e.domain.type));null!=t&&t.forEach((t=>{const r=e.attributes[t.name];if(null!=r){const i=t.domain.codedValues.filter((e=>e.code===r))[0];i&&(e.attributes[t.name]=i.name)}}))}_updateResponseFieldNames(e,t){if(!t||t.length<1)return;const r=this.fieldsIndex;r&&e.forEach((e=>{if(e&&e.attributes)for(const i of t)if(r.has(i)){const t=r.get(i).name;t!==i&&(e.attributes[i]=e.attributes[t],delete e.attributes[t])}}))}_updateRenderingRulesFunctionName(e,t){if(!e||e.length<1)return;if("Raw"===e)return e.replace("Raw","None");const r=e.toLowerCase().replace(/ /gi,"_");return t.has(r)?t.get(r):e}_isRFTJson(e){return e.name&&e.arguments&&e.function&&e.hasOwnProperty("functionType")}_readCapabilities(e){const t=e.capabilities?e.capabilities.toLowerCase().split(",").map((e=>e.trim())):["image","catalog"],{currentVersion:r,advancedQueryCapabilities:i,maxRecordCount:n}=e,s=t.indexOf("image")>-1,o="esriImageServiceDataTypeElevation"===e.serviceDataType,a=!!(e.spatialReference||e.extent&&e.extent.spatialReference);return{operations:{supportsComputeHistograms:s,supportsExportImage:s,supportsIdentify:s,supportsMeasure:t.indexOf("mensuration")>-1&&a,supportsDownload:t.indexOf("download")>-1,supportsQuery:t.indexOf("catalog")>-1&&e.fields&&e.fields.length>0,supportsGetSamples:r>=10.2&&s,supportsProject:r>=10.3&&s,supportsComputeStatisticsHistograms:r>=10.4&&s,supportsQueryBoundary:r>=10.6&&s,supportsCalculateVolume:r>=10.7&&o,supportsComputePixelLocation:r>=10.7&&t.indexOf("catalog")>-1},query:{supportsStatistics:!(!i||!i.supportsStatistics),supportsOrderBy:!(!i||!i.supportsOrderBy),supportsDistinct:!(!i||!i.supportsDistinct),supportsPagination:!(!i||!i.supportsPagination),supportsStandardizedQueriesOnly:!(!i||!i.useStandardizedQueries),maxRecordCount:n}}}};return(0,n._)([(0,l.Cb)()],t.prototype,"_functionRasterInfos",void 0),(0,n._)([(0,l.Cb)()],t.prototype,"_rasterJobHandler",void 0),(0,n._)([(0,l.Cb)()],t.prototype,"_symbolizer",void 0),(0,n._)([(0,l.Cb)()],t.prototype,"_defaultServiceMosaicRule",void 0),(0,n._)([(0,N.r)("_defaultServiceMosaicRule",["defaultMosaicMethod"])],t.prototype,"readDefaultServiceMosaicRule",null),(0,n._)([(0,l.Cb)()],t.prototype,"_cachedRendererJson",void 0),(0,n._)([(0,l.Cb)()],t.prototype,"rasterAttributeTableFieldPrefix",void 0),(0,n._)([(0,l.Cb)({readOnly:!0}
1)],t.prototype,"rasterFunctionNamesIndex",null),(0,n._)([(0,l.Cb)({readOnly:!0})],t.prototype,"queryTask",null),(0,n._)([(0,l.Cb)()],t.prototype,"adjustAspectRatio",void 0),(0,n._)([(0,l.Cb)({readOnly:!0}),(0,I.B)("serviceRasterInfo.bandCount")],t.prototype,"bandCount",void 0),(0,n._)([(0,l.Cb)({type:[a.z8],json:{write:!0}})],t.prototype,"bandIds",void 0),(0,n._)([(0,N.r)("bandIds")],t.prototype,"readBandIds",null),(0,n._)([(0,l.Cb)({readOnly:!0,json:{read:!1}})],t.prototype,"capabilities",void 0),(0,n._)([(0,N.r)("service","capabilities",["capabilities","currentVersion","serviceDataType"])],t.prototype,"readCapabilities",null),(0,n._)([(0,l.Cb)({type:Number})],t.prototype,"compressionQuality",void 0),(0,n._)([(0,c.c)("compressionQuality")],t.prototype,"writeCompressionQuality",null),(0,n._)([(0,l.Cb)({type:Number})],t.prototype,"compressionTolerance",void 0),(0,n._)([(0,c.c)("compressionTolerance")],t.prototype,"writeCompressionTolerance",null),(0,n._)([(0,l.Cb)({json:{read:{source:"copyrightText"}}})],t.prototype,"copyright",void 0),(0,n._)([(0,l.Cb)({type:String,json:{read:{source:"layerDefinition.definitionExpression"},write:{target:"layerDefinition.definitionExpression"}}})],t.prototype,"definitionExpression",void 0),(0,n._)([(0,l.Cb)({readOnly:!0,constructOnly:!0})],t.prototype,"exportImageServiceParameters",void 0),(0,n._)([(0,l.Cb)()],t.prototype,"rasterInfo",void 0),(0,n._)([(0,l.Cb)({readOnly:!0,type:[q.Z]})],t.prototype,"fields",void 0),(0,n._)([(0,l.Cb)({readOnly:!0})],t.prototype,"fieldsIndex",null),(0,n._)([(0,l.Cb)({type:["png","png8","png24","png32","jpg","bmp","gif","jpgpng","lerc","tiff"],json:{write:!0}})],t.prototype,"format",null),(0,n._)([(0,N.r)("service","format",["serviceDataType"])],t.prototype,"readFormat",null),(0,n._)([(0,l.Cb)({type:F.Z})],t.prototype,"fullExtent",void 0),(0,n._)([(0,l.Cb)({readOnly:!0})],t.prototype,"hasMultidimensions",void 0),(0,n._)([(0,l.Cb)({json:{read:{source:"maxImageHeight"}}})],t.prototype,"imageMaxHeight",void 0),(0,n._)([(0,l.Cb)({json:{read:{source:"maxImageWidth"}}})],t.prototype,"imageMaxWidth",void 0),(0,n._)([(0,l.Cb)({type:String,json:{type:Ue.jsonValues,read:Ue.read,write:Ue.write}})],t.prototype,"interpolation",void 0),(0,n._)([(0,l.Cb)()],t.prototype,"minScale",void 0),(0,n._)([(0,N.r)("service","minScale")],t.prototype,"readMinScale",null),(0,n._)([(0,l.Cb)()],t.prototype,"maxScale",void 0),(0,n._)([(0,N.r)("service","maxScale")],t.prototype,"readMaxScale",null),(0,n._)([(0,l.Cb)({type:we})],t.prototype,"mosaicRule",null),(0,n._)([(0,N.r)("mosaicRule",["mosaicRule","defaultMosaicMethod"])],t.prototype,"readMosaicRule",null),(0,n._)([(0,c.c)("mosaicRule")],t.prototype,"writeMosaicRule",null),(0,n._)([(0,l.Cb)({readOnly:!0}),(0,I.B)("serviceRasterInfo.multidimensionalInfo")],t.prototype,"multidimensionalInfo",void 0),(0,n._)([(0,l.Cb)({json:{type:a.z8}})],t.prototype,"noData",void 0),(0,n._)([(0,c.c)("noData")],t.prototype,"writeNoData",null),(0,n._)([(0,l.Cb)({type:String,json:{type:He.jsonValues,read:He.read,write:He.write}})],t.prototype,"noDataInterpretation",void 0),(0,n._)([(0,l.Cb)({type:String,readOnly:!0,json:{read:{source:["fields"]}}})],t.prototype,"objectIdField",void 0),(0,n._)([(0,N.r)("objectIdField")],t.prototype,"readObjectIdField",null),(0,n._)([(0,l.Cb)({readOnly:!0})],t.prototype,"parsedUrl",null),(0,n._)([(0,l.Cb)({readOnly:!0}),(0,I.B)("serviceRasterInfo.pixelSize.x")],t.prototype,"pixelSizeX",void 0),(0,n._)([(0,l.Cb)({readOnly:!0}),(0,I.B)("serviceRasterInfo.pixelSize.y")],t.prototype,"pixelSizeY",void 0),(0,n._)([(0,l.Cb)({type:Function})],t.prototype,"pixelFilter",void 0),(0,n._)([(0,l.Cb)()],t.prototype,"raster",void 0),(0,n._)([(0,l.Cb)()],t.prototype,"viewId",void 0),(0,n._)([(0,l.Cb)({types:z.dr,json:{name:"layerDefinition.drawingInfo.renderer",origins:{"web-scene":{types:z.FK,name:"layerDefinition.drawingInfo.renderer",write:{overridePolicy:e=>({enabled:e&&"vector-field"!==e.type})}}}}})],t.prototype,"renderer",void 0),(0,n._)([(0,N.r)("renderer")],t.prototype,"readRenderer",null),(0,n._)([(0,c.c)("renderer")],t.prototype,"writeRenderer",null),(0,n._)([(0,l.Cb)(y.Oh)],t.prototype,"opacity",void 0),(0,n._)([(0,l.Cb)({readOnly:!0}),(0,I.B)("serviceRasterInfo.attributeTable")],t.prototype,"rasterAttributeTable",void 0),(0,n._)([(0,l.Cb)({readOnly:!0})],t.prototype,"rasterFields",null),(0,n._)([(0,l.Cb)({readOnly:!0}
1)],t.prototype,"rasterFunctionInfos",void 0),(0,n._)([(0,l.Cb)({type:te})],t.prototype,"renderingRule",null),(0,n._)([(0,N.r)("renderingRule",["renderingRule","rasterFunctionInfos"])],t.prototype,"readRenderingRule",null),(0,n._)([(0,c.c)("renderingRule")],t.prototype,"writeRenderingRule",null),(0,n._)([(0,l.Cb)()],t.prototype,"serviceDataType",void 0),(0,n._)([(0,l.Cb)({readOnly:!0,type:P.Z})],t.prototype,"spatialReference",void 0),(0,n._)([(0,N.r)("spatialReference",["spatialReference","extent"])],t.prototype,"readSpatialReference",null),(0,n._)([(0,l.Cb)({json:{type:We.jsonValues}})],t.prototype,"pixelType",void 0),(0,n._)([(0,N.r)("pixelType")],t.prototype,"readPixelType",null),(0,n._)([(0,c.c)("pixelType")],t.prototype,"writePixelType",null),(0,n._)([(0,l.Cb)({constructOnly:!0,type:Ie.Z})],t.prototype,"serviceRasterInfo",void 0),(0,n._)([(0,l.Cb)()],t.prototype,"sourceJSON",void 0),(0,n._)([(0,l.Cb)(y.HQ)],t.prototype,"url",void 0),(0,n._)([(0,l.Cb)({readOnly:!0})],t.prototype,"version",void 0),(0,n._)([(0,N.r)("version",["currentVersion","fields","timeInfo"])],t.prototype,"readVersion",null),t=(0,n._)([(0,u.j)("esri.layers.mixins.ArcGISImageService")],t),t};let Ke=class extends((0,b.h)((0,_.n)((0,R.Q)((0,w.M)((0,f.q)((0,v.I)($e((0,g.Y)((0,h.R)(m.Z)))))))))){constructor(...e){super(...e),this.legendEnabled=!0,this.isReference=null,this.operationalLayerType="ArcGISImageServiceLayer",this.popupEnabled=!0,this.popupTemplate=null,this.type="imagery"}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}load(e){const t=(0,s.pC)(e)?e.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Image Service"]},e).then((()=>this._fetchService(t)),(()=>this._fetchService(t)))),Promise.resolve(this)}writeOperationalLayerType(e,t,r){var i;const n="vector-field"===(null==(i=this.renderer)?void 0:i.type);t[r]=n?"ArcGISImageServiceVectorLayer":"ArcGISImageServiceLayer"}get defaultPopupTemplate(){return this.createPopupTemplate()}createPopupTemplate(e){const t=this.rasterFields,r=this.title,i=new Set;let n=!1,s=!1;this.capabilities&&(n=this.capabilities.operations.supportsQuery&&this.fields&&this.fields.length>0,s=n&&("esriImageServiceDataTypeVector-UV"===this.serviceDataType||"esriImageServiceDataTypeVector-MagDir"===this.serviceDataType));const o=new Set;n&&(o.add("raster.itempixelvalue"),s&&o.add("raster.magnitude").add("raster.direction"));for(const a of t){const e=a.name.toLowerCase();o.has(e)||e.indexOf("raster.servicepixelvalue.")>-1||i.add(a.name)}return(0,x.eZ)({fields:t,title:r},{...e,visibleFieldNames:i})}redraw(){this.emit("redraw")}};(0,n._)([(0,l.Cb)(y.rn)],Ke.prototype,"legendEnabled",void 0),(0,n._)([(0,l.Cb)({type:["show","hide"]})],Ke.prototype,"listMode",void 0),(0,n._)([(0,l.Cb)({type:Boolean,json:{read:!1,write:{enabled:!0,overridePolicy:()=>({enabled:!1})}}})],Ke.prototype,"isReference",void 0),(0,n._)([(0,l.Cb)({type:["ArcGISImageServiceLayer"],json:{origins:{"web-map":{type:["ArcGISImageServiceLayer","ArcGISImageServiceVectorLayer"],read:!1,write:{target:"layerType",ignoreOrigin:!0}}}}})],Ke.prototype,"operationalLayerType",void 0),(0,n._)([(0,c.c)("web-map","operationalLayerType")],Ke.prototype,"writeOperationalLayerType",null),(0,n._)([(0,l.Cb)(y.C_)],Ke.prototype,"popupEnabled",void 0),(0,n._)([(0,l.Cb)({type:d.Z,json:{read:{source:"popupInfo"},write:{target:"popupInfo"}}})],Ke.prototype,"popupTemplate",void 0),(0,n._)([(0,l.Cb)({readOnly:!0})],Ke.prototype,"defaultPopupTemplate",null),(0,n._)([(0,l.Cb)({readOnly:!0,json:{read:!1}})],Ke.prototype,"type",void 0),Ke=(0,n._)([(0,u.j)("esri.layers.ImageryLayer")],Ke);var et=Ke},57714:function(e,t,r){r.d(t,{X:function(){return c},O:function(){return u}});var i=r(3466),n=r(88256),s=r(11509),o=r(72635),a=r(18382);function l(e){const t=e.toJSON();return t.attachmentTypes&&(t.attachmentTypes=t.attachmentTypes.join(",")),t.keywords&&(t.keywords=t.keywords.join(",")),t.globalIds&&(t.globalIds=t.globalIds.join(",")),t.objectIds&&(t.objectIds=t.objectIds.join(",")),t.size&&(t.size=t.size.join(",")),t}function u(e,t){const r={};for(const s of e){const{parentObjectId:e,parentGlobalId:a,attachmentInfos:l}=s;for(const s of l){const{id:l}=s,u=(0,i.qg)((0,n.Dp)(`${t}/${e}/attachments/${l}`)),c=o.Z.fromJSON(s);c.set({url:u,parentObjectId:e,parentGlobalId:a}),r[e]?r[e].push(c):r[e]=[c]}}return r}function c(e,t,r){let i={query:(0,a.A)({...e.query,f:"json",...l(t)})};return r&&(i={...r,...i,query:{...r.query,...i.query}}),(0,s.default)(e.path+"/queryAttachments",i)}},72635:function(e,t,r){r.d(t,{Z:function(){return d}});var i,n=r(36663),s=(r(39994),r(13802),r(7283)),o=r(81977),a=r(66645),l=(r(3466),r(12173),r(51876),r(49004));function u(e){const{exifInfo:t,exifName:r,tagName:i}=e;if(!t||!r||!i)return null;const n=t.find((e=>e.name===r));return n?function(e){const{tagName:t,tags:r}=e;if(!r||!t)return null;const i=r.find((e=>e.name===t));return i&&i.value||null}({tagName:i,tags:n.tags}):null}const c={1:{id:1,rotation:0,mirrored:!1},2:{id:2,rotation:0,mirrored:!0},3:{id:3,rotation:180,mirrored:!1},4:{id:4,rotation:180,mirrored:!0},5:{id:5,rotation:-90,mirrored:!0},6:{id:6,rotation:90,mirrored:!1},7:{id:7,rotation:90,mirrored:!0},8:{id:8,rotation:-90,mirrored:!1}};let p=i=class extends l.wq{constructor(e){super(e),this.contentType=null,this.exifInfo=null,this.id=null,this.globalId=null,this.keywords=null,this.name=null,this.parentGlobalId=null,this.parentObjectId=null,this.size=null,this.url=null}get orientationInfo(){const{exifInfo:e}=this,t=u({exifName:"Exif IFD0",tagName:"Orientation",exifInfo:e});return c[t]||null}clone(){return new i({contentType:this.contentType,exifInfo:this.exifInfo,id:this.id,globalId:this.globalId,keywords:this.keywords,name:this.name,parentGlobalId:this.parentGlobalId,parentObjectId:this.parentObjectId,size:this.size,url:this.url})}};(0,n._)([(0,o.Cb)({type:String})],p.prototype,"contentType",void 0),(0,n._)([(0,o.Cb)()],p.prototype,"exifInfo",void 0),(0,n._)([(0,o.Cb)({readOnly:!0})],p.prototype,"orientationInfo",null),(0,n._)([(0,o.Cb)({type:s.z8})],p.prototype,"id",void 0),(0,n._)([(0,o.Cb)({type:String})],p.prototype,"globalId",void 0),(0,n._)([(0,o.Cb)({type:String})],p.prototype,"keywords",void 0),(0,n._)([(0,o.Cb)({type:String})],p.prototype,"name",void 0),(0,n._)([(0,o.Cb)({json:{read:!1}})],p.prototype,"parentGlobalId",void 0),(0,n._)([(0,o.Cb)({json:{read:!1}})],p.prototype,"parentObjectId",void 0),(0,n._)([(0,o.Cb)({type:s.z8})],p.prototype,"size",void 0),(0,n._)([(0,o.Cb)({json:{read:!1}})],p.prototype,"url",void 0),p=i=(0,n._)([(0,a.j)("esri.layers.support.AttachmentInfo")],p);var d=p},23277:function(e,t,r){r.d(t,{Z:function(){return J}});var i=r(36663),n=r(39994),s=r(61681),o=(r(13802),r(7283),r(81977)),a=r(66645),l=(r(3466),r(12173),r(51876),r(41017)),u=r(6095),c=r(27746),p=r(40304),d=r(14755),m=r(84238),h=r(57714);var y=r(28500);var f=r(91772);r(91957);async function g(e,t,r){const i=(0,m.en)(e),n={...r},s=c.Z.from(t),{data:o}=await(0,y.executeQuery)(i,s,s.sourceSpatialReference,n);return o}var b=r(27755),v=r(12065),R=r(2037);function w(e,t){return t}
1function _(e,t,r,i){switch(r){case 0:return C(e,t+i,0);case 1:return"lowerLeft"===e.originPosition?C(e,t+i,1):function({translate:e,scale:t},r,i){return e[i]-r*t[i]}(e,t+i,1)}}function x(e,t,r,i){return 2===r?C(e,t,2):_(e,t,r,i)}function S(e,t,r,i){return 2===r?C(e,t,3):_(e,t,r,i)}function I(e,t,r,i){return 3===r?C(e,t,3):x(e,t,r,i)}function C({translate:e,scale:t},r,i){return e[i]+r*t[i]}class N{constructor(e){this.options=e,this.geometryTypes=["esriGeometryPoint","esriGeometryMultipoint","esriGeometryPolyline","esriGeometryPolygon"],this.previousCoordinate=[0,0],this.transform=null,this.applyTransform=w,this.lengths=[],this.currentLengthIndex=0,this.toAddInCurrentPath=0,this.vertexDimension=0,this.coordinateBuffer=null,this.coordinateBufferPtr=0,this.AttributesConstructor=function(){}}createFeatureResult(){return{fields:[],features:[]}}finishFeatureResult(e){if(this.options.applyTransform&&(e.transform=null),this.AttributesConstructor=function(){},this.coordinateBuffer=null,this.lengths.length=0,!e.hasZ)return;const t=(0,R.k)(e.geometryType,this.options.sourceSpatialReference,e.spatialReference);if(t)for(const r of e.features)t(r.geometry)}createSpatialReference(){return{}}addField(e,t){e.fields.push(t);const r=e.fields.map((e=>e.name));this.AttributesConstructor=function(){for(const e of r)this[e]=null}}addFeature(e,t){e.features.push(t)}prepareFeatures(e){switch(this.transform=e.transform,this.options.applyTransform&&e.transform&&(this.applyTransform=this.deriveApplyTransform(e)),this.vertexDimension=2,e.hasZ&&this.vertexDimension++,e.hasM&&this.vertexDimension++,e.geometryType){case"esriGeometryPoint":this.addCoordinate=(e,t,r)=>this.addCoordinatePoint(e,t,r),this.createGeometry=e=>this.createPointGeometry(e);break;case"esriGeometryPolygon":this.addCoordinate=(e,t,r)=>this.addCoordinatePolygon(e,t,r),this.createGeometry=e=>this.createPolygonGeometry(e);break;case"esriGeometryPolyline":this.addCoordinate=(e,t,r)=>this.addCoordinatePolyline(e,t,r),this.createGeometry=e=>this.createPolylineGeometry(e);break;case"esriGeometryMultipoint":this.addCoordinate=(e,t,r)=>this.addCoordinateMultipoint(e,t,r),this.createGeometry=e=>this.createMultipointGeometry(e);break;default:(0,b.Bg)(e.geometryType)}}createFeature(){return this.lengths.length=0,this.currentLengthIndex=0,this.previousCoordinate[0]=0,this.previousCoordinate[1]=0,this.coordinateBuffer=null,this.coordinateBufferPtr=0,{attributes:new this.AttributesConstructor}}allocateCoordinates(){}addLength(e,t,r){0===this.lengths.length&&(this.toAddInCurrentPath=t),this.lengths.push(t)}addQueryGeometry(e,t){const{queryGeometry:r,queryGeometryType:i}=t,n=(0,v.$g)(r.clone(),r,!1,!1,this.transform),s=(0,v.di)(n,i,!1,!1);e.queryGeometryType=i,e.queryGeometry={...s}}createPointGeometry(e){const t={x:0,y:0,spatialReference:e.spatialReference};return e.hasZ&&(t.z=0),e.hasM&&(t.m=0),t}addCoordinatePoint(e,t,r){switch(t=this.applyTransform(this.transform,t,r,0),r){case 0:e.x=t;break;case 1:e.y=t;break;case 2:"z"in e?e.z=t:e.m=t;break;case 3:e.m=t}}transformPathLikeValue(e,t){let r=0;return t<=1&&(r=this.previousCoordinate[t],this.previousCoordinate[t]+=e),this.applyTransform(this.transform,e,t,r)}addCoordinatePolyline(e,t,r){this.dehydratedAddPointsCoordinate(e.paths,t,r)}addCoordinatePolygon(e,t,r){this.dehydratedAddPointsCoordinate(e.rings,t,r)}addCoordinateMultipoint(e,t,r){0===r&&e.points.push([]);const i=this.transformPathLikeValue(t,r);e.points[e.points.length-1].push(i)}createPolygonGeometry(e){return{rings:[[]],spatialReference:e.spatialReference,hasZ:!!e.hasZ,hasM:!!e.hasM}}createPolylineGeometry(e){return{paths:[[]],spatialReference:e.spatialReference,hasZ:!!e.hasZ,hasM:!!e.hasM}}createMultipointGeometry(e){return{points:[],spatialReference:e.spatialReference,hasZ:!!e.hasZ,hasM:!!e.hasM}}dehydratedAddPointsCoordinate(e,t,r){0===r&&0==this.toAddInCurrentPath--&&(e.push([]),this.toAddInCurrentPath=this.lengths[++this.currentLengthIndex]-1,this.previousCoordinate[0]=0,this.previousCoordinate[1]=0);const i=this.transformPathLikeValue(t,r),n=e[e.length-1];0===r&&(this.coordinateBufferPtr=0,this.coordinateBuffer=new Array(this.vertexDimension),n.push(this.coordinateBuffer)),this.coordinateBuffer[this.coordinateBufferPtr++]=i}deriveApplyTransform(e){const{hasZ:t,hasM:r}=e;return t&&r?I:t?x:r?S:_}}async function O(e,t,r){const i=(0,m.en)(e),n={...r},s=c.Z.from(t),o=!s.quantizationParameters,{data:a}=await(0,y.executeQueryPBF)(i,s,new N({sourceSpatialReference:s.sourceSpatialReference,applyTransform:o}),n);return a}var T=r(11509),P=r(18382);function j(e,t){const r=e.toJSON();return r.objectIds&&(r.objectIds=r.objectIds.join(",")),r.orderByFields&&(r.orderByFields=r.orderByFields.join(",")),!r.outFields||null!=t&&t.returnCountOnly?delete r.outFields:-1!==r.outFields.indexOf("*")?r.outFields="*":r.outFields=r.outFields.join(","),r.outSpatialReference&&(r.outSR=r.outSR.wkid||JSON.stringify(r.outSR.toJSON()),delete r.outSpatialReference),r.dynamicDataSource&&(r.layer=JSON.stringify({source:r.dynamicDataSource}),delete r.dynamicDataSource),r}async function F(e,t,r={},i){const n=(0,P.A)({...e.query,f:"json",...i,...j(t,i)});return(0,T.default)(e.path+"/queryRelatedRecords",{...r,query:{...r.query,...n}})}async function D(e,t,r){t=p.Z.from(t);return async function(e,t,r){const i=await F(e,t,r),n=i.data,s=n.geometryType,o=n.spatialReference,a={};for(const l of n.relatedRecordGroups){const e={fields:void 0,objectIdFieldName:void 0,geometryType:s,spatialReference:o,hasZ:!!n.hasZ,hasM:!!n.hasM,features:l.relatedRecords};if(null!=l.objectId)a[l.objectId]=e;else for(const t in l)l.hasOwnProperty(t)&&"relatedRecords"!==t&&(a[l[t]]=e)}return{...i,data:a}}((0,m.en)(e),t,r).then((e=>{const t=e.data,r={};return Object.keys(t).forEach((e=>r[e]=l.default.fromJSON(t[e]))),r}))}async function A(e,t,r){t=p.Z.from(t);return async function(e,t,r){const i=await F(e,t,r,{returnCountOnly:!0}),n=i.data,s={};for(const o of n.relatedRecordGroups)null!=o.objectId&&(s[o.objectId]=o.count);return{...i,data:s}}((0,m.en)(e),t,{...r}).then((e=>e.data))}var M=r(42964);let V=class extends M.Z{constructor(e){super(e),this.dynamicDataSource=null,this.format="json",this.gdbVersion=null,this.sourceSpatialReference=null}execute(e,t){return this.executeJSON(e,t).then((e=>l.default.fromJSON(e)))}async executeJSON(e,t){var r;const i={...this.requestOptions,...t},s=this._normalizeQuery(e),o=null!=(null==(r=e.outStatistics)?void 0:r[0]),a=(0,n.Z)("featurelayer-pbf-statistics"),l=!o||a;let u;if("pbf"===this.format&&l)try{u=await O(this.url,s,i)}catch(c){if("query:parsing-pbf"!==c.name)throw c;this.format="json"}return"json"!==this.format&&l||(u=await g(this.url,s,i)),this._normalizeFields(u.fields),u}executeForCount(e,t){const r={...this.requestOptions,...t},i=this._normalizeQuery(e);return async function(e,t,r){const i=(0,m.en)(e);return(0,y.executeQueryForCount)(i,c.Z.from(t),{...r}).then((e=>e.data.count))}(this.url,i,r)}executeForExtent(e,t){const r={...this.requestOptions,...t},i=this._normalizeQuery(e);return async function(e,t,r){const i=(0,m.en)(e);return(0,y.executeQueryForExtent)(i,c.Z.from(t),{...r}).then((e=>({count:e.data.count,extent:f.Z.fromJSON(e.data.extent)})))}(this.url,i,r)}executeForIds(e,t){const r={...this.requestOptions,...t},i=this._normalizeQuery(e);return async function(e,t,r){const i=(0,m.en)(e);return(0,y.executeQueryForIds)(i,c.Z.from(t),{...r}).then((e=>e.data.objectIds))}(this.url,i,r)}executeRelationshipQuery(e,t){e=p.Z.from(e);const r={...this.requestOptions,...t};return(this.gdbVersion||this.dynamicDataSource)&&((e=e.clone()).gdbVersion=e.gdbVersion||this.gdbVersion,e.dynamicDataSource=e.dynamicDataSource||this.dynamicDataSource),D(this.url,e,r)}executeRelationshipQueryForCount(e,t){e=p.Z.from(e);const r={...this.requestOptions,...t};return(this.gdbVersion||this.dynamicDataSource)&&((e=e.clone()).gdbVersion=e.gdbVersion||this.gdbVersion,e.dynamicDataSource=e.dynamicDataSource||this.dynamicDataSource),A(this.url,e,r)}executeAttachmentQuery(e,t){const r={...this.requestOptions,...t};return async function(e,t,r){const i=(0,m.en)(e);return(0,h.X)(i,d.Z.from(t),{...r}).then((e=>(0,h.O)(e.data.attachmentGroups,i.path)))}(this.url,e,r)}_normalizeQuery(e){const t=c.Z.from(e);if(t.sourceSpatialReference=t.sourceSpatialReference||this.sourceSpatialReference,!this.gdbVersion&&!this.dynamicDataSource)return t;const r=t===e?t.clone():t;return r.gdbVersion=e.gdbVersion||this.gdbVersion,r.dynamicDataSource=e.dynamicDataSource?u.n.from(e.dynamicDataSource):this.dynamicDataSource,r}_normalizeFields(e){if((0,s.pC)(this.fieldsIndex)&&(0,s.pC)(e))for(const t of e){const e=this.fieldsIndex.get(t.name);e&&Object.assign(t,e.toJSON())}}};(0,i._)([(0,o.Cb)({type:u.n})],V.prototype,"dynamicDataSource",void 0),(0,i._)([(0,o.Cb)()],V.prototype,"fieldsIndex",void 0),(0,i._)([(0,o.Cb)()],V.prototype,"format",void 0),(0,i._)([(0,o.Cb)()],V.prototype,"gdbVersion",void 0),(0,i._)([(0,o.Cb)()],V.prototype,"sourceSpatialReference",void 0),V=(0,i._)([(0,a.j)("esri.tasks.QueryTask")],V);var J=V}}]);

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.