Michael DeWitt 3d26e2a5b5 v0.1.164
2018-12-21 12:23:11 -08:00

297 lines
154 KiB
JavaScript

(function(){var h,aa=function(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}},ba=function(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return b?b.call(a):{next:aa(a)}},ca="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){a!=Array.prototype&&a!=Object.prototype&&(a[b]=c.value)},da="undefined"!=typeof window&&window===this?this:"undefined"!=typeof global&&null!=global?global:this,fa=function(a,b){if(b){var c=da;a=a.split(".");
for(var d=0;d<a.length-1;d++){var e=a[d];e in c||(c[e]={});c=c[e]}a=a[a.length-1];d=c[a];b=b(d);b!=d&&null!=b&&ca(c,a,{configurable:!0,writable:!0,value:b})}};fa("Array.prototype.find",function(a){return a?a:function(a,c){a:{var b=this;b instanceof String&&(b=String(b));for(var e=b.length,f=0;f<e;f++){var g=b[f];if(a.call(c,g,f,b)){a=g;break a}}a=void 0}return a}});
fa("Promise",function(a){function b(){this.na=null}function c(a){return a instanceof e?a:new e(function(b){b(a)})}if(a)return a;b.prototype.kd=function(a){null==this.na&&(this.na=[],this.ne());this.na.push(a)};b.prototype.ne=function(){var a=this;this.ld(function(){a.ze()})};var d=da.setTimeout;b.prototype.ld=function(a){d(a,0)};b.prototype.ze=function(){for(;this.na&&this.na.length;){var a=this.na;this.na=[];for(var b=0;b<a.length;++b){var c=a[b];a[b]=null;try{c()}catch(D){this.oe(D)}}}this.na=null};
b.prototype.oe=function(a){this.ld(function(){throw a;})};var e=function(a){this.B=0;this.S=void 0;this.Ra=[];var b=this.vc();try{a(b.resolve,b.reject)}catch(v){b.reject(v)}};e.prototype.vc=function(){function a(a){return function(d){c||(c=!0,a.call(b,d))}}var b=this,c=!1;return{resolve:a(this.We),reject:a(this.Vc)}};e.prototype.We=function(a){if(a===this)this.Vc(new TypeError("A Promise cannot resolve to itself"));else if(a instanceof e)this.Xe(a);else{a:switch(typeof a){case "object":var b=null!=
a;break a;case "function":b=!0;break a;default:b=!1}b?this.Ve(a):this.Dd(a)}};e.prototype.Ve=function(a){var b=void 0;try{b=a.then}catch(v){this.Vc(v);return}"function"==typeof b?this.Ye(b,a):this.Dd(a)};e.prototype.Vc=function(a){this.de(2,a)};e.prototype.Dd=function(a){this.de(1,a)};e.prototype.de=function(a,b){if(0!=this.B)throw Error("Cannot settle("+a+", "+b+"): Promise already settled in state"+this.B);this.B=a;this.S=b;this.Be()};e.prototype.Be=function(){if(null!=this.Ra){for(var a=0;a<this.Ra.length;++a)f.kd(this.Ra[a]);
this.Ra=null}};var f=new b;e.prototype.Xe=function(a){var b=this.vc();a.Ab(b.resolve,b.reject)};e.prototype.Ye=function(a,b){var c=this.vc();try{a.call(b,c.resolve,c.reject)}catch(D){c.reject(D)}};e.prototype.then=function(a,b){function c(a,b){return"function"==typeof a?function(b){try{d(a(b))}catch(W){f(W)}}:b}var d,f,g=new e(function(a,b){d=a;f=b});this.Ab(c(a,d),c(b,f));return g};e.prototype["catch"]=function(a){return this.then(void 0,a)};e.prototype.Ab=function(a,b){function c(){switch(d.B){case 1:a(d.S);
break;case 2:b(d.S);break;default:throw Error("Unexpected state: "+d.B);}}var d=this;null==this.Ra?f.kd(c):this.Ra.push(c)};e.resolve=c;e.reject=function(a){return new e(function(b,c){c(a)})};e.race=function(a){return new e(function(b,d){for(var e=ba(a),f=e.next();!f.done;f=e.next())c(f.value).Ab(b,d)})};e.all=function(a){var b=ba(a),d=b.next();return d.done?c([]):new e(function(a,e){function f(b){return function(c){g[b]=c;l--;0==l&&a(g)}}var g=[],l=0;do g.push(void 0),l++,c(d.value).Ab(f(g.length-
1),e),d=b.next();while(!d.done)})};return e});var ha=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)},ia="function"==typeof Object.assign?Object.assign:function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(d)for(var e in d)ha(d,e)&&(a[e]=d[e])}return a};fa("Object.assign",function(a){return a||ia});fa("Object.entries",function(a){return a?a:function(a){var b=[],d;for(d in a)ha(a,d)&&b.push([d,a[d]]);return b}});
var ja=function(){ja=function(){};da.Symbol||(da.Symbol=ka)},ka=function(){var a=0;return function(b){return"jscomp_symbol_"+(b||"")+a++}}(),ma=function(){ja();var a=da.Symbol.iterator;a||(a=da.Symbol.iterator=da.Symbol("iterator"));"function"!=typeof Array.prototype[a]&&ca(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return la(aa(this))}});ma=function(){}},la=function(a){ma();a={next:a};a[da.Symbol.iterator]=function(){return this};return a};
fa("Object.is",function(a){return a?a:function(a,c){return a===c?0!==a||1/a===1/c:a!==a&&c!==c}});fa("Array.prototype.includes",function(a){return a?a:function(a,c){var b=this;b instanceof String&&(b=String(b));var e=b.length;c=c||0;for(0>c&&(c=Math.max(c+e,0));c<e;c++){var f=b[c];if(f===a||Object.is(f,a))return!0}return!1}});
fa("String.prototype.includes",function(a){return a?a:function(a,c){if(null==this)throw new TypeError("The 'this' value for String.prototype.includes must not be null or undefined");if(a instanceof RegExp)throw new TypeError("First argument to String.prototype.includes must not be a regular expression");return-1!==(this+"").indexOf(a,c||0)}});
fa("WeakMap",function(a){function b(){}function c(a){ha(a,e)||ca(a,e,{value:new b})}function d(a){var d=Object[a];d&&(Object[a]=function(a){if(a instanceof b)return a;c(a);return d(a)})}if(function(){if(!a||!Object.seal)return!1;try{var b=Object.seal({}),c=Object.seal({}),d=new a([[b,2],[c,3]]);if(2!=d.get(b)||3!=d.get(c))return!1;d["delete"](b);d.set(c,4);return!d.has(b)&&4==d.get(c)}catch(M){return!1}}())return a;var e="$jscomp_hidden_"+Math.random();d("freeze");d("preventExtensions");d("seal");
var f=0,g=function(a){this.J=(f+=Math.random()+1).toString();if(a){a=ba(a);for(var b;!(b=a.next()).done;)b=b.value,this.set(b[0],b[1])}};g.prototype.set=function(a,b){c(a);if(!ha(a,e))throw Error("WeakMap key fail: "+a);a[e][this.J]=b;return this};g.prototype.get=function(a){return ha(a,e)?a[e][this.J]:void 0};g.prototype.has=function(a){return ha(a,e)&&ha(a[e],this.J)};g.prototype["delete"]=function(a){return ha(a,e)&&ha(a[e],this.J)?delete a[e][this.J]:!1};return g});
fa("Map",function(a){if(function(){if(!a||"function"!=typeof a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var b=Object.seal({x:4}),c=new a(ba([[b,"s"]]));if("s"!=c.get(b)||1!=c.size||c.get({x:4})||c.set({x:4},"t")!=c||2!=c.size)return!1;var d=c.entries(),e=d.next();if(e.done||e.value[0]!=b||"s"!=e.value[1])return!1;e=d.next();return e.done||4!=e.value[0].x||"t"!=e.value[1]||!d.next().done?!1:!0}catch(ea){return!1}}())return a;ma();var b=new WeakMap,c=function(a){this.bb={};
this.M=f();this.size=0;if(a){a=ba(a);for(var b;!(b=a.next()).done;)b=b.value,this.set(b[0],b[1])}};c.prototype.set=function(a,b){a=0===a?0:a;var c=d(this,a);c.list||(c.list=this.bb[c.id]=[]);c.I?c.I.value=b:(c.I={next:this.M,la:this.M.la,head:this.M,key:a,value:b},c.list.push(c.I),this.M.la.next=c.I,this.M.la=c.I,this.size++);return this};c.prototype["delete"]=function(a){a=d(this,a);return a.I&&a.list?(a.list.splice(a.index,1),a.list.length||delete this.bb[a.id],a.I.la.next=a.I.next,a.I.next.la=
a.I.la,a.I.head=null,this.size--,!0):!1};c.prototype.clear=function(){this.bb={};this.M=this.M.la=f();this.size=0};c.prototype.has=function(a){return!!d(this,a).I};c.prototype.get=function(a){return(a=d(this,a).I)&&a.value};c.prototype.entries=function(){return e(this,function(a){return[a.key,a.value]})};c.prototype.keys=function(){return e(this,function(a){return a.key})};c.prototype.values=function(){return e(this,function(a){return a.value})};c.prototype.forEach=function(a,b){for(var c=this.entries(),
d;!(d=c.next()).done;)d=d.value,a.call(b,d[1],d[0],this)};c.prototype[Symbol.iterator]=c.prototype.entries;var d=function(a,c){var d=c&&typeof c;"object"==d||"function"==d?b.has(c)?d=b.get(c):(d=""+ ++g,b.set(c,d)):d="p_"+c;var e=a.bb[d];if(e&&ha(a.bb,d))for(a=0;a<e.length;a++){var f=e[a];if(c!==c&&f.key!==f.key||c===f.key)return{id:d,list:e,index:a,I:f}}return{id:d,list:e,index:-1,I:void 0}},e=function(a,b){var c=a.M;return la(function(){if(c){for(;c.head!=a.M;)c=c.la;for(;c.next!=c.head;)return c=
c.next,{done:!1,value:b(c)};c=null}return{done:!0,value:void 0}})},f=function(){var a={};return a.la=a.next=a.head=a},g=0;return c});
var na=na||{},k=this,m=function(a){return void 0!==a},n=function(a){return"string"==typeof a},oa=function(a){return"number"==typeof a},pa=/^[\w+/_-]+[=]{0,2}$/,qa=null,ra=function(a){a=a.split(".");for(var b=k,c=0;c<a.length;c++)if(b=b[a[c]],null==b)return null;return b},sa=function(){},ta=function(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if("[object Window]"==c)return"object";if("[object Array]"==
c||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==c||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null";else if("function"==b&&"undefined"==typeof a.call)return"object";return b},ua=function(a){return null!=a},p=function(a){return"array"==ta(a)},va=function(a){var b=ta(a);return"array"==
b||"object"==b&&"number"==typeof a.length},q=function(a){return"function"==ta(a)},r=function(a){var b=typeof a;return"object"==b&&null!=a||"function"==b},wa="closure_uid_"+(1E9*Math.random()>>>0),xa=0,ya=function(a,b,c){return a.call.apply(a.bind,arguments)},za=function(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var c=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(c,d);return a.apply(b,c)}}return function(){return a.apply(b,
arguments)}},t=function(a,b,c){t=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?ya:za;return t.apply(null,arguments)},Aa=function(a,b){var c=Array.prototype.slice.call(arguments,1);return function(){var b=c.slice();b.push.apply(b,arguments);return a.apply(this,b)}},Ba=Date.now||function(){return+new Date},u=function(a,b){a=a.split(".");var c=k;a[0]in c||"undefined"==typeof c.execScript||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)!a.length&&
m(b)?c[d]=b:c=c[d]&&c[d]!==Object.prototype[d]?c[d]:c[d]={}},w=function(a,b){function c(){}c.prototype=b.prototype;a.h=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.jf=function(a,c,f){for(var d=Array(arguments.length-2),e=2;e<arguments.length;e++)d[e-2]=arguments[e];return b.prototype[c].apply(a,d)}};var x=function(){this.ca=this.ca;this.Qb=this.Qb};x.prototype.ca=!1;x.prototype.ba=function(){this.ca||(this.ca=!0,this.f())};x.prototype.f=function(){if(this.Qb)for(;this.Qb.length;)this.Qb.shift()()};var Ca=function(a){a&&"function"==typeof a.ba&&a.ba()};var y=function(a,b){this.type=a;this.currentTarget=this.target=b;this.defaultPrevented=this.Ca=!1;this.$d=!0};y.prototype.stopPropagation=function(){this.Ca=!0};y.prototype.preventDefault=function(){this.defaultPrevented=!0;this.$d=!1};var Da=function(a){if(Error.captureStackTrace)Error.captureStackTrace(this,Da);else{var b=Error().stack;b&&(this.stack=b)}a&&(this.message=String(a))};w(Da,Error);Da.prototype.name="CustomError";var Ea;var Fa=function(a,b){a=a.split("%s");for(var c="",d=a.length-1,e=0;e<d;e++)c+=a[e]+(e<b.length?b[e]:"%s");Da.call(this,c+a[d])};w(Fa,Da);Fa.prototype.name="AssertionError";
var Ga=function(a,b,c,d){var e="Assertion failed";if(c){e+=": "+c;var f=d}else a&&(e+=": "+a,f=b);throw new Fa(""+e,f||[]);},z=function(a,b,c){a||Ga("",null,b,Array.prototype.slice.call(arguments,2));return a},Ha=function(a,b){throw new Fa("Failure"+(a?": "+a:""),Array.prototype.slice.call(arguments,1));},Ia=function(a,b,c){oa(a)||Ga("Expected number but got %s: %s.",[ta(a),a],b,Array.prototype.slice.call(arguments,2));return a},Ja=function(a,b,c){n(a)||Ga("Expected string but got %s: %s.",[ta(a),
a],b,Array.prototype.slice.call(arguments,2))},Ka=function(a,b,c){q(a)||Ga("Expected function but got %s: %s.",[ta(a),a],b,Array.prototype.slice.call(arguments,2))},La=function(a,b,c){r(a)||Ga("Expected object but got %s: %s.",[ta(a),a],b,Array.prototype.slice.call(arguments,2));return a};var Ma=Array.prototype.indexOf?function(a,b){z(null!=a.length);return Array.prototype.indexOf.call(a,b,void 0)}:function(a,b){if(n(a))return n(b)&&1==b.length?a.indexOf(b,0):-1;for(var c=0;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1},Na=Array.prototype.lastIndexOf?function(a,b){z(null!=a.length);return Array.prototype.lastIndexOf.call(a,b,a.length-1)}:function(a,b){var c=a.length-1;0>c&&(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},Oa=Array.prototype.forEach?function(a,b,c){z(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;f<d;f++)f in e&&b.call(c,e[f],f,a)},Pa=Array.prototype.filter?function(a,b){z(null!=a.length);return Array.prototype.filter.call(a,b,void 0)}:function(a,b){for(var c=a.length,d=[],e=0,f=n(a)?a.split(""):a,g=0;g<c;g++)if(g in f){var l=f[g];b.call(void 0,l,g,a)&&(d[e++]=l)}return d},Qa=Array.prototype.map?function(a,
b,c){z(null!=a.length);return Array.prototype.map.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=Array(d),f=n(a)?a.split(""):a,g=0;g<d;g++)g in f&&(e[g]=b.call(c,f[g],g,a));return e},Ra=Array.prototype.some?function(a,b){z(null!=a.length);return Array.prototype.some.call(a,b,void 0)}:function(a,b){for(var c=a.length,d=n(a)?a.split(""):a,e=0;e<c;e++)if(e in d&&b.call(void 0,d[e],e,a))return!0;return!1},Sa=Array.prototype.every?function(a,b,c){z(null!=a.length);return Array.prototype.every.call(a,
b,c)}:function(a,b,c){for(var d=a.length,e=n(a)?a.split(""):a,f=0;f<d;f++)if(f in e&&!b.call(c,e[f],f,a))return!1;return!0},Ta=function(a,b){var c=0;Oa(a,function(a,e,f){b.call(void 0,a,e,f)&&++c},void 0);return c},Va=function(a){a:{var b=Ua;for(var c=a.length,d=n(a)?a.split(""):a,e=0;e<c;e++)if(e in d&&b.call(void 0,d[e],e,a)){b=e;break a}b=-1}return 0>b?null:n(a)?a.charAt(b):a[b]},Wa=function(a,b){return 0<=Ma(a,b)},Xa=function(a){if(!p(a))for(var b=a.length-1;0<=b;b--)delete a[b];a.length=0},Za=
function(a,b){b=Ma(a,b);var c;(c=0<=b)&&Ya(a,b);return c},Ya=function(a,b){z(null!=a.length);Array.prototype.splice.call(a,b,1)},$a=function(a){return Array.prototype.concat.apply([],arguments)},ab=function(a){var b=a.length;if(0<b){for(var c=Array(b),d=0;d<b;d++)c[d]=a[d];return c}return[]},bb=function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(va(d)){var e=a.length||0,f=d.length||0;a.length=e+f;for(var g=0;g<f;g++)a[e+g]=d[g]}else a.push(d)}},cb=function(a,b,c){z(null!=a.length);
return 2>=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)},db=function(a){for(var b={},c=0,d=0;d<a.length;){var e=a[d++];var f=e;f=r(f)?"o"+(f[wa]||(f[wa]=++xa)):(typeof f).charAt(0)+f;Object.prototype.hasOwnProperty.call(b,f)||(b[f]=!0,a[c++]=e)}a.length=c};var eb=function(a,b){for(var c=a.split("%s"),d="",e=Array.prototype.slice.call(arguments,1);e.length&&1<c.length;)d+=c.shift()+e.shift();return d+c.join("%s")},fb=String.prototype.trim?function(a){return a.trim()}:function(a){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(a)[1]},nb=function(a){if(!gb.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(hb,"&amp;"));-1!=a.indexOf("<")&&(a=a.replace(ib,"&lt;"));-1!=a.indexOf(">")&&(a=a.replace(jb,"&gt;"));-1!=a.indexOf('"')&&(a=a.replace(kb,"&quot;"));-1!=
a.indexOf("'")&&(a=a.replace(lb,"&#39;"));-1!=a.indexOf("\x00")&&(a=a.replace(mb,"&#0;"));return a},hb=/&/g,ib=/</g,jb=/>/g,kb=/"/g,lb=/'/g,mb=/\x00/g,gb=/[\x00&<>"']/,ob=function(a,b){return a<b?-1:a>b?1:0},pb=function(a){var b=1;a=a.split(":");for(var c=[];0<b&&a.length;)c.push(a.shift()),b--;a.length&&c.push(a.join(":"));return c};var qb;a:{var rb=k.navigator;if(rb){var sb=rb.userAgent;if(sb){qb=sb;break a}}qb=""}var tb=function(a){return-1!=qb.indexOf(a)};var ub=function(a,b,c){for(var d in a)b.call(c,a[d],d,a)},vb=function(a,b){var c={},d;for(d in a)b.call(void 0,a[d],d,a)&&(c[d]=a[d]);return c},wb=function(a,b,c){var d={},e;for(e in a)d[e]=b.call(c,a[e],e,a);return d},xb=function(a,b){for(var c in a)if(b.call(void 0,a[c],c,a))return!0;return!1},yb=function(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b},zb=function(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b},Ab=function(a,b){for(var c in a)if(a[c]==b)return!0;return!1},Cb=function(a){var b=
Bb,c;for(c in b)if(a.call(void 0,b[c],c,b))return c},Db=function(a){for(var b in a)return!1;return!0},Eb=function(a,b){b in a&&delete a[b]},Fb=function(a){var b={},c;for(c in a)b[c]=a[c];return b},Gb=function(a){var b=ta(a);if("object"==b||"array"==b){if(q(a.clone))return a.clone();b="array"==b?[]:{};for(var c in a)b[c]=Gb(a[c]);return b}return a},Hb="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),Ib=function(a,b){for(var c,d,e=1;e<arguments.length;e++){d=
arguments[e];for(c in d)a[c]=d[c];for(var f=0;f<Hb.length;f++)c=Hb[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};var Jb=function(a){Jb[" "](a);return a};Jb[" "]=sa;var Lb=function(a,b){var c=Kb;return Object.prototype.hasOwnProperty.call(c,a)?c[a]:c[a]=b(a)};var Mb=tb("Opera"),Nb=tb("Trident")||tb("MSIE"),Ob=tb("Edge"),Pb=tb("Gecko")&&!(-1!=qb.toLowerCase().indexOf("webkit")&&!tb("Edge"))&&!(tb("Trident")||tb("MSIE"))&&!tb("Edge"),Qb=-1!=qb.toLowerCase().indexOf("webkit")&&!tb("Edge"),Rb=function(){var a=k.document;return a?a.documentMode:void 0},Sb;
a:{var Tb="",Ub=function(){var a=qb;if(Pb)return/rv:([^\);]+)(\)|;)/.exec(a);if(Ob)return/Edge\/([\d\.]+)/.exec(a);if(Nb)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(Qb)return/WebKit\/(\S+)/.exec(a);if(Mb)return/(?:Version)[ \/]?(\S+)/.exec(a)}();Ub&&(Tb=Ub?Ub[1]:"");if(Nb){var Vb=Rb();if(null!=Vb&&Vb>parseFloat(Tb)){Sb=String(Vb);break a}}Sb=Tb}
var Wb=Sb,Kb={},Xb=function(a){return Lb(a,function(){for(var b=0,c=fb(String(Wb)).split("."),d=fb(String(a)).split("."),e=Math.max(c.length,d.length),f=0;0==b&&f<e;f++){var g=c[f]||"",l=d[f]||"";do{g=/(\d*)(\D*)(.*)/.exec(g)||["","","",""];l=/(\d*)(\D*)(.*)/.exec(l)||["","","",""];if(0==g[0].length&&0==l[0].length)break;b=ob(0==g[1].length?0:parseInt(g[1],10),0==l[1].length?0:parseInt(l[1],10))||ob(0==g[2].length,0==l[2].length)||ob(g[2],l[2]);g=g[3];l=l[3]}while(0==b)}return 0<=b})},Yb;var Zb=k.document;
Yb=Zb&&Nb?Rb()||("CSS1Compat"==Zb.compatMode?parseInt(Wb,10):5):void 0;var $b=Object.freeze||function(a){return a};var ac=!Nb||9<=Number(Yb),bc=Nb&&!Xb("9"),cc=function(){if(!k.addEventListener||!Object.defineProperty)return!1;var a=!1,b=Object.defineProperty({},"passive",{get:function(){a=!0}});try{k.addEventListener("test",sa,b),k.removeEventListener("test",sa,b)}catch(c){}return a}();var dc=function(a,b){y.call(this,a?a.type:"");this.relatedTarget=this.currentTarget=this.target=null;this.button=this.screenY=this.screenX=this.clientY=this.clientX=this.offsetY=this.offsetX=0;this.key="";this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.state=null;this.pointerId=0;this.pointerType="";this.Y=null;a&&this.init(a,b)};w(dc,y);var ec=$b({2:"touch",3:"pen",4:"mouse"});
dc.prototype.init=function(a,b){var c=this.type=a.type,d=a.changedTouches&&a.changedTouches.length?a.changedTouches[0]:null;this.target=a.target||a.srcElement;this.currentTarget=b;if(b=a.relatedTarget){if(Pb){a:{try{Jb(b.nodeName);var e=!0;break a}catch(f){}e=!1}e||(b=null)}}else"mouseover"==c?b=a.fromElement:"mouseout"==c&&(b=a.toElement);this.relatedTarget=b;d?(this.clientX=void 0!==d.clientX?d.clientX:d.pageX,this.clientY=void 0!==d.clientY?d.clientY:d.pageY,this.screenX=d.screenX||0,this.screenY=
d.screenY||0):(this.offsetX=Qb||void 0!==a.offsetX?a.offsetX:a.layerX,this.offsetY=Qb||void 0!==a.offsetY?a.offsetY:a.layerY,this.clientX=void 0!==a.clientX?a.clientX:a.pageX,this.clientY=void 0!==a.clientY?a.clientY:a.pageY,this.screenX=a.screenX||0,this.screenY=a.screenY||0);this.button=a.button;this.keyCode=a.keyCode||0;this.key=a.key||"";this.charCode=a.charCode||("keypress"==c?a.keyCode:0);this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.pointerId=
a.pointerId||0;this.pointerType=n(a.pointerType)?a.pointerType:ec[a.pointerType]||"";this.state=a.state;this.Y=a;a.defaultPrevented&&this.preventDefault()};dc.prototype.stopPropagation=function(){dc.h.stopPropagation.call(this);this.Y.stopPropagation?this.Y.stopPropagation():this.Y.cancelBubble=!0};
dc.prototype.preventDefault=function(){dc.h.preventDefault.call(this);var a=this.Y;if(a.preventDefault)a.preventDefault();else if(a.returnValue=!1,bc)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(b){}};var fc="closure_listenable_"+(1E6*Math.random()|0),gc=function(a){return!(!a||!a[fc])},hc=0;var ic=function(a,b,c,d,e){this.listener=a;this.Tb=null;this.src=b;this.type=c;this.capture=!!d;this.ja=e;this.key=++hc;this.Ta=this.zb=!1},jc=function(a){a.Ta=!0;a.listener=null;a.Tb=null;a.src=null;a.ja=null};var kc=function(a){this.src=a;this.G={};this.ub=0};kc.prototype.add=function(a,b,c,d,e){var f=a.toString();a=this.G[f];a||(a=this.G[f]=[],this.ub++);var g=lc(a,b,d,e);-1<g?(b=a[g],c||(b.zb=!1)):(b=new ic(b,this.src,f,!!d,e),b.zb=c,a.push(b));return b};kc.prototype.remove=function(a,b,c,d){a=a.toString();if(!(a in this.G))return!1;var e=this.G[a];b=lc(e,b,c,d);return-1<b?(jc(e[b]),Ya(e,b),0==e.length&&(delete this.G[a],this.ub--),!0):!1};
var mc=function(a,b){var c=b.type;c in a.G&&Za(a.G[c],b)&&(jc(b),0==a.G[c].length&&(delete a.G[c],a.ub--))};kc.prototype.qb=function(a){a=a&&a.toString();var b=0,c;for(c in this.G)if(!a||c==a){for(var d=this.G[c],e=0;e<d.length;e++)++b,jc(d[e]);delete this.G[c];this.ub--}};kc.prototype.fb=function(a,b,c,d){a=this.G[a.toString()];var e=-1;a&&(e=lc(a,b,c,d));return-1<e?a[e]:null};
kc.prototype.hasListener=function(a,b){var c=m(a),d=c?a.toString():"",e=m(b);return xb(this.G,function(a){for(var f=0;f<a.length;++f)if(!(c&&a[f].type!=d||e&&a[f].capture!=b))return!0;return!1})};var lc=function(a,b,c,d){for(var e=0;e<a.length;++e){var f=a[e];if(!f.Ta&&f.listener==b&&f.capture==!!c&&f.ja==d)return e}return-1};var nc="closure_lm_"+(1E6*Math.random()|0),oc={},pc=0,rc=function(a,b,c,d,e){if(d&&d.once)return qc(a,b,c,d,e);if(p(b)){for(var f=0;f<b.length;f++)rc(a,b[f],c,d,e);return null}c=sc(c);return gc(a)?a.ea(b,c,r(d)?!!d.capture:!!d,e):uc(a,b,c,!1,d,e)},uc=function(a,b,c,d,e,f){if(!b)throw Error("Invalid event type");var g=r(e)?!!e.capture:!!e,l=vc(a);l||(a[nc]=l=new kc(a));c=l.add(b,c,d,g,f);if(c.Tb)return c;d=wc();c.Tb=d;d.src=a;d.listener=c;if(a.addEventListener)cc||(e=g),void 0===e&&(e=!1),a.addEventListener(b.toString(),
d,e);else if(a.attachEvent)a.attachEvent(xc(b.toString()),d);else if(a.addListener&&a.removeListener)z("change"===b,"MediaQueryList only has a change event"),a.addListener(d);else throw Error("addEventListener and attachEvent are unavailable.");pc++;return c},wc=function(){var a=yc,b=ac?function(c){return a.call(b.src,b.listener,c)}:function(c){c=a.call(b.src,b.listener,c);if(!c)return c};return b},qc=function(a,b,c,d,e){if(p(b)){for(var f=0;f<b.length;f++)qc(a,b[f],c,d,e);return null}c=sc(c);return gc(a)?
a.nb(b,c,r(d)?!!d.capture:!!d,e):uc(a,b,c,!0,d,e)},zc=function(a,b,c,d,e){if(p(b))for(var f=0;f<b.length;f++)zc(a,b[f],c,d,e);else d=r(d)?!!d.capture:!!d,c=sc(c),gc(a)?a.fc(b,c,d,e):a&&(a=vc(a))&&(b=a.fb(b,c,d,e))&&Ac(b)},Ac=function(a){if(!oa(a)&&a&&!a.Ta){var b=a.src;if(gc(b))mc(b.X,a);else{var c=a.type,d=a.Tb;b.removeEventListener?b.removeEventListener(c,d,a.capture):b.detachEvent?b.detachEvent(xc(c),d):b.addListener&&b.removeListener&&b.removeListener(d);pc--;(c=vc(b))?(mc(c,a),0==c.ub&&(c.src=
null,b[nc]=null)):jc(a)}}},xc=function(a){return a in oc?oc[a]:oc[a]="on"+a},Cc=function(a,b,c,d){var e=!0;if(a=vc(a))if(b=a.G[b.toString()])for(b=b.concat(),a=0;a<b.length;a++){var f=b[a];f&&f.capture==c&&!f.Ta&&(f=Bc(f,d),e=e&&!1!==f)}return e},Bc=function(a,b){var c=a.listener,d=a.ja||a.src;a.zb&&Ac(a);return c.call(d,b)},yc=function(a,b){if(a.Ta)return!0;if(!ac){var c=b||ra("window.event");b=new dc(c,this);var d=!0;if(!(0>c.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.Ca&&0<=e;e--){b.currentTarget=c[e];var f=Cc(c[e],a,!0,b);d=d&&f}for(e=0;!b.Ca&&e<c.length;e++)b.currentTarget=c[e],f=Cc(c[e],a,!1,b),d=d&&f}return d}return Bc(a,new dc(b,this))},vc=function(a){a=a[nc];return a instanceof kc?a:null},Dc="__closure_events_fn_"+(1E9*Math.random()>>>0),sc=function(a){z(a,"Listener can not be null.");if(q(a))return a;z(a.handleEvent,
"An object listener must have handleEvent method.");a[Dc]||(a[Dc]=function(b){return a.handleEvent(b)});return a[Dc]};var A=function(){x.call(this);this.X=new kc(this);this.le=this;this.Tc=null};w(A,x);A.prototype[fc]=!0;h=A.prototype;h.addEventListener=function(a,b,c,d){rc(this,a,b,c,d)};h.removeEventListener=function(a,b,c,d){zc(this,a,b,c,d)};
h.dispatchEvent=function(a){Ec(this);var b=this.Tc;if(b){var c=[];for(var d=1;b;b=b.Tc)c.push(b),z(1E3>++d,"infinite loop")}b=this.le;d=a.type||a;if(n(a))a=new y(a,b);else if(a instanceof y)a.target=a.target||b;else{var e=a;a=new y(d,b);Ib(a,e)}e=!0;if(c)for(var f=c.length-1;!a.Ca&&0<=f;f--){var g=a.currentTarget=c[f];e=Fc(g,d,!0,a)&&e}a.Ca||(g=a.currentTarget=b,e=Fc(g,d,!0,a)&&e,a.Ca||(e=Fc(g,d,!1,a)&&e));if(c)for(f=0;!a.Ca&&f<c.length;f++)g=a.currentTarget=c[f],e=Fc(g,d,!1,a)&&e;return e};
h.f=function(){A.h.f.call(this);this.X&&this.X.qb(void 0);this.Tc=null};h.ea=function(a,b,c,d){Ec(this);return this.X.add(String(a),b,!1,c,d)};h.nb=function(a,b,c,d){return this.X.add(String(a),b,!0,c,d)};h.fc=function(a,b,c,d){this.X.remove(String(a),b,c,d)};var Fc=function(a,b,c,d){b=a.X.G[String(b)];if(!b)return!0;b=b.concat();for(var e=!0,f=0;f<b.length;++f){var g=b[f];if(g&&!g.Ta&&g.capture==c){var l=g.listener,v=g.ja||g.src;g.zb&&mc(a.X,g);e=!1!==l.call(v,d)&&e}}return e&&0!=d.$d};
A.prototype.fb=function(a,b,c,d){return this.X.fb(String(a),b,c,d)};A.prototype.hasListener=function(a,b){return this.X.hasListener(m(a)?String(a):void 0,b)};var Ec=function(a){z(a.X,"Event target is not initialized. Did you call the superclass (goog.events.EventTarget) constructor?")};var Gc=function(a){return a};var Hc="StopIteration"in k?k.StopIteration:{message:"StopIteration",stack:""},Ic=function(){};Ic.prototype.next=function(){throw Hc;};Ic.prototype.Ia=function(){return this};
var Jc=function(a){if(a instanceof Ic)return a;if("function"==typeof a.Ia)return a.Ia(!1);if(va(a)){var b=0,c=new Ic;c.next=function(){for(;;){if(b>=a.length)throw Hc;if(b in a)return a[b++];b++}};return c}throw Error("Not implemented");},Kc=function(a,b){if(va(a))try{Oa(a,b,void 0)}catch(c){if(c!==Hc)throw c;}else{a=Jc(a);try{for(;;)b.call(void 0,a.next(),void 0,a)}catch(c){if(c!==Hc)throw c;}}};var B=function(a,b){this.s={};this.i=[];this.vb=this.l=0;var c=arguments.length;if(1<c){if(c%2)throw Error("Uneven number of arguments");for(var d=0;d<c;d+=2)this.set(arguments[d],arguments[d+1])}else a&&this.addAll(a)};h=B.prototype;h.m=function(){return this.l};h.w=function(){Lc(this);for(var a=[],b=0;b<this.i.length;b++)a.push(this.s[this.i[b]]);return a};h.$=function(){Lc(this);return this.i.concat()};h.oa=function(a){return Mc(this.s,a)};
h.ab=function(a){for(var b=0;b<this.i.length;b++){var c=this.i[b];if(Mc(this.s,c)&&this.s[c]==a)return!0}return!1};h.equals=function(a,b){if(this===a)return!0;if(this.l!=a.m())return!1;b=b||Nc;Lc(this);for(var c,d=0;c=this.i[d];d++)if(!b(this.get(c),a.get(c)))return!1;return!0};var Nc=function(a,b){return a===b};B.prototype.isEmpty=function(){return 0==this.l};B.prototype.clear=function(){this.s={};this.vb=this.l=this.i.length=0};
B.prototype.remove=function(a){return Mc(this.s,a)?(delete this.s[a],this.l--,this.vb++,this.i.length>2*this.l&&Lc(this),!0):!1};var Lc=function(a){if(a.l!=a.i.length){for(var b=0,c=0;b<a.i.length;){var d=a.i[b];Mc(a.s,d)&&(a.i[c++]=d);b++}a.i.length=c}if(a.l!=a.i.length){var e={};for(c=b=0;b<a.i.length;)d=a.i[b],Mc(e,d)||(a.i[c++]=d,e[d]=1),b++;a.i.length=c}};h=B.prototype;h.get=function(a,b){return Mc(this.s,a)?this.s[a]:b};
h.set=function(a,b){Mc(this.s,a)||(this.l++,this.i.push(a),this.vb++);this.s[a]=b};h.addAll=function(a){if(a instanceof B)for(var b=a.$(),c=0;c<b.length;c++)this.set(b[c],a.get(b[c]));else for(b in a)this.set(b,a[b])};h.forEach=function(a,b){for(var c=this.$(),d=0;d<c.length;d++){var e=c[d],f=this.get(e);a.call(b,f,e,this)}};h.clone=function(){return new B(this)};
h.Ia=function(a){Lc(this);var b=0,c=this.vb,d=this,e=new Ic;e.next=function(){if(c!=d.vb)throw Error("The map has changed since the iterator was created");if(b>=d.i.length)throw Hc;var e=d.i[b++];return a?e:d.s[e]};return e};var Mc=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};var Oc=function(a){if(a.m&&"function"==typeof a.m)a=a.m();else if(va(a)||n(a))a=a.length;else{var b=0,c;for(c in a)b++;a=b}return a},Pc=function(a){if(a.w&&"function"==typeof a.w)return a.w();if(n(a))return a.split("");if(va(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return yb(a)},Qc=function(a){if(a.$&&"function"==typeof a.$)return a.$();if(!a.w||"function"!=typeof a.w){if(va(a)||n(a)){var b=[];a=a.length;for(var c=0;c<a;c++)b.push(c);return b}return zb(a)}},Rc=function(a,b,c){if(a.forEach&&
"function"==typeof a.forEach)a.forEach(b,c);else if(va(a)||n(a))Oa(a,b,c);else for(var d=Qc(a),e=Pc(a),f=e.length,g=0;g<f;g++)b.call(c,e[g],d&&d[g],a)},Sc=function(a,b){if("function"==typeof a.every)return a.every(b,void 0);if(va(a)||n(a))return Sa(a,b,void 0);for(var c=Qc(a),d=Pc(a),e=d.length,f=0;f<e;f++)if(!b.call(void 0,d[f],c&&c[f],a))return!1;return!0};var C=function(a){this.s=new B;a&&this.addAll(a)},Tc=function(a){var b=typeof a;return"object"==b&&a||"function"==b?"o"+(a[wa]||(a[wa]=++xa)):b.substr(0,1)+a};h=C.prototype;h.m=function(){return this.s.m()};h.add=function(a){this.s.set(Tc(a),a)};h.addAll=function(a){a=Pc(a);for(var b=a.length,c=0;c<b;c++)this.add(a[c])};h.qb=function(a){a=Pc(a);for(var b=a.length,c=0;c<b;c++)this.remove(a[c])};h.remove=function(a){return this.s.remove(Tc(a))};h.clear=function(){this.s.clear()};h.isEmpty=function(){return this.s.isEmpty()};
h.contains=function(a){return this.s.oa(Tc(a))};var Uc=function(a,b){var c=new C;b=Pc(b);for(var d=0;d<b.length;d++){var e=b[d];a.contains(e)&&c.add(e)}return c},Vc=function(a,b){a=a.clone();a.qb(b);return a};C.prototype.w=function(){return this.s.w()};C.prototype.clone=function(){return new C(this)};C.prototype.equals=function(a){return this.m()==Oc(a)&&Wc(this,a)};
var Wc=function(a,b){var c=Oc(b);if(a.m()>c)return!1;!(b instanceof C)&&5<c&&(b=new C(b));return Sc(a,function(a){var c=b;return c.contains&&"function"==typeof c.contains?c.contains(a):c.ab&&"function"==typeof c.ab?c.ab(a):va(c)||n(c)?Wa(c,a):Ab(c,a)})};C.prototype.Ia=function(){return this.s.Ia(!1)};var Xc=function(a,b,c){A.call(this);this.Me=b;this.token=c;this.va=[];this.dd=new C;this.ta=0;this.url=a};w(Xc,A);u("ee.AbstractOverlay",Xc);var Yc=function(a,b,c){var d=1<<c,e=b.x%d;0>e&&(e+=d);return[a.Me,c,e,b.y].join("/")};Xc.prototype.Dc=function(){return this.va.length};var Zc=function(a){y.call(this,"tileevent");this.count=a};w(Zc,y);var $c={kind:"discovery#restDescription",name:"earthengine",version:"v1",rootUrl:"https://earthengine.googleapis.com/",servicePath:"",batchPath:"batch",id:"earthengine:v1",parameters:{"$.xgafv":{location:"query",required:!1},access_token:{location:"query",required:!1},alt:{location:"query",required:!1},callback:{location:"query",required:!1},fields:{location:"query",required:!1},key:{location:"query",required:!1},oauth_token:{location:"query",required:!1},prettyPrint:{location:"query",required:!1},
quotaUser:{location:"query",required:!1},uploadType:{location:"query",required:!1},upload_protocol:{location:"query",required:!1}},resources:{algorithms:{methods:{list:{id:"earthengine.algorithms.list",path:"v1/algorithms",httpMethod:"GET"}}},assets:{methods:{copy:{id:"earthengine.assets.copy",path:"v1/assets:copy",httpMethod:"POST",request:{$ref:"CopyAssetRequest"}},create:{id:"earthengine.assets.create",path:"v1/assets",httpMethod:"POST",request:{$ref:"EarthEngineAsset"},parameters:{parent:{location:"query",
required:!1},assetId:{location:"query",required:!1}}},"delete":{id:"earthengine.assets.delete",path:"v1/{+name}",httpMethod:"DELETE",parameters:{name:{location:"path",required:!0}}},get:{id:"earthengine.assets.get",path:"v1/{+name}",httpMethod:"GET",parameters:{name:{location:"path",required:!0},path:{location:"query",required:!1}}},getPixels:{id:"earthengine.assets.getPixels",path:"v1/{+name}:getPixels",httpMethod:"POST",request:{$ref:"GetPixelsRequest"},parameters:{name:{location:"path",required:!0}}},
ingestImage:{id:"earthengine.assets.ingestImage",path:"v1/assets:ingestImage",httpMethod:"POST",request:{$ref:"IngestImageRequest"}},ingestTable:{id:"earthengine.assets.ingestTable",path:"v1/assets:ingestTable",httpMethod:"POST",request:{$ref:"IngestTableRequest"}},list:{id:"earthengine.assets.list",path:"v1/{+name}:list",httpMethod:"GET",parameters:{name:{location:"path",required:!0},parentPath:{location:"query",required:!1},pageSize:{location:"query",required:!1},pageToken:{location:"query",required:!1}}},
listFeatures:{id:"earthengine.assets.listFeatures",path:"v1/{+name}:listFeatures",httpMethod:"GET",parameters:{name:{location:"path",required:!0},pageSize:{location:"query",required:!1},pageToken:{location:"query",required:!1},region:{location:"query",required:!1},filter:{location:"query",required:!1}}},listImages:{id:"earthengine.assets.listImages",path:"v1/{+name}:listImages",httpMethod:"GET",parameters:{name:{location:"path",required:!0},parentPath:{location:"query",required:!1},pageSize:{location:"query",
required:!1},pageToken:{location:"query",required:!1},startTime:{location:"query",required:!1},endTime:{location:"query",required:!1},region:{location:"query",required:!1},filter:{location:"query",required:!1},view:{location:"query",required:!1}}},move:{id:"earthengine.assets.move",path:"v1/{+sourceName}:move",httpMethod:"POST",request:{$ref:"MoveAssetRequest"},parameters:{sourceName:{location:"path",required:!0}}},patch:{id:"earthengine.assets.patch",path:"v1/{+name}",httpMethod:"PATCH",request:{$ref:"UpdateAssetRequest"},
parameters:{name:{location:"path",required:!0}}}}},filmstrips:{methods:{create:{id:"earthengine.filmstrips.create",path:"v1/filmstrips",httpMethod:"POST",request:{$ref:"CreateFilmstripRequest"}},getPixels:{id:"earthengine.filmstrips.getPixels",path:"v1/{+name}:getPixels",httpMethod:"GET",parameters:{name:{location:"path",required:!0}}}}},maps:{methods:{create:{id:"earthengine.maps.create",path:"v1/maps",httpMethod:"POST",request:{$ref:"CreateMapRequest"}}},resources:{tiles:{methods:{get:{id:"earthengine.maps.tiles.get",
path:"v1/{+parent}/tiles/{zoom}/{x}/{y}",httpMethod:"GET",parameters:{parent:{location:"path",required:!0},zoom:{location:"path",required:!0},x:{location:"path",required:!0},y:{location:"path",required:!0}}}}}}},operations:{methods:{cancel:{id:"earthengine.operations.cancel",path:"v1/{+name}:cancel",httpMethod:"POST",request:{$ref:"CancelOperationRequest"},parameters:{name:{location:"path",required:!0}}},"delete":{id:"earthengine.operations.delete",path:"v1/{+name}",httpMethod:"DELETE",parameters:{name:{location:"path",
required:!0}}},get:{id:"earthengine.operations.get",path:"v1/{+name}",httpMethod:"GET",parameters:{name:{location:"path",required:!0}}},list:{id:"earthengine.operations.list",path:"v1/{+name}",httpMethod:"GET",parameters:{name:{location:"path",required:!0},filter:{location:"query",required:!1},pageSize:{location:"query",required:!1},pageToken:{location:"query",required:!1}}}}},projects:{methods:{},resources:{assets:{methods:{copy:{id:"earthengine.projects.assets.copy",path:"v1/{+sourceName}:copy",
httpMethod:"POST",request:{$ref:"CopyAssetRequest"},parameters:{sourceName:{location:"path",required:!0}}},create:{id:"earthengine.projects.assets.create",path:"v1/{+parent}/assets",httpMethod:"POST",request:{$ref:"EarthEngineAsset"},parameters:{parent:{location:"path",required:!0},assetId:{location:"query",required:!1}}},"delete":{id:"earthengine.projects.assets.delete",path:"v1/{+name}",httpMethod:"DELETE",parameters:{name:{location:"path",required:!0}}},get:{id:"earthengine.projects.assets.get",
path:"v1/{+name}",httpMethod:"GET",parameters:{name:{location:"path",required:!0},path:{location:"query",required:!1}}},getIamPolicy:{id:"earthengine.projects.assets.getIamPolicy",path:"v1/{+resource}:getIamPolicy",httpMethod:"POST",request:{$ref:"GetIamPolicyRequest"},parameters:{resource:{location:"path",required:!0}}},getPixels:{id:"earthengine.projects.assets.getPixels",path:"v1/{+name}:getPixels",httpMethod:"POST",request:{$ref:"GetPixelsRequest"},parameters:{name:{location:"path",required:!0}}},
list:{id:"earthengine.projects.assets.list",path:"v1/{+name}:list",httpMethod:"GET",parameters:{name:{location:"path",required:!0},parentPath:{location:"query",required:!1},pageSize:{location:"query",required:!1},pageToken:{location:"query",required:!1}}},listFeatures:{id:"earthengine.projects.assets.listFeatures",path:"v1/{+name}:listFeatures",httpMethod:"GET",parameters:{name:{location:"path",required:!0},pageSize:{location:"query",required:!1},pageToken:{location:"query",required:!1},region:{location:"query",
required:!1},filter:{location:"query",required:!1}}},listImages:{id:"earthengine.projects.assets.listImages",path:"v1/{+name}:listImages",httpMethod:"GET",parameters:{name:{location:"path",required:!0},parentPath:{location:"query",required:!1},pageSize:{location:"query",required:!1},pageToken:{location:"query",required:!1},startTime:{location:"query",required:!1},endTime:{location:"query",required:!1},region:{location:"query",required:!1},filter:{location:"query",required:!1},view:{location:"query",
required:!1}}},move:{id:"earthengine.projects.assets.move",path:"v1/{+sourceName}:move",httpMethod:"POST",request:{$ref:"MoveAssetRequest"},parameters:{sourceName:{location:"path",required:!0}}},patch:{id:"earthengine.projects.assets.patch",path:"v1/{+name}",httpMethod:"PATCH",request:{$ref:"UpdateAssetRequest"},parameters:{name:{location:"path",required:!0}}},setIamPolicy:{id:"earthengine.projects.assets.setIamPolicy",path:"v1/{+resource}:setIamPolicy",httpMethod:"POST",request:{$ref:"SetIamPolicyRequest"},
parameters:{resource:{location:"path",required:!0}}},testIamPermissions:{id:"earthengine.projects.assets.testIamPermissions",path:"v1/{+resource}:testIamPermissions",httpMethod:"POST",request:{$ref:"TestIamPermissionsRequest"},parameters:{resource:{location:"path",required:!0}}}}}}},thumbnails:{methods:{create:{id:"earthengine.thumbnails.create",path:"v1/thumbnails",httpMethod:"POST",request:{$ref:"CreateThumbnailRequest"}},getPixels:{id:"earthengine.thumbnails.getPixels",path:"v1/{+name}:getPixels",
httpMethod:"GET",parameters:{name:{location:"path",required:!0}}}}},v1:{methods:{computeImage:{id:"earthengine.computeImage",path:"v1:computeImage",httpMethod:"POST",request:{$ref:"ComputeImageRequest"}},computeTable:{id:"earthengine.computeTable",path:"v1:computeTable",httpMethod:"POST",request:{$ref:"ComputeTableRequest"}},computeValue:{id:"earthengine.computeValue",path:"v1:computeValue",httpMethod:"POST",request:{$ref:"ComputeValueRequest"}},exportImage:{id:"earthengine.exportImage",path:"v1:exportImage",
httpMethod:"POST",request:{$ref:"ExportImageRequest"}},exportMap:{id:"earthengine.exportMap",path:"v1:exportMap",httpMethod:"POST",request:{$ref:"ExportMapRequest"}},exportTable:{id:"earthengine.exportTable",path:"v1:exportTable",httpMethod:"POST",request:{$ref:"ExportTableRequest"}},exportVideo:{id:"earthengine.exportVideo",path:"v1:exportVideo",httpMethod:"POST",request:{$ref:"ExportVideoRequest"}},exportVideoMap:{id:"earthengine.exportVideoMap",path:"v1:exportVideoMap",httpMethod:"POST",request:{$ref:"ExportVideoMapRequest"}},
ingestImage:{id:"earthengine.ingestImage",path:"v1:ingestImage",httpMethod:"POST",request:{$ref:"IngestImageRequest"}},ingestTable:{id:"earthengine.ingestTable",path:"v1:ingestTable",httpMethod:"POST",request:{$ref:"IngestTableRequest"}},listBuckets:{id:"earthengine.listBuckets",path:"v1:listBuckets",httpMethod:"GET"}}}},methods:{}};var ad=function(a,b){this.Je=100;this.xe=a;this.Ue=b;this.Pb=0;this.M=null};ad.prototype.get=function(){if(0<this.Pb){this.Pb--;var a=this.M;this.M=a.next;a.next=null}else a=this.xe();return a};ad.prototype.put=function(a){this.Ue(a);this.Pb<this.Je&&(this.Pb++,a.next=this.M,this.M=a)};var bd=function(a){k.setTimeout(function(){throw a;},0)},cd,dd=function(){var a=k.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!tb("Presto")&&(a=function(){var a=document.createElement("IFRAME");a.style.display="none";a.src="";document.documentElement.appendChild(a);var b=a.contentWindow;a=b.document;a.open();a.write("");a.close();var c="callImmediate"+Math.random(),d="file:"==b.location.protocol?"*":b.location.protocol+"//"+b.location.host;
a=t(function(a){if(("*"==d||a.origin==d)&&a.data==c)this.port1.onmessage()},this);b.addEventListener("message",a,!1);this.port1={};this.port2={postMessage:function(){b.postMessage(c,d)}}});if("undefined"!==typeof a&&!tb("Trident")&&!tb("MSIE")){var b=new a,c={},d=c;b.port1.onmessage=function(){if(m(c.next)){c=c.next;var a=c.rd;c.rd=null;a()}};return function(a){d.next={rd:a};d=d.next;b.port2.postMessage(0)}}return"undefined"!==typeof document&&"onreadystatechange"in document.createElement("SCRIPT")?
function(a){var b=document.createElement("SCRIPT");b.onreadystatechange=function(){b.onreadystatechange=null;b.parentNode.removeChild(b);b=null;a();a=null};document.documentElement.appendChild(b)}:function(a){k.setTimeout(a,0)}};var ed=function(){this.ic=this.Ha=null},gd=new ad(function(){return new fd},function(a){a.reset()});ed.prototype.add=function(a,b){var c=gd.get();c.set(a,b);this.ic?this.ic.next=c:(z(!this.Ha),this.Ha=c);this.ic=c};ed.prototype.remove=function(){var a=null;this.Ha&&(a=this.Ha,this.Ha=this.Ha.next,this.Ha||(this.ic=null),a.next=null);return a};var fd=function(){this.next=this.scope=this.Cc=null};fd.prototype.set=function(a,b){this.Cc=a;this.scope=b;this.next=null};
fd.prototype.reset=function(){this.next=this.scope=this.Cc=null};var ld=function(a,b){hd||id();jd||(hd(),jd=!0);kd.add(a,b)},hd,id=function(){if(k.Promise&&k.Promise.resolve){var a=k.Promise.resolve(void 0);hd=function(){a.then(md)}}else hd=function(){var a=md;!q(k.setImmediate)||k.Window&&k.Window.prototype&&!tb("Edge")&&k.Window.prototype.setImmediate==k.setImmediate?(cd||(cd=dd()),cd(a)):k.setImmediate(a)}},jd=!1,kd=new ed,md=function(){for(var a;a=kd.remove();){try{a.Cc.call(a.scope)}catch(b){bd(b)}gd.put(a)}jd=!1};var nd=function(a){if(!a)return!1;try{return!!a.$goog_Thenable}catch(b){return!1}};var qd=function(a){this.B=0;this.S=void 0;this.Ka=this.ha=this.u=null;this.Ib=this.yc=!1;if(a!=sa)try{var b=this;a.call(void 0,function(a){od(b,2,a)},function(a){if(!(a instanceof pd))try{if(a instanceof Error)throw a;throw Error("Promise rejected.");}catch(d){}od(b,3,a)})}catch(c){od(this,3,c)}},rd=function(){this.next=this.context=this.Qa=this.Ba=this.wa=null;this.yb=!1};rd.prototype.reset=function(){this.context=this.Qa=this.Ba=this.wa=null;this.yb=!1};
var sd=new ad(function(){return new rd},function(a){a.reset()}),td=function(a,b,c){var d=sd.get();d.Ba=a;d.Qa=b;d.context=c;return d};qd.prototype.then=function(a,b,c){null!=a&&Ka(a,"opt_onFulfilled should be a function.");null!=b&&Ka(b,"opt_onRejected should be a function. Did you pass opt_context as the second argument instead of the third?");return ud(this,q(a)?a:null,q(b)?b:null,c)};qd.prototype.$goog_Thenable=!0;
qd.prototype.cancel=function(a){0==this.B&&ld(function(){var b=new pd(a);vd(this,b)},this)};
var vd=function(a,b){if(0==a.B)if(a.u){var c=a.u;if(c.ha){for(var d=0,e=null,f=null,g=c.ha;g&&(g.yb||(d++,g.wa==a&&(e=g),!(e&&1<d)));g=g.next)e||(f=g);e&&(0==c.B&&1==d?vd(c,b):(f?(d=f,z(c.ha),z(null!=d),d.next==c.Ka&&(c.Ka=d),d.next=d.next.next):wd(c),xd(c,e,3,b)))}a.u=null}else od(a,3,b)},zd=function(a,b){a.ha||2!=a.B&&3!=a.B||yd(a);z(null!=b.Ba);a.Ka?a.Ka.next=b:a.ha=b;a.Ka=b},ud=function(a,b,c,d){var e=td(null,null,null);e.wa=new qd(function(a,g){e.Ba=b?function(c){try{var e=b.call(d,c);a(e)}catch(D){g(D)}}:
a;e.Qa=c?function(b){try{var e=c.call(d,b);!m(e)&&b instanceof pd?g(b):a(e)}catch(D){g(D)}}:g});e.wa.u=a;zd(a,e);return e.wa};qd.prototype.bf=function(a){z(1==this.B);this.B=0;od(this,2,a)};qd.prototype.cf=function(a){z(1==this.B);this.B=0;od(this,3,a)};
var od=function(a,b,c){if(0==a.B){a===c&&(b=3,c=new TypeError("Promise cannot resolve to itself"));a.B=1;a:{var d=c,e=a.bf,f=a.cf;if(d instanceof qd){null!=e&&Ka(e,"opt_onFulfilled should be a function.");null!=f&&Ka(f,"opt_onRejected should be a function. Did you pass opt_context as the second argument instead of the third?");zd(d,td(e||sa,f||null,a));var g=!0}else if(nd(d))d.then(e,f,a),g=!0;else{if(r(d))try{var l=d.then;if(q(l)){Ad(d,l,e,f,a);g=!0;break a}}catch(v){f.call(a,v);g=!0;break a}g=!1}}g||
(a.S=c,a.B=b,a.u=null,yd(a),3!=b||c instanceof pd||Bd(a,c))}},Ad=function(a,b,c,d,e){var f=!1,g=function(a){f||(f=!0,c.call(e,a))},l=function(a){f||(f=!0,d.call(e,a))};try{b.call(a,g,l)}catch(v){l(v)}},yd=function(a){a.yc||(a.yc=!0,ld(a.Ae,a))},wd=function(a){var b=null;a.ha&&(b=a.ha,a.ha=b.next,b.next=null);a.ha||(a.Ka=null);null!=b&&z(null!=b.Ba);return b};qd.prototype.Ae=function(){for(var a;a=wd(this);)xd(this,a,this.B,this.S);this.yc=!1};
var xd=function(a,b,c,d){if(3==c&&b.Qa&&!b.yb)for(;a&&a.Ib;a=a.u)a.Ib=!1;if(b.wa)b.wa.u=null,Cd(b,c,d);else try{b.yb?b.Ba.call(b.context):Cd(b,c,d)}catch(e){Dd.call(null,e)}sd.put(b)},Cd=function(a,b,c){2==b?a.Ba.call(a.context,c):a.Qa&&a.Qa.call(a.context,c)},Bd=function(a,b){a.Ib=!0;ld(function(){a.Ib&&Dd.call(null,b)})},Dd=bd,pd=function(a){Da.call(this,a)};w(pd,Da);pd.prototype.name="cancel";var Ed=function(a,b,c){if(q(a))c&&(a=t(a,c));else if(a&&"function"==typeof a.handleEvent)a=t(a.handleEvent,a);else throw Error("Invalid listener argument");return 2147483647<Number(b)?-1:k.setTimeout(a,b||0)};var Fd=function(a,b,c){x.call(this);this.Ke=null!=c?t(a,c):a;this.Ge=b;this.se=t(this.Qe,this);this.oc=[]};w(Fd,x);h=Fd.prototype;h.Xa=!1;h.pb=0;h.Fa=null;h.Bc=function(a){this.oc=arguments;this.Fa||this.pb?this.Xa=!0:Gd(this)};h.stop=function(){this.Fa&&(k.clearTimeout(this.Fa),this.Fa=null,this.Xa=!1,this.oc=[])};h.pause=function(){this.pb++};h.resume=function(){this.pb--;this.pb||!this.Xa||this.Fa||(this.Xa=!1,Gd(this))};h.f=function(){Fd.h.f.call(this);this.stop()};
h.Qe=function(){this.Fa=null;this.Xa&&!this.pb&&(this.Xa=!1,Gd(this))};var Gd=function(a){a.Fa=Ed(a.se,a.Ge);a.Ke.apply(null,a.oc)};var Jd=function(a,b){this.$c=a===Hd&&b||"";this.je=Id};Jd.prototype.Ic=!0;Jd.prototype.Fc=function(){return this.$c};Jd.prototype.toString=function(){return"Const{"+this.$c+"}"};var Kd=function(a){if(a instanceof Jd&&a.constructor===Jd&&a.je===Id)return a.$c;Ha("expected object of type Const, got '"+a+"'");return"type_error:Const"},Id={},Hd={};var Md=function(){this.Sb="";this.ke=Ld};Md.prototype.Ic=!0;Md.prototype.Fc=function(){return this.Sb};Md.prototype.toString=function(){return"TrustedResourceUrl{"+this.Sb+"}"};
var Nd=function(a){if(a instanceof Md&&a.constructor===Md&&a.ke===Ld)return a.Sb;Ha("expected object of type TrustedResourceUrl, got '"+a+"' of type "+ta(a));return"type_error:TrustedResourceUrl"},Sd=function(a){var b=Kd(Od);if(!Pd.test(b))throw Error("Invalid TrustedResourceUrl format: "+b);var c=b.replace(Qd,function(c,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));c=a[e];
return c instanceof Jd?Kd(c):encodeURIComponent(String(c))});return Rd(c)},Qd=/%{(\w+)}/g,Pd=/^((https:)?\/\/[0-9a-z.:[\]-]+\/|\/[^/\\]|[^:/\\%]+\/|[^:/\\%]*[?#]|about:blank#)/i,Ld={},Rd=function(a){var b=new Md;b.Sb=a;return b};var Ud=function(a){return(new Td(void 0)).A(a)},Td=function(a){this.Vb=a};Td.prototype.A=function(a){var b=[];Vd(this,a,b);return b.join("")};
var Vd=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;f<b;f++)c.push(e),e=d[f],Vd(a,a.Vb?a.Vb.call(d,String(f),e):e,c),e=",";c.push("]");return}if(b instanceof String||b instanceof Number||b instanceof Boolean)b=b.valueOf();else{c.push("{");f="";for(d in b)Object.prototype.hasOwnProperty.call(b,d)&&(e=b[d],"function"!=typeof e&&(c.push(f),Wd(d,c),c.push(":"),Vd(a,a.Vb?a.Vb.call(b,d,e):e,c),f=","));c.push("}");return}}switch(typeof b){case "string":Wd(b,
c);break;case "number":c.push(isFinite(b)&&!isNaN(b)?String(b):"null");break;case "boolean":c.push(String(b));break;case "function":c.push("null");break;default:throw Error("Unknown type: "+typeof b);}}},Xd={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\u000b"},Yd=/\uffff/.test("\uffff")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g,Wd=function(a,b){b.push('"',a.replace(Yd,function(a){var b=Xd[a];b||(b="\\u"+(a.charCodeAt(0)|65536).toString(16).substr(1),
Xd[a]=b);return b}),'"')};var Zd=!Nb||9<=Number(Yb),$d=!Pb&&!Nb||Nb&&9<=Number(Yb)||Pb&&Xb("1.9.1");var be=function(){this.Rb="";this.ie=ae};be.prototype.Ic=!0;be.prototype.Fc=function(){return this.Rb};be.prototype.toString=function(){return"SafeUrl{"+this.Rb+"}"};
var ce=function(a){if(a instanceof be&&a.constructor===be&&a.ie===ae)return a.Rb;Ha("expected object of type SafeUrl, got '"+a+"' of type "+ta(a));return"type_error:SafeUrl"},de=/^(?: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)|text\/csv|video\/(?:mpeg|mp4|ogg|webm|quicktime))$/i,ge=function(a){if(de.test(a.type)){var b=m(k.URL)&&m(k.URL.createObjectURL)?k.URL:m(k.webkitURL)&&m(k.webkitURL.createObjectURL)?k.webkitURL:
m(k.createObjectURL)?k: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 fe(a)},ae={},fe=function(a){var b=new be;b.Rb=a;return b};fe("about:blank");var he=function(a,b){var c=(c=a&&a.ownerDocument)&&(c.defaultView||c.parentWindow)||k;if("undefined"!=typeof c.HTMLScriptElement&&"undefined"!=typeof c.Location&&"undefined"!=typeof c.Element){c=a&&(a instanceof c.HTMLScriptElement||!(a instanceof c.Location||a instanceof c.Element));var d=r(a)?a.constructor.displayName||a.constructor.name||Object.prototype.toString.call(a):void 0===a?"undefined":null===a?"null":typeof a;z(c,"Argument is not a %s (or a non-Element, non-Location mock); got: %s","HTMLScriptElement",
d)}a.src=Nd(b);if(null===qa)b:{b=k.document;if((b=b.querySelector&&b.querySelector("script[nonce]"))&&(b=b.nonce||b.getAttribute("nonce"))&&pa.test(b)){qa=b;break b}qa=""}b=qa;b&&a.setAttribute("nonce",b)};var je=function(a,b){ub(b,function(b,d){b&&"object"==typeof b&&b.Ic&&(b=b.Fc());"style"==d?a.style.cssText=b:"class"==d?a.className=b:"for"==d?a.htmlFor=b:ie.hasOwnProperty(d)?a.setAttribute(ie[d],b):0==d.lastIndexOf("aria-",0)||0==d.lastIndexOf("data-",0)?a.setAttribute(d,b):a[d]=b})},ie={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",nonce:"nonce",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",
width:"width"},le=function(a,b,c){return ke(document,arguments)},ke=function(a,b){var c=String(b[0]),d=b[1];if(!Zd&&d&&(d.name||d.type)){c=["<",c];d.name&&c.push(' name="',nb(d.name),'"');if(d.type){c.push(' type="',nb(d.type),'"');var e={};Ib(e,d);delete e.type;d=e}c.push(">");c=c.join("")}c=a.createElement(c);d&&(n(d)?c.className=d:p(d)?c.className=d.join(" "):je(c,d));2<b.length&&me(a,c,b,2);return c},me=function(a,b,c,d){function e(c){c&&b.appendChild(n(c)?a.createTextNode(c):c)}for(;d<c.length;d++){var f=
c[d];!va(f)||r(f)&&0<f.nodeType?e(f):Oa(ne(f)?ab(f):f,e)}},oe=function(a){return a&&a.parentNode?a.parentNode.removeChild(a):null},pe=function(a){for(;a&&1!=a.nodeType;)a=a.nextSibling;return a},qe=function(a){z(a,"Node cannot be null or undefined.");return 9==a.nodeType?a:a.ownerDocument||a.document},ne=function(a){if(a&&"number"==typeof a.length){if(r(a))return"function"==typeof a.item||"string"==typeof a.item;if(q(a))return"function"==typeof a.item}return!1},re=function(a){this.Cb=a||k.document||
document};h=re.prototype;h.getElementsByTagName=function(a,b){return(b||this.Cb).getElementsByTagName(String(a))};h.we=function(a,b,c){return ke(this.Cb,arguments)};h.createElement=function(a){return this.Cb.createElement(String(a))};h.createTextNode=function(a){return this.Cb.createTextNode(String(a))};h.appendChild=function(a,b){z(null!=a&&null!=b,"goog.dom.appendChild expects non-null arguments");a.appendChild(b)};h.append=function(a,b){me(qe(a),a,arguments,1)};
h.canHaveChildren=function(a){if(1!=a.nodeType)return!1;switch(a.tagName){case "APPLET":case "AREA":case "BASE":case "BR":case "COL":case "COMMAND":case "EMBED":case "FRAME":case "HR":case "IMG":case "INPUT":case "IFRAME":case "ISINDEX":case "KEYGEN":case "LINK":case "NOFRAMES":case "NOSCRIPT":case "META":case "OBJECT":case "PARAM":case "SCRIPT":case "SOURCE":case "STYLE":case "TRACK":case "WBR":return!1}return!0};h.removeNode=oe;
h.Ed=function(){return $d&&void 0!=(void 0).children?(void 0).children:Pa((void 0).childNodes,function(a){return 1==a.nodeType})};h.contains=function(a,b){if(!a||!b)return!1;if(a.contains&&1==b.nodeType)return a==b||a.contains(b);if("undefined"!=typeof a.compareDocumentPosition)return a==b||!!(a.compareDocumentPosition(b)&16);for(;b&&a!=b;)b=b.parentNode;return b==a};/*
Portions of this code are from MochiKit, received by
The Closure Authors under the MIT license. All other code is Copyright
2005-2009 The Closure Authors. All Rights Reserved.
*/
var te=function(a){var b=se;this.Xb=[];this.Sd=b;this.vd=a||null;this.ib=this.Oa=!1;this.S=void 0;this.Yc=this.nd=this.pc=!1;this.ec=0;this.u=null;this.qc=0};te.prototype.cancel=function(a){if(this.Oa)this.S instanceof te&&this.S.cancel();else{if(this.u){var b=this.u;delete this.u;a?b.cancel(a):(b.qc--,0>=b.qc&&b.cancel())}this.Sd?this.Sd.call(this.vd,this):this.Yc=!0;this.Oa||ue(this,new ve(this))}};te.prototype.sd=function(a,b){this.pc=!1;we(this,a,b)};
var we=function(a,b,c){a.Oa=!0;a.S=c;a.ib=!b;xe(a)},ze=function(a){if(a.Oa){if(!a.Yc)throw new ye(a);a.Yc=!1}};te.prototype.callback=function(a){ze(this);Ae(a);we(this,!0,a)};var ue=function(a,b){ze(a);Ae(b);we(a,!1,b)},Ae=function(a){z(!(a instanceof te),"An execution sequence may not be initiated with a blocking Deferred.")},Be=function(a,b,c){z(!a.nd,"Blocking Deferreds can not be re-used");a.Xb.push([b,c,void 0]);a.Oa&&xe(a)};
te.prototype.then=function(a,b,c){var d,e,f=new qd(function(a,b){d=a;e=b});Be(this,d,function(a){a instanceof ve?f.cancel():e(a)});return f.then(a,b,c)};te.prototype.$goog_Thenable=!0;
var Ce=function(a){return Ra(a.Xb,function(a){return q(a[1])})},xe=function(a){if(a.ec&&a.Oa&&Ce(a)){var b=a.ec,c=De[b];c&&(k.clearTimeout(c.J),delete De[b]);a.ec=0}a.u&&(a.u.qc--,delete a.u);b=a.S;for(var d=c=!1;a.Xb.length&&!a.pc;){var e=a.Xb.shift(),f=e[0],g=e[1];e=e[2];if(f=a.ib?g:f)try{var l=f.call(e||a.vd,b);m(l)&&(a.ib=a.ib&&(l==b||l instanceof Error),a.S=b=l);if(nd(b)||"function"===typeof k.Promise&&b instanceof k.Promise)d=!0,a.pc=!0}catch(v){b=v,a.ib=!0,Ce(a)||(c=!0)}}a.S=b;d&&(l=t(a.sd,
a,!0),d=t(a.sd,a,!1),b instanceof te?(Be(b,l,d),b.nd=!0):b.then(l,d));c&&(b=new Ee(b),De[b.J]=b,a.ec=b.J)},ye=function(){Da.call(this)};w(ye,Da);ye.prototype.message="Deferred has already fired";ye.prototype.name="AlreadyCalledError";var ve=function(){Da.call(this)};w(ve,Da);ve.prototype.message="Deferred was canceled";ve.prototype.name="CanceledError";var Ee=function(a){this.J=k.setTimeout(t(this.af,this),0);this.Eb=a};
Ee.prototype.af=function(){z(De[this.J],"Cannot throw an error that is not scheduled.");delete De[this.J];throw this.Eb;};var De={};var Ie=function(a){var b={},c=b.document||document,d=Nd(a),e=document.createElement("SCRIPT"),f={ae:e,sb:void 0},g=new te(f),l=null,v=null!=b.timeout?b.timeout:5E3;0<v&&(l=window.setTimeout(function(){Fe(e,!0);ue(g,new Ge(1,"Timeout reached for loading script "+d))},v),f.sb=l);e.onload=e.onreadystatechange=function(){e.readyState&&"loaded"!=e.readyState&&"complete"!=e.readyState||(Fe(e,b.kf||!1,l),g.callback(null))};e.onerror=function(){Fe(e,!0,l);ue(g,new Ge(0,"Error while loading script "+d))};
f=b.attributes||{};Ib(f,{type:"text/javascript",charset:"UTF-8"});je(e,f);he(e,a);He(c).appendChild(e)},He=function(a){var b;return(b=(a||document).getElementsByTagName("HEAD"))&&0!=b.length?b[0]:a.documentElement},se=function(){if(this&&this.ae){var a=this.ae;a&&"SCRIPT"==a.tagName&&Fe(a,!0,this.sb)}},Fe=function(a,b,c){null!=c&&k.clearTimeout(c);a.onload=sa;a.onerror=sa;a.onreadystatechange=sa;b&&window.setTimeout(function(){oe(a)},0)},Ge=function(a,b){var c="Jsloader error (code #"+a+")";b&&(c+=
": "+b);Da.call(this,c);this.code=a};w(Ge,Da);var Je=function(a,b,c){this.reset(a,b,c,void 0,void 0)};Je.prototype.yd=null;var Ke=0;Je.prototype.reset=function(a,b,c,d,e){"number"==typeof e||Ke++;d||Ba();this.mb=a;delete this.yd};Je.prototype.ce=function(a){this.mb=a};var Le=function(a){this.Rd=a;this.Hd=this.rc=this.mb=this.u=null},Me=function(a,b){this.name=a;this.value=b};Me.prototype.toString=function(){return this.name};var Ne=new Me("SEVERE",1E3),Oe=new Me("INFO",800),Pe=new Me("CONFIG",700),Qe=new Me("FINE",500);Le.prototype.getName=function(){return this.Rd};Le.prototype.getParent=function(){return this.u};Le.prototype.Ed=function(){this.rc||(this.rc={});return this.rc};Le.prototype.ce=function(a){this.mb=a};
var Re=function(a){if(a.mb)return a.mb;if(a.u)return Re(a.u);Ha("Root logger has no level set.");return null};Le.prototype.log=function(a,b,c){if(a.value>=Re(this).value)for(q(b)&&(b=b()),a=new Je(a,String(b),this.Rd),c&&(a.yd=c),c=this;c;){var d=c,e=a;if(d.Hd)for(var f=0;b=d.Hd[f];f++)b(e);c=c.getParent()}};Le.prototype.info=function(a,b){this.log(Oe,a,b)};
var Se={},Te=null,Ue=function(a){Te||(Te=new Le(""),Se[""]=Te,Te.ce(Pe));var b;if(!(b=Se[a])){b=new Le(a);var c=a.lastIndexOf("."),d=a.substr(c+1);c=Ue(a.substr(0,c));c.Ed()[d]=b;b.u=c;Se[a]=b}return b};var Ve=function(a,b){a&&a.log(Qe,b,void 0)};var We=function(a){switch(a){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:return!0;default:return!1}};var Xe=function(){};Xe.prototype.qd=null;Xe.prototype.hb=function(){var a;(a=this.qd)||(a={},Ye(this)&&(a[0]=!0,a[1]=!0),a=this.qd=a);return a};var Ze=function(a,b){this.df=a;this.Re=b};w(Ze,Xe);Ze.prototype.tc=function(){return this.df()};Ze.prototype.hb=function(){return this.Re()};var $e=function(){return $e.zd.tc()};$e.he=!1;$e.hb=function(){return $e.zd.hb()};$e.lf=function(a,b){$e.be(new Ze(z(a),z(b)))};$e.be=function(a){$e.zd=a};var af=function(){};w(af,Xe);af.prototype.tc=function(){var a=Ye(this);return a?new ActiveXObject(a):new XMLHttpRequest};
var Ye=function(a){if($e.he)return"";if(!a.Id&&"undefined"==typeof XMLHttpRequest&&"undefined"!=typeof ActiveXObject){for(var b=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],c=0;c<b.length;c++){var d=b[c];try{return new ActiveXObject(d),a.Id=d}catch(e){}}throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed");}return a.Id};$e.be(new af);var bf=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/,cf=function(a,b){if(a){a=a.split("&");for(var c=0;c<a.length;c++){var d=a[c].indexOf("="),e=null;if(0<=d){var f=a[c].substring(0,d);e=a[c].substring(d+1)}else f=a[c];b(f,e?decodeURIComponent(e.replace(/\+/g," ")):"")}}};var E=function(a){A.call(this);this.headers=new B;this.kc=a||null;this.W=!1;this.jc=this.a=null;this.lb=this.Nd=this.Mb="";this.Aa=this.Jc=this.Lb=this.xc=!1;this.Ya=0;this.$b=null;this.Va="";this.gc=this.Se=this.ge=!1};w(E,A);var df=E.prototype,ef=Ue("goog.net.XhrIo");df.N=ef;var ff=/^https?$/i,gf=["POST","PUT"],hf=[];E.prototype.ue=function(){this.ba();Za(hf,this)};
E.prototype.send=function(a,b,c,d){if(this.a)throw Error("[goog.net.XhrIo] Object is active with another request="+this.Mb+"; newUri="+a);b=b?b.toUpperCase():"GET";this.Mb=a;this.lb="";this.Nd=b;this.xc=!1;this.W=!0;this.a=this.kc?this.kc.tc():$e();this.jc=this.kc?this.kc.hb():$e.hb();this.a.onreadystatechange=t(this.Vd,this);this.Se&&"onprogress"in this.a&&(this.a.onprogress=t(function(a){this.Ud(a,!0)},this),this.a.upload&&(this.a.upload.onprogress=t(this.Ud,this)));try{Ve(this.N,jf(this,"Opening Xhr")),
this.Jc=!0,this.a.open(b,String(a),!0),this.Jc=!1}catch(f){Ve(this.N,jf(this,"Error opening Xhr: "+f.message));this.Eb(5,f);return}a=c||"";var e=this.headers.clone();d&&Rc(d,function(a,b){e.set(b,a)});d=Va(e.$());c=k.FormData&&a instanceof k.FormData;!Wa(gf,b)||d||c||e.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");e.forEach(function(a,b){this.a.setRequestHeader(b,a)},this);this.Va&&(this.a.responseType=this.Va);"withCredentials"in this.a&&this.a.withCredentials!==this.ge&&
(this.a.withCredentials=this.ge);try{kf(this),0<this.Ya&&(this.gc=lf(this.a),Ve(this.N,jf(this,"Will abort after "+this.Ya+"ms if incomplete, xhr2 "+this.gc)),this.gc?(this.a.timeout=this.Ya,this.a.ontimeout=t(this.sb,this)):this.$b=Ed(this.sb,this.Ya,this)),Ve(this.N,jf(this,"Sending request")),this.Lb=!0,this.a.send(a),this.Lb=!1}catch(f){Ve(this.N,jf(this,"Send error: "+f.message)),this.Eb(5,f)}};
var lf=function(a){return Nb&&Xb(9)&&oa(a.timeout)&&m(a.ontimeout)},Ua=function(a){return"content-type"==a.toLowerCase()};E.prototype.sb=function(){"undefined"!=typeof na&&this.a&&(this.lb="Timed out after "+this.Ya+"ms, aborting",Ve(this.N,jf(this,this.lb)),this.dispatchEvent("timeout"),this.abort(8))};E.prototype.Eb=function(a,b){this.W=!1;this.a&&(this.Aa=!0,this.a.abort(),this.Aa=!1);this.lb=b;mf(this);nf(this)};var mf=function(a){a.xc||(a.xc=!0,a.dispatchEvent("complete"),a.dispatchEvent("error"))};
E.prototype.abort=function(){this.a&&this.W&&(Ve(this.N,jf(this,"Aborting")),this.W=!1,this.Aa=!0,this.a.abort(),this.Aa=!1,this.dispatchEvent("complete"),this.dispatchEvent("abort"),nf(this))};E.prototype.f=function(){this.a&&(this.W&&(this.W=!1,this.Aa=!0,this.a.abort(),this.Aa=!1),nf(this,!0));E.h.f.call(this)};E.prototype.Vd=function(){this.ca||(this.Jc||this.Lb||this.Aa?of(this):this.Pe())};E.prototype.Pe=function(){of(this)};
var of=function(a){if(a.W&&"undefined"!=typeof na)if(a.jc[1]&&4==a.pa()&&2==a.getStatus())Ve(a.N,jf(a,"Local request error detected and ignored"));else if(a.Lb&&4==a.pa())Ed(a.Vd,0,a);else if(a.dispatchEvent("readystatechange"),4==a.pa()){Ve(a.N,jf(a,"Request complete"));a.W=!1;try{var b=a.getStatus(),c;if(!(c=We(b))){var d;if(d=0===b){var e=String(a.Mb).match(bf)[1]||null;if(!e&&k.self&&k.self.location){var f=k.self.location.protocol;e=f.substr(0,f.length-1)}d=!ff.test(e?e.toLowerCase():"")}c=d}if(c)a.dispatchEvent("complete"),
a.dispatchEvent("success");else{try{var g=2<a.pa()?a.a.statusText:""}catch(l){Ve(a.N,"Can not get status: "+l.message),g=""}a.lb=g+" ["+a.getStatus()+"]";mf(a)}}finally{nf(a)}}};E.prototype.Ud=function(a,b){z("progress"===a.type,"goog.net.EventType.PROGRESS is of the same type as raw XHR progress.");this.dispatchEvent(pf(a,"progress"));this.dispatchEvent(pf(a,b?"downloadprogress":"uploadprogress"))};
var pf=function(a,b){return{type:b,lengthComputable:a.lengthComputable,loaded:a.loaded,total:a.total}},nf=function(a,b){if(a.a){kf(a);var c=a.a,d=a.jc[0]?sa:null;a.a=null;a.jc=null;b||a.dispatchEvent("ready");try{c.onreadystatechange=d}catch(e){(a=a.N)&&a.log(Ne,"Problem encountered resetting onreadystatechange: "+e.message,void 0)}}},kf=function(a){a.a&&a.gc&&(a.a.ontimeout=null);a.$b&&(k.clearTimeout(a.$b),a.$b=null)};E.prototype.Kd=function(){return!!this.a};
E.prototype.pa=function(){return this.a?this.a.readyState:0};E.prototype.getStatus=function(){try{return 2<this.pa()?this.a.status:-1}catch(a){return-1}};
var qf=function(a){try{if(!a.a)return null;if("response"in a.a)return a.a.response;switch(a.Va){case "":case "text":return a.a.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in a.a)return a.a.mozResponseArrayBuffer}var b=a.N;b&&b.log(Ne,"Response type "+a.Va+" is not supported on this browser",void 0);return null}catch(c){return Ve(a.N,"Can not get response: "+c.message),null}};
E.prototype.getResponseHeader=function(a){if(this.a&&4==this.pa())return a=this.a.getResponseHeader(a),null===a?void 0:a};E.prototype.getAllResponseHeaders=function(){return this.a&&4==this.pa()?this.a.getAllResponseHeaders()||"":""};
var rf=function(a){var b={};a=a.getAllResponseHeaders().split("\r\n");for(var c=0;c<a.length;c++)if(!/^[\s\xa0]*$/.test(a[c])){var d=pb(a[c]),e=d[0];d=d[1];if(n(d)){d=d.trim();var f=b[e]||[];b[e]=f;f.push(d)}}return wb(b,function(a){return a.join(", ")})},jf=function(a,b){return b+" ["+a.Nd+" "+a.Mb+" "+a.getStatus()+"]"};var sf=function(a,b){this.ia=this.Ga=this.ra="";this.Sa=null;this.xa=this.ka="";this.T=this.He=!1;if(a instanceof sf){this.T=m(b)?b:a.T;tf(this,a.ra);var c=a.Ga;uf(this);this.Ga=c;c=a.ia;uf(this);this.ia=c;vf(this,a.Sa);this.setPath(a.getPath());wf(this,a.V.clone());a=a.xa;uf(this);this.xa=a}else a&&(c=String(a).match(bf))?(this.T=!!b,tf(this,c[1]||"",!0),a=c[2]||"",uf(this),this.Ga=xf(a),a=c[3]||"",uf(this),this.ia=xf(a,!0),vf(this,c[4]),this.setPath(c[5]||"",!0),wf(this,c[6]||"",!0),a=c[7]||"",
uf(this),this.xa=xf(a)):(this.T=!!b,this.V=new yf(null,this.T))};
sf.prototype.toString=function(){var a=[],b=this.ra;b&&a.push(zf(b,Af,!0),":");var c=this.ia;if(c||"file"==b)a.push("//"),(b=this.Ga)&&a.push(zf(b,Af,!0),"@"),a.push(encodeURIComponent(String(c)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),c=this.Sa,null!=c&&a.push(":",String(c));if(c=this.getPath())this.ia&&"/"!=c.charAt(0)&&a.push("/"),a.push(zf(c,"/"==c.charAt(0)?Bf:Cf,!0));(c=this.V.toString())&&a.push("?",c);(c=this.xa)&&a.push("#",zf(c,Df));return a.join("")};
sf.prototype.resolve=function(a){var b=this.clone(),c=!!a.ra;c?tf(b,a.ra):c=!!a.Ga;if(c){var d=a.Ga;uf(b);b.Ga=d}else c=!!a.ia;c?(d=a.ia,uf(b),b.ia=d):c=null!=a.Sa;d=a.getPath();if(c)vf(b,a.Sa);else if(c=!!a.ka){if("/"!=d.charAt(0))if(this.ia&&!this.ka)d="/"+d;else{var e=b.getPath().lastIndexOf("/");-1!=e&&(d=b.getPath().substr(0,e+1)+d)}e=d;if(".."==e||"."==e)d="";else if(-1!=e.indexOf("./")||-1!=e.indexOf("/.")){d=0==e.lastIndexOf("/",0);e=e.split("/");for(var f=[],g=0;g<e.length;){var l=e[g++];
"."==l?d&&g==e.length&&f.push(""):".."==l?((1<f.length||1==f.length&&""!=f[0])&&f.pop(),d&&g==e.length&&f.push("")):(f.push(l),d=!0)}d=f.join("/")}else d=e}c?b.setPath(d):c=""!==a.V.toString();c?wf(b,a.V.clone()):c=!!a.xa;c&&(a=a.xa,uf(b),b.xa=a);return b};sf.prototype.clone=function(){return new sf(this)};var tf=function(a,b,c){uf(a);a.ra=c?xf(b,!0):b;a.ra&&(a.ra=a.ra.replace(/:$/,""))},vf=function(a,b){uf(a);if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.Sa=b}else a.Sa=null};
sf.prototype.getPath=function(){return this.ka};sf.prototype.setPath=function(a,b){uf(this);this.ka=b?xf(a,!0):a;return this};var wf=function(a,b,c){uf(a);b instanceof yf?(a.V=b,a.V.Xc(a.T)):(c||(b=zf(b,Ef)),a.V=new yf(b,a.T))};sf.prototype.getQuery=function(){return this.V.toString()};sf.prototype.removeParameter=function(a){uf(this);this.V.remove(a);return this};var uf=function(a){if(a.He)throw Error("Tried to modify a read-only Uri");};sf.prototype.Xc=function(a){this.T=a;this.V&&this.V.Xc(a)};
var Ff=function(a){return a instanceof sf?a.clone():new sf(a,void 0)},xf=function(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""},zf=function(a,b,c){return n(a)?(a=encodeURI(a).replace(b,Gf),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null},Gf=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)},Af=/[#\/\?@]/g,Cf=/[#\?:]/g,Bf=/[#\?]/g,Ef=/[#\?@]/g,Df=/#/g,yf=function(a,b){this.l=this.o=null;this.P=a||null;this.T=!!b},Hf=function(a){a.o||
(a.o=new B,a.l=0,a.P&&cf(a.P,function(b,c){a.add(decodeURIComponent(b.replace(/\+/g," ")),c)}))};h=yf.prototype;h.m=function(){Hf(this);return this.l};h.add=function(a,b){Hf(this);this.P=null;a=If(this,a);var c=this.o.get(a);c||this.o.set(a,c=[]);c.push(b);this.l=Ia(this.l)+1;return this};h.remove=function(a){Hf(this);a=If(this,a);return this.o.oa(a)?(this.P=null,this.l=Ia(this.l)-this.o.get(a).length,this.o.remove(a)):!1};h.clear=function(){this.o=this.P=null;this.l=0};
h.isEmpty=function(){Hf(this);return 0==this.l};h.oa=function(a){Hf(this);a=If(this,a);return this.o.oa(a)};h.ab=function(a){var b=this.w();return Wa(b,a)};h.forEach=function(a,b){Hf(this);this.o.forEach(function(c,d){Oa(c,function(c){a.call(b,c,d,this)},this)},this)};h.$=function(){Hf(this);for(var a=this.o.w(),b=this.o.$(),c=[],d=0;d<b.length;d++)for(var e=a[d],f=0;f<e.length;f++)c.push(b[d]);return c};
h.w=function(a){Hf(this);var b=[];if(n(a))this.oa(a)&&(b=$a(b,this.o.get(If(this,a))));else{a=this.o.w();for(var c=0;c<a.length;c++)b=$a(b,a[c])}return b};h.set=function(a,b){Hf(this);this.P=null;a=If(this,a);this.oa(a)&&(this.l=Ia(this.l)-this.o.get(a).length);this.o.set(a,[b]);this.l=Ia(this.l)+1;return this};h.get=function(a,b){if(!a)return b;a=this.w(a);return 0<a.length?String(a[0]):b};
h.setValues=function(a,b){this.remove(a);0<b.length&&(this.P=null,this.o.set(If(this,a),ab(b)),this.l=Ia(this.l)+b.length)};h.toString=function(){if(this.P)return this.P;if(!this.o)return"";for(var a=[],b=this.o.$(),c=0;c<b.length;c++){var d=b[c],e=encodeURIComponent(String(d));d=this.w(d);for(var f=0;f<d.length;f++){var g=e;""!==d[f]&&(g+="="+encodeURIComponent(String(d[f])));a.push(g)}}return this.P=a.join("&")};
h.clone=function(){var a=new yf;a.P=this.P;this.o&&(a.o=this.o.clone(),a.l=this.l);return a};var If=function(a,b){b=String(b);a.T&&(b=b.toLowerCase());return b};yf.prototype.Xc=function(a){a&&!this.T&&(Hf(this),this.P=null,this.o.forEach(function(a,c){var b=c.toLowerCase();c!=b&&(this.remove(c),this.setValues(b,a))},this));this.T=a};yf.prototype.extend=function(a){for(var b=0;b<arguments.length;b++)Rc(arguments[b],function(a,b){this.add(b,a)},this)};var Pf=function(a,b,c,d,e){var f=["https://www.googleapis.com/auth/earthengine"];d&&(bb(f,d),db(f));Jf=a;Kf=f;null===a?Lf=null:Mf(function(){Nf(b,c,e||Aa(Of,b,c))})};u("ee.data.authenticateViaOauth",Pf);var Qf=function(a,b,c,d,e){Pf(a,b,c,d,e)};u("ee.data.authenticate",Qf);var Of=function(a,b){k.gapi.auth.authorize({client_id:Jf,immediate:!1,scope:Kf.join(" ")},Aa(Rf,a,b))};u("ee.data.authenticateViaPopup",Of);
var Tf=function(a,b,c,d){if("undefined"===typeof process)throw Error("Use of private key authentication in the browser is insecure. Consider using OAuth, instead.");var e=["https://www.googleapis.com/auth/earthengine","https://www.googleapis.com/auth/devstorage.read_write"];d&&(bb(e,d),db(e));Jf=a.client_email;Kf=e;var f=new googleapis.auth.JWT(a.client_email,null,a.private_key,e,null);Sf=function(a,b){f.authorize(function(a,c){a?b({error:a}):b({access_token:c.access_token,token_type:c.token_type,
expires_in:(c.expiry_date-Date.now())/1E3})})};Nf(b,c)};u("ee.data.authenticateViaPrivateKey",Tf);var Vf=function(a){Uf=a};u("ee.data.setApiKey",Vf);var Xf=function(a){if(a&&!ra("gapi"))throw Error('Cloud API requires <script src="https://apis.google.com/js/api.js">');Wf=a};u("ee.data.setCloudApiEnabled",Xf);
var Yf=function(a,b,c,d,e,f,g){var l=["https://www.googleapis.com/auth/earthengine"];e&&(bb(l,e),db(l));Jf=a;Kf=l;var v={token_type:b,access_token:c,state:l.join(" "),expires_in:d};Rf(void 0,void 0,v);!1===g?f&&f():Mf(function(){k.gapi.auth.setToken(v);f&&f()})};u("ee.data.setAuthToken",Yf);var Nf=function(a,b,c){Sf&&Jf&&Sf({client_id:String(Jf),immediate:!0,scope:Kf.join(" ")},function(d){"immediate_failed"==d.error&&c?c():Rf(a,b,d)})},Zf=function(a){Sf=a};u("ee.data.setAuthTokenRefresher",Zf);
var bg=function(){$f&&0<=Ba()-$f&&ag();return Lf};u("ee.data.getAuthToken",bg);var ag=function(){$f=Lf=null};u("ee.data.clearAuthToken",ag);var cg=function(){return Jf};u("ee.data.getAuthClientId",cg);var dg=function(){return Kf};u("ee.data.getAuthScopes",dg);
var kg=function(a,b,c){null!=a?eg=a:fg||(eg="https://earthengine.googleapis.com/api");null!=b?gg=b:fg||(gg="https://earthengine.googleapis.com");m(c)&&(hg=c);!Wf||ig&&null==a||(ig=new Promise(function(a,b){gapi.load("client",{callback:function(){var b=Object.assign({},$c,{rootUrl:eg.replace(/\/api$/,"")});gapi.client.init({apiKey:Uf,discoveryDocs:[b]}).then(function(){jg=!0;a()})},onerror:b})}));fg=!0},ng=function(a,b,c){kg();if(c){var d=function(a){return lg(a.status,function(b){return a.headers[b.toLowerCase()]},
a.body,null,c,b)};ig.then(function(){a().then(d,d)});return null}if(!jg)throw Error("Cloud API not ready");return mg(function(c){a().then(function(){return null},function(){return null});return lg(c().status,function(a){try{return c().getResponseHeader(a)}catch(g){return null}},c().responseText,null,void 0,b)})},mg=function(a){if(XMLHttpRequest.prototype.lc)throw Error("Cannot initialize synchronous request mode");var b=function(){this.fa=new this.lc;XMLHttpRequest.Ie=this.fa};b.prototype.open=function(a,
b,e,f,g){this.fa.open(a,b,!1,f,g)};b.prototype.send=function(a){this.fa.send(a)};b.prototype.abort=function(){this.fa.abort()};b.prototype.overrideMimeType=function(a){this.fa.overrideMimeType(a)};b.prototype.setRequestHeader=function(a,b){this.fa.setRequestHeader(a,b)};b.prototype.getResponseHeader=function(a){return this.fa.getResponseHeader(a)};b.prototype.getAllResponseHeaders=function(){return this.fa.getAllResponseHeaders()};"onabort onerror onload onloadstart onloadend onprogress onreadystatechange readyState responseText responseType responseXML status statusText upload withCredentials DONE UNSENT HEADERS_RECEIVED LOADING OPENED".split(" ").forEach(function(a){return Object.defineProperty(b.prototype,
a,{get:function(){return this.fa[a]},set:function(b){this.fa[a]=b}})});b.prototype.lc=XMLHttpRequest;XMLHttpRequest=b;try{return a(function(){return XMLHttpRequest.Ie})}finally{XMLHttpRequest=XMLHttpRequest.prototype.lc}},pg=function(a){og=a};u("ee.data.setDeadline",pg);u("ee.data.setParamAugmenter",function(a){qg=a||Gc});var rg=function(){return eg};u("ee.data.getApiBaseUrl",rg);var sg=function(){return gg};u("ee.data.getTileBaseUrl",sg);var tg=function(){return hg};u("ee.data.getXsrfToken",tg);
var ug=function(a){var b=F("/algorithms",null,a,"GET");return a?null:b},vg=function(a,b){a=Fb(a);return F("/mapid",G(a),b)};u("ee.data.getMapId",vg);var wg=function(a,b,c,d){var e=Math.pow(2,d);b%=e;0>b&&(b+=e);return[gg,"map",a.mapid,d,b,c].join("/")+"?token="+a.token};u("ee.data.getTileUrl",wg);var xg=function(a,b){a=Fb(a);return F("/value",G(a),b)};u("ee.data.getValue",xg);
var yg=function(a,b){a=Fb(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",yg);var zg=function(a){return gg+"/api/thumb?thumbid="+a.thumbid+"&token="+a.token};u("ee.data.makeThumbUrl",zg);var Ag=function(a,b){a=Fb(a);return F("/download",G(a),b)};u("ee.data.getDownloadId",Ag);var Bg=function(a){return gg+"/api/download?docid="+a.docid+"&token="+a.token};u("ee.data.makeDownloadUrl",Bg);
var Cg=function(a,b){a=Fb(a);return F("/table",G(a),b)};u("ee.data.getTableDownloadId",Cg);var Dg=function(a){return gg+"/api/table?docid="+a.docid+"&token="+a.token};u("ee.data.makeTableDownloadUrl",Dg);var Fg=function(a,b,c){var d=Eg;try{return Eg=a,b.call(c)}finally{Eg=d}};u("ee.data.withProfiling",Fg);var Gg=function(a,b){var c={};oa(a)&&(c.count=a);return F("/newtaskid",G(c),b)};u("ee.data.newTaskId",Gg);
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 Hg(void 0,a)});
var Hg=function(a,b){function c(b){var c={pagesize:500};a&&(c.pagesize=Math.min(c.pagesize,a-e.tasks.length));b&&(c.pagetoken=b);return c}function d(b,f){F("/tasklist",G(c(f)),function(c,f){f?b(e,f):(bb(e.tasks,c.tasks),!c.next_page_token||a&&e.tasks.length>=a?b(e):d(b,c.next_page_token))},"GET")}var e={tasks:[]};if(b)return d(b),null;for(b="";;){var f=F("/tasklist",G(c(b)),void 0,"GET");bb(e.tasks,f.tasks);b=f.next_page_token;if(!f.next_page_token||a&&e.tasks.length>=a)break}return e};
u("ee.data.getTaskListWithLimit",Hg);u("ee.data.cancelTask",function(a,b){return Ig(a,"CANCEL",b)});var Ig=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(!Ab(Jg,b))throw Error("Invalid action: "+b);return F("/updatetask",G({id:a,action:b}),c,"POST")};u("ee.data.updateTask",Ig);var Kg=function(a,b,c){b=Fb(b);b.id=a;return F("/processingrequest",G(b),c)};u("ee.data.startProcessing",Kg);
u("ee.data.startIngestion",function(a,b,c){a={id:a,request:Ud(b)};return F("/ingestionrequest",G(a),c)});u("ee.data.startTableIngestion",function(a,b,c){a={id:a,tableRequest:Ud(b)};return F("/ingestionrequest",G(a),c)});var Lg=function(a,b){return F("/info",(new yf).add("id",a),b)};u("ee.data.getInfo",Lg);
var Mg=function(a,b){if(Wf)return ng(function(){return gapi.client.earthengine.assets.list({name:"projects/earthengine-legacy/assets/"+a.id})},function(a){return a.assets},b);var c=G(a);return F("/list",c,b)};u("ee.data.getList",Mg);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=Ud(a));a={value:a};void 0!==b&&(a.id=b);a.force=c||!1;void 0!=d&&(a.properties=Ud(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:Ud(b)};F("/setacl",G(a),c)});u("ee.data.setAssetProperties",function(a,b,c){a={id:a,properties:Ud(b)};F("/setproperties",G(a),c)});u("ee.data.getAssetRootQuota",function(a,b){return F("/quota",G({id:a}),b,"GET")});
var Jg={ef:"CANCEL",hf:"UPDATE"},F=function(a,b,c,d){kg();var e=Eg,f={"Content-Type":"application/x-www-form-urlencoded"},g=bg();if(null!=g)f.Authorization=g;else if(c&&Sf&&Jf)return Nf(function(){Fg(e,function(){F(a,b,c,d)})}),null;g=d||"POST";b=b?b.clone():new yf;e&&b.add("profiling","1");null!=Uf&&b.add("key",Uf);b=qg(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 v=eg+a;if(c)return Ng.push(Og(v,c,g,
l,f)),Pg.Bc(),null;for(var D=function(a,b){this.setRequestHeader&&this.setRequestHeader(b,a)},M,ea=0;;){M=$e();M.open(g,v,!1);ub(f,D,M);M.send(l);if(429!=M.status||5<ea)break;ea++}return lg(M.status,function(a){try{return M.getResponseHeader(a)}catch(tc){return null}},M.responseText,e)},Og=function(a,b,c,d,e){var f=0,g={url:a,method:c,content:d,headers:e},l=Eg;g.callback=function(a){a=a.target;if(429==a.getStatus()&&10>f)return f++,setTimeout(function(){Ng.push(g);Pg.Bc()},Math.min(12E4,1E3*Math.pow(2,
f))),null;var c=lg,d=a.getStatus(),e=t(a.getResponseHeader,a);try{var v=a.a?a.a.responseText:""}catch(tc){Ve(a.N,"Can not get responseText: "+tc.message),v=""}return c(d,e,v,l,b)};return g},lg=function(a,b,c,d,e,f){f=void 0===f?function(a){return a.data}:f;var g=b("X-Earth-Engine-Computation-Profile");g&&d&&d(g);b=(b=b("Content-Type"))?b.replace(/;.*/,""):"application/json";if("application/json"==b||"text/json"==b)try{var l=JSON.parse(c);var v=f(l)}catch(M){var D="Invalid JSON: "+c}else D="Response was unexpectedly not JSON, but "+
b;if(r(l))"error"in l&&"message"in l.error?D=l.error.message:void 0===v&&(D="Malformed response: "+c);else if(0===a)D="Failed to contact Earth Engine servers. Please check your connection, firewall, or browser extension settings.";else if(200>a||300<=a)D="Server returned HTTP code: "+a;if(e)return e(v,D),null;if(!D)return v;throw Error(D);},Mf=function(a){var b=function(){k.gapi.config.update("client/cors",!0);Sf||(Sf=k.gapi.auth.authorize);a()};if(r(k.gapi)&&r(k.gapi.auth)&&q(k.gapi.auth.authorize))b();
else{for(var c=Ba().toString(36);c in k;)c+="_";k[c]=function(){delete k[c];b()};Ie(Sd({onload:c}))}},Rf=function(a,b,c){if(c.access_token){b=c.token_type+" "+c.access_token;if(c.expires_in||0===c.expires_in)c=900*c.expires_in,setTimeout(Nf,.9*c),$f=Ba()+c;Lf=b;a&&a()}else b&&b(c.error||"Unknown error.")},G=function(a){var b=new yf;a=ba(Object.entries(a));for(var c=a.next();!c.done;c=a.next()){var d=ba(c.value);c=d.next().value;d=d.next().value;b.set(c,d)}return b},Ng=[],Pg=new Fd(function(){var a=
Ng.shift();if(a){var b=a.url,c=a.callback,d=a.method,e=a.content;a=a.headers;var f=og,g=new E;hf.push(g);c&&g.ea("complete",c);g.nb("ready",g.ue);f&&(g.Ya=Math.max(0,f));g.send(b,d,e,a)}0==Ng.length||Pg.Bc()},350),eg=null,gg=null,hg=null,qg=Gc,Lf=null,$f=null,Jf=null,Kf=[],Sf=null,Od=new Jd(Hd,"https://apis.google.com/js/client.js?onload=%{onload}"),Uf=null,Wf=!1,ig=null,jg=!1,fg=!1,og=0,Eg=null;var Qg=function(){};var Rg=function(){this.ga=-1};var Sg=function(){this.ga=-1;this.ga=64;this.F=Array(4);this.pe=Array(this.ga);this.cc=this.Za=0;this.reset()};w(Sg,Rg);Sg.prototype.reset=function(){this.F[0]=1732584193;this.F[1]=4023233417;this.F[2]=2562383102;this.F[3]=271733878;this.cc=this.Za=0};
var Tg=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.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};
Sg.prototype.update=function(a,b){m(b)||(b=a.length);for(var c=b-this.ga,d=this.pe,e=this.Za,f=0;f<b;){if(0==e)for(;f<=c;)Tg(this,a,f),f+=this.ga;if(n(a))for(;f<b;){if(d[e++]=a.charCodeAt(f++),e==this.ga){Tg(this,d);e=0;break}}else for(;f<b;)if(d[e++]=a[f++],e==this.ga){Tg(this,d);e=0;break}}this.Za=e;this.cc+=b};
Sg.prototype.digest=function(){var a=Array((56>this.Za?this.ga:2*this.ga)-this.Za);a[0]=128;for(var b=1;b<a.length-8;++b)a[b]=0;var c=8*this.cc;for(b=a.length-8;b<a.length;++b)a[b]=c&255,c/=256;this.update(a);a=Array(16);for(b=c=0;4>b;++b)for(var d=0;32>d;d+=8)a[c++]=this.F[b]>>>d&255;return a};var Ug=function(a){this.wb="__ee_hash__";this.Mc=!1!==a;this.Wa=[];this.Na={};this.hd=[]};u("ee.Serializer",Ug);var Vg=new Td,Wg=new Sg,Yg=function(a,b){return Xg(new Ug(m(b)?b:!0),a)};u("ee.Serializer.encode",Yg);var Zg=function(a){return Vg.A(Yg(a))};u("ee.Serializer.toJSON",Zg);var $g=function(a){a=Xg(new Ug(!1),a);return"JSON"in k?k.JSON.stringify(a,null," "):Vg.A(a)};u("ee.Serializer.toReadableJSON",$g);
var Xg=function(a,b){b=a.Db(b);a.Mc&&(b=r(b)&&"ValueRef"==b.type&&1==a.Wa.length?a.Wa[0][1]:{type:"CompoundValue",scope:a.Wa,value:b},a.Wa=[],Oa(a.hd,t(function(a){delete a[this.wb]},a)),a.hd=[],a.Na={});return b};
Ug.prototype.Db=function(a){if(!m(a))throw Error("Can't encode an undefined value.");var b=r(a)?a[this.wb]:null;if(this.Mc&&null!=b&&this.Na[b])return{type:"ValueRef",value:this.Na[b]};if(null===a||"boolean"==typeof a||oa(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 Qg){var c=a.encode(t(this.Db,this));if(!(p(c)||r(c)&&"ArgumentRef"!=c.type))return c}else if(p(a))c=Qa(a,function(a){return this.Db(a)},
this);else if(r(a)&&!q(a))c=wb(a,function(a){if(!q(a))return this.Db(a)},this),Eb(c,this.wb),c={type:"Dictionary",value:c};else throw Error("Can't encode object: "+a);if(this.Mc){Wg.reset();Wg.update(Vg.A(c));b=Wg.digest().toString();if(this.Na[b])var d=this.Na[b];else d=String(this.Wa.length),this.Wa.push([d,c]),this.Na[b]=d;a[this.wb]=b;this.hd.push(a);return{type:"ValueRef",value:d}}return c};var H=function(a,b,c){if(!(this instanceof H))return ah(H,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.j=a;this.args=b;this.C=c||null};w(H,Qg);u("ee.ComputedObject",H);H.prototype.evaluate=function(a){if(!a||!q(a))throw Error("evaluate() requires a callback function.");xg({json:this.A()},a)};H.prototype.evaluate=H.prototype.evaluate;
H.prototype.D=function(a){return xg({json:this.A()},a)};H.prototype.getInfo=H.prototype.D;H.prototype.encode=function(a){if(null===this.j&&null===this.args)return{type:"ArgumentRef",value:this.C};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.j);b[n(a)?"functionName":"function"]=a;return b};H.prototype.A=function(){return Zg(this)};H.prototype.serialize=H.prototype.A;
H.prototype.toString=function(){return"ee."+this.name()+"("+$g(this)+")"};u("ee.ComputedObject.prototype.toString",H.prototype.toString);H.prototype.name=function(){return"ComputedObject"};H.prototype.jd=function(a,b){var c=ab(arguments);c[0]=this;a.apply(k,c);return this};H.prototype.aside=H.prototype.jd;
var bh=function(a,b){if(b instanceof a.constructor)return b;var c=function(){};c.prototype=a.constructor.prototype;a=new c;a.j=b.j;a.args=b.args;a.C=b.C;return a},ah=function(a,b){function c(){return a.apply(this,b)}c.prototype=a.prototype;return new c};var ch={},dh=function(a){return a.prototype instanceof H?a.prototype.name.call(null):a==Number?"Number":a==String?"String":a==Array?"Array":a==Date?"Date":"Object"},eh=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}},fh=function(a){return oa(a)||
a instanceof H&&"Number"==a.name()},gh=function(a){return n(a)||a instanceof H&&"String"==a.name()},hh=function(a){return r(a)&&!q(a)?(a=Object.getPrototypeOf(a),null!==a&&null===Object.getPrototypeOf(a)):!1};var I=function(){if(!(this instanceof I))return new I};w(I,Qg);u("ee.Function",I);var ih=Gc;I.prototype.call=function(a){return this.apply(jh(this,Array.prototype.slice.call(arguments,0)))};I.prototype.call=I.prototype.call;I.prototype.apply=function(a){a=new H(this,kh(this,a));return ih(a,this.L().returns)};I.prototype.apply=I.prototype.apply;
var lh=function(a,b,c){var d=m(b),e=a.L(),f=!1;if(1==c.length&&hh(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=Fb(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=jh(a,d?[b].concat(c):c);return a.apply(c)},kh=function(a,b){for(var c=a.L().args,d={},e={},f=0;f<c.length;f++){var g=c[f].name;if(g in b&&m(b[g]))d[g]=ih(b[g],c[f].type);else if(!c[f].optional)throw Error("Required argument ("+
g+") missing to function: "+a);e[g]=!0}c=[];for(var l in b)e[l]||c.push(l);if(0<c.length)throw Error("Unrecognized arguments ("+c+") to function: "+a);return d},jh=function(a,b){var c=a.L().args;if(c.length<b.length)throw Error("Too many ("+b.length+") arguments to function: "+a);a={};for(var d=0;d<b.length;d++)a[c[d].name]=b[d];return a};
I.prototype.toString=function(a,b){var c=this.L(),d=[];d.push(a||c.name);d.push("(");d.push(Qa(c.args.slice(b?1:0),function(a){return a.name}).join(", "));d.push(")\n");d.push("\n");c.description?d.push(c.description):d.push("Undocumented.");d.push("\n");if(c.args.length)for(d.push("\nArgs:\n"),a=0;a<c.args.length;a++){b&&0==a?d.push(" this:"):d.push("\n ");var e=c.args[a];d.push(e.name);d.push(" (");d.push(e.type);e.optional&&d.push(", optional");d.push("): ");e.description?d.push(e.description):
d.push("Undocumented.")}return d.join("")};I.prototype.A=function(){return Zg(this)};var J=function(a,b){if(!m(b))return mh(a);if(!(this instanceof J))return ah(J,arguments);this.sa=Gb(b);this.sa.name=a};w(J,I);u("ee.ApiFunction",J);var K=function(a,b){return I.prototype.call.apply(mh(a),Array.prototype.slice.call(arguments,1))};u("ee.ApiFunction._call",K);var nh=function(a,b){return mh(a).apply(b)};u("ee.ApiFunction._apply",nh);J.prototype.encode=function(){return this.sa.name};J.prototype.L=function(){return this.sa};
var oh=null,ph={},rh=function(){qh();return wb(oh,function(a){return a.L()})},sh=function(){qh();return vb(oh,function(a,b){return!ph[b]})},mh=function(a){var b=th(a);if(!b)throw Error("Unknown built-in function name: "+a);return b};u("ee.ApiFunction.lookup",mh);
var th=function(a){qh();return oh[a]||null},qh=function(a,b){if(oh)a&&a();else{var c=function(c,e){e?b&&b(Error(e)):(oh=wb(c,function(a,b){a.returns=a.returns.replace(/<.*>/,"");for(var c=0;c<a.args.length;c++)a.args[c].type=a.args[c].type.replace(/<.*>/,"");return new J(b,a)}),a&&a())};a?ug(c):c(ug())}},L=function(a,b,c,d){qh();var e=d||"";ub(oh,function(d,g){var f=g.split(".");if(2==f.length&&f[0]==b){f=e+f[1];var v=d.L();ph[g]=!0;var D=!1;v.args.length&&(g=v.args[0].type,D="Object"!=g&&eh(g,c));
g=D?a.prototype:a;f in g&&!g[f].signature||(g[f]=function(a){return lh(d,D?this:void 0,Array.prototype.slice.call(arguments,0))},g[f].toString=t(d.toString,d,f,D),g[f].signature=v)}})},uh=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 N=function(a,b){var c=vh(a),d=Qa(c,function(a){return a.replace(/^opt_/,"")});a=(a=k.EXPORTED_FN_INFO?k.EXPORTED_FN_INFO[a.toString()].name.split(".").pop()+"()":null)?" to function "+a:"";var e={},f=b[0],g=r(f)&&!q(f)&&!p(f)&&!(f instanceof H);if(1<b.length||!g){if(b.length>d.length)throw Error("Received too many arguments"+a+". Expected at most "+d.length+" but got "+b.length+".");for(f=0;f<b.length;f++)e[d[f]]=b[f]}else{g=new C(zb(f));var l=new C(d);if(Uc(l,g).isEmpty())e[d[0]]=b[0];else{b=
Vc(g,l);if(!b.isEmpty())throw Error("Unexpected arguments"+a+": "+b.w().join(", "));e=Fb(f)}}b=new C(zb(e));c=Vc(new C(Pa(c,function(a){return 0!=a.lastIndexOf("opt_",0)})),b);if(!c.isEmpty())throw Error("Missing required arguments"+a+": "+c.w().join(", "));return e},vh=function(a){var b=wh,c=[];k.EXPORTED_FN_INFO?(a=k.EXPORTED_FN_INFO[a.toString()],r(a)||xh(),c=a.paramNames,p(c)||xh()):(a=a.toString().replace(yh,"").match(b),null===a&&xh(),c=(a[1].split(",")||[]).map(function(a){return a.replace(zh,
"")}));return c},xh=function(){throw Error("Failed to locate function parameters.");},yh=/((\/\/.*$)|(\/\*[\s\S]*?\*\/)|(\s))/mg,wh=/^function[^\(]*\(([^\)]*)\)/m,zh=/=.*$/;var O=function(a,b,c){H.call(this,a,b,c);Ah()};w(O,H);u("ee.Element",O);var Bh=!1,Ah=function(){Bh||(L(O,"Element","Element"),Bh=!0)};O.prototype.name=function(){return"Element"};
O.prototype.set=function(a){var b;if(1>=arguments.length){var c=arguments[0];if(b=hh(c))a:{b=zb(c);var d=["properties"];if(va(b)&&va(d)&&b.length==d.length){for(var e=b.length,f=0;f<e;f++)if(b[f]!==d[f]){b=!1;break a}b=!0}else b=!1}b&&r(c.properties)&&(c=c.properties);if(hh(c)){b=this;for(var g in c)d=c[g],b=K("Element.set",b,g,d)}else if(c instanceof H&&th("Element.setMulti"))b=K("Element.setMulti",this,c);else throw Error("When Element.set() is passed one argument, it must be a dictionary.");}else{if(0!=
arguments.length%2)throw Error("When Element.set() is passed multiple arguments, there must be an even number of them.");b=this;for(c=0;c<arguments.length;c+=2)g=arguments[c],d=arguments[c+1],b=K("Element.set",b,g,d)}return bh(this,b)};O.prototype.set=O.prototype.set;var P=function(a,b,c,d){if(!(this instanceof P))return ah(P,arguments);if(!("type"in a)){var e=N(P,arguments);a=e.geoJson;b=e.proj;c=e.geodesic;d=e.evenOdd}Ch();e=null!=b||null!=c||null!=d;if(a instanceof H&&!(a instanceof P&&a.dc)){if(e)throw Error("Setting the CRS, geodesic, or evenOdd flag on a computed Geometry is not supported. Use Geometry.transform().");H.call(this,a.j,a.args,a.C)}else{a instanceof P&&(a=a.encode());if(!Dh(a))throw Error("Invalid GeoJSON geometry: "+JSON.stringify(a));H.call(this,
null,null);this.dc=a.type;this.ve=null!=a.coordinates?Gb(a.coordinates):null;this.Ce=a.geometries||null;if(null!=b)this.Uc=b;else if("crs"in a)if(r(a.crs)&&"name"==a.crs.type&&r(a.crs.properties)&&n(a.crs.properties.name))this.Uc=a.crs.properties.name;else throw Error("Invalid CRS declaration in GeoJSON: "+(new Td).A(a.crs));this.Gb=c;!m(this.Gb)&&"geodesic"in a&&(this.Gb=!!a.geodesic);this.Fb=d;!m(this.Fb)&&"evenOdd"in a&&(this.Fb=!!a.evenOdd)}};w(P,H);u("ee.Geometry",P);
var Eh=!1,Ch=function(){Eh||(L(P,"Geometry","Geometry"),Eh=!0)},Fh=function(a,b){if(!(this instanceof Fh))return Gh(Fh,arguments);var c=Hh(Fh,"Point",1,arguments);if(!(c instanceof H)){var d=c.coordinates;if(!p(d)||2!=d.length)throw Error("The Geometry.Point constructor requires 2 coordinates.");}P.call(this,c)};w(Fh,P);P.Point=Fh;var Ih=function(a,b){if(!(this instanceof Ih))return Gh(Ih,arguments);P.call(this,Hh(Ih,"MultiPoint",2,arguments))};w(Ih,P);P.MultiPoint=Ih;
var Jh=function(a,b,c,d){if(!(this instanceof Jh))return Gh(Jh,arguments);var e=Hh(Jh,"Rectangle",2,arguments);if(!(e instanceof H)){var f=e.coordinates;if(2!=f.length)throw Error("The Geometry.Rectangle constructor requires 2 points or 4 coordinates.");var g=f[0][0],l=f[0][1],v=f[1][0];f=f[1][1];e.coordinates=[[[g,f],[g,l],[v,l],[v,f]]];e.type="Polygon"}P.call(this,e)};w(Jh,P);P.Rectangle=Jh;
var Kh=function(a,b,c,d){if(!(this instanceof Kh))return Gh(Kh,arguments);P.call(this,Hh(Kh,"LineString",2,arguments))};w(Kh,P);P.LineString=Kh;var Lh=function(a,b,c,d){if(!(this instanceof Lh))return Gh(Lh,arguments);P.call(this,Hh(Lh,"LinearRing",2,arguments))};w(Lh,P);P.LinearRing=Lh;var Mh=function(a,b,c,d){if(!(this instanceof Mh))return Gh(Mh,arguments);P.call(this,Hh(Mh,"MultiLineString",3,arguments))};w(Mh,P);P.MultiLineString=Mh;
var Nh=function(a,b,c,d,e){if(!(this instanceof Nh))return Gh(Nh,arguments);P.call(this,Hh(Nh,"Polygon",3,arguments))};w(Nh,P);P.Polygon=Nh;var Oh=function(a,b,c,d,e){if(!(this instanceof Oh))return Gh(Oh,arguments);P.call(this,Hh(Oh,"MultiPolygon",4,arguments))};w(Oh,P);P.MultiPolygon=Oh;
P.prototype.encode=function(a){if(!this.dc){if(!a)throw Error("Must specify an encode function when encoding a computed geometry.");return H.prototype.encode.call(this,a)}a={type:this.dc};"GeometryCollection"==this.dc?a.geometries=this.Ce:a.coordinates=this.ve;null!=this.Uc&&(a.crs={type:"name",properties:{name:this.Uc}});null!=this.Gb&&(a.geodesic=this.Gb);null!=this.Fb&&(a.evenOdd=this.Fb);return a};
P.prototype.ac=function(){if(this.j)throw Error("Can't convert a computed Geometry to GeoJSON. Use getInfo() instead.");return this.encode()};P.prototype.toGeoJSON=P.prototype.ac;P.prototype.fd=function(){if(this.j)throw Error("Can't convert a computed Geometry to GeoJSON. Use getInfo() instead.");return(new Td).A(this.ac())};P.prototype.toGeoJSONString=P.prototype.fd;P.prototype.A=function(){return Zg(this)};P.prototype.serialize=P.prototype.A;
P.prototype.toString=function(){return"ee.Geometry("+this.fd()+")"};
var Dh=function(a){var b=a.type;if("GeometryCollection"==b){b=a.geometries;if(!p(b))return!1;for(a=0;a<b.length;a++)if(!Dh(b[a]))return!1;return!0}a=a.coordinates;var c=Ph(a);return"Point"==b&&1==c||"MultiPoint"==b&&(2==c||0==a.length)||"LineString"==b&&2==c||"LinearRing"==b&&2==c||"MultiLineString"==b&&(3==c||0==a.length)||"Polygon"==b&&3==c||"MultiPolygon"==b&&(4==c||0==a.length)},Ph=function(a){if(!p(a))return-1;if(p(a[0])){for(var b=Ph(a[0]),c=1;c<a.length;c++)if(Ph(a[c])!=b)return-1;return b+
1}for(c=0;c<a.length;c++)if(!oa(a[c]))return-1;return 0==a.length%2?1:-1},Hh=function(a,b,c,d){Sa(d,fh)?a={coordinates:ab(d)}:(a=N(a,d),a.coordinates=a.coords,delete a.coords,a.crs=a.proj,delete a.proj,a=vb(a,ua));if(Qh(a.coordinates)||null!=a.crs||null!=a.maxError)return(new J("GeometryConstructors."+b)).apply(a);a.type=b;d=a.coordinates;if(1>c||4<c)throw Error("Unexpected nesting level.");if(Sa(d,oa)&&oa(d[0])&&2!=d.length){if(0!=d.length%2)throw Error("Invalid number of coordinates: "+d.length);
for(var e=[],f=0;f<d.length;f+=2)e.push([d[f],d[f+1]]);d=e}e=d;for(f=0;p(e);)e=e[0],f++;for(;f<c;)d=[d],f++;if(Ph(d)!=c)throw Error("Invalid geometry");for(e=d;p(e)&&1==e.length;)e=e[0];c=p(e)&&0==e.length?[]:d;a.coordinates=c;(b=Wa(["Polygon","Rectangle","MultiPolygon"],b))&&null==a.evenOdd&&(a.evenOdd=!0);if(b&&!1===a.geodesic&&!1===a.evenOdd)throw Error("Planar interiors must be even/odd.");return a},Qh=function(a){return p(a)?Ra(a,Qh):a instanceof H},Gh=function(a,b){var c=function(){};c.prototype=
a.prototype;c=new c;a=a.apply(c,b);return void 0!==a?a:c};P.prototype.name=function(){return"Geometry"};var Q=function(a){if(!(this instanceof Q))return ah(Q,arguments);if(a instanceof Q)return a;Rh();if(p(a)){if(0==a.length)throw Error("Empty list specified for ee.Filter().");if(1==a.length)return new Q(a[0]);H.call(this,new J("Filter.and"),{filters:a})}else if(a instanceof H)H.call(this,a.j,a.args,a.C);else{if(m(a))throw Error("Invalid argument specified for ee.Filter(): "+a);H.call(this,null,null)}};w(Q,H);u("ee.Filter",Q);
var Sh=!1,Rh=function(){Sh||(L(Q,"Filter","Filter"),Sh=!0)},Th={equals:"equals",less_than:"lessThan",greater_than:"greaterThan",contains:"stringContains",starts_with:"stringStartsWith",ends_with:"stringEndsWith"};Q.prototype.Pa=function(){return K("Filter.not",this)};Q.prototype.not=Q.prototype.Pa;var Uh=function(a,b){var c=N(Uh,arguments);return K("Filter.equals",c.name,c.value)};Q.eq=Uh;var Vh=function(a,b){var c=N(Vh,arguments);return Uh(c.name,c.value).Pa()};Q.neq=Vh;
var Wh=function(a,b){var c=N(Wh,arguments);return K("Filter.lessThan",c.name,c.value)};Q.lt=Wh;var Xh=function(a,b){var c=N(Xh,arguments);return Wh(c.name,c.value).Pa()};Q.gte=Xh;var Yh=function(a,b){var c=N(Yh,arguments);return K("Filter.greaterThan",c.name,c.value)};Q.gt=Yh;var Zh=function(a,b){var c=N(Zh,arguments);return Yh(c.name,c.value).Pa()};Q.lte=Zh;var $h=function(a){return K("Filter.and",Array.prototype.slice.call(arguments))};Q.and=$h;var ai=function(a){return K("Filter.or",Array.prototype.slice.call(arguments))};
Q.or=ai;var bi=function(a,b){var c=N(bi,arguments);c=K("DateRange",c.start,c.end);return nh("Filter.dateRangeContains",{leftValue:c,rightField:"system:time_start"})};Q.date=bi;var ci=function(a,b,c,d){var e=N(ci,arguments);return nh("Filter.listContains",{leftField:e.rightField,rightValue:e.leftValue,rightField:e.leftField,leftValue:e.rightValue})};Q.inList=ci;var di=function(a,b){return nh("Filter.intersects",{leftField:".all",rightValue:K("Feature",a),maxError:b})};Q.bounds=di;
Q.prototype.name=function(){return"Filter"};var ei=function(a,b,c){b=b.toLowerCase();var d=!1;0==b.lastIndexOf("not_",0)&&(d=!0,b=b.substring(4));if(!(b in Th))throw Error("Unknown filtering operator: "+b);a=K("Filter."+Th[b],a,c);return d?a.Pa():a};Q.metadata=ei;var S=function(a,b,c){O.call(this,a,b,c);fi()};w(S,O);u("ee.Collection",S);var gi=!1,fi=function(){gi||(L(S,"Collection","Collection"),L(S,"AggregateFeatureCollection","Collection","aggregate_"),gi=!0)};S.prototype.filter=function(a){a=N(S.prototype.filter,arguments).filter;if(!a)throw Error("Empty filters.");return bh(this,K("Collection.filter",this,a))};S.prototype.filter=S.prototype.filter;
S.prototype.Ac=function(a,b,c){var d=N(S.prototype.Ac,arguments);return this.filter(ei(d.name,d.operator,d.value))};S.prototype.filterMetadata=S.prototype.Ac;S.prototype.Ad=function(a){return this.filter(di(a))};S.prototype.filterBounds=S.prototype.Ad;S.prototype.zc=function(a,b){var c=N(S.prototype.zc,arguments);return this.filter(bi(c.start,c.end))};S.prototype.filterDate=S.prototype.zc;
S.prototype.limit=function(a,b,c){var d=N(S.prototype.limit,arguments);return bh(this,K("Collection.limit",this,d.max,d.property,d.ascending))};S.prototype.limit=S.prototype.limit;S.prototype.sort=function(a,b){var c=N(S.prototype.sort,arguments);return bh(this,K("Collection.limit",this,void 0,c.property,c.ascending))};S.prototype.sort=S.prototype.sort;S.prototype.name=function(){return"Collection"};S.prototype.elementType=function(){return O};
S.prototype.map=function(a,b){var c=this.elementType();return bh(this,K("Collection.map",this,function(b){return a(new c(b))},b))};S.prototype.map=S.prototype.map;S.prototype.Ld=function(a,b){b=m(b)?b:null;var c=this.elementType();return K("Collection.iterate",this,function(b,e){return a(new c(b),e)},b)};S.prototype.iterate=S.prototype.Ld;var T=function(a,b){if(!(this instanceof T))return ah(T,arguments);if(a instanceof T){if(b)throw Error("Can't create Feature out of a Feature and properties.");return a}if(2<arguments.length)throw Error("The Feature constructor takes at most 2 arguments ("+arguments.length+" given)");hi();if(a instanceof P||null===a)O.call(this,new J("Feature"),{geometry:a,metadata:b||null});else if(a instanceof H)O.call(this,a.j,a.args,a.C);else if("Feature"==a.type){var c=a.properties||{};if("id"in a){if("system:index"in
c)throw Error('Can\'t specify both "id" and "system:index".');c=Fb(c);c["system:index"]=a.id}O.call(this,new J("Feature"),{geometry:new P(a.geometry),metadata:c})}else O.call(this,new J("Feature"),{geometry:new P(a),metadata:b||null})};w(T,O);u("ee.Feature",T);var ii=!1,hi=function(){ii||(L(T,"Feature","Feature"),ii=!0)};T.prototype.D=function(a){return T.h.D.call(this,a)};T.prototype.getInfo=T.prototype.D;
T.prototype.getMap=function(a,b){var c=N(T.prototype.getMap,arguments);return K("Collection",[this]).getMap(c.visParams,c.callback)};T.prototype.getMap=T.prototype.getMap;T.prototype.name=function(){return"Feature"};var U=function(a){if(!(this instanceof U))return ah(U,arguments);if(a instanceof U)return a;ji();var b=arguments.length;if(0==b||1==b&&!m(a))O.call(this,new J("Image.mask"),{image:new U(0),mask:new U(0)});else if(1==b)if(fh(a))O.call(this,new J("Image.constant"),{value:a});else if(gh(a))O.call(this,new J("Image.load"),{id:a});else{if(p(a))return ki(Qa(a,function(a){return new U(a)}));if(a instanceof H)"Array"==a.name()?O.call(this,new J("Image.constant"),{value:a}):O.call(this,a.j,a.args,a.C);else throw Error("Unrecognized argument type to convert to an Image: "+
a);}else if(2==b){b=arguments[0];var c=arguments[1];if(gh(b)&&fh(c))O.call(this,new J("Image.load"),{id:b,version:c});else throw Error("Unrecognized argument types to convert to an Image: "+arguments);}else throw Error("The Image constructor takes at most 2 arguments ("+b+" given)");};w(U,O);u("ee.Image",U);var li=!1,ji=function(){li||(L(U,"Image","Image"),L(U,"Window","Image","focal_"),li=!0)};U.prototype.D=function(a){return U.h.D.call(this,a)};U.prototype.getInfo=U.prototype.D;
U.prototype.getMap=function(a,b){var c=this,d=N(U.prototype.getMap,arguments),e=mi(this,d.visParams);if(d.callback){var f=d.callback;vg(e,function(a,b){a=a?Object.assign(a,{image:c}):void 0;f(a,b)})}else return d=vg(e),d.image=this,d};U.prototype.getMap=U.prototype.getMap;var mi=function(a,b){var c="bands gain bias min max gamma palette opacity forceRgbOutput".split(" "),d={},e={};ub(b,function(a,b){Wa(c,b)?e[b]=a:d[b]=a});Db(e)||(e.image=a,a=nh("Image.visualize",e));d.image=a.A();return d};
U.prototype.ya=function(a,b){var c=N(U.prototype.ya,arguments),d=c.params?Fb(c.params):{};d.image=this.A();if(c.callback){var e=c.callback;Ag(d,function(a,b){a?e(Bg(a)):e(null,b)})}else return Bg(Ag(d))};U.prototype.getDownloadURL=U.prototype.ya;
U.prototype.Ec=function(a,b){var c=N(U.prototype.Ec,arguments),d=mi(this,c.params);if(d.region)if(p(d.region)||hh(d.region))d.region=Ud(d.region);else if(!n(d.region))throw Error("The region parameter must be an array or a GeoJSON object.");if(c.callback)yg(d,function(a,b){var d="";if(!m(b))try{d=zg(a)}catch(l){b=String(l.message)}c.callback(d,b)});else return zg(yg(d))};U.prototype.getThumbURL=U.prototype.Ec;
var ni=function(a,b,c){var d=N(ni,arguments);return ki([d.r,d.g,d.b],["vis-red","vis-green","vis-blue"])};U.rgb=ni;var oi=function(a){return ki(Array.prototype.slice.call(arguments),null)};U.cat=oi;var ki=function(a,b){if(0==a.length)return K("Image.constant",[]);for(var c=new U(a[0]),d=1;d<a.length;d++)c=K("Image.addBands",c,a[d]);b&&(c=c.select([".*"],b));return c};
U.prototype.select=function(a){var b=Array.prototype.slice.call(arguments),c={input:this,bandSelectors:b[0]||[]};if(2<b.length||gh(b[0])||fh(b[0])){for(var d=0;d<b.length;d++)if(!(gh(b[d])||fh(b[d])||b[d]instanceof H))throw Error("Illegal argument to select(): "+b[d]);c.bandSelectors=b}else b[1]&&(c.newNames=b[1]);return nh("Image.select",c)};U.prototype.select=U.prototype.select;
U.prototype.expression=function(a,b){var c=N(U.prototype.expression,arguments),d=["DEFAULT_EXPRESSION_IMAGE"],e={DEFAULT_EXPRESSION_IMAGE:this};if(c.map){var f=c.map,g;for(g in f)d.push(g),e[g]=new U(f[g])}var l=K("Image.parseExpression",c.expression,"DEFAULT_EXPRESSION_IMAGE",d);c=new I;c.encode=function(a){return l.encode(a)};c.L=function(){return{name:"",args:Qa(d,function(a){return{name:a,type:"Image",optional:!1}},this),returns:"Image"}};return c.apply(e)};U.prototype.expression=U.prototype.expression;
U.prototype.clip=function(a){try{a=new P(a)}catch(b){}return K("Image.clip",this,a)};U.prototype.clip=U.prototype.clip;U.prototype.Yd=function(a){var b=1!=arguments.length||gh(arguments[0])?ab(arguments):arguments[0];return K("Image.rename",this,b)};U.prototype.rename=U.prototype.Yd;U.prototype.name=function(){return"Image"};var pi=function(a){if(this instanceof pi){if(1<arguments.length)throw Error("ee.List() only accepts 1 argument.");if(a instanceof pi)return a}else return ah(pi,arguments);qi();if(p(a))H.call(this,null,null),this.Pc=a;else if(a instanceof H)H.call(this,a.j,a.args,a.C),this.Pc=null;else throw Error("Invalid argument specified for ee.List(): "+a);};w(pi,H);u("ee.List",pi);var ri=!1,qi=function(){ri||(L(pi,"List","List"),ri=!0)};
pi.prototype.encode=function(a){return p(this.Pc)?Qa(this.Pc,function(b){return a(b)}):pi.h.encode.call(this,a)};pi.prototype.name=function(){return"List"};var V=function(a,b){if(!(this instanceof V))return ah(V,arguments);if(a instanceof V)return a;if(2<arguments.length)throw Error("The FeatureCollection constructor takes at most 2 arguments ("+arguments.length+" given)");si();a instanceof P&&(a=new T(a));a instanceof T&&(a=[a]);if(gh(a)){var c={tableId:a};b&&(c.geometryColumn=b);S.call(this,new J("Collection.loadTable"),c)}else if(p(a))S.call(this,new J("Collection"),{features:Qa(a,function(a){return new T(a)})});else if(a instanceof pi)S.call(this,
new J("Collection"),{features:a});else if(a instanceof H)S.call(this,a.j,a.args,a.C);else throw Error("Unrecognized argument type to convert to a FeatureCollection: "+a);};w(V,S);u("ee.FeatureCollection",V);var ti=!1,si=function(){ti||(L(V,"FeatureCollection","FeatureCollection"),ti=!0)};V.prototype.getMap=function(a,b){var c=N(V.prototype.getMap,arguments),d=nh("Collection.draw",{collection:this,color:(c.visParams||{}).color||"000000"});if(c.callback)d.getMap(void 0,c.callback);else return d.getMap()};
V.prototype.getMap=V.prototype.getMap;V.prototype.D=function(a){return V.h.D.call(this,a)};V.prototype.getInfo=V.prototype.D;V.prototype.ya=function(a,b,c,d){var e=N(V.prototype.ya,arguments),f={};f.table=this.A();e.format&&(f.format=e.format.toUpperCase());e.filename&&(f.filename=e.filename);if(e.selectors){var g=e.selectors;va(g)&&(g=g.join(","));f.selectors=g}if(e.callback)Cg(f,function(a,b){a?e.callback(Dg(a)):e.callback(null,b)});else return Dg(Cg(f))};V.prototype.getDownloadURL=V.prototype.ya;
V.prototype.select=function(a,b,c){if(gh(a)){var d=Array.prototype.slice.call(arguments);return this.map(function(a){return a.select(d)})}var e=N(V.prototype.select,arguments);return this.map(function(a){return a.select(e)})};V.prototype.select=V.prototype.select;V.prototype.name=function(){return"FeatureCollection"};V.prototype.elementType=function(){return T};var X=function(a){if(!(this instanceof X))return ah(X,arguments);if(a instanceof X)return a;if(1!=arguments.length)throw Error("The ImageCollection constructor takes exactly 1 argument ("+arguments.length+" given)");ui();a instanceof U&&(a=[a]);if(gh(a))S.call(this,new J("ImageCollection.load"),{id:a});else if(p(a))S.call(this,new J("ImageCollection.fromImages"),{images:Qa(a,function(a){return new U(a)})});else if(a instanceof pi)S.call(this,new J("ImageCollection.fromImages"),{images:a});else if(a instanceof
H)S.call(this,a.j,a.args,a.C);else throw Error("Unrecognized argument type to convert to an ImageCollection: "+a);};w(X,S);u("ee.ImageCollection",X);var vi=!1,ui=function(){vi||(L(X,"ImageCollection","ImageCollection"),L(X,"reduce","ImageCollection"),vi=!0)};X.prototype.getMap=function(a,b){var c=N(X.prototype.getMap,arguments),d=K("ImageCollection.mosaic",this);if(c.callback)d.getMap(c.visParams,c.callback);else return d.getMap(c.visParams)};X.prototype.getMap=X.prototype.getMap;
X.prototype.D=function(a){return X.h.D.call(this,a)};X.prototype.getInfo=X.prototype.D;X.prototype.select=function(a,b){var c=arguments;return this.map(function(a){return a.select.apply(a,c)})};X.prototype.select=X.prototype.select;X.prototype.first=function(){return new U(K("Collection.first",this))};X.prototype.first=X.prototype.first;X.prototype.name=function(){return"ImageCollection"};X.prototype.elementType=function(){return U};var wi=function(a){this.sc=a;this.id=null},yi=function(a,b){var c=function(b){return b in a},d=xi.find(c);z(1===Ta(xi,c));c=a[d];delete a[d];b={json:c.A(),type:b};Object.assign(b,a);b=vb(b,ua);return new wi(b)};
wi.prototype.start=function(a,b){var c=this;z(this.sc,"Task config must be specified for tasks to be started.");if(a){var d=function(){Ja(c.id);Kg(c.id,c.sc,function(c,d){d?b(d):a()})};this.id?d():Gg(1,function(a){(a=a&&a[0])?(c.id=a,d()):b("Failed to obtain task ID.")})}else this.id=this.id||Gg(1)[0],Ja(this.id,"Failed to obtain task ID."),Kg(this.id,this.sc)};wi.prototype.start=wi.prototype.start;
var Ai=function(a,b,c,d,e,f,g,l,v,D){var M=N(Ai,arguments);M=Bi(M,"ASSET");M.region=Ci(M.region);return yi(M,"EXPORT_IMAGE")};u("ee.batch.Export.image.toAsset",Ai);var Di=function(a,b,c,d,e,f,g,l,v,D,M,ea,R,tc,zi){var W=N(Di,arguments);W=Bi(W,"GOOGLE_CLOUD_STORAGE");W=Ei(W);W.region=Ci(W.region);return yi(W,"EXPORT_IMAGE")};u("ee.batch.Export.image.toCloudStorage",Di);
var Fi=function(a,b,c,d,e,f,g,l,v,D,M,ea,R,tc,zi){var W=N(Fi,arguments);W=Bi(W,"DRIVE");W=Ei(W);W.region=Ci(W.region);return yi(W,"EXPORT_IMAGE")};u("ee.batch.Export.image.toDrive",Fi);var Gi=function(a,b,c,d,e,f,g,l,v,D,M,ea){var R=N(Gi,arguments);R=Bi(R,"GOOGLE_CLOUD_STORAGE");R.region=Ci(R.region);return yi(R,"EXPORT_TILES")};u("ee.batch.Export.map.toCloudStorage",Gi);var Hi=function(a,b,c,d,e,f){var g=N(Hi,arguments);g=Bi(g,"GOOGLE_CLOUD_STORAGE");return yi(g,"EXPORT_FEATURES")};
u("ee.batch.Export.table.toCloudStorage",Hi);var Ii=function(a,b,c,d,e,f){var g=N(Ii,arguments);g=Bi(g,"DRIVE");return yi(g,"EXPORT_FEATURES")};u("ee.batch.Export.table.toDrive",Ii);var Ji=function(a,b,c){var d=N(Ji,arguments);d=Bi(d,"ASSET");return yi(d,"EXPORT_FEATURES")};u("ee.batch.Export.table.toAsset",Ji);var Ki=function(a,b,c,d,e,f,g,l,v,D,M,ea){var R=N(Ki,arguments);R=Bi(R,"GOOGLE_CLOUD_STORAGE");R.region=Ci(R.region);return yi(R,"EXPORT_VIDEO")};u("ee.batch.Export.video.toCloudStorage",Ki);
var Li=function(a,b,c,d,e,f,g,l,v,D,M,ea){var R=N(Li,arguments);R=Bi(R,"DRIVE");R.region=Ci(R.region);return yi(R,"EXPORT_VIDEO")};u("ee.batch.Export.video.toDrive",Li);var Mi=function(a,b,c,d,e,f,g,l,v,D,M){var ea=N(Mi,arguments);ea=Bi(ea,"GOOGLE_CLOUD_STORAGE");ea.region=Ci(ea.region);return yi(ea,"EXPORT_VIDEO_MAP")};u("ee.batch.Export.videoMap.toCloudStorage",Mi);
var Ci=function(a){if(a instanceof P)a=a.ac();else if(n(a))try{a=La(JSON.parse(a))}catch(b){throw Error("Invalid format for region property. Region must be GeoJSON LinearRing or Polygon specified as actual coordinates or serialized as a string. See Export documentation.");}if(!(r(a)&&"type"in a))try{new Kh(a)}catch(b){try{new Nh(a)}catch(c){throw Error("Invalid format for region property. Region must be GeoJSON LinearRing or Polygon specified as actual coordinates or serialized as a string. See Export documentation.");
}}return Ud(a)},Bi=function(a,b){var c={};Object.assign(c,a);null!=c.crsTransform&&(c.crs_transform=c.crsTransform,delete c.crsTransform);"array"==ta(c.fileDimensions)&&(c.fileDimensions=c.fileDimensions.join());"array"==ta(c.selectors)&&(c.selectors=c.selectors.join());switch(b){case "GOOGLE_CLOUD_STORAGE":c.outputBucket=c.bucket||"";c.outputPrefix=c.fileNamePrefix||c.path||"";delete c.bucket;delete c.fileNamePrefix;break;case "ASSET":c.assetId=c.assetId||"";break;case "DRIVE":if(a=ta(c.folder),
!Wa(["string","undefined"],a))throw Error('Error: toDrive "folder" parameter must be a string, but is of type '+a+".");default:c.driveFolder=c.folder||"",c.driveFileNamePrefix=c.fileNamePrefix||"",delete c.folder,delete c.fileNamePrefix}return c},Ni="tiffCloudOptimized tiffFileDimensions tfrecordPatchDimensions tfrecordKernelSize tfrecordCompressed tfrecordMaxFileSize tfrecordDefaultValue tfrecordTensorDepths tfrecordSequenceData tfrecordCollapseBands tfrecordMaskedThreshold".split(" "),Oi={GEOTIFF:"tiff",
TFRECORD:"tfrecord"},Ei=function(a){var b="GEOTIFF";null!=a.fileFormat&&(b=a.fileFormat.toUpperCase());if(!(b in Oi))throw a=Object.keys(Oi).join(", "),Error("Invalid file format. Supported formats are: "+a+".");var c=a;null!=a.formatOptions&&"object"==ta(a.formatOptions)&&(c=a.formatOptions,delete a.formatOptions,c=Pi(a,c,b));a=c;null!=a.tiffFileDimensions&&(a.tiffFileDimensions=a.tiffFileDimensions.join());null!=a.tfrecordPatchDimensions&&(a.tfrecordPatchDimensions=a.tfrecordPatchDimensions.join());
null!=a.tfrecordKernelSize&&(a.tfrecordKernelSize=a.tfrecordKernelSize.join());null!=a.tfrecordTensorDepths&&(a.tfrecordTensorDepths=a.tfrecordTensorDepths.join());return a},Pi=function(a,b,c){if(Object.keys(a).some(function(a){return a in b}))throw Error("Parameter specified at least twice: once in config, and once in config format options.");for(var d=Oi[c],e=ba(Object.entries(b)),f=e.next();!f.done;f=e.next()){var g=ba(f.value);f=g.next().value;g=g.next().value;var l=d+f[0].toUpperCase()+f.slice(1);
if(!Ni.includes(l))throw Error("'"+f+"' is not a valid option for '"+c+"'.");a[l]=g}return a},xi=["image","collection"];var Qi=function(a){if(!(this instanceof Qi))return ah(Qi,arguments);if(a instanceof Qi)return a;Ri();if(oa(a))H.call(this,null,null),this.Qc=a;else if(a instanceof H)H.call(this,a.j,a.args,a.C),this.Qc=null;else throw Error("Invalid argument specified for ee.Number(): "+a);};w(Qi,H);u("ee.Number",Qi);var Si=!1,Ri=function(){Si||(L(Qi,"Number","Number"),Si=!0)};Qi.prototype.encode=function(a){return oa(this.Qc)?this.Qc:Qi.h.encode.call(this,a)};Qi.prototype.name=function(){return"Number"};var Ti=function(a){if(!(this instanceof Ti))return ah(Ti,arguments);if(a instanceof Ti)return a;Ui();if(n(a))H.call(this,null,null),this.ad=a;else if(a instanceof H)this.ad=null,a.j&&"String"==a.j.L().returns?H.call(this,a.j,a.args,a.C):H.call(this,new J("String"),{input:a},null);else throw Error("Invalid argument specified for ee.String(): "+a);};w(Ti,H);u("ee.String",Ti);var Vi=!1,Ui=function(){Vi||(L(Ti,"String","String"),Vi=!0)};
Ti.prototype.encode=function(a){return n(this.ad)?this.ad:Ti.h.encode.call(this,a)};Ti.prototype.name=function(){return"String"};var Wi=function(a,b){if(!(this instanceof Wi))return ah(Wi,arguments);for(var c=[],d=a.args,e=0;e<d.length;e++){var f=d[e],g=f.type;c.push(Xi(g in ch?ch[g]:null,f.name))}if(!m(b.apply(null,c)))throw Error("User-defined methods must return a value.");this.sa=Yi(a,c,b);this.qe=b.apply(null,c)};w(Wi,I);u("ee.CustomFunction",Wi);Wi.prototype.encode=function(a){return{type:"Function",argumentNames:Qa(this.sa.args,function(a){return a.name}),body:a(this.qe)}};Wi.prototype.L=function(){return this.sa};
var Xi=function(a,b){a=a||Object;if(!(a.prototype instanceof H))if(a&&a!=Object)if(a==String)a=Ti;else if(a==Number)a=Qi;else if(a==Array)a=k.ee.List;else throw Error("Variables must be of an EE type, e.g. ee.Image or ee.Number.");else a=H;var c=function(a){this.args=this.j=null;this.C=a};c.prototype=a.prototype;return new c(b)},Zi=function(a,b){b=Qa(b,function(a){return{name:null,type:n(a)?a:dh(a)}});b={name:"",returns:n("Object")?"Object":dh("Object"),args:b};return new Wi(b,a)},Yi=function(a,b,
c){for(var d=[],e=0;e<b.length;e++)null===b[e].C&&d.push(e);if(0==d.length)return a;var f=function(a){var b=0;r(a)&&!q(a)&&("Function"==a.type&&b++,ub(a,function(a){b+=f(a)}));return b};e=Yg(c.apply(null,b));c="_MAPPING_VAR_"+f(e)+"_";for(e=0;e<d.length;e++){var g=d[e],l=c+e;b[g].C=l;a.args[g].name=l}return a};var $i=function(a,b){if(!(this instanceof $i))return ah($i,arguments);if(a instanceof $i)return a;aj();var c=N($i,arguments);a=c.date;c=c.tz;var d=new J("Date"),e={},f=null;if(gh(a)){if(e.value=a,c)if(gh(c))e.timeZone=c;else throw Error("Invalid argument specified for ee.Date(..., opt_tz): "+c);}else if(fh(a))e.value=a;else if(r(a)&&"function"==typeof a.getFullYear)e.value=Math.floor(a.getTime());else if(a instanceof H)a.j&&"Date"==a.j.L().returns?(d=a.j,e=a.args,f=a.C):e.value=a;else throw Error("Invalid argument specified for ee.Date(): "+
a);H.call(this,d,e,f)};w($i,H);u("ee.Date",$i);var bj=!1,aj=function(){bj||(L($i,"Date","Date"),bj=!0)};$i.prototype.name=function(){return"Date"};u("ee.Deserializer",function(){});var dj=function(a){return cj(JSON.parse(a))};u("ee.Deserializer.fromJSON",dj);var cj=function(a){var b={};if(r(a)&&"CompoundValue"==a.type){for(var c=a.scope,d=0;d<c.length;d++){var e=c[d][0],f=c[d][1];if(e in b)throw Error('Duplicate scope key "'+e+'" in scope #'+d+".");b[e]=ej(f,b)}a=a.value}return ej(a,b)};u("ee.Deserializer.decode",cj);
var ej=function(a,b){if(null===a||oa(a)||"boolean"==typeof a||n(a))return a;if(p(a))return Qa(a,function(a){return ej(a,b)});if(!r(a)||q(a))throw Error("Cannot decode object: "+a);var c=a.type;switch(c){case "ValueRef":if(a.value in b)return b[a.value];throw Error("Unknown ValueRef: "+a);case "ArgumentRef":c=a.value;if(!n(c))throw Error("Invalid variable name: "+c);return Xi(Object,c);case "Date":c=a.value;if(!oa(c))throw Error("Invalid date value: "+c);return new $i(c/1E3);case "Bytes":return c=
new Qg,c.encode=function(){return a},c;case "Invocation":c="functionName"in a?mh(a.functionName):ej(a["function"],b);var d=wb(a.arguments,function(a){return ej(a,b)});if(c instanceof I)return c.apply(d);if(c instanceof H)return new H(c,d);throw Error("Invalid function value: "+a["function"]);case "Dictionary":return wb(a.value,function(a){return ej(a,b)});case "Function":var e=ej(a.body,b);c={name:"",args:Qa(a.argumentNames,function(a){return{name:a,type:"Object",optional:!1}}),returns:"Object"};
return new Wi(c,function(){return e});case "Point":case "MultiPoint":case "LineString":case "MultiLineString":case "Polygon":case "MultiPolygon":case "LinearRing":case "GeometryCollection":return new P(a);case "CompoundValue":throw Error("Nested CompoundValues are disallowed.");default:throw Error("Unknown encoded object type: "+c);}};var fj=function(a){if(!(this instanceof fj))return ah(fj,arguments);if(a instanceof fj)return a;gj();hh(a)?(H.call(this,null,null),this.wc=a):(a instanceof H&&a.j&&"Dictionary"==a.j.L().returns?H.call(this,a.j,a.args,a.C):H.call(this,new J("Dictionary"),{input:a},null),this.wc=null)};w(fj,H);u("ee.Dictionary",fj);var hj=!1,gj=function(){hj||(L(fj,"Dictionary","Dictionary"),hj=!0)};fj.prototype.encode=function(a){return null===this.wc?fj.h.encode.call(this,a):a(this.wc)};fj.prototype.name=function(){return"Dictionary"};var ij={};u("ee.Terrain",ij);ij.Kc=!1;ij.Fe=function(){ij.Kc||(L(ij,"Terrain","Terrain"),ij.Kc=!0)};ij.reset=function(){uh(ij);ij.Kc=!1};var oj=function(a,b,c,d,e){if("ready"!=jj||a||b){var f=null!=c;if(d)if(f)kj.push(d);else throw Error("Can't pass an error callback without a success callback.");if("loading"==jj&&f)lj.push(c);else if(jj="loading",kg(a,b,e),f)lj.push(c),qh(mj,nj);else try{qh(),mj()}catch(g){throw nj(g),g;}}else c&&c()};u("ee.initialize",oj);
var rj=function(){jj="not_ready";ig=hg=gg=eg=null;jg=!1;ra("gapi")&&gapi.client&&delete gapi.client.earthengine;fg=!1;oh=null;ph={};uh($i);bj=!1;uh(fj);hj=!1;uh(O);Bh=!1;uh(U);li=!1;uh(T);ii=!1;uh(S);gi=!1;uh(X);vi=!1;uh(V);ti=!1;uh(Q);Sh=!1;uh(P);Eh=!1;uh(pi);ri=!1;uh(Qi);Si=!1;uh(Ti);Vi=!1;ij.reset();for(var a=k.ee,b=0;b<pj.length;b++){var c=pj[b];uh(a[c]);delete a[c]}pj=[];ch=a;a=qj;for(var d in a)delete a[d]};u("ee.reset",rj);var sj={ff:"not_ready",LOADING:"loading",gf:"ready"};
u("ee.InitState",sj);u("ee.InitState.NOT_READY","not_ready");u("ee.InitState.LOADING","loading");u("ee.InitState.READY","ready");var jj="not_ready",lj=[],kj=[];u("ee.TILE_SIZE",256);var pj=[],qj={};u("ee.Algorithms",qj);var tj=function(a,b){n(a)&&(a=new J(a));return I.prototype.call.apply(a,Array.prototype.slice.call(arguments,1))};u("ee.call",tj);var uj=function(a,b){n(a)&&(a=new J(a));return a.apply(b)};u("ee.apply",uj);
var mj=function(){if("loading"==jj){try{aj();gj();Ah();ji();hi();fi();ui();si();Rh();Ch();qi();Ri();Ui();ij.Fe();var a=rh(),b={},c={},d;for(d in a){b[-1!=d.indexOf(".")?d.slice(0,d.indexOf(".")):d]=!0;var e=a[d].returns.replace(/<.*>/,"");c[e]=!0}var f=k.ee,g;for(g in b)g in c&&!(g in f)&&(f[g]=vj(g),pj.push(g),a[g]?(f[g].signature=a[g],f[g].signature.isConstructor=!0,ph[g]=!0):f[g].signature={});ch=f;wj()}catch(l){nj(l);return}jj="ready";for(kj=[];0<lj.length;)lj.shift()()}},nj=function(a){if("loading"==
jj)for(jj="not_ready",lj=[];0<kj.length;)kj.shift()(a)},wj=function(){var a=sh();zb(a).sort().forEach(function(b){var c=a[b],d=c.L();if(!d.hidden){b=b.split(".");var e=qj;for(e.signature={};1<b.length;){var f=b[0];f in e||(e[f]={signature:{}});e=e[f];b=cb(b,1)}f=function(a){return lh(c,void 0,Array.prototype.slice.call(arguments,0))};f.signature=d;f.toString=t(c.toString,c);e[b[0]]=f}})},vj=function(a){var b=function(b){var c=k.ee[a],e=Array.prototype.slice.call(arguments),f=1==e.length;if(f&&e[0]instanceof
c)return e[0];if(!(this instanceof c))return ah(c,e);c=th(a);var g=!(e[0]instanceof H),l=!1;c&&(f?g?l=!0:e[0].j!=c&&(l=!0):l=!0);if(l)H.call(this,c,kh(c,jh(c,e)));else{if(!f)throw Error("Too many arguments for ee."+a+"(): "+e);if(g)throw Error("Invalid argument for ee."+a+"(): "+e+". Must be a ComputedObject.");e=e[0];H.call(this,e.j,e.args,e.C)}};w(b,H);b.prototype.name=function(){return a};L(b,a,a);return b};
ih=function(a,b){if(null===a)return null;if(m(a)){var c=k.ee;switch(b){case "Image":return new U(a);case "Feature":return a instanceof S?K("Feature",K("Collection.geometry",a)):new T(a);case "Element":if(a instanceof O)return a;if(a instanceof P)return new T(a);if(a instanceof H)return new O(a.j,a.args,a.C);throw Error("Cannot convert "+a+" to Element.");case "Geometry":return a instanceof V?K("Collection.geometry",a):new P(a);case "FeatureCollection":case "Collection":return a instanceof S?a:new V(a);
case "ImageCollection":return new X(a);case "Filter":return new Q(a);case "Algorithm":if(n(a))return new J(a);if(q(a)){b=a.length;c=[];for(var d=0;d<b;d++)c[d]="Object";return Zi(a,c)}if(a instanceof Qg)return a;throw Error("Argument is not a function: "+a);case "String":return gh(a)||a instanceof Ti||a instanceof H?new Ti(a):a;case "Dictionary":return hh(a)?a:new fj(a);case "List":return new pi(a);case "Number":case "Float":case "Long":case "Integer":case "Short":case "Byte":return new Qi(a);default:if(b in
c){d=th(b);if(a instanceof c[b])return a;if(d)return new c[b](a);if(n(a)){if(a in c[b])return c[b][a].call();throw Error("Unknown algorithm: "+b+"."+a);}return new c[b](a)}return a}}};var xj=function(a,b,c){Xc.call(this,a,b,c);this.tileSize=new google.maps.Size(256,256);this.Cd=new B;this.Bd=new B};w(xj,Xc);u("ee.FloatTileOverlay",xj);xj.prototype.getTile=function(a,b){var c=Yc(this,a,b);b=[this.url,c].join("/")+"?token="+this.token;c=[c,this.ta,this.token].join("/");this.va.push(c);this.ta+=1;var d=le("DIV");yj(this,b,a,c,d);zj(this);return d};
var yj=function(a,b,c,d,e){var f=$e();f.open("GET",b,!0);f.responseType="arraybuffer";f.onreadystatechange=t(function(){if(f.readyState===XMLHttpRequest.DONE&&200===f.status){var a=f.response;if(a)a=new Float32Array(a),this.Cd.set(c,a),this.Bd.set(c,e),Za(this.va,d),zj(this);else throw this.dd.add(d),Error("Unable to request floating point array buffers.");}},a);f.send()},zj=function(a){a.dispatchEvent(new Zc(a.va.length))};xj.prototype.f=function(){this.Bd=this.Cd=null;xj.h.f.call(this)};var Aj=function(){this.Zb=new Map};Aj.prototype.clear=function(){this.Zb.clear()};var Bj=function(a,b){a.Zb.has(b)||a.Zb.set(b,{throttleCount:0,errorCount:0,tileLatencies:[]});return a.Zb.get(b)};var Cj=function(a){x.call(this);this.za=a;this.i={}};w(Cj,x);var Dj=[];Cj.prototype.ea=function(a,b,c,d){p(b)||(b&&(Dj[0]=b.toString()),b=Dj);for(var e=0;e<b.length;e++){var f=rc(a,b[e],c||this.handleEvent,d||!1,this.za||this);if(!f)break;this.i[f.key]=f}return this};Cj.prototype.nb=function(a,b,c,d){return Ej(this,a,b,c,d)};var Ej=function(a,b,c,d,e,f){if(p(c))for(var g=0;g<c.length;g++)Ej(a,b,c[g],d,e,f);else{b=qc(b,c,d||a.handleEvent,e,f||a.za||a);if(!b)return a;a.i[b.key]=b}return a};
Cj.prototype.fc=function(a,b,c,d,e){if(p(b))for(var f=0;f<b.length;f++)this.fc(a,b[f],c,d,e);else c=c||this.handleEvent,d=r(d)?!!d.capture:!!d,e=e||this.za||this,c=sc(c),d=!!d,b=gc(a)?a.fb(b,c,d,e):a?(a=vc(a))?a.fb(b,c,d,e):null:null,b&&(Ac(b),delete this.i[b.key])};Cj.prototype.qb=function(){ub(this.i,function(a,b){this.i.hasOwnProperty(b)&&Ac(a)},this);this.i={}};Cj.prototype.f=function(){Cj.h.f.call(this);this.qb()};
Cj.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};var Gj=function(a,b){m(a.name)?(this.name=a.name,this.code=Bb[a.name]):(this.code=Ia(a.code),this.name=Fj(a.code));Da.call(this,eb("%s %s",this.name,b))};w(Gj,Da);var Fj=function(a){var b=Cb(function(b){return a==b});if(!m(b))throw Error("Invalid code: "+a);return b},Bb={AbortError:3,EncodingError:5,InvalidModificationError:9,InvalidStateError:7,NotFoundError:1,NotReadableError:4,NoModificationAllowedError:6,PathExistsError:12,QuotaExceededError:10,SecurityError:2,SyntaxError:8,TypeMismatchError:11};var Hj=function(a,b){y.call(this,a.type,b);this.Y=a};w(Hj,y);var Ij=function(){A.call(this);this.H=new FileReader;this.H.onloadstart=t(this.Ma,this);this.H.onprogress=t(this.Ma,this);this.H.onload=t(this.Ma,this);this.H.onabort=t(this.Ma,this);this.H.onerror=t(this.Ma,this);this.H.onloadend=t(this.Ma,this)};w(Ij,A);h=Ij.prototype;h.abort=function(){try{this.H.abort()}catch(a){throw new Gj(a,"aborting read");}};h.pa=function(){return this.H.readyState};h.getError=function(){return this.H.error&&new Gj(this.H.error,"reading file")};
h.Ma=function(a){this.dispatchEvent(new Hj(a,this))};h.f=function(){Ij.h.f.call(this);delete this.H};h.readAsBinaryString=function(a){this.H.readAsBinaryString(a)};h.readAsArrayBuffer=function(a){this.H.readAsArrayBuffer(a)};h.readAsText=function(a,b){this.H.readAsText(a,b)};var Jj=function(a,b){z(a);a=a.style;"opacity"in a?a.opacity=b:"MozOpacity"in a?a.MozOpacity=b:"filter"in a&&(a.filter=""===b?"":"alpha(opacity="+100*Number(b)+")")};var Kj=function(a,b){A.call(this);b=b||{};this.minZoom=b.minZoom||0;this.maxZoom=b.maxZoom||20;if(!window.google||!window.google.maps)throw Error("Google Maps API hasn't been initialized.");this.tileSize=b.tileSize||new google.maps.Size(256,256);this.name=b.name;this.opacity="opacity"in b?b.opacity:1;this.Yb=new Aj;this.ua=new B;this.ta=0;this.cd=a;this.ja=new Cj(this);this.alt=this.radius=this.projection=void 0};w(Kj,A);u("ee.layers.AbstractOverlay",Kj);
Kj.prototype.nc=function(a){return rc(this,"tile-load",a)};Kj.prototype.addTileCallback=Kj.prototype.nc;Kj.prototype.Wc=function(a){Ac(a)};Kj.prototype.removeTileCallback=Kj.prototype.Wc;h=Kj.prototype;h.Dc=function(){return Lj(this,"throttled")+Lj(this,"loading")+Lj(this,"new")};h.setOpacity=function(a){this.opacity=a;this.ua.forEach(function(a){Jj(a.O,this.opacity)},this)};h.getStats=function(){return this.Yb};
h.getTile=function(a,b,c){var d=1<<b;if(b<this.minZoom||0>a.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.ta++].join("-"),this.cd.Gd()].join("-");b=this.ud(d,b,c,a);b.tileSize=this.tileSize;Jj(b.O,this.opacity);this.ua.set(a,b);Mj(this,b);this.cd.Od(b,(new Date).getTime()/1E3);return b.O};h.releaseTile=function(a){var b=this.ua.get(a.id);this.ua.remove(a.id);b&&(b.abort(),Ca(b))};
var Mj=function(a,b){a.ja.ea(b,"status-changed",function(){switch(b.getStatus()){case "loaded":var a=b.Le,d=(new Date).getTime();Bj(this.Yb,b.zoom).tileLatencies.push(d-a);this.dispatchEvent(new Nj(this.Dc()));break;case "throttled":Bj(this.Yb,b.zoom).throttleCount++;this.dispatchEvent(new Oj(b.Ea));break;case "failed":Bj(this.Yb,b.zoom).errorCount++,this.dispatchEvent(new Pj(b.Ea,b.ye))}})};
Kj.prototype.f=function(){Kj.h.f.call(this);this.ua.forEach(Ca);this.ua.clear();this.ua=null;Ca(this.ja);this.cd=this.ja=null};var Lj=function(a,b){return Ta(a.ua.w(),function(a){return a.getStatus()==b})},Nj=function(){y.call(this,"tile-load")};w(Nj,y);var Oj=function(){y.call(this,"tile-throttle")};w(Oj,y);var Pj=function(a,b){y.call(this,"tile-fail");this.errorMessage=b};w(Pj,y);
var Qj=function(a,b,c,d){A.call(this);this.La=a;this.zoom=b;this.O=c.createElement("div");this.O.id=d;this.Ne=5;this.Ub=function(){};this.Zc="new";this.Zd=0;this.Nc=!1};w(Qj,A);
var Sj=function(a){if(!a.Nc&&"loading"==a.getStatus())throw Error("startLoad() can only be invoked once. Use retryLoad() after the first attempt.");Rj(a,"loading");a.Le=(new Date).getTime();a.ma=new E;a.ma.Va="blob";a.ma.ea("complete",function(){var a=qf(this.ma),c=this.ma.getStatus();429==c&&Rj(this,"throttled");if(We(c)){var d={};ub(rf(this.ma),function(a,b){d[b.toLowerCase()]=a});this.Ze=d;this.fe=a;this.eb()}else if(a){var e=new Ij;e.ea("loadend",function(){this.rb(e.H.result)},void 0,this);e.readAsText(a)}else this.rb("Failed to load tile.")},
!1,a);a.ma.nb("ready",Aa(Ca,a.ma));a.ma.send(a.Ea,"GET")};h=Qj.prototype;h.eb=function(){this.Ub(this);Rj(this,"loaded")};h.$a=function(){Ca(this.ma)};h.rb=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.Zd>=this.Ne?(this.ye=b(a),Rj(this,"failed")):(this.$a(),setTimeout(t(function(){this.ca||(this.Nc=!0,Sj(this),this.Nc=!1)},this),1E3*Math.pow(2,this.Zd++)))};h.abort=function(){this.$a();Rj(this,"aborted")};
h.getStatus=function(){return this.Zc};var Rj=function(a,b){a.Zc=b;a.dispatchEvent("status-changed")},Tj={aborted:!0,failed:!0,loaded:!0};Qj.prototype.f=function(){Qj.h.f.call(this);this.$a();this.O.remove();this.Ub=null};var Uj=function(){x.call(this)};w(Uj,x);var Vj=function(a,b){Kj.call(this,a,b);this.pd=new B;this.xd=new B};w(Vj,Kj);u("ee.layers.BinaryOverlay",Vj);Vj.prototype.ud=function(a,b,c,d){var e=new Wj(a,b,c,d);this.ja.ea(e,"status-changed",function(){"loaded"==e.getStatus()&&(this.pd.set(a,new Float32Array(e.re)),this.xd.set(a,e.O))});return e};Vj.prototype.f=function(){Vj.h.f.call(this);this.xd=this.pd=null};var Wj=function(a,b,c,d){Qj.call(this,a,b,c,d)};w(Wj,Qj);
Wj.prototype.eb=function(){var a=new Ij;a.ea("loadend",function(){this.re=a.H.result;Qj.prototype.eb.call(this)},void 0,this);a.readAsArrayBuffer(this.fe)};var Xj=function(a){A.call(this);this.kb={};this.jb={};this.za=new Cj(this);this.u=a};w(Xj,A);var Yj=[Nb&&!Xb("11")?"readystatechange":"load","abort","error"],Zj=function(a,b,c){(c=n(c)?c:c.src)&&(a.kb[b]={src:c,td:m(void 0)?void 0:null})},ak=function(a,b){delete a.kb[b];var c=a.jb[b];c&&(delete a.jb[b],a.za.fc(c,Yj,a.Td),Db(a.jb)&&Db(a.kb)&&a.dispatchEvent("complete"))};
Xj.prototype.start=function(){var a=this.kb;Oa(zb(a),function(b){var c=a[b];if(c&&(delete a[b],!this.ca)){if(this.u){var d=this.u;d=(d?new re(qe(d)):Ea||(Ea=new re)).we("IMG")}else d=new Image;c.td&&(d.crossOrigin=c.td);this.za.ea(d,Yj,this.Td);this.jb[b]=d;d.id=b;d.src=c.src}},this)};
Xj.prototype.Td=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.ca||ak(this,b.id)}};Xj.prototype.f=function(){delete this.kb;delete this.jb;Ca(this.za);Xj.h.f.call(this)};var bk=function(a,b){Kj.call(this,a,b)};w(bk,Kj);u("ee.layers.ImageOverlay",bk);bk.prototype.ud=function(a,b,c,d){return new ck(a,b,c,d)};var ck=function(a,b,c,d){Qj.call(this,a,b,c,d);this.Ub=dk;this.Jd=this.K=this.Kb=null;this.ob=""};w(ck,Qj);
ck.prototype.eb=function(){try{var a=ge(this.fe);this.ob=ce(a);var b="about:invalid#zClosurez"!==this.ob?this.ob:this.Ea}catch(c){b=this.Ea}this.K=new Xj;Zj(this.K,this.O.id+"-image",b);this.Jd=qc(this.K,ek,function(a){"load"==a.type?(this.Kb=a.target,Qj.prototype.eb.call(this)):this.rb()},void 0,this);this.K.start()};ck.prototype.$a=function(){ck.h.$a.call(this);this.K&&(Ac(this.Jd),Ca(this.K))};ck.prototype.f=function(){ck.h.f.call(this);this.ob&&URL.revokeObjectURL(this.ob)};
var ek=["load","abort","error"],dk=function(a){a.O.appendChild(a.Kb)};var fk=function(a){for(var b=arguments[0],c=1;c<arguments.length;c++){var d=arguments[c];if(0==d.lastIndexOf("/",0))b=d;else{var e;(e=""==b)||(e=b.length-1,e=0<=e&&b.indexOf("/",e)==e);b=e?b+d:b+("/"+d)}}return b};var gk=function(a,b,c,d){x.call(this);this.od=a;this.ka=b;this.bd=d||"";this.Ob=c};w(gk,Uj);u("ee.layers.CloudStorageTileSource",gk);gk.prototype.Od=function(a){if(a.zoom<=this.Ob)a.Ea=this.Hb(a.La,a.zoom);else{var b=a.zoom-this.Ob,c=Math.pow(2,b);c=new google.maps.Point(Math.floor(a.La.x/c),Math.floor(a.La.y/c));a.Ea=this.Hb(c,a.zoom-b);a.Ub=Aa(hk,this.Ob)}var d=t(a.rb,a);a.rb=t(function(b){b&&(b.includes("The specified key does not exist.")||b.includes("AccessDenied"))?Rj(a,"loaded"):d(b)},a);Sj(a)};
gk.prototype.Gd=function(){return[this.od,this.ka,this.Ob,this.bd].join("-")};gk.prototype.Hb=function(a,b){a=fk("https://storage.googleapis.com",this.od,this.ka,String(b),String(a.x),String(a.y));this.bd&&(a+=this.bd);return a};
var hk=function(a,b){if(!b.Kb)throw Error("Tile must have an image element to be rendered.");a=Math.pow(2,b.zoom-a);var c=b.tileSize.width,d=b.O.ownerDocument.createElement("canvas");d.setAttribute("width",c);d.setAttribute("height",c);b.O.appendChild(d);d=d.getContext("2d");d.imageSmoothingEnabled=!1;d.mozImageSmoothingEnabled=!1;d.webkitImageSmoothingEnabled=!1;d.drawImage(b.Kb,c/a*(b.La.x%a),c/a*(b.La.y%a),c/a,c/a,0,0,c,c)};var ik=function(){this.Z=[];this.aa=[]};h=ik.prototype;h.enqueue=function(a){this.aa.push(a)};h.cb=function(){0==this.Z.length&&(this.Z=this.aa,this.Z.reverse(),this.aa=[]);return this.Z.pop()};h.m=function(){return this.Z.length+this.aa.length};h.isEmpty=function(){return 0==this.Z.length&&0==this.aa.length};h.clear=function(){this.Z=[];this.aa=[]};h.contains=function(a){return Wa(this.Z,a)||Wa(this.aa,a)};
h.remove=function(a){var b=this.Z;var c=Na(b,a);0<=c?(Ya(b,c),b=!0):b=!1;return b||Za(this.aa,a)};h.w=function(){for(var a=[],b=this.Z.length-1;0<=b;--b)a.push(this.Z[b]);var c=this.aa.length;for(b=0;b<c;++b)a.push(this.aa[b]);return a};var jk=function(a,b){x.call(this);this.Qd=a||0;this.Nb=b||10;if(this.Qd>this.Nb)throw Error("[goog.structs.Pool] Min can not be greater than max");this.da=new ik;this.qa=new C;this.delay=0;this.Oc=null;this.xb()};w(jk,x);jk.prototype.gb=function(){var a=Ba();if(!(null!=this.Oc&&a-this.Oc<this.delay)){for(var b;0<this.da.m()&&(b=this.da.cb(),!this.Rc(b));)this.xb();!b&&this.m()<this.Nb&&(b=this.uc());b&&(this.Oc=a,this.qa.add(b));return b}};var kk=function(a,b){return a.qa.remove(b)?(a.mc(b),!0):!1};
h=jk.prototype;h.mc=function(a){this.qa.remove(a);this.Rc(a)&&this.m()<this.Nb?this.da.enqueue(a):this.Bb(a)};h.xb=function(){for(var a=this.da;this.m()<this.Qd;)a.enqueue(this.uc());for(;this.m()>this.Nb&&0<this.da.m();)this.Bb(a.cb())};h.uc=function(){return{}};h.Bb=function(a){if("function"==typeof a.ba)a.ba();else for(var b in a)a[b]=null};h.Rc=function(a){return"function"==typeof a.te?a.te():!0};h.contains=function(a){return this.da.contains(a)||this.qa.contains(a)};
h.m=function(){return this.da.m()+this.qa.m()};h.isEmpty=function(){return this.da.isEmpty()&&this.qa.isEmpty()};h.f=function(){jk.h.f.call(this);if(0<this.qa.m())throw Error("[goog.structs.Pool] Objects not released");delete this.qa;for(var a=this.da;!a.isEmpty();)this.Bb(a.cb());delete this.da};var lk=function(a,b){this.Md=a;this.hc=b};lk.prototype.getKey=function(){return this.Md};lk.prototype.clone=function(){return new lk(this.Md,this.hc)};var mk=function(a){this.U=[];if(a)a:{if(a instanceof mk){var b=a.$();a=a.w();if(0>=this.m()){for(var c=this.U,d=0;d<b.length;d++)c.push(new lk(b[d],a[d]));break a}}else b=zb(a),a=yb(a);for(d=0;d<b.length;d++)nk(this,b[d],a[d])}},nk=function(a,b,c){var d=a.U;d.push(new lk(b,c));b=d.length-1;a=a.U;for(c=a[b];0<b;)if(d=b-1>>1,a[d].getKey()>c.getKey())a[b]=a[d],b=d;else break;a[b]=c};h=mk.prototype;
h.remove=function(){var a=this.U,b=a.length,c=a[0];if(!(0>=b)){if(1==b)Xa(a);else{a[0]=a.pop();a=0;b=this.U;for(var d=b.length,e=b[a];a<d>>1;){var f=2*a+1,g=2*a+2;f=g<d&&b[g].getKey()<b[f].getKey()?g:f;if(b[f].getKey()>e.getKey())break;b[a]=b[f];a=f}b[a]=e}return c.hc}};h.w=function(){for(var a=this.U,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].hc);return b};h.$=function(){for(var a=this.U,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].getKey());return b};
h.ab=function(a){return Ra(this.U,function(b){return b.hc==a})};h.oa=function(a){return Ra(this.U,function(b){return b.getKey()==a})};h.clone=function(){return new mk(this)};h.m=function(){return this.U.length};h.isEmpty=function(){return 0==this.U.length};h.clear=function(){Xa(this.U)};var ok=function(){mk.call(this)};w(ok,mk);ok.prototype.enqueue=function(a,b){nk(this,a,b)};ok.prototype.cb=function(){return this.remove()};var pk=function(a,b){this.wd=void 0;this.Wb=new ok;jk.call(this,a,b)};w(pk,jk);h=pk.prototype;h.gb=function(a,b){if(!a)return(a=pk.h.gb.call(this))&&this.delay&&(this.wd=k.setTimeout(t(this.Jb,this),this.delay)),a;this.Wb.enqueue(m(b)?b:100,a);this.Jb()};h.Jb=function(){for(var a=this.Wb;0<a.m();){var b=this.gb();if(b)a.cb().apply(this,[b]);else break}};h.mc=function(a){pk.h.mc.call(this,a);this.Jb()};h.xb=function(){pk.h.xb.call(this);this.Jb()};
h.f=function(){pk.h.f.call(this);k.clearTimeout(this.wd);this.Wb.clear();this.Wb=null};var qk=function(a,b,c,d){x.call(this);this.gd=a;this.Pd=b;this.tb=c;this.R=d||null};w(qk,Uj);u("ee.layers.EarthEngineTileSource",qk);qk.prototype.Od=function(a,b){var c=rc(a,"status-changed",function(){switch(a.getStatus()){case "loaded":var b=a.Ze["x-earth-engine-computation-profile"];this.R&&b&&this.R.me(a.O.id,b);break;case "failed":case "aborted":this.R&&""!==a.O.id&&this.R.Te(a.O.id),Ac(c)}},void 0,this);a.Ea=this.Hb(a.La,a.zoom);var d=t(this.Gc,this,a);rk().gb(d,b)};
qk.prototype.Gd=function(){return[this.Pd,this.tb].join("-")};qk.prototype.Gc=function(a,b){var c=rk();if(a.ca||"aborted"==a.getStatus())kk(c,b);else{var d=rc(a,"status-changed",function(){a.Zc in Tj&&(Ac(d),kk(c,b))});Sj(a)}};qk.prototype.Hb=function(a,b){a=[this.gd,this.Pd,b,a.x,a.y].join("/");a+="?token="+this.tb;this.R&&this.R.isEnabled()&&(a+="&profiling=1");return a};var rk=function(){sk||(sk=new pk(0,4));return sk},sk=null;var Y=function(){A.call(this);this.bc=new tk(0,60);this.Ua=new B};w(Y,A);u("ee.MapTileManager",Y);Y.Lc=void 0;Y.Fd=function(){return Y.Lc?Y.Lc:Y.Lc=new Y};Y.prototype.send=function(a,b,c,d,e){if(this.Ua.get(a))throw Error("[ee.MapTileManager] ID in use");b=new uk(a,b,d,t(this.Xd,this),m(e)?e:1);this.Ua.set(a,b);a=t(this.Gc,this,b);this.bc.gb(a,c);return b};Y.prototype.abort=function(a){if(a=this.Ua.get(a))a.Ja||(a.Ja=!0,a.Y=new y("abort")),this.Xd(a)};
Y.prototype.Gc=function(a,b){if(a.K||a.Ja)vk(this,b);else if(a.setToken(b),b.setActive(!0),b=new Xj,a.K=b,!wk(a))throw Error("Cannot dispatch first request!");};Y.prototype.Xd=function(a){this.Ua.remove(a.getId());a.K&&(vk(this,a.getToken()),a.K.ba());a.Hc&&a.Hc(a.Y,a.Wd)};var vk=function(a,b){b.setActive(!1);if(!kk(a.bc,b))throw Error("Object not released");};Y.prototype.f=function(){Y.h.f.call(this);this.bc.ba();this.bc=null;var a=this.Ua;Oa(a.w(),function(a){a.ba()});a.clear();this.Ua=null};
var uk=function(a,b,c,d,e){x.call(this);this.J=a;this.gd=b;this.Oe=m(e)?e:1;this.Hc=c;this.Da=d};w(uk,x);h=uk.prototype;h.md=0;h.Ja=!1;h.K=null;h.tb=null;h.Y=null;h.Wd=null;var xk=["load","abort","error"];h=uk.prototype;h.getToken=function(){return this.tb};h.setToken=function(a){this.tb=a};h.getId=function(){return this.J};h.getUrl=function(){return this.gd};
h.Ee=function(a){if(this.Ja)this.Da&&this.Da(this);else switch(a.type){case "load":this.Y=a;this.Da&&this.Da(this);break;case "error":case "abort":wk(this)||(this.Y=a,this.Da&&this.Da(this))}};h.f=function(){uk.h.f.call(this);delete this.Hc;delete this.Da};var wk=function(a){if(a.md>a.Oe)return!1;a.md++;ak(a.K,a.J);setTimeout(t(a.$e,a),0);return!0};
uk.prototype.$e=function(){if(!this.Ja){var a=t(function(a){this.Ja||(Zj(this.K,this.J,a),qc(this.K,xk,t(this.Ee,this)),this.K.start())},this),b=this.getUrl();if(Ff(b).V.oa("profiling")){var c=new E;c.Va="blob";c.ea("complete",t(function(){this.Wd=c.getResponseHeader("X-Earth-Engine-Computation-Profile")||null;if(200<=c.getStatus()&&300>c.getStatus())try{var d=ce(ge(qf(c)));var e="about:invalid#zClosurez"!==d}catch(f){}a(e?d:b)},this));c.nb("ready",t(c.ba,c));c.send(b,"GET")}else a(b)}};
var yk=function(){this.W=!1};w(yk,x);yk.prototype.setActive=function(a){this.W=a};yk.prototype.Kd=function(){return this.W};var tk=function(a,b){pk.call(this,a,b)};w(tk,pk);tk.prototype.uc=function(){return new yk};tk.prototype.Bb=function(a){a.ba()};tk.prototype.Rc=function(a){return!a.ca&&!a.Kd()};var Z=function(a,b,c,d,e){Xc.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.ed=new C;this.Sc=1;this.R=e||null};w(Z,Xc);u("ee.MapLayerOverlay",Z);Z.prototype.nc=function(a){return rc(this,"tileevent",a)};Z.prototype.addTileCallback=Z.prototype.nc;Z.prototype.Wc=function(a){Ac(a)};
Z.prototype.removeTileCallback=Z.prototype.Wc;Z.prototype.getTile=function(a,b,c){if(b<this.minZoom||0>a.y||a.y>=1<<b)return a=c.createElement("IMG"),a.style.width="0px",a.style.height="0px",a;b=Yc(this,a,b);a=[this.url,b].join("/")+"?token="+this.token;this.R&&this.R.isEnabled()&&(a+="&profiling=1");b=[b,this.ta,this.token].join("/");this.ta+=1;c=le("DIV",{id:b});var d=(new Date).getTime()/1E3;this.va.push(b);Y.Fd().send(b,a,d,t(this.De,this,c,b));zj(this);return c};Z.prototype.Dc=function(){return this.va.length};
Z.prototype.releaseTile=function(a){Y.Fd().abort(a.id);this.ed.remove(m(a.firstElementChild)?a.firstElementChild:pe(a.firstChild));""!==a.id&&(this.dd.remove(a.id),this.R&&this.R.Te(a.id))};Z.prototype.setOpacity=function(a){this.Sc=a;var b=this.ed.Ia();Kc(b,function(b){Jj(b,a)})};Z.prototype.getTile=Z.prototype.getTile;Z.prototype.setOpacity=Z.prototype.setOpacity;Z.prototype.releaseTile=Z.prototype.releaseTile;
Z.prototype.De=function(a,b,c,d){"error"==c.type?(Za(this.va,b),this.dd.add(b),this.dispatchEvent(c)):(Za(this.va,b),c.target&&"load"==c.type&&(c=c.target,this.ed.add(c),1!=this.Sc&&Jj(c,this.Sc),a.appendChild(c)),zj(this));this.R&&null!==d&&this.R.me(b,d)};var zk=function(a,b){if(!(this instanceof zk))return new zk(a,b);this.ka=a;this.sa=b};w(zk,I);u("ee.SavedFunction",zk);zk.prototype.encode=function(a){return K("LoadAlgorithmById",this.ka).encode(a)};zk.prototype.L=function(){return this.sa};(function(){var a={},b="ee.data.setDeadline ee.FeatureCollection.prototype.getInfo ee.batch.Export.videoMap.toCloudStorage ee.data.getAuthScopes ee.Geometry.Polygon ee.Filter.lt ee.Collection.prototype.limit ee.data.getValue ee.Geometry.LinearRing ee.Date ee.Image.prototype.select ee.Serializer.toJSON ee.data.setCloudApiEnabled ee.ComputedObject.prototype.aside ee.data.getApiBaseUrl ee.data.setAuthTokenRefresher ee.data.getTileBaseUrl ee.Function.prototype.call ee.ComputedObject.prototype.evaluate ee.data.makeDownloadUrl ee.data.makeTableDownloadUrl ee.Geometry.LineString ee.Geometry.MultiPoint ee.Geometry.prototype.toGeoJSON ee.Filter.prototype.not ee.data.getAuthClientId ee.Filter.eq ee.data.authenticateViaPopup ee.data.makeThumbUrl ee.ImageCollection.prototype.getMap ee.batch.Export.image.toCloudStorage ee.Collection.prototype.map ee.data.getInfo ee.ApiFunction._apply ee.Filter ee.Geometry ee.Geometry.Point ee.Collection.prototype.filter ee.FeatureCollection.prototype.getMap ee.Feature ee.Filter.inList ee.Geometry.MultiLineString ee.data.authenticateViaPrivateKey ee.data.getTableDownloadId ee.Filter.date ee.Dictionary ee.List ee.data.authenticate ee.Image.prototype.getMap ee.data.getTileUrl ee.Deserializer.decode ee.ImageCollection ee.Filter.lte ee.Collection.prototype.sort ee.FeatureCollection.prototype.select ee.call ee.data.getList ee.Filter.and ee.Number ee.ApiFunction.lookup ee.batch.Export.image.toDrive ee.Filter.metadata ee.ImageCollection.prototype.getInfo ee.reset ee.data.setApiKey ee.Filter.gte ee.Filter.neq ee.Image.prototype.getDownloadURL ee.Collection.prototype.iterate ee.ImageCollection.prototype.first ee.Geometry.Rectangle ee.InitState ee.data.clearAuthToken ee.Deserializer.fromJSON ee.Feature.prototype.getInfo ee.Image.cat ee.batch.Export.table.toAsset ee.Image.prototype.clip ee.Feature.prototype.getMap ee.Collection.prototype.filterBounds ee.batch.Export.image.toAsset ee.Serializer.toReadableJSON ee.Image.prototype.getThumbURL ee.FeatureCollection ee.data.getDownloadId ee.Collection.prototype.filterDate ee.data.setAuthToken ee.data.getThumbId ee.data.getAuthToken ee.data.getXsrfToken ee.Image ee.Image.prototype.expression ee.Function.prototype.apply ee.batch.Export.video.toDrive ee.ComputedObject.prototype.serialize ee.data.authenticateViaOauth ee.apply ee.initialize ee.data.getMapId ee.Algorithms ee.Geometry.prototype.serialize ee.Serializer.encode ee.batch.Export.table.toDrive ee.Image.prototype.getInfo ee.Terrain ee.Geometry.prototype.toGeoJSONString ee.ApiFunction._call ee.ImageCollection.prototype.select ee.Geometry.MultiPolygon ee.FeatureCollection.prototype.getDownloadURL ee.ComputedObject.prototype.getInfo ee.Filter.or ee.Element.prototype.set ee.Image.rgb ee.Filter.bounds ee.Collection.prototype.filterMetadata ee.batch.Export.video.toCloudStorage ee.Filter.gt ee.Image.prototype.rename ee.batch.Export.table.toCloudStorage ee.String ee.batch.Export.map.toCloudStorage ee.TILE_SIZE".split(" "),
c=[["milliseconds"],["opt_callback"],"collection opt_description opt_bucket opt_fileNamePrefix opt_framesPerSecond opt_writePublicTiles opt_minZoom opt_maxZoom opt_scale opt_region opt_skipEmptyTiles".split(" "),[],["coords","opt_proj","opt_geodesic","opt_maxError","opt_evenOdd"],["name","value"],["max","opt_property","opt_ascending"],["params","opt_callback"],["coords","opt_proj","opt_geodesic","opt_maxError"],["date","opt_tz"],["var_args"],["obj"],["enable"],["func","var_args"],[],["refresher"],
[],["var_args"],["callback"],["id"],["id"],["coords","opt_proj","opt_geodesic","opt_maxError"],["coords","opt_proj"],[],[],[],["name","value"],["opt_success","opt_error"],["id"],["opt_visParams","opt_callback"],"image opt_description opt_bucket opt_fileNamePrefix opt_dimensions opt_region opt_scale opt_crs opt_crsTransform opt_maxPixels opt_shardSize opt_fileDimensions opt_skipEmptyTiles opt_fileFormat opt_formatOptions".split(" "),["algorithm","opt_dropNulls"],["id","opt_callback"],["name","namedArgs"],
["opt_filter"],["geoJson","opt_proj","opt_geodesic","opt_evenOdd"],["coords","opt_proj"],["filter"],["opt_visParams","opt_callback"],["geometry","opt_properties"],["opt_leftField","opt_rightValue","opt_rightField","opt_leftValue"],["coords","opt_proj","opt_geodesic","opt_maxError"],["privateKey","opt_success","opt_error","opt_extraScopes"],["params","opt_callback"],["start","opt_end"],["opt_dict"],["list"],["clientId","success","opt_error","opt_extraScopes","opt_onImmediateFailed"],["opt_visParams",
"opt_callback"],["mapid","x","y","z"],["json"],["args"],["name","value"],["property","opt_ascending"],["propertySelectors","opt_newProperties","opt_retainGeometry"],["func","var_args"],["params","opt_callback"],["var_args"],["number"],["name"],"image opt_description opt_folder opt_fileNamePrefix opt_dimensions opt_region opt_scale opt_crs opt_crsTransform opt_maxPixels opt_shardSize opt_fileDimensions opt_skipEmptyTiles opt_fileFormat opt_formatOptions".split(" "),["name","operator","value"],["opt_callback"],
[],["apiKey"],["name","value"],["name","value"],["params","opt_callback"],["algorithm","opt_first"],[],["coords","opt_proj","opt_geodesic","opt_evenOdd"],[],[],["json"],["opt_callback"],["var_args"],["collection","opt_description","opt_assetId"],["geometry"],["opt_visParams","opt_callback"],["geometry"],"image opt_description opt_assetId opt_pyramidingPolicy opt_dimensions opt_region opt_scale opt_crs opt_crsTransform opt_maxPixels".split(" "),["obj"],["params","opt_callback"],["args","opt_column"],
["params","opt_callback"],["start","opt_end"],"clientId tokenType accessToken expiresIn opt_extraScopes opt_callback opt_updateAuthLibrary".split(" "),["params","opt_callback"],[],[],["opt_args"],["expression","opt_map"],["namedArgs"],"collection opt_description opt_folder opt_fileNamePrefix opt_framesPerSecond opt_dimensions opt_region opt_scale opt_crs opt_crsTransform opt_maxPixels opt_maxFrames".split(" "),[],["clientId","success","opt_error","opt_extraScopes","opt_onImmediateFailed"],["func",
"namedArgs"],["opt_baseurl","opt_tileurl","opt_successCallback","opt_errorCallback","opt_xsrfToken"],["params","opt_callback"],[],[],["obj","opt_isCompound"],"collection opt_description opt_folder opt_fileNamePrefix opt_fileFormat opt_selectors".split(" "),["opt_callback"],[],[],["name","var_args"],["selectors","opt_names"],["coords","opt_proj","opt_geodesic","opt_maxError","opt_evenOdd"],["opt_format","opt_selectors","opt_filename","opt_callback"],["opt_callback"],["var_args"],["var_args"],["r",
"g","b"],["geometry","opt_errorMargin"],["name","operator","value"],"collection opt_description opt_bucket opt_fileNamePrefix opt_framesPerSecond opt_dimensions opt_region opt_scale opt_crs opt_crsTransform opt_maxPixels opt_maxFrames".split(" "),["name","value"],["var_args"],"collection opt_description opt_bucket opt_fileNamePrefix opt_fileFormat opt_selectors".split(" "),["string"],"image opt_description opt_bucket opt_fileFormat opt_path opt_writePublicTiles opt_scale opt_maxZoom opt_minZoom opt_region opt_skipEmptyTiles opt_mapsApiKey".split(" "),
[]];[pg,V.prototype.D,Mi,dg,Nh,Wh,S.prototype.limit,xg,Lh,$i,U.prototype.select,Zg,Xf,H.prototype.jd,rg,Zf,sg,I.prototype.call,H.prototype.evaluate,Bg,Dg,Kh,Ih,P.prototype.ac,Q.prototype.Pa,cg,Uh,Of,zg,X.prototype.getMap,Di,S.prototype.map,Lg,nh,Q,P,Fh,S.prototype.filter,V.prototype.getMap,T,ci,Mh,Tf,Cg,bi,fj,pi,Qf,U.prototype.getMap,wg,cj,X,Zh,S.prototype.sort,V.prototype.select,tj,Mg,$h,Qi,mh,Fi,ei,X.prototype.D,rj,Vf,Xh,Vh,U.prototype.ya,S.prototype.Ld,X.prototype.first,Jh,sj,ag,dj,T.prototype.D,
oi,Ji,U.prototype.clip,T.prototype.getMap,S.prototype.Ad,Ai,$g,U.prototype.Ec,V,Ag,S.prototype.zc,Yf,yg,bg,tg,U,U.prototype.expression,I.prototype.apply,Li,H.prototype.A,Pf,uj,oj,vg,qj,P.prototype.A,Yg,Ii,U.prototype.D,ij,P.prototype.fd,K,X.prototype.select,Oh,V.prototype.ya,H.prototype.D,ai,O.prototype.set,ni,di,S.prototype.Ac,Ki,Yh,U.prototype.Yd,Hi,Ti,Gi,256].forEach(function(d,e){d&&(a[d.toString()]={name:b[e],paramNames:c[e]})});k.EXPORTED_FN_INFO=a})();}).call(this);