/*
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/4.24/esri/copyright.txt for details.
*/
define(["../chunks/_rollupPluginBabelHelpers","../chunks/tslib.es6","../geometry","../core/accessorSupport/decorators/property","../core/arrayUtils","../core/has","../core/accessorSupport/ensureType","../core/accessorSupport/decorators/subclass","../geometry/Point","./WebTileLayer","./support/LOD","./support/TileInfo","../portal/PortalItem","../geometry/SpatialReference","../geometry/Extent"],(function(e,r,o,t,l,n,s,a,p,i,c,u,y,d,w){"use strict";let v=function(r){function o(...e){var o;return(o=r.call(this,...e)||this).portalItem=null,o.isReference=null,o.tileInfo=new u({size:[256,256],dpi:96,format:"png8",compressionQuality:0,origin:new p({x:-20037508.342787,y:20037508.342787,spatialReference:d.WebMercator}),spatialReference:d.WebMercator,lods:[new c({level:0,scale:591657527.591555,resolution:156543.033928}),new c({level:1,scale:295828763.795777,resolution:78271.5169639999}),new c({level:2,scale:147914381.897889,resolution:39135.7584820001}),new c({level:3,scale:73957190.948944,resolution:19567.8792409999}),new c({level:4,scale:36978595.474472,resolution:9783.93962049996}),new c({level:5,scale:18489297.737236,resolution:4891.96981024998}),new c({level:6,scale:9244648.868618,resolution:2445.98490512499}),new c({level:7,scale:4622324.434309,resolution:1222.99245256249}),new c({level:8,scale:2311162.217155,resolution:611.49622628138}),new c({level:9,scale:1155581.108577,resolution:305.748113140558}),new c({level:10,scale:577790.554289,resolution:152.874056570411}),new c({level:11,scale:288895.277144,resolution:76.4370282850732}),new c({level:12,scale:144447.638572,resolution:38.2185141425366}),new c({level:13,scale:72223.819286,resolution:19.1092570712683}),new c({level:14,scale:36111.909643,resolution:9.55462853563415}),new c({level:15,scale:18055.954822,resolution:4.77731426794937}),new c({level:16,scale:9027.977411,resolution:2.38865713397468}),new c({level:17,scale:4513.988705,resolution:1.19432856685505}),new c({level:18,scale:2256.994353,resolution:.597164283559817}),new c({level:19,scale:1128.497176,resolution:.298582141647617})]}),o.subDomains=["a","b","c"],o.fullExtent=new w(-20037508.342787,-20037508.34278,20037508.34278,20037508.342787,d.WebMercator),o.urlTemplate="https://{subDomain}.tile.openstreetmap.org/{level}/{col}/{row}.png",o.operationalLayerType="OpenStreetMap",o.type="open-street-map",o.copyright="Map data &copy; OpenStreetMap contributors, CC-BY-SA",o}return e._inheritsLoose(o,r),e._createClass(o,[{key:"refreshInterval",get:function(){return 0}}]),o}(i);r.__decorate([t.property({type:y,json:{read:!1,write:!1,origins:{"web-document":{read:!1,write:!1}}}})],v.prototype,"portalItem",void 0),r.__decorate([t.property({type:Boolean,json:{read:!1,write:!1}})],v.prototype,"isReference",void 0),r.__decorate([t.property({type:Number,readOnly:!0,json:{read:!1,write:!1,origins:{"web-document":{read:!1,write:!1}}}})],v.prototype,"refreshInterval",null),r.__decorate([t.property({type:u,json:{write:!1}})],v.prototype,"tileInfo",void 0),r.__decorate([t.property({type:["show","hide"]})],v.prototype,"listMode",void 0),r.__decorate([t.property({readOnly:!0,json:{read:!1,write:!1}})],v.prototype,"subDomains",void 0),r.__decorate([t.property({readOnly:!0,json:{read:!1,write:!1},nonNullable:!0})],v.prototype,"fullExtent",void 0),r.__decorate([t.property({readOnly:!0,json:{read:!1,write:!1}})],v.prototype,"urlTemplate",void 0),r.__decorate([t.property({type:["OpenStreetMap"]})],v.prototype,"operationalLayerType",void 0),r.__decorate([t.property({json:{read:!1}})],v.prototype,"type",void 0),r.__decorate([t.property({json:{read:!1,write:!1}})],v.prototype,"copyright",void 0),r.__decorate([t.property({json:{read:!1,write:!1}})],v.prototype,"wmtsInfo",void 0),v=r.__decorate([a.subclass("esri.layers.OpenStreetMapLayer")],v);return v}));
