(function(){var l,aa=function(a){var b=0;return function(){return b=e}}); ma("String.prototype.startsWith",function(a){return a?a:function(b,c){var d=na(this,b,"startsWith");b+="";var e=d.length,f=b.length;c=Math.max(0,Math.min(c|0,d.length));for(var g=0;g=f}});ma("String.prototype.repeat",function(a){return a?a:function(b){var c=na(this,null,"repeat");if(0>b||1342177279>>=1)c+=c;return d}}); var pa=function(){pa=function(){};la.Symbol||(la.Symbol=qa)},ra=function(a,b){this.ye=a;ka(this,"description",{configurable:!0,writable:!0,value:b})};ra.prototype.toString=function(){return this.ye}; var qa=function(){function a(c){if(this instanceof a)throw new TypeError("Symbol is not a constructor");return new ra("jscomp_symbol_"+(c||"")+"_"+b++,c)}var b=0;return a}(),ta=function(){pa();var a=la.Symbol.iterator;a||(a=la.Symbol.iterator=la.Symbol("Symbol.iterator"));"function"!=typeof Array.prototype[a]&&ka(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return sa(aa(this))}});ta=function(){}},sa=function(a){ta();a={next:a};a[la.Symbol.iterator]=function(){return this};return a}, ua=function(a,b){ta();a instanceof String&&(a+="");var c=0,d={next:function(){if(cc&&(c=Math.max(c+e,0));c>>0),Ja=0,Ka=function(a,b,c){return a.call.apply(a.bind,arguments)},La=function(a,b,c){if(!a)throw Error();if(2c&&(c=Math.max(0,a.length+c));if(t(a))return t(b)&&1==b.length?a.lastIndexOf(b,c):-1;for(;0<=c;c--)if(c in a&&a[c]===b)return c;return-1},$a=Array.prototype.forEach?function(a,b,c){D(null!=a.length);Array.prototype.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=t(a)?a.split(""):a,f=0;fb?null:t(a)?a.charAt(b):a[b]},hb=function(a,b){return 0<=Ya(a,b)},ib=function(a){if(!v(a))for(var b=a.length-1;0<=b;b--)delete a[b];a.length=0},kb= function(a,b){b=Ya(a,b);var c;(c=0<=b)&&jb(a,b);return c},jb=function(a,b){D(null!=a.length);Array.prototype.splice.call(a,b,1)},lb=function(a){return Array.prototype.concat.apply([],arguments)},mb=function(a){var b=a.length;if(0=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)},pb=function(a){for(var b={},c=0,d=0;da-0)return[];for(var c=0;c/g,wb=/"/g,xb=/'/g,yb=/\x00/g,zb=/[\x00&<>"']/,Ab=function(a,b){return ab?1:0};var Bb;a:{var Cb=q.navigator;if(Cb){var Db=Cb.userAgent;if(Db){Bb=Db;break a}}Bb=""}var Eb=function(a){return-1!=Bb.indexOf(a)};var Fb=function(a,b,c){for(var d in a)b.call(c,a[d],d,a)},Gb=function(a,b){var c={},d;for(d in a)b.call(void 0,a[d],d,a)&&(c[d]=a[d]);return c},Hb=function(a,b,c){var d={},e;for(e in a)d[e]=b.call(c,a[e],e,a);return d},Ib=function(a,b){for(var c in a)if(b.call(void 0,a[c],c,a))return!0;return!1},Jb=function(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b},Kb=function(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b},Lb=function(a,b){for(var c in a)if(a[c]==b)return!0;return!1},Nb=function(a){var b= Mb,c;for(c in b)if(a.call(void 0,b[c],c,b))return c},Ob=function(a){for(var b in a)return!1;return!0},Pb=function(a,b){b in a&&delete a[b]},Qb=function(a){var b={},c;for(c in a)b[c]=a[c];return b},Rb=function(a){var b=Da(a);if("object"==b||"array"==b){if(x(a.clone))return a.clone();b="array"==b?[]:{};for(var c in a)b[c]=Rb(a[c]);return b}return a},Sb="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),Tb=function(a,b){for(var c,d,e=1;e"}else f=void 0===a?"undefined":null===a?"null":typeof a;Ta("Argument is not a %s (or a non-Element, non-Location mock); got: %s", b,f)}};var Vb=function(a){return a};var Yb=function(a,b){this.nd=a===Wb&&b||"";this.Ce=Xb};Yb.prototype.Ia=!0;Yb.prototype.Ga=function(){return this.nd};Yb.prototype.toString=function(){return"Const{"+this.nd+"}"};var Zb=function(a){if(a instanceof Yb&&a.constructor===Yb&&a.Ce===Xb)return a.nd;Ta("expected object of type Const, got '"+a+"'");return"type_error:Const"},Xb={},Wb={},$b=new Yb(Wb,"");var ac=function(){this.dd=""};ac.prototype.Ia=!0;ac.prototype.Ga=function(){return this.dd.toString()};ac.prototype.toString=function(){return"SafeScript{"+this.dd+"}"};ac.prototype.qa=function(a){this.dd=a;return this};(new ac).qa("");var cc=function(){this.gc="";this.we=null;this.De=bc};cc.prototype.Ia=!0;cc.prototype.Ga=function(){return this.gc.toString()};cc.prototype.toString=function(){return"TrustedResourceUrl{"+this.gc+"}"}; var dc=function(a){if(a instanceof cc&&a.constructor===cc&&a.De===bc)return a.gc;Ta("expected object of type TrustedResourceUrl, got '"+a+"' of type "+Da(a));return"type_error:TrustedResourceUrl"},ic=function(a){var b=Zb(ec);if(!fc.test(b))throw Error("Invalid TrustedResourceUrl format: "+b);var c=b.replace(gc,function(d,e){if(!Object.prototype.hasOwnProperty.call(a,e))throw Error('Found marker, "'+e+'", in format string, "'+b+'", but no valid label mapping found in args: '+JSON.stringify(a));d=a[e]; return d instanceof Yb?Zb(d):encodeURIComponent(String(d))});return hc(c)},gc=/%{(\w+)}/g,fc=/^((https:)?\/\/[0-9a-z.:[\]-]+\/|\/[^/\\]|[^:/\\%]+\/|[^:/\\%]*[?#]|about:blank#)/i,bc={},hc=function(a){var b=new cc;b.gc=a;return b};var kc=function(){this.fc="";this.Be=jc};kc.prototype.Ia=!0;kc.prototype.Ga=function(){return this.fc.toString()};kc.prototype.toString=function(){return"SafeUrl{"+this.fc+"}"}; var mc=function(a){if(a instanceof kc&&a.constructor===kc&&a.Be===jc)return a.fc;Ta("expected object of type SafeUrl, got '"+a+"' of type "+Da(a));return"type_error:SafeUrl"},nc=/^(?:audio\/(?:3gpp2|3gpp|aac|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-wav|wav|webm)|image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon)|text\/csv|video\/(?:mpeg|mp4|ogg|webm|quicktime))(?:;\w+=(?:\w+|"[\w;=]+"))*$/i,pc=function(a){if(nc.test(a.type)){var b=r(q.URL)&&r(q.URL.createObjectURL)?q.URL:r(q.webkitURL)&&r(q.webkitURL.createObjectURL)? q.webkitURL:r(q.createObjectURL)?q:null;if(null==b)throw Error("This browser doesn't seem to support blob URLs");a=b.createObjectURL(a)}else a="about:invalid#zClosurez";return oc(a)},jc={},oc=function(a){var b=new kc;b.fc=a;return b};oc("about:blank");var qc=function(){this.fd=""};qc.prototype.Ia=!0;qc.prototype.Ga=function(){return this.fd};qc.prototype.toString=function(){return"SafeStyle{"+this.fd+"}"};qc.prototype.qa=function(a){this.fd=a;return this};(new qc).qa("");var rc=function(){this.ed=""};rc.prototype.Ia=!0;rc.prototype.Ga=function(){return this.ed};rc.prototype.toString=function(){return"SafeStyleSheet{"+this.ed+"}"};rc.prototype.qa=function(a){this.ed=a;return this};(new rc).qa("");var tc=function(){this.ec="";this.Ae=sc};tc.prototype.Ia=!0;tc.prototype.Ga=function(){return this.ec.toString()};tc.prototype.toString=function(){return"SafeHtml{"+this.ec+"}"};var vc=function(){var a=uc;if(a instanceof tc&&a.constructor===tc&&a.Ae===sc)return a.ec;Ta("expected object of type SafeHtml, got '"+a+"' of type "+Da(a));return"type_error:SafeHtml"},sc={};tc.prototype.qa=function(a){this.ec=a;return this};(new tc).qa("");var uc=(new tc).qa("");(new tc).qa("
");var wc=function(a){var b=hc(Zb($b));Ub(a,"HTMLIFrameElement");a.src=b.we?b.we:dc(b).toString()},xc=function(a,b){Ub(a,"HTMLScriptElement");a.src=dc(b);if(null===Aa)b:{b=q.document;if((b=b.querySelector&&b.querySelector("script[nonce]"))&&(b=b.nonce||b.getAttribute("nonce"))&&za.test(b)){Aa=b;break b}Aa=""}b=Aa;b&&a.setAttribute("nonce",b)};var yc=function(a,b){for(var c=a.split("%s"),d="",e=Array.prototype.slice.call(arguments,1);e.length&&1")&&(a=a.replace(vb,">")),-1!=a.indexOf('"')&&(a=a.replace(wb,""")),-1!=a.indexOf("'")&&(a=a.replace(xb,"'")),-1!=a.indexOf("\x00")&&(a=a.replace(yb,"�")));return a},Ac=function(a){var b=1;a= a.split(":");for(var c=[];0parseFloat(Lc)){Kc=String(Nc);break a}}Kc=Lc} var Oc=Kc,Cc={},Pc=function(a){return Dc(a,function(){for(var b=0,c=sb(String(Oc)).split("."),d=sb(String(a)).split("."),e=Math.max(c.length,d.length),f=0;0==b&&f=a.keyCode)a.keyCode=-1}catch(b){}};var Xc="closure_listenable_"+(1E6*Math.random()|0),Yc=function(a){return!(!a||!a[Xc])},Zc=0;var $c=function(a,b,c,d,e){this.listener=a;this.hc=null;this.src=b;this.type=c;this.capture=!!d;this.pa=e;this.key=++Zc;this.eb=this.Nb=!1},ad=function(a){a.eb=!0;a.listener=null;a.hc=null;a.src=null;a.pa=null};var bd=function(a){this.src=a;this.H={};this.Jb=0};bd.prototype.add=function(a,b,c,d,e){var f=a.toString();a=this.H[f];a||(a=this.H[f]=[],this.Jb++);var g=cd(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.Ma&&0<=e;e--){b.currentTarget=c[e];var f=sd(c[e],a,!0,b);d=d&&f}for(e=0;!b.Ma&&e>>0),jd=function(a){D(a,"Listener can not be null.");if(x(a))return a;D(a.handleEvent, "An object listener must have handleEvent method.");a[td]||(a[td]=function(b){return a.handleEvent(b)});return a[td]};var E=function(){B.call(this);this.Z=new bd(this);this.Fe=this;this.cd=null};A(E,B);E.prototype[Xc]=!0;l=E.prototype;l.addEventListener=function(a,b,c,d){id(this,a,b,c,d)};l.removeEventListener=function(a,b,c,d){pd(this,a,b,c,d)}; l.dispatchEvent=function(a){ud(this);var b=this.cd;if(b){var c=[];for(var d=1;b;b=b.cd)c.push(b),D(1E3>++d,"infinite loop")}b=this.Fe;d=a.type||a;if(t(a))a=new C(a,b);else if(a instanceof C)a.target=a.target||b;else{var e=a;a=new C(d,b);Tb(a,e)}e=!0;if(c)for(var f=c.length-1;!a.Ma&&0<=f;f--){var g=a.currentTarget=c[f];e=vd(g,d,!0,a)&&e}a.Ma||(g=a.currentTarget=b,e=vd(g,d,!0,a)&&e,a.Ma||(e=vd(g,d,!1,a)&&e));if(c)for(f=0;!a.Ma&&f=a.length)throw wd;if(b in a)return a[b++];b++}};return c}throw Error("Not implemented");},zd=function(a,b){if(Fa(a))try{$a(a,b,void 0)}catch(c){if(c!==wd)throw c;}else{a=yd(a);try{for(;;)b.call(void 0,a.next(),void 0,a)}catch(c){if(c!==wd)throw c;}}};var Ad=function(a,b){this.f={};this.l=[];this.Kb=this.m=0;var c=arguments.length;if(12*this.m&&Bd(this),!0):!1};var Bd=function(a){if(a.m!=a.l.length){for(var b=0,c=0;b=d.l.length)throw wd;var f=d.l[b++];return a?f:d.f[f]};return e};var Cd=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};var Ed=function(a){if(a.o&&"function"==typeof a.o)a=a.o();else if(Fa(a)||t(a))a=a.length;else{var b=0,c;for(c in a)b++;a=b}return a},Fd=function(a){if(a.A&&"function"==typeof a.A)return a.A();if(t(a))return a.split("");if(Fa(a)){for(var b=[],c=a.length,d=0;dc)return!1;!(b instanceof Jd)&&5e&&(e+=d);return[a.bf,c,e,b.y].join("/")};Od.prototype.Qc=function(){return this.Ca.length};var Qd=function(a){C.call(this,"tileevent");this.count=a};A(Qd,C);var Rd={kind:"discovery#restDescription",name:"earthengine",version:"v1alpha",rootUrl:"https://earthengine.googleapis.com/",servicePath:"",batchPath:"batch",id:"earthengine:v1alpha",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:{projects:{methods:{getCapabilities:{id:"earthengine.projects.getCapabilities",path:"v1alpha/{+parent}/capabilities",httpMethod:"GET",parameters:{parent:{location:"path",required:!0}}},listAssets:{id:"earthengine.projects.listAssets",path:"v1alpha/{+parent}:listAssets",httpMethod:"GET",parameters:{parent:{location:"path",required:!0},pageSize:{location:"query", required:!1},pageToken:{location:"query",required:!1}}}},resources:{algorithms:{methods:{list:{id:"earthengine.projects.algorithms.list",path:"v1alpha/{+project}/algorithms",httpMethod:"GET",parameters:{project:{location:"path",required:!0}}}}},assets:{methods:{copy:{id:"earthengine.projects.assets.copy",path:"v1alpha/{+sourceName}:copy",httpMethod:"POST",request:{$ref:"CopyAssetRequest"},parameters:{sourceName:{location:"path",required:!0}}},create:{id:"earthengine.projects.assets.create",path:"v1alpha/{+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:"v1alpha/{+name}",httpMethod:"DELETE",parameters:{name:{location:"path",required:!0}}},get:{id:"earthengine.projects.assets.get",path:"v1alpha/{+name}",httpMethod:"GET",parameters:{name:{location:"path",required:!0}}},getIamPolicy:{id:"earthengine.projects.assets.getIamPolicy", path:"v1alpha/{+resource}:getIamPolicy",httpMethod:"POST",request:{$ref:"GetIamPolicyRequest"},parameters:{resource:{location:"path",required:!0}}},getPixels:{id:"earthengine.projects.assets.getPixels",path:"v1alpha/{+name}:getPixels",httpMethod:"POST",request:{$ref:"GetPixelsRequest"},parameters:{name:{location:"path",required:!0}}},listAssets:{id:"earthengine.projects.assets.listAssets",path:"v1alpha/{+parent}:listAssets",httpMethod:"GET",parameters:{parent:{location:"path",required:!0},pageSize:{location:"query", required:!1},pageToken:{location:"query",required:!1}}},listFeatures:{id:"earthengine.projects.assets.listFeatures",path:"v1alpha/{+parent}:listFeatures",httpMethod:"GET",parameters:{parent:{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:"v1alpha/{+parent}:listImages",httpMethod:"GET",parameters:{parent:{location:"path", required:!0},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:"v1alpha/{+sourceName}:move",httpMethod:"POST",request:{$ref:"MoveAssetRequest"},parameters:{sourceName:{location:"path",required:!0}}},patch:{id:"earthengine.projects.assets.patch", path:"v1alpha/{+name}",httpMethod:"PATCH",request:{$ref:"UpdateAssetRequest"},parameters:{name:{location:"path",required:!0}}},search:{id:"earthengine.projects.assets.search",path:"v1alpha/{+project}/assets:search",httpMethod:"GET",parameters:{project:{location:"path",required:!0},query:{location:"query",required:!1},pageSize:{location:"query",required:!1},nextPageToken:{location:"query",required:!1},fieldMask:{location:"query",required:!1}}},setIamPolicy:{id:"earthengine.projects.assets.setIamPolicy", path:"v1alpha/{+resource}:setIamPolicy",httpMethod:"POST",request:{$ref:"SetIamPolicyRequest"},parameters:{resource:{location:"path",required:!0}}},testIamPermissions:{id:"earthengine.projects.assets.testIamPermissions",path:"v1alpha/{+resource}:testIamPermissions",httpMethod:"POST",request:{$ref:"TestIamPermissionsRequest"},parameters:{resource:{location:"path",required:!0}}}}},filmstripThumbnails:{methods:{create:{id:"earthengine.projects.filmstripThumbnails.create",path:"v1alpha/{+parent}/filmstripThumbnails", httpMethod:"POST",request:{$ref:"FilmstripThumbnail"},parameters:{parent:{location:"path",required:!0}}},getPixels:{id:"earthengine.projects.filmstripThumbnails.getPixels",path:"v1alpha/{+name}:getPixels",httpMethod:"GET",parameters:{name:{location:"path",required:!0}}}}},image:{methods:{computePixels:{id:"earthengine.projects.image.computePixels",path:"v1alpha/{+project}/image:computePixels",httpMethod:"POST",request:{$ref:"ComputePixelsRequest"},parameters:{project:{location:"path",required:!0}}}, "export":{id:"earthengine.projects.image.export",path:"v1alpha/{+project}/image:export",httpMethod:"POST",request:{$ref:"ExportImageRequest"},parameters:{project:{location:"path",required:!0}}},"import":{id:"earthengine.projects.image.import",path:"v1alpha/{+project}/image:import",httpMethod:"POST",request:{$ref:"ImportImageRequest"},parameters:{project:{location:"path",required:!0}}}}},imageCollection:{methods:{computeImages:{id:"earthengine.projects.imageCollection.computeImages",path:"v1alpha/{+project}/imageCollection:computeImages", httpMethod:"POST",request:{$ref:"ComputeImagesRequest"},parameters:{project:{location:"path",required:!0}}}}},map:{methods:{"export":{id:"earthengine.projects.map.export",path:"v1alpha/{+project}/map:export",httpMethod:"POST",request:{$ref:"ExportMapRequest"},parameters:{project:{location:"path",required:!0}}}}},maps:{methods:{create:{id:"earthengine.projects.maps.create",path:"v1alpha/{+parent}/maps",httpMethod:"POST",request:{$ref:"EarthEngineMap"},parameters:{parent:{location:"path",required:!0}}}}, resources:{tiles:{methods:{get:{id:"earthengine.projects.maps.tiles.get",path:"v1alpha/{+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.projects.operations.cancel",path:"v1alpha/{+name}:cancel",httpMethod:"POST",request:{$ref:"CancelOperationRequest"},parameters:{name:{location:"path",required:!0}}},"delete":{id:"earthengine.projects.operations.delete", path:"v1alpha/{+name}",httpMethod:"DELETE",parameters:{name:{location:"path",required:!0}}},get:{id:"earthengine.projects.operations.get",path:"v1alpha/{+name}",httpMethod:"GET",parameters:{name:{location:"path",required:!0}}},list:{id:"earthengine.projects.operations.list",path:"v1alpha/{+name}/operations",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.projects.operations.wait", path:"v1alpha/{+name}:wait",httpMethod:"POST",request:{$ref:"WaitOperationRequest"},parameters:{name:{location:"path",required:!0}}}}},table:{methods:{computeFeatures:{id:"earthengine.projects.table.computeFeatures",path:"v1alpha/{+project}/table:computeFeatures",httpMethod:"POST",request:{$ref:"ComputeFeaturesRequest"},parameters:{project:{location:"path",required:!0}}},"export":{id:"earthengine.projects.table.export",path:"v1alpha/{+project}/table:export",httpMethod:"POST",request:{$ref:"ExportTableRequest"}, parameters:{project:{location:"path",required:!0}}},"import":{id:"earthengine.projects.table.import",path:"v1alpha/{+project}/table:import",httpMethod:"POST",request:{$ref:"ImportTableRequest"},parameters:{project:{location:"path",required:!0}}}}},thumbnails:{methods:{create:{id:"earthengine.projects.thumbnails.create",path:"v1alpha/{+parent}/thumbnails",httpMethod:"POST",request:{$ref:"Thumbnail"},parameters:{parent:{location:"path",required:!0}}},getPixels:{id:"earthengine.projects.thumbnails.getPixels", path:"v1alpha/{+name}:getPixels",httpMethod:"GET",parameters:{name:{location:"path",required:!0}}}}},value:{methods:{compute:{id:"earthengine.projects.value.compute",path:"v1alpha/{+project}/value:compute",httpMethod:"POST",request:{$ref:"ComputeValueRequest"},parameters:{project:{location:"path",required:!0}}}}},video:{methods:{"export":{id:"earthengine.projects.video.export",path:"v1alpha/{+project}/video:export",httpMethod:"POST",request:{$ref:"ExportVideoRequest"},parameters:{project:{location:"path", required:!0}}}}},videoMap:{methods:{"export":{id:"earthengine.projects.videoMap.export",path:"v1alpha/{+project}/videoMap:export",httpMethod:"POST",request:{$ref:"ExportVideoMapRequest"},parameters:{project:{location:"path",required:!0}}}}},videoThumbnails:{methods:{create:{id:"earthengine.projects.videoThumbnails.create",path:"v1alpha/{+parent}/videoThumbnails",httpMethod:"POST",request:{$ref:"VideoThumbnail"},parameters:{parent:{location:"path",required:!0}}},getPixels:{id:"earthengine.projects.videoThumbnails.getPixels", path:"v1alpha/{+name}:getPixels",httpMethod:"GET",parameters:{name:{location:"path",required:!0}}}}}}}},methods:{}};var Sd=function(){},Td=function(a){return{constantValue:a}},Ud=function(a){return{valueReference:a}},Vd=function(a,b){return{functionInvocationValue:{functionName:a,arguments:b}}},Wd=function(a,b){return{functionInvocationValue:{arguments:b,functionReference:a}}},Xd=function(a,b){return{functionDefinitionValue:{argumentNames:a,body:b}}},Yd=function(a){if(!a)return"AUTO_JPEG_PNG";a=a.toUpperCase();switch(a){case "JPG":return"JPEG";case "AUTO":return"AUTO_JPEG_PNG";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}},Zd=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}},$d=function(a){if(!a)return"VERTICAL";a=a.toUpperCase();if("HORIZONTAL"!==a||"VERTICAL"!==a)throw Error('Orientation must be "horizontal" or "vertical"');return a},ae=function(a){if(!a)return[];if(t(a))return a.split(","); if(v(a))return a;throw Error("Invalid band list "+a);},de=function(a){var b={};if("palette"in a){var c=a.palette;b.paletteColors=t(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=be(a,"bias","gain").map(function(e){var f=-e.bias/e.gain;return{min:f,max:d/e.gain+f}})}else if("min"in a||"max"in a)c=be(a,"min","max");0!==c.length&&(b.ranges=c);a=ce(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}; Ee.prototype.update=function(a,b){r(b)||(b=a.length);for(var c=b-this.ma,d=this.Ie,e=this.kb,f=0;fthis.kb?this.ma:2*this.ma)-this.kb);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 He=function(a){return(new Ge(void 0)).D(a)},Ge=function(a){this.jc=a};Ge.prototype.D=function(a){var b=[];Ie(this,a,b);return b.join("")}; var Ie=function(a,b,c){if(null==b)c.push("null");else{if("object"==typeof b){if(v(b)){var d=b;b=d.length;c.push("[");for(var e="",f=0;f');c[e]=d});b.tensorDepths=c}else throw Error('"tensorDepths" option needs to have the form Object.');return b},hf=function(a,b){var c={gcsDestination:null,driveDestination:null,geoTiffOptions:null,tfRecordOptions:null,fileFormat:Yd(a.fileFormat)};"GEO_TIFF"===c.fileFormat?c.geoTiffOptions={cloudOptimized:!!a.tiffCloudOptimized, skipEmptyFiles:!!a.tiffSkipEmptyFiles,tileDimensions:tf(a.tiffFileDimensions)}:"TF_RECORD_IMAGE"===c.fileFormat&&(c.tfRecordOptions=uf(a));"GOOGLE_CLOUD_STORAGE"===b?c.gcsDestination=lf(a):c.driveDestination=mf(a);return c},of=function(a,b){var c={gcsDestination:null,driveDestination:null,fileFormat:"MP4"};"GOOGLE_CLOUD_STORAGE"===b?c.gcsDestination=lf(a):c.driveDestination=mf(a);return c},qf=function(a){return{maxZoom:kf(a.maxZoom),scale:kf(a.scale),minZoom:kf(a.minZoom),skipEmptyTiles:!!a.skipEmptyTiles, mapsApiKey:ff(a.mapsApiKey),tileDimensions:tf(a.tileDimensions)}},tf=function(a){if(null==a)return null;var b={height:0,width:0};t(a)&&(-1!==a.indexOf("x")?a=a.split("x").map(Number):-1!==a.indexOf(",")&&(a=a.split(",").map(Number)));if(v(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(w(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},lf=function(a){return{bucket:ff(a.outputBucket),filenamePrefix:ff(a.outputPrefix),bucketCorsUris:null,permissions:null}},mf=function(a){return{folder:ff(a.driveFolder),filenamePrefix:ff(a.driveFileNamePrefix)}};Object.freeze&&Object.freeze([]);var vf=function(a,b){this.Ze=100;this.Oe=a;this.lf=b;this.cc=0;this.M=null};vf.prototype.get=function(){if(0");c=c.join("")}c=a.createElement(c);d&&(t(d)?c.className=d:v(d)?c.className=d.join(" "):eg(c,d));2=b.Dc&&b.cancel())}this.de?this.de.call(this.Hd,this):this.ld=!0;this.Ya||pg(this,new qg(this))}};og.prototype.Dd=function(a,b){this.Cc=!1;rg(this,a,b)}; var rg=function(a,b,c){a.Ya=!0;a.T=c;a.ub=!b;sg(a)},ug=function(a){if(a.Ya){if(!a.ld)throw new tg(a);a.ld=!1}};og.prototype.callback=function(a){ug(this);vg(a);rg(this,!0,a)};var pg=function(a,b){ug(a);vg(b);rg(a,!1,b)},vg=function(a){D(!(a instanceof og),"An execution sequence may not be initiated with a blocking Deferred.")},wg=function(a,b,c){D(!a.xd,"Blocking Deferreds can not be re-used");a.lc.push([b,c,void 0]);a.Ya&&sg(a)}; og.prototype.then=function(a,b,c){var d,e,f=new Lf(function(g,h){d=g;e=h});wg(this,d,function(g){g instanceof qg?f.cancel():e(g)});return f.then(a,b,c)};og.prototype.$goog_Thenable=!0; var xg=function(a){return cb(a.lc,function(b){return x(b[1])})},sg=function(a){if(a.rc&&a.Ya&&xg(a)){var b=a.rc,c=yg[b];c&&(q.clearTimeout(c.K),delete yg[b]);a.rc=0}a.u&&(a.u.Dc--,delete a.u);b=a.T;for(var d=c=!1;a.lc.length&&!a.Cc;){var e=a.lc.shift(),f=e[0],g=e[1];e=e[2];if(f=a.ub?g:f)try{var h=f.call(e||a.Hd,b);r(h)&&(a.ub=a.ub&&(h==b||h instanceof Error),a.T=b=h);if(If(b)||"function"===typeof q.Promise&&b instanceof q.Promise)d=!0,a.Cc=!0}catch(k){b=k,a.ub=!0,xg(a)||(c=!0)}}a.T=b;d&&(h=y(a.Dd, a,!0),d=y(a.Dd,a,!1),b instanceof og?(wg(b,h,d),b.xd=!0):b.then(h,d));c&&(b=new zg(b),yg[b.K]=b,a.rc=b.K)},tg=function(){Pa.call(this)};A(tg,Pa);tg.prototype.message="Deferred has already fired";tg.prototype.name="AlreadyCalledError";var qg=function(){Pa.call(this)};A(qg,Pa);qg.prototype.message="Deferred was canceled";qg.prototype.name="CanceledError";var zg=function(a){this.K=q.setTimeout(y(this.tf,this),0);this.Sb=a}; zg.prototype.tf=function(){D(yg[this.K],"Cannot throw an error that is not scheduled.");delete yg[this.K];throw this.Sb;};var yg={};var Dg=function(a){var b={},c=b.document||document,d=dc(a).toString(),e=document.createElement("SCRIPT"),f={qe:e,Hb:void 0},g=new og(f),h=null,k=null!=b.timeout?b.timeout:5E3;0=Mg(this).value)for(x(b)&&(b=b()),a=new Eg(a,String(b),this.ce),c&&(a.Kd=c),c=this;c;){var d=c,e=a;if(d.Ud)for(var f=0;b=d.Ud[f];f++)b(e);c=c.getParent()}};Gg.prototype.info=function(a,b){this.log(Jg,a,b)}; var Ng={},Og=null,Pg=function(a){Og||(Og=new Gg(""),Ng[""]=Og,Og.se(Kg));var b;if(!(b=Ng[a])){b=new Gg(a);var c=a.lastIndexOf("."),d=a.substr(c+1);c=Pg(a.substr(0,c));c.Rd()[d]=b;b.u=c;Ng[a]=b}return b};var Qg=function(a,b){a&&a.log(Lg,b,void 0)};var Rg=function(a){switch(a){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:return!0;default:return!1}};var Sg=function(){};Sg.prototype.Bd=null;Sg.prototype.tb=function(){var a;(a=this.Bd)||(a={},Tg(this)&&(a[0]=!0,a[1]=!0),a=this.Bd=a);return a};var Ug=function(a,b){this.xf=a;this.hf=b};A(Ug,Sg);Ug.prototype.Gc=function(){return this.xf()};Ug.prototype.tb=function(){return this.hf()};var Vg=function(){return Vg.Ld.Gc()};Vg.ze=!1;Vg.tb=function(){return Vg.Ld.tb()};Vg.Df=function(a,b){Vg.re(new Ug(D(a),D(b)))};Vg.re=function(a){Vg.Ld=a};var Wg=function(){};A(Wg,Sg);Wg.prototype.Gc=function(){var a=Tg(this);return a?new ActiveXObject(a):new XMLHttpRequest}; var Tg=function(a){if(Vg.ze)return"";if(!a.Vd&&"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.cb=b}else a.cb=null}; mh.prototype.getPath=function(){return this.ra};mh.prototype.setPath=function(a,b){oh(this);this.ra=b?rh(a,!0):a;return this};var qh=function(a,b,c){oh(a);b instanceof sh?(a.X=b,a.X.kd(a.V)):(c||(b=th(b,yh)),a.X=new sh(b,a.V))};mh.prototype.getQuery=function(){return this.X.toString()};mh.prototype.removeParameter=function(a){oh(this);this.X.remove(a);return this};var oh=function(a){if(a.Xe)throw Error("Tried to modify a read-only Uri");};mh.prototype.kd=function(a){this.V=a;this.X&&this.X.kd(a)}; var zh=function(a){return a instanceof mh?a.clone():new mh(a,void 0)},rh=function(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""},th=function(a,b,c){return t(a)?(a=encodeURI(a).replace(b,Ah),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null},Ah=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)},uh=/[#\/\?@]/g,wh=/[#\?:]/g,vh=/[#\?]/g,yh=/[#\?@]/g,xh=/#/g,sh=function(a,b){this.m=this.s=null;this.R=a||null;this.V=!!b},Bh=function(a){a.s|| (a.s=new Ad,a.m=0,a.R&&Yg(a.R,function(b,c){a.add(decodeURIComponent(b.replace(/\+/g," ")),c)}))};l=sh.prototype;l.o=function(){Bh(this);return this.m};l.add=function(a,b){Bh(this);this.R=null;a=Ch(this,a);var c=this.s.get(a);c||this.s.set(a,c=[]);c.push(b);this.m=Ua(this.m)+1;return this};l.remove=function(a){Bh(this);a=Ch(this,a);return this.s.wa(a)?(this.R=null,this.m=Ua(this.m)-this.s.get(a).length,this.s.remove(a)):!1};l.clear=function(){this.s=this.R=null;this.m=0}; l.isEmpty=function(){Bh(this);return 0==this.m};l.wa=function(a){Bh(this);a=Ch(this,a);return this.s.wa(a)};l.mb=function(a){var b=this.A();return hb(b,a)};l.forEach=function(a,b){Bh(this);this.s.forEach(function(c,d){$a(c,function(e){a.call(b,e,d,this)},this)},this)};l.ba=function(){Bh(this);for(var a=this.s.A(),b=this.s.ba(),c=[],d=0;d');H=a};z("ee.data.setCloudApiEnabled",Uh);Ph.push("setCloudApiEnabled");var Vh=function(){return H};z("ee.data.getCloudApiEnabled",Vh);Ph.push("getCloudApiEnabled"); var Wh=function(a,b,c,d,e,f,g){var h=["https://www.googleapis.com/auth/earthengine"];H&&(h=["https://www.googleapis.com/auth/earthengine","https://www.googleapis.com/auth/cloud-platform"]);e&&(nb(h,e),pb(h));Eh=a;Fh=h;var k={token_type:b,access_token:c,state:h.join(" "),expires_in:d};Mh(void 0,void 0,k);!1===g?f&&f():Hh(function(){q.gapi.auth.setToken(k);f&&f()})};z("ee.data.setAuthToken",Wh); var Ih=function(a,b,c){Nh&&Eh&&Nh({client_id:String(Eh),immediate:!0,scope:Fh.join(" ")},function(d){if("immediate_failed"==d.error&&c)c();else if(H)try{Hh(function(){try{q.gapi.auth.setToken(d),Mh(a,b,d)}catch(e){b(e.toString())}})}catch(e){b(e.toString())}else Mh(a,b,d)})},Xh=function(a){Nh=a};z("ee.data.setAuthTokenRefresher",Xh);var $h=function(){Yh&&0<=Na()-Yh&&Zh();return Gh};z("ee.data.getAuthToken",$h);var Zh=function(){Yh=Gh=null};z("ee.data.clearAuthToken",Zh);var ai=function(){return Eh}; z("ee.data.getAuthClientId",ai);var bi=function(){return Fh};z("ee.data.getAuthScopes",bi); var ii=function(a,b,c){null!=a?ci=a:di||(ci="https://earthengine.googleapis.com/api");null!=b?ei=b:di||(ei="https://earthengine.googleapis.com");r(c)&&(fi=c);!H||gi&&null==a||(gi=new Promise(function(d,e){gapi.load("client",{callback:function(){var f=Object.assign({},Rd,{rootUrl:ci.replace(/\/api$/,"")});gapi.client.init({apiKey:Qh,discoveryDocs:[f]}).then(function(){hi=!0;gapi.config.update("client/headers/request",["X-Earth-Engine-Computation-Profile","X-Goog-User-Project"]);gapi.config.update("client/headers/response", ["X-Earth-Engine-Computation-Profile"]);d()})},onerror:e})}),Dh=Dh||"earthengine-legacy");di=!0},I=function(a,b,c,d){ii();if(null==$h()&&c&&Nh&&Eh)return Ih(function(){I(a,b,c,d)}),null;var e=function(){var m=a(),p=ji(m);ki&&(p["X-Earth-Engine-Computation-Profile"]="1");Dh&&"earthengine-legacy"!==Dh&&(p["X-Goog-User-Project"]=Dh);return m},f=ki;if(c){var g=function(m){return li(m.status,function(p){if(null!=m&&null!=m.headers)return m.headers[p.toLowerCase()]},m.body,f,c,b||Vb)};gi.then(function(){mi(e, d)(g,g)});return null}if(!hi)throw Error("Cloud API not ready");for(var h=0,k;;){k=ni(function(){e().then(function(){return null},function(){return null})});if(429!=k.status||5e&&(e+=h);return[c,g,e,f].join("/")+d}}},Bi=function(a,b){a=Qb(a);return J("/value",L(a),b)};z("ee.data.getValue",Bi); var Ci=function(a,b){if(H){var c=Th(),d=si(We(a));return I(function(){return gapi.client.earthengine.projects.value.compute({project:c},{expression:d})},function(e){return e.result},b)}a={json:Re(a)};return J("/value",L(a),b)},Di=function(a,b){if(H){if(t(a.image))throw Error("Image as JSON string not supported.");if(r(a.version))throw Error("Image version specification not supported.");if(r(a.region))throw Error('"region" not supported in call to ee.data.getThumbId. Use ee.Image.getThumbURL.');var c= {name:null,expression:si(We(a.image)),fileFormat:Yd(a.format),bandIds:ae(a.bands),visualizationOptions:de(a),grid:null},d=Th(),e=["name"];return I(function(){return gapi.client.earthengine.projects.thumbnails.create({parent:d,Tb:e},c)},function(g){return{thumbid:g.name,token:""}},b)}a=Qb(a);v(a.dimensions)&&(a.dimensions=a.dimensions.join("x"));var f=a.image||a.imageCollection;t(f)||(f=f.D());a.image=f;delete a.imageCollection;a=L(a).add("getid","1");return J("/thumb",a,b)}; z("ee.data.getThumbId",Di); var Ei=function(a,b){if(!H)throw Error("getVideoThumbId is only supported in Cloud API mode.");var c={framesPerSecond:a.framesPerSecond||null,maxFrames:a.maxFrames||null,maxPixelsPerFrame:a.maxPixelsPerFrame||null},d={name:null,expression:si(We(a.imageCollection)),fileFormat:Yd(a.format),videoOptions:c,grid:null},e=Th(),f=["name"];return I(function(){return gapi.client.earthengine.projects.videoThumbnails.create({parent:e,Tb:f},d)},function(g){return{thumbid:g.name,token:""}},b)}; z("ee.data.getVideoThumbId",Ei);Ph.push("getVideoThumbId");var Fi=function(a,b){if(!H)throw Error("getFilmstripThumbId is only supported in Cloud API mode.");var c={name:null,expression:si(We(a.imageCollection)),fileFormat:Yd(a.format),orientation:$d(a.orientation),grid:null},d=Th(),e=["name"];return I(function(){return gapi.client.earthengine.projects.filmstripThumbnails.create({parent:d,Tb:e},c)},function(f){return{thumbid:f.name,token:""}},b)};z("ee.data.getFilmstripThumbId",Fi);Ph.push("getFilmstripThumbId"); var Gi=function(a){return H?ei+"/v1alpha/"+a.thumbid+":getPixels"+(Qh?"?key="+Qh:""):ei+"/api/thumb?thumbid="+a.thumbid+"&token="+a.token};z("ee.data.makeThumbUrl",Gi);var Hi=function(a,b){a=Qb(a);return J("/download",L(a),b)};z("ee.data.getDownloadId",Hi);var Ii=function(a){return ei+"/api/download?docid="+a.docid+"&token="+a.token};z("ee.data.makeDownloadUrl",Ii);var Ji=function(a,b){a=Qb(a);return J("/table",L(a),b)};z("ee.data.getTableDownloadId",Ji); var Ki=function(a){return ei+"/api/table?docid="+a.docid+"&token="+a.token};z("ee.data.makeTableDownloadUrl",Ki);var Li=function(a,b,c){var d=ki;try{return ki=a,b.call(c)}finally{ki=d}};z("ee.data.withProfiling",Li); var Mi=function(a,b){if(H){var c=function(e){return Math.floor(Math.random()*Math.pow(2,4*e)).toString(16).padStart(e,"0")};a=qb(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={};u(a)&&(d.count=a);return J("/newtaskid",L(d),b)};z("ee.data.newTaskId",Mi); var Pi=function(a,b){if(H){var c=function(e){return gapi.client.earthengine.projects.operations.get({name:ue(e)})};return I(function(){return Ni(a,c)},function(e){return 1===a.length?we(e):a.map(function(f){return we(e[f])})},b)}var d="/taskstatus?q="+Oi(a).join();return J(d,null,b,"GET")};z("ee.data.getTaskStatus",Pi);var Oi=function(a){if(t(a))return[a];if(v(a))return a;throw Error("Invalid value: expected a string or an array of strings.");},Ri=function(a){return Qi(void 0,a)}; z("ee.data.getTaskList",Ri); var Qi=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){k=c(k);J("/tasklist",L(k),function(m,p){p?h(e,p):(nb(e.tasks,m.tasks),!m.next_page_token||a&&e.tasks.length>=a?h(e):d(h,m.next_page_token))},"GET")}if(H)return b?(Si(a,function(h,k){return b(h?{tasks:h.map(we)}:null,k)}),null):{tasks:Si(a).map(we)};var e={tasks:[]};if(b)return d(b),null;for(var f="";;){f=c(f);var g=J("/tasklist",L(f),void 0,"GET"); nb(e.tasks,g.tasks);f=g.next_page_token;if(!g.next_page_token||a&&e.tasks.length>=a)break}return e};z("ee.data.getTaskListWithLimit",Qi); var Si=function(a,b){var c=[],d={name:Th(),pageSize:500,filter:null,pageToken:null},e=function(){return gapi.client.earthengine.projects.operations.list(d)},f=b?function(){return 0}:void 0,g=function(h){nb(c,h.operations||[]);!h.nextPageToken||a&&c.length>=a?b&&b(a?c.slice(0,a):c):(d.pageToken=h.nextPageToken,I(e,g,f));return null};I(e,g,f);return b?null:a?c.slice(0,a):c};Ph.push("listOperations"); var Ti=function(a,b){var c=function(d){return gapi.client.earthengine.projects.operations.cancel({name:d})};I(function(){return Ni(a,c)},null,b)};z("ee.data.cancelOperation",Ti);Ph.push("cancelOperation");var Ui=function(a,b){var c=function(d){return gapi.client.earthengine.projects.operations.get({name:ue(d)})};return I(function(){return Ni(a,c)},null,b)};z("ee.data.getOperation",Ui);Ph.push("getOperation"); var Ni=function(a,b){a=Oi(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},Wi=function(a,b){return Vi(a,"CANCEL",b)};z("ee.data.cancelTask",Wi);var Vi=function(a,b,c){if(!Lb(Xi,b))throw Error("Invalid action: "+b);a=Oi(a);return H?(a=a.map(ue),Ti(a,c),null):J("/updatetask",L({id:a,action:b}),c,"POST")};z("ee.data.updateTask",Vi); var $i=function(a,b,c){if(H){b.id=a;var d=b.type,e={project:Th()};a=null!=b.sourceUrl?{__source_url__:b.sourceUrl}:{};switch(d){case "EXPORT_IMAGE":b=Yi(b);var f=jf(b);f.expression=si(f.expression,a);a=function(){return gapi.client.earthengine.projects.image["export"](e,f)};break;case "EXPORT_FEATURES":var g=nf(b);g.expression=si(g.expression,a);a=function(){return gapi.client.earthengine.projects.table["export"](e,g)};break;case "EXPORT_VIDEO":b=Zi(b);var h=pf(b);h.expression=si(h.expression,a); a=function(){return gapi.client.earthengine.projects.video["export"](e,h)};break;case "EXPORT_TILES":var k=rf(b);k.expression=si(k.expression,a);a=function(){return gapi.client.earthengine.projects.map["export"](e,k)};break;case "EXPORT_VIDEO_MAP":var m=sf(b);m.expression=si(m.expression,a);a=function(){return gapi.client.earthengine.projects.videoMap["export"](e,m)};break;default:throw Error("Unable to start processing for task of type "+d);}return I(a,function(p){return xe(p)},c)}b=Qb(b);null!= b.element&&(b.json=b.element.D(),delete b.element);v(b.crs_transform)&&(b.crs_transform=b.crs_transform.toString());b.id=a;return J("/processingrequest",L(b),c)};z("ee.data.startProcessing",$i);var bj=function(a,b,c){if(H){b=Be(b);var d=function(e){return e?xe(e):null};return d(aj(a,b,c&&function(e,f){return c(d(e),f)}))}a={id:a,request:He(b)};return J("/ingestionrequest",L(a),c)};z("ee.data.startIngestion",bj); var aj=function(a,b,c){var d={project:Th()},e={imageManifest:b,requestId:a,overwrite:null,description:null};return I(function(){return gapi.client.earthengine.projects.image["import"](d,e)},null,c,a?void 0:0)},cj=function(a,b,c){var d={project:Th()},e={tableManifest:b,requestId:a,overwrite:null,description:null};return I(function(){return gapi.client.earthengine.projects.table["import"](d,e)},null,c,a?void 0:0)},dj=function(a,b,c){if(H){b=Ce(b);var d=function(e){return e?xe(e):null};return d(cj(a, b,c&&function(e,f){return c(d(e),f)}))}a={id:a,tableRequest:He(b)};return J("/ingestionrequest",L(a),c)};z("ee.data.startTableIngestion",dj);var ej=function(a,b){if(H){var c={name:F(a),prettyPrint:!1};return I(function(){return gapi.client.earthengine.projects.assets.get(c)},je,b)}return J("/info",(new sh).add("id",a),b)};z("ee.data.getAsset",ej);Ph.push("getAsset");z("ee.data.getInfo",ej); var fj=function(a,b){if(H){if(Object.keys(a).every(function(e){return"id"===e||"num"===e})){var c=ie(a);return I(function(){return gapi.client.earthengine.projects.assets.listAssets(c)},ke,b)}var d=re(a);return I(function(){return gapi.client.earthengine.projects.assets.listImages({Tb:"assets(type,path)"},d)},me,b)}a=L(a);return J("/list",a,b)};z("ee.data.getList",fj);var gj=function(a,b){return I(function(){return gapi.client.earthengine.projects.listAssets(a)},null,b)};z("ee.data.listAssets",gj); Ph.push("listAssets");var hj=function(a,b){return I(function(){return gapi.client.earthengine.projects.assets.listImages(a)},null,b)};z("ee.data.listImages",hj);Ph.push("listImages");var ij=function(a){var b={parent:Th(),pageSize:null,pageToken:null};return I(function(){return gapi.client.earthengine.projects.listAssets(b)},null,a)};z("ee.data.listBuckets",ij);Ph.push("listBuckets"); var jj=function(a){if(H){var b={parent:Th(),pageSize:null,pageToken:null};return I(function(){return gapi.client.earthengine.projects.listAssets(b)},ke,a)}return J("/buckets",null,a,"GET")};z("ee.data.getAssetRoots",jj);var kj=function(a,b){if(H){var c=ge(a);var d="projects/earthengine-legacy"===c?{parent:ge(a),assetId:a}:{parent:c};var e={type:"Folder"};I(function(){return gapi.client.earthengine.projects.assets.create(d,e)},null,b)}else a=L({id:a}),J("/createbucket",a,b)}; z("ee.data.createAssetHome",kj); var lj=function(a,b,c,d,e){if(H){if(c)throw Error("Asset overwrite not supported.");if(t(a))throw Error("Asset cannot be specified as string.");b=a.name||b&&F(b);if(!b)throw Error("Either asset name or opt_path must be specified.");c=b.indexOf("/assets/");if(-1===c)throw Error("Asset name must contain /assets/.");var f=Object.assign({},a);delete f.name;d&&!f.properties&&(f.properties=d);f.type=he(f.type);var g={parent:b.slice(0,c),assetId:b.slice(c+8)};return I(function(){return gapi.client.earthengine.projects.assets.create(g,f)}, null,e)}t(a)||(a=He(a));a={value:a};void 0!==b&&(a.id=b);a.force=c||!1;void 0!=d&&(a.properties=He(d));return J("/create",L(a),e)};z("ee.data.createAsset",lj);var mj=function(a,b,c){if(H){var d={parent:ge(a),type:"Folder",name:F(a)};return I(function(){return gapi.client.earthengine.projects.assets.create(d)},null,c)}return J("/createfolder",L({id:a,force:b||!1}),c)};z("ee.data.createFolder",mj); var nj=function(a,b,c){if(H){var d={sourceName:F(a),destinationName:F(b)};I(function(){return gapi.client.earthengine.projects.assets.move(d)},null,c)}else J("/rename",L({sourceId:a,destinationId:b}),c)};z("ee.data.renameAsset",nj);var oj=function(a,b,c,d){if(H){var e={sourceName:F(a),destinationName:F(b),overwrite:null!=c?c:null,bandIds:null};I(function(){return gapi.client.earthengine.projects.assets.copy(e)},null,d)}else a={sourceId:a,destinationId:b},c&&(a.allowOverwrite=c),J("/copy",L(a),d)}; z("ee.data.copyAsset",oj);var pj=function(a,b){if(H){var c={name:F(a)};I(function(){return gapi.client.earthengine.projects.assets["delete"](c)},null,b)}else J("/delete",L({id:a}),b)};z("ee.data.deleteAsset",pj);var qj=function(a,b){if(H){var c={resource:F(a),prettyPrint:!1};return I(function(){return gapi.client.earthengine.projects.assets.getIamPolicy(c)},se,b)}return J("/getacl",L({id:a}),b,"GET")};z("ee.data.getAssetAcl",qj); var rj=function(a,b,c,d){var e={name:F(a),asset:b,updateMask:{paths:c||[]}};I(function(){return gapi.client.earthengine.projects.assets.patch(e)},null,d)};z("ee.data.updateAsset",rj);var sj=function(a,b,c){if(H){var d={resource:F(a),policy:te(b),prettyPrint:!1};I(function(){return gapi.client.earthengine.projects.assets.setIamPolicy(d)},null,c)}else b={readers:b.readers,writers:b.writers,all_users_can_read:b.all_users_can_read},a={id:a,value:He(b)},J("/setacl",L(a),c)};z("ee.data.setAssetAcl",sj); var tj=function(a,b,c){if(H){b=pe(b);var d=Object.keys(b).filter(function(e){return"properties"!==e}).map(function(e){return e.replace(/([A-Z])/g,function(f,g){return"_"+g.toLowerCase()})}).concat(Object.keys(b.properties||{}).map(function(e){return"properties."+e}));rj(a,b,d,c)}else a={id:a,properties:He(b)},J("/setproperties",L(a),c)};z("ee.data.setAssetProperties",tj); var uj=function(a,b){if(H){var c={name:F(a),prettyPrint:!1};return I(function(){return gapi.client.earthengine.projects.assets.get(c)},function(d){if(!d.quota)throw Error(a+" is not a root folder.");var e=function(f){return Number(d.quota[f]||0)};return{asset_count:{usage:e("assetCount"),limit:e("maxAssetCount")},asset_size:{usage:e("sizeBytes"),limit:e("maxSizeBytes")}}},b)}return J("/quota",L({id:a}),b,"GET")};z("ee.data.getAssetRootQuota",uj); var Xi={yf:"CANCEL",Bf:"UPDATE"},J=function(a,b,c,d){ii();var e=ki,f={"Content-Type":"application/x-www-form-urlencoded"},g=$h();if(null!=g)f.Authorization=g;else if(c&&Nh&&Eh)return Ih(function(){Li(e,function(){J(a,b,c,d)})}),null;g=d||"POST";b=b?b.clone():new sh;e&&b.add("profiling","1");null!=Qh&&b.add("key",Qh);b=qi(b,a);null!=fi&&(f["X-XSRF-Token"]=fi);var h=b?b.toString():"";"GET"!=g||/^[\s\xa0]*$/.test(h)||(a+=-1!=a.indexOf("?")?"&":"?",a+=h,h=null);var k=ci+a;if(c)return vj.push(wj(k,c,g, h,f)),xj.Xa(),null;for(var m=function(K,oa){this.setRequestHeader&&this.setRequestHeader(oa,K)},p,Q=0;;){p=Vg();p.open(g,k,!1);Fb(f,m,p);p.send(h);if(429!=p.status||5f)return f++,setTimeout(function(){vj.push(g);xj.Xa()},Math.min(12E4,1E3*Math.pow(2, f))),null;var m=li,p=k.getStatus(),Q=y(k.getResponseHeader,k);try{var K=k.a?k.a.responseText:""}catch(oa){Qg(k.N,"Can not get responseText: "+oa.message),K=""}return m(p,Q,K,h,b)};return g},zj=function(){return new Promise(function(a){yj.push(a)})},mi=function(a,b){var c=u(b)?b:10,d=0,e=function(f,g){return function(h){429===h.status&&d++a||300<=a)m="Server returned HTTP code: "+a;if(e)return e(k,m),null;if(!m)return k;throw Error(m);},Hh=function(a){var b=function(){q.gapi.config.update("client/cors",!0);Nh||(Nh=q.gapi.auth.authorize);a()};if(w(q.gapi)&&w(q.gapi.auth)&&x(q.gapi.auth.authorize))b();else{for(var c=Na().toString(36);c in q;)c+="_";q[c]=function(){delete q[c];b()};Dg(ic({onload:c}))}},Mh=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; var d=setTimeout(Ih,.9*c);void 0!==d.unref&&d.unref();Yh=Na()+c}Gh=b;a&&a()}else b&&b(c.error||"Unknown error.")},L=function(a){var b=new sh;a=n(Object.entries(a));for(var c=a.next();!c.done;c=a.next()){var d=n(c.value);c=d.next().value;d=d.next().value;b.set(c,d)}return b},vj=[],yj=[],xj=new $f(function(){var a=vj.shift();if(a){var b=a.url,c=a.callback,d=a.method,e=a.content;a=a.headers;var f=oi,g=new G;ch.push(g);c&&g.ha("complete",c);g.Ab("ready",g.Me);f&&(g.ib=Math.max(0,f));g.send(b,d,e,a)}0== vj.length||xj.Xa()},350),Aj=new $f(function(){var a=yj.shift();x(a)&&a();0==yj.length||Aj.Xa()},350),ci=null,ei=null,fi=null,qi=Vb,si=Vb,Gh=null,Yh=null,Eh=null,Fh=[],Nh=null,ec=new Yb(Wb,"https://apis.google.com/js/client.js?onload=%{onload}"),Qh=null,H=!1,gi=null,hi=!1,di=!1,oi=0,ki=null;var M=function(a,b,c){if(!(this instanceof M))return Bj(M,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.h=a;this.args=b;this.w=c||null};A(M,Sd);z("ee.ComputedObject",M);M.prototype.evaluate=function(a){if(!a||!x(a))throw Error("evaluate() requires a callback function.");Ci(this,a)};M.prototype.evaluate=M.prototype.evaluate; M.prototype.C=function(a){return Ci(this,a)};M.prototype.getInfo=M.prototype.C;M.prototype.encode=function(a){if(null===this.h&&null===this.args)return{type:"ArgumentRef",value:this.w};var b={},c;for(c in this.args)r(this.args[c])&&(b[c]=a(this.args[c]));b={type:"Invocation",arguments:b};a=a(this.h);b[t(a)?"functionName":"function"]=a;return b}; M.prototype.P=function(a){if(null===this.h&&null===this.args){if(null===this.w)throw Error("Internal error: function argument not initialized.");return{argumentReference:this.w}}var b={},c;for(c in this.args)r(this.args[c])&&(b[c]=Ud(a(this.args[c])));return t(this.h)?Vd(String(this.h),b):this.h.Jc(a,b)};M.prototype.D=function(){return Re(this)};M.prototype.serialize=M.prototype.D;M.prototype.toString=function(){return"ee."+this.name()+"("+Te(this)+")"};z("ee.ComputedObject.prototype.toString",M.prototype.toString); M.prototype.name=function(){return"ComputedObject"};M.prototype.td=function(a,b){var c=mb(arguments);c[0]=this;a.apply(q,c);return this};M.prototype.aside=M.prototype.td;var Cj=function(a,b){if(b instanceof a.constructor)return b;var c=function(){};c.prototype=a.constructor.prototype;a=new c;a.h=b.h;a.args=b.args;a.w=b.w;return a},Bj=function(a,b){function c(){return a.apply(this,b)}c.prototype=a.prototype;return new c};var Dj={},Ej=function(a){return a.prototype instanceof M?a.prototype.name.call(null):a==Number?"Number":a==String?"String":a==Array?"Array":a==Date?"Date":"Object"},Fj=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}},Gj=function(a){return u(a)|| a instanceof M&&"Number"==a.name()},Hj=function(a){return t(a)||a instanceof M&&"String"==a.name()},Ij=function(a){return w(a)&&!x(a)?(a=Object.getPrototypeOf(a),null!==a&&null===Object.getPrototypeOf(a)):!1},Jj=function(a,b,c){c=void 0===c?!1:c;return 1===a.length&&Ij(a[0])&&(a=b.args,c&&(a=a.slice(1)),a.length)?!(1===a.length||a[1].optional)||"Dictionary"!==a[0].type:!1};var N=function(){if(!(this instanceof N))return new N};A(N,Sd);z("ee.Function",N);var Kj=Vb;N.prototype.call=function(a){return this.apply(Lj(this,Array.prototype.slice.call(arguments,0)))};N.prototype.call=N.prototype.call;N.prototype.apply=function(a){a=new M(this,Mj(this,a));return Kj(a,this.G().returns)};N.prototype.apply=N.prototype.apply; var Nj=function(a,b,c){var d=r(b),e=a.G();if(Jj(c,e,d)){if(c=Qb(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=Lj(a,d?[b].concat(c):c);return a.apply(c)},Mj=function(a,b){for(var c=a.G().args,d={},e={},f=0;f/,"");for(var h=0;h/,"");return new O(g,f)}),a&&a())};a?xi(c):c(xi())}},Wj=function(a,b,c,d){Sj();var e=d||"";Fb(Qj,function(f,g){var h=g.split(".");if(2==h.length&&h[0]==b){h=e+h[1];var k=f.G();Rj[g]=!0;var m=!1;k.args.length&&(g=k.args[0].type,m="Object"!=g&&Fj(g,c)); g=m?a.prototype:a;h in g&&!g[h].signature||(g[h]=function(p){return Nj(f,m?this:void 0,Array.prototype.slice.call(arguments,0))},g[h].toString=y(f.toString,f,h,m),g[h].signature=k)}})},Xj=function(a){var b=function(c){for(var d in c)x(c[d])&&c[d].signature&&delete c[d]};b(a);b(a.prototype||{})};var R=function(a,b){var c=Yj(a),d=bb(c,function(k){return k.replace(/^opt_/,"")});a=(a=q.EXPORTED_FN_INFO?q.EXPORTED_FN_INFO[a.toString()].name.split(".").pop()+"()":null)?" to function "+a:"";var e={},f=b[0],g=w(f)&&!x(f)&&!v(f)&&!(f instanceof M);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=Ij(c))a:{b=Kb(c);var d=["properties"];if(Fa(b)&&Fa(d)&&b.length==d.length){for(var e=b.length,f=0;fc||4/,"");c[e]=!0}var f=q.ee,g;for(g in b)g in c&&!(g in f)&&(f[g]=cm(g),Xl.push(g),a[g]?(f[g].signature=a[g],f[g].signature.isConstructor=!0,Rj[g]=!0):f[g].signature={});Dj=f;dm()}catch(h){Vl(h);return}Rl="ready";for(Sl=[];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.Aa++].join("-"),this.pd.Td()].join("-");b=this.Gd(d,b,c,a);b.tileSize=this.tileSize;qm(b.O,this.opacity);this.Ba.set(a,b);tm(this,b);this.pd.ae(b,(new Date).getTime()/1E3);return b.O};l.releaseTile=function(a){var b=this.Ba.get(a.id);this.Ba.remove(a.id);b&&(b.abort(),Oa(b))}; var tm=function(a,b){a.pa.ha(b,"status-changed",function(){switch(b.getStatus()){case "loaded":var c=b.af,d=(new Date).getTime();im(this.mc,b.zoom).tileLatencies.push(d-c);this.dispatchEvent(new um(this.Qc()));break;case "throttled":im(this.mc,b.zoom).throttleCount++;this.dispatchEvent(new vm(b.ca));break;case "failed":im(this.mc,b.zoom).errorCount++,this.dispatchEvent(new wm(b.ca,b.Pe))}})}; rm.prototype.i=function(){rm.j.i.call(this);this.Ba.forEach(Oa);this.Ba.clear();this.Ba=null;Oa(this.pa);this.pd=this.pa=null};var sm=function(a,b){return eb(a.Ba.A(),function(c){return c.getStatus()==b})},um=function(){C.call(this,"tile-load")};A(um,C);var vm=function(){C.call(this,"tile-throttle")};A(vm,C);var wm=function(a,b){C.call(this,"tile-fail");this.errorMessage=b};A(wm,C); var xm=function(a,b,c,d){E.call(this);this.Ua=a;this.zoom=b;this.O=c.createElement("div");this.O.id=d;this.cf=5;this.ic=function(){};this.md="new";this.ne=0;this.Yc=!1};A(xm,E); var zm=function(a){if(!a.Yc&&"loading"==a.getStatus())throw Error("startLoad() can only be invoked once. Use retryLoad() after the first attempt.");ym(a,"loading");a.af=(new Date).getTime();a.la=new G;a.la.gb="blob";a.la.ha("complete",function(){var b=kh(this.la),c=this.la.getStatus();429==c&&ym(this,"throttled");if(Rg(c)){var d={};Fb(lh(this.la),function(f,g){d[g.toLowerCase()]=f});this.rf=d;this.ue=b;this.qb()}else if(b){var e=new pm;e.ha("loadend",function(){this.Fb(e.I.result)},void 0,this);e.readAsText(b)}else this.Fb("Failed to load tile.")}, !1,a);a.la.Ab("ready",Ma(Oa,a.la));a.ca&&a.ca.endsWith("&profiling=1")&&H&&(a.ca=a.ca.replace("&profiling=1",""),a.la.headers.set("X-Earth-Engine-Computation-Profile","1"));a.la.send(a.ca,"GET")};l=xm.prototype;l.qb=function(){this.ic(this);ym(this,"loaded")};l.lb=function(){Oa(this.la)}; l.Fb=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.ne>=this.cf?(this.Pe=b(a),ym(this,"failed")):(this.lb(),setTimeout(y(function(){this.fa||(this.Yc=!0,zm(this),this.Yc=!1)},this),1E3*Math.pow(2,this.ne++)))};l.abort=function(){this.lb();ym(this,"aborted")};l.getStatus=function(){return this.md};var ym=function(a,b){a.md=b;a.dispatchEvent("status-changed")},Am={aborted:!0,failed:!0,loaded:!0}; xm.prototype.i=function(){xm.j.i.call(this);this.lb();this.O.remove();this.ic=null};var Bm=function(){B.call(this)};A(Bm,B);var Cm=function(a,b){rm.call(this,a,b);this.Ad=new Ad;this.Jd=new Ad};ja(Cm,rm);Cm.prototype.Gd=function(a,b,c,d){var e=new Dm(a,b,c,d);this.pa.ha(e,"status-changed",function(){"loaded"==e.getStatus()&&(this.Ad.set(a,new Float32Array(e.Je)),this.Jd.set(a,e.O))});return e};Cm.prototype.i=function(){rm.prototype.i.call(this);this.Jd=this.Ad=null};z("ee.layers.BinaryOverlay",Cm);var Dm=function(a,b,c,d){xm.call(this,a,b,c,d)};ja(Dm,xm); Dm.prototype.qb=function(){var a=new pm;a.ha("loadend",function(){this.Je=a.I.result;xm.prototype.qb.call(this)},void 0,this);a.readAsArrayBuffer(this.ue)};var Em=function(a){E.call(this);this.wb={};this.vb={};this.Ha=new jm(this);this.u=a};A(Em,E);var Fm=[Fc&&!Pc("11")?"readystatechange":"load","abort","error"],Gm=function(a,b,c){(c=t(c)?c:c.src)&&(a.wb[b]={src:c,Fd:r(void 0)?void 0:null})},Hm=function(a,b){delete a.wb[b];var c=a.vb[b];c&&(delete a.vb[b],a.Ha.sc(c,Fm,a.fe),Ob(a.vb)&&Ob(a.wb)&&a.dispatchEvent("complete"))}; Em.prototype.start=function(){var a=this.wb;$a(Kb(a),function(b){var c=a[b];if(c&&(delete a[b],!this.fa)){if(this.u){var d=this.u;d=(d?new mg(lg(d)):Qa||(Qa=new mg)).Ne("IMG")}else d=new Image;c.Fd&&(d.crossOrigin=c.Fd);this.Ha.ha(d,Fm,this.fe);this.vb[b]=d;d.id=b;d.src=c.src}},this)}; Em.prototype.fe=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.fa||Hm(this,b.id)}};Em.prototype.i=function(){delete this.wb;delete this.vb;Oa(this.Ha);Em.j.i.call(this)};var Im=function(a,b){rm.call(this,a,b)};ja(Im,rm);Im.prototype.Gd=function(a,b,c,d){return new Jm(a,b,c,d)};z("ee.layers.ImageOverlay",Im);var Jm=function(a,b,c,d){xm.call(this,a,b,c,d);this.ic=Km;this.Wd=this.L=this.Xb=null;this.Cb=""};ja(Jm,xm); Jm.prototype.qb=function(){try{var a=pc(this.ue);this.Cb=mc(a).toString();var b="about:invalid#zClosurez"!==this.Cb?this.Cb:this.ca}catch(c){b=this.ca}this.L=new Em;Gm(this.L,this.O.id+"-image",b);this.Wd=hd(this.L,Lm,function(c){"load"==c.type?(this.Xb=c.target,xm.prototype.qb.call(this)):this.Fb()},void 0,this);this.L.start()};Jm.prototype.lb=function(){xm.prototype.lb.call(this);this.L&&(qd(this.Wd),Oa(this.L))};Jm.prototype.i=function(){xm.prototype.i.call(this);this.Cb&&URL.revokeObjectURL(this.Cb)}; var Km=function(a){a.O.appendChild(a.Xb)},Lm=["load","abort","error"];var Mm=function(a){for(var b=arguments[0],c=1;cthis.ac)throw Error("[goog.structs.Pool] Min can not be greater than max");this.ga=new Pm;this.ya=new Jd;this.delay=0;this.Zc=null;this.Lb()};A(Qm,B);Qm.prototype.sb=function(){var a=Na();if(!(null!=this.Zc&&a-this.Zcthis.ac&&0=this.o()){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=Tm.prototype; l.remove=function(){var a=this.W,b=a.length,c=a[0];if(!(0>=b)){if(1==b)ib(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.uc}};l.A=function(){for(var a=this.W,b=[],c=a.length,d=0;da.df)return!1;a.wd++;Hm(a.L,a.K);setTimeout(y(a.sf,a),0);return!0}; bn.prototype.sf=function(){if(!this.Sa){var a=y(function(d){this.Sa||(Gm(this.L,this.K,d),hd(this.L,en,y(this.Ue,this)),this.L.start())},this),b=this.getUrl();if(zh(b).X.wa("profiling")){var c=new G;c.gb="blob";c.ha("complete",y(function(){this.je=c.getResponseHeader("X-Earth-Engine-Computation-Profile")||null;if(200<=c.getStatus()&&300>c.getStatus())try{var d=mc(pc(kh(c))).toString();var e="about:invalid#zClosurez"!==d}catch(f){}a(e?d:b)},this));c.Ab("ready",y(c.ea,c));c.send(b,"GET")}else a(b)}}; var fn=function(){B.call(this);this.Y=!1};A(fn,B);fn.prototype.setActive=function(a){this.Y=a};fn.prototype.Xd=function(){return this.Y};var $m=function(a,b){Wm.call(this,a,b)};A($m,Wm);$m.prototype.Hc=function(){return new fn};$m.prototype.Pb=function(a){a.ea()};$m.prototype.ad=function(a){return!a.fa&&!a.Xd()};var gn=function(a,b,c,d,e){Od.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 Jd;this.bd=1;this.S=e||null};ja(gn,Od);l=gn.prototype;l.Ac=function(a){return id(this,"tileevent",a)};l.jd=function(a){qd(a)}; l.getTile=function(a,b,c){if(ba.y||a.y>=1<