text: self.webpackChunkRemoteClient([61],{196:function(e,t,l){"use strict";l.r(t);var r=l(18),i=(l(7),l(5)),o=l(37),s=(l(3),l(4),l(20)),a=l(53),n=l(19),c=l(57),p=l(14),u=l(24),b=(l(34),l(35),l(2)),h=l(55),j=l(60),O=l(56),d=(l(58),l(51)),y=l(80),f=l(81),v=l(110),m=l(91),w=l(89),g=l(127),T=l(106),x=l(99),S=l(77),R=l(229);let z=class extends(Object(v.a)(Object(g.a)(Object(T.a)(Object(m.a)(Object(w.a)(Object(f.a)(y.a))))))){constructor(...e){super(...e),this.copyright="",this.fullExtent=new O.a(-20037508.342787,-20037508.34278,20037508.34278,20037508.342787,h.a.WebMercator),this.legendEnabled=!1,this.isReference=null,this.popupEnabled=!1,this.spatialReference=h.a.WebMercator,this.subDomains=null,this.tileInfo=new S.a({size:[256,256],dpi:96,format:"png8",compressionQuality:0,origin:new j.a({x:-20037508.342787,y:20037508.342787,spatialReference:h.a.WebMercator}),spatialReference:h.a.WebMercator,lods:[new x.a({level:0,scale:591657527.591555,resolution:156543.033928}),new x.a({level:1,scale:295828763.795777,resolution:78271.5169639999}),new x.a({level:2,scale:147914381.897889,resolution:39135.7584820001}),new x.a({level:3,scale:73957190.948944,resolution:19567.8792409999}),new x.a({level:4,scale:36978595.474472,resolution:9783.93962049996}),new x.a({level:5,scale:18489297.737236,resolution:4891.96981024998}),new x.a({level:6,scale:9244648.868618,resolution:2445.98490512499}),new x.a({level:7,scale:4622324.434309,resolution:1222.99245256249}),new x.a({level:8,scale:2311162.217155,resolution:611.49622628138}),new x.a({level:9,scale:1155581.108577,resolution:305.748113140558}),new x.a({level:10,scale:577790.554289,resolution:152.874056570411}),new x.a({level:11,scale:288895.277144,resolution:76.4370282850732}),new x.a({level:12,scale:144447.638572,resolution:38.2185141425366}),new x.a({level:13,scale:72223.819286,resolution:19.1092570712683}),new x.a({level:14,scale:36111.909643,resolution:9.55462853563415}),new x.a({level:15,scale:18055.954822,resolution:4.77731426794937}),new x.a({level:16,scale:9027.977411,resolution:2.38865713397468}),new x.a({level:17,scale:4513.988705,resolution:1.19432856685505}),new x.a({level:18,scale:2256.994353,resolution:.597164283559817}),new x.a({level:19,scale:1128.497176,resolution:.298582141647617})]}),this.type="web-tile",this.urlTemplate=null,this.wmtsInfo=null}normalizeCtorArgs(e,t){return"string"==typeof e?Object(i.d)({urlTemplate:e},t||{}):e}load(e){const t=this.loadFromPortal({supportedTypes:["WMTS"]},e).then(()=>{let e="";if(this.urlTemplate)if(this.spatialReference.equals(this.tileInfo.spatialReference)){const t=new u.a(this.urlTemplate);this.subDomains&&this.subDomains.length>0||-1===t.authority.indexOf("{subDomain}")||(e="is missing 'subDomains' property")}else e="spatialReference must match tileInfo.spatialReference";else e="is missing the required 'urlTemplate' property value";if(e)throw new p.a("web-tile-layer:load",`WebTileLayer (title: '${this.title}', id: '${this.id}') ${e}`)});return this.addResolvingPromise(t),Object(b.s)(this)}get levelValues(){const e=[];if(!this.tileInfo)return null;for(const t of this.tileInfo.lods)e[t.level]=t.levelValue||t.level;return e}readSpatialReference(e,t){return e||t.fullExtent&&t.fullExtent.spatialReference&&h.a.fromJSON(t.fullExtent.spatialReference)}get tileServers(){if(!this.urlTemplate)return null;const e=[],{urlTemplate:t,subDomains:l}=this,r=new u.a(t),i=r.scheme?r.scheme+"://":"//",o=i+r.authority+"/";if(-1===r.authority.indexOf("{subDomain}"))e.push(o);else if(l&&l.length>0&&r.authority.split(".").length>1)for(const t of l)e.push(i+r.authority.replace(/\{subDomain\}/gi,t)+"/");return e.map(e=>("/"!==e.charAt(e.length-1)&&(e+="/"),e))}get urlPath(){if(!this.urlTemplate)return null;const e=this.urlTemplate,t=new u.a(e),l=(t.scheme?t.scheme+"://":"//")+t.authority+"/";return e.substring(l.length)}readUrlTemplate(e,t){return e||t.templateUrl}writeUrlTemplate(e,t){e&&Object(u.u)(e)&&(e="https:"+e),e&&(e=e.replace(/\{z\}/gi,"{level}").replace(/\{x\}/gi,"{col}").replace(/\{y\}/gi,"{row}"),e=Object(u.A)(e)),t.templateUrl=e}fetchTile(e,t,l,r={}){const{signal:i,timestamp:o}=r,s=this.getTileUrl(e,t,l),a={responseType:"image",signal:i};return null!=o&&(a.query={_ts:r.timestamp}),Object(d.default)(s,a).then(e=>e.data)}getTileUrl(e,t,l){const r=this.levelValues[e];return this.tileServers[t%this.tileServers.length]+Object(o.c)(this.urlPath,{level:r,z:r,col:l,x:l,row:t,y:t})}};Object(r.a)([Object(s.b)({type:String,value:"",json:{write:!0}})],z.prototype,"copyright",void 0),Object(r.a)([Object(s.b)({type:O.a,json:{write:!0}})],z.prototype,"fullExtent",void 0),Object(r.a)([Object(s.b)({readOnly:!0,json:{read:!1,write:!1}})],z.prototype,"legendEnabled",void 0),Object(r.a)([Object(s.b)({type:["show","hide"]})],z.prototype,"listMode",void 0),Object(r.a)([Object(s.b)({dependsOn:["tileInfo"]})],z.prototype,"levelValues",null),Object(r.a)([Object(s.b)({type:Boolean,json:{read:!1,write:{enabled:!0,overridePolicy:()=>({enabled:!1})}}})],z.prototype,"isReference",void 0),Object(r.a)([Object(s.b)({type:["WebTiledLayer"],value:"WebTiledLayer"})],z.prototype,"operationalLayerType",void 0),Object(r.a)([Object(s.b)({readOnly:!0,json:{read:!1,write:!1}})],z.prototype,"popupEnabled",void 0),Object(r.a)([Object(s.b)({type:h.a})],z.prototype,"spatialReference",void 0),Object(r.a)([Object(a.a)("spatialReference",["spatialReference","fullExtent.spatialReference"])],z.prototype,"readSpatialReference",null),Object(r.a)([Object(s.b)({type:[String],json:{write:!0}})],z.prototype,"subDomains",void 0),Object(r.a)([Object(s.b)({type:S.a,json:{write:!0}})],z.prototype,"tileInfo",void 0),Object(r.a)([Object(s.b)({readOnly:!0,dependsOn:["urlTemplate","subDomains"]})],z.prototype,"tileServers",null),Object(r.a)([Object(s.b)({json:{read:!1}})],z.prototype,"type",void 0),Object(r.a)([Object(s.b)({dependsOn:["urlTemplate"]})],z.prototype,"urlPath",null),Object(r.a)([Object(s.b)({type:String,json:{origins:{"portal-item":{read:{source:"url"}}}}})],z.prototype,"urlTemplate",void 0),Object(r.a)([Object(a.a)("urlTemplate",["urlTemplate","templateUrl"])],z.prototype,"readUrlTemplate",null),Object(r.a)([Object(c.a)("urlTemplate",{templateUrl:{type:String}})],z.prototype,"writeUrlTemplate",null),Object(r.a)([Object(s.b)({type:R.a,json:{write:!0}})],z.prototype,"wmtsInfo",void 0),z=Object(r.a)([Object(n.a)("esri.layers.WebTileLayer")],z);var M=z;t.default=M},229:function(e,t,l){"use strict";var r,i=l(18),o=(l(7),l(5)),s=(l(3),l(4),l(20)),a=l(19),n=(l(24),l(34),l(35),l(50));let c=r=class extends n.a{constructor(e){super(e)}clone(){return new r({customLayerParameters:Object(o.a)(this.customLayerParameters),customParameters:Object(o.a)(this.customParameters),layerIdentifier:this.layerIdentifier,tileMatrixSet:this.tileMatrixSet,url:this.url})}};Object(i.a)([Object(s.b)({json:{type:Object,write:!0}})],c.prototype,"customLayerParameters",void 0),Object(i.a)([Object(s.b)({json:{type:Object,write:!0}})],c.prototype,"customParameters",void 0),Object(i.a)([Object(s.b)({type:String,json:{write:!0}})],c.prototype,"layerIdentifier",void 0),Object(i.a)([Object(s.b)({type:String,json:{write:!0}})],c.prototype,"tileMatrixSet",void 0),Object(i.a)([Object(s.b)({type:String,json:{write:!0}})],c.prototype,"url",void 0),c=r=Object(i.a)([Object(a.a)("esri.layer.support.WMTSLayerInfo")],c);var p=c;t.a=p},77:function(e,t,l){"use strict";var r,i=l(18),o=(l(7),l(3),l(4)),s=l(20),a=l(52),n=l(53),c=l(19),p=l(57),u=(l(24),l(34),l(35),l(50)),b=l(71),h=l(55),j=l(92),O=l(60),d=(l(58),l(87)),y=l(83),f=l(99);const v=new a.a({PNG:"png",PNG8:"png8",PNG24:"png24",PNG32:"png32",JPEG:"jpg",JPG:"jpg",DIB:"dib",TIFF:"tiff",EMF:"emf",PS:"ps",PDF:"pdf",GIF:"gif",SVG:"svg",SVGZ:"svgz",Mixed:"mixed",MIXED:"mixed",LERC:"lerc",LERC2D:"lerc2d",RAW:"raw",pbf:"pbf"});let m=r=class extends u.a{constructor(e){super(e),this.dpi=96,this.format=null,this.origin=null,this.minScale=0,this.maxScale=0,this.size=null,this.spatialReference=null}static create(e={size:256,spatialReference:h.a.WebMercator}){const t=e.resolutionFactor||1,l=e.scales,i=e.size||256,o=e.spatialReference||h.a.WebMercator;if(!Object(b.h)(o)){const e=[];if(l)for(let t=0;t<l.length;t++){const r=l[t];e.push({level:t,scale:r,resolution:r})}else{let t=5e-4;for(let l=23;l>=0;l--)e.unshift({level:l,scale:t,resolution:t}),t*=2}return new r({dpi:96,lods:e,origin:new O.a(0,0,o),size:[i,i],spatialReference:o})}const s=Object(b.d)(o),a=e.origin?new O.a({x:e.origin.x,y:e.origin.y,spatialReference:o}):new O.a(s?{x:s.origin[0],y:s.origin[1],spatialReference:o}:{x:0,y:0,spatialReference:o}),n=1/(39.37*Object(d.b)(o)*96),c=[];if(l)for(let e=0;e<l.length;e++){const t=l[e],r=t*n;c.push({level:e,scale:t,resolution:r})}else{let e=Object(b.e)(o)?512/i*591657527.5917094:256/i*591657527.591555;const l=Math.ceil(24/t);c.push({level:0,scale:e,resolution:e*n});for(let r=1;r<l;r++){const l=e/Math.pow(2,t),i=l*n;c.push({level:r,scale:l,resolution:i}),e=l}}return new r({dpi:96,lods:c,origin:a,size:[i,i],spatialReference:o})}get isWrappable(){const{spatialReference:e,origin:t}=this;if(e&&t){const l=Object(b.d)(e);return e.isWrappable&&Math.abs(l.origin[0]-t.x)<=l.dx}return!1}readOrigin(e,t){return O.a.fromJSON({spatialReference:t.spatialReference,...e})}set lods(e){let t=0,l=0;const r=[];this._levelToLOD={},e&&(t=-1/0,l=1/0,e.forEach(e=>{r.push(e.scale),t=e.scale>t?e.scale:t,l=e.scale<l?e.scale:l,this._levelToLOD[e.level]=e})),this._set("scales",r),this._set("minScale",t),this._set("maxScale",l),this._set("lods",e),this._initializeUpsampleLevels()}readSize(e,t){return[t.cols,t.rows]}writeSize(e,t){t.cols=e[0],t.rows=e[0]}zoomToScale(e){const t=this.scales;if(e<=0)return t[0];if(e>=t.length)return t[t.length-1];{const l=Math.round(e-.5),r=Math.round(e);return t[r]+(r-e)*(t[l]-t[r])}}scaleToZoom(e){const t=this.scales,l=t.length-1;let r=0;for(;r<l;r++){const l=t[r],i=t[r+1];if(l<=e)return r;if(i===e)return r+1;if(l>e&&i<e)return r+1-(e-i)/(l-i)}return r}snapScale(e,t=.95){const l=this.scaleToZoom(e);return l%Math.floor(l)>=t?this.zoomToScale(Math.ceil(l)):this.zoomToScale(Math.floor(l))}tileAt(e,t,l,r){const i=this.lodAt(e);if(!i)return null;let o,s;if("number"==typeof t)o=t,s=l;else if(Object(b.c)(t.spatialReference,this.spatialReference))o=t.x,s=t.y,r=l;else{const e=Object(j.d)(t,this.spatialReference);if(!e)return null;o=e.x,s=e.y,r=l}const a=i.resolution*this.size[0],n=i.resolution*this.size[1];return r||(r={id:null,level:0,row:0,col:0,extent:Object(y.c)()}),r.level=e,r.row=Math.floor((this.origin.y-s)/n+.001),r.col=Math.floor((o-this.origin.x)/a+.001),this.updateTileInfo(r),r}updateTileInfo(e){const t=this.lodAt(e.level);if(!t)return;const l=t.resolution*this.size[0],r=t.resolution*this.size[1];e.id=`${e.level}/${e.row}/${e.col}`,e.extent||(e.extent=Object(y.c)()),e.extent[0]=this.origin.x+e.col*l,e.extent[1]=this.origin.y-(e.row+1)*r,e.extent[2]=e.extent[0]+l,e.extent[3]=e.extent[1]+r}upsampleTile(e){const t=this._upsampleLevels[e.level];return!(!t||-1===t.parentLevel||(e.level=t.parentLevel,e.row=Math.floor(e.row/t.factor+.001),e.col=Math.floor(e.col/t.factor+.001),this.updateTileInfo(e),0))}getTileBounds(e,t){const{resolution:l}=this.lodAt(t.level),r=l*this.size[0],i=l*this.size[1];return e[0]=this.origin.x+t.col*r,e[1]=this.origin.y-(t.row+1)*i,e[2]=e[0]+r,e[3]=e[1]+i,e}lodAt(e){return this._levelToLOD&&this._levelToLOD[e]||null}clone(){return r.fromJSON(this.write({}))}_initializeUpsampleLevels(){const e=this.lods;this._upsampleLevels=[];let t=null;for(let l=0;l<e.length;l++){const r=e[l];this._upsampleLevels[r.level]={parentLevel:t?t.level:-1,factor:t?t.resolution/r.resolution:0},t=r}}};Object(i.a)([Object(s.b)({type:Number,json:{write:!0}})],m.prototype,"compressionQuality",void 0),Object(i.a)([Object(s.b)({type:Number,json:{write:!0}})],m.prototype,"dpi",void 0),Object(i.a)([Object(s.b)({type:String,json:{read:v.read,write:v.write,origins:{"web-scene":{read:!1,write:!1}}}})],m.prototype,"format",void 0),Object(i.a)([Object(s.b)({readOnly:!0,dependsOn:["spatialReference","origin"]})],m.prototype,"isWrappable",null),Object(i.a)([Object(s.b)({type:O.a,json:{write:!0}})],m.prototype,"origin",void 0),Object(i.a)([Object(n.a)("origin")],m.prototype,"readOrigin",null),Object(i.a)([Object(s.b)({type:[f.a],value:null,json:{write:!0}})],m.prototype,"lods",null),Object(i.a)([Object(s.b)({readOnly:!0})],m.prototype,"minScale",void 0),Object(i.a)([Object(s.b)({readOnly:!0})],m.prototype,"maxScale",void 0),Object(i.a)([Object(s.b)({readOnly:!0})],m.prototype,"scales",void 0),Object(i.a)([Object(s.b)({cast:e=>Array.isArray(e)?e:"number"==typeof e?[e,e]:[256,256]})],m.prototype,"size",void 0),Object(i.a)([Object(n.a)("size",["rows","cols"])],m.prototype,"readSize",null),Object(i.a)([Object(p.a)("size",{cols:{type:o.a},rows:{type:o.a}})],m.prototype,"writeSize",null),Object(i.a)([Object(s.b)({type:h.a,json:{write:!0}})],m.prototype,"spatialReference",void 0),m=r=Object(i.a)([Object(c.a)("esri.layers.support.TileInfo")],m);var w=m;t.a=w},99:function(e,t,l){"use strict";var r,i=l(18),o=(l(7),l(3),l(4)),s=l(20),a=l(19),n=(l(24),l(34),l(35),l(50));let c=r=class extends n.a{constructor(e){super(e),this.level=0,this.levelValue=null,this.resolution=0,this.scale=0}clone(){return new r({level:this.level,levelValue:this.levelValue,resolution:this.resolution,scale:this.scale})}};Object(i.a)([Object(s.b)({type:o.a,json:{write:!0}})],c.prototype,"level",void 0),Object(i.a)([Object(s.b)({type:String,json:{write:!0}})],c.prototype,"levelValue",void 0),Object(i.a)([Object(s.b)({type:Number,json:{write:!0}})],c.prototype,"resolution",void 0),Object(i.a)([Object(s.b)({type:Number,json:{write:!0}})],c.prototype,"scale",void 0),c=r=Object(i.a)([Object(a.a)("esri.layers.support.LOD")],c);var p=c;t.a=p}});