(function(){var l,aa=function(a){var b=0;return function(){return bb||1342177279>>=1)c+=c;return d}}); var ha=function(){ha=function(){};da.Symbol||(da.Symbol=ia)},ja=function(a,b){this.ye=a;ca(this,"description",{configurable:!0,writable:!0,value:b})};ja.prototype.toString=function(){return this.ye}; var ia=function(){function a(c){if(this instanceof a)throw new TypeError("Symbol is not a constructor");return new ja("jscomp_symbol_"+(c||"")+"_"+b++,c)}var b=0;return a}(),la=function(){ha();var a=da.Symbol.iterator;a||(a=da.Symbol.iterator=da.Symbol("Symbol.iterator"));"function"!=typeof Array.prototype[a]&&ca(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return ka(aa(this))}});la=function(){}},ka=function(a){la();a={next:a};a[da.Symbol.iterator]=function(){return this};return a}, ma=function(a,b){la();a instanceof String&&(a+="");var c=0,d={next:function(){if(cc&&(c=Math.max(c+e,0));c>>0),Ca=0,Da=function(a,b,c){return a.call.apply(a.bind,arguments)},Ea=function(a,b,c){if(!a)throw Error();if(2c&&(c=Math.max(0,a.length+c));if(q(a))return q(b)&&1==b.length?a.lastIndexOf(b,c):-1;for(;0<=c;c--)if(c in a&&a[c]===b)return c;return-1},Ta=Array.prototype.forEach?function(a,b,c){C(null!=a.length);Array.prototype.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=q(a)?a.split(""):a,g=0;gb?null:q(a)?a.charAt(b):a[b]},ab=function(a,b){return 0<=Ra(a,b)},bb=function(a){if(!u(a))for(var b=a.length-1;0<=b;b--)delete a[b];a.length=0},db= function(a,b){b=Ra(a,b);var c;(c=0<=b)&&cb(a,b);return c},cb=function(a,b){C(null!=a.length);Array.prototype.splice.call(a,b,1)},eb=function(a){return Array.prototype.concat.apply([],arguments)},fb=function(a){var b=a.length;if(0=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)},ib=function(a){for(var b={},c=0,d=0;da-0)return[];for(var c=0;c/g,ob=/"/g,pb=/'/g,qb=/\x00/g,rb=/[\x00&<>"']/,sb=function(a,b){return ab?1:0};var tb;a:{var ub=m.navigator;if(ub){var vb=ub.userAgent;if(vb){tb=vb;break a}}tb=""}var wb=function(a){return-1!=tb.indexOf(a)};var xb=function(a,b,c){for(var d in a)b.call(c,a[d],d,a)},yb=function(a,b){var c={},d;for(d in a)b.call(void 0,a[d],d,a)&&(c[d]=a[d]);return c},zb=function(a,b,c){var d={},e;for(e in a)d[e]=b.call(c,a[e],e,a);return d},Ab=function(a,b){for(var c in a)if(b.call(void 0,a[c],c,a))return!0;return!1},Bb=function(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b},Cb=function(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b},Db=function(a,b){for(var c in a)if(a[c]==b)return!0;return!1},Fb=function(a){var b= Eb,c;for(c in b)if(a.call(void 0,b[c],c,b))return c},Gb=function(a){for(var b in a)return!1;return!0},Hb=function(a,b){b in a&&delete a[b]},Ib=function(a){var b={},c;for(c in a)b[c]=a[c];return b},Jb=function(a){var b=wa(a);if("object"==b||"array"==b){if(w(a.clone))return a.clone();b="array"==b?[]:{};for(var c in a)b[c]=Jb(a[c]);return b}return a},Kb="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),Lb=function(a,b){for(var c,d,e=1;e")&&(a=a.replace(nb,">")),-1!=a.indexOf('"')&&(a=a.replace(ob,""")),-1!=a.indexOf("'")&&(a=a.replace(pb,"'")),-1!=a.indexOf("\x00")&&(a=a.replace(qb,"�")));return a},Ob=function(a){var b=1;a= a.split(":");for(var c=[];0parseFloat(Zb)){Yb=String(ac);break a}}Yb=Zb} var bc=Yb,Qb={},cc=function(a){return Rb(a,function(){for(var b=0,c=kb(String(bc)).split("."),d=kb(String(a)).split("."),e=Math.max(c.length,d.length),g=0;0==b&&g=a.keyCode)a.keyCode=-1}catch(b){}};var mc="closure_listenable_"+(1E6*Math.random()|0),nc=function(a){return!(!a||!a[mc])},oc=0;var pc=function(a,b,c,d,e){this.listener=a;this.ec=null;this.src=b;this.type=c;this.capture=!!d;this.na=e;this.key=++oc;this.cb=this.Lb=!1},qc=function(a){a.cb=!0;a.listener=null;a.ec=null;a.src=null;a.na=null};var rc=function(a){this.src=a;this.G={};this.Hb=0};rc.prototype.add=function(a,b,c,d,e){var g=a.toString();a=this.G[g];a||(a=this.G[g]=[],this.Hb++);var f=sc(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(f){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.Ka&&0<=e;e--){b.currentTarget=c[e];var g=Ic(c[e],a,!0,b);d=d&&g}for(e=0;!b.Ka&&e>>0),zc=function(a){C(a,"Listener can not be null.");if(w(a))return a;C(a.handleEvent, "An object listener must have handleEvent method.");a[Jc]||(a[Jc]=function(b){return a.handleEvent(b)});return a[Jc]};var D=function(){A.call(this);this.Z=new rc(this);this.De=this;this.bd=null};z(D,A);D.prototype[mc]=!0;l=D.prototype;l.addEventListener=function(a,b,c,d){yc(this,a,b,c,d)};l.removeEventListener=function(a,b,c,d){Fc(this,a,b,c,d)}; l.dispatchEvent=function(a){Kc(this);var b=this.bd;if(b){var c=[];for(var d=1;b;b=b.bd)c.push(b),C(1E3>++d,"infinite loop")}b=this.De;d=a.type||a;if(q(a))a=new B(a,b);else if(a instanceof B)a.target=a.target||b;else{var e=a;a=new B(d,b);Lb(a,e)}e=!0;if(c)for(var g=c.length-1;!a.Ka&&0<=g;g--){var f=a.currentTarget=c[g];e=Lc(f,d,!0,a)&&e}a.Ka||(f=a.currentTarget=b,e=Lc(f,d,!0,a)&&e,a.Ka||(e=Lc(f,d,!1,a)&&e));if(c)for(g=0;!a.Ka&&g=a.length)throw Nc;if(b in a)return a[b++];b++}};return c}throw Error("Not implemented");},Qc=function(a,b){if(ya(a))try{Ta(a,b,void 0)}catch(c){if(c!==Nc)throw c;}else{a=Pc(a);try{for(;;)b.call(void 0,a.next(),void 0,a)}catch(c){if(c!==Nc)throw c;}}};var Rc=function(a,b){this.s={};this.j=[];this.Ib=this.l=0;var c=arguments.length;if(12*this.l&&Sc(this),!0):!1};var Sc=function(a){if(a.l!=a.j.length){for(var b=0,c=0;b=d.j.length)throw Nc;var g=d.j[b++];return a?g:d.s[g]};return e};var Tc=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};var Vc=function(a){if(a.m&&"function"==typeof a.m)a=a.m();else if(ya(a)||q(a))a=a.length;else{var b=0,c;for(c in a)b++;a=b}return a},Wc=function(a){if(a.w&&"function"==typeof a.w)return a.w();if(q(a))return a.split("");if(ya(a)){for(var b=[],c=a.length,d=0;dc)return!1;!(b instanceof $c)&&5e&&(e+=d);return[a.af,c,e,b.y].join("/")};ed.prototype.Pc=function(){return this.Aa.length};var gd=function(a){B.call(this,"tileevent");this.count=a};z(gd,B);var hd={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}}}}},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"}}}},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}}},wait:{id:"earthengine.operations.wait",path:"v1/{+name}:wait",httpMethod:"POST",request:{$ref:"WaitOperationRequest"},parameters:{name:{location:"path",required:!0}}}}},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"}}}},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 id=function(){},jd=function(a){return{constantValue:a}},kd=function(a){return{valueReference:a}},ld=function(a,b){return{functionInvocationValue:{functionName:a,arguments:b}}},md=function(a,b){return{functionInvocationValue:{arguments:b,functionReference:a}}},nd=function(a,b){return{functionDefinitionValue:{argumentNames:a,body:b}}},od=function(a){if(!a)return"AUTO_PNG_JPEG";a=a.toUpperCase();switch(a){case "JPG":return"JPEG";case "AUTO":return"AUTO_PNG_JPEG";case "TIF":case "TIFF":case "GEOTIF":case "GEOTIFF":return"GEO_TIFF"; case "TF_RECORD":case "TFRECORD":return"TF_RECORD_IMAGE";case "NUMPY":return"NPY";default:return a}},pd=function(a){if(!a)return"CSV";a=a.toUpperCase();switch(a){case "TF_RECORD":case "TFRECORD":return"TF_RECORD_TABLE";case "JSON":case "GEOJSON":return"GEO_JSON";default:return a}},qd=function(a){if(!a)return[];if(q(a))return a.split(",");if(u(a))return a;throw Error("Invalid band list "+a);},td=function(a){var b={};if("palette"in a){var c=a.palette;b.paletteColors=q(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=rd(a,"bias","gain").map(function(e){var g=-e.bias/e.gain;return{min:g,max:d/e.gain+g}})}else if("min"in a||"max"in a)c=rd(a,"min","max");0!==c.length&&(b.ranges=c);a=sd(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 g=a.F[3];var f=b+(g^c&(e^g))+d[0]+3614090360&4294967295;b=c+(f<<7&4294967295|f>>>25);f=g+(e^b&(c^e))+d[1]+3905402710&4294967295;g=b+(f<<12&4294967295|f>>>20);f=e+(c^g&(b^c))+d[2]+606105819&4294967295;e=g+(f<<17&4294967295|f>>>15);f=c+(b^e& (g^b))+d[3]+3250441966&4294967295;c=e+(f<<22&4294967295|f>>>10);f=b+(g^c&(e^g))+d[4]+4118548399&4294967295;b=c+(f<<7&4294967295|f>>>25);f=g+(e^b&(c^e))+d[5]+1200080426&4294967295;g=b+(f<<12&4294967295|f>>>20);f=e+(c^g&(b^c))+d[6]+2821735955&4294967295;e=g+(f<<17&4294967295|f>>>15);f=c+(b^e&(g^b))+d[7]+4249261313&4294967295;c=e+(f<<22&4294967295|f>>>10);f=b+(g^c&(e^g))+d[8]+1770035416&4294967295;b=c+(f<<7&4294967295|f>>>25);f=g+(e^b&(c^e))+d[9]+2336552879&4294967295;g=b+(f<<12&4294967295|f>>>20);f= e+(c^g&(b^c))+d[10]+4294925233&4294967295;e=g+(f<<17&4294967295|f>>>15);f=c+(b^e&(g^b))+d[11]+2304563134&4294967295;c=e+(f<<22&4294967295|f>>>10);f=b+(g^c&(e^g))+d[12]+1804603682&4294967295;b=c+(f<<7&4294967295|f>>>25);f=g+(e^b&(c^e))+d[13]+4254626195&4294967295;g=b+(f<<12&4294967295|f>>>20);f=e+(c^g&(b^c))+d[14]+2792965006&4294967295;e=g+(f<<17&4294967295|f>>>15);f=c+(b^e&(g^b))+d[15]+1236535329&4294967295;c=e+(f<<22&4294967295|f>>>10);f=b+(e^g&(c^e))+d[1]+4129170786&4294967295;b=c+(f<<5&4294967295| f>>>27);f=g+(c^e&(b^c))+d[6]+3225465664&4294967295;g=b+(f<<9&4294967295|f>>>23);f=e+(b^c&(g^b))+d[11]+643717713&4294967295;e=g+(f<<14&4294967295|f>>>18);f=c+(g^b&(e^g))+d[0]+3921069994&4294967295;c=e+(f<<20&4294967295|f>>>12);f=b+(e^g&(c^e))+d[5]+3593408605&4294967295;b=c+(f<<5&4294967295|f>>>27);f=g+(c^e&(b^c))+d[10]+38016083&4294967295;g=b+(f<<9&4294967295|f>>>23);f=e+(b^c&(g^b))+d[15]+3634488961&4294967295;e=g+(f<<14&4294967295|f>>>18);f=c+(g^b&(e^g))+d[4]+3889429448&4294967295;c=e+(f<<20&4294967295| f>>>12);f=b+(e^g&(c^e))+d[9]+568446438&4294967295;b=c+(f<<5&4294967295|f>>>27);f=g+(c^e&(b^c))+d[14]+3275163606&4294967295;g=b+(f<<9&4294967295|f>>>23);f=e+(b^c&(g^b))+d[3]+4107603335&4294967295;e=g+(f<<14&4294967295|f>>>18);f=c+(g^b&(e^g))+d[8]+1163531501&4294967295;c=e+(f<<20&4294967295|f>>>12);f=b+(e^g&(c^e))+d[13]+2850285829&4294967295;b=c+(f<<5&4294967295|f>>>27);f=g+(c^e&(b^c))+d[2]+4243563512&4294967295;g=b+(f<<9&4294967295|f>>>23);f=e+(b^c&(g^b))+d[7]+1735328473&4294967295;e=g+(f<<14&4294967295| f>>>18);f=c+(g^b&(e^g))+d[12]+2368359562&4294967295;c=e+(f<<20&4294967295|f>>>12);f=b+(c^e^g)+d[5]+4294588738&4294967295;b=c+(f<<4&4294967295|f>>>28);f=g+(b^c^e)+d[8]+2272392833&4294967295;g=b+(f<<11&4294967295|f>>>21);f=e+(g^b^c)+d[11]+1839030562&4294967295;e=g+(f<<16&4294967295|f>>>16);f=c+(e^g^b)+d[14]+4259657740&4294967295;c=e+(f<<23&4294967295|f>>>9);f=b+(c^e^g)+d[1]+2763975236&4294967295;b=c+(f<<4&4294967295|f>>>28);f=g+(b^c^e)+d[4]+1272893353&4294967295;g=b+(f<<11&4294967295|f>>>21);f=e+(g^ b^c)+d[7]+4139469664&4294967295;e=g+(f<<16&4294967295|f>>>16);f=c+(e^g^b)+d[10]+3200236656&4294967295;c=e+(f<<23&4294967295|f>>>9);f=b+(c^e^g)+d[13]+681279174&4294967295;b=c+(f<<4&4294967295|f>>>28);f=g+(b^c^e)+d[0]+3936430074&4294967295;g=b+(f<<11&4294967295|f>>>21);f=e+(g^b^c)+d[3]+3572445317&4294967295;e=g+(f<<16&4294967295|f>>>16);f=c+(e^g^b)+d[6]+76029189&4294967295;c=e+(f<<23&4294967295|f>>>9);f=b+(c^e^g)+d[9]+3654602809&4294967295;b=c+(f<<4&4294967295|f>>>28);f=g+(b^c^e)+d[12]+3873151461&4294967295; g=b+(f<<11&4294967295|f>>>21);f=e+(g^b^c)+d[15]+530742520&4294967295;e=g+(f<<16&4294967295|f>>>16);f=c+(e^g^b)+d[2]+3299628645&4294967295;c=e+(f<<23&4294967295|f>>>9);f=b+(e^(c|~g))+d[0]+4096336452&4294967295;b=c+(f<<6&4294967295|f>>>26);f=g+(c^(b|~e))+d[7]+1126891415&4294967295;g=b+(f<<10&4294967295|f>>>22);f=e+(b^(g|~c))+d[14]+2878612391&4294967295;e=g+(f<<15&4294967295|f>>>17);f=c+(g^(e|~b))+d[5]+4237533241&4294967295;c=e+(f<<21&4294967295|f>>>11);f=b+(e^(c|~g))+d[12]+1700485571&4294967295;b=c+ (f<<6&4294967295|f>>>26);f=g+(c^(b|~e))+d[3]+2399980690&4294967295;g=b+(f<<10&4294967295|f>>>22);f=e+(b^(g|~c))+d[10]+4293915773&4294967295;e=g+(f<<15&4294967295|f>>>17);f=c+(g^(e|~b))+d[1]+2240044497&4294967295;c=e+(f<<21&4294967295|f>>>11);f=b+(e^(c|~g))+d[8]+1873313359&4294967295;b=c+(f<<6&4294967295|f>>>26);f=g+(c^(b|~e))+d[15]+4264355552&4294967295;g=b+(f<<10&4294967295|f>>>22);f=e+(b^(g|~c))+d[6]+2734768916&4294967295;e=g+(f<<15&4294967295|f>>>17);f=c+(g^(e|~b))+d[13]+1309151649&4294967295; c=e+(f<<21&4294967295|f>>>11);f=b+(e^(c|~g))+d[4]+4149444226&4294967295;b=c+(f<<6&4294967295|f>>>26);f=g+(c^(b|~e))+d[11]+3174756917&4294967295;g=b+(f<<10&4294967295|f>>>22);f=e+(b^(g|~c))+d[2]+718787259&4294967295;e=g+(f<<15&4294967295|f>>>17);f=c+(g^(e|~b))+d[9]+3951481745&4294967295;a.F[0]=a.F[0]+b&4294967295;a.F[1]=a.F[1]+(e+(f<<21&4294967295|f>>>11))&4294967295;a.F[2]=a.F[2]+e&4294967295;a.F[3]=a.F[3]+g&4294967295}; Kd.prototype.update=function(a,b){p(b)||(b=a.length);for(var c=b-this.ka,d=this.Ge,e=this.jb,g=0;gthis.jb?this.ka:2*this.ka)-this.jb);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 Nd=function(a){return(new Md(void 0)).B(a)},Md=function(a){this.gc=a};Md.prototype.B=function(a){var b=[];Od(this,a,b);return b.join("")}; var Od=function(a,b,c){if(null==b)c.push("null");else{if("object"==typeof b){if(u(b)){var d=b;b=d.length;c.push("[");for(var e="",g=0;g');c[e]=d});b.tensorDepths=c}else throw Error('"tensorDepths" option needs to have the form Object.');return b},ne=function(a,b){var c={cloudStorageDestination:null,driveDestination:null,geoTiffOptions:null,tfRecordOptions:null,fileFormat:od(a.fileFormat)};"GEO_TIFF"===c.fileFormat?c.geoTiffOptions= {cloudOptimized:!!a.tiffCloudOptimized,skipEmptyFiles:!!a.tiffSkipEmptyFiles,tileDimensions:ze(a.tiffFileDimensions)}:"TF_RECORD_IMAGE"===c.fileFormat&&(c.tfRecordOptions=Ae(a));"GOOGLE_CLOUD_STORAGE"===b?c.cloudStorageDestination=pe(a):c.driveDestination=qe(a);return c},te=function(a,b){var c={cloudStorageDestination:null,driveDestination:null,fileFormat:"MP4"};"GOOGLE_CLOUD_STORAGE"===b?c.cloudStorageDestination=pe(a):c.driveDestination=qe(a);return c},se=function(a){return{framesPerSecond:ye(a.framesPerSecond), maxFrames:ye(a.maxFrames),maxPixelsPerFrame:E(a.maxPixels)}},ve=function(a){return{maxZoom:ye(a.maxZoom),scale:ye(a.scale),minZoom:ye(a.minZoom),skipEmptyTiles:!!a.skipEmptyTiles,mapsApiKey:E(a.mapsApiKey),tileDimensions:ze(a.tileDimensions)}},ze=function(a){if(null==a)return null;var b={height:0,width:0};q(a)&&(a=a.split("x").map(Number));if(u(a))if(2===a.length)b.height=a[0],b.width=a[1];else if(1===a.length)b.height=a[0],b.width=a[0];else throw Error("Unable to construct grid from dimensions: "+ a);else if(v(a)&&null!=a.height&&null!=a.width)b.height=a.height,b.width=a.width;else throw Error("Unable to construct grid from dimensions: "+a);return b},pe=function(a){return{bucket:E(a.outputBucket),filenamePrefix:E(a.outputPrefix),bucketCorsUris:null,permissions:null}},qe=function(a){return{folder:E(a.driveFolder),filenamePrefix:E(a.driveFileNamePrefix)}};Object.freeze&&Object.freeze([]);var Be=function(a,b){this.Ye=100;this.Ne=a;this.kf=b;this.$b=0;this.M=null};Be.prototype.get=function(){if(0");(new Ff).oa("");(new Ff).oa("
");var Gf=function(a,b){var c=(c=a&&a.ownerDocument)&&(c.defaultView||c.parentWindow)||m;if("undefined"!=typeof c.HTMLScriptElement&&"undefined"!=typeof c.Location&&"undefined"!=typeof c.Element){c=a&&(a instanceof c.HTMLScriptElement||!(a instanceof c.Location||a instanceof c.Element));var d=v(a)?a.constructor.displayName||a.constructor.name||Object.prototype.toString.call(a):void 0===a?"undefined":null===a?"null":typeof a;C(c,"Argument is not a %s (or a non-Element, non-Location mock); got: %s","HTMLScriptElement", d)}a.src=of(b);if(null===ta)b:{b=m.document;if((b=b.querySelector&&b.querySelector("script[nonce]"))&&(b=b.nonce||b.getAttribute("nonce"))&&sa.test(b)){ta=b;break b}ta=""}b=ta;b&&a.setAttribute("nonce",b)};var If=function(a,b){xb(b,function(c,d){c&&"object"==typeof c&&c.Ga&&(c=c.Ea());"style"==d?a.style.cssText=c:"class"==d?a.className=c:"for"==d?a.htmlFor=c:Hf.hasOwnProperty(d)?a.setAttribute(Hf[d],c):0==d.lastIndexOf("aria-",0)||0==d.lastIndexOf("data-",0)?a.setAttribute(d,c):a[d]=c})},Hf={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",nonce:"nonce",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign", width:"width"},Kf=function(a,b,c){return Jf(document,arguments)},Jf=function(a,b){var c=String(b[0]),d=b[1];if(!uf&&d&&(d.name||d.type)){c=["<",c];d.name&&c.push(' name="',Nb(d.name),'"');if(d.type){c.push(' type="',Nb(d.type),'"');var e={};Lb(e,d);delete e.type;d=e}c.push(">");c=c.join("")}c=a.createElement(c);d&&(q(d)?c.className=d:u(d)?c.className=d.join(" "):If(c,d));2=b.Bc&&b.cancel())}this.fe?this.fe.call(this.Hd,this):this.ld=!0;this.Xa||Tf(this,new Uf(this))}};Sf.prototype.Dd=function(a,b){this.Ac=!1;Vf(this,a,b)}; var Vf=function(a,b,c){a.Xa=!0;a.T=c;a.tb=!b;Wf(a)},Yf=function(a){if(a.Xa){if(!a.ld)throw new Xf(a);a.ld=!1}};Sf.prototype.callback=function(a){Yf(this);Zf(a);Vf(this,!0,a)};var Tf=function(a,b){Yf(a);Zf(b);Vf(a,!1,b)},Zf=function(a){C(!(a instanceof Sf),"An execution sequence may not be initiated with a blocking Deferred.")},$f=function(a,b,c){C(!a.xd,"Blocking Deferreds can not be re-used");a.ic.push([b,c,void 0]);a.Xa&&Wf(a)}; Sf.prototype.then=function(a,b,c){var d,e,g=new Re(function(f,h){d=f;e=h});$f(this,d,function(f){f instanceof Uf?g.cancel():e(f)});return g.then(a,b,c)};Sf.prototype.$goog_Thenable=!0; var ag=function(a){return Wa(a.ic,function(b){return w(b[1])})},Wf=function(a){if(a.pc&&a.Xa&&ag(a)){var b=a.pc,c=bg[b];c&&(m.clearTimeout(c.J),delete bg[b]);a.pc=0}a.u&&(a.u.Bc--,delete a.u);b=a.T;for(var d=c=!1;a.ic.length&&!a.Ac;){var e=a.ic.shift(),g=e[0],f=e[1];e=e[2];if(g=a.tb?f:g)try{var h=g.call(e||a.Hd,b);p(h)&&(a.tb=a.tb&&(h==b||h instanceof Error),a.T=b=h);if(Oe(b)||"function"===typeof m.Promise&&b instanceof m.Promise)d=!0,a.Ac=!0}catch(k){b=k,a.tb=!0,ag(a)||(c=!0)}}a.T=b;d&&(h=x(a.Dd, a,!0),d=x(a.Dd,a,!1),b instanceof Sf?($f(b,h,d),b.xd=!0):b.then(h,d));c&&(b=new cg(b),bg[b.J]=b,a.pc=b.J)},Xf=function(){Ia.call(this)};z(Xf,Ia);Xf.prototype.message="Deferred has already fired";Xf.prototype.name="AlreadyCalledError";var Uf=function(){Ia.call(this)};z(Uf,Ia);Uf.prototype.message="Deferred was canceled";Uf.prototype.name="CanceledError";var cg=function(a){this.J=m.setTimeout(x(this.tf,this),0);this.Qb=a}; cg.prototype.tf=function(){C(bg[this.J],"Cannot throw an error that is not scheduled.");delete bg[this.J];throw this.Qb;};var bg={};var gg=function(a){var b={},c=b.document||document,d=of(a).toString(),e=document.createElement("SCRIPT"),g={re:e,Gb:void 0},f=new Sf(g),h=null,k=null!=b.timeout?b.timeout:5E3;0=pg(this).value)for(w(b)&&(b=b()),a=new hg(a,String(b),this.de),c&&(a.Kd=c),c=this;c;){var d=c,e=a;if(d.Vd)for(var g=0;b=d.Vd[g];g++)b(e);c=c.getParent()}};jg.prototype.info=function(a,b){this.log(mg,a,b)};jg.prototype.Le=function(a,b){this.log(ng,a,b)}; var qg={},rg=null,sg=function(a){rg||(rg=new jg(""),qg[""]=rg,rg.te(ng));var b;if(!(b=qg[a])){b=new jg(a);var c=a.lastIndexOf("."),d=a.substr(c+1);c=sg(a.substr(0,c));c.Sd()[d]=b;b.u=c;qg[a]=b}return b};var tg=function(a,b){a&&a.log(og,b,void 0)};var ug=function(a){switch(a){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:return!0;default:return!1}};var vg=function(){};vg.prototype.Bd=null;vg.prototype.sb=function(){var a;(a=this.Bd)||(a={},wg(this)&&(a[0]=!0,a[1]=!0),a=this.Bd=a);return a};var xg=function(a,b){this.xf=a;this.gf=b};z(xg,vg);xg.prototype.Ec=function(){return this.xf()};xg.prototype.sb=function(){return this.gf()};var yg=function(){return yg.Ld.Ec()};yg.ze=!1;yg.sb=function(){return yg.Ld.sb()};yg.Ff=function(a,b){yg.se(new xg(C(a),C(b)))};yg.se=function(a){yg.Ld=a};var zg=function(){};z(zg,vg);zg.prototype.Ec=function(){var a=wg(this);return a?new ActiveXObject(a):new XMLHttpRequest}; var wg=function(a){if(yg.ze)return"";if(!a.Wd&&"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.bb=b}else a.bb=null}; Qg.prototype.getPath=function(){return this.pa};Qg.prototype.setPath=function(a,b){Sg(this);this.pa=b?Vg(a,!0):a;return this};var Ug=function(a,b,c){Sg(a);b instanceof Wg?(a.X=b,a.X.kd(a.V)):(c||(b=Xg(b,bh)),a.X=new Wg(b,a.V))};Qg.prototype.getQuery=function(){return this.X.toString()};Qg.prototype.removeParameter=function(a){Sg(this);this.X.remove(a);return this};var Sg=function(a){if(a.We)throw Error("Tried to modify a read-only Uri");};Qg.prototype.kd=function(a){this.V=a;this.X&&this.X.kd(a)}; var ch=function(a){return a instanceof Qg?a.clone():new Qg(a,void 0)},Vg=function(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""},Xg=function(a,b,c){return q(a)?(a=encodeURI(a).replace(b,dh),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null},dh=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)},Yg=/[#\/\?@]/g,$g=/[#\?:]/g,Zg=/[#\?]/g,bh=/[#\?@]/g,ah=/#/g,Wg=function(a,b){this.l=this.o=null;this.R=a||null;this.V=!!b},eh=function(a){a.o|| (a.o=new Rc,a.l=0,a.R&&Bg(a.R,function(b,c){a.add(decodeURIComponent(b.replace(/\+/g," ")),c)}))};l=Wg.prototype;l.m=function(){eh(this);return this.l};l.add=function(a,b){eh(this);this.R=null;a=fh(this,a);var c=this.o.get(a);c||this.o.set(a,c=[]);c.push(b);this.l=Na(this.l)+1;return this};l.remove=function(a){eh(this);a=fh(this,a);return this.o.ua(a)?(this.R=null,this.l=Na(this.l)-this.o.get(a).length,this.o.remove(a)):!1};l.clear=function(){this.o=this.R=null;this.l=0}; l.isEmpty=function(){eh(this);return 0==this.l};l.ua=function(a){eh(this);a=fh(this,a);return this.o.ua(a)};l.lb=function(a){var b=this.w();return ab(b,a)};l.forEach=function(a,b){eh(this);this.o.forEach(function(c,d){Ta(c,function(e){a.call(b,e,d,this)},this)},this)};l.ba=function(){eh(this);for(var a=this.o.w(),b=this.o.ba(),c=[],d=0;d');G=a};y("ee.data.setCloudApiEnabled",wh);sh.push("setCloudApiEnabled");var xh=function(){return G};y("ee.data.getCloudApiEnabled",xh);sh.push("getCloudApiEnabled"); var yh=function(a,b,c,d,e,g,f){var h=["https://www.googleapis.com/auth/earthengine"];e&&(gb(h,e),ib(h));hh=a;ih=h;var k={token_type:b,access_token:c,state:h.join(" "),expires_in:d};ph(void 0,void 0,k);!1===f?g&&g():kh(function(){m.gapi.auth.setToken(k);g&&g()})};y("ee.data.setAuthToken",yh);var lh=function(a,b,c){qh&&hh&&qh({client_id:String(hh),immediate:!0,scope:ih.join(" ")},function(d){"immediate_failed"==d.error&&c?c():ph(a,b,d)})},zh=function(a){qh=a};y("ee.data.setAuthTokenRefresher",zh); var Ch=function(){Ah&&0<=Ga()-Ah&&Bh();return jh};y("ee.data.getAuthToken",Ch);var Bh=function(){Ah=jh=null};y("ee.data.clearAuthToken",Bh);var Dh=function(){return hh};y("ee.data.getAuthClientId",Dh);var Eh=function(){return ih};y("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");p(c)&&(Ih=c);!G||Jh&&null==a||(Jh=new Promise(function(d,e){gapi.load("client",{callback:function(){var g=Object.assign({},hd,{rootUrl:Fh.replace(/\/api$/,"")});gapi.client.init({apiKey:th,discoveryDocs:[g]}).then(function(){Kh=!0;gapi.client.earthengine.v1=gapi.client.earthengine;gapi.Le.update("client/headers/request",["X-Earth-Engine-Computation-Profiling"]); d()})},onerror:e})}),gh="earthengine-legacy");Gh=!0},H=function(a,b,c){Lh();var d=Mh?function(){var f=a();Nh(f)["X-Earth-Engine-Computation-Profiling"]="1";return f}:a;if(c){var e=function(f){return Oh(f.status,function(h){return f.headers[h.toLowerCase()]},f.body,null,c,b||Mc)};Jh.then(function(){d().then(e,e)});return null}if(!Kh)throw Error("Cloud API not ready");var g=Ph(function(){d().then(function(){return null},function(){return null})});return Oh(g.status,function(f){try{return g.getResponseHeader(f)}catch(h){return null}}, g.responseText,null,void 0,b||Mc)},Nh=function(a){var b=function(d){return v(d)&&v(d.headers)},c=[];Object.values(a).filter(v).forEach(function(d){gb(c,Object.values(d).filter(b))});if(1===c.length)return c[0].headers;console.error("NO HEADERS:",a);throw Error("Incompatible GAPI version: cannot find headers");},Ph=function(a){if(XMLHttpRequest.prototype.wc)throw Error("Cannot initialize synchronous request mode");var b=function(){this.ja=new this.wc;XMLHttpRequest.Xe=this.ja};b.prototype.open=function(c, d,e,g,f){this.ja.open(c,d,!1,g,f)};b.prototype.send=function(c){this.ja.send(c)};b.prototype.abort=function(){this.ja.abort()};b.prototype.overrideMimeType=function(c){this.ja.overrideMimeType(c)};b.prototype.setRequestHeader=function(c,d){this.ja.setRequestHeader(c,d)};b.prototype.getResponseHeader=function(c){return this.ja.getResponseHeader(c)};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(c){return Object.defineProperty(b.prototype, c,{get:function(){return this.ja[c]},set:function(d){this.ja[c]=d}})});b.prototype.wc=XMLHttpRequest;XMLHttpRequest=b;try{return a(),XMLHttpRequest.Xe}finally{XMLHttpRequest=XMLHttpRequest.prototype.wc}},Rh=function(a){Qh=a};y("ee.data.setDeadline",Rh);var Th=function(a){Sh=a||Mc};y("ee.data.setParamAugmenter",Th);var Uh=function(){return Fh};y("ee.data.getApiBaseUrl",Uh);var Vh=function(){return Hh};y("ee.data.getTileBaseUrl",Vh);var Wh=function(){return Ih};y("ee.data.getXsrfToken",Wh); var Xh=function(a){if(G)return H(function(){return gapi.client.earthengine.algorithms.list({bc:!1})},ud,a);var b=J("/algorithms",null,a,"GET");return a?null:b},Zh=function(a,b){if(G){if(q(a.image))throw Error("Image as JSON string not supported.");if(p(a.version))throw Error("Image version specification not supported.");var c={name:null,expression:be(a.image),fileFormat:od(a.format),bandIds:qd(a.bands),visualizationOptions:td(a)},d="projects/"+gh,e=["name"];return H(function(){return gapi.client.earthengine.projects.maps.create({parent:d, Md:e},c)},function(f){return Yh(f.name,"","/v1/{}/tiles",th?"?key="+th:"")},b)}a=Ib(a);q(a.image)||(a.image=a.image.B());var g=function(f){return Yh(f.mapid,f.token,"/map/{}","?token={}")};return b?(J("/mapid",K(a),function(f,h){return b(f&&g(f),h)}),null):g(J("/mapid",K(a)))};y("ee.data.getMapId",Zh);var $h=function(a,b,c,d){return a.formatTileUrl(b,c,d)};y("ee.data.getTileUrl",$h); var Yh=function(a,b,c,d){c=Hh+c.replace("{}",a);d=d.replace("{}",b);return{mapid:a,token:b,formatTileUrl:function(e,g,f){var h=Math.pow(2,f);e%=h;0>e&&(e+=h);return[c,f,e,g].join("/")+d}}},ai=function(a,b){a=Ib(a);return J("/value",K(a),b)};y("ee.data.getValue",ai); var bi=function(a,b){if(G){var c=be(a);return H(function(){return gapi.client.earthengine.value.compute({expression:c})},function(d){return d.result},b)}a={json:Xd(a)};return J("/value",K(a),b)},ci=function(a,b){if(G){if(q(a.image))throw Error("Image as JSON string not supported.");if(p(a.version))throw Error("Image version specification not supported.");if(p(a.region))throw Error('"region" not supported in call to ee.data.getThumbId. Use ee.Image.getThumbURL.');var c={name:null,expression:be(a.image), fileFormat:od(a.format),bandIds:qd(a.bands),visualizationOptions:td(a),grid:null},d=["name"],e="projects/"+gh;return H(function(){return gapi.client.earthengine.projects.thumbnails.create({parent:e,Md:d},c)},function(g){return{thumbid:g.name,token:""}},b)}a=Ib(a);q(a.image)||(a.image=a.image.B());u(a.dimensions)&&(a.dimensions=a.dimensions.join("x"));a=K(a).add("getid","1");return J("/thumb",a,b)};y("ee.data.getThumbId",ci); var di=function(a){return G?Hh+"/v1/"+a.thumbid+":getPixels"+(th?"?key="+th:""):Hh+"/api/thumb?thumbid="+a.thumbid+"&token="+a.token};y("ee.data.makeThumbUrl",di);var ei=function(a,b){a=Ib(a);return J("/download",K(a),b)};y("ee.data.getDownloadId",ei);var fi=function(a){return Hh+"/api/download?docid="+a.docid+"&token="+a.token};y("ee.data.makeDownloadUrl",fi);var gi=function(a,b){a=Ib(a);return J("/table",K(a),b)};y("ee.data.getTableDownloadId",gi); var hi=function(a){return Hh+"/api/table?docid="+a.docid+"&token="+a.token};y("ee.data.makeTableDownloadUrl",hi);var ii=function(a,b,c){var d=Mh;try{return Mh=a,b.call(c)}finally{Mh=d}};y("ee.data.withProfiling",ii); var ji=function(a,b){if(G){var c=function(e){return Math.floor(Math.random()*Math.pow(2,4*e)).toString(16).padStart(e,"0")};a=jb(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={};r(a)&&(d.count=a);return J("/newtaskid",K(d),b)};y("ee.data.newTaskId",ji); var mi=function(a,b){if(G){var c=function(e){return gapi.client.earthengine.operations.get({name:Hd(e)})};return H(function(){return ki(a,c)},function(e){return 1===a.length?Id(e):a.map(function(g){return Id(e[g])})},b)}var d="/taskstatus?q="+li(a).join();return J(d,null,b,"GET")};y("ee.data.getTaskStatus",mi);var li=function(a){if(q(a))return[a];if(u(a))return a;throw Error("Invalid value: expected a string or an array of strings.");},oi=function(a){return ni(void 0,a)};y("ee.data.getTaskList",oi); var ni=function(a,b){function c(h){var k={pagesize:500};a&&(k.pagesize=Math.min(k.pagesize,a-e.tasks.length));h&&(k.pagetoken=h);return k}function d(h,k){J("/tasklist",K(c(k)),function(n,t){t?h(e,t):(gb(e.tasks,n.tasks),!n.next_page_token||a&&e.tasks.length>=a?h(e):d(h,n.next_page_token))},"GET")}if(G)return b?(pi(a,function(h,k){return b(h?{tasks:h.map(Id)}:null,k)}),null):{tasks:pi(a).map(Id)};var e={tasks:[]};if(b)return d(b),null;for(var g="";;){var f=J("/tasklist",K(c(g)),void 0,"GET");gb(e.tasks, f.tasks);g=f.next_page_token;if(!f.next_page_token||a&&e.tasks.length>=a)break}return e};y("ee.data.getTaskListWithLimit",ni); var pi=function(a,b){var c=[],d={name:"operations",pageSize:500,filter:null,pageToken:null},e=function(){return gapi.client.earthengine.operations.list(d)},g=b?function(){return 0}:void 0,f=function(h){gb(c,h.operations||[]);!h.nextPageToken||a&&c.length>=a?b&&b(a?c.slice(0,a):c):(d.pageToken=h.nextPageToken,H(e,f,g));return null};H(e,f,g);return b?null:a?c.slice(0,a):c},qi=function(a,b){var c=function(d){return gapi.client.earthengine.operations.cancel({name:d})};H(function(){return ki(a,c)},null, b)};y("ee.data.cancelOperation",qi);var ri=function(a,b){var c=function(d){return gapi.client.earthengine.operations.get({name:Hd(d)})};return H(function(){return ki(a,c)},null,b)};y("ee.data.getOperation",ri);var ki=function(a,b){a=li(a);if(1===a.length)return b(a[0]);var c=gapi.client.newBatch();a.forEach(function(d){c.add(b(d),{id:d})});return c},ti=function(a,b){return si(a,"CANCEL",b)};y("ee.data.cancelTask",ti); var si=function(a,b,c){if(!Db(ui,b))throw Error("Invalid action: "+b);a=li(a);return G?(a=a.map(Hd),qi(a,c),null):J("/updatetask",K({id:a,action:b}),c,"POST")};y("ee.data.updateTask",si); var vi=function(a,b,c){if(G){b.id=a;a=b.type;switch(a){case "EXPORT_IMAGE":var d=oe(b);b=function(){return gapi.client.earthengine.v1.exportImage(d)};break;case "EXPORT_FEATURES":var e=re(b);b=function(){return gapi.client.earthengine.v1.exportTable(e)};break;case "EXPORT_VIDEO":var g=ue(b);b=function(){return gapi.client.earthengine.v1.exportVideo(g)};break;case "EXPORT_TILES":var f=we(b);b=function(){return gapi.client.earthengine.v1.exportMap(f)};break;case "EXPORT_VIDEO_MAP":var h=xe(b);b=function(){return gapi.client.earthengine.v1.exportVideoMap(h)}; break;default:throw Error("Unable to start processing for task of type "+a);}return H(b,function(k){var n={started:"OK"};k.name&&(n.taskId=k.name.replace(/^operations\//,""));k.error&&(n.note=k.error.message);return n},c)}b=Ib(b);null!=b.element&&(b.json=b.element.B(),delete b.element);b.id=a;return J("/processingrequest",K(b),c)};y("ee.data.startProcessing",vi);var wi=function(a,b,c){a={id:a,request:Nd(b)};return J("/ingestionrequest",K(a),c)};y("ee.data.startIngestion",wi); var xi=function(a,b,c){a={id:a,tableRequest:Nd(b)};return J("/ingestionrequest",K(a),c)};y("ee.data.startTableIngestion",xi);var yi=function(a,b){if(G){var c={name:wd(a),bc:!1};return H(function(){return gapi.client.earthengine.assets.get(c)},null,b)}return J("/info",(new Wg).add("id",a),b)};y("ee.data.getAsset",yi);sh.push("getAsset");y("ee.data.getInfo",yi); var zi=function(a,b){if(G){if(Object.keys(a).every(function(e){return"id"===e||"num"===e})){var c=yd(a);return H(function(){return gapi.client.earthengine.projects.assets.list(c)},Ad,b)}var d=Ed(a);return H(function(){return gapi.client.earthengine.projects.assets.listImages({Md:"assets(type,path)"},d)},Bd,b)}a=K(a);return J("/list",a,b)};y("ee.data.getList",zi);var Ai=function(a,b){return H(function(){return gapi.client.earthengine.assets.list(a)},null,b)};y("ee.data.listAssets",Ai);sh.push("listAssets"); var Bi=function(a,b){return H(function(){return gapi.client.earthengine.assets.listImages(a)},null,b)};y("ee.data.listImages",Bi);sh.push("listImages");var Ci=function(a){return H(function(){return gapi.client.earthengine.v1.listBuckets({})},null,a)};y("ee.data.listBuckets",Ci);sh.push("listBuckets");var Di=function(a){return G?H(function(){return gapi.client.earthengine.v1.listBuckets({})},Cd,a):J("/buckets",null,a,"GET")};y("ee.data.getAssetRoots",Di); var Ei=function(a,b){if(G){var c={parent:vd(a),type:"Folder",name:wd(a)};H(function(){return gapi.client.earthengine.projects.assets.create(c)},null,b)}else a=K({id:a}),J("/createbucket",a,b)};y("ee.data.createAssetHome",Ei); var Fi=function(a,b,c,d,e){if(G){if(c)throw Error("Asset overwrite not supported.");if(q(a))throw Error("Asset cannot be specified as string.");b=a.name||b&&wd(b);if(!b)throw Error("Either asset name or opt_path must be specified.");var g=b.indexOf("/assets/");if(-1===g)throw Error("Asset name must contain /assets/.");a=Object.assign({},a);delete a.name;d&&!a.properties&&(a.properties=d);a.type=xd(a.type);var f={asset:a,parent:b.slice(0,g),assetId:b.slice(g+8),overwrite:c||!1};return H(function(){return gapi.client.earthengine.projects.assets.create(f)}, null,e)}q(a)||(a=Nd(a));a={value:a};void 0!==b&&(a.id=b);a.force=c||!1;void 0!=d&&(a.properties=Nd(d));return J("/create",K(a),e)};y("ee.data.createAsset",Fi);var Gi=function(a,b,c){if(G){var d={parent:vd(a),type:"Folder",name:wd(a)};return H(function(){return gapi.client.earthengine.projects.assets.create(d)},null,c)}return J("/createfolder",K({id:a,force:b||!1}),c)};y("ee.data.createFolder",Gi); var Hi=function(a,b,c){if(G){var d={sourceName:wd(a),destinationName:wd(b),sourcePath:null,destinationPath:null};H(function(){return gapi.client.earthengine.assets.move(d)},null,c)}else J("/rename",K({sourceId:a,destinationId:b}),c)};y("ee.data.renameAsset",Hi); var Ii=function(a,b,c){if(G){var d={sourceName:wd(a),destinationName:wd(b),overwrite:!1,sourcePath:null,destinationPath:null,bandIds:null};H(function(){return gapi.client.earthengine.assets.copy(d)},null,c)}else J("/copy",K({sourceId:a,destinationId:b}),c)};y("ee.data.copyAsset",Ii);var Ji=function(a,b){if(G){var c={name:wd(a)};H(function(){return gapi.client.earthengine.assets["delete"](c)},null,b)}else J("/delete",K({id:a}),b)};y("ee.data.deleteAsset",Ji); var Ki=function(a,b){if(G){var c={nf:wd(a),bc:!1};return H(function(){return gapi.client.earthengine.projects.assets.getIamPolicy(c)},Fd,b)}return J("/getacl",K({id:a}),b,"GET")};y("ee.data.getAssetAcl",Ki);var Li=function(a,b,c,d){var e={name:wd(a),asset:b,updateMask:{paths:c||[]}};H(function(){return gapi.client.earthengine.assets.patch(e)},null,d)};y("ee.data.updateAsset",Li); var Mi=function(a,b,c){if(G){var d={nf:wd(a),policy:Gd(b),bc:!1};H(function(){return gapi.client.earthengine.projects.assets.setIamPolicy(d)},null,c)}else a={id:a,value:Nd(b)},J("/setacl",K(a),c)};y("ee.data.setAssetAcl",Mi);var Ni=function(a,b,c){if(G){var d=Object.keys(b).map(function(e){return"properties."+e});Li(a,{properties:b},d,c)}else a={id:a,properties:Nd(b)},J("/setproperties",K(a),c)};y("ee.data.setAssetProperties",Ni); var Oi=function(a,b){if(G){var c={name:wd(a),bc:!1};return H(function(){return gapi.client.earthengine.assets.get(c)},function(d){if(!d.quota)throw Error(a+" is not a root folder.");var e=function(g){return Number(d.quota[g]||0)};return{assetCount:{usage:e("assetCount"),limit:e("maxAssetCount")},Cf:{usage:e("sizeBytes"),limit:e("maxSizeBytes")}}},b)}return J("/quota",K({id:a}),b,"GET")};y("ee.data.getAssetRootQuota",Oi); var ui={yf:"CANCEL",Bf:"UPDATE"},J=function(a,b,c,d){Lh();var e=Mh,g={"Content-Type":"application/x-www-form-urlencoded"},f=Ch();if(null!=f)g.Authorization=f;else if(c&&qh&&hh)return lh(function(){ii(e,function(){J(a,b,c,d)})}),null;f=d||"POST";b=b?b.clone():new Wg;e&&b.add("profiling","1");null!=th&&b.add("key",th);b=Sh(b,a);null!=Ih&&(g["X-XSRF-Token"]=Ih);var h=b?b.toString():"";"GET"!=f||/^[\s\xa0]*$/.test(h)||(a+=-1!=a.indexOf("?")?"&":"?",a+=h,h=null);var k=Fh+a;if(c)return Pi.push(Qi(k,c,f, h,g)),Ri.Mc(),null;for(var n=function(I,oa){this.setRequestHeader&&this.setRequestHeader(oa,I)},t,Q=0;;){t=yg();t.open(f,k,!1);xb(g,n,t);t.send(h);if(429!=t.status||5g)return g++,setTimeout(function(){Pi.push(f);Ri.Mc()},Math.min(12E4,1E3*Math.pow(2, g))),null;var n=Oh,t=k.getStatus(),Q=x(k.getResponseHeader,k);try{var I=k.a?k.a.responseText:""}catch(oa){tg(k.N,"Can not get responseText: "+oa.message),I=""}return n(t,Q,I,h,b)};return f},Oh=function(a,b,c,d,e,g){g=void 0===g?function(t){return t.data}:g;var f=b("X-Earth-Engine-Computation-Profile");f&&d&&d(f);b=(b=b("Content-Type"))?b.replace(/;.*/,""):"application/json";if("application/json"==b||"text/json"==b)try{var h=JSON.parse(c);var k=g(h)}catch(t){var n="Invalid JSON: "+c}else n="Response was unexpectedly not JSON, but "+ b;if(v(h))"error"in h&&"message"in h.error?n=h.error.message:void 0===k&&(n="Malformed response: "+c);else if(0===a)n="Failed to contact Earth Engine servers. Please check your connection, firewall, or browser extension settings.";else if(200>a||300<=a)n="Server returned HTTP code: "+a;if(e)return e(k,n),null;if(!n)return k;throw Error(n);},kh=function(a){var b=function(){m.gapi.config.update("client/cors",!0);qh||(qh=m.gapi.auth.authorize);a()};if(v(m.gapi)&&v(m.gapi.auth)&&w(m.gapi.auth.authorize))b(); else{for(var c=Ga().toString(36);c in m;)c+="_";m[c]=function(){delete m[c];b()};gg(tf({onload:c}))}},ph=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(lh,.9*c),Ah=Ga()+c;jh=b;a&&a()}else b&&b(c.error||"Unknown error.")},K=function(a){var b=new Wg;a=ba(Object.entries(a));for(var c=a.next();!c.done;c=a.next()){var d=ba(c.value);c=d.next().value;d=d.next().value;b.set(c,d)}return b},Pi=[],Ri=new ff(function(){var a= Pi.shift();if(a){var b=a.url,c=a.callback,d=a.method,e=a.content;a=a.headers;var g=Qh,f=new F;Gg.push(f);c&&f.ga("complete",c);f.zb("ready",f.Ke);g&&(f.hb=Math.max(0,g));f.send(b,d,e,a)}0==Pi.length||Ri.Mc()},350),Fh=null,Hh=null,Ih=null,Sh=Mc,jh=null,Ah=null,hh=null,ih=[],qh=null,pf=new kf(hf,"https://apis.google.com/js/client.js?onload=%{onload}"),th=null,G=!1,Jh=null,Kh=!1,Gh=!1,Qh=0,Mh=null;var L=function(a,b,c){if(!(this instanceof L))return Si(L,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};z(L,id);y("ee.ComputedObject",L);L.prototype.evaluate=function(a){if(!a||!w(a))throw Error("evaluate() requires a callback function.");bi(this,a)};L.prototype.evaluate=L.prototype.evaluate; L.prototype.D=function(a){return bi(this,a)};L.prototype.getInfo=L.prototype.D;L.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)p(this.args[c])&&(b[c]=a(this.args[c]));b={type:"Invocation",arguments:b};a=a(this.i);b[q(a)?"functionName":"function"]=a;return b}; L.prototype.P=function(a){if(null===this.i&&null===this.args)return{argumentReference:this.A||"uninitializedVar"};var b={},c;for(c in this.args)p(this.args[c])&&(b[c]=kd(a(this.args[c])));return q(this.i)?ld(String(this.i),b):this.i.Hc(a,b)};L.prototype.B=function(){return Xd(this)};L.prototype.serialize=L.prototype.B;L.prototype.toString=function(){return"ee."+this.name()+"("+Zd(this)+")"};y("ee.ComputedObject.prototype.toString",L.prototype.toString);L.prototype.name=function(){return"ComputedObject"}; L.prototype.td=function(a,b){var c=fb(arguments);c[0]=this;a.apply(m,c);return this};L.prototype.aside=L.prototype.td;var Ti=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},Si=function(a,b){function c(){return a.apply(this,b)}c.prototype=a.prototype;return new c};var Ui={},Vi=function(a){return a.prototype instanceof L?a.prototype.name.call(null):a==Number?"Number":a==String?"String":a==Array?"Array":a==Date?"Date":"Object"},Wi=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}},Xi=function(a){return r(a)|| a instanceof L&&"Number"==a.name()},Yi=function(a){return q(a)||a instanceof L&&"String"==a.name()},Zi=function(a){return v(a)&&!w(a)?(a=Object.getPrototypeOf(a),null!==a&&null===Object.getPrototypeOf(a)):!1};var M=function(){if(!(this instanceof M))return new M};z(M,id);y("ee.Function",M);var $i=Mc;M.prototype.call=function(a){return this.apply(aj(this,Array.prototype.slice.call(arguments,0)))};M.prototype.call=M.prototype.call;M.prototype.apply=function(a){a=new L(this,bj(this,a));return $i(a,this.L().returns)};M.prototype.apply=M.prototype.apply; var cj=function(a,b,c){var d=p(b),e=a.L(),g=!1;if(1==c.length&&Zi(c[0])){var f=e.args;d&&(f=f.slice(1));f.length&&(g=!((1==f.length||f[1].optional)&&"Dictionary"==f[0].type))}if(g){if(c=Ib(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=aj(a,d?[b].concat(c):c);return a.apply(c)},bj=function(a,b){for(var c=a.L().args,d={},e={},g=0;g/,"");for(var h=0;h/,"");return new N(f,g)}),a&&a())};a?Xh(c):c(Xh())}},lj=function(a,b,c,d){hj();var e=d||"";xb(fj,function(g,f){var h=f.split(".");if(2==h.length&&h[0]==b){h=e+h[1];var k=g.L();gj[f]=!0;var n=!1;k.args.length&&(f=k.args[0].type,n="Object"!=f&&Wi(f,c)); f=n?a.prototype:a;h in f&&!f[h].signature||(f[h]=function(t){return cj(g,n?this:void 0,Array.prototype.slice.call(arguments,0))},f[h].toString=x(g.toString,g,h,n),f[h].signature=k)}})},mj=function(a){var b=function(c){for(var d in c)w(c[d])&&c[d].signature&&delete c[d]};b(a);b(a.prototype||{})};var P=function(a,b){var c=nj(a),d=Va(c,function(k){return k.replace(/^opt_/,"")});a=(a=m.EXPORTED_FN_INFO?m.EXPORTED_FN_INFO[a.toString()].name.split(".").pop()+"()":null)?" to function "+a:"";var e={},g=b[0],f=v(g)&&!w(g)&&!u(g)&&!(g instanceof L);if(1d.length)throw Error("Received too many arguments"+a+". Expected at most "+d.length+" but got "+b.length+".");for(g=0;g=arguments.length){var c=arguments[0];if(b=Zi(c))a:{b=Cb(c);var d=["properties"];if(ya(b)&&ya(d)&&b.length==d.length){for(var e=b.length,g=0;gc||4/,"");c[e]=!0}var g=m.ee,f;for(f in b)f in c&&!(f in g)&&(g[f]=rl(f),ll.push(f),a[f]?(g[f].signature=a[f],g[f].signature.isConstructor=!0,gj[f]=!0):g[f].signature={});Ui=g;sl()}catch(h){jl(h);return}fl="ready";for(gl=[];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.ya++].join("-"),this.pd.Ud()].join("-");b=this.Gd(d,b,c,a);b.tileSize=this.tileSize;Fl(b.O,this.opacity);this.za.set(a,b);Il(this,b);this.pd.be(b,(new Date).getTime()/1E3);return b.O};l.releaseTile=function(a){var b=this.za.get(a.id);this.za.remove(a.id);b&&(b.abort(),Ha(b))}; var Il=function(a,b){a.na.ga(b,"status-changed",function(){switch(b.getStatus()){case "loaded":var c=b.$e,d=(new Date).getTime();xl(this.jc,b.zoom).tileLatencies.push(d-c);this.dispatchEvent(new Jl(this.Pc()));break;case "throttled":xl(this.jc,b.zoom).throttleCount++;this.dispatchEvent(new Kl(b.Ma));break;case "failed":xl(this.jc,b.zoom).errorCount++,this.dispatchEvent(new Ll(b.Ma,b.Oe))}})}; Gl.prototype.h=function(){Gl.f.h.call(this);this.za.forEach(Ha);this.za.clear();this.za=null;Ha(this.na);this.pd=this.na=null};var Hl=function(a,b){return Ya(a.za.w(),function(c){return c.getStatus()==b})},Jl=function(){B.call(this,"tile-load")};z(Jl,B);var Kl=function(){B.call(this,"tile-throttle")};z(Kl,B);var Ll=function(a,b){B.call(this,"tile-fail");this.errorMessage=b};z(Ll,B); var Ml=function(a,b,c,d){D.call(this);this.Ua=a;this.zoom=b;this.O=c.createElement("div");this.O.id=d;this.bf=5;this.fc=function(){};this.md="new";this.oe=0;this.Xc=!1};z(Ml,D); var Ol=function(a){if(!a.Xc&&"loading"==a.getStatus())throw Error("startLoad() can only be invoked once. Use retryLoad() after the first attempt.");Nl(a,"loading");a.$e=(new Date).getTime();a.ra=new F;a.ra.fb="blob";a.ra.ga("complete",function(){var b=Og(this.ra),c=this.ra.getStatus();429==c&&Nl(this,"throttled");if(ug(c)){var d={};xb(Pg(this.ra),function(g,f){d[f.toLowerCase()]=g});this.rf=d;this.ve=b;this.pb()}else if(b){var e=new El;e.ga("loadend",function(){this.Eb(e.H.result)},void 0,this);e.readAsText(b)}else this.Eb("Failed to load tile.")}, !1,a);a.ra.zb("ready",Fa(Ha,a.ra));a.ra.send(a.Ma,"GET")};l=Ml.prototype;l.pb=function(){this.fc(this);Nl(this,"loaded")};l.kb=function(){Ha(this.ra)};l.Eb=function(a){var b=function(c){try{if(c=JSON.parse(c),c.error&&c.error.message)return c.error.message}catch(d){}return c};this.oe>=this.bf?(this.Oe=b(a),Nl(this,"failed")):(this.kb(),setTimeout(x(function(){this.ea||(this.Xc=!0,Ol(this),this.Xc=!1)},this),1E3*Math.pow(2,this.oe++)))};l.abort=function(){this.kb();Nl(this,"aborted")}; l.getStatus=function(){return this.md};var Nl=function(a,b){a.md=b;a.dispatchEvent("status-changed")},Pl={aborted:!0,failed:!0,loaded:!0};Ml.prototype.h=function(){Ml.f.h.call(this);this.kb();this.O.remove();this.fc=null};var Ql=function(){A.call(this)};z(Ql,A);var Rl=function(a,b){Gl.call(this,a,b);this.Ad=new Rc;this.Jd=new Rc};z(Rl,Gl);y("ee.layers.BinaryOverlay",Rl);Rl.prototype.Gd=function(a,b,c,d){var e=new Sl(a,b,c,d);this.na.ga(e,"status-changed",function(){"loaded"==e.getStatus()&&(this.Ad.set(a,new Float32Array(e.He)),this.Jd.set(a,e.O))});return e};Rl.prototype.h=function(){Rl.f.h.call(this);this.Jd=this.Ad=null};var Sl=function(a,b,c,d){Ml.call(this,a,b,c,d)};z(Sl,Ml); Sl.prototype.pb=function(){var a=new El;a.ga("loadend",function(){this.He=a.H.result;Ml.prototype.pb.call(this)},void 0,this);a.readAsArrayBuffer(this.ve)};var Tl=function(a){D.call(this);this.vb={};this.ub={};this.Fa=new yl(this);this.u=a};z(Tl,D);var Ul=[Tb&&!cc("11")?"readystatechange":"load","abort","error"],Vl=function(a,b,c){(c=q(c)?c:c.src)&&(a.vb[b]={src:c,Fd:p(void 0)?void 0:null})},Wl=function(a,b){delete a.vb[b];var c=a.ub[b];c&&(delete a.ub[b],a.Fa.qc(c,Ul,a.ge),Gb(a.ub)&&Gb(a.vb)&&a.dispatchEvent("complete"))}; Tl.prototype.start=function(){var a=this.vb;Ta(Cb(a),function(b){var c=a[b];if(c&&(delete a[b],!this.ea)){if(this.u){var d=this.u;d=(d?new Qf(Pf(d)):Ja||(Ja=new Qf)).Me("IMG")}else d=new Image;c.Fd&&(d.crossOrigin=c.Fd);this.Fa.ga(d,Ul,this.ge);this.ub[b]=d;d.id=b;d.src=c.src}},this)}; Tl.prototype.ge=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||Wl(this,b.id)}};Tl.prototype.h=function(){delete this.vb;delete this.ub;Ha(this.Fa);Tl.f.h.call(this)};var Xl=function(a,b){Gl.call(this,a,b)};z(Xl,Gl);y("ee.layers.ImageOverlay",Xl);Xl.prototype.Gd=function(a,b,c,d){return new Yl(a,b,c,d)};var Yl=function(a,b,c,d){Ml.call(this,a,b,c,d);this.fc=Zl;this.Xd=this.K=this.Ub=null;this.Bb=""};z(Yl,Ml); Yl.prototype.pb=function(){try{var a=Cf(this.ve);this.Bb=zf(a).toString();var b="about:invalid#zClosurez"!==this.Bb?this.Bb:this.Ma}catch(c){b=this.Ma}this.K=new Tl;Vl(this.K,this.O.id+"-image",b);this.Xd=xc(this.K,$l,function(c){"load"==c.type?(this.Ub=c.target,Ml.prototype.pb.call(this)):this.Eb()},void 0,this);this.K.start()};Yl.prototype.kb=function(){Yl.f.kb.call(this);this.K&&(Gc(this.Xd),Ha(this.K))};Yl.prototype.h=function(){Yl.f.h.call(this);this.Bb&&URL.revokeObjectURL(this.Bb)}; var $l=["load","abort","error"],Zl=function(a){a.O.appendChild(a.Ub)};var am=function(a){for(var b=arguments[0],c=1;cthis.Yb)throw Error("[goog.structs.Pool] Min can not be greater than max");this.fa=new dm;this.wa=new $c;this.delay=0;this.Yc=null;this.Jb()};z(em,A);em.prototype.rb=function(){var a=Ga();if(!(null!=this.Yc&&a-this.Ycthis.Yb&&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};l=hm.prototype; l.remove=function(){var a=this.W,b=a.length,c=a[0];if(!(0>=b)){if(1==b)bb(a);else{a[0]=a.pop();a=0;b=this.W;for(var d=b.length,e=b[a];a>1;){var g=2*a+1,f=2*a+2;g=fe.getKey())break;b[a]=b[g];a=g}b[a]=e}return c.sc}};l.w=function(){for(var a=this.W,b=[],c=a.length,d=0;da.cf)return!1;a.wd++;Wl(a.K,a.J);setTimeout(x(a.sf,a),0);return!0}; qm.prototype.sf=function(){if(!this.Sa){var a=x(function(d){this.Sa||(Vl(this.K,this.J,d),xc(this.K,tm,x(this.Te,this)),this.K.start())},this),b=this.getUrl();if(ch(b).X.ua("profiling")){var c=new F;c.fb="blob";c.ga("complete",x(function(){this.ke=c.getResponseHeader("X-Earth-Engine-Computation-Profile")||null;if(200<=c.getStatus()&&300>c.getStatus())try{var d=zf(Cf(Og(c))).toString();var e="about:invalid#zClosurez"!==d}catch(g){}a(e?d:b)},this));c.zb("ready",x(c.da,c));c.send(b,"GET")}else a(b)}}; var um=function(){this.Y=!1};z(um,A);um.prototype.setActive=function(a){this.Y=a};um.prototype.Yd=function(){return this.Y};var om=function(a,b){km.call(this,a,b)};z(om,km);om.prototype.Fc=function(){return new um};om.prototype.Nb=function(a){a.da()};om.prototype.$c=function(a){return!a.ea&&!a.Yd()};var Z=function(a,b,c,d,e){ed.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.rd=new $c;this.ad=1;this.S=e||null};z(Z,ed);y("ee.MapLayerOverlay",Z);Z.prototype.yc=function(a){return yc(this,"tileevent",a)};Z.prototype.addTileCallback=Z.prototype.yc;Z.prototype.jd=function(a){Gc(a)}; Z.prototype.removeTileCallback=Z.prototype.jd;Z.prototype.getTile=function(a,b,c){if(ba.y||a.y>=1<