{"version":3,"sources":["webpack:///./node_modules/arcgis-js-api/views/2d/layers/ImageryTileLayerView2D.js","webpack:///./node_modules/arcgis-js-api/geometry/geometryAdapters/json.js","webpack:///./node_modules/arcgis-js-api/views/layers/support/popupUtils.js","webpack:///./node_modules/arcgis-js-api/views/2d/engine/RasterTileContainer.js","webpack:///./node_modules/arcgis-js-api/views/2d/engine/webgl/ClippingInfo.js","webpack:///./node_modules/arcgis-js-api/views/support/drapedUtils.js","webpack:///./node_modules/arcgis-js-api/layers/graphics/data/projectionSupport.js","webpack:///./node_modules/arcgis-js-api/layers/support/rasterFunctions/pixelUtils.js","webpack:///./node_modules/arcgis-js-api/layers/support/rasterDatasets/RawBlockCache.js","webpack:///./node_modules/arcgis-js-api/views/layers/support/ClipArea.js","webpack:///./node_modules/arcgis-js-api/layers/support/PixelBlock.js","webpack:///./node_modules/arcgis-js-api/layers/support/rasterDatasets/EphemeralBlockCache.js","webpack:///./node_modules/arcgis-js-api/views/2d/engine/RasterBitmap.js","webpack:///./node_modules/arcgis-js-api/layers/support/rasterFunctions/rasterProjectionHelper.js","webpack:///./node_modules/arcgis-js-api/views/2d/engine/webgl/Mesh2D.js","webpack:///./node_modules/arcgis-js-api/views/layers/ImageryTileLayerView.js","webpack:///./node_modules/arcgis-js-api/views/layers/support/Geometry.js","webpack:///./node_modules/arcgis-js-api/views/2d/engine/webgl/TileContainer.js","webpack:///./node_modules/arcgis-js-api/views/layers/support/Path.js","webpack:///./node_modules/arcgis-js-api/views/2d/engine/RasterTile.js","webpack:///./node_modules/arcgis-js-api/views/2d/layers/LayerView2D.js","webpack:///./node_modules/arcgis-js-api/views/layers/support/ClipRect.js","webpack:///./node_modules/arcgis-js-api/renderers/support/clickToleranceUtils.js","webpack:///./node_modules/arcgis-js-api/views/2d/engine/webgl/WGLContainer.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA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,4BAA4B,sBAAsB,oBAAoB,4BAA4B,wBAAwB,kBAAkB,kBAAkB,YAAY,IAAI,YAAY,sBAAsB,qBAAqB,wBAAwB,0CAA0C,4BAA4B,QAAQ,+CAA+C,gBAAgB,KAAK,4BAA4B,QAAQ,8CAA8C,gBAAgB,KAAK,iBAAiB;AAAA,oGAAE,C;;;;;;;ACxB5oC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,iCAAO,CAAC,kCAAS,CAAC,OAAS,CAAC,2BAAO,CAAC,2BAAsB,CAAC,2BAAwB,CAAC,2BAAY,CAAC,2BAAc,CAAC,2BAAgB,CAAC,2BAAS,CAAC,mCAAE,4BAA4B,aAAa,sCAAsC,SAAS,EAAE,kBAAkB,aAAa,8CAA8C,mCAAmC,mEAAmE,gBAAgB,iDAAiD,iBAAiB,8BAA8B,+BAA+B,mCAAmC,6CAA6C,0IAA0I,wLAAwL,wCAAwC,uFAAuF,iCAAiC,WAAW,KAAK,WAAW,IAAI,YAAY,SAAS,8EAA8E,4CAA4C,SAAS,6CAA6C,WAAW,6BAA6B,uDAAuD,wBAAwB,mGAAmG,GAAG,0CAA0C,4BAA4B,WAAW,KAAK,sBAAsB,iCAAiC,2DAA2D,iCAAiC,2DAA2D,4CAA4C,WAAW,4EAA4E,mBAAmB,yCAAyC,kBAAkB,qEAAqE,yCAAyC,0BAA0B,GAAG,cAAc,YAAY;AAAA,oGAAE,C","file":"js/chunk-ecaf6ed0.52d5ce81.js","sourcesContent":["// COPYRIGHT © 2020 Esri\n//\n// All rights reserved under the copyright laws of the United States\n// and applicable international laws, treaties, and conventions.\n//\n// This material is licensed for use under the Esri Master License\n// Agreement (MLA), and is bound by the terms of that agreement.\n// You may redistribute and use this code without modification,\n// provided you adhere to the terms of the MLA and include this\n// copyright notice.\n//\n// See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english\n//\n// For additional information, contact:\n// Environmental Systems Research Institute, Inc.\n// Attn: Contracts and Legal Services Department\n// 380 New York Street\n// Redlands, California, USA 92373\n// USA\n//\n// email: contracts@esri.com\n//\n// See http://js.arcgis.com/4.17/esri/copyright.txt for details.\n\ndefine([\"require\",\"exports\",\"tslib\",\"../../../geometry\",\"../../../Graphic\",\"../../../core/has\",\"../../../core/Logger\",\"../../../core/maybe\",\"../../../core/promiseUtils\",\"../../../core/screenUtils\",\"../../../core/watchUtils\",\"../../../core/accessorSupport/decorators\",\"../../../layers/support/PixelBlock\",\"../../../layers/support/TileInfo\",\"../../../layers/support/rasterDatasets/RawBlockCache\",\"../../../layers/support/rasterFunctions/pixelUtils\",\"../../../layers/support/rasterFunctions/rasterProjectionHelper\",\"../engine/RasterTileContainer\",\"./LayerView2D\",\"../tiling/TileInfoView\",\"../tiling/TileQueue\",\"../tiling/TileStrategy\",\"../../layers/ImageryTileLayerView\",\"../../layers/LayerView\",\"../../layers/RefreshableLayerView\",\"../../support/drapedUtils\"],(function(e,t,i,r,s,a,o,l,n,h,u,c,p,y,d,_,f,b,m,g,w,v,I,P,U,R){\"use strict\";var T=o.getLogger(\"esri.views.2d.layers.ImageryTileLayerView2D\"),x=[0,0];return function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._tileStrategy=null,t._tileInfoView=null,t._fetchQueue=null,t._blockCacheRegistryUrl=null,t._blockCacheRegistryId=null,t._bitmapView=null,t._emptyTilePixelBlock=null,t._srcResolutions=null,t._previousLOD=null,t._needBlockCacheUpdate=!1,t._globalSymbolizerParams=null,t._symbolizerParams=null,t._abortController=null,t._globalUpdateRequested=!1,t.useWebGLForProcessing=!0,t.datumTransformation=null,t._redrawDebounced=n.debounce((function(e){return t._redrawImage(e)}),2e3),t}return i.__extends(t,e),t.prototype.initialize=function(){var e=this.updateFullExtent();this.addResolvingPromise(e)},Object.defineProperty(t.prototype,\"useProgressiveUpdate\",{get:function(){return null==this._get(\"useProgressiveUpdate\")||this._get(\"useProgressiveUpdate\")},set:function(e){var t=this;this._tileStrategy&&this.useProgressiveUpdate!==e&&(this._tileStrategy.destroy(),this._bitmapView.removeAllChildren(),this._tileStrategy=new v({cachePolicy:e?\"keep\":\"purge\",resampling:!1,acquireTile:function(e){return t.acquireTile(e)},releaseTile:function(e){return t.releaseTile(e)},cacheSize:e?40:0,tileInfoView:this._tileInfoView}),this._set(\"useProgressiveUpdate\",e),this.requestUpdate())},enumerable:!1,configurable:!0}),t.prototype.hitTest=function(e,t){if(this.suspended)return n.resolve(null);var i=this.view.toMap(h.createScreenPoint(e,t));return n.resolve(new s({attributes:{},geometry:i}))},t.prototype.update=function(e){var t;this._fetchQueue.pause(),this._fetchQueue.state=e.state,this._tileStrategy.update(e),this._fetchQueue.resume();var i=e.state,s=i.extent,a=i.resolution,o=i.scale,l=this._tileInfoView.getClosestInfoForScale(o);if(this.layer.raster){if(!this.useProgressiveUpdate||this._needBlockCacheUpdate){var n=this._srcResolutions[l.level],h=s.toJSON?s:r.Extent.fromJSON(s);d.update(this._blockCacheRegistryUrl,this._blockCacheRegistryId,h,a,n,this.layer.raster.ioConfig.sampling)}this._needBlockCacheUpdate=!1,(null===(t=this._previousLOD)||void 0===t?void 0:t.level)!==l.level&&(this._previousLOD=l,null!=this._symbolizerParams&&this._updateSymbolizerParams())}this.notifyChange(\"updating\")},t.prototype.attach=function(){var e=this;this.layer.increaseRasterJobHandlerUsage(),a(\"esri-webgl-texture-float\")&&a(\"esri-webgl-color-buffer-float\")||(this.useWebGLForProcessing=!1),this.layer.raster&&(this.layer.raster.ioConfig.allowPartialFill=!0),this._initializeTileInfo(),this._tileInfoView=new g(this.tileInfo,this.fullExtent),this._fetchQueue=new w({tileInfoView:this._tileInfoView,concurrency:10,process:function(t,i){return e.fetchTile(t,i)}}),this._tileStrategy=new v({cachePolicy:this.useProgressiveUpdate?\"keep\":\"purge\",resampling:!1,acquireTile:function(t){return e.acquireTile(t)},releaseTile:function(t){return e.releaseTile(t)},cacheSize:this.useProgressiveUpdate?40:0,tileInfoView:this._tileInfoView}),this._bitmapView=new b.RasterTileContainer(this._tileInfoView),this.container.addChild(this._bitmapView),this.handles.add([u.watch(this,[\"layer.bandIds\",\"layer.renderer\"],(function(){return e._redrawDebounced().catch((function(e){n.isAbortError(e)||T.error(e)}))})),u.watch(this,[\"layer.interpolation\"],(function(t,i){\"majority\"!==t&&\"majority\"!==i||!e._canUseMajorityInterpolationOnDataSource()?e._redrawDebounced().catch((function(e){n.isAbortError(e)||T.error(e)})):e.refreshDebounced()})),u.watch(this,[\"layer.multidimensionalDefinition\"],this.refreshDebounced)],\"attach\"),this._updateBlockCacheRegistry()},t.prototype.detach=function(){this.handles.remove(\"attach\"),this.layer.decreaseRasterJobHandlerUsage(),this._tileStrategy.destroy(),this._fetchQueue.clear(),this.container.removeAllChildren(),this._fetchQueue=this._tileStrategy=this._tileInfoView=null,d.unregister(this._blockCacheRegistryUrl,this._blockCacheRegistryId)},t.prototype.moveStart=function(){this.requestUpdate()},t.prototype.viewChange=function(){this.requestUpdate()},t.prototype.moveEnd=function(){var e=this;!this.hasTilingEffects&&this.useProgressiveUpdate||(this._abortController&&this._abortController.abort(),this._abortController=n.createAbortController(),0===this._fetchQueue.length&&this._redrawImage(this._abortController.signal).then((function(){e._globalUpdateRequested=!1,e.requestUpdate()}))),this.requestUpdate()},t.prototype.createFetchPopupFeaturesQueryGeometry=function(e,t){return R.createQueryGeometry(e,t,this.view)},t.prototype.doRefresh=function(){return i.__awaiter(this,void 0,void 0,(function(){var e=this;return i.__generator(this,(function(t){return this.updateRequested||this.suspended?[2]:(this._updateSymbolizerParams(),this._updateBlockCacheRegistry(),this._fetchQueue.reset(),this._tileStrategy.tiles.forEach((function(t){return e._enqueueTileFetch(t)})),this.notifyChange(\"updating\"),[2])}))}))},t.prototype.isUpdating=function(){return this._fetchQueue.length>0||this._globalUpdateRequested},t.prototype.acquireTile=function(e){var t,i,r=this._bitmapView.createTile(e),s=r.bitmap;return t=this._tileInfoView.getTileCoords(x,r.key),s.x=t[0],s.y=t[1],s.resolution=this._tileInfoView.getTileResolution(r.key),i=this._tileInfoView.tileInfo.size,s.width=i[0],s.height=i[1],this._enqueueTileFetch(r),this.requestUpdate(),this._needBlockCacheUpdate=!0,this._globalUpdateRequested=this.hasTilingEffects||!this.useProgressiveUpdate,r},t.prototype.releaseTile=function(e){var t=this;this._fetchQueue.abort(e.key.id),this._bitmapView.removeChild(e),e.once(\"detach\",(function(){e.destroy(),t.requestUpdate()})),this.requestUpdate()},t.prototype.fetchTile=function(e,t){var i=!l.isNone(t)&&t.signal,r=this._canUseWebGLForProcessing(),s={tileInfo:this.tileInfo,signal:l.unwrap(i),registryId:this._blockCacheRegistryId,requestRawData:r,srcResolution:this._srcResolutions[e.level],datumTransformation:this.datumTransformation,interpolation:r?\"nearest\":this.layer.interpolation};return this.layer.fetchTile(e.level,e.row,e.col,s)},t.prototype._canUseWebGLForProcessing=function(){return this.useWebGLForProcessing&&this.layer.symbolizer.canRenderInWebGL&&!(\"majority\"===this.layer.interpolation&&this._canUseMajorityInterpolationOnDataSource())},t.prototype._initializeTileInfo=function(){var e=this.view.spatialReference,t=new r.Point({x:this.fullExtent.xmin,y:this.fullExtent.ymax,spatialReference:e}),i=f.computeProjectedScales(this.layer.rasterInfo,e),s=i.scales,a=i.srcResolutions,o=y.create({spatialReference:e,size:512,scales:s});(0===o.origin.x||o.origin.x>t.x)&&(o.origin=t),this._set(\"tileInfo\",o),this._srcResolutions=null!=a?a:[]},t.prototype._enqueueTileFetch=function(e,t){return i.__awaiter(this,void 0,void 0,(function(){var t,r,s,a,o,l,h,u,c,p=this;return i.__generator(this,(function(i){switch(i.label){case 0:if(this._fetchQueue.has(e.key.id))return[2];i.label=1;case 1:return i.trys.push([1,13,,14]),[4,this._fetchQueue.push(e.key)];case 2:if(t=i.sent(),r=this.layer.bandIds,s=!this.useProgressiveUpdate||this.hasTilingEffects&&!this._globalSymbolizerParams,!this._globalUpdateRequested||this.moving||0!==this._fetchQueue.length)return[3,7];s=!1,i.label=3;case 3:return i.trys.push([3,5,,6]),[4,this._redrawImage(this._abortController&&this._abortController.signal)];case 4:return i.sent(),[3,6];case 5:return a=i.sent(),n.isAbortError(a)&&T.error(a),[3,6];case 6:this._globalUpdateRequested=!1,i.label=7;case 7:return(o=this._canUseWebGLForProcessing())&&!this.hasTilingEffects&&null==this._symbolizerParams&&this._updateSymbolizerParams(),t&&t.pixelBlock?o?[3,9]:(l={extent:t.extent,pixelBlock:t.pixelBlock},[4,this.layer.applyRenderer(l,this.hasTilingEffects&&this._globalSymbolizerParams&&\"stretch\"===this._globalSymbolizerParams.type?this._globalSymbolizerParams:null)]):[3,11];case 8:return h=i.sent(),e.bitmap.rawPixelData=l,e.bitmap.source=h,[3,10];case 9:e.bitmap.source=t.pixelBlock,i.label=10;case 10:return e.bitmap.symbolizerParameters=o?this._globalSymbolizerParams||this._symbolizerParams:null,!e.bitmap.transformGrid&&o?e.bitmap.transformGrid=t.transformGrid:e.bitmap.transformGrid=null,[3,12];case 11:u=this._createEmptyTilePixelBlock(),e.bitmap.source=u,e.bitmap.symbolizerParameters=o?this._symbolizerParams:null,e.bitmap.transformGrid=null,i.label=12;case 12:return e.bitmap.bandIds=r,e.bitmap.width=this._tileInfoView.tileInfo.size[0],e.bitmap.height=this._tileInfoView.tileInfo.size[1],e.bitmap.interpolation=this._getLayerInterpolation(),e.bitmap.suspended=s,e.bitmap.invalidateTexture(),e.once(\"attach\",(function(){return p.requestUpdate()})),this._bitmapView.addChild(e),[3,14];case 13:return c=i.sent(),n.isAbortError(c)||T.error(c),[3,14];case 14:return this.requestUpdate(),[2]}}))}))},t.prototype._redrawImage=function(e){return i.__awaiter(this,void 0,void 0,(function(){var t,r,s=this;return i.__generator(this,(function(a){switch(a.label){case 0:return this.layer.updateRenderer(),this.hasTilingEffects?[4,this._updateGlobalSymbolizerParams(e)]:[3,2];case 1:return a.sent(),[3,3];case 2:this._updateSymbolizerParams(),this._globalSymbolizerParams=null,a.label=3;case 3:return t=this.layer.bandIds,r=this._bitmapView.children.map((function(e){return i.__awaiter(s,void 0,void 0,(function(){var r,s;return i.__generator(this,(function(i){switch(i.label){case 0:return(r=this._canUseWebGLForProcessing())?[3,2]:(s=e.bitmap,[4,this.layer.applyRenderer(e.bitmap.rawPixelData,this.hasTilingEffects&&this._globalSymbolizerParams&&\"stretch\"===this._globalSymbolizerParams.type?this._globalSymbolizerParams:null)]);case 1:s.source=i.sent(),i.label=2;case 2:return e.bitmap.symbolizerParameters=r?this._globalSymbolizerParams||this._symbolizerParams:null,e.bitmap.bandIds=t,e.bitmap.interpolation=this._getLayerInterpolation(),e.bitmap.suspended=!1,[2]}}))}))})),[4,n.eachAlways(r)];case 4:return a.sent(),this.container.requestRender(),[2]}}))}))},t.prototype._createEmptyTilePixelBlock=function(){if(!this._emptyTilePixelBlock){var e=this._tileInfoView.tileInfo.size[0],t=this._tileInfoView.tileInfo.size[1];this._emptyTilePixelBlock=new p({width:e,height:t,pixels:[new Uint8Array(e*t)],mask:new Uint8Array(e*t),pixelType:\"u8\"})}return this._emptyTilePixelBlock},t.prototype._updateGlobalSymbolizerParams=function(e){return i.__awaiter(this,void 0,void 0,(function(){var t,r,s;return i.__generator(this,(function(i){switch(i.label){case 0:return t={srcResolution:this._srcResolutions[this._previousLOD.level],registryId:this._blockCacheRegistryId,signal:e},[4,this.layer.fetchPixels(this.view.extent,this.view.width,this.view.height,t)];case 1:return(r=i.sent())&&r.pixelBlock?(s=this.layer.symbolizer.generateWebGLParameters({pixelBlock:_.extractBands(r.pixelBlock,this.layer.bandIds),isGCS:this.view.spatialReference.isGeographic,resolution:{x:this._previousLOD.resolution,y:this._previousLOD.resolution},bandIds:this.layer.bandIds}),!this._canUseWebGLForProcessing()&&s&&\"stretch\"===s.type&&this.layer.renderer&&\"raster-stretch\"===this.layer.renderer.type&&(s.factor=s.factor.map((function(e){return 255*e})),s.outMin=Math.round(255*s.outMin),s.outMax=Math.round(255*s.outMax)),this._globalSymbolizerParams=s,[2]):[2]}}))}))},t.prototype._updateSymbolizerParams=function(){this._symbolizerParams=this.layer.symbolizer.generateWebGLParameters({pixelBlock:null,isGCS:this.view.spatialReference.isGeographic,resolution:{x:this._previousLOD.resolution,y:this._previousLOD.resolution},bandIds:this.layer.bandIds})},t.prototype._updateBlockCacheRegistry=function(){var e=this.layer,t=e.url,i=e.rasterInfo,r=e.multidimensionalDefinition,s=e.raster,a=(null==i?void 0:i.multidimensionalInfo)?s.getSliceIndex(r):null,o=d.getRasterId(t,a);o!==this._blockCacheRegistryUrl&&(null==this._blockCacheRegistryUrl&&d.unregister(this._blockCacheRegistryUrl,this._blockCacheRegistryId),this._blockCacheRegistryId=d.register(o,this.layer.raster.rasterInfo),this._blockCacheRegistryUrl=o)},t.prototype._canUseMajorityInterpolationOnDataSource=function(){var e=this.layer.rasterInfo,t=e.bandCount,i=e.attributeTable,r=e.colormap,s=e.pixelType;return 1===t&&(null!=i||null!=r||\"u8\"===s||\"s8\"===s)},t.prototype._getLayerInterpolation=function(){var e=this.layer.renderer.type;return\"raster-colormap\"===e||\"unique-value\"===e||\"class-breaks\"===e?\"nearest\":this.layer.interpolation},i.__decorate([c.property()],t.prototype,\"useProgressiveUpdate\",null),t=i.__decorate([c.subclass(\"esri.views.2d.layers.ImageryTileLayerView2D\")],t)}(I.ImageryTileLayerView(U.RefreshableLayerView(m.LayerView2DMixin(P))))}));","// COPYRIGHT © 2020 Esri\n//\n// All rights reserved under the copyright laws of the United States\n// and applicable international laws, treaties, and conventions.\n//\n// This material is licensed for use under the Esri Master License\n// Agreement (MLA), and is bound by the terms of that agreement.\n// You may redistribute and use this code without modification,\n// provided you adhere to the terms of the MLA and include this\n// copyright notice.\n//\n// See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english\n//\n// For additional information, contact:\n// Environmental Systems Research Institute, Inc.\n// Attn: Contracts and Legal Services Department\n// 380 New York Street\n// Redlands, California, USA 92373\n// USA\n//\n// email: contracts@esri.com\n//\n// See http://js.arcgis.com/4.17/esri/copyright.txt for details.\n\ndefine([\"require\",\"exports\"],(function(t,i){\"use strict\";Object.defineProperty(i,\"__esModule\",{value:!0}),i.jsonAdapter=void 0,i.jsonAdapter={convertToGEGeometry:function(t,i){if(null==i)return null;return t.convertJSONToGeometry(i)},exportPoint:function(t,i,n){var s=new e(t.getPointX(i),t.getPointY(i),n),a=t.hasZ(i),h=t.hasM(i);a&&(s.z=t.getPointZ(i));h&&(s.m=t.getPointM(i));return s},exportPolygon:function(t,i,e){return new n(t.exportPaths(i),e,t.hasZ(i),t.hasM(i))},exportPolyline:function(t,i,e){return new s(t.exportPaths(i),e,t.hasZ(i),t.hasM(i))},exportMultipoint:function(t,i,e){return new a(t.exportPoints(i),e,t.hasZ(i),t.hasM(i))},exportExtent:function(t,i,e){var n=t.hasZ(i),s=t.hasM(i),a=new h(t.getXMin(i),t.getYMin(i),t.getXMax(i),t.getYMax(i),e);if(n){var o=t.getZExtent(i);a.zmin=o.vmin,a.zmax=o.vmax}if(s){var r=t.getMExtent(i);a.mmin=r.vmin,a.mmax=r.vmax}return a}};var e=function(t,i,e){this.x=t,this.y=i,this.spatialReference=e,this.z=void 0,this.m=void 0};var n=function(t,i,e,n){this.rings=t,this.spatialReference=i,this.hasZ=void 0,this.hasM=void 0,e&&(this.hasZ=e),n&&(this.hasM=n)};var s=function(t,i,e,n){this.paths=t,this.spatialReference=i,this.hasZ=void 0,this.hasM=void 0,e&&(this.hasZ=e),n&&(this.hasM=n)};var a=function(t,i,e,n){this.points=t,this.spatialReference=i,this.hasZ=void 0,this.hasM=void 0,e&&(this.hasZ=e),n&&(this.hasM=n)};var h=function(t,i,e,n,s){this.xmin=t,this.ymin=i,this.xmax=e,this.ymax=n,this.spatialReference=s,this.zmin=void 0,this.zmax=void 0,this.mmin=void 0,this.mmax=void 0}}));","// COPYRIGHT © 2020 Esri\n//\n// All rights reserved under the copyright laws of the United States\n// and applicable international laws, treaties, and conventions.\n//\n// This material is licensed for use under the Esri Master License\n// Agreement (MLA), and is bound by the terms of that agreement.\n// You may redistribute and use this code without modification,\n// provided you adhere to the terms of the MLA and include this\n// copyright notice.\n//\n// See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english\n//\n// For additional information, contact:\n// Environmental Systems Research Institute, Inc.\n// Attn: Contracts and Legal Services Department\n// 380 New York Street\n// Redlands, California, USA 92373\n// USA\n//\n// email: contracts@esri.com\n//\n// See http://js.arcgis.com/4.17/esri/copyright.txt for details.\n\ndefine([\"require\",\"exports\",\"tslib\",\"@dojo/framework/shim/array\",\"../../../core/maybe\",\"../../../layers/support/fieldUtils\"],(function(e,i,t,l,s,d){\"use strict\";Object.defineProperty(i,\"__esModule\",{value:!0}),i.getFetchPopupTemplate=i.getRequiredFields=void 0,i.getRequiredFields=function(e,i){return void 0===i&&(i=e.popupTemplate),t.__awaiter(this,void 0,void 0,(function(){var a,r,u,p,o,n,f,c,h;return t.__generator(this,(function(F){switch(F.label){case 0:return s.isSome(i)?[4,i.getRequiredFields(e.fields)]:[2,[]];case 1:return a=F.sent(),r=i.lastEditInfoEnabled,u=e.objectIdField,p=e.typeIdField,o=e.globalIdField,n=e.relationships,l.includes(a,\"*\")?[2,[\"*\"]]:r?[4,d.getFeatureEditFields(e)]:[3,3];case 2:return c=F.sent(),[3,4];case 3:c=[],F.label=4;case 4:return f=c,h=d.fixFields(e.fields,t.__spreadArrays(a,f)),p&&h.push(p),h&&u&&d.hasField(e.fields,u)&&-1===h.indexOf(u)&&h.push(u),h&&o&&d.hasField(e.fields,o)&&-1===h.indexOf(o)&&h.push(o),n&&n.forEach((function(i){var t=i.keyField;h&&t&&d.hasField(e.fields,t)&&-1===h.indexOf(t)&&h.push(t)})),[2,h]}}))}))},i.getFetchPopupTemplate=function(e,i){return e.popupTemplate?e.popupTemplate:s.isSome(i)&&i.defaultPopupTemplateEnabled&&s.isSome(e.defaultPopupTemplate)?e.defaultPopupTemplate:null}}));","// COPYRIGHT © 2020 Esri\n//\n// All rights reserved under the copyright laws of the United States\n// and applicable international laws, treaties, and conventions.\n//\n// This material is licensed for use under the Esri Master License\n// Agreement (MLA), and is bound by the terms of that agreement.\n// You may redistribute and use this code without modification,\n// provided you adhere to the terms of the MLA and include this\n// copyright notice.\n//\n// See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english\n//\n// For additional information, contact:\n// Environmental Systems Research Institute, Inc.\n// Attn: Contracts and Legal Services Department\n// 380 New York Street\n// Redlands, California, USA 92373\n// USA\n//\n// email: contracts@esri.com\n//\n// See http://js.arcgis.com/4.17/esri/copyright.txt for details.\n\ndefine([\"require\",\"exports\",\"tslib\",\"../../../geometry/support/aaBoundingRect\",\"../engine/brushes\",\"./RasterTile\",\"./webgl/enums\",\"./webgl/TileContainer\"],(function(e,t,r,n,i,s,a,o){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.RasterTileContainer=void 0;var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.createTile=function(e){var t=this._tileInfoView.getTileBounds(n.create(),e);return new s.RasterTile(e,t,this._tileInfoView.tileInfo.size)},t.prototype.destroyTile=function(){},t.prototype.prepareRenderPasses=function(t){var n=this,s=t.registerRenderPass({name:\"bitmap (tile)\",brushes:[i.brushes.raster],target:function(){return n.children.map((function(e){return e.bitmap}))},drawPhase:a.WGLDrawPhase.MAP});return r.__spreadArrays(e.prototype.prepareRenderPasses.call(this,t),[s])},t.prototype.doRender=function(t){this.visible&&t.drawPhase===a.WGLDrawPhase.MAP&&e.prototype.doRender.call(this,t)},t}(o.default);t.RasterTileContainer=u}));","// COPYRIGHT © 2020 Esri\n//\n// All rights reserved under the copyright laws of the United States\n// and applicable international laws, treaties, and conventions.\n//\n// This material is licensed for use under the Esri Master License\n// Agreement (MLA), and is bound by the terms of that agreement.\n// You may redistribute and use this code without modification,\n// provided you adhere to the terms of the MLA and include this\n// copyright notice.\n//\n// See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english\n//\n// For additional information, contact:\n// Environmental Systems Research Institute, Inc.\n// Attn: Contracts and Legal Services Department\n// 380 New York Street\n// Redlands, California, USA 92373\n// USA\n//\n// email: contracts@esri.com\n//\n// See http://js.arcgis.com/4.17/esri/copyright.txt for details.\n\ndefine([\"require\",\"exports\",\"tslib\",\"../../../../core/Error\",\"../../../../core/Logger\",\"../../../../core/maybe\",\"../DisplayObject\",\"./Mesh2D\",\"../../../webgl/VertexArrayObject\"],(function(e,t,r,i,o,s,a,c,h){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});var n=o.getLogger(\"esri.views.2d.engine.webgl.ClippingInfo\"),p=function(e){return parseFloat(e)/100},f=function(e){function t(t,r){var i=e.call(this)||this;return i._clip=r,i._cache={},i.stage=t,i._handle=r.watch(\"version\",(function(){return i._invalidate()})),i.ready(),i}return r.__extends(t,e),t.fromClipArea=function(e,r){return new t(e,r)},t.prototype._destroyGL=function(){s.isSome(this._cache.mesh)&&(this._cache.mesh.destroy(),this._cache.mesh=null),s.isSome(this._cache.vao)&&(this._cache.vao.dispose(),this._cache.vao=null)},t.prototype.destroy=function(){this._destroyGL(),this._handle.remove()},t.prototype.getVAO=function(e,t,r,i){var o=t.size,a=o[0],c=o[1];if(\"geometry\"!==this._clip.type&&this._lastWidth===a&&this._lastHeight===c||(this._lastWidth=a,this._lastHeight=c,this._destroyGL()),s.isNone(this._cache.vao)){var n=this._createMesh(t,this._clip),p=n.getIndexBuffer(e),f=n.getVertexBuffers(e);this._cache.mesh=n,this._cache.vao=new h(e,r,i,f,p)}return this._cache.vao},t.prototype._invalidate=function(){this._destroyGL(),this.requestRender()},t.prototype._createScreenRect=function(e,t){var r=e.size,i=r[0],o=r[1],s=\"string\"==typeof t.left?p(t.left)*i:t.left,a=\"string\"==typeof t.right?p(t.right)*i:t.right,c=\"string\"==typeof t.top?p(t.top)*o:t.top,h=\"string\"==typeof t.bottom?p(t.bottom)*o:t.bottom,n=s,f=c;return{x:n,y:f,width:Math.max(i-a-n,0),height:Math.max(o-h-f,0)}},t.prototype._createMesh=function(e,t){switch(t.type){case\"rect\":return c.default.fromRect(this._createScreenRect(e,t));case\"path\":return c.default.fromPath(t);case\"geometry\":return c.default.fromGeometry(e,t);default:return n.error(new i(\"mapview-bad-type\",\"Unable to create ClippingInfo mesh from clip of type: ${clip.type}\")),c.default.fromRect({x:0,y:0,width:1,height:1})}},t}(a.DisplayObject);t.default=f}));","// COPYRIGHT © 2020 Esri\n//\n// All rights reserved under the copyright laws of the United States\n// and applicable international laws, treaties, and conventions.\n//\n// This material is licensed for use under the Esri Master License\n// Agreement (MLA), and is bound by the terms of that agreement.\n// You may redistribute and use this code without modification,\n// provided you adhere to the terms of the MLA and include this\n// copyright notice.\n//\n// See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english\n//\n// For additional information, contact:\n// Environmental Systems Research Institute, Inc.\n// Attn: Contracts and Legal Services Department\n// 380 New York Street\n// Redlands, California, USA 92373\n// USA\n//\n// email: contracts@esri.com\n//\n// See http://js.arcgis.com/4.17/esri/copyright.txt for details.\n\ndefine([\"require\",\"exports\",\"../../geometry\",\"../../core/maybe\",\"../../core/unitUtils\",\"../../renderers/support/clickToleranceUtils\"],(function(e,r,t,a,n,i){\"use strict\";function s(e,r,a,i){var s;if(void 0===i&&(i=new t.Extent),\"2d\"===a.type)s=r*a.resolution;else if(\"3d\"===a.type){var o=a.basemapTerrain,l=o.overlayManager,c=l?l.overlayPixelSizeInMapUnits(e):1;s=o&&!o.spatialReference.equals(a.spatialReference)?n.getMetersPerUnitForSR(o.spatialReference)/n.getMetersPerUnitForSR(a.spatialReference):r*c}var u=e.x-s,p=e.y-s,y=e.x+s,m=e.y+s,f=a.spatialReference;return i.xmin=Math.min(u,y),i.ymin=Math.min(p,m),i.xmax=Math.max(u,y),i.ymax=Math.max(p,m),i.spatialReference=f,i}Object.defineProperty(r,\"__esModule\",{value:!0}),r.intersectsDrapedGeometry=r.createQueryGeometry=void 0,r.createQueryGeometry=s,r.intersectsDrapedGeometry=function(e,r,t){var n=t.toMap(e);return a.isNone(n)?null:s(n,i.calculateTolerance(),t,o).intersects(r)?n:null};var o=new t.Extent}));","// COPYRIGHT © 2020 Esri\n//\n// All rights reserved under the copyright laws of the United States\n// and applicable international laws, treaties, and conventions.\n//\n// This material is licensed for use under the Esri Master License\n// Agreement (MLA), and is bound by the terms of that agreement.\n// You may redistribute and use this code without modification,\n// provided you adhere to the terms of the MLA and include this\n// copyright notice.\n//\n// See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english\n//\n// For additional information, contact:\n// Environmental Systems Research Institute, Inc.\n// Attn: Contracts and Legal Services Department\n// 380 New York Street\n// Redlands, California, USA 92373\n// USA\n//\n// email: contracts@esri.com\n//\n// See http://js.arcgis.com/4.17/esri/copyright.txt for details.\n\ndefine([\"require\",\"exports\",\"tslib\",\"../../../core/Error\",\"../../../core/promiseUtils\",\"../../../geometry/projection\",\"../../../geometry/geometryAdapters/json\",\"../../../geometry/support/spatialReferenceUtils\",\"../../../geometry/support/webMercatorUtils\"],(function(e,r,t,n,i,o,s,a,u){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.projectMany=r.project=r.checkProjectionSupport=r.doesBrowserSupportProjection=void 0;var p=[0,0];function c(e,r){var t,n,i;if(!r)return null;if(\"x\"in r){var o={x:0,y:0};return t=e(r.x,r.y,p),o.x=t[0],o.y=t[1],null!=r.z&&(o.z=r.z),null!=r.m&&(o.m=r.m),o}if(\"xmin\"in r){o={xmin:0,ymin:0,xmax:0,ymax:0};return n=e(r.xmin,r.ymin,p),o.xmin=n[0],o.ymin=n[1],i=e(r.xmax,r.ymax,p),o.xmax=i[0],o.ymax=i[1],r.hasZ&&(o.zmin=r.zmin,o.zmax=r.zmax,o.hasZ=!0),r.hasM&&(o.mmin=r.mmin,o.mmax=r.mmax,o.hasM=!0),o}return\"rings\"in r?{rings:l(r.rings,e),hasM:r.hasM,hasZ:r.hasZ}:\"paths\"in r?{paths:l(r.paths,e),hasM:r.hasM,hasZ:r.hasZ}:\"points\"in r?{points:h(r.points,e),hasM:r.hasM,hasZ:r.hasZ}:void 0}function l(e,r){for(var t=[],n=0,i=e;n2&&s.push(o[2]),o.length>3&&s.push(o[3])}return t}function f(e,r){return!(!a.isValid(e)||!a.isValid(r)||a.equals(e,r)||u.canProject(e,r))}r.doesBrowserSupportProjection=function(e,r){return!f(e,r)||o.isSupported()},r.checkProjectionSupport=function(e,r){return t.__awaiter(this,void 0,void 0,(function(){var i,s,a;return t.__generator(this,(function(t){if(!r)return[2];if(Array.isArray(e)){for(i=0,s=e;i0&&(this._timer=setTimeout(this._process,10))}},e}());r.projectMany=function(e,r,n){return t.__awaiter(this,void 0,void 0,(function(){return t.__generator(this,(function(t){return[2,y.push(e,r,n)]}))}))}}));","// COPYRIGHT © 2020 Esri\n//\n// All rights reserved under the copyright laws of the United States\n// and applicable international laws, treaties, and conventions.\n//\n// This material is licensed for use under the Esri Master License\n// Agreement (MLA), and is bound by the terms of that agreement.\n// You may redistribute and use this code without modification,\n// provided you adhere to the terms of the MLA and include this\n// copyright notice.\n//\n// See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english\n//\n// For additional information, contact:\n// Environmental Systems Research Institute, Inc.\n// Attn: Contracts and Legal Services Department\n// 380 New York Street\n// Redlands, California, USA 92373\n// USA\n//\n// email: contracts@esri.com\n//\n// See http://js.arcgis.com/4.17/esri/copyright.txt for details.\n\ndefine([\"require\",\"exports\",\"../PixelBlock\"],(function(t,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.approximateTransform=e.clip=e.resampleByMajority=e.setValidBoundary=e.mosaic=e.mosaicPixelData=e.getClipBounds=e.remapColor=e.lookupPixels=e.stretch=e.createContrastBrightnessLUT=e.createStretchLUT=e.estimateStatisticsFromHistograms=e.estimateStatisticsHistograms=e.colorize=e.createColormapLUT=e.extractBands=void 0;var i=function(t){return t&&\"esri.layers.support.PixelBlock\"===t.declaredClass&&t.pixels&&t.pixels.length>0};function a(t,e){var r,i,a=Math.min(Math.max(t,-100),100),n=Math.min(Math.max(e,-100),100),o=new Uint8Array(256);for(r=0;r<256;r++)a>0&&a<100?i=(200*r-25500+510*n)/(2*(100-a))+128:a<=0&&a>-100?i=(200*r-25500+510*n)*(100+a)/2e4+128:100===a?i=(i=200*r-25500+256*(100-a)+510*n)>0?255:0:-100===a&&(i=128),o[r]=i>255?255:i<0?0:i;return o}function n(t,e,r,i,a,n,o,l){return{xmin:a<=r*t?0:a0})))for(w=new Uint8Array(M*k),x=0;xe&&(r=n.value,e=i),n=a.next();return r}function s(t,e,r){if(0!==r){var i=t.get(e);1===i?t.delete(e):t.set(e,i-1)}}function h(t,e,r){0!==r&&t.set(e,t.has(e)?t.get(e)+1:1)}e.extractBands=function(t,e){if(!e||!i(t))return t;var a=t.pixels.length;return e&&e.some((function(t){return t>=a}))?t:1===a&&1===e.length&&0===e[0]?t:a!==e.length||e.some((function(t,e){return t!==e}))?new r({pixelType:t.pixelType,width:t.width,height:t.height,mask:t.mask,validPixelCount:t.validPixelCount,maskIsAlpha:t.maskIsAlpha,pixels:e.map((function(e){return t.pixels[e]})),statistics:t.statistics&&e.map((function(e){return t.statistics[e]}))}):t},e.createColormapLUT=function(t){if(t){var e=t.colormap;if(e&&0!==e.length){var r=e.sort((function(t,e){return t[0]-e[0]})),i=0;r[0][0]<0&&(i=r[0][0]);var a,n=Math.max(256,r[r.length-1][0]-i+1),o=new Uint8Array(4*n),l=[],f=0,s=0,h=5===r[0].length;if(n>65536)return r.forEach((function(t){l[t[0]-i]=h?t.slice(1):t.slice(1).concat([255])})),{indexed2DColormap:l,offset:i,alphaSpecified:h};if(t.fillUnspecified)for(f=(a=r[s])[0]-i;fm?n[p]=0:(c[p]=f[y],d[p]=f[y+1],g[p]=f[y+2],n[p]=f[y+3]));else{for(n=new Uint8Array(o),p=0;pm?n[p]=0:(c[p]=f[y],d[p]=f[y+1],g[p]=f[y+2],n[p]=f[y+3]);r.mask=n}else if(n)for(p=0;p-1&&(m=65536);var p=[],x=[],c=l-o;for(f=0;f=h,y=[];if(g)for(f=0;f1?i[f]>2?y[f]=6.5+Math.pow(i[f]-2,2.5):y[f]=6.5+100*Math.pow(2-i[f],4):y[f]=1;var w,v,M,k=[];if(g)for(f=0;f1&&(v-=Math.pow(1/c,d*y[f])),we[f]?M[s]=Math.floor(v*c*Math.pow(d,1/i[f]))+o:w>=r[f]?M[s]=l:M[s]=o;k[f]=M}else for(f=0;f=r[f]?M[s]=l:M[s]=Math.floor((w-e[f])/x[f]*c)+o;k[f]=M}if(null!=t.contrastOffset){var A=a(t.contrastOffset,t.brightnessOffset);for(f=0;f=g,k=[];if(M)for(r=0;r1?p[r]>2?k[r]=6.5+Math.pow(p[r]-2,2.5):k[r]=6.5+100*Math.pow(2-p[r],4):k[r]=1;if(M)if(null!=h){for(a=0;a1&&(o-=Math.pow(1/y,l*k[r])),nu[r]?s[r][a]=Math.floor(o*y*Math.pow(l,1/p[r]))+x:n>=m[r]?s[r][a]=c:s[r][a]=x}else for(a=0;a1&&(o-=Math.pow(1/y,l*k[r])),nu[r]?s[r][a]=Math.floor(o*y*Math.pow(l,1/p[r]))+x:n>=m[r]?s[r][a]=c:s[r][a]=x;else if(null!=h){for(a=0;au[r]?s[r][a]=Math.floor((n-u[r])/v[r]*y)+x:n>=m[r]?s[r][a]=c:s[r][a]=x}else for(a=0;au[r]?s[r][a]=Math.floor((n-u[r])/v[r]*y)+x:n>=m[r]?s[r][a]=c:s[r][a]=x;return f.pixelType=\"u8\",f.updateStatistics(),f},e.lookupPixels=function(t,e){if(!i(t))return null;var a,n,o=t.pixels,l=t.mask,f=t.width*t.height,s=o.length,h=e.lut,u=e.offset;h&&1===h[0].length&&(h=o.map((function(){return h})));var m,p,x,c=[];if(u)if(null==l)for(a=0;a1;){if(r===a.value){d=!0;break}r>a.value?n=f:o=f,f=Math.floor((n+o)/2),a=e[Math.floor(f)]}d||(r===e[n].value?(a=e[n],d=!0):r===e[o].value?(a=e[o],d=!0):re[n].value&&(rn?e.extent.ymax-t.extent.ymax:Math.abs(t.extent.xmin-e.extent.xmin)>n?t.extent.xmin-e.extent.xmin:0})),f=Math.min.apply(null,l.map((function(t){return t.extent.xmin}))),s=Math.min.apply(null,l.map((function(t){return t.extent.ymin}))),h=Math.max.apply(null,l.map((function(t){return t.extent.xmax}))),u=Math.max.apply(null,l.map((function(t){return t.extent.ymax}))),m={x:Math.round((e.xmin-f)/i),y:Math.round((u-e.ymax)/a)},p={width:Math.round((h-f)/i),height:Math.round((u-s)/a)},x={width:Math.round((e.xmax-e.xmin)/i),height:Math.round((e.ymax-e.ymin)/a)};return Math.round(p.width/r.pixelBlock.width)*Math.round(p.height/r.pixelBlock.height)!==l.length||m.x<0||m.y<0||p.widtha||s>n)return t;if(0===o&&0===l&&f===a&&s===n)return t;t.mask||(t.mask=new Uint8Array(a*n));for(var h=t.mask,u=0;u=s||p=f?0:1;return t.updateStatistics(),t},e.resampleByMajority=l,e.clip=function(t,e,a){var n=e.x,o=e.y,l=a.width,f=a.height;if(0===n&&0===o&&f===t.height&&l===t.width)return t;var s=t.width,h=t.height,u=Math.max(0,o),m=Math.max(0,n),p=Math.min(n+l,s),x=Math.min(o+f,h);if(p<0||x<0||!i(t))return null;n=Math.max(0,-n),o=Math.max(0,-o);for(var c=t.pixels,d=t.mask,g=l*f,y=c.length,w=[],v=0;v0?x.storageInfo.pyramidBlockWidth:x.storageInfo.blockWidth,w=B>0?x.storageInfo.pyramidBlockHeight:x.storageInfo.blockHeight,P=Math.max(0,Math.floor(C.x/j)-1),E=Math.max(0,Math.floor(C.y/w)-1),H=Math.floor((C.x+I-1)/j)+1,W=Math.floor((C.y+b-1)/w)+1,_=E;_<=W;_++)for(var q=P;q<=H;q++)m.add(B+\"/\"+_+\"/\"+q)}}h.forEach((function(e,t){if(!m.has(t)){var r=h.get(t);(null==r||r.isResolved||r.isRejected)&&h.delete(t)}})),f.extent={xmin:n.xmin,ymin:n.ymin,xmax:n.xmax,ymax:n.ymax}}}}));","// COPYRIGHT © 2020 Esri\n//\n// All rights reserved under the copyright laws of the United States\n// and applicable international laws, treaties, and conventions.\n//\n// This material is licensed for use under the Esri Master License\n// Agreement (MLA), and is bound by the terms of that agreement.\n// You may redistribute and use this code without modification,\n// provided you adhere to the terms of the MLA and include this\n// copyright notice.\n//\n// See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english\n//\n// For additional information, contact:\n// Environmental Systems Research Institute, Inc.\n// Attn: Contracts and Legal Services Department\n// 380 New York Street\n// Redlands, California, USA 92373\n// USA\n//\n// email: contracts@esri.com\n//\n// See http://js.arcgis.com/4.17/esri/copyright.txt for details.\n\ndefine([\"require\",\"exports\",\"tslib\",\"../../../core/JSONSupport\",\"../../../core/accessorSupport/decorators\"],(function(r,e,t,s,o){\"use strict\";return function(r){function e(){return null!==r&&r.apply(this,arguments)||this}return t.__extends(e,r),e=t.__decorate([o.subclass(\"esri.views.layers.support.ClipArea\")],e)}(s.JSONSupport)}));","// COPYRIGHT © 2020 Esri\n//\n// All rights reserved under the copyright laws of the United States\n// and applicable international laws, treaties, and conventions.\n//\n// This material is licensed for use under the Esri Master License\n// Agreement (MLA), and is bound by the terms of that agreement.\n// You may redistribute and use this code without modification,\n// provided you adhere to the terms of the MLA and include this\n// copyright notice.\n//\n// See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english\n//\n// For additional information, contact:\n// Environmental Systems Research Institute, Inc.\n// Attn: Contracts and Legal Services Department\n// 380 New York Street\n// Redlands, California, USA 92373\n// USA\n//\n// email: contracts@esri.com\n//\n// See http://js.arcgis.com/4.17/esri/copyright.txt for details.\n\ndefine([\"require\",\"exports\",\"tslib\",\"../../core/compilerUtils\",\"../../core/Error\",\"../../core/JSONSupport\",\"../../core/lang\",\"../../core/Logger\",\"../../core/maybe\",\"../../core/accessorSupport/decorators\"],(function(t,e,i,s,r,a,o,l,n,h){\"use strict\";var p=l.getLogger(\"esri.layers.support.PixelBlock\");return function(t){function e(e){var i=t.call(this,e)||this;return i.width=null,i.height=null,i.pixelType=\"f32\",i.validPixelCount=null,i.mask=null,i.maskIsAlpha=!1,i.pixels=null,i.statistics=null,i}var a;return i.__extends(e,t),a=e,e.createEmptyBand=function(t,e){return new(a.getPixelArrayConstructor(t))(e)},e.getPixelArrayConstructor=function(t){var e;switch(t){case\"u1\":case\"u2\":case\"u4\":case\"u8\":e=Uint8Array;break;case\"u16\":e=Uint16Array;break;case\"u32\":e=Uint32Array;break;case\"s8\":e=Int8Array;break;case\"s16\":e=Int16Array;break;case\"s32\":e=Int32Array;break;case\"u32\":e=Uint32Array;break;case\"f32\":e=Float32Array;break;case\"f64\":e=Float64Array;break;case\"c64\":case\"c128\":case\"unknown\":e=Float32Array;break;default:s.neverReached(t)}return e},e.prototype.castPixelType=function(t){if(!t)return\"f32\";var e=t.toLowerCase();return[\"u1\",\"u2\",\"u4\"].indexOf(e)>-1?e=\"u8\":-1===[\"unknown\",\"u8\",\"s8\",\"u16\",\"s16\",\"u32\",\"s32\",\"f32\",\"f64\"].indexOf(e)&&(e=\"f32\"),e},e.prototype.getPlaneCount=function(){return this.pixels&&this.pixels.length},e.prototype.addData=function(t){if(!t.pixels||t.pixels.length!==this.width*this.height)throw new r(\"pixelblock:invalid-or-missing-pixels\",\"add data requires valid pixels array that has same length defined by pixel block width * height\");this.pixels||(this.pixels=[]),this.statistics||(this.statistics=[]),this.pixels.push(t.pixels),this.statistics.push(t.statistics||{minValue:null,maxValue:null})},e.prototype.getAsRGBA=function(){var t=new ArrayBuffer(this.width*this.height*4);switch(this.pixelType){case\"s8\":case\"s16\":case\"u16\":case\"s32\":case\"u32\":case\"f32\":case\"f64\":this._fillFromNon8Bit(t);break;default:this._fillFrom8Bit(t)}return new Uint8ClampedArray(t)},e.prototype.getAsRGBAFloat=function(){var t=new Float32Array(this.width*this.height*4);return this._fillFrom32Bit(t),t},e.prototype.updateStatistics=function(){var t=this;this.statistics=this.pixels.map((function(e){return t._calculateBandStatistics(e,t.mask)}));var e=this.mask,i=0;if(e)for(var s=0;sl?l:s=e.pixels.length})),r=i===t.length&&!t.some((function(t,e){return t!==e}));return s||r?this:new a({pixelType:this.pixelType,width:this.width,height:this.height,mask:this.mask,validPixelCount:this.validPixelCount,maskIsAlpha:this.maskIsAlpha,pixels:t.map((function(t){return e.pixels[t]})),statistics:this.statistics&&t.map((function(t){return e.statistics[t]}))})},e.prototype.clone=function(){var t,e=new a({width:this.width,height:this.height,pixelType:this.pixelType,maskIsAlpha:this.maskIsAlpha,validPixelCount:this.validPixelCount});this.mask&&(this.mask instanceof Uint8Array?e.mask=new Uint8Array(this.mask):e.mask=this.mask.slice(0));var i=a.getPixelArrayConstructor(this.pixelType);if(this.pixels&&this.pixels.length>0){e.pixels=[];var s=this.pixels[0].slice;for(t=0;t=3?(a=s[1],o=s[2]):2===s.length&&(a=s[1]);var n=new Uint32Array(t),h=this.width*this.height;if(r.length===h)if(e&&e.length===h)if(i)for(l=0;l0)o=s.map((function(t){return t.minValue})).reduce((function(t,e){return Math.min(t,e)})),a=255/s.map((function(t){return t.maxValue-t.minValue})).reduce((function(t,e){return Math.max(t,e)}));else{var l=255;\"s8\"===r?(o=-128,l=127):\"u16\"===r?l=65535:\"s16\"===r?(o=-32768,l=32767):\"u32\"===r?l=4294967295:\"s32\"===r?(o=-2147483648,l=2147483647):\"f32\"===r?(o=-34e38,l=34e38):\"f64\"===r&&(o=-Number.MAX_VALUE,l=Number.MAX_VALUE),a=255/(l-o)}var n,h,c,u,f,x=new Uint32Array(t),y=this.width*this.height;if((n=h=c=e[0]).length!==y)return p.error(\"getAsRGBA()\",\"Unable to convert to RGBA. The pixelblock is invalid.\");if(e.length>=2)if(h=e[1],e.length>=3&&(c=e[2]),i&&i.length===y)for(u=0;u=3?(i=a[1],s=a[2]):2===a.length&&(i=a[1]);var l=this.width*this.height;if(e.length!==l)return p.error(\"getAsRGBAFloat()\",\"Unable to convert to RGBA. The pixelblock is invalid.\");var n=0;if(o&&o.length===l)for(r=0;rr?o:r);else for(i=0;ir?o:r;return{minValue:s,maxValue:r}},i.__decorate([h.property({json:{write:!0}})],e.prototype,\"width\",void 0),i.__decorate([h.property({json:{write:!0}})],e.prototype,\"height\",void 0),i.__decorate([h.property({json:{write:!0}})],e.prototype,\"pixelType\",void 0),i.__decorate([h.cast(\"pixelType\")],e.prototype,\"castPixelType\",null),i.__decorate([h.property({json:{write:!0}})],e.prototype,\"validPixelCount\",void 0),i.__decorate([h.property({json:{write:!0}})],e.prototype,\"mask\",void 0),i.__decorate([h.property({json:{write:!0}})],e.prototype,\"maskIsAlpha\",void 0),i.__decorate([h.property({json:{write:!0}})],e.prototype,\"pixels\",void 0),i.__decorate([h.property({json:{write:!0}})],e.prototype,\"statistics\",void 0),e=a=i.__decorate([h.subclass(\"esri.layers.support.PixelBlock\")],e)}(a.JSONSupport)}));","// COPYRIGHT © 2020 Esri\n//\n// All rights reserved under the copyright laws of the United States\n// and applicable international laws, treaties, and conventions.\n//\n// This material is licensed for use under the Esri Master License\n// Agreement (MLA), and is bound by the terms of that agreement.\n// You may redistribute and use this code without modification,\n// provided you adhere to the terms of the MLA and include this\n// copyright notice.\n//\n// See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english\n//\n// For additional information, contact:\n// Environmental Systems Research Institute, Inc.\n// Attn: Contracts and Legal Services Department\n// 380 New York Street\n// Redlands, California, USA 92373\n// USA\n//\n// email: contracts@esri.com\n//\n// See http://js.arcgis.com/4.17/esri/copyright.txt for details.\n\ndefine([\"require\",\"exports\",\"../../../core/MapUtils\"],(function(t,e,r){\"use strict\";return function(){function t(t,e){void 0===t&&(t=15e3),void 0===e&&(e=5e3),this._timer=null,this._cachedBlocks=new Map,this._size=-1,this._duration=t,this._interval=Math.min(t,e)}return t.prototype.decreaseRefCount=function(t,e){var r=t+\"/\"+e,i=this._cachedBlocks;if(i.has(r)){var o=i.get(r);return o.refCount--,o.refCount<=0&&(i.delete(r),o.controller&&o.controller.abort()),o.refCount}return 0},t.prototype.getBlock=function(t,e){var r=t+\"/\"+e,i=this._cachedBlocks;if(i.has(r)){var o=i.get(r);return o.ts=Date.now(),o.refCount++,i.delete(r),i.set(r,o),o.block}return null},t.prototype.putBlock=function(t,e,r,i){void 0===i&&(i=null);var o=this._cachedBlocks,n=t+\"/\"+e;if(o.has(n)){var s=o.get(n);s.ts=Date.now(),s.refCount++}else o.set(n,{block:r,ts:Date.now(),refCount:1,controller:i});this.trim(),this.updateTimer()},t.prototype.deleteBlock=function(t,e){var r=this._cachedBlocks,i=t+\"/\"+e;r.has(i)&&r.delete(i)},t.prototype.updateMaxSize=function(t){this._size=t,this.trim()},t.prototype.empty=function(){this._cachedBlocks.clear(),this.clearTimer()},t.prototype.getCurrentSize=function(){return this._cachedBlocks.size},t.prototype.updateTimer=function(){var t=this;if(null==this._timer){var e=this._cachedBlocks;this._timer=setInterval((function(){for(var i=r.pairsOfMap(e),o=Date.now(),n=0;n=t.size))for(var e=r.pairsOfMap(t),i=0;i0;this._createOrDestroyRasterTexture(i),this._rasterTexture&&(a?(this._updateColormapTexture(i),this.transformGrid&&!this._transformGridTexture&&(this._transformGridTexture=l.createTransformTexture(i,this.transformGrid))):this._rasterTexture.setData(null)),this.suspended||(this.ready(),this.requestRender())}},e.prototype._createOrDestroyRasterTexture=function(t){var e=this.source?n.extractBands(this.source,this.bandIds):null;if(e&&e.pixels&&e.pixels.length>0){var r=null==this._rasterTextureBandIds&&null==this.bandIds||this._rasterTextureBandIds&&this.bandIds&&this._rasterTextureBandIds.join(\"\")===this.bandIds.join(\"\");if(this._rasterTexture){if(r)return;this._rasterTexture.dispose(),this._rasterTextureBandIds=null,this._rasterTexture=null}this._rasterTexture=l.createRasterTexture(t,e,this.interpolation||\"nearest\"),this._rasterTextureBandIds=this.bandIds}else this._rasterTexture&&(this._rasterTexture.dispose(),this._rasterTextureBandIds=null,this._rasterTexture=null)},e.prototype._updateColormapTexture=function(t){var e=this._colormap,r=this.symbolizerParameters.colormap;return r?e?r.length!==e.length||r.some((function(t,r){return t!==e[r]}))?(this._colormapTexture&&(this._colormapTexture.dispose(),this._colormapTexture=null),this._colormapTexture=l.createColormapTexture(t,r),void(this._colormap=r)):void 0:(this._colormapTexture=l.createColormapTexture(t,r),void(this._colormap=r)):(this._colormapTexture&&(this._colormapTexture.dispose(),this._colormapTexture=null),void(this._colormap=null))},e}(u.DisplayObject);e.RasterBitmap=h}));","// COPYRIGHT © 2020 Esri\n//\n// All rights reserved under the copyright laws of the United States\n// and applicable international laws, treaties, and conventions.\n//\n// This material is licensed for use under the Esri Master License\n// Agreement (MLA), and is bound by the terms of that agreement.\n// You may redistribute and use this code without modification,\n// provided you adhere to the terms of the MLA and include this\n// copyright notice.\n//\n// See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english\n//\n// For additional information, contact:\n// Environmental Systems Research Institute, Inc.\n// Attn: Contracts and Legal Services Department\n// 380 New York Street\n// Redlands, California, USA 92373\n// USA\n//\n// email: contracts@esri.com\n//\n// See http://js.arcgis.com/4.17/esri/copyright.txt for details.\n\ndefine([\"require\",\"exports\",\"tslib\",\"../../../geometry\",\"../../../core/Error\",\"../../../core/unitUtils\",\"../../../geometry/projection\",\"../../../geometry/support/spatialReferenceUtils\",\"../../../geometry/support/webMercatorUtils\"],(function(e,r,i,n,t,a,o,l,s){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.computeProjectedScales=r.snapPyramid=r.getProjectionOffsetGrid=r.projectExtent=r.projectPoint=r.projectResolution=r.load=r.defaultGridSpacing=void 0;var u=function(e,r){var i=(e.isWGS84||e.isWebMercator)&&(r.isWGS84||r.isWebMercator);return!(e.equals(r)||i)};function c(e,r,i,a){if(void 0===a&&(a=null),e.spatialReference.equals(r))return e;var l=u(e.spatialReference,r);if(l&&!o.isLoaded())throw new t(\"rasterprojectionhelper-projectResolution\",\"projection engine is not loaded\");var c=i.center,x=new n.Extent({xmin:c.x-e.x/2,xmax:c.x+e.x/2,ymin:c.y-e.y/2,ymax:c.y+e.y/2,spatialReference:e.spatialReference}),p=l?o.project(x,r,a):s.project(x,r);return null==p?null:{x:p.xmax-p.xmin,y:p.ymax-p.ymin}}function x(e,r){return void 0===r&&(r=.01),a.getMetersPerUnitForSR(e)?r/a.getMetersPerUnitForSR(e):0}function p(e,r,i,n){var a,c;void 0===i&&(i=null),void 0===n&&(n=!0);var p=e.spatialReference;if(p.equals(r))return e;var f=u(p,r);if(f&&!o.isLoaded())throw new t(\"rasterprojectionhelper-projectResolution\",\"projection engine is not loaded\");var d=f?o.project(e,r,i):s.project(e,r);if(d&&n&&r.isGeographic){var m=p.isWebMercator?l.getInfo(p).origin:null!==(c=null===(a=l.getInfo(p))||void 0===a?void 0:a.valid)&&void 0!==c?c:[],h=m[0],v=m[1],y=x(p);y&&null!=h&&null!=v&&(Math.abs(e.x-h)1e3&&Math.abs(180-M.xmax)<5e-4){M.xmin=-180,(P=[]).push(new n.Point(e.xmax,e.ymin,v)),P.push(new n.Point(e.xmax,(e.ymin+e.ymax)/2,v)),P.push(new n.Point(e.xmax,e.ymax,v));var R=P.map((function(e){return p(e,r,i)})).filter((function(e){return!isNaN(null==e?void 0:e.x)})).map((function(e){return e.x}));M.xmax=Math.max.apply(null,R)}if(Math.abs(e.xmax-j)<.001&&Math.abs(w-e.xmin)>1e3&&Math.abs(180+M.xmin)<5e-4){var P;M.xmax=180,(P=[]).push(new n.Point(e.xmin,e.ymin,v)),P.push(new n.Point(e.xmin,(e.ymin+e.ymax)/2,v)),P.push(new n.Point(e.xmin,e.ymax,v));R=P.map((function(e){return p(e,r,i)})).filter((function(e){return!isNaN(null==e?void 0:e.x)})).map((function(e){return e.x}));M.xmin=Math.min.apply(null,R)}}w=(c=r.isWebMercator?l.getInfo(r).origin:null!==(h=null===(m=l.getInfo(r))||void 0===m?void 0:m.valid)&&void 0!==h?h:[])[0],j=c[1];var b=x(r);return b&&null!=w&&null!=j&&(Math.abs(M.xmin-w)0&&c&&m&&h[U]&&null!=P&&m.xo&&(s=l>o+3,l=o);var u=Math.pow(2,l);return{pyramidLevel:l,pyramidResolution:new n.Point({x:u*r.pixelSize.x,y:u*r.pixelSize.y,spatialReference:r.spatialReference}),excessiveReading:s}},r.computeProjectedScales=function(e,r,i,t){void 0===i&&(i=512),void 0===t&&(t=!0);var o=e.extent,l=e.spatialReference,s=e.pixelSize,u=c(new n.Point({x:s.x,y:s.y,spatialReference:l}),r,o);if(null==u)return{projectedPixelSize:null,scales:null,srcResolutions:null};var x=(u.x+u.y)/2,p=a.getMetersPerUnitForSR(r),d=x*p*96*39.37,m=r.isGeographic?512/i*295828763.7958547:512/i*591657527.591555,h=!1;if(t&&(r.isGeographic||r.isWebMercator)){var v=f(o,r);h=v.xmin*v.xmax<0}var y,M=d;if(h){var g=(M=m)/(96*p*39.37);y=c(new n.Point({x:g,y:g,spatialReference:r}),l,o)}else{y={x:s.x,y:s.y};for(var w=Math.ceil(Math.log(Math.min(e.width,e.height)/32)/Math.LN2),j=0;M<.5005*m&&j=b;)R.push(M),P.push({x:y.x,y:y.y}),M/=2,y.x/=2,y.y/=2;return{projectedPixelSize:u,scales:R,srcResolutions:P}}}));","// COPYRIGHT © 2020 Esri\n//\n// All rights reserved under the copyright laws of the United States\n// and applicable international laws, treaties, and conventions.\n//\n// This material is licensed for use under the Esri Master License\n// Agreement (MLA), and is bound by the terms of that agreement.\n// You may redistribute and use this code without modification,\n// provided you adhere to the terms of the MLA and include this\n// copyright notice.\n//\n// See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english\n//\n// For additional information, contact:\n// Environmental Systems Research Institute, Inc.\n// Attn: Contracts and Legal Services Department\n// 380 New York Street\n// Redlands, California, USA 92373\n// USA\n//\n// email: contracts@esri.com\n//\n// See http://js.arcgis.com/4.17/esri/copyright.txt for details.\n\ndefine([\"require\",\"exports\",\"tslib\",\"../../../../core/Error\",\"../../../../core/Logger\",\"../../../../core/maybe\",\"../../../../core/libs/earcut/earcut\",\"../../../../core/libs/gl-matrix-2/vec2\",\"../../../../core/libs/gl-matrix-2/vec2f64\",\"../../../../layers/graphics/featureConversionUtils\",\"../../../../layers/graphics/OptimizedGeometry\",\"./number\",\"../../../webgl/BufferObject\"],(function(e,r,t,n,o,i,c,a,f,s,u,h,y){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0});var m=o.getLogger(\"esri.views.2d.engine.webgl.Mesh2D\"),g=function(e,r,t,n){for(var o=0,i=1;i0:o<0},v=function(e,r){for(var t=e.coords,n=e.lengths,o=[],i=0,a=0;i0&&(_=v.filter((function(e){var t=e.attributes.value||e.attributes.Value||e.attributes.VALUE;return String(t)===m}))).length>0&&(g=_[0]))for(w in g.attributes)g.attributes.hasOwnProperty(w)&&(b=this._rasterFieldPrefix+w,h[b]=this._formatAttributeValue(g.attributes[w],b));(T=new i(this.fullExtent.clone(),null,h)).layer=s,T.sourceLayer=T.layer,y.push(T)}return[2,y]}}))}))},t.prototype.updateFullExtent=function(){var e,t=this.layer.tileInfo;t&&t.spatialReference||(e=new o(\"layerview:tiling-information-missing\",\"The layer doesn't provide tiling information\",{layer:this.layer}));var r=this.view.spatialReference;if(u.doesBrowserSupportProjection(r,this.layer.spatialReference)){var i=s.projectExtent(this.layer.fullExtent,r,this.datumTransformation);null==i&&(e=new o(\"layerview:projection-not-supported\",\"The layer extent cannot be projected to the view's spatial reference\",{layer:this.layer})),this._set(\"fullExtent\",i)}else e=new o(\"layerview:projection-not-supported\",\"The layer requires projection engine, which is not supported in current browser\",{layer:this.layer});return e?a.reject(e):a.resolve()},t.prototype._formatAttributeValue=function(e,t){if(\"string\"==typeof e){var r=this.layer.popupTemplate&&this.layer.popupTemplate.fieldInfos,i=this._getFieldInfo(r,t),o=i&&i.format;if(o){var n=void 0,a=void 0;return e.trim().indexOf(\",\")>-1?(a=(n=\",\")+\" \",this._formatDelimitedString(e,n,a,o)):e.trim().indexOf(\" \")>-1?(n=a=\" \",this._formatDelimitedString(e,n,a,o)):this._formatNumberFromString(e,o)}}return e},t.prototype._getFieldInfo=function(e,t){if(e&&e.length&&t){var r=t.toLowerCase(),i=void 0;return e.some((function(e){return!(!e.fieldName||e.fieldName.toLowerCase()!==r&&e.fieldName.toLowerCase()!==r.replace(/ /g,\"_\"))&&(i=e,!0)})),i}},t.prototype._formatDelimitedString=function(e,t,r,i){var o=this;return e&&t&&r&&i?e.trim().split(t).map((function(e){return o._formatNumberFromString(e,i)})).join(r):e},t.prototype._formatNumberFromString=function(e,t){if(!e||!t)return e;var r=Number(e);return isNaN(r)?e:t.format(r)},r.__decorate([l.property()],t.prototype,\"layer\",void 0),r.__decorate([l.property()],t.prototype,\"view\",void 0),r.__decorate([l.property()],t.prototype,\"fullExtent\",void 0),r.__decorate([l.property()],t.prototype,\"tileInfo\",void 0),r.__decorate([l.property({readOnly:!0,dependsOn:[\"layer.renderer\"]})],t.prototype,\"hasTilingEffects\",null),t=r.__decorate([l.subclass(\"esri.views.layers.ImageryTileLayerView\")],t)}(e)}}));","// COPYRIGHT © 2020 Esri\n//\n// All rights reserved under the copyright laws of the United States\n// and applicable international laws, treaties, and conventions.\n//\n// This material is licensed for use under the Esri Master License\n// Agreement (MLA), and is bound by the terms of that agreement.\n// You may redistribute and use this code without modification,\n// provided you adhere to the terms of the MLA and include this\n// copyright notice.\n//\n// See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english\n//\n// For additional information, contact:\n// Environmental Systems Research Institute, Inc.\n// Attn: Contracts and Legal Services Department\n// 380 New York Street\n// Redlands, California, USA 92373\n// USA\n//\n// email: contracts@esri.com\n//\n// See http://js.arcgis.com/4.17/esri/copyright.txt for details.\n\ndefine([\"require\",\"exports\",\"tslib\",\"../../../geometry\",\"../../../core/accessorSupport/decorators\",\"../../../geometry/Geometry\",\"../../../geometry/support/jsonUtils\",\"./ClipArea\"],(function(e,t,r,o,n,p,s,y){\"use strict\";var i={base:p,key:\"type\",typeMap:{extent:o.Extent,polygon:o.Polygon}};return function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=\"geometry\",t.geometry=null,t}var o;return r.__extends(t,e),o=t,Object.defineProperty(t.prototype,\"version\",{get:function(){return(this._get(\"version\")||0)+1},enumerable:!1,configurable:!0}),t.prototype.clone=function(){return new o({geometry:this.geometry.clone()})},r.__decorate([n.property({types:i,json:{read:s.fromJSON,write:!0}})],t.prototype,\"geometry\",void 0),r.__decorate([n.property({readOnly:!0,dependsOn:[\"geometry\"]})],t.prototype,\"version\",null),t=o=r.__decorate([n.subclass(\"esri.views.layers.support.Geometry\")],t)}(y)}));","// COPYRIGHT © 2020 Esri\n//\n// All rights reserved under the copyright laws of the United States\n// and applicable international laws, treaties, and conventions.\n//\n// This material is licensed for use under the Esri Master License\n// Agreement (MLA), and is bound by the terms of that agreement.\n// You may redistribute and use this code without modification,\n// provided you adhere to the terms of the MLA and include this\n// copyright notice.\n//\n// See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english\n//\n// For additional information, contact:\n// Environmental Systems Research Institute, Inc.\n// Attn: Contracts and Legal Services Department\n// 380 New York Street\n// Redlands, California, USA 92373\n// USA\n//\n// email: contracts@esri.com\n//\n// See http://js.arcgis.com/4.17/esri/copyright.txt for details.\n\ndefine([\"require\",\"exports\",\"tslib\",\"./enums\",\"./WGLContainer\",\"./brushes/WGLBrushInfo\",\"./brushes/WGLBrushStencil\"],(function(e,r,t,n,s,i,o){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.sortByLevel=void 0,r.sortByLevel=function(e,r){return e.key.level-r.key.level!=0?e.key.level-r.key.level:e.key.row-r.key.row!=0?e.key.row-r.key.row:e.key.col-r.key.col};var l=function(e){function s(r){var t=e.call(this)||this;return t._tileInfoView=r,t}return t.__extends(s,e),s.prototype.renderChildren=function(t){this.sortChildren(r.sortByLevel),this.setStencilReference(),e.prototype.renderChildren.call(this,t)},s.prototype.createRenderParams=function(r){var n=r.state;return t.__assign(t.__assign({},e.prototype.createRenderParams.call(this,r)),{requiredLevel:this._tileInfoView.getClosestInfoForScale(n.scale).level,displayLevel:this._tileInfoView.tileInfo.scaleToZoom(n.scale)})},s.prototype.prepareRenderPasses=function(r){var s=this,l=r.registerRenderPass({name:\"stencil\",brushes:[o.default],drawPhase:n.WGLDrawPhase.DEBUG|n.WGLDrawPhase.MAP,target:function(){return s.getStencilTarget()}}),a=r.registerRenderPass({name:\"tileInfo\",brushes:[i.default],drawPhase:n.WGLDrawPhase.DEBUG,target:function(){return s.children},has:\"esri-tiles-debug\"});return t.__spreadArrays(e.prototype.prepareRenderPasses.call(this,r),[l,a])},s.prototype.getStencilTarget=function(){return this.children},s.prototype.updateTransforms=function(e){for(var r=0,t=this.children;r=o&&(a=!0),t=r&&a}return t},t.prototype.requestUpdate=function(){this.updateRequested||(this.updateRequested=!0,this.suspended||this.view.requestUpdate())},t.prototype.processUpdate=function(e){!this.isFulfilled()||this.isResolved()?(this._set(\"updateParameters\",e),this.updateRequested&&!this.suspended&&(this.updateRequested=!1,this.update(e))):this.updateRequested=!1},t.prototype.isUpdating=function(){return!1},t.prototype.isRendering=function(){return!1},t.prototype.canResume=function(){return!!e.prototype.canResume.call(this)&&this.isVisibleAtScale(this.view.scale)},i.__decorate([a.property({type:l,set:function(e){var t=o.referenceSetter(e,this._get(\"clips\"),l);this._set(\"clips\",t)}})],t.prototype,\"clips\",void 0),i.__decorate([a.property()],t.prototype,\"moving\",void 0),i.__decorate([a.property()],t.prototype,\"attached\",void 0),i.__decorate([a.property()],t.prototype,\"container\",void 0),i.__decorate([a.property({dependsOn:[\"view.scale\",\"layer.minScale\",\"layer.maxScale\"]})],t.prototype,\"suspended\",void 0),i.__decorate([a.property({readOnly:!0})],t.prototype,\"updateParameters\",void 0),i.__decorate([a.property()],t.prototype,\"updateRequested\",void 0),i.__decorate([a.property({dependsOn:[\"attached\",\"updateRequested\",\"suspended\"]})],t.prototype,\"updating\",null),i.__decorate([a.property()],t.prototype,\"view\",void 0),t=i.__decorate([a.subclass(\"esri.views.2d.layers.LayerView2D\")],t)}(e)}}));","// COPYRIGHT © 2020 Esri\n//\n// All rights reserved under the copyright laws of the United States\n// and applicable international laws, treaties, and conventions.\n//\n// This material is licensed for use under the Esri Master License\n// Agreement (MLA), and is bound by the terms of that agreement.\n// You may redistribute and use this code without modification,\n// provided you adhere to the terms of the MLA and include this\n// copyright notice.\n//\n// See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english\n//\n// For additional information, contact:\n// Environmental Systems Research Institute, Inc.\n// Attn: Contracts and Legal Services Department\n// 380 New York Street\n// Redlands, California, USA 92373\n// USA\n//\n// email: contracts@esri.com\n//\n// See http://js.arcgis.com/4.17/esri/copyright.txt for details.\n\ndefine([\"require\",\"exports\",\"tslib\",\"../../../core/accessorSupport/decorators\",\"./ClipArea\"],(function(t,e,r,o,p){\"use strict\";return function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=\"rect\",e.left=null,e.right=null,e.top=null,e.bottom=null,e}var p;return r.__extends(e,t),p=e,e.prototype.clone=function(){return new p({left:this.left,right:this.right,top:this.top,bottom:this.bottom})},Object.defineProperty(e.prototype,\"version\",{get:function(){return(this._get(\"version\")||0)+1},enumerable:!1,configurable:!0}),r.__decorate([o.property({type:[Number,String],json:{write:!0}})],e.prototype,\"left\",void 0),r.__decorate([o.property({type:[Number,String],json:{write:!0}})],e.prototype,\"right\",void 0),r.__decorate([o.property({type:[Number,String],json:{write:!0}})],e.prototype,\"top\",void 0),r.__decorate([o.property({type:[Number,String],json:{write:!0}})],e.prototype,\"bottom\",void 0),r.__decorate([o.property({readOnly:!0,dependsOn:[\"left\",\"right\",\"top\",\"bottom\"]})],e.prototype,\"version\",null),e=p=r.__decorate([o.subclass(\"esri.views.layers.support.ClipRect\")],e)}(p)}));","// COPYRIGHT © 2020 Esri\n//\n// All rights reserved under the copyright laws of the United States\n// and applicable international laws, treaties, and conventions.\n//\n// This material is licensed for use under the Esri Master License\n// Agreement (MLA), and is bound by the terms of that agreement.\n// You may redistribute and use this code without modification,\n// provided you adhere to the terms of the MLA and include this\n// copyright notice.\n//\n// See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english\n//\n// For additional information, contact:\n// Environmental Systems Research Institute, Inc.\n// Attn: Contracts and Legal Services Department\n// 380 New York Street\n// Redlands, California, USA 92373\n// USA\n//\n// email: contracts@esri.com\n//\n// See http://js.arcgis.com/4.17/esri/copyright.txt for details.\n\ndefine([\"require\",\"exports\"],(function(e,r){\"use strict\";function t(e,r){return r?\"xoffset\"in r&&r.xoffset?Math.max(e,Math.abs(r.xoffset)):\"yoffset\"in r&&r.yoffset?Math.max(e,Math.abs(r.yoffset||0)):e:e}function n(e,r){return\"number\"==typeof e?e:e&&e.stops&&e.stops.length?function(e){for(var r=0,t=0,n=0;n