(function(){var h,aa="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){a!=Array.prototype&&a!=Object.prototype&&(a[b]=c.value)},ba="undefined"!=typeof window&&window===this?this:"undefined"!=typeof global&&null!=global?global:this,ca=function(){ca=function(){};ba.Symbol||(ba.Symbol=da)},da=function(){var a=0;return function(b){return"jscomp_symbol_"+(b||"")+a++}}(),fa=function(){ca();var a=ba.Symbol.iterator;a||(a=ba.Symbol.iterator=ba.Symbol("iterator"));"function"!=typeof Array.prototype[a]&& aa(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return ea(this)}});fa=function(){}},ea=function(a){var b=0;return ha(function(){return b>>0),ta=0,ua=function(a,b,c){return a.call.apply(a.bind,arguments)},va=function(a,b,c){if(!a)throw Error();if(2c&&(c=Math.max(0,a.length+c));if(n(a))return n(b)&&1==b.length?a.lastIndexOf(b,c):-1;for(;0<=c;c--)if(c in a&&a[c]===b)return c;return-1},Ia=Array.prototype.forEach?function(a,b,c){x(null!=a.length);Array.prototype.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=n(a)?a.split(""):a,f=0;fb?null:n(a)?a.charAt(b):a[b]},Ra=function(a){if(!p(a))for(var b=a.length-1;0<=b;b--)delete a[b];a.length=0},Ta=function(a,b){b=Ga(a,b);var c;(c=0<= b)&&Sa(a,b);return c},Sa=function(a,b){x(null!=a.length);Array.prototype.splice.call(a,b,1)},Ua=function(a){return Array.prototype.concat.apply([],arguments)},Va=function(a){var b=a.length;if(0=arguments.length?Array.prototype.slice.call(a, b):Array.prototype.slice.call(a,b,c)},Ya=function(a){for(var b={},c=0,d=0;d")&&(a=a.replace(eb,">"));-1!=a.indexOf('"')&&(a=a.replace(fb,"""));-1!= a.indexOf("'")&&(a=a.replace(gb,"'"));-1!=a.indexOf("\x00")&&(a=a.replace(hb,"�"));return a},cb=/&/g,db=//g,fb=/"/g,gb=/'/g,hb=/\x00/g,bb=/[\x00&<>"']/,jb=function(a,b){return ab?1:0};var kb;a:{var lb=k.navigator;if(lb){var mb=lb.userAgent;if(mb){kb=mb;break a}}kb=""}var B=function(a){return-1!=kb.indexOf(a)};var nb=function(a,b,c){for(var d in a)b.call(c,a[d],d,a)},ob=function(a,b){var c={},d;for(d in a)b.call(void 0,a[d],d,a)&&(c[d]=a[d]);return c},pb=function(a,b,c){var d={},e;for(e in a)d[e]=b.call(c,a[e],e,a);return d},qb=function(a,b){for(var c in a)if(b.call(void 0,a[c],c,a))return!0;return!1},rb=function(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b},sb=function(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b},tb=function(a,b){for(var c in a)if(a[c]==b)return!0;return!1},vb=function(a){var b= ub,c;for(c in b)if(a.call(void 0,b[c],c,b))return c},wb=function(a){for(var b in a)return!1;return!0},xb=function(a,b){b in a&&delete a[b]},yb=function(a){var b={},c;for(c in a)b[c]=a[c];return b},zb=function(a){var b=pa(a);if("object"==b||"array"==b){if(q(a.clone))return a.clone();b="array"==b?[]:{};for(var c in a)b[c]=zb(a[c]);return b}return a},Ab="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),Bb=function(a,b){for(var c,d,e=1;eparseFloat(Mb)){Lb=String(Ob);break a}}Lb=Mb} var Pb=Lb,Db={},Qb=function(a){return Eb(a,function(){for(var b=0,c=ab(String(Pb)).split("."),d=ab(String(a)).split("."),e=Math.max(c.length,d.length),f=0;0==b&&f=a.keyCode)a.keyCode=-1}catch(b){}};var Zb="closure_listenable_"+(1E6*Math.random()|0),$b=function(a){return!(!a||!a[Zb])},ac=0;var bc=function(a,b,c,d,e){this.listener=a;this.Lb=null;this.src=b;this.type=c;this.capture=!!d;this.da=e;this.key=++ac;this.Ma=this.rb=!1},cc=function(a){a.Ma=!0;a.listener=null;a.Lb=null;a.src=null;a.da=null};var dc=function(a){this.src=a;this.D={};this.mb=0};dc.prototype.add=function(a,b,c,d,e){var f=a.toString();a=this.D[f];a||(a=this.D[f]=[],this.mb++);var g=ec(a,b,d,e);-1 d.keyCode||void 0!=d.returnValue)){a:{var e=!1;if(0==d.keyCode)try{d.keyCode=-1;break a}catch(g){e=!0}if(e||void 0==d.returnValue)d.returnValue=!0}d=[];for(e=b.currentTarget;e;e=e.parentNode)d.push(e);a=a.type;for(e=d.length-1;!b.xa&&0<=e;e--){b.currentTarget=d[e];var f=uc(d[e],a,!0,b);c=c&&f}for(e=0;!b.xa&&e>> 0),lc=function(a){x(a,"Listener can not be null.");if(q(a))return a;x(a.handleEvent,"An object listener must have handleEvent method.");a[vc]||(a[vc]=function(b){return a.handleEvent(b)});return a[vc]};var wc=function(a){z.call(this);this.ua=a;this.h={}};v(wc,z);var xc=[];wc.prototype.aa=function(a,b,c,d){p(b)||(b&&(xc[0]=b.toString()),b=xc);for(var e=0;e++d,"infinite loop")}b=this.Vd;d=a.type||a;if(n(a))a=new A(a,b);else if(a instanceof A)a.target=a.target||b;else{var e=a;a=new A(d,b);Bb(a,e)}e=!0;if(c)for(var f=c.length-1;!a.xa&&0<=f;f--){var g=a.currentTarget=c[f];e=Ac(g,d,!0,a)&&e}a.xa||(g=a.currentTarget=b,e=Ac(g,d,!0,a)&&e,a.xa||(e=Ac(g,d,!1,a)&&e));if(c)for(f=0;!a.xa&&f=b.fc&&b.cancel())}this.Ed?this.Ed.call(this.fd,this):this.Lc=!0;this.Ia||kd(this,new ld(this))}};jd.prototype.cd=function(a,b){this.ec=!1;md(this,a,b)}; var md=function(a,b,c){a.Ia=!0;a.ga=c;a.ab=!b;nd(a)},pd=function(a){if(a.Ia){if(!a.Lc)throw new od(a);a.Lc=!1}};jd.prototype.gc=function(a){pd(this);qd(a);md(this,!0,a)};var kd=function(a,b){pd(a);qd(b);md(a,!1,b)},qd=function(a){x(!(a instanceof jd),"An execution sequence may not be initiated with a blocking Deferred.")},rd=function(a,b,c){x(!a.Yc,"Blocking Deferreds can not be re-used");a.Pb.push([b,c,void 0]);a.Ia&&nd(a)}; jd.prototype.then=function(a,b,c){var d,e,f=new Wc(function(a,b){d=a;e=b});rd(this,d,function(a){a instanceof ld?f.cancel():e(a)});return f.then(a,b,c)};Sc(jd); var sd=function(a){return Ma(a.Pb,function(a){return q(a[1])})},nd=function(a){if(a.Vb&&a.Ia&&sd(a)){var b=a.Vb,c=td[b];c&&(k.clearTimeout(c.ea),delete td[b]);a.Vb=0}a.u&&(a.u.fc--,delete a.u);b=a.ga;for(var d=c=!1;a.Pb.length&&!a.ec;){var e=a.Pb.shift(),f=e[0],g=e[1];e=e[2];if(f=a.ab?g:f)try{var l=f.call(e||a.fd,b);m(l)&&(a.ab=a.ab&&(l==b||l instanceof Error),a.ga=b=l);if(Tc(b)||"function"===typeof k.Promise&&b instanceof k.Promise)d=!0,a.ec=!0}catch(y){b=y,a.ab=!0,sd(a)||(c=!0)}}a.ga=b;d&&(l=t(a.cd, a,!0),d=t(a.cd,a,!1),b instanceof jd?(rd(b,l,d),b.Yc=!0):b.then(l,d));c&&(b=new ud(b),td[b.ea]=b,a.Vb=b.ea)},od=function(){w.call(this)};v(od,w);od.prototype.message="Deferred has already fired";od.prototype.name="AlreadyCalledError";var ld=function(){w.call(this)};v(ld,w);ld.prototype.message="Deferred was canceled";ld.prototype.name="CanceledError";var ud=function(a){this.ea=k.setTimeout(t(this.Be,this),0);this.vb=a}; ud.prototype.Be=function(){x(td[this.ea],"Cannot throw an error that is not scheduled.");delete td[this.ea];throw this.vb;};var td={};var vd=function(){C.call(this);this.F=new FileReader;this.F.onloadstart=t(this.Ga,this);this.F.onprogress=t(this.Ga,this);this.F.onload=t(this.Ga,this);this.F.onabort=t(this.Ga,this);this.F.onerror=t(this.Ga,this);this.F.onloadend=t(this.Ga,this)};v(vd,C);h=vd.prototype;h.abort=function(){try{this.F.abort()}catch(a){throw new Qc(a,"aborting read");}};h.ka=function(){return this.F.readyState};h.getError=function(){return this.F.error&&new Qc(this.F.error,"reading file")}; h.Ga=function(a){this.dispatchEvent(new Rc(a,this))};h.f=function(){vd.l.f.call(this);delete this.F};h.readAsBinaryString=function(a){this.F.readAsBinaryString(a)};h.readAsArrayBuffer=function(a){this.F.readAsArrayBuffer(a)};h.readAsText=function(a,b){this.F.readAsText(a,b)};var wd=function(a){switch(a){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:return!0;default:return!1}};var xd=function(a,b,c){this.reset(a,b,c,void 0,void 0)};xd.prototype.jd=null;var yd=0;xd.prototype.reset=function(a,b,c,d,e){"number"==typeof e||yd++;d||xa();this.fb=a;delete this.jd};xd.prototype.Pd=function(a){this.fb=a};var zd=function(a){this.Dd=a;this.sd=this.hc=this.fb=this.u=null},Ad=function(a,b){this.name=a;this.value=b};Ad.prototype.toString=function(){return this.name};var Bd=new Ad("SEVERE",1E3),Cd=new Ad("INFO",800),Dd=new Ad("CONFIG",700),Ed=new Ad("FINE",500);zd.prototype.getName=function(){return this.Dd};zd.prototype.getParent=function(){return this.u};zd.prototype.od=function(){this.hc||(this.hc={});return this.hc};zd.prototype.Pd=function(a){this.fb=a}; var Fd=function(a){if(a.fb)return a.fb;if(a.u)return Fd(a.u);Ba("Root logger has no level set.");return null};zd.prototype.log=function(a,b,c){if(a.value>=Fd(this).value)for(q(b)&&(b=b()),a=new xd(a,String(b),this.Dd),c&&(a.jd=c),c=this;c;){var d=c,e=a;if(d.sd)for(var f=0;b=d.sd[f];f++)b(e);c=c.getParent()}};zd.prototype.info=function(a,b){this.log(Cd,a,b)}; var Gd={},Hd=null,Id=function(a){Hd||(Hd=new zd(""),Gd[""]=Hd,Hd.Pd(Dd));var b;if(!(b=Gd[a])){b=new zd(a);var c=a.lastIndexOf("."),d=a.substr(c+1);c=Id(a.substr(0,c));c.od()[d]=b;b.u=c;Gd[a]=b}return b};var Jd="StopIteration"in k?k.StopIteration:{message:"StopIteration",stack:""},Kd=function(){};Kd.prototype.next=function(){throw Jd;};Kd.prototype.Ca=function(){return this}; var Ld=function(a){if(a instanceof Kd)return a;if("function"==typeof a.Ca)return a.Ca(!1);if(ra(a)){var b=0,c=new Kd;c.next=function(){for(;;){if(b>=a.length)throw Jd;if(b in a)return a[b++];b++}};return c}throw Error("Not implemented");},Md=function(a,b){if(ra(a))try{Ia(a,b,void 0)}catch(c){if(c!==Jd)throw c;}else{a=Ld(a);try{for(;;)b.call(void 0,a.next(),void 0,a)}catch(c){if(c!==Jd)throw c;}}};var Od=function(a){return(new Nd(void 0)).A(a)},Nd=function(a){this.Nb=a};Nd.prototype.A=function(a){var b=[];Pd(this,a,b);return b.join("")}; var Pd=function(a,b,c){if(null==b)c.push("null");else{if("object"==typeof b){if(p(b)){var d=b;b=d.length;c.push("[");for(var e="",f=0;f2*this.j&&Zd(this),!0):!1};var Zd=function(a){if(a.j!=a.h.length){for(var b=0,c=0;b=d.h.length)throw Jd;var e=d.h[b++];return a?e:d.s[e]};return e};var $d=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};var be=function(a){if(a.m&&"function"==typeof a.m)a=a.m();else if(ra(a)||n(a))a=a.length;else{var b=0,c;for(c in a)b++;a=b}return a},ce=function(a){if(a.w&&"function"==typeof a.w)return a.w();if(n(a))return a.split("");if(ra(a)){for(var b=[],c=a.length,d=0;d");c=c.join("")}c=a.createElement(c);d&&(n(d)?c.className=d:p(d)?c.className=d.join(" "):Oe(c,d));2a.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.oa].join("-"),this.Pc.rd()].join("-");var f=this.ed(d,b,c,a);f.tileSize=this.tileSize;Xe(f.J,this.opacity);this.pa.set(a,f);this.da.aa(f,"status-changed",function(){switch(f.getStatus()){case "loaded":this.dispatchEvent(new $e(this.tc()));break;case "throttled":this.dispatchEvent(new af(f.Ra));break;case "failed":this.dispatchEvent(new bf(f.Ra, f.ge))}});this.Pc.Ad(f,(new Date).getTime()/1E3);return f.J};h.releaseTile=function(a){var b=this.pa.get(a.id);this.pa.remove(a.id);b&&(b.abort(),Za(b))};h.f=function(){Ye.l.f.call(this);this.pa.forEach(Za);this.pa.clear();this.pa=null;Za(this.da);this.Pc=this.da=null};var Ze=function(a,b){return Oa(a.pa.w(),function(a){return a.getStatus()==b})},$e=function(){A.call(this,"tile-load")};v($e,A);var af=function(){A.call(this,"tile-throttle")};v(af,A);var bf=function(){A.call(this,"tile-fail")}; v(bf,A);var cf=function(a,b,c,d){C.call(this);this.Fa=a;this.zoom=b;this.J=c.createElement("div");this.J.id=d;this.re=5;this.Mb=function(){};this.Mc="new";this.Ld=0;this.Bc=!1};v(cf,C); var ef=function(a){if(!a.Bc&&"loading"==a.getStatus())throw Error("startLoad() can only be invoked once. Use retryLoad() after the first attempt.");df(a,"loading");a.ha=new E;a.ha.Oa="blob";a.ha.aa("complete",function(){var a=we(this.ha),c=this.ha.getStatus();429==c&&df(this,"throttled");if(wd(c)){var d={};nb(xe(this.ha),function(a,b){d[b.toLowerCase()]=a});this.ze=d;this.Qd=a;this.Xa()}else if(a){var e=new vd;e.aa("loadend",function(){this.jb(e.F.result)},void 0,this);e.readAsText(a)}else this.jb("Failed to load tile.")}, !1,a);a.ha.gb("ready",wa(Za,a.ha));a.ha.send(a.Ra,"GET")};h=cf.prototype;h.Xa=function(){this.Mb(this);df(this,"loaded")};h.Ua=function(){Za(this.ha)};h.jb=function(a){var b=function(a){try{if(a=JSON.parse(a),a.error&&a.error.message)return a.error.message}catch(d){}return a};this.Ld>=this.re?(this.ge=b(a),df(this,"failed")):(this.Ua(),setTimeout(t(function(){this.Y||(this.Bc=!0,ef(this),this.Bc=!1)},this),1E3*Math.pow(2,this.Ld++)))};h.abort=function(){this.Ua();df(this,"aborted")};h.getStatus=function(){return this.Mc}; var df=function(a,b){a.Mc=b;a.dispatchEvent("status-changed")},ff={aborted:!0,failed:!0,loaded:!0};cf.prototype.f=function(){cf.l.f.call(this);this.Ua();this.J.remove();this.Mb=null};var gf=function(){z.call(this)};v(gf,z);var hf=function(a,b){Ye.call(this,a,b);this.$c=new D;this.hd=new D};v(hf,Ye);u("ee.layers.BinaryOverlay",hf);hf.prototype.ed=function(a,b,c,d){var e=new jf(a,b,c,d);this.da.aa(e,"status-changed",function(){"loaded"==e.getStatus()&&(this.$c.set(a,new Float32Array(e.Zd)),this.hd.set(a,e.J))});return e};hf.prototype.f=function(){hf.l.f.call(this);this.hd=this.$c=null};var jf=function(a,b,c,d){cf.call(this,a,b,c,d)};v(jf,cf); jf.prototype.Xa=function(){var a=new vd;a.aa("loadend",function(){this.Zd=a.F.result;cf.prototype.Xa.call(this)},void 0,this);a.readAsArrayBuffer(this.Qd)};var kf=function(a){for(var b=arguments[0],c=1;cb)throw Error("Bad port number "+b);a.La=b}else a.La=null}; uf.prototype.getPath=function(){return this.fa};uf.prototype.setPath=function(a,b){wf(this);this.fa=b?zf(a,!0):a;return this};var yf=function(a,b,c){wf(a);b instanceof Af?(a.V=b,a.V.Kc(a.N)):(c||(b=Bf(b,Gf)),a.V=new Af(b,a.N))};uf.prototype.removeParameter=function(a){wf(this);this.V.remove(a);return this};var wf=function(a){if(a.ne)throw Error("Tried to modify a read-only Uri");};uf.prototype.Kc=function(a){this.N=a;this.V&&this.V.Kc(a)}; var Hf=function(a){return a instanceof uf?a.clone():new uf(a,void 0)},zf=function(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""},Bf=function(a,b,c){return n(a)?(a=encodeURI(a).replace(b,If),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null},If=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)},Cf=/[#\/\?@]/g,Ef=/[#\?:]/g,Df=/[#\?]/g,Gf=/[#\?@]/g,Ff=/#/g,Af=function(a,b){this.j=this.o=null;this.K=a||null;this.N=!!b},Jf=function(a){a.o|| (a.o=new D,a.j=0,a.K&&je(a.K,function(b,c){a.add(decodeURIComponent(b.replace(/\+/g," ")),c)}))};h=Af.prototype;h.m=function(){Jf(this);return this.j};h.add=function(a,b){Jf(this);this.K=null;a=Kf(this,a);var c=this.o.get(a);c||this.o.set(a,c=[]);c.push(b);this.j=Ca(this.j)+1;return this};h.remove=function(a){Jf(this);a=Kf(this,a);return this.o.ja(a)?(this.K=null,this.j=Ca(this.j)-this.o.get(a).length,this.o.remove(a)):!1};h.clear=function(){this.o=this.K=null;this.j=0}; h.isEmpty=function(){Jf(this);return 0==this.j};h.ja=function(a){Jf(this);a=Kf(this,a);return this.o.ja(a)};h.Va=function(a){var b=this.w();return 0<=Ga(b,a)};h.forEach=function(a,b){Jf(this);this.o.forEach(function(c,d){Ia(c,function(c){a.call(b,c,d,this)},this)},this)};h.U=function(){Jf(this);for(var a=this.o.w(),b=this.o.U(),c=[],d=0;db&&(b+=e);return[gg,"map",a.mapid,d,b,c].join("/")+"?token="+a.token};u("ee.data.getTileUrl",rg);var sg=function(a,b){a=yb(a);return F("/value",G(a),b)};u("ee.data.getValue",sg); var tg=function(a,b){a=yb(a);p(a.dimensions)&&(a.dimensions=a.dimensions.join("x"));a=G(a).add("getid","1");return F("/thumb",a,b)};u("ee.data.getThumbId",tg);var ug=function(a){return gg+"/api/thumb?thumbid="+a.thumbid+"&token="+a.token};u("ee.data.makeThumbUrl",ug);var vg=function(a,b){a=yb(a);return F("/download",G(a),b)};u("ee.data.getDownloadId",vg);var wg=function(a){return gg+"/api/download?docid="+a.docid+"&token="+a.token};u("ee.data.makeDownloadUrl",wg); var xg=function(a,b){a=yb(a);return F("/table",G(a),b)};u("ee.data.getTableDownloadId",xg);var yg=function(a){return gg+"/api/table?docid="+a.docid+"&token="+a.token};u("ee.data.makeTableDownloadUrl",yg);var Ag=function(a,b,c){var d=zg;try{return zg=a,b.call(c)}finally{zg=d}};u("ee.data.withProfiling",Ag);u("ee.data.newTaskId",function(a,b){var c={};ma(a)&&(c.count=a);return F("/newtaskid",G(c),b)}); u("ee.data.getTaskStatus",function(a,b){if(n(a))a=[a];else if(!p(a))throw Error("Invalid taskId: expected a string or an array of strings.");return F("/taskstatus?q="+a.join(),null,b,"GET")});u("ee.data.getTaskList",function(a){return F("/tasklist",null,a,"GET")});u("ee.data.cancelTask",function(a,b){return Bg(a,"CANCEL",b)}); var Bg=function(a,b,c){if(n(a))a=[a];else if(!p(a))throw Error("Invalid taskId: expected a string or an array of strings.");if(!tb(Cg,b))throw Error("Invalid action: "+b);return F("/updatetask",G({id:a,action:b}),c,"POST")};u("ee.data.updateTask",Bg);u("ee.data.startProcessing",function(a,b,c){b=yb(b);b.id=a;return F("/processingrequest",G(b),c)});u("ee.data.startIngestion",function(a,b,c){a={id:a,request:Od(b)};return F("/ingestionrequest",G(a),c)}); u("ee.data.startTableIngestion",function(a,b,c){a={id:a,tableRequest:Od(b)};return F("/ingestionrequest",G(a),c)});var Dg=function(a,b){return F("/info",(new Af).add("id",a),b)};u("ee.data.getInfo",Dg);var Eg=function(a,b){a=G(a);return F("/list",a,b)};u("ee.data.getList",Eg);u("ee.data.getAssetRoots",function(a){return F("/buckets",null,a,"GET")});u("ee.data.createAssetHome",function(a,b){a=G({id:a});F("/createbucket",a,b)}); u("ee.data.createAsset",function(a,b,c,d,e){n(a)||(a=Od(a));a={value:a};void 0!==b&&(a.id=b);a.force=c||!1;void 0!=d&&(a.properties=Od(d));return F("/create",G(a),e)});u("ee.data.createFolder",function(a,b,c){return F("/createfolder",G({id:a,force:b||!1}),c)});u("ee.data.renameAsset",function(a,b,c){F("/rename",G({sourceId:a,destinationId:b}),c)});u("ee.data.copyAsset",function(a,b,c){F("/copy",G({sourceId:a,destinationId:b}),c)});u("ee.data.deleteAsset",function(a,b){F("/delete",G({id:a}),b)}); u("ee.data.getAssetAcl",function(a,b){return F("/getacl",G({id:a}),b,"GET")});u("ee.data.setAssetAcl",function(a,b,c){a={id:a,value:Od(b)};F("/setacl",G(a),c)});u("ee.data.setAssetProperties",function(a,b,c){a={id:a,properties:Od(b)};F("/setproperties",G(a),c)});u("ee.data.getAssetRootQuota",function(a,b){return F("/quota",G({id:a}),b,"GET")}); var Cg={Fe:"CANCEL",Ie:"UPDATE"},F=function(a,b,c,d){ig();var e=zg,f={"Content-Type":"application/x-www-form-urlencoded"},g=bg();if(null!=g)f.Authorization=g;else if(c&&Uf&&Lf)return Pf(function(){Ag(e,function(){F(a,b,c,d)})}),null;g=d||"POST";b=b?b.clone():new Af;e&&b.add("profiling","1");null!=Wf&&b.add("api_key",Wf);b=lg(b,a);null!=hg&&(f["X-XSRF-Token"]=hg);var l=b?b.toString():"";"GET"!=g||/^[\s\xa0]*$/.test(l)||(a+=-1!=a.indexOf("?")?"&":"?",a+=l,l=null);var y=eg+a;if(c)return Fg.push(Gg(y, c,g,l,f)),Hg.rc(),null;for(var oa=function(a,b){this.setRequestHeader&&this.setRequestHeader(b,a)},Ka,Ug=0;;){Ka=Xd();Ka.open(g,y,!1);nb(f,oa,Ka);Ka.send(l);if(429!=Ka.status||5f)return f++,setTimeout(function(){Fg.push(g);Hg.rc()},Math.min(12E4, 1E3*Math.pow(2,f))),null;var c=a.getStatus(),d=t(a.getResponseHeader,a);try{var e=a.a?a.a.responseText:""}catch(lj){Td(a.I,"Can not get responseText: "+lj.message),e=""}return Ig(c,d,e,l,b)};return g},Ig=function(a,b,c,d,e){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 g=JSON.parse(c);var l=g.data}catch(oa){var y="Invalid JSON: "+c}else y="Response was unexpectedly not JSON, but "+ b;if(r(g))"error"in g&&"message"in g.error?y=g.error.message:"data"in g||(y="Malformed response: "+c);else if(0===a)y="Failed to contact Earth Engine servers. Please check your connection, firewall, or browser extension settings.";else if(200>a||300<=a)y="Server returned HTTP code: "+a;if(e)return e(l,y),null;if(!y)return l;throw Error(y);},Of=function(a){var b=function(){k.gapi.config.update("client/cors",!0);Uf||(Uf=k.gapi.auth.authorize);a()};if(r(k.gapi)&&r(k.gapi.auth)&&q(k.gapi.auth.authorize))b(); else{for(var c=xa().toString(36);c in k;)c+="_";k[c]=function(){delete k[c];b()};tf(Le({onload:c}))}},Tf=function(a,b,c){c.access_token?(b=c.token_type+" "+c.access_token,isFinite(c.expires_in)&&(c=900*c.expires_in,setTimeout(Pf,.9*c),$f=xa()+c),Nf=b,a&&a()):b&&b(c.error||"Unknown error.")},G=function(a){var b=new Af;a=ia(Object.entries(a));for(var c=a.next();!c.done;c=a.next()){var d=ia(c.value);c=d.next().value;d=d.next().value;b.set(c,d)}return b},Fg=[],Hg=new nf(function(){var a=Fg.shift();if(a){var b= a.url,c=a.gc,d=a.method,e=a.content;a=a.headers;var f=jg,g=new E;oe.push(g);c&&g.aa("complete",c);g.gb("ready",g.be);f&&(g.Sa=Math.max(0,f));g.send(b,d,e,a)}0==Fg.length||Hg.rc()},350),eg=null,gg=null,hg=null,lg=Cc,Nf=null,$f=null,Lf=null,Mf=[],Uf=null,He=De("https://apis.google.com/js/client.js?onload=%{onload}"),Wf=null,fg=!1,jg=0,zg=null;var Jg=function(a,b){this.yd=a;this.Yb=b};Jg.prototype.getKey=function(){return this.yd};Jg.prototype.clone=function(){return new Jg(this.yd,this.Yb)};var Kg=function(a){this.O=[];if(a)a:{if(a instanceof Kg){var b=a.U();a=a.w();if(0>=this.m()){for(var c=this.O,d=0;d>1,a[d].getKey()>c.getKey())a[b]=a[d],b=d;else break;a[b]=c};h=Kg.prototype; h.remove=function(){var a=this.O,b=a.length,c=a[0];if(!(0>=b)){if(1==b)Ra(a);else{a[0]=a.pop();a=0;b=this.O;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.Yb}};h.w=function(){for(var a=this.O,b=[],c=a.length,d=0;dc)return!1;!(b instanceof H)&&5this.Fb)throw Error("[goog.structs.Pool] Min can not be greater than max");this.Z=new Mg;this.la=new H;this.kc=0;this.Cc=null;this.pb()};v(Rg,z);Rg.prototype.Za=function(){var a=xa();if(!(null!=this.Cc&&a-this.Ccthis.Fb&&0e&&(e+=d);return[a.qe,c,e,b.y].join("/")};gh.prototype.tc=function(){return this.qa.length};var ih=function(a){A.call(this,"tileevent");this.count=a};v(ih,A);var jh=function(){};var kh=function(){this.ia=-1};var lh=function(){this.ia=64;this.C=Array(4);this.Xd=Array(this.ia);this.Tb=this.Ta=0;this.reset()};v(lh,kh);lh.prototype.reset=function(){this.C[0]=1732584193;this.C[1]=4023233417;this.C[2]=2562383102;this.C[3]=271733878;this.Tb=this.Ta=0}; var mh=function(a,b,c){c||(c=0);var d=Array(16);if(n(b))for(var e=0;16>e;++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.C[0];c=a.C[1];e=a.C[2];var f=a.C[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.C[0]=a.C[0]+b&4294967295;a.C[1]=a.C[1]+(e+(g<<21&4294967295|g>>>11))&4294967295;a.C[2]=a.C[2]+e&4294967295;a.C[3]=a.C[3]+f&4294967295}; lh.prototype.update=function(a,b){m(b)||(b=a.length);for(var c=b-this.ia,d=this.Xd,e=this.Ta,f=0;fthis.Ta?this.ia:2*this.ia)-this.Ta);a[0]=128;for(var b=1;bb;++b)for(var d=0;32>d;d+=8)a[c++]=this.C[b]>>>d&255;return a};var nh=function(a){this.ob="__ee_hash__";this.Ac=!1!==a;this.Pa=[];this.Ha={};this.Vc=[]};u("ee.Serializer",nh);var oh=new Nd,ph=new lh,rh=function(a,b){return qh(new nh(m(b)?b:!0),a)};u("ee.Serializer.encode",rh);var sh=function(a){return oh.A(rh(a))};u("ee.Serializer.toJSON",sh);var th=function(a){a=qh(new nh(!1),a);return"JSON"in k?k.JSON.stringify(a,null," "):oh.A(a)};u("ee.Serializer.toReadableJSON",th); var qh=function(a,b){b=a.ub(b);a.Ac&&(b=r(b)&&"ValueRef"==b.type&&1==a.Pa.length?a.Pa[0][1]:{type:"CompoundValue",scope:a.Pa,value:b},a.Pa=[],Ia(a.Vc,t(function(a){delete a[this.ob]},a)),a.Vc=[],a.Ha={});return b}; nh.prototype.ub=function(a){if(!m(a))throw Error("Can't encode an undefined value.");var b=r(a)?a[this.ob]:null;if(this.Ac&&null!=b&&this.Ha[b])return{type:"ValueRef",value:this.Ha[b]};if(null===a||"boolean"==typeof a||ma(a)||n(a))return a;if(r(a)&&"function"==typeof a.getFullYear)return{type:"Invocation",functionName:"Date",arguments:{value:Math.floor(a.getTime())}};if(a instanceof jh){var c=a.encode(t(this.ub,this));if(!(p(c)||r(c)&&"ArgumentRef"!=c.type))return c}else if(p(a))c=La(a,function(a){return this.ub(a)}, this);else if(r(a)&&!q(a))c=pb(a,function(a){if(!q(a))return this.ub(a)},this),xb(c,this.ob),c={type:"Dictionary",value:c};else throw Error("Can't encode object: "+a);if(this.Ac){ph.reset();ph.update(oh.A(c));b=ph.digest().toString();if(this.Ha[b])var d=this.Ha[b];else d=String(this.Pa.length),this.Pa.push([d,c]),this.Ha[b]=d;a[this.ob]=b;this.Vc.push(a);return{type:"ValueRef",value:d}}return c};var I=function(a,b,c){if(!(this instanceof I))return J(I,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.B=c||null};v(I,jh);u("ee.ComputedObject",I);I.prototype.evaluate=function(a){if(!a||!q(a))throw Error("evaluate() requires a callback function.");sg({json:this.A()},a)};I.prototype.evaluate=I.prototype.evaluate; I.prototype.$=function(a){return sg({json:this.A()},a)};I.prototype.getInfo=I.prototype.$;I.prototype.encode=function(a){if(null===this.i&&null===this.args)return{type:"ArgumentRef",value:this.B};var b={},c;for(c in this.args)m(this.args[c])&&(b[c]=a(this.args[c]));b={type:"Invocation",arguments:b};a=a(this.i);b[n(a)?"functionName":"function"]=a;return b};I.prototype.A=function(){return sh(this)};I.prototype.serialize=I.prototype.A; I.prototype.toString=function(){return"ee."+this.name()+"("+th(this)+")"};u("ee.ComputedObject.prototype.toString",I.prototype.toString);I.prototype.name=function(){return"ComputedObject"};I.prototype.Wc=function(a,b){var c=Va(arguments);c[0]=this;a.apply(k,c);return this};I.prototype.aside=I.prototype.Wc; var uh=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.B=b.B;return a},J=function(a,b){function c(){return a.apply(this,b)}c.prototype=a.prototype;return new c};var vh={},wh=function(a){return a.prototype instanceof I?a.prototype.name.call(null):a==Number?"Number":a==String?"String":a==Array?"Array":a==Date?"Date":"Object"},xh=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}},yh=function(a){return ma(a)|| a instanceof I&&"Number"==a.name()},zh=function(a){return n(a)||a instanceof I&&"String"==a.name()},Ah=function(a){return r(a)&&!q(a)?(a=Object.getPrototypeOf(a),null!==a&&null===Object.getPrototypeOf(a)):!1};var K=function(){if(!(this instanceof K))return new K};v(K,jh);u("ee.Function",K);var Bh=Cc;K.prototype.call=function(a){return this.apply(Ch(this,Array.prototype.slice.call(arguments,0)))};K.prototype.call=K.prototype.call;K.prototype.apply=function(a){a=new I(this,Dh(this,a));return Bh(a,this.H().returns)};K.prototype.apply=K.prototype.apply; var Eh=function(a,b,c){var d=m(b),e=a.H(),f=!1;if(1==c.length&&Ah(c[0])){var g=e.args;d&&(g=g.slice(1));g.length&&(f=!((1==g.length||g[1].optional)&&"Dictionary"==g[0].type))}if(f){if(c=yb(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=Ch(a,d?[b].concat(c):c);return a.apply(c)},Dh=function(a,b){for(var c=a.H().args,d={},e={},f=0;f/,"");for(var c=0;c/,"");return new L(b,a)}),a&&a())};a?pg(c):c(pg())}},N=function(a,b,c,d){Jh();var e=d||"";nb(Hh,function(d,g){var f=g.split(".");if(2==f.length&&f[0]==b){f=e+f[1];var y=d.H();Ih[g]=!0;var oa=!1;y.args.length&&(g=y.args[0].type,oa="Object"!=g&&xh(g, c));g=oa?a.prototype:a;f in g&&!g[f].signature||(g[f]=function(a){return Eh(d,oa?this:void 0,Array.prototype.slice.call(arguments,0))},g[f].toString=t(d.toString,d,f,oa),g[f].signature=y)}})},O=function(a){var b=function(a){for(var b in a)q(a[b])&&a[b].signature&&delete a[b]};b(a);b(a.prototype)};var P=function(a,b){var c=Nh(a),d=La(c,function(a){return a.replace(/^opt_/,"")});a=(a=Oh(a))?" to function "+a:"";var e={},f=b[0],g=r(f)&&!q(f)&&!p(f)&&!(f instanceof I);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=Ah(c))a:{b=sb(c);var d=["properties"];if(ra(b)&&ra(d)&&b.length==d.length){for(var e=b.length,f=0;fc||4/,"");c[e]=!0}var f=k.ee,g;for(g in b)g in c&&!(g in f)&&(f[g]=tj(g),nj.push(g),a[g]?(f[g].signature=a[g],f[g].signature.isConstructor=!0,Ih[g]=!0):f[g].signature={});vh=f;uj()}catch(l){kj(l);return}gj="ready";for(hj=[];0a.se)return!1;a.Xc++;bh(a.G,a.ea);setTimeout(t(a.Ae,a),0);return!0}; zj.prototype.Ae=function(){if(!this.Da){var a=t(function(a){this.Da||(ah(this.G,this.ea,a),jc(this.G,Cj,t(this.ke,this)),this.G.start())},this),b=this.getUrl();if(Hf(b).V.ja("profiling")){var c=new E;c.Oa="blob";c.aa("complete",t(function(){this.Id=c.getResponseHeader("X-Earth-Engine-Computation-Profile")||null;if(200<=c.getStatus()&&300>c.getStatus())try{var d=URL.createObjectURL(we(c))}catch(e){}a(d||b)},this));c.gb("ready",t(c.X,c));c.send(b,"GET")}else a(b)}};var Dj=function(){this.P=!1}; v(Dj,z);Dj.prototype.setActive=function(a){this.P=a};Dj.prototype.wd=function(){return this.P};var yj=function(a,b){Vg.call(this,a,b)};v(yj,Vg);yj.prototype.jc=function(){return new Dj};yj.prototype.sb=function(a){a.X()};yj.prototype.Fc=function(a){return!a.Y&&!a.wd()};var Z=function(a,b,c,d,e){gh.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.Rc=new H;this.Gc=1;this.L=e||null};v(Z,gh);u("ee.MapLayerOverlay",Z);Z.prototype.cc=function(a){return kc(this,"tileevent",a)};Z.prototype.addTileCallback=Z.prototype.cc;Z.prototype.Jc=function(a){sc(a)}; Z.prototype.removeTileCallback=Z.prototype.Jc;Z.prototype.getTile=function(a,b,c){if(ba.y||a.y>=1<