(function(){var h,aa=function(a){var b=0;return function(){return ba||1342177279>>=1)b+=b;return d}}); var fa=function(){fa=function(){};ca.Symbol||(ca.Symbol=ha)},ha=function(){var a=0;return function(b){return"jscomp_symbol_"+(b||"")+a++}}(),ja=function(){fa();var a=ca.Symbol.iterator;a||(a=ca.Symbol.iterator=ca.Symbol("iterator"));"function"!=typeof Array.prototype[a]&&ba(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return ia(aa(this))}});ja=function(){}},ia=function(a){ja();a={next:a};a[ca.Symbol.iterator]=function(){return this};return a},ka=function(a,b){ja();a instanceof String&& (a+="");var c=0,d={next:function(){if(cc&&(c=Math.max(c+e,0));c>>0),Aa=0,Ba=function(a,b,c){return a.call.apply(a.bind,arguments)},Ca=function(a,b,c){if(!a)throw Error();if(2c&&(c=Math.max(0,a.length+c));if(p(a))return p(b)&&1==b.length?a.lastIndexOf(b,c):-1;for(;0<=c;c--)if(c in a&&a[c]===b)return c;return-1},Sa=Array.prototype.forEach?function(a,b,c){B(null!=a.length);Array.prototype.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=p(a)?a.split(""):a,f=0;fb?null:p(a)?a.charAt(b):a[b]},$a=function(a,b){return 0<=Qa(a,b)},ab=function(a){if(!r(a))for(var b=a.length-1;0<=b;b--)delete a[b];a.length=0},cb= function(a,b){b=Qa(a,b);var c;(c=0<=b)&&bb(a,b);return c},bb=function(a,b){B(null!=a.length);Array.prototype.splice.call(a,b,1)},db=function(a){return Array.prototype.concat.apply([],arguments)},eb=function(a){var b=a.length;if(0=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)},hb=function(a){for(var b={},c=0,d=0;da-0)return[];for(var c=0;c/g,nb=/"/g,ob=/'/g,pb=/\x00/g,qb=/[\x00&<>"']/,rb=function(a,b){return ab?1:0};var sb;a:{var tb=m.navigator;if(tb){var ub=tb.userAgent;if(ub){sb=ub;break a}}sb=""}var vb=function(a){return-1!=sb.indexOf(a)};var wb=function(a,b,c){for(var d in a)b.call(c,a[d],d,a)},xb=function(a,b){var c={},d;for(d in a)b.call(void 0,a[d],d,a)&&(c[d]=a[d]);return c},yb=function(a,b,c){var d={},e;for(e in a)d[e]=b.call(c,a[e],e,a);return d},zb=function(a,b){for(var c in a)if(b.call(void 0,a[c],c,a))return!0;return!1},Ab=function(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b},Bb=function(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b},Cb=function(a,b){for(var c in a)if(a[c]==b)return!0;return!1},Eb=function(a){var b= Db,c;for(c in b)if(a.call(void 0,b[c],c,b))return c},Fb=function(a){for(var b in a)return!1;return!0},Gb=function(a,b){b in a&&delete a[b]},Hb=function(a){var b={},c;for(c in a)b[c]=a[c];return b},Ib=function(a){var b=va(a);if("object"==b||"array"==b){if(u(a.clone))return a.clone();b="array"==b?[]:{};for(var c in a)b[c]=Ib(a[c]);return b}return a},Jb="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),Kb=function(a,b){for(var c,d,e=1;e")&&(a=a.replace(mb,">")),-1!=a.indexOf('"')&&(a=a.replace(nb,""")),-1!=a.indexOf("'")&&(a=a.replace(ob,"'")),-1!=a.indexOf("\x00")&&(a=a.replace(pb,"�")));return a},Nb=function(a){var b=1;a= a.split(":");for(var c=[];0parseFloat(Yb)){Xb=String($b);break a}}Xb=Yb} var ac=Xb,Pb={},bc=function(a){return Qb(a,function(){for(var b=0,c=jb(String(ac)).split("."),d=jb(String(a)).split("."),e=Math.max(c.length,d.length),f=0;0==b&&f=a.keyCode)a.keyCode=-1}catch(b){}};var kc="closure_listenable_"+(1E6*Math.random()|0),lc=function(a){return!(!a||!a[kc])},mc=0;var nc=function(a,b,c,d,e){this.listener=a;this.bc=null;this.src=b;this.type=c;this.capture=!!d;this.na=e;this.key=++mc;this.$a=this.Ib=!1},oc=function(a){a.$a=!0;a.listener=null;a.bc=null;a.src=null;a.na=null};var pc=function(a){this.src=a;this.G={};this.Eb=0};pc.prototype.add=function(a,b,c,d,e){var f=a.toString();a=this.G[f];a||(a=this.G[f]=[],this.Eb++);var g=qc(a,b,d,e);-1c.keyCode||void 0!=c.returnValue)){a:{var e=!1;if(0==c.keyCode)try{c.keyCode= -1;break a}catch(g){e=!0}if(e||void 0==c.returnValue)c.returnValue=!0}c=[];for(e=b.currentTarget;e;e=e.parentNode)c.push(e);a=a.type;for(e=c.length-1;!b.Ha&&0<=e;e--){b.currentTarget=c[e];var f=Gc(c[e],a,!0,b);d=d&&f}for(e=0;!b.Ha&&e>>0),xc=function(a){B(a,"Listener can not be null.");if(u(a))return a;B(a.handleEvent, "An object listener must have handleEvent method.");a[Hc]||(a[Hc]=function(b){return a.handleEvent(b)});return a[Hc]};var C=function(){z.call(this);this.Z=new pc(this);this.xe=this;this.ad=null};y(C,z);C.prototype[kc]=!0;h=C.prototype;h.addEventListener=function(a,b,c,d){wc(this,a,b,c,d)};h.removeEventListener=function(a,b,c,d){Dc(this,a,b,c,d)}; h.dispatchEvent=function(a){Ic(this);var b=this.ad;if(b){var c=[];for(var d=1;b;b=b.ad)c.push(b),B(1E3>++d,"infinite loop")}b=this.xe;d=a.type||a;if(p(a))a=new A(a,b);else if(a instanceof A)a.target=a.target||b;else{var e=a;a=new A(d,b);Kb(a,e)}e=!0;if(c)for(var f=c.length-1;!a.Ha&&0<=f;f--){var g=a.currentTarget=c[f];e=Kc(g,d,!0,a)&&e}a.Ha||(g=a.currentTarget=b,e=Kc(g,d,!0,a)&&e,a.Ha||(e=Kc(g,d,!1,a)&&e));if(c)for(f=0;!a.Ha&&f=a.length)throw Mc;if(b in a)return a[b++];b++}};return c}throw Error("Not implemented");},Pc=function(a,b){if(xa(a))try{Sa(a,b,void 0)}catch(c){if(c!==Mc)throw c;}else{a=Oc(a);try{for(;;)b.call(void 0,a.next(),void 0,a)}catch(c){if(c!==Mc)throw c;}}};var D=function(a,b){this.s={};this.j=[];this.Fb=this.l=0;var c=arguments.length;if(12*this.l&&Qc(this),!0):!1};var Qc=function(a){if(a.l!=a.j.length){for(var b=0,c=0;b=d.j.length)throw Mc;var e=d.j[b++];return a?e:d.s[e]};return e};var Rc=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};var Tc=function(a){if(a.m&&"function"==typeof a.m)a=a.m();else if(xa(a)||p(a))a=a.length;else{var b=0,c;for(c in a)b++;a=b}return a},Uc=function(a){if(a.w&&"function"==typeof a.w)return a.w();if(p(a))return a.split("");if(xa(a)){for(var b=[],c=a.length,d=0;dc)return!1;!(b instanceof Yc)&&5e&&(e+=d);return[a.Ue,c,e,b.y].join("/")};cd.prototype.Mc=function(){return this.za.length};var ed=function(a){A.call(this,"tileevent");this.count=a};y(ed,A);var fd={kind:"discovery#restDescription",name:"earthengine",version:"v1",rootUrl:"https://earthengine.googleapis.com/",servicePath:"",batchPath:"batch",id:"earthengine:v1",parameters:{"$.xgafv":{location:"query",required:!1},access_token:{location:"query",required:!1},alt:{location:"query",required:!1},callback:{location:"query",required:!1},fields:{location:"query",required:!1},key:{location:"query",required:!1},oauth_token:{location:"query",required:!1},prettyPrint:{location:"query",required:!1}, quotaUser:{location:"query",required:!1},uploadType:{location:"query",required:!1},upload_protocol:{location:"query",required:!1}},resources:{algorithms:{methods:{list:{id:"earthengine.algorithms.list",path:"v1/algorithms",httpMethod:"GET"}}},assets:{methods:{copy:{id:"earthengine.assets.copy",path:"v1/{+sourceName}:copy",httpMethod:"POST",request:{$ref:"CopyAssetRequest"},parameters:{sourceName:{location:"path",required:!0}}},create:{id:"earthengine.assets.create",path:"v1/assets",httpMethod:"POST", request:{$ref:"EarthEngineAsset"},parameters:{parent:{location:"query",required:!1},assetId:{location:"query",required:!1},overwrite:{location:"query",required:!1}}},"delete":{id:"earthengine.assets.delete",path:"v1/{+name}",httpMethod:"DELETE",parameters:{name:{location:"path",required:!0}}},get:{id:"earthengine.assets.get",path:"v1/{+name}",httpMethod:"GET",parameters:{name:{location:"path",required:!0},path:{location:"query",required:!1}}},getPixels:{id:"earthengine.assets.getPixels",path:"v1/{+name}:getPixels", httpMethod:"POST",request:{$ref:"GetPixelsRequest"},parameters:{name:{location:"path",required:!0}}},ingestImage:{id:"earthengine.assets.ingestImage",path:"v1/assets:ingestImage",httpMethod:"POST",request:{$ref:"IngestImageRequest"}},ingestTable:{id:"earthengine.assets.ingestTable",path:"v1/assets:ingestTable",httpMethod:"POST",request:{$ref:"IngestTableRequest"}},list:{id:"earthengine.assets.list",path:"v1/{+name}:list",httpMethod:"GET",parameters:{name:{location:"path",required:!0},parentPath:{location:"query", required:!1},pageSize:{location:"query",required:!1},pageToken:{location:"query",required:!1}}},listFeatures:{id:"earthengine.assets.listFeatures",path:"v1/{+name}:listFeatures",httpMethod:"GET",parameters:{name:{location:"path",required:!0},pageSize:{location:"query",required:!1},pageToken:{location:"query",required:!1},region:{location:"query",required:!1},filter:{location:"query",required:!1}}},listImages:{id:"earthengine.assets.listImages",path:"v1/{+name}:listImages",httpMethod:"GET",parameters:{name:{location:"path", required:!0},parentPath:{location:"query",required:!1},pageSize:{location:"query",required:!1},pageToken:{location:"query",required:!1},startTime:{location:"query",required:!1},endTime:{location:"query",required:!1},region:{location:"query",required:!1},filter:{location:"query",required:!1},view:{location:"query",required:!1}}},move:{id:"earthengine.assets.move",path:"v1/{+sourceName}:move",httpMethod:"POST",request:{$ref:"MoveAssetRequest"},parameters:{sourceName:{location:"path",required:!0}}}, patch:{id:"earthengine.assets.patch",path:"v1/{+name}",httpMethod:"PATCH",request:{$ref:"UpdateAssetRequest"},parameters:{name:{location:"path",required:!0}}}}},filmstripThumbnails:{methods:{create:{id:"earthengine.filmstripThumbnails.create",path:"v1/filmstripThumbnails",httpMethod:"POST",request:{$ref:"FilmstripThumbnail"},parameters:{parent:{location:"query",required:!1}}},getPixels:{id:"earthengine.filmstripThumbnails.getPixels",path:"v1/{+name}:getPixels",httpMethod:"GET",parameters:{name:{location:"path", required:!0}}}}},image:{methods:{compute:{id:"earthengine.image.compute",path:"v1/image:compute",httpMethod:"POST",request:{$ref:"ComputeImageRequest"}},"export":{id:"earthengine.image.export",path:"v1/image:export",httpMethod:"POST",request:{$ref:"ExportImageRequest"}},ingest:{id:"earthengine.image.ingest",path:"v1/image:ingest",httpMethod:"POST",request:{$ref:"IngestImageRequest"}}}},map:{methods:{"export":{id:"earthengine.map.export",path:"v1/map:export",httpMethod:"POST",request:{$ref:"ExportMapRequest"}}}}, maps:{methods:{create:{id:"earthengine.maps.create",path:"v1/maps",httpMethod:"POST",request:{$ref:"EarthEngineMap"},parameters:{parent:{location:"query",required:!1}}}},resources:{tiles:{methods:{get:{id:"earthengine.maps.tiles.get",path:"v1/{+parent}/tiles/{zoom}/{x}/{y}",httpMethod:"GET",parameters:{parent:{location:"path",required:!0},zoom:{location:"path",required:!0},x:{location:"path",required:!0},y:{location:"path",required:!0}}}}}}},operations:{methods:{cancel:{id:"earthengine.operations.cancel", path:"v1/{+name}:cancel",httpMethod:"POST",request:{$ref:"CancelOperationRequest"},parameters:{name:{location:"path",required:!0}}},"delete":{id:"earthengine.operations.delete",path:"v1/{+name}",httpMethod:"DELETE",parameters:{name:{location:"path",required:!0}}},get:{id:"earthengine.operations.get",path:"v1/{+name}",httpMethod:"GET",parameters:{name:{location:"path",required:!0}}},list:{id:"earthengine.operations.list",path:"v1/{+name}",httpMethod:"GET",parameters:{name:{location:"path",required:!0}, filter:{location:"query",required:!1},pageSize:{location:"query",required:!1},pageToken:{location:"query",required:!1}}}}},projects:{methods:{},resources:{assets:{methods:{copy:{id:"earthengine.projects.assets.copy",path:"v1/{+sourceName}:copy",httpMethod:"POST",request:{$ref:"CopyAssetRequest"},parameters:{sourceName:{location:"path",required:!0}}},create:{id:"earthengine.projects.assets.create",path:"v1/{+parent}/assets",httpMethod:"POST",request:{$ref:"EarthEngineAsset"},parameters:{parent:{location:"path", required:!0},assetId:{location:"query",required:!1},overwrite:{location:"query",required:!1}}},"delete":{id:"earthengine.projects.assets.delete",path:"v1/{+name}",httpMethod:"DELETE",parameters:{name:{location:"path",required:!0}}},get:{id:"earthengine.projects.assets.get",path:"v1/{+name}",httpMethod:"GET",parameters:{name:{location:"path",required:!0},path:{location:"query",required:!1}}},getIamPolicy:{id:"earthengine.projects.assets.getIamPolicy",path:"v1/{+resource}:getIamPolicy",httpMethod:"POST", request:{$ref:"GetIamPolicyRequest"},parameters:{resource:{location:"path",required:!0}}},getPixels:{id:"earthengine.projects.assets.getPixels",path:"v1/{+name}:getPixels",httpMethod:"POST",request:{$ref:"GetPixelsRequest"},parameters:{name:{location:"path",required:!0}}},list:{id:"earthengine.projects.assets.list",path:"v1/{+name}:list",httpMethod:"GET",parameters:{name:{location:"path",required:!0},parentPath:{location:"query",required:!1},pageSize:{location:"query",required:!1},pageToken:{location:"query", required:!1}}},listFeatures:{id:"earthengine.projects.assets.listFeatures",path:"v1/{+name}:listFeatures",httpMethod:"GET",parameters:{name:{location:"path",required:!0},pageSize:{location:"query",required:!1},pageToken:{location:"query",required:!1},region:{location:"query",required:!1},filter:{location:"query",required:!1}}},listImages:{id:"earthengine.projects.assets.listImages",path:"v1/{+name}:listImages",httpMethod:"GET",parameters:{name:{location:"path",required:!0},parentPath:{location:"query", required:!1},pageSize:{location:"query",required:!1},pageToken:{location:"query",required:!1},startTime:{location:"query",required:!1},endTime:{location:"query",required:!1},region:{location:"query",required:!1},filter:{location:"query",required:!1},view:{location:"query",required:!1}}},move:{id:"earthengine.projects.assets.move",path:"v1/{+sourceName}:move",httpMethod:"POST",request:{$ref:"MoveAssetRequest"},parameters:{sourceName:{location:"path",required:!0}}},patch:{id:"earthengine.projects.assets.patch", path:"v1/{+name}",httpMethod:"PATCH",request:{$ref:"UpdateAssetRequest"},parameters:{name:{location:"path",required:!0}}},setIamPolicy:{id:"earthengine.projects.assets.setIamPolicy",path:"v1/{+resource}:setIamPolicy",httpMethod:"POST",request:{$ref:"SetIamPolicyRequest"},parameters:{resource:{location:"path",required:!0}}},testIamPermissions:{id:"earthengine.projects.assets.testIamPermissions",path:"v1/{+resource}:testIamPermissions",httpMethod:"POST",request:{$ref:"TestIamPermissionsRequest"},parameters:{resource:{location:"path", required:!0}}}}},filmstripThumbnails:{methods:{create:{id:"earthengine.projects.filmstripThumbnails.create",path:"v1/{+parent}/filmstripThumbnails",httpMethod:"POST",request:{$ref:"FilmstripThumbnail"},parameters:{parent:{location:"path",required:!0}}},getPixels:{id:"earthengine.projects.filmstripThumbnails.getPixels",path:"v1/{+name}:getPixels",httpMethod:"GET",parameters:{name:{location:"path",required:!0}}}}},maps:{methods:{create:{id:"earthengine.projects.maps.create",path:"v1/{+parent}/maps", httpMethod:"POST",request:{$ref:"EarthEngineMap"},parameters:{parent:{location:"path",required:!0}}}},resources:{tiles:{methods:{get:{id:"earthengine.projects.maps.tiles.get",path:"v1/{+parent}/tiles/{zoom}/{x}/{y}",httpMethod:"GET",parameters:{parent:{location:"path",required:!0},zoom:{location:"path",required:!0},x:{location:"path",required:!0},y:{location:"path",required:!0}}}}}}},thumbnails:{methods:{create:{id:"earthengine.projects.thumbnails.create",path:"v1/{+parent}/thumbnails",httpMethod:"POST", request:{$ref:"Thumbnail"},parameters:{parent:{location:"path",required:!0}}},getPixels:{id:"earthengine.projects.thumbnails.getPixels",path:"v1/{+name}:getPixels",httpMethod:"GET",parameters:{name:{location:"path",required:!0}}}}},videoThumbnails:{methods:{create:{id:"earthengine.projects.videoThumbnails.create",path:"v1/{+parent}/videoThumbnails",httpMethod:"POST",request:{$ref:"VideoThumbnail"},parameters:{parent:{location:"path",required:!0}}},getPixels:{id:"earthengine.projects.videoThumbnails.getPixels", path:"v1/{+name}:getPixels",httpMethod:"GET",parameters:{name:{location:"path",required:!0}}}}}}},table:{methods:{compute:{id:"earthengine.table.compute",path:"v1/table:compute",httpMethod:"POST",request:{$ref:"ComputeTableRequest"}},"export":{id:"earthengine.table.export",path:"v1/table:export",httpMethod:"POST",request:{$ref:"ExportTableRequest"}},ingest:{id:"earthengine.table.ingest",path:"v1/table:ingest",httpMethod:"POST",request:{$ref:"IngestTableRequest"}}}},thumbnails:{methods:{create:{id:"earthengine.thumbnails.create", path:"v1/thumbnails",httpMethod:"POST",request:{$ref:"Thumbnail"},parameters:{parent:{location:"query",required:!1}}},getPixels:{id:"earthengine.thumbnails.getPixels",path:"v1/{+name}:getPixels",httpMethod:"GET",parameters:{name:{location:"path",required:!0}}}}},v1:{methods:{computeImage:{id:"earthengine.computeImage",path:"v1:computeImage",httpMethod:"POST",request:{$ref:"ComputeImageRequest"}},computeTable:{id:"earthengine.computeTable",path:"v1:computeTable",httpMethod:"POST",request:{$ref:"ComputeTableRequest"}}, computeValue:{id:"earthengine.computeValue",path:"v1:computeValue",httpMethod:"POST",request:{$ref:"ComputeValueRequest"}},exportImage:{id:"earthengine.exportImage",path:"v1:exportImage",httpMethod:"POST",request:{$ref:"ExportImageRequest"}},exportMap:{id:"earthengine.exportMap",path:"v1:exportMap",httpMethod:"POST",request:{$ref:"ExportMapRequest"}},exportTable:{id:"earthengine.exportTable",path:"v1:exportTable",httpMethod:"POST",request:{$ref:"ExportTableRequest"}},exportVideo:{id:"earthengine.exportVideo", path:"v1:exportVideo",httpMethod:"POST",request:{$ref:"ExportVideoRequest"}},exportVideoMap:{id:"earthengine.exportVideoMap",path:"v1:exportVideoMap",httpMethod:"POST",request:{$ref:"ExportVideoMapRequest"}},ingestImage:{id:"earthengine.ingestImage",path:"v1:ingestImage",httpMethod:"POST",request:{$ref:"IngestImageRequest"}},ingestTable:{id:"earthengine.ingestTable",path:"v1:ingestTable",httpMethod:"POST",request:{$ref:"IngestTableRequest"}},listBuckets:{id:"earthengine.listBuckets",path:"v1:listBuckets", httpMethod:"GET"}}},value:{methods:{compute:{id:"earthengine.value.compute",path:"v1/value:compute",httpMethod:"POST",request:{$ref:"ComputeValueRequest"}}}},video:{methods:{"export":{id:"earthengine.video.export",path:"v1/video:export",httpMethod:"POST",request:{$ref:"ExportVideoRequest"}}}},videoMap:{methods:{"export":{id:"earthengine.videoMap.export",path:"v1/videoMap:export",httpMethod:"POST",request:{$ref:"ExportVideoMapRequest"}}}},videoThumbnails:{methods:{create:{id:"earthengine.videoThumbnails.create", path:"v1/videoThumbnails",httpMethod:"POST",request:{$ref:"VideoThumbnail"},parameters:{parent:{location:"query",required:!1}}},getPixels:{id:"earthengine.videoThumbnails.getPixels",path:"v1/{+name}:getPixels",httpMethod:"GET",parameters:{name:{location:"path",required:!0}}}}}},methods:{}};var gd=function(){},hd=function(a){return{constantValue:a}},id=function(a){return{valueReference:a}},jd=function(a,b){return{functionInvocationValue:{functionName:a,arguments:b}}},kd=function(a,b){return{functionInvocationValue:{arguments:b,functionReference:a}}},ld=function(a,b){return{functionDefinitionValue:{argumentNames:a,body:b}}},md=function(a){if(!a)return"AUTO_PNG_JPEG";a=a.toUpperCase();switch(a){case "JPG":return"JPEG";case "AUTO":return"AUTO_PNG_JPEG";case "GEOTIFF":return"GEO_TIFF";case "TFRECORD":return"TF_RECORD_IMAGE"; default:return a}},nd=function(a){if(!a)return[];if(p(a))return a.split(",");if(r(a))return a;throw Error("Invalid band list "+a);},qd=function(a){var b={};if("palette"in a){var c=a.palette;b.paletteColors=p(c)?c.split(","):c}c=[];if("gain"in a||"bias"in a){if("min"in a||"max"in a)throw Error("Gain and bias can't be specified with min and max");var d=b.paletteColors?b.paletteColors.length-1:255;c=od(a,"bias","gain").map(function(a){var b=-a.bias/a.gain;return{min:b,max:d/a.gain+b}})}else if("min"in a||"max"in a)c=od(a,"min","max");0!==c.length&&(b.ranges=c);a=pd(a.gamma);if(1e;++e)d[e]=b.charCodeAt(c++)|b.charCodeAt(c++)<<8|b.charCodeAt(c++)<<16|b.charCodeAt(c++)<<24;else for(e=0;16>e;++e)d[e]=b[c++]|b[c++]<<8|b[c++]<<16|b[c++]<<24;b=a.F[0];c=a.F[1];e=a.F[2];var f=a.F[3];var g=b+(f^c&(e^f))+d[0]+3614090360&4294967295;b=c+(g<<7&4294967295|g>>>25);g=f+(e^b&(c^e))+d[1]+3905402710&4294967295;f=b+(g<<12&4294967295|g>>>20);g=e+(c^f&(b^c))+d[2]+606105819&4294967295;e=f+(g<<17&4294967295|g>>>15);g=c+(b^e& (f^b))+d[3]+3250441966&4294967295;c=e+(g<<22&4294967295|g>>>10);g=b+(f^c&(e^f))+d[4]+4118548399&4294967295;b=c+(g<<7&4294967295|g>>>25);g=f+(e^b&(c^e))+d[5]+1200080426&4294967295;f=b+(g<<12&4294967295|g>>>20);g=e+(c^f&(b^c))+d[6]+2821735955&4294967295;e=f+(g<<17&4294967295|g>>>15);g=c+(b^e&(f^b))+d[7]+4249261313&4294967295;c=e+(g<<22&4294967295|g>>>10);g=b+(f^c&(e^f))+d[8]+1770035416&4294967295;b=c+(g<<7&4294967295|g>>>25);g=f+(e^b&(c^e))+d[9]+2336552879&4294967295;f=b+(g<<12&4294967295|g>>>20);g= e+(c^f&(b^c))+d[10]+4294925233&4294967295;e=f+(g<<17&4294967295|g>>>15);g=c+(b^e&(f^b))+d[11]+2304563134&4294967295;c=e+(g<<22&4294967295|g>>>10);g=b+(f^c&(e^f))+d[12]+1804603682&4294967295;b=c+(g<<7&4294967295|g>>>25);g=f+(e^b&(c^e))+d[13]+4254626195&4294967295;f=b+(g<<12&4294967295|g>>>20);g=e+(c^f&(b^c))+d[14]+2792965006&4294967295;e=f+(g<<17&4294967295|g>>>15);g=c+(b^e&(f^b))+d[15]+1236535329&4294967295;c=e+(g<<22&4294967295|g>>>10);g=b+(e^f&(c^e))+d[1]+4129170786&4294967295;b=c+(g<<5&4294967295| g>>>27);g=f+(c^e&(b^c))+d[6]+3225465664&4294967295;f=b+(g<<9&4294967295|g>>>23);g=e+(b^c&(f^b))+d[11]+643717713&4294967295;e=f+(g<<14&4294967295|g>>>18);g=c+(f^b&(e^f))+d[0]+3921069994&4294967295;c=e+(g<<20&4294967295|g>>>12);g=b+(e^f&(c^e))+d[5]+3593408605&4294967295;b=c+(g<<5&4294967295|g>>>27);g=f+(c^e&(b^c))+d[10]+38016083&4294967295;f=b+(g<<9&4294967295|g>>>23);g=e+(b^c&(f^b))+d[15]+3634488961&4294967295;e=f+(g<<14&4294967295|g>>>18);g=c+(f^b&(e^f))+d[4]+3889429448&4294967295;c=e+(g<<20&4294967295| g>>>12);g=b+(e^f&(c^e))+d[9]+568446438&4294967295;b=c+(g<<5&4294967295|g>>>27);g=f+(c^e&(b^c))+d[14]+3275163606&4294967295;f=b+(g<<9&4294967295|g>>>23);g=e+(b^c&(f^b))+d[3]+4107603335&4294967295;e=f+(g<<14&4294967295|g>>>18);g=c+(f^b&(e^f))+d[8]+1163531501&4294967295;c=e+(g<<20&4294967295|g>>>12);g=b+(e^f&(c^e))+d[13]+2850285829&4294967295;b=c+(g<<5&4294967295|g>>>27);g=f+(c^e&(b^c))+d[2]+4243563512&4294967295;f=b+(g<<9&4294967295|g>>>23);g=e+(b^c&(f^b))+d[7]+1735328473&4294967295;e=f+(g<<14&4294967295| g>>>18);g=c+(f^b&(e^f))+d[12]+2368359562&4294967295;c=e+(g<<20&4294967295|g>>>12);g=b+(c^e^f)+d[5]+4294588738&4294967295;b=c+(g<<4&4294967295|g>>>28);g=f+(b^c^e)+d[8]+2272392833&4294967295;f=b+(g<<11&4294967295|g>>>21);g=e+(f^b^c)+d[11]+1839030562&4294967295;e=f+(g<<16&4294967295|g>>>16);g=c+(e^f^b)+d[14]+4259657740&4294967295;c=e+(g<<23&4294967295|g>>>9);g=b+(c^e^f)+d[1]+2763975236&4294967295;b=c+(g<<4&4294967295|g>>>28);g=f+(b^c^e)+d[4]+1272893353&4294967295;f=b+(g<<11&4294967295|g>>>21);g=e+(f^ b^c)+d[7]+4139469664&4294967295;e=f+(g<<16&4294967295|g>>>16);g=c+(e^f^b)+d[10]+3200236656&4294967295;c=e+(g<<23&4294967295|g>>>9);g=b+(c^e^f)+d[13]+681279174&4294967295;b=c+(g<<4&4294967295|g>>>28);g=f+(b^c^e)+d[0]+3936430074&4294967295;f=b+(g<<11&4294967295|g>>>21);g=e+(f^b^c)+d[3]+3572445317&4294967295;e=f+(g<<16&4294967295|g>>>16);g=c+(e^f^b)+d[6]+76029189&4294967295;c=e+(g<<23&4294967295|g>>>9);g=b+(c^e^f)+d[9]+3654602809&4294967295;b=c+(g<<4&4294967295|g>>>28);g=f+(b^c^e)+d[12]+3873151461&4294967295; f=b+(g<<11&4294967295|g>>>21);g=e+(f^b^c)+d[15]+530742520&4294967295;e=f+(g<<16&4294967295|g>>>16);g=c+(e^f^b)+d[2]+3299628645&4294967295;c=e+(g<<23&4294967295|g>>>9);g=b+(e^(c|~f))+d[0]+4096336452&4294967295;b=c+(g<<6&4294967295|g>>>26);g=f+(c^(b|~e))+d[7]+1126891415&4294967295;f=b+(g<<10&4294967295|g>>>22);g=e+(b^(f|~c))+d[14]+2878612391&4294967295;e=f+(g<<15&4294967295|g>>>17);g=c+(f^(e|~b))+d[5]+4237533241&4294967295;c=e+(g<<21&4294967295|g>>>11);g=b+(e^(c|~f))+d[12]+1700485571&4294967295;b=c+ (g<<6&4294967295|g>>>26);g=f+(c^(b|~e))+d[3]+2399980690&4294967295;f=b+(g<<10&4294967295|g>>>22);g=e+(b^(f|~c))+d[10]+4293915773&4294967295;e=f+(g<<15&4294967295|g>>>17);g=c+(f^(e|~b))+d[1]+2240044497&4294967295;c=e+(g<<21&4294967295|g>>>11);g=b+(e^(c|~f))+d[8]+1873313359&4294967295;b=c+(g<<6&4294967295|g>>>26);g=f+(c^(b|~e))+d[15]+4264355552&4294967295;f=b+(g<<10&4294967295|g>>>22);g=e+(b^(f|~c))+d[6]+2734768916&4294967295;e=f+(g<<15&4294967295|g>>>17);g=c+(f^(e|~b))+d[13]+1309151649&4294967295; c=e+(g<<21&4294967295|g>>>11);g=b+(e^(c|~f))+d[4]+4149444226&4294967295;b=c+(g<<6&4294967295|g>>>26);g=f+(c^(b|~e))+d[11]+3174756917&4294967295;f=b+(g<<10&4294967295|g>>>22);g=e+(b^(f|~c))+d[2]+718787259&4294967295;e=f+(g<<15&4294967295|g>>>17);g=c+(f^(e|~b))+d[9]+3951481745&4294967295;a.F[0]=a.F[0]+b&4294967295;a.F[1]=a.F[1]+(e+(g<<21&4294967295|g>>>11))&4294967295;a.F[2]=a.F[2]+e&4294967295;a.F[3]=a.F[3]+f&4294967295}; Fd.prototype.update=function(a,b){n(b)||(b=a.length);for(var c=b-this.ka,d=this.Ae,e=this.gb,f=0;fthis.gb?this.ka:2*this.ka)-this.gb);a[0]=128;for(var b=1;bb;++b)for(var d=0;32>d;d+=8)a[c++]=this.F[b]>>>d&255;return a};var Id=function(a){return(new Hd(void 0)).B(a)},Hd=function(a){this.dc=a};Hd.prototype.B=function(a){var b=[];Jd(this,a,b);return b.join("")}; var Jd=function(a,b,c){if(null==b)c.push("null");else{if("object"==typeof b){if(r(b)){var d=b;b=d.length;c.push("[");for(var e="",f=0;f");c=c.join("")}c=a.createElement(c);d&&(p(d)?c.className=d:r(d)?c.className=d.join(" "):kf(c,d));2=b.yc&&b.cancel())}this.$d?this.$d.call(this.Cd,this):this.fd=!0;this.Ua||vf(this,new wf(this))}};uf.prototype.yd=function(a,b){this.xc=!1;xf(this,a,b)}; var xf=function(a,b,c){a.Ua=!0;a.T=c;a.qb=!b;yf(a)},Af=function(a){if(a.Ua){if(!a.fd)throw new zf(a);a.fd=!1}};uf.prototype.callback=function(a){Af(this);Bf(a);xf(this,!0,a)};var vf=function(a,b){Af(a);Bf(b);xf(a,!1,b)},Bf=function(a){B(!(a instanceof uf),"An execution sequence may not be initiated with a blocking Deferred.")},Cf=function(a,b,c){B(!a.sd,"Blocking Deferreds can not be re-used");a.fc.push([b,c,void 0]);a.Ua&&yf(a)}; uf.prototype.then=function(a,b,c){var d,e,f=new xe(function(a,b){d=a;e=b});Cf(this,d,function(a){a instanceof wf?f.cancel():e(a)});return f.then(a,b,c)};uf.prototype.$goog_Thenable=!0; var Df=function(a){return Va(a.fc,function(a){return u(a[1])})},yf=function(a){if(a.mc&&a.Ua&&Df(a)){var b=a.mc,c=Ef[b];c&&(m.clearTimeout(c.J),delete Ef[b]);a.mc=0}a.u&&(a.u.yc--,delete a.u);b=a.T;for(var d=c=!1;a.fc.length&&!a.xc;){var e=a.fc.shift(),f=e[0],g=e[1];e=e[2];if(f=a.qb?g:f)try{var l=f.call(e||a.Cd,b);n(l)&&(a.qb=a.qb&&(l==b||l instanceof Error),a.T=b=l);if(ue(b)||"function"===typeof m.Promise&&b instanceof m.Promise)d=!0,a.xc=!0}catch(v){b=v,a.qb=!0,Df(a)||(c=!0)}}a.T=b;d&&(l=w(a.yd, a,!0),d=w(a.yd,a,!1),b instanceof uf?(Cf(b,l,d),b.sd=!0):b.then(l,d));c&&(b=new Ff(b),Ef[b.J]=b,a.mc=b.J)},zf=function(){Ga.call(this)};y(zf,Ga);zf.prototype.message="Deferred has already fired";zf.prototype.name="AlreadyCalledError";var wf=function(){Ga.call(this)};y(wf,Ga);wf.prototype.message="Deferred was canceled";wf.prototype.name="CanceledError";var Ff=function(a){this.J=m.setTimeout(w(this.lf,this),0);this.Nb=a}; Ff.prototype.lf=function(){B(Ef[this.J],"Cannot throw an error that is not scheduled.");delete Ef[this.J];throw this.Nb;};var Ef={};var Jf=function(a){var b={},c=b.document||document,d=Ue(a),e=document.createElement("SCRIPT"),f={me:e,Db:void 0},g=new uf(f),l=null,v=null!=b.timeout?b.timeout:5E3;0=Sf(this).value)for(u(b)&&(b=b()),a=new Kf(a,String(b),this.Zd),c&&(a.Fd=c),c=this;c;){var d=c,e=a;if(d.Qd)for(var f=0;b=d.Qd[f];f++)b(e);c=c.getParent()}};Mf.prototype.info=function(a,b){this.log(Pf,a,b)}; var Tf={},Uf=null,Vf=function(a){Uf||(Uf=new Mf(""),Tf[""]=Uf,Uf.oe(Qf));var b;if(!(b=Tf[a])){b=new Mf(a);var c=a.lastIndexOf("."),d=a.substr(c+1);c=Vf(a.substr(0,c));c.Nd()[d]=b;b.u=c;Tf[a]=b}return b};var Wf=function(a,b){a&&a.log(Rf,b,void 0)};var Xf=function(a){switch(a){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:return!0;default:return!1}};var Yf=function(){};Yf.prototype.wd=null;Yf.prototype.pb=function(){var a;(a=this.wd)||(a={},Zf(this)&&(a[0]=!0,a[1]=!0),a=this.wd=a);return a};var $f=function(a,b){this.qf=a;this.$e=b};y($f,Yf);$f.prototype.Bc=function(){return this.qf()};$f.prototype.pb=function(){return this.$e()};var ag=function(){return ag.Gd.Bc()};ag.te=!1;ag.pb=function(){return ag.Gd.pb()};ag.yf=function(a,b){ag.ne(new $f(B(a),B(b)))};ag.ne=function(a){ag.Gd=a};var bg=function(){};y(bg,Yf);bg.prototype.Bc=function(){var a=Zf(this);return a?new ActiveXObject(a):new XMLHttpRequest}; var Zf=function(a){if(ag.te)return"";if(!a.Rd&&"undefined"==typeof XMLHttpRequest&&"undefined"!=typeof ActiveXObject){for(var b=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],c=0;cb)throw Error("Bad port number "+b);a.Za=b}else a.Za=null}; sg.prototype.getPath=function(){return this.oa};sg.prototype.setPath=function(a,b){ug(this);this.oa=b?xg(a,!0):a;return this};var wg=function(a,b,c){ug(a);b instanceof yg?(a.X=b,a.X.ed(a.V)):(c||(b=zg(b,Eg)),a.X=new yg(b,a.V))};sg.prototype.getQuery=function(){return this.X.toString()};sg.prototype.removeParameter=function(a){ug(this);this.X.remove(a);return this};var ug=function(a){if(a.Pe)throw Error("Tried to modify a read-only Uri");};sg.prototype.ed=function(a){this.V=a;this.X&&this.X.ed(a)}; var Fg=function(a){return a instanceof sg?a.clone():new sg(a,void 0)},xg=function(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""},zg=function(a,b,c){return p(a)?(a=encodeURI(a).replace(b,Gg),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null},Gg=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)},Ag=/[#\/\?@]/g,Cg=/[#\?:]/g,Bg=/[#\?]/g,Eg=/[#\?@]/g,Dg=/#/g,yg=function(a,b){this.l=this.o=null;this.R=a||null;this.V=!!b},Hg=function(a){a.o|| (a.o=new D,a.l=0,a.R&&dg(a.R,function(b,c){a.add(decodeURIComponent(b.replace(/\+/g," ")),c)}))};h=yg.prototype;h.m=function(){Hg(this);return this.l};h.add=function(a,b){Hg(this);this.R=null;a=Ig(this,a);var c=this.o.get(a);c||this.o.set(a,c=[]);c.push(b);this.l=Ma(this.l)+1;return this};h.remove=function(a){Hg(this);a=Ig(this,a);return this.o.ta(a)?(this.R=null,this.l=Ma(this.l)-this.o.get(a).length,this.o.remove(a)):!1};h.clear=function(){this.o=this.R=null;this.l=0}; h.isEmpty=function(){Hg(this);return 0==this.l};h.ta=function(a){Hg(this);a=Ig(this,a);return this.o.ta(a)};h.ib=function(a){var b=this.w();return $a(b,a)};h.forEach=function(a,b){Hg(this);this.o.forEach(function(c,d){Sa(c,function(c){a.call(b,c,d,this)},this)},this)};h.ba=function(){Hg(this);for(var a=this.o.w(),b=this.o.ba(),c=[],d=0;d');G=a};x("ee.data.setCloudApiEnabled",Xg);Ug.push("setCloudApiEnabled");var Yg=function(){return G};x("ee.data.getCloudApiEnabled",Yg);Ug.push("getCloudApiEnabled"); var Zg=function(a,b,c,d,e,f,g){var l=["https://www.googleapis.com/auth/earthengine"];e&&(fb(l,e),hb(l));Jg=a;Kg=l;var v={token_type:b,access_token:c,state:l.join(" "),expires_in:d};Rg(void 0,void 0,v);!1===g?f&&f():Mg(function(){m.gapi.auth.setToken(v);f&&f()})};x("ee.data.setAuthToken",Zg);var Ng=function(a,b,c){Sg&&Jg&&Sg({client_id:String(Jg),immediate:!0,scope:Kg.join(" ")},function(d){"immediate_failed"==d.error&&c?c():Rg(a,b,d)})},$g=function(a){Sg=a};x("ee.data.setAuthTokenRefresher",$g); var ch=function(){ah&&0<=Ea()-ah&&bh();return Lg};x("ee.data.getAuthToken",ch);var bh=function(){ah=Lg=null};x("ee.data.clearAuthToken",bh);var dh=function(){return Jg};x("ee.data.getAuthClientId",dh);var eh=function(){return Kg};x("ee.data.getAuthScopes",eh); var lh=function(a,b,c){null!=a?fh=a:gh||(fh="https://earthengine.googleapis.com/api");null!=b?hh=b:gh||(hh="https://earthengine.googleapis.com");n(c)&&(ih=c);!G||jh&&null==a||(jh=new Promise(function(a,b){gapi.load("client",{callback:function(){var b=Object.assign({},fd,{rootUrl:fh.replace(/\/api$/,"")});gapi.client.init({apiKey:Vg,discoveryDocs:[b]}).then(function(){kh=!0;gapi.client.earthengine.v1=gapi.client.earthengine;a()})},onerror:b})}));gh=!0},H=function(a,b,c){lh();if(c){var d=function(a){return mh(a.status, function(b){return a.headers[b.toLowerCase()]},a.body,null,c,b||Lc)};jh.then(function(){a().then(d,d)});return null}if(!kh)throw Error("Cloud API not ready");var e=nh(function(){a().then(function(){return null},function(){return null})});return mh(e.status,function(a){try{return e.getResponseHeader(a)}catch(g){return null}},e.responseText,null,void 0,b||Lc)},nh=function(a){if(XMLHttpRequest.prototype.tc)throw Error("Cannot initialize synchronous request mode");var b=function(){this.ja=new this.tc; XMLHttpRequest.Qe=this.ja};b.prototype.open=function(a,b,e,f,g){this.ja.open(a,b,!1,f,g)};b.prototype.send=function(a){this.ja.send(a)};b.prototype.abort=function(){this.ja.abort()};b.prototype.overrideMimeType=function(a){this.ja.overrideMimeType(a)};b.prototype.setRequestHeader=function(a,b){this.ja.setRequestHeader(a,b)};b.prototype.getResponseHeader=function(a){return this.ja.getResponseHeader(a)};b.prototype.getAllResponseHeaders=function(){return this.ja.getAllResponseHeaders()};"onabort onerror onload onloadstart onloadend onprogress onreadystatechange readyState responseText responseType responseXML status statusText upload withCredentials DONE UNSENT HEADERS_RECEIVED LOADING OPENED".split(" ").forEach(function(a){return Object.defineProperty(b.prototype, a,{get:function(){return this.ja[a]},set:function(b){this.ja[a]=b}})});b.prototype.tc=XMLHttpRequest;XMLHttpRequest=b;try{return a(),XMLHttpRequest.Qe}finally{XMLHttpRequest=XMLHttpRequest.prototype.tc}},ph=function(a){oh=a};x("ee.data.setDeadline",ph);x("ee.data.setParamAugmenter",function(a){qh=a||Lc});var rh=function(){return fh};x("ee.data.getApiBaseUrl",rh);var sh=function(){return hh};x("ee.data.getTileBaseUrl",sh);var th=function(){return ih};x("ee.data.getXsrfToken",th); var uh=function(a){if(G)return H(function(){return gapi.client.earthengine.algorithms.list({Zb:!1})},rd,a);var b=I("/algorithms",null,a,"GET");return a?null:b},wh=function(a,b){if(G){if(p(a.image))throw Error("Image as JSON string not supported.");if(n(a.version))throw Error("Image version specification not supported.");var c={name:null,expression:Xd(a.image),fileFormat:md(a.format),bandIds:nd(a.bands),visualizationOptions:qd(a)},d=["name"];return H(function(){return gapi.client.earthengine.maps.create({Hd:d}, c)},function(a){return vh(a.name,"","/v1/{}/tiles",Vg?"?key="+Vg:"")},b)}a=Hb(a);p(a.image)||(a.image=a.image.B());var e=function(a){return vh(a.mapid,a.token,"/map/{}","?token={}")};return b?(I("/mapid",J(a),function(a,c){return b(a&&e(a),c)}),null):e(I("/mapid",J(a)))};x("ee.data.getMapId",wh);var xh=function(a,b,c,d){return a.formatTileUrl(b,c,d)};x("ee.data.getTileUrl",xh); var vh=function(a,b,c,d){c=hh+c.replace("{}",a);d=d.replace("{}",b);return{mapid:a,token:b,formatTileUrl:function(a,b,g){var e=Math.pow(2,g);a%=e;0>a&&(a+=e);return[c,g,a,b].join("/")+d}}},yh=function(a,b){a=Hb(a);return I("/value",J(a),b)};x("ee.data.getValue",yh); var zh=function(a,b){if(G){var c=Xd(a);return H(function(){return gapi.client.earthengine.value.compute({expression:c})},function(a){return a.result},b)}a={json:Sd(a)};return I("/value",J(a),b)},Ah=function(a,b){if(G){if(p(a.image))throw Error("Image as JSON string not supported.");if(n(a.version))throw Error("Image version specification not supported.");if(n(a.region))throw Error('"region" not supported in call to ee.data.getThumbId. Use ee.Image.getThumbURL.');var c={name:null,expression:Xd(a.image), fileFormat:md(a.format),bandIds:nd(a.bands),visualizationOptions:qd(a),grid:null},d=["name"];return H(function(){return gapi.client.earthengine.thumbnails.create({Hd:d},c)},function(a){return{thumbid:a.name,token:""}},b)}a=Hb(a);p(a.image)||(a.image=a.image.B());r(a.dimensions)&&(a.dimensions=a.dimensions.join("x"));a=J(a).add("getid","1");return I("/thumb",a,b)};x("ee.data.getThumbId",Ah); var Bh=function(a){return G?hh+"/v1/"+a.thumbid+":getPixels"+(Vg?"?key="+Vg:""):hh+"/api/thumb?thumbid="+a.thumbid+"&token="+a.token};x("ee.data.makeThumbUrl",Bh);var Ch=function(a,b){a=Hb(a);return I("/download",J(a),b)};x("ee.data.getDownloadId",Ch);var Dh=function(a){return hh+"/api/download?docid="+a.docid+"&token="+a.token};x("ee.data.makeDownloadUrl",Dh);var Eh=function(a,b){a=Hb(a);return I("/table",J(a),b)};x("ee.data.getTableDownloadId",Eh); var Fh=function(a){return hh+"/api/table?docid="+a.docid+"&token="+a.token};x("ee.data.makeTableDownloadUrl",Fh);var Hh=function(a,b,c){var d=Gh;try{return Gh=a,b.call(c)}finally{Gh=d}};x("ee.data.withProfiling",Hh); var Ih=function(a,b){if(G){var c=function(a){return Math.floor(Math.random()*Math.pow(2,4*a)).toString(16).padStart(a,"0")};a=ib(a||1).map(function(){return[c(8),c(4),"4"+c(3),(8+Math.floor(4*Math.random())).toString(16)+c(3),c(12)].join("-")});return b?b(a):a}var d={};q(a)&&(d.count=a);return I("/newtaskid",J(d),b)};x("ee.data.newTaskId",Ih); x("ee.data.getTaskStatus",function(a,b){if(p(a))a=[a];else if(!r(a))throw Error("Invalid taskId: expected a string or an array of strings.");return G?H(function(){if(1===a.length)return gapi.client.earthengine.operations.get({name:"operations/"+a[0]});var b=gapi.client.newBatch();a.forEach(function(a){b.add(gapi.client.earthengine.operations.get({name:"operations/"+a}),{id:a})});return b},function(b){return 1===a.length?Dd(b):a.map(function(a){return Dd(b[a])})},b):I("/taskstatus?q="+a.join(),null, b,"GET")});x("ee.data.getTaskList",function(a){return Jh(void 0,a)}); var Jh=function(a,b){function c(b){var c={pagesize:500};a&&(c.pagesize=Math.min(c.pagesize,a-e.tasks.length));b&&(c.pagetoken=b);return c}function d(b,f){I("/tasklist",J(c(f)),function(c,f){f?b(e,f):(fb(e.tasks,c.tasks),!c.next_page_token||a&&e.tasks.length>=a?b(e):d(b,c.next_page_token))},"GET")}if(G)return b?(Kh(a,function(a,c){return b(a?{tasks:a.map(Dd)}:null,c)}),null):{tasks:Kh(a).map(Dd)};var e={tasks:[]};if(b)return d(b),null;for(var f="";;){var g=I("/tasklist",J(c(f)),void 0,"GET");fb(e.tasks, g.tasks);f=g.next_page_token;if(!g.next_page_token||a&&e.tasks.length>=a)break}return e};x("ee.data.getTaskListWithLimit",Jh);var Kh=function(a,b){var c=[],d={name:"operations",pageSize:500,filter:null,pageToken:null},e=function(){return gapi.client.earthengine.operations.list(d)},f=b?function(){return 0}:void 0,g=function(l){fb(c,l.operations||[]);!l.nextPageToken||a&&c.length>=a?b&&b(a?c.slice(0,a):c):(d.pageToken=l.nextPageToken,H(e,g,f));return null};H(e,g,f);return b?null:a?c.slice(0,a):c}; x("ee.data.cancelTask",function(a,b){return Lh(a,"CANCEL",b)}); var Lh=function(a,b,c){if(p(a))a=[a];else if(!r(a))throw Error("Invalid taskId: expected a string or an array of strings.");if(!Cb(Mh,b))throw Error("Invalid action: "+b);return G?H(function(){if(1===a.length)return gapi.client.earthengine.operations.cancel({name:"operations/"+a[0]});var b=gapi.client.newBatch();a.forEach(function(a){b.add(gapi.client.earthengine.operations.cancel({name:"operations/"+a}),{id:a})});return b},null,c):I("/updatetask",J({id:a,action:b}),c,"POST")}; x("ee.data.updateTask",Lh);var Nh=function(a,b,c){b=Hb(b);null!=b.element&&(b.json=b.element.B(),delete b.element);b.id=a;return I("/processingrequest",J(b),c)};x("ee.data.startProcessing",Nh);x("ee.data.startIngestion",function(a,b,c){a={id:a,request:Id(b)};return I("/ingestionrequest",J(a),c)});x("ee.data.startTableIngestion",function(a,b,c){a={id:a,tableRequest:Id(b)};return I("/ingestionrequest",J(a),c)}); var Oh=function(a,b){if(G){var c={name:sd(a),Zb:!1};return H(function(){return gapi.client.earthengine.assets.get(c)},null,b)}return I("/info",(new yg).add("id",a),b)};x("ee.data.getAsset",Oh);Ug.push("getAsset");x("ee.data.getInfo",Oh); var Ph=function(a,b){if(G){if(Object.keys(a).every(function(a){return"id"===a||"num"===a})){var c=ud(a);return H(function(){return gapi.client.earthengine.assets.list(c)},wd,b)}var d=Ad(a);return H(function(){return gapi.client.earthengine.assets.listImages({Hd:"assets(type,path)"},d)},xd,b)}a=J(a);return I("/list",a,b)};x("ee.data.getList",Ph);var Qh=function(a,b){return H(function(){return gapi.client.earthengine.assets.list(a)},null,b)};x("ee.data.listAssets",Qh);Ug.push("listAssets"); var Rh=function(a,b){return H(function(){return gapi.client.earthengine.assets.listImages(a)},null,b)};x("ee.data.listImages",Rh);Ug.push("listImages");var Sh=function(a){return H(function(){return gapi.client.earthengine.v1.listBuckets({})},null,a)};x("ee.data.listBuckets",Sh);Ug.push("listBuckets");x("ee.data.getAssetRoots",function(a){return G?H(function(){return gapi.client.earthengine.v1.listBuckets({})},yd,a):I("/buckets",null,a,"GET")}); x("ee.data.createAssetHome",function(a,b){if(G){var c={type:"Folder",name:sd(a)};H(function(){return gapi.client.earthengine.assets.create(c)},null,b)}else a=J({id:a}),I("/createbucket",a,b)}); x("ee.data.createAsset",function(a,b,c,d,e){if(G){if(c)throw Error("Asset overwrite not supported.");if(p(a))throw Error("Asset cannot be specified as string.");b=a.name||b&&sd(b);if(!b)throw Error("Either asset name or opt_path must be specified.");var f=b.indexOf("/assets/");if(-1===f)throw Error("Asset name must contain /assets/.");a=Object.assign({},a);delete a.name;d&&!a.properties&&(a.properties=d);a.type=td(a.type);var g={asset:a,parent:b.slice(0,f),assetId:b.slice(f+8),overwrite:c||!1};return H(function(){return gapi.client.earthengine.assets.create(g)}, null,e)}p(a)||(a=Id(a));a={value:a};void 0!==b&&(a.id=b);a.force=c||!1;void 0!=d&&(a.properties=Id(d));return I("/create",J(a),e)});x("ee.data.createFolder",function(a,b,c){if(G){var d={type:"Folder",name:sd(a)};return H(function(){return gapi.client.earthengine.assets.create(d)},null,c)}return I("/createfolder",J({id:a,force:b||!1}),c)}); x("ee.data.renameAsset",function(a,b,c){if(G){var d={sourceName:sd(a),destinationName:sd(b),sourcePath:null,destinationPath:null};H(function(){return gapi.client.earthengine.assets.move(d)},null,c)}else I("/rename",J({sourceId:a,destinationId:b}),c)}); x("ee.data.copyAsset",function(a,b,c){if(G){var d={sourceName:sd(a),destinationName:sd(b),overwrite:!1,sourcePath:null,destinationPath:null,bandIds:null};H(function(){return gapi.client.earthengine.assets.copy(d)},null,c)}else I("/copy",J({sourceId:a,destinationId:b}),c)});x("ee.data.deleteAsset",function(a,b){if(G){var c={name:sd(a)};H(function(){return gapi.client.earthengine.assets["delete"](c)},null,b)}else I("/delete",J({id:a}),b)}); x("ee.data.getAssetAcl",function(a,b){if(G){var c={ff:sd(a),Zb:!1};return H(function(){return gapi.client.earthengine.projects.assets.getIamPolicy(c)},Bd,b)}return I("/getacl",J({id:a}),b,"GET")});x("ee.data.setAssetAcl",function(a,b,c){if(G){var d={ff:sd(a),policy:Cd(b),Zb:!1};H(function(){return gapi.client.earthengine.projects.assets.setIamPolicy(d)},null,c)}else a={id:a,value:Id(b)},I("/setacl",J(a),c)}); x("ee.data.setAssetProperties",function(a,b,c){if(G){var d=Object.keys(b).map(function(a){return"properties."+a}),e={name:sd(a),asset:{properties:b},updateMask:{paths:d}};H(function(){return gapi.client.earthengine.assets.patch(e)},null,c)}else a={id:a,properties:Id(b)},I("/setproperties",J(a),c)}); x("ee.data.getAssetRootQuota",function(a,b){if(G){var c={name:sd(a),Zb:!1};return H(function(){return gapi.client.earthengine.assets.get(c)},function(b){if(!b.quota)throw Error(a+" is not a root folder.");var c=function(a){return Number(b.quota[a]||0)};return{assetCount:{usage:c("assetCount"),limit:c("maxAssetCount")},vf:{usage:c("sizeBytes"),limit:c("maxSizeBytes")}}},b)}return I("/quota",J({id:a}),b,"GET")}); var Mh={rf:"CANCEL",uf:"UPDATE"},I=function(a,b,c,d){lh();var e=Gh,f={"Content-Type":"application/x-www-form-urlencoded"},g=ch();if(null!=g)f.Authorization=g;else if(c&&Sg&&Jg)return Ng(function(){Hh(e,function(){I(a,b,c,d)})}),null;g=d||"POST";b=b?b.clone():new yg;e&&b.add("profiling","1");null!=Vg&&b.add("key",Vg);b=qh(b,a);null!=ih&&(f["X-XSRF-Token"]=ih);var l=b?b.toString():"";"GET"!=g||/^[\s\xa0]*$/.test(l)||(a+=-1!=a.indexOf("?")?"&":"?",a+=l,l=null);var v=fh+a;if(c)return Th.push(Uh(v,c,g, l,f)),Vh.Jc(),null;for(var E=function(a,b){this.setRequestHeader&&this.setRequestHeader(b,a)},Q,sa=0;;){Q=ag();Q.open(g,v,!1);wb(f,E,Q);Q.send(l);if(429!=Q.status||5f)return f++,setTimeout(function(){Th.push(g);Vh.Jc()},Math.min(12E4,1E3*Math.pow(2, f))),null;var c=mh,d=a.getStatus(),e=w(a.getResponseHeader,a);try{var v=a.a?a.a.responseText:""}catch(Jc){Wf(a.N,"Can not get responseText: "+Jc.message),v=""}return c(d,e,v,l,b)};return g},mh=function(a,b,c,d,e,f){f=void 0===f?function(a){return a.data}:f;var g=b("X-Earth-Engine-Computation-Profile");g&&d&&d(g);b=(b=b("Content-Type"))?b.replace(/;.*/,""):"application/json";if("application/json"==b||"text/json"==b)try{var l=JSON.parse(c);var v=f(l)}catch(Q){var E="Invalid JSON: "+c}else E="Response was unexpectedly not JSON, but "+ b;if(t(l))"error"in l&&"message"in l.error?E=l.error.message:void 0===v&&(E="Malformed response: "+c);else if(0===a)E="Failed to contact Earth Engine servers. Please check your connection, firewall, or browser extension settings.";else if(200>a||300<=a)E="Server returned HTTP code: "+a;if(e)return e(v,E),null;if(!E)return v;throw Error(E);},Mg=function(a){var b=function(){m.gapi.config.update("client/cors",!0);Sg||(Sg=m.gapi.auth.authorize);a()};if(t(m.gapi)&&t(m.gapi.auth)&&u(m.gapi.auth.authorize))b(); else{for(var c=Ea().toString(36);c in m;)c+="_";m[c]=function(){delete m[c];b()};Jf(Ze({onload:c}))}},Rg=function(a,b,c){if(c.access_token){b=c.token_type+" "+c.access_token;if(c.expires_in||0===c.expires_in)c=900*c.expires_in,setTimeout(Ng,.9*c),ah=Ea()+c;Lg=b;a&&a()}else b&&b(c.error||"Unknown error.")},J=function(a){var b=new yg;a=k(Object.entries(a));for(var c=a.next();!c.done;c=a.next()){var d=k(c.value);c=d.next().value;d=d.next().value;b.set(c,d)}return b},Th=[],Vh=new Me(function(){var a= Th.shift();if(a){var b=a.url,c=a.callback,d=a.method,e=a.content;a=a.headers;var f=oh,g=new F;ig.push(g);c&&g.ga("complete",c);g.wb("ready",g.Ee);f&&(g.eb=Math.max(0,f));g.send(b,d,e,a)}0==Th.length||Vh.Jc()},350),fh=null,hh=null,ih=null,qh=Lc,Lg=null,ah=null,Jg=null,Kg=[],Sg=null,Ve=new Qe(Oe,"https://apis.google.com/js/client.js?onload=%{onload}"),Vg=null,G=!1,jh=null,kh=!1,gh=!1,oh=0,Gh=null;var K=function(a,b,c){if(!(this instanceof K))return Wh(K,arguments);if(c&&(a||b))throw Error('When "opt_varName" is specified, "func" and "args" must be null.');if(a&&!b)throw Error('When "func" is specified, "args" must not be null.');this.i=a;this.args=b;this.A=c||null};y(K,gd);x("ee.ComputedObject",K);K.prototype.evaluate=function(a){if(!a||!u(a))throw Error("evaluate() requires a callback function.");zh(this,a)};K.prototype.evaluate=K.prototype.evaluate; K.prototype.D=function(a){return zh(this,a)};K.prototype.getInfo=K.prototype.D;K.prototype.encode=function(a){if(null===this.i&&null===this.args)return{type:"ArgumentRef",value:this.A};var b={},c;for(c in this.args)n(this.args[c])&&(b[c]=a(this.args[c]));b={type:"Invocation",arguments:b};a=a(this.i);b[p(a)?"functionName":"function"]=a;return b}; K.prototype.P=function(a){if(null===this.i&&null===this.args)return{argumentReference:this.A||"uninitializedVar"};var b={},c;for(c in this.args)n(this.args[c])&&(b[c]=id(a(this.args[c])));return p(this.i)?jd(String(this.i),b):this.i.Ec(a,b)};K.prototype.B=function(){return Sd(this)};K.prototype.serialize=K.prototype.B;K.prototype.toString=function(){return"ee."+this.name()+"("+Ud(this)+")"};x("ee.ComputedObject.prototype.toString",K.prototype.toString);K.prototype.name=function(){return"ComputedObject"}; K.prototype.od=function(a,b){var c=eb(arguments);c[0]=this;a.apply(m,c);return this};K.prototype.aside=K.prototype.od;var Xh=function(a,b){if(b instanceof a.constructor)return b;var c=function(){};c.prototype=a.constructor.prototype;a=new c;a.i=b.i;a.args=b.args;a.A=b.A;return a},Wh=function(a,b){function c(){return a.apply(this,b)}c.prototype=a.prototype;return new c};var Yh={},Zh=function(a){return a.prototype instanceof K?a.prototype.name.call(null):a==Number?"Number":a==String?"String":a==Array?"Array":a==Date?"Date":"Object"},$h=function(a,b){if(b==a)return!0;switch(a){case "Element":return"Element"==b||"Image"==b||"Feature"==b||"Collection"==b||"ImageCollection"==b||"FeatureCollection"==b;case "FeatureCollection":case "Collection":return"Collection"==b||"ImageCollection"==b||"FeatureCollection"==b;case "Object":return!0;default:return!1}},ai=function(a){return q(a)|| a instanceof K&&"Number"==a.name()},bi=function(a){return p(a)||a instanceof K&&"String"==a.name()},ci=function(a){return t(a)&&!u(a)?(a=Object.getPrototypeOf(a),null!==a&&null===Object.getPrototypeOf(a)):!1};var L=function(){if(!(this instanceof L))return new L};y(L,gd);x("ee.Function",L);var di=Lc;L.prototype.call=function(a){return this.apply(ei(this,Array.prototype.slice.call(arguments,0)))};L.prototype.call=L.prototype.call;L.prototype.apply=function(a){a=new K(this,fi(this,a));return di(a,this.L().returns)};L.prototype.apply=L.prototype.apply; var gi=function(a,b,c){var d=n(b),e=a.L(),f=!1;if(1==c.length&&ci(c[0])){var g=e.args;d&&(g=g.slice(1));g.length&&(f=!((1==g.length||g[1].optional)&&"Dictionary"==g[0].type))}if(f){if(c=Hb(c[0]),d){d=e.args[0].name;if(d in c)throw Error("Named args for "+e.name+" can't contain keyword "+d);c[d]=b}}else c=ei(a,d?[b].concat(c):c);return a.apply(c)},fi=function(a,b){for(var c=a.L().args,d={},e={},f=0;f/,"");for(var c=0;c/,"");return new M(b,a)}),a&&a())};a?uh(c):c(uh())}},O=function(a,b,c,d){li();var e=d||"";wb(ji,function(d,g){var f=g.split(".");if(2==f.length&&f[0]==b){f=e+f[1];var v=d.L();ki[g]=!0;var E=!1;v.args.length&&(g=v.args[0].type,E="Object"!=g&&$h(g,c)); g=E?a.prototype:a;f in g&&!g[f].signature||(g[f]=function(a){return gi(d,E?this:void 0,Array.prototype.slice.call(arguments,0))},g[f].toString=w(d.toString,d,f,E),g[f].signature=v)}})},pi=function(a){var b=function(a){for(var b in a)u(a[b])&&a[b].signature&&delete a[b]};b(a);b(a.prototype||{})};var P=function(a,b){var c=qi(a),d=Ua(c,function(a){return a.replace(/^opt_/,"")});a=(a=m.EXPORTED_FN_INFO?m.EXPORTED_FN_INFO[a.toString()].name.split(".").pop()+"()":null)?" to function "+a:"";var e={},f=b[0],g=t(f)&&!u(f)&&!r(f)&&!(f instanceof K);if(1d.length)throw Error("Received too many arguments"+a+". Expected at most "+d.length+" but got "+b.length+".");for(f=0;f=arguments.length){var c=arguments[0];if(b=ci(c))a:{b=Bb(c);var d=["properties"];if(xa(b)&&xa(d)&&b.length==d.length){for(var e=b.length,f=0;fc||4/,"");c[e]=!0}var f=m.ee,g;for(g in b)g in c&&!(g in f)&&(f[g]=vk(g),pk.push(g),a[g]?(f[g].signature=a[g],f[g].signature.isConstructor=!0,ki[g]=!0):f[g].signature={});Yh=f;wk()}catch(l){nk(l);return}jk="ready";for(kk=[];0a.y||a.y>=d)return c.createElement("div");var e=a.x%d;0>e&&(e+=d);d=new google.maps.Point(e,a.y);a=[[a.x,a.y,b,this.xa++].join("-"),this.kd.Pd()].join("-");b=this.Bd(d,b,c,a);b.tileSize=this.tileSize;Jk(b.O,this.opacity);this.ya.set(a,b);Mk(this,b);this.kd.Xd(b,(new Date).getTime()/1E3);return b.O};h.releaseTile=function(a){var b=this.ya.get(a.id);this.ya.remove(a.id);b&&(b.abort(),Fa(b))}; var Mk=function(a,b){a.na.ga(b,"status-changed",function(){switch(b.getStatus()){case "loaded":var a=b.Te,d=(new Date).getTime();Bk(this.gc,b.zoom).tileLatencies.push(d-a);this.dispatchEvent(new Nk(this.Mc()));break;case "throttled":Bk(this.gc,b.zoom).throttleCount++;this.dispatchEvent(new Ok(b.Ja));break;case "failed":Bk(this.gc,b.zoom).errorCount++,this.dispatchEvent(new Pk(b.Ja,b.He))}})}; Kk.prototype.h=function(){Kk.f.h.call(this);this.ya.forEach(Fa);this.ya.clear();this.ya=null;Fa(this.na);this.kd=this.na=null};var Lk=function(a,b){return Xa(a.ya.w(),function(a){return a.getStatus()==b})},Nk=function(){A.call(this,"tile-load")};y(Nk,A);var Ok=function(){A.call(this,"tile-throttle")};y(Ok,A);var Pk=function(a,b){A.call(this,"tile-fail");this.errorMessage=b};y(Pk,A); var Qk=function(a,b,c,d){C.call(this);this.Ra=a;this.zoom=b;this.O=c.createElement("div");this.O.id=d;this.Ve=5;this.cc=function(){};this.gd="new";this.je=0;this.Wc=!1};y(Qk,C); var Sk=function(a){if(!a.Wc&&"loading"==a.getStatus())throw Error("startLoad() can only be invoked once. Use retryLoad() after the first attempt.");Rk(a,"loading");a.Te=(new Date).getTime();a.qa=new F;a.qa.bb="blob";a.qa.ga("complete",function(){var a=qg(this.qa),c=this.qa.getStatus();429==c&&Rk(this,"throttled");if(Xf(c)){var d={};wb(rg(this.qa),function(a,b){d[b.toLowerCase()]=a});this.jf=d;this.qe=a;this.mb()}else if(a){var e=new Ik;e.ga("loadend",function(){this.Bb(e.H.result)},void 0,this);e.readAsText(a)}else this.Bb("Failed to load tile.")}, !1,a);a.qa.wb("ready",Da(Fa,a.qa));a.qa.send(a.Ja,"GET")};h=Qk.prototype;h.mb=function(){this.cc(this);Rk(this,"loaded")};h.hb=function(){Fa(this.qa)};h.Bb=function(a){var b=function(a){try{if(a=JSON.parse(a),a.error&&a.error.message)return a.error.message}catch(d){}return a};this.je>=this.Ve?(this.He=b(a),Rk(this,"failed")):(this.hb(),setTimeout(w(function(){this.ea||(this.Wc=!0,Sk(this),this.Wc=!1)},this),1E3*Math.pow(2,this.je++)))};h.abort=function(){this.hb();Rk(this,"aborted")}; h.getStatus=function(){return this.gd};var Rk=function(a,b){a.gd=b;a.dispatchEvent("status-changed")},Tk={aborted:!0,failed:!0,loaded:!0};Qk.prototype.h=function(){Qk.f.h.call(this);this.hb();this.O.remove();this.cc=null};var Uk=function(){z.call(this)};y(Uk,z);var Vk=function(a,b){Kk.call(this,a,b);this.vd=new D;this.Ed=new D};y(Vk,Kk);x("ee.layers.BinaryOverlay",Vk);Vk.prototype.Bd=function(a,b,c,d){var e=new Wk(a,b,c,d);this.na.ga(e,"status-changed",function(){"loaded"==e.getStatus()&&(this.vd.set(a,new Float32Array(e.Be)),this.Ed.set(a,e.O))});return e};Vk.prototype.h=function(){Vk.f.h.call(this);this.Ed=this.vd=null};var Wk=function(a,b,c,d){Qk.call(this,a,b,c,d)};y(Wk,Qk); Wk.prototype.mb=function(){var a=new Ik;a.ga("loadend",function(){this.Be=a.H.result;Qk.prototype.mb.call(this)},void 0,this);a.readAsArrayBuffer(this.qe)};var Xk=function(a){C.call(this);this.sb={};this.rb={};this.Da=new Ck(this);this.u=a};y(Xk,C);var Yk=[Sb&&!bc("11")?"readystatechange":"load","abort","error"],Zk=function(a,b,c){(c=p(c)?c:c.src)&&(a.sb[b]={src:c,Ad:n(void 0)?void 0:null})},$k=function(a,b){delete a.sb[b];var c=a.rb[b];c&&(delete a.rb[b],a.Da.nc(c,Yk,a.ae),Fb(a.rb)&&Fb(a.sb)&&a.dispatchEvent("complete"))}; Xk.prototype.start=function(){var a=this.sb;Sa(Bb(a),function(b){var c=a[b];if(c&&(delete a[b],!this.ea)){if(this.u){var d=this.u;d=(d?new sf(rf(d)):Ha||(Ha=new sf)).Fe("IMG")}else d=new Image;c.Ad&&(d.crossOrigin=c.Ad);this.Da.ga(d,Yk,this.ae);this.rb[b]=d;d.id=b;d.src=c.src}},this)}; Xk.prototype.ae=function(a){var b=a.currentTarget;if(b){if("readystatechange"==a.type)if("complete"==b.readyState)a.type="load";else return;"undefined"==typeof b.naturalWidth&&("load"==a.type?(b.naturalWidth=b.width,b.naturalHeight=b.height):(b.naturalWidth=0,b.naturalHeight=0));this.dispatchEvent({type:a.type,target:b});this.ea||$k(this,b.id)}};Xk.prototype.h=function(){delete this.sb;delete this.rb;Fa(this.Da);Xk.f.h.call(this)};var al=function(a,b){Kk.call(this,a,b)};y(al,Kk);x("ee.layers.ImageOverlay",al);al.prototype.Bd=function(a,b,c,d){return new bl(a,b,c,d)};var bl=function(a,b,c,d){Qk.call(this,a,b,c,d);this.cc=cl;this.Sd=this.K=this.Rb=null;this.yb=""};y(bl,Qk); bl.prototype.mb=function(){try{var a=gf(this.qe);this.yb=df(a);var b="about:invalid#zClosurez"!==this.yb?this.yb:this.Ja}catch(c){b=this.Ja}this.K=new Xk;Zk(this.K,this.O.id+"-image",b);this.Sd=vc(this.K,dl,function(a){"load"==a.type?(this.Rb=a.target,Qk.prototype.mb.call(this)):this.Bb()},void 0,this);this.K.start()};bl.prototype.hb=function(){bl.f.hb.call(this);this.K&&(Ec(this.Sd),Fa(this.K))};bl.prototype.h=function(){bl.f.h.call(this);this.yb&&URL.revokeObjectURL(this.yb)}; var dl=["load","abort","error"],cl=function(a){a.O.appendChild(a.Rb)};var el=function(a){for(var b=arguments[0],c=1;cthis.Vb)throw Error("[goog.structs.Pool] Min can not be greater than max");this.fa=new hl;this.va=new Yc;this.delay=0;this.Xc=null;this.Gb()};y(il,z);il.prototype.ob=function(){var a=Ea();if(!(null!=this.Xc&&a-this.Xcthis.Vb&&0=this.m()){for(var c=this.W,d=0;d>1,a[d].getKey()>c.getKey())a[b]=a[d],b=d;else break;a[b]=c};h=ll.prototype; h.remove=function(){var a=this.W,b=a.length,c=a[0];if(!(0>=b)){if(1==b)ab(a);else{a[0]=a.pop();a=0;b=this.W;for(var d=b.length,e=b[a];a>1;){var f=2*a+1,g=2*a+2;f=ge.getKey())break;b[a]=b[f];a=f}b[a]=e}return c.pc}};h.w=function(){for(var a=this.W,b=[],c=a.length,d=0;da.We)return!1;a.rd++;$k(a.K,a.J);setTimeout(w(a.kf,a),0);return!0}; ul.prototype.kf=function(){if(!this.Pa){var a=w(function(a){this.Pa||(Zk(this.K,this.J,a),vc(this.K,xl,w(this.Me,this)),this.K.start())},this),b=this.getUrl();if(Fg(b).X.ta("profiling")){var c=new F;c.bb="blob";c.ga("complete",w(function(){this.fe=c.getResponseHeader("X-Earth-Engine-Computation-Profile")||null;if(200<=c.getStatus()&&300>c.getStatus())try{var d=df(gf(qg(c)));var e="about:invalid#zClosurez"!==d}catch(f){}a(e?d:b)},this));c.wb("ready",w(c.da,c));c.send(b,"GET")}else a(b)}}; var yl=function(){this.Y=!1};y(yl,z);yl.prototype.setActive=function(a){this.Y=a};yl.prototype.Td=function(){return this.Y};var sl=function(a,b){ol.call(this,a,b)};y(sl,ol);sl.prototype.Cc=function(){return new yl};sl.prototype.Kb=function(a){a.da()};sl.prototype.Zc=function(a){return!a.ea&&!a.Td()};var Z=function(a,b,c,d,e){cd.call(this,a,b,c,d,e);this.minZoom=d.minZoom||0;this.maxZoom=d.maxZoom||20;if(!window.google||!window.google.maps)throw Error("Google Maps API hasn't been initialized.");this.tileSize=d.tileSize||new google.maps.Size(256,256);this.name=d.name;this.md=new Yc;this.$c=1;this.S=e||null};y(Z,cd);x("ee.MapLayerOverlay",Z);Z.prototype.vc=function(a){return wc(this,"tileevent",a)};Z.prototype.addTileCallback=Z.prototype.vc;Z.prototype.dd=function(a){Ec(a)}; Z.prototype.removeTileCallback=Z.prototype.dd;Z.prototype.getTile=function(a,b,c){if(ba.y||a.y>=1<